text:
Update build configuration

The build configuration of this project is outdated and may no longer work.
This pull request will be merged automatically if there are no conflicts.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

repo: sealsystems/node-mongo


text:
Update build configuration

The build configuration of this project is outdated and may no longer work.
This pull request will be merged automatically if there are no conflicts.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

source: gharchive/pull-request

repo: sealsystems/node-tlscert

license: MIT

license_type: permissive

license_source: github-api


text:
Complete disk images are corrupt

Both of the zipped raspbian/OpenCV/rpotter disk images on raspberrypotter.net are corrupt and cannot be extracted. Is there any chance someone can upload a working copy?

Well, I take that back. Downloading both files multiple times in various ways and extracting or zip-recovery using various tools all fail on a linux machine. It seems to extract just fine on windows, however. Perhaps it's related to the fact that the zipped folder containing the image file is named the same thing as the file, extension and all? Either way, I'll just use Windows...

Hi @Chaemelion, I had the same issue (with the only file I see on raspberrypotter.net now). Most unzip tools found a problem with rpotter.dmg.zip and would not extract. However, the "Archive Utility" on OS X works, and extracts rpotter.dmg.  I was able to mount this image on OS X to see the "boot" and "RECOVERY" drives, but Etcher (the recommended SD burning utility) says there is an issue with this image (in both zipped and unzipped forms).
After much trial and error, I was able to use "Disk Utility" to convert the unzipped image to a compressed .dmg file.  Etcher is happy with this image.  Now, I just need to find a 16 GB microSD card laying around here...

source: gharchive/issue

authors: Chaemelion ShortCipher

repo: sean-obrien/rpotter

license: mit

license_source: bigquery


text:
Refined Horizontal Timeline View

ob-timeline
tags=now
type=flat
startDate=2024
endDate=2025
zoomInLimit=day
I'm not able to get the:
startDate=2024
endDate=2025
Have more configuration to display only 3 months instead of 12. I've already tried
startDate=2024-11-01
endDate=2025-01-01
startDate=2024/11/01
endDate=2025/01/01
Nothing works. Why?

That would be an oversight on my end. I'll push a release for this fix soon. Thanks for bringing it to my attention!

authors: gleyconJ seanlowe

repo: seanlowe/obsidian-timelines


text:
v0.11.4 compile error wasm target

I get compile error if trying to use reqwest v0.11.4. Build succeeds with reqwest v0.11.3.

error[E0277]: the trait bound Form: Clone is not satisfied
--> /home/test/.cargo/registry/src/github.com-1ecc6299db9ec823/reqwest-0.11.4/src/wasm/body.rs:24:15
|
24 |     Multipart(Form),
|               ^^^^ the trait Clone is not implemented for Form
|
= note: required by clone
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

Cargo.toml
[dependencies.reqwest] version = "=0.11.4" default-features = true features = ["json", "multipart"]
Reproduced with rustc versions:
rustc 1.55.0-nightly (e6b4c252e 2021-06-25)
rustc 1.53.0 (53cb7b09b 2021-06-17)
Build command:
cargo build --target wasm32-unknown-unknown

Ah yikes, thanks for the report! It's probably this line that was recently added. We should remove that derive, and change that clone method to a try_clone that matches on the inner type.
Do you want to try to make a PR with that fix?

authors: Saruniks seanmonstar

repo: seanmonstar/reqwest


text:
Setting Host header does not work when using HTTPS URIs with rustls-tls feature

Hi there,
I recently encountered an issue that seems to be related to the one discussed in this GitHub issue: https://github.com/seanmonstar/reqwest/issues/1536. While the solution presented in the thread works as expected for HTTP requests, I found that it doesn't work for HTTPS requests with rustls-tls feature enabled.
Here's an example code snippet that demonstrates the issue:
// in Cargo.toml
reqwest = {version = "0.11", default-features = false, features = ["rustls-tls"]}

// code
reqwest::Client::new()
    .get("https://httpbin.org/headers")
    .header(reqwest::header::HOST, "yolo")

The JSON response I get looks like this:
{
  "headers": {
    "Accept": "*/*",
    "Host": "httpbin.org",
    "X-Amzn-Trace-Id": "Root=1-641acc99-21abb63517c39e9758cf3997"
  }
}

As you can see, the Host header is not being set correctly, and the value of "yolo" is being overridden by the default value of "httpbin.org".

Is it that the header isn't sent? Or maybe httpbin  sees it from the SNI part of the TLS handshake.
You could inspect with the connection_verbose option.

Thank you for your quick response.
I captured the request, and you are correct - the host was not sent.

Additionally, here is the log with the connection_verbose option.
[2023-03-23T03:27:25Z TRACE reqwest::connect::verbose] 5722b852 write: b"PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"
[2023-03-23T03:27:25Z TRACE want] signal: Want
[2023-03-23T03:27:25Z TRACE want] signal found waiting giver, notifying
[2023-03-23T03:27:25Z TRACE reqwest::connect::verbose] 5722b852 read: b"\0\0\x12\x04\0\0\0\0\0\0\x03\0\0\0\x80\0\x04\0\x01\0\0\0\x05\0\xff\xff\xff\0\0\x04\x08\0\0\0\0\0\x7f\xff\0\0"
[2023-03-23T03:27:25Z TRACE want] poll_want: taker wants!
[2023-03-23T03:27:25Z TRACE reqwest::connect::verbose] 5722b852 write: b"\0\0\x12\x04\0\0\0\0\0\0\x02\0\0\0\0\0\x04\0 \0\0\0\x05\0\0@\0\0\0\0\x04\x01\0\0\0\0\0\0\x04\x08\0\0\0\0\0\0O\0\x01"
[2023-03-23T03:27:25Z TRACE want] signal: Want
[2023-03-23T03:27:25Z TRACE reqwest::connect::verbose] 5722b852 write: b"\0\0\x1e\x01\x05\0\0\0\x01\x82\x87A\x88\x9d)\xae3T\xb9\xec\x9b\x04\x86br\x8eB\xd8\x8ff\x83\xf4z\x0fS\x83\xf9c\xe7"
[2023-03-23T03:27:25Z TRACE reqwest::connect::verbose] 5722b852 read: b"\0\0\0\x04\x01\0\0\0\0"
[2023-03-23T03:27:25Z TRACE reqwest::connect::verbose] 5722b852 read: b"\0\0q\x01\x04\0\0\0\x01\x88a\x96\xdf=\xbfJ\t\x954\x0e\xc5\x04\x012\xa0\x19\xb8'n\t\xb51h\xdf_\x8b\x1du\xd0b\r&=LtA\xea\\\x03139\0\x85Al\xee[?\x8b\x9a\xda\x8cC\xd9S\x01}w\xd7\x07\0\x93\x19\x08T!b\x1e\xa4\xd8z\x16\x1d\x14\x1f\xc2\xc7\xb0\xd3\x1a\xaf\x01*\0\x96\x19\x08T!b\x1e\xa4\xd8z\x16\x1d\x14\x1f\xc2\xc4\xb0\xb2\x16\xa4\x98t#\x83M\x96\x97\0\0\x8b\0\0\0\0\0\x01{\n  \"headers\": {\n    \"Accept\": \"*/*\", \n    \"Host\": \"httpbin.org\", \n    \"X-Amzn-Trace-Id\": \"Root=1-641bc71d-34c5a2e456c7e33554dda319\"\n  }\n}\n\0\0\0\0\x01\0\0\0\x01"
Response { url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("httpbin.org")), port: None, path: "/headers", query: None, fragment: None }, status: 200, headers: {"date": "Thu, 23 Mar 2023 03:27:25 GMT", "content-type": "application/json", "content-length": "139", "server": "gunicorn/19.9.0", "access-control-allow-origin": "*", "access-control-allow-credentials": "true"} }
[2023-03-23T03:27:25Z TRACE want] signal: Closed

Oh, that makes sense. It used HTTP/2, and that protocol does not use the host header.

That's new to me😯, I will build the client with the only_http1 option. Thank you!

authors: seanmonstar wongsean


text:
In applicant experience, change language from "Anonymous Applicant" to "Guest"

Feedback that "Anonymous Applicants" is a strange term and "Guest" would be preferred.

@azizova-leyla and I will take a look at this.

repo: seattle-uat/civiform


text:
Update the section about event handling on the user guide.

In particular, the callbacks for event handling are no longer present on ncollide 0.14.

This is already fixed.

repo: sebcrozet/ncollide


text:
Update nalgebra/ncollide to 0.12

No changes were required.  Should we open the version bounds to include 0.11?

Seeing as the current release targets 0.13, I think this can be closed.

authors: Ralith corngood

repo: sebcrozet/nphysics


text:
Make sure we aren't downscaling if disabled in the config

I ran into an issue today where the autoscaler still decided to downscale my table despite being disabled in the config. Turns out that the autoscaler will ignore this setting if it wants to downscale a table to bring it down to the max. I figured this was not intentional, so I made a check for downscaling being disabled right before the throughput is going to get changed to prevent something like this from happening.

@sebdah ping? :)

Thanks again @Sazpaimon! I have merged and released this now in version 2.2.1

authors: Sazpaimon sebdah

repo: sebdah/dynamic-dynamodb


text:
fix: 🐛 including types in build

Types were added incorrect and weren't included in build. They are now exported correctly and included.

👋 Thanks for creating a pull request! 🚀 Checkout the storybook we've created for it: react

authors: sebopensource vsjolander

repo: sebgroup/green


text:
radio_off.cs

araca bindiğinde radyoyu kapatır
https://www.upload.ee/files/14331441/radio_off.cs.html

Zaten ekli.


text:
通过k3s启动的容器特权模式不生效

Issue Type
Others
Search for existing issues similar to yours
Yes
Kuscia Version
main
Link to Relevant Documentation
No response
Question Details
我准备在secretpad集成环境（allinone）下，启动支持sgx的CapsuleManager试试，发现启动后无法加载sgx设备，后来增加了特权模式，依然是相同的错误。

下面是特权模式不生效的复现.
在已有的tee namespace下的CapsuleManager 增加特权模式
      containers:
        - name: capsule-manager-sim
          image: docker.io/secretflow/capsule-manager-sim-ubuntu20.04:v0.1.0b0
          imagePullPolicy: Never
          securityContext:
            privileged: true
          ports:
            - containerPort: 8888
      dnsPolicy: ClusterFirst
      enableServiceLinks: true

启动后进入容器，进行特权操作：iptables -L
# # # # iptables -L
iptables v1.8.4 (legacy): can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.

部署方式是什么样的？docker还是k8s？具体报错信息是什么？

部署方式是什么样的？docker还是k8s？具体报错信息是什么？

