issue with association?

I'm having trouble with setup.
Calling user.jobs gives me this (both before and after creating a job)
NameError: uninitialized constant User::Delayed::Job
But, calling Devise::Jobs.first.record performs as expected
I'm running Rails 5.1.6
User.rb:
class User < ApplicationRecord
  has_many :jobs, as: :record, class_name: 'Delayed::Job'
end

Migration file is as-generated.
I am using a custom job:
class SyncUserWithApiJob < ApplicationJob
  def initialize(user_id)
    @user = User.find(user_id)
  end

  def enqueue(job)
    job.record       = @user
    job.identifier   = 'user_' + @user.id.to_s + '_api_sync_' + Time.now.utc.rfc3339(3)
    job.progress_max = Property.visible_to(@user).count + Task.visible_to(@user).count
  end

  def before(job)
    @job = job
  end

  def perform
    # doing stuff
  end
end

Any ideas?

It's almost like your autoloading doesn't do what it supposed to. Try has_many :jobs, as: :record, class_name: '::Delayed::Job'. It's just odd that Delayed::Job works directly, but not when you specify it as a class_name.

Whoa, that worked!
2.4.4 :001 > User.first.jobs
  User Load (1.0ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT $1  [["LIMIT", 1]]
  Delayed::Backend::ActiveRecord::Job Load (0.9ms)  SELECT  "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_id" = $1 AND "delayed_jobs"."record_type" = $2 LIMIT $3  [["record_id", 3], ["record_type", "User"], ["LIMIT", 11]]
 => #<ActiveRecord::Associations::CollectionProxy []>
2.4.4 :002 >


Add PDM to "Who's Using Ruff?"

https://github.com/pdm-project/pdm/commit/f6cc4ebc385ba0f2c640c3ceda0024faac3835c7

Woah awesome!


Input: renderErrorMessage is not working

To Reproduce (Required)

Go to https://react-native-elements.js.org/#/input
Click on renderErrorMessage checkbox
Error message is always visible

Current behavior (Required)

Error message is always visible

Expected behavior (Required)

Error message should not be visible when renderErrorMessage is false

I'm working on it

Fixed in react-native-elements repository:
https://github.com/react-native-elements/react-native-elements/pull/2844


Possible to control BLE locks? (Lock and Unlock)

I have a Xiaomi BLE lock, managed to get into HA using this wonderful Integration, able to view states and such, but I was wondering if I would be able to control the lock through home assistant, having the ability to Lock and Unlock would be wonderful.
Thanks.

Can you do this function via MiHome?

@AlexxIT I have BLE Aqara n100 lock and yes, it is possible to unlock it remotely in MI Home. It would be great to have an ability to unlock it from Home assistant.

You can do it remotely? When you not at home?

Unlock button is available only in case of direct  bluetooth connection between phone and lock.
Only option to unlock without direct bluetooth connection is one-time password creation.

It seems that the Gateway does not manage to open the lock. Only the user's phone can do that.


ping db to validate connection

Jira:
https://clever.atlassian.net/browse/IP-1944
Overview:
refer to ticket

(meatspace lgtm)


Dropbox

Codecov Report
Base: 76.49% // Head: 76.39% // Decreases project coverage by -0.11% :warning:

Coverage data is based on head (9bfe515) compared to base (a3d9139).
Patch coverage: 75.86% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #13      +/-   ##
==========================================
- Coverage   76.49%   76.39%   -0.11%
==========================================
  Files          13       14       +1
  Lines         617      733     +116
==========================================
+ Hits          472      560      +88
- Misses        101      120      +19
- Partials       44       53       +9

Impacted Files
Coverage Δ

storage/dropbox/dropbox.go
75.00% <75.00%> (ø)

config/job.go
96.66% <100.00%> (+0.15%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Various fixes for binary expression math between iterators

Closes #5973.

LGTM but @benbjohnson should probably take a look too.

@jsternberg What about validating call+ref combinations in calls? e.g.
SELECT count(foo + sum(bar)) ...

It seems like you should nest the validation inside the Call for its Expr.

@benbjohnson that combination is forbidden by another validation right before it since math isn't allowed inside of a call. I've added that as a test case so that when the math restriction is removed by #5971 we won't forget about validating this as an error.

I made a modification to the validation so both the top()/bottom() validation and the mixed aggregate and raw field validation are recursive and added some more test cases.

:+1:


added rule for amp-page at ending url

add rule for artnet.com amp-page at ending of url

Have you tested this? This rule appears to be invalid and would not modify the sample URL at all

This should do what you wanted: /(.*)\/amp-page$/i
Replace rule not required

testing and fixing it

it removes amp-page now when i run test

Closing this because there's too many problems with your commits

care to expain

I'm surprised you don't see the problem. Your first commit was untested, invalid and didn't work. The second commit vandalized several other rules with no explanation.


Make Cafe Menu Step 37 instructions a little.....

Solve issue no #47958 Make Cafe Menu Step 37 instructions a little clearer

Hey @AbhishekKC16
Thank you for opening this pull request.
That issue is not yet open for code contributions. Issues labelled with help wanted or first timers only are open for contributions.
This is a standard message notifying you that we've reviewed your pull request and have decided not to merge it. We would welcome future pull requests from you.
Thank you and happy coding.

As a new contributor, we encourage you to read our contributing guidelines.
We expect our contributors to be aware of the process specific to this project. Following the guidelines religiously earns you the respect of fellow maintainers and saves everyone time.
Some examples of this are:

Do not edit files directly through GitHub – while you can, it's not a good idea.
Make sure you follow the PR checklist and not just tick things off; otherwise, we won't take you seriously.
Use the correct way to link issues in the description of the PR by updating the XXXXXX. Do not just add issue numbers everywhere and anywhere you feel like.
Keep mentions and review requests to a minimum. We understand you are excited about contributing, and our maintainers will get back to you as soon as they get a chance.
Do not work directly off your main branch - create a new branch for the changes you are working on.

We appreciate you taking the time to help us, and we hope to see more contributions from you.
Happy Contributing.


multiple crates in the same workspace cannot reuse the same cache

Hi thanks for the helpful library! However, seems that multiple crates in the same workspace should cannot the same cache. For example, I have crate A and crate B both inside workspace W. Then, I use rustimport and import both A and B in my python code. Then, seems that the two are compiled separately, thus it both takes twice the CPU and twice the disk. It would be great if A and B can reuse the same cache, just like what it is done in standard rust cargo workspaces.

Hi, what's your usecase? Do you have several crates to be imported with rustimport within one workspace?
Ehen implementing workspace support I though about this problem,

but I came to the conclusion that usually you'd have one create imported by Python and the other ones in the workspace would be pure-rust.

Hmm good idea, I may refactor code into this

Fixed now in 70f172b


Update flake.lock

fix error: NAR hash mismatch in input 'https://devimages-cdn.apple.com/design/resources/download/SF-Pro.dmg?narHash=sha256-yQhtaEPTuYOIOaC6eSPdka/Jv5Ydw3Mnd8Prlcgjs90%3D' (/nix/store/xh8m2zd8qp3kh14an008b4zb4x05brxa-source), expected 'sha256-yQhtaEPTuYOIOaC6eSPdka/Jv5Ydw3Mnd8Prlcgjs90=', got 'sha256-Q/pOQ4MGhW/ZtLka+UUQcwSoZFDWW34XvutxL4GvzUY='

Got this error while updating my flakes, working after this change.

Thank you, they must go through all the fonts throughout the day


Revisit default behavior for record ACL

It appears there are confusion as to the ACL behavior when _access is null.
According to skydb/record.go, the access is granted by default if ACL is empty (null becomes empty slice in golang).
Therefore the equivalent ACL when _access is null is world writable.
There are two options for how to approach this issue:

skygear developers think the default ACL for _access = null should be public readable. Adopting this behavior will be a breaking change as there are apps that rely on the implemented behavior.
keep the implemented behavior that _access = null means global writable, update the SDKs to reflect this default.

[ ] Update to public read if null
[ ] Check all SDK behaviour when seeing _access = null
[ ] Update API doc to include _access = null behaviour

I think this issue is closed prematurely as the fundamental question of what access = null means is not addressed.

It is agreed that the access=null means public-readable instead of public-writable. See #359.


Update deployment.md

tech requirements document is missing so we needed to pull this out of the documentation.

updated per your feedback


RS256 algorithm not supported

While the paw docs say that RS256 is supported, it does seem to give errors when I try it.
Any reason why this would happen? Is it not supported?
https://paw.cloud/docs/auth/jwt

When I change it back to HS256, everything works.

I'm having this problem as well. How did you fix this @jessedobbelaere ?

@DigitalD1982 I don't have the issue anymore. Not really sure what changed or maybe it was my settings. This is what I currently use every day in Paw to authenticate to my api with JWT, it might help you:


E117: Unknown function: ch_close_in / vim v. 7 - warning

I installed via vundle on MacVim v7 (didn't realized it hadn't been updated to 8) and the error message I got was:
E117: Unknown function: ch_close_in
I did figure out that I needed to update vim to v8+, and I did.  This fixed the problem.
But I think that maybe a specific error message about an invalid version of Vim should be rendered vs. this missing function error.  (just to save you getting questions).

Hmm, there is an if statement checking for this which should print an error message, but maybe it's just not working.

I just pushed a commit now which checks if the two important functions for the features exist instead. If you can check with with MacVim 7 again, that should hopefully work.


start.sh -- wget install.sh failure

/setup.sh fails on line "wget -q -O /data/install.sh https://get.pocketmine.net/".
UPDATE: change line to http://get.pocketmine.net/   (replace https with http)

That'll work for the older cached version.  Looks like the old site at pocketmine.net is gone only the cached version remains.  They migrated to https://pmmp.io and there may be more changes coming


Split CLI package into node and cli

JSCodeshift currently only provides a CLI API which is problematic for people who would like to build on top of it to provide, for example, a customised CLI with additional features etc (like what we're hoping to do with this project)
We should investigate either using import * as jscodeshift from 'jscodeshift/src/Runner'; or fork jscodeshift to and mould it into something more official.
Related issues:

https://github.com/facebook/jscodeshift/issues/179
https://github.com/facebook/jscodeshift/issues/398

No longer necessary since we're now fully using jscodeshift and dont need to create our own node package


doc: Writing web applications ignores error from ListenAndServe

@campoy:
Does everyone forget to check the error on ListenAndServe? #golang
https://twitter.com/francesc/status/838547440710012928

Nothing in this tutorial https://golang.org/doc/articles/wiki/ Writing Web Applications, in the Articles section of documentation, seems to indicate that ListenAndServe may return an error. Errors should be checked.

https://golang.org/pkg/net/http/#ListenAndServe
func ListenAndServe(addr string, handler Handler) error
ListenAndServe always returns a non-nil error.

Since I don't see an issue opened by @campoy , I'm opening one.
EDIT: Clarified that the issue is in Article, not the package documentation.

The error isn't ignored in the example. It was first logged, then caused an os.Exit(1)
https://golang.org/src/log/log.go?s=9066:9094#L291

Ping @campoy

The documentation pointed by @joneskoo is indeed failing silently if http.ListenAndServe returns an error.
Since we're not using the Shutdown method, I'd say that it's safe to simply add log.Fatal.
I'll send a CL


better batch file and changes in readme.md

i made the batchfile more efficient and i changed readme.md to include Arch to supported Linux distros
Proof Ghost works on Arch: https://minecraft-legit-cheat-free-no-rat-real-bypass.download/

seems good, the only thing iwould do in the bat add a "py -m pip" since alot of ppl only have python in path, not pip

here i mean https://nowoline.wtf/epic-auth/cc2864f6.png

Sounds good. I'll add it to the batch asap.

done. added the change to the batchfile.

done. added the change to the batchfile.

i meant to change the pip install bla bla bla to py -m pip install bla bla bla xD
so the bat looks like py -m pip install -r requirements.txt

Oh wow I'm retarded okok I got it ill fix

there i fixed

seems good to merge idk if u wanna add something more

seems good for now. idk much python i might contribute more when i learn some python


Qemu monitor for interactive VM management

Seems the qemu docker image doesn't have libvirt or virsh for VM management.
However you can do some interactive management via the qemu monitor interface.
First you have to enable monitor and add an endpoint. Unix sockets is probably more secure but telnet is ok for me. Add this qemu argument to your docker startup:
-e ARGUMENTS="-monitor telnet::55555,server,nowait"
and rebuild your container.
I tried to docker port map 55555 to the host, but there is something very weird with telnet to containers. Anyway no matter we just bash straight into the container with:

docker exec -it windows10 bash

We need the telnet client, so do this:

apt update ; apt install -y telnet

then telnet to the qemu monitor from inside the container:

telnet <IP_ADDRESS> 55555

Now you get the (qemu) prompt and type help for all the commands:
(qemu) help
You can add/remove devices, take snapshots, shutdown the VM etc etc Google is your friend
use ctrl+] to quit out of monitor and then "quit" at the telnet prompt and "exit" from the container bash to your host
My use case was to try and hot swap USB devices. But its super flakey and only really works for USB devices that are plugged in at container boot.
Some useful commands are:
see usb devices in VM:
(qemu) info usb
see host usb devices: (this only seems to work if you have already hooked up a host device already)
(qemu) info usbhost
add a host usb device to VM:
(qemu) device_add usb-host,id=myusb,vendorid=0x1234,productid=0x5678
remove a host usb device from VM:
(qemu) device_del myusb
Remember to eject usb storage devices in the VM OS first
Caveats:
1.Telnet is not secure.
2.You can easily wreck your VM by changing boot devices and removing devices
3.You need to install telnet into the container every time you rebuild it
4.I couldn't get telnet to connect properly by mapping ports to the host
5.I couldn't get USB devices to get recognised after ejecting them from the host after VM starts

Thanks kroese.
I didn't spot that the telnet/monitor had already been enabled. Maybe another one for documentation.
A few things though:
1.Port 7100 appears as "font-service" in "netstat -a" so its not easy to spot in the container
2.The monitor telnet is insecure so might be better to have the default as off with a docker variable to turn on
3.I'm still struggling to map a port or hit the container with telnet from the host. It looks to me like something very funky with telnet in docker containers (or me)
with this mapping:
-p 55555:7100

from container >telnet <IP_ADDRESS> 7100   (works)
from host >telnet {container IP} 7100 (just get trying...)
from host >telnet {host IP} 55555 (just get trying...)
from host >telnet {host IP 55556 (get connection refused)

Is it just me or does this work for others?

Nope, if I map 7100:7100 then I get this:
❯ telnet <IP_ADDRESS> 7100
Trying <IP_ADDRESS>...
^C
❯ telnet <IP_ADDRESS> 7101
Trying <IP_ADDRESS>...
telnet: Unable to connect to remote host: Connection refused
So no connection refused on 7100, but also no telnet
I have no problem port mapping anything else...just telnet...weird

#!/bin/bash
定义Docker容器的名称
DOCKER_CONTAINERS=("qbittorrent" "nas-tools" "transmission" "xiaoyaliu" "MoviePilot")
获取当前小时（24小时制）
CURRENT_HOUR=$(date +"%H")
获取当前分钟
CURRENT_MINUTE=$(date +"%M")
日志文件路径
LOG_FILE="/mnt/user/domains/docker_control.log"
函数：记录日志
log() {
echo "[$(date +"%Y-%m-%d %H:%M:%S")] $1" >> "$LOG_FILE"
echo "[$(date +"%Y-%m-%d %H:%M:%S")] $1"
}
函数：清理日志
cleanup_logs() {
log_size=$(du -m "$LOG_FILE" | cut -f1)
max_log_size=50
if [ "$log_size" -gt "$max_log_size" ]; then
mv "$LOG_FILE" "/mnt/user/domains/docker_control_$(date +"%Y%m%d%H%M%S").log"
touch "$LOG_FILE"  # 清空日志文件
log "日志文件超过50M，已清理."
fi
}
log "开始脚本执行."
如果当前时间在0点到7点59分59秒之间
if [ "$CURRENT_HOUR" -ge 0 ] && [ "$CURRENT_HOUR" -lt 8 ] && [ "$CURRENT_MINUTE" -lt 60 ]; then
log "当前时间在0点到7点59分59秒之间，启动Docker容器..."
for CONTAINER in "${DOCKER_CONTAINERS[@]}"; do
log "启动容器 $CONTAINER..."
echo "启动容器 $CONTAINER..."
if docker start "$CONTAINER" >> "$LOG_FILE" 2>&1; then
log "容器 $CONTAINER 启动成功."
echo "容器 $CONTAINER 启动成功."
sleep 5  # 等待5秒
else
log "容器 $CONTAINER 启动失败. 详细错误信息请查看日志."
echo "容器 $CONTAINER 启动失败. 详细错误信息请查看日志."
fi
done
else
log "当前时间不在0点到7点59分59秒之间，停止Docker容器..."
for CONTAINER in "${DOCKER_CONTAINERS[@]}"; do
log "停止容器 $CONTAINER..."
echo "停止容器 $CONTAINER..."
if docker stop "$CONTAINER" >> "$LOG_FILE" 2>&1; then
log "容器 $CONTAINER 停止成功."
echo "容器 $CONTAINER 停止成功."
sleep 5  # 等待5秒
else
log "容器 $CONTAINER 停止失败. 详细错误信息请查看日志."
echo "容器 $CONTAINER 停止失败. 详细错误信息请查看日志."
fi
done
fi
log "脚本执行结束."
清理日志
cleanup_logs
DOCKER_CONTAINERS=("qbittorrent" "nas-tools" "transmission" "xiaoyaliu" "MoviePilot")你可以修改这里的，定时重启容器. 这是一个脚本.

I would also find this functionality very useful, but I can't figure out how to make it work.
      HOST_PORTS: "7100,8600"
    devices:
      - /dev/kvm
      - /dev/bus/usb
    cap_add:
      - NET_ADMIN
    ports:
      - 7100:7100
      - 8006:8006
      - 3389:3389/tcp
      - 3389:3389/udp

myself@host ~> docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' Tiny11
<IP_ADDRESS>

myself@host ~> telnet <IP_ADDRESS> 7100
Trying <IP_ADDRESS>...
telnet: Unable to connect to remote host: Connection refused

myself@host ~ [1]> telnet localhost 7100
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.

myself@host ~ [1]> telnet localhost 8600
Trying ::1...
Connection failed: Connection refused
Trying <IP_ADDRESS>...
telnet: Unable to connect to remote host: Connection refused

myself@host ~ [1]> telnet <IP_ADDRESS> 8600
Trying <IP_ADDRESS>...
telnet: Unable to connect to remote host: Connection refused


Missing Dependencies

Thank you for publishing your code.
To successfully run /src/main_dasha.py I needed to install the following dependencies in addition to the ones specified in requirements.txt:
scikit-learn
ray[tune]
datasets
rasterio
pytorch-lightning
matplotlib
If you are interested in any more information, please let me know.

Thank you for pointing this out! We've updated the requirements.txt file to include these dependencies. Let us know if you face any other issues!


Feature/expandable color

Description
Fixes DG-389

Codecov Report

Merging #151 into develop will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           develop    #151   +/-   ##
=======================================
  Coverage     91.1%   91.1%
=======================================
  Files          123     123
  Lines         2092    2092
=======================================
  Hits          1906    1906
  Misses         186     186

Continue to review full report at Codecov.

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


[RFC - Server] Refining the service builder API

Motivation and Context
This PR adds an RFC that explores how we could evolve the new service builder API to improve developer experience, in particular for Rust beginners.
Rendered RFC
The API proposed in this RFC has been manually implemented for the Pokemon service. You can find the code here.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Based on our standup discussion from a few days ago:

This RFC does not attempt to solve the same set of problems (branching, refactoring into functions) for building a Plugin stack. We should explore the ergonomics of Plugin stack building in a separate RFC and/or provide dedicated documentation for common patterns that we expect developers to use;
We will move forward with the implementation of this RFC before releasing the new builder API to minimise disruption (e.g. breaking changes) for users.

I'll merge this in and get cracking.


Handle platform view navigation method from engine for Windows

An alternative PR to https://github.com/flutter/flutter/pull/144569 that introduces only the minimal blocking changes needed for further engine development. The engine shall need to invoke a navigatedOut method issued to the framework; this PR adds the associated method handler.
https://github.com/flutter/flutter/issues/143375
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[ ] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] I followed the breaking change policy and added Data Driven Fixes where supported.
[x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@yaakovschectman is this patch safe to close?


affiliate program link in response

Hello
I am using your lib and tring to get affiliate program link to the mp3 song.
            var result = wrapper.Search("we will rock you", AmazonSearchIndex.MP3Downloads, AmazonResponseGroup.Large);
it should be the link which I can put on my site for redirect on Amazon. I can make them manualy by that tool https://affiliate-program.amazon.com/gp/associates/network/build-links/individual/get-html.html?ie=UTF8&asin=B00138COL6&marketplace=amazon&quicklinks=1&subflow=sp_  but api response should return them too, right?
Duke

yes, use the link in DetailPageURL
var result = wrapper.Search("we will rock you", AmazonSearchIndex.MP3Downloads, AmazonResponseGroup.Small);
var link = result.Items.Item[0].DetailPageURL;

That code return link like that for your lib

http://www.amazon.com/We-Will-Rock-You/dp/B00138COL6%3FSubscriptionId%3DAKIAJXRE24SFKPKOIS4A%26tag%3Dnagerat-21%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB00138COL6

and that the link which amazon give on site tool

http://www.amazon.com/gp/product/B00138COL6/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=B00138COL6&linkCode=as2&tag=duke0e4-20&linkId=H6MIZIQOSWFXTY4H

Questions here:

Those links looks different. They have the same ID = B00138COL6, but SubscriptionId and camp not match. Is it still work?
That item on site have 30 secounds demo which customer can listen before buy. Is there are any chance get link on that short mp3 sample?
Based on docs main param here "tag" which attach bonuses to account. Can i change it to mine?

Thanks a lot fir your help!

Hello
With the new Version (1.0.8) the links have the correct format. To change the tag (associateTag) use the last parameter on AmazonWrapper

var wrapper = new AmazonWrapper(authentication, AmazonEndpoint.DE, "duke0e4-20");


Errors when syncing certain characters

A note with the following content produces an error:
Ułożenie znacznika w USG

---
doglowowo w strzałkowym;
w prawo w czołowym
(w lewo na plecach)

A note with the following content does not:
Ulozenie znacznika w USG

---
doglowowo w strzałkowym;
w prawo w czołowym
(w lewo na plecach)

(As reported by @aesculapa)

I'm able to reproduce this. Getting the error:
Error: Write failed. File not found:
/Anki/Test/Ułożenie znacznika w USG.md

Special characters are only an issue in file names, not the note bodies — in this case the file is derived automatically from the contents.
It's Obsidian-specific, unicode file names work fine in the CLI version of Yanki.
Will fix but might be a few days.

Thank you for the update, Eric.
Great work identifying the issue. If there's anything further you need from me to assist in this matter, please let me know.
I'll wait patiently for the fix, no rush.
Best,
Aneta
On Mon, Sep 2 2024 at 10:10, Eric Mika < @.*** > wrote:

I'm able to reproduce this. Getting the error:
Error: Write failed. File not found:
/Anki/Test/Ułożenie znacznika w
USG.md
Special characters are only an issue in file names, not the note bodies —
in this case the file name is derived automatically from the contents.
It's Obsidian-specific, unicode file names work fine in the CLI version of
Yanki.
Will fix but might be a few days.
—
Reply to this email directly, view it on GitHub (
https://github.com/kitschpatrol/yanki-obsidian/issues/13#issuecomment-2324091715
) , or unsubscribe (
https://github.com/notifications/unsubscribe-auth/AO6CLKPI4DF7OFWN24H72FTZUQMRBAVCNFSM6AAAAABNPFB3FGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRUGA4TCNZRGU
).
You are receiving this because you were mentioned. Message ID: <kitschpatrol/yanki-obsidian/issues/13/2324091715
@ github. com>

Ok, this was a little tricky and seems to be related to unicode normalization issues, where visually identical unicode strings have different byte representations.
Obsidian has its own ideas about normalization, as does Anki, as do Windows and macOS. I think I have a fix that works, so please upgrade to 1.4.3 and give it try.

I'm going to assume that this is fixed since the related tests are passing on my end and I haven't heard any updates to the contrary in this thread.
But please don't hesitate to reopen if you're still seeing this issue.


Run tests written in ES6

Hi. I have my code written in ES6 and I successfully test by passing babel-instanbul to the scriptPath option. However I would like to write in ES6 my tests as well. The author of babel-istanbul suggests to do that by running the script with babel-node. Unfortunately I do not see a way to do that using grunt-mocha-istanbul. I was only able to get it to run by manually modifying the value of cmd in tasks/index.js to contain the path to babel-node.
Could you add the support for tests in ES6 to grunt-mocha-istanbul?

:+1:

You can do this by following
options: {
         ...
         require: 'test/mocha-babel',
        ...
}

and
cat test/mocha-babel.js
require('babel/register')({
  'optional': [
    'es7.classProperties'
  ],
  'blacklist': []
});

@jithin1987 when I was trying that with mochaOptions: ['--require=babel/register'] I got an error message from the coverage generation step. Are you sure that works?

The approach I pasted above works for me.

@jithin1987 thank you, I will try it. I can't see the difference though.

@jithin1987 it doesn't work for me. Here's my configuration:
options: {
    scriptPath: 'node_modules/.bin/babel-istanbul',
    require: 'tests/mocha-babel',
    coverageFolder: 'tests/results/backend_coverage'
},
backendHtml: {
    src: ['tests/backend/common/net/**/*.spec.js']
}

And I get this exception:
node_modules/babel-istanbul/lib/report/html.js:236
	    text = structuredText[startLine].text;
	                                    ^
TypeError: Cannot read property 'text' of undefined
    at node_modules/babel-istanbul/lib/report/html.js:236:45
    at Array.forEach (native)
    at annotateFunctions (node_modules/babel-istanbul/lib/report/html.js:219:26)
    at HtmlReport.Report.mix.writeDetailPage (node_modules/babel-istanbul/lib/report/html.js:422:9)
    at node_modules/babel-istanbul/lib/report/html.js:484:26
    at SyncFileWriter.extend.writeFile (node_modules/babel-istanbul/lib/util/file-writer.js:57:9)
    at FileWriter.extend.writeFile (node_modules/babel-istanbul/lib/util/file-writer.js:147:23)
    at node_modules/babel-istanbul/lib/report/html.js:483:24
    at Array.forEach (native)
    at HtmlReport.Report.mix.writeFiles (node_modules/babel-istanbul/lib/report/html.js:477:23)
    at node_modules/babel-istanbul/lib/report/html.js:479:22
    at Array.forEach (native)
    at HtmlReport.Report.mix.writeFiles (node_modules/babel-istanbul/lib/report/html.js:477:23)
    at HtmlReport.Report.mix.writeReport (node_modules/babel-istanbul/lib/report/html.js:561:14)
    at LcovReport.Report.mix.writeReport (node_modules/babel-istanbul/lib/report/lcov.js:55:19)
    at node_modules/babel-istanbul/lib/reporter.js:93:20
    at Array.forEach (native)
    at Object.Reporter.write (node_modules/babel-istanbul/lib/reporter.js:87:30)
    at process.<anonymous> (node_modules/babel-istanbul/lib/command/common/run-with-cover.js:267:30)
    at process.g (events.js:199:16)
    at process.emit (events.js:129:20)
    at process.exit (node.js:600:17)
    at done (node_modules/mocha/bin/_mocha:406:32)
    at afterWrite (_stream_writable.js:361:3)
    at _stream_writable.js:349:9
    at process._tickCallback (node.js:355:11)

@arty-name You should check why structuredText[startLine] is undefined. I don't think it has much to do with babel.
Also versions I use are
grunt-mocha-istanbul": "~3.0.1",
mocha": "^2.3.3",
isparta": "^3.5.3",

And I am using isparta instead of istanbul since isparta provides coverage report for original es6/7 code not the transpiled one.

@jithin1987 the last time I saw that error was when I was introducing babel. It was thrown from parts of code dealing with source maps and stuff. I then switched to babel-istanbul and that solved the problem. So I am pretty confident that it has to do with transformations and babel.
For me babel-istanbul also provides coverage of the original code.

@arty-name maybe a nitpick, but your options should be
backendHtml: {
    src: ['tests/backend/common/net/**/*.spec.js'],
    options: {
      scriptPath: require.resolve('node_modules/.bin/babel-istanbul'),
      require: 'tests/mocha-babel',
      coverageFolder: 'tests/results/backend_coverage'
   }
}

@pocesar thank you for the advise. Could you add the support for tests in ES6 to grunt-mocha-istanbul?

@arty-name the tests are actually ran by mocha, and mocha needs to understand that your test code is in ES6, it's not a problem with grunt-mocha-istanbul itself, but rather the way you need to pass the options to mocha.
You'll need to do:
options: {
   mochaOptions: ['--compilers', 'js:babel/register']
}

The only problem is that the errors that might show up can point to the compiled version of the test, and might be harder to spot.

@pocesar for me it not just "tests are run by mocha". For me it's like that: node runs grunt, who runs grunt-mocha-istanbul, who runs babel-istanbul, who runs mocha, who runs tests. If I take grunt and grunt-mocha-istanbul out of the picture, I can replace node with babel-node, and then everything is fine: tests and code can be written in ES6. ES6 in tests is handled by babel-node, while ES6 in code is handled by babel-istanbul. But as soon as I add grunt-mocha-istanbul, I cannot use babel-node, and therefore I cannot use ES6 in tests.
The solution you are proposing does not work either. If I pass babel to mocha, then the coverage information will be messed up, because istanbul cannot run mocha with babel. To have coverage for ES6 code I have to use babel-istanbul. If I want in addition to write tests in ES6 I have to run babel-istanbul with babel-node. But I am running babel-istanbul with grunt-mocha-istanbul, and it does not let me use babel-node.
This is why I am asking you to add support for babel-node to grunt-mocha-istanbul.

I'm not sure if this is related but I get:
No coverage information was collected, exit without writing coverage information
ERROR: No coverage files found.
Warning:  Use --force to continue.

I have to pass mochaOptions: ['--compilers=js:babel-register'] or mochaOptions: ['--require=babel-core/register'] to make it work with Babel 6 and Node 0.12.
When I do not use Babel but Node 5 - which supports ES6 natively - a coverage report is generated.

I simply give up on this. The only way I can get a coverage report to be generated is to run the command manually using babel-node instead of node. Any other way (and I have tried a lot - all of the suggestions here and many more) and I get no coverage report generated.
I don't see any examples of anybody having this working.
This the closest I got:
module.exports = {
  server: {
    options: {
      scriptPath: require.resolve('isparta/bin/isparta'),
      // scriptPath: './node_modules/.bin/babel-istanbul',
      mask: '**/*.test.js',
      coverageFolder: 'server/coverage',
      reportFormats: ['text'],
      require: [
        // 'babel-core/register',
        // 'server/test/mocha-babel'
        'babel-polyfill',
        'babel-register'
      ],
    },
    src: 'server/test',
  }
};

Unfortunately, this or any permutation of it that I could think of was enough.
The only thing I can see that works it to hack this module so that it uses babel-node, add an option to support using babel-node, or forget it all.
In the end I went with simply running the command from npm run as
babel-node ./node_modules/.bin/isparta cover --dir=./server/coverage --report=text _mocha -- --report=text server/test/**/*.test.js
And then I use https://github.com/cri5ti/grunt-shell-spawn to run npm run tets:server from within grunt. Not ideal but I'm done missing with this! Thanks anyway.

@mrfelton based on your post, I've made a few additions to the task, see if it works for you https://github.com/pocesar/grunt-mocha-istanbul/tree/issue%2349
Basically you need to set (in your case):
options: {
    nodeExec: 'babel-node',
    scriptPath: require.resolve('isparta/bin/isparta'),
    reporter: 'text',
    reportFormats: ['text']
}

Good stuff @pocesar - that does work, although adding reporter: 'text' as you suggested results in an error

"text" reporter not found

I also needed to set nodeExec to ./node_modules/.bin/babel-node since babel-node is not installed globally (recommended by the babel team).

@mrfelton yes, my bad, 'text' is a istanbul reporter not a mocha reporter ;)
see if you can change that line to nodeExec: require.resolve('babel-cli/bin/babel-node') or nodeExec: require.resolve('.bin/babel-node')

need to know if the code in https://github.com/pocesar/grunt-mocha-istanbul/tree/issue%2349 can be merged into master, can anyone hint me what is working and what isn't

I’d like to help, but I changed the job in the meantime :) Don’t have access to the old code. Hopefully @mrfelton can comment.

@arty-name thanks anyway, I never dealt with untranspiled code before, I mainly use Typescript, then have a build step, so I'm always working with ES5. If you have any idea how I could setup a simple test case using ES2015+, would be great

I can’t really recall all the details. Maybe @fustic will be able to dig it up it the gruntfile history.

@arty-name gruntfile history doesn't give much more detailed then you have already specified here.
I would say we can close the issue. Seems like no one else facing this issue and we fully migrated to webpack, so we write all code/tests in ES6/7.

should be good to go in version 5.0.0


Integrate with Unicode’s text rendering tests

Would you be interested in testing font.rs through Unicode text rendering tests?
I’d volunteer to do the integration into the test suite on the Unicode side, if somebody familiar with Rust writes a command-line tool that can be called like this:
path/to/some-command --font=fonts/TestCMAP14.otf --testcase=Foo-5/6 --render=≩≩

writing an SVG file to stdout like this:
<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.1"
    xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    viewBox="0 -120 1446 1200">
  <symbol id="Foo-5/6.uni2269" overflow="visible"><path d="M100,334 L623,563 L623,619 L100,880 L100,793 L518,594 L100,420 Z M100,208 L622,208 L622,287 L100,287 Z M100,38 L622,38 L622,117 L100,117 Z M282,-93 L508,379 L436,413 L211,-59 Z"/></symbol>
  <use xlink:href="#Foo-5/6.uni2269" x="0" y="0"/>
  <use xlink:href="#Foo-5/6.uni2269" x="723" y="0"/>
</svg>

For test cases on variable fonts, your tool would be called with an additional argument for the variation settings, such as --variation=wght:481.3;wdth:70. Initially, you could ignore this.
The test fonts are here. If you write a command-line tool that can be called as described, the generated test report will look like this, this, this, or this.

cc me.

Referencing https://github.com/unicode-org/text-rendering-tests:

With --engine=FreeStack, the tests are run on the free/libre open-source text rendering stack with FreeType, HarfBuzz, FriBidi, and Raqm. These libraries are used by Linux, Android, ChromeOS, and many other systems. — Test report for FreeStack.

I think font-rs would be best to focus only on the FreeType part of this stack.  To handle this, we would need to add the proper FriBidi and HarfBuzz plumbing to get these tests to work.


esp32/arduino iot central sample that uses x509 certificates?

The provided esp32/arduino samples such as Azure_IoT_Central_ESP32_AzureIoTKituse sas tokens for security, could you provide any guidance on how to change them to use x509 certificates instead? Eg if the esp32 had a hard coded certificate and private key in pem formatted strings instead of the device key, here?
Thanks!

Should this issue be here or over in the azure-iot-sdk-c? I put it here because the sample repo's point to here (official library website link) from thier README, but thats a typo and it should be the iot repo isn't it?

@ewertons @wduraes

This is the right place for this issue. The arduino repo is a reshuffling of files and directory structure so this is where the core logic lives.
With that, thanks for the suggestion! The SAS key sample was the first task to get the sample up and working. We have plans to bring the certificate scenario as well. We will try and keep this issue posted with updates.

Thanks. I need to get it  working now not later though so in the meantime could you give any help/hints on what the changes I need to do to the existing sample to have it use certificates?

Spitballing here.....
I see in the struct here fields for a client cert and client key. I would try putting them in there instead of the mqtt password which we have here?
Something like
  mqtt_config.client_cert_pem = (const char*) my_device_cert;
  mqtt_config.client_cert_len = strlen(my_device_cert);
  mqtt_config.client_key_pem = (const char*) my_device_key;
  mqtt_config.client_key_len = strlen(my_device_key);

Again...haven't tried it but that's where I would start. Password field should be blank if using x509.
Let me know if that helps!

Ok thanks @danewalton , I have this working now. You can see the changes i had to do here. I could raise a pull request if you've any interest in that?

Oh that's great! Feel free to raise that PR and I'll hopefully get to verifying it today.

I have a PR to add this feature more widespread: https://github.com/Azure/azure-sdk-for-c-arduino/pull/16


CSI receiver blocked (AEGHB-164)

Hi all,
I flashed two esp32 the first one is sender and the source code is in the following path :
https://github.com/espressif/esp-csi/tree/master/examples/get-started/csi_send
and the second is receiver and here is their path:
https://github.com/espressif/esp-csi/tree/master/examples/console_test
After 1 hour and 30 minutes, the sender works fine but the serial monitor of the receiver has been blocked, in fact the console does not display new data as shown in the following figure:

I have done this experience a few times and we always have the same problem.
What is the reason for this problem?

I have the same issue. Any suggestions!

Thanks for discovering and reporting this problem. we have reproduced the problem and now is working on it.

@ahmed123-sys This issue has been fixed, please update and verify it


Decon repairs

This has some bug fixes to deconvolution processors I found while writing a first draft for a deconvolution tutorial.  The changes to CNR3CDecon are fairly significant to make it more robust.   There is a critical change the pybind11 code to fix a problem with std::vector binding noted for the record on this issues page..
This also contains some important fixes to the Seismogram and TimeSeries APIs.  I had forgotten they where inside this.
Also checked in the new deconvolution tutorial so I recommend running that jupyter notebook tutorial when this is installed.

This seems included pull request #95. Shall we just close that one?

I think that is right.   git is a sharp knife and I think I cut myself on this one.


Add a simple inference notebook

Looks good! Thank you

Hey @tangy5 , can we merge it then? Thanks!


added output-file argument to command

I added a command argument to export the output to a file. It defaults to ./resources/js/types/models.d.ts'.

Thanks @red-freak could you also update the Additional Options section on the readme

done


Fix: Add Namespace and Dependency Updates to Resolve Build and Runtime Errors

Namespace Addition: Introduced namespace com.vocsy.epub_viewer in the android block of the build.gradle file to address the error:

Namespace not specified

Dependency Updates:
Added implementation 'com.github.kittinunf.fuel:fuel-android:2.3.1'
Added implementation 'com.github.kittinunf.fuel:fuel:2.3.1'
These dependencies resolve the issue of the fuel-android dependency not being found.

Hex Color Conversion Fix: Updated the getHexFromColor(Color color) method to address a runtime error where PlatformException occurred due to the incorrect parsing of Color objects. The previous method was causing a NumberFormatException during the parsing process in the vocsy_epub_viewer package for release builds on android:

java.lang.NumberFormatException: For input string: "Instance of 'Color'"

The new method converts the Color object to a valid hex string format, preventing the error.

SORRY FOR DELAY
PLEASE CHECK THIS NEW VERSION "vocsy_epub_viewer: ^3.0.0" AND GIVE YOUR REVIEW. THANK YOU @djoks


Training on HMDB51

Hello, thank you for providing the code. I am using your code to train on HMDB-51. However, I found your HMDB-51 models are trained from fine-tuning the HACS pre-trained model.(I got very bad result training on HMDB-51 data only) Can you provide the pre-trained HACS model? Another question: The HACS model is training on the HACS Segments data right? Thank you!

Hi @Shaoliu089 ,
We will be releasing the weights in the coming months alongside code updates for stability (mainly for multi-grid training) and bug fixes. I am also looking at possibilities for using single-precision training as apex may be unstable in certain cases (e.g. small gradient values). I will leave this issue open until then.
Best,
Alex

Update: You can now initialise your model weights with the provided pre-trained models on HACS from the latest commit 33bbc7a
Best,
Alex

Update: You can now initialise your model weights with the provided pre-trained models on HACS from the latest commit 33bbc7a
Best,
Alex


Certificating JWK public keys (JWC)

We've been experimenting with certificating JWK public key values. Like X.509 certificates, this key sharing scheme minimizes the need for fetching public keys used for encryption and signature verification. We're calling this JSON Web Certificates (JWC).
A JSON Web Certificate is created by adding descriptive properties to a JSON Web Key, representing the issuer (iss), subject (sub), and other key metadata, such as time of issue (iat), expiration (exp), and certificate identifier (jti). This JWK is then used as the payload of a JSON Web Token or JSON Web Document.
The following JWC is represented as a JSON Web Document signed with KS256.
{
  "payload": {
    "jti": "a49a290a8f185b3c30ab",
    "kid": "0f88678c349d41e4fd3e",
    "iss": "https://example.org”,
    "sub"<EMAIL_ADDRESS>    "kty": "EC",
    "crv": "K-256",
    "x": "wAa1grkJ4BLUJdNgRUG4ovcz3zXK6BeA3sDP3VT66As",
    "y": "fbZJQJgvxcgLupPb7Qp_7gL43FfTUHwBGNHJoProq34",
    "key_ops": [ "verify" ],
    "ext": true,
    "Iat":<PHONE_NUMBER>,
    "exp":<PHONE_NUMBER>
  },
  "signatures": [
    {
      "protected": {
        "alg": "KS256",
        "kid": "LGm6w06md1w",
        "jku": "https://example.org/jwks"
      },
      "signature": "MEYCIQDEwsaHMKPlH0teADyn5gs9CPY8c3O7z70N-xjwmM_JJwIhAPzzkSOuJ2..."
    }
  ]
}

A certificate can also be serialized as a compact JWT (line breaks for readability):
eyJhbGciOiJLUzI1NiIsImtpZCI6Ims1VHd4Y2UwYlJjIiwiamt1IjoiaHR0cDovL2xvY2FsaG9
zdDo1MTUwL2p3a3MifQ.eyJqdGkiOiJkMzkyNDE0NThjMjNiN2JmYjk1ZiIsImtpZCI6ImU
5N2M2MDZjMjliYWRjNWRhNDBkIiwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo1MTUwIiwic
3ViIjoic21pdGhAYW52aWwuaW8iLCJrdHkiOiJFQyIsImNydiI6IkstMjU2IiwieCI6IndBYTF
ncmtKNEJMVUpkTmdSVUc0b3ZjejN6WEs2QmVBM3NEUDNWVDY2QXMiLCJ5IjoiZmJ
aSlFKZ3Z4Y2dMdXBQYjdRcF83Z0w0M0ZmVFVId0JHTkhKb1Byb3EzNCIsImtleV9vcH
MiOlsidmVyaWZ5Il0sImV4dCI6dHJ1ZSwiaWF0IjoxNDk4NDI0NTQ2LCJleHAiOjE1Mjk5
NjA1NDZ9.MEUCIQD2WRGkcZd-50q-jZtIl9tHqVmyOQ1zRLVTym2hAFyfLAIgVgZmI_5
7ouVwg5cZFHvPViIMo0u4kuDHY_YDGXGn6r0

A JWC can be included in a JOSE Protected Header object like so:
{
  "payload": {
    "hello": "world"
  },
  "signatures": [
    {
      "protected": {
        "alg": "KS256",
        "jwc": "eyJhbGciOiJLUzI1NiIsImtpZCI6Ims1VHd4Y2UwYlJjIiwiamt1IjoiaHR0cDovL2xvY2FsaG9zdDo1MTUwL2p3a3MifQ.eyJqdGkiOiJkMzkyNDE0NThjMjNiN2JmYjk1ZiIsImtpZCI6ImU5N2M2MDZjMjliYWRjNWRhNDBkIiwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo1MTUwIiwic3ViIjoic21pdGhAYW52aWwuaW8iLCJrdHkiOiJFQyIsImNydiI6IkstMjU2IiwieCI6IndBYTFncmtKNEJMVUpkTmdSVUc0b3ZjejN6WEs2QmVBM3NEUDNWVDY2QXMiLCJ5IjoiZmJaSlFKZ3Z4Y2dMdXBQYjdRcF83Z0w0M0ZmVFVId0JHTkhKb1Byb3EzNCIsImtleV9vcHMiOlsidmVyaWZ5Il0sImV4dCI6dHJ1ZSwiaWF0IjoxNDk4NDI0NTQ2LCJleHAiOjE1Mjk5NjA1NDZ9.MEUCIQD2WRGkcZd-50q-jZtIl9tHqVmyOQ1zRLVTym2hAFyfLAIgVgZmI_57ouVwg5cZFHvPViIMo0u4kuDHY_YDGXGn6r0"
      },
      "signature": "MEUCIAThnzOzVUFzv7CyZnNOou9xjrkk_4CYfpwRUF0j4OWyAiEAyOZFETZojdRjvaB-sLjIX7xOPn8_1w6CMuDy8AU1Plk"
    }
  ]
}

We now need to consider drafting a specification targeting IETF and incorporating necessary functions into this package.

We'll probably be doing a separate repo for this soon (tm). Leaving this issue open until we get around to it.


Filetype unknown

like #81 , I found it may be caused by confilicts with nvim-treesitter
nvim-treesitter issue
And I found this error  could be supressed by set additional_vim_regex_highlighting = false in hightlight section

We no longer use regex based highlighting, so should be fixed.


Import/export Ethereum keys

Add import-from-file and export-to-file buttons which call the import/export functions from keythereum.

  (We probably should also give them the option to re-encrypt the private key with a new password.)

Added in 343f1a92d0cb24bb602240aa02b1dc6fea5e1d48.


[AMO-dev] "Required Add-ons" option from Edit Listing->Technical Details is not working as expected

Steps to reproduce:

Load AMO-dev page https://addons-dev.allizom.org/en-US/firefox/
Go to any add-on Edit Listing page (i.e. https://addons-dev.allizom.org/en-US/developers/addon/password-categories/edit)
Click "Edit" for Technical Details section
Go to "Required Add-ons" field, search and add an add-on

Expected result:
Any add-on can be added.
Actual results:
The add-on cannot be added.
Notes/Issue:
A js error is displayed in the console.
Verified on FF43(Win 7). Issue is only reproducing on AMO-dev.
Please see the screencast: http://screencast.com/t/20Z0wx9CRs
Tracker issue: #1197

Good catch! - this is definitely a migrate removal issue.

Verified as fixed on AMO-dev FF43(Win 7).
Postfix screenshot:


feat(guide): Added an example of Bubble Sort in Swift.

Description

Added an example of an iterative implementation of Bubble Sort in Swift. Also cleaned up (unified) the formatting of other code examples in the document. Removed the "properties" section for the JavaScript example as it is redundant and does not align with the format used in the majority of other Algorithms' guides.
Pre-Submission Checklist
Common mandatory requirements

[x] This pull request targets the master branch of freeCodeCamp.
[ ] Branch starts with either fix/, feature/, or translate/
(e.g. fix/signin-issue)
[x] Reviewed necessary guidelines in CONTRIBUTING.md.

By submitting this pull request, I have verified the following:

[x] Added descriptive name to pull request. (mandatory)
Your PR should NOT be called Update index.md, since it does not help the maintainer understand what has been changed.
Good Guide PR title examples:
fix(guide): Git - edit Git Commit article
feat(guide): PHP - create PHP section and add Data Structures article

Good Coding challenge PR title examples:
fix(coding): add tests to Basic HTML challenge
fix(coding): update instructions to CSS Grid challenge

Good Learning platform PR title examples:
fix(platform): fixed sign in api
fix(platform): removed css from editor

Issues Closures

[ ] Addressed currently open issue. (replace XXXXX with an issue no in next line)

Closes #XXXXX
Since this change is a copy edit or translation for Guide articles or Coding Challenges:

[x] I confirm no plagiarized, duplicate, or repetitive content that has been directly copied from another source.
[x] I am adding only https links to external sources.
[x] I am not adding short links instead of full URLs to webpages.
[x] I have followed the recomended style guides for the copy edit.

Requirements, for changes which are NOT simple copy editing or translations:
You may skip the below ONLY if your changes do not touch tests, ui logic, api-server, etc. Your PR may not be accepted, if you did not meet these mandatory requirements. Simply put, we can't assume it will work if we never saw it working.
Since this change adds, updates or removes coding challenge tests:

[ ] I completed the coding challenge locally, and the changes look good.
[ ] Other tests or user stories in instructions are not affected.

Since this change is for the Learning platform (UI, logic, etc.):

[ ] I confirm my changes look good by running freeCodeCamp locally.
[ ] All new and existing tests pass the command npm test.

(Optional) Additional Context and Screenshots:

LGTM! Thanks for cleaning up the other examples in addition to the new swift code @m-alani 👨💻 🔢 🎉


[install] xz-utils new dependency on linux/arm/v7

It appears as 2cf26d97fccf81837baa68b2fdee19db04d36bc2 introduces a new dependency for linux/arm/v7. I now need to install xz-utils to decompress the new archive (was .tar.gz before, now .tar.xz). I build multi-arch Docker images of https://github.com/stefansundin/rssbox, and it only failed for linux/arm/v7, presumably because prebuilt binaries are missing for this arch? 🤷
I reported the issue as a comment on the commit above and was told to create an issue with more information. I solved my problem by installing xz-utils so feel free to close the issue at your convenience. However, it would be nice to have prebuilt binaries for this arch.
Have you read and followed the installation tutorial at http://www.nokogiri.org/tutorials/installing_nokogiri.html?

[x] Yes!

What is the complete output of gem install or bundle install?

# xz
bash: xz: command not found

# gem install nokogiri
Fetching mini_portile2-2.8.0.gem
Fetching nokogiri-1.13.3.gem
Successfully installed mini_portile2-2.8.0
Building native extensions. This could take a while...
ERROR:  Error installing nokogiri:
	ERROR: Failed to build gem native extension.

    current directory: /usr/local/ruby/lib/ruby/gems/3.1.0/gems/nokogiri-1.13.3/ext/nokogiri
/usr/local/ruby/bin/ruby -I /usr/local/ruby/lib/ruby/3.1.0 -r ./siteconf20220222-10-jzkf62.rb extconf.rb
checking for whether -std=c99 is accepted as CFLAGS... yes
checking for whether -Wno-declaration-after-statement is accepted as CFLAGS... yes
checking for whether -g is accepted as CFLAGS... yes
checking for whether -Winline is accepted as CFLAGS... yes
checking for whether -Wmissing-noreturn is accepted as CFLAGS... yes
Building nokogiri using packaged libraries.
Static linking is enabled.
Cross build is disabled.
Using mini_portile version 2.8.0
checking for iconv... yes
---------- IMPORTANT NOTICE ----------
Building Nokogiri with a packaged version of libxml2-2.9.13.
Configuration options: --host\=armv7l-unknown-linux-gnueabihf --enable-static --disable-shared --libdir\=/usr/local/ruby/lib/ruby/gems/3.1.0/gems/nokogiri-1.13.3/ports/armv7l-linux-eabihf/libxml2/2.9.13/lib --with-iconv\=yes --disable-dependency-tracking --without-python --without-readline --with-c14n --with-debug --with-threads --disable-shared --enable-static CFLAGS\=-O2\ -U_FORTIFY_SOURCE\ -g\ -fPIC
The following patches are being applied:
  - 0001-Remove-script-macro-support.patch
  - 0002-Update-entities-to-remove-handling-of-ssi.patch
  - 0003-libxml2.la-is-in-top_builddir.patch
  - 0004-use-glibc-strlen.patch
  - 0005-avoid-isnan-isinf.patch
  - 0006-update-automake-files-for-arm64.patch
  - 0008-htmlParseComment-handle-abruptly-closed-comments.patch
  - 0009-allow-wildcard-namespaces.patch
  - 0010-Revert-Different-approach-to-fix-quadratic-behavior.patch

The Nokogiri maintainers intend to provide timely security updates, but if
this is a concern for you and want to use your OS/distro system library
instead, then abort this installation process and install nokogiri as
instructed at:

  https://nokogiri.org/tutorials/installing_nokogiri.html#installing-using-standard-system-libraries

Note, however, that nokogiri cannot guarantee compatibility with every
version of libxml2 that may be provided by OS/package vendors.

[{:url=>
   "https://mirror.csclub.uwaterloo.ca/gnome/sources/libxml2/2.9/libxml2-2.9.13.tar.xz",
  :sha256=>"276130602d12fe484ecc03447ee5e759d0465558fbc9d6bd144e3745306ebf0e"}]
Extracting libxml2-2.9.13.tar.xz into tmp/armv7l-unknown-linux-gnueabihf/ports/libxml2/2.9.13... ERROR, review '/usr/local/ruby/lib/ruby/gems/3.1.0/gems/nokogiri-1.13.3/ext/nokogiri/tmp/armv7l-unknown-linux-gnueabihf/ports/libxml2/2.9.13/extract.log' to see what happened. Last lines are:
========================================================================
tar (child): xz: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
/bin/tar: Child returned status 2
/bin/tar: Error is not recoverable: exiting now
========================================================================
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
	--with-opt-dir
	--without-opt-dir
	--with-opt-include
	--without-opt-include=${opt-dir}/include
	--with-opt-lib
	--without-opt-lib=${opt-dir}/lib
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/usr/local/ruby/bin/$(RUBY_BASE_NAME)
	--help
	--clean
	--prevent-strip
	--enable-system-libraries
	--disable-system-libraries
	--use-system-libraries
	--enable-system-libraries
	--disable-system-libraries
	--use-system-libraries
	--enable-static
	--disable-static
	--enable-cross-build
	--disable-cross-build
	--with-zlib-dir
	--without-zlib-dir
	--with-zlib-include
	--without-zlib-include=${zlib-dir}/include
	--with-zlib-lib
	--without-zlib-lib=${zlib-dir}/lib
	--with-xml2-source-dir
/usr/local/ruby/lib/ruby/gems/3.1.0/gems/mini_portile2-2.8.0/lib/mini_portile2/mini_portile.rb:460:in `block in execute': Failed to complete extract task (RuntimeError)
	from /usr/local/ruby/lib/ruby/gems/3.1.0/gems/mini_portile2-2.8.0/lib/mini_portile2/mini_portile.rb:426:in `chdir'
	from /usr/local/ruby/lib/ruby/gems/3.1.0/gems/mini_portile2-2.8.0/lib/mini_portile2/mini_portile.rb:426:in `execute'
	from /usr/local/ruby/lib/ruby/gems/3.1.0/gems/mini_portile2-2.8.0/lib/mini_portile2/mini_portile.rb:413:in `extract_file'
	from /usr/local/ruby/lib/ruby/gems/3.1.0/gems/mini_portile2-2.8.0/lib/mini_portile2/mini_portile.rb:90:in `block in extract'
	from /usr/local/ruby/lib/ruby/gems/3.1.0/gems/mini_portile2-2.8.0/lib/mini_portile2/mini_portile.rb:88:in `each'
	from /usr/local/ruby/lib/ruby/gems/3.1.0/gems/mini_portile2-2.8.0/lib/mini_portile2/mini_portile.rb:88:in `extract'
	from /usr/local/ruby/lib/ruby/gems/3.1.0/gems/mini_portile2-2.8.0/lib/mini_portile2/mini_portile.rb:183:in `cook'
	from extconf.rb:528:in `block (2 levels) in process_recipe'
	from extconf.rb:309:in `chdir'
	from extconf.rb:309:in `chdir_for_build'
	from extconf.rb:528:in `block in process_recipe'
	from <internal:kernel>:90:in `tap'
	from extconf.rb:427:in `process_recipe'
	from extconf.rb:781:in `<main>'

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /usr/local/ruby/lib/ruby/gems/3.1.0/extensions/armv7l-linux-eabihf/3.1.0/nokogiri-1.13.3/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /usr/local/ruby/lib/ruby/gems/3.1.0/gems/nokogiri-1.13.3 for inspection.
Results logged to /usr/local/ruby/lib/ruby/gems/3.1.0/extensions/armv7l-linux-eabihf/3.1.0/nokogiri-1.13.3/gem_make.out

If installation failed during compilation, what are the complete contents of the mkmf.log file generated during the failed installation?

# cat /usr/local/ruby/lib/ruby/gems/3.1.0/extensions/armv7l-linux-eabihf/3.1.0/nokogiri-1.13.3/mkmf.log
block in append_cflags: checking for whether -std=c99 is accepted as CFLAGS... -------------------- yes

LD_LIBRARY_PATH=.:/usr/local/ruby/lib "gcc -o conftest -I/usr/local/ruby/include/ruby-3.1.0/armv7l-linux-eabihf -I/usr/local/ruby/include/ruby-3.1.0/ruby/backward -I/usr/local/ruby/include/ruby-3.1.0 -I. -I/usr/local/ruby/include  -D_FILE_OFFSET_BITS=64   -s -fPIC conftest.c  -L. -L/usr/local/ruby/lib -Wl,-rpath,/usr/local/ruby/lib -L. -L/usr/local/ruby/lib  -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed     -Wl,-rpath,/usr/local/ruby/lib -L/usr/local/ruby/lib -lruby  -lm  -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5:   return !!argv[argc];
6: }
/* end */

LD_LIBRARY_PATH=.:/usr/local/ruby/lib "gcc -I/usr/local/ruby/include/ruby-3.1.0/armv7l-linux-eabihf -I/usr/local/ruby/include/ruby-3.1.0/ruby/backward -I/usr/local/ruby/include/ruby-3.1.0 -I. -I/usr/local/ruby/include  -D_FILE_OFFSET_BITS=64   -s -fPIC  -std=c99 -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5:   return !!argv[argc];
6: }
/* end */

--------------------

block in append_cflags: checking for whether -Wno-declaration-after-statement is accepted as CFLAGS... -------------------- yes

LD_LIBRARY_PATH=.:/usr/local/ruby/lib "gcc -I/usr/local/ruby/include/ruby-3.1.0/armv7l-linux-eabihf -I/usr/local/ruby/include/ruby-3.1.0/ruby/backward -I/usr/local/ruby/include/ruby-3.1.0 -I. -I/usr/local/ruby/include  -D_FILE_OFFSET_BITS=64   -s -fPIC -std=c99  -Wno-declaration-after-statement -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5:   return !!argv[argc];
6: }
/* end */

--------------------

block in append_cflags: checking for whether -g is accepted as CFLAGS... -------------------- yes

LD_LIBRARY_PATH=.:/usr/local/ruby/lib "gcc -I/usr/local/ruby/include/ruby-3.1.0/armv7l-linux-eabihf -I/usr/local/ruby/include/ruby-3.1.0/ruby/backward -I/usr/local/ruby/include/ruby-3.1.0 -I. -I/usr/local/ruby/include  -D_FILE_OFFSET_BITS=64   -s -fPIC -std=c99 -Wno-declaration-after-statement  -g -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5:   return !!argv[argc];
6: }
/* end */

--------------------

block in append_cflags: checking for whether -Winline is accepted as CFLAGS... -------------------- yes

LD_LIBRARY_PATH=.:/usr/local/ruby/lib "gcc -I/usr/local/ruby/include/ruby-3.1.0/armv7l-linux-eabihf -I/usr/local/ruby/include/ruby-3.1.0/ruby/backward -I/usr/local/ruby/include/ruby-3.1.0 -I. -I/usr/local/ruby/include  -D_FILE_OFFSET_BITS=64   -s -fPIC -std=c99 -Wno-declaration-after-statement -g  -Winline -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5:   return !!argv[argc];
6: }
/* end */

--------------------

block in append_cflags: checking for whether -Wmissing-noreturn is accepted as CFLAGS... -------------------- yes

LD_LIBRARY_PATH=.:/usr/local/ruby/lib "gcc -I/usr/local/ruby/include/ruby-3.1.0/armv7l-linux-eabihf -I/usr/local/ruby/include/ruby-3.1.0/ruby/backward -I/usr/local/ruby/include/ruby-3.1.0 -I. -I/usr/local/ruby/include  -D_FILE_OFFSET_BITS=64   -s -fPIC -std=c99 -Wno-declaration-after-statement -g -Winline  -Wmissing-noreturn -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5:   return !!argv[argc];
6: }
/* end */

--------------------

try_link_iconv: checking for iconv... -------------------- yes

LD_LIBRARY_PATH=.:/usr/local/ruby/lib "gcc -o conftest -I/usr/local/ruby/include/ruby-3.1.0/armv7l-linux-eabihf -I/usr/local/ruby/include/ruby-3.1.0/ruby/backward -I/usr/local/ruby/include/ruby-3.1.0 -I. -I/usr/local/ruby/include  -D_FILE_OFFSET_BITS=64   -s -fPIC -std=c99 -Wno-declaration-after-statement -g -Winline -Wmissing-noreturn conftest.c  -L. -L/usr/local/ruby/lib -Wl,-rpath,/usr/local/ruby/lib -L. -L/usr/local/ruby/lib  -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed     -Wl,-rpath,/usr/local/ruby/lib -L/usr/local/ruby/lib -lruby  -lm  -lc"
checked program was:
/* begin */
 1: #include "ruby.h"
 2:
 3: #include <stdlib.h>
 4: #include <iconv.h>
 5: int main(void)
 6: {
 7:     iconv_t cd = iconv_open("", "");
 8:     iconv(cd, NULL, NULL, NULL, NULL);
 9:     return EXIT_SUCCESS;
10: }
/* end */

--------------------

Tell us about your system!
What is the output from ruby -v? ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [armv7l-linux-eabihf]
What is the output from gem -v? 3.3.7
What is the output from gem env?
RubyGems Environment:
  - RUBYGEMS VERSION: 3.3.7
  - RUBY VERSION: 3.1.1 (2022-02-18 patchlevel 18) [armv7l-linux-eabihf]
  - INSTALLATION DIRECTORY: /usr/local/ruby/lib/ruby/gems/3.1.0
  - USER INSTALLATION DIRECTORY: /root/.local/share/gem/ruby/3.1.0
  - RUBY EXECUTABLE: /usr/local/ruby/bin/ruby
  - GIT EXECUTABLE: /usr/bin/git
  - EXECUTABLE DIRECTORY: /usr/local/ruby/bin
  - SPEC CACHE DIRECTORY: /root/.local/share/gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /usr/local/ruby/etc
  - RUBYGEMS PLATFORMS:
     - ruby
     - armv7l-linux-eabihf
  - GEM PATHS:
     - /usr/local/ruby/lib/ruby/gems/3.1.0
     - /root/.local/share/gem/ruby/3.1.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
     - "gem" => "--no-document"
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - bin
     - /usr/local/ruby/bin
     - /usr/local/ruby-build/bin
     - /usr/local/sbin
     - /usr/local/bin
     - /usr/sbin
     - /usr/bin
     - /sbin
     - /bin

If Linux or a BSD variant, please note:

the distro you're using. Docker based on debian:bullseye-slim
the output of uname -a. Linux fc019506aef1 5.10.76-linuxkit #1 SMP PREEMPT Mon Nov 8 11:22:26 UTC 2021 armv7l GNU/Linux
the contents of /etc/lsb-release.

Rake-compiler-dock already has the target arm-linux for arm/v7. It is not activated in nokogiri yet.

@larskanis Well, gosh. I guess I'll go check that out, then! Thanks as always for your amazing rake-compiler-dock work.

I've created #2467 to drive native gem support for this platform.
I've updated nokogiri.org with some troubleshooting info:
https://nokogiri.org/tutorials/installing_nokogiri.html#tar-child-xz-cannot-exec-no-such-file-or-directory
This is what it looks like:

@stefansundin Thanks again for opening this issue! :heart: :heart: :heart:

Note that v1.14.0 will support arm-linux as a native gem. See #2533 for details. I'd love help testing it once a release candidate is out.


[Ansor][AutoTVM v2.0] Phase 1: Add pragma/storage_align/rfactor steps

For the full upstream plan, see Ansor RFC.
In this PR, we bring pragma/storage_align/rfactor steps for Ansor auto_scheduler.
The Pragma step and StorageAlign step are two simple steps that add attributes to schedule.
The Rfactor step adds extra stage like CacheRead/CacheWrite do.
cc @merrymercy @comaniac @junrushao1994 @FrozenGene @jroesch

LGTM. Please note that #6142 changes the print state APIs, so we need to rebase one PR after merging another.

Ok, let me do the rebase after #6142.

cc @junrushao1994 @jwfromm

Thanks to all! It's really great to work with you.
We've successfully merged almost all of the Ansor basic components, except the feature extraction and cost model parts.
Next, @merrymercy will continue to add the cost model while at the same time I'll start to bring our Sketch Search Policy(proposed in our paper) to TVM, and tutorials about how to tune a op/subgraph will together to be added. Hope the PR of Sketch Search Policy will come soon.
The API design and our custom sketch rule support (which works the same as the current AutoTVM template) are ongoing to be refined. We would be happy if anyone has suggestions on this project, and you're welcomed to join us to improve Ansor.
cc @minminsun @comaniac @FrozenGene @yangjunpro @tqchen @junrushao1994 @jroesch


messages forwarded two times if it has inline button

but i have one problem, some messages forwarder two times , duplicate .

May be those messages were there two times, and later one was deleted in source. It's impossible for tgcf to send a message twice.  Or may be, Telegram's servers, sent an update twice, accidentally in a rare case.

I ran it with -l command

what ? what do you mean ? what you ran ? speak details
I have already explained how to see logs for systemctl.
Read this portion of the wiki. And in this answer https://github.com/aahnik/tgcf/discussions/219#discussioncomment-920558, I have already given links to two StackOverflow posts, that explain how to see full logs/live logs.

is it possible to see what text forwarded ?

No, that is not logged.
Originally posted by @aahnik in https://github.com/aahnik/tgcf/discussions/219#discussioncomment-931368

the original message has two button . both link to a bot

I think i found out the cus .
the source channel , first post a message , then delete it and resend it with buttons .
is there any way to delete then sent message if source remove it ?

There is a setting in the script called delete_sync that when set to true does exactly what you ask, if a message is deleted in source chat is also deleted in destination chat. But it has some caveats. Check
https://github.com/aahnik/tgcf/wiki/How-to-configure-tgcf-%3F#schema
and also #232 for the limitations. In the future, all will be resolved by implementing persistent storage.


CracFeatureValidator should ensure JDK is 17

Issue description
https://github.com/micronaut-projects/micronaut-crac-tests/blob/master/buildSrc/src/main/java/io/micronaut/crac/feature/CracFeatureValidator.java

I originally left this out, as it will not fail with Java 8
The CRaC JDK provided by azul is Java 17, but that's not to say they couldn't (or don't have the appetite to) backport it to earlier versions
Also, Using a non-supporting JDK 17, would pass this test, but still silently not work (as with JDK 8)

We will move this files to micronaut-starter and remove them from this repository. Initially, CRaC will only work for JDK 17. Thus I think we should have it as 17 only and if Azul backport it to older version we can remove that check from the validator.

👍


Method Overloading

Please assign me this issue.

Hi @sayandas722  ! Can you Please assign me this issue.


Pallet Registry

Outlined an onchain registry in a pallet.
Also tried updating the circuit node and circuit-runtime to run with the latest substrate master but got stuck @ this error. Will investigate further...
Open points:

Integration - storing successfully executed contracts
Offchain registry ~ substrate-archive ?
Serving contracts through the fetch_contracts RPC

Related #32

Many thanks, @chiefbiiko! The final implementation done in #45  is heavily inspired by ur input, but follows the FRAME v2 implementation as the rest of the Circuit pallets. Will close it in favour of #45 ✌


Relationship connect/disconnect error messages are unclear

Bug description
When I call .create() with { connect: { roles: [<id>] } } and the <id> doesn't exists, it does not  tell me which field it can't create the relationship for. If you have 2 or more fields, you don't know which relationships or arguments are incorrect. This is an example response from Prisma:
Invalid `prisma.breed.create()` invocation:
  An operation failed because it depends on one or more records that were required but not found. Expected 1 records to be connected, found only 0. +0ms
Error:
Invalid `prisma.breed.create()` invocation:
  An operation failed because it depends on one or more records that were required but not found. Expected 1 records to be connected, found only 0.
    at cb (/Users/me/projects/test/node_modules/@prisma/client/runtime/index.js:34780:17)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

Extremely unclear here what the problem is and even more important, where the problem is.
How to reproduce

Call create() on a model/entity with { connect: { roles: [<id>] } } where <id> doesn't exists
Run it
See error

Expected behavior
I am expecting something like:
Invalid `prisma.breed.create()` invocation:
   Could not connect `<id>` in `roles`

Prisma information

Environment & setup

Prisma version:

prisma               : 2.21.2
@prisma/client       : 2.21.2
Current platform     : darwin
Query Engine         : query-engine e421996c87d5f3c8f7eeadd502d4ad402c89464d (at node_modules/@prisma/engines/query-engine-darwin)
Migration Engine     : migration-engine-cli e421996c87d5f3c8f7eeadd502d4ad402c89464d (at node_modules/@prisma/engines/migration-engine-darwin)
Introspection Engine : introspection-core e421996c87d5f3c8f7eeadd502d4ad402c89464d (at node_modules/@prisma/engines/introspection-engine-darwin)
Format Binary        : prisma-fmt e421996c87d5f3c8f7eeadd502d4ad402c89464d (at node_modules/@prisma/engines/prisma-fmt-darwin)
Default Engines Hash : e421996c87d5f3c8f7eeadd502d4ad402c89464d
Studio               : 0.371.0

Hello,
Regarding clarity of the P2025 error message when connecting/disconnecting several entities at a time, I am also a bit confused. In particular if the error message says something like An operation failed because it depends on one or more records that were required but not found. Expected 28 records to be connected, found only 24.
Does this mean that the 24 valid records were actually connected, and the 4 (28-24) invalid records were ignored?
Or is the whole operation/transaction rolled back so that in the end nothing is connected?
We are currently going through a DB migration and have encountered this error message when testing with prod data (which I cannot access myself to check, so I cannot really figure out the behavior by myself (and did not have time to reproduce with test data). If the behavior of prisma in this case is well known from the developer, it would be nice to clarify it in the documentation.

In our case, we would be perfectly fine if the behavior was to (dis)connect what can be (dis)connected and ignore the rest, and only raise the error as an "information" to report that not everything was connected.

After some basic testing. It seems that no record are connected if some cannot be found. I would suggest to change the error message from An operation failed because it depends on one or more records that were required but not found. Expected 28 records to be connected, found only 24. to An operation failed because it depends on one or more records that were required but not found. Expected 28 records to be connected, found only 24. No record were connected.


x86: remove redundant _mm_add_pd translation for WASM

This PR removes a duplicated translation for WASM for the SSE2 _mm_add_pd intrinsic.

Thanks!


Update Guava to fix vulnerability

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-10237

Any news on this issue?
While Guava 21 depends on Java 8, since Guava 22 there is the guava-android version, which is compatible with Java 7, so there shouldn't be any compatibility issues.

guava dependency removed.
fixed in 0.9.12


MC wrapper (taken over from daria137)

This is originally PR #173 from @daria137.
I have copied the branch to my repo and created a new PR to temporarily take over maintenance of this code.

I think there is some rebasing problem cause it shows 252 files changed?

This PR was accidentally broken and is replaced by #181.


Project 1 Peer Review - Team Scapsulators

Hello Dexlab team,
I ran your application in my local and I was able to run all the containers easily. Great job on dockerizing all the services and making the application set up easy for us.  The application works well and I was able to view the plots. Overall great work. I just have a couple of pointers :

When you'll are loading the image/plot, you can use the loading symbol in the front end to tell the user and your system is fetching the image.
If there is no data found for that date, I did not get any notification saying that there is no data.
I was able to sign up multiple times with the same username. You'll can add a check to see if the username already exists so that every user can have a unique ID.

Wish you all the best in your upcoming projects.

Team Scapsulators : https://github.com/airavata-courses/scapsulators

Thank you for your time and efforts.
The multiple sign-up is a known issue caused by MariaDB for unique primary key. Even if you signup with the same email id you will have the same unique-id every time.


"insert into" not work in Android

var q = ds.con.Execute("insert into STATISTIC (data, domande) values ('ZZZ', 3)");
this command work fine on pc not work on android

I found the solution!
WHY WAS NOT UPDATED DATABASE WAS DUE
THE LACK OF APPROVAL IN WRITING
IN SETTING ANDROID IF YOU HAVE LOCATION INSTALL '' PREFER Esternal "
You MUST SET WRITE ACCESS ON "Esternal (SD CARD)"
sorry for my english

Cool you found the solution to the issue!! Thank you very much for the information! ;D

I'm actually having this very same issue. I cannot create, drop, or insert into my database. I've tried every option combination for Install Location & Write Access. Same reaction. I'm using Unity 2017.1.f1. Still looking into it but if anyone knows how to fix this, please let me know.


IsMyPet

IsMyPet not work

With a non gm player, does the shrink potion work as expected?
If using the standard script, it uses ismypet. And if working should be
something other.
Standard script:
[ITEMDEF i_potion_Shrink]
ID=i_bottle_white
NAME=Shrink
TYPE=t_potion
TDATA1=i_bottle_empty
RESOURCES=2 i_reag_batwing,1 i_bottle_empty
SKILLMAKE=ALCHEMY 100.0, t_mortar
ON=@Create
MORE1=s_shrink
MORE2=100.0
COLOR=color_gray_lt
ON=@Dropon_char
obj=
IF !(0<obj.ISMYPET>)
src.sysMESSAGE="<obj.NAME> this is not your pet."
RETURN 1
ENDIF
obj.SHRINK
remove
RETURN 1
ON=@DClick
target="what do you want to shrink?"
return 1
ON=@TargOn_Char
IF !<src.targ.ismypet>
src.sysMESSAGE="<src.targ.NAME> this is not your pet."
RETURN 1
ENDIF
src.targ.SHRINK
remove
RETURN 1
ON=@TargOn_Item
src.sysmessage="Items cannot be shrunk this way"
return 1
Il Mar 4 Set 2018, 15:15 Breaker<EMAIL_ADDRESS>ha scritto:

IsMyPet not work
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Sphereserver/Source-experimental/issues/137, or mute
the thread
https://github.com/notifications/unsubscribe-auth/APUstsGwIPzy_qhMem2Yg_47me1P8xcMks5uXnzagaJpZM4WY9sB
.


[Question] How to read triggered ACMG rules from InterVar output

Dear InterVar developers,
First, thank you for developing the CLI and web application of InterVar.
After installing InterVar and running it for my vcf of interest, I get the output file with classified variants. This tabular file contain a column named "InterVar: InterVar and Evidence" there for a example variant I get:
InterVar: Likely benign PVS1=0 PS=[0, 0, 0, 0, 0] PM=[0, 0, 0, 0, 0, 0, 0] PP=[0, 0, 0, 0, 0, 0] BA1=0 BS=[1, 0, 0, 0, 0] BP=[1, 0, 0, 0, 0, 1, 0, 0]
I feel that each 0 (or 1) shows deactivation or activation of a evidence rule.
However, by original ACMG publication there are 4 Pathogenic Strong evidence-based rules and on the PS output there are 5 zeros.
Please may you explain me why is that?
Grateful to your help to ensure the exact interpretation of InterVar output.
Thank you in advance!
Damianos

The last is for user additional criteria, so for each of category, there one user specified criteria in the last, default is 0.

Dear Quan Li,
grace to your explanation, I understand the output format.
Thank you!
Damianos


Select sources/repositories for paralel image builds

Hello team, it is possible to use different source/repos for paralel image builds?
For example if I want to build fedore and rhel image in same time.
I was not able any option how to disable/enable source/repo for certain image build. Do you expect this feature to be availabe in future?
Thank you!

Currently no, this is not possible. But it will be in the future.


Fix dependencies

Using --prefer-lowest in composer, I found some problems in dependencies.

In prod

Needs symfony/http-foundation: ~2.4 as it uses RequestStack.

In tests

Needs symfony/framework-bundle for request_stack service definition.
Needs suggested dependencies for testing.
Needs doctrine/orm: ~2.3 as this is not a dependency of doctrine/doctrine-bundle (don't ask me why)

Thanks @xphere


Replace model in DirectMLNpuInference sample: The specified device interface or feature level is not supported on this system

I could run successfully the old version of DirectMLNpuInference  project (da3abe62d6e22084d24a291389011991af3444b8)
But, once I just replace a simple model mobilenetv2-7-fp16.onnx to mine, I failed on creatting ort session and  got this error log:
[E:onnxruntime:, inference_session.cc:1935 onnxruntime::InferenceSession::Initialize::<lambda_e09ac8a7667b49d27dc77a8205e26aa5>::operator ()] Exception during initialization: C:\__w\1\s\onnxruntime\core\providers\dml\DmlExecutionProvider\src\DmlGraphFusionHelper.cpp(451)\onnxruntime.dll!00007FFD7B82B069: (caller: 00007FFD7B7AEA84) Exception(1) tid(5610) 887A0004 The specified device interface or feature level is not supported on this system.
Here is the model  and my device information:
Processor	Intel(R) CoreTM Ultra 7 155U   2.10 GHz
Installed RAM	16.0 GB (15.6 GB usable)
System type	64-bit operating system, x64-based processor
Edition	Windows 11 Pro
Version	23H2
Installed on	12/5/2023
OS build	22631.3880
Experience	Windows Feature Experience Pack 1000.22700.1020.0

I've also checked new version of DirectMLNpuInference  project (72ad224f0b8dc2d80a954c4fe1eb141a3fd44b11),
I updated the DirectML to 15.0 but not change the code in 46f3e141a0937ca4d17c1af9ed19b0c210c566e1 since I didn't update windows OS(can't find DXCORE_ADAPTER_ATTRIBUTE_D3D12_GENERIC_ML), but still get the same error.
I also checked some simple model like one layer fc, one layer 1dconv, all failed, but it would not fail if the model directly output the input .
Is anything I could do to fix?

@Nagico2 Hi, thanks for your response, but I could compile and run normally in the original project(regardless the 23H2 or 24H2 version).
My original question was that once I replaced a simple onnx model (like just 1 global average pooling layer, 1  fc layer or 1 1d conv layer), it failed to create ort session in the run time.
After a few days investigating, I found that it seems that it doesn't support these operator I tired yet, and also I need to convert my model to fp-16 so that I could create session successfully, so at this moment, I convert my model to fp-16 and only use 2d convolution could compile and run normally.
I'm checking the inference output should sync with python's, once I confirm they are the same, this issue could be closed.
Thanks for your help anyway.


Storage parameters update in docs

Description
Update storage parameters in docs.
1 FLOW is now 100 MB (not 10 MB) of storage capacity.

For contributor use:

[x] Targeted PR against master branch
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[x] Updated relevant documentation
[x] Re-reviewed Files changed in the Github PR explorer
[x] Added appropriate labels

Thanks @janezpodhostnik!
This PR is failing due to an error on master, which I think I just fixed. Let's see if master passes and then merge in master again.


Added == and != operator overrides to Vector classes

I do not uderstand how to sign my commits sorry about that.

fixing the DCO issue


pure component re-renders when immutable objects are same

I am working on a page with multiple ReactHighCharts. Each of those charts can be edited, but when component re-renders, charts are animated so in order to avoid this, I've declared chart components as PureComponent. I used immutable.js with reselect and this works fine, only modified charts are rerendered.
Since discovering reselect-immutable-helpers recently, I wanted to avoid usage of immutables accross the components and I've introduced this mapping into props, but it doesn't work properly: whole page is re-rendered (even charts that are not modified).
I am wandering if there might be some error in caching pure javascript objects?

I figured out what is the cause: I'm working with arrays (immutable lists) and editing chart data is editing one element in the list, but since whole list is converted to plain javascript, the array is always a different object, which causes re-rendering.


Source SQL ending with comment breaks evidence sources

Steps To Reproduce

Simple Project w/ Postgres source
Add test.sql to sources/mypg/:

SELECT 1
-- comment

run evidence sources --debug

Expected Behavior
The command does not fail.
Actual Behaviour
  test ✖ Cannot read properties of undefined (reading 'rows')
Error: Cannot read properties of undefined (reading 'rows')
    at runQuery (/evidence/node_modules/@evidence-dev/postgres/index.cjs:197:10)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async $18acbd5e40ec20a6$export$53c7a8f067b9e2ba (file:///evidence/node_modules/@evidence-dev/plugin-connector/dist/index.mjs:1350:38)
    at async $acd86e83767fde42$export$76919addde332833 (file:///evidence/node_modules/@evidence-dev/plugin-connector/dist/index.mjs:1581:22)
    at async file:///evidence/node_modules/@evidence-dev/evidence/cli.js:349:3

Also, the node command then "hangs", i.e. never returns to the shell.
Workarounds
Add ; on a separate line at the end:
SELECT 1
-- comment
;

Additional Information
The failing query is here: https://github.com/evidence-dev/evidence/blob/next/packages/postgres/index.cjs#L160
The culprit is https://github.com/evidence-dev/evidence/blob/next/packages/db-commons/index.cjs#L186 cleanQuery(), calling .trim() on the query, which is wrong, because it no longer ends the sql-comment-line.
The hanging command is probably caused by the exception handlers not closing the pg connection(?).

This bug also exists in SQL queries defined in markdown

A possibly "good enough" solution for the cleanQuery-part could be in https://github.com/evidence-dev/evidence/blob/next/packages/db-commons/index.cjs#L189
const cleanQuery = (query) => {
	let cleanedString = query.trim();
	if (cleanedString.endsWith(';'))
		cleanedString = cleanedString.substring(0, cleanedString.length - 1);
	return cleanedString;
};

to return this instead:
	return cleanedString + '\n';

Hey @smilingthax
Thanks for point this out. We'd accept a PR with this if you are open to it.

Added PR #1819.
Still open:

[ ] Comments in SQL queries in markdown
[ ] Better error handling in postgres for failing queries


Add module for BioQC

BioQC performs signature enrichment for tissue signatures. This allows to check if e.g. samples have been swapped, or contaminations happend during sample handling.
Repo:
https://github.com/Accio/BioQC
Example code, you can use something similar in the pipeline (currently in private gitlab):
https://gitlab.i-med.ac.at/icbi-lab/ibdome/ibdome-projects/-/blob/2b1e4b4499d731293feebc8266510004b5f423a4/subprojects/data-overview-for-grant-application/13_plots_for_zlatko.Rmd#L70-120
Input:

gene expression matrix
sample sheet

Output:

heatmap
table

Note: if another species than human is used, the gene symbols need to be mapped to human orthologs.
The method has been tested using this approach on rat and mouse, other mammalian species can be expected, to work, too.


Shared folder

Shared folder is not sharing. I created two notebook under same team, but the files I created in the shared folder is not being shared.

Just checked again. Seems like last time the sync took a little while to happen. Now it's working. Close the issue