Create DL for course participants

Create an outlook Distribution List (DL) with all training participants.
Include instructors & Marcelo, Sam & Brendan in list

Send an outlook calendar invitation for all training dates to DL. No lecture 10 June! (public holiday)
Send  a reminder email with and advise people to join #go-course even if they don’t have any questions. No lecture on 10 June!!

mention new trainers
ask people to accept github repo invite at: https://github.com/anz-bank/go-course/invitations
only 5 lectures (queens bday)

DL was too hard. Just bcc'ing participants:
https://gist.github.com/juliaogris/9407923f19971b392fecec4c36cd6cfe#file-01-participants-txt


photo descrepencies and errors

here are what the dupes look like after the first round of duplicates are removed which we can see by running fpr::fpr_photo_remove_dupes then moding the function by removing the call to distinct and file.remove from the function on a second run of the function

test_bfpr_photo_remove_dupes <- function(dir_target = NULL,
                                   col_time = date_time_original,
                                   col_photo_name = source_file,
                                   col_model = model,
                                   col_iso = iso,
                                   remove_renamed = FALSE,
                                   ...){
  dat1 <- exifr::read_exif(path = dir_target,recursive=T)  %>%
    janitor::clean_names()  %>%
    dplyr::group_by( {{ col_model }}, {{ col_iso }}, {{ col_time }}) %>%
    dplyr::filter(dplyr::n()>1) %>%
    dplyr::mutate(l = stringr::str_length( {{ col_photo_name }} ))

  if(remove_renamed){
    dat2 <- dat1 %>%
      dplyr::arrange( {{ col_time }}, {{ col_model }}, {{ col_iso }}, desc(l))
  }else if(identical(remove_renamed, FALSE))
    dat2 <- dat1 %>%
      dplyr::arrange( {{ col_time }},{{ col_model }}, {{ col_iso }}, l)

  # dat3 <- dat2 %>%
  #   dplyr::distinct( {{ col_time }}, .keep_all = T)

  # dat3 %>%
  #   dplyr::pull( {{ col_photo_name }}) %>%
  #   purrr::map(file.remove)

}

improvements now made to fpr::fpr_photo_remove_dupes
to see the photos that have duplicates and triplicates and the difference before and after running actual removals we can load a .RDATA file and inspect all the objects it brings in. Restarting R (control + command + 0) on mac beforehand can be handy. We should be careful to not rerun fpr::fpr_photo_remove_dupes with the dry_run = F.


updating custom fields for a lead

Taylor - thank you for creating this very helpful gem and opensourcing it.  I had a question about updating custom fields for an existing field, and creating a lead with custom fields.  I have tried the following and it didn't work:
puts client.update_lead(lead.id, '{"custom.XXX": "Yes"}')
I see a Hashie::Mash object returned which is the lead but the custom field does not seem to be updating.  I tried it without the single quotes, as a JSON but same results, no update to the custom field and same Hashie::Mash object returned
Any thoughts on how to do this?
Also, is there a way to create custom fields during lead creation?
thanks again!

Try doing:
client.update_lead(lead.id, 'custom.field name' => "field value")