感谢回答。
中心化部署方式，部署指引：https://www.secretflow.org.cn/zh-CN/docs/secretpad/v0.10.0b0/deployment/master
报错：
当前提供的是仿真模式的枢纽模式的计算方式，我试着改成sgx模式下的。于是部署好了之后，准备将在tee namespace下的CapsuleManager替换成sgx下的CapsuleManager。我确认了kuscia在启动的时候，tee节点已经增加了privileged参数，tee容器内部可以看到sgx设备。剩下的就是在k3s下启动CapsuleManager时增加privileged权限（其他地方已经修改了，比如pccs配置）。发现在k3s启动sgx模式的CapsuleManager报错，报错如下：
[get_driver_type edmm_utility.cpp:116] Failed to open Intel SGX device.
[open_se_device edmm_utility.cpp:178] Failed to open Intel SGX device.
[get_driver_type /home/sgx/jenkins/ubuntuServer2204-release-build-trunk-224/build_target/PROD/label/Builder-UbuntuSrv2204/label_exp/ubuntu64/linux-trunk-opensource/psw/urts/linux/edmm_utility.cpp:116] Failed to open Intel SGX device.
[ERROR] occlum-pal: Failed to create enclave with error code 0x2006: Invalid SGX device. Please make sure SGX module is enabled in the BIOS, and install SGX driver afterwards. (line 152, file src/pal_enclave.c)
为什么认为是权限不足的问题。有两个原因：

我进入了CapsuleManager容器内，无法执行root该有的权限指令，比如查看/dev下的设备，只有少量可用的。而通过docker直接启动的时候增加privileged权限后，可以看到物理机/dev下的全部设备。
进入CapsuleManager容器内，无法执行iptables -L操作。而通过docker直接启动的时候增加privileged权限后，可以执行该操作。
同样的参数下，我使用docker-compose启动，sgx模式下的CapsuleManager可以正常启动。

问题：如何能够在k3s给pod增加privileged特权？目的是让pod（CapsuleManager和teeapp）能够使用sgx的设备，能够正常启动。

是否支持sgx呢？ls /dev | grep sgx看下？

是否支持sgx呢？ls /dev | grep sgx看下？

可以确认机器支持sgx，已经跑通了Trustedflow的全部步骤。现在基本上已经定位到了是上面描述启动的CapsuleManager没有获得特权模式（privileged没生效），现在想知道kuscia下是不是对k3s做了权限的限制，通过k3s启动的pod没有办法获得特权模式。
可以忽略sgx相关操作，现在是k3s启动的pod不仅仅sgx设备用不了，特权模式下的操作都做不了，比如iptables -L

需要在 kuscia.yaml 中开启特权容器开关，并且重启kuscia 节点生效
agent:
allowPrivileged: true

需要在 kuscia.yaml 中开启特权容器开关，并且重启kuscia 节点生效
agent: allowPrivileged: true

解决了，感谢

authors: GreenYang5277 yushiqie zimu-yuxi

repo: secretflow/kuscia


text:
spu设备的声明

请问spu设备在申请时传递的这个参数是给这个spu起的名字吗？还有其他申请spu设备的方法吗？

sf.utils.testing.cluster_def是一个用来快速构建spu config的helper，你可以手动构建runtime_config，参见SPU RuntimeConfig。例如：
{
    'nodes': [
        {
            'party': 'alice',
            'id': 'local:0',
            'address': '127.0.0.1:9001',
            'listen_address': '' # Optional. Address will be used if listen_address is empty.
        },
        {
            'party': 'bob',
            'id': 'local:1',
            'address': '127.0.0.1:9002',
            'listen_address': ''
        },
    ],
    'runtime_config': {
        'protocol': spu.spu_pb2.SEMI2K,
        'field': spu.spu_pb2.FM128,
        'sigmoid_mode': spu.spu_pb2.RuntimeConfig.SIGMOID_REAL,
    }
}

好的，感谢清晰明了的解答。

repo: secretflow/secretflow


text:
Document Your code with JSDoc

Proposed title of article
Getting started with JSDoc
Introduction paragraph (2-3 paragraphs):
JSDoc is a JavaScript Documentation Generator API that yields documentation for your JavaScript code. JSDoc documents your modules, libraries, data types, classes, methods and parameters. When writing your code, you need to add comments then JSDOC scans the comments and generates an HTML website for your documentation.
In this article, we will go over the use of JSDoc to generate a documentation for code snippets we will write. We will understand how to generate documentation for classes, methods, objects, variables and modules used in a program.
Key takeaways:

What is JSDoc ?
Initializing JSDoc
Writing comments usable with JSDoc in JavaScript programs
Generating code documentation with JSDoc

References:
Please list links to any published content/research that you intend to use to support/guide this article.
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

Great topic, @phinaomondi. Topic suggestion approved.
Thanks for submitting your article and we look forward to reviewing and hopefully publishing it. I’m sure our readers will enjoy and find your article on JSDoc very beneficial.


text:
[DevOps] Why DevOps Need Application Release Orchestration

Proposed title of article
Why DevOps Need Application Release Orchestration
Proposed article introduction
DevOps coordination is focused on the automation of a large number of tasks that can run at the same time. Therefore, We can say that, without release orchestration, DevOps cannot truly and completely be implemented.
Release orchestration simplifies and automates manual, repetitive tasks, contributing to lower costs, reducing time-to-market, and greater transparency in the software development and delivery cycle.
In this post, will discuss why Application Release Orchestration (ARO) matters, who it benefits, and top ARO tools. We will also discuss No-Code DevOps Orchestration and how it promotes delivery.
Key takeaways

Why ARO matters.
Who does ARO benefit?
No-Code DevOps Orchestration
Top ARO tools.

Article quality
My article covers additional topics and is more in-depth.
References
Please list links to any published content/research that you intend to use to support/guide this article.
N/A

Good afternoon and thank you for submitting your topic suggestion.
Your topic form has been entered into our queue and should be reviewed (for approval) as soon as a content moderator is finished reviewing the ones in the queue before it.

Good topic @Snzovi - approved. Make sure your article is unique and adds to what is already available in official documentations and other sources.

authors: Kayere Snzovi ahmadmardeni1


text:
[Android]Localization and internationalization in android

[Android]Localization and internationalization in android
introduction
Android is used on a wide range of devices in a variety of countries. Your app should handle text, audio files, numbers, money, and visuals in ways that are acceptable to the locations where your app is utilized to reach the most customers.
This article will go through the Android localization process in great depth, as well as how to apply best practices to your translation efforts.
Key takeaways
The key takeaways are:-

localizing strings,images and simple media
understanding localization resources in android
organizing resources with configuration types and qualifiers
providing localized resources considering various factors
understanding how SDK deals with your localized resources
Applying best practices to your localization app effort

Article quality
This article will aim to guide readers on the best practices to apply on a localized app and show the relevant and best way to perform localization in android application and resources.
References
N/A

Good topic @nia-vee - Approved. Please make sure your topic is unique and adds value to what is available in the official documentation.

Closed #5011 via #5554

authors: Kayere WanjaMIKE nia-vee


text:
[Android] Navigation in Jetpack Compose

Navigation in Jetpack Compose
Introduction
Navigation is a Jetpack library that enables navigating from one destination within your app to another, along specific routes. The Navigation library also provides a specific artifact to enable consistent and idiomatic navigation within screens built with Jetpack Compose
You can navigate between composables while taking advantage of the Navigation component’s infrastructure and features.
Key takeaways

Navigating between composables
Navigating with required and optional arguments
Navigating using deep links
Testing navigation

Article quality
This article will focus on demystifying Jetpacks' navigation within composables. This article will help a reader gain firm knowledge and skills on navigating in compose. It will be easy to follow along for newbies in compose.
References

Jetpack Compose Navigation Documentation

Unfortunately, this topic appears to be well-covered in the official documentation. Feel free to suggest another topic. Thanks

authors: WanjaMIKE essy-shiro


text:
Build a Notes App API with Django REST Framework and MongoDB

Article checklist
NOTE: (Please ensure that you have only one open issue + linked pull request at a time. This will ensure that we complete the article in a timely manner from inception to publishing.)
Preliminary Checks - Formatting and Structure

