$http transformResponse Missing Status

The AngularJs docs for $http (https://docs.angularjs.org/api/ng/service/$http) (tested on 1.3.9-build.3.773) specify the function signature of transformResponse as:
function(data, headersGetter, status)
However, status is always undefined. It looks like the caller is transformData, which calls the transformResponse functions without the status:
fn(data, headers)
The status is not available through the headers function, so it is expected that a transformResponse function be called with the status included.

I was mistaken, I was testing on 1.3.6, and it has been fixed in 1.3.7.


Use precomputed mean/std to compute skewness and kurtosis

master:
334 µs ± 1.48 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)

this:
55.7 µs ± 549 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each)

These are simple mathematical operations and has couple of temporary arrays....you could check what further performance you get with njit, and maybe with (fastmath=True)

I tried with njit and the improvement if any is in the noise.

Added more tests and njit, since it gave a 10 % improvement. Pls. review again.

@kosack done

pytest cov seems to be unable to work with the njit functions. This is unfortunate but also not really surprising in hindsight.
This is way diff coverage is so low


Does not work with Laravel 5.2?

Hello,
We are not able to get lara-auth-bridge to work properly. We are using Laravel 5.2.
When we try to log in to the forum, we get this error message:

You have specified an incorrect username. Please check your username and try again. If you continue to have problems please contact the Board Administrator.

No errors are created in the Laravel logs.
We've followed the instructions in the Readme, this is the setup:
laravel/config/app.php
<?php

return [
    ...
    'providers' => [
        ...
        'CallMeNP\LaraAuthBridge\LaraAuthBridgeServiceProvider'
        ...
     ]
]

laravel/config/lara-auth-bridge.php
<?php

return [

    'appkey' => 'testkey',

    'user_model' => [
        'username_column' => 'email',
        'password_column' => 'password',
    ],

    'client_auth' => false,

];

laravel/app/Http/Middleware/VerifyCsfrToken.php
<?php

namespace App\Http\Middleware;
...
class VerifyCsrfToken extends BaseVerifier {
    ...
    protected $except = [
        'auth-bridge/*',
    ]
];

phpbb/ext/laravel/bridgebb/auth/provider/bridgebb.php
<?php

namespace {
   ...
    define('LARAVEL_URL', 'http://app.domain.com');
    define('BRIDGEBB_API_KEY', 'testkey');

