add unshare workflow proto

This PR adds an unshare(1) workflow prototype. It creates a writable root "sandbox" at /tmp/$USER.newroot and uses unshare(1) to manipulate user and mount namespaces. It is my hope that you folks will adopt and support this.
This is useful for those whom cannot use bubblewrap or setuid helpers. FWIW, you can create and mount squashfs files with a setuid-stripped fusermount3 binary using nested namespaces (see: https://github.com/hpc/charliecloud/pull/1415).
There are improvements to be had. For example, I have not tried concurrent builds of different environments. I suspect that won't work, out of the box, with what I've provided here.
$ ./bin/stack-config -s /foo/bar/unshare/system-config/cagnusmarlson -r /foo/bar/unshare/recipe -b /dev/shm/$USER.build --unshare
Stackinator
  recipe path:  /foo/bar/unshare/recipe
  build path :  /dev/shm/jogas.build
  system     :  /foo/bar/unshare/system-config/cagnusmarlson
  mount      :  default
  build cache:  None
  sandbox tool: unshare
spack: checkout branch/commit internal-0.20.0

Configuration finished, run the following to build the environment:

cd /dev/shm/jogas.build
unshare -U -m -r ./newroot.sh env --ignore-environment PATH=/usr/bin:/bin:`pwd`/spack/bin make store.squashfs -j32

$ cd /dev/shm/jogas.build
$ unshare -U -m -r ./newroot.sh env --ignore-environment PATH=/usr/bin:/bin:`pwd`/spack/bin make store.squashfs -j32
creating: newroot: /tmp/jogas.newroot
/tmp/jogas.newroot
[...]
/tmp/jogas.newroot/apps
/tmp/jogas.newroot/data
[...]
/tmp/jogas.newroot/var
/tmp/jogas.newroot/usr
/tmp/jogas.newroot/tmp
/tmp/jogas.newroot/sys
/tmp/jogas.newroot/srv
/tmp/jogas.newroot/selinux
/tmp/jogas.newroot/sbin
/tmp/jogas.newroot/run
/tmp/jogas.newroot/root
/tmp/jogas.newroot/proc
[...]
/tmp/jogas.newroot/net
/tmp/jogas.newroot/mnt
/tmp/jogas.newroot/lib64
/tmp/jogas.newroot/lib
[...]
/tmp/jogas.newroot/home
/tmp/jogas.newroot/etc
/tmp/jogas.newroot/dev
[...]
/tmp/jogas.newroot/boot
/tmp/jogas.newroot/bin
/tmp/jogas.newroot/.profile
/tmp/jogas.newroot/.wificonfig
spack arch... linux-firehose
spack version... 0.21.0.dev0 (2c07392e3087a19735c73f6ee6e9a185e8fd0464)
checking if spack concretizer works... ==> Warning: Failed to initialize repository: '/fun-stack/repo'.
  No repo.yaml found in '/fun-stack/repo'
  To remove the bad repository, run this command:
      spack repo rm /fun-stack/repo
yup
touch mirror-setup
make -C compilers
make[1]: Entering directory '/dev/shm/jogas.build/compilers'
[...]
mkdir -p /fun-stack
touch bootstrap/compilers.yaml
spack -e gcc/ concretize -f
[...]
 -   tivowgn  gcc<EMAIL_ADDRESS>build_system=autotools build_type=Release languages=c,c++,fortran patches=cc6112d arch=linux-firehose
 -   apih3cj      ^diffutils<EMAIL_ADDRESS>build_system=autotools arch=linux-firehose
 -   pze3z5p          ^libiconv<EMAIL_ADDRESS>build_system=autotools libs=shared,static arch=linux-firehose

Thanks for the detailed PR @j-ogas !
This is a really useful addition - the bwrap requirement has held back some potential users from testing the tool.
We will have look at the PR, and find a way to integrate it.

If I understand correctly, it fails because /user-environment exists already on our system and is bind mounted in https://github.com/hpc/stackinator/blob/unshare/stackinator/templates/unshare-newroot.sh#L74

If I understand correctly, it fails because /user-environment exists already on our system and is bind mounted in https://github.com/hpc/stackinator/blob/unshare/stackinator/templates/unshare-newroot.sh#L74

Ah, yeah. {{ store_path }} would need to be written by the user in the newroot. I think we can get around this with something like the following, assuming {{ store_path}} is an absolute path at this point?
$ find / -maxdepth 1 -not -wholename '/' \
                     -not "${store_path}" | while read f; do mount_ "$f"; done

@bcumming, see 0d6c6fd when you have a moment. I believe it may fix the permission issue you encountered by addressing two oversights: 1) the use case where {{ store }} exists as a sub-directory of /, and (2) {{ build_path }}/store is now being bind mounted over the newroot {{ store }} path as intended.
Also, if it helps, opening a shell in the newroot environment may be useful for tinkering and debugging.
$ cd /dev/jogas.build
$ unshare -U -r -m ./newroot.sh /bin/bash

I was able to build a gcc + cray-mpich environment to completion without issue on our Cray EX test bed. Let me know if you bump into anymore problems. Hope all is well.

Thank you @j-ogas , it works! Looks good to me. For the sake of consistency with the existing approach, one could probably also bind a tmpfs to the home directory.

Given the following observations:

The purpose of this PR is to facilitate building the software stacks on systems without bubblewrap (i.e. the bwrap isn't available).
It doesn't address the issue of not being able to build images on systems that don't allow user namespaces (i.e. /proc/sys/user/max_user_namespaces is 0)
Stackinator doesn't require bwrap be installed as setuid - it is not installed like this on the CSCS clusters or our workstations.
this has subtle differences to the bwrap workflow that would require separate testing and require maintenance

How about bootstrapping bwrap as part of the stack build on systems on which it isn't installed?
In my opinion, a script like the following that bootstraps bwrap is simpler to maintain:
#!/bin/bash
set -e

basepath=$(pwd)
installpath=${basepath}/local
mkdir -p ${installpath}

echo "log file" > log

libcapversion=2.68
libcaptarfile=libcap-${libcapversion}.tar.gz
libcapurl=https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/${libcaptarfile}
echo == downloading libcap $libcapversion from $libcapurl
wget -nv $libcapurl >> log
tar -xzvf $libcaptarfile >> log

echo == making libcap
cd libcap-${libcapversion}
make RAISE_SETFCAP=no GOLANG=no USE_GPERF=no SHARED=yes lib=lib prefix=$installpath install >> log

cd ${basepath}

bwrapversion=0.8.0
bwraptarfile=bubblewrap-${bwrapversion}.tar.xz
bwrapurl=https://github.com/containers/bubblewrap/releases/download/v${bwrapversion}/${bwraptarfile}

echo == downloading bubblewrap $bwrapversion from $bwrapurl
wget -nv ${bwrapurl} >> log
tar -xvf ${bwraptarfile} >> log
cd bubblewrap-${bwrapversion}

echo == configuring bubblewrap
CFLAGS="-I${installpath}/include -L${installpath}/lib" ./configure --disable-sudo --disable-man --without-bash-completion-dir --prefix=${installpath} >> log
echo == building bubblewrap
make install >> log

echo == finished
cd ${basepath}
${installpath}/bin/bwrap --version

* Stackinator doesn't require `bwrap` be installed as setuid - it is not installed like this on the CSCS clusters or our workstations.

Ah, I wasn't aware. The bubblewrap README instructions specify sudo in their source build instructions, it didn't occur to me it could be built otherwise.
I was able to use your bootstrap script above to build bwrap. There was some error chatter regarding ldconfig but it wasn't fatal. I was able to build my stack with the standard workflow using the bootstrapped bwrap. Thanks!
Closing this PR.


TitleState Rewrite

Moved all variables to the top
Changed allowedKeys to a regex
This isn't finished yet

Made more progress but I cant push for a few hours


Import Error in Chapter 1

I have done just as Chapter 1, until I typed
>>>import flask

Traceback (most recent call last):
File "", line 1, in
File "flask/init.py", line 21, in
from .app import Flask, Request, Response
File "flask/app.py", line 37, in
from .cli import make_default_cli
File "flask/cli.py", line 17, in
import click
ImportError: No module named click

Traceback (most recent call last):
File "", line 1, in
File "flask/init.py", line 21, in
from .app import Flask, Request, Response
File "flask/app.py", line 26, in
from . import json

Is there any wrong with my envrionment?

You don't seem to be using Flask version 0.10.1, which is the official release at this time.

I have installed flasked in this way pip install flask, is there any thing wrong?

Another question is after cloning the repository, I can not check out ```1a```. Is there any thing wrong with my git version?

Try running git fetch --all so that all the information about branches/tags is downloaded. After that, repeat the checkout command. Let me know if this helps.

I have checked my flask version, and it is 0.10.1

I have tried git fetch --all, thengit checkout 1a.

I think you have cloned flask instead of flasky, and that is what is giving you all the problems.
Try starting from scratch. Follow these steps:

deactivate your virtualenv
 $ deactivate

Delete all the files that you cloned. I think for this you need to do this (but check to make sure I got ir right!):
 $ cd ..
 $ rm -rf flask

Clone flasky (not flask):
 $ git clone https://github.com/miguelgrinberg/flasky.git

Create and activate the virtualenv:
 $ cd flasky
 $ virtualenv venv
 $ source venv/bin/activate

Install Flask:
 $ pip install flask

Switch Flasky to tag 1a:
 $ git checkout 1a

Oh, that's really the reason. Many thanks!!! ^_^


What is websocket used for?

I can see we have proxy for WebSocket calls
https://github.com/Jlll1/Sutil-Template/blob/main/templates/Sutil-Safe/webpack.config.js#L15-L19
Can you please explain what is the scenario for WebSocket calls in this template?

Sutil-Safe uses Fable.Remoting for Client-Server communication, which in turn uses websockets.


Wrong order of stride and pad arguments in build_simple_block

In the function build_simple_block in resnet50.py, the stride and pad arguments to the Conv2DLayer (ConvLayer) constructor are given in the order pad then stride (if use_bias is True, not if use_bias is False), but the Conv2DLayer constructor takes those two arguments in the order stride then pad.

Good catch! So when called with use_bias=True, stride and pad are swapped: https://github.com/Lasagne/Recipes/blob/1fcc5c0/modelzoo/resnet50.py#L62-L65
As far as I see, this only happens for the very first convolutional block: https://github.com/Lasagne/Recipes/blob/1fcc5c0/modelzoo/resnet50.py#L155-L157
This has 64 filters of size 7 with stride 3 and pad 2, which is then swapped to stride 2 and pad 3. The latter is consistent with Kaiming's code: https://github.com/KaimingHe/deep-residual-networks/blob/master/prototxt/ResNet-50-deploy.prototxt#L14-L17
So the model is correct, but the code is of course not okay.
Would you like to file a PR fixing the order in the two code snippets I linked to? If you're not comfortable with git, you can use the pencil icon at the top right of https://github.com/Lasagne/Recipes/blob/master/modelzoo/resnet50.py to edit the file in your browser. Let me know if we should take care of this ourselves instead. Thank you!

Fair enough -- thank you for taking the time to report it! I've filed a PR myself now.


Fix dependencies being added multiple times

Currently the extract-loader does not take into account that LoaderContext.loadModule() already adds all requested modules as dependencies. Normally this leads to files being added as dependency multiple times, but can also lead to wrong paths in the dependency list.
Should fix #21

Coverage remained the same at 98.039% when pulling f5a1946a7b54ef962e5af56aaf29d318efaabf66 on fix/duplicate-add-dependency into c9b266ad6b4b548342719c712d8d3e0c44b829f0 on master.

Coverage remained the same at 98.039% when pulling f5a1946a7b54ef962e5af56aaf29d318efaabf66 on fix/duplicate-add-dependency into c9b266ad6b4b548342719c712d8d3e0c44b829f0 on master.


Fix docs errors and lint in ops

Fixed an error in the documentation of QuadraticHamiltonian.bogoliubov_transform.
Removed lint caught by pycodestyle and my pylint in ops.

@idk3 I staled your review by removing unnecessary imports of absolute_import.


No contacts in component list command result.

JIRA: PDC-1166

+1. Looks good to me

For a list operation, the contacts are only used in the JSON output, right? If so, they should be only downloaded if required. However, maybe it would make sense not to include them at all.

I vote for not including the contacts by default unless they are required.
And just realize that with the replacement, the old contact related filters('contact-role', 'email', etc) in list op will make not that much sense.

After we remove the old contacts, now there's no contacts info in component list op result.

Looks good.


"array: true" plugin parameter throws error when jsPsych.timelineVariable() is used (audio-button-response plugin)

While updating a task programmed in jsPsych 7.x to 8.x, I found that supplying the option "choices: jsPsych.timelineVariable('choices')" to the audio-button-response plugin now causes the following error:
A non-array value (function() { return fnGetImmediate(getArg); }) was provided for the array parameter "choices" in the "audio-button-response" plugin. Please make sure that "choices" is an array.
The cause of this seems to be the newly strict handling of "array: true" for plugin parameters. It's true - the value here will be a function, not an array.
But surely when a plugin sets "array: true", it should not break the use of timeline variables with that parameter?

Yup, fully agree – thanks @devsda1! I'll look into this on Thursday.

@devsda1 Timeline variable evaluation for array parameters works fine; your error message suggests that your timeline variable evaluates to a function instead of an array. Can you take a look at it again?

@devsda1 Just checking in to see if the source of the problem got tracked down?

@jodeleeuw @bjoluc Sorry for the delay. I looked at this again. The code that worked in jsPsych 6.x-7.x provided a "choices" parameter for audio-button-response with the value jsPsych.timelineVariable('choices'), and the 'choices' timeline variable was in fact a function that returned an array value. So in effect, there were two "nested" functions. This is necessary for the task because the participant's language may not be known until after the timeline starts running (i.e. after an initial selection using html-button-response). We use functions fairly ubiquitously in our tasks in order to select plugin parameter values according to language.
Based on your reply that "Timeline variable evaluation for array parameters works fine", I reasoned that my problem might be that the parameter value is a function that returns a function, and this "unwrapping" of function values no longer happens. So I tried supplying a function that returns an array (as I assume jsPsych.timelineVariable would do), and I get the same problem.
Since the ability to supply a function for a plugin parameter in order to defer evaluation of the value is quite fundamental to jsPsych, I'm confused about why jsPsych 8.x is throwing an error when it receives a function value. Shouldn't it call the function (and ideally, keep calling function values until it receives a non-function), and only then thrown an error if a type constraint (e.g. array) on the resulting value is not satisfied?

@jodeleeuw @bjoluc My code that worked in 6.x/7.x populated certain timeline variables with function values in order to defer evaluation until the trial is about to run. The reason for that is to provide the correct content for the participant's language, which is selected only after the outer timeline starts running.
In 6.x/7.x, jsPsych helpfully called functions that were returned by timelineVariable() (i.e. by the function provided by timelineVariable).
In 8.x, it does not. So in this situation, rather than e.g. simply providing jsPsych.timelineVariable('choices') as the value of the 'choices' parameter, I need to do something like this:
function resolveFunctions(val) {
    if (typeof(val) === 'function') {
        return resolveFunctions(val());
    }
    if (typeof(val) === 'object') {
        // works for objects and arrays
        for (let name in val) {
            val[name] = resolveFunctions(val[name]);
        }
    }
    return val;
}

function resolveTimelineVarLater(name) {
    return function() {
        return resolveFunctions(jsPsych.timelineVariable(name));
    }
}

// ...

timeline.push({
    // ...
    choices: resolveTimelineVarLater('choices'),
    // ...
});

I'm not sure that a value obtained by jsPsych from a timeline variable needs to be treated differently from one supplied as the parameter value itself, in terms of how functions are resolved to values and (if the plugin specifies a type constraint) the value types are ultimately checked. I didn't expect that to be the case, anyway. But if I need to have extra code like the above in my task to handle this, at least now I know how to do it.

@bjoluc Thanks for the information! Not sure if I read the code correctly, but it looks like the new version also will only do one step of calling a function, whereas in 7.x replaceFunctionsWithValues is used, which recursively walks an object or array in a similar (but more jsPsych specific) way as my "resolveFunctions" code above?
A maximally magic/flexible approach could be for replaceFunctionsWithValues (or something similar) to also resolve timeline variables if they are encountered during the walk. Then, whatever is supplied as a parameter value, any contained functions or timeline variables will be replaced until all values are resolved. (However if you need to resolve timeline variables from a parent timeline, which I haven't used myself but seems to be supported, I can see how it would become more complex to implement; I guess you'd have to inject the parent timelines into any recursion?)

Not sure if I read the code correctly, but it looks like the new version also will only do one step of calling a function, whereas in 7.x replaceFunctionsWithValues is used, which recursively walks an object or array in a similar (but more jsPsych specific) way as my "resolveFunctions" code above?

The method is called recursively according to the plugin's parameter definitions. This means it no longer does any magic on recursive properties that are not listed in the plugin's parameter description (intended and noted in the v8 release notes) – something which you might previously have relied on as well.

A maximally magic/flexible approach

I'm afraid, we have decided against the full magic version on purpose to avoid calling functions when it is not intended (e.g., on third-party objects).

Ah I see, thanks. If I wanted to roll my own magic, I think I could just add a conditional evaluateTimelineVariable() in my recursive function. Is the TimelineVariable class visible from the context of the script that is calling jsPsych? I was thinking of something like "if (val instanceof TimelineVariable) {...}".


Migrate ioBroker.beckhoff Adapter to iobroker-community-adapters

@dkleber89
Do you plan to continue maintain this adapter in the future? Or is the migration to community-adapters a sort of controlled shutdown?
I'm asking as I would like to know whether I should/can add you as (primary) maintainer at iobroker.comminuty-adapters for this adapter or if this is inappropiate. Thanks for ashort reply.

You can do it as u like ... The reason for this migration on my side is, that i don´t have too much time to maintain this adapter and especially make new features ... So in the community everyone (also myself) have easily the ability to work on it but im not alone responsible for this adapter.


[POC] DO NOT MERGE - proof of concept of translation optimization

This is a POC of translation optilization as discussed in #725
The download page is changed using the usual yml file, a generic html file, and a md file which only includes the HTML along with the snippet for untranslated pages.
@rehrar, please have a look on my publicly available local build on which you know how to connect.

Great! I wonder if we should add a
translated: yes / no / partially

Statement and use it with a {% if ... elseif ... %} to display the message, even a different message for partial translation, and moreover tell the world not to touch those files, and only change the yml.

As @rehrar is already working on the exact same stuff, i'm closing it.
All discussions may be done in #725


Remove intermediary seft upload page

What and why?
When clicking on the 'Upload' or 'View or upload' CI SEFT on the CE information page, an intermediary summary page is shown, this PR removes that page and takes the user directly to the load collection instrument page.
How to test?
For a SEFT and an EQ and SEFT survey, go through the seft upload journey on a collection exercise to ensure the intermediary page is no longer present and the user is taken directly to the load-collection-instruments page. The eQ journey should not have changed.
Jira
https://jira.ons.gov.uk/secure/RapidBoard.jspa?rapidView=1493&projectKey=RAS&view=detail&selectedIssue=RAS-682

/deploy harrisonj

/deploy harrisonj


Change Request: Add dependent azure library info for Telemetry policy

The Basics

Which design guideline is affected?
The Telemetry policy guideline:
https://azure.github.io/azure-sdk/general_azurecore.html#telemetry-policy

Which target languages are affected?
All languages

Describe the change:
In the Telemetry format [<application_id> ]azsdk-<sdk_language>-<package_name>/<package_version> <platform_info>
We need to consider the Telemetry information appended from dependent libraries. For example, if we re-wrote AzCopy in javaScript using the library AzLib depending on Azure Blob Storage client library, what would the format be?

Details
For the Telemetry policy format
[<application_id> ]azsdk-<sdk_language>-<package_name>/<package_version> <platform_info>
how does the policy handle the scenario that there are multiple azure library being used? Especially in the case that one library is built based on an underlying service azure library.
For example, our ACS UI Chat Composite is built based on Chat SDK. The ChatComposite has no access to Telemetry implementation details and would only pass application_id to ChatSDK API for logging purpose.
The ChatSDK telemetry info example in user_Agent could be
<application_id> azsdk-js-azure-communication-chat/1.1.0 core-rest-pipeline/1.3.0 OS/Win32
However we want to post our ChatComposite info to the Telemetry. And the only accessible parameter application_id should be reserved for our Chat composite customers.
In this scenario, how should the dependent library pass it own telemetry information to the underlying service SDK and let service SDK log the additional telemetry information?
Should the service SDK has additional public API to accept those Telemetry info? Something similar to CallingSDK doing, having additional tags API for Telemetry. And the dependent libraries pass their info through the tags?

Please post any thought you have. And reach to @JoshuaLai  (Josh Lai) or @jimchou-dev (Jim Chou) for any question you have.
Thanks

Scheduled for Nov 8th, 2022, 2:05PM - 4:00PM PST

@kyle-patterson I know you said you will be a part of this review. @AmyL219 appears to be on maternity leave so I wanted to see if you knew anyone else who should be invited?

You can invite me and @JoshuaLai

Recording (MS INTERNAL ONLY)


[SPARK-15351][SQL] RowEncoder should support array as the external type for ArrayType

What changes were proposed in this pull request?
This PR improves RowEncoder and MapObjects, to support array as the external type for ArrayType. The idea is straightforward, we use Object as the external input type for ArrayType, and determine its type at runtime in MapObjects.
How was this patch tested?
new test in RowEncoderSuite

Test build #58651 has started for PR 13138 at commit 3527ee3.

cc @marmbrus @yhuai @liancheng

Test build #58651 has finished for PR 13138 at commit 3527ee3.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/58651/
Test FAILed.

LGTM

Test build #58669 has started for PR 13138 at commit 5da31c9.

Test build #58669 has finished for PR 13138 at commit 5da31c9.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/58669/
Test PASSed.

Merged build finished. Test PASSed.

merging to master and 2.0!


test against anyio

short test against anyio
Note: trio is not compatible with databasez

and set the eventloop scope to module


Criar api de calendário

https://github.com/maxandriani/booking-app-docs/issues/11

[ ] Configure Rules
[ ] Configure Validations
[ ] AddBookingGuestCmd
[ ] CancelBookingCmd
[ ] ConfirmBookingCmd
[ ] CreateBookingCmd
[ ] DeleteBookingCmd
[ ] DeleteBookingGuestCmd
[ ] UnConfirmBookingCmd
[ ] UpdateBookingCmd
[ ] CheckBookingAvailabilityQuery
[ ] GetBookingByKeyQuery
[ ] SearchBookingsQuery


is that so

          is that so

Originally posted by @luolin-ai in https://github.com/TaskingAI/TaskingAI/issues/77#issuecomment-2024670688

we'll discuss this topic in #77


Seed is slow with big CSV files with many rows

Describe the bug
Using dbt seed with the databricks adapter is quite slow when processing CSV big files which have many rows. I have two bigger CSV files with more than 100k rows. Those take too long:

Model
Rows
File Size
Runtime
Runtime in minutes

CompanyLinkCustomerAccount
863.146
21 MB
1336.36s
22.3 Minutes

MasterCustomerAccountLink
389.598
16 MB
820.04s
13.6 Minutes

Steps To Reproduce

Create a CSV file with more than 100k rows
add the CSV as seed
execute dbt seed -s <your_file>

Expected behavior
I would have expected a runtime about 1-5 minute max.
Screenshots and log output

System information
Running with dbt=1.6.2
Registered adapter: databricks=1.6.4
Databricks Cluster configuration

Hey @leo-schick, I helped resolve this slow seed problem in #493!  I believe that fix is now in main but has not been released yet as part of the 1.7.0 release.  Haven't had a seed that was >100k, but I was able to get seeds with 50k records to load in ~1 minute each.
(Duplicate of #476)

What @nrichards17 said.  The one caveat is with parquet as the landed file format, where we still have to do the slow thing.  1.7.0 will be out shortly (hopefully today or tomorrow).

The time improved, but is still not good enough I would say. After upgrading to 1.7.1, I have now a total runtime of around 15 minutes.
The models shown above have now these runtime times:

Model
Rows
File Size
Runtime
Runtime in minutes

CompanyLinkCustomerAccount
863.146
21 MB
911.19s
15.2 Minutes

MasterCustomerAccountLink
389.598
16 MB
556.46s
9.3 Minutes

This leads to the following comparison:

Model
Runtime before
Runtime after
Delta
in %

CompanyLinkCustomerAccount
22.3 Minutes
15.2 Minutes
-7.1 Minutes
-31.8 %

MasterCustomerAccountLink
13.6 Minutes
9.3 Minutes
-4,3 Minutes
-31.6 %

So, on average a performance improvement of 32% was gained by #493.
Since we work here with big data technology, I think this is still far from acceptable.
I don't know if that has been tested, but I guess running a python model with spark.read.option("delimiter", ",").csv(path) would perform better. But I guess in a python models one cannot use csv files from the code base.

@leo-schick I think you're starting to hit the limit of what dbt seeds were designed for; if you're getting into the hundreds of thousands of records, I'd recommend to start looking at a different form of ingestion into your warehouse.
The dbt seed command isn't a very efficient way to ingest large files because it essentially has to construct one big INSERT INTO SQL statement of all values in the local CSV.
If you still need to use seeds, you could take inspiration from The Tuva Project where they host their large files externally in cloud storage (ex. s3) but still use the dbt seed command with a database-specific load__seed macro (customized per database type) that leverages the COPY INTO statement, which gets called as a post-hook defined in the dbt_project.yml file


[Bug] Recent change a5b035986872b3abb8c28d6659034c2a897476a3 seems to break ref prop on AdvancedMarkers

Description
ref prop is no longer valid prop on AdvancedMarker after this commit: https://github.com/visgl/react-google-maps/commit/a5b035986872b3abb8c28d6659034c2a897476a3
Steps to Reproduce
Use version 1.4.1 and try to use ref prop on AdvancedMarker
import { AdvancedMarker } from<EMAIL_ADDRESS>
<AdvancedMarker
      position={{ lat: lng }}
      draggable={false}
      ref={(marker) => console.log(marker)}
    >

Test

    </AdvancedMarker>

error is:
Property 'ref' does not exist on type 'IntrinsicAttributes & Omit<AdvancedMarkerElementOptions, "gmpDraggable" | "gmpClickable" | "content" | "map" | "collisionBehavior"> & AdvancedMarkerEventProps & { ...; } & { ...; }'.ts(2322)

Environment

Library version: 1.4.1
Google maps version: weekly
Browser and Version: Chrome Version 131.0.6778.86 (Official Build) (x86_64)
OS: Mac OS 15.1.1 (24B91)

Logs
No response

Oh wee, sorry about this. I can probably publish a new version tomorrow, until then you can use @ts-ignore or @ts-expect-error to get around the error-message.


error occurs when importing sbt project

The following is the error message. Can someone help me?
Error:Error while importing SBT project:...[info] Resolving org.scala-sbt#tracking;0.13.15 ...
[info] Resolving com.thoughtworks.paranamer#paranamer;2.6 ...
[info] Resolving org.scala-sbt#completion;0.13.15 ...
[info] Resolving org.scala-sbt#control;0.13.15 ...
[info] Resolving org.scala-sbt#sbt;0.13.15 ...
[info] Resolving org.scala-sbt#run;0.13.15 ...
[info] Resolving org.scala-sbt.ivy#ivy;2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4 ...
[info] Resolving org.scala-sbt#test-interface;1.0 ...
[info] Resolving com.jcraft#jsch;0.1.50 ...
[info] Resolving org.scala-lang#scala-compiler;2.10.6 ...
[info] Resolving jline#jline;2.14.3 ...
[info] Resolving org.scala-sbt#compiler-ivy-integration;0.13.15 ...
[info] Resolving org.scala-sbt#incremental-compiler;0.13.15 ...
[info] Resolving org.scala-sbt#logic;0.13.15 ...
[info] Resolving org.scala-sbt#main-settings;0.13.15 ...
[trace] Stack trace suppressed: run 'last :update' for the full output.
[trace] Stack trace suppressed: run 'last :ssExtractDependencies' for the full output.
[error] (:update) sbt.ResolveException: unresolved dependency: com.github.karlhigley#spark-neighbors_2.11;0.2.2: not found
[error] (:ssExtractDependencies) sbt.ResolveException: unresolved dependency: com.github.karlhigley#spark-neighbors_2.11;0.2.2: not found
[error] Total time: 31 s, completed Jul 13, 2017 6:19:16 PM

Looks like you are asking for spark-neighbors_2.11, but I believe that only spark-neighbors_2.10 exists


[WIP]Add first document for lab

Adds a lab directory with steps, examples and use cases of kmm.

/ok-to-test

/cc @ybettan

Can you please update the title to [WIP] Add first document for lab?

@enriquebelarte Please write @ybettan PTAL when this PR is ready for the next iteration review.

@ybettan PTAL. Thank you!

Is it still WIP? If not please remove it from the title to remove the hold label.
Added few comments.

Codecov Report
Base: 73.23% // Head: 73.23% // No change to project coverage :thumbsup:

Coverage data is based on head (f90aa32) compared to base (8a50099).
Patch has no changes to coverable lines.

:exclamation: Current head f90aa32 differs from pull request most recent head 57e404f. Consider uploading reports for the commit 57e404f to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #23   +/-   ##
=======================================
  Coverage   73.23%   73.23%
=======================================
  Files          16       16
  Lines        1670     1670
=======================================
  Hits         1223     1223
  Misses        388      388
  Partials       59       59

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

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

/approve
@qbarrand if you don't have any further comments please lgtm

@enriquebelarte Can you please remove Fix for AKS paragraph from the commit message?

@enriquebelarte Can you please remove Fix for AKS paragraph from the commit message?
Done. Thank you

/lgtm


GIF Handling?

On print, should GIFs be frozen at their first frame?

the way bindery did it was nice... it would swap out a png for the gifs ... allows for higher resolutions as well... .if there is no png, can't recall if it breaks ... maybe look at bindery implementation? I have a post of gifs that you can test on.

Yeah, the bindery implementation expected a png of the same name alongside every GIF.
I'll check for that and if nothing found I'll try to see if we can fix a frame of the GIFs.

Tried using this but some conflicts & loading issues :( https://github.com/ctrl-freaks/freezeframe.js

Also,
  -moz-animation-play-state: paused !important;
  -o-animation-play-state: paused !important;
  animation-play-state: paused !important;

Doesn't seem to work.

Scrapping. Looks like not possible to freeze GIFs w/o server-side work for now. see commit 201c1ab862607473baf2fb72ae73f6c848e33205


another bulk seed list from Gary Price (USDA)

1700 or so urls from the USDA. Specifically, the Food Inspection Service and Economic Research Service.

Thanks, James!


delete and recreate non-matching roleref clusterrolebinding and rolebinding

Fix: https://github.com/stolostron/backlog/issues/26379
Signed-off-by: haoqing0110<EMAIL_ADDRESS>testing result:
➜  registration-operator git:(br_fix-rolebinding-upgrade) ✗ oc logs -n open-cluster-management klusterlet-dcb497df5-kqfnt
...
I1019 04:02:45.152976       1 base_controller.go:110] Starting #1 worker of KlusterletSSARController controller ...
I1019 04:02:45.153033       1 base_controller.go:73] Caches are synced for KlusterletCleanupController
I1019 04:02:45.153069       1 base_controller.go:110] Starting #1 worker of KlusterletCleanupController controller ...
I1019 04:02:45.283732       1 helpers.go:375] Delete ClusterRoleBindings open-cluster-management:klusterlet-work:agent as roleRef changes
I1019 04:02:45.288526       1 event.go:285] Event(v1.ObjectReference{Kind:"Namespace", Namespace:"open-cluster-management", Name:"open-cluster-management", UID:"", APIVersion:"v1", ResourceVersion:"", FieldPath:""}): type: 'Normal' reason: 'ClusterRoleBindingCreated' Created ClusterRoleBinding.rbac.authorization.k8s.io/open-cluster-management:klusterlet-work:agent because it was missing
I1019 04:02:46.258995       1 event.go:285] Event(v1.ObjectReference{Kind:"Namespace", Namespace:"open-cluster-management", Name:"open-cluster-management", UID:"", APIVersion:"v1", ResourceVersion:"", FieldPath:""}): type: 'Normal' reason: 'ClusterRoleUpdated' Updated ClusterRole.rbac.authorization.k8s.io/open-cluster-management:klusterlet-registration:agent because it changed
I1019 04:02:46.860485       1 event.go:285] Event(v1.ObjectReference{Kind:"Namespace", Namespace:"open-cluster-management", Name:"open-cluster-management", UID:"", APIVersion:"v1", ResourceVersion:"", FieldPath:""}): type: 'Normal' reason: 'ClusterRoleUpdated' Updated ClusterRole.rbac.authorization.k8s.io/open-cluster-management:klusterlet-work:agent because it changed
I1019 04:02:47.860807       1 helpers.go:398] Delete RoleBindings kube-system/open-cluster-management:management:klusterlet-registration:agent as roleRef changes
I1019 04:02:48.261514       1 event.go:285] Event(v1.ObjectReference{Kind:"Namespace", Namespace:"open-cluster-management", Name:"open-cluster-management", UID:"", APIVersion:"v1", ResourceVersion:"", FieldPath:""}): type: 'Normal' reason: 'RoleBindingCreated' Created RoleBinding.rbac.authorization.k8s.io/open-cluster-management:management:klusterlet-registration:agent -n kube-system because it was missing
I1019 04:02:49.460707       1 helpers.go:398] Delete RoleBindings kube-system/open-cluster-management:management:klusterlet-work:agent as roleRef changes
I1019 04:02:49.859468       1 event.go:285] Event(v1.ObjectReference{Kind:"Namespace", Namespace:"open-cluster-management", Name:"open-cluster-management", UID:"", APIVersion:"v1", ResourceVersion:"", FieldPath:""}): type: 'Normal' reason: 'RoleBindingCreated' Created RoleBinding.rbac.authorization.k8s.io/open-cluster-management:management:klusterlet-work:agent -n kube-system because it was missing
I1019 04:02:50.459904       1 event.go:285] Event(v1.ObjectReference{Kind:"Namespace", Namespace:"open-cluster-management", Name:"open-cluster-management", UID:"", APIVersion:"v1", ResourceVersion:"", FieldPath:""}): type: 'Normal' reason: 'RoleUpdated' Updated Role.rbac.authorization.k8s.io/open-cluster-management:management:klusterlet-registration:agent -n open-cluster-management-agent because it changed
I1019 04:02:51.059892       1 event.go:285] Event(v1.ObjectReference{Kind:"Namespace", Namespace:"open-cluster-management", Name:"open-cluster-management", UID:"", APIVersion:"v1", ResourceVersion:"", FieldPath:""}): type: 'Normal' reason: 'RoleUpdated' Updated Role.rbac.authorization.k8s.io/open-cluster-management:management:klusterlet-work:agent -n open-cluster-management-agent because it changed
➜  registration-operator git:(br_fix-rolebinding-upgrade) ✗ date
Wed Oct 19 04:09:31 UTC 2022