[x] Does your article follow any of the suggested structure formats? - see example formats
[x] Is your article properly formatted in Markdown? - see Github Markdown guide
[x] Have you used the correct folder and file structure? - see Contribution Guidelines
[x] Is your article over 750 words? - Tool: Wordcounter.net
[x] Have you used our preferred heading structure? - H3 (###) and up
[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.
[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.
[x] Have you included a hero image that is 600x400 pixels and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images
[x] In your PR - add a comment that states ["This fixes #1881"] to link and close your Idea Content (issue) when the PR is merged.

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid -  Grammarly
[x] Please place your article through a 3rd party plagiarism checker? We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide

Contribution guidelines
For first-time contributors and for more details, see Contributing Guidelines

@J-rayX Please create an author folder. You can look at the authors folder for examples. Also add a hero.jpg/hero.png in your article folder to be used as article cover image.
Also rename your article markdown file to index.md.

@J-rayX Please create an author folder. You can look at the authors folder for examples. Also add a hero.jpg/hero.png in your article folder to be used as article cover image.
Also rename your article markdown file to index.md.

I already included the hero.jpg in my last commit

I now have the author profile created (https://github.com/section-engineering-education/engineering-education/commit/d714b7e0268131f13ee0977bc4efbf1fde9d3703) and
I have renamed the article to index.md (https://github.com/section-engineering-education/engineering-education/commit/93876da32ce455616a3711e943d3af007ecbd5b1)

I have done the edits and fixes as specified. @geoffrey45
Thank you.

I have done the edits and fixes as specified. @geoffrey45
Thank you.

@J-rayX You have not committed anything to yet?

Hi, @geoffrey45 it was an unforeseen Git error that prevented the update. I have fixed and the commit is up now. Thanks for the patience.
Here: (https://github.com/section-engineering-education/engineering-education/pull/2073/commits/e0285732a14adcbeb4c94312360b82036ce9db6f)

Hi, @geoffrey45 it was an unforeseen Git error that prevented the update. I have fixed and the commit is up now. Thanks for the patience.
Here: (https://github.com/section-engineering-education/engineering-education/pull/2073/commits/3b3573cc89517b078001302d6996a5f52218bf06)

Build a Notes App API with Django REST Framework and MongoDB #2073.pdf
@J-rayX
Upon running your article through our 3rd party plagiarism checker it seemed to raise a few flags and the % was higher than we typically accept.
Please see attached PDF - and revisit the article to ensure we are contributing wholly unique and original content.
Be sure to see our resources page to see more info on plagiarism and what is considered as such.

great work gents @J-rayX
very nice article - easy to follow along 👍
cc @geoffrey45

Thank you @geoffrey45 and @hectorkambow. You guys are wonderful!
On to the next!

https://www.section.io/engineering-education/django-rest-api-mongodb-notes-app/

authors: J-rayX geoffrey45 hectorkambow


text:
Multivariate time series using Auto ARIMA

Article checklist
Attention
Our Peer Reviewer and Content Moderator teams do NOT provide any revisions services. All revisions and edits should be completed on your own forked repo (as to not take up room in the queue) in order for our team to review them all in a timely manner.
ANY ARTICLE SUBMITTED WITH GLARING ERRORS WILL BE IMMEDIATELY CLOSED.

As a rule of thumb - please be sure to only submit articles (pull requests) that are fully polished and ready to be published. Be sure to go through our resources documents for extra and 3rd party (vetted) resources to help improve overall technical writing.

Pre-submission checks

Please ensure that you have only one open topic suggestion (issue) + in-review article (linked pull request) at a time. This will ensure that we complete the review process in a timely manner from inception to publishing

If you have not already, please go over our Resources Page for more tips and tricks on how to improve your overall technical writing so reviews are swifter, increase the chance of a payout and provide more value to our readers.

For first-time contributors and for more details on our submission guidelines, see our Contributing Guidelines.

Formatting and structure checks

[x] Have you used the correct folder and file structure? - see Contribution Guidelines

[x] Is your article properly formatted in Markdown? - see Github Markdown guide

[x] Have you used our preferred heading structure? - H3 (###) and up

[x] Does your article follow any of the suggested structure formats? - see example formats

[x] Is your article over 750 words? - Tool: Wordcounter.net

[x] Is the article you are submitting an in-depth and unique article? Does it go beyond what is in the official docs and what is covered in other blog sites. See these articles as examples.

[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.

[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.

[x] Have you included a hero image that is 600x400 pixels, under 300KB in size, and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid - Grammarly
[x] Please place your article through a 3rd party plagiarism checker. We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide
[x] Have you checked your code runs correctly and you've highlighted all necessary dependencies for installation?
[x] Are the software programs and packages you're highlighting in your article up to date, using current versions and not deprecated?

Topic suggestion this closes

Remove the backticks and add the issue number below to link and close your Topic Suggestion (issue) when your article has been published (PR has been merged). See this video for more details.

This closes #6995

Finally, delete the article checklist notes in blockquotes and submit your PR. We look forward to reviewing your article.

Hello @hectorkambow, I have updated my article to remove the similarities that were in the introduction part.
This PR is a duplicate of #7239.

Plagiarism check complete

@Bayler can we get an update on this PR?
It may just be the labels that need to be updated?
Just want to make sure no extra edits are needed?

@jamesomina99 Please take note of all the commits made in this tutorial to better your next article.

We will be reviewing this (& publishing if it is ready) ASAP.


text:
Support for .NET framework 4.7

I was having issues with getting it to work with .NET framework.
The problem was that some code was not available for .NET 5 and below.
I managed to fix it with the code below:
private static Lazy<X509Certificate2> KvkCertificate = new Lazy<X509Certificate2>(() => LoadCertFromEmbeddedResource(CUSTOM_ROOT_CERTIFICATE_FILENAME));

private static Lazy<HttpClient> _httpClient = new Lazy<HttpClient>(InitializeKvkHttpClient);

public static HttpClient GetHttpClient() => _httpClient.Value;

private static HttpClient InitializeKvkHttpClient()
{
	var client = new HttpClient(CreateHttpHandler());
	client.BaseAddress = new Uri("https://api.kvk.nl/");
	client.DefaultRequestHeaders.Add("apikey", API_KEY);
	return client;
}

/// <summary>
/// Creates a HttpHandler that loads the (root) embedded certificate.
/// </summary>
/// <remarks>
/// The included (root) certificate are in the ./Certs folder, but compiled as embedded resource.
/// Many thanks to https://github.com/dotnet/runtime/issues/39835
/// </remarks>
public static HttpClientHandler CreateHttpHandler()
{
	var handler = new HttpClientHandler();

	handler.ServerCertificateCustomValidationCallback = ValidateCertificate;

	return handler;
}

private static X509Certificate2 LoadCertFromEmbeddedResource(string filename)
{
	var assembly = Assembly.GetExecutingAssembly();
	var resourceName = filename;

	var bla = assembly.GetManifestResourceNames().Single(x => x.EndsWith(filename));

	using (Stream stream = assembly.GetManifestResourceStream(bla))
	using (var memoryStream = new MemoryStream())
	{
		stream.CopyTo(memoryStream);
		var bytes = memoryStream.ToArray();
		return new X509Certificate2(bytes);
	}
}

private static bool ValidateCertificate(HttpRequestMessage request, X509Certificate2 certificate, X509Chain certificateChain, SslPolicyErrors policy)
{
	var validRootCertificates = new[]
	{
		KvkCertificate.Value
	};

	if (certificateChain.ChainStatus.Any(status => status.Status != X509ChainStatusFlags.UntrustedRoot))
	{
		return false;
	}

	foreach (var element in certificateChain.ChainElements)
	{
		foreach (var status in element.ChainElementStatus)
		{
			if (status.Status == X509ChainStatusFlags.UntrustedRoot)
			{
				// improvement: we could validate that the request matches an internal domain by using request.RequestUri in addition to the certicate validation

				// Check that the root certificate matches one of the valid root certificates
				if (validRootCertificates.Any(cert => cert.GetRawCertData().SequenceEqual(element.Certificate.RawData)))
				{
					continue; // Process the next status
				}
			}

			return false;
		}
	}

	// Return true only if all certificates of the chain are valid
	return true;
}

Maybe this code will help anyone encountering this issue in the future.

repo: securancy/kvk-api-dotnet


text:
assert_bitvector_by

One pain for assert_bit_vector is that it is not helpful for proving properties about local variables. Although it can be used as assert_bit_vector( (local_var == definition) >>= (assert_expr)), this give bad readability, and sometimes made me error-prone around parenthesis(especially when assert_expr has && or ||). Although this pain can be relieved by using bit-vector function mode, making the lemma function can be tedious work.
assert_bitvector_by uses a similar format to assert_nonlinear_by, but without the proof body.
For example:
fn concat_bits(b1: u32, b2:u32) -> u64 {
    ensures(|ret:u64| ret == (b1 as u64) * 0x100000000 + (b2 as u64));
    let b:u64 = (b1 as u64) << (32 as u64) | (b2 as u64);
    assert_bitvector_by({
        requires(b == (b1 as u64) << (32 as u64) | (b2 as u64));
        ensures(b == (b1 as u64) * 0x100000000 + (b2 as u64));
    });
    b
}

I plan to adapt to the new syntax for this pr:
for  assert(...) by (bit_vector),  it cannot take the requires block at this point, but it would be pretty helpful for quick inlined proofs. This PR will make it possible to take the requires block for bit-vector assertions.
For example:
assert(a == b) by (bit_vector)
    requires
        a & sub(1u32 << 32,1) == b & sub(1u32 << 32,1),
{}

This would make the assert(...) by(...) syntax more consistent with assert(...) by (nonlinear_arith)
I would like to deprecate the previous assert_bit_vector, but the users with new syntax will not notice any change.

For the new syntax, assert(...) by(bit_vector), it is now translated into this new assert_bitvector_by.
I didn't remove assert_bit_vector on the user side, but it is internally translated into assert_bitvector_by.
There are example/test cases that use assert_bit_vector inside locally defined macros; updating it to the new syntax was not very trivial (for example, at example/extensionality.rs).

Rather than having to write:
assert(a == b) by(bit_vector)
    requires
        a & sub(1u32 << 32, 1) == b & sub(1u32 << 32, 1),
{}

I think we should be able to write:
assert(a == b) by(bit_vector)
    requires a & sub(1u32 << 32, 1) == b & sub(1u32 << 32, 1);

This requires a small change to verus_syn, which I can make after the pull request is merged.

I think we should be able to write:
assert(a == b) by(bit_vector)
    requires a & sub(1u32 << 32, 1) == b & sub(1u32 << 32, 1);

This requires a small change to verus_syn, which I can make after the pull request is merged.

Ok, I just pushed this change to main.

repo: secure-foundations/verus


text:
style(Button): add selected class to callToAction Button

Adding selected class to callToAction Button
please refer to https://trello.com/c/v3a2z0O6

@kenttan0214 it's already there

repo: seekinternational/seek-asia-style-guide


text:
Implement higher fidelity Gaia modelling

This issue outlines my plan for higher fidelity modelling of Gaia data, either as part of the HGCA modelling or by itself.
Currently our HGCA likelihood models the Gaia and Hipparcos catalog measurements by averaging the instantaneous proper motion and position of the star 25 times during each of the Hipparcos and Gaia missions.
Recently, I merged full Hipparcos IAD modelling. I'd like to develop higher fidelity Gaia modelling to match.
After reviewing Orvara and Orbitize, I see that they model the Gaia catalog values by:

using scan epochs and angles estimated by GHOST
calculating the perturbation only from any planets (not the full sky path)
fitting a straight line in least squares sense in order to get delta position and proper motion
compare these delta positions and proper motions to the HGCA

These choices are certainly defensible and are better than what we currently do with Octofitter. Still, I find the approach a little bit unsatisfying and think we could implement an even-further improved version in the following ways:

use our AbsoluteVisual type to calculate the full sky path, accounting for spherical coordinates, perspective acceleration, changing parallax, light travel time, and perturbations from planets given each parameter draw
after getting the model sky path with all disturbances etc, fit a true sky path model (using the same simplified model that Gaia does)
take the computed best fitting position and PM and compare it to the Gaia catalog values.

A few open questions remain:

gradients of the nested model fit: i think these can be calculated using the implicit function theorem eg via ImplicitDifferentiation.jl
how to compare the model fit to the Gaia catalog values. We could just take the new best fit values and compare to the catalog using the catalog uncertainty. But I think we do even a lot better if we could compute uncertainties too, and then compare the catalog distribution to the mode fit distribution. This would have to use some kind of distribution divergence metric, but I don't know much about this.
how to compare to the Hipparcos value. We could use the HGCA cross cal parameters to nudge the Hipparcos raw data into the Gaia reference frame ourselves, and otherwise ignore the HGCA. But this doesn't capture the error inflation benefits of the catalog.
we could add a "jitter" uncertainty to the Hipparcos epoch to let the uncertainties grow on the fly, just like I think Fabo Feng does

Other thoughts:

if we structure this well, we'll be able to also model DR2 separately from DR3. I think this could help constrain velocity changes between the DR2 time range and the longer DR3 time range. Uncertainties will obviously be correlated though due to shared data.

Okay so this plan is showing surprisingly promising results.
Procedure:

get GOST scan angles and dates
simulate a true sky path (including planet perturbations)
find the best fitting Gaia 5-parameter fit
calculate uncertainties and covariance on the Gaia fit using the inverse hessian (almost certainly what they're doing)
compare the "posterior" from the Gaia fit to the catalog means, uncertainties, and correlations using the KL divergence
profit!

Right now to compare the Gaia simple fit + uncertainties to the catalog means and uncertainties, I'm using the KL-divergence and just treating it like a likelihood.
I don't know if that's valid! I thought we'd need to calibrate the score against simulated data or something. But it seems to work to a crazy good degree?
                        plx     ra      dec     pmra    pmdec   unc_mas
Catalog values:         274.8   330.9   -56.8   3967.0  -2536.0 1.0
Posterior values:       274.8   330.9   -56.8   3967.0  -2536.0 4.569e-5
Catalog uncertainties:  0.09561 0.06869 0.06547 0.08557 0.09221
Posterior uncertainties:0.09561 0.06869 0.06544 0.08557 0.09221 0.2058

I realized something pretty funny. Including the parameter means, uncertainties, and correlations, each target with a five parameter solution has 19 reported variables. (+1 more for excess astrometric noise).
For many targets, that’s about number of degrees of freedom the  as the total number of scans!
That the system of equations should be fairly well-determined and we should almost be able to back out each individual scan measurement(?).

This is kind of wild. I can see an annular cycle effect in the reverse-engineered Gaia uncertainties :O  The spacing between peaks is about 360 days...
I wonder if this could point to a part of the Gaia model that I haven't yet implemented.

Moderate success fitting DR2 and DR3 to back out IAD. It seems to work best when there are fewer visibility windows than reported parameters, so that everything is well constrained.
The next issue is accounting for missed / skipped / extra scans. GHOST isn't matching the actual reported number of visibility windows very well for either DR2 or DR3.


text:
Produce a embeddable library

Hi,
I would like to extend Watcher to support my own discovery protocol.
Today, Watcher is a closed list and I extending it with a proprietary protocol doesn't seem a good solution.
The change I propose on lag exporter is:

split the project in 2 parts:

an embeddable lib (containing actors but not the main class, config parsing and so on)
main class, conf and wiring

distribute the lib independently

That way, I could extend it with non-reusable things and contribute back on everything else.
What do you think?

@mbaechler It will take a bit of work re-organize the project to shed some dependencies and features that don't make sense for a library. I don't have a lot of time to spend on this work, but I can assist with reviews and infrastructure setup. In general I'm in favour of the idea and I can grant you permissions to the repo to expedite develpment if needed. Apologies for the delay in getting back, my notification settings need some tuning.

authors: mbaechler seglo

repo: seglo/kafka-lag-exporter


text:
FileUploader shadows TextInput's borders

When both <FileUploader> and <TextInput> present, TextInput's border would disappear.
Reproduction link: https://codesandbox.io/s/evergreen-ui-shadow-input-border-vveww1

Ah, good catch - I think this is from the style leaking issue in ui-box 5.2.0 - 5.3.0 (https://github.com/segmentio/ui-box/issues/126). Upgrading our version to 5.4.0 should solve this.

I put together a minimal reproduction sandbox using Box components only, which is where I think this problem lies:
https://codesandbox.io/s/fileuploader-textinput-border-minimal-reproduction-g0hk6l?file=/src/App.tsx
I believe we've had similar issues with the flex shorthand prop and the separate flex sizing props (flexGrow, flexShrink, flexBasis):

:loudspeaker: Hey team, if you're using combo of flex and flexBasis props, make sure to not set them separately and use a shorthand version: flex="[flexGrow] [flexShrink] [flexBasis]" otherwise there's a risk your layout will not look as expected due to a complicated bug in ui-box (which is a base for all Evergreen components). For example, flex="none" flexBasis={100} => flex="0 0 100px".

Brief description of the bug: ui-box generates a separate class name for each rule and inserts it into a

authors: brandongregoryscott pot-code

repo: segmentio/evergreen


text:
Lumendocs

Proposed changes
Adding new destination Lumen to docs
Merge timing

ASAP once approved?

@stayseesong resolved my pull request issues!

@stayseesong i commit the changes suggested

repo: segmentio/segment-docs


text:
Add initial vector class

This code may or may not compile. It is definitely not 100% ready to use, but this is my vector class from October 2020.
I've spent a decent amount of time optimizing it for small code size and it is designed to have small code size even when compiler optimizations are turned off. Most methods do not call other methods, which means that if only a few methods are invoked on a vector, most of the methods defined in the .h file will not go through code generation.
It makes a few assumptions about certain features in C++ not being used and exploits an intentional not handling of those to reduce code size. For example, it

assumes that no exceptions are thrown during element constructors so it does not have code that handles those situations safely. This one should be okay since embedded code tends to not use exceptions anyway, and it
sometimes assumes that its data elements can be moved without calling move/copy constructors, which means it cannot hold items that refer to themselves, for example.

Lifting the second assumption would require us to add about 6 lines of code and then test it.
It is intended that ~50% of the vector's use can be achieved through method calls and the other 50% by direct manipulation of size and data as if it's a C data structure. The reset() method endorses stealing the vector's memory when convenient, etc.
When using this class with plain-old-data types like int or char*, some of the for-loops become no-ops and are optimized out.

I'll pull it in and try it out. We don't actually use the code in DeviceFS yet anywhere so it'll be a minute before I see how it's working.

authors: pmer seisatsu

repo: seisatsu/MalkuthOS


text:
focus() doesn't work with new jquery 3.6.0

automatic focus inside input search field, doesn't work after upgrade to latest jqeury 3.6.0.

https://github.com/select2/select2/issues/5996

Duplicate of #5993

Duplicate of https://github.com/select2/select2/issues/5996.

authors: MoreMeng itajackass kevin-brown tagliala


text:
Better hide keyboard support

It'd be nice to see a hide keyboard method that uses hideSoftInputFromWindow. The back key isn't great.

it would be good to have something defined in the mobile spec for this -
https://code.google.com/p/selenium/source/browse/spec-draft.md?repo=mobile
I know appium currently has some ability to do this, but not in a very JSON wire kind of way. Let's get something defined and then we can implement it

Sounds good to me. /cc @jlipps
Here are some references to alternative implementations:

Espresso 2 close keyboard
Calabash Android close keyboard (based on old robotium)
Robotium close keyboard

@lukeis +1

+1

authors: DominikDary bootstraponline jlipps lukeis

repo: selendroid/selendroid


text:
java.lang.NullPointerException during creating of webdriver instance

Hello!
My project using Chrome latest driver for accessing to web pages and chromedriver 83 for controlling of Electron application. Both types of apps are used in the test.
I received following error during creating of webdriver instances in my multithread Cucumber test project under TestNG control.
java.lang.NullPointerException
	at java.base/java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
	at java.base/java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
	at com.codeborne.selenide.impl.WebDriverThreadLocalContainer.setWebDriver(WebDriverThreadLocalContainer.java:85)
	at com.codeborne.selenide.impl.WebDriverThreadLocalContainer.setWebDriver(WebDriverThreadLocalContainer.java:64)
	at com.codeborne.selenide.impl.WebDriverThreadLocalContainer.setWebDriver(WebDriverThreadLocalContainer.java:59)
	at com.codeborne.selenide.WebDriverRunner.setWebDriver(WebDriverRunner.java:67)
	at ru.XXXXXXX.tools.BrowserTools.openElectronApp(BrowserTools.java:41)
	at ru.cleversite.cucumber.glue.desk.Desk_Common_Steps.operatorOpeningDeskInTheNewBrowserOrApp(Desk_Common_Steps.java:168)
	at ✽.оператор открывает новый пульт (далее "Пульт")(file:///C:/xxxxxxxxxxxxxxx/src/main/resources/features/Desk/Operator%20actions/Hotkeys%20New.feature:27)

The probable related error from another thread:
java.lang.IllegalStateException: No webdriver is bound to current thread: 22. You need to call open(url) first.

	at com.codeborne.selenide.drivercommands.LazyDriver.getWebDriver(LazyDriver.java:88)
	at com.codeborne.selenide.SelenideDriver.getWebDriver(SelenideDriver.java:186)
	at ru.XXXXXXX.DriverFactory.createWebDriver(DriverFactory.java:35)
	at ru.XXXXXXX.tools.BrowserTools.openUrlInTheNewBrowser(BrowserTools.java:31)
	at ru.XXXXXXX.cucumber.glue.Common_Steps.openCustomPageInTheNewBrowser(Common_Steps.java:110)
	at ✽.посетитель открывает страницу "${адрес основного сайта}" в новом браузере (далее "Площадка")(file:///C:/XXXXXXX/src/main/resources/features/Desk/Operator%20actions/Hotkeys%20New.feature:183)

Tell us about your environment

Selenide Version: latest 5.20.1
Chrome\Firefox\IE Version: Chrome 90 for opening webpages
Browser Driver Version: embedded for web pages and Chrome 83 for Electron app
Selenium Version:
OS Version: Win10

Code To Reproduce Issue [ Good To Have ]
public WebDriver createAppDriver() throws InterruptedException {
        WebDriver appDriver = null;
        try {
            while (!tryLock()) {
                Thread.sleep(10);
            }

            String previousChromeBinaryPath = System.getProperty("webdriver.chrome.driver");
            ChromeOptions chromeOptions = new ChromeOptions();
            chromeOptions.setBinary(System.getProperty("user.home") + "\\AppData\\Local\\Programs\\XXXXXXXX\\XXXXXXX.exe");
            System.setProperty("webdriver.chrome.driver", "drivers/chromedriver/win32/83/chromedriver.exe");
            appDriver = new ChromeDriver(chromeOptions);

            // Восстанавливаем исходные настройки
            if (previousChromeBinaryPath != null) {
                System.setProperty("webdriver.chrome.driver", previousChromeBinaryPath);
            } else {
                System.setProperty("webdriver.chrome.driver", "");
            }
        }
        catch (Exception e) {
            System.out.println("Error " + e.getMessage());
        }
        finally {
            unLock();
            return appDriver;
        }
    }

    private synchronized boolean tryLock() {
        if (!Settings.isWebDriverManagerBusy) {
            Settings.isWebDriverManagerBusy = true;
            return true;
        }
        else {
            return false;
        }
    }

    private synchronized void unLock() {
        Settings.isWebDriverManagerBusy = false;
    }

// This is a field of Settings class
public static volatile boolean isWebDriverManagerBusy = false;    // volatile disables caching for threads

XXXXXXX - name of the project.
This problem may not be reproduced at every test run. I have caught it only once. Yesterday I performed 5-6 iterations of my tests without error and today error appeared at second pass and was not reproduced at 3th and 4th pass.

@ilya-corp This NPE can only happen if WebDriver is null:
WebDriverRunner.setWebDriver(null);

Sure, looks like problem related to unexpected null as argument of setWebDriver() method.
Ticket may be closed.

authors: asolntsev ilya-corp

repo: selenide/selenide


text:
Splattershot MPU Wrong Value

The MPU values for Splattershot are incorrect. The curve should be the same as .52 Gal.

Working on a large update that will be updating all weapon damage values and MPU parameters.

 Update ALL Weapon Damage and MPU Param Updates (using 4.7 data)

07415a4927ce0a5f0df168eafccbde56af7fe6f8 Fixes this. However, it won't be pushed to the live beta until the MPU calculations are updated.

The live beta now has all of the MPU changes. Please confirm you see the fix and close the issue if it works, or let me know if you're still seeing incorrect values.

authors: djunjie selicia


text:
Deduping redirects

Hello!
This PR addresses issue #3050: it prevents two different possible redirection issues in the source/_redirects.htaccess.
I added some consistency checks while the redirect files are being parsed in order to check:

that we don't have twice the same alias going to a different destination, and
that we don't have an alias that is the destination of another redirecting rule (or the opposite).

A second commit is present to fix some consistency issue I found. I'm not so sure about that commit, please let me know!
@ksigler7

Screenshots

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

@nicoolas25 this is so epic - thanks so much for adding this in!!!
I threw some test cases at this, and it is working really well!
Your second pull request is completely on point, that was left over from a test a few months ago, and obviously not removed at the time.

Hello @nicoolas25,Thanks again for the PR! We want to show our appreciation by sending                                              you some swag. Could you please fill out                                              this form so we can send it to you? Thanks!                                             Team SendGrid DX

@nicoolas25 you rock!

We want to show our appreciation by sending you some swag. Could you please fill out this form so we can send it to you?

Of course, thank you to make the issue clear an approachable with labels!

repo: sendgrid/docs


text:
Strict typing on create() doesn't account for generated fields

Describe the bug
This change: https://github.com/sensedeep/dynamodb-onetable/pull/339 changed the typedef for Model.create() to enforce required model properties during create. This makes sense, except if you have a required property that's also generated.
For example, we have a property like this
      consumerId: { type: String, generate: true, required: true },

The new type schema requires I manually input consumerId and gives an error Property 'consumerId' is optional in type 'Partial<Consumer>' but required in type '{ consumerId: ConsumerId; ...
To Reproduce
I'm not entirely sure how to give you a repro for a type issue. I can try if this isn't clear though.
Expected behavior
Generated fields should be marked required in the Model type, but not in the input to Model.create
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):

OS: Mac OS
Node Version: 14.18
OneTable Version: 2.3.8
TypeScript Version: 4.6.3

A minimal debug.ts would save us the time of creating one.

I'm looking into this.
An earlier PR got reverted that typed the create properties as:  CreateProperties
This was not working where it would not flag any missing required field.
But the alternative is flagging missing generated properties.
What we need is a fixed CreateProperties definition.
I'm digging into the TS for this, but this has some unholy magic involved. Any help would be appreciated.

The fix may be changing
type CreateProperties<T> = Omit<T, keyof Generated<ExtractModel<T>>> | Generated<ExtractModel<T>>

to
type CreateProperties = Omit<T, Generated<ExtractModel>>

Any feedback on the above suggestion, greatly appreciated.

I'm digging more into this and I think there is some confusion regarding what does "required" mean.
Required means that you must provide the property when creating.
So you should not use required on a 'generate' property as OneTable is providing the value and you do NOT have to provide it to create.
Some general rules:

Only flag properties as required that must be provided by the caller of create
Don't set required when using 'default'. Either set required and have the caller provide the data or use default if it is optional.

With these assumptions, CreatedProperties can go away and just be replaced with T.
What am I missing?

How would you then represent nullability of a field in the schema? I'm using TypeScript and would like to be able to use onetable's Entity<> types as my domain entities and not to having to check attributes for null and undefined every time I get an entity from a DB.

Back to the original issue.
Yes, there is a bug in handling create properties that are required and generated. The TS handling requires that you provide the generated property to satisfy the type signature. This is not ideal. We're working on more comprehensive fix for this. See discussion #

Regarding nullability in general.
The Table params "nulls" controls how nulls are handled. Generally this is set to false, meaning, never write nulls to the database. With nulls == false, when a property is null and Model.update() is called, OneTable will remove the property from the item. It would be nice if our typings for Update() allows nulls and other APIs did not.
With TS, nullability gets somewhat overloaded. What does null really mean in your app? It varies from app to app. Does it mean the property is not present in the database or that it is present with a null value. i.e.  Do you want to store null in the database?
So we should separate the concerns of what gets stored in the Database, vs Entity types that your app uses.
We generally run with Table.parms.nulls == false and never store nulls in the database.  This greatly simplifies things.
Now, we need OneTable TS support to not allow nulls in Entity types (but perhaps only if params.nulls == false).

What does null really mean in your app?

I also don't use null in my app at all. I always use strictNullChecks. If I need to express absence of value I use undefined and add it to type signature accordingly: name: string | undefined or name?: string.

Do you want to store null in the database?

No. And I'm happy with the default behavior of params.nulls: false.
I would also prefer if onetable didn't return null values for fields absent in the DB including nested Object fields.
And I would rather prefer update() rely on params.remove: [name] explicit syntax to remove fields instead of fiddling with nulls.

Great, thanks.
We're toiling at the moment trying to get TS magic to work on create().

Okay, we have it working sweetly. This is some serious TS magic.  Ready for test.
The new magic does:

Fixed create(), find() and update() to correctly flag incorrect properties.
Fixed lax use of nulls. Now only permitted in update() to delete properties.
Correctly visually highlights in VS code when you have incorrect properties or types in data items.
Correctly highlights methods arguments for create(), find(), update etc. Will warn when required parameters are missing and when data types are incorrect.
Correctly autosuggests data field property names as you code.

The Schema Rules

Required in a schema model field means the field is required in data items. A model type will have these as required properties. Required means an item object MUST have the property present. Don't confuse this with the properties you give to create/update/get/find etc. Those are NOT model data types. They have special rules.
Without required, the property will be optional. Default, generated, value-templates can be marked as required.
In create() you do not have to provide generated fields, fields with default values or fields with a value template ... Even if they are flagged as required.
In find() you can provide any subset of the properties (provide it is valid for DynamoDB of course).
In update() you can provide any subset of the properties AND you can set a properties value to null to remove it.
In update() you can supply sparse nested objects if you have set partial: true to the table constructor params. Update will update only the properties you have provided, regardless of how deep.

Notes

You can now use Table.getModel in Typescript without <>. i.e.

Use
const User = table.getModel(‘User’)

rather than
const User = table.getModel<UserType>('User')

The Bad
The intellisense (IS) on methods is pretty complex. However the IS will correctly prompt when typing for data fields and the IS on data types is great.
Questions?

@mobsense seems like the updated and created timestamp fields are still required when calling Model.create(...).
Take a look at this schema:
{
  format: "onetable:1.1.0",
  version: "0.0.1",
  indexes: {
    primary: { hash: "PK", sort: "SK" },
  },
  params: {
    typeField: "_type",
    timestamps: true,
    isoDates: true,
    createdField: "createdAt",
    updatedField: "updatedAt",
  },
  models: {
    Payment: {
      PK: { type: String, value: "id#${id}", hidden: true },
      SK: { type: String, value: "id#${id}", hidden: true },
      id: { type: String, required: true },
      createdAt: { type: Date, required: true },
      updatedAt: { type: Date, required: true },
    },
  },
}

Didn't find it in the documentation: if I specify params.createdField: createdAt, should I remove this field from the models definition?

Didn't find it in the documentation: if I specify params.createdField: createdAt, should I remove this field from the models definition?

Yes, you don't need to specify timestamp fields in the model.

Your choice. You don't have to specify them in the model, but if you are using TS and want intellisense, then define them in your model.

@dev-embedthis if I remove these fields from the model, will they be considered as "metadata" and won't they be returned from methods such as Model.get?

The timestamp fields are always returned. Probably should respond to the "hidden" param and not be returned by default.
But currently, they are returned.
Changing would probably break some existing code.

Since timestamp fields are always returned, shouldn't they be in the current type definitions if they're not specified in the model (just in createdField/`updatedField)?

To do that, just define them in your model. TS definitions are auto-generated from your schema, so if you want them defined, you need to include them in your model.

authors: dev-embedthis mobsense rjmackay shishkin vhuty

repo: sensedeep/dynamodb-onetable


text:
fix copy paste error in split

better unit test with direct check of split result

@ole108 will rewrite this properly with a testable method

authors: falkorichter watsonVon

repo: sensorberg-dev/resolver


text:
Xuggler 5.4 issue | mvn build failure

[ERROR] Failed to execute goal on project stormcv-deploy:
Could not resolve dependencies for project nl.tno.stormcv:stormcv-deploy:jar:0.0.1-SNAPSHOT: Failure to find xuggle:xuggle-xuggler:jar:5.4
in http://github.com/sensorstorm/maven/raw/master/releases/ was cached in the local repository,
How to figure maven dependency for  xuggle:xuggle-xuggler:jar:5.4 or fix this issue?

The Xuggle repository at http://xuggle.googlecode.com/svn/trunk/repo/share/java/ does not exist anymore. I guess this has to do with the fact that Xuggle is not deprecated in favour of Humble Video. This means that another video reader must be integrated into StormCV in order for it to work again. Someone else has to do it since I no longer actively maintain this project...

I have downloaded the jar and added as a local maven dependency And build was successful.
https://github.com/lxb200709/xuggle/blob/master/repo/share/java/xuggle/xuggle-xuggler/5.4/xuggle-xuggler-5.4.jar

repo: sensorstorm/StormCV


text:
Sensu Enterprise HEAP_SIZE is not configurable

Expected Behavior
When using Sensu Enterprise, this module should manage the HEAP_SIZE environment variable defined in /etc/default/sensu-enterprise
Current Behavior
This module does not expose a parameter for managing HEAP_SIZE
Context
Attempting to manage the contents of /etc/default/sensu-enterprise or /etc/default/sensu outside of this module can lead to unnecessary service restarts.
Possible Solution
Add a parameter to sensu class providing control over the HEAP_SIZE when the value of the sensu_enterprise parameter is true

Note that it's equally reasonable to configure this environment variable via /etc/default/sensu, as it will also be evaluated when starting sensu-enterprise

@cwjohnston please correct me if I'm wrong:
I'm going to add a heap_size param that, if defined, adds to /etc/default/sensu (or /etc/default/sensu-enterprise if used) the line:
HEAP_SIZE=<%= @heap_size %>
I suspect the value might not only be an Integer (ie 256M) so validation should be for a normal string.
Please confirm or correct me.

@alvagante I believe you are correct, HEAP_SIZE should allow a string value so the suffix can indicate unit of measure.
FWIW, HEAP_SIZE has no effect on Sensu Core (sensu-server), only on Sensu Enterprise.

@cwjohnston thanks for quick reply. The commit (blind code, still not tested on real vm) done modifies the file for both, as the same template is used.
If you want I can remove the changes in https://github.com/alvagante/sensu-puppet/commit/7f706f6d727be6abb46905ce44a51d6fc8e36f55#diff-1576180ba8964fff8d837b3256127ebc so that in sensu-core even if heap_size is set, it does not appear in /etc/default/sensu.
Alternatively I would add a note in the docs and leave the heap_size param in sensu::package as is. Eventually HEAP_SIZE might be used in the future also in sensu-core.
Any preference?

authors: alvagante cwjohnston

repo: sensu/sensu-puppet


text:
日期范围 自定义格式 怎么书写

我写入的格式是 yyyy年MM月dd日。我按照上面图片的格式写 yyyy年MM月dd日 - yyyy年MM月dd日，内容显示就会不正常，且还还是会提示 日期格式不合法。

repo: sentsin/layui


text:
Minor quality of life changes (split off from #66)

#66 is a massive PRQ that somehow pulled in unrelated stuff from mw-pldi-quality-of-life, so to make that PRQ easier to digest here is one that just has the quality of life stuff in.
This PRQ, which has been merged into PLDI experimental for a while but not into master:

Allows if-then without else.
Fixes some weird unification behaviour.
Allows int x, y, z; as shorthand for int x; int y; int z;.
Replaces view foo()[n] with view iter[n] foo();
Fixes some things in the examples.

@septract I've pulled through a few easy fix commits from mw-pldi-experimental and mw-iterated-hsf.  As far as I know this PRQ is ready for review

Looks good, except for a couple of minor quibbles.
:shipit:

authors: CaptainHayashi septract

repo: septract/starling-tool


text:
english translation

can you please add english translation? maybe using google translate

Do you mean a translation of the book into English? That would be a lot of work (even with Google Translate). I am busy with other things recently. If you mean a translation of the README file into English, I guess that I can do it.

I will translate the book into English manually when I have much more spare time.

authors: bytearchive septsea

repo: septsea/det


text:
CLOUD-54047 Fix cluster termination event closes cluster creation form

@doktoric plz review

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/2246/

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/2259/

authors: jenkins-sequenceiq mhmxs

repo: sequenceiq/cloudbreak


text:
Problems with webhdfs

So far I was not able to use webhdfs with docker version of hadoop [on Ubuntu]. Here is what I tried:

Add a text file at user/root/f.txt :

curl -i -X PUT -T f.txt "http://172.17.0.2:50070/webhdfs/v1/user/root/f.txt?op=CREATE&user.name=root&overwrite=true"

Try reading contents of the file from hdfs:

curl -i -L "http://172.17.0.2:50070/webhdfs/v1/user/root/f.txt?op=OPEN&user.name=root"

For which I get
{"RemoteException":{"exception":"FileNotFoundException","javaClassName":"java.io.FileNotFoundException","message":"File /user/root/f.txt not found."}}

I tried using 3 different python libraries for webhdfs, but none work either. All of them stop with message similar to
Max retries exceeded with url: /webhdfs/v1/example_dir/example.txt?op=CREATE&user.name=root&namenoderpcaddress=d85d3582cf58:9000&overwrite=false
Failed to establish a new connection: [Errno -2] Name or service not known

when trying to create a file or folder.
I also tried rebuilding the docker image to account for port 9000 not exposed, but that did seem to help.
Am I doing something utterly wrong? I expect this to be likely given that I am a total had00p n00b :)

I was trying to use webhdfs too and found a problem. In my case the problem is that webhdfs redirect to a data node every time i try to write to a file. And it seems that the redirection URL use the internal machine name of the docker image (something like a65ec753065c). Any idea about this?

I am having the same issue as above, will it be addressed soon?

Not sure how this would translate if using docker-compose but can get this to work using:
docker run -h localhost -p 50070:50070 -p 50075:50075 <<Container_Name>>

@PhilipMourdjis if you're using docker-compose you can put hostname localhost like this:
hadoop:
  image: <image_name>
  hostname: localhost
  ports:
    - 50070:50070
    - 50075:50075

Just follow the redirect message Location

Notice：Step 2: Submit another HTTP PUT request using the URL in the Location header (or the returned response in case you specified noredirect) with the file data to be written.
FYI Link

authors: PhilipMourdjis deryrahman ericjang96 g10guang iaroslav-ai yeiniel zakicheung

repo: sequenceiq/hadoop-docker


text:
Implement indexing into Value

We could do IndexMut too but I looked at what json-rust does and it is pretty bizarre. I think this is enough to get us most of the value of straightforward indexing.

I don't think visibility rules affect this at all. The Sealed trait is pub so it is allowed to be in the public API. That does not mean there needs to be a public path to access it.

<oli_obk_> dtolnay: how about making it cfg(feature = "unstable")?
<oli_obk_> then we can play with it

Let's play with it now :dog:. I don't think there are so many different use cases for indexing that we can't tell whether this approach will serve us well.

repo: serde-rs/json


text:
Deepface is still downloading model even though it is already in a local folder

Hello, I have a usecase where I have to recognize people from a livestream and I found your library and want to test it.
I already have a good face-detection AI, so I'm only interested in the recognition part of deepface and use the DeepFace.find() function.
I want to test all models:
["VGG-Face", "Facenet", "Facenet512", "OpenFace", "DeepFace", "DeepID", "ArcFace", "Dlib", "SFace"]
I have already downloaded all of the above models and saved them locally in a folder called deepface_models:
deepface_models/arcface_weights.h5
deepface_models/deepid_keras_weights.h5
deepface_models/dlib_face_recognition_resnet_model_v1.dat.bz2
deepface_models/face_recognition_sface_2021dec.onnx
deepface_models/facenet_weights.h5
deepface_models/facenet512_weights.h5
deepface_models/openface_weights.h5
deepface_models/vgg_face_weights.h5
deepface_models/VGGFace2_DeepFace_weights_val-0.9034.h5.zip

I also use Docker to save them where they seem to belong to:
COPY deepface_models/ /root/.deepface/weights/
My issue is now, that of all of the models only "DeepFace" (VGGFace2_Deepface) still gets downloaded externally (when DeepFace.find() gets called the first time with model="DeepFace") even though it is available in the "weights" folder. I just don't get it why all other models are loaded from the local folder, but DeepFace isn't.

try this path: ~/.deepface/weights/
also you need to confirm that you copied the weight files not folder to here.

I checked the files again and the solution was to simply unzip VGGFace (and Dlib!) weights before building the docker image.

@Terminazor
How did you unzip weights before building docker image ?
Aren't they downloaded from internet in runtime ?
I'm using containerized gcp cloud run service... Same error....

@MertTanyur If you watch closely the logs when deepface downloads the models from internet, there is always a path written from where it gets the model. I just followed the links and downloaded the weights manually and saved it locally. The unzip had only to be done with VGGFace2 and dlib model (watch out: adapt the directory to your needs!):
unzip deepface_models/VGGFace2_DeepFace_weights_val-0.9034.h5.zip -d deepface_models/
bzip2 -dk deepface_models/dlib_face_recognition_resnet_model_v1.dat.bz2

authors: MertTanyur Terminazor serengil

repo: serengil/deepface


text:
WP-823 UXCapture.startTransition() Implementation

Implemented UXCapture.startTransition() function used in SPA applications.
Created PageView and InteractiveView classes to represent each type of view separately and to manage startMarkName property differently.
Also added private UXCapture._clearMarksAndMeasures() method for clearing all pre-exisiting marks and measures. Calling it in UXCapture.startTransition(), but can also be useful in tests.
JIRA: https://meetup.atlassian.net/browse/WP-823
P.S. our API creates gap between starting new view with UXCapture.startView() and starting transition with UXCapture.startTransition() - during this time no marks should be fired (as interactive transition start mark hasn't been fired yet and is null). This is not great as we don't really control when they fire (e.g. onload events for images, for example). We can also keep view "un-attached" until it's started so all marks during this gap time are accounted towards previous view. Thoughts?

Wrong repo ;(

repo: sergeychernyshev/ux-capture


text:
Update to latest mongo db

Update to support latest MongoDB      = v3.6.0
Update NetStandard.Library to latest   = v2.0.1
Update MongoDB.Driver to latest         = v2.5.0

@MarLoe,
I build on top of your commit (016faae), should I base off 0.5.8 instead?


text:
Question about validity of Margins Results post PPMLHDFE estimation

Hello Sergio,
I have a question regarding the validity of margins command after ppmlhdfe estimation results when I have fixed effects.
From my online searches, it seems like when you run margins command after you fit a Poisson estimation with fixed effects, the results can be invalid because margins command doesn't incorporate fixed effects. From one of the comments I found from the Stata Forum, margins after xtpoisson and xtlogit with fixed effects produces results that are meaningless because the marginal effects depend on the fixed effects and these are not estimated when you use these commands.
I followed the instructions to calculate marginal effect after ppmlhdfe from here: https://github.com/sergiocorreia/ppmlhdfe/blob/master/guides/undocumented.md#esttab-and-margins-options
I was wondering if the same problems apply to margins command after ppmlhdfe estimation. Also, if there is a problem, is there anyway I can incorporate fixed effects in the margins command after ppmlhdfe estimation?
Thank you very much in advance!

That's a great question, and I wish I had more time to dive into the margins command to extend the support of pmmlhdfe for margins options (there are a lot of margins options and ppmlhdfe only supports a few of them).
On your specific question, a simple way to verify if the margins command is indeed ignoring the FEs or not is to compare it against poisson with dummies:
sysuse auto, clear

ppmlhdfe price weight length, a(turn) d keepsingletons
margins, dydx(weight)

qui poisson price weight length i.turn, vce(robust)
margins, dydx(weight)

Here, you can see that both give the same results. However, I haven't tested much the at() option, which is the one that might be giving folks problems in the online discussions of xtlogit/xtpoisson. Thus, I encourage you to be careful when using at(), as shown below:
sysuse auto, clear

* Here margins works but gives you the results as if vce() was not robust
qui ppmlhdfe price c.weight#c.weight length, a(turn) d keepsingletons
margins, dydx(weight) at(weight=2000)
qui poisson price c.weight#c.weight length i.turn, vce(robust)
margins, dydx(weight) at(weight=2000)

* Here margin gives you different point estimates
qui ppmlhdfe price c.weight#c.weight, a(turn) d keepsingletons
margins, dydx(weight) at(weight=2000)
qui poisson price c.weight#c.weight i.turn, vce(robust)
margins, dydx(weight) at(weight=2000)

I would need to understand more the details of margins and its underlying assumptions in order to make it work better for ppmlhdfe, which I'm not able to do (at least in the near future), but any suggestions or findings would be more than welcome!

Thank you, Sergio for your response.
I have one follow up question.
Would the results from ppmlhdfe regression model always be the same as the poisson model with dummy variables for the fixed effects? Even if the dependent count variable may be zero inflated?
I would assume that if I directly add multiple dummy variables for fixed effects in the poisson command, the estimation process will take very long. However, I am curious at the end of the estimation I will always get the same result as the PPMLHDFE regression result.
Thank you.

@sergiocorreia I have a similar question. I was testing whether the pplmhdfe and possion commands generated the same results and while in the example above it does generate identical ones, with my data they are quite different. Here's the output of your example (to show it is not an installation issue)

and here it is for my data using basically a similar command

where I am running the commands
ppmlhdfe N_groups_0 sharepopregsec  if sample==1, absorb(idGID_0) cluster(idGID_0)  d keepsingletons

margins, dydx(sharepopregsec)

poisson N_groups_0 sharepopregsec i.idGID_0 if sample==1, cluster(idGID_0)

margins, dydx(sharepopregsec)

Notice the different samples. Yet I get the same result if I drop keepsingletons.
Moreover, if I do not have FEs I do get the exact same result. Also, the estimated coefficients (not MEs) are actually identical, so it seems this is a MEs + FEs issue . To get the same MEs with FEs, I had to constrain the sample so that using poisson it is the same as using ppmlhdfe, i.e.,
ppmlhdfe N_groups_0 sharepopregsec  if sample==1, absorb(idGID_0) cluster(idGID_0)  d keepsingletons

margins, dydx(sharepopregsec)

poisson N_groups_0 sharepopregsec i.idGID_0 if e(sample)==1, cluster(idGID_0)

margins, dydx(sharepopregsec)

in which case the MEs are identical

I thought the option keepsingletons would ensure the sample remains the same as the one using poisson, but it seems that is not the case (which I think is the case in reghdfe vs reg). Is there a way to ensure ppmlhdfe uses the full sample? What is being dropped that is not a singleton? Perhaps more importantly, which one is the correct one? Any ideas?
Thanks!

I can't tell for sure without looking at the data, but one possibility is that the dropped observations correspond to "separated observations", particularly those separated by the fixed effects.
This separation primer should clarify the issue a bit.

Thanks! This is super useful and I imagined it was something like that. I just thought the keepsingletons option was including them somehow.

Is the separation issue not affecting other estimators? I remember from reghdfe that you showed that the estimate is the same (some difference in SEs). Here estimators are the same but MEs and SEs are different. Does this suggest that one should perhaps constrain the estimation sample in general to non-separated observations?

@sergiocorreia following up on my previous question. I imagine the separation issue is also important, e.g., in negative binomial. Should we expect to have a similar convergence to the wrong estimate issue in nbreg?
I see that in my data reghdfe (full sample) and ppmlhdfe (dropping separated obs) generate similar MEs, but poisson and  nbreg have very different ones if I use the full sample but very similar if dropping separated obs. There are only very small differences in the estimated coefficients and SEs, so it would seem the issue of differences in MEs is due to the sample means used in their computation. It is not clear to me which is the correct comparison. Since in my data there are separated observations, the estimation is only correct with ppmlhdfe, yet the estimated coefficient with poisson is basically identical. Should one still use only the constrained sample since this is where the actual variation for estimation is coming from?

authors: cckimm ozak sergiocorreia

repo: sergiocorreia/ppmlhdfe


text:
How do I configure this sink to ignore SSL errors?

How do I configure this sink to ignore SSL errors?
something similar to curl's -K parameter

You can use a trick like this:
  ServicePointManager.ServerCertificateValidationCallback =
                    (source, certificate, chain, sslPolicyErrors) => true;

All validation of certificates get overridden and a true is returned. Do not use on production :-)

worked thanks

Do not use on production :-)

👍 @mivano
You can be a tad more selective in what you trust through that callback we documented it here:
https://www.elastic.co/guide/en/elasticsearch/client/net-api/1.x/security.html#trusting-certifcate-example

authors: Mpdreamz jamesla mivano

repo: serilog/serilog-sinks-elasticsearch


text:
🛑 sg1grpc.serverssh.us is down

In c668b9c, sg1grpc.serverssh.us (http://sg1grpc.serverssh.us/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: sg1grpc.serverssh.us is back up in 6ddd993.

repo: serversshnet/server-status


text:
🛑 us2-ray.ipservers.xyz is down

In f6158bf, us2-ray.ipservers.xyz (us2-ray.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: us2-ray.ipservers.xyz is back up in 0b67f20.

repo: serversshnet/uptime


text:
🛑 id1go.ipservers.xyz is down

In 0c0a676, id1go.ipservers.xyz (id1go.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: id1go.ipservers.xyz is back up in c427d92.


text:
🛑 sg4vless.ipservers.xyz is down

In 801ffef, sg4vless.ipservers.xyz (sg4vless.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: sg4vless.ipservers.xyz is back up in 3da868c.


text:
🛑 id1go.ipservers.xyz is down

In 21a4d3d, id1go.ipservers.xyz (id1go.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: id1go.ipservers.xyz is back up in 89ea563.


text:
translation: Istio Observability with Go, gRPC, and Protocol Buffers-based Microservices #271

请审校者在合并该 PR 前需要检查以下内容：

[x] Header 设置正确，包括文章的类型、tag、分类、作者、译者、摘要、reviewer 发布时间等信息
[x] 关联 Issue 编号 https://github.com/servicemesher/trans/issues/271
[x] 该 PR Assigned 给了提交者
[x] 指定了 Reviewer
[x] 为 PR 明确了 label 信息，如 categories、kind、size、tag、status
[x] 所有代码片段都指定了代码语言
[x] 翻译的文章添加了编者按
[x] 文章遵守了路径规范  YEAR/MONTH/TITLE/index.md，例如 2019/04/new-blog/index.md
[x] 图片保存了在 GitHub上，跟文章在同级目录
[x] 文章标题简短且语义明确
[x] 文章语句通顺，没有语病和格式问题
[x] 文中没有不可达的链接
[ ] 提交者同意授权 ServiceMesher 公众号和 http://www.servicemesher.com 发布我原创或翻译的文章

当所有以上问题都确定之后，可以由管理者合并 PR 并关闭关联 issue。

@malphi 您需要按照circleci 检查的markdown语法规范修改完成没有不符合规范了才能合并，谢谢！

repo: servicemesher/trans


text:
🛑 Stockport Repairs is down

In bcf2fa4, Stockport Repairs (https://stockport-repairs.co.uk) was down:

HTTP code: 500
Response time: 3150 ms

Resolved: Stockport Repairs is back up in d117d8d.

repo: servicesite/upptime


text:
Fix a small typo and expand batching comment

r? @emilio

@bors-servo r+

:pushpin: Commit 07a5925 has been approved by emilio

:zap: Test exempted - status

authors: bors-servo emilio fitzgen

repo: servo/rust-bindgen


text:
Document the randomverse endpoint

Hello,
thank you for this project!
It would be nice to document the random verse endpoint in the following places:

[ ] on https://bible-api.com/
[ ] in this project's README

Background info: a random verse endpoint was added in pull request https://github.com/seven1m/bible_api/pull/46
Test URL:
https://bible-api.com/?random=verse

Good idea. If you want to make a PR for this, I will merge.

I did this awhile back and forgot to close the issue.


text:
Dsh

Implemented use of dshUI. Created theme for dsh at dshUI/dshUIThemes/dsh.sh. All dsh tests are passing. This is related to issue #27

Implemented use of dshUI. Created theme for dsh at dshUI/dshUIThemes/dsh.sh. All dsh tests are passing. This is related to issue #27

repo: sevidmusic/DarlingDataManagementSystem


text:
Input source

At the moment source is only defined bs.Tag object,
create Source interface and components that would enable getting tag from various sources and bind them to seelctors.
Before:
Example
bs = BeautifulSoup(text)
selector = TypeSelector("div")
selector.find(bs)

Now, when source is predefined:
Example
selector = Request("page") | TypeSelector("div")
selector.find()

other proposed Sources can be:

File
Browser

This is not now in plans, vision for package is to develop more as search engine.
Other ochestration is left for user to set up.


text:
是否應該取消教院式聲母簡拼支持

https://github.com/sgalal/rime-cantonese/blob/a6bad94fcf8d7037e156065c57c154ba892a27df/jyut6ping3.schema.yaml#L99
我喺打「發聲」呢個詞嗰陣發覺而家嘅碼表會將/faat sing/識別成/faa tsing/，因而輸出「花青」。我哋有無必要默認將呢幾行代碼註釋咗佢？默認嚴格按照粵拼規則來輸入。

可以再新建一個 schema 支援教院式拼音

噉我係唔係應該將第97-101行都刪嗮？

係，可以新建個教院式拼音嘅 schema，並喺 README 中説明

authors: laubonghaudoi sgalal

repo: sgalal/rime-cantonese


text:
How to Get CVV number from decrypted data on  secureMag Reader

Hi ..
I have successfully done the decrypt and encrypt operation. now i need the CVV number for to disply into the GUI.
How can i get the CVV number for IDTech SecureMag Reader..
Kindly help me

CVV is not part of the track data.
https://en.wikipedia.org/wiki/Magnetic_stripe_card

authors: SaddamBInSyed ichoes


text:
Add gptq quantization model support

I just test on Qwen-1.8B-Chat-Int4  model on my old gpu.

@Arcmoon-Hu thanks!

authors: Arcmoon-Hu merrymercy

repo: sgl-project/sglang


text:
Champs avec un liseré rouge qu'on ne comprend pas

Sur les pages https://openacademie.beta.gouv.fr/mobilisco et https://openacademie.beta.gouv.fr/gemasco, les champs à remplir pour télécharger les logiciels ont un liseré rouge, qui semble indiquer que ces champs sont en erreur alors qu'on n'a encore rien rentré dedans.
Enlever ce liseré ?

Tu peux m'indiquer sur quelle config ? Je n'arrive pas à reproduire.

Il semble que firefox pense que c'est une bonne idée de rajouter ce liseré sur les champs required

Issue liée : https://bugzilla.mozilla.org/show_bug.cgi?id=1399046
Des pistes pour patcher (mais pas vraiment corriger) le problème :

https://stackoverflow.com/questions/3809146/firefox-4-required-input-form-red-border-outline
https://stackoverflow.com/questions/5939341/firefox-4-is-there-a-way-to-remove-the-red-border-in-a-required-form-input

authors: Flightan gregoirenovel

repo: sgmap/open-academie


text:
refactor constructing of the data array

It's nitpicking, but you could save a lot of lines if you build your data array this way instead of the multiple is_null checks.
If you like ill extend this PR and refactor them all for you!

Thanks for the PR! TIL of array_filter and compact! Your way of constructing the data array is a lot cleaner -- please extend it and I'll be happy to merge it 😃

I would ask you to use the is_null() function as the callback function for array_filter() to make sure we actually only filter null values, and not empty strings, 0, etc.

authors: ao-jhelmich sgraaf

repo: sgraaf/openai-php


text:
Errors in sheet.tsx

Hello, I've been working on a project and had to use sheet but when I tried to deploy on vercel it pointed to me an error in the sheet.tsx code. I didn't touch it just installed using bunx.

Same here

Downgrading @radix-ui/react-dialog from 1.0.5 to 1.04 can temporarily fix the issue.
npm install @radix-ui/react-dialog@1.0.4

Thanks I'll try that

Same thing happened in dialog.tsx and after reinstalling it fixed

It fixed the dialog but not the sheet I did what @D3OXY told me and it worked

I just came to report the problem. @shadcn I think the issue is with radix. after installing both sheet and dialog thats when the problem occured

This might be a peer dependencies bug in Bun.
Can you try adding this to bunfig.toml:
install.peer = false

I faced the issue with Node.js as well, D3OXY helped.

Downgrading @radix-ui/react-dialog from 1.0.5 to 1.0.4 can temporarily fix the issue.
bun add @radix-ui/react-dialog@1.0.4

This might be a peer dependencies bug in Bun.
Can you try adding this to bunfig.toml:
install.peer = false

But wouldn't that be a problem when installing other packages?

As far as I know, className doesn't make any sense on the Portal element, that why it was removed from radix. So you can just delete the prop when using the latest version of the radix primitive.

Got it thanks everyone :D

authors: D3OXY Ibrahim-Isah Jarred-Sumner azimari-toure-ikbal giannis198 johnrackles mhdizmni

repo: shadcn-ui/ui


text:
error when installing shadcn

hi
anyone knows whats the error reason when I try to install shadcn using npx shadcn-ui@latest init or npx shadcn-ui init
this error:
PS D:\projects\lawyer-appointment> npx shadcn-ui init
Need to install the following packages:
shadcn-ui
Ok to proceed? (y) y
node:fs:581
return binding.open(
^
Error: package.json: ENOENT: no such file or directory, open 'D:\projects\lawyer-appointment\package.json'
at Object.openSync (node:fs:581:18)
at Object.readFileSync (node:fs:457:35)
at Object.readFileSync (C:\Users\hp\AppData\Local\npm-cache_npx\74755fd285ad77f7\node_modules\jsonfile\index.js:50:22)
at Ae (file:///C:/Users/hp/AppData/Local/npm-cache/_npx/74755fd285ad77f7/node_modules/shadcn-ui/dist/index.js:245:4075)
at zt (file:///C:/Users/hp/AppData/Local/npm-cache/_npx/74755fd285ad77f7/node_modules/shadcn-ui/dist/index.js:245:4206)
at file:///C:/Users/hp/AppData/Local/npm-cache/_npx/74755fd285ad77f7/node_modules/shadcn-ui/dist/index.js:245:4433
at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
at async loadESM (node:internal/process/esm_loader:34:7)
at async handleMainPromise (node:internal/modules/run_main:113:12) {
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'D:\projects\lawyer-appointment\package.json'
}
Node.js v20.10.0

can you share the code of your package.json file?

Hi, the same issue just happened to me. Here is the package.json code:
{
  "name": "test-site",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "react": "^18",
    "react-dom": "^18",
    "next": "14.0.4"
  },
  "devDependencies": {
    "typescript": "^5",
    "@types/node": "^20",
    "@types/react": "^18",
    "@types/react-dom": "^18",
    "autoprefixer": "^10.0.1",
    "postcss": "^8",
    "tailwindcss": "^3.3.0",
    "eslint": "^8",
    "eslint-config-next": "14.0.4"
  }
}

Hey there! It seems like you're encountering an issue while trying to install shadcn-ui. The error indicates that it's unable to find the 'package.json' file in your 'D:\projects\lawyer-appointment' directory.
To resolve this:

Ensure you are running the command in the root directory of your project.
Confirm that a 'package.json' file exists in the specified directory.

If the issue persists, you might want to:

Double-check the correctness of your project structure.
Run the command in a newly created directory with a 'package.json'.

Share more details if the problem persists.

Check this one.
https://stackoverflow.com/questions/51819180/i-keep-getting-errno-4058-from-npm

I think You are in the wrong directory. you are not in the same directory where the node module or package.json is installed

can you share the code of your package.json file?

{
"name": "lawyer",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"next": "13.5.6",
"react": "^18",
"react-dom": "^18"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"autoprefixer": "^10",
"postcss": "^8",
"tailwindcss": "^3",
"typescript": "^5"
},
"description": "This is a Next.js project bootstrapped with create-next-app.",
"main": "next.config.js",
"keywords": [],
"author": "",
"license": "ISC"
}

now i got this error

your png file is not uploaded please reupload

did you try. rm -rf node_modules package-lock.json && npm i && npx shadcn-ui@latest init

try changing directory from the parent directory to child directory. (cd nameofyourprojectyoucreated)

I am getting the same error for new Remix project. I cleared cache (C:/Users/usernameAppData/Local/npm-cache/_npx).
I get this error on Node 20.
Steps to reproduce:
1- npx create-remix@latest my-app
2- npx shadcn-ui@latest init

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.

None of these solved my problem. I had to run npm install -g pnpm in order for @latest (and without @latest) to work. It seems the scripts now require you to have pnpm installed if using npx (I haven't tested any others).

i keep having the same problem. ive followed in guided steps provided by chat gpt, claude, etc. that still not fixing the problem. what going on?

@MrEshunOfficial have you tried what I suggested?

None of these solved my problem. I had to run npm install -g pnpm in order for @latest (and without @latest) to work. It seems the scripts now require you to have pnpm installed if using npx (I haven't tested any others).

It totally worked for me! Thanks

This is what mine is showing
node:internal/modules/esm/resolve:214
const resolvedOption = FSLegacyMainResolve(packageJsonUrlString, packageConfig.main, baseStringified);
^
Error: Cannot find package 'C:\Users\HP\AppData\Local\npm-cache_npx\d66c5096c7023bfb\node_modules\wcwidth\package.json' imported from C:\Users\HP\AppData\Local\npm-cache_npx\d66c5096c7023bfb\node_modules\ora\index.js
at legacyMainResolve (node:internal/modules/esm/resolve:214:26)
at packageResolve (node:internal/modules/esm/resolve:832:14)
at moduleResolve (node:internal/modules/esm/resolve:918:18)
at defaultResolve (node:internal/modules/esm/resolve:1148:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:390:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:359:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:234:38)
at ModuleWrap. (node:internal/modules/esm/module_job:87:39)
at link (node:internal/modules/esm/module_job:86:36) {
code: 'ERR_MODULE_NOT_FOUND'
}
Node.js v21.7.1

This is what mine is showing
node:internal/modules/esm/resolve:214
const resolvedOption = FSLegacyMainResolve(packageJsonUrlString, packageConfig.main, baseStringified);
^
Error: Cannot find package 'C:\Users\HP\AppData\Local\npm-cache_npx\d66c5096c7023bfb\node_modules\wcwidth\package.json' imported from C:\Users\HP\AppData\Local\npm-cache_npx\d66c5096c7023bfb\node_modules\ora\index.js
at legacyMainResolve (node:internal/modules/esm/resolve:214:26)
at packageResolve (node:internal/modules/esm/resolve:832:14)
at moduleResolve (node:internal/modules/esm/resolve:918:18)
at defaultResolve (node:internal/modules/esm/resolve:1148:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:390:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:359:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:234:38)
at ModuleWrap. (node:internal/modules/esm/module_job:87:39)
at link (node:internal/modules/esm/module_job:86:36) {
code: 'ERR_MODULE_NOT_FOUND'
}
Node.js v21.7.1

I am getting similar error when trying to install ShadCN component from cli...I have tried deleting npm cache, even reinstalling node, but the error is persistent.
@shadcn can you reopen this issue

@Ronit-gurjar let's open a new thread since we have a new cli. thank you.

my pro

I am attempting to do it this way, but no luck.
How exactly did you enter the code?
Thanks!

got this error when i am trying to use select component with the typescript ? i dont know how to resolve this issue

got this error when i am trying to use select component with the typescript ? i dont know how to resolve this issue

Try this command in terminal:
npm install @radix-ui/react-select
Or go to ShadCN select docs and install manually

The same error occurred in my computer 😞, can you please solve the problem @shadcn.

@yooosef3 bro, how did you solve the issue, can you please explain it to me?

@shadcn can you solve this?

Already installed it but still  Not working , still showing me that issue

npx shadcn@latest init
'shadcn' is not recognized as an internal or external command,
operable program or batch file.

authors: MrEshunOfficial Piyush-Kumar-Ghosh RogerioGT Ronit-gurjar SageIago Sudarsh1010 adikal25 aniketicloud d-tietjen demczenko emmasuarezz kwesisam rishabhbizzle rohhann12 sabawoonsediq shadcn suhailkassar11 twillard22 uvislive yooosef3


text:
请问怎么开启日志的详细模式？

用 Centos 搭建了一个酸酸乳，
就三个人用，
我想知道另外一个的浏览记录，
有人说是开启详细的日志记录
请问怎么开启日志的详细模式？

你想偷窥别人的浏览成人网站的记录？

repo: shadowsocksr-backup/shadowsocksr


text:
Can I pass a variable to the downloadthis command?

Thanks again for creating this extension!
The example has this command:
{{< downloadthis files/mtcars.csv dname="mtcars.csv" label="Download the mtcars data" icon="database-fill-down" type="info" >}}

Where 'files/mtcars.csv' is a path to an existing file.
I'd love to pass the data frame directly, e.g. 'mtcars' instead of 'files.mtcars.csv'. Is this a possibility? If not, is it possible to pass a file path as a variable created within the quarto document? E.g.:
p <- path("mtcars", ext = "csv")

{{< downloadthis p dname="mtcars.csv" label="Download the mtcars data" icon="database-fill-down" type="info" >}}

Ah, with some experimentation I can do:
path <- fs::path("mtcars", ext = "csv")
cmd <- paste('{{< downloadthis', path, 'dname=Mtcars label="Download the mtcars data" icon=database-fill-down type=info class=data-button id=mtcars >}}')

Then:
#| results: asis
cat(cmd)

This works for my purposes, but passing in the data frame object directly would be ideal.

No! I am afraid It is not possible to pass R data.frame directly to the downloadthis shortcode 🙁, since the shortcode is internally handled by Lua.
However, your solution to this problem can be made easier by implementing inline R code. Try the following reprex,
---
title: "Downloadthis Example"
format: html
---

## data.frame in downloadthis

### Approach 01

Assuming you have iris.csv file in the same directory as this qmd file, you can refer
the path of the csv using inline r code as follows,

{{< downloadthis `r fs::path("iris.csv")` dname=iris label="Download the iris data" icon=database-fill-down type=info class=data-button id=iris >}}

### Approach 02

You can write a function that takes a data.frame object and then writes the data.frame
then writes the data.frame in the current directory as a csv file then returns the
path to the csv file.

```{r}
#| echo: false
embed_df <- function(data, name) {
  readr::write_csv(data, paste0(name, ".csv"))
  fs::path(name, ext="csv")
}
```

Then call the function inside the downloadthis shortcode using inline R code.

{{< downloadthis `r embed_df(mtcars, "mtcars")` dname=Mtcars label="Download the mtcars data" icon=database-fill-down type=info class=data-button id=mtcars >}}

Let me know if anything is unclear 🙂.

That's great, thanks!

authors: daranzolin shafayetShafee

repo: shafayetShafee/downloadthis


text:
Improvements to CI

I think the gem should have 2 big improvements to CI:

A sample app, like /spec/dummy https://github.com/shakacode/react_on_rails/tree/master/spec/dummy
CI steps that run rails new and the webpacker generator, and then a test, like those here in React on Rails

Take a look at https://github.com/shakacode/react_on_rails/blob/master/Rakefile and https://github.com/shakacode/react_on_rails/blob/master/.github/workflows/main.yml.

for the first point
I found that there are mounted_app and test_app in the test directory
So we need another app to test the Shakapacker generator command?

It would be good for CI to run rails new and confirm that a simple app "works" with an integration test.

ok I will send a PR for it

@saiqulhaq would be awesome if such a change supported showing the bug fixed by #47! (CC @tomdracz)

Closed as stale.

authors: Judahmeek justin808 saiqulhaq

repo: shakacode/shakapacker


text:
🛑 Shakedown Social - Uploads is down

In 768af61, Shakedown Social - Uploads (https://files.shakedown.social/accounts/avatars/109/357/389/718/265/462/original/dd80d2c95e48cfd2.jpeg) was down:

HTTP code: 403
Response time: 272 ms

Resolved: Shakedown Social - Uploads is back up in 96ee6fa.

repo: shakedown-social/upptime


text:
🛑 Shakedown Social - Uploads is down

In 8c0bc7f, Shakedown Social - Uploads (https://files.shakedown.social/accounts/avatars/109/357/389/718/265/462/original/dd80d2c95e48cfd2.jpeg) was down:

HTTP code: 403
Response time: 721 ms

Resolved: Shakedown Social - Uploads is back up in 2f6b456.


text:
🛑 Shakedown Social - Uploads is down

In bae8cff, Shakedown Social - Uploads (https://files.shakedown.social/accounts/avatars/109/357/389/718/265/462/original/dd80d2c95e48cfd2.jpeg) was down:

HTTP code: 403
Response time: 379 ms

Resolved: Shakedown Social - Uploads is back up in 232ea61.


text:
Check port

We need to try and confirm the port exists, but maybe also if it can be written to, or read from.

setserial is probably what we want.

repo: shakna-israel/aardvark-