    define ('LARAVEL_CUSTOM_USER_DATA', serialize ([
        'email' => 'user_email',
    ]));
...

The forum is hosted on a subdomain as well (http://forum.domain.com)
PHPBB: 3.1.10
Laravel: 5.2
lara-auth-bridge: 2.1.0
laravel/bridgebb: 2.0.0

It seems like we found the problem.
As on discovered in https://github.com/CallMeNP/lara-auth-bridge/issues/11, the problem is that ApiController::getSession is not able to validate the session.
The reason for this is that since Laravel 5.2, you need to wrap the routes in a web middleware to access the session state across the board (like the global in 5.1).
Simply change the routes declaration in LaraAuthBridgeServiceProvider from this:
    Route::get('/auth-bridge/login', 'CallMeNP\LaraAuthBridge\Controllers\ApiController@getSession');
    Route::post('/auth-bridge/login', 'CallMeNP\LaraAuthBridge\Controllers\ApiController@doLogin');
    Route::delete('/auth-bridge/login', 'CallMeNP\LaraAuthBridge\Controllers\ApiController@doLogout');

to this:
Route::group(['middleware' => ['web']], function () {
    Route::get('/auth-bridge/login', 'CallMeNP\LaraAuthBridge\Controllers\ApiController@getSession');
    Route::post('/auth-bridge/login', 'CallMeNP\LaraAuthBridge\Controllers\ApiController@doLogin');
    Route::delete('/auth-bridge/login', 'CallMeNP\LaraAuthBridge\Controllers\ApiController@doLogout');
});

This solved the problem for us.


Xcode 14 beta fails when archive watchOS Target with Realm v10.28.2

How frequently does the bug occur?
All the time
Description
Hello,
I have a simple test application, in which I have created an iOS target and a watchOS target.
There is no implementation, just Realm dependency injection with cocoapods (podfile).
The two targets compile without problems, but when I'm about to make Archive, with the watchOS target it always fails.

Stacktrace & log output
ld: library not found for -lrealm-monorepo
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Can you reproduce the bug?
Yes, always
Reproduction Steps
Podfile app sample that archive watch crash:

Build iOS Target -> OK
Build watchOS Target -> OK
Archive watchOS target -> KO

Version
10.28.2
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
watchOS
Build environment
Xcode 14 beta 3
Cocoapods 1.11.3
RealmSwift 10.28.2
macOS Monterey 12.4

Hi @jordimele It seems like you can reproduce this on your side, can you please create a repo so we are able to diagnose the issue.

Hello @dianaafanador3,
here I leave the example repo; It would only be necessary to perform a pod update, because the Pods folder is not uploaded.

@tgoyne is this related to the recent changes in core for been able to build target watchOS?, or could be something different. The issue seems to be that it cannot find librealm-monorepo for architecture armv7k even though it exist on the xcframewok.

I believe there is a new arm64 arch for Apple Watch since Xcode 14. The librealm-monorepo is pre-built so it does not contains that arch, which causes the link error.

Hello,
Is there a solution to the problem in the Archive with watchOS (library not found for -lrealm-monorepo), Realm 10.28.2 and Xcode 14 beta 3?
Thank you

After performing the same test with the new version of RealmSwift 10.28.3 and Xcode 14 beta 4, when performing an Archive with watchOS, the error persists:

ld: library not found for -lrealm-monorepo
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The Build works correctly, but the Archive process is the one that fails.

Me too. This version does not upgraded the realm-core. I tried to build the latest core by myself, but I failed. Still waiting for the next version. 🥲

Hello,
the issue in the Archive with watchOS (library not found for -lrealm-monorepo), with RealmSwift version 10.28.6 and Xcode 14 beta 6 (14A5294g) is resolved.
The problem is that in RealmSwift version 10.28.6, https://github.com/realm/realm-swift/releases/tag/v10.28.6, when downloading the realm-swift-10.28.6.zip file , there is no folder for Xcode 14 with the .xcframeworks (it is only found for 13.1, 13.2.1, 13.3.1 and 13.4.1), so it is decided to use the source code of the realm Source code version (zip) and create the xcframeworks for each platform with Xcode 14 beta 6 (14A5294g).
Realm's own source script (build.sh) is used, but when trying to build the xcframework for watchOS, the script fails:

./build.sh xcframework watchos --> OK
./build.sh xcframework watchos --> OK
./build.sh xcframework watchos --> KO

Ld /Users/jmele/Downloads/realm-swift-10.28.6-source/build/DerivedData/Realm/Build/Intermediates.noindex/Realm.build/Release-watchos/Realm.build/Objects-normal/arm64/Binary/Realm normal arm64 (in target 'Realm' from project 'Realm')
cd /Users/jmele/Downloads/realm-swift-10.28.6-source
/Applications/Xcode-beta6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target arm64-apple-watchos4.0 -dynamiclib -isysroot /Applications/Xcode-beta6.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS9.0.sdk -L/Users/jmele/Downloads/realm-swift-10.28.6-source/build/DerivedData/Realm/Build/Intermediates.noindex/EagerLinkingTBDs -L/Users/jmele/Downloads/realm-swift-10.28.6-source/build/DerivedData/Realm/Build/Products/Release-watchos -F/Users/jmele/Downloads/realm-swift-10.28.6-source/build/DerivedData/Realm/Build/Intermediates.noindex/EagerLinkingTBDs -F/Users/jmele/Downloads/realm-swift-10.28.6-source/build/DerivedData/Realm/Build/Products/Release-watchos -filelist /Users/jmele/Downloads/realm-swift-10.28.6-source/build/DerivedData/Realm/Build/Intermediates.noindex/Realm.build/Release-watchos/Realm.build/Objects-normal/arm64/Realm.LinkFileList -install_name @rpath/Realm.framework/Realm -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/jmele/Downloads/realm-swift-10.28.6-source/build/DerivedData/Realm/Build/Intermediates.noindex/Realm.build/Release-watchos/Realm.build/Objects-normal/arm64/Realm_lto.o -fembed-bitcode -Xlinker -bitcode_verify -Xlinker -bitcode_hide_symbols -Xlinker -bitcode_symbol_map -Xlinker /Users/jmele/Downloads/realm-swift-10.28.6-source/build/DerivedData/Realm/Build/Products/Release-watchos -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -fapplication-extension -lcompression -lz -lrealm-monorepo -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/jmele/Downloads/realm-swift-10.28.6-source/build/DerivedData/Realm/Build/Intermediates.noindex/Realm.build/Release-watchos/Realm.build/Objects-normal/arm64/Realm_dependency_info.dat -o /Users/jmele/Downloads/realm-swift-10.28.6-source/build/DerivedData/Realm/Build/Intermediates.noindex/Realm.build/Release-watchos/Realm.build/Objects-normal/arm64/Binary/Realm
ld: '/Users/jmele/Downloads/realm-swift-10.28.6-source/build/DerivedData/Realm/Build/Products/Release-watchos/librealm-monorepo.a(array_mixed.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld /Users/jmele/Downloads/realm-swift-10.28.6-source/build/DerivedData/Realm/Build/Intermediates.noindex/Realm.build/Release-watchos/Realm.build/Objects-normal/arm64/Binary/Realm normal arm64 (in target 'Realm' from project 'Realm')
(1 failure)
Is it known when the problem will be solved or when the official Realm source code (.xcframeworks) for xcode14 will exist?
Thank you

@jordimele from version 10.28.7, we now package the .xcframeworks for Xcode 14. I'm closing this issue as everything seems to be fixed now

@dianaafanador3 This appears to be an issue still when using SPM and building for iOS, I just tried with v10.28.7

Xcode 14 RC (Build 14A309)
Cocoapods 1.11.3
macOS Monterey 12.5.1
Realm 10.28.7
Hello,
When using the xcframeworks of version 10.28.7, downloaded from the source, the compilation of a project fails:
/Users/jmele/Downloads/PEPE_TEST/PEPE_TEST/ViewController.swift:10:8: error: compiled module was created by an older version of the compiler; rebuild 'RealmSwift' and try again: /Users/jmele/Library/Developer/Xcode/DerivedData/PEPE_TEST-adeupbewgctcgzbnhbergeinsjck/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/RealmBinary/RealmSwift.framework/Modules/RealmSwift.swiftmodule/arm64-apple -ios.swiftmodule
import RealmSwift

Realm's own source script (build.sh) is used to build new xcframework with Xcode 14 RV:
./build.sh xcframework ios --> OK
./build.sh xcframework tvos --> OK
./build.sh xcframework watchos --> OK
But when trying to make a file, it fails:
ld: library not found for -lrealm-monorepo

@dianaafanador3 any idea about the problem?
Is it known if a new version will be released, correcting the problem with the xcframeworks or if the current version (10.28.7) will be modified?
Thank you

Seems like this is not solved in 10.28.7, a new release will be released shortly which includes the xcframework for Xcode 14 RC

Thanks for quick answer.
We are waiting for your news or a new release.

@jordimele we just released a few days ago a new release, can you check if you are still getting the error when archiving.

@dianaafanador3 Sorry I missed the deprecation and didn't notice this was a different issue! Feel free to close, project builds fine now.


⚠ Processors has degraded performance

In d065a1e, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 90 ms

Resolved: Processors performance has improved in 83681aa.


feat(RHINENG-9139): Rename Inventory groups to "Workspaces" in stage

https://issues.redhat.com/browse/RHINENG-9139

This could be closed


Sphinx documentation implemented

This conversation is best suited to a JIRA task.
On 15 Dec. 2016, at 3:32 am, brentonford <notifications<EMAIL_ADDRESS>wrote:
@brentonford commented on this pull request.

In docs/source/conf.pyhttps://github.com/Synerty/pytmpdir/pull/6:

+# The short X.Y version.
+version = '0.1.0'
+# The full version, including alpha/beta/rc tags.
+release = '0.1.0'

+# The language for content autogenerated by Sphinx. Refer to documentation
+# for a list of supported languages.
+#
+# This is also used if you do content translation via gettext catalogs.
+# Usually you set "language" from the command line for these cases.
+language = None
+
+# List of patterns, relative to source directory, that match files and
+# directories to ignore when looking for source files.
+# This patterns also effect to html_static_path and html_extra_path
+exclude_patterns = []
I'll keep sphinx-apidoc to exclude Test modules to avoid the above error.
sphinx-apidoc -f -e -o docs/source pytmpdir '*Test.py'
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHubhttps://github.com/Synerty/pytmpdir/pull/6, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFkNU10r_d1UW0CLH_dBL3Bb98Tyyhsvks5rICg1gaJpZM4LMabi.


DHARMA_INSIDENKPadangRoco - attribute @n on an lg element

Dear @ekobastiawan  and @arlogriffiths,
In your edition Padang Roco, you have added a value ABCD4 in an attribute @n for <lg>such as  <lg n="ABCD4" met="anuṣṭubh">. So far, we have planed to only have integer numbers as content for @n on <lg>.
Does it mean you need a broader offer of content for this attribute to encode this file?
I see in the previous lines you have encoded similar content on <lb/> element such as <lb n="ABCD4"/>. Note that the value ABCD4 appear twice in your file. Is it correct?
Can you check this please?
Thanks,
Best,

I hadn’t yet had the change to revise Eko’s encoding.
Eko’s use of ABCD was one of the things I needed to think about but that seemed in need of correction. We’ll get to work on it asap.
Thanks!
Le 9 avr. 2021 à 10:58, ajaniak<EMAIL_ADDRESS>a écrit :
Dear @ekobastiawanhttps://github.com/ekobastiawan and @arlogriffithshttps://github.com/arlogriffiths,
In your edition Padang Roco, you have added a value ABCD4 in an attribute @n for such as . So far, we have planed to only have integer numbers as content for @n on .
Does it mean you need a broader offer of content for this attribute to encode this file?
I see in the previous lines you have encoded similar content on  element such as . Note that the value ABCD4 appear twice in your file. Is it correct?
Can you check this please?
Thanks,
Best,
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/erc-dharma/tfc-nusantara-epigraphy/issues/44, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAGMAE5CT3OY2YMV2MJ2RGDTH26SXANCNFSM42UR22LQ.


Add post-processed graph analytics from networkX

Does this PR close any open issues?
Closes #  N/A
Give a longer description of what this PR addresses and why it's needed

This PR includes support for new API endpoints:  nodes_stats, nodes_filtered, edges_filtered.
The first endpoint provides server-based calculation for betweenness centrality, node centrality, pagerank, and in/out node degree
The second and third endoint enable extraction of a subgraph from a large graph by specifying a minimal threshold for in or out degrees of nodes to be included.  Current behavior returns some unconnected nodes.  Will look into this...

Provide pictures/videos of the behavior before and after these changes (optional)
Are there any additional TODOs before this PR is ready to go?
Further testing by Jack.
TODOs:

[ ] Determine why nodes_filtered endpoint can return disconnected nodes

Second commit is to loo with Arango cursors to pull all nodes and edges.  Previous behavior (first commit) stopped at 1000.

I replaced networkX with graph_tool.  The interface is the same.  Performance should be better on large graphs.  I pushed changes to this PR without style fixes yet, so Jack could look at it.  I will next address Roni's review comments before we decide to merge.

We opted to close this PR, in favor of running algorithms directly inside Arango via Pregel and AQL.


This note need rephrase

Password expiration notifications are no longer supported in the Microsoft 365 admin center or any Office apps.
When reading this note for the first time it mentioned Microsoft O365 Admin center which means that notifications are stopped for users with admin roles only that have access to O365 Admin portal and the rest of users will continue receieve notifications normally which is not correct !! I believe this is need to be changed to "Notifications no longer supported in portal.office.com" to include all users.
Also "Office apps" need to be change to "Office web apps" to be more specific!!

@MGamil-MSFT Please indicate which document you are referring to. Thanks

https://docs.microsoft.com/en-us/microsoft-365/admin/manage/set-password-expiration-policy?view=o365-worldwide
The above document under (Set password expiration policy)

@MGamil-MSFT Thank you for your feedback. We have made changes to the document via PR#https://github.com/MicrosoftDocs/microsoft-365-docs/pull/7292
Thanks
Sri

@MGamil-MSFT Author has confirmed that the notifications aren’t just on Office web apps. They don’t appear in any Office apps. Also, our updated terminology for the portal is the M365 admin center.
CC: @kwekuako
Thanks
Sri

Many thanks for the explanation!
last question .. if O365 Password expiry notifications no longer appears in O365 portal, why the below option still exist in the global organization settings? "Days before a user is notified about expiration"

@kwekuako The option in the admin center still exists. Is this something that needs to be escalated to the Product team for removal?
Thanks
Sri


Tag v0.6

@JuliaRegistrator register branch=release/v0.6

Registration pull request created: JuliaRegistries/General/82888
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.6.0 -m "<description of version>" deccef6fcd8914c0df6d52d1b067baaf55641e14
git push origin v0.6.0


Handling imbalanced Dataset

Understanding the dataset
The dataset has 4330 entries. Though it has 18 columns, we are only interested in two columns, Text Content and Code. The goal is to read the texts and predict code. The dataset has total 13 classes.
However, the dataset is highly imbalanced.  Here is the class distribution.

Balancing
The goal is to minimize the effect of lack of balance in dataset in model training. There are many ways to handle the imbalanced data. This paper describes specific ways to deal with imbalanced text dataset.
Data Augmentation
I think data augmentation will be suitable for this task. Some data augmentation techniques have been elaborated here.

Class weight has been introduced in InfoTypesDetectionOss.py file (https://github.com/tamanna037/InformationTypesDetectionNLP/pull/10)


Allow user to set parameters of HXTelemetry config

Allow the user to set parameters of the Telemetry config via a public static config accessor. Features of this implementation include:

app title still set from Telemetry.hx, telemetry still instantiated from early in framework (Stage)
error message if set too late (must be a static function initializer, before stage is constructed)

I guess the static initializer is questionable -- perhaps there is another way? How is app title parsed? I don't love the idea of cross-platform locating and parsing a .telemetry.cfg config file (like Flash -- this is one of the most irritating components of telemetry, imo, plus options may be different), or using compiler defines (might cause full recompile when not necessary.) But I'm happy to discuss.

@jgranick - I want to document how this is done (and what works in legacy vs next.) I see this code in Telemetry.hx:
	#if !lime_legacy
	config = (Lib.application.config:Dynamic).telemetry;
	#else
	config = ApplicationMain.telemetryConfig;
	#end

I assume this means that, for legacy, we use the static initializer:
(static function initTelemetry() { })(  ApplicationMain.telemetryConfig.allocations = true; etc; )

While for next we add to the project xml, e.g.:
 <config:telemetry host="<IP_ADDRESS>" allocations="true" />

I'll test this, but is this generally your recollection / intent?
(And note to self -- it looks like the above code was added in 3.3.0).
Thanks,
-Jeff

You should be able to use <config /> for both, try it :smile:

Oh, great, I'll try (last time I think I had <config:hxtelemetry> which I believe was the problem? Anyway, I'll try this afternoon.


Create Option to use float32

closing since it was determined the since all* sparse linear algebra methods use Float64 there are no improvements and all entries get promoted


Add predicates for option flag support for SimpleQueryParser.

Add predicates for option flag support for SimpleQueryParser.
                  select = scope.predicate().simpleQueryString()                             .field("shoppingName").boost(0.5f)                             .matching(searchFullText)                             .flags()                             .disable(SimpleQueryFlag.PHRASE)                             .defaultOperator(BooleanOperator.AND);

All the time adding formatting rules in NetBeans. There are rules in line with the design requirements. Can these rules be adopted, not a harm but will help others in the future what they write on NetBeans?

Thanks for your contribution. I added a few comments.
The problem about nb-configuration.xml should be solved now: I changed the .gitignore file. Just rebase on master and you should be fine.
Regarding this PR, there are three main items to work on:

Implementing the Elasticsearch part
Testing
Documenting the feature

I opened #2234 , which takes the core of your implementation and adds the Elasticsearch implementation, tests in the TCK, and some minimal documentation.
I will continue the work on that other PR and close this one. Thanks for your work, @wklaczynski !


Is there any "item" example that I can use as a Base?

I don't need a complex example, just a really basic item (like when used take hit then take a random item and does "this animation") example model for item, and that's it. And an example of an AI code that, for example, when he sees that item, I always use it.
Or is there any easy way to port item codes to modding?
Because it seems the Steam version doesn't have any file that I can install other than an exe file.
If any kind of example item is added, it will be massive for modding.
I'm asking this because on "Read Me" file you give examples but all of them is super spesific

unfortunately it's something i was working on but found really no good way of implementing given the way the game has been coded, I've been inactive for a while as I'm currently working on a game of my own.
Though if you're still willing to try, you could snoop around in the source of the game and try to find a way to make it work.


Horizontal Scroll Splits Tip from Text & Arrow

When there is horizontal scroll on the page, and the tip is off the page, the tip does not display next to the text and arrow.

Fiddle: http://jsfiddle.net/2agt9vqx/

The issue is now fixed.
http://jsfiddle.net/object505/0L3z7yg5/
As soon as I test the solution on multiple devices and os and find it working perfectly I will make an update to the plugin :)

Excellent. We will test as well. Thank you.

New version 1.0.2 is out.
This issue is fixed and also there are css3 animation effects for showing/hiding the tooltip.

Excellent. Thanks.


How to show multiple data to respective multiselect(dropdown)?

Hi all,
So the expected behaviour, when the page first loads, i want to get data from the server to display in respective dropdowns. However, i'm unable to display in the respective Multiselect, dropdown, because i'm using v-for to generate the rows of data.
I have this rows of items details that is created using v-for.
And this is the data I want to put into each dropdown.
"displayStaff": [
    {
      "staffId": "e35a49d8-2011-4644-abad-ef316fcfe3c2",
      "name": "Katy Perry"
    },
    {
      "staffId": "e6fee6f0-2d2c-4a3d-8f93-c1e03d08a9e7",
      "name": "Mary Heng"
    },
    {
      "staffId": "e6fee6f0-2d2c-4a3d-8f93-c1e03d08a9e7",
      "name": "Mary Heng"
    },
    {
      "staffId": "e35a49d8-2011-4644-abad-ef316fcfe3c2",
      "name": "Katy Perry"
    }
  ]

However, I can't seem to get each json object into the respective dropdown when the page first uploads.
This is my code for Multiselect, dropdown:
      <multiselect
        :id="item"
        :value="displayStaff"
        :options="allStaffs"
        :searchable="false"
        :allow-empty="false"
        :show-labels="false"
        label="name"
        track-by="name"
        @input="updateStaffData"
        @open="openStaffOptions"
        >
      </multiselect>

Here is the reproduced jsfiddle:
https://jsfiddle.net/maryheng/34geecr0/1/

Hi @maryheng,
Can you please elaborate a little bit more on what is supposed to happen?

In your fiddle you have three identical v-for blocks and only one item in each block, is it supposed to be so? Or maybe what you really want is one v-for with three items?
Also, do you want to have same options in all dropdowns? If yes, you could just update options when you receive data from the server and just pass the same options for all multiselects.
You're using :key="item" in your v-for block, which is probably not what you want. Instead I recommend that you assign an ID to each item (in other words: add an ID property to each item object or use existing property as an ID). That way you can safely add value field to each item and use it with multiselect, like this:<div v-for="item in itemArray" :key="item.id">
  ...
  <multiselect :value="item.value" ...></multiselect>
</div>

and itemArray will be of this shape:itemArray: [{ id: 1, value: null, ... }, { id: 2, value: null, ... }, ...]

You're passing displayStaff array as value to multiselects, but you don't have multiple choice enabled. So either you want to enable it or to pass a single object as a value.

Hi @Zip753 , sorry for the confusion. Maybe I will explain the background to be more clear.
Basically, I have an update page which looks something like this:

So first to generate those item details, I used a v-for to generate rows of input fields and the dropdown from multiselect. I'm able to get data from the array and bind it to the respective input fields. However, I do not know how to bind respective data to the respective multiselect dropdowns.
Basically, the data I get back from the server dyanmically is itemArray, and i want to use the staffId in the itemArray to cross-reference to the displayStaff to get the name and then display the name respectively to the respective dropdowns.
Hence, the expected behaviour would show, 1st dropdown would display = Katy, 2nd dropdown would display = Selena, 3rd dropdown would display = Susan.
Updated fiddle: https://jsfiddle.net/maryheng/34geecr0/5/
Is there a way I can do this? Thank you for your time!

Thanks for the description, it's seems to be much more clear now, though I still don't see how options and displayStaff are different.
As far as I understood, for each item you want to associate the item's multiselect with the value from displayStaff that has the matching ID. Since multiselect's value is one of the options, you'll have to find it yourself, the simplest way that I can think of (not sure if the best actually) is to define a method that would return a value from displayStaff that matches the item's staffId, for example like this:
methods: {
  findValueForItem (item) {
    return this.displayStaff.find(i => i.staffId === item.staffId)
  }
}

and then bind findValueForItem(item) to multiselect's value. Now you also have to update staffId whenever you change the value, this can be achieved by using the custom handler, like this:
methods: {
  updateItemWithValue (item, selectedOption) {
    item.staffId = selectedOption.staffId
  }
}

and then using it as an event handler via @input="updateItemWithValue(item, $event)" (I wish there was a cleaner way to do it; $event corresponds to the selected option in this case).
Here's the updated fiddle: https://jsfiddle.net/zip753/34geecr0/6/
P.S. I really recommend that you change your key in v-for, it's potentially dangerous and Vue will scream in the console until you change it.

Hi @Zip753 , sorry for the delayed reply. Thank you for your advice and explanation! I'm able to understand and port it over to my project and it works too! Also, took your advice in changing the key in v-for. Thank you for your help 👍


Docs describing k8s event generator yaml files

Docs corresponding to the falco changes that add k8s resource files to
allow running the event generator in a k8s cluster.

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind user-interface

/kind content

/kind transalation

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area blog

/area documentation
What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Docs corresponding to the falco changes in https://github.com/falcosecurity/falco/pull/1088

Thanks for your pull request. Before we can look at it, you'll need to add a 'DCO signoff' to your commits.
:memo: Please follow instructions in the contributing guide to update your commits with the DCO
Full details of the Developer Certificate of Origin can be found at developercertificate.org.
The list of commits missing DCO signoff:

5b21a82 Docs describing k8s event generator yaml files

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign kris-nova
You can assign the PR to them by writing /assign @kris-nova in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

I'll approve this one but let me add an hold to block this until we merge in Falco
https://github.com/falcosecurity/falco/pull/1088
Everyone, feel free to remove the old once that PR is merged

LGTM label has been added.  Git tree hash: 5129117da93fcdeac4c9a543544b82d8698f815b

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: fntlnz
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [fntlnz]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Passing multiple jars in via wildcard yields unhelpful error message "no POM in this directory"

I get this error message if I specify multiple jars as input (e.g passing in file: *.jar of some sort that results in myCode-0.0.1.jar and myCode-0.0.1-sources.jar both being picked up):
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/tmp/build/put). Please verify you invoked Maven from the correct directory. -> [Help 1]
It would be helpful if the error message were more explicit about the real issue, which is that you need to specify exactly one file.

I'll take a look at this!


angular-cli should be installed like nvm

it should be performed as:
there is a .nvm under home dir, and versions of ng are installed there

Hey @fuzheng1998 thank you for your comment I'd like to clarify that NGVM is not like .nvm where there's a hidden directory (like .nvm) managing multiple NodeJS versions. Instead, NGVM is a tool to manage Angular CLI versions specifically for your Angular projects.
With NGVM, there isn't a global .ngvm directory. Rather, NGVM helps to manage the Angular CLI version used within a particular project's own configuration. It's designed to ensure that the Angular environment is consistent and isolated per project, which is particularly useful when different projects require different Angular CLI versions. It ensures that each project uses the version it was developed with, without affecting the system-wide installation or other projects.
So, to sum up, NGVM manages the Angular CLI on a per-project basis, without the need for a global directory like .ngvm.
If you have any more questions or need further explanation, feel free to ask!


Add fish path instructions

Thanks, but we're going to just assume people that use fish know what to do haha


Set data from objects array?

hello man,
how set data preloaded in a array as data source, not through a url?

I have the same question

Please check the issue #37.

Thanks, awsome...


backport: (Partial) Merge bitcoin#18842, 20736, 21162, 21043, 162, 17556, 18017, 18722, 18795, 19362, 20932

Issue being fixed or feature implemented
bitcoin backports
What was done?
Backported bitcoin changes
How Has This Been Tested?
CI Run

Hello @UdjinM6 , requesting review

Hello @UdjinM6 @PastaPastaPasta , requesting review

Hello @knst @UdjinM6 and @PastaPastaPasta , Requesting review again, had to fix merge conflict, on src/addrman.h file ,

also, no commit is marked "partial" now so PR title shouldn't have "(Partial)" either

ff5dcbe is meaningless, should be dropped

dropped 18722

ping @knst


[cmd] STATUS - show status of a local dat

From @joehand on January 3, 2017 18:55
dat status
v1
Show information about the dat in a folder (without connecting to network)

[ ] total size
[ ] how much is synced (based on last connection()
[ ] Last sync date

v2
Show information with network connection

[ ] Whether up to date
[ ] Health?

Copied from original issue: joehand/dat-next#57

From @karissa on January 12, 2017 0:16
do we need this for 2.2.0?

Started this in the status-cmd branch. Right now it prints metadata blocks and content blocks.

Added basic status command in v13.1.
I'm going to close this until we get some more definitive feedback on what would be helpful.


regenerate interface code on thrift 0.17.0

In https://github.com/palantir/cassandra/pull/432 we manually modified the generated code in order to bump the runtime dependency on libthrift to 0.17.0, so now we can't make changes to thrift and re-generate without having to re-apply the manual changes.
This change updates the code-gen to be generated from thrift 0.17.0, which shouldn't require the manual changes anymore.
In order to install thrift 0.17.0 locally I used an old git commit of the Homebrew source and installed from like this...
homebrew-core tpetracca$ git remote -v
origin	https://github.com/Homebrew/homebrew-core.git (fetch)
origin	https://github.com/Homebrew/homebrew-core.git (push)
### this commit hash is the last change to the thrift formula before they upgrade from 0.17.0 to 0.18.0
homebrew-core tpetracca$ git checkout 8f0b9dde69b560dbffad719e3a341fa3018cca7d
HEAD is now at 8f0b9dde69b thrift: brew style --fix
homebrew-core tpetracca$ brew install ./Formula/thrift.rb
... it installing ...

I attempted the codegen locally and it included a license header on each file.

I've also created a homebrew tap that should make it easier install thrift in thrift in the future
brew install<EMAIL_ADDRESS>

👍

@rhuffy it seems your latest rc tracked: https://github.com/palantir/cassandra/commit/0c57e05064988e8426b38b2fe07d0cd9a4218787. Can you give more context on the changes since then? More specifically this commit: https://github.com/palantir/cassandra/pull/577/commits/a82c1c864dd1f2b111a07ee3d8981bf410764f82

Ah nvm, seems like most of the changes from this commit are just dates

Yes, that's correct. I also set an option in build.xml to not include the dates, so future re-runs of ant gen-thrift-java can be no-ops if the interface or generator has not changed.


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 2323 ms

Resolved: Bofrost.at performance has improved in 5119eb4 after 6 minutes.


Xamarin.Forms ReactiveUI Quickstart

I've created a Xamarin.Forms ReactiveUI quickstart here
Here is the reason I created this quickstart:
There is no ReactiveUI skeleton app in existence that has all the basics:
login page
terms and conditions
svg support
sqlite
google analytics
unit testing
The couple examples here and there aren't good enough for people to get started.  It takes so much time to figure some of this stuff out and people need a head start to get working with the basics.  I'm not saying my quickstart needs to be the one people use but someone needs to create one!!!  I think the most difficult aspect for most people is switching between a login page and the home page that is a MasterDetailPage,  also implementing sqlite can be tough.  At the same time they don't need something so advanced that they can't make heads or tails what they are looking at either.  Also, if you guys would get routing working with MasterDetailPage that would be great.

This issue would suffice.


Add vnet support

This is draft. I'm waiting for release in TF provider in 2 weeks.
PRs that I'm waiting for:
https://github.com/cloudflare/terraform-provider-cloudflare/pull/1672
https://github.com/cloudflare/terraform-provider-cloudflare/pull/1668
After release go.sum & go.mod will change but everything else will remain the same.
This PR adds support for virtual networks in cloudflare.
Related issues:
https://github.com/cloudflare/terraform-provider-cloudflare/issues/1605
https://github.com/cloudflare/terraform-provider-cloudflare/issues/1602

These resources will be picked up automatically when they are released in the upstream Terraform provider, within a few weeks generally.  If you see that the upstream release has happened, feel free to open an issue here and we can try to speed up the new pulumi-cloudflare version release.


could you show rollup config file?

if you want, please

@a13821190779 Hi! Sure.

Boilerplate: hyperapp + jsx + rollup + buble minimal.
Boilerplate: hyperapp + jsx + rollup minimal

Hope it helps. 👋

@a13821190779 there is also a few project starter boilerplates on awesome-hyperapp.
The one I use (with a rollup config) and maintain is hyperapp-pwa.

excuse me, how are you minigy html code?
I find long time but no itme

@a13821190779 there is no minification of HTML in these pipelines. In hyperapp-pwa there is very benefit of doing so. However all javascript (including views written with h or JSX) and all styles get bundled and minified by rollup-plugin-uglify.

but rollup-plugin-uglify minify js only, all right, I will try it one mone time, hope done and thank you

@a13821190779 why do you want to minify HTML?

habit, even the speed is slightly improved, worth it

I see.. well I tried minifying the index.html from hyperapp-pwa out of curiosity and it saves ~58 bytes. Not sure this is going to make much difference to perf (especially when gzipped) but let me know if you find a rollup solution!

Original (820b)

<!DOCTYPE html>

    <meta charset="utf-8">
    <title>hyperapp-pwa</title>
    <meta name="description" content="A minimalist progressive web app compliant template for hyperapp projects">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="theme-color" content="#ffffff">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <link rel="manifest" href="/manifest.json">
    <link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon.png">
    <link rel="icon" type="image/png" href="/icons/favicon.png">

  Enable JavaScript

Minified (762b)

<!DOCTYPE html>  <meta charset="utf-8"> <title>hyperapp-pwa</title> <meta name="description" content="A minimalist progressive web app compliant template for hyperapp projects"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="theme-color" content="#ffffff"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <link rel="manifest" href="/manifest.json"> <link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon.png"> <link rel="icon" type="image/png" href="/icons/favicon.png">    Enable JavaScript


ENH: stats: override _rvs for nhypergeom

Reference issue
gh-10106
What does this implement/fix?
Overrides _rvs for nhypergeom, which was the slowest among the discrete distributions.
The approach is to create a fast inverse cdf with interp1d then do inverse transform sampling. The support of the distribution is the integers 0, 1, ..., n) so this tends to be quite fast, and it's exactly as accurate as the cdf.
My guess is that ppf is more often called for one or a few points whereas it is common for many random variates to be generated at once, so I put the cdf inversion inside _rvs only rather than in _ppf.
This could be further improved, of course (e.g. use the default if c * np.prod(size) < n, where c is the expected number of cdf evaluations needed for the default ppf method to converge), but I'm not sure if that's important.
Additional information
Mostly I did this to better understand how rvs works with ndarray shape parameters. If this approach is OK, I will try to break the approach into a function so that there is an easy, standard way of getting the desired broadcasting behavior from an _rvs function that natively handles only scalar shape parameters.
Update: now uses the decorator written for the nchypergeom_...s to do the broadcasting.

@tirthasheshpatel What do you think of this as a way to speed up RVS for nhypergeom?
from scipy.stats import nhypergeom
%timeit nhypergeom.rvs(22, 7, 13, size=10000)

Before:
4.11 s ± 7.84 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

After:
1.12 ms ± 1.98 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)

