[BUG]WorkPro: send video but got file in wechat

I send a video in 企业微信 to wechat via workpro, but what I received in wechat is displayed as file
Info

Platform[e.g. Windows/Mac/Linux]: Docker (Base image node:21.5.0)
Runtime version[e.g. node/JAVA]: node
Wechaty version: "wechaty": "^1.20.2"
Wechaty Puppet version: wechaty-puppet-service-1.19.9

To Reproduce
Steps to reproduce the behavior:

I upload my video into S3, generate a public url,
put it into a filebox object (Tested fill md5, metadata, and name properties, but it didn't work)
using Contract.say(filebox) to send this video

the filebox object is looked like:
FileBox {
  version: '1.5.5',
  _type: 2,
  _size: -1,
  md5: '44abd6c69b8506bd5bfda793efe662ad',
  mimeType: 'application/unknown',
  _mediaType: 'video/mp4',
  _name: 'daily_summary.mp4',
  _metadata: { duration: 82 },
  base64: undefined,
  remoteUrl: 'https://xxxx/d26eba94db254290b6da71f90151c2d0.mp4',
  qrCode: undefined,
  uuid: undefined,
  buffer: undefined,
  localPath: undefined,
  stream: undefined,
  headers: undefined
}

Expected behavior
At the receiver's end, it should looked like a video and could be played directly, but somehow it appeared as a file instead of video
Screenshots

It seems to be designed like this. Anything larger than 10 MB or 20 MB is sent as a file.

It seems to be designed like this. Anything larger than 10 MB or 20 MB is sent as a file.

Thank you for your response, that might be the explanation.
I tested some videos smaller than 20 MB, and they seem to work fine.


Add animation to heading

Please assign this to me . I will do it for you.

Can you please elaborate what you wanted to do?
What end result will look like?

I don't want to add any. If you would like to add any, please do share

A simple hover-over zoom-in transition effect will give a nice effect. I would like to contribute.

I don't think this will create any impact.
So I am closing this issue as this will not create any confusion for other contributors.
You can think some other ideas or find some bug on website or solve existing issue.


KAFKA-13273: Add support for Java 17

Java 17 is at release candidate stage and it will be a LTS release once
it's out (previous LTS release was Java 11).
Details:

Replace Java 16 with Java 17 in Jenkins and Readme.
Replace --illegal-access=permit (which was removed from Java 17)
with  --add-opens for the packages we require internal access to.
Filed KAFKA-13275 for updating the tests not to require --add-opens
(where possible).
Removed all but one Streams test from testsToExclude. The
Connect test exclusion list remains the same.
Add notable change to upgrade.html
Upgrade to Gradle 7.2 as it's required for proper Java 17 support.
Upgrade mockito to 3.12.4 for better Java 17 support.
Adjusted KafkaRaftClientTest not to require private access to
jdk.internal.util.random.

Committer Checklist (excluded from commit message)

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

I expect that this will require some work before it can be merged.

Build #6 passed: https://ci-builds.apache.org/job/Kafka/job/kafka-pr/job/PR-11296/6/

@chia7712 @omkreddy Any of you have the cycles to review this? Thanks!

And we have a green build. :)


Distribute to app stores?

Is there any possibility to distribute releases to App Store, TestFlight or Google Play? I might have misunderstood the docs, otherwise consider this a feature request.

Hey @henninghall - unfortunately, there's no way currently to distribute releases to the store yet. I've taken this feature request down in our backlog, and we'll update our changelog when this is done.
Thanks again for the feedback. Let me know if you have any questions!

Thanks for the answer!


Add surfacing of code sent when server closes connection with specific code

Call delegate didDisconnect when server closes connection with code
Avoid crashing when outputStream is nil when server closes with code

Hey @daltoniam I had to make these changes to be able to read the code that the server was sending when closing the connection.  Also it was crashing as the outputStream would be nil and it would try to writeError so I added protection to that code path.

@robskillington you rock, thanks! I appreciate you taking the time to track this down. This might also fix #55.


Add option to read from a folder or set of folders for movie lists

This allows non-plex users to get the same missing list of movies.

Fixed in 0.0.3

Wrong branch number was used.

This wasn't fixed in 0.0.3 - the folders function is still disabled in 0.2.2


System lag after turning on ept

The system becomes lag after turning on ept.
CPU i9-13980HX with 32GB memory and I set ept_pd_count = 512;
after I splited the first 2mb physical memory into small page, this problem seems not to appear, maybe it's related to MMIO.
I simply add get_ept_pte(ept, 0, true); at
prepare_ept(vcpu_ept_data& ept)
or reconstruct the first 2mb large page to small page.

Thats actually pretty interesting, thanks. I have something similar on my TODO list already, but haven't gotten around to implementing it yet... https://github.com/jonomango/hv/blob/main/hv/ept.cpp#L42-L44.

I am currently using your project and I found that even without hooking any functions, the computer will occasionally freeze. I want to try to implement it but I encountered some problems after I added the new pt to the pd virtual Opportunity freezes after vmlaunch  Below is some of my code
  alignas(0x1000) ept_pte pds_fixed_mtrr[512];
struct FixedMtrrState {
    UINT64 MTRR_FIX64K_00000;
    UINT64 MTRR_FIX16K_80000;
    UINT64 MTRR_FIX16K_A0000;
    UINT64 MTRR_FIX4K_C0000;
    UINT64 MTRR_FIX4K_C8000;
    UINT64 MTRR_FIX4K_D0000;
    UINT64 MTRR_FIX4K_D8000;
    UINT64 MTRR_FIX4K_E0000;
    UINT64 MTRR_FIX4K_E8000;
    UINT64 MTRR_FIX4K_F0000;
    UINT64 MTRR_FIX4K_F8000;
};

FixedMtrrState fixedMtrrState;

