text:
Bug in the dropdown selector

I also noticed a bug in the dropdown selector: if you go from specifying subspecies to selecting Any-<species> for the subspecies, then it will not recognize the Any, as it is returned at this stage as a list (['Any']) instead of a string ('Any'), which is the initial return. This is a result of the check for type that was inserted (at line 142 in the updated components/query.py) to address instances of people not removing the "Any" condition when selecting more subspecies (assuming they'd want the specified options). This is something I intend to fix and update in another PR to dev for further testing before updating main and generating a new release.
Originally posted by @egrace479 in https://github.com/Imageomics/dashboard-prototype/issues/62#issuecomment-2077725325

Current set-up:

I had been trying to reduce the number of if-statements, as there are many cases (the first return without selecting something in subspecies is a string, but then it is a list for all returns once a selection has been made):
if ("Any" in subspecies and type(subspecies) == str) or ("Any" in subspecies[0] and len(subspecies) == 1):
    if type(subspecies) == list:
            subspecies = subspecies[0]
    if subspecies == 'Any':
            df_sub = df.copy()
        else:
            species = subspecies.split('-')[1].lower()
            df_sub = df.loc[df.Species == species].copy()
else:
        df_sub = df.loc[df.Subspecies.isin(subspecies)].copy()

Since the only options that return as a string are "Any" and "Any-<subspecies>", this should catch the list to check for "Any", while preserving list-values for the .isin on the else statement after

We also had instances where the subspecies value was null (filled with unknown) for multiple species. This resulted images for different species being displayed based on that unknown selection.
Two potential options to address this:

Call get_species_options prior to filling null values and drop them as options. The images could still be accessed when looking at any options of the selected species (or any sample images across any species).
Add a check for null subspecies values into the get_species_options and add something like unknown ssp. of <species> option to the  subspecies options list:for species in species_list:
    temp = df.loc[df.Species == species]
    subspecies_list = temp['Subspecies'].dropna().unique()
    if temp.loc[temp["Subspecies"].isna()].shape[0] > 0:
        # if there are null values of Subspecies for given species, record as "unknown-<species>" option
        subspecies_list.append("unknown " + species)
    subspecies_list = np.insert(subspecies_list, 0 , 'Any-' + species) # need this to match as filled for img selection
    all_species[species] = list(subspecies_list)

In the get_filenames function, there would then be a restriction to just that species and a search for unknown among the subspecies.

Option 2 feels a bit much into the weeds considering the desire to generalize this. I was also re-thinking the wisdom of using unknown to fill nulls (instead of, eg., not-provided), as unknown implies lack of knowledge (and sometimes appears) as opposed to simply a lack of availability of the information.

Resolved in PR #65

repo: Imageomics/dashboard-prototype


text:
Text.RemoveHtmlTags returns error if input HTML is null

Text.RemoveHtmlTags returns an error if the input HTML is null.
Expression.Error: We cannot convert the value null to type Text.
Details:
    Value=
    Type=Type

The best workaround I could come up with is to call the function wrapped in an if statement, e.g. for a Calculated Column:
if [myHTML] = null then null else fnTextRemoveHtmlTags ( [myHTML] )

Sorry Mike,
just recognized your message here.
If I'm not mistaken, this error has just been fixed by the pull request from Mike Carlo: https://github.com/ImkeF/M/pull/3
Is that correct?
Cheers, Imke

source: gharchive/issue

authors: ImkeF Mike-Honey

repo: ImkeF/M

license: mit

license_type: permissive

license_source: bigquery


text:
Create dataset loader for NusaTranslation MT

NusaCatalogue: https://indonlp.github.io/nusa-catalogue/card.html?nusa_translation_mt

Dataset
nusa_translation_mt

Description
NusaTranslation is a sentence-level datasets which covers 11 local languages in Indonesia. The dataset is human-translated from a part of IndoLEM Sentiment and EmoT dataseets where a native-speaker annotator are requested to translate to the target language given an Indonesian sentence. The data cover ~72k sentence pairs of translation data.

License
CC-BY-NC-SA 4.0

#self-assign

Closed in https://github.com/IndoNLP/nusa-crowd/pull/364

@SamuelCahyawijaya @catlaughing
Issues / bug found on this dataset.

Batak (btk) cannot be loaded

See lines 103, 113, 123, and 133
Due to line 17. Maybe forgot to include Indonesian (ind)?

Unable to load complete language pairs

Basically this code block is never reached.

@fhudi : The issue has been fixed now. Kindly try updating to nusacrowd==0.1.2

authors: SamuelCahyawijaya catlaughing fhudi

repo: IndoNLP/nusa-crowd

license_source: github-api


text:
[1.19.2] Crash while running Minecraft using Optifine

This mod is one of my favorite mod, but please fix this unexpected crash

Duplicate of #220

Also, stop using Optifine. Use a combination of Rubidium, Occulus and CTM to get pretty much the same result, but just better , cleanerand more mod friendly.

repo: Infamous-Misadventures/Dungeons-Gear

license: MIT


text:
Admin Dashboard

🛠 Fixes Issue

Closes #166
👨💻 Changes proposed
Developed all 11 pages of admin dashboard
Mobile responsive

✔ Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

📄 Note to reviewers

Added a new dependency "recharts" to handle the chart on the admin dashboard page
📷 Screenshots

New PR @dprincecoder @t-bello7 @ingressive4good

Please, fix your conflicts

Done @ingressive4good

source: gharchive/pull-request


text:
"Trading Rules" table for tick sizes

Discussing tick sizes with @maximshen007 he thinks we should also have a table like the below down the line which is great.

https://www.binance.com/en/trade-rule
Certainly not a priority, we can put to glacier for now.

We have these on the explorer now.

authors: achilleas-kal bangjelkoski

repo: InjectiveLabs/injective-dex


text:
Add signer pubkey type

Each chain can have several different key types.  For some case,  I use '/cosmos.crypto.secp256k1.PubKey' for Injective chain
I'm also considering making a new pubKeyType field - pass the Proto Any object directly to the pubKey field. What do you think about it?

The current implementation is closed for modification but open for extension. You could wrap the current implementation in a new one that could fit your needs.

authors: Grinion bangjelkoski

repo: InjectiveLabs/injective-ts


text:
Add caching for images

This would close #234, but I'm not quite sure if my implementation is any good.
Further, how should the cache be cleared? Delete the directory? Add a Command line option?

Thanks for the pull request! I should have added more info to the original issue since I've slowly been thinking through things, but implementation-wise I was thinking of using an embedded database like redb to act as the cache itself (embedded database as in mostly just persistent btrees. Not full SQL like sqlite)
In regard to detecting stale entries:

for local files this should be as simple as storing and then comparing the modified times
for URLs this gets a lot more complicated when you start considering Cache-Control stuff

I also think it would be good to have some kind of garbage control over entries in the cache. Either a time to live or some overall size limit would be (maybe both?)
And then it would likely be good to have some command line option to clear the cache too since we don't want users to have to mess with deleting files on their own

The initial implementation doesn't have to handle all of this of course. That's just my rough vision for the future

Oh and before I forget we should probably also version the data format used for the image data before we want to change the format and run into issues in the future. We currently just LZ4 compress the raw image data, so storing an initial byte for the format before each entry should work. E.g.
#[repr(u8)]
enum Format {
    RawLz4Compressed = 0,
}

// Boilerplate `u8` <-> `Format` `From` impls

And then it would likely be good to have some command line option to clear the cache too since we don't want users to have to mess with deleting files on their own

Maybe we should rework the CLI first, so something like this can be added easily later? I could open an issue for that.

Sure! That would be a good start. There's all the stuff I mentioned in https://github.com/Inlyne-Project/inlyne/issues/131#issuecomment-2016552309 that I think would be a good direction to move in

authors: CosmicHorrorDev kokoISnoTarget

repo: Inlyne-Project/inlyne


text:
Component now uses XRIT at v1.0.0-pre.2 TRNG-1463

Description

XRIT is now always at v1.0.0-pre.2
Requires

https://github.com/Innoactive/Creator/pull/261

Type of change

[x] New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Try any course in VR.

:tada: This PR is included in version 1.8.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

authors: Gusinuhe ci-innoactive

repo: Innoactive/XR-Interaction-Component


text:
OpenCVBridge Compile error ITK 5.1RC1

Description
I managed to compile ITK 5.1RC1 with OpenCV Bridge, after some corrections (already fixed on master or ongoing).
Everything works pretty well, except when I use OpenCVImageBridge function.
I have the folowing error :
C:\Program Files\ITK\Release\include\ITK-5.1\itkOpenCVImageBridge.hxx(98): error C2440: 'initializing': cannot convert from 'const cv::Mat' to 'const IplImage'
I fixed this error using
const IplImage converted = cvIplImage(in);
instead of
const IplImage converted = in;

on line 98 (itkOpenCVImageBridge.hxx)
Versions
OpenCV 4.2
ITK 5.1RC1

Environment
Windows 10 x64
MSVC 2019 16.4

Additional Information

Is this issue still open? #1650 might have touched it.

@Hicham-Damae solution worked for ITK 5.0.1 and OpenCV 4.2.0 too.

Can either of you turn it into a PR?

Hi, I was having the same error with ITK 5.2.0 and OpenCV 4.3.0 (latest stable version of both). The solution proposed by @Hicham-Damae works for me too. This is due to the fact that IplImage has been deprecated in OpenCV for quite a long time now. It was eventually removed in version 4.0.0 and only remains in the C API. The fix works because it is explicitely invoking the C API. This however, is only a temporary fix because the OpenCV C API is likely to be completely removed in future versions (it is already absent from the documentation as of version 4.3.0 - see https://docs.opencv.org/4.3.0/ - although it appears to be still accessible).

authors: Giaco90 Hicham-Damae PierreWargnier dzenanz

repo: InsightSoftwareConsortium/ITK


text:
BUG: Fix failing to allocate memory for output image.

Add missing call to Allocate for the ouput image pointer in the
constructor. Classes were not able to be instances and a run-time error
was being thrown.

Folks, all tests are failing locally (and also according to circle for PRs #4, #5 and #6) because a call to
  outputPtr->Allocate();
is missing in the constructors.
I'm wondering whether they did ever work for those who tested before. Any thoughts? Am I missing something?
Please review this PR. Once this gets solved, and if required, I'll rebase the mentioned PRs so that the builds by circle get hopefully green.

Thanks for the patch, @jhlegarreta !
Instead of calling Allocate() in the constructor, we should call FillBuffer (if it is required) in BeforeThreadedGenerateData. At BeforeThreadedGenerateData, the size of the output image is known, and it is called whenever the filter is executed on new data.

@thewtex thanks ! The allocation was effectively taking place in BeforeThreadedGenerateData; now I ignore which is the criterion to decide whether the call to FillBuffer is strictly necessary at that point or not.

authors: jhlegarreta thewtex


text:
Feat/quickswap

implement quickswap connector

Sushiswap tests are passing:

SushiIncentive tests:

Quickswap test on polygon:

##Deployed Quickswap Connector:
chain: Polygon
connectorName: "QUICKSWAP-A",
connectorAddress: 0x7B00D124Fc98107ff97fAc5d37493E1784Bb5C8E

repo: Instadapp/dsa-connectors


text:
running build() without parameters causes  (node:22117) UnhandledPromiseRejectionWarning: Error: gasPrice is not defined.

https://docs.instadapp.io/setup/ shows example as
dsa.build().then(console.log);

and says that build has
>an optional Object parameter
However running build() without parameters causes
(node:22117) UnhandledPromiseRejectionWarning: Error: gasPrice is not defined.
at f.exports.getTxObj (/Users/user/Workspaces/Ethereum/Instadapp/instadapp-get-started/node_modules/dsa-sdk/build/dsa.min.js:12:395221)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async /Users/user/Workspaces/Ethereum/Instadapp/instadapp-get-started/node_modules/dsa-sdk/build/dsa.min.js:12:41342
(
So either docs or current version of sdk are wrong.

@paulvi could you use this SDK instead?
https://github.com/instadapp/dsa-connect

Do you mean that "Documentation" link from https://instadapp.io/ was wrong
and the content of https://docs.instadapp.io/ is of no use?
So https://github.com/instadapp/dsa-connect is newer SDK version

authors: Sowmayjain paulvi

repo: Instadapp/dsa-sdk


text:
Quitar mes de Termino Obligatorio solo para Apoyo Especial a Deportista

Creando un proyecto:
PDE:

PDA:

APOYO ESPECIAL A DEPORTISTA:

Editando un proyecto:
PDE:

PDA:

APOYO ESPECIAL A DEPORTISTA:

Conclusión:
proyecto listo para pasarse a produción

Revisando en producción:
PDE:

EDITANDO PDE:

PDA:

EDITANDO PDA:

APOYO ESPECIAL A DEPORTISTA:

EDITANDO:

Conclusión:
Se procede a cerrar esta tarea el paso a producción fue correcto.


text:
🛑 marketing site is down

In 8127558, marketing site (https://golivwell.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: marketing site is back up in 247fa1d after 4 minutes.


text:
ORC fileformat support

We will track the design & seperated tasks here.

Very interested in this feature~

@lee-lei will update the design doc here

I will update the design doc after the internal review. Thanks.

Currently the ORC support has a series of four PRs as follows. The detailed descriptions are added in the below separate each PRs.

 Add the dependent classes by orc from Spark 2.3

https://github.com/Intel-bigdata/OAP/pull/843
2.      Add the four orc record readers. These are specific for Orc support in OAP.
https://github.com/lee-lei/OAP/pull/2
3.      Add the OrcDataFile and corresponding required code changes.
https://github.com/lee-lei/OAP/pull/3
4.      Add the index creation for orc format
https://github.com/lee-lei/OAP/pull/4
Right now the PR1 and PR2 based on PR1 can pass OAP unit tests. The PR3 based on PR1 and PR2 has several failures. The root cause is narrow down and the exact reason is WIP.

Thanks @lee-lei , and you can update the design doc here so it's convenient for Baidu developers

For the past week, the PR3 based on the PR1 and PR2 passed all of OAP unit tests. The PR4 based on the PR1, PR2, and PR3 passed all of OAP unit tests except one failure. The root cause analysis and fix is ongoing.
The design doc will be uploaded tomorrow.

The design doc will be uploaded soon. Last week I found that it seems that the format is changed a lot after directly copying from my local machine to google docs. Need to take some time to reorganize it. Thanks.

The design doc link is here: https://docs.google.com/document/d/1XMFPUiZfcMP2glxl2hOZHerEFbn1PnSKhFLWlza6fPo/edit#

already support by lee-lei

authors: LuciferYang gczsjdy lee-lei

repo: Intel-bigdata/OAP


text:
Add links in deployment docs to point to sub sections directly

Please add web links to the deployment docs to point to all the sub sections directly.

Already done by @aurorahunter . Thank you for your contribution. :)
Issue closed.

authors: aurorahunter qiyuangong

repo: Intel-bigdata/SSM


text:
Terraform Error - Nauta on Google Cloud Platform

Hi,
I was trying to install Nauta on GCP when a terraform error occurred. I used the last beta release of Nauta and followed the Gettinge Started Guide.
This is the last output of the script:
error_message.txt
Any suggestions on how to fix it?
Thanks & BR
Timo

Hi Timo,
It looks that you have mismatch between configuration file (tf definitions, tfstate) and terraform binaries. Some syntax is not supported yet.
Please compare terraform version from your /home/t_eichhorn87/nauta/.workspace/terraform/nauta/terraform.tfstate file, /home/t_eichhorn87/nauta/.bin/terraform binary. Please let me know which version you have.

Hi,
~/nauta/.bin$ ./terraform --version outputs version: Terraform v0.11.7
And it seems like /home/t_eichhorn87/nauta/.workspace/terraform/nauta/terraform.tfstate is an empty file. Where can I check the version of this?

~/nauta/.workspace/terraform/nauta$ ls -l
total 24
-rw-rw-r-- 1 5291 Mar 27 13:50 main.tf
-rw-rw-r-- 1  932 Mar 27 13:50 output.tf
-rw------- 1 3272 Mar 27 13:50 private
-rw-rw-r-- 1  724 Mar 27 13:50 public
-rw-rw-r-- 1    0 Mar 27 13:50 terraform.tfstate
-rw-rw-r-- 1  901 Mar 27 13:50 variables.tf

BR
Timo

I've checked this issue and reproduced it.
The question is that terraform uses google plugins underneath. It means that terraform version can be old, but package downloaded from the internet during the installation has the newest google provider version included.
Please build nauta from upstream version (terraform definition files are compatible with current google provider version).

This worked well, thanks!

Solution provided and worked.

authors: AdamTumi timoei waldekpi

repo: IntelAI/nauta


text:
解析.bag包获得深度图和rgb图，根据内外参对齐深度图到rgb图得到某一像素点对应的深度值。这个方法与直接在Intel.RealSense.Viewer上使用鼠标停留在深度图上显示的深度值有出入，感觉Intel.RealSense.Viewer上显示的深度值更加准确

通过什么方式可以通过解析.bag包得到更准确的 每帧rgb图上某像素点对应的深度值呢？Intel.RealSense.Viewer是如何做到的，我能否使用同样的方法实现我的目的？

Hello @weishiguan  Have you written your own program script to read the depth from the bag file please?  If you have then a difference between the RealSense Viewer and a program script is that the Viewer applies a range of filters to the depth information by default, but a script applies no filters unless you deliberately put the filters into the script.  An absence of filters in a program script could cause the depth values to be different from those provided in the Viewer.
If you are performing depth to color alignment then it is important to use the color intrinsics or aligned intrinsics, and not the depth intrinsics.  This is because when depth to color alignment is performed, the origin of depth changes from the center line of the left infrared sensor to the center line of the RGB sensor.

您好 @weishiguan 您是否编写了自己的程序脚本来从包文件中读取深度？如果您编写了，那么 RealSense Viewer 和程序脚本之间的区别在于，Viewer 默认将一系列过滤器应用于深度信息，但脚本不应用任何过滤器，除非您故意将过滤器放入脚本中。程序脚本中缺少过滤器可能会导致深度值与 Viewer 中提供的值不同。
如果您正在执行深度到颜色对齐，那么使用颜色内在函数或对齐内在函数而不是深度内在函数非常重要。这是因为当执行深度到颜色对齐时，深度的原点从左红外传感器的中心线变为 RGB 传感器的中心线。

很高心收到您的回复。如你所说，我确实编写了自己的程序脚本从深度图（解析后的.bag）中读取深度，我能否在我的代码中引入与Viewer相同的过滤器，相关的代码可否提供帮助。
此外，对于深度对齐到rgb，我使用了rgb内参和外参进行对齐，这和您所提示的一致；对于距离值，我提供的单位为mm（毫米），感谢您的提示。
此外，我将提供我的代码作为对齐参考，如果有问题非常感谢您的指导。
coordinate.txt

很高心收到您的回复。如你所说，我确实编写了自己的程序脚本从深度图（解析后的.bag）中读取深度，我能否在我的代码中引入与Viewer相同的过滤器，相关的代码可否提供帮助。
此外，对于深度对齐到rgb，我使用了rgb内参和外参进行对齐，这和您所提示的一致;对于距离值，我提供的单位为mm（毫米），感谢您的提示。
此外，我将提供我的代码作为对齐参考，如果有问题非常感谢您的指导。
At 2024-12-25 21:59:05, "MartyG-RealSense" @.***> wrote:
Hello @weishiguan Have you written your own program script to read the depth from the bag file please? If you have then a difference between the RealSense Viewer and a program script is that the Viewer applies a range of filters to the depth information by default, but a script applies no filters unless you deliberately put the filters into the script. An absence of filters in a program script could cause the depth values to be different from those provided in the Viewer.
If you are performing depth to color alignment then it is important to use the color intrinsics or aligned intrinsics, and not the depth intrinsics. This is because when depth to color alignment is performed, the origin of depth changes from the center line of the left infrared sensor to the center line of the RGB sensor.
您好 @weishiguan 您是否编写了自己的程序脚本来从包文件中读取深度？如果您编写了，那么 RealSense Viewer 和程序脚本之间的区别在于，Viewer 默认将一系列过滤器应用于深度信息，但脚本不应用任何过滤器，除非您故意将过滤器放入脚本中。程序脚本中缺少过滤器可能会导致深度值与 Viewer 中提供的值不同。
如果您正在执行深度到颜色对齐，那么使用颜色内在函数或对齐内在函数而不是深度内在函数非常重要。这是因为当执行深度到颜色对齐时，深度的原点从左红外传感器的中心线变为 RGB 传感器的中心线。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

The RealSense Viewer applies multiple filters including Decimation, Spatial, Disparity and Temporal.  Each filter would have to be individually programmed into the script.
There is a Python example of post-processing and alignment code at https://github.com/IntelRealSense/librealsense/issues/11246

authors: MartyG-RealSense weishiguan

repo: IntelRealSense/librealsense


text:
RealSense Viewer fails to start windows7

Required Info

Camera Model
D415

Firmware Version
(Open RealSense Viewer --> Click info)

Operating System & Version
Win 7

Kernel Version (Linux Only)
(e.g. 4.14.13)

Platform
PC

SDK Version
2.16.1 }

Language
English

Segment

Issue Description
I am unable to get Intel RealSense Viewer to start after installation on windows 7.  Installation seem to work ok and cameras is not showing having drivers properly installed however I'm unable to run the RealSense Viewer program to see images from the camera.  I also attempted to connect to camera using python but this also failed.
I've managed to connect to same camera on a different computer running windows 10 using the same method so assume it is related to windows 7 things.

What about other examples like save-to-disk? I suspect there might be an issue with OpenGL drivers on the system, please make sure to install the latest GPU drivers for your vendor.
Any specific error message from either the Viewer or python?

Thanks for getting back to me.  I will check GPU drivers on machine.
No error message on Viewer just nothing at all happens when try to launch it.
import pyrealsense2 as rs
pipeline = rs.pipeline()
Generates following output in pycharm
Process finished with exit code -1073740940 (0xC0000374)
Can also generate the following mesage using python from cmd line and trying to debug problem.
Unhandled exception at 0x0000000076FFF302 (ntdll.dll) in python.exe: 0xC0000374: A heap has been corrupted (parameters: 0x0000000077067C70).

Hi thanks for your advice.  Updating graphics card driver did solve problem of nto being able to open RealSense Viewer

Glad it works now. We need to try to reproduce and look into the python issue.

[Realsense Customer Engineering Team Comment]
Hi @dom3442,
Can you create another issue to track the app fails in python on Win7 and have below info?
Is the python issue based on the prebuilt pyrealsense2 library or built from the source? which python version (2.x or 3.x) used?

Hi
I've managed to solve the problem with python.  I installed the package via pip.
Uninstalling and reinstalling the package using pip worked to solve the problem and it is now working.  I'm using python 3.
Dominic

Hi @Dom3442
Glad you managed to find a solution. The embarrassing thing is that by publishing pip package for Windows 7 unintentionally broke everyone else (#2536)... So for now we are going to roll-back Windows 7 support from pip, and I wanted to give you a heads up.
You should still be able to use the version you downloaded, and the version in next installer should work as well, but if you encounter a problem feel free to reopen this issue or open a new one.


text:
Configure timeouts & some improvements

The main goal of this change is to configure timeouts that work well with the default idle timeout of an upstream load balancer (i.e. 60 seconds).
Additionally brings in some other changes, all of which were inspired by ingress-nginx.

@zacblazic I think you're missing a CHANGELOG entry.

authors: itskingori zacblazic

repo: Intellection/docker-nginx-proxy


text:
Set up Gitter channel

Also add to Contribution section of README so that discussion doesn't have to happen only in issues.

Any reason we cannot just leverage the existing one here? https://gitter.im/IntelliTect

authors: Keboo adamskt

repo: IntelliTect/IntelliTect


text:
Adapt PBD solver 2.0.1

I found there are alot API changes in PBD 2.0.1. In SPH code, PBDWrapper is releated to such modification.
#167  only fix the link with old pbd code. how can I fix it to adapt this new pbd solver?

That is a good point. I just recognized that the PBD version SPlisHSPlasH uses is not up-to-date. I will put this on my todo list.

I just updated to the new PBD version.

authors: janbender yangfengzzz


text:
运行llava-llama-3-8b-v1_1报错：FileNotFoundError: can't find *_optim_states.pt files in directory

微调时，已经生成work dirs。但是最后报错：
raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'")
FileNotFoundError: can't find *_optim_states.pt files in directory '/root/autodl-tmp/llava-llama-3-8b-v1_1'
config设置为
llm_name_or_path = '/root/autodl-tmp/Meta-Llama-3-8B-Instruct'
visual_encoder_name_or_path = '/root/autodl-tmp/clip-vit-large-patch14-336'
Specify the pretrained pth
pretrained_pth = '/root/autodl-tmp/llava-llama-3-8b-v1_1'  # noqa: E501
求解答谢谢

@Egber1t https://github.com/InternLM/xtuner/issues/671

为啥这里指向phi呢（好奇）

已解决需要更换成：
https://huggingface.co/xtuner/llava-llama-3-8b-v1_1-pth

已解决需要更换成： https://huggingface.co/xtuner/llava-llama-3-8b-v1_1-pth
你好，为什么我更换后还是报错。
raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'")
FileNotFoundError: can't find *_optim_states.pt files in directory '/home/bit118/Liucheng/model/llava-llama-3-8b-v1_1-pth'

repo: InternLM/xtuner


text:
Release 8.18.0.0

Changelog
- description: |
    Release 8.18.0.0, featuring cardano-api 8.37.0.0
# uncomment types applicable to the change:
  type:
  # - feature        # introduces a new feature
  # - breaking       # the API has changed in a breaking way
  # - compatible     # the API has changed but is non-breaking
  # - optimisation   # measurable performance improvements
  # - improvement    # QoL changes e.g. refactoring
  # - bugfix         # fixes a defect
  # - test           # fixes/modifies tests
  # - maintenance    # not directly related to the code
  - release        # related to a new release preparation
  # - documentation  # change in code docs, haddocks...

Context
We want https://github.com/IntersectMBO/cardano-api/pull/400 available in cardano-node, i.e cardano-api 8.37.0.0, so that adding new Conway tests in cardano-node is easier.
Checklist

[X] Commit sequence broadly makes sense and commits have useful messages
NA New tests are added if needed and existing tests are updated. See Running tests for more details
[X] Self-reviewed the diff

CHaP PR: https://github.com/IntersectMBO/cardano-haskell-packages/pull/634

repo: IntersectMBO/cardano-cli


text:
Bugfix: File path strings are always evaluated as Base64-data

Since 2.3.12, a bug seems to have been introduced to AbstractDecoder.php that prevents loading images from file paths. I believe it was introduced in this commit.
If I pass in a valid file path, such as /tmp/MyImageFile, line 332 of AbstractDecoder.php interprets it as base-64 text, and subsequently tries to decode an image from the file path string:
case $this->isBase64():
    return $this->initFromBinary(base64_decode($this->data));

case $this->isFilePath():
    return $this->initFromPath($this->data);

I think the $this->isFilePath() evaluation should come before the $this->isBase64() evaluation - as a file path string will always evaluate to Base 64.

Thanks.

authors: JackWH olivervogel

repo: Intervention/image


text:
Promise in readItemsAsync in next versions

Version
nuxt-directus-next: v0.0.13
Reproduction Link
https://www.npmjs.com/package/nuxt-directus-next?activeTab=code

What is Expected?
The readAsync functions has the correct Generic Type in combination with SDK response
What is actually happening?
Looks like it generate Promise
In the code it returns an actual any

While working on this I found a few other things in regard to the current useAsyncData implementation.
Once closed I'll push 0.0.14

pushed 0.0.14, feel free to reopen if you see more, related, problems

repo: Intevel/nuxt-directus


text:
Keep working on the design!

You are off to a good start.  You almost certainly need a use case for training the model.

I made sure that we have a technician use case!

authors: dacb rjpecoraro

repo: Intrinsically-Disordered/TBD


text:
Maximum number in a list

Hi,
When I run the code below, it works for a certain number of items, then it outputs
"... 472 more items ] }"
Is there a configuration to limit the output that can be changed?
thanks,
`const scrapeIt = require("scrape-it");
scrapeIt("https://avia.nl/tankstations/", {
stations: {
listItem: ".search-result-inner-left",
data: {
name: {
selector: "h3"
},
address1: {
selector: ".first"
},
address2: {
selector: ".first ~ span"
}
}
}
}).then(page => {
console.log(page);
});`

It's not related to scrape-it. It's either a Node.js cli feature or it's from your Terminal emulator. I'm not sure which of them.

Thanks for the quick reply.
You are right, when I iterate over each item it all outputs fine.
Thanks again,

I'm pretty sure it's from the terminal.
Try running it using:
node index.js > output.js

And then check out the output.js.
If I'm not wrong, I guess you're using the macOS Terminal app.

I did that straight away and got the same result. So i think it must be node

On 18 Feb 2017, at 19:07, Ionică Bizău notifications@github.com wrote:
I'm pretty sure it's from the terminal.
Try running it using:
node index.js > output.js
And then check out the output.js.
If I'm not wrong, I guess you're using the macOS Terminal app.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

authors: IonicaBizau niallel

repo: IonicaBizau/scrape-it


text:
Скласти додаткові інформаційні блоки

Можна зробити резюме менш формальним, додавши додаткові блоки, які містять корисну інформацію, але подають її в "розважальній" формі. Наприклад, що подобається і не подобається, сильні і слабкі сторони, перелік навиків чи хобі, інфографіка або ж інтерактивні модулі, тощо. Варто написати контент такого блоку раніше, ніж починати верстку, бо його розміри впливатимуть на розміщення елементів на сторінці.

Pull request merged

repo: Irencia/homepage


text:
Improve Comp Toolbar

[ ] Search range
[ ] Select index for base index of searching

[ ] ALL
[ ] 0-1-2...
Explanation: for comping multiple sources, when searching for example P/B frames, you want to lookup pros of all. when doing it on filtered clip, you want to check the prop only on the source

[ ] Bright/Dark frames selection (From #38)

[x] GUI Part
[ ] Select index as before, so you can only check one source and not waste time

[ ] Checkbox for adding information in the top-left

Frame Type
Frame Number
Name

[ ] Option in the settings to add a minimum length between any sample frame (From #39)
[ ] Add hotkey for inputting current frame into manual frames textbox (From #75)
[ ] Add possibility of creating a random seed for comps, to make them reproducible (From #53)
[ ] Add manual frames parsing for automatically importing frames from scening toolbar (From #46)

For most of these items, we should also add stuff to #27

When creating a comparison, it only look at frame numbers. It should respect timestamps instead, like vspreview does regularly when syncing output clips. This should allow for clips with different framerates (including VFR) to be compared more consistently.

When creating a comparison, it only looks at frame numbers. It should respect timestamps instead, like vspreview does regularly when syncing output clips. This should allow for clips with different framerates (including VFR) to be compared more consistently.

For the record, this got implemented.

authors: LightArrowsEXE Setsugennoao

repo: Irrational-Encoding-Wizardry/vs-preview


text:
Added "make command not found" failure fix

Purpose / why
I skimmed the directions and got the error "make command not found". Others might, too.
What changes were made?
Added description of error and the fix.
Verification
I spell checked?
Interested Parties
@Islandora/documentation
Checklist

Pull-request reviewer should ensure the following

[ ] Does this PR link to related issues?
[ ] Does the proposed documentation align with the Islandora Documentation Style Guide?
[ ] Are the changes accurate, useful, free of typos, etc?
[ ] Does this PR update the last updated on date on the documentation page?

Person merging should ensure the following

[ ] Does mkdocs still build successfully? (This is indicated by TravisCI passing. To test locally, and see warnings, see How To Build Documentation.)
[ ] If pages are renamed or removed, have all internal links to those pages been fixed?
[ ] If pages are added, have they been linked to or placed in the menu?
[ ] Did the PR receive at least one approval from a committer, and all issues raised have been addressed?

Thank you for this, @archivalGrysbok ! Alas, I'm afraid we have one small hoop to clear for first-time contributors:
Before you set out to contribute code you will need to have completed a Contributor License Agreement or be covered by a Corporate Contributor Licencse Agreement. The signed copy of the license agreement should be sent to mailto:community@islandora.ca
This license is for your protection as a contributor as well as the protection of the Foundation and its users; it does not change your rights to use your own contributions for any other purpose.

@manez This submission isn't actual code (just documentation). Is it possible this could be an exception?

@DonRichards per policy and practice at the IF, I'm afraid not. All contributions are treated equal in the eyes of the CLA. The Documentation Interest Group has this one in their sights and a volunteer to redo it, but it hasn't happened yet.

I just created PR #1995 to essentially recreate this PR (#1816) I am commenting on. Since we never got a CLA from the contributor after repeated attempts to contact them.

authors: DonRichards archivalGrysbok manez ysuarez

repo: Islandora/documentation


text:
chore(main): release 2.7.0

:robot: I have created a release beep boop
2.7.0 (2024-08-09)
Features

Add toggleFocus command (65d8ae2)
Support folds (74e81c7)

Bug Fixes

Inconsistency of current line when folds on (08ea1c8)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v2.7.0
:sunflower:


text:
Alignment issue resolved

BEFORE

AFTER

Thank you @sanskriti-lal

authors: Its-Aman-Yadav sanskriti-lal

repo: Its-Aman-Yadav/Community-Site


text:
TypeError

Hi, i get the error:

TypeError: Cannot read properties of undefined (reading 'path')

@ItzDerock

Can you provide the full stack-trace and also some code?

Can you provide the full stack-trace and also some code?

Can you provide the full stack-trace and also some code?

Can you provide the full stack-trace and also some code?

const attachment = discordTranscripts.createTranscript(interaction.channel);

interaction.channel.send({
  files: [attachment],
});

Can you provide the full stack-trace and also some code?

const attachment = discordTranscripts.createTranscript(interaction.channel);

interaction.channel.send({
  files: [attachment],
});

What version of discord.js are you using? (npm list discord.js)

What version of discord.js are you using? (npm list discord.js)

As if the await makes that much difference

createTranscripts(...) returns a Promise. I don't think discord.js accepts a promise inside of the files option.
Adding an await will resolve the promise before passing it to discord.js

Okay, thanks

repo: ItzDerock/discord-html-transcripts


text:
Deriving nuclear data from source data

Hi @JASory, I have been doing some research to find a package that could meet our needs on https://github.com/terrapower/armi/discussions/460 as a general nuclide library that can be imported across different languages, mainly Python at this time. I am learning Rust and came across this package and thought that it might be nice to collaborate!
After looking through your codebase, I am curious if we could work on the following functionalities:

Derive nuclide data from a given decay library, like ENSDF.
Add functionalities to traverse the decay chain for the purposes of plotting the chart of nuclides as well as derive complete or truncated decay/depletion chains for the purposes of supporting generalized nuclear analyses.
Adding unit testing to the nuclear data library so that users can be confident that the implementation is well tested and verified.

I'd love to set up some discussions if you are interested and see if there is a way that we could develop requirements, documentation, and further testing! Please let me know 🙂

Also, I'd like to know if you are stuck on using the GPL license rather than a MIT license for the open source software. Many folks who use our reactor modeling framework develop proprietary code and we are of course concerned with stipulations in licensing space for requiring the release / open sourcing of code that uses a library like this.

I can easily implement the majority of ARMI's proposed specification that doesn't already exist in this library.
The only difficulty would be establishing a structure that reads from files. There are several approaches to this.

Use the existing Nuclide/Isomer structure and pass an argument into methods that direct which file to read. E.g u235.am_from_file("u235.dat").unwrap()
Rewrite Nuclide to pull all this data upon creation into the structure. I'm fairly strongly biased against this approach as I designed the Nuclide structure to hold as little data as possible (only one 64-bit word) and point to data as needed that can be cloned in-place. (Which is also why I weirdly have a different structure for Isomers, since they require more data and complexity)
Create a new structure "ATOM" that works like no. 2, and refers to the default hardcoded data that Nuclide has if the user has no valid files.

authors: JASory jakehader

repo: JASory/Iridium


text:
Failed to build onnx2daq in Windows 10

Hi,
Thanks for this great library!
Anyway I failed when trying to build source to create onnx2daq executable in Windows. Below is the error. Please advise.
Thanks

hi, did you manage to tackle the problem after all? I'm getting the same error!

authors: evanescenceakii sufiaji

repo: JDAI-CV/DNNLibrary


text:
Featured items ranking

Option can be added to hide any of them from the main menu

Added on v2.16.0-beta.2.


text:
Detect existing links

The ability to detect existing links, and therefore load the tags and the descriptions from the server, would be nice to have. This feature exists on the linkding server.
Please consider implementing it, if possible.
Thank you.

Added on v1.5.0.


text:
三星Note 2 Android ajax无法发起

最近在使用的时候，在三星note2（android 4.3）原生浏览器页面中发起ajax请求，抛出了异常，
ReferenceError：name is not defined。
根据错误提示，定位到JSLite.js原始代码为：
for (name in headers) nativeSetHeader.apply(xhr, headers[name]);
在JSLite.min.js中是对应这行代码压缩后的代码报错。
根据实验，使用未压缩的JSLite.js可以正常运行，但是使用压缩好的JSLite.min.js会抛出异常。
然后我通过在线JS压缩工具压缩JSLite.js，这样压缩后的js也可以正常运行。
所以怀疑是不是压缩时的一些策略会导致Android系统的原生浏览器（Android版微信浏览器存在同样的问题）上出现问题。

@hqzxzb  这个可能是压缩没有同步？那可能我要换压缩工具了。

@jaywcjlove 我测试的时候发现那一行代码本身并没有多少变化，只是换了变量名，所以有可能是其他地方被压缩了什么内容或替换了写法，引起Android上的异常。

@hqzxzb 哪个变量名换了，晚上我研究研究去

@jaywcjlove
JSLite.js：
for (name in headers) nativeSetHeader.apply(xhr, headers[name]);
JSLite.min.js：
for(name in v)y.apply(g,v[name]);

@hqzxzb 知道了，今晚看一下。

@hqzxzb  nativeSetHeader  这个是我声明的变量，压缩工具自动优化。bug 已修复

authors: hqzxzb jaywcjlove

repo: JSLite/JSLite


text:
OneWire support

Hi, I was wondering if you are planning to get a running sample for the OneWire support? I'm in the middle of trying to work out building a C# project for Raspberry Pi Zero, and instead of using Windows IoT Core (which is not supported on Raspberry Pi Zero), I'm looking into porting my project to run on Raspbian and mono runtime.
The sensors I'm currently trying to run from Raspberry Pi Zero are:
DS18B20 (temp sensor)
TSL2561 (Light sensor)
MCP3008 (to connect to a moisture sensor)
I have these running on the Raspberry Pi 3, but I would like to reduce the footprint of the device(s), and the Raspberry Pi Zero seems to be a good choice. I usually do all my work in Visual Studio building apps in C#.
With that said, I've been looking into your library and would be interested in using it if I could use it to support those devices I listed.
I understand it's a work in progress, and if you have any suggestions for me, or thoughts on if your library could support those devices currently, please let me know.

Hello, Yes I have some demos using OneWire. I will add them ASAP.
The library is under test but I'm using it in production with no problems. In few weeks, I will update nuget to production.

      Hello, Yes I have some demos using OneWire. I will add them ASAP.

The library is under test but I'm using it in production with no problems. In few weeks, I will update nuget to production.

Hey, thank you. Much appreciated. I'll check back from time to time to see what is in the repo and give it a try. Thank you again!

Onewire works now

repo: JTrotta/RaspberrySharp


text:
🛑 Glitch is down

In 2d4f8db, Glitch ($GLITCH) was down:

HTTP code: 503
Response time: 397 ms

Resolved: Glitch is back up in 86efc39 after 37 minutes.

repo: JYFUX/upptime


text:
🛑 Glitch is down

In fec11b1, Glitch ($GLITCH) was down:

HTTP code: 503
Response time: 283 ms

Resolved: Glitch is back up in fc7254a after 28 minutes.


text:
Can you please help me with File upload and read from it in assistant?

Hi @JZO001,
my code was working perfectly fine. but now they have decided to work with vector store.
my complete scenario is like below.
upload file then
create assistant with all details
attach this file to current assistant(CreateAssistantFileRequest). (here i was using below code and now its giving false result.)
create the thread.
create MessageResponse
create RunResponse
if run response true then get all MessageData from MessagesService.
after all these i was deleting file and assistant in finally block.
so what to do now to fix this?

var createAssistantFileRequest = new CreateAssistantFileRequest()
{
    AssistantId = assistantId,
    FileId = assistantFileId
};

var createAssistantFileResult = await openAi.AssistantFileService.CreateAsync(createAssistantFileRequest, CancellationToken.None);

can anyone please help me? i am stuck.

@JZO001 , can you please help? if this is possible with current code then can you please tell me how to do it?


text:
contentView.getResources() .getDisplayMetrics().heightPixels 返回值不是真正的height

您好，我的项目里在OPPO R15（1080x2280）上， 这个地方返回的heightPixels 是2200，结果就是 phoneDisplayHeight = actionBarOverlayLayoutHeight； 导致会进入上图的地方，最后无法回调到onKeyboardShowing ；  非全屏，非沉浸式；
但是在这个demo里，却是没问题的，
搞不懂了，求破；

我也发现个别机器获取这个高度和实际并不一样,导致出现问题,我的是魅族手机
不排除是我在content的布局上包了一层做滑动返回,但是华为手机上就没问题

@qyf123 应该是你工程内修改了Resources
我排查了一下发现

当初为了多语言在N以上设置了context.createConfigurationContext,导致Resources的高度变了

repo: Jacksgong/JKeyboardPanelSwitch


text:
vikunja-desktop: cannot open

$ file vikunja-desktop/current/*
vikunja-desktop/current/LICENSE.electron.txt:    ASCII text
vikunja-desktop/current/LICENSES.chromium.html:  HTML document text HTML document, ASCII text
vikunja-desktop/current/User Data:               symbolic link to /c/Users/שזדס/scoop/persist/vikunja-desktop/User Data
vikunja-desktop/current/chrome-sandbox:          ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=c7dd943c9a2f9568fcd82fa7baddb1f22f38fb22, with debug_info, not stripped
vikunja-desktop/current/chrome_100_percent.pak:  data
vikunja-desktop/current/chrome_200_percent.pak:  data
vikunja-desktop/current/chrome_crashpad_handler: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=ae738ae61b53556ed5410b97010d67864f55aea9, not stripped
vikunja-desktop/current/icudtl.dat:              data
vikunja-desktop/current/install.json:            JSON text data
vikunja-desktop/current/libEGL.so:               ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=09ff65463755b887e71c59f7b68228e92a84bd46, not stripped
vikunja-desktop/current/libGLESv2.so:            ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=b49e180b290d25a84e8431fb8cd2602499763126, not stripped
vikunja-desktop/current/libffmpeg.so:            ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=78e0e100f56ff0ac8894342351a1e880d628eabc, not stripped
vikunja-desktop/current/libvk_swiftshader.so:    ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=f3a26db3f1c4644e02d50fa102282631595594df, not stripped
vikunja-desktop/current/libvulkan.so.1:          ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=151f079fb274bc8b986bddea21c82a6b2ce21690, with debug_info, not stripped
vikunja-desktop/current/locales:                 directory
vikunja-desktop/current/manifest.json:           JSON text data
vikunja-desktop/current/resources:               directory
vikunja-desktop/current/resources.pak:           data
vikunja-desktop/current/snapshot_blob.bin:       data
vikunja-desktop/current/v8_context_snapshot.bin: data
vikunja-desktop/current/vikunja-desktop:         ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=af79fdebaf03a4cf40cd7698c2aee7d7c10c3d48, not stripped
vikunja-desktop/current/vk_swiftshader_icd.json: JSON text data

It looks like vikunja's packaging pipeline has changed, I will make adjustments later

Fixed in latest commit, please re-update

repo: Jadeiin/scoop

license: Unlicense


text:
Code Converage

Add code coverage so we can see what parts of OneOf are tested easily.

Done, see https://github.com/Jagged/OneOf/commit/b3be38968297f2c99b8f9fa9260bac3df9f88956, though for now it means we're back to using mstest.

repo: Jagged/OneOf


text:
BACKLOG-20625: Information modal

JIRA

https://jira.jahia.org/browse/BACKLOG-20625

Waiting for german translations

repo: Jahia/jcontent


text:
HTML

#HTML
User Story
As a boot camp student,
I want a Prework Study Guide website,
so that I can review all the information I learned throughout Prework.
Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I visit the website in my browser
THEN I see four boxes titled HTML, CSS, Git, and JavaScript with associated notes listed
WHEN I view the study guide
THEN I see a dark blue header and footer, and four boxes with a shadow
WHEN I open the console in my browser
THEN I can see the four topics I learned listed along with a suggestion on what I should study first
WHEN I visit the website using the URL
THEN I can access my website from any browser

Finished the HTML Portion


text:
Find .latexcfg in subdirectory

I would like to work with a directory structure like
.
├── code
└── doc
    ├── .latexcfg
    └── main.tex

If this is opened as a project, it does not detect the .latexcfg because it is not at the top level of the project. Would be nice to detect that, too. For example when building something down in the doc directory, the path is traversed upwards until a .latexcfg is found.

It will not be implemented. Assume someone has 1000 sub-folders in the root.
However I agree that this use case should be considered. Can we come up with some alternative solutions?

The idea I briefly pointed out is not about iterating through each and every subfolder. Only the ones upwards, towards the root, starting from the level of the currently opened file (the one that was active when firing the build command).
This was my first idea how this could work. Maybe some better approaches exist ;)

authors: James-Yu exploide

repo: James-Yu/Atom-LaTeX


text:
feature request

Hi James.  Garry/Dean/Phil shared your github repo with me this morning for the TOPAS project.
There are a couple of INP file highlightings in jEdit that it would be useful to replicate eventually:

For big files I normally have autofolds which are closed by default on opening.  They look like:
'{{{ a description of what's in next section
...
'}}}
In template INP files (see e.g. https://topas.awh.durham.ac.uk/doku.php?id=templates).  I use the symbol below to mark somewhere user has to put in information and colour it purple:
-> text to replace.

Hi John, thanks for getting in touch. Sorry for the delayed reply, I had some time off and have been working on the site keyword since. To address those features:

Currently these would be highlighted as two individual line comments. I'm not sure how they appear in jEdit, but I could make the description text a different colour if that'd be useful?
As for auto-folding, Tree-sitter can be used to provide folding (in Neovim at least), but it's not something I've had a chance to look into. I suspect it'd be rather tricky to implement with the autofold blocks, as it would mean treating everything inside them separately to the rest of the input file, which would likely cause problems if the block contains keywords that the parser is expecting to appear.

These may be challenging to highlight, depending on how they work - are they treated like comments, with the user having to remove the arrow before running the file? Or does the arrow effectively just cause the line to change colour, but still requires it be valid TOPAS code?

Having the '{{{ highlighted as two comments is fine.  This is how they appeared in jEdit.  jEdit used just the {{{ as one of it's folding triggers so it was easy to switch between the two views in the image below.  It may be easiest just to do this with a vs-code extension.

The arrow is just to change the colour of the following text to purple.  The text doesn't have to be valid topas code.  It's just there to flag to the user that they have to change that line of text.

Understood, thanks. In that case I think that, for now at least, I'll implement both features as comments. I'll add a query tag to allow users to highlight the arrow comments differently to other comments, but since highlight colours are controlled locally, I can't set them to be purple automatically, unfortunately. If I get a chance though, I'll upload a config file that matches the jEdit scheme.

Just a thought on the folding... is it imperative @johnsoevans that this {{{}}} syntax specifically is supported, or that folding itself is supported?
@JamesDoingStuff since the treesitter can understand the syntax, can we define grammatical concepts which can be folded such as macro definitions or str blocks etc? If possible, this solution would be nicer I think, because the folding would then follow standard patterns in the editor of choice; and would not introduce new syntax specifically to accommodate this.

I agree that folding automatically on major things like xdd, str, etc would be great. The ‘{{{ would just be nice to have for legacy reasons as I have 100s of files that use it. It also lets a user put in their own arbitrary folds for thing treesitter wouldn’t be able to recognise.
It’s not a big deal for treesitter as I think we can just do it in a vscode extension.

since the treesitter can understand the syntax, can we define grammatical concepts which can be folded such as macro definitions or str blocks etc?

Neovim certainly supports this type of folding, not sure for other editors. It works using the same query language as highlighting, so a folds.scm file containing a query
(macro_body) @fold

would collapse all the contents of macro definitions. Most keywords are still lacking structure at this time, but eventually the same method could be used with them.
As for the '{{{ method, this parser will mostly just ignore them as it stands. I don't think any folding capability can/should be added to those via Tree-sitter.

authors: JamesDoingStuff johnsoevans keeble

repo: JamesDoingStuff/tree-sitter-topas


text:
SelectToken Uncaught Invalid JsonPath Format

Steps to reproduce
new JObject().SelectToken("example[0,:1]");

Expected behavior
Newtonsoft.Json.JsonException: 'Unexpected character while parsing path indexer: ;'
Actual behavior
No exception thrown. The function returns null.

After some research & reflection, I realize that this is actually valid as [0,:1] can be treated as [0, 0:1], and although this has a duplicate index 0, it doesn't go against the rules of Json Path per se.


text:
Prompt changes using tab completion with PS-GuiCompletion

Prerequisites

[x] I have read and understand the CONTRIBUTING guide
[x] I looked for duplicate issues before submitting this one

Description
Prompt changes using tab completion with PS-GuiCompletion or PowerTab
Environment

Oh my Posh version: 3.78.1
Theme: none
Operating System: Windows 10
Shell: PowerShell 7.1.1
Terminal: ConEmu

Steps to Reproduce

Invoke tab completion with PS-GuiCompletion or PowerTab (for instance with cd <tab>

move cursor down (or any other key)

PowerLine symbol inverts its colors

Expected behavior:
Prompt should not change
Actual behavior:
Prompt changes
Config:
{
    "final_space": true,
    "blocks": [
        {
            "type": "prompt",
            "alignment": "left",
            "segments": [
                {
                    "type": "shell",
                    "style": "powerline",
                    "powerline_symbol": "",
                    "foreground": "lightWhite",
                    "background": "lightBlue"
                }
            ]
        }
    ]
}

@thorstenkampe I'll see if I can reproduce this in other terminals. That said, this is going to be a bug in either ConEmu, PS-GuiCompletion or PowerTab as once rendered, there's nothing oh-my-posh can do that affects the visualisation. This is however an inverted ANSI sequence, and one of the tools is going to ruins the rendering when it draws that completion box.

@thorstenkampe I'll see if I can reproduce this in other terminals. That said, this is going to be a bug in either ConEmu, PS-GuiCompletion or PowerTab as once rendered, there's nothing oh-my-posh can do that affects the visualisation. This is however an inverted ANSI sequence, and one of the tools is going to ruins the rendering when it draws that completion box.

I opened the issue here because the problem does not occur in my Starship prompt (although that might be coincedental).

I opened the issue here because the problem does not occur in my Starship prompt (although that might be coincedental).

@thorstenkampe confirmed to be a bug with the toolset rather than oh-my-posh. It even changes the colours on the screen meaning their rendering influences the drawn ANSI characters. The default Install-Module progress bar also has this issue in Powershell meaning it could be something low level in the standard toolset. However, there's nothing I can do to resolve that, our string is drawn correctly and the tool(s) simply re-render that part and ruin it. So it's up to them to fix it.

@thorstenkampe confirmed to be a bug with the toolset rather than oh-my-posh. It even changes the colours on the screen meaning their rendering influences the drawn ANSI characters. The default Install-Module progress bar also has this issue in Powershell meaning it could be something low level in the standard toolset. However, there's nothing I can do to resolve that, our string is drawn correctly and the tool(s) simply re-render that part and ruin it. So it's up to them to fix it.

authors: JanDeDobbeleer thorstenkampe


text:
Add more AI difficulty settings

Possible settings could be:

Random
Wins if possible, else random
Wins and blocks if possible, else random

Started: https://github.com/JanEricNitschke/TicTacToe/commit/2010303574f1b89a22b707618af5c320ea3163cc
Ended: https://github.com/JanEricNitschke/TicTacToe/commit/1e57825393bc8c330fb5f6cbe8cf80c3d0ade696

repo: JanEricNitschke/TicTacToe


text:
fix class type of Application.login

it's wrongly defined as AnchorElement but actually should be LIElement

@lukechi1219 Thank you! :-)

repo: Janamou/firebase-demo


text:
Added jgroups support for PostgreSQL

Checklist

[ x] the [individual contributor license agreement][] is signed

Description of change
Allows jgroups to be used in a PostgreSQL environment

:+1:

authors: bjagg bpowell

repo: Jasig/uPortal


text:
chore(deps): update dependency org.springframework:spring-context-support to v5

This PR contains the following updates:

Package
Update
Change
References

org.springframework:spring-context-support
major
4.3.22.RELEASE -> 5.1.5.RELEASE
homepage, source

Release Notes

spring-projects/spring-framework
v5.1.5.RELEASE
Compare Source
:star: New Features

Fix for ScriptUtils failure when '--' occurs inside a multi-line comment on the same line as '*/' #22392
InjectionPoint autowiring throws exception for @Resource beans autowired by name #22359
PathMatchingResourcePatternResolver may double-wrap jar: URLs #22346
mariadb-java-client 2.4.0 productName changed: breaks Spring Batch #22344
SpringEL should not throw IllegalAccessError for invalid assignment #22336
Avoid duplicate call to findAnnotations in DefaultListableBeanFactory.findAnnotationOnBean #22318
Load-time weaving support for WildFly 13+ #22297
org.springframework.web.client.HttpMessageConverterExtractor#extractData fails to detect empty body when content-length header is missing #22265
Deprecate JibxMarshaller #22249
DefaultExceptionHandler logs warning cannot be disabled [SPR-17628]#22159
Support for null literal in Jackson2JsonDecoder [SPR-17510]#22042

:beetle: Bug Fixes

IllegalArgumentException when overriding empty 'excludeFilters' array on @ComponentScan #22405
@Transactional beans not getting proxied when being initialized during failed circular reference attempt #22370
CompositeLog does not log exceptions at ERROR level #22364
ApplicationContext.refresh() causes stale listeners to be added to ApplicationEventMulticaster  #22325
ApplicationListenerMethodAdapter does not find @Ordered annotation for dynamic proxies #22307
NPE in AbstractHandlerMethodMapping when trace logging is enabled and a handler's class loader does not provide package information #22306
Incomplete fix for MethodParameter.isOptional() ArrayIndexOutOfBoundsException #22303
Wrap DecodingException thrown by WebFlux functional endpoints #22290
Fix truncation of response body in AbstractMessageConverterMethodProcessor #22287
DataBuffer.write(CharSequence charSequence, Charset charset) fails on empty string with java.lang.IllegalStateException: Current state = RESET, new state = FLUSHED #22262
Add tests for SpringBeanContainer (Hibernate ORM integration) and fix the behavior when requesting named beans #22260
ServerSentEventHttpMessageReader leaves a leading space on field decoding [SPR-17511]#22043

:notebook_with_decorative_cover: Documentation

Enhance documentation for @PostConstruct/PreDestroy and @Required #22348
Improve spring-context-indexer documentation #22339
Testing chapter of reference manual refers to old version of PetClinic #22288
Correct issues in Spring MVC section #22282
Clarify documentation about Spring MVC views rendered with Jackson versus @JsonView #22280
Spring MVC documentation has incorrect WebFlux reference #22270
Use try-with-resources in Spring 5 documentations #22269
Document effect of @DirtiesContext when used with constructor injection [SPR-17654]#22183
Add note to Scope documentation on SimpleTransactionScope [SPR-17651]#22180
Document effect of preemptive timeouts on transactional tests [SPR-17647]#22176
Document synchronous use of WebClient [SPR-17644]#22173
Error in CORS WebFilter documentation of web-reactive #19841
Improve Kotlin documentation #22400

:heart: Contributors
We'd like to thank all the contributors who worked on this release!

@benelog
@mmustaquim
@mhewedy
@artembilan
@lifenjoy51
@yrodiere
@vpavic
@kudrevatykh

v5.1.4.RELEASE
Compare Source
v5.1.3.RELEASE
Compare Source
v5.1.2.RELEASE
Compare Source
v5.1.1.RELEASE
Compare Source
v5.1.0.RELEASE
Compare Source
v5.0.12.RELEASE
Compare Source
v5.0.11.RELEASE
Compare Source
v5.0.10.RELEASE
Compare Source
v5.0.9.RELEASE
Compare Source
v5.0.8.RELEASE
Compare Source
v5.0.7.RELEASE
Compare Source
v5.0.6.RELEASE
Compare Source
v5.0.5.RELEASE
Compare Source
v5.0.4.RELEASE
Compare Source
v5.0.3.RELEASE
Compare Source
v5.0.2.RELEASE
Compare Source
v5.0.1.RELEASE
Compare Source
v5.0.0.RELEASE
Compare Source

Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR is stale, or if you modify the PR title to begin with "rebase!".
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

duplicate of https://github.com/Jasig/uPortal/pull/1597

Renovate Ignore Notification
As this PR has been closed unmerged, Renovate will ignore this upgrade and you will not receive PRs for any future 5.x releases. However, if you upgrade to 5.x manually then Renovate will then reenable updates for minor and patch updates automatically.
If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.


text:
feature/gradient based linear regression

I'm submitting a ...
[/] feature request

Summary
Implement gradient based linear regression

Currently being implemented at https://github.com/JasonShin/kalimdorjs/tree/feature/SGDLinearRegression:

SGDClassifier
SGDRegressor

repo: JasonShin/kalimdorjs


text:
How does it work?

Very interesting work! But how does it actually do what it claims it does?
Is there a deacription aside from trying to figure out by reading the code? :)
Thank you for sharing!

Thanks for being interested in this project.
Basically speaking, we use LD_PRELOAD to trap most of systemcalls requested by the target process running in host in order to implement our functions. Please see details in this project: https://github.com/jasonyangshadow/fakechroot

Very interesting work! But how does it actually do what it claims it does?
Is there a deacription aside from trying to figure out by reading the code? :)
Thank you for sharing!

Thanks for being interested in this project.
Basically speaking, we use LD_PRELOAD to trap most of systemcalls requested by the target process running in host in order to implement our functions. Please see details in this project: https://github.com/jasonyangshadow/fakechroot

Any differences you can sum up with respect to gVisor?

Hi. Ping ^^

Hi. Ping ^^

sorry for the late reply. It seems that gvisor is developed for integrating docker and kubernetes, so it is not suitable for HPC where root privilege is not satisfied. We are focusing on designing and developing pure rootless container targeting at solving dependencies hell problem.

Makes sense. Thank you!

authors: JasonYangShadow innerop

repo: JasonYangShadow/lpmx


text:
Can't build ionic

I'm trying to build my ionic project, but it wont include my images, should I include react?

Isn't Ionic for AngularJS only? TouchStoneJS is for ReactJS!
On Fri, Mar 27, 2015 at 3:41 AM, amay0048 notifications@github.com wrote:

I'm trying to build my ionic project, but it wont include my images,
should I include react?
—
Reply to this email directly or view it on GitHub
https://github.com/JedWatson/touchstonejs/issues/53.

--
Cheers,
Flying Horse Dancing

Just realised who this was. Well played.

authors: amay0048 giantelk jossmac

repo: JedWatson/touchstonejs


text:
Adding signature to page footer

Adding a signature that gives attribution to @JeetShetty and @mtlynch

Coverage remained the same at 55.357% when pulling 896f75d745e5944bc6b9eb2df3afdd299445f67b on mtlynch:add-signature into 377c78bb64b1248ae6e3d2d5c0cf57d2d1679940 on JeetShetty:master.

authors: coveralls mtlynch


text:
Fix some 0.4 deprecations and changes

Fixes for some of the recent 0.4 changes.

constructor capitalization
array concatentation
rounding vs constructor
beginswith -> startswith

@caryan, thanks for contributing this! It looks like there's some overlap with #19 (sorry, I didn't see this before I started that).
I've gotten to the point of needing this, so I'm going to merge without waiting for Jeff. In some ways yours is more comprehensive, but it breaks support for 0.3, so I'm going to merge the other one. Certainly feel free to complain or make further improvements :-).

Yeah, I wasn't careful about backwards compatibility.  I'll close this for now and think about the points you raised in #19.

authors: caryan timholy


text:
namedtuple for vector or pairs should allow abstract vector

Definitely an oversight on my part

please give me an example or two that would work with this resolved

please give me an example or two that would work with this resolved

Adding this to next version.

Ah sorry I didn't respond. The motivation was, someone had  a matrix of pairs and wanted to turn it into a vector of named tuples
x = [(:a => 1) (:b => 2); (:a => 3) (:b => 4)]

and namedtuple.(eachrow(x)) failed because the "rows" in eachrow are subarrays.

That is a good example.
this works now
x = [(:a => 1) (:b => 2); (:a => 3) (:b => 4); (:a => 5) (:b => 6)]
y = [ namedtuple(x[i,:]) for i=1:size(x)[1] ]

3-element Vector{NamedTuple{(:a, :b), Tuple{Int64, Int64}}}:
 (a = 1, b = 2)
 (a = 3, b = 4)
 (a = 5, b = 6)

notes
julia> using NamedTupleTools

julia> x = [(:a => 1) (:b => 2); (:a => 3) (:b => 4); (:a => 5) (:b => 6)]
3×2 Matrix{Pair{Symbol, Int64}}:
 :a=>1  :b=>2
 :a=>3  :b=>4
 :a=>5  :b=>6

julia> namedtuple.(Vector.(eachrow(x)))
3-element Vector{NamedTuple{(:a, :b), Tuple{Int64, Int64}}}:
 (a = 1, b = 2)
 (a = 3, b = 4)
 (a = 5, b = 6)

julia> t = [(:a => 1) (:b => 2); (:a => 3) (:b => 4); (:a => 5) (:b => 6)];

julia> collect(NamedTuple(t[i,:]) for i=1:size(t)[1])
3-element Vector{NamedTuple{(:a, :b), Tuple{Int64, Int64}}}:
 (a = 1, b = 2)
 (a = 3, b = 4)
 (a = 5, b = 6)

authors: JeffreySarnoff pdeffebach


text:
Update GetCheckinDataJsonResult.cs

添加标准打卡时间

已经合并，非常感谢！

已经合并，非常感谢！

authors: JeffreySu XbCore

repo: JeffreySu/WeiXinMPSDK


text:
Usage of const

Hi,
I noticed this project nearly use only let statements when most of variables does not change, so best-practice would be to use const. Is there a reason for this. If so, the few const statements should probably be replaced for consistency.

I don't like const. You're free to submit a PR to convert any of them to let if you wish.

Sounds to me like unfair discrimination.
const have real benefits, such as saying to other developers: "this reference is immutable". And so it also highlight the real let statements. In many codes, you would have more consts than lets and so you can clearly identify a variable that can change its value. And when you see a const declaration, you know this declaration will remain true.
With the right IDE, you will get on const many reliable autocompletion as a predictable value when the same with let can give wrong information as multiple values possible.
Before changing all const to let, I hope you would consider using each statement for its purpose.
An article among others:
http://wesbos.com/let-vs-const/

const is not immutable.
In reality, it provides little benefit. Instead, it makes for ugly code, when you have a bunch of const and let references littered together. It looks ugly.

const is an immutable binding in Node (not yet implemented in all browsers, but laravel-mix run on node, so your example in a browser is not relevant) and push is a method of Array, it does not change the binding, only the data inside (I'm not speeking of immutable properties, there is Object.freeze for that). Each tool has its role. When you have const and let, its help you to distinguish both, it's a more strict approach, the ugly adjective seems a bit subjective to me.
For example, when you require() an object, you can always use const, and it makes a lot of sense to say const myLib = require('myLib') because it would be a bad idea to use this same variable name to store something else later.
In multiple experiences, using const/let over the old var brought clarity and disambiguation. It's probably something to try to understand the benefit.
The simple rule (would match the prefer-const of eslint: https://eslint.org/docs/rules/prefer-const) would be: if you want to reassign a value, you explicitly say it with let, anything else should be const. In this way, when a dev will try to change a const value, he will get an error from his IDE or from Node at runtime and so it forces him to ask himself a very good question before eventually change it to let: "Is it a good idea to reuse the same variable and change its value?"
I hope it can help to take an enlightened decision about this code-style point.

I can think of a hundred more pressing issues than this. You started by saying it’s immutable, and then later clarified that only the binding is. This is a point of confusion for just about every person who encounters const.
It honestly doesn’t even register on the list of concerns or needs I have for the Mix codebase.

That's because laravel-mix is a great and important project we love that we wish it at the top of best-practices it's nothing like a reproach. And it's not because we do not immediately understand all about a new syntax in a language that we should avoid to use it. I would not give you unneeded work, I will do the pull-request (all let or all const where it's relevant) whatever you finally prefer. But I wanted to be sure I well understand the constraints and not run into some go-quickly choice.

authors: JeffreyWay kylekatarnls

repo: JeffreyWay/laravel-mix


text:
'npm run hot' doesn't generate CSS

Laravel Mix Version: 6.0.13
Node Version: v15.11.0
NPM Version: 7.6.0
OS: Windows 10 x64 Pro

Description:
CSS is not being created or updated by mix when running npm run hot even though it logs to the console that it has done so.
npm run watch or dev work.
Steps To Reproduce:

Create any valid CSS step in the webpack.mix.js, for example: mix.css("resources/foo.css", "css/foo.css");
Validate that the CSS file is being created when running npm run watch (dev works too)
Clear the CSS, then run npm run hot

Okay, i understand this is by design, but i still don't understand how i can enable HMR and generate CSS at the same time.

What's the reason you want that behavior?

As far as i can see, there's no way to have hot reloading with CSS in Mix, which other 'webpack wrappers' like creat-react-app or Next.js can.

authors: FunctionDJ thecrypticace


text:
move sphinx down a level in directory hierarchy

to keep the top level more generic, create a tools directory and move sphinx to sphinx/tools.
Please make changes in documentation branch.

I think you mean tools/sphinx.

Yes. ..
-- Sent from my computer phone
-----Original Message-----
From: Herb Jellinek notifications@github.com
To: Jeltje/ga4gh-schemas ga4gh-schemas@noreply.github.com
Cc: Mark Diekhans markd@soe.ucsc.edu
Sent: Fri, 04 Sep 2015 1:34 PM
Subject: Re: [ga4gh-schemas] move sphinx down a level in directory hierarchy (#22)
I think you mean tools/sphinx.

Reply to this email directly or view it on GitHub:
https://github.com/Jeltje/ga4gh-schemas/issues/22#issuecomment-137801035

Good, just wanted to make sure.

authors: diekhans hjellinek


text:
[IMPROVE] get_historical_data call fails with No data found for the following tickers: ^TNX

hello! Thank you for such a great project!
I have been experimenting on Google Colab with some API calls and everything works okay, so I decided to move locally to my MacBook, however, I encounter issues with the historical data (which is required for the ratios module), financial statements WAI.
from financetoolkit import Toolkit
companies = Toolkit(tickers=['GOOG'], api_key='KEY', start_date="2018-12-31")
companies.get_historical_data()

fails with:
No data found for the following tickers: ^TNX @ financetoolkit/toolkit_controller.py", line 2187, in get_treasury_data ...

I use financetoolkit==1.6.1 and Python 3.10.11. I tried new API key, different IP addresses (within same country), clean virtualenv but no luck. This call works in the Google Colab without issues with the same API key.
Any ideas?
thank you!

Hi!
I'll look into this soon. Are you using the Free plan? Most likely the issue is that I try to collect the risk free rate but the Free plan is not allowed to get indices which is why it fails.
It should automatically change the source (to Yahoo Finance) but it seems it doesn't so I'll need to fix that!

Thank you for such a prompt answer.

Are you using the Free plan? Most likely the issue is that I try to collect the risk free rate but the Free plan is not allowed to get indices which is why it fails.

Yes. I'm experimenting with a free plan for the moment. I don't think it's the issue, because with the same free plan API key I'm able to retrieve historical information in Google Colab - but perhaps that fallbacks to Yahoo Finance API? I'm not sure with API fails.

Does it prevent you from using the Ratios functionality? What's the error message?
Yes, some of the ratio calculations (that require risk-free rate) fails, the others - don't.

This is the full stack:
No data found for the following tickers: ^TNX
Traceback (most recent call last):
  File "/testing.py", line 8, in <module>
    print(companies.ratios.collect_liquidity_ratios())
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/financetoolkit/toolkit_controller.py", line 494, in ratios
    self.get_historical_data(period="yearly")
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/financetoolkit/toolkit_controller.py", line 1652, in get_historical_data
    self.get_treasury_data(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/financetoolkit/toolkit_controller.py", line 2187, in get_treasury_data
    ) = _get_historical_data(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/financetoolkit/historical_model.py", line 181, in get_historical_data
    historical_data = pd.concat(historical_data_dict).unstack(level=0)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pandas/core/reshape/concat.py", line 380, in concat
    op = _Concatenator(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pandas/core/reshape/concat.py", line 443, in __init__
    objs, keys = self._clean_keys_and_objs(objs, keys)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pandas/core/reshape/concat.py", line 505, in _clean_keys_and_objs
    raise ValueError("No objects to concatenate")
ValueError: No objects to concatenate

Thank you for the help!

So I had some time to do debugging, as you said the FMP API call fails with:
{
  "Error Message": "Free plan is limited to US stocks only please visit our subscription page to upgrade your plan at https://site.financialmodelingprep.com/developer/docs/pricing"
}

The Yahoo Finance call was failing to due expired SSL certificates which now works when I updated them:
<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)

So one suggestion would be to catch the errors in the try-except block and bubble them up, cause now the api calls fail silently.

Thank you for providing this error message. I'll add it into the code. It is hard for me to debug these things since they never occur for me 😅.
In any case, I've worked on a "fix" in which if it fails, it will convert to a 0% risk free rate so that at least everything can be calculated. Just to ensure that if others run into issues, at least the impact isn't as big.

authors: JerBouma laurynasas

repo: JerBouma/FinanceToolkit


text:
🛑 Moodle Escuela Técnica Valentín Virasoro is down

In 95e9566, Moodle Escuela Técnica Valentín Virasoro (https://moodle.evirasoro.edu.ar) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Moodle Escuela Técnica Valentín Virasoro is back up in 7faeee5 after 1 hour, 27 minutes.


text:
Replacing Microsoft.AspNetCore.Mvc with .Mvc.Core

Swapping out Microsoft.AspNetCore.Mvc to use Microsoft.AspNetCore.Mvc.Core in order to reduce bundle size;  all AspNetCore tests continue to pass after the swap.

Closing as per #852

authors: JeremySkinner rdrenker

repo: JeremySkinner/FluentValidation


text:
Can't capture video : Camera disabled or in use by other process

Hi,
I can't get the camera working. When the phone is in portrait, I get the icon asking to rotate the phone, but when I do that, I get this error :
Can't capture video : Camera disabled or in use by other process
My code is basic :
CaptureConfiguration configuration = new CaptureConfiguration(PredefinedCaptureConfigurations.CaptureResolution.RES_1080P, PredefinedCaptureConfigurations.CaptureQuality.HIGH, 120, 200000, true, false);

String filename= Environment.getExternalStorageDirectory().getAbsolutePath() + "/myvideo.mp4";

final Intent intent = new Intent(getActivity(), VideoCaptureActivity.class);
intent.putExtra(VideoCaptureActivity.EXTRA_CAPTURE_CONFIGURATION, configuration);
intent.putExtra(VideoCaptureActivity.EXTRA_OUTPUT_FILENAME, filename);
startActivityForResult(intent, 101);

The phone is an Honor 5x, with Android 6.0. What am I doing wrong ?
The console :
W/CameraBase: An error occurred while connecting to camera: 0
E/Camera-JNI: android_hardware_Camera_native_setup Error: -1
E/Camera: Camera new cameraInitNormal:-1
W/System.err: java.lang.RuntimeException: Unknown camera error(-1)
W/System.err:     at android.hardware.Camera.<init>(Camera.java:578)
W/System.err:     at android.hardware.Camera.open(Camera.java:399)
W/System.err:     at com.jmolsmobile.landscapevideocapture.camera.NativeCamera.openNativeCamera(NativeCamera.java:48)
W/System.err:     at com.jmolsmobile.landscapevideocapture.camera.CameraWrapper.openCamera(CameraWrapper.java:53)
W/System.err:     at com.jmolsmobile.landscapevideocapture.recorder.VideoRecorder.initializeCameraAndPreview(VideoRecorder.java:64)
W/System.err:     at com.jmolsmobile.landscapevideocapture.recorder.VideoRecorder.<init>(VideoRecorder.java:59)
W/System.err:     at com.jmolsmobile.landscapevideocapture.VideoCaptureActivity.initializeRecordingUI(VideoCaptureActivity.java:89)
W/System.err:     at com.jmolsmobile.landscapevideocapture.VideoCaptureActivity.onCreate(VideoCaptureActivity.java:73)
W/System.err:     at android.app.Activity.performCreate(Activity.java:6372)
W/System.err:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110)
W/System.err:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2406)
W/System.err:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2513)
W/System.err:     at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4136)
W/System.err:     at android.app.ActivityThread.access$1000(ActivityThread.java:168)
W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1384)
W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)
W/System.err:     at android.os.Looper.loop(Looper.java:150)
W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5639)
W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)
W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:689)
E/VideoCapture_Exception: Unable to open camera - Camera disabled or in use by other process
W/System.err: com.jmolsmobile.landscapevideocapture.camera.OpenCameraException: Camera disabled or in use by other process
W/System.err:     at com.jmolsmobile.landscapevideocapture.camera.CameraWrapper.openCamera(CameraWrapper.java:56)
W/System.err:     at com.jmolsmobile.landscapevideocapture.recorder.VideoRecorder.initializeCameraAndPreview(VideoRecorder.java:64)
W/System.err:     at com.jmolsmobile.landscapevideocapture.recorder.VideoRecorder.<init>(VideoRecorder.java:59)
W/System.err:     at com.jmolsmobile.landscapevideocapture.VideoCaptureActivity.initializeRecordingUI(VideoCaptureActivity.java:89)
W/System.err:     at com.jmolsmobile.landscapevideocapture.VideoCaptureActivity.onCreate(VideoCaptureActivity.java:73)
W/System.err:     at android.app.Activity.performCreate(Activity.java:6372)
W/System.err:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110)
W/System.err:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2406)
W/System.err:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2513)
W/System.err:     at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4136)
W/System.err:     at android.app.ActivityThread.access$1000(ActivityThread.java:168)
W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1384)
W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)
W/System.err:     at android.os.Looper.loop(Looper.java:150)
W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5639)
W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)
W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:689)
W/CameraBase: An error occurred while connecting to camera: 0
E/Camera-JNI: android_hardware_Camera_native_setup Error: -1
E/Camera: Camera new cameraInitNormal:-1
W/System.err: java.lang.RuntimeException: Unknown camera error(-1)
W/System.err:     at android.hardware.Camera.<init>(Camera.java:578)
W/System.err:     at android.hardware.Camera.open(Camera.java:399)
W/System.err:     at com.jmolsmobile.landscapevideocapture.camera.NativeCamera.openNativeCamera(NativeCamera.java:48)
W/System.err:     at com.jmolsmobile.landscapevideocapture.camera.CameraWrapper.openCamera(CameraWrapper.java:53)
W/System.err:     at com.jmolsmobile.landscapevideocapture.recorder.VideoRecorder.initializeCameraAndPreview(VideoRecorder.java:64)
W/System.err:     at com.jmolsmobile.landscapevideocapture.recorder.VideoRecorder.<init>(VideoRecorder.java:59)
W/System.err:     at com.jmolsmobile.landscapevideocapture.VideoCaptureActivity.initializeRecordingUI(VideoCaptureActivity.java:89)
W/System.err:     at com.jmolsmobile.landscapevideocapture.VideoCaptureActivity.onCreate(VideoCaptureActivity.java:73)
W/System.err:     at android.app.Activity.performCreate(Activity.java:6372)
W/System.err:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110)
W/System.err:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2406)
W/System.err:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2513)
W/System.err:     at android.app.ActivityThread.access$900(ActivityThread.java:168)
W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1378)
W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)
W/System.err:     at android.os.Looper.loop(Looper.java:150)
W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5639)
W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)
W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:689)
E/VideoCapture_Exception: Unable to open camera - Camera disabled or in use by other process
W/System.err: com.jmolsmobile.landscapevideocapture.camera.OpenCameraException: Camera disabled or in use by other process
W/System.err:     at com.jmolsmobile.landscapevideocapture.camera.CameraWrapper.openCamera(CameraWrapper.java:56)
W/System.err:     at com.jmolsmobile.landscapevideocapture.recorder.VideoRecorder.initializeCameraAndPreview(VideoRecorder.java:64)
W/System.err:     at com.jmolsmobile.landscapevideocapture.recorder.VideoRecorder.<init>(VideoRecorder.java:59)
W/System.err:     at com.jmolsmobile.landscapevideocapture.VideoCaptureActivity.initializeRecordingUI(VideoCaptureActivity.java:89)
W/System.err:     at com.jmolsmobile.landscapevideocapture.VideoCaptureActivity.onCreate(VideoCaptureActivity.java:73)
W/System.err:     at android.app.Activity.performCreate(Activity.java:6372)
W/System.err:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110)
W/System.err:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2406)
W/System.err:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2513)
W/System.err:     at android.app.ActivityThread.access$900(ActivityThread.java:168)
W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1378)
W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)
W/System.err:     at android.os.Looper.loop(Looper.java:150)
W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5639)
W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)
W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:689)