Identical random variates.

@tirthasheshpatel What do you think of this as a way to speed up RVS for nhypergeom?

Thanks, @mdhaber. It's really cool. Simple and fast!


Run loop spinner wake-up timer should first fire after maxSleepInterval

Run loop spinner wake-up timer should first fire after maxSleepInterval
Prevent the need for CFBridgingRetain+CFRelease and use ARC

LGTM


PLS

Hi dudes,
Did you think about the big size of the official app in mac? I mean, why we cant just to open tabs like fb or somethin?
I think that this is a good point to do the app better, If I should choose between official and non-official, things like this could be making the difference.
PD: I´ve been using chitchat since release; after I used the official. Keep working dudes! you are amazing!

SORRY FOR MY ENGLISH; IM SEXY SPANISH LATINO

Sorry, i don't understand what you mean ...
You know that this is "only" a wrapper for an web application ya?


Rutinator

Rutinator is the new app designed to make people do their tasks in a timely manner.
It's being developed by @junglebooboo and @Mangokitten.
For starters it's going to be a dashboard app. Might get some custom views for mobile friendlyness etc.
This issue is mainly used as a reference and todo list for the app.

Some kind of spec
Models:
Task
- group -> if group is chosen: - person
- title
- description
- completed
- completed date
- deadline