void ReadFixedMtrr() {
    fixedMtrrState.MTRR_FIX64K_00000 = __readmsr(IA32_MTRR_FIX64K_00000);
    fixedMtrrState.MTRR_FIX16K_80000 = __readmsr(IA32_MTRR_FIX16K_80000);
    fixedMtrrState.MTRR_FIX16K_A0000 = __readmsr(IA32_MTRR_FIX16K_A0000);
    fixedMtrrState.MTRR_FIX4K_C0000 = __readmsr(IA32_MTRR_FIX4K_C0000);
    fixedMtrrState.MTRR_FIX4K_C8000 = __readmsr(IA32_MTRR_FIX4K_C8000);
    fixedMtrrState.MTRR_FIX4K_D0000 = __readmsr(IA32_MTRR_FIX4K_D0000);
    fixedMtrrState.MTRR_FIX4K_D8000 = __readmsr(IA32_MTRR_FIX4K_D8000);
    fixedMtrrState.MTRR_FIX4K_E0000 = __readmsr(IA32_MTRR_FIX4K_E0000);
    fixedMtrrState.MTRR_FIX4K_E8000 = __readmsr(IA32_MTRR_FIX4K_E8000);
    fixedMtrrState.MTRR_FIX4K_F0000 = __readmsr(IA32_MTRR_FIX4K_F0000);
    fixedMtrrState.MTRR_FIX4K_F8000 = __readmsr(IA32_MTRR_FIX4K_F8000);
}

  void AllocateAndInitFixedMtrrPT(vcpu_ept_data& ept) {
        // 确保已读取固定 MTRR 的配置
        //Ensure configuration of fixed MTRR has been read
        ReadFixedMtrr();
        DbgPrint("Fixed MTRR state read successfully.\n");
        //Initialize 64K fixed MTRR area
        // 初始化 64K 固定 MTRR 区域
        for (size_t i = 0; i < 8; ++i) {
            size_t baseAddress = i * 0x8000;
            size_t memoryType = (fixedMtrrState.MTRR_FIX64K_00000 >> (i * 8)) & 0xFF;

            for (size_t j = 0; j < 8; ++j) {
                size_t pageAddress = baseAddress + (j * 0x1000);
                ept_pte* entry = &ept.pds_fixed_mtrr[(baseAddress >> 12) + j];
                entry->page_frame_number = (pageAddress >> 12);
                entry->memory_type = (UCHAR)memoryType;
                entry->read_access = 1;
                entry->write_access = 1;
                entry->execute_access = 1;
                DbgPrint("Initialized 64K MTRR region: baseAddress=0x%llx, memoryType=%d\n", pageAddress, memoryType);
            }
        }
        //Initialize 16K fixed MTRR area
        // 初始化 16K 固定 MTRR 区域
        for (size_t i = 0; i < 16; ++i) {
            size_t baseAddress = 0x80000 + (i * 0x4000);
            size_t memoryType = ((i < 8) ? fixedMtrrState.MTRR_FIX16K_80000 : fixedMtrrState.MTRR_FIX16K_A0000) >> ((i % 8) * 8) & 0xFF;

            for (size_t j = 0; j < 4; ++j) {
                size_t pageAddress = baseAddress + (j * 0x1000);
                ept_pte* entry = &ept.pds_fixed_mtrr[(baseAddress >> 12) + j];
                entry->page_frame_number = (pageAddress >> 12);
                entry->memory_type = (UCHAR)memoryType;
                entry->read_access = 1;
                entry->write_access = 1;
                entry->execute_access = 1;
                DbgPrint("Initialized 16K MTRR region: baseAddress=0x%llx, memoryType=%d\n", pageAddress, memoryType);
            }
        }
        //Initialize 4K fixed MTRR area
        // 初始化 4K 固定 MTRR 区域
        for (size_t i = 0; i < 64; ++i) {
            size_t baseAddress = 0xC0000 + (i * 0x1000);
            size_t memoryType;
            if (i < 8) {
                memoryType = (fixedMtrrState.MTRR_FIX4K_C0000 >> (i * 8)) & 0xFF;
            }
            else if (i < 16) {
                memoryType = (fixedMtrrState.MTRR_FIX4K_C8000 >> ((i - 8) * 8)) & 0xFF;
            }
            else if (i < 24) {
                memoryType = (fixedMtrrState.MTRR_FIX4K_D0000 >> ((i - 16) * 8)) & 0xFF;
            }
            else if (i < 32) {
                memoryType = (fixedMtrrState.MTRR_FIX4K_D8000 >> ((i - 24) * 8)) & 0xFF;
            }
            else if (i < 40) {
                memoryType = (fixedMtrrState.MTRR_FIX4K_E0000 >> ((i - 32) * 8)) & 0xFF;
            }
            else if (i < 48) {
                memoryType = (fixedMtrrState.MTRR_FIX4K_E8000 >> ((i - 40) * 8)) & 0xFF;
            }
            else if (i < 56) {
                memoryType = (fixedMtrrState.MTRR_FIX4K_F0000 >> ((i - 48) * 8)) & 0xFF;
            }
            else {
                memoryType = (fixedMtrrState.MTRR_FIX4K_F8000 >> ((i - 56) * 8)) & 0xFF;
            }

            ept_pte* entry = &ept.pds_fixed_mtrr[(baseAddress >> 12)];
            entry->page_frame_number = (baseAddress >> 12);
            entry->memory_type = (UCHAR)memoryType;
            entry->read_access = 1;
            entry->write_access = 1;
            entry->execute_access = 1;
            DbgPrint("Initialized 4K MTRR region: baseAddress=0x%llx, memoryType=%d\n", baseAddress, memoryType);
        }
    }`

I'm not sure if this is the right thing to do because I haven't found much information about it

Can you give me more information on how to set up Fixed MTRRS  I would be very grateful

I seem to have done what you said so far, thanks to the large number of interfaces you provide and the clear code design, thank you very much for your project, your open source spirit is also worthy of our admiration, here's my code, he should work

    void allocate_fixed_mtrr_pt(vcpu_ept_data& ept) {
        // 固定MTRR的范围和对应的类型
        struct fixed_mtrr_range {
            uint64_t start_address;
            uint64_t end_address;
            uint8_t memory_type;
        };

        fixed_mtrr_range ranges[] = {
            { 0x00000000, 0x0009FFFF, MEMORY_TYPE_WRITE_BACK },    // 640 KB RAM
            { 0x000A0000, 0x000BFFFF, MEMORY_TYPE_UNCACHEABLE },   // 128 KB Video RAM
            { 0x000C0000, 0x000EFFFF, MEMORY_TYPE_UNCACHEABLE },   // 192 KB Video RAM
            { 0x000F0000, 0x000FFFFF, MEMORY_TYPE_UNCACHEABLE },   // 64 KB BIOS ROM
            { 0xFFFC0000, 0xFFFFFFFF, MEMORY_TYPE_UNCACHEABLE }    // 4 MB BIOS ROM
        };

        for (const auto& range : ranges) {
            uint64_t start_address = range.start_address;
            uint64_t end_address = range.end_address;
            uint8_t memory_type = range.memory_type;

            for (uint64_t addr = start_address; addr <= end_address; addr += 0x1000) {
                // 计算页表索引
                size_t pml4_index = (addr >> 39) & 0x1FF;
                size_t pdpt_index = (addr >> 30) & 0x1FF;
                size_t pd_index = (addr >> 21) & 0x1FF;
                size_t pt_index = (addr >> 12) & 0x1FF;
              //  DbgPrint("%llx %d %d %d %d \n", start_address,pml4_index, pdpt_index, pd_index, pt_index);
                // 获取相应的PML4E
                auto& pml4e = ept.pml4[pml4_index];
                if (pml4e.flags == 0) {
                    pml4e.flags = 0;
                    pml4e.read_access = 1;
                    pml4e.write_access = 1;
                    pml4e.execute_access = 1;
                    pml4e.page_frame_number = MmGetPhysicalAddress(&ept.pdpt).QuadPart >> 12;
                }

                // 获取相应的PDPTE
                auto& pdpte = ept.pdpt[pdpt_index];
                if (pdpte.flags == 0) {
                    pdpte.flags = 0;
                    pdpte.read_access = 1;
                    pdpte.write_access = 1;
                    pdpte.execute_access = 1;
                    pdpte.page_frame_number = MmGetPhysicalAddress(&ept.pds_2mb[pdpt_index]).QuadPart >> 12;
                }

                // 获取相应的PDE

                auto& pde = ept.pds_2mb[pdpt_index][pd_index];
                //  if (pde.flags == 0)
                {
                    split_ept_pde(ept, &pde);

                }

                static int freeindex = 0;
                if (pdpt_index!=0|| pd_index!=0)
                {
                    freeindex = 1;
                }
                auto const pt = reinterpret_cast<ept_pte*>(
                    &ept.free_pages[freeindex]);

                // 获取相应的PTE
                auto& pte = pt[pt_index];

                // pte.flags = 0;
                pte.read_access = 1;
                pte.write_access = 1;
                pte.execute_access = 1;
                pte.memory_type = memory_type;
                pte.page_frame_number = addr >> 12;

                DbgPrint("%llx %d %d %d %d %d\n", start_address, pml4_index, pdpt_index, pd_index, pt_index, memory_type);
            }
        }
    }


Bug - Major - Mobile - iPhone - Embed Youtube video player not loading as expected after accepting cookies

For iPhone users on mobile, the embed video block using Youtube player is not loading as expected after the user accepts all cookies. After I accepted all cookies, I see a message over the blank video player - "For a premium high resolution experience, please accept cookies" with the screen shot for reference. Only once I refreshed my browser after accepting the cookies did the video player work as expected. Possibly a bug with the Youtube player, or maybe with OneTrust cookies? Is there another video block we can use to replace this?
SuperTruck 2 page: https://www.volvotrucks.us/innovation/supertruck2/
Tested with iPhone users - issue is happening on Safari and Chrome browsers with devices: iPhone 13 iOS version 16.6.1 / iPhone 13 16.5.1(c) / iPhone X 16.1.1
Seems to work fine on Android devices - tested with Samsung A34 and Samsung 20FE and these components worked as expected.

I cannot reproduce this as per above
after accepting cookies I see the correctly embedded video and dont see the "please accept cookies prompt"
but when not accepting cookies the prompt is indeed displayed and the embedded youtube video is displayed as blank with the play button

as tested on browserstack: iPhone 13

sure. I will leave here a screen recording of this issue as tested on browserstack: iPhone 13 Pro
(sorry for the slow scroll down)
https://github.com/Netcentric/vg-volvotrucks-us-rd/assets/127409602/50bdff61-cd2c-4eea-9ca8-6b72a57ab118

@Andrei-Boiangiu I sent you the video via slack, it was too large to upload here

update on this:
I confirm via Zoe's video that this issue does indeed occur on an actual iPhone 13 device (not browserstack)
but it does reproduce on an actual iPhone 12 device as verified by @cogniSyb
to be investigated and updated

Will contact our OneTrust support team and request them to investigate into it.

Hi Syb,
We investigated the Iphone issue and found that the Iphone is not getting refreshed after the cookie is accepted.
Which is not the case with Mack trucks. On the same Iphone device, when we accept the cookies the page refreshes and the cookies status is updated.
Could you please see if you can force the page to reload on Iphone, after the cookie button is clicked?

Category Name
Performance Cookies
Category Id
C0002
Description
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.

Category Name
Functional Cookies
Category Id
C0003
Description
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.

Category Name
Targeting Cookies
Category Id
C0004
Description
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.

Re-tested and validated that the issue has been resolved!


bin/floe converts input to json

The Context expects input to be a json object.
bin/floe is passing in a raw string to the Context.
BEFORE:
If there is an error in the Task, the result_path is not able to apply to the input.
This causes an error:
lib/floe/workflow/reference_path.rb:35:in `set': undefined method `merge!' for "{\\"foo\\": 2}":String (NoMethodError)

          result.merge!(value)
                ^^^^^^^
  from lib/floe/workflow/states/task.rb:114:in `catch_error!'
  from lib/floe/workflow/states/task.rb:55:in `finish'
  from lib/floe/workflow/state.rb:51:in `run_nonblock!'
  from lib/floe/workflow.rb:76:in `step_nonblock'
  from lib/floe/workflow.rb:63:in `step'
  from lib/floe/workflow.rb:58:in `run!'
  from exe/floe:37:in `<top (required)>'

After:
An error is able to be merged with the input
{"Error"=>"FailStateError", "Cause"=>"No Matches!"}

Merged https://github.com/ManageIQ/floe/pull/122


When running on EC2, use Instance Metadata Service v2 (IMDSv2) by default

Clearly describe the problem and solution
AWS recommends using Instance Metadata Service v2 (IMDSv2) as a security best practice for EC2.
This pull request adds support for IMDSv2 and enables it by default. It can be disabled by setting the s3UseTokenForMetadata parameter to false in config.ini.
Relevant issue number(s) if applicable
N/A
Did you run npm run lint from the viewer or parliament directory (whichever you are making changes to) and correct any errors
N/A
Did you Ensure that all tests still pass by navigating to the tests directory and running ./tests.pl --viewer
N/A
License
I confirm that this contribution is made under an Apache 2.0 license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

thanks!


[python-package] change default best_iteration to 0

https://github.com/Microsoft/LightGBM/pull/479#issuecomment-298356703

do I need to update python docs manually now?

@wxchan maybe we can replace these api doc with the ReadTheDocs URL.

@guolinke I think the doc issue can be dealt with together. I change it manually now. It's ready to merge.

Is num_iteration=-1 at https://github.com/Microsoft/LightGBM/blob/master/python-package/lightgbm/basic.py#L351  ok?

the only purpose is to make best_score = eval_result[best_iteration - 1], passing -1 or 0 to predict function makes no differences.

I see. Thanks!


Improve help messages in Provider Details section

Key points:

downstream 2.4 docs are used as no upstream or newer downstream documentation is currently available
focus on currently visible provider type i.e. if oVirt provider cannot be host then remove the following part from the URL help message: Empty may be used for the host provider.
focus on available actions i.e. if provider type cannot be changed then don't list the available provider
use general link (top level link) if no specific topic can be found i.e. for OVA provider in  the current docs

@yaacov Note that I've removed Product property from vSphere provider details as it's part of the inventory data.
 <DetailsItem
        title={t('Product')}
        content={inventory?.['product'] || {t('Empty')}}
        helpContent={<Text>{t(`VMware only: vSphere product name.`)}</Text>}
        crumbs={['Inventory', 'providers', `${provider.spec.type}`, '[UID]']}
      />

Add it to the inventory section?

Add it to the inventory section?

IDK, I tried both ways, i don't know what it best:
pros for adding 'inventory':

explicit, a user can't missunderstand and look in the provider CRD
cons for adding 'inventory':
we are already in the inventory section
the help body can make it clear we refer to breadcrumbs of the inventory API and not the k8s API

there are good reasons to keep and good reasons to remove ...
I'm fine with removing the Inventory from all the inventory related crumbs

Add it to the inventory section?

Ahh, missunderstood you last comment.
hmm, if we remove it from the details section ( it's details, not information that comes from k8s or inventory )
we should add it somewhere else, inventory is fine :+1:

focus on available actions i.e. if provider type cannot be changed then don't list the available provider

We are trying to educate users about the system, on the one hand we don't want to flood them with unneeded information, on the other hand we want to help them get the information they need.
The help text is here to educate the users about this specific field they can later use when they go to the CLI and create providers for there devOps, Ansible scripts.
the help for this field should be what the docs say:
https://access.redhat.com/documentation/en-us/migration_toolkit_for_virtualization/2.4/html-single/installing_and_using_the_migration_toolkit_for_virtualization/index#migrating-virtual-machines-cli_mtv
Specify the type of source provider. Allowed values are ovirt, vsphere, and openstack. This label is needed to verify the credentials are correct when the remote system is accessible and, for RHV, to retrieve the Manager CA certificate when a third-party certificate is specified.

My vote is that in this case, letting the user know about what this field is and what other option they will have when creating there own YAMLs makes sense, I also prefer the "copy from docs" approach where we don't need to invent our own text.

@rszwajko can you add screenshots ?

p.s.
you can ignore the  Duplication issue in this PR


bad groovy hash map display

groovy code: {it -> [0, it]}(a:8)

Fixed in commit cbb2f2c65a51c31839a5a947bd6257fb006ea6d7 in my branch


Obelisk Destination.  similar to fairy rings

when you click on the minimap and you hoover your mouse on top of a fairy ring it will tell you the code to get there.

can you do that for obelisk which you can have it at your player owned house?

an example

this obelik is at level 50 wilderness, so when you hoover your mouse on top of the obelisk it should say Level 50 Wilderness  etc just similar to fairy rings?

it should say the things thats on that list. ^^

Duplicate of #4216


Content review

Storybook documentation here https://storybook.saltdesignsystem.com/?path=/story/documentation-lab-radio-button--page

Made content updates in PR #1403


Venn

Hi, Fritz,
I noticed in the Wiki part of SURVIVOR "Note that SURVIVOR will produce further a venn diagram file that will not be filtered by the min. number of supporting callers and can be used to visualize the results".
But I can not find the script to generate the venn diagram.

Yes that was in a much older version. The easiest way to obtain something like this is to extract the SUP_VEC= information and use that to produce a venn diagram.
I will need to update the wiki, but as you probably know there are so many more important things.. unfortunately.
Sorry for the confusion.
Fritz

Hi,
Has anyone tried what you suggested above? I'd like to give it a go but just wondering whether it worked if anyone else has done it? or is any extra information required? :) Thanks!
Cheers,
Nazeefa

Hi Nazeefa,
I have updated SURVIVOR a bit. so you can now take your merged vcf file and put it into SURVIVOR genComp . You will get a pairwise distance matrix out.
Next you can use an R heatmap to plot this.
For example:
readin the matrix to e.g. t
dst <- data.matrix(t(t))
image(1:nrow(dst), 1:ncol(dst),log(dst), col=rev(heat.colors(10)),axes=F, xlab="", ylab="")
grid(col='black',nx=nrow(dst),ny=ncol(dst),lty=1)
I hope that helps.
Fritz

I included a short description in the wiki.
https://github.com/fritzsedlazeck/SURVIVOR/wiki#plotting-the-comparison-of-multiple-input-vcf-files-after-merging
I hope that helps.
Fritz

Hi Fritz,
Thank you. I had a look at the instructions. I have <5 vcf files. I couldn't extract information using the perl command. Instead, I used:
bcftools query -f '%CHROM[\t%INFO/SUPP_VEC]\n' merged.vcf | awk '{ for(i=2; i<=NF; i++) {printf("%s\t", $i)} print $NF } | (sed command) > out.vcf

However, I can't seem to get venn diagram - here's the code:
venn.diagram(list(sample1=which(t[,1]==1), sample2=which(t[,2]==1), sample3=which(t[,3]==1), sample4=which(t[,4]==1)) , fill = c("red", "orange" ,"blue", "green") , alpha = c(0.5, 0.5, 0.5, 0.5), cex = 2, lty =2, filename = "overlap.tiff")
Sorry if it seems silly, it gives an error saying "Error in t[, 1] : object of type 'closure' is not subsettable."
Thanks again, I appreciate your time!
Cheers,
Nazeefa

Do you know why you didn't get anything from the Perl one liner?

Please paste the head of your output file

How did you read in your output file in R?
Cheers
Fritz

Yes, because it's missing $1 in print "\n"
From fixed Perl one-liner, I get the following:

0 0 1 0
0 1 1 1
0 0 1 1

t <- read.table("overlap.txt")

It seems to work.
Cheers,
Nazeefa

Thanks. I updated the wiki.
So everything seems to work now?
Thanks
Fritz

Yes, thanks Fritz :) I appreciate your time!
except, and this is probably a different issue (apologies), information from this NA12878 vcf file (ftp://ftp-trace.ncbi.nlm.nih.gov/giab/ftp/data/NA12878/NA12878_PacBio_MtSinai/) doesn't seem to be used for output when I run merge - just interesting in finding overlap between truth set and vcf files I have.

What information exactly?
As you know VCF files can quite vary in the way the report information and what information they report.
Thus, SURVIVOR filters out the necessary information to provide the merge, but dont carry over all the genotypes or frequencies..
Thanks
Fritz

Hi Fritz,
Overlapping information (SUPP_VEC tags). What I was trying to understand if Survivor supports the output format* of the NA12878_PacBio vcf file.
I decided to use callsets, available here, for truth set. When I extract information for overlapping variants, it shows that there is no overlap between truth set and my dataset. I'm wondering if there's something missing from truth set file that contributes to this. I know that a list of "contigs" (chromosome names and their length) is missing from header, but not sure if that's the reason.
Thank you for all the help and time so far! I really appreciate it :)
Cheers,
Nazeefa


Fetch an RDF list and return it as a Javascript array

It would be a very nice feature-add to be able to fetch an RDF collection such as:
<#_:_book_shex_BookDemo__parts_7> a ui:Classifier;
    ui:values ("Science Fiction" "Fantasy" "Romance" "Western" "Non-fiction" "Thriller" "Horror" "Douglas Adams").

... and return the values as a JS array. (This is real data I've used for demos and testing the SDK, using the Form Model syntax and vocabs).
Right now we have to run the results of values through a custom function that parses the collection recursively into an array by removing the rdf$first item, appending it to an array, then sending rdf$rest recursively into itself. The code snippet we use is here:
async function loopList(doc: any) {
  let parts: any = []

  const field = await doc.rdf$first
  if (field) {
    const nextField = await loopList(doc.rdf$rest)
    parts = [...parts, field.value, ...nextField]
  }

  return parts
}

This currently works and returns a collection as an array, but something like this seems extremely useful for managing other datatypes than just Literals.

For reference, there's an abstraction for this in rdf-object: https://github.com/rubensworks/rdf-object.js#conveniently-access-rdf-lists
We could easily port this code to LDflex: https://github.com/rubensworks/rdf-object.js/blob/master/lib/RdfListMaterializer.ts

Just want to note that we'll need to be careful with blank nodes (#34).

Resolved upstream in the main LDflex package https://github.com/LDflex/LDflex/pull/122


Best practice to reply in thread after an action/model

Description
Describe your issue here.
Simple:

My bot replies to the message 'dev-ops' in a thread, this message has a button, when that button is pressed I would like to send another message to the thread.

Current Solution

set the value of the button to the message.ts and extract from body in the action section

Advanced:

When that button is pressed a model is opened, once user has clicked submit, the message is sent into the thread confirming a successful send.

Current Solution

use private_metadata to send json containing information acquired

Boilerplate:
app.message('dev-ops', async ({ message, say }) => {
//replies in thread with a button "HELP", value of button help the value "message.ts"
...
}

app.action({ action_id: 'HELP' }, async ({ ack, body, client }) => {
//opens modal which walks through creating a jira ticket
// creates private_metadata json including channel_id from body, and message_ts from the button value
...
}

app.view('create_ticket_view', async ({ ack, body, view, client, payload }) => {
//extracts private_metadata and responds to original thread with confirmation
...
}

I'm not too sure the official way to do this properly, the dirtiest part is failing to know how to get the correct message.ts when an action is used. so passing manually via the button value is my only way at the moment.
What type of issue is this? (place an x in one of the [ ])

[ ] bug
[ ] enhancement (feature request)
[x] question
[ ] documentation related
[ ] example code related
[ ] testing related
[ ] discussion

Requirements (place an x in each of the [ ])

[x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
[x] I've read and agree to the Code of Conduct.
[x] I've searched for any related issues and avoided creating a duplicate issue.

Attachments:
app.message('dev-ops', async ({ message, say }) => {

    await say({
      text: `Thanks for contacting the DevOps Team<EMAIL_ADDRESS>      thread_ts: message.ts
    });

    var entryInterface = JSON.stringify(require('./data/bolt/entry.json'))
    //This is dirty
    entryInterface=entryInterface.replace("${HELP}", message.ts );
    entryInterface=entryInterface.replace("${PR}", message.ts );

    //I have no idea to make the first message execute before this one runs, so I set timeout! (ToDo: get help)
    setTimeout(
      function () {
        app.client.chat.postEphemeral({
        channel: message.channel,
        user: message.user,
        token: process.env.SLACK_BOT_TOKEN,
        thread_ts: message.ts,
        blocks:  JSON.parse(entryInterface)
      });
    }, 500);
});