@fbayle Can you check this on the device running lower than 23? Also, make sure you added camera permission in manifest and  do you handle runtime permissions?
Because this line E/VideoCapture_Exception: Unable to open camera - Camera disabled or in use by other process error log clearly indicates that OpenCameraException(OpenType.INUSE) exception is thrown.

Thank you for your quick answer.
I've put those in the manifest :
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET"/>

And here is my gradle file
apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "24.0.3"
    defaultConfig {
        applicationId "com.xxxxx.xxxxx"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

repositories {
    maven { url "https://jitpack.io" }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.github.JeroenMols:LandscapeVideoCamera:1.2.2'
    testCompile 'junit:junit:4.12'
}

Can I conclude that the problem was that you didn't request the camera permission at runtime?

No, the problem is that it does work with sdk 22 but not with sdk 23.

@fbayle Yeah, that is because runtime permissions were introduced in API 23. So on API < 23, permissions are automatically granted, but for API >=23 you need to ask the user to grant permission.
I think you should read about runtime permissions from here first.

Thanks for the stellar support @kevalpatel2106 !
Closing the issue as resolved

authors: JeroenMols fbayle kevalpatel2106

repo: JeroenMols/LandscapeVideoCamera


text:
建议将eventbus升级到3.0

建议将eventbus升级到 3.0,
eventbus 1.0在某些设备上出现ClassNotDefFoundError

@trenail 框架里使用的是 AndroidEentBus: https://github.com/hehonghui/AndroidEventBus ;
不是EventBus: https://github.com/greenrobot/EventBus。

导致 java.lang.NoClassDefFoundError 的原因很有可能是因为 64k 导致的,建议试试 MultiDex

authors: JessYanCoding trenail xiaobailong24

repo: JessYanCoding/MVPArms


text:
远程依赖Arms2.5.2 Dagger版本问题

一开始自己项目是依赖2.5.0 然后升到2.5.2，并且更改了config里面dagger的版本为2.26，查看libraries里面dagger版本为2.23.2导致运行dagger.internal.InjectedFieldSignature;找不到InjectedFieldSignature；并且通过更改demo为远程依赖也可以重现。

看了一下2.5.2的config里面版本都是旧的

远程版本额dagger版本和config.gradler 版本不一致，导致依赖冲突。我觉得不改的情况下，使用lib 依赖的情况也可以。 可以自己看源码，改源码。

把dagger版本号改成2.23.2就可以了

authors: Basakerone heluicare langaoyang


text:
works with typescript?

theres  @types install for this ?

theres @types install for this ?

Hello, this hook is currently only created in JavaScript. I am working on rewriting everything in TypeScript. However, if you want to use it in TypeScript, you can create a file in the root of your project named "index.d.ts" and include the following code:
declare module 'react-extract-colors' {     export function useExtractColor(imageUrl: string, optionsCustom?: Record<string, any>): {       dominantColor: string | null;       darkerColor: string | null;       lighterColor: string | null;       loading: boolean;       error: Error | null;       colors: string[];     };   }

authors: JesusAguilarAliaga Tvkaes

repo: JesusAguilarAliaga/react-extract-colors


text:
rememberSnapFlingBehavior does not snap on desktop when using a scroll wheel

Describe the bug
rememberSnapFlingBehavior does not snap items to the center of the LazyColumn when scrolling via scroll wheel on desktop.
Affected platforms

Desktop

Versions

Kotlin version*: 1.9.0
Compose Multiplatform version*: 1.4.3
OS version(s)* (required for Desktop and iOS issues): Linux 6.4.6-100.fc37.x86_64
OS architecture (x86 or arm64): x86
JDK (for desktop issues): corretto-18.0.2

To Reproduce
Wrap this in a composable function
    val itemHeight = 48.dp
    val itemHeightModifier = modifier.height(itemHeight)
    LazyColumn(
        state = lazyListState,
        flingBehavior = rememberSnapFlingBehavior(lazyListState = lazyListState),
        modifier=itemHeightModifier.fillMaxWidth()
    ){
        items(
            5,
            key = { it }
        ){
            Text(it.toString(), modifier=itemHeightModifier)
        }
    }

Expected behavior
When scrolling through the LazyColumn and then stopping the scrolling, I expect the flingBehavior to snap the closest item to the center of the LazyColumn.
I can test this on Windows 10 later.

reproduced on Ubuntu (I guess the behaviour is OS independent).
it's likely related: https://github.com/JetBrains/compose-multiplatform/issues/3447
Here is a screen recording. Desktop is on the left (scrolling using a mouse wheel), and android is on the right (using touch gestures: dragging).
simplescreenrecorder-2023-08-04_10.29.15.webm

In the other referenced similar issue #3447 I posted a workaround that works with a pager, it can probably be adapted for your use case as well.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

authors: aljohnston112 eymar garretyoder okushnikov

repo: JetBrains/compose-multiplatform


text:
Cannot change dependencies of configuration ':idea' after it has been included in dependency resolution.

Getting the error below using the plugin and doing a build.
Cannot change dependencies of configuration ':idea' after it has been included in dependency resolution.
I tried a few things to exclude jar but no luck.  Gradle 4.4.1 being used.
Attached build file minus some internal libraries we use.
Occurs when following line 216 is present in the jar task:
configurations.testRuntime.files.collect { it.name },
build_gradle_share.txt

configurations.testRuntime.files.collect { it.name },

I don't think I can help you here. You resolve all dependencies too soon, on gradle configuration phase, even before all tasks are configured. I believe you should do it when jar task is running, not when it's configuring.

authors: DSEyers zolotov

repo: JetBrains/gradle-intellij-plugin


text:
Bump gradle to 8.8

Bumping the Gradle version to 8.8 and all the dependencies that follow. Namely ...

maven plugin is now maven-publish
com.gradle.plugin-publish to 1.2.1
com.palantir.git-version to 3.1.0
pluginBundle to modern gradlePlugin
Switch JCenter to Maven Central
JUnit 4 to JUnit 5

JUnit TemporaryFolder rule -> spock.lang.TempDir

org.spockframework:spock-core to 2.4-M4-groovy-3.0
Source compatibility from 1.6 to 21 using the modern syntax

LGTM

authors: ARostovsky lancelote

repo: JetBrains/gradle-python-envs