/assign @qiujian16


Update rgb_cie.py to support gamut B and gamut A

Reference: http://www.developers.meethue.com/documentation/color-conversions-rgb-xy

Related: https://github.com/benknight/hue-alfred-workflow/issues/33

Creating a new PR for this


do more type checking of objects in Python-related code

One piece of feedback that we've gotten from internal and external users is that they spend a fair bit of time dealing with errors that turn out to be related to returning the wrong type of object to wallaroo (I'm including cases where there is no value returned from a function, which yields None as the return value). Based on this feedback it seems that development time and frustration could be reduced by checking the types of objects that are returned from the Python code created by application developers.
Categorization
The following categories are helpful when considering the possible impact of type checking:
Topology creation
The user creates objects when describing the topology in the application_setup(...) function. This happens only on startup, so the impact of checking the type would be minimal, and wouldn't impact the performance of the running system.
What to check

Make sure that application_setup() returns a list.
Make sure that the arguments to the methods in the wallaroo module have the correct type. This is the only type checking discussed here that would occur in Python code.

Helpfulness: Not High
We do some error checking during topology setup, so if there's an incorrect object somewhere it will usually eventually cause a TypeError that can be traced back to the cause.
Performance impact: Low
This would only happen on startup.
Running application
As an application runs data is sent from one computation to another, resulting in new object creation. The encoders and decoders also create new objects.
What to check:

We currently do some checking to make sure that computations that send multiple values return a list, but since None is a valid return type for a computation we can't really guard against accidentally forgetting to return a value.
Make sure that decoders return a non-None value.
Make sure that the encoders return strings.

Helpfulness: High
Bad return types for encoders and decoders will usually manifest as issues in places that may not be close to their origin, which can make the issue difficult to diagnose.
Performance impact: Potentially high
Every message that enters the system would result in one check for each step involved in processing the message
Topology serialization/deserialization
After a topology is created it is serialized and written to disk. This happens on startup and when the LocalTopology is updated, which is rarely.
What to check:

Make sure that each call to serialize returns a string
Make sure that each call to deserialize returns an object

Helpfulness: High
Bad return types for serializers and deserializers will usually manifest as issues in places that may not be close to their origin, which can make the issue difficult to diagnose.
Performance impact: Low
This only happens on startup and when LocalTopology is rarely updated (when a new worker joins for example).
Multiworker serialization/deserialization
Objects that are passed between workers in a multiworker system are serialized and deserialized. This includes objects like the data passed between computations and state computation objects. Serialization functions return a string that represents the object that is being serialized. Deserialization functions return an object based on the string representation that was passed to the function.
What to check:

Make sure that each call to serialize returns a string
Make sure that each call to deserialize returns an object