app.action({ action_id: 'PR' }, async ({ ack, body, client }) => {
  ack();
  app.client.chat.postMessage({
    channel: body.container.channel_id,
    token: process.env.SLACK_BOT_TOKEN,
    thread_ts: body['actions'][0].value,
    text:  "This endpoint has not been complete yet!"
  });
});

app.action({ action_id: 'HELP' }, async ({ ack, body, client }) => {
  ack();
  try {
    // Call views.open with the built-in client
    const result = await client.views.open({
      // Pass a valid trigger_id within 3 seconds of receiving it
      trigger_id: body.trigger_id,
      // View payload
      view: {
        type: 'modal',
        private_metadata: JSON.stringify({
          channel_id : body.container.channel_id,
          message_ts : body['actions'][0].value
        }),
        // View identifier
        callback_id: 'create_ticket_view',
        title: {
          type: 'plain_text',
          text: 'Create Ticket'
        },
        blocks:  require('./data/bolt/create_ticket.json'),
        submit: {
          type: 'plain_text',
          text: 'Submit'
        }
      }
    });
  }
  catch (error) {
    console.error(error);
  }
});

app.view('create_ticket_view', async ({ ack, body, view, client, payload }) => {
  ack();
  const privateMetadata = JSON.parse(body.view.private_metadata);
  const vals = payload.state.values
  const jsonResponse = await createJiraTicket(
    vals.summary,
    vals.description,
    vals.priority,
    vals.investigated,
    vals.approxTime,
    vals.changes
  );
  app.client.chat.postMessage({
        channel: privateMetadata.channel_id,
        token: process.env.SLACK_BOT_TOKEN,
        thread_ts: privateMetadata.message_ts,
        text:  "Your Ticket has been submitted"
  });
});

Logs, screenshots, screencast, sample project, funny gif, etc.

Hi @Lerring! Thanks for bringing this question to us. We always love to learn more about what folks are building out, so it's wonderful to see an entire body of code here! 🙂
After a bit of conferring, consensus is that you're doing it "right" and that using private_metadata seems to be the best way to go about maintaining access to that original thread.
Since it's clear from the question that you care about quality, a few things/tips to note:

Within all of your listener callbacks, you can use client instead of app.client and save yourself having to pass in token (you've already done this in the app.action listener you've provided).
I double-checked to make sure, but you actually don't need setTimeout! Without it, the first greeting message posts, followed by the ephemeral message, just as you'd like it to.
Within your action listener, you can add the destructured value of action to the callback and instead of having to grab items off of the body, access the value directly from that instead (body['actions'][0].value => action.value).
When calling ack, we always recommend also using await.