Functions
- Select random person from group to do this task
- Send notification emails
- Notifications for dashboard
- Integration on dashboard front page
- Recurring tasks

Progress
Models

[x] Custom task
[x] New
[x] Edit
[x] Clean overview

Functions

Selection

[x] Select person for task
[x] Select group for task
[x] Select random from a group
[ ] Option for multiple groups

Users

[ ] Filter users by group
[ ] User picker from group
[ ] Rotation - check users already picked (to avoid repetitive selection)

Notifications

[x] Send notification emails
[ ] Dashboard notifications

Recurring tasks

[ ] One-time-tasks or recurring tasks
[ ] Interval (how often) if recurring
[ ] Send mail intervals (option)
Implementation

[ ] Step-by-step view (tabs/windows)
[ ] Make it an "app"

This is like super-dead now, right? Can we close the issue @oleast?

I agree that we should close it.


Add attribute to head

How to add attribute to actual head? Why I can't find no info in Docs? This is stratnge.
 <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#">

@Atinux MDN does say the following:

Attributes
This element includes the global attributes.
profile
The URIs of one or more metadata profiles, separated by white space.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head
Looks like only the special attribute profile is mentioned as deprecated.


live demo does not work, agenda folder, approvals

Hello this link doesnt work https://www.mun-tools.com/
great work btw. 👍🏾