You should be able to create leads by doing something like:
client.create_lead(
    name: "Bluth Company",
    contacts: [{
      name: "Buster Bluth",
      emails: [{type: "office", email<EMAIL_ADDRESS>    }],
   custom: {
     "Custom Car Type" => "Stair Car",
     car_color: "red, white and blue"
   }
)

Make sense?

works like a charm! thanks.


Add /api/graphql routes to demo-app to start using apollo server

Why?
I would like to start demonstrating a non-Next.js way of using open-truss that leverages an apollo server backend for querying and mutating data.
My plan is to build on this PR and add a uqiQuery query to the graphql schema. The backend will use the uqi library and any clients we've created in the demo-app to retrieve and return (and/or maybe stream?) data to the client. Then I'll build a simple query UI where a user can submit a query and view the results.
I think this will get us closer to starting to use open-truss in a more meaningful way at the day job.
How?
I followed these instructions: https://javascript.plainenglish.io/using-apollo-server-with-nextjs-13-app-dir-part-1-google-auth-with-nextauth-prisma-ca242c92599e
You can test out this PR by:
cd demo-app
npm install
script/server

Then visit http://localhost:3000/api/graphql

What do you think of Next's route.ts file that exports http methods? Seems like a fun pattern to me so far

yeah, me too :)


Use invoice macaroon

Squeaknode does not need any RPC command other than invoice-related.

This doesn't work because SendPayment RPC requires admin macaroon.
squeaknode      | ERROR:squeaknode.admin.webapp.app:Error in handle admin web request.
squeaknode      | Traceback (most recent call last):
squeaknode      |   File "/opt/venv/lib/python3.8/site-packages/squeaknode/admin/webapp/app.py", line 83, in wrapper
squeaknode      |     reply = func(request_message)
squeaknode      |   File "/opt/venv/lib/python3.8/site-packages/squeaknode/admin/webapp/app.py", line 248, in payoffer
squeaknode      |     return handler.handle_pay_offer(msg)
squeaknode      |   File "/opt/venv/lib/python3.8/site-packages/squeaknode/admin/squeak_admin_server_handler.py", line 689, in handle_pay_offer
squeaknode      |     sent_payment_id = self.squeak_controller.pay_offer(offer_id)
squeaknode      |   File "/opt/venv/lib/python3.8/site-packages/squeaknode/node/squeak_controller.py", line 129, in pay_offer
squeaknode      |     sent_payment = self.squeak_core.pay_offer(received_offer)
squeaknode      |   File "/opt/venv/lib/python3.8/site-packages/squeaknode/core/squeak_core.py", line 328, in pay_offer
squeaknode      |     payment = self.lightning_client.pay_invoice(
squeaknode      |   File "/opt/venv/lib/python3.8/site-packages/squeaknode/lightning/lnd_lightning_client.py", line 108, in pay_invoice
squeaknode      |     send_payment_response = self.stub.SendPaymentSync(send_payment_request)
squeaknode      |   File "/opt/venv/lib/python3.8/site-packages/grpc/_channel.py", line 946, in __call__
squeaknode      |     return _end_unary_response_blocking(state, call, False, None)
squeaknode      |   File "/opt/venv/lib/python3.8/site-packages/grpc/_channel.py", line 849, in _end_unary_response_blocking
squeaknode      |     raise _InactiveRpcError(state)
squeaknode      | grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
squeaknode      | 	status = StatusCode.UNKNOWN
squeaknode      | 	details = "permission denied"
squeaknode      | 	debug_error_string = "{"created":"@1646271553.801747664","description":"Error received from peer ipv4:<IP_ADDRESS>:10009","file":"src/core/lib/surface/call.cc","file_line":903,"grpc_message":"permission denied","grpc_status":2}"
squeaknode      | >
squeaknode      | INFO:werkzeug:<IP_ADDRESS> - - [03/Mar/2022 01:39:13] "POST /payoffer HTTP/1.1" 500 -


Consider using infinite parking for some proposals

The Broadmoor access proposal winds up with this overall trip time distribution:

There's a ton of noise from drivers -- some short trips get pretty long, and some long trips get pretty short. Much (but not all) of this is due to parking. Because it's so scarce, some drivers spend lots of time looking for parking, until it dominates their trip time.
If we use --infinite_parking both for the baseline results and the edits, the results look more understandable:

There are still some driving trips that're dramatically affected:

But way less. I'll also dive into some of those to see why.
Parking scarcity and the tradeoffs of using street space for it are critical features of A/B Street, but they also require good data about the number of offstreet spots available per building and a good estimate on the total number of cars that need to park somewhere. We're making totally blind guesses about the first. The second is mostly a function of Soundcast, but since we don't distinguish car drivers and passengers, we might be trying to cram too many cars in. Any ideas for better off-street capacity estimates for Seattle specifically or in general?
And should we disable parking simulation for the purposes of the article? My experience in the area covered by the Arboretum map is that street parking is not hard to find, so it's pretty strange if our results are really sensitive to it.

There was a bug with infinite parking. Figuring out how to clean up the fix, but the results for drivers look way more expected -- the Broadmoor access edit with infinite parking basically doesn't affect trip times now:

My understanding is that due to vastly undercounting offstreet parking, we'll get more realistic results with --infinite_parking, and that I should re-run the results / prebake with that option.
Is that right @dabreegster?

Correct. I started this work last week, then got bogged down trying to fix every last problem. (The "parking efficiency" layer is computed in a way that is often misleading -- the distance between a person and their car at any moment isn't useful to know; the distance from the next driving trip's start matters.)
I think we need to:

decide how to mark a map or scenario as forcing infinite parking on
prebake the results again
sanity check what the outputs look like

I'm undecided where this bit flip should live. Either in the map or scenario will require rebuilding lots of files, so I don't want to change my mind in a few days. :)   I think in the short term, I might hardcode it based on map name. I'll start something right now and hopefully send it by tonight.

As expected, being able to skip parking saves tons of time. This compares (no map edits, infinite parking) to the baseline of (no map edits, normal parking):

And the more relevant comparison, between (access broadmoor proposal, inf parking) and (no map edits, inf parking):

Deselecting driving only modifies some of the short trips:

Just to be sure what's going on there, the effects just on drivers:

And risk exposures:

I'll dig through some of the individual driving trips that got dramatically slower with the edits, but I think we should make this change and include it in the article. Then we don't have to justify the noise from bad data quality.

And risk exposures:

Are those risk exposures comparing:
A: "Finite parking w/o Broadmoor edits" vs "Inifinite parking w/ Broadmoor edits"
or
B: "Infinite parking w/o Broadmoor edits" vs "Inifinite parking w/ Broadmoor edits"
Either is fine, but interesting that a few arterial crossings went up.

B: "Infinite parking w/o Broadmoor edits" vs "Inifinite parking w/ Broadmoor edits"
Indeed weird. I guess we don't have the trip table equivalent for finding example trips, so not sure what's happening.


cmake consolidation cont'd

initial effort and description https://github.com/externpro/externpro/issues/34

in attempting to copy (actually move) toplevel.cmake from CommonLibraries to .devcontainer/cmake (externpro's cmake directory) the following changes are necessary to the docker scripts
diff --git a/denv.sh b/denv.sh
index f8db2d3..c79a6a3 100755
--- a/denv.sh
+++ b/denv.sh
@@ -8,7 +8,7 @@ if [[ $(basename -s .git `git config --get remote.origin.url`) == buildpro ]]; t
     BPROTAG=latest
   fi
 else
-  BPROTAG="$(findVer 'set(buildpro_REV' CMakeLists.txt */toplevel.cmake */*/toplevel.cmake)"
+  BPROTAG="$(findVer 'set(buildpro_REV' CMakeLists.txt .devcontainer/cmake/toplevel.cmake)"
   if [ -z ${BPROTAG} ]; then
     echo "*** buildpro_REV should be set"
     BPROTAG=latest
@@ -60,7 +60,7 @@ EXTERN_DIR=/opt/extern
 GCC_VER=gcc921
 urlPfx="https://isrhub.usurf.usu.edu"
 ##############################
-wproVer="$(findVer 'set(webpro_REV' CMakeLists.txt */CMakeLists.txt */toplevel.cmake */*/toplevel.cmake)"
+wproVer="$(findVer 'set(webpro_REV' CMakeLists.txt */CMakeLists.txt .devcontainer/cmake/toplevel.cmake)"
 [[ "${wproVer}" == "NONE" ]] && wproVer=""
 if [[ -n "${wproVer}" ]]; then
   wproBase=webpro-${wproVer}-${GCC_VER}-64-$(uname -s)
diff --git a/offlineImage.sh b/offlineImage.sh
index 2d499d9..c6d77f7 100755
--- a/offlineImage.sh
+++ b/offlineImage.sh
@@ -24,7 +24,7 @@ if [ $# -eq 0 ]; then
       BPROTAG=latest
     fi
   else
-    BPROTAG="$(findVer 'set(buildpro_REV' CMakeLists.txt */toplevel.cmake */*/toplevel.cmake)"
+    BPROTAG="$(findVer 'set(buildpro_REV' CMakeLists.txt .devcontainer/cmake/toplevel.cmake)"
     if [ -z ${BPROTAG} ]; then
       echo "*** buildpro_REV should be set"
       exit 1

however, I run into webpro CMake Warnings (many of them), for example:
CMake Warning at /opt/extern/webpro-24.03-gcc921-64-Linux/share/cmake/wpfuncmac.cmake:250 (message):
  The CMakeLists where webpro is set is not given.  This may not rebuild when
  it needs to
Call Stack (most recent call first):
  /opt/extern/webpro-24.03-gcc921-64-Linux/share/cmake/wpfuncmac.cmake:409 (wpVerifyCMakeLists)
  CMakeLists.txt:9 (wpAddYarnTarget)

the default location webpro's wpVerifyCMakeLists function uses is CommonLibraries https://isrhub.usurf.usu.edu/webpro/webpro/blob/24.03/modules/wpfuncmac.cmake#L246-L247
    if(EXISTS ${CommonLibraries_SOURCE_DIR}/cmake/toplevel.cmake)
      set(P_CMAKELIST ${CommonLibraries_SOURCE_DIR}/cmake/toplevel.cmake)

to address this issue, the best path forward IMHO is to move cmake functions required to use webpro out of webpro and into externpro/cmake (this repo) -- in other words, move wpInstallNBuild and all its supporting functions and alternative functions (like wpAddAddonTest, wpAddTypescriptEchoTarget, and any others I discover along the way) to a new file in externpro: cmake/xpWebTargets.cmake -- the functions will also be renamed from having a wp prefix (which indicates webpro) to an xp prefix (which indicates externpro)
any functions in https://isrhub.usurf.usu.edu/webpro/webpro/blob/24.03/modules/wpfuncmac.cmake needed to build webpro will remain in webpro/modules/wpfuncmac.cmake
creating externpro/cmake/xpWebTargets.cmake will allow developers to more easily maintain and make updates to the cmake functions which enable easier usage of webpro -- these functions can be modified and tested very quickly and projects access the updates by simply updating the .devcontainer hash (instead of waiting for a webpro release)

there is a current pull to webpro which adds a ADD_SUBMODULE_TEST_LABEL parameter to the wpInstallNBuild family of cmake functions https://isrhub.usurf.usu.edu/webpro/webpro/pull/609/files -- ultimately this adds a submodule-unit-test label to a test
the current plan, as discussed with @grahamaj (but looking for any input from @camerbam) is to

-[ ] never merge the webpro pull https://isrhub.usurf.usu.edu/webpro/webpro/pull/609
-[ ] copy wpfuncmac.cmake, with the commits that have the ADD_SUBMODULE_TEST_LABEL changes to externpro/cmake
-[ ] rename the file to xpWebTargets.cmake
-[ ] remove cmake functions from this file that are only used to build webpro
-[ ] rename the functions to use the xp prefix instead of wp
-[ ] make this new file and its functions available to a project (CommonLibraries) that uses webpro by updating its .devcontainer hash
-[ ] convert the project (CommonLibraries) to using the new xp functions from xpWebTargets.cmake
-[ ] make a pull to webpro that removes the functions that were moved to externpro/cmake, which @grahamaj will merge and make part of a future webpro release once there are other changes to webpro that warrant a new release (in other words, there won't be a webpro release to support ADD_SUBMODULE_TEST_LABEL and there won't be a webpro release that only removes the functions that have moved)

slight change in the path forward

rather than move toplevel.cmake from [Common|Plugin]Libraries|SWATFramework/cmake/
make a copy of toplevel.cmake and rename it to xptoplevel.cmake
simplify toplevel.cmake so that it only has cmake/cpack vars common for the repo ([Common|Plugin]Libraries, SWATFramework)
make a copy of cpackvars.cmake and rename it to xpcpack.cmake
remove cpackvars.cmake

that way, projects that have [Common|Plugin]Libraries or SWATFramework as a submodule

continue to include(toplevel), which in turn does an include(xptoplevel)
instead of include(cpackvar) which no longer exists, include(xpcpack)


add bamboo to worldgen

Add youngtrees:bamboo to worldgen

👍

Let's hold off on this. We can reopen after Beta starts


Adds Large Player Uptop & Basic Structure for Add Modal

@rtluu I just pushed some cleanup / bug fixes. Before we merge this, I got some questions I want to talk about, mostly around design.


KeccakTranscript building block

Transcript is heavily used in Step 4 of Nova' CompressedSnark verification (Spartan proof), so this PR ports KeccakTranscript implementation used as a Transcript primitive.
Having Transcript building block, one can proceed with (inner, outer and batched) sum-check protocol verifications as well as other verifications
BTW, original Nova verifier has some changes as Srinath is progressing in development, so I created a Nova branch: https://github.com/lurk-lab/Nova/tree/solidity-verifier in our fork that is "relevant" reference implementation at current moment (e.g. the example in this repository was created according to this implementation)

OK, so the Nova commit for reference is 7b1bb44e45a566b6522ee6fee36212067bcad89a


i create companion package for redux-observable

thank you for cool library!
so. i created companion package for redux-observable.

Cool! Would you mind opening a PR for Readme?

thank you! i make PR


Feature/test start vent collector

Test cretion:start_vent_collector #253

Codecov Report

Merging #267 into master will increase coverage by 0.88%.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##           master     #267      +/-   ##
==========================================
+ Coverage   57.84%   58.72%   +0.88%
==========================================
  Files          22       22
  Lines         956      974      +18
  Branches       87       88       +1
==========================================
+ Hits          553      572      +19
+ Misses        396      395       -1
  Partials        7        7

Impacted Files
Coverage Δ

poseidon/poseidonMonitor/test_poseidonMonitor.py
86.95% <83.33%> (-13.05%)
:arrow_down:

poseidon/poseidonMonitor/poseidonMonitor.py
17.03% <0%> (+1.74%)
:arrow_up:

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 318500a...5e84b33. Read the comment docs.


[AIRFLOW-844] Fix cgroups directory creation

Dear Airflow Maintainers,
Please accept this PR that addresses the following issues:

https://issues.apache.org/jira/browse/AIRFLOW-844

Testing Done:

Tested locally, we should add cgroup tests at some point though

@artwr
cc: @bolkedebruin going to need to merge this into the RC (it doesn't affect the core and cgroups is a new feature so it's safe) let me know how you would like me to do this.

@aoen Can you create a patch and send it to the mailinglist?
git format-patch v1-8-stable --stdout -s > cgroup_creation.patch
It seems a bit cumbersome and might not be the best way to approach this workflow at the moment it is just a procedural barrier against 'just' changing a release. Let's try it and see how it goes. After that (and nobody complains) I'll apply it to the RC.
I think git should keep history correct and you should be able to apply it yourself against master and v1-8-test .
Btw I don't think builds will finish properly for master mysql/postgres with py3, I see that with other PRs.

Will do and thanks Bolke (also thanks for heads up re tests)


Add COCOKeypointDataset and vis_keypoint_coco

Merge after https://github.com/chainer/chainercv/pull/806
Demo
from chainercv.datasets import COCOKeypointDataset
from chainercv.visualizations import vis_keypoint_coco
import matplotlib.pyplot as plt
data = COCOKeypointDataset(split='val')
img, point, valid = data[10][:3]
vis_keypoint_coco(img, point, valid, markersize=10)
plt.show()

Memo
Point is represented as [(K, 3)] in COCO dataset.
The second axis contains y, x, v, where v is :
0: not labeled; 1: labeled, not inside mask;
2: labeled and inside mask

The distinction between 1 and 2 are not made in evaluation code.
From what I understand, the distinction is also not made in Detectron.

pfnCI, test this please

How's the progress on this PR? Is it ready for merge or the API design might be still changed?

This PR has been pending because I cannot allocate time to upload test data to GCP so that CI can test the implementation of this PR.

@Hakuyume


[Question] Is it possible to consider sliding version of System.Text.Json?

As of now, System.Text.Json is targeted to version 7.0.2.
Can it allow any version >= 6.0.0?
I understand that there is no harm in using 7.0.2 with .NET Core 6.0 but it is conflicting with other libraries.
Which is preventing us to upgrade this library.

Thanks for reporting this @InvincibleHub . I think this is a reasonable change, would you be willing to submit a pull request for it?
@andrueastman any opposition to this change?

Thanks!
A couple of pointers to help. On top of the package reference the changelog needs to be updated with a new entry (use today as the date) and the version needs to be bumped (bump patch)

@andrueastman any opposition to this change?

Works for me. The targeted version should still work for us.

@baywet - Added the PR from my personal account, please verify.


Weeds will spawn new round particles for a few seconds after being harvested

Can be solved by wrapping https://github.com/InitialPosition/LDJAM50/blob/8fce8daadd92954173f176c60fb02aab3344d8d7/objects/obj_button_harvest/Mouse_7.gml#L15-L17 in a if visible block

Fixed by fe8f706b115d58c2223ee23a32aa8951e47f906e


Module '"@tauri-apps/plugin-store"' has no exported member 'createStore'.ts(2305)

In screenpipe-app-tauri/lib/hooks/use-settings.ts
import { useState, useEffect } from "react";
import { createStore } from "@tauri-apps/plugin-store";   <--  here
import { localDataDir, join, homeDir } from "@tauri-apps/api/path";
import { platform } from "@tauri-apps/plugin-os";
import { Pipe } from "./use-pipes";
import posthog from "posthog-js";
import { Language } from "@/lib/language";

export type VadSensitivity = "low" | "medium" | "high";

How to solve this?

@m13v how did you solve this issue the other day?

The issue disappeared after updating the code to the latest version.

i didn't solve it actually
On Tue, Nov 26, 2024 at 7:34 PM sope @.***> wrote:

The issue disappeared after updating the code to the latest version.
—
Reply to this email directly, view it on GitHub
https://github.com/mediar-ai/screenpipe/issues/783#issuecomment-2502634638,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AY62CDF6BSGEUOLMDFS5FIT2CU4VHAVCNFSM6AAAAABSRXH6KGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBSGYZTINRTHA
.
You are receiving this because you were mentioned.Message ID:
@.***>


Bumping HSC runtime

@jhoblitt Will you take a look at this one too.  I should have bumped both before, but didn't realize HSC was not completing at the time.

On second thought, @frossie has agreed to take it.


proposal: encoding: provide append-like variants

There's been a shift in recent years to provide Append-like variants of APIs:

utf8.AppendRune
binary.AppendXXX
binary.LittleEndian.AppendXXX
fmt.AppendXXX

as these are generally easier to work with than Put-like APIs where you need to know the size of the buffer beforehand, prepare a buffer of the right size, and then call the Put-like operation.
Such APIs are missing for the encoding/hex, encoding/base32, and encoding/base64 packages. I propose we add the following:
package hex
func AppendEncoded(dst, src []byte) []byte
func AppendDecoded(dst, src []byte) ([]byte, error)

package base32
func (*Encoding) AppendEncoded(dst, src []byte) []byte
func (*Encoding) AppendDecoded(dst, src []byte) ([]byte, error)

package base64
func (*Encoding) AppendEncoded(dst, src []byte) []byte
func (*Encoding) AppendDecoded(dst, src []byte) ([]byte, error)

This would simplify many callers of these packages, where the only reason to call the Len method is to obtain the size of the expected output buffer, do some manual memory management, and then call the Encode or Decode equivalent.

For example, this logic in the json package:
https://github.com/golang/go/blob/c1110910713766eb06d75ed48db3722d318a845e/src/encoding/json/encode.go#L839-L860
could be simplified as:
b := e.AvailableBuffer()
b = append(b, '"')
b = base64.StdEncoding.AppendEncoded(b, s)
b = append(b, '"')
e.Write(b)

This assumes we had some way to unify bytes.Buffer with append-like APIs; see https://github.com/golang/go/issues/53685#issuecomment-1175365841.
The resulting code is both simpler and more performant since we can append directly into the underlying bytes.Buffer without going through an intermediate encodeState.scratch buffer. Also, the caller doesn't have to do manual memory management checking whether the encoded output fits within the encodeState.scratch.

As far as names go, we could also consider EncodeAppend and DecodeAppend, even if they aren't as consistent with the usual "verb then object" method names like MarshalJSON or AppendUint.

This proposal has been added to the active column of the proposals project
and will now be reviewed at the weekly proposal review meetings.
— rsc for the proposal review group

Based on the discussion above, this proposal seems like a likely accept.
— rsc for the proposal review group

No change in consensus, so accepted. 🎉
This issue now tracks the work of implementing the proposal.
— rsc for the proposal review group

@dsnet: Thank you for adding those. I was also looking into how to append encoded and now I see it will be out in upcoming 1.22. Great!
But I am still curious how this interacts with bytes.Buffer.
To me, the following works (using what is available with 1.21):
	v := []byte{'a', 'b'}
	b := &bytes.Buffer{}
	data := make([]byte, base64.StdEncoding.EncodedLen(len(v)))
	base64.StdEncoding.Encode(data, v)
	b.Write(data)

But if I do:
	v := []byte{'a', 'b'}
	b := &bytes.Buffer{}
	b.Grow(base64.StdEncoding.EncodedLen(len(v)))
	base64.StdEncoding.Encode(b.AvailableBuffer(), v)
	fmt.Println(b.String())

if fails with a panic. I must say I do not understand why based on discussion in #53685, it seems this should also work?

OK, I made it work:
	v := []byte{'a', 'b'}
	buf := &bytes.Buffer{}
	l := base64.StdEncoding.EncodedLen(len(v))
	buf.Grow(l)
	b := buf.AvailableBuffer()[:l]
	base64.StdEncoding.Encode(b, v)
	buf.Write(b)
	fmt.Println(buf.String())

No I understand why AppendEncoded is needed. :-)


The controller for path '/wordpress/' was not found or does not implement IController.

at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType)
at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName)
at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state)
at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Wordpress is not a valid URL for this site.  Closing this out