Hope that the above is helpful and let us know if you have any further questions!

Hi @misscoded I really appreciate the feedback, I wouldn't have known any of these tricks otherwise :)
I have implemented the suggested changes and they worked great!


cannot escape character within backtick within a table

🐛 Bug Report
when using backtick within a table, the pipe | wont be espace by the backslash \
To Reproduce
try this code within a docusaurus md file
| Test                            | x        | x   |
| ------------------------------- | -------- | --- |
| `this pipe \| should be espace` | and this | not |

Expected behavior
escaping the | when using \
Actual Behavior
Create a new column

See here: https://stackoverflow.com/a/49834158/1751946
On Sun, Nov 17, 2019, 1:36 AM Raphaël Balet<EMAIL_ADDRESS>wrote:

🐛 Bug Report
when using backtick within a table, the pipe | wont be espace by the
backslash
To Reproduce
try this code within a docusaurus md file
| Test                            | x        | x   |
| ------------------------------- | -------- | --- |
| this pipe \| should be espace | and this | not |
Expected behavior
escaping the | when using
Actual Behavior
Create a new column
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/docusaurus/issues/2004?email_source=notifications&email_token=AAKBCHNITXUEPRFVH7NOK4TQUEGCTA5CNFSM4JOJAFPKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HZ2764A,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKBCHI5UN5BI637565S37DQUEGCTANCNFSM4JOJAFPA
.

Actually, this is not a "Docusaurus" bug. It's coming from the remarkable markdown parser. Try your sample markdown here:
https://jonschlinkert.github.io/remarkable/demo/
This is how it is rendered:

This issue should be raised in the remarkable repository, if one doesn't exist already:
https://github.com/jonschlinkert/remarkable

Thx @parvezakkas, the Issues didn't existed before, I open a new one here https://github.com/jonschlinkert/remarkable/issues/368.
I'll post a new comment when it's done on their side (or if it will be).

Upstream bug.

If somebody is looking for a quick fix. If found here this solution.
| this pipe | should be espace | and this | not |


Load articles and featured shows on the client side

The Featured Shows and Featured Shows sections are located at the bottom of the page, so they do not have to be loaded on the server side.
By moving the server-side calls/render to the client-side we could improve the server response time by 150ms (median: 463ms vs 317ms, tested locally with redis cache enabled).
Concurrency: 1, Number of Requests: 100
Before:
$ ab -n 100 -c 1 "http://localhost:5000/"
...

Document Path:          /
Document Length:        61039 bytes

Concurrency Level:      1
Time taken for tests:   48.805 seconds
Complete requests:      100
Failed requests:        97
   (Connect: 0, Receive: 0, Length: 97, Exceptions: 0)