[ ] is there an ability to vote and create a meeting minutes folder
[ ] is there an approval flow we can use with this for eg. users or manager needs to approve new agendas etc.

Hi,
could you elaborate a bit more on those two things?
I'ts unclear what you mean by "meeting minutes folder".
Regarding the second question, do you mean a check or restriction which should prevent uncontrolled creation of new agendas?
Maybe if you could tell us about that workflow you mentioned we can provide more information.
Thank you for your interest in the project

hi thanks for taking the time to respond.
Voting-Agenda-Folder/Dockett, For e.g. if there were a board meeting held - this typically produces  votes, agenda items, issues etc. Collectively it would nice to gather that as a folder item corresponding to that meeting so that it could be tracked or revisited later.
This collection could be a dynamicobject or composite object that holds those items
In reference to the second item, often agenda items or issues discussed would be taken up as follow up action items to be resolved. When they are resolved by one of the community members, then it would be routed for approval to a board member or someone else who would verify and approve it.


support for bcm2711-rpi-cm4s

recipes-bsp/common, recipes-kernel/linux, conf/machine/raspberrypi-64.conf, conf/machine/include/rpi-base.inc
Added support for bcm2711-rpi-cm4s.dtb.

update kernel to --> 5.10.92, 650082a
update firmware to --> 20220120, c6d5656

Reference

https://github.com/raspberrypi/linux/pull/4761

Signed-off-by: Jesse Beard<EMAIL_ADDRESS>

This looks reasonably fine excepting for the git log format. Please take a look at https://meta-raspberrypi.readthedocs.io/en/latest/contributing.html#formatting-patches

@agherzan What do you require to merge this?  Are you unhappy with the PR text or something else?

The PR misses some stuff. But I want those to be checked now with the CI. So I'm postponing the merge for a couple of days until the CI changes get in.
For example, you miss SoB, I would split the kernel and firmware update to the dtb inclusion (3 commits), I would like to keep the namespace subject format etc. Generally, a git log would give you examples of how git log is expected and also the contribution documentation should provide details and examples. Have you seen it?

I have adjusted the git log for the commit.  Lmk if you want the commit split into (3) vs. the single commit and I will do so once you confirm.

That would be great. One for firmware bump, one for kernel bump and one for the dtb inclusion. Check git log on existing files to check examples of commit logs. We could actually drop the kernel update altogether as there is a pending update for 5.15 which will most probably get in before this.

Closing in the favour of: https://github.com/agherzan/meta-raspberrypi/pull/1023

@jsebrd I've looked a bit more into this and it looks that the dtb is only available for arm and not arm64. I see you included it for arm64 along with all the other machines. Was that by mistake?

@agherzan I will review the commits again and update here.  I integrated the dtb in the way I thought was correct based on my research.  We can work on another PR together to get this properly merged.

@agherzan So I reviewed the PR and commits I did previously and now much better understand what is happening and where I went wrong the first time.  I no longer require a fork.  Because you have updated the included kernel to 5.15.x line which includes the .dts source I need, all I needed to do was create:
/recipes-bsp/bootfiles/rpi-bootfiles.bbappend

RPIFW_DATE = "20220308"
SRC_URI[sha256sum] = "5b088e6b39d0054b863c5e9746a8623297e3c8cd98a2ab284a200f54344842da"

The firmware checksum was calculated against the binary as:
sha256sum raspberrypi-firmware_1.20220308.orig.tar.xz

And in my local.conf (can also place in distro .conf) ...
RPI_KERNEL_DEVICETREE:raspberrypi4 = "bcm2711-rpi-cm4s.dtb"

This provides exactly what I need for my specific purposes and eliminates all other non-supported Pi variations and a much leaner /boot.
Last thing, as the /boot/config.txt requires otg_mode=1 for proper USB support when we are using the cm4s, I am going to examine creating:
/recipes-bsp/bootfiles/rpi-config_git.bbappend

...to automate the process of adding to the /boot/config.txt.
I am working against meta-raspberrypi/master until you create an official kirkstone branch which I will do as well when you do.
This approach works like a champ for me, but if any of this seems janky, please let me know.


Have division always return a float in the new query engine

Fixes #5892.

@pauldix @benbjohnson

lgtm


bus route numbers no longer appear in the pull-down menu

As of a couple days ago, the bus route numbers no longer appear in the pull-down menu. Instead, the route origins and destinations appear. Can both be visible like so?
…
87 — Clarendon Hill - Lechmere via Highland Avenue
88 — Clarendon Hill or Davis - Sullivan
90 — Davis - Wellington
…

Thanks for bringing this to my attention, it's now fixed.


Custom Tasks: Allow use of workspaces

Feature request
This is a follow-on to #3463.
Custom tasks currently cannot be passed workspaces.  This may limit their usefulness since workspaces are a common way for sharing information.
Use case
This is needed to complete the work for https://github.com/tektoncd/community/blob/master/teps/0002-custom-tasks.md

I will work on this after #3463 is merged.


add back pil_to_array function for use with old versions of PIL

Old PIL does not load images correctly in Spark using the new-style array(pilimg) syntax, however the new pillow module appears to handle this correctly. Here fall back to matplotlib's old pil_to_array conversion if we detect that we've got PIL but not pillow installed.
Without this PR, loading tifs (at least single-page tifs, possibly others) with PIL 1.1.7 leads to results like the following:
In [15]: data = tsc.loadImages('/path/to/tifs/', inputformat='tif-stack')
In [16]: data.first()[1].shape
Out[16]: (1, 1, 1)
In [17]: data.first()[1]
Out[17]: array([[[ <PIL.TiffImagePlugin.TiffImageFile image mode=I;16 size=512x512 at 0x3B02B00>]]], dtype=object)

LGTM, thanks @industrial-sloth . Eventually it'd be best to eliminate our dependence on PIL/pillow entirely, but for now this is what we have to do.


Use exists() instead of count() in populate_history command

Problem Statement
The populate_history commands take a long time to run when history tables have many rows, mainly because of the count() query  that checks if the history already exists:
https://github.com/jazzband/django-simple-history/blob/0f5e15973be68cd40186ac3aebd01d9b620a8e29/simple_history/management/commands/populate_history.py#L159
Describe the solution you'd like
I am wondering if the count() query could be changed to exists() instead. Since the count is only used to check if it returns a truthy value, I believe exists would be a better fit and faster to run. If that is ok, I am happy to send a PR.
Describe alternatives you've considered
Additional context

Sounds reasonable to me.  Is there an existing test that covers this code path?

I believe so. There is a PopulateHistory TestCase
https://github.com/jazzband/django-simple-history/blob/5dfb2f31b343dceb47f514b001bc5031d686a16a/simple_history/tests/tests/test_commands.py#L37
with a specific test with existing objects:
https://github.com/jazzband/django-simple-history/blob/5dfb2f31b343dceb47f514b001bc5031d686a16a/simple_history/tests/tests/test_commands.py#L120

Feel free to open a pull request to make this change.

This can probably be closed, it has been released in 3.2.0 through the aforementioned MR.

I agree, closing 🙂


Can't compile on Ruby 3.0: No builder for extension 'ext/tiktoken_ruby/Cargo.toml'

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
No builder for extension 'ext/tiktoken_ruby/Cargo.toml'