Helpfulness: High
Bad return types for serializers and deserializers will usually manifest as issues in places that may not be close to their origin, which can make the issue difficult to diagnose.
Performance impact: Potentially high
Each message that enters the system would potentially result in many calls to serialize and deserialize.
Maximizing Utility
Checking the types of return values for classes that are only serialized/deserialized during topology creation has a high degree of helpfulness and a low performance impact, so it is probably the best place to start.
Conditional Type Checking
Most of the type checks that are proposed here would happen in Pony code. We could work around the performance impact of type checking by only doing it when running a debug build of an application. This would provide the user with a helpful safety net during development while preserving performance in a production environment.

We have significantly improved error handling since this issue was opened. At this point specific issues should be opened for specific problems in this area.


chore: add device model and replace device name

Problem
Noticed by checking the most common devices dashboard template that RN used the wrong property for device model and name
Changes

Release info Sub-libraries affected
Bump level

[ ] Major
[ ] Minor
[x] Patch

Libraries affected

[ ] All of them
[ ] posthog-web
[ ] posthog-node
[x] posthog-react-native

Changelog notes

Added support for X

the RN build command is not packing the uuidv7 dep so I have to fix that first.

close in favor of https://github.com/PostHog/posthog-js-lite/pull/185


[✨] RequestEvent argument for server$