smtp/mime: adds test for url extraction in base64 message

Ticket
Redmine ticket: https://redmine.openinfosecfoundation.org/issues/5185
#1884 with pcap changed

Victor, Should I rebase the approved suricata PR https://github.com/OISF/suricata/pull/11231

Victor, Should I rebase the approved suricata PR OISF/suricata#11231

Trying w/o the rebase first.

Merged in #1900, thanks!


Links in markdown message are parsed incorrectly

In the code snippet below, $(wrapper1).find('b') and $(wrapper1).find('br') will always return an object. Thus, the condition is always True. This results in https://www.example.com links within markdown messages to be parsed incorrectly (links are not clickable).
https://github.com/Koredotcom/web-kore-sdk/blob/6d8c39f2fdf7a9c4b51113b60b0d5ad8161c04cb/UI/chatWindow.js#L457
Suggestion is to use
if ($(wrapper1).find('a').attr('href') || $(wrapper1).find('b').length > 0 || $(wrapper1).find('br')).length > 0 {

@kelvinchanwh Thank you for your suggestion. We will review internally and fix.
cc @RajasekharBa-Kore


Certificate Error

When trying to connect, I get the error: ApolloError: request to https://(my domain)/graphql failed, reason: unable to verify the first certificate.  Have been able to connect in postman successfully from the same system.

Having exactly the same issue. Successfully connecting to DDM using postman, however companion cannot connect and gives the same error message "https://(my domain)/graphql failed, reason: unable to verify the first certificate".
Did you make any progress on this?

Similar issue, using an internal enterprise certficate chain, error is:
Disconnected ApolloError: request to FQDN failed,reason: self-signed certificate in certificate chain

We are encountering the same error. We have the local cert installed on the machine and can reach DDM via Chrome without a cert error.
Creating ApolloClient
Getting list of available Domains
[Network error]: {
  "message": "request to https://ddm.xxx.xxx.xxx.xxx/graphql failed, reason: unable to verify the first certificate",
  "type": "system",
  "errno": "UNABLE_TO_VERIFY_LEAF_SIGNATURE",
  "code": "UNABLE_TO_VERIFY_LEAF_SIGNATURE"
}

After some back and forth with Audinate, it seems that the DDM API is only accessible when using a public CA, rather than a self-signed or internal CA. After purchasing a public CA we had no certificate errors and accessing DDM via Companion was successful.

What a disappointing response.

I'm sorry it has taken so long to get back to you, and it wasn't the response from support that you were looking for.
Whilst there's a benefit in using a trusted CA-signed certificate, I understand that it typically costs money and isn't always required.
We've just updated the module so that there is the option to disable certificate validation. This will allow you to connect to your DDM using your self-signed certificate.

Thanks so much for this change James. FWIW it isn't the case that we are using self signed certificates. Rather we have an inhouse CA, which is used for internal only services, like DDM. The root certificate is installed on the server running Companion, but Companion cant (yet) access those root certification to validate the cert.

Hey @jamesabbottsmith, copying in information from a comment I made on the last commit .
I have tried to test this new commit by running it in dev mode. The module is crashing when I attempt to restart the connection (after entering in my site's particular DDM details).

system: ** Starting Connection from "C:\Support\companion-modules-dev\companion-module-audinate-ddm_v110\main.js" **
system: ** Connection started **
Starting up module class: AudinateDanteModule
Sentry disabled
Module-host accepted registration
Creating ApolloClient
Getting list of available Domains
error: Failed to init: Error: Call timed out Error: Call timed out
at t.IpcWrapper.sendWithCb (C:\Program Files\Companion\resources\main.js:2:2687051)
at T.init (C:\Program Files\Companion\resources\main.js:2:3131614)
at l.s (C:\Program Files\Companion\resources\main.js:2:3143472)
at l.emit (node:events:517:28)
at ChildProcess. (C:\Program Files\Companion\resources\main.js:2:2673563)
at ChildProcess.emit (node:events:517:28)
at emit (node:internal/child_process:944:14)
at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
system: ** Connection stopped **

It just continues to loop this error state.

@JuddiP - We're looking into this now. We'll get back to you ASAP.
To clarify, was this module working for you before the latest update?

@jamesabbottsmith yes I agree that doing it at Companion level makes much more sense than per module (hence the feature request), and would solve issues in a few other places than just DDM for us.
I pulled the repo and built the module @JuddiP  is trying to use with Companion 3.4.3. Previously the module hasn't crashed, but we also haven't been able to do anything because of this issue, so we were keen to test it out. I have made a new build with the yarn companion-module-build --dev flag enabled to see if we get more descriptive log entries.

Hi @jamesabbottsmith,
Ended up finding the cause of the error -- a firewall policy was missing and blocking the Companion module from connecting to our DDM cluster. I wouldn't have expected the module to crash though -- perhaps some further error handling is required?

Hi @JuddiP,
We've just pushed v1.1.1, which adds better handling when there is a network error. The module shouldn't crash anymore, it just should just keep retrying until the server becomes available again. Hopefully that leads to a much better experience.
I might close this ticket now as I think the certificate issue is resolved. Feel free to open more tickets / feature requests. We'll try to be much more responsive than we were with this one. Thanks for your patience with us

Thanks for the update, @jamesabbottsmith.
No stress about the delay, we got there in the end!


Invalid hyperlink throws exception - Invalid URI: The hostname could not be parsed.

If the content of an Excel contains hyperlink, and the hyperlink is invalid such as "mailto:a@a,com", it will throw the exception "Invalid URI: The hostname could not be parsed.".

Can you show me the call stack?

Just the following code can trigger the problem.
string path = "Some problem Excel files";
FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
book = new XSSFWorkbook(fs);
Exception stack:
[UriFormatException: Invalid URI: The hostname could not be parsed.]
System.Uri.CreateHostStringHelper(String str, UInt16 idx, UInt16 end, Flags& flags, String& scopeId) +8491635
System.Uri.CreateHostString() +251
System.Uri.EnsureHostString(Boolean allowDnsOptimization) +64
System.Uri.GetComponentsHelper(UriComponents uriComponents, UriFormat uriFormat) +89
System.Uri.ToString() +96
NPOI.POIXMLFactory.GetPackageRelationship(POIXMLDocumentPart parent, PackagePart part) in   D:\github\npoi\ooxml\POIXMLFactory.cs:139
NPOI.POIXMLFactory.CreateDocumentPart(POIXMLDocumentPart parent, PackagePart part) in D:\github\npoi\ooxml\POIXMLFactory.cs:51
NPOI.POIXMLDocumentPart.Read(POIXMLFactory factory, Dictionary``2 context) in D:\github\npoi\ooxml\POIXMLDocumentPart.cs:720
NPOI.POIXMLDocumentPart.Read(POIXMLFactory factory, Dictionary``2 context) in D:\github\npoi\ooxml\POIXMLDocumentPart.cs:731
NPOI.POIXMLDocument.Load(POIXMLFactory factory) in D:\github\npoi\ooxml\POIXMLDocument.cs:164
NPOI.XSSF.UserModel.XSSFWorkbook..ctor(Stream is1) in D:\github\npoi\ooxml\XSSF\UserModel\XSSFWorkbook.cs:241

Can you upload the file? I'd like to look into the file. Something wrong with the package relationship.

This is where the exception comes from.
https://github.com/nissl-lab/npoi/blob/b5b21c522f19d08eac17018d684eaf925c898110/ooxml/POIXMLFactory.cs#L141

test.xlsx

I cannot reproduce the issue with the latest NPOI code. Which NPOI version are you using?

The latest NPOI version 2.5.6 is used.
I have tried different scenarios and found the problem.
The problem comes from the behaviour changes in .NET framework.
Uri uri = new Uri("mailto:a@a,com"); <-- Throws exception when .NET framework 4.5 or above.
Uri uri = new Uri("mailto:a@a,com");
uri.ToString(); <-- Throws exception before .NET framework 4.5, no probelm on above line.
NPOI has handled the case when Uri uri = new Uri("mailto:a@a,com"); throws exception, so the program does not have problem.
If there is no exception in Uri uri = new Uri("mailto:a@a,com");, then NPOI will throw exception when calling uri.ToString();.
For ASP.NET, even though the system is running latest .NET framework version (e.g. v4.8). If the web.config does not specify the version explicitly <httpRuntime targetFramework="4.x.x" />, the "new Uri" is still using the behaviour like before .NET framework version 4.5.

The target Uri of package looks like docProps/app.xml, xl/workbook.xml, docProps/core.xml. There is no comma in it. Are you saying Uri.ToString throws exception with these kind of relative url in .NET framework before 4.5?
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
  <Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/>
  <Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/>
  <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/>
</Relationships>

I have created a sample ASP.NET project with NPOI 2.5.6.
testNPOI.zip
Please try to comment and uncomment the line <httpRuntime targetFramework="4.8" /> in web.config.
For newly created ASP.NET projects, this config is added by default in web.config now, but it was not added some years ago by default. Hence, newly created project may not face this problem.
I have simple fix so that the NPOI can work in all situations.
XSSFHyperlink.cs (Line 85)
                Uri target = _externalRel.TargetUri;
                try
                {
                    _location = target.ToString();
                } catch
                {
                    _location = target.OriginalString.Trim().ToLower();
                }

Ok. I can reproduce the exception. Nice discovery. Looks Uri.OriginalString is much safer than Uri.ToString() in versions before .NET framework 4.5


Remove Apifox.Apifox 2.3.17 to Ruihu.Apifox 2.3.17

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.6 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

URL: https://cdn.apifox.cn/download/2.3.17/Apifox-2.3.17.exe
Status Code: 200
(Automated message - build 869)


how to correctly have multiple inputs with Perl API?

For bugs or installation issues, please provide the following information.
The more information you provide, the more likely people will be able to help you.
Environment info
Operating System: OS X 10.11.6
Compiler: gcc
Package used (Python/R/Scala/Julia): Perl
MXNet version:
Or if installed from source:
MXNet commit hash (git rev-parse HEAD): 897cc55a0ffd53317628bbccadea34b072228937
If you are using python package, please provide
Python version and distribution:
If you are using R package, please provide
R sessionInfo():
Error Message:
Please paste the full error message, including stack trace.
Minimum reproducible example
if you are using your own code, please provide a short script that reproduces the error.
this code:
my $data_age = mx->symbol->Variable("data_age");
my $fc0 = mx->symbol->FullyConnected({data => $data_age, name=> "fc0", num_hidden => 1});
my $data_hours = mx->symbol->Variable("data_hours");
my $fc1 = mx->symbol->FullyConnected({data => $data_hours, name=> "fc1", num_hidden => 1});
my $data_years = mx->symbol->Variable("data_years");
my $fc2 = mx->symbol->FullyConnected({data => $data_years, name=> "fc2", num_hidden => 1});
my $composed_input=mx->symbol->Concat($data_age, $data_hours, $data_years);
my $fc3 = mx->symbol->FullyConnected(data => $composed_input, name=> "fc3", num_hidden => 1);
my $softmax=mx->symbol->MAERegressionOutput(data => $fc3, name => "softmax");
my $module = mx->mod->Module(symbol => $softmax);
gives the following error:
You created Module with Module(..., data_names=data) but input with name 'data' is not found in symbol.list_arguments(). Did you mean one of:
data_age
data_hours
data_years
softmax_label at /Users/arussell/perl5/lib/perl5/AI/MXNet/Module/Base.pm line 46.
AI::MXNet::Module::Base::_check_input_names(AI::MXNet::Module=HASH(0x7fec8583efd8), AI::MXNet::Symbol=HASH(0x7fec83a943d8), ARRAY(0x7fec842f7458), "data", 1) called at /Users/arussell/perl5/lib/perl5/AI/MXNet/Module.pm line 223
AI::MXNet::Module::BUILD(AI::MXNet::Module=HASH(0x7fec8583efd8), HASH(0x7fec85812830)) called at /Users/arussell/perl5/lib/perl5/AI/MXNet/Module.pm line 229
AI::MXNet::Module::Module("AI::MXNet::Module", "symbol", AI::MXNet::Symbol=HASH(0x7fec83a943d8)) called at
I have multiple data inputs, each with their own iterator and I assumed, based on the documentation, that something along these lines was the way in which to handle this situation but this does no seem to work. How does one combine multiple inputs with the Perl API? Did I have the right idea and just get the API calls wrong?

@adamcrussell the 'data' is a default name for the variable where we expect the data to come from into the net.
If you use different name then you should create a module with additional parameters.
In this case use:
my $module = mx->mod->Module(symbol => $softmax, data_names => ['data_age']);

If you have more than one input variable then specify them all in the data_names array.
Also do not forget to have your iterator also return AI::MXNet::DataDesc with the correct names and shapes (the 'provide_data') call.

@sergeykolychev great, that works as far as getting the module to accept the inputs. I'll hadn't written my own iterator. I had thought that model->fit() would somehow be ale to take multiple iterators, say, one for each corresponding input. I guess that is not the case...model->fit() expect a single iterator for all inputs, correct?

yes

you can create one hot encoding in multiple ways.
easiest one to have your iterator return an ndarray for that variable with that many rows as batch size and columns being your one hot encoding. for 9 cities you need a row with 9 columns with one of these set to 1 and others as 0.
default type is float32 so it should suffice for all your vars.
If you need something custom , have your iterator return ndarray of a particular dtype and make sure that iterator provide_data call also has a correct dtype for corresponding datadesc.

@sergeykolychev ok, sounds good. I'll give it a shot. thanks for your help!

@sergeykolychev a very minor thing I noted was that on line 136 of https://github.com/apache/incubator-mxnet/blob/master/perl-package/AI-MXNet/examples/char_lstm.pl should have $self->seq_size and not $seq_size. It is pretty irrelevant and works presently because $seq_size is global. anyone else borrowing the code might get the same error as I did once they separate out the package ASCIIIterator code though.

@adamcrussell Thank you! Feel free to create a pull :-) We need more perl devs for mxnet!

@sergeykolychev ok, one earth shattering pull request sent! I'm more than happy to contribute a bit more significant code in the future.


Error: Unhandled error event

I just "installed" the wtf_ev and the wtf_redis script, but the wtf_redis is throwing erros like every 5 seconds, but everything still works fine. The whole Server cmd ist full with errors thrown from wtf_redis.
The whole Error:

did you ever find a fix?


Fixed "connection refused" error on Android devices due to server listener bound to IPv6 address instead IPv4

Probably it's needed to bind both to IPv4 and IPv6 addresses but I still don't see any IPv6 usage around

Build failed due completely different reason. Cannot be caused by just switching binding address
Jan 12, 2015 9:26:32 PM com.squareup.okhttp.mockwebserver.MockWebServer$3 execute
SEVERE: MockWebServer[50271] connection from /<IP_ADDRESS> crashed
java.lang.IllegalStateException: closed
at okio.RealBufferedSource.indexOf(RealBufferedSource.java:253)
at okio.RealBufferedSource.indexOf(RealBufferedSource.java:249)
at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:196)
at com.squareup.okhttp.mockwebserver.MockWebServer.readRequest(MockWebServer.java:524)
at com.squareup.okhttp.mockwebserver.MockWebServer.access$1400(MockWebServer.java:85)
at com.squareup.okhttp.mockwebserver.MockWebServer$3.processOneRequest(MockWebServer.java:454)
at com.squareup.okhttp.mockwebserver.MockWebServer$3.processConnection(MockWebServer.java:416)
at com.squareup.okhttp.mockwebserver.MockWebServer$3.execute(MockWebServer.java:358)
at com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Thanks.
But I think this undoes the fix from here:
https://github.com/square/okhttp/pull/1194
I'm going to keep @nfuller's fix.


RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [3]], which is output 0 of CumprodBackward0, is at version 1; expected version 0 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True).

I don't know how to solve, please tell me:
Traceback (most recent call last):
File "main_pruning.py", line 441, in
main()
File "main_pruning.py", line 363, in main
train_stats, str_threshold_indicators = train_one_epoch_pruning(
File "/home/lz/zyy/SPViT-master/SPViT_DeiT/engine.py", line 118, in train_one_epoch_pruning
loss_scaler(loss, optimizer1, optimizer2, clip_grad=max_norm, create_graph=is_second_order1, model=model)
File "/home/lz/zyy/SPViT-master/SPViT_DeiT/utils.py", line 410, in call
self._scaler.scale(loss).backward(create_graph=create_graph)
File "/home/lz/.local/lib/python3.8/site-packages/torch/_tensor.py", line 488, in backward
torch.autograd.backward(
File "/home/lz/.local/lib/python3.8/site-packages/torch/autograd/init.py", line 200, in backward
Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [3]], which is output 0 of CumprodBackward0, is at version 2; expected version 0 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True).
Traceback (most recent call last):
File "main_pruning.py", line 441, in
main()
File "main_pruning.py", line 363, in main
train_stats, str_threshold_indicators = train_one_epoch_pruning(
File "/home/lz/zyy/SPViT-master/SPViT_DeiT/engine.py", line 118, in train_one_epoch_pruning
loss_scaler(loss, optimizer1, optimizer2, clip_grad=max_norm, create_graph=is_second_order1, model=model)
File "/home/lz/zyy/SPViT-master/SPViT_DeiT/utils.py", line 410, in call
self._scaler.scale(loss).backward(create_graph=create_graph)
File "/home/lz/.local/lib/python3.8/site-packages/torch/_tensor.py", line 488, in backward
torch.autograd.backward(
File "/home/lz/.local/lib/python3.8/site-packages/torch/autograd/init.py", line 200, in backward
Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [3]], which is output 0 of CumprodBackward0, is at version 1; expected version 0 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True).