Total transferred:      6195732 bytes
HTML transferred:       6102671 bytes
Requests per second:    2.05 [#/sec] (mean)
Time per request:       488.051 [ms] (mean)
Time per request:       488.051 [ms] (mean, across all concurrent requests)
Transfer rate:          123.97 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:   409  488  92.0    463     841
Waiting:      409  488  92.0    463     840
Total:        410  488  92.0    463     841

Percentage of the requests served within a certain time (ms)
  50%    463
  66%    483
  75%    498
  80%    511
  90%    563
  95%    802
  98%    816
  99%    841
 100%    841 (longest request)

After:
$ ab -n 100 -c 1 "http://localhost:5000/"
...

Document Path:          /
Document Length:        51373 bytes

Concurrency Level:      1
Time taken for tests:   34.969 seconds
Complete requests:      100
Failed requests:        97
   (Connect: 0, Receive: 0, Length: 97, Exceptions: 0)
Total transferred:      5231734 bytes
HTML transferred:       5138602 bytes
Requests per second:    2.86 [#/sec] (mean)
Time per request:       349.695 [ms] (mean)
Time per request:       349.695 [ms] (mean, across all concurrent requests)
Transfer rate:          146.10 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:   285  349  95.2    317     725
Waiting:      285  349  95.2    317     725
Total:        285  350  95.2    318     725

Percentage of the requests served within a certain time (ms)
  50%    318
  66%    327
  75%    341
  80%    348
  90%    414
  95%    624
  98%    659
  99%    725
 100%    725 (longest request)

Concurrency: 3, Number of Requests: 100
Before:
$ ab -n 100 -c 3 "http://localhost:5000/"
...

Document Path:          /
Document Length:        61020 bytes

Concurrency Level:      3
Time taken for tests:   40.447 seconds
Complete requests:      100
Failed requests:        92
   (Connect: 0, Receive: 0, Length: 92, Exceptions: 0)
Total transferred:      6195740 bytes
HTML transferred:       6102640 bytes
Requests per second:    2.47 [#/sec] (mean)
Time per request:       1213.419 [ms] (mean)
Time per request:       404.473 [ms] (mean, across all concurrent requests)
Transfer rate:          149.59 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:   487 1202 436.0   1161    2113
Waiting:      487 1191 424.0   1161    2113
Total:        487 1202 436.0   1161    2113

Percentage of the requests served within a certain time (ms)
  50%   1161
  66%   1408
  75%   1454
  80%   1505
  90%   1745
  95%   1999
  98%   2079
  99%   2113
 100%   2113 (longest request)

After:
$ ab -n 100 -c 3 "http://localhost:5000/"
...

Document Path:          /
Document Length:        51375 bytes

Concurrency Level:      3
Time taken for tests:   27.278 seconds
Complete requests:      100
Failed requests:        98
   (Connect: 0, Receive: 0, Length: 98, Exceptions: 0)
Total transferred:      5231485 bytes
HTML transferred:       5138416 bytes
Requests per second:    3.67 [#/sec] (mean)
Time per request:       818.330 [ms] (mean)
Time per request:       272.777 [ms] (mean, across all concurrent requests)
Transfer rate:          187.29 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:   296  804 271.2    755    1530
Waiting:      296  745 249.0    747    1306
Total:        296  804 271.2    755    1530

Percentage of the requests served within a certain time (ms)
  50%    755
  66%    796
  75%    980
  80%   1096
  90%   1171
  95%   1231
  98%   1522
  99%   1530
 100%   1530 (longest request)

Great thinking! Yea, I guess those sections at the bottom of a bunch of other stuff (whether you are logged in or out), can move to client-side, for sure 👍
Does this have any pre-rendering/SEO implications? Might be worth checking there's any Reflection impact or something? That's the only thing I can think of when moving server -> client-side.
Looks like some legit ❌
Awesome work!

Cool, merge at will!

I've added a meta( name="fragment", content="!" ). It seems like this is the key necessary to have Reflection enable Javascript and render the entire page properly. I'll merge and see what it generates next time.

To be clear, Reflection will crawl and pre-render all the pages it knows about via sitemaps (including /). It's Google's bot that looks for the meta tag and makes a second request (with ?_escaped_fragment_= appended) for the pre-rendered HTML.

Got it. Thanks for the context!


[WIP] Rescript v11

Closes https://github.com/rescript-association/rescript-core/issues/132

cc @glennsl, do you have any thoughts on the changes in here?

@glennsl thank you for the feedback!  I'm thinking we can go 3 routes here.

Minimize the amount of helpers, removing most things that can now be done with pattern matching instead
Leave it as is now with only slight adjustments as needed
Extend the affected modules so that for example Null and Nullable have the same helpers available as Option, to the extent that's possible

What are your thoughts on that?

It's a bit hard to foresee how this is going to be used in practice I think. I can see people thinking this should just replace option, and it would then make sense that it offers the same functionality. But if I understand correctly there are subtle differences that will cause confusion if used as a direct replacement, such as with nesting and Value(Null) not being distinguishable from just Null. And so perhaps its use should be discouraged in favor of using option, which would point towards just treating them as raw values and minimizing the amount of helpers. I don't see a long-term case for just leaving it as-is, but short term it could make sense to see how things develop and reduce breakage in the meantime.
I wish I could offer something more helpful, sorry :neutral_face:

Good points. I lean towards that too - while this is convenient for interop, it's more worth focusing our efforts on option (which after all is the most idiomatic thing). So just leaving as is and seeing how it's used is a good path forward, and then we can revisit when we have more real world data.
Thank you for your thoughts!

Current plan is to soon merge and publish this under Core 1.x, and let current 0.x live on without full v11 support.

Superseded by https://github.com/rescript-association/rescript-core/pull/189


Update get-started.md

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


[PE-D][Tester C] Locating tutors by name does not accept numbers in keywords

The command inputted was find-t tutor 2 as I want to find the tutor with the name "tutor 2", however I am returned with all the tutors with the keywords "tutor".
Since name can accept alphanumeric characters, finding a tutor is encouraged to follow the format as well.

Labels: severity.Low type.FeatureFlaw
original: frrrrry/ped#2

The find command follows this format. However, the command works by finding tutors whose names match any of the keywords provided. In this case, all the tutors have the name "tutor" in them. That is why all 6 were displayed.

This is not a bug as find-t matches any of the keywords.
In this example, the keyword tutor has matched all of the listed tutors hence it displays them and not that the number is being ignored.


Recover expired requests on page focus

Feature request
Is your feature request related to a problem? Please describe.
JWT tokens expire frequently.
Requiring the user to reload the page to refresh the JWT token leads to a poor user experience.
Describe the solution you'd like

Automatically refresh the JWT token on page focus
Automatically refresh the JWT token on network recovery

SWR's fetching strategy could act as an inspiration.
Additional context
#33 the refresh token on page reload feature was implemented by @thorwebdev.
Perhaps you could chime in? 😄

@kiwicopple

This issue may be closed due to @phamhieu's great work!


Posenet Edge TPU

Hi,
I'm a little bit beginner and I'm looking for official posenet model (257) based on mobilenet for edgetpu (google dev board). Do you have such model please because I didn't find or I missed it in your repositories ?  :)
Thanks for help

https://github.com/PINTO0309/PINTO_model_zoo/blob/master/03_posenet/url.txt

No problem
I  used posenet with model from https://github.com/PINTO0309/PINTO_model_zoo/tree/master/03_posenet/03_posenet/03_integer_quantization
and compiled for edgeTPU
Thanks for the reply

committed
https://github.com/PINTO0309/PINTO_model_zoo/tree/main/003_posenet


Could not find file in device

I use RNFS.writeFile('/data/data/com.awesomeproject/files/test.txt','test','utf-8') method to create the 'text.txt' file. I can read the the file content by RNFS.readFile('/data/data/com.awesomeproject/files/test.txt','utf-8'),but I can not find the 'test.txt' file in my device . Where is the file in device?

Do u find the file in device?


Minor error in date formatting for payment reminder mail

Date was formated as b'12. mai 2016 kl. 13:30'.

https://github.com/dotKom/onlineweb4/blob/c43de3acc27b6429352d88668b14d81ca85d6d2f/apps/approval/tasks.py#L18


No readings

Hello.  I'm in the US and tried using this HA component, but when I setup the "device" in HA, it pulls the patient correctly, shows me info about the pump, but there are no CGM readings (Last glucose level mg/dl = unknown).
I tried logging in with follower account and patient account and same exact results.
Any thoughts?

Ok.  Found out that my wife's pump isn't connected the phone currently.  It got disconnected and is stuck "reconnecting to pump"..  This is why there is no "current" data.
So, now I have a feature request...   Would be nice if it would pull the last "known" numbers...  This is in the data file if I use the python client to download the data...  So, would be nice if it pulled the latest "known" number and time stamp when it was.  Once my wife's pump reconnects, I am hopeful this plugin will work and it will get the current numbers.  Meanwhile, I can create a new sensor to auto update with the latest number manually!

Hi @meluvalli, yes this is exactly how it works now. The disconnection of the pump, when batteries are dead or by bad connection, is a well known issue. I like the idea of keeping the latest know value of the most important sensors I't also very important to show the timestamp of this last measurement to prevent people from miscalculation with very old data.

Correct.  I would envision it having something like “current reading” and
then another value named “last known reading” or something like that so
they are very different.  That’s what I would recommend anyways.  Then both
with time stamps.
On Sun, Jan 14, 2024 at 7:50 AM Yo-han @.***> wrote:

Hi @meluvalli https://github.com/meluvalli, yes this is exactly how it
works now. The disconnection of the pump, when batteries are dead or by bad
connection, is a well known issue. I like the idea of keeping the latest
know value of the most important sensors I't also very important to show
the timestamp of this last measurement to prevent people from
miscalculation with very old data.
—
Reply to this email directly, view it on GitHub
https://github.com/yo-han/Home-Assistant-Carelink/issues/58#issuecomment-1890973397,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACCTHBDKL47FAKLNF6WQWPDYOPWCTAVCNFSM6AAAAABBZ7IJ72VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQHE3TGMZZG4
.
You are receiving this because you were mentioned.Message ID:
@.***>

Have you guys been able to figure out how to get a "last known reading" going? That would be great. I often don't know if it's the pump failing to connect, or if there's some kind of problem with the carelink integration.

I am testing some changes at the moment, including a new sensor that shows the timestamp of the last valid glucose reading.
As you can see, the reading is already 25 min old but is still shown. The "Last update" is the old sensor that basically just shows the 5min update periode from the pump.
That's what you were looking for, right?

Yep!  That sounds right!
Thank you!
On Fri, Feb 2, 2024 at 7:54 AM sedy @.***> wrote:

grafik.png (view on web)
https://github.com/yo-han/Home-Assistant-Carelink/assets/65983953/591090f5-9b2d-49c6-9f13-d0e7b9620da7
I am testing some changes at the moment, including a new sensor that shows
the timestamp of the last valid glucose reading.
As you can see, the reading is already 25 min old but is still shown. The
"Last update" is the old sensor that basically just shows the 5min update
periode from the pump.
That's what you were looking for, right?
—
Reply to this email directly, view it on GitHub
https://github.com/yo-han/Home-Assistant-Carelink/issues/58#issuecomment-1924044181,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACCTHBAE3FJTZPEX7NV3HPTYRT43ZAVCNFSM6AAAAABBZ7IJ72VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRUGA2DIMJYGE
.
You are receiving this because you were mentioned.Message ID:
@.***>

The new PR by @sedy89 is merged and released as a pre-release. If you like to test the release check the beta releases in Home Assistant for this add-on to try it out.

Thanks!  I have installed it, and will let you know how it goes once the pump hasn't updated...  (Probably when my wife replaces sensor with any luck)

Works perfectly!  THANK YOU!!!


Remove Rails 5 request spec params deprecation

Removes deprecations of the form:
DEPRECATION WARNING: ActionDispatch::IntegrationTest HTTP request
methods will accept only
the following keyword arguments in future Rails versions:
params, headers, env, xhr, as

Examples:

get '/profile',
  params: { id: 1 },
  headers: { 'X-Extra-Header' => '123' },
  env: { 'action_dispatch.custom' => 'custom' },
  xhr: true,
  as: :json

Unrelated build failure is unrelated. Something about installing phantomjs on travis...

Thanks Ben! With Kaigi prep I won't be able to dig into this until next week but thanks!

On Sep 5, 2016, at 17:46, Ben Lovell<EMAIL_ADDRESS>wrote:
Unrelated build failure is unrelated. Something about installing phantomjs on travis...
―
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Thanks ❤

Landed in 0.14.0


Added parsing for Brave Search Output

Made changes so that a fully typed JSON object is returned by Brave Search .
This fixes issue #771

[!IMPORTANT]
Parse Brave Search JSON output into SearchResult objects and update BraveSearchOutput to return a list of these objects.

Behavior:

search() in brave.py now parses JSON results into SearchResult objects.
BraveSearchOutput now returns a list of SearchResult instead of a single string.

Models:

Adds SearchResult model in brave.py with title, link, and snippet fields.
Updates BraveSearchOutput in brave.py to use List[SearchResult] for result.

This description was created by  for 61e813a463268c8804c1ee0db265813342d15710. It will automatically update as commits are pushed.

Damn! Thank you, this is super helpful. We are doing some internal changes but once done, happy to merge :)

@Vedantsahai18 - can you please take a look, test and merge if works?

@creatorrr @Vedantsahai18 I see that some checks are not successful. Do you need me to do something from my end, or is it due to the internal changes ??

@aarya-16 you need not add it from your end. I have pushed the internal changes that we pushed in your PR and will shortly merge it if all test passes.


runiq: add workarounds for building with Rust 1.80.0

Description of changes
This is a stop gap measure to make it build with current Rust in nixpkgs.
The issue is the time package which is a dependency of bson buried in the dev-deps of the package. So as a stop gap measure I disable the tests, until bson and jen are updated.
cc @figsoda
Things done
built using nix-build -A runiq on current master

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Turns out I overlooked that the version of jen used in runiq is outdated. Might not be too hard to fix this upstream after all

closing in favor of https://github.com/NixOS/nixpkgs/pull/338346


CRASH: Crash on startup after updating to 3.8.1

Checklist

[X] I am able to reproduce the bug with the latest version.
[X] I made sure that there are no existing issues - open or closed - which I could contribute my information to.
[X] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
[X] This issue contains only one bug, that only occurs in Squawker

Affected version
3.8.1
Steps to reproduce the bug
Install Squackwer
Run thenapp
Expected behavior
App displays goodies
Actual behavior
App crashes, does NOT display goodies
Screenshots/Screen recordings

Logs
squakwer3.8.1.txt
CRASH logs recorded with logcat reader.
Affected Android/Custom ROM version
Android 4.4.2
Affected device model
Samsung Galaxy Tab 4 7.0 3g (degas3g) running on a custom room based on stock (debloats) also rooted
Additional information
No response

The issue happens because this Squawker version was built with the latest stable Flutter version (3.19.5).
I could build a special KitKat version with the older stable Flutter version (3.16.9) that could be available on github.
Do you install Squawker from an apk built on github?

The issue happens because this Squawker version was built with the latest stable Flutter version (3.19.5), which now lacks complete support of Android 4.4.2 (KitKat). (Flutter is the development platform used to create Squawker). I could build a special version compatible with Android 4.4.2 with the older stable Flutter version (3.16.9), which stills supports completely Android 4.4.2, that could be available on github. Do you install Squawker from an apk built on github?

I got it from GitHub, yes.

In the next published release, along with the Squawker apk files there will be the KitKat Squawker apk files built for older Android KitKat (Version 4.4.x).

There is a build of the APKs fir Android KitKat (4.4.x) here.


Body missing - HTTP Error Code: 404

I am trying to retrieve particular messages. I am able to get item.subject, item.from.email, item.from.name but never item.body. Its throws 404 error.
Are there any options I need to set while instantiating the client or within get_folder() to get the email body? Or is there a different way to get this.
require 'viewpoint' include Viewpoint::EWS endpoint = "https://outlook.office365.com/EWS/Exchanger.asmx" user = 'xxx' pass = 'xxx' client = Viewpoint::EWSClient.new(endpoint, user, pass) inbox = client.get_folder(:inbox) inbox.items_between(Date.today-(i+5),Date.today-i).last.body
Viewpoint::EWS::Errors::ResponseError: HTTP Error Code: 404, Msg:
from /Users/ppatlola/.rvm/gems/ruby-1.9.3-p551/gems/viewpoint-1.0.0/lib/ews/connection.rb:112:in check_response'     from /Users/ppatlola/.rvm/gems/ruby-1.9.3-p551/gems/viewpoint-1.0.0/lib/ews/connection.rb:89:inpost'
from /Users/ppatlola/.rvm/gems/ruby-1.9.3-p551/gems/viewpoint-1.0.0/lib/ews/connection.rb:67:in dispatch'     from /Users/ppatlola/.rvm/gems/ruby-1.9.3-p551/gems/viewpoint-1.0.0/lib/ews/soap/exchange_web_service.rb:212:indo_soap_request'
from /Users/ppatlola/.rvm/gems/ruby-1.9.3-p551/gems/viewpoint-1.0.0/lib/ews/soap/exchange_data_services.rb:87:in get_item'     from /Users/ppatlola/.rvm/gems/ruby-1.9.3-p551/gems/viewpoint-1.0.0/lib/ews/types/item.rb:313:inget_item'
from /Users/ppatlola/.rvm/gems/ruby-1.9.3-p551/gems/viewpoint-1.0.0/lib/ews/types/item.rb:117:in get_all_properties!'     from /Users/ppatlola/.rvm/gems/ruby-1.9.3-p551/gems/viewpoint-1.0.0/lib/ews/types.rb:63:indeepen!'
from /Users/ppatlola/.rvm/gems/ruby-1.9.3-p551/gems/viewpoint-1.0.0/lib/ews/types.rb:135:in rescue in resolve_method'     from /Users/ppatlola/.rvm/gems/ruby-1.9.3-p551/gems/viewpoint-1.0.0/lib/ews/types.rb:128:inresolve_method'
from /Users/ppatlola/.rvm/gems/ruby-1.9.3-p551/gems/viewpoint-1.0.0/lib/ews/types.rb:26:in method_missing'     from (irb):234     from /Users/ppatlola/.rvm/rubies/ruby-1.9.3-p551/bin/irb:12:in'

I have not had your exact issue, but I was trying to connect to a similar endpoint, when I realised that my endpoint was incorrect (and returning a 404, even though the basic authentication was still being requested).
In the end, I changed Exchanger.asmx to Exchange.asmx


karpenter.sh/discovery tag on an EKS cluster -- what is it for?

Is an existing page relevant?
https://karpenter.sh/v0.8.1/getting-started/getting-started-with-terraform/
What karpenter features are relevant?
unsure
How should the docs be improved?
Can you address what the function of this code block does?
module "eks" {
  source          = "terraform-aws-modules/eks/aws"
...
  tags = {
    "karpenter.sh/discovery" = var.cluster_name
  }

I realize that subnetSelector and securityGroupSelector are meaningful in the provisioner such that the values must match the respective AWS resources for those selectors. However, I am unsure how Karpenter is affected if the value of the EKS tag karpenter.sh/discovery does not match the cluster name.
Thank you!

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

This doc may shed some more light on the selector fields in the AWS Cloud Provider: https://karpenter.sh/v0.8.1/aws/provisioning/#subnetselector
It's not required that you use the cluster name as the tag's value. It's also not required to use the karpenter.sh/discovery tag key. We use that just to make our documentation consistent and unique. You will need to ensure that whatever tagging scheme you're using on your resources doesn't cause Karpenter to selector subnets or security groups of multiple VPCs or clusters.

Hi @bwagner5 ,
Thank you so much for your response. I think I need to clarify in that I am asking about the function of the tag on the EKS cluster itself, not the tags on the subnets nor the security groups. Perhaps I am dense so apologies if I am misunderstanding the relationship here.
Thank you!

The tag has no affect on the EKS cluster itself. It's specified in the EKS Terraform module so that resources created by that module get that tag, but it doesn't matter if the cluster has the tag or not, just the subnets and security groups.

Okay awesome — thank you for confirming my suspicion. Can I make a small suggestion then to remove that segment from the eksctl and terraform getting started docs, or make the tag name something else so that it doesn't share the same name as the provisioner tags? Thanks again!

Well the tag is still required for the eksctl and terraform module runs and is required to be the same as in the Provisioner spec for securityGroupSelector and subnetSelector. Since eksctl creates the subnets, you need to pass eksctl the tag to add to the subnets so that the provisioner can use the same tag to select the ones created by eksctl.

Sorry, I just also noticed that cluster_security_group_tags isn't in the version of the EKS module you're currently specifying (<18). In finally reading the actual description of what tag does I see it's equivalent. I made the faulty assumption that tag only applied to the cluster only. Thanks again for all your responses.

Thanks for making this clear @bwagner5 . Fwiw, I feel like making it clear that karpenter.sh/discovery is just a tag key would be helpful. My first thought seeing an extension of .sh was that they key would be used to trigger a shell script somehow.


Getting error when using Button from third-party component library

React/React-dom version: 18.2.0
React-Menu version: 3.2.0

I am asked to use Icon button from cloudscape component library.
My code snippet is as follows:
    <Menu menuButton={<Button ariaLabel="add-new-item" iconName="add-plus" variant="inline-icon"/>}>
      <MenuItem>New File</MenuItem>
      <MenuItem>Save</MenuItem>
   </Menu>

It renders properly, however when I click on the button the following error occurred:
positionMenu.js:28 Uncaught TypeError: anchorRef.current.getBoundingClientRect is not a function
    at positionMenu (positionMenu.js:28:1)
    at MenuList.js:178:1
    at MenuList.js:248:1
    at commitHookEffectListMount (react-dom.development.js:23150:1)
    at commitLayoutEffectOnFiber (react-dom.development.js:23268:1)
    at commitLayoutMountEffects_complete (react-dom.development.js:24688:1)
    at commitLayoutEffects_begin (react-dom.development.js:24674:1)
    at commitLayoutEffects (react-dom.development.js:24612:1)
    at commitRootImpl (react-dom.development.js:26823:1)

Any idea how I can work around? I tried normal <button> and it works fine but it'd be great if I could use the button from the lib so as to keep UX consistency.

Hi @ericxinzhang , this is usually because the Button component from the UI library doesn't implement ref forwarding. You can wrap the component within a div:
<Menu
  menuButton={

      <Button
        ariaLabel="add-new-item"
        iconName="add-plus"
        variant="inline-icon"
      />

  }
>
  <MenuItem>New File</MenuItem>
  <MenuItem>Save</MenuItem>
</Menu>

Alternatively, you might create a reusable wrapper component of the Button:
const MenuButton = React.forwardRef((props, ref) => (

    <Button {...props} />

));

then use it normally:
<Menu
  menuButton={
    <MenuButton
      ariaLabel="add-new-item"
      iconName="add-plus"
      variant="inline-icon"
    />
  }
>
  <MenuItem>New File</MenuItem>
  <MenuItem>Save</MenuItem>
</Menu>


default mappings for cmdline  and  can be obstrusive

I added the mapping shown in the README below:
  cmp.setup.cmdline(':', {
    mapping = cmp.mapping.preset.cmdline(),
    sources = cmp.config.sources({
      { name = 'path' }
    }, {
      { name = 'cmdline' }
    })
  })

I ran into a problem when hitting <C-p> to select previous commands. As soon as I run into a command that triggers cmp to open the menu, preset.cmdline <C-p> mapping takes effect, and prevents me from scrolling onto previous commands. Instead, I scroll the different available completion items.
I don't know if this is an actionable issue, or what a solution to it might look like, but I found the default behavior to be somewhat unintuitive, so I thought I'd report it here.

This works for me
cmp.setup.cmdline(':', {
  mapping = cmp.mapping.preset.cmdline {
    ['<C-n>'] = cmp.config.disable,
    ['<C-p>'] = cmp.config.disable,
  },
  sources = cmp.config.sources({
    { name = 'path' }
  }, {
    { name = 'cmdline' }
  })
})

Right, I'm wondering if something like that should be the default?

You can also always abort the current completion using <C-e> and then <C-n/p> should do command history completion again.

Since neovim's wildmenu by default also uses <C-n> and <C-p> for navigating the completion (when wildmenu is currently active), I think nvim-cmp's defaults are fine and this issue can be closed.

I ended up with https://github.com/perrin4869/dotfiles/commit/e0ec314647f5420453ca74ce2daa13f07d743b4a


IA - Implementation of the "Create Instrument Addon from Configuration File.vi"  scripting API

[x] This contribution adheres to CONTRIBUTING.md.

What does this Pull Request accomplish?

Completed the Create Instrument Addon from Configuration File.vi part of the API
Created a test case for the Create Instrument Addon from Configuration File.vi API
Created a template Icon for the Instrument Addon Scripting API.lvlib ... to be modified if necessary

Why should this Pull Request be merged?
Implements part of the Instrument Addon Scripting API -> creating an Instrument Addon CD from configuration file. Adds a default Icon template for the Instrument Addon Scripting API.lvlib
What testing has been done?

Created a test case for the Create Instrument Addon from Configuration File.vi API. Tested locally

If the icon was modified for all those VI's, I'd prefer that change to be in a separate PR.

If the icon was modified for all those VI's, I'd prefer that change to be in a separate PR.

Sure

Did you update the files? I'm still seeing 57 changes, for some reason.

Hey Guys. Thank you for your feedback. I think reverting will take to much time in this case - some of the changes were made across multiple commits. I will close this PR and create a new one.

It makes more sense to start from the original project, and simply add the new files.


Caddyfile in directory listing

(Are you asking for help with using Caddy? Please use our forum instead: https://forum.caddyserver.com. If you are filing a bug report, please answer the following questions. If your issue is not a bug report, you do not need to use this template. Either way, please consider donating if we've helped you. Thanks!)
1. What version of Caddy are you running (caddy -version)?
Caddy 0.9.3
2. What are you trying to do?
Show directory listing in root what have no index file.
3.   What did you expect to see?
Caddyfile is hidden from directory listing, because it returns "404 Not Found"...

6. What did you see instead (give full error messages and/or log)?
Directory listing with Caddyfile.

7. How can someone who is starting from scratch reproduce this behavior as minimally as possible?
Caddyfile to directory root with browse enabled in Caddyfile.

You're right - browse plugin did not take into account hidden files :)


the error on run "npx tsc"

npx tsc
src/BlockVeins.ts:25:32 - error TS2345: Argument of type 'import("/home/gjb/DRL/Voyager/voyager/env/mineflayer/node_modules/mineflayer/node_modules/prismarine-block/index").Block' is not assignable to parameter of type 'import("/home/gjb/DRL/Voyager/voyager/env/mineflayer/node_modules/prismarine-block/index").Block'.
The types returned by 'getProperties()' are incompatible between these types.
Type '{ [key: string]: string | number | boolean; }' is not assignable to type '{ [key: string]: string | number; }'.
'string' index signatures are incompatible.
Type 'string | number | boolean' is not assignable to type 'string | number'.
Type 'boolean' is not assignable to type 'string | number'.
25           if (targets.includes(neighbor)) continue
~~~~~~~~
src/BlockVeins.ts:26:29 - error TS2345: Argument of type 'import("/home/gjb/DRL/Voyager/voyager/env/mineflayer/node_modules/mineflayer/node_modules/prismarine-block/index").Block' is not assignable to parameter of type 'import("/home/gjb/DRL/Voyager/voyager/env/mineflayer/node_modules/prismarine-block/index").Block'.
26           if (open.includes(neighbor)) continue
~~~~~~~~
src/BlockVeins.ts:28:21 - error TS2345: Argument of type 'import("/home/gjb/DRL/Voyager/voyager/env/mineflayer/node_modules/mineflayer/node_modules/prismarine-block/index").Block' is not assignable to parameter of type 'import("/home/gjb/DRL/Voyager/voyager/env/mineflayer/node_modules/prismarine-block/index").Block'.
28           open.push(neighbor)
~~~~~~~~
src/CollectBlock.ts:209:23 - error TS2345: Argument of type 'import("/home/gjb/DRL/Voyager/voyager/env/mineflayer/node_modules/prismarine-block/index").Block' is not assignable to parameter of type 'import("/home/gjb/DRL/Voyager/voyager/env/mineflayer/node_modules/mineflayer/node_modules/prismarine-block/index").Block'.
Type 'Block' is missing the following properties from type 'Block': setSignText, getSignText
209         await bot.dig(block);
~~~~~
Found 4 errors in 2 files.
Errors  Files
3  src/BlockVeins.ts:25
1  src/CollectBlock.ts:209
my version of Node.js is v20.11.1 and  npm is 10.5.0

I have the same error, but on Windows.
Node v20.11.1.
npm 10.2.4

Bump prismarine-block to 1.17.1
https://github.com/MineDojo/Voyager/pull/138#issue-2055259082

Thanks I had same issue and @jw1yuan's comment solved it

i solve it


Unable to scan QR Code on computer / phone display

Steps to reproduce

Display a QR Code on a smartphone or computer
Try to scan the code with this library
Fail

Expected behaviour
The code should be scanned
Actual behaviour
The code is not detected.
Environment

Node.js version: 5.4.1
React Native version: 0.20.0
React Native platform + platform version: iOS 9.1 (iPhone 6)

react-native-camera
Version: "master"
We also tested with a QR Code on paper, to make sure it wasn't reading anything at all. It scanned the QR Code on the paper insanely fast.

@Somojojojo Did you find a solution for this? I've been running into the same issue.

 The QR Code library I was using was generating the foreground and background colors in reverse, so the QR Code was essentially inverted.


Use babel-minify and tidy the readme

Thanks! I'll merge this.
Babel changes aren't even needed because its not used. Its a leftover from old version, should be completely removed from package.json.


You seem to only share the pt model, I would like to consult where to put this model to work

I downloaded your pt model and put it in the embeddings folder, but it doesn't work, is it my operation wrong?

Hi. so what the pt file does is collect the activations at every timestep and produce an edgemap from it (basically greyscale sketch). Then with that edge map, you would guide the images to be closer to the edges of the sketch. All of this is to say that someone would need to write code for inference. I'm working on that but it might be a while.

@ogkalu2 Hi. The LGP works as I just tried. Any progress on the inference step using the sketch?


fix: WebVTT line not correctly positioned in UITextDisplayer (#4567)

This PR intends to fix issue #4567.
As per spectification, here and there, my understanding is that a cue line with an optional alignment position end, e.g. line:91%,end, should have its bottom edge at 91% from the top of the screen.
But the current code places it at 91% from the bottom of the screen.

New screenshots have been generated in the private lab for all supported platforms.  When the GitHub test pass completes, I'll merge this PR.  Thanks!

Thanks for the fix, and thanks for your patience!

I'm glad to help, and I know it's how open source works. Thanks to you for your dedication.


garage: 0.9.4 -> 1.0.0

Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

You'll want to rebase on the latest master -- there was an issue that broke ofborg's ability to evaluate Nixpkgs that has since been resolved. Sorry for the inconvenience!

I wonder if this version bump should get a short mention in the 24.05 release notes?


Disable spellcheck and autocomplete on terminal input field

While testing on mobile, iOS tried to auto-correct my code input, which of course made no sense. We can disable this via the spellcheck and autocomplete attributes.

I also noticed that pasting was not possible on iOS (worked on Android). Anyone know why that might be the case?

I can confirm paste is not working in iOS. I'll create a separate issue.


Task Synchronization Design

Mutex
Semaphore

@engindurmaz Would you like to study task sync approaches?

Following link can be useful : http://percepio.com/2016/03/29/rtos-101-semaphores-and-queues/


Implement top-K datatype

https://icmi.cs.ucsb.edu/research/tech_reports/reports/2005-23.pdf

http://dspace.mit.edu/openaccess-disseminate/1721.1/73015
http://dmac.rutgers.edu/Workshops/WGUnifyingTheory/Slides/cormode.pdf

Hey @usmanm,
We started to implement an open source PostgreSQL extension for top-K using count-min sketch. It will be production quality once we are done. I wanted to let you know. So maybe you can benefit from it or use it as it is once we are done.
Here is the link to repo. It is under development currently.
https://github.com/citusdata/cms_topn
Best,
Metin

Hey @metdos, CMS is overweight at not appropriate for top-k in our opinion, so we're going to go with a more special-purpose approach.
Looking at your code, a lot of it is basically copied and pasted verbatim without attribution from our code anyways, so we wouldn't benefit from using any of it.

Hey @derekjn,
We'll certainly add attributions to PipelineDB. If it came across differently, that's our bad. If we miss relevant sections in a week, could you open an issue / send us an email?
I asked @metdos to post to this thread sooner rather than later (we don't even have a readme) to see if there was any value in collaborating between the two teams. Our intent with this project is to have this as an extension and make it available to the wider PostgreSQL audience.
For our customers, we found that CMS was good enough. Were you thinking of using a hybrid data structure that used different methods depending on frequencies (similar to the HyperLogLog extension)?
Best,
Ozgun

Hey @metdos, I think we're going to go for a counter-based rather than sketch-based solution for top-K. Counter-based methods are much more space-efficient, which for us is pretty important. Thanks for letting us know though!


Using It for Scene Reconstruction

Hello, thank you for your excellent work. I am not a researcher in this field; I simply want to use it to reconstruct a desktop scene by mutiview capturing RGB-D information through a camera and then performing the reconstruction. Could you give me some guidance? Do I need to retrain the model myself?

yes, you should train the model by yourself.
You can follow the multipleview training guidance to setup your dataset. The number of training camera should be more than 5 and remain fixed(if not, colmap will fail) Or you can prepare the dataset like Nerfstudio's dataformat.

好的，非常感谢！


Ensembl ID support

Description of new feature

Add support for Ensembl IDs.
If a user has Ensembl IDs in their input file, then the app should report those genes naturally in the sidebar.
E.g. if a user has ENSG00000232810 as a gene, then the UI should show the gene name ‘TNF’ (some popular synonym):  http://useast.ensembl.org/Homo_sapiens/Gene/Summary?g=ENSG00000232810;r=6:31575565-31578336
Suggestion:  Just use BridgeDB for now: https://www.bridgedb.org/
Future, if & as needed:  We may use gProfiler for ID mapping when old versions of the IDs are used: https://biit.cs.ut.ee/gprofiler/gost

Motivation for new feature

A significant proportion of users will use Ensembl IDs.
Users don’t know the IDs.  They can’t read IDs in the sidebar.  They need to see the common name.

I noticed the sample file from Ruth has Ensembl IDs in the first column and HGNC names in the second column. We wouldn't have to map the genes in that case if we asked the user to choose which column to use for gene names. (Note currently you have to click "ignore" in the class chooser for the HGNC column or it returns an error.) We could continue to mandate that the first column is gene name and use bridgedb to map the genes, the results would probably be the same. What do you think?

Ruth’s example is a bit of an ideal file from a course.  I a bit doubtful that a ‘real’ file would have both Ensembl and common names.  Probably, it would have one or the other.
General Ensembl/BridgeDB support might handle some edge cases transparently, but I haven’t thought about it that deeply yet.

Yeah. The client could just detect that the second column contains strings and auto-ignore it. I'm just going to continue with what I was doing.

What should we do if a Ensembl ID couldn't be mapped, remove it?
If so should we warn the user about genes that couldn't be mapped?

If it couldn't be mapped, then it could be one of the following cases:
(1) The ID is just invalid.
(2) The ID is valid and old, so BDB didn't pick it up.
We can't really differentiate (1) from (2) at this point, so it might be safest to keep the gene, display it by its ID in the panel, and log an error in Sentry so we can track it.

I'm not sure I agree. Mixing Ensembl and HGNC ids in the UI will look messy. Also we probably shouldn't pass the ensembl ids to the fgsea service because they won't be in any of the gene sets, and I'm not sure how that effects the algorithm.
Perhaps just remove the invalid IDs for now and log in sentry?
Maybe we could show an warning icon somewhere (toolbar, top of gene panel?) and when the user clicks it, it shows a tooltip that says something like "10 ids from input file could not be found". It would also be good to tell the user the IDs that were invalid and the line numbers in the input file, in case the user cares to fix the problem.

Let's discuss this tomorrow.  I agree that there's a balance to be struck between user intent, the algorithm, and UI feedback.

TODO empty empty network issue

Empty network issue: #46


Input parameter 'sym' in scipy.signal.gaussian not causing the effect as documented

Hello
Documentation says that sym in scipy.signal.gaussian toggles the output between being symmetric and periodic. The output is symmetric for either value of sym. Here is the test code:
from scipy import signal
import numpy as np
from matplotlib import pyplot as plt
nPts = 512
std = 32
win1 = signal.gaussian(nPts, std, sym=True)
win2 = signal.gaussian(nPts, std, sym=False)
plt.plot(range(nPts), win1, 'b-x')
plt.plot(range(nPts), win2, 'r-o')
plt.show()
There are small differences in the values of the output sequences generated, but the symmetry of the output is not affected.
Thanks
Ajay

question seems answered and the docstring currently says:
sym : bool, optional
    When True (default), generates a symmetric window, for use in filter
    design.
    When False, generates a periodic window, for use in spectral analysis.

seems reasonable enough and doesn't look like a bug, so closing


Not seeing parsed or gzip statistics, stat size only

Issue description
I'm seeing stat size, but not parsed or gzip information. Is there something special that needs to be configured to see those for a production build? Would this need to be configured elsewhere in webpack stats configuration or within webpack-bundle-analyzer?
Technical info

Webpack Bundle Analyzer version: 2.8.2
Webpack version: 2.6.1
Node.js version: 6.10.1
npm/yarn version: 4.4.4
OS: Windows 10

Debug info
Using as a webpack plugin with the following settings:
new BundleAnalyzerPlugin({analyzerHost: 'localhost'});

What other Webpack plugins were used?
uglify, html-webpack-plugin, extract-text-webpack-plugin

I met the same problem, look forward to a reply.

Hi, thanks for raising an issue! Seeing only stat sizes usually means that webpack-bundle-analyzer is not able to get access to your compiled bundles for some reason.
Do either of you get any error message logged to the console? For example, something like this?
Couldn't parse bundle asset "dist\version\1493729489528\js\app.js".
Analyzer will use module sizes from stats file

There could be a bug where webpack-bundle-analyzer is not able to parse your bundle assets, or it might not found the bundled JS files for some reason.
Are you able to create a stats.json with passing generateStatsFile: true setting to new BundleAnalyzerPlugin and then ZIP that and your compiled JS files over for me to check this out? If you don't want your source code to be posted in public, feel free to send the ZIP file over to me via email. My email address is visible in my GitHub profile.

I do not get any error or messages other than that Webpack Bundle Analyzer saved stats file and that it is started. Due to security I am unable to provide a stats file or source code.
I can tell you the general structure of bundled output:

dist
-- index.html
-- assets
--- js
---- app.js
---- app.js.map
--- css
---- app.css
---- app.css.map

Could you try applying generateStatsFile: true to your new BundleAnalyzerPlugin setup and posting the entire file structure of your bundle directory?
Please follow these steps to generate a full tree of your bundle directory:

Select your bundle output folder.
Press Shift, right-click mouse, and select "Open command window here".
Type tree /f /a | clip and press Enter.

You should now have the file tree in your clipboard. Could you paste it here?

dist
|   index.html
|   stats.json
|
---assets
+---css
|       app.3c5d4b10.css
|       app.3c5d4b10.css.map
|
+---fonts
|       fontawesome-webfont.674f50d2.eot
|       fontawesome-webfont.af7ae505.woff2
|       fontawesome-webfont.b06871f2.ttf
|       fontawesome-webfont.b8e85624.svg
|       fontawesome-webfont.fee66e71.woff
|
+---images
|       fontawesome-webfont.912ec66d.svg
|
---js
app.3c5d4b10.js
app.3c5d4b10.js.map
external.eaefbbfe.js
external.eaefbbfe.js.map

Thanks!
Things should work OK, I wonder what's up with webpack-bundle-analyzer not showing parsed and gzip sizes...
Could you try adding statsOptions: { source: false } alongside the generateStatsFile: true option to new BundleAnalyzerPlugin setup and zip over the stats.json file here?
You could double-check that it doesn't contain your source codes before that, though — with statsOptions: { source: false } option, the stats.json should not contain any of your sources but it isn't a bad idea to doublecheck if you're not able to send the sources :relaxed:
Could you also show me what the value of output.path is in your webpack config file?

output: path.join(process.cwd(), 'dist'),
stats.zip

I am unfortunately unable to replicate this error without your bundled files. I tried creating a reproduction case and even ran it in a Windows 10 virtual machine (I'm developing on macOS), and it still works.

Could you try running webpack-bundle-analyzer via the CLI?
node .\node_modules\bin\webpack-bundle-analyzer dist\stats.json

Does this still only give you the stat sizes?

There must be something wrong somewhere else in my configuration outside of the analyzer. If I attempt to run the CLI from a local install I get
C:\myco\workspaces\web\customer-ui\node_modules\.bin\webpack-bundle-analyzer:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^
SyntaxError: missing ) after argument list
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:393:7)
    at startup (bootstrap_node.js:150:9)

If I install the analyzer globally then the CLI works fine and I get all three stats correctly.

There must be something wrong somewhere else in my configuration outside of the analyzer. If I attempt to run the CLI from a local install I get

Ah yes, I think it is due to npm installing binaries on Windows wrapped in .cmd files, and I didn't know that. Instead of me asking you to call this:
node .\node_modules\.bin\webpack-bundle-analyzer dist\stats.json

...I should've asked you to try this instead:
.\node_modules\.bin\webpack-bundle-analyzer dist\stats.json

There seems to be lots of issues about this behavior when googling, and I even found one similar case in rimraf repository here: https://github.com/isaacs/rimraf/issues/107
Does it work without a global installation of the analyzer if you try calling the node_modules\.bin\webpack-bundle-analyzer without first calling node?

Seeing as the global installation works, there might be some problems with how the plugin works on your machine. There might be some conflict with another plugin or config setting that I just haven't heard of before.
Are you able to modify the node_modules/webpack-bundle-analyzer/lib/BundleAnalyzerPlugin.js file and add a console.log to the second argument passed to viewer.startServer (the options object) and tell me what it outputs for you? Especially the this.getBundleDirFromCompiler() output is interesting, as if something is wrong with that the plugin might misbehave.
Also have you at some point ever got a report that worked with an older version of the plugin before? Could you try the plugin with version 2.7.0 of webpack-bundle-analyzer?

@valscion
I get the same when i switch WBA to new BundleAnalyzerPlugin({ analyzerMode: 'static' })and suddenly the only option left is stat.

bundleDir appears to be null:
{
  openBrowser: true,
  host: 'localhost',
  port: 8888,
  bundleDir: null,
  logger: Logger { activeLevels: Set { 'info', 'warn', 'error', 'silent' } },
  defaultSizes: 'parsed'
}

@drcmda could you open a separate issue for your problem?
@MrHavard thank you for the analysis! This is what I feared was happening. Would you be able to create a minimal reproduction repository for this issue? I'm not really sure why this is happening, but it would be amazing to be able to replicate it myself to fix it :)

Sorry been too busy to get a repo together. Will try to do that soon.

And for the time being, you can also work around this by downgrading to v2.7.0. We'd still like to fix this, though :)

Just having this issue myself. Could bundleDir be set by a command line option?
I did notice that if I had my stat file placed into my dist folder and run webpack-bundle-analyzer off of that, it will display the other sizes correctly, so that could be a workaround.

@Ixonal Type webpack-bundle-analyzer --help in the command line to see all the answers.

derp... Sorry, should've noticed that earlier.

@Ixonal No problem =)

I can only see the stat size when running it with webpack dev server.

@PengyuanZhao it's how it should be because webpack dev server don't save output bundles in the real filesystem and there is nothing to parse.

I can only see the stat size when running it with webpack dev server.

@th0r How to solve it?

@warmhug, to see gzip and parsed sizes, don't use webpack-dev-server

@warmhug Or if it's not so hard, could you read my message right above yours?

@MrHavard Were you able to find some time to create a reproduction repo?

Think it's related this.
https://github.com/angular/angular-cli/issues/7057

I think this may have been a issue to @angular/cli as I'm now using 1.3.0-rc.5 and the problem seem to have gone away.

Having the same problems, could it be that webpack-bundle-analyzer just ignores the output.path config? If it would follow it, it would perfectly find my file.
webpack-bundle-analyzer -s stat webpack-build-log.json

Couldn't parse bundle asset "/Users/.../project-root/app.js".
Analyzer will use module sizes from stats file.

Webpack Bundle Analyzer is started at http://<IP_ADDRESS>:8888
Use Ctrl+C to close it

It tries to load the app.js from the root directory, while output.path is set to resolve(__dirname, 'dist')

Edit: Okay reading helps, I can just pass it as parameter. But, still, I'd love this to be an automated parameter <3

It is as automated as the CLI can be :) as it infers the directory from where your stats are.
I think that this issue is too vague as there seems to be multiple causes for this case. I'll close this issue for now. Everyone's free to open new specific issues with a proper bug report, if you think you've faced a bug :)


feat: error! output from behavior

Give an overview of the tasks completed
Closes #912
We could likely improve this further, but this was a quick fix that should at least let errors be visible.

looks like this changes the expected return type in the token requester test from an option<box<pin<stream>>> to just the box<pin<stream>>


Anders branch

Added alignment functionality
Added functionality for generating geotiffs of other polarizations as well

Since I created the pull request I have added yet another commit. This last commit make it possible to choose which polarizations one downloads using 'gtiff_s1_download.py' and 'asf_meta_download.py'.


[Script]: AI-driven AI Reversi

Aim
In this game, we'll implement a simple AI that can make moves in the Reversi game using the MiniMax algorithm with alpha-beta pruning.
Details
In this implementation, we create a basic AI for the Reversi game using the MiniMax algorithm with alpha-beta pruning. The AI will try to find the best move by looking ahead three moves into the future. However, you can adjust the depth of the search (variable depth) to increase or decrease the AI's strength. The game continues until there are no valid moves left for both players, and the winner is determined based on the number of discs on the board. The AI (BLACK) will make its move automatically, while the player (WHITE) can input their move row and column when prompted.
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSoC'23 contributor
[X] I want to work on this issue

/assign


Should multiple player tiles be supported?

The game has a significant amount of logic to handle the behavior of dead players purportedly to support having multiple player tiles on the board. This is a dubious game feature and many aspects can be simplified if this feature isn't needed.

Yes, multiple player tiles will be supported to create puzzles that involve manipulating multiple players at once


Regression model impossible to train a model

System Information (please complete the following information):

Model Builder Version: <IP_ADDRESS>5505
Visual Studio Version : 16.9.4

Describe the bug
This happen during the training for a regression model, the system is not able to parse correctly data on columns and throw errors
2021-05-06 16:01:51.7496 DEBUG Parsing failed with an exception: Could not parse value P in line 99, column PavedDrive
at Microsoft.ML.Data.TextLoader.Cursor.d__33.MoveNext()
at Microsoft.ML.Data.TextLoader.Cursor.MoveNextCore()
at Microsoft.ML.Data.RootCursorBase.MoveNext()
at Microsoft.ML.Data.IO.BinarySaver.RowsPerBlockHeuristic(IDataView data, ColumnCodec[] actives)
at Microsoft.ML.Data.IO.BinarySaver.SaveData(Stream stream, IDataView data, Int32[] colIndices)
at Microsoft.ML.Data.DataSaverUtils.SaveDataView(IChannel ch, IDataSaver saver, IDataView view, Stream stream, Boolean keepHidden)
at Microsoft.ML.BinaryLoaderSaverCatalog.SaveAsBinary(DataOperationsCatalog catalog, IDataView data, Stream stream, Boolean keepHidden)
at Microsoft.ML.ModelBuilder.AutoMLService.Experiments.LocalAutoMLExperiment.d__21.MoveNext() in //src/Microsoft.ML.ModelBuilder.AutoMLService/Experiments/LocalAutoMLExperiment.cs:line 120
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ML.ModelBuilder.AutoMLEngine.d__23.MoveNext() in //src/Microsoft.ML.ModelBuilder.AutoMLService/AutoMLEngineService/AutoMLEngine.cs:line 155 (Mic
To Reproduce
I use this csv file : https://github.com/mdfarragher/DSC/blob/master/Regression/HousePricePrediction/data.csv
The column to predict is SalePrice and the train time is 10s
I Start the train and I obtain the exception I extracted the trace here above.
Steps to reproduce the behavior:
Expected behavior
I expect the tool is able to parse the column without raising exception , or is it normal? Do we expect the dataset is clean and usable for the prediction?

I agree with you @apacifico. Thanks for the feedback!


Add support for COUNT, SUM, AVG, MIN, MAX

Adds support for COUNT, SUM, AVG, MIN, MAX aggregate functions.
This allows for queries such as SELECT  SUM(id), COUNT(label),         MIN(score), MAX(score),         AVG(score) FROM    ObjectDetectionVideos  JOIN    LATERAL FastRCNNObjectDetector         (data)  AS      V(label, bbox, score);

Integrated into #551


Reviewer information for each TR

There should be a way to add mapper details to each TR. Also if the TR has already been reviewed, along with the review status, reviewer name should be highlighted as well.
cc @planemad

@ramyaragupathy for simplicity, we can just add a text box for the user to enter their OSM username in the popup. This will get saved for each review.


screensaver?

When there is no meeting running, the stream deck now still shows some buttons and the clock.
Is there a risk of burnin? (The internet suggests that is at least a risk for older versions of the large stream deck, don't know about the mini.)
Could the Chrome extension just black out the buttons after some time without meeting?

This was more complicated than expected.
I did two things:

For the cases when we're still on meet.google.com, and the extension is running (because it only runs on meet.google.com as it injects itself into the page), look for the "More options" menu. This only shows up on a call or in the green room.  If the menu isn't there, don't paint anything and keep the buttons black.
Attempt to handle the unload/beforeunload events and clear the buttons.  This works sometimes.  It looks (i.e. I speculate) that if go from meet.google.com to a non-google domain, the JS interpreter gets destroyed pretty quickly, so the handler doesn't have time to run.  Another theory is that Meet or Chrome is over-eagerly closing the USB device, so we can't send any last commands.


Radio image option

Hi there,
It would be great sir if you can write the example to reproduce these options(conditional) in templates →
https://aristath.github.io/kirki/docs/controls/radio-image.html

Closing due to inactivity.


Readme fix

Purpose
Readme fix

Codecov Report
Patch coverage has no change and project coverage change: +1.14% :tada:

Comparison is base (892b3d0) 25.56% compared to head (13f06ab) 26.71%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1751      +/-   ##
==========================================
+ Coverage   25.56%   26.71%   +1.14%
==========================================
  Files         262       67     -195
  Lines       30324     4526   -25798
  Branches     5122     2315    -2807
==========================================
- Hits         7752     1209    -6543
+ Misses      22310     3317   -18993
+ Partials      262        0     -262

Flag
Coverage Δ

adapter
?

common-controller
?

config-deployer-service
26.71% <ø> (ø)

idp-domain-service
?

router
?

Flags with carried forward coverage won't be shown. Click here to find out more.
see 195 files with indirect coverage changes

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