Is your feature request related to a problem?
Currently the server$ has no argument from RequestEvent so that the function can't used being related with session information.
Describe the solution you'd like
How about some of the RequestEvent into the last argument as like as globalAction$?
Describe alternatives you've considered
routeLoader$ can have option to act as lazy to dynamically load when the document ready.
Additional context
No response

You can with "this". And you can't use the arrow function shorthand.
server$(function(){
   this.request
})

@tuurbo Oh, that!
Thanks a lot :)


disabled attribute doesn't prevent arrow key/enter selection

disabled attribute on MenuItems do not stop the item from being selected with keyboard controls

[x] This is not a v0.x issue.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior 🤔

When a Select menu is open and there are options marked with the disabled property, they should not be able to be active or selected.
Current Behavior 😯

Using the arrows keys to pre-select the disabled option works, and then pressing enter allows to option to actually be selected

Steps to Reproduce 🕹
Adapted from the Selects demo on the main website: https://codesandbox.io/s/n4766yrwz0
(the same behavior can be seen in the linked page to material-ui, under the "placeholder" example)
Context 🔦
disabled options should be truly disabled, not only disabled to mouse users
Your Environment 🌎

Tech
Version

Material-UI
v3.6.1

React
16.8.2

Browser
chrome

TypeScript
3.3.3333

etc.

@ryancogswell Sweet, we have another broken case. We might be able to kill many bird 🐦 at once.

I'm closing as a duplicate of #13464.


SW-5125: FE - Full Module View (Follow-ups)

This PR has some follow-ups including:

Add module events to ModuleService & Redux
Join Session buttons opens new browser window with event

Tasks

[ ] Update routes
[ ] Connect module event links
[ ] Update ModuleEvent to include module.name & module.dateRange?

@tommylau523 @karthikbtf @nickgraz now that Nick is back, I think it would be good to get his opinion as well re: route changes. I'm happy to adjust the routes to whatever we'd prefer them to be. I don't have a preference for one convention vs another, so I'm happy to defer to the group.
@tommy I apologize for asking you to repeat yourself, but would you be willing share your proposed route changes again here in this PR? 🙏

Not a problem at all!
currently we are following something like this:
modules/project/:projectId
modules/project/:projectId/content/:moduleId
modules/project/:projectId/content/:moduleId/event/:eventId
modules/project/:projectId/content/:moduleId/resource/:contentId
Which I think is totally fine as is.
I had a suggestion that can reorganize routes to follow projects first:
project/:projectId/module/:moduleId/event or content/:id
It fits the resource hierarchy a bit better in my opinion.

Awesome thanks @tommylau523!

Also, right now the module needs to be fetched on the module events page because the module name & date range is used to render the page title. But if those properties were available in the module event data we could remove the module fetch. Any preference here?

@nickgraz would love to get your thoughts when you have a free moment re: @tommylau523's comment about potentially updating the routes.

@joshbuchea I think those route suggestions are great. The ones I put in there were a complete shot in the dark, @tommylau523 has a better idea of how it will really be structured.

Sounds good @nickgraz and @tommylau523, let's update the routes.


Add 1.0.1 to bower

Hi,
Installing component via bower doesn't give latest version of the library i.e. 1.0.1
bower install http://DlhSoft.com/Packages/DlhSoft.KanbanLibrary.zip
Can you please add latest version to bower?

NuGet, Bower (ZIP) and NPM (TAR) packages are now updated too.


Use Case (Country Report) - Minor Change

City table comment needs to be updated once verified on MySQL tables.

Issue updated with last feature merge.


Add hyperdx integration

Add https://www.hyperdx.io/ integration, An Open Source Observability Platform.

i do like to take on this issue please assign it to me!

Hi @DevyManish ! We are currently re-factoring some of our code and are gonna release it in the upcoming week. Once that's done, I'll ping here and show you how you can add HyperDX!

@david1542 any update on this one?


fix: Change the parser to add support for double colon rules

From the Docs:

Double-colon rules are explicit rules written with ‘::’ instead of ‘:’

normal-rule:
  echo normal

double-colon::
  echo "double colon"

fixes #29
double colon rules Docs

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


Error importing cordova plugin

I'm getting a build error when importing the cordova plugin:
This dependency was not found:

* cordova-plugin-nano-sqlite/lib/sqlite-adapter in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vuetify-loader/lib/loader.js!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/HelloWorld.vue?vue&type=script&lang=js&

I have a vue-cli 3 project, with cordova added to the project.
I'm importing nano-sql as described here: https://docs.nanosql.io/examples/cordova.
I've installed using cordova plugin add cordova-plugin-nano-sqlite --save and npm install nano-sql --save
This line causes the build error:
import { getMode } from "cordova-plugin-nano-sqlite/lib/sqlite-adapter";
Thanks.

Running npm i cordova-plugin-nano-sqlite solved this for me.
It's not understood from the docs that this needs to be installed in addition to adding the cordova plugin. Perhaps add it to the docs here? https://docs.nanosql.io/examples/cordova


Change Map Style

Hello,
Is it possible to define the map styles? For example: http://snazzymaps.com/
Thank you,
Miguel

Hi Corvis, how about the map type? https://developers.google.com/maps/documentation/javascript/maptypes


Configured providers but twinny not sending any requests to provider.

Describe the bug
I have setup the following providers and I checked with curl that /api/generate endpoint on http://duodesk.duo:11434 works, the extension shows loading circle but is not sending any requests. Also tried setting Ollama Hostname setting to duodesk.duo, but no luck.
To Reproduce
Just added the providers I have attached.
Expected behavior
Should work with the providers I have I think?
Screenshots

Logging
Logging is enabled but not sure where am I supposed to see the logs, checked Output tab but there is no entry for twinny.
API Provider
Ollama running at http://duodesk.duo:11434 in local network.
Chat or Auto Complete?
Both
Model Name
codellama:7b-code
Desktop (please complete the following information):

OS: Windows
Version: 11

Additional context

I was looking at other issues and saw where I could see the logs, the log is as follows:

Looks like hostname is set incorrectly, how do I change it?

Maybe try a restart? The settings look correct to me.

How can I check some logs? Because I have the same problem on Windows, I'm running VS Code from WSL:Ubuntu

Install Ollama and check if is running at http://localhost:11434

Install the models

Install and configure the vscode extension
Settings

Providers

Test the chat

But the loading spinner keep there, any help?

Having the same issue. Continue extension works, but I can't get Twinny to work.
ERR [Extension Host] Fetch error: TypeError: fetch failed
	at node:internal/deps/undici/undici:12345:11
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
	at async t.streamResponse (/home/user/.vscode-server/extensions/rjmacarthy.twinny-3.11.45/out/index.js:2:138539)
console.ts:137 [Extension Host] Fetch error: TypeError: fetch failed
	at node:internal/deps/undici/undici:12345:11
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
	at async t.streamResponse (/home/user/.vscode-server/extensions/rjmacarthy.twinny-3.11.45/out/index.js:2:138539)
y @ console.ts:137

I have Twinny 3.12.0 on Linux. I'm running ollama with mistral-nemo and stable-code.
Curling the ollama works fine but Twinny just keeps spinning the circle, like in the screenshots above.
My project is running in a docker container, but that should not affect Twinny.
I do get a similar error message as above.
  ERR [Extension Host] Fetch error: TypeError: fetch failed 	at node:internal/deps/undici/undici:12345:11 	at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 	at async streamResponse (/root/.vscode-server/extensions/rjmacarthy.twinny-3.12.0/out/index.js:20901:22)
Any suggestions on how to fix this?

i also just noticed this, i am using vscodium.
tbh i dont think this was always the case so i will update when i figure it out, hopefully.

https://stackoverflow.com/questions/70590704/fetching-in-a-vscode-extension-node-fetch-and-nodehttp-issues

Judging from these two issues:
Cannot find module 'node:http` on AWS Lambda v14 and
Problem with importing node-fetch v3.0.0 and node v16.5.0
it looks like the upgrade from node-fetch v3 to v3.1 was "troublesome" and resulted in the error you are seeing for some.
A few users are downgrading to v2 (or you might try v3 rather than v3.1 which you are using).
Uninstall node-fetch and npm install -s node-fetch@2

Facing the same issue. Any updates?

localhost and <IP_ADDRESS> not working for me. Have a responding ollama on both my local machine and remote.
UI responds "==## ERROR ##== : fetch failed"
In devtools, no requests are made, so I assume its on the backend.
The last error says:
ERR [Extension Host]  [ERROR_twinny]  Message: Fetch error
  Error Type: TypeError
  Error Message: fetch failed
  TypeError: fetch failed
	at node:internal/deps/undici/undici:13392:13
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
	at async globalThis.fetch (file:///home/cy/.vscode-server/bin/138f619c86f1199955d53b4166bef66ef252935c/out/vs/workbench/api/node/extensionHostProcess.js:159:19800)
	at async streamResponse (/home/cy/.vscode-server/extensions/rjmacarthy.twinny-3.19.23-linux-x64/out/index.js:58388:22)
console.ts:137 [Extension Host]  [ERROR_twinny]  Message: Fetch error

error goes here: https://github.com/twinnydotdev/twinny/blob/d528d53caae5b556dff2a541600046bdb0c0fe61/src/extension/api.ts#L103
The fetch config from the stream response:
[Extension Host] [twinny] ***Twinny Stream Debug***
    Streaming response from <IP_ADDRESS>:11434.
    Request body:
    {
  "model": "llama3.1:latest",
  "stream": true,
  "messages": [
    {
      "role": "user",
      "content": "yhello"
    },
    {
      "role": "assistant",
      "content": "==## ERROR ##== : fetch failed"
    },
    {
      "role": "user",
      "content": "\n  Generate a title for this conversation in under 10 words.\n  It should not contain any special characters or quotes.\n"
    }
  ],
  "keep_alive": "5m",
  "options": {
    "temperature": 0.2,
    "num_predict": 2048
  }
}

    Request options:
    {
  "hostname": "<IP_ADDRESS>",
  "port": 11434,
  "path": "/api/chat",
  "protocol": "http",
  "method": "POST",
  "headers": {
    "Content-Type": "application/json",
    "Authorization": "Bearer undefined"
  }
}

I can't see in ollama API but "Authorization" header should be excluded if it's undefined.  Looks like there's several files setting Authorization to "Bearer undefined".
Added a pull request here: https://github.com/twinnydotdev/twinny/pull/422 there's several other files using the fetch.
I don't think it's the actual error though.

I just noticed though, my project is using SSH, and this plugin is being installed on the SSH vscode server, which isn't going to have access. That's definitely an error. It should probably be installed locally unless otherwise indicated.

I just noticed though, my project is using SSH, and this plugin is being installed on the SSH vscode server, which isn't going to have access. That's definitely an error. It should probably be installed locally unless otherwise indicated.

This is definitely a problem. I opened up a local workspace and it connects. I'm going to open a specific issue.

localhost and <IP_ADDRESS> not working for me. Have a responding ollama on both my local machine and remote.
UI responds "==## ERROR ##== : fetch failed"
In devtools, no requests are made, so I assume its on the backend.
The last error says:
ERR [Extension Host] �[91m [ERROR_twinny] �[32m Message: Fetch error
 �[91m Error Type: TypeError
  Error Message: fetch failed
 �[31m TypeError: fetch failed
	at node:internal/deps/undici/undici:13392:13
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
	at async globalThis.fetch (file:///home/cy/.vscode-server/bin/138f619c86f1199955d53b4166bef66ef252935c/out/vs/workbench/api/node/extensionHostProcess.js:159:19800)
	at async streamResponse (/home/cy/.vscode-server/extensions/rjmacarthy.twinny-3.19.23-linux-x64/out/index.js:58388:22)
console.ts:137 [Extension Host]  [ERROR_twinny]  Message: Fetch error

error goes here:
https://github.com/twinnydotdev/twinny/blob/d528d53caae5b556dff2a541600046bdb0c0fe61/src/extension/api.ts#L103
The fetch config from the stream response:
[Extension Host] [twinny] ***Twinny Stream Debug***
    Streaming response from <IP_ADDRESS>:11434.
    Request body:
    {
  "model": "llama3.1:latest",
  "stream": true,
  "messages": [
    {
      "role": "user",
      "content": "yhello"
    },
    {
      "role": "assistant",
      "content": "==## ERROR ##== : fetch failed"
    },
    {
      "role": "user",
      "content": "\n  Generate a title for this conversation in under 10 words.\n  It should not contain any special characters or quotes.\n"
    }
  ],
  "keep_alive": "5m",
  "options": {
    "temperature": 0.2,
    "num_predict": 2048
  }
}

    Request options:
    {
  "hostname": "<IP_ADDRESS>",
  "port": 11434,
  "path": "/api/chat",
  "protocol": "http",
  "method": "POST",
  "headers": {
    "Content-Type": "application/json",
    "Authorization": "Bearer undefined"
  }
}

I can't see in ollama API but "Authorization" header should be excluded if it's undefined. Looks like there's several files setting Authorization to "Bearer undefined".
Added a pull request here: #422 there's several other files using the fetch.
I don't think it's the actual error though.

are you using the ollama template with an openai endpoint, or vice-versa?

Please let me know if we should re-open, thanks!

are you using the ollama template with an openai endpoint, or vice-versa?

No. I'm fairly certain this is an issue related to the plugin installing in the SSH workspace which doesn't have access to my localhost run Ollama. see https://github.com/twinnydotdev/twinny/issues/423 for what the most likely cause is of multiple error reports.
The work around at the moment for SSH workplace is to provide a IP and open port to the ollama server if you're working on remote; or use a local code source. It might be possible in the open ports section, but I don't know if that's two-way; I think it's just a one way, but don't know how the plugin is establishing the connection.


added step snippets

Added step snippets for

given
when
then
and

Also updated the existing snippets to reflect that they're examples.

Hi @kanemontreuil. Thanks for your collaboration. Unfortunately I have to discard your pull request as I was already working on a similar implementation that I released today. I hope you'll enjoy the new snippets available and thanks again.


ERROR: npm version of plank.js doesn't works with Typescript

Good morning.
Yesterday I was testing a lot of parses or rewrites of Box2D for webs, and I think that Planks.js is the best for the projects that I want to do. But I'm using Typescript and there is an error with the index.d.ts of Planks.js in the npm version uploaded (Plank.js 0.3.12 version): in the line 349 is written:
p_type: Manifold.Type;
But It should be without the dot between Manifold and Type:
p_type: ManifoldType;
This issue had been corrected in the last github version. Could you upload a new version in npm with the changes?
Thanks!

Sorry for the inconvenience. I'm not a maintainer of the npm package but maybe the temporary workaround in #114 helps

Thanks! I published a new npm version.

Thanks a lot! Now it's works fine. :D


Add types to zerver/views/webhooks/github.py

@timabbott It is currently failing on line 45, and I'm looking for a brilliant way to figure out what is wrong.

Automated message from Dropbox CLA bot
@dhanus, it looks like you've already signed the Dropbox CLA. Thanks!

Looks like the issue is that you should be using square brackets in Sequence(text_type, text_type, text_type)

How awkward. I will fix it once I get my environment set up.

Thanks for working on this @dhanus. I have added comments about the issues I found with your code. When you fix them, drop a comment here so that I can review it again.

Sequence is an Abstract Base Class (ABC) (See https://docs.python.org/3/library/collections.abc.html for a list of container ABCs in python; the typing module provides a generic version of those ABCs).
Using an ABC as the return type of a function should generally be avoided (except in a few unique circumstances). Therefore, you should use more concrete types like List, Tuple, Set, etc as return types.
However, it is advisable to use ABCs as parameter types of functions. See this discussion on zulip-devel for more info.

Merged via #1123.


Option to store files with absolute path name

Output of restic version
# restic version
restic 0.7.3
compiled with go1.9 on linux/amd64

How did you run restic exactly?

# cat /etc/restic/files.include
/etc/letsencrypt
/etc/nginx
/etc/ssh
/var/www/nextcloud
/var/data/nextcloud
# cat /etc/restic/files.exclude
# restic backup --files-from /etc/restic/files.include --exclude-file /etc/restic/files.exclude

What backend/server/service did you use?
swift on openstack, also tried with b2.
Expected behavior
Paths are named using an absolute path name, I excepted the full paths to be present in the backup.
Actual behavior
Paths are actually stored using the last part of the path. This causes duplication is my case, for instance:
# restic mount tmp/
Now serving the repository at tmp/
Don't forget to umount after quitting!

# ls -1 tmp/snapshots/2017-10-09T16\:25\:42Z/
letsencrypt
nextcloud
nextcloud-1
nginx
ssh

Do you have an idea how to solve the issue?
I would like an option to store found files under paths with only the leading / removed, mimicking for instance the way that tar handles paths. This makes it easier to find files.

I'm sorry to just close the issue so quickly, but we're already aware of the current limitation, and this is tracked in #549. Please subscribe over there, thanks! :)

Ah, that's ok. I tried to find an existing issue, but couldn't find one.
Great response time though ;)

Heh, yeah, I was just browsing the issues when you submitted it ;)


breadcrumb header shouldn't show containment path

Since the navigation in DeepForge is often node -> child -> base -> child -> base... the containment path in the breadcrumb header doesn't really make sense to the end user (it will be changing entirely every time the user traverses to a node's base)

blocked by https://github.com/dfst/webgme-breadcrumbheader/issues/16


engine: handle common image deps

Hello @jazzdan, @landism,
Please review the following commits I made in branch nicks/ch1655/manifests:
e4f658331ada8b82076052fff5d379845b3a4591 (2019-02-22 13:22:30 -0500)
engine: handle common image deps
Fixes https://github.com/windmilleng/tilt/issues/1197

most of this change ended up just paying down tech debt around watcher :grimacing: ; i would have broken that into a separate pr if i knew that's where it was going!

Will review this this afternoon. Sorry for the delay!


refactor: create a parent project and move the analyzer into a subproject

Description
Make a submodule from the old project and create a new parent project. Beside the analyzer a model combiner is developed which is able to combine multiple models into one. This way we can visualize the communication between multiple projects in one graph.
Checklist

[x] My code follows the style guidelines of the project
[x] I have performed a self-review of my own code
[x] I have made corresponding changes to the documentation

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


Is docker version 1.13.1 will be present on Os 7.5.1 and further future versions?

Output of docker version:
(paste your output here)

Output of docker info:
(paste your output here)

Additional environment details (AWS, VirtualBox, physical, etc.):
Steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):

any update on this?are you planning to continue in developing the future versions of docker

Kubernernetes is tied to this version of Docker, we are back porting fixes required to run kubernetes and fixes.  What features of Docker do you need that are not in this version of Docker?
Have you tried podman?

Nope, I have n't. But I am wondering can I run the docker version 1.13.1 on the redhat OS 7.6.
When I get a chance will try podman

Can any one update on this?


add DurationField and SearchVectorField

i am using two types which are not known to sqldiff atm.

Thanks !


Feature/block level nonce tracking

Migrate nonce tracking to db states for block-level nonce tracking

DB path: /accounts/${address}/nonce

Deprecate committedNonceTracker and pendingNonceTracker in tx pool
Revamp getValidTransactions() in tx pool
Support loosely ordered noncing (nonce = -2)

Ordered by timestamp tracked in the states
DB path: /accounts/${address}/timestamp

Update nonce API
Fix bugs in transaction APIs
Fix transaction execution bug in consensus checkProposal() by using a backup db & reverting when execution fails
Remove unnecessary syncDb() in node addNewBlock()

Could you revive this test case for me? https://github.com/ainblockchain/ain-blockchain/blob/develop/integration/node.test.js#L883
It's be waiting for this moment.

Could you revive this test case for me? https://github.com/ainblockchain/ain-blockchain/blob/develop/integration/node.test.js#L883
It's be waiting for this moment.

It is now uncommented! Yay!

Addressed all comments, PTAL @platfowner

Addressed all comments, PTAL @platfowner

Just left some comments.

State rollback logic in block proposal
Sort by timestamp for unordered txs?

Sorry, it takes time due to the code complexities.

No worries! I mistakenly thought that the review round was finished, my bad. Thanks for taking the time to review, as always! 🙏

Thanks for the reviews! Now merging..


refactor(recipe card): add animation on hover

Added animation on hover
https://user-images.githubusercontent.com/59960562/235366809-78510f8e-feb5-4998-a752-05405e2eaa54.mp4

@naqibhishamuddin

Few things

The scale is a bit too big when on hover and almost overlap with surrounding cards.
The drop shadow on scale, affects another card background maybe can improve on the drop shadow distance and opacity

Do you have any ideas we can improve UX here , especially on hover ? . As you can see the border radius of the image with the white background color at the text section looks a bit off.

Yeah it is looking off, lemme look into other exmqple
On Wed, 3 May 2023 at 7:45 PM, Naqib Hishamuddin @.***>
wrote:

[image: Screenshot 2023-05-03 at 7 43 07 PM]
https://user-images.githubusercontent.com/72849336/235906551-0a8c9402-31ff-4ea4-ae05-df8a1d9f6669.png
Do you have any ideas we can improve UX here , especially on hover ? . As
you can see the border radius of the image with the white background color
at the text section looks a bit off.
—
Reply to this email directly, view it on GitHub
https://github.com/naqibhishamuddin/nak-masak-apa/pull/1#issuecomment-1532884511,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOJOZ4S6IIT4NCKRBOAN2A3XEJAOBANCNFSM6AAAAAAXRBL2NA
.
You are receiving this because you authored the thread.Message ID:
@.***>