Hi railgun-zyy,
Thanks for your interest in our project. I cannot reproduce this error. Can you tell me what command that you used led to this issue?
Kind regards,
Haoyu

Close this issue as it has no further activity.


Expose ability to override dependencies of rules_proto

Problem
We generally need to override url locations of dependencies used by rules_proto.
Solution
Provide overriding of dependencies and maven_dependencies in rules_proto_dependencies.

Yes, this is the idiomatic way for overriding dependencies.
I don't know of a better way for discovering dependencies other than looking at the macros that load them. Hopefully Bazel's new deps system will make a better job at this once it's available.


Test dill

Regression test for future releases of dill.
Related to #4379.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

I should point out that the hash will be the same if computed twice with the same code on the same version of dill (after adding huggingface's code that removes line numbers and file names, and sorts globals.) My changes in dill 0.3.5 and ones that I will make in 0.3.6 will result in different pickles than the ones dill 0.3.4 was making. This should still be fine for caching.

Just some comments @lhoestq:
The best practice for testing is to have a test_<filename>.py for each <filename>.py. Therefore in order to have the filenames aligned, I would propose:

either renaming fingerprint.py to caching.py
or renaming test_caching.py to test_fingerprint.py

On the other hand, my idea when implementing this test was not to test all the functionalities of the Hasher, but just to have a regression test that fails if dill version is > 0.3.4 and the pin in our setup.py is not present. Just recall that we had no failing test in our CI when the issue with dill was found on transformers.
The objective of this PR is just to have a regression test for that case: I tested and I got AttributeError: module 'dill._dill' has no attribute 'stack'
There was no equivalent test in test_caching.py because the our CI did not fail before pinning dill.


[e2e]: container workflow_dispatch main default slsa3

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/11098697273
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.container.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.container.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Mon Sep 30 03:16:46 UTC 2024

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/11117953054
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.container.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.container.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Tue Oct  1 03:19:07 UTC 2024
Tests are passing now. Closing this issue.


BUG: Re-subscribe when internet connection is lost and regained in notion-js

Expected
A client should be able to put their process to sleep and wake it up t time later, generally greater than 3 minutes, and be able to immediately resume getting metrics.
Problem
A new subscription is created when Notion is instantiated with this library. Then if the client is, say a developer console in a chrome tab, cut off from the internet for more than two minutes (e.g. 30 minutes during a commute to work) the subscription is automatically cleaned up by the firebase API. Then when the client reconnects to the internet again the subscription is not requested again and no metrics begin to stream into our client.
Solution
Implement a local store in Notion JS to request metrics again on reconnecting to firebase servers.

Fixed on #38


Fix uploading of prebuilt frameworks to Github release

Used the wrong name for the .zip file.

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


Add to_dict functionality to make pandas conversion easier

From Parashara:
If someone did want to convert Elements to a pandas dataframe or other data structure, including a to_dictionary function in Elements which just returns a copy of the symbol_dict would make that easier. Or add element.symbol_dict to the init.py

import element.element
import pandas as pd
import json

with open(element.element.JSON_PATH) as jsonfile:
    df = pd.DataFrame(json.load(jsonfile)).transpose()

print("Search by name")
print(df.set_index('name').loc['yttrium'])
print('\n')

print("Search by atomic number")
print(df.set_index('atomic number').loc[117])
print('\n')

print("Search by symbol")
print(df.set_index('symbol').loc["Rh"])
print('\n')

Yields
Search by name
symbol                 Y
atomic number         39
mass             88.9059
Name: yttrium, dtype: object

Search by atomic number
name      ununseptium
symbol            Uus
mass              291
Name: 117, dtype: object

Search by symbol
name             rhodium
atomic number         45
mass             102.906
Name: Rh, dtype: object


Database smaller details

While reviewing #313, since it was the first PR I review of the database structure, I notice a few things that I wanted to mention. But they were unrelated to the PR, so I breing my comment https://github.com/gnosis/gp-v2-services/pull/313#pullrequestreview-590742597 here.

there's a few indexes missing: like sell token
The FKs are missing, like from trade to its order
Ideally we would save already the denormalized short id
I would consider adding a FK in the trades to the settlement, I would make sure there is a tx hash (that would be important for us in the FE), and I would consider to move those "block_number". Maybe you want to even use this FK+log_index as the PK.

I wouldn't do this one, until we see we have performance issues, but, one thought I had is, If we expect issues with having many orders, you can set a flag for the orders that are final:

expired
canceled
fully executed
For these order you know u'll never need them again (for the ones considered by the solver).
If we have too many orders, an index in this field would basically allow us to quickly filter out most of the orders. As I said, this one, better to wait for the real need

Bringing @fleupold comment https://github.com/gnosis/gp-v2-services/pull/313#issuecomment-779763693 too:
Regarding @anxolin feedback (not related to this PR so maybe better to have on an Issue?)

The FKs are missing, like from trade to its order

I believe the reason for no imposing a FK is that we could potentially see a trade for which we didn't record the order data (in case of data loss, as trades come from on-chain). Right now we still want to store those in the database.

Ideally we would save already the denormalized short id

Can you elaborate on that? Shouldn't the database be usually be normalized if possible?

and I would consider to move those "block_number".

I don't understand what you mean by this. Where do you want to move block_numbers to?

The FKs are missing, like from trade to its order

I believe the reason for no imposing a FK is that we could potentially see a trade for which we didn't record the order data (in case of data loss, as trades come from on-chain). Right now we still want to store those in the database.

But ideally we would have all the trades in the database, right? So we can check the history. Or you mean we plan to do this is phases and for now we don't index the old events.
In that case, I wouldn't even add a trade without order. If that happens, I would log an error and that it.
If in the future we have a service that populates this info, the order and it's trades will be added to the db. But I would be ok, to have only trades for which we have the order.

Ideally we would save already the denormalized short id

Can you elaborate on that? Shouldn't the database be usually be normalized if possible?

Yes, I'm just not sure how you plan to implement the "shortId" support.  The explorer will use short ids for it's URLs. So we would need to find the order using this 8 chars.
Although, I thinking we are probably fine without denormalizing, depending on the index you use for ORDER_UID, many database can use the index for LIKE patterns. if they look like "my-short-id%", if it looks like "%my-short-id%" it won't work I believe. You can test it anyways. Just flagging we would like to query them.
Related:
https://gnosisinc.slack.com/archives/CPZA1AGKY/p1611829704047600

and I would consider to move those "block_number".

I don't understand what you mean by this. Where do you want to move block_numbers to?

I'm refering to create a new table called batch or settlement. And add a FK from the trade to the settlement.
Then in the batch table we can have, among others:

batch_id
tx_hash
block_number
settlement_time
solver_address

Regarding the shortId, I was under the impression the frontend would abbreviate it for display purposes but the ID would still be a long identifier. What's the purpose of having a short trade ID if e.g. the oder ID is still a long 56 byte identifier?

Yes, the official ID would be 56 bytes, but the same as Github or Git allows you to access a commit using the short version (for UX), we would like to offer short URLs too. I think they are convenient
You can check what I mean in the 3rd slide here https://docs.google.com/presentation/d/10t4Hs3EAA3M99G_hPQxrtfZeWo6vJGsI/edit#slide=id.gbc9d9d1fd7_0_13
Also, in the spec we mention it in several places, one is in the API spec proposal: https://docs.google.com/document/d/179i8zuUrHpfvpU988HMqLB_isTJB383aOS9rGaJygh4/edit?ts=6022bf99#heading=h.c3em8as8bi57

What's the purpose of having a short trade ID

I think the BE should allow searching by short ID, kind of how Git allows searching for refs with shortened commit hashes.

, I don't think normalizing short IDs is entirely possible since what may be a valid short ID when it was queried, may no longer be valid 10 minutes later after new orders were added.

Good point! You are right. Anyways, I think postgresql is powerful to let us do this fairly easy.  Think left-anchor LIKE patterns would be able to be used with INDEXes, and for more advance things there's sth like pgtrgm which probably is not needed.


Issue with 'Switch Login Window'

Hi, everytime we click the 'Switch login Window' we get this screen...

What am I missing that is causing this behaviour, please?

Okay, thanks for the response. I guess I got confused about how to set up a local admin account login, like going back to the default Apple login screen.
On a side note, is there a way of setting extra text like I had in the Jamf Preferences for the different machine locations?
see examples

A local admin can log in from the same screen used for AD login but may need to click the offline authentication checkbox.  There are several preferences that relate to this in the admin guide: https://twocanoes.com/knowledge-base/xcreds-admin-guide/
Regarding extra text, I think you're looking for customization of menu features introduced in v4.1.  https://twocanoes.com/knowledge-base/whats-new-in-xcreds-4-1/
The upcoming release of v5.0 will also be adding customization options to show system info on the login screen using the preferences systemInfoButtonTitle and shouldShowSystemInfoButton.  https://github.com/twocanoes/xcreds/releases


Migrate Mintlify to Docusaurus

Description
Migrate over NativeLink Docs to Docusaurus.
Fixes #542
Type of change

[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to
not work as expected)
[x] This change requires a documentation update

Will need to migrate deployment to our own Vercel org from the Mintlify dashboard
How Has This Been Tested?
Please also list any relevant details for your test configuration
Checklist

[x] Updated documentation if needed
[x] Tests added/amended
[x] bazel test //...  passes locally
[x] PR is contained in a single commit, using git amend see some docs

This change is

@MarcusSorealheis I recommend taking a look at the built-in blog system that Docusaurus has it's pretty cool if you'd prefer to have it hosted on our own site instead of externally.


fix(TDI-37973): adjust the pom to make jdbc components can work in studio

Please check if the PR fulfills these requirements

[x] The commit message follows Talend standard
[ ] Tests for the changes have been added (for bug fixes / features)

What is the current behavior? (You can also link to an open issue here)
What is the new behavior?
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information:
https://jira.talendforge.org/browse/TDI-37973

after the fix, the Bundle-SymbolicName will be different for jdbc definition and runtime. But it's not enough for making jdbc work again in studio as they depend on components-adapter-beam lib which is not a plugin lib.

Hello!  This looks good to me, noting the problem with the Beam API.  If we move the beam stuff to a separate module, this looks like it's enough to fix this, right?


VS Code hanging onto process on port 9229

VSCode Version: Insiders 1.19.0
OS Version: macos 10.12.6
Node version: 8.9.1

Steps to Reproduce:

Run a node process with node --inspect in VS Code (via npm scripts)
CTRL-C the process
Repeat step 1

I get the error that the address is in use.
Starting inspector on <IP_ADDRESS>:9229 failed: address already in use

I run the command below and see this

Then I reload the VS Code window. The process is no longer shown when I run the same lsof command.
Interestingly ... when I run the same commands from an external terminal I don't have a problem running it repeatedly.
This repo here is what I used ... https://github.com/johnpapa/angular-ngrx

I ran npm run dev-proxy to reproduce this

cc @chrisdias as FYI

I can't seem to reproduce. Not sure what we can really do here anyway as this is all you shell running and stopping the processes, we don't do anything. @johnpapa anything else that might help a repro case? Did this happen for you 100% of the time?

This may have been https://github.com/Microsoft/vscode/issues/39813 as well, although I think that would have caused node --inspect to fail. Can you try again in the latest Insiders?

yep. i'll try again today. if i can reproduce it, i will make a video.

I can no longer reproduce this. Perhaps one of the insiders versions that came out recently fixed it ... or it was an aberration. Let's close this, and if it happens again I'll reopen it.


Make backtrace collapsible

Amazing tool!
As always, just saw some need on my side, so the issue is that if I do a
xr($var, f: XR_BACKTRACE);

You end up with a long backtrace which is hard to debug if you have placed many of them.

I think that a collapsible backtrace will be troublesome for users as for every item (or items) will require a click action to show more. This is counter intuitive as what you care about the trace depends on your context, sometimes you will require to browse the entire thing, sometimes you will need to focus in just a few items.
I think that a scrollable viewport backtrace will fit better and it is also very trivial to implement, it just requires a container and max height.

Thanks for replying! I will try to dig a little bit what's size the container could be and be revert back to you! Just to chip in a little bit 😅

According to the spec, browsers should support to resize a DIV so we could have a scroll thing with resizable height for better display on each case.
https://www.w3.org/TR/css-ui-3/#resize


Additional characters for function name and item name

What kind of change does this PR introduce? (check one with "x")
[*] Bugfix
[] Feature
[] Code style update (formatting, local variables)
[] Refactoring (no functional changes, no api changes)
[] Other... Please describe:

Fixes: #
What is the current behavior?
The function name cannot have _, and the resolver item name cannot handle . , - and _
What is the new behavior?

Added .,  _ and - for the item name. such as: $property[Marketo.Connection.client_id] or $property[Marketo.Connection.secret-key]`
Added _ support for the function name

I think this is confusing.  In our script "language" . is used to traverse an object and is not valid as a part of an identifier.  I think they shouldn't be allowed to be used directly in property lookup.  They should be escaped... so if you want to use periods, you have to put it in quotes.  $property["Marketo.Connection.client_id"].  @mellistibco thoughts?

I agree with @fm-tibco. I don't particularly think we should introduce . due to the double meaning. I'm ok with _ and -, however.

@mellistibco Are you agree to add quotes if we introduce .?
Why we need . the reason: We are introducing a property group and the . as the group separator,   taking an example of the Marketo one, Marketo is top level and connection second level and client id is a leaf node.
Marketo
Connection
Client_id,
We used . as a delimiter, in that case, if we remove . we need another character to act as a delimiter.   _ and - cannot because it can be a level property name as well.

@fm-tibco @mellistibco : In 058, hierarchy was presented using dot. We have many apps with those. We also have many property resolver implementations that rely on dot to determine the hierarchy.  Let's see if can be supported.
CC: @rishikeshpalve

Valid identifiers don't need double quotes, but if you are going to use . or - then we should use double quotes.

We'll need to support double quotes for anything with . or -. Properties are just labeled strings, not objects so we'll need to wrap in quotes/escape the label.

@fm-tibco @mellistibco  to be clear, we will remove quotes while resolving the value(GetResolution method), is that right?

Yes, just in the script they require the quotes to kind of "escape" to those values


Fix/ms feedback

Fixed Properties panel separation

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

Sorry, my mistake.


Microsoft.PolicyInsights/remediations 2019-07-01

Adds the resourceDiscoveryMode enum to the remediations API in Microsoft.PolicyInsights.  This allows remediations to discover non-compliant resources and remediate them in one call (optionally).  Previously, non-compliant resources had to be known prior to remediation starting.
Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[x] The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

[x] Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
adding/removing APIs.
adding/removing properties.
adding/removing API-version.
adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

[ ] If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Please follow the link to find more details on API review process.

Automation for azure-sdk-for-python

Automation for azure-sdk-for-go

Can one of the admins verify this patch?

@MyronFanQiu Looks like an SDK reviewer didn't get assigned to this PR.  Can you assign someone appropriate?

@fengzhou-msft comments resolved


Bug report for failed CircleCI job (job: windows-test)

Auto-generated report for windows-test job.
Link to failed build: https://circleci.com/gh/asuresh4/opentelemetry-collector/73.
Note: Information about any subsequent build failures that happen while
this issue is open, will add comments with more information to this issue.

Link to latest failed build: https://circleci.com/gh/asuresh4/opentelemetry-collector/84

Link to latest failed build: https://circleci.com/gh/asuresh4/opentelemetry-collector/95


Ability to set tier when uploading a block blob

Is your feature request related to a problem? Please describe.
When using BlockBlobClient.uploadFile or BlockBlobClient.uploadStream the blob is uploaded using the container's default tier (either Hot or Cool). There is no way to set the tier through these functions, meaning you have to upload to the default tier and then use setAccessTier to change the tier. This can incur additional unnecessary cost, which could be avoided if uploading directly to the desired tier (and is particularly bad for the Archive tier as you can't set the container's default tier to be Archive).
Describe the solution you'd like
An additional property in the options object which allows you to set the tier you want to upload to (e.g. see BlockBlobUploadOptions.tier as used in the upload function).
Describe alternatives you've considered
The only workaround seems to be to use the upload method, but this is fairly raw and is fairly complex compared with using uploadFile or uploadStream.

Yes, we should support tier in the high-level upload methods. And it's simple to implement as these methods simply pass the option to upload.


Unlink service does not work for me

I got the following config:
  - platform: musiccast_yamaha
    host: <IP_ADDRESS>
    port: 5004
  - platform: musiccast_yamaha
    host: <IP_ADDRESS>
    port: 5005

and in lovelace:
          - type: button
            name: Join Office
            show_state: false
            tap_action:
              action: call-service
              service: musiccast_yamaha.join
              service_data:
                entity_id: media_player.speaker_main
                master: media_player.receiver_main
          - type: button
            name: Only Receiver
            show_state: false
            tap_action:
              action: call-service
              service: musiccast_yamaha.unjoin
              service_data:
                entity_id: media_player.speaker_main

The Join Office button works fine and groups the speakers but the Only Receiver one with the unjoin service does nothing. I tried calling the service from the dev screen in HASS but nothing happens there as well. Any thoughts?

Hello. Can you please try with:
service: musiccast_yamaha.unjoin
entity_id: media_player.speaker_main

Try removing service_data

Hi, thanks for the support. Unfortunately, it does not work that way too. I tried with dev tools as well, calling the service does nothing. No errors in the HASS log too.

I will try creating an automation and calling that instead, to test if it works that way

I tried running this automation, but again no result:
alias: unlink test
description: ''
trigger: []
condition: []
action:
  - service: musiccast_yamaha.unjoin
    entity_id: media_player.speaker_main
mode: single

I did some debugging and found the issue. Looks like something is messing up in Python due to the parameter names if one line of your code - file "init.py" line 51:
masters = [entities for entities in entities
                       if entities.is_master]

Since entities  is already used maybe it overrides something (I am no expert in Python though, so I may be wrong)
I changed it to this which fixed the issue for me:
masters = [e for e in entities if e.is_master]
You can close this issue.

I did some debugging and found the issue. Looks like something is messing up in Python due to the parameter names if one line of your code - file "init.py" line 51:
masters = [entities for entities in entities
                       if entities.is_master]

Since entities  is already used maybe it overrides something (I am no expert in Python though, so I may be wrong)
I changed it to this which fixed the issue for me:
masters = [e for e in entities if e.is_master]
You can close this issue.

I will try it too. And if it works as expected I will update the component. Thank you!

I will try it too. And if it works as expected I will update the component. Thank you!


Fix scalaz interpreter

Finally got around to fixing these tests. Conditional operations reify corresponding exceptions in the happy path, only those operations needed adjusting.
cc @emilypi

Those build failures are 😲

Sorry for not reviewing. I wonder if your work on the build means that some of the extra shutdown calls can now be removed.

They're not fundamental indeed, I just thought a test suite creates a client and then shuts it down.

@emilypi We need to design a proper error ADT, ConditionalCheckFailedException only fits a few use cases and is a throwable. Then I totally agree we'll be able to use the full expressiveness of zio.
In hindsight, I could have fixed it by just attempting the conditional operations as they expect an Either[ConditionalCheckFailedException, A0] in return.


CC-23 | Add a way to pass 2FA requisites

We need a way to inform the Cozy-Collect app that a konnector require a 2FA token (e.g. sent by SMS). This PR add a errors wrapper that exposes helpers. The first one is requireTwoFactor, that logs an error message that will be written to the stack's job. Its message is normalized (so Collect can use it to detect that the error is a 2FA requisite). A base64 serialized object can be append to the message string, so the konnector can pass a context (e.g. for _csrf and session token). Collect will then add them to its next request (when the user submit the 2FA token) so the konnector can continue its execution (same session, etc).
It's a little bit messy IMHO, but I can't find a better way to handle this use-case.

@doubleface, @aenario: ping


Using multiple autoComplete Textfield in same widget tree cause global key exception

Hi thanks for this amazing library, I was having an issue while using it and want to check if anyone knows how to solve.
I want to use the 2-3 autocomplete text fields on the same screen. But when I add it and run the app, I get the error Multiple widgets used the same GlobalKey.
This happens because the global key which is a required field cannot be used for more than 1 widget. There is a workaround by declaring our own key https://stackoverflow.com/questions/49862572/multiple-widgets-used-the-same-globalkey but autocomplete textfield do a type check and the above solution doesn't work.
For my use case, I am not using clear, is it possible to not make key required for such use cases? or is there any other suggestion.

I tried this but it throws an exception
══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ 2018-10-22 07:30:43.149 28048-28064/dexterapps.bankifscflutter I/flutter: The following assertion was thrown building 2018-10-22 07:30:43.149 28048-28064/dexterapps.bankifscflutter I/flutter: FancyAutoCompleteTextField-[LabeledGlobalKey<AutoCompleteTextFieldState<String>>#809e7](state: 2018-10-22 07:30:43.149 28048-28064/dexterapps.bankifscflutter I/flutter: _FancyAutoCompleteTextFieldState#47758): 2018-10-22 07:30:43.149 28048-28064/dexterapps.bankifscflutter I/flutter: Multiple widgets used the same GlobalKey. 2018-10-22 07:30:43.149 28048-28064/dexterapps.bankifscflutter I/flutter: The key [LabeledGlobalKey<AutoCompleteTextFieldState<String>>#809e7] was used by multiple widgets. 2018-10-22 07:30:43.149 28048-28064/dexterapps.bankifscflutter I/flutter: The parents of those widgets were: 2018-10-22 07:30:43.149 28048-28064/dexterapps.bankifscflutter I/flutter: - Semantics(container: false, properties: SemanticsProperties, label: null, value: null, hint: null, 2018-10-22 07:30:43.149 28048-28064/dexterapps.bankifscflutter I/flutter:   hintOverrides: null, renderObject: RenderSemanticsAnnotations#d5887 NEEDS-LAYOUT NEEDS-PAINT) 2018-10-22 07:30:43.149 28048-28064/dexterapps.bankifscflutter I/flutter: - Padding(padding: EdgeInsets(4.0, 0.0, 4.0, 0.0), renderObject: RenderPadding#e4d36 NEEDS-LAYOUT 2018-10-22 07:30:43.149 28048-28064/dexterapps.bankifscflutter I/flutter:   NEEDS-PAINT) 2018-10-22 07:30:43.149 28048-28064/dexterapps.bankifscflutter I/flutter: A GlobalKey can only be specified on one widget at a time in the widget tree.

2018-10-22 07:30:43.149 28048-28064/dexterapps.bankifscflutter I/flutter: Multiple widgets used the same GlobalKey.
This line states multiple widgets are using the same key. https://www.didierboelens.com/2018/06/widget---state---context---inheritedwidget/ seems like a good overview of how globalkey works in Flutter.

thanks,
I am actually using it in a diff way, i created another widget on top of autoComplete widget, due to this i am not able to pass multiple global keys, since doing GlobalKey<AutoCompleteTextFieldState> key1 = new GlobalKey() 2 times also create same instance of Globalkey.

If you're subclassing the AutoCompleteTextField, you'll need to implement the necessary implementations.


target_pages parameter not affecting llama_parse behavior

def llama_parser():     # from llama_index.core.schema import ImageDocument     from llama_parse import LlamaParse     os.environ["LLAMA_CLOUD_API_KEY"] = api_key     instructions = "The provided document is an academic/scientific article. Some pages may contain figures, tables and/or formulas."     parser = LlamaParse(         # result_type="json",         parsing_instructions=instructions,         target_pages=[3,5,6], # also tried "3,5,6"         language="en",         verbose=True         )     return parser
Returns all the pages no matter whether it's  target_pages=[3,5,6] or   target_pages="3,5,6"
In the UI it seems to work fine and extract only as instructed per the target_pages. Python client not.

This is now fixed


condacolab should be installed by condacolab :)

After #31, it doesn't seems that condacolab is available anymore in the python environment:
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
[<ipython-input-5-456c51dbd3c8>](https://localhost:8080/#) in <module>
----> 1 import condacolab
      2 get_ipython().run_line_magic('env', 'CONDA_PREFIX=condacolab.PREFIX')
      3 get_ipython().system('flow.tcl -design spm')

ModuleNotFoundError: No module named 'condacolab'

This remove the ability to do condacolab.check() to check that the installation succeeded, or rely on condacolab.PREFIX to compute path relative to the environment.

ah my bad, I was testing with an old version of condacolab https://github.com/conda-incubator/condacolab/commit/28521d7c5c494dd6377bb072d97592e30c44609c and a custom constructor installer, so it seems unrelated to #31.
Closing!


bug: Auto-indent not working for html files

Did you check docs and existing issues?

[X] I have read all the LazyVim docs
[X] I have searched the existing issues of LazyVim
[X] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)
0.9.4
Operating system/version
Fedora 39
Describe the bug
Auto indentation doesn't work in HTML files. I'm a new LazyVim user so I don't know if this was caused by an update but I noticed it today and can't figure out what's causing this. I haven't changed any treesitter options and it happens only for HTML. Other file types auto indent as expected.
Say I have typed this:

When I press ENTER, I want stuff to indent like so:

However, it doesn't indent at all:

Steps To Reproduce

Open any HTML file
Type in an opening and closing tag
Press ENTER key

Expected Behavior
The tags auto indent

Look into nvim-autopairs to get this kind of behavior. LazyVim uses mini.pairs by default, which doesn't seem to provide the desired behavior. Maybe you could create an issue at the plugin's repo to provide such behavior if possible. Or perhaps it's a combination of nvim-cmp with mini.pairs, not sure.

 I installed nvim-autopairs earlier to help with some character pairing. Turns out that and mini.pairs were someone in conflict. Everything works after I disabled mini.pairs

Do you have emmet_language_server installed on mason per chance? Uninstalling it seems to fix this issue for me, or installing autopairs. I'm not sure why that is exactly, I didn't think LSPs can dictate formatting, so I'd appreciate if someone could shed some light on how this works or how to fix it.

Do you have emmet_language_server installed on mason per chance?

No, I don't.

I didn't think LSPs can dictate formatting, so I'd appreciate if someone could shed some light on how this works or how to fix it.

Idk man I'm a newbie myself


Add support for SQS queues

This adds support for getting metrics from SQS queues. Note that by
default SQS queues aren't tagged at all, and therefore don't appear in
the resourcegroupstaggingapi. It's therefore necessary to tag them with
something before they'll appear in this exporter.

Awesome thanks. Will release on Friday.

Thanks for this stuff.. @alext sorry to nag but could you possibly provide a sample snippet of of how you configured this?
I've got the aws_sqs_info metric appearing after adding tags to all of the SQS queues, but for the life of me I cannot get an actual number out of any of the metrics Cloudwatch has..
EG:

yet I'm pretty sure there "should" be something in there..

I'm very happy to PR updated docs/example config once I know what it should look like

Hi @starkers
I'm afraid I'm not sure I can remember exactly how I configured this when I was looking at this. For me it turned out to be too much of a pain to persuade Celery to add tags to the SQS queues, so I ended up using a different approach (getting metrics directly from SQS using https://github.com/jmal98/sqs-exporter).
I do remember something about the length/period of metrics being an issue - IIRC SQS metrics in CloudWatch only have a resolution of 5 minutes, so I think I had to set length to at least 300 for it to work (this is the same issue as described for ELBs here: https://github.com/ivx/yet-another-cloudwatch-exporter#help-my-metrics-are-intermittent).
Sorry I can't be more help...


feat: migrate file picker v2

Description
Remove FilePicker, FilePickerV2, uses FilePickerV2 from ds, changes imports. Progresses https://github.com/appsmithorg/appsmith/issues/17251
Type of change

New feature (non-breaking change which adds functionality)

How Has This Been Tested?
Locally, and then on the DP
Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

/ok-to-test sha=316e5a3

/ok-to-test sha=31a68c3

/ok-to-test sha=86c2a47

/ok-to-test sha=f180c6c68c0188c9378966eb916585f75a7bdffc

This PR has been tested. No issues found.

/ok-to-test sha=1cf82cec371f022bc5a94e6ed6486aa8189e8b3c


Variables

Hello everyone,
I've been using the sony visca module to control our BirdDog P100, P200 and P400 cameras and it has been working wonderfully.
Since I'm using it for pan-tilt-zoom control, as well as picture adjustments, I'd love to be able to use variables to get the current values of these settings – this would make matching cameras much easier:

Iris
Shutter
Gain
WB Mode
Blue Gain
Red Gain

I've looked at their VISCA over IP inquiry command lists and they seem to match each other, as well as Sony's PTZs. Here are the links to their docs:
BirdDog P100 Command List
BirdDog P200 Command List
BirdDog P400 Command List
Sony BRC-X400/X401, SRG-X400/201M2, SRG-X120/HD1M2 Command List
Since I have no experience with programming companion modules I'm hoping that someone else can pick this up and make this module much greater than it already is :)

There is a birddog-ptz module in the catalog.  It looks like a fairly comprehensive module and may have what you need.


Looking for products using UPC code instead of ASIN

I want to search Amazon using UPC code instead of ASIN. Could any one help me on this please.

I found the solution for this issue and below is a solution.
Initial code was working fine for ASIN. If UPC needs to be used for searching, use below code.
product = amazon.lookup(ItemId='654866009303', IdType='UPC', SearchIndex='All')
I hope this helps some one. Thanks.


[Refactoring] Create more Container components to decrease the amount of deeply passed props

@zulipbot claim

Maybe we should discuss that, or just do it in small steps?

sure, lets discuss it 👍

This can be considered implemented for now (as the majority of needed work is done). We can always do more work towards this.


Remove all references to your personal details/identification/passwords in the project

This would probably warrant a 0.1.2 release.

All personal details and names, as well as old unnecessary files like postfix should now be removed in the development branch — will merge to main soon. Finishing up some more polishing and issues like redundant variables in playbooks and parsing. Also finishing up the 'testing' capability that has been added to ensure helpdesk is configured properly, which I did for myself to make testing installs and changes easier, but also helps end users on first install or after adding more playbooks. Will add the documentation after I finish on dev branch and this will form 0.1.2.


Markdown is not colorful

Current theme on markdown is very ugly and doesn't contain any colors.

One solution is disabling treesitter and then using the old vim markdown plugin


GTA V on Epic keeps getting flagged as uninstalled, while it isn't.

Extension name
Epic Store
Bug Description
GTA V on Epic keeps getting flagged as uninstalled, while it isn't.
To Reproduce
Install GTA V on Epic.
Updating the Epic game library causes GTA V to be marked as uninstalled.
Extensions log
I:\EPIC is my default install location for the Epic Launcher
GTA V is in stalled in I:\EPIC\GTAV
Extensions.log contains a path to P:\EPIC\GTAV (I use Playnite portable on drive P:)
I think I used to install Epic games in the P:\EPIC\ folder, but I changed that.

This means that the path is wrong in Epic's config files.

try reinstalling the game
did you originally install the game there or moved it manually after initial install?

did you originally install the game there or moved it manually after initial install?

I think so, yes!
What should I do?

Fix those paths in c:\ProgramData\Epic\EpicGamesLauncher\Data\Manifests\

There are .item files in that folder, you need to figure out which one is GTA's and fix all paths in that file.

There are .item files in that folder, you need to figure out which one is GTA's and fix all paths in that file.

There was a second .item file for GTA V with the wrong path.
I deleted that file and it's fixed now.
Thanks!


App is Killed immediately after start in Docker when Prisma is enabled

Bug description
I have a Prisma app running in Fastify on the Bun runtime. When this app is deployed to Docker it does start but then immediately gets Killed by Docker as exit code 137. This does not occur when prisma is disabled.
Note according to issue 21241 Node is needed for prisma generate to work, which is why I have both Bun and Node installed.
My dockerfile:
FROM ubuntu:20.04
RUN apt-get update && apt-get install -y \
    curl \
    && rm -rf /var/lib/apt/lists/*
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash -
RUN apt-get install -y nodejs
RUN apt-get install unzip
RUN npm install -g bun
COPY package.json ./
COPY bun.lockb ./
COPY prisma ./prisma
COPY src ./
RUN bun install --force
RUN bun install -g<EMAIL_ADDRESS>CMD bun prisma generate;bun ./index.ts

How to reproduce

Clone https://github.com/jsoneaday/build-servers-with-bun-fastify/sec-3/lec-13/routes/end/routes
Run sh deploy.sh
Wait for deployment to finish and go to Docker desktop and click on routes-webserver-1 and wait a few seconds (around 10)
In the logs you will see that the server started and then got Killed.
Something like this: 2023-10-26 14:23:32 Prisma schema loaded from prisma/schema.prisma
2023-10-26 14:23:33
2023-10-26 14:23:33 ✔ Generated Prisma Client (v5.5.2) to ./node_modules/@prisma/client in 160ms
2023-10-26 14:23:33
2023-10-26 14:23:33 Start using Prisma Client in Node.js (See: https://pris.ly/d/client)
2023-10-26 14:23:33 2023-10-26 14:23:33 import { PrismaClient } from '@prisma/client' 2023-10-26 14:23:33 const prisma = new PrismaClient() 2023-10-26 14:23:33
2023-10-26 14:23:33 or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate)
2023-10-26 14:23:33 2023-10-26 14:23:33 import { PrismaClient } from '@prisma/client/edge' 2023-10-26 14:23:33 const prisma = new PrismaClient() 2023-10-26 14:23:33
2023-10-26 14:23:33
2023-10-26 14:23:33 See other ways of importing Prisma Client: http://pris.ly/d/importing-client
2023-10-26 14:23:33
2023-10-26 14:23:33 {"level":30,"time":1698344613666,"pid":52,"hostname":"e8ed78be8c00","msg":"Server listening at http://<IP_ADDRESS>:4000"}
2023-10-26 14:23:33 {"level":30,"time":1698344613666,"pid":52,"hostname":"e8ed78be8c00","msg":"Let's go!"}
2023-10-26 14:23:48 Killed

Expected behavior
Nothing fancy my app should run and not be killed by docker.
Please note this issue may be related to these existing issues:
https://github.com/prisma/prisma/issues/21241
https://github.com/prisma/prisma/issues/21251
Prisma information

// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

model Profile {
  id            BigInt    @id @default(autoincrement()) @db.BigInt
  createdAt     DateTime  @default(now())
  updatedAt     DateTime  @updatedAt
  userName      String    @unique @db.VarChar(50)
  fullName      String    @db.VarChar(100)
  description   String?   @db.VarChar(250)
  region        String?   @db.VarChar(50)
  mainUrl       String?   @db.VarChar(250)
  avatar        Bytes?    @db.ByteA
  messages      Message[]
  followers     Follow[]  @relation("Follower")
  followed      Follow[]  @relation("Followed")
}

model Follow {
  id          BigInt    @id @default(autoincrement()) @db.BigInt
  createdAt   DateTime  @default(now())
  updatedAt   DateTime  @updatedAt
  follower    Profile   @relation("Follower", fields: [followerId], references: [id])
  followerId  BigInt
  followed    Profile   @relation("Followed", fields: [followedId], references: [id])
  followedId  BigInt
}

model Message {
  id                            BigInt              @id @default(autoincrement()) @db.BigInt
  createdAt                     DateTime            @default(now())
  updatedAt                     DateTime            @updatedAt
  author                        Profile             @relation(fields: [authorId], references: [id])
  authorId                      BigInt
  body                          String              @db.VarChar(150)
  likes                         Int                 @default(0)
  image                         Bytes?              @db.ByteA
  responderMessageResponses     MessageResponse[]   @relation("ResponderMessageResponse")
  respondedMessageResponses     MessageResponse[]   @relation("RespondedMessageResponse")
  broadcasterMessageBroadcasts  MessageBroadcast[]  @relation("BroadcasterMessageBroadcast")
  broadcastMessageBroadcasts    MessageBroadcast[]  @relation("BroadcastMessageBroadcast")
}

model MessageResponse {
  id              BigInt    @id @default(autoincrement()) @db.BigInt
  createdAt       DateTime  @default(now())
  updatedAt       DateTime  @updatedAt
  responderMsg    Message   @relation("ResponderMessageResponse", fields: [responderMsgId], references: [id])
  responderMsgId  BigInt
  respondedMsg    Message   @relation("RespondedMessageResponse", fields: [respondedMsgId], references: [id])
  respondedMsgId  BigInt
}

model MessageBroadcast {
  id                  BigInt    @id  @default(autoincrement()) @db.BigInt
  createdAt           DateTime  @default(now())
  updatedAt           DateTime  @updatedAt
  broadcasterMsg      Message   @relation("BroadcasterMessageBroadcast", fields: [broadcasterMsgId], references: [id])
  broadcasterMsgId    BigInt
  broadcastMsg        Message   @relation("BroadcastMessageBroadcast", fields: [broadcastMsgId], references: [id])
  broadcastMsgId      BigInt
  additionalMessage   String?   @db.VarChar(140)
}

import { PrismaClient } from "@prisma/client";
import ProfileRepo from "./profile/ProfileRepo";
import MessageRepo from "./message/MessageRepo";

export enum SortOrder {
  Asc = "asc",
  Desc = "desc",
}

export default class Repository {
  private readonly prisma: PrismaClient;
  readonly profileRepo: ProfileRepo;
  readonly messageRepo: MessageRepo;

  constructor() {
    this.prisma = new PrismaClient();
    this.profileRepo = new ProfileRepo(this.prisma);
    this.messageRepo = new MessageRepo(this.prisma);
  }

  async close() {
    await this.prisma.$disconnect();
  }
}

Environment & setup

OS: Darwin 23.0.0 arm64 arm
Database: PostgreSQL
Node.js version: 20
Bun version: 1.0.7

Prisma Version
prisma                  : 5.5.2
@prisma/client          : 5.5.2
Current platform        : darwin-arm64
Query Engine (Node-API) : libquery-engine aebc046ce8b88ebbcb45efe31cbe7d06fd6abc0a (at<EMAIL_ADDRESS>Schema Engine           : schema-engine-cli aebc046ce8b88ebbcb45efe31cbe7d06fd6abc0a (at ../../../../../../../../.bun/install/global/node_modules/@prisma/engines/schema-engine-darwin-arm64)
Schema Wasm             : @prisma/prisma-schema-wasm 5.5.1-1.aebc046ce8b88ebbcb45efe31cbe7d06fd6abc0a
Default Engines Hash    : aebc046ce8b88ebbcb45efe31cbe7d06fd6abc0a
Studio                  : 0.494.0

One additional thing I noticed is that upon server start cpu usage spikes to around 85% before docker does the kill.

I saw on another issue that the client generation can be done to a different folder. So I generated the client during dev time and copied it to my docker image, so that I don't need to install Node or generate the client during docker deployment. This does not fix the Kill issue. As long as prisma is running docker is killing my service

This is an issue with arm linux and bun, switching to x64 linux resolves issue


Add unit test for F08 packet equation

See discussion here in the Rust connector. The Java implementation uses the correct equation, but we need a small unit test to validate this behavior (this test may already exist, in which case we can just remove the TODO in the Java code and close this issue).

Going to work on the following scenarios:
// Scenarios To test
  //
  // data, no max
  // No data, no max

  // no data, max < prepare
  // no data, max == prepare
  // no data, max > prepare

  // data, max < prepare
  // data, max == prepare
  // data, max > prepare


android emulator http-proxy

Installed Whatsapp on android emulator
Installed mitmproxy
started Android emulator using adb with the http-proxy flag,
Tried browsing via emualtor browser works fine i can see the requests in mitmproxy, when I try registering Whatsapp/Viber I enter my phone number and press continue and then I get a "No internet connection" error.

So i tried port 80 as well as port 8080 as my http-proxy for the emulator still no success with Whatsapp/Viber but like i said I can browse the web from with in the emulaotr and see the requests in mitmproxy its just Whatsapp and Viber that I;ve tried and that did not work.
System information
Mitmproxy version: 0.18.2
Python version: 2.7.6
Platform: Linux-4.2.0-27-generic-x86_64-with-Ubuntu-14.04-trusty
SSL version: OpenSSL 1.0.1f 6 Jan 2014
Linux distro: Ubuntu 14.04 trusty
Emulator versions tested on:
Android 4.3.1 API 18
Android 6.0 API 23
please help!!!!

Unfortunately for us, these apps use certificate pinning, which means they don't accept our custom CA. There is not much we can do.
https://security.stackexchange.com/questions/122981/does-whatsapp-use-certificate-pinning