Gem files will remain installed in<EMAIL_ADDRESS>for inspection.
Results logged to<EMAIL_ADDRESS>/Users/taf2/.rvm/rubies/ruby-3.0.5/lib/ruby/3.0.0/rubygems/ext/builder.rb:144:in build_error'   /Users/taf2/.rvm/rubies/ruby-3.0.5/lib/ruby/3.0.0/rubygems/ext/builder.rb:125:in builder_for'
/Users/taf2/.rvm/rubies/ruby-3.0.5/lib/ruby/3.0.0/rubygems/ext/builder.rb:150:in build_extension'   /Users/taf2/.rvm/rubies/ruby-3.0.5/lib/ruby/3.0.0/rubygems/ext/builder.rb:193:in block in build_extensions'
/Users/taf2/.rvm/rubies/ruby-3.0.5/lib/ruby/3.0.0/rubygems/ext/builder.rb:190:in each'   /Users/taf2/.rvm/rubies/ruby-3.0.5/lib/ruby/3.0.0/rubygems/ext/builder.rb:190:in build_extensions'
/Users/taf2/.rvm/rubies/ruby-3.0.5/lib/ruby/3.0.0/rubygems/installer.rb:837:in build_extensions'   /Users/taf2/.rvm/gems/ruby-3.0.5@ctm3/gems/bundler-2.4.4/lib/bundler/rubygems_gem_installer.rb:72:in build_extensions'
/Users/taf2/.rvm/gems/ruby-3.0.5@ctm3/gems/bundler-2.4.4/lib/bundler/rubygems_gem_installer.rb:28:in install'   /Users/taf2/.rvm/gems/ruby-3.0.5@ctm3/gems/bundler-2.4.4/lib/bundler/source/rubygems.rb:200:in install'
/Users/taf2/.rvm/gems/ruby-3.0.5@ctm3/gems/bundler-2.4.4/lib/bundler/installer/gem_installer.rb:54:in install'   /Users/taf2/.rvm/gems/ruby-3.0.5@ctm3/gems/bundler-2.4.4/lib/bundler/installer/gem_installer.rb:16:in install_from_spec'
/Users/taf2/.rvm/gems/ruby-3.0.5@ctm3/gems/bundler-2.4.4/lib/bundler/installer/parallel_installer.rb:155:in do_install'   /Users/taf2/.rvm/gems/ruby-3.0.5@ctm3/gems/bundler-2.4.4/lib/bundler/installer/parallel_installer.rb:146:in block in worker_pool'
/Users/taf2/.rvm/gems/ruby-3.0.5@ctm3/gems/bundler-2.4.4/lib/bundler/worker.rb:62:in apply_func'   /Users/taf2/.rvm/gems/ruby-3.0.5@ctm3/gems/bundler-2.4.4/lib/bundler/worker.rb:57:in block in process_queue'
/Users/taf2/.rvm/gems/ruby-3.0.5@ctm3/gems/bundler-2.4.4/lib/bundler/worker.rb:54:in loop'   /Users/taf2/.rvm/gems/ruby-3.0.5@ctm3/gems/bundler-2.4.4/lib/bundler/worker.rb:54:in process_queue'
/Users/taf2/.rvm/gems/ruby-3.0.5@ctm3/gems/bundler-2.4.4/lib/bundler/worker.rb:90:in `block (2 levels) in create_threads'
An error occurred while installing tiktoken_ruby (0.0.3), and Bundler cannot continue.
In Gemfile:
tiktoken_ruby

Looks like need ruby 3.2?

Whops, thanks for letting me know. I think the precompiled native extension should work fine with Ruby 3.0, but I can reproduce a problem installing with gem install tiktoken_ruby --platform ruby and that was meant to work. I think if I switch back to rb_sys it will work in earlier version so I'll try to get a version out with that change here relatively soon

This should be fixed in 0.0.4, let me know if it seems like it isn't

It's fantastic that you provided the precompiled binaries for x86, arm for both linux and mac!   I'm having an issue on ruby 3.2 however adding this to bundler via bundle add tiktoken_ruby, i am getting:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory<EMAIL_ADDRESS>/Users/taf2/.rvm/rubies/ruby-3.2.2/bin/ruby extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
	--with-opt-dir
	--without-opt-dir
	--with-opt-include
	--without-opt-include=${opt-dir}/include
	--with-opt-lib
	--without-opt-lib=${opt-dir}/lib
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/Users/taf2/.rvm/rubies/ruby-3.2.2/bin/$(RUBY_BASE_NAME)
<internal:/Users/taf2/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file --
rb_sys/mkmf (LoadError)
	from <internal:/Users/taf2/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from extconf.rb:4:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in<EMAIL_ADDRESS>for inspection.
Results logged to<EMAIL_ADDRESS>
  /Users/taf2/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/ext/builder.rb:119:in `run'
  /Users/taf2/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/ext/ext_conf_builder.rb:27:in `build'
  /Users/taf2/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/ext/builder.rb:187:in `build_extension'
  /Users/taf2/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/ext/builder.rb:221:in `block in build_extensions'
  /Users/taf2/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/ext/builder.rb:218:in `each'
  /Users/taf2/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/ext/builder.rb:218:in `build_extensions'
  /Users/taf2/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/installer.rb:843:in `build_extensions'
  /Users/taf2/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/rubygems_gem_installer.rb:72:in `build_extensions'
  /Users/taf2/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/rubygems_gem_installer.rb:28:in `install'
  /Users/taf2/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/source/rubygems.rb:200:in `install'
  /Users/taf2/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/installer/gem_installer.rb:54:in `install'
  /Users/taf2/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/installer/gem_installer.rb:16:in `install_from_spec'
  /Users/taf2/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/installer/parallel_installer.rb:155:in `do_install'
  /Users/taf2/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/installer/parallel_installer.rb:146:in `block in worker_pool'
  /Users/taf2/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/worker.rb:62:in `apply_func'
  /Users/taf2/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/worker.rb:57:in `block in process_queue'
  /Users/taf2/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/worker.rb:54:in `loop'
  /Users/taf2/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/worker.rb:54:in `process_queue'
  /Users/taf2/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/worker.rb:90:in `block (2 levels) in create_threads'

An error occurred while installing tiktoken_ruby (0.0.4), and Bundler cannot continue.

In Gemfile:
  tiktoken_ruby

shell returned 5

What is interesting is i have downloaded the binary versions and they work fine for all 4 environments.  However bundler seems to insist on the source version even when i try to add it to my local cache and use --local it still insists on the source version... any suggestions?
Thanks!

Looks like we need rb_sys gem as well in the Gemfile...

Interesting, rb_sys is marked as a dependency of this project in the gemfile so I'm a bit confused. Are you saying adding  rb_sys to your project's gemfile fixed the issue? Did mkmf.log have any more details?

Here's an updated on what I'm seeing:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
<EMAIL_ADDRESS>/home/deployer/.rvm/rubies/ruby-3.2.2/bin/ruby extconf.rb
checking for cargo... no

current directory:
<EMAIL_ADDRESS>make DESTDIR\= sitearchdir\=./.gem.20230501-18612-s2102z
sitelibdir\=./.gem.20230501-18612-s2102z clean

current directory:
<EMAIL_ADDRESS>make DESTDIR\= sitearchdir\=./.gem.20230501-18612-s2102z
sitelibdir\=./.gem.20230501-18612-s2102z
info: downloading installer
info: profile set to 'minimal'
info: default host triple is x86_64-unknown-linux-gnu
info: skipping toolchain installation

Rust is installed now. Great!

To get started you need Cargo's bin directory
<EMAIL_ADDRESS>in your PATH
environment variable. This has not been done automatically.

To configure your current shell, run:
source
<EMAIL_ADDRESS>info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2023-04-20, rust version 1.69.0 (84c898d65 2023-04-16)
info: downloading component 'cargo'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: installing component 'cargo'
info: installing component 'rust-std'
info: installing component 'rustc'

stable-x86_64-unknown-linux-gnu installed - rustc 1.69.0 (84c898d65
2023-04-16)

info: default toolchain set to 'stable-x86_64-unknown-linux-gnu'
info: checking for self-update
info: using existing install for 'stable-x86_64-unknown-linux-gnu'
info: default toolchain set to 'stable-x86_64-unknown-linux-gnu'

stable-x86_64-unknown-linux-gnu unchanged - rustc 1.69.0 (84c898d65
2023-04-16)

info: note that the toolchain 'stable-x86_64-unknown-linux-gnu' is currently in
use (environment override by RUSTUP_TOOLCHAIN)
generating target/release/libtiktoken_ruby.so (release)
<EMAIL_ADDRESS>rustc  --manifest-path ./Cargo.toml --target-dir target --lib --release -- -C
linker=gcc -L native=/home/deployer/.rvm/rubies/ruby-3.2.2/lib -C link-arg=-lm
-l pthread
    Updating crates.io index
    Updating git repository `https://github.com/IAPark/tiktoken-rs.git`
    Updating git submodule `https://github.com/zurawiki/tiktoken`
 Downloading crates ...
  Downloaded magnus-macros v0.3.0
  Downloaded peeking_take_while v0.1.2
  Downloaded cfg-if v1.0.0
  Downloaded shlex v1.1.0
  Downloaded rustc-hash v1.1.0
  Downloaded rb-sys v0.9.68
  Downloaded autocfg v1.1.0
  Downloaded rb-sys-env v0.1.2
  Downloaded scopeguard v1.1.0
  Downloaded bit-set v0.5.3
  Downloaded shell-words v1.1.0
  Downloaded lazycell v1.3.0
  Downloaded smallvec v1.10.0
  Downloaded lock_api v0.4.9
  Downloaded rb-sys-build v0.9.68
  Downloaded libloading v0.7.4
  Downloaded glob v0.3.1
  Downloaded quote v1.0.26
  Downloaded lazy_static v1.4.0
  Downloaded bit-vec v0.6.3
  Downloaded bitflags v1.3.2
  Downloaded proc-macro2 v1.0.52
  Downloaded once_cell v1.17.1
  Downloaded cexpr v0.6.0
  Downloaded parking_lot v0.12.1
  Downloaded parking_lot_core v0.9.7
  Downloaded clang-sys v1.6.0
  Downloaded anyhow v1.0.70
  Downloaded unicode-ident v1.0.8
  Downloaded serde v1.0.157
  Downloaded memchr v2.5.0
  Downloaded minimal-lexical v0.2.1
  Downloaded base64 v0.21.0
  Downloaded aho-corasick v0.7.20
  Downloaded magnus v0.4.4
  Downloaded fancy-regex v0.11.0
  Downloaded nom v7.1.3
  Downloaded regex-automata v0.1.10
  Downloaded bindgen v0.60.1
  Downloaded regex v1.7.1
  Downloaded syn v1.0.109
  Downloaded regex-syntax v0.6.28
  Downloaded libc v0.2.140
  Downloaded bstr v1.4.0
   Compiling memchr v2.5.0
   Compiling proc-macro2 v1.0.52
   Compiling quote v1.0.26
   Compiling glob v0.3.1
   Compiling unicode-ident v1.0.8
   Compiling clang-sys v1.6.0
   Compiling libc v0.2.140
   Compiling cfg-if v1.0.0
   Compiling syn v1.0.109
   Compiling minimal-lexical v0.2.1
   Compiling nom v7.1.3
   Compiling libloading v0.7.4
   Compiling aho-corasick v0.7.20
   Compiling bindgen v0.60.1
   Compiling regex-syntax v0.6.28
   Compiling cexpr v0.6.0
   Compiling regex v1.7.1
   Compiling peeking_take_while v0.1.2
   Compiling rustc-hash v1.1.0
   Compiling lazycell v1.3.0
   Compiling bitflags v1.3.2
   Compiling shlex v1.1.0
   Compiling lazy_static v1.4.0
   Compiling shell-words v1.1.0
   Compiling rb-sys-build v0.9.68
   Compiling autocfg v1.1.0
   Compiling lock_api v0.4.9
   Compiling rb-sys v0.9.68
   Compiling parking_lot_core v0.9.7
error: failed to run custom build command for `rb-sys v0.9.68`

Caused by:
process didn't exit successfully:
<EMAIL_ADDRESS>(exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=RUBY
  cargo:rerun-if-env-changed=RBCONFIG_ruby_version
  cargo:rerun-if-env-changed=RBCONFIG_platform
  cargo:rerun-if-env-changed=RUBY_ROOT
  cargo:rerun-if-env-changed=RUBY_VERSION
  cargo:rerun-if-env-changed=RUBY
  cargo:rerun-if-changed=build/main.rs
  cargo:rerun-if-changed=build/version.rs
  cargo:rerun-if-changed=build/features.rs
  cargo:rerun-if-changed=build/ruby_macros.rs
  cargo:rerun-if-env-changed=RUBY_STATIC
  cargo:rerun-if-env-changed=RBCONFIG_ENABLE_SHARED
  cargo:rerun-if-env-changed=RBCONFIG_rubyhdrdir
  cargo:rerun-if-env-changed=RBCONFIG_rubyarchhdrdir
  cargo:rerun-if-env-changed=RBCONFIG_CPPFLAGS

  --- stderr
Using bindgen with clang args:
["-I/home/deployer/.rvm/rubies/ruby-3.2.2/include/ruby-3.2.0",
"-I/home/deployer/.rvm/rubies/ruby-3.2.2/include/ruby-3.2.0/x86_64-linux",
"-fms-extensions", "-O3", "-fno-fast-math", "-ggdb3", "-Wall", "-Wextra",
"-Wdeprecated-declarations", "-Wdiv-by-zero", "-Wduplicated-cond",
"-Wimplicit-function-declaration", "-Wimplicit-int", "-Wmisleading-indentation",
"-Wpointer-arith", "-Wwrite-strings", "-Wold-style-definition",
"-Wimplicit-fallthrough=0", "-Wmissing-noreturn", "-Wno-cast-function-type",
"-Wno-constant-logical-operand", "-Wno-long-long",
"-Wno-missing-field-initializers", "-Wno-overlength-strings",
"-Wno-packed-bitfield-compat", "-Wno-parentheses-equality", "-Wno-self-assign",
"-Wno-tautological-compare", "-Wno-unused-parameter", "-Wno-unused-value",
"-Wsuggest-attribute=format", "-Wsuggest-attribute=noreturn",
"-Wunused-variable", "-Wundef"]
thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid
shared libraries matching: ['libclang.so', 'libclang-*.so', 'libclang.so.*',
'libclang-*.so.*'], set the `LIBCLANG_PATH` environment variable to a path where
one of these files can be found (invalid: [])"',
/home/deployer/.rvm/gems/ruby-3.2.2@ctm3/gems/tiktoken_ruby-0.0.4/ext/tiktoken_ruby/.rb-sys/stable/cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.60.1/src/lib.rs:2172:31
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
make: *** [target/release/libtiktoken_ruby.so] Error 101

make failed, exit code 2

Gem files will remain installed in
<EMAIL_ADDRESS>for
inspection.
Results logged to
<EMAIL_ADDRESS>
/home/deployer/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/ext/builder.rb:119:in
`run'
/home/deployer/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/ext/builder.rb:51:in
`block in make'
/home/deployer/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/ext/builder.rb:43:in
`each'
/home/deployer/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/ext/builder.rb:43:in
`make'
/home/deployer/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/ext/ext_conf_builder.rb:41:in
`build'
/home/deployer/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/ext/builder.rb:187:in
`build_extension'
/home/deployer/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/ext/builder.rb:221:in
`block in build_extensions'
/home/deployer/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/ext/builder.rb:218:in
`each'
/home/deployer/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/ext/builder.rb:218:in
`build_extensions'
/home/deployer/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/installer.rb:843:in
`build_extensions'
/home/deployer/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/rubygems_gem_installer.rb:72:in
`build_extensions'
/home/deployer/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/rubygems_gem_installer.rb:28:in
`install'
/home/deployer/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/source/rubygems.rb:200:in
`install'
/home/deployer/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/installer/gem_installer.rb:54:in
`install'
/home/deployer/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/installer/gem_installer.rb:16:in
`install_from_spec'
/home/deployer/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/installer/parallel_installer.rb:155:in
`do_install'
/home/deployer/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/installer/parallel_installer.rb:146:in
`block in worker_pool'
/home/deployer/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/worker.rb:62:in
`apply_func'
/home/deployer/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/worker.rb:57:in
`block in process_queue'
/home/deployer/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/worker.rb:54:in
`loop'
/home/deployer/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/worker.rb:54:in
`process_queue'
/home/deployer/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/worker.rb:90:in
`block (2 levels) in create_threads'

An error occurred while installing tiktoken_ruby (0.0.4), and Bundler cannot
continue.

In Gemfile:
  tiktoken_ruby
checking deploy state
/home/deployer/.rvm/gems/ruby-3.2.2@ctm3/gems/bundler-2.4.4/lib/bundler/definition.rb:524:in `materialize': Could not find tiktoken_ruby-0.0.4 in locally installed gems (Bundler::GemNotFound)

Quick update thought my issue might* be related to this bundler issue: https://github.com/rubygems/rubygems/issues/4269

Following answer by @taf2
I am using Apple M1, so running this solved the issue
bundle lock --add-platform arm64-darwin-21


{Compute} az vm host group and az vmss nic and az sig gallery-application: Migrate to atomic commands

Related command

az vm host group list/show/delete
az vmss nic list/show/list-vm-nics
az sig gallery-application list/show/delete
Description

Migrate part of az vm host group and az sig gallery-application commands. Migrate az vmss nic all commands.
Some commands in az vm host group are not migrated yet:
az vm host group create
az vm host group get-instance-view
az vm host group update
Some commands in az sig gallery-application are not migrated yet:
az sig gallery-application create
az sig gallery-application update
Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

[x] I adhere to the Error Handling Guidelines.

Compute

The vm host related commands don't seem to have tests in the old profiles. Could we also add the test_vm_host_management to the old profiles?

The vm host related commands don't seem to have tests in the old profiles. Could we also add the test_vm_host_management to the old profiles?

Okay. I have added three tests related to vm host group in 2020-09-01-hybrid profile.


[Algo] Add floyd warshall algorithm for finding all pair shortest path in a connected graph [CPP]

#287 Given the pull request.

GitMate.io thinks possibly related issues are https://github.com/NITSkmOS/Algorithms/issues/181 ([Algo] Dijkstra’s Shortest Path Algorithm [C]), https://github.com/NITSkmOS/Algorithms/issues/182 ([Algo] Dijkstra’s Shortest Path Algorithm [Java]), https://github.com/NITSkmOS/Algorithms/issues/183 ([Algo] Dijkstra’s Shortest Path Algorithm [Python]), https://github.com/NITSkmOS/Algorithms/issues/2 (Add all sorting algorithms), and https://github.com/NITSkmOS/Algorithms/issues/240 ([Algo] Optimize bubble_sort.cpp).

Since the PR is closed. Is anybody working on this ?
@vivekcrux ?
if not can I be assigned on this @sangamcse ?


Direct display of symbols

Thank you for this great extension, for me it really makes a huge difference when working with TLA+!
One advantage compared to the TLA Toolbox is that it's possible to configure VSCode so that the mathematical symbols are directly displayed, which I find much easier to read. There is vsc-conceal which can be used with the settings from this PR. Since I found the unicode characters a bit small I use it together with FiraCode which gives results like this:
before

after

I was wondering what others think of this, maybe there are more/better ways to get similar results? I this worth documenting in the wiki? The settings I used are in this gist.

@Alexander-N, thanks for bringing up an interesting subject.
VSC-Conceal looks cool and it really works best in conjunction with Fira Code. I agree that it's worth mentioning in the wiki, I'll get back to it soon.
I myself prefer narrow fonts and use Pragmata Pro with ligatures that cover many substitutions mentioned in your vsc-conceal config. Unfortunately, not all unicode symbols that represent math operators are displayed as good as in Fira Code, so I switched them off. Actually, I only left few vsc-conceal substitutions for TLA+, but they work fine for me.

@Alexander-N, thanks for bringing up an interesting subject.
VSC-Conceal looks cool and it really works best in conjunction with Fira Code. I agree that it's worth mentioning in the wiki, I'll get back to it soon.
I myself prefer narrow fonts and use Pragmata Pro with ligatures that cover many substitutions mentioned in your vsc-conceal config. Unfortunately, not all unicode symbols that represent math operators are displayed as good as in Fira Code, so I switched them off. Actually, I only left few vsc-conceal substitutions for TLA+, but they work fine for me.

The goal of my settings was to use substitutions to unicode only for the cases which are not covered by FiraCode.
So for example in the linked PR there was
{
  "ugly": "#|/=",
  "pretty": "≠"
}

which I changed so that it matches the ligature for "not equal" by FiraCode:
{
  "ugly": "#|/=",
  "pretty": "!="
}

The goal of my settings was to use substitutions to unicode only for the cases which are not covered by FiraCode.
So for example in the linked PR there was
{
  "ugly": "#|/=",
  "pretty": "≠"
}

which I changed so that it matches the ligature for "not equal" by FiraCode:
{
  "ugly": "#|/=",
  "pretty": "!="
}


Constraint constraints/cloudfunctions.allowedIngressSettings violated for projects/project_id attempting CreateFunctionActionV1 with ingress_settings set to INGRESS_SETTINGS_UNSPECIFIED

[READ] Step 1: Are you in the right place?
Issues filed here should be about bugs for a specific extension in this repository.
If you have a general question, need help debugging, or fall into some
other category use one of these other channels:

For general technical questions, post a question on StackOverflow
with the firebase tag.
For general Firebase discussion, use the firebase-talk
google group.
To file a bug against the Firebase Extensions platform, or for an issue affecting multiple extensions, please reach out to
Firebase support directly.

[REQUIRED] Step 2: Describe your configuration

Extension name: firestore-bigquery-export
Extension version: 1.22 (latest)
Configuration values (redact info where appropriate):

_
_

[REQUIRED] Step 3: Describe the problem
The default setting for "Ingress setting" in the extension seems to be not set. So, if an organization is restricting  "Ingress settings = Allow all traffic", then the installation fails. I am not sure what are the actual requirements for this extension are i.e. does it really need  "Ingress settings = Allow all traffic".
Steps to reproduce:
If your organization policy applies constraints/cloudfunctions.allowedIngressSettings and doesn't allow "Ingress settings = Allow all traffic" for CloudFunctions, then the installation of this extension fails with the below error.
RESOURCE_ERROR at /deployments/firebase-ext-firestore-bigquery-export/resources/fsexportbigquery: {"ResourceType":"gcp-types/cloudfunctions-v1:projects.locations.functions","ResourceErrorCode":"400","ResourceErrorMessage":{"code":400,"message":"The request has violated one or more Org Policies. Please refer to the respective violations for more information.","status":"FAILED_PRECONDITION","details":[{"@type":"type.googleapis.com/google.rpc.PreconditionFailure","violations":[{"type":"constraints/cloudfunctions.allowedIngressSettings","subject":"orgpolicy:projects/project_id","description":"**Constraint constraints/cloudfunctions.allowedIngressSettings violated for projects/project_id attempting CreateFunctionActionV1 with ingress_settings set to INGRESS_SETTINGS_UNSPECIFIED**. See https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints for more information."}]}],"statusMessage":"Bad Request","requestPath":"https://cloudfunctions.googleapis.com/v1/projects/project_id/locations/northamerica-northeast1/functions","httpMethod":"POST"}}
Expected result
Installation should work successfully.
Actual result
But it fails.
Recommendation: If the extension doesn't need "Ingress settings = Allow all traffic", then I think it would be good to set the default to "Allow internal traffic only".

@pavelgj I think this is something not specific to the bigquery extension and we set it on all extensions. WDYT? Can we restrict this?

We actually don't set ingressSettings and that is the problem when org policies require them to be specified. It's most likely not an issue specific to bigquery extension. I'm not sure if we can support anything other than ALLOW_ALL though. We currently don't support VPC, and I'm not sure whether ALLOW_INTERNAL_AND_GCLB is an option.

@pavelgj from the standpoint of the needs of this extension, do you know if the it triggers the CloudFunction using the HTTP endpoint and if it needs to be open to the Internet? It might be good to try out your suggestion ALLOW_INTERNAL_AND_GCLB.  Based on your assessment "Allow internal traffic only" is not an option? correct?

@RajvirBains the point is there's no way to set these per extension on the backend. The solution would be for us to enable setting these in your project which you can't right now but we're discussing what can be done. I don't think this'll be available anytime soon though because of the huge backlog we have.

Hi @pavelgj we disallow ALLOW_ALL setting in our Org Policy. I am ok for now as I was able to get an exemption for this project. But I think it is good to have this on your roadmap to resolve properly. I fully understand the backlog issue, so as far as it is on the list of recognized issues, it is good. I find that this extension is very helpful and over time, your team will need to iron out issues like this for enterprise customers. Thanks for your prompt response on this issue.

@pavelgj see if your team can try doing this security assessment for me on this topic. My Security Team flagged "Ingress settings = Allow all traffic" as a security risk and my explanation to them is as below. Their concern is that these functions can be exploited over the internet. See if I have it right.
The CloudFunctions Trigger Type of HTTP allows access over the internet, but in case of this Firebase extension Trigger Type is "Firestore" and as we trigger CREATE, UPDATE, DELETE events in Firestore, they get served by CloudFunctions, which then send data to BQ. These CloudFunctions don't have HTTP endpoints at all. So, for this extension there is no risk of external access, it is just that the default setting of "Ingress settings = Allow all traffic" when CloudFunctions are created, is not correct.

@RajvirBains I think you are correct -- for 1st gen cloud functions currently used by Firebase Extensions there is no public HTTP endpoint created for event triggers (ex. firestore triggers used by bigquery export extension). However, technically the platform does allow extensions to deploy functions with public HTTP(s) endpoints and there are extensions which do use this feature. If your security team does allow all ingress traffic then they will not have a way to prevent you from deploying those extensions and violate their policy.
Have you considered trying to manually deploy the bigquery export function with VPC connector? It's technically a single function (with a firestore trigger). The source code is here: https://github.com/firebase/extensions/blob/next/firestore-bigquery-export/functions/src/index.ts
It will need only minor tweaks to the trigger definition boilerplate.

@pavelgj wonder if your link is correct https://github.com/firebase/extensions/blob/next/firestore-bigquery-export/functions/src/index.ts? I didn't see any trigger definition in this. Could you please confirm?
So, you are suggesting that I download your [firestore-bigquery-export] code, tweak it to change the trigger definition i.e. just change it so that "Ingress settings = Allow internal traffic only" and deploy it using the Firebase command-line? This might be an acceptable alternative and would really appreciate if I can get some help with this.

@RajvirBains The cloud functions trigger definitions are in the code.
Here is the sample code changes and instructions for how to manually deploy the bigquery export function with a VPC connector (I haven't tested the VPC part, just copy pasted from documentation, so you may need to tweak it a bit): https://github.com/pavelgj/extensions/commit/e9e9942d430afb5a00908a003337e614c114f64a

@pavelgj looks like you forgot to paste some content here.

@pavelgj disregard my previous comment. Sorry about that, missed the link at the end.

@pavelgj, POC worked like a charm. Your instructions were very helpful. Only change I had to make was to replace your VPC Connection code with  just an ingress.
Original provide by you:
exports.fsexportbigquery = functions.runWith({
    vpcConnector: 'test-connector',
    vpcConnectorEgressSettings: 'PRIVATE_RANGES_ONLY'

Changed to:
exports.fsexportbigquery = functions.runWith({
    ingressSettings: 'ALLOW_INTERNAL_ONLY'

I was able to deploy to a project that had constraints/cloudfunctions.allowedIngressSettings Org Policy on it and was able to confirm that CloudFunction deploys, triggers and copies data successfully to the BQ table.
I do see that if I now maintain my own code base to do this one-liner, I have some work to do to maintain my home grown system. The CloudFunction deploys with " fsexportbigquery" name and I couldn't figure out how to change it. Also, with these instructions I couldn't figure out how I can deploy multiple extensions i.e. many .env files. Well, I am not a TS/JS expert and also wasn't able to use a variable here .document("mycollection/{doc}") and hard-coded it as per your instructions.
Anyways, you know where I am leading with this :) Would it be possible for your team to consider this change as an enhancement? I think there is lot of security value here.

Hmm... for some reason I wrongly assumed that for ingressSettings: 'ALLOW_INTERNAL_ONLY' it required a VPC connector. This may be a much simpler fix than I expected. Let me investigate whether it's safe to just always set it to ALLOW_INTERNAL_ONLY for functions used for event triggers. Obviously we will still need to set ALLOW_ALL for http endpoints and you won't be able to install those extensions (bigquery export is not one of them), and that is exactly what we want.

@pavelgj see if you can provide an update on this. We have ticket open with Google Support and our TAM, so will keep everyone informed.

I'm running some e2e tests. I can't provide a firm ETA, but this will take at least a couple of weeks to confirm and release. I'll provide another update ones I have testing completed.

Sounds good @pavelgj. Thanks for the update.

@pavelgj is this change still looking on track? Do you think we will have it by the end of next week or so?

Everything is in place, just not broadly enabled (still testing a few scenarios). If you can share your project id (through the support ticket) I can enable the ingress settings feature for your project early.

Thanks Pavel. I have updated the support case (existing ticket for this issue) and have asked them to share the project ids with you. I have provided reference to this Github Issue also.

@RajvirBains your projects are allowlisted, you can give it a try.

@pavelgj this worked out great from the Firebase console and it successfully deployed a cloudfunction with "Ingress settings = Allow internal traffic only". I tested one replication testcase to ensure that it is working end to end. Good work.

@eslamkarim, the fix is fully rolled out now.

Hi,
We are facing the similar issue when deploying the BQ Firebase extension. I am part of the same org as @RajvirBains. What was the final solution to this problem.
Here is the error
Constraint constraints/cloudfunctions.allowedIngressSettings violated for projects/cdo-fuelix-app-pr-5c588b attempting CreateFunctionActionV1 with ingress_settings set to ALLOW_ALL.