Chinese search cannot find words in the middle of a sentence.

For Bug Reports

BookStack Version: v0.20.0

When the word I'm looking for is the first word, or there's a space in front of it, it's ok.

But if the word is in the middle of a sentence, it cannot be found.

Whether this is a full-text retrieval of related issues?
Thanks!

The same problem in version: v0.25.1, I have just tried BookStack...

The same problem in version: v0.24.3, I use a docker

still the same problem in v26.4. hope it could get solved. thanks

you can use "成功" for search,  maybe the word segmentation has the bug, hope fix it

Confirmed this issue still in v0.27.5
One of my team member is hesitating because of this. Would like to see it fixed.

Hope fix this issue soon.

Sorry about this issue. It essentially stems from my unfamiliarity with non-English text.
At the moment BookStack splits up page content, on certain characters such as spaces and some punctuation, into terms which are put in the database for indexing then a "Starts With" match of those are checked against on a normal search.
As @sosize has mentioned, you can wrap a search in quotes, at which point BookStack will perform a "contains" against the content directly instead of the above "Starts With". This is not the default simply due to performance. ("Starts With" searches can use indexes much more effectively than "Contains").
I'm not really sure how we could utilise the "Starts With" system for such characters. Perhaps the search should default to a "Contains" search if such characters are found in a term?

@ssddanbrown Can this be set as config control ？Select “Starts With” or “Contains” for search type.
More is hope full-text search.
Or how to quickly modify the code?

can i replace all the "startWith" with "contains",or how to modify the source code ,sorry ,i'm a noob

Hi,all the guys,I fixed this problem in v0.28.3.Just add a '%' in SearchService.php.
In detail.
in \app\Entities\SearchService.php,about line 196.
modify
$query->orWhere('term', 'like', $inputTerm . '%');
to
$query->orWhere('term', 'like', '%'.$inputTerm . '%');
Just try.

@ssddanbrown hi, can above fix be merge to the source?
after modify SearchService.php now I can search both chinese and english in text body.

(i'm korean and same problems occur)
I know this issue closed, but i'll post some info in the hopes it will help others in the future.
My bookstack version: v22.07.03
in\app\Entities\Tools\SearchRunner.php    about 222 line and 281 line
※ can find middle term
$query->orWhere('term', 'like', $inputTerm . '%');
to
$query->orWhere('term', 'like', '%'.$inputTerm . '%');
※ can sort correctly
$termQuery->orWhere('term', 'like', $term . '%');
to
$termQuery->orWhere('term', 'like', '%'.$term . '%');

nice job. thanks

(i'm korean and same problems occur) I know this issue closed, but i'll post some info in the hopes it will help others in the future. My bookstack version: v22.07.03
in\app\Entities\Tools\SearchRunner.php about 222 line and 281 line
※ can find middle term $query->orWhere('term', 'like', $inputTerm . '%'); to $query->orWhere('term', 'like', '%'.$inputTerm . '%');
※ can sort correctly $termQuery->orWhere('term', 'like', $term . '%'); to $termQuery->orWhere('term', 'like', '%'.$term . '%');

I've made a PR for to make it configurable in .env
ENHANCE_SEARCH_BAR_COMPATIBILITY=false

Hope I'm making it in the right way
#4393

For me to properly look at addressing this, it would be useful if people could help me a little in understanding how the languages in question work. Apologies for my naivety on the subject.

In the Chinese language, does a single Chinese character generally map to what is a single word in latin based languages?
Is a single Chinese character generally the common unit for what would be searched?
How would multiple terms be joined in a single query? For example, If I made the search query for orange cat in English, would the equivalent Chinese search query contain a space?
How does the above apply for other languages in Asia such as Korean and Japanese?

Hi @ssddanbrown, thanks for helping to solve non-English languages.
I hope the following will help you to understand what I try to solve
Assume senario like this
Pages
My cat likes to eat orange.
But I want him to drink juice

In chinese, it would be
我的貓喜歡吃橘子
但是我要他喝果汁

Database table (search_terms)
And in normal seaerch mode, the query is designed to be starts with, because each value in table column term only stores one vocabulary.
So it's ok in English.
My          | page
cat         | page
likes       | page
to          | page
eat         | page
orange      | page
But         | page
I           | page
want        | page
him         | page
to          | page
drink       | page
juice       | page

In chinese, it would be stored in search_terms like this.
And as you can see, column term stores multiple words in one value
我的貓喜歡吃橘子 | page
但是我要他喝果汁 | page

English vs Chinese
My       <---> 我的
cat      <---> 貓
likes to <---> 喜歡
eat      <---> 吃
orange   <---> 橘子
But      <---> 但是
I        <---> 我
want     <---> 要
him      <---> 他
to drink <---> 喝
juice    <---> 果汁

What we actually prefer
But I'm not sure this is a good design for indexing level.
我  | page
的  | page
貓  | page
喜  | page
歡  | page
吃  | page
橘  | page
子  | page
但  | page
是  | page
我  | page
要  | page
他  | page
喝  | page
果  | page
汁  | page

Re-design
I'm not good at indexing area.
I have a question that why not just search from pages table using like '%term%'.
And let database deal with index thing?

Normal search
So if we search orange cat, in Chinese, it would be 橘子 貓.
And since Table "search_terms" contains nothing like 橘子 貓, I will get nothing.
And if I search for the following, it will failed:

English (failed) - my users like to copy paste to search things...

range
at

Chinese (failed)

橘
貓

What I hope it would be
I hope I can search things like above (failed part)
Exact search
I can use exact search to achieve purpose above.

English (success)

"range"
"at"

Chinese (success)

"橘"
"貓"

But general users will not remeber to add quotes(") when search things

Thanks for the info @charlietag.

I have a question that why not just search from pages table using like '%term%'. And let database deal with index thing?

The database won't use indexes for queries like that. The search index is specifically built so prefix-based matching can be performed while making use of database indexes. Additionally contains matching in the context of how this are currently built would significantly increase the accidental matches of partial included terms, and therefore impact the scoring.
Databases do often have fulltext indexes for "contains" search (Which BookStack used to use) but those have their own complications and there's a reason we moved away from things.
My intention has been to alter how we split the terms for indexing and search, for different character ranges, much like you've suggested, but I just want to better understand how searches and words translate in different languages, hence my last comment.

I would still like to invite others, particularly those using other Asian languages, to answer my previous comment.

For me to properly look at addressing this, it would be useful if people could help me a little in understanding how the languages in question work. Apologies for my naivety on the subject.

I'm not a language expert.

In the Chinese language, does a single Chinese character generally map to what is a single word in latin based languages?

In modern Chinese, most words are written with two or more characters.
https://en.wikipedia.org/wiki/Chinese_characters

But there are also some cases where a single character maps to a single Latin word.
i <--> 我
my <--> 我的
myself <--> 我自己 or 我本人 or 本人 or 独自

Is a single Chinese character generally the common unit for what would be searched?

A search for a Chinese character usually does not return useful results.
In my site stats very few people searched for a single character.
Here are some examples of searches on my site:
美好的每一天  <--> wonderful everyday(a video game title)
官网  <--> official website
宣传片  <--> promo video
巨构  <--> megastructure
指令  <--> command
文化  <--> culture
新用户  <--> new user
服务器  <--> server
添加  <--> add
猫  <--> cat
个人利益  <--> personal benefit
公共事件  <--> public event
雨  <--> rain

How would multiple terms be joined in a single query? For example, If I made the search query for orange cat in English, would the equivalent Chinese search query contain a space?

The words are not separated by spaces in Chinese and.
Unlike most languages, Chinese does not use spaces to separate characters into words.
When searching in Chinese, you would not use spaces to separate terms in a query. Instead, you would enter the characters for each term next to each other without spaces.
In the example of orange cat, it can be an 橘猫 or 橘色猫 or 橘色的猫(orange color's cat).
orange  <--> 橘子(mandarin orange) or 橙子 or 橙色(orange color)
cat  <-->  猫

methoxymethane   <-->  二甲醚 or 甲氧基甲烷

two <--> 二
methyl ether <--> 甲醚

methoxy <--> 甲氧基
methane <--> 甲烷

I also couldn't search Chinese words successfully. (English keywords are OK.) I have no experience about it, just guess it could be optimised through something like Asian language parser.
https://docs-develop.pleroma.social/backend/configuration/howto_search_cjk/
https://pgroonga.github.io/

I think I solved the problem, Modify the code on line 213 of  /var/www/BookStack/app/Search/SearchRunner.php：
Before modification：
   210	        $subQuery->where(function (Builder $query) use ($terms) {
   211	            foreach ($terms as $inputTerm) {
   212	                $inputTerm = str_replace('\\', '\\\\', $inputTerm);
   213	                $query->orWhere('term', 'like', $inputTerm . '%');
   214	            }
   215	        });

After modification：
   210	        $subQuery->where(function (Builder $query) use ($terms) {
   211	            foreach ($terms as $inputTerm) {
   212	                $inputTerm = str_replace('\\', '\\\\', $inputTerm);
   213	                $query->orWhere('term', 'like', '%' . $inputTerm . '%');
   214	            }
   215	        });

Version：v24.02.2 I think I solved the problem, Modify the code on line 213 of /var/www/BookStack/app/Search/SearchRunner.php： Before modification：
   210	        $subQuery->where(function (Builder $query) use ($terms) {
   211	            foreach ($terms as $inputTerm) {
   212	                $inputTerm = str_replace('\\', '\\\\', $inputTerm);
   213	                $query->orWhere('term', 'like', $inputTerm . '%');
   214	            }
   215	        });

only one result...
After modification：
   210	        $subQuery->where(function (Builder $query) use ($terms) {
   211	            foreach ($terms as $inputTerm) {
   212	                $inputTerm = str_replace('\\', '\\\\', $inputTerm);
   213	                $query->orWhere('term', 'like', '%' . $inputTerm . '%');
   214	            }
   215	        });

have seven result!

Actually, that's what I've proposed to author.
But he has his own consideration.
For now we can only workaround.
Let's hope it will be fixed in the future version.
https://github.com/BookStackApp/BookStack/pull/4393


I am facing this issue after installing it on Windows 7 32 Bit , AMD processor, python 3.5.2, TensorFlow 1.0.0

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
C:\Users\SEM>python
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import tensorflow as tf
Traceback (most recent call last):
File "C:\Users\SEM\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 18, in swig_import_help
er
return importlib.import_module(mname)
File "C:\Users\SEM\AppData\Local\Programs\Python\Python35\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 666, in _load_unlocked
File "", line 577, in module_from_spec
File "", line 906, in create_module
File "", line 222, in _call_with_frames_removed
ImportError: DLL load failed: %1 is not a valid Win32 application.

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\SEM\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python_init_.py", line 66, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\SEM\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 21, in
_pywrap_tensorflow = swig_import_helper()
File "C:\Users\SEM\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 20, in swig_import_help
er
return importlib.import_module('pywrap_tensorflow')
File "C:\Users\SEM\AppData\Local\Programs\Python\Python35\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_pywrap_tensorflow'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\SEM\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow_init_.py", line 24, in
from tensorflow.python import *
File "C:\Users\SEM\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python_init_.py", line 72, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\SEM\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 18, in swig_import_help
er
return importlib.import_module(mname)
File "C:\Users\SEM\AppData\Local\Programs\Python\Python35\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 666, in _load_unlocked
File "", line 577, in module_from_spec
File "", line 906, in create_module
File "", line 222, in _call_with_frames_removed
ImportError: DLL load failed: %1 is not a valid Win32 application.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\SEM\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python_init_.py", line 66, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\SEM\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 21, in
_pywrap_tensorflow = swig_import_helper()
File "C:\Users\SEM\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 20, in swig_import_help
er
return importlib.import_module('pywrap_tensorflow')
File "C:\Users\SEM\AppData\Local\Programs\Python\Python35\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_pywrap_tensorflow'
Failed to load the native TensorFlow runtime.
See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#import_error
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

@Shiv751 , Windows 32-bit is not a platform supported by TensorFlow.
cc @gunan

Correct. TF out of the box strictly needs a 64 bit operating system & hardware on a desktop or laptop.
We are working on adding this information to our docs.


New security Vulnerability in log4j

There is known security vulnerability reported by log4j, is there any plan to take the latest version of log4j and release new VRT version?

@sse2ebdd thanks for your request!
would you like to contribute with this change?

Do I understand correctly that this project is mainly written in Typescript, and so the log4j vulnerability might only affect its Java sdk?
If the above is correct shouldn't this ticket be closed and a new one opened on the sdk-java repository?

@silviot it only affects java-sdk
it's fine you could leave it here


Incorrect fo:index-range generation

Converted from SourceForge issue 3464901, submitted by tmakita
I found a fatal stylesheet bug in generating PDF output.
My command-line is as follows:
set d=samples\index-data\
ant -l %d%en-out\sample_en.log -Dargs.input=%d%sample_en.ditamap -Dtranstype=pdf2 -Dclean.temp=no -Doutput.dir=%d%en-out -Ddita.temp.dir=%d%en-temp -Dpdf.formatter=xep

Please see attached .log file and .fo file. You can find following problems.

<fo:index-range-begin id="NOTE_TITLE_RANGE_d55e3178a1280" index-key="NOTE_TITLE_RANGE"/> is generated twice.
The fo:index-range-begin that corresponds to <fo:index-range-end ref-id="NOTE_SHORTDESC_RANGE_d55e3190a1280"/> is not generated.

I uploaded the test data to the following URL http://w01.tp1.jp/~a190498571/data/sample_en_testdata_20111224.zip

I'm trying to reproduce old issues with the latest code - for this one, the sample data link does not work ("You don't have permission to access /~a190498571/data/sample_en_testdata_20111224.zip on this server.")
I'm not quite sure how to validate whether this issue still exists.

Sample files no longer accessible for tests.


[ESP-BLE-MESH] Battery Server displays blank in nRF MESH (IDFGH-3962)

Is battery model in ESP-BLE-MESH functional?
I created a server and client for battery model and the display from nRF MESH is blank for the battery server.
//=============================================
ESP_BLE_MESH_MODEL_PUB_DEFINE(battery_srv_pub,2 + 3, ROLE_NODE);  /battery server model/
static esp_ble_mesh_gen_battery_srv_t gen_battery_srv = {
.rsp_ctrl.get_auto_rsp = ESP_BLE_MESH_SERVER_AUTO_RSP,
.rsp_ctrl.set_auto_rsp = ESP_BLE_MESH_SERVER_AUTO_RSP,
};
ESP_BLE_MESH_MODEL_PUB_DEFINE(battery_cli_pub, 2 + 1, ROLE_NODE); /battery client model/
//=============================================
static esp_ble_mesh_model_t root_models[] = {
ESP_BLE_MESH_MODEL_CFG_SRV(&config_server),
ESP_BLE_MESH_MODEL_GEN_ONOFF_SRV(&onoff_pub_0, &onoff_server_0),
ESP_BLE_MESH_MODEL_GEN_ONOFF_CLI(&onoff_cli_pub_0, &client),
ESP_BLE_MESH_MODEL_GEN_BATTERY_SRV(&battery_srv_pub,&gen_battery_srv),
ESP_BLE_MESH_MODEL_GEN_BATTERY_CLI(&battery_cli_pub, &client),
};

Hi @jpaulruiz
Please define two different esp_ble_mesh_client_t in the example, one for onoff client model, and the other for battery client model, like:
static esp_ble_mesh_client_t onoff_client;
static esp_ble_mesh_client_t battery_client;

I have tried with the nRF Mesh App (Android, version 2.4.1), it could display both battery client & battery server models.
Thanks.

Hi @Campou
I can display both the battery server and client on nRF. However, when I clicked the battery server it displays nothing unlike the generic Onoff model that has OnOff toggle on nRF.
I have assumed that the battery server displays data like battery indicator.
Thanks.

Hi @jpaulruiz
Thanks for the update, I think it's just the behavior of the App. So about this issue, can we close it for now? And for any other issues, please feel free to create other issues for them.
Thanks.


Make Object.keys work for fallbacks

Hi!
Thank you for creating this awesome library. I'm really impressed by how solid it is!
This PR makes Object.keys, { ...res } etc. work for the fallback - in case this is something you'd like included in the main branch :)
Also updates husky to fix vulns, and updates typescript, prettier, @typescript-eslint-stuff to make the project run.

Thanks for the PR & sorry for the long response. I made a few changes to allow getOwnPropertyDescriptor to search for the first closest property descriptor(without hard-coding default descriptor). Released as 2.0.0, since it's breaking existing behavior of Object.keys and etc.

Awesome stuff! 🙌🏻


⚠ Bofrost.at has degraded performance

In 6776bc3, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 921 ms

Resolved: Bofrost.at performance has improved in e81aed2.


1.1.2 凑零钱问题 | Computer Cookbook School Recruitment

https://school-recruitment.grayson.top/public/docs/algorithm/1算法框架/1.1-动态规划/1.1.2-凑零钱问题/

测试


How many address create under account ?

Hi,
How many address create under single account ?
e.g. I have Bitcoin account then how many address create under Bitcoin account ? (using coinbase API)
Thanks in advance

Hey @gunjanbacancy, we impose rate limits on how many addresses you can create during a given interval of time, but there is no limit on the total number of addresses. However, obvious abuse of our systems is in violation of our Terms of Service, so please be sensible.
Hope this helps!


crypto/x86*cpuid.pl: move extended feature detection.

Exteneded feature flags were not pulled on AMD processors, as result
a number of extensions were effectively masked on Ryzen. Original fix
for x86_64cpuid.pl addressed this problem, but messed up processor
vendor detection. This fix moves extended feature detection past
basic feature detection where it belongs. 32-bit counterpart is
harmonized too.
See also #2848...

Red cross from travis is unrelated.


Support "ignore auto layout" property

Nodes inside an autolayout frame are laid out according to the autolayout properties. Figma supports a feature to set a node within the autolayout frame to "ignore auto layout" and instead be absolutely positioned. Taffy also supports this, so we should be able to support this.


[torch.compile] register allreduce operations as custom ops

rework of https://github.com/vllm-project/vllm/pull/7755
instead of embedding the tp name in the op name, embed the group name into op's argument. this can naturally extend to future ops like allreduce in context parallel.

@SageMoore can you help review this? thanks!
most of the code come from your pr, and i just reworked the python side registration code.

merge as failing tests are not relevant


CF Proxies for what?

Add your favorite proxies
Each in new line . It will provide them as button while you are creating a user or adjusting a new proxy fo a user


Pods per node limits

In OCP, there seems to be enforced amount of containers per node based on CPU

[ ]  investigate if it's OCP specific or relates to Origin as well
[ ]  figure out the algorithm (seems to be 10 per core)
[ ] provide way to configure allowed containers per node

Current solution is to SSH into the box and edit the /etc/origin/node/node-config.yaml
kubeletArguments:
  pods-per-core:
  - “100”

and restart the node
sudo systemctl restart atomic-openshift-node

https://github.com/openshift/openshift-ansible/blob/master/inventory/byo/hosts.ose.example#L695


docs(change): fix small typo

Prerequisites

[x] My Pull Request is filled against the next branch
[x] All commits in my Pull Request conform to Elegant Git commit Guidelines

Recommended Steps

[ ] My patch adds a new feature, therefore I have also added a help article about it
[ ] My patch changes Elegant behavior, therefore I have updated the help article to reflect this change
[ ] My commits are signed

Description

@silverhook I've changed it against 'next', can you please rebase to only contain the fix?
Thank you!

@silverhook I've changed it against 'next', can you please rebase to only contain the fix? Thank you!

I will try. I’m so-so with Git :)

@silverhook I've changed it against 'next', can you please rebase to only contain the fix? Thank you!

I will try. I’m so-so with Git :)

Let me know if you want me to handle it :-)

Closing in favor of https://github.com/Pelican-Elegant/elegant/pull/784


Incompatibility with SQ 6.4 because of code colorizer API

The code colorizer API (deprecated since 4.5.2) will be removed in SonarQube 6.4. More details here:
https://jira.sonarsource.com/browse/SONAR-7860
Puppet plugin is currently still using it, which would make it incompatible with SonarQube 6.4. It should use directly the highlighting mechanism available in the SensorContext.

@dbmeneses thanks for the update, the plugin was still on 4.5.2 so the move the 5.6.6 is bringing in lots nice new features but also lots of refactoring!

@dbmeneses There is a new release-candidate which should resolve this

Any updates on new version? It's been now almost a year since RC.
There is already SonarQube LTS 6.7.1 and I just confirm it fails with this plugin (version 1.4)


JSON parses uses recursion (breaks rule 17.2)

Creating bug to not lose track, came up during #47989.
We should remove recursion inside the JSON parser library, as this breaks rule  breaks rule 17.2 and is not MISRA C compliant (#11425).
@mrfuchs pointed out:

The library already makes use of recursion (cf. obj_parse(), arr_parse() and decode_value()), so I followed that approach for the skip_field() function.

Will this be revisited?

@erickcinco yes it will be revisited


Shim not adding element name class to child elements

I'm not sure where to point this, so here's the description:
When using let elem = document.createElement( * )  and this.querySelector( * ).appendChild( elem ) the classList is not appended the name of the element which is necessary for any <style> attributes that are defined in the <dom-module> to the children elements.
Maybe this is intentional?

Is http://jsbin.com/lovabijona/edit?html,output what you mean?
The shimmer is applying the scoping for me when using document.createElement.

hrm... I had to manually add it to the classList... let me see if I can give you a better set of steps to repeat

Ahhh, in fact the link you posted is not what I meant... I meant: http://jsbin.com/relitibeza/1/edit?html,output

Hi guys, is there anyone

This is probably related to the other limitations of the styling system: https://www.polymer-project.org/1.0/docs/devguide/styling.html#custom-properties-shim---limitations-and-api-details
@sorvell, is there a way to add an element to the styling system dynamically?

@relicmelex That's because you're not using the Polymer DOM API. Instead of this.appendChild, use:
      Polymer.dom(this.root).appendChild( div );

And the styles are scoped properly.
In shady DOM, this.children is basically the composed tree (local DOM and light DOM nodes together) so the browser can render it correctly. Shady DOM does a bunch of bookkeeping internally to make sure nodes get distributed and scoped correctly.
Using the Polymer DOM API maintains the integrity of the shady DOM, and is also compatible with native shadow DOM.
For more information, see:
https://www.polymer-project.org/1.0/docs/devguide/local-dom.html#dom-api

@arthurevans not even sure where I'd have looked to find that in the docs. Thanks, I'll dive into this.

@arthurevans Thanks :+1:


Nested locking

Right now nested locking could result in a deadlock because the underlying hash codes of both keys could collide.
e.g.:
using (await KeyedSemaphore.LockAsync("ABC", cancellationToken))
{
    // ...
    using (await KeyedSemaphore.LockAsync("XYZ", cancellationToken)) { // <-- here we may deadlock
        // ....
    }
    // ....
}

So in case the hash codes of "ABC" and "XYZ" match to the same indexer for the semaphore locks, the code will deadlock while trying to retrieve the 2nd.

Unfortunately this is just a mirror of how SemaphoreSlim works. With traditional locking, this works because the thread id is stored in the header of the object being locked, and .NET can detect the current thread already holds that lock and let it pass.
SemaphoreSlim does not provide such a mechanism, and instead will deadlock (if the CurrentCount is 0 of course)
I've experimented with using AsyncLocal to avoid a deadlock within a single call stack, but even then you could have deadlocks between two separate threads. On top of that, AsyncLocal has a negative performance impact.
If you need to have nested locking, the only solution is to use separate instances of KeyedSemaphoreCollection so they cannot share the same underlying SemaphoreSlim, or to not use keyed semaphores at all, and solve your problem in a different way.

Thanks. I agree implementing support for nested locks would make for a less performant and more complex solution.
It might be opportune to add a disclaimer in the readme that nested locking isn't supported and can lead to deadlocks?

I've added a section about nested locks to the README. It is a considerable footgun indeed.


feat: optionally target any buffer

I have to read up on whether or not one has to modify any of autoload or the plugins dir also now since run accepts four params.


Enhancement: Cookie files

The script gets everything except the membership list.  That's the most important part.  Any chance it could be modified to do that as well?
Also, my Y and T cookies are rather large for the command line.  Any chance they could be put inside files like "ycookie.txt" and "tcookie.txt".  Just raw cookie dough in the file terminated by a newline, linefeed, or EOF.

Accessing the membership list usually requires admin permissions for the group, when #29 is implemented the tool should be able to tell whether this is possible with the available permissions.

Agreed that a cookie file option would be useful.

@IgnoredAmbience scraping the membership list was added in https://github.com/IgnoredAmbience/yahoo-group-archiver/commit/16f63386890cfc1a37554efb575325c066eb01ec.
 Not all groups allow members access to the membership list.

What is the expected format of the cookie file?

I'm using whatever format that LWPCookieJar takes, however using --cookie-file with all the relevant cookie parameters on the command line once will populate the file for you to use alone subsequently.

That wasn't clear before.  However, it works very well now that I know how to use it.  Maybe a readme enhancement is in order.


does not work for files in /proc

Hi,
Thanks for a nice tool.
DEBUG: Worker finished.
DEBUG: Worker finished.
DEBUG: Worker finished.

This seems to be happening because these files are reported by the OS as having 0 length, so ag skips them. I don't have any suggestion other than to remove the check; unfortunately, if I try that, mmap fails afterward, so a fix for this is apparently less simple.
Thanks,
Corey

It the same on block devices:
# ag -DFau --search-binary test /dev/sdc2
DEBUG: global core.excludesfile: /root/.config/git/ignore
DEBUG: Skipping ignore file /root/.config/git/ignore: not readable
DEBUG: Query is test
DEBUG: PCRE Version: 8.39 2016-06-14
DEBUG: Using 7 workers
DEBUG: Thread 0 set to CPU 0
DEBUG: Thread 1 set to CPU 1
DEBUG: Worker 0 started
DEBUG: Thread 2 set to CPU 2
DEBUG: Worker 2 started
DEBUG: Thread 3 set to CPU 3
DEBUG: Thread 4 set to CPU 4
DEBUG: Worker 4 started
DEBUG: Thread 5 set to CPU 5
DEBUG: Worker 5 started
DEBUG: Thread 6 set to CPU 6
DEBUG: searching path /dev/sdc2 for test
DEBUG: Skipping ignore file /dev/sdc2/.agignore: not readable
DEBUG: Skipping ignore file /dev/sdc2/.gitignore: not readable
DEBUG: Skipping ignore file /dev/sdc2/.git/info/exclude: not readable
DEBUG: Skipping ignore file /dev/sdc2/.hgignore: not readable
DEBUG: Skipping svn ignore file /dev/sdc2/.svn/dir-prop-base
DEBUG: Skipping /dev/sdc2: file is empty.
DEBUG: Worker 3 started
DEBUG: Worker 3 finished.
DEBUG: Worker 1 started
DEBUG: Worker 1 finished.
DEBUG: Worker 0 finished.
DEBUG: Worker 2 finished.
DEBUG: Worker 4 finished.
DEBUG: Worker 5 finished.
DEBUG: Worker 6 started
DEBUG: Worker 6 finished.

fgrep -a test /dev/sdc2 return many results

Ran into this as well.


[Request for External] Page "Sales Quote Subform" - global variable "ItemChargeStyleExpression"

In Page "Sales Quote Subform" please make the variable "ItemChargeStyleExpression" accessible. (protected)
It is used in the "StyleExpr" Properties.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


Switching between Standard and Premium SKUs

The FAQ should state whether it is possible to switch between Standard and Premium levels without recreating the Front Door resource. This seems to me to be an obvious question anyone might have when creating a Front Door resource, because many other resource types in Azure can be adjusted vertically.

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

ID: 75718f14-c6e1-8358-dbd2-a670b85b6c49
Version Independent ID: aafa8565-3fa4-3c2c-7707-7cf50136ba51
Content: Azure Front Door: Frequently asked questions
Content Source: articles/frontdoor/standard-premium/faq.md
Service: frontdoor
GitHub Login: @duongau
Microsoft Alias: duau

Hi @vhhughes, at this time Azure Front Door doesn't have the ability to adjust between the two tiers without having to recreate the Azure Front Door profile. We'll get this information included in the FAQ soon. If you have any further questions, please feel free to reach back out to us. Thank you. #please-close


Inmate number not showing up in letter

Describe the bug
We need to include inmate ID so that the letters can be delivered, as part of Hawaii's requirements.
It should look like this:

April 03, 2024
Zander Adams
State ID AXXXXXXX
Halawa Correctional Facility
99-902 Moanalua Road
Aiea, HI 96701

Hawaii says that it is not showing up in prod so want to investigate why this is happening.
According to our letter templates, this should be included so not sure why this is happening link
Steps to reproduce
List any steps to reproduce behavior

Generate a letter in prod
Look at the letter
Inmate type is missing (eventhough it's supposed to be there)

Expected behavior
The inmate type shows up in the letter
Checklist

[x] Indicate bug severity on the right

Additional context
Add any other context or screenshots about the feature request here.

To clarify if this is still a bug w/ Christin


Create type signature for generated lenses

Currently, the implementations for deriveLensSig remain stubbed, and provide no type signature. These should be filled out to create an appropriate type signature. Ideally, the type signature should be in terms of the corresponding Lens.Family or Lens.Family2 type.

You should make the type signatures optional.  The reason why is that if you provide type signatures for auto-generated lenses then there is no way for users to add haddocks for those generated lenses.  They won't have a type signature to attach the documentation to, since if they write their own type signature it will conflict with the one you generated.

I just ran into the lack of generated type signatures since I always have warnings turned on.
BTW, what would be the best way to make type signatures optional (once implemented)? Something like makeLensesWithoutSignatures?

Usually I work around this by adding {-# OPTIONS_GHC -fno-warn-missing-signatures #-} to the top of my types modules if I don't feel like adding documentation to the auto-generated lenses.

I think I'll go for partial compatibility with the lens library and make a config data type to describe options such as this.
I'm actually tempted to work with lens contributors to see if we can gut out some of the basic lens TH and share it between lens and lens-family-th. Then each would add its own type signature layer on top.
I don't personally use this library very much, so as you can see, I've let this issue sit for years. I'll try to promptly respond to PRs, if anyone is interested in writing this feature.

For lenses that don't change the type, I think this works:
deriveLensSig :: Name -> LensTypeInfo -> ConstructorFieldInfo -> Q [Dec] deriveLensSig name (tyName, tyVars) (fldName, _, fldType) = do     let src = foldl AppT (ConT tyName) (map var tyVars)           where var (PlainTV n) = VarT n                 var (KindedTV n _) = VarT n                         lensT s d = AppT (AppT (ConT ''Lens') s) d         sig = SigD name (lensT src fldType)     return [sig]

deriveLensSig :: Name -> LensTypeInfo -> ConstructorFieldInfo -> Q [Dec]
deriveLensSig name (tyName, tyVars) (fldName, _, fldType) = do
    let src = foldl AppT (ConT tyName) (map var tyVars)
          where var (PlainTV n) = VarT n
                var (KindedTV n _) = VarT n
        lensT s d = AppT (AppT (ConT ''Lens') s) d
        sig = SigD name (lensT src fldType)
    return [sig]


Okta sso function v2

2.1.1

Moved version 2.1.0 to sub folder AzureFunctionOktaSSO_V2 under Azure-Sentinel/DataConnectors/Okta Single Sign-On/
Created V2 versions of Azure Deploy and Connector Json files to enable both versions to co-exist
Changed zip file reference to use 'https://aka.ms/sentineloktaazuredeployv2' in Azure Deploy json file
Changed run.ps1 reference to use 'https://aka.ms/sentineloktaazurefunctioncodev2' in Connector json file

2.1.0

Modified Okta Event log tracking to use next URI link from header
Fixed Total record counter to record correctly the total number of records ingested

2.0.2

Added  ACN_CD_OktaIssue925 resolution to add domain to output records

2.0.1

Added CHANGELOG.md to track future code changes
Complete rewrite of Azure Function code to address the following

Code needs to loop requests to Okta as each response from Okta is limited to max of 1000 records
relying on Timetrigger time minus (-) 5 minutes is unreliable and may result in duplicates and missing records
Okta communicates via HTTP Headers details about log event pagination orginal version did not utilise this information

Added using a table on Azure Storage account of function to maintain state of latest event time provided in OKTA Response
Added logic to use OKTA time detials in records to track last record returned from OKTA
Added Loop to continue getting paged results from OKTA until either all records retrieved or getting close (260 seconds) to Azure Function default timeout (300 seconds)
Added dependency on Powershell modules 'AZTable' and 'Az.OperationalInsights'
Fixed Timestamp to corret field from OKTA "published" field for Azure Log Analytics Time Generated header in Post HTTP
Fixed HTTP Request to OKTA, we need the Headers and 'Invoke-RestMethod' won't provide them
Fixed HTTP request to OKTA to use limit, since and after parameters to make sure we get all records and also don't get duplicates
Removed need for Environment setting of 'TimeTrigger' Function is now self managing event log times
Cleanup of Azure Function Log messages, consistent format of output
Added inline comments to explain code logic

Thanks, for creating the Azure Functions as a separate version for this change. The data connector json file Connector_REST_API_FunctionApp_Okta_V2.json need not be created as a separate version. It's a UX file and we can just update the existing data connector UX file to "deploy to azure" and functions link (manual) to the new v2 version once validations are complete.

The content of this json file V2 in the Merge Request has changes to the v1 to reflect the removal of the "Time" parameter so how do we manage that?

@preetikr  I have removed the Json file as requested.


Scheduler: Potential issue with run_at and plugins injecting their scheduling

Not a Grav bug, was a problem in rsync plugin


Cache serialized ledger

This PR goal is to add caching for the serialized_ledger() method and design a mechanism for invalidating it.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Flag
Coverage Δ

unittests
85.43% <100.00%> (+1.94%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines
Coverage Δ

pyledger/ledger_engine.py
72.35% <100.00%> (+4.65%)
:arrow_up:

pyledger/memory_ledger.py
100.00% <100.00%> (ø)

pyledger/standalone_ledger.py
93.87% <100.00%> (+0.12%)
:arrow_up:

pyledger/storage_entity.py
96.47% <100.00%> (+0.05%)
:arrow_up:

pyledger/text_ledger.py
100.00% <ø> (ø)

All review comments are centred around a single test unit.
@AlexTheWizardL: I've pushed commit d9d627a with a sketch of how these comments could be addressed.
Build on this commit if you like. Ignore it otherwise.


GCC Warning

I'm compiling with gcc 10.2 and the following warning pops up:
/usr/include/c++/10.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {fu2::abi_400::detail::function<fu2::abi_400::detail::config<true, false, fu2::capacity_default>, fu2::abi_400::detail::property<true, false, bool(uWS::HttpRouter<uWS::HttpContextData<false>::RouterData>*)> >}; _Tp = fu2::abi_400::detail::function<fu2::abi_400::detail::config<true, false, fu2::capacity_default>, fu2::abi_400::detail::property<true, false, bool(uWS::HttpRouter<uWS::HttpContextData<false>::RouterData>*)> >; _Alloc = std::allocator<fu2::abi_400::detail::function<fu2::abi_400::detail::config<true, false, fu2::capacity_default>, fu2::abi_400::detail::property<true, false, bool(uWS::HttpRouter<uWS::HttpContextData<false>::RouterData>*)> > >]':
/usr/include/c++/10.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector<fu2::abi_400::detail::function<fu2::abi_400::detail::config<true, false, fu2::capacity_default>, fu2::abi_400::detail::property<true, false, bool(uWS::HttpRouter<uWS::HttpContextData<false>::RouterData>*)> >, std::allocator<fu2::abi_400::detail::function<fu2::abi_400::detail::config<true, false, fu2::capacity_default>, fu2::abi_400::detail::property<true, false, bool(uWS::HttpRouter<uWS::HttpContextData<false>::RouterData>*)> > > >::iterator' changed in GCC 7.1
  426 |       vector<_Tp, _Alloc>::
      |       ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/10.2.0/bits/vector.tcc: In member function 'void uWS::HttpRouter<USERDATA>::add(std::vector<std::__cxx11::basic_string<char> >, std::string, fu2::unique_function<bool(uWS::HttpRouter<USERDATA>*)>&&, uint32_t) [with USERDATA = uWS::HttpContextData<false>::RouterData]':
/usr/include/c++/10.2.0/bits/vector.tcc:121:21: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator<fu2::abi_400::detail::function<fu2::abi_400::detail::config<true, false, fu2::capacity_default>, fu2::abi_400::detail::property<true, false, bool(uWS::HttpRouter<uWS::HttpContextData<false>::RouterData>*)> >*, std::vector<fu2::abi_400::detail::function<fu2::abi_400::detail::config<true, false, fu2::capacity_default>, fu2::abi_400::detail::property<true, false, bool(uWS::HttpRouter<uWS::HttpContextData<false>::RouterData>*)> >, std::allocator<fu2::abi_400::detail::function<fu2::abi_400::detail::config<true, false, fu2::capacity_default>, fu2::abi_400::detail::property<true, false, bool(uWS::HttpRouter<uWS::HttpContextData<false>::RouterData>*)> > > > >' changed in GCC 7.1
  121 |    _M_realloc_insert(end(), std::forward<_Args>(__args)...);
      |    ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

(wonderful how C++ messages look, right?)
So, the important message is this:
In member function 'void uWS::HttpRouter<USERDATA>::add(std::vector<std::string<char>>, std::string, fu2::unique_function<bool(uWS::HttpRouter<USERDATA>*)>&&, uint32_t)

note: parameter passing for argument of type [...] changed in GCC 7.1

I would like that message to disappear ;)
Is there more information you need, e.g. some code, or can you work with this?

I have GCC 10.2.1 and 9.3.0 and I don't see any warnings?

I have GCC 10.2.1 and 9.3.0 and I don't see any warnings?

This is somewhat confusing.
I'm cross compiling for an ARM target, but you're right. When I use the systemd default x86 g++ there are no warning (except one in the function2.hpp)
uWebSockets/src/f2/function2.hpp:1131:9: warning: the address of ‘static void WS::end()::<lambda()>::_FUN()’ will never be NULL [-Waddress]
 1131 |     if (bool(callable)) {

but, no view of that other one.
But when I compile with my cross compiler, the warning from my first post appears...
Strange...

This is somewhat confusing.
I'm cross compiling for an ARM target, but you're right. When I use the systemd default x86 g++ there are no warning (except one in the function2.hpp)
uWebSockets/src/f2/function2.hpp:1131:9: warning: the address of ‘static void WS::end()::<lambda()>::_FUN()’ will never be NULL [-Waddress]
 1131 |     if (bool(callable)) {

but, no view of that other one.
But when I compile with my cross compiler, the warning from my first post appears...
Strange...

Indeed, this seems to be an "issue" with the arm compiler, see:
https://stackoverflow.com/questions/48149323/what-does-the-gcc-warning-project-parameter-passing-for-x-changed-in-gcc-7-1-m
The question is, this doesn't seem to be a problem with the library itself, so I guess this can be closed an I have to add -Wno-psabi?

Indeed, this seems to be an "issue" with the arm compiler, see:
https://stackoverflow.com/questions/48149323/what-does-the-gcc-warning-project-parameter-passing-for-x-changed-in-gcc-7-1-m
The question is, this doesn't seem to be a problem with the library itself, so I guess this can be closed an I have to add -Wno-psabi?

It looks like an honest warning, for the sake of warning you. I would just ignore it. It's not related to this library.

It looks like an honest warning, for the sake of warning you. I would just ignore it. It's not related to this library.


Godot 2.1.4 auto-crash on launch.

Operating system or device, Godot version, GPU Model and driver (if graphics related):
Issue description:

Godot 2.1.4 auto-crashes when opening.
Perhaps unrelated, but seems to be happening following a Windows update 2 days ago. (I hadn't used it yesterday, so I can't confirm the direct correlation)
Steps to reproduce:

Double-click the Godot software. Wait 3s. Crash.

Link to minimal example project:

What graphics card do you havel? If you don't know, press Windows+R</kbd then type in dxdiag, then go to the Display section of the window that just opened (after accepting the prompt about driver verification).

Looks like your drivers are broken, check if they are properly installed/up-to-date.

Closed as its purely driver-related issue(and TC does not provide enough information about his video card and Godot's version)


INF-112: add default timeout in get request

Uses environment variable 'DEFAULT_HTTP_TIMEOUT' as defined in the Dockerfile for lloyd (https://github.com/Pathlight/lloyd/pull/68).
Tested by running tap locally using tap config for 4patriots and hard coding timeout to be 10.
https://user-images.githubusercontent.com/29642644/191630280-a6ef0a1c-7386-498e-9c41-dc4e00d526f0.mov
Error produced when request times out (this would cause a failed tap run):

Also noting that while this will stop a request from running indefinitely, timed out requests will still make this tap stop.

Also noting that while this will stop a request from running indefinitely, timed out requests will still make this tap stop.

True true but out of curiosity isn't that what we want? Like the actual tap runs fail either way if a request isn't able to complete but right now instead of limiting this, we just let the tap hang for quite a bit of time (most recently ~32 hrs, see screenshot below)? I think we can always increase the timeout if the early timeout is causing the request to fail. But, if the error is coming from something like a network error or server error, then at least we're not indefinitely hanging?

Yea, there's nothing wrong with that. Just noting that if the tap never finishes successfully, it's not because of this change.


Promise

The control flow of the program still has some quirks.
If the player is really good, they will run into issues when they answer the 7th question.
Hopefully, we find the cause and address it 😅

Thanks boss!!!


assert len(window) is window_size + 1 for equal numbers

Hello,
I would like to report wrong usage of assert x is y line:
https://github.com/cfournie/segmentation.evaluation/blob/master/segeval/window/windowdiff.py
line 110
assert len(window) is window_size + 1

fails.
It should be enough to have
assert len(window) == window_size + 1

Examples (python2.7.6):
>>> assert 3 is 2 + 1
>>> assert 300 is 299 + 1
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AssertionError
>>> id(300)
17688624
>>> id(299 + 1)
17688456
>>> id(1 + 299)
17688600

https://stackoverflow.com/a/2239753/3447343


Schema validations don't seem to support labels tag in the yaml file

Schema validations don't seem to support labels tag in the yaml file.

@bnb012008
Schema validation with labels tag is tested and it works fine. This issue will be closed.  Please refer to the screenshot.


Update with new common methods

Signed-off-by: Adam Wisniewski<EMAIL_ADDRESS>

I approved the changes, but I see ALL builds are failing. Used to the Windows ones were failing with one test, but all the other builds were passing. Need to look into that.


Fix a few typos [ci skip]

Hello,
This is just a tiny pull request to fix a few typos and remove a useless comment.
Have a nice day.

:+1:

Thanks :)


Never seem to get 100exp

Expected Behavior
Should sometimes get 100exp when catching pokemon.
Actual Behavior
Lowest value I've seen is 110exp.
Steps to Reproduce
Set the spin and reticle factors to 0.
"catch_randomize_reticle_factor": 0.0,
"catch_randomize_spin_factor": 0.0,
Wait while pokemon are caught and monitor the EXP earned.
Other Information
OS: Win64
Git Commit: 494bc055543c3cb674cca781ec545311d3c9bad1
Python Version: 2.7

Since i updated to the newest version i even get 210 exp with every Pokemon i catch

Hello metheos,
It is exact that in the current state you never get to do just a normal it. I am working on the dev that will allow to have a better control over the type of throw you do, and normal throw without bonus will be reintroduced,

@Likael Great! Thanks!

@Likael Isn't this dangerous as currently its not possible to get the aim (Nice/Great/Exceellent) bonus on the platform. Not sure if the change was intentional from Niantic's side. But if it was, it would easy to flag botters.

Well, that's one more reason to be able to customize the type of throw you want. Also, as far as I know they don't monitor the app version we are using, so even if it was removed, we could still be having an old version that trigger the nice/great/... throws.


Project proposal - Use cases

The actors have been listed, could potentially be improved.
Still need to create UML use case diagrams and to include descriptions of them.

UML use case diagram has been made and included along with a description.


AiChat for iTwinUI Docs

This is the AI Chat feature that is powered by OpenAI's embedding and text completion APIs.
Video35.webm

Logic/workflow

features/search/scripts/create_chunks.js reads all .mdx files in apps/website/src/pages/docs and all .tsx files in /examples and creates docs_chunks.json and example_chunks.json respectively.

Docs chunks is an array of chunks where each chunk represents a new heading level.
Example chunks is an array of chunks where each chunk represents a code example.
This step can run in the CI/CD after any change to any docs mdx file.
Sample docs chunks:

// Sample input:
lines = [
 'Alert is an element',
 '## Appearance',
 'Alert should be concise',
 '### Informational',
 'Default style',
 '## Placement',
 'Either inline or sticky',
]
title = 'Alert'

// Sample output:
[
 {
   "header": ['Alert'],
   "content": 'Alert is an element',
 },
 {
   "header": ['Alert', 'Appearance'],
   "content": 'Alert should be concise',
 },
 {
   "header": ['Alert', 'Appearance', 'Informational'],
   "content": 'Default style',
 },
 {
   "header": ['Alert', 'Appearance', 'Placement'],
   "content": 'Either inline or sticky',
 },
]

Sample example chunks:

{
    "codeExampleTitle": "Alert.informational",
    "codeExample": "...code..."
}

We then generate embeddings for each chunk (info)
When the user types a query, we encode the query too.

We then compare the query vector with all the saved vectors for each chunk.
We give the N (some number) most similar chunks to Azure OpenAI's completion API to summarize the chunks to answer the user's query.

Code structure

apps/website/api/search.json.ts: A backend endpoint in astro to do the vector comparison to get the top chunks and then send and receive a response from the OpenAI completions API. This was done as an alternative to a Python server.
features/search/scripts/create_chunks.mjs: This script is used to create the text chunks and also the code example chunks for the search index. I believe this needs to run in the CI step (or some place similar) to create the new chunks every time the docs site is updated.

Features

Each query-response pair is currently logged locally in a JSON file called apps/website/src/_data/query_history.json

This is mainly for testing -- to see what were the behind the scenes contents for a particular query and thus try improving the search results.

There is a radio button group. This tries to help providing more specific types of results: "code" or "text", in case the "balanced" mode does not give good results.

Upon hovering over the question mark:

Testing

Tested a few example prompts. I hope to have a more structured way of testing and evaluating soon.
Docs

On the docs website's /docs/... pages, I added an AI Chat button to the header.

Spent some time playing around with this. Here are my initial thoughts.
UX feedback

The dialog feels too cramped with multiple scrollbars, because the answers often need more space. I think using a separate page would work better, as there is no reason for this to be overlaid on the same page.
The API responses take 5-7 seconds for me locally. A loading indicator would help during this time.
The chat interface is a bit hard to read. Probably would be better to use chat bubbles to clearly show which parts are part of the AI response. Inside the bubbles, code snippets should be separated properly so that they don't bleed into the surrounding text.
The radio group is confusing; why would I want "better code" or "better text"? Why can't I have both code and text be the best/most correct version possible?
It would help to gather feedback through simple 👍/👎 buttons after each response.

The feature itself
The AI responses are very questionable. Often full of nonsensical code/text yet answered with such great confidence that an unsuspecting user would be easily fooled and get confused later. Here are my logs: query_history.json.

I can understand that it has no way of answering some of the specific questions, but I would rather it said "I don't know, please contact the team" rather than spewing unhelpful garbage.
A lot of times, it links to our docs but gets the url wrong, pointing to some itwin.ui domain. This is unacceptable.
Even the few times it does answer the question somewhat correctly, it keeps going and adds unrelated fluff to the answer.

...which begs the question - what problem are we even trying to solve with this feature? Docs should be the place to find objectively correct information. When the "official" chatbot is so unhelpful, it reduces overall confidence in the documentation site.

I agree with Mayank's comments as well about this feature. It may become more useful as we add more complex components, but I don't think it's needed for the documentation site at the moment. It's still a really cool tool though!
When the AI doesn't know the specific answer to my question, it will just rewrite whatever is written on the documentation site (explaining the component, its features, and its variants). At that point, it might as well just link me to the documentation pages so I can read the same text in a better format.
Code examples are good to display, but I also think there needs to be an output displayed as well or at least a link to open the code in codesandbox.
Here is my query history: query_history.txt

Echoing what everyone else has already said. So I'm just going to add other things:

One idea for UX I have is make it like a support chat bot that can be toggled at bottom right of pages, which you usually see on business or shopping sites to answer common questions. I know those are different in that they are more hard-coded type with pre-determined question options, but one UX benefit of this is that you can still browse other documentation pages while still seeing the chat response/result for quick referencing. Currently old chat is wiped out after following a provided link so I lose reference of what it was telling me.
It should have an ability to distinguish changes from different versions and adjust the response accordingly. Or maybe take version into account when being asked by users. This might be ambitious though since our documentation itself only reflects the latest change (in this case v3). But so v2 or even v1 users might not benefit from this at all, especially when asking about breaking changes. (you will see in my query that I ask about Tile usage and it doesn't know about the latest composition change yet)
Sometimes I want to ask follow-up question but currently can only ask one question at a time since last question and response is wiped (also just opinion, maybe current way is better to prevent it from following up with random answers)
This is great, should be the response for unconfident answers related to the API too

Since there has been no activity on this in a while, I'm closing this, but leaving the branch intact. PR can be reopened if/when we want to come back to it.


Create Development Container

As a Developer I need to Develop APIs for Customer Resource Creation
So that new customer can be added to the system


Adding Sdk integration, and formatting support + code action for syntax updates to the language server

This PR does three things:

It includes the published version of the formatter in the Microsoft.Quantum.Sdk, and adds a build target for updating the syntax in the project (no formatting).
It adds support for formatting files in the language server. This currently as written includes both formatting and updating syntax.
It adds a code action for the things that can be fixed by the syntax updater. If that action is selected, the deprecated syntax in the whole file is updates. No formatting is performed.

There is a test for the language server functionality, which tests two scenarios:

The first part checks formatting works when using the formatter packaged in the Sdk, and relies on a fixed version of the Sdk that has the formatter included.
The second part tests formatting works when using the (published) source code version of the formatter, and should catch any breaking changes to the formatter.

Additionally, we will set up a sanity test in the qdk repo to ensure that the formatter is correctly packaged in all future versions of the Sdk and the defined build target works as well.
Telemetry will follow in a separate PR.

Thanks @bettinaheim for the detailed walk through this pull request. It took me a while to go over it, and catch up with the meeting last week, but looks good to me.

@ScottCarda-MS I updated the readme of the formatter. Please take a look.


Remove Bionic from future releases (Garden+)

See https://github.com/ignition-tooling/release-tools/issues/597

Summary

ign-fuel-tools8 will be on Garden.
Test it

No Bionic builds should be triggered.
Checklist

[x] Signed all commits for DCO
[ ] Added tests
[ ] Added example and/or tutorial
[x] Updated documentation (as needed)
[ ] Updated migration guide (as needed)
[x] codecheck passed (See contributing)
[x] All tests passed (See test coverage)
[x] While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.
🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸

This is good to go!

windows test failures are pre-existing on main
https://build.osrfoundation.org/view/ign-garden/job/ign_fuel-tools-ci-win/18/


nixos/wrapper: add basename of the wrapped program to the wrappers name to easily identify it

Description of changes
make commands like nix store diff-closure more useful. eg:
command nix store diff-closures /nix/var/nix/profiles/system-23-link/ /nix/var/nix/profiles/system-24-link/
security: ε → ∅, -349.0 KiB
security-wrapper: ∅ → ε, +265.9 KiB
security-wrapper-arp: ∅ → ε, +16.6 KiB
security-wrapper-dbus-daemon-launch: ∅ → ε, +16.6 KiB
security-wrapper-fusermount3: ∅ → ε, +16.6 KiB
security-wrapper-mtr: ∅ → ε, +16.6 KiB
security-wrapper-unix_chkpwd: ∅ → ε, +16.6 KiB

or nix-diff (not relevant parts cut)
- /nix/var/nix/profiles/system-23-link/:{out}
+ /nix/var/nix/profiles/system-24-link/:{out}
• The set of input derivation names do not match:
    - security-wrapper
    + security-wrapper-arp-scan
    + security-wrapper-chsh
    + security-wrapper-dbus-daemon-launch-helper
    + security-wrapper-fusermount
    + security-wrapper-fusermount3
    + security-wrapper-iotop
    + security-wrapper-mount
    + security-wrapper-mtr-packet
    + security-wrapper-newgidmap
    + security-wrapper-newgrp
    + security-wrapper-newuidmap
    + security-wrapper-passwd
    + security-wrapper-ping
    + security-wrapper-plocate
    + security-wrapper-sg
    + security-wrapper-su
    + security-wrapper-sudo
    + security-wrapper-sudoedit
    + security-wrapper-tcpdump
    + security-wrapper-umount
    + security-wrapper-unix_chkpwd
...

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

@nixos test sudo


Remove redundant Promise.resolve()

The whenDefined() method of the CustomElementRegistry interface returns a Promise that resolves when the named element is defined. It is not necessary to opt in to a Promise chain with an empty Promise.resolve(). See: https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/whenDefined

@acshef thank you for the contribution :-)
@all-contributors please add @acshef  for code


Scale back the last .35 emaDiff to 8 periods instead of 10.

moved the emadiff so the price is within .10 of 50 p ema in the last 8 minutes.


[FeatureReq - Partner Center] Roll back to a previous version

Is your feature request related to a problem? Please describe.
Sometimes a version is accidentally pushed and it's good to have such a safety net of rolling back to a previous version
Chrome Web Store lets roll back to the immediate previous version
Firefox Addons lets roll back to any previous version
Describe the solution you'd like
Have a UI that lets the dev select a version to roll back to

Hi @avi12,
Thank you for reporting this. We are looking into this and will let you know as soon as we have an update.

hi @avi12 ack your request. I am just curious, that how has the lack of this feature impacted you? Any real life scenarios would help me a lot to understand how should I prioritize this feature against other items on our backlog.

Suppose I had been working on a new feature and after finishing, I pushed the update, it successfully passed the review, but then I discovered a bug that could potentially break either the extension or that feature
In this scenario, rolling back to a previous release gives me the proper time to work on a hotfix

Ack the request. I or someone from my team will update this thread when we take up rollback to the previous version on our backlog.

Acknowledge the feedback @carlosjeurissen

Hey @avi12, @carlosjeurissen, we wanted to inform you that the feature you inquired about is currently on our backlog. We will update you once we begin working on this feature.
We appreciate your understanding and patience.

Hi @ManikanthMSFT, thank you for keeping us updated on this feature request. Since it's been a few months since the last update, I was wondering if you could share an approximate timeline for when this might be implemented?
This would help us better plan our release strategies

Hi @thryyy, thank you for your patience and continued interest in this feature request. At this time, we don’t have an estimated timeline for its implementation. However, please rest assured that as soon as we have an update, we will inform you immediately. We understand how important this is for your release strategies and appreciate your understanding.


HEAD requests generate 404

Currently, any HEAD request on a post's (slug) URL will return HTTP/404 Not found.
This seems to be related to the request routing code, e.g.
$router->map('GET','/[:slug]/', function($slug) {

I can change this to read GET|HEAD instead, and it actually generates HTTP/200 for HEAD requests then, but it does also output Content-Length: 0 in this case, which is wrong. It's still better than returning a 404, but clearly not the correct fix.
Is there an easy way to generate proper HEAD responses in nicholas?
TIA!

Patched to accept head requests as described, but I think that content-length should be handled by the web server.


Use jest for tests

Also add package-lock.json and CI on node 8 (to get npm5)
Would anyone be opposed to me dropping gulp entirely and just use webpack directly from npm scripts?

This repo is your oyster. If no one complains. Feel free to take gulp out

Thank you!

Cool. The firefox add-on needs a rewrite as it'll stop working in firefox 57 (55 is current). The good thing is it uses the same API as chrome, opera and microsoft edge now, so should actually be less code and very straight forward 🙂

you are such a champ for helping, Simen. Hope to see you in oslo if we can
meet. I'll be there soon for javazone!

I'll be at javazone myself, so that works out!

Go for it! Finally some cleanup on this project! I just wish firefox supported the same api back when this was written :-( Gulp was only there to manage the abstraction etc., so removing it is good.


add shaderwriter version 2.6

linux ci fails

Yes, looks like debug only fail, I'm having a look at it right now.


My black box function accepts a 10 dimensional array parameter X. how can I pass the parameter into Bayesian Optimization

Hi, take a look at #331 - essentially you have to write some code to convert the array to a dict.


Input display messed up after 2,147,483,647

Integers after 2,147,483,647 are signed extended. When displayed, it is not what is intended anymore. However, the binary output remains correct.

It's not possible to fix this as values will always be signed-extended


Support Ubuntu 22.04

Add support of Ubuntu 22.04.
It seems some problems.

Python version is 3.10. The pypi-mirror.sh has some problems with python 3.10. So some components needs to be installed from source, depends gcc and some libraries.
aufs-tools is removed.

Done.


Can't change Shadow Colors?

Hey guys, I'm trying to change the shadow color of controls.
I've tried everything I can think of such as:
overriding entire Shadows.xaml whilst using my own Defaults.xaml
overriding MaterialDesignShadow Color key
others that I can't remember now
It always seems to default to the ones states in MaterialDesignTheme.Shadows.xaml

@remiX- unfortunately there is not currently a way to change the shadow color. It is set statically making it difficult to change at run-time.
However all of the shadows in this library use the ShadowConverter so if you are ok with using a little reflection, you can change the values stored in its dictionary.

Will it change in the future to be able to easily change shadow color?
Thanks - will give the reflection a try.

Possibly. There is currently no work being done to support it.


.editorconfig break simple python project

Hello, If I created templated python project by poetry new ttt and create .editorconfig file it breaks neotree
[ERROR Thu Jun 13 10:31:20 2024] ...are/nvim/lazy/neo-tree.nvim/lua/neo-tree/ui/renderer.lua:1200: Error setting nodes:  ...on/.local/share/nvim/lazy/nui.nvim/lua/nui/tree/init.lua:36: duplicate node id/private/tmp/ttt/.editorconfig [ERROR Thu Jun 13 10:31:20 2024] ...are/nvim/lazy/neo-tree.nvim/lua/neo-tree/ui/renderer.lua:1201: {}
Without .editorconfig it works.
I use your config from readme.
Step to reproduce

poetry new ttt
cd ttt && touch .editorconfig
open Neotree in ttt directory

EDITED
I found your generated ['pyproject.toml'] rules has many duplicates

Thanks for reporting @JMarkin.


Crear formulario Master Detalle , favor un ejemplo

Laravel Version: #.#.#
PHP Version:
Laravel-admin: #.#.#

Description:
Steps To Reproduce:

How Can I create form Master Detail, I try with Class Selected and the relation belongsToMany


publish the plugin in NPM

https://cordova.apache.org/announcements/2015/04/21/plugins-release-and-move-to-npm.html

Sure will. Soon.

Thanks :+1:

Has this been moved yet, and if so, do we simply change the config.xml line to:
<gap:plugin name="nl.x-services.plugins.socialsharing" source="npm" /> ?


Finish README and cleanup Github

Needed for hackathon.

Add:

Simple Flask Setup for Localhost
Diagram
Picture of final product
Tests
Gunicorn docker-compose setup
Enviroment Documentaition
Front-end setup

Still Need to add front end stuff from @kindyluv

Added the frontend of the project

Cool! Just need to get the code for the website online and merge that in, then we can close this issue ;)


Add configurable working directory

Issue #, if available:
Closes #1229
Description of changes:
This aims to address issues brought up in #1230 and #1198.
The underlying issue is the base working directory used throughout the AMI template (/tmp) may not be suitable for all use cases. Resources are staged in this directory (/tmp/worker) before being moved into their final position (such as the contents of files/) and this directory is also used to stash the AWS CLI installer, among other things.
After this change:

remote_folder can still be used to control the location of Packer scripts on the builder instance.
working_dir will default to a sub-directory of remote_folder, and can be adjusted as needed. All provisioners that create files on the builder instance will do so within this directory. This directory is deleted at the end of the build.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Testing Done
Defaults succeed:
make 1.25

Different remote_folder succeeds:
make 1.25 remote_folder=/home/ec2-user
# working_dir will be /home/ec2-user/worker

Different working_directory succeeds:
make 1.25 working_directory=/tmp/foo

LGTM

@cartermckinnon This PR fixes the issues we were having with hardened linux builds. Thanks again!

Hey @cartermckinnon, any idea when this might be merged to master? Thanks again for the work

Hi @cartermckinnon, another friendly ping as this PR solves some issues we've been having and we're pinned on it until merged. Let me know if there's anything I can do to help work towards merging this. Thanks!

Hi @cartermckinnon any update on when this is going to get merged?

Sorry folks, I was out of the office and had some other priorities. I'll resolve the conflicts and wrap this one up.

Hi, any update on this PR?

Thanks for the good PR to allow using this repo with CIS hardened Amazon Linux 2. Hope it merges soon and works again.

@cartermckinnon still i am getting this error
/sandeep/amazon-eks-ami/scripts/generate-version-info.sh
2023-06-19T07:29:38Z:     amazon-ebs: ctr: failed to dial "/run/containerd/containerd.sock": context deadline exceeded: connection error: desc = "transport: error while dialing: dial unix:///run/containerd/containerd.sock: timeout"
2023-06-19T07:29:38Z: ==> amazon-ebs: Downloading /home/ec2-user/worker/version-info.json => amazon-eks-node-1.27-v20230619-version-info.json
2023-06-19T07:29:38Z: ==> amazon-ebs: Provisioning step had errors: Running the cleanup provisioner, if present...
2023-06-19T07:29:38Z: ==> amazon-ebs: Terminating the source AWS instance...
2023-06-19T07:30:39Z: ==> amazon-ebs: Cleaning up any extra volumes...
2023-06-19T07:30:39Z: ==> amazon-ebs: No volumes to clean up, skipping
2023-06-19T07:30:39Z: ==> amazon-ebs: Deleting temporary security group...
2023-06-19T07:30:39Z: ==> amazon-ebs: Deleting temporary keypair...
make 1.27 aws_region=$AWS_REGION source_ami_id=$AMI_ID source_ami_owners=$AMI_OWNER_ACCOUNT_ID source_ami_filter_name="$AMI_NAME" subnet_id=subnet-***  remote_folder=/home/ec2-user

@Sandeepsac Doesn't look like it's one of the errors that this PR is meant to fix. Looks like it's a new one. You probably need to look at the containerd logs. Looks like containerd hasn't started.

The ctr line is just a warning, and it's not causing the build failure (I can see that the subsequent provisioner is running, the one that downloads the version-info.json file).
@Sandeepsac are you using the default for working_dir?

yes  @cartermckinnon I am using default for working_dir
"working_dir": "{{user remote_folder}}/worker"   which is available  in   eks-worker-al2-variables.json file

@Sandeepsac My guess is there's a permissions error at rm -rf {{user 'working_dir'}}. If you add a complete make line here, I can try to reproduce. I'd also try different values for remote_folder.

@cartermckinnon  I will check the permission  , Thanks
make command:
make 1.27 aws_region=$AWS_REGION source_ami_id=$AMI_ID source_ami_owners=$AMI_OWNER_ACCOUNT_ID source_ami_filter_name="$AMI_NAME" subnet_id=subnet-*** remote_folder=/home/ec2-user
and i am referring this blog got AMI creation
https://aws.amazon.com/blogs/containers/building-amazon-linux-2-cis-benchmark-amis-for-amazon-eks/

Hi there, is there an ETA on when this is going to get tagged?


YETUS-1019. Replace whitespace with blanks

we should call out in the release note that the old whitespace cli option are deprecated and will get removed (unless we want to start having some kind of "you used a deprecated feature run with --what-was-deprecated for details" warning.)

Good point. I'll add that to the release notes.

also still flag it as incompatible because if folks were enabling or disabling the plugin via its name as whitespace that won't work now? or do we still want that to work?

Yup, I'll also add that to the release notes.  But yeah, as written the bw compat will only work for people who don't mention it by name (which AFAIK is the vast majority of people).

Just so it's officially noted here, I've updated the release note in JIRA.

Just so it is noted here, I've updated the release notes in JIRA.

Thanks! I'll merge this in now...


EngineBlock 6.7.2 can not install dependencies using composer 2

This issue is imported from pivotal - Originaly created at Oct 12, 2022 by Michiel Kodde
Tim van Dijen reported this issue:
On EB v6.7.2:
$ composer install --no-dev
Creating the "app/config/functional_testing.yml" file
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache

In Process.php line 143:

  [TypeError]
  Argument 1 passed to Symfony\Component\Process\Process::__construct() must be of
  the type array, string given, called in /home/saml/openconext-engineblock/vendor/
  sensio/distribution-bundle/Composer/ScriptHandler.php on line 291

Using composer 1 to install the dependencies seemed to solve the issue.
Suggestion: migrate the lockfile to be composer 2 compatible (given composer 1 is EOL)
Additional information (in Dutch):
Het is een raar probleem, want op een andere omgeving werkte het wel met composer v2
Composer v2.2.18 werkt, maar v2.4.2 werkt niet

In the current development branch, using composer 2 to install the dependencies works like a charm.
$ composer --version
Composer version 2.5.4 2023-02-15 13:10:06

(Michiel Kodde - Apr 25, 2023)

__Regarding Composer issues in EB v 6.7.2__

Some insight looking at git diff HEAD..6.7.2 composer.lock
Excerpt from the bottom of the diff output;
+  = HEAD
-  = 6.7.2

-    "plugin-api-version": "1.1.0"
+    "plugin-api-version": "2.3.0"

Conclusion EB 6.7.2 was explicitly installed using Composer 1, and hence might use possibly deprecated Composer 1 features. My explanation that you where able to install this lockfile with an older Composer 2 version is that that specific version still had certain V1 support. That might have been dropped in a newer version.
My suggestion, if you need to use 6.7.2 with composer 2 is to run composer update --lock with Composer 2. After that, the lockfile should be fully Composer 2 compatible. (Michiel Kodde - Apr 25, 2023)


Script can't detect TUN device

When I try run script, I get:
The TUN device is not available
You need to enable TUN before running this script

since I was fully confident in the included TUN on my VPS, I checked openvp-install.sh.
I found here string:
if [[ ! -e /dev/net/tun ]]; then

then I changed it to:
if [[ ! -e /dev/tun ]]; then

and it all worked without problems
It seems that the tun device can not always be in the /dev/net/tun.
Distro: Debian Stretch

That's interesting because even the driver documentation names /dev/net/tun as the right path for the device. A "real" machine (not a container) with Debian Stretch will certainly use that.
I'd bet that you are running some kind of container or virtual environment which could be using that unusual path. Please let me know what kind of environment is this VPS running on, so I can reproduce the issue. If you are not running the host and you are renting this server from some provider, I'd appreciate if you can reveal the name of the provider or virtualisation technology which they are using, because I've never seen this in Linux.
If by any chance this is some kind of special setup which you don't want to discuss in public, feel free to email me instead.

Indeed, the technology of virtualization OpenVZ.
I also checked the tun devices on other providers with the same technology openvz - in all cases there was no device /dev/net/tun, but exist /dev/tun.
Perhaps this is due to the features of cheap vps project lowendspirit.

Something must be wrong...
Before you edited your message, I did see that you are running this in LowEndSpirit. This script is very popular among LES users, so I don't understand how only you are having this issue.

I also checked the tun devices on other providers with the same technology openvz - in all cases there was no device /dev/net/tun, but exist /dev/tun.

This simply can't be like that, OpenVZ is a very popular virtualization technology and thousands of users are running this script there. I myself have a OpenVZ container which indeed has the TUN device at /dev/net/tun.
Can you please run the following commands in your affected container and paste the output here?
cat /dev/net/tun
cat /dev/tun
Additionally, could you please let me know which specific LES location are you using?

It took some time to test.

DeepNetSolutions
1.1
Location - DE
TUN - Enabled

dargod@de:~$ cat /dev/net/tun
cat: /dev/net/tun: File descriptor in bad state
dargod@de:~$ cat /dev/tun
cat: /dev/tun: File descriptor in bad state

1.2
Location - ZA
TUN - Enabled
dargod@esphost:~$ cat /dev/net/tun
cat: /dev/net/tun: No such file or directory
dargod@esphost:~$ cat /dev/tun
cat: /dev/tun: File descriptor in bad state

Gullos Hosting
2.1
Location - BG
TUN - Enabled

root@bg:~# cat /dev/net/tun
cat: /dev/net/tun: File descriptor in bad state
root@bg:~# cat /dev/tun
cat: /dev/tun: File descriptor in bad state

2.2
Location - FIN
TUN - Disabled
root@fi:~# cat /dev/net/tun
cat: /dev/net/tun: No such file or directory
root@fi:~# cat /dev/tun
cat: /dev/tun: No such file or directory

RansomIT
3.1
Location - AU
TUN - Enabled

dargod@auhost:~$ cat /dev/net/tun
cat: /dev/net/tun: No such file or directory
dargod@auhost:~$ cat /dev/tun
cat: /dev/tun: File descriptor in bad state

I could not find the patterns in the presence or absence of the device /dev/net/tun, but seems like /dev/tun exists in any case.
Perhaps I need more tests?

Just to update you in the current situation:

Yesterday I tried purchasing from DeepNet, but unfortunately my order was flagged as fraud.
I sent a ticket trying to get my order verified, but it has been ignored. I was well aware that they provide no support via tickets, but I was not going to send them personal information in the public support forum.

Anyway, my plan was to verify that everything was to further troubleshoot the situation in one of the affected containers and check that everything else was fine before committing an update to the script. I will consider an alternative path if I am unable to get my service with DeepNet activated, but it will probably take some more days since the weekend is already here.

Sorry to bother you again: could you please do me one last favor?

In your South African or Australian VPS.
With TUN enabled and OpenVPN installed and working.

Run the following command:
ovpnpid=$(pgrep openvpn); ls -l /proc/$ovpnpid/fd/
And let me know the output. That would be really useful.

I bought a DeepNet Solutions VPS in South Africa and are unable to reproduce.
root@jnb1:~# cat /dev/net/tun
cat: /dev/net/tun: File descriptor in bad state
root@jnb1:~# cat /dev/tun
cat: /dev/tun: No such file or directory

So I am closing this issue unless you are able to help me reproducing the issue, or someone else can help. At this point, the best way would be to email me login details for one of the affected machines.

I get the same error but the difference is that when i do cat /dev/tun or cat /dev/net/tun says that it doesnt exist..
any suggestion
uname: Linux vps43212.inmotionhosting.com 3.16.0-042stab130.1 #1 SMP Tue May 22 09:19:34 MSK 2018 x86_64 GNU/Linux

@its0x08 probably not the same issue. You likely need to enable TUN in your VPS provider's control panel. If you don't know how to do that, contact them.

and also > distro : centos

I get the same error but the difference is that when i do cat /dev/tun or cat /dev/net/tun says that it doesnt exist.. any suggestion uname: Linux vps43212.inmotionhosting.com 3.16.0-042stab130.1 #1 SMP Tue May 22 09:19:34 MSK 2018 x86_64 GNU/Linux

I'm a bit late, but for users like me, I'll leave it here. 😁
mkdir -p /dev/net mknod /dev/net/tun c 10 200 chmod 600 /dev/net/tun


less: 530 -> 551

Motivation for this change
At long last! \o/
pname-ify while visiting.
http://greenwoodsoftware.com/less/news.551.html
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[x] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)

ALLVM :innocent:

[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

I think something went wrong :p

I tested 551 on x86_64-linux and everything I use seems to work fine.


Dark Mode 🌗

Is your feature request related to a problem? Please describe.
A switchable Dark Mode
Describe the solution you'd like

Wireframe & Mockup Design
Code Implementation

Describe alternatives you've considered
If there is any other alternative you would like to suggest go ahead.

I want to work on this issue.

kindly assigned me this issue under the review of GSSOC'21.
I would like to add solve this issue .My code is with  clear and proper comments.

@micksharma as you are already working on #35
as per over Guidelines one person can take a single issue at a time.
@Anurag-bhatia You can go ahead with this one.

Hey , I am participant in GSSOC'21. Can you please assign this to me?

@rk05-lenavo Checkout the starter guide :)

Could you please assign me this.

@rk05-lenavo This is already assigned, could you check out the starter guide for further info

@Anurag-bhatia Could you open a draft PR with your present progress, so we know you're going in the right direction

I want to work on this issue.

@Praful932  sir, i dont know how to get started , i am very new in this.

@Anurag-bhatia any updates?

Please assign me this issue

@Praful932 kindly unassign me from this issue, i am not able to do this.

@Praful932 kindly unassign me from this issue, i am not able to do this.

Assign me @Praful932

@mohammedjameel24 It's a UI/UX change please go through Very Important Points to be Noted in our  Starter Guide.

@mohammedjameel24 Any updates?

I have problem running it locally

@Praful932 I am a participant of GSSoC'21.I would love to work on this issue using JavaScript

Am not able to set virtual env
And start the deployment server

@mohammedjameel24

Head to discussions/discord and tell us your problem :) We'll try to resolve

@mohammedjameel24 any update?

I am a GSSoC'21 participant.
Can you assign me this issue

Go ahead @rk05-lenavo

@Praful932 I have created the Pull request kindly check the code.

Kindly assign me this issue. I will complete within 1 day. @maneprajakta
You can unassign me if I don't complete in maximum of 2 days.

Is this issue still up for grab ?
@maneprajakta

@SnehaVeerakumar Yep. Do you want to be assigned for this one?

@maneprajakta  Yes ! I can complete this issue within 1 or 2 days !!!

@maneprajakta  YES ! I can complete this issue in 1 or 2 days !!

Go ahead :rocket: . Read once starter Guide it will help.

Hii, can i work on this?

Go ahead 🚀 . Read once starter Guide it will help.

Started working on it !

//cc @Praful932  Is this issue up to grab?

@SAHU-01 Yea go ahead :)

//cc @Praful932  would you specify if you want anything in particular about  this ,then maybe I can submit a prototype close to what you are looking for!

@SAHU-01, not anything particular we had thought it's up to you.
It would be great if you first show us a wireframe for the same then after approval you can start working on its implementation part.

@SAHU-01, not anything particular we had thought it's up to you.
It would be great if you first show us a wireframe for the same then after approval you can start working on its implementation part.

sure,I'll share my wireframe by tommorow and if you want changes,I can keep doing that  until you are satisfied with the designs,hope that sounds good to you //cc @maneprajakta

@maneprajakta  @Praful932  would you like ui and colour pallete like this for the dark theme

i'll keep in mind the three divisions and the carousals you have  and restructure the design similar to the one here,would that work,or you want something a bit more classy like this one

@SAHU-01 we don't want to change the structure of the website in dark theme just a color change for dark theme would work.

@SAHU-01 we don't want to change the structure of the website in dark theme just a color change for dark theme would work.

ok got that,so about the colour palette i'll share that,let me know if those colours suite your taste.

Let me know which of these colour palette you would prefer @maneprajakta @Praful932
1.
2.

@SAHU-01 First one works for me :+1:

@maneprajakta @Praful932 would this wireframe suit the website,then I'd start with the code!
https://www.figma.com/file/xMOePF7WfEhOU72rKsSIwj/Untitled?node-id=0%3A1
I did not change the original layout,I simply added your chosen colour palette.

@SAHU-01 were you able to figure out the local setup problem?

@SAHU-01 any updates?

No updates received. Also, we think no need for this feature till now.


Kubernetes Auth method skip SSL verification

In HTTPS scheme without SSL details it is throwing error would like to have property like "spring.cloud.vault.ssl.enabled" true/false. Please share the details if there are any solutions that already exists.
Library: spring-cloud-starter-vault-config : 4.1.1
Issue: Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Source:
#Spring cloud vault
spring.cloud.vault.host=vault.infra
spring.cloud.vault.port=8200
spring.cloud.vault.authentication=KUBERNETES
spring.cloud.vault.kubernetes.role=****
spring.cloud.vault.kubernetes.kubernetes-path=kubernetes
spring.cloud.vault.kubernetes.service-account-token-file=/var/run/secrets/kubernetes.io/serviceaccount/token
spring.cloud.vault.scheme=https
spring.cloud.vault.sssl.skip-verification=true
spring.cloud.vault.kv.enabled=false
spring.cloud.vault.database.enabled=true
spring.cloud.vault.database.role=****-postgres-role

spring.cloud.vault.database.username-property=postgres.username
spring.cloud.vault.database.password-property=postgres.password
spring.config.import=vault://

There's no such flag for Spring Cloud Vault. If you want to bypass SSL checks, you need to configure your own client instances with appropriate TrustManager settings.


Handle tri-state checkbox

In your current version, if one child element is unchecked, the element is unchecked.
If you collapse your elements, it's pretty confusing for the users as they don't see there is something checked.
My proposal is to benefit from html5 changes on checkbox to handle the "indeterminate" flag, so we can see the difference.
For this purpose, i change the check boolean so it can have 3 states : true, false, undefined.
If this boolean is undefined, then the indeterminate flag is on.

Codecov Report

Merging #25 into master will decrease coverage by 0.84%.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##           master      #25      +/-   ##
==========================================
- Coverage   96.41%   95.57%   -0.85%
==========================================
  Files          11       11
  Lines         418      429      +11
  Branches       87       91       +4
==========================================
+ Hits          403      410       +7
- Misses          0        1       +1
- Partials       15       18       +3

Impacted Files
Coverage Δ

src/lib/treeview-item.component.ts
82.75% <66.66%> (-9.25%)
:arrow_down:

src/lib/treeview-item.ts
98.93% <93.33%> (-1.07%)
:arrow_down:

Continue to review full report at Codecov.

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

Thanks alot. It works well. It included in version 1.2.0


Refactor cfg/validators package

Change direction of dependency config <-> validators;
Do not persist "default" validators in the expanded blueprint;
Move control of validators execution form config to cmd;
Remove stdout prints from validators and config packages;
Remove validator inputs evaluation from specific validators, make it common;
Utilize multi-error for validators;
Simplify implementation of some validators;
Remove validatorName type;
Rename validatorConfig -> Validator;
Put identifiers into quotes to improve error messages readability.

Motivation:

The dependency config -> validators needed refactoring, the blueprint validator should be able to inspect the blueprint, instead of being a collection of GCP-specific functions + pretty renderer of logs;
Finalize the effort of making core-packages stdout-free;
Opens an opportunities for further refactoring;
Simplifies addition of new validators, namely quota validation.

Outputs comparison:
develop:
arbuz is not an implemented validator
a required input project_id was not provided to test_region_exists!
warning: at least one required input was not provided to test_region_exists

module debug_node_group uses module network1, but matching setting and outputs were not found. This may be because the value is set explicitly or
One or more used modules could not have their settings and outputs linked.
warning: validator test_module_not_used failed

the deployment variable "useless" was not used in this blueprint
one or more deployment variables was not used by any modules
warning: validator test_deployment_variable_not_used failed

zone us-central1-a is not in region us-west1 in project ID io-playground or your credentials do not have permissions to access it
warning: validator test_zone_in_region failed

One or more blueprint validators has failed ... <same>

PR:
Error: unknown validator "arbuz"
27:   - validator: arbuz
                   ^
Error: error while trying to evaluate "region": :0,4-11: Unsupported attribute; This object does not have an attribute named "narnia".
29:     inputs: {region: "$(vars.narnia)"}
                ^
validator "test_module_not_used" failed:
module "debug_node_group" uses module "network1", but matching setting and outputs were not found. This may be because the value is set explicitly or set by a prior used module

validator "test_deployment_variable_not_used" failed:
Error: the variable "useless" was not used in this blueprint
24:   useless: 77
               ^

validator "test_zone_in_region" failed:
zone us-central1-a is not in region us-west1 in project ID io-playground or your credentials do not have permissions to access it

One or more blueprint validators has failed ... <same>

it looks like explicitly defined validators are always written to the expanded blueprint.

Correct, original_bp(after CMD skipValidators applied).Validators == expanded_bp.Validators


[Sema] TF-240, TF-260: Fix Differentiable derived conformances cras…

…hers.

Enable nominal types' implicit parents as valid Differentiable
associated types in canDeriveDifferentiable.

This is crucial for preventing assertion failures.

Relax freshlySynthesized assertions.

With the current design, it is not always the case that all
three Differentiable associated types are freshly synthesized
at once. Some redesign is necessary.

Todos:

Clarify/standardize Differentiable derived conformances behavior.

Sometimes, CotangentVector and AllDifferentiableVariables may both
be synthesized when only AllDifferentiableVariables is necessary.
Other times, AllDifferentiables may be synthesized as a typealias of
CotangentVector when the reverse behavior may be desirable.
Add print-ast tests to verify behavior.

Handle Differentiable derived conformances for structs whose parent
also conforms to Differentiable.

This is important for enforcing some Differentiable protocol
constraints, like:X.AllDifferentiableVariables.AllDifferentiableVariables ==
X.AllDifferentiableVariables

Resolves TF-240 and TF-260.
Filed TF-316 for standardizing Differentiable derived conformances behavior.

@swift-ci Please test tensorflow


POST method dropped on redirect

When making a POST request to a URI that redirects POSTMan changes the request method to 'GET' and drops the form payload.  Should it not redirect to the new location using the same method and payload?  An example:
<<<<<<<<<<<<<<<<<<<<<<<<<<<< REQUEST <<<<<<<<<<<<<<<<<<<<<<<<<<<<
POST<EMAIL_ADDRESS>HTTP/1.1
Host: <IP_ADDRESS>:4242
Content-Length: 18
Origin: chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_1) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1
Content-Type: application/x-www-form-urlencoded
Accept: /
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
test=val&asdf=asdf
<<<<<<<<<<<<<<<<<<<<<<<<<<<< REDIRECT <<<<<<<<<<<<<<<<<<<<<<<<<<<<
HTTP/1.0 301 MOVED PERMANENTLY
Content-Type: text/html; charset=utf-8
Content-Length: 315
Location: http://<IP_ADDRESS>:4242/services/people/rick%40test.com/
Server: Werkzeug/0.8.3 Python/2.7.2
Date: Thu, 13 Sep 2012 21:37:31 GMT

Redirecting...
Redirecting...
You should be redirected automatically to target URL: http://<IP_ADDRESS>:4242/services/people/rick%40test.com/.  If not click the link.
<<<<<<<<<<<<<<<<<<<<<<<<<<<< REQUEST <<<<<<<<<<<<<<<<<<<<<<<<<<<<
GET /services/people/rick%40test.com/ HTTP/1.1
Host: <IP_ADDRESS>:4242
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_1) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1
Accept: /
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Thats not matches RFC2616 http://tools.ietf.org/html/rfc2616#section-10.3.2 .
Note: When automatically redirecting a POST request after
receiving a 301 status code, some existing HTTP/1.0 user agents
will erroneously change it into a GET request.

You can use the "Automatically follow redirects" option in the Settings window for this. You'll need to install the Interceptor for this, though.

duplicate to https://github.com/postmanlabs/postman-app-support/issues/1490