Error on Cloud Usage Tab

Preflight Checklist

[x] I have read the Contributing Guidelines for this project.
[x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Operating System:
macOS 11.6.5
Browser:
Chrome

Expected Behaviour
Opening the Cloud Usage tab either shows the error a useful message that no data is available for the given period, or shows a graph of the emissions over the given period.
Actual Behaviour
When navigating to the plugin in our Backstage instance, the page initially loads showing that no data is available for the period, and then immediately refreshes before displaying the error below underneath the plugin nav bars. The data range control is still shown and accessible and it is possible to reduce the date range when running locally. Similarly, when running locally via yarn-start and yarn start-backend, it is possible to navigate to other tabs which appear to be working correctly.
Note that this Backstage instance/plugin has been configured to pull data from AWS only.
Full error message:
VM40291 react_devtools_backend.js:4026 ErrorBoundary, error: TypeError: Cannot read properties of undefined (reading 'map'), info: [object Object]
    at ErrorBoundary2 (eval at ES6ProxyComponentFactory (webpack-internal:///../../node_modules/react-hot-loader/dist/react-hot-loader.development.js), <anonymous>:14:7)
    at div
    at Paper (webpack-internal:///../../node_modules/@material-ui/core/esm/Paper/Paper.js:47:23)
    at WithStyles (webpack-internal:///../../node_modules/@material-ui/styles/esm/withStyles/withStyles.js:61:31)
    at Card (webpack-internal:///../../node_modules/@material-ui/core/esm/Card/Card.js:27:23)
    at WithStyles (webpack-internal:///../../node_modules/@material-ui/styles/esm/withStyles/withStyles.js:61:31)
    at TabbedCard (webpack-internal:///../../node_modules/@backstage/core-components/dist/index.esm.js:6498:5)
    at div
    at Grid (webpack-internal:///../../node_modules/@material-ui/core/esm/Grid/Grid.js:235:35)
    at WithStyles (webpack-internal:///../../node_modules/@material-ui/styles/esm/withStyles/withStyles.js:61:31)
    at div
    at Grid (webpack-internal:///../../node_modules/@material-ui/core/esm/Grid/Grid.js:235:35)
    at WithStyles (webpack-internal:///../../node_modules/@material-ui/styles/esm/withStyles/withStyles.js:61:31)
    at EmissionsTab (webpack-internal:///../../node_modules/@cloud-carbon-footprint/backstage-plugin-frontend/dist/esm/Plugin-74b9ce5b.esm.js:26:3)
    at article
    at Content (webpack-internal:///../../node_modules/@backstage/core-components/dist/index.esm.js:4447:11)
    at RoutedTabs (webpack-internal:///../../node_modules/@backstage/core-components/dist/index.esm.js:4541:11)
    at TabbedLayout (webpack-internal:///../../node_modules/@backstage/core-components/dist/index.esm.js:4581:52)
    at PluginTabs (webpack-internal:///../../node_modules/@cloud-carbon-footprint/backstage-plugin-frontend/dist/esm/Plugin-74b9ce5b.esm.js:88:3)
    at D (webpack-internal:///../../node_modules/react-router/index.js:35:685)
    at FlatRoutes (webpack-internal:///../../node_modules/@backstage/core-app-api/dist/index.esm.js:2547:81)
    at ThemeProvider (webpack-internal:///../../node_modules/@material-ui/styles/esm/ThemeProvider/ThemeProvider.js:41:24)
    at article
    at Content (webpack-internal:///../../node_modules/@backstage/core-components/dist/index.esm.js:4447:11)
    at div
    at ThemeProvider (webpack-internal:///../../node_modules/@material-ui/styles/esm/ThemeProvider/ThemeProvider.js:41:24)
    at Page (webpack-internal:///../../node_modules/@backstage/core-components/dist/index.esm.js:5763:11)
    at Plugin (webpack-internal:///../../node_modules/@cloud-carbon-footprint/backstage-plugin-frontend/dist/esm/Plugin-74b9ce5b.esm.js:142:19)
    at RoutableExtensionWrapper (webpack-internal:///../../node_modules/@backstage/core-plugin-api/dist/index.esm.js:476:13)
    at AnalyticsContext (webpack-internal:///../../node_modules/@backstage/core-plugin-api/dist/index.esm.js:69:11)
    at PluginErrorBoundary (eval at ES6ProxyComponentFactory (webpack-internal:///../../node_modules/react-hot-loader/dist/react-hot-loader.development.js), <anonymous>:14:7)
    at Suspense
    at Result (webpack-internal:///../../node_modules/@backstage/core-plugin-api/dist/index.esm.js:531:21)
    at D (webpack-internal:///../../node_modules/react-router/index.js:35:685)
    at FlatRoutes (webpack-internal:///../../node_modules/@backstage/core-app-api/dist/index.esm.js:2547:81)
    at div
    at SidebarPage (webpack-internal:///../../node_modules/@backstage/core-components/dist/index.esm.js:3329:82)
    at Root (webpack-internal:///./src/components/Root/Root.tsx:81:17)
    at D (webpack-internal:///../../node_modules/react-router/index.js:35:685)
    at E (webpack-internal:///../../node_modules/react-router/index.js:38:820)
    at SignInPageWrapper (webpack-internal:///../../node_modules/@backstage/core-app-api/dist/index.esm.js:2419:18)
    at x (webpack-internal:///../../node_modules/react-router/index.js:37:23)
    at w (webpack-internal:///../../node_modules/react-router-dom/index.js:42:23)
    at AppRouter (webpack-internal:///../../node_modules/@backstage/core-app-api/dist/index.esm.js:2431:26)
    at RoutingProvider (webpack-internal:///../../node_modules/@backstage/core-app-api/dist/index.esm.js:1948:3)
    at CssBaseline (webpack-internal:///../../node_modules/@material-ui/core/esm/CssBaseline/CssBaseline.js:66:31)
    at WithStyles (webpack-internal:///../../node_modules/@material-ui/styles/esm/withStyles/withStyles.js:61:31)
    at ThemeProvider (webpack-internal:///../../node_modules/@material-ui/styles/esm/ThemeProvider/ThemeProvider.js:41:24)
    at Provider (webpack-internal:///./src/App.tsx:112:20)
    at AppThemeProvider (webpack-internal:///../../node_modules/@backstage/core-app-api/dist/index.esm.js:2166:29)
    at AppContextProvider (webpack-internal:///../../node_modules/@backstage/core-app-api/dist/index.esm.js:2057:3)
    at ApiProvider (webpack-internal:///../../node_modules/@backstage/core-app-api/dist/index.esm.js:76:11)
    at Provider (webpack-internal:///../../node_modules/@backstage/core-app-api/dist/index.esm.js:2338:25)
    at App

To Reproduce

Create a new Backstage instance.
Add the plugin to the backstage instance
Setup billing report and AWS Athena as per the instructions here.
Add the following to the app-config file:

cloudCarbonFootprint:
  client:
    dateRangeType: months
    dateRangeValue: 1
    groupBy: week
  aws:
    useBillingData: true
    athenaDbName: ATHENA_DB_NAME
    athenaDbTable: ATHENA_TABLE_NAME
    athenaRegion: AWS_REGION
    athenaQueryResultLocation: ATHENA_QUERY_BUCKET
    billingAccountId: "AWS_ACCOUNT_ID"
    billingAccountName: AWS_ACCOUNT_NAME
    authMode: AWS
  gcp:
    useBillingData: false
  azure:
    useBillingData: false

Navigate to the plugin within the Backstage instance.

Screenshots

Additional Information

© 2022 Thoughtworks, Inc.

From our own digging, it looks like the chart colors aren’t part of the theme palette at the point when getChartColors() is called in the following<EMAIL_ADDRESS>> const colors = getChartColors(theme).
The error is coming from within the<EMAIL_ADDRESS>file when the function is attempting to map over theme.palette.chart which is undefined. We assume the array above in defaultTheme (the array of objects with keys of main) isn't being added/registered correctly.
Please let me know if there's any other info that could be of help if you have trouble reproducing it.

Hi @lukebeamish-peak, thanks for submitting this issue. Could you please confirm if this issue still arises with a fresh clone/fork of backstage or a new backstage create-app?

Hi @ccasher I've just tested it out on a fresh instance of Backstage and it appears to be working correctly. We can take another look at our instance and let you know if we find anything we missed previously.

Thanks for the updates @lukebeamish-peak, glad you were able to get this working!


Fix VMA_USE_STL_CONTAINERS macro option

See https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/issues/175
This fixes build for gcc-9.3.0, clang 10.0.0-4ubuntu1, and Visual Studio 2019 with VMA_USE_STL_CONTAINERS enabled.

Thank you for reporting this issue. I prefer to add shrink_to_fit to VmaVector to make the interface matching STL.

Making VmaVector match the STL interface would not fix the build though, because if VMA_USE_STL_CONTAINERS is enabled, the STL is used and its .resize() method does not have a 2nd argument.
// This does not work if m_DynamicArray is a std::vector, as there is no 2nd argument accepted by STL.
m_DynamicArray.resize(newCount, freeMemory);

Did I leave VmaVector::resize supporting or called with 2nd argument anywhere in the code? I can't find it. Also compilation with VMA_USE_STL_CONTAINERS=1 works for me in Visual Studio 2019. Please let me know what specific problems you can find with the latest code version.


Container connector

Plugins need to be executed in containers. For this purpose, we need a connector that runs the plugins locally using the Docker SDK. As an inspiration, the ContainerSSH Docker test tooling may be used.
The connector must provide a New() function with a single struct as a configuration parameter set and return a struct pointer that provides the following interface:
type DockerConnector interface {
    // Pull, create, and run container in a local Docker instance.
    Run(image string) (DockerContainer, error)
}

type DockerContainer interface {
    // Provide option to read from the standard output.
    io.Reader
    // Provide option to write to the standard input.
    io.Writer
    // Send a SIGTERM to the container, and then SIGKILL if it doesn't terminate.
    io.Closer
}

The module name for this should be go.flow.arcalot.io/engine and the package name should be docker.

Here is my code for the container connector: https://github.com/jaredoconnell/arcaflow-docker


Additional Event Firing Fix

I tested the code and it seem like the event streaming is fired as soon as you start the stream on a reference which already have data in the database. Therefore I modified the code to check for the last_value and only fire the event if the value is changed. I modified this to fit my needs, maybe somebody will find this useful as well. Thanks for your commit adding the SSE client.

Original comment from this discussion
I tried your fork repo, somehow it fires off an event as soon as I set the stream() and the callback function is called immediately. But the intended listening event is triggered every time when the data is changed in the database side.
>>> ref.stream(callbackfunc)
<firebase_admin.db.Stream object at 0x10c9b7ef0>
>>> {'event': 'put', 'data': True, 'path': '/'}
>>> # The event above is fired off automatically on stream without modification on db

>>> # these 3 events below are fired off by the changes in the db.
>>> {'event': 'put', 'data': 'true', 'path': '/'}
>>> {'event': 'put', 'data': 'false', 'path': '/'}
>>> {'event': 'put', 'data': 'true', 'path': '/'}

>>> self.db.reference("/users/dev1/successful").stream(callbackfunc)
<firebase_admin.db.Stream object at 0x10ef897f0>
>>> {'event': 'put', 'data': True, 'path': '/'}
>>> # The event above is fired off automatically on stream without modification on db

Is it possible to fix this unexpected behavior? I would like to help fix it, but I have no idea where to start looking and I have never worked with SSE before. If anyone can point me in correct direction, please do.

Since this feature has been merged into Firebase, I will be closing this.


[Docs][Load Testing] add link in MS docs

add link in https://docs.microsoft.com/en-us/python/api/overview/azure/?view=azure-python.
https://github.com/MicrosoftDocs/azure-docs-sdk-python/tree/main/preview/docs-ref-autogen/azure-developer-loadtesting

Label prediction was below confidence level 0.6 for Model:ServiceLabels: 'Storage:0.29034364,Docs:0.093086235,Search:0.030359188'

After https://github.com/Azure/azure-sdk/pull/4717 merged, The doc link shall be updated: https://github.com/MicrosoftDocs/azure-docs-sdk-python/tree/main/docs-ref-services/preview

@msyyc The pull request https://github.com/Azure/azure-sdk/pull/4717 was merged 3 days ago. How long would it take to update the reference docs at https://docs.microsoft.com/en-us/python/api/overview/azure/?view=azure-python?

I will confirm that in e-mail

Hi @ninallam since load testing is still in preview, you can see the doc link in https://docs.microsoft.com/en-us/python/api/overview/azure/?view=azure-python-preview


"Brădet" is listed in the dropdown menu

Description:
When user writes "Brădet" the location appears in the drop-down menu next to the comune and the county witch is a part according to the law
Precondition:
The website is up an running.

Step 1
Write in the search bar "Brădet"

Expected results
The location appears in the drop-down menu as "Brădet, Alba (Almașu Mare)"


Shift some adapters into stable

material, habpanel, lovelace, vis-justgage

https://github.com/ioBroker/ioBroker.material/issues/57 this bug must be fixed on material, before you can shift it to stable

Adding the Adapters needed fgort controller 2.0 stable release: We should have them min 1 week in stable befiore updating controller

simple-api 2.1.2 or higher
email 1.0.5 or higher
pushover 1.1.1 or higher
hue 1.2.4 or higher
node-red 1.10.1 or higher
vis 1.2.2 or higher
iqontrol 0.2.12 or higher (external Develoepr)
socketio 2.1.2 or higher
radar2 1.0.9 (GitHub version 1.2.0 muss manuell angepasst werden, siehe FAQ!)
broadlink2 (siehe FAQ) NO VERSION AVAILABLE!! NEED TO BUILD ONE
tr-064 (wenn noch soef Originalversion bei Fehlern community Version installieren) TODO
sonos 2.0.0 or higher (Breaking change! No Webserver anymore!)
web 2.4.9 or higher

Admin 3.6.12

ioBroker/ioBroker.material#57 this bug must be fixed on material, before you can shift it to stable

Fixed now... i think

hqwidgets 1.1.3 or higher
ble v0.10.1 or higher


Add checks for "scope" or "boss level"

I would like a set of "simple" checks projects (sources mostly, and binaries when needed) that determines the current "scope" of a project, or in a gamification sense, its "boss level".

[ ] masters : instances. Eg, For weight, 3 levels - when roman/italic are in separate glyphsapp files, the levels would be 1:1, 2:5, 3:9 for weights; then 2:3, 3:5, 6:25, 9:45 for widths.

[ ] glyph set. Eg, 3 levels - latin plus, pro, expert per https://github.com/googlefonts/tools/tree/master/encodings/GF Glyph Sets/) (see also https://github.com/googlefonts/fontbakery/issues/1189)

[ ] OT features. Eg, those required by the glyph set (see https://github.com/googlefonts/fontbakery/issues/1849) then "discretionary" ones like more and more stylistic sets, etc. Also those 'nice to have' per the category, eg Handwriting fonts should have a GPOS feature that varies the y-axis position for a pseudo-random effect (as explained at TypoLabs this year by Ulrike Rausch of LiebeFonts but not implemented in any libre font yet), and then GSUB features that have a set of chained substitutions (as seen in Caveat and the Cadson Demak Latin + Thai handwriting fonts)

[ ] VF axes. Eg, weight, width, ital, opsz, slnt, other

[ ] Hinting approach for non-VF instances. Eg, ttfautohint, glyphsapp hand hinting, VTT.

@graphicore and @m4rc1e , this is what the check query and process management/sign-offs stuff Lasse has been working on lately is needed for

Related to https://github.com/googlefonts/fontbakery-dashboard/issues/94


Float and Int resolution follows "whatever declared first"

Initial Checks

[X] I confirm that I'm using Pydantic V2 installed directly from the main branch, or equivalent

Description
When a type is defined as union of int and float,  int gets converted to float if float comes first in the union. This works properly in pydantic==1.10.7 with smart_union.
Example Code
from pydantic import BaseModel

class MyModel(BaseModel):
    val1: int | float
    val2: float | int

m1 = MyModel(val1=1, val2=1)
m2 = MyModel(val1=1.0, val2=1.0)

print(m1)
print(m2)

# Output
# val1=1 val2=1.0  # val2 should have been int.
# val1=1.0 val2=1.0

Python, Pydantic & OS Version
pydantic version: 2.0a1
install path: C:\Users\rajen\anaconda3\envs\pydantic\Lib\site-packages\pydantic
python version: 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
platform: Windows-10-10.0.19044-SP0
optional deps. installed: ['typing-extensions']

Thanks for reporting, see https://github.com/pydantic/pydantic-core/pull/536 for a fix.

Is it possible to resolve https://github.com/pydantic/pydantic/issues/5422 without preventing floats from accepting ints?


SSH Key "authenticity of host can't be established" for first clone

Create manpage repo with one manpage. Clone it with SSH to trigger the [yes/no/fingerprint] prompt. Move the manpage to the brew manpage directory.

Options:

Either append to known_hosts file
DNSSEC SSHFP


老哥有点问题，本地默认安装你的仓库里面有个依赖包引入 colors 的包默认是1.4.2的 被污染的那个包  导致 启动不起来，windows 开发环境，

@susakin memlab does not directly import the colors package. npm install memlab should not install<EMAIL_ADDRESS>if it doesn't exist (I only see<EMAIL_ADDRESS>as the latest version, perhaps it gets removed recently I don't know). I would recommend delete the package-lock.json file, delete the entire node_modules directory, and reinstall memlab (works for me on Windows).

thx ,there is some problem on npm mirror ，in our company‘s npm still has 1.4.2 version colors


Pass URI path upstream verbatim

Closes #528
Closes #483 by superseding it as a bug fix, not an option
This PR is just a rebase of https://github.com/louketo/louketo-proxy/pull/535

@stianst merging this as we already agreed on https://github.com/louketo/louketo-proxy/pull/535


RMS Norm TypeError: the first argument must be callable when training Llama from scratch

I get the TypeError below when training Llama from scratch.
model = GPTLMHeadModel(config=config, device=device, dtype=dtype)
  File "/usr/local/lib/python3.10/dist-packages/flash_attn/models/gpt.py", line 407, in __init__
    self.transformer = GPTModel(config, process_group=process_group, **factory_kwargs)
  File "/usr/local/lib/python3.10/dist-packages/flash_attn/models/gpt.py", line 310, in __init__
    self.layers = nn.ModuleList([create_block(config, layer_idx=i, process_group=process_group,
  File "/usr/local/lib/python3.10/dist-packages/flash_attn/models/gpt.py", line 310, in <listcomp>
    self.layers = nn.ModuleList([create_block(config, layer_idx=i, process_group=process_group,
  File "/usr/local/lib/python3.10/dist-packages/flash_attn/models/gpt.py", line 171, in create_block
    norm_cls = partial(nn.LayerNorm if not use_rms_norm else RMSNorm,
TypeError: the first argument must be callable

I followed the example in the tests for llama and so here's an example code with a custom tokenizer to train Llama from scratch w/ HuggingFace.
import torch
from transformers  import LlamaConfig
from flash_attn.models import llama
from flash_attn.models.gpt import GPTLMHeadModel
from transformers import TrainingArguments, Trainer
from transformers import DataCollatorForLanguageModeling
from transformers.tokenization_utils_base import PreTrainedTokenizerBase

training_args = TrainingArguments(
    output_dir="./llama",
    learning_rate=2e-5,
    per_device_train_batch_size=1,
    per_device_eval_batch_size=1,
    num_train_epochs=2,
    # bf16=True,
    # bf16_full_eval=True,
    bf16=False,
    bf16_full_eval=False,
)

data_collator = DataCollatorForLanguageModeling(tokenizer=tok, mlm=False,)
llama_config = LlamaConfig(vocab_size=tok.vocab_size,
                           hidden_size=1024,
                           num_hidden_layers=2,
                           num_attention_heads=32,
                           bos_token_id=tok.bos_id,
                           eos_token_id=tok.eos_id,

                           )
# below parts taken from here: https://github.com/HazyResearch/flash-attention/blob/72ad03eaa661f6bf3a14c855316c27fbab4f8f4c/tests/models/test_llama.py#L122
dtype = torch.float16
device = 'cuda'
config = llama.llama_config_to_gpt2_config(llama_config=llama_config)
config.use_flash_attn = True
config.fused_bias_fc = True
config.fused_mlp = False  # We don't have fused GatedMLP yet
config.fused_dropout_add_ln = True
config.residual_in_fp32 = True

model = GPTLMHeadModel(config=config, device=device, dtype=dtype)

# continuing w/ HF Trainer
trainer = Trainer(
    model=model,
    args=training_args,
    train_dataset=tds["train"],
    eval_dataset=tds["valid"],
    tokenizer=tok,
    data_collator=data_collator,
)

trainer.train()

The error occurs in model = GPTLMHeadModel(config=config, device=device, dtype=dtype)
Later on, I'd like to set bf16=True,  bf16_full_eval=True in the TrainingArguments but also noticed that the defaults from the config set bf16 to False when the TrainingArguments bf16=True and bf16_full_eval=True (not shown below).
Using transformers= 4.30.2 installed in the NGC Pytorch 23.06 container. Here's an example Dockerfile to replicate my env.
FROM nvcr.io/nvidia/pytorch:23.06-py3

RUN pip install flash-attn transformers[torch] datasets

Here's the output of llama_config:
llama_config
LlamaConfig {
  "bos_token_id": 123456789,
  "eos_token_id": 123456789,
  "hidden_act": "silu",
  "hidden_size": 1024,
  "initializer_range": 0.02,
  "intermediate_size": 11008,
  "max_position_embeddings": 2048,
  "model_type": "llama",
  "num_attention_heads": 32,
  "num_hidden_layers": 2,
  "pad_token_id": 0,
  "rms_norm_eps": 1e-06,
  "tie_word_embeddings": false,
  "transformers_version": "4.30.2",
  "use_cache": true,
  "vocab_size": 123456790
}

and config
config
GPT2Config {
  "activation_function": "swiglu",
  "attn_pdrop": 0.0,
  "bos_token_id": 123456789,
  "embd_pdrop": 0.0,
  "eos_token_id": 123456789,
  "fused_bias_fc": true,
  "fused_dropout_add_ln": true,
  "fused_mlp": false,
  "initializer_range": 0.02,
  "layer_norm_epsilon": 1e-06,
  "mlp_fc1_bias": false,
  "mlp_fc2_bias": false,
  "model_type": "gpt2",
  "n_embd": 1024,
  "n_head": 32,
  "n_inner": 11008,
  "n_layer": 2,
  "n_positions": 0,
  "out_proj_bias": false,
  "pad_token_id": 0,
  "qkv_proj_bias": false,
  "reorder_and_upcast_attn": false,
  "resid_pdrop": 0.0,
  "residual_in_fp32": true,
  "rms_norm": true,
  "rotary_emb_fraction": 1.0,
  "rotary_emb_interleaved": true,
  "scale_attn_by_inverse_layer_idx": false,
  "scale_attn_weights": true,
  "summary_activation": null,
  "summary_first_dropout": 0.1,
  "summary_proj_to_labels": true,
  "summary_type": "cls_index",
  "summary_use_proj": true,
  "tie_word_embeddings": false,
  "transformers_version": "4.30.2",
  "use_cache": true,
  "use_flash_attn": true,
  "vocab_size": 123456790
}

Did you install the dropout_layer_norm extension in this repo (cd csrc/layer_norm && pip install .)?
If not then you should set config.fused_dropout_add_ln = False and config.residual_in_fp32 = False.

I did not, I figured it was installed via the pip install flash_attn.
I re-ran with:
config.fused_dropout_add_ln = False #True
config.residual_in_fp32 = False #True

and get the same error:
the first argument must be callable
  File "/workspace/tformer/llama.py", line 157, in <module>
    model = GPTLMHeadModel(config=config, device=device, dtype=dtype)
TypeError: the first argument must be callable

What's the line that gives that error? Can you put a breakpoint and check what's being called there?

Oh wait if you didn't install that extension then RMSnorm = None, so it wouldn't work I don't think.

Yes it's here:
flash_attn/models/gpt.py", line 171, in create_block
    norm_cls = partial(nn.LayerNorm if not use_rms_norm else RMSNorm, ...
TypeError: the first argument must be callable

For LLama you need to install that extension to use RMSNorm.

Ok, so what are the appropriate install cmds to get all the extensions?
Would be good to have clarity on what pip install flash_attn includes. Or maybe include something like pip install flash_attn[full] to just install it all.

You can see https://github.com/HazyResearch/flash-attention/tree/main/training for the installation cmd.
Idk how to make flash-attn[full] work, if you have pointers I'd appreciate that.


Locator ID Not Correct

My locator ID is showing as xxxx-xxxx-0000-0000 where the last two sequences are just all zeros. I know my server responds with a different locator ID but I'm not sure it is still working. I upgraded my router a couple weeks ago and using the locator ID no longer works. There seems to be something wrong with this code.

BTW, I'm using SageTV through the Docker image on unRAID.
I had recorded the locator ID that was originally generated. I stopped SageTV and modified the Sage.properties file so that locator/id is the original generated. Then started it back up. On startup the locator ID went back to where the last two sequences are all zeros.

Do you see a line that looks like this in your log:
MAC address was not able to be detected, using zero for the MAC!

No, I'm not seeing that in my log but that seems to be what happened.

He's right that the MAC being read as all zeros would cause this.
Jeff Kardatzke
Sent from my Android
On Jan 10, 2017 9:30 AM, "Jason Bean"<EMAIL_ADDRESS>wrote:
No, I'm not seeing that in my log but that seems to be what happened.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/sagetv/issues/245#issuecomment-271640881, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ANEIDGzWn8aKyApW8QINJ1GhO82tt_b6ks5rQ8AkgaJpZM4Lfchp
.

Interestingly I had tried connecting with the zeros earlier and Placeshifter reported that the servers wasn't found. Now it seems to be working fine with the zeros.
This should probably still be looked at. I should note that if this is unrelated to unRAID and Docker that my system has dual network adapters if that would cause confusion with SageTV obtaining a MAC.
Now that I'm thinking about it I believe when I originally installed SageTV on my unRAID system I had the two NIC's bonded. For noise reasons I had to take the switch out that I was using so currently just using one of the NIC's. The other is not connected.


Include/exclude column measurements to Soda Cloud

Only relevant for soda-sql users with a Soda Cloud connection
Add include / exclude columns feature which should make it possible to prevent certain columns to be pushed to Soda Cloud.
Make note in docs that we recommend not to upload Personal (Sensitive) Data to cloud and include an explanation of which data is possibly uploaded to Soda Cloud, like for example the values of min and max.

Would like to have this feature!


Changed css and Font of the site

Changed the font size and style. Also made the app attractive by modifying css.
Issue #45

Also updated the readme file.

@johnbabu021  Hope you'll like it.


caching problems?

Problem: rust-analyzer seems to take a long time and many uses to get fast.
Reproduce against a new small rust library:

vi src/lib.rs
wait 30 seconds for ra_lsp-server
'gd' String  -> takes 30 seconds
:bd -> buffer delete to get back to src/lib.rs
'gd' String -> takes 15 seconds
:bd
'gd' String -> takes 5 seconds
...
5 seconds, 5 seconds,

After that, 'gd' String is instant.
I sure am grateful for rust-analyzer, but I suspect some caching isn't quite right.
On a slightly larger project it takes 90 seconds to start and it never gets to 'instant speed' - it goes down to about 10 seconds. Perhaps I didn't have enough patience to repeat 'gd' ?
Ubuntu 18, Ryzen 2700, 16GiB, nvme.
If you're trying to save memory by only caching things that you see > n times - please offer an option to just always cache everything :-) I'd happily allocate 8 GiB or more to have a nearly instant rust-analyzer.
Thanks!

rust-analyzer doesn't persist anything to disk yet, so the first usage after startup is unfortunately expected to be slow.
However, after the crate is processed for the first time, subsequent actions after modifications should be instant, modulo bugs.If this doesn't happen for a particular project, it would be lovely to get a reproducible example!

Would you like a minimal neovim or vim config as well?
(maybe you would be testing outside of an editor and wouldn't need them?)

It won't hurt, yeah, but I might be able to repro with just vscode?

Ok, the README explains how I did some testing.
https://github.com/MarkSwanson/ratest1
Maybe helpful:  removing wgpu from Cargo.toml speeds things up.

Alright, I've loaded up ratest1 into VSCode.
After a few minutes of playing with VSCode and rust-analyzer I can only say:
FANTASTIC JOB! I'm blown away! I may actually drop vim and switch to VSCode.
Fwiw I spent many hours with different version of vim, neovim, different LSP implementations (editor and server). Only rust-analyzer in VSCode works fast and correct for me.
The only issue I have is that 'cargo  check' warnings do not show up in VSCode. I'll investigate more and open another ticket if I can't solve it.
This issue can be closed - running rust-analyzer in VSCode shows that rust-analyzer is obviously working great. Thanks again for rust-analyzer.

The only issue I have is that 'cargo check' warnings do not show up in VSCode.

Sounds like #2707.

Interesting... Let me cc @norcalli  and @oblitum in case they would find the vim side of this interesting. TL;DR: rust-analyzer can have huge latencies in Vim, but not in VS Code? Not sure what's the problem here, it might very well be some bug on our side.

I think @MarkSwanson is the same user that was having myriad of "software problems" from all sides on coc.nvim channel? And for which I simply suggested VSCode as there was a need for GUI client, etc.
Seriously I just think it's a case there's some shooting yourself in the foot somewhere. I never experienced latency problems with vim/neovim except for the already expected to exist in all editors, it shouldn't be different from VSCode.

I've never participated on the coc.nvim channel.
On Fri, Jan 10, 2020 at 8:13 AM Francisco Lopes<EMAIL_ADDRESS>wrote:

I think @MarkSwanson https://github.com/MarkSwanson is the same user
that was having myriad of "software problems" from all sides on coc.nvim
channel? And for which I simply suggested VSCode as there was a need for
GUI client, etc.
Seriously I just think it's a case there's some shooting yourself in the
foot somewhere. I never experienced latency problems with vim/neovim except
for the already expected to exist in all editors, it shouldn't be different
from VSCode.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rust-analyzer/rust-analyzer/issues/2776?email_source=notifications&email_token=AAA6A4AWQ6IWMSX2SDRBMP3Q5BYBBA5CNFSM4KERNLKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIT37QI#issuecomment-573030337,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAA6A4FBHZSZCKACXDIIQSTQ5BYBBANCNFSM4KERNLKA
.

I've never participated on the coc.nvim channel.

Well, okay. As a NeoVim user, I simply can't reproduce the issue. go-to-definition is instant after rust-analyzer does its initial load. I think the issue can potentially be editor misconfiguration, as if you don't take care of what you run with autocommands on file load, file loading can get stuck loading.

Also sadly I can't try the provided test as it requires unstable rust, and I just have stable available.

Also sadly I can't try the provided test as it requires unstable rust, and I just have stable available.

Looks like the tests still work on stable, this is my screencast:
screencast.zip


[DC-3199] Update StringFieldsSuppression to include aou_death, but not suppress aou_death_id and src_id (string)

Wrong branch


rediss:// url clobbers custom TLS options

As mentioned at https://github.com/luin/ioredis/pull/939#issuecomment-523074291, the change in #939 clobbers any custom tls value that may be passed in. It would be better to set { tls: true } only when tls isn't already set by the caller.

Sorry, duplicate of #940.


Is CockroachDB a possibility for the backend database?

Has anyone tried using CockroachDB as the database backend, or do you know of any potential issues preventing it? PowerDNS itself works fine with CockroachDB - now we just need PowerDNS Admin ;-)
PS: Thanks for all the good work - PowerDNS Admin looks awesome and professional!

Did some testing, and as it turns out, it's pretty easy to use CockroachDB as the database backend for PowerDNS-Admin. I'm using the Docker image, so I had to 1) make sure the image also had the sqlalchemy-cockroachdb Python module (please include this in the standard Docker image) and 2) change the backend to "cockroachdb" instead of "postgressql" which I used previously.
Directly pg_dump'ing the old PostgreSQL database and loading it into CockroachDB didn't work, as CockroachDB doesn't support the full PostgreSQL feature set. Loading the COPY parts of the dump seems to work fine though.

Did some testing, and as it turns out, it's pretty easy to use CockroachDB as the database backend for PowerDNS-Admin. I'm using the Docker image, so I had to 1) make sure the image also had the sqlalchemy-cockroachdb Python module (please include this in the standard Docker image) and 2) change the backend to "cockroachdb" instead of "postgressql" which I used previously.
Directly pg_dump'ing the old PostgreSQL database and loading it into CockroachDB didn't work, as CockroachDB doesn't support the full PostgreSQL feature set. Loading the COPY parts of the dump seems to work fine though.

Hello,
It should be possible, you just need to test on a new install with adding python sqlalchemy-cockroachdb to the virtualenv and run the flask db upgrade and check wether the app works or not.
Please give us a feedback if you are still interested.
Regards

Hello,
This request is stale for too long. Regarding our policy to cleanup this project, we are closing it. As this is a Feature Request, it will be listed in #1178
Regards
PowerDNS Admin Team
See #1153 for the policy


update gradle and junit

Hi there @lsoares,
it seems that you're trying to upgrade the forth exercise from JUnit to the newer internal Kotlin test library, as well as upgrade gradle, if I am correct?

Could you list some of the benefits?
If approved and merged, will you apply the same to all the other exercises?
Are there potential downsides to this change?
Is the built-in Kotlin test suite now standard in "a lot" of Kotlin communities?

Normally we'd discuss changes like this first in issues (now: forum), which is why this PR was automatically closed.

Hey @SleeplessByte
I don't mind discussing this in the forum. Should I?
To answer your questions:
In fact, I'm trying to update JUnit 4 to JUnit 5 - the way I'm doing this is through Kotlin but it's still an upgrade of JUnit.
JUnit 5 was released 6 years ago and JUnit 4 is being slowly deprecated (not sure when).
The benefits of JUnit 5 over JUnit 4 are a lot but for Exercism there are two that are worth it:

Parameterized tests are way much easier and more readable (more)
Exception assertions are way better - no global rules or annotations - just use assertFails with a lambda (this one applies to this exercise and that's why I did it)

Regarding the upgrade: in 90% of the cases, it's just upgrading the imports. the remaining 10% is a bit more tricky (I'm referring to the advantages above as they were revamped features)
Yes, I can slowly upgrade the other exercises. However, there's a little "hack" that makes the test runner support both JUnit versions, so we don't need to rush (or even convert all if there are no clear/urgent benefits).
BTW, a question: why is the runner not available from the website?
JUnit 5 is the standard now. Nobody uses 4 in a new project (recall that Kotlin is just wrapping it so that's a detail - we could have imported JUnit 5 directly).
I don't see any downside because the upgrade can be done optionally and per exercise.

BTW, a question: why is the runner not available from the website?

The runner would always timeout because gradle startup and build is too slow. The entire execution must be under ten seconds and we were not yet able to get it that low.

Can you explain how this change makes it easier to run the tests from the IDE? Documenting that here, in this PR, can aid with future discussions about the topic :)

with JUnit 5 nested abilities:

with JUnit 4 there's no arrow to run the test and it's not visible in the menu as well.

PS. I doubt we can run Gradle under 10 secs unless we keep Gradle cache.


WebContainer.boot() never resolves when using coep: 'none'

Describe the bug
I'm trying out the new coep: 'none' option, but it seems that boot() never resolves for me when using that option
E.g. in the code
await WebContainer.boot({ coep: 'none' })
console.log('done')

'done' will never log, and I will get no errors either
Link to the blitz that caused the error
https://stackblitz.com/edit/stackblitz-webcontainer-api-starter-fqp6y5?file=main.js,package.json
Steps to reproduce

Attempt to boot a webcontainer with coep: 'none'
Notice the promise returned will never resolve

Expected behavior
Promise resolves with the webcontainer instance
Parity with Local

[ ] I have run the project in my local machine and I could not reproduce the issue.

Screenshots
No response
Platform

OS: macOs
Browser: Chrome
Version: 1.1.4

Additional context
No response

:wave: Thanks for the report!
I'm afraid coep: "none" cannot work within StackBlitz itself. The coep parameter is, after all, a way to let the API consumer/embedder set the appropriate cross-origin policy according to their preferences/setup to serve their application.
When embedding a WebContainer API usecase in StackBlitz itself, the embedder is StackBlitz. And we've chosen to always (*) server our content with cross-origin isolation enabled, which prevents the API from working at all (regardless of origin trials!).
Is this a random test you created to test the waters? Or does it correspond to a "real" use case you had in mind?
In any case, I'm going to add this to our internal tracker, b/c I think at least it merits a warning  from the API library if/when we detect that the user is trying something that cannot work (e.g. coep: "none" with crossOriginIsolated: true).
(*) With some exceptions.

Thanks for the prompt reply Roberto! So this is happening in my real project too, but if I understand correctly this may be because we still have that project in crossOriginIsolated mode.
The full setup is we have a crossOriginIsolated page, and when we embed it in an iframe on a non crossOriginIsolated site we would get errors, hence we needed the origin-trial (for chrome to at least work).
If I understand correctly, what we need to do now is make the page that loads in the iframe not cross origin isolated when using “coep: none” and things should work.
If that’s correct I can give that a try in a bit, and thanks again!
On Sat, Jun 3 2023 at 2:19 AM, Roberto Vidal < @.*** > wrote:

👋 Thanks for the report!
I'm afraid coep: "none" cannot work within StackBlitz itself. The coep parameter
is, after all, a way to let the API consumer/embedder set the appropriate
cross-origin policy according to their preferences/setup to serve their
application.
When embedding a WebContainer API usecase in StackBlitz itself, the
embedder is StackBlitz. And we've chosen to always (*) server our content
with cross-origin isolation enabled, which prevents the API from working
at all (regardless of origin trials!).
Is this a random test you created to test the waters? Or does it
correspond to a "real" use case you had in mind?
In any case, I'm going to add this to our internal tracker, b/c I think at
least it merits a warning from the API library if/when we detect that the
user is trying something that cannot work (e.g. coep: "none" with crossOriginIsolated:
true ).
(*) With some exceptions.
—
Reply to this email directly, view it on GitHub (
https://github.com/stackblitz/webcontainer-core/issues/1094#issuecomment-1574806127
) , or unsubscribe (
https://github.com/notifications/unsubscribe-auth/AAGOEA34IZZBBQB5TZGJIQ3XJL6RPANCNFSM6AAAAAAYY44KHE
).
You are receiving this because you authored the thread. Message ID: <stackblitz/webcontainer-core/issues/1094/1574806127
@ github. com>

confirmed, works now, huge thanks @jrvidal!


Filter out cranelift trace when trace is enabled

Describe the bug
When plugin_runner compiles plugin for the first time, it hits cranelift compiler. Compiler have internal traces like
{"ph":"i","pid":1,"ts":22751.1,"name":"event C:\\Users\\kwono\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\wasmer-compiler-cranelift-2.1.1\\src\\translator\\func_translator.rs:83","cat":"wasmer_compiler_cranelift::translator::func_translator","tid":7,"s":"p","args":{"[file]":"C:\\Users\\kwono\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\wasmer-compiler-cranelift-2.1.1\\src\\translator\\func_translator.rs","[line]":83,"message":"translate(1623 bytes, u0:499(i64 vmctx, i32, i32, i32) windows_fastcall)"}},

which fills up our trace quickly - we should filter out those traces for our output.
Input code
No response
Config
No response
Playground link
No response
Expected behavior

Actual behavior
No response
Version
latest
Additional context
No response

Fixed by https://github.com/swc-project/swc/pull/3801


Missed some fixes for 5.1.x

Test PASSed

Thanks -- suggest changing the commit summary to something more descriptive like "docker: build appropriate container for container_name" or whatever's appropriate, and then we'll merge it.

Nevermind, I misunderstood what was going on (that these were a set of cherry-picks).  I'll merge this a bit later and then we'll resume merging up the pending bits.

CLA signed by all contributors.


Remap keyboard - remap keys to use certain symbols (Unicode)

Remap keyboard to use symbols i.e. currency symbols £€
I am using non-UK keyboard layout, however I find myself constantly in the need of usage GBP symbol. In my keyboard layout, there is no direct option to type £ symbol, so I find myself constantly copying & pasting the symbol. Adding support for symbols (and possibly other characters) would really make the Keyboard Remap extremely useful.

You can probably get the £ symbol by changing or adding a keyboard layout in Windows settings.
If you have multiple press Ctrl+Shift to move between variations of the same language (e.g. UK to UK Extended) or Win+Space to change between all layouts.
I do second this addition though, being able to type in any symbol e.g. something in Unicode that isn't on keyboards would be brilliant, if we could combine the shortcut and key remapping into one tool and let the user type in any symbol so you can copy & paste non-standard symbols.
I know you can use the keypad for typing Unicode, but most (including mine) laptops don't have one and having a shortcut would be way easier anyways.

Either this or allow shortcut remapping for the [ALT + numpad] code shortcuts.
This feature alone would be reason enough for millions of people to install the power toys.

The € is often inserted by typing Ctrl + Alt + 5, but this may depend on the keyboard? I was also going to say Alt + 0128 will do the trick and Alt + 0163 is for the Pound, but then I read

I know you can use the keypad for typing Unicode, but most (including mine) laptops don't have one and having a shortcut would be way easier anyways.

and I think you are right on that one.

You can probably get the £ symbol by changing or adding a keyboard layout in Windows settings.
If you have multiple press Ctrl+Shift to move between variations of the same language (e.g. UK to UK Extended) or Win+Space to change between all layouts.
I do second this addition though, being able to type in any symbol e.g. something in Unicode that isn't on keyboards would be brilliant, if we could combine the shortcut and key remapping into one tool and let the user type in any symbol so you can copy & paste non-standard symbols.
I know you can use the keypad for typing Unicode, but most (including mine) laptops don't have one and having a shortcut would be way easier anyways.

I know, but I find myself randomly pressing ctrl + shift (i.e. when accessing the task manager) and unintentionally triggering keyboard change. I was even considering changing the shortcut to something else, but this would make the access to pound symbol even more difficult.

The € is often inserted by typing Ctrl + Alt + 5, but this may depend on the keyboard? I was also going to say Alt + 0128 will do the trick and Alt + 0163 is for the Pound, but then I read

I know you can use the keypad for typing Unicode, but most (including mine) laptops don't have one and having a shortcut would be way easier anyways.

and I think you are right on that one.

In the case of the layout i use, Ctrl + Alt + U yields € sign, so this one is not problematic, but  I am mostly interested in £ and maybe other special characters. Support for all Unicode characters would be a dream.

This would be very useful.  I need to be able to type the ō character (unicode 0x14d) and for this the alt+numpad trick doesn't work. In MS Word I can type 14dAlt+x, but that don't work outside Office.

I agree. In Keyboard Manager, it should be possible to remap keys and shortcuts to any Unicode character, even those that are not present in the current keyboard language.
Here is an additional use case: I would like to remap Ctrl+Shift+4 to € when using a U.S. English keyboard and language. Since the € is not present in this keyboard/language, there does not currently appear a way type € in the "Remap To" field. If I try to type the usual sequence Alt+0128, only the last key-press of the sequence "sticks" and it does not work.
And one more use case: I would like to remap Ctrl+Alt+C in my U.S. English keyboard to the Lithuanian letter č. If I try to enter č in the "Maped To" field by temporarily switching the language to Lithuanian in order to type č, the remapping does not work as desired. Instead, when I subsequently type Ctrl+Alt+C (once back in U.S. English), I get "2" instead of "č" (because the letter č on a Lithuanian keyboard is where the number 2 is on a U.S. English keyboard).
To me, the main point of using Keyboard Manager in this way is to avoid having to recall a Unicode sequence or change keyboard languages every time I want to insert a single foreign character, like € or č, when typing mostly in U.S. English. Please extend the current functionality by permitting the entry of any Unicode character in the "Mapped To" field, or by making the current cross-language behavior optional.
Thank you.

I would absolutely love to be able to do this for common use special characters that aren't available on an (in my case) US keyboard. Often on the laptop without a num pad. Used to use AutoHotKey for this, but doesn't work very well on Win10.

Closing in favor of https://github.com/microsoft/PowerToys/issues/6976

Closing in favor of https://github.com/microsoft/PowerToys/issues/6976

Either this or allow shortcut remapping for the [ALT + numpad] code shortcuts. It is not only useful for currencies, but also for typing the odd umlaut character one might need while using the US keyboard layout. This feature alone will be reason enough for a lot of people to install the power toys.

Indeed. 🙏 I actually only installed Powertoys today because I was confident it would (finally) allow me to remap "weird keys" on the physical Danish keyboard I got from a reseller when I am using the software Danish keyboard, and remap certain other keys when I am using the software English US keyboard, when using the software Canadian keyboard, Portuguese, German, etc. - People switch software keyboards a lot, but never the physical keyboard 😉
Unfortunately, I realized Powertoys lets you only remap one physical key to another physical key. 😔 That doesn't help me an inch. The suggestion from others to type a definite Alt-code in the "Mapped to" field is perfect, if implemented. ✔🙂🙏🏆
PS: While "Keyboard Manager" is useless for me until then, I got a few other "Powertoys" that should come handy. ✨

I am realizing now I may need to be clearer: The function I was hoping for (and failed to find searching the net for the whole morning):
👉 Subject to the selected Win software keyboard language, the tool would let us type a physical key/combination, and remap that to an ALT code that we can enter on a laptop (ie without Numpad).
👉 Ideally, then when we selected a different Win software keyboard language (bottom right in taskbar), the tool would again let us remap a physical key to something else.
👉 This behavior subject to Win software keyboard language is the ideal. If too difficult to implement, then of course a simple  remapping of physical key to ALT code would be great too! (Ie without that the tool knows/sees which Win software keyboard language is selected currently - which may be difficult, yes.)
Could I explain well? 🤔

Hey,
I had a similar problem like you and found a solution that works for me.
I wanted to write "Umlaute"(ä,ö,ü) on an english keyboard without switching the language all the time.
I got the answer from stackoverflow.
So what u need to do is:

Download and Install AutoHotKey, You can also find it in the Microsoft Store.
create a script
a. Open Notepad
b. and enter

Numpad7::SendRaw ä
Numpad8::SendRaw ö
Numpad9::SendRaw ü

c. save the file as .ahk file (I named it umlaute.ahk)
3. double click on it.
4. It asks you to install the script
-> You should be able to write äöü on the numpad7 8 and 9 now (make sure to enable num lock, to be able to write numbers...)
Of course you cant type 7 8 and 9 now anymore.
You can change the script to any unicode character and any keyboard key you want.
If you have problems with that it could be possible that you need to make sure to save the file in "utf-8" encoding, but the default utf-16 of windows should work, too.
Cheers and have a nice day.

Hey,
I had a similar problem like you and found a solution (without Powertoys) that works for me. I wanted to write "Umlaute"(ä,ö,ü) on an english keyboard without switching the language all the time. I got the answer from stackoverflow.
What u need to do is:
1. Download and Install [AutoHotKey](https://www.autohotkey.com/download/), You can also find it in the Microsoft Store.

2. create a script
   a. Open Notepad
   b. and enter

!+a::SendRaw Ä
!+o::SendRaw Ö
!+u::SendRaw Ü
!s::SendRaw ß
!a::SendRaw ä
!o::SendRaw ö
!u::SendRaw ü

Thanks, however I get this error
Warning: This local variable appears to never be assigned a value.

Specifically: SendRaw

   001: {
▶	001: SendRaw(Ä)
   001: }
   002: {

This worked for my in AutoHotKey 2.0.8
!+a::SendInput "Ä"
!+o::SendInput "Ö"
!+u::SendInput "Ü"
!s::SendInput "ß"
!a::SendInput "ä"
!o::SendInput "ö"
!u::SendInput "ü"


updated view to use react and shared map

I'd actually recommend leaving it as vanilla JS rather than React here.  We made an explicit choice to use vanilla JS in our Hello World, and I think this example eventually becomes the even easier Hello World.  We should be consistent in our view choice between the two (in fact ideally both use the exact same view because we'll only be changing the model/controller layers between the two).
If we want to switch both over to use React I think it's an orthogonal decision to discuss, and not crucial to this sample's focus.


Trying to use LLAMA.CPP with model on windows never works.

What type of model locally should be used? GPTQ I'm assuming, every time I've been using this with a local model the response is.
Required input llm for module LLMChain not found
Are there any more directions on how to do this correctly?

Tha'ts weird. Could it be that you don't have the model on your PC?

I think its this command in the directions it does nothing
pip install langflow[local]
Is local supposed to be filled in with something?

I believe i found the confusion. The direction was confusing even to to multiple LLM's so I re-wrote it this should make a bit more sense.
Instructions for Using Local Models (e.g., llama-cpp-python):
Installing the Required Dependencies:
To use local models like llama-cpp-python, you need to install both the langflow package and the model package. You can install them by running:
pip install langflow llama-cpp-python
This will also ensure the following dependencies are installed:
CTransformers
sentence-transformers
Note: Even with these local models installed, you have the flexibility to use models from other projects like LocalAI.

I also get the "Required input llm for module LLMChain not found" on any LLM I try.
If I try HuggingFaceHub with my API token and a repo that I know supports inference, same error.
If I switch to LlamaCpp, with a path I know points to a working GGML bin, same error.
I'm on MacOS 13.4. Installed using
pip install langflow"[local]"
The instructions still don't mention the parentheses, but a quick search pointed it out.

Thanks, for the tip on the " around that. I just tried this on my windows machine as well. I can connect to OPENAI, SERP other ones no problem. When I try to run LLM > LLAMA.cpp it doesn't work.   I'm running a conda environ in both mac & PC, and using absolute paths to the model. I'm assuming maybe something isn't getting set for the lllama path?

Did you ever find a solution to this issue? I am experiencing the same problem. "Required input llm for module not found"

Same here.. Any help would be highly appreciated

Nope never got it working.

Same here... "Required input llm for module LLMChain not found"...
No LLMs work.
Too bad, langflow looks useful... hope this gets sorted out

I run into this problem today trying to integrate llamacpp in one flow. it seems that it uses an outdated version of llama-cpp-python (~0.1.0), I also have, in the same environment, installed a newer version of it that is required by langchain(~0.2.11) and the difference makes this error appears, if you uninstall the newer package and install langflow again the error disappears. also if you try using a recent gguf file from huggingface llama gets stuck and the websocket gets a timeout. pretty sure if you update the package it will run ok, i tried to tackle this problem but i cant get langflow compiled for development, the grpc dependency fails. I can try to fix it but I got stuck trying to install grpcio.

Is this issue ever resolved? I have the same problem, I use a Mac and try to specify absolute path on my machine, I also have llama-cpp-python installed but I still get "Required input llm for module LLMChain not found" error


Uncaught TypeError: Cannot read property 'measuringElement' of null  (UITextFormat.js:271)

Project Details are :
https://paste.apache.org/cpo8y
Test case is available on VDI.
Go to Inventory from Select in Menu
Go to Misc -> Oracle Integration from Setups in Menu
File : com/dbz/modules/Common/dbzOraIntConfigSetup.mxml

I compiled this setup with new sdk on my local machine and this exception occurs and setup is looking like  :

after adding updateDisplayList(width,height); instead of invalidateDisplayList(); in MaskedTextInput's inputmask setter this exception occurs,when i revert MaskedTextInput and compile this setup again it looks fine but still same issue - - - -  is not visible in Account Code fields

I am sending you runtime changes in MaskedTextInput.js file :
when using invalidateDisplayList() in InputMask Setter :
CompanySetup :

Oracle Integration Setup :

after removing invalidateDisplayList() from InputMask Setter and adding updateDisplayList(width,height);
updateDisplayList(width,height) is working fine on CompanySetup,those fields which should have - - - - - in Company setup is working after this change but Oracle Integration and many other setups is throwing this exception after this change in MaskedTextInput
CompanySetup :

Oracle Integration Setup :

Try using an override of addedToParent instead, as I suggested in #721


NSG on delegated subnet

Please could you describe how to configure NSG on delegated subnet ? I need to know inbound rules.

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

ID: a7a98803-1438-b1b5-f543-7dd88bc4294e
Version Independent ID: 37ff1d0f-ed8e-5e4d-1f4c-1b9f6cffb938
Content: Integrate app with Azure Virtual Network - Azure App Service
Content Source: articles/app-service/web-sites-integrate-with-vnet.md
Service: app-service
GitHub Login: @ccompy
Microsoft Alias: ccompy

Hi @jjindrich, thanks for the feedback! We are currently investigating and will update you shortly.

Hello, in the doc, NSG topic explicitely says : "The inbound rules in an NSG do not apply to your app as VNet Integration only affects outbound traffic from your app"

#please-close


Fix for possible Path Traversal vulnerability.

Description
Unsanitized input from the HTTP request body flows into unlink, where it is used as a path. This may result in a Path Traversal vulnerability and allow an attacker to delete arbitrary files.

Visual changes

Functional changes

[Y] Code style has been fixed by running the composer cs command.
[Y] Changes have been tested to not break existing functionality.
[Y] Documentation is up-to-date.

Excuse my bluntness please. How on earth would data from the HTTP request body ever enter a trait that is only used by Artisan commands? If this is possible out of the box with Filament without you having to wire up a controller to a command, please email me as soon as possible as this is a security vulnerability that should be addressed in private, as per our security policy.


#9935 changed the link from /guides/configuration-management/creating…

…-a-meshrey-design to /guides/creating-a-meshrey-design
Notes for Reviewers
This PR fixes #
Signed commits

[ ] Yes, I signed my commits.

🚀 Preview for commit 42bc03f4380875481f64ab6d783f9c434c730662 at: https://65a0cf24511fda83728610b1--meshery-docs-preview.netlify.app

Hi @muthu9594   ,
Thanks for your PR! I encourage you to share this in the Website Meeting tomorrow at 6:30 PM IST. Share your screen, and walk us through it. It's cool to take and share feedback. Check the Doc here to include this PR.
You're welcome at the meeting
Check to community calendar for more details of meetings at Layers.

@muthu9594 are you there?


HTTPS Protocol is NOT supported

It looks like rave-lua doesn't support HTTPS yet as of March 2016 as seen in raven.lua. Unfortunately, this is a deal-breaker for a lot of folks out there because the hosted version of Sentry only supports HTTPS!

See: https://github.com/cloudflare/raven-lua/pull/4 but I was also told this approach isn't very secure and/or good. I'm not a Lua person, but was just hacking around on this a while back, so not sure the correct approach.

@mattrobenolt why wasn't it very secure / good? What's the hold back? That PR was more than 1 year old!

I don't know, someone who knew more Lua than me said it was bad. That's all I remember.

Solved by #21


ontology is too complex to reason over

@addiehl @mtsmith6 @adbartni
In order to have the ontology classify entities based on data property values (e.g., flip, TE, TR) you will have to use the HermiT reasoner. However, after 15 minutes or so, reasoning fails on my computer due running out of memory.
I have my laptop java memory set to 12G. You can experiment with setting the memory higher, but it raises the question of just how complex do you want/need the reasoning to be. For example, if you need 64G of memory in order to get the reasoner to complete, the ontology may not be practical for many other researchers to use.
I suspect the reason for this is large number imports from OBI and UBERON. These ontologies have a number of complex axioms.
Not sure what the right solution for this is. You can:

trim the number of classes you are importing
only import the classes and not the axioms
throw more computing power at it

I also played around with using SWRL rules. In the attached ontology on the SWRL tab, you can see some simple rules for classifying the person individuals. However, for this to work, you have to use the pellet reasoner, and this may (probably will) cause the same memory issues as using HermiT
person-test-swrl.owl.zip
.

The SWRL stuff definitely looks interesting.
Mackenzie provided a list of only those terms from OBI and UBERON that we actively use. I was able to use that to cut down what we import from OBI and selected only the terms from UBERON and not the axioms since those aren't important for us.
This brought the overall axiom count from ~50,000 to 7,301. HermiT now runs very smoothly and correctly classifies individual acquisition sequences according to defined MRI setting values.

I'll leave this open while I look into SWRL as well, but I'd say things are in pretty good shape after greatly cutting down on the complexity from the imports.


CIP-0071? | Non-Fungible Token (NFT) Proxy Voting Standard

This is the initial commit for a proposed Cardano Improvement Proposal (CIP) that would enable NFT projects that did not want to use a governance or other native fungible asset to perform verifiable on-chain votes.
[ Documentation: README.md, example/ ]

see rendered Markdown

This is not ready for review yet I am just putting it up here so I have a pointer to get the process started.  When I am ready for formal reviews, I will move it out of Draft status.

This is now ready for community review.  I will engage key participants to determine how best to get the ball rolling!

thanks @thaddeusdiamond - I've added a direct link to the README.md file in your branch in the form we use when new CIP PR's are submitted... please modify the text as you like & keep the link updated if your CIP draft changes path (I see your "example" is linked from the CIP text).
If you can indicate here which individuals or groups you are already addressing as "key participants" we can ask for feedback from any others who have submitted or reviewed proposals about voting, governance, and/or authentication by NFT.
The proposal looks technically sound to me, and complete with all formalities including the Path to Active that we would expect to eventually merge this with Proposed status,  but I'm not qualified to review the technical details: therefore hoping that @KtorZ @SebastienGllmt and perhaps @michaelpj will be interested in reading & reviewing soon.

thanks @thaddeusdiamond - I've added a direct link in your OP to the README.md file in your branch, in the form we use when new CIP PR's are submitted... please modify the text as you like & keep the link updated if your CIP draft changes path (I see your "example" is linked from the CIP text).

What is OP? I can update any forms you need I just was not sure of them.

If you can indicate here which individuals or groups you are already addressing as "key participants" we can ask for feedback from any others who have submitted or reviewed proposals about voting, governance, and/or authentication by NFT.

I have talked to several NFT projects that want this kind of functionality (especially for newer/smaller projects), but they may not be technical.  I've reached out to encourage them to comment here.

The proposal looks technically sound to me, and complete with all formalities including the Path to Active that we would expect to eventually merge this with Proposed status, but I'm not qualified to review the technical details: therefore hoping that @KtorZ @SebastienGllmt and perhaps @michaelpj will be interested in reading & reviewing soon.

it's a common Internet abbreviation for Original Post, i.e. your comment here.  When new proposals come in I generally link them at the bottom to the working proposal to make it easy for me & others to review, especially when on the spot at our biweekly CIP meetings:

see rendered Markdown

Since you already mentioned the README.md in your own text I also thought you might want to merge these.

Thank you so much for the review.  A couple of your comments I have follow-up questions on.  I am also pushing a new revision that hopefully addresses some of your thoughts.  More feedback welcome (especially @codefly and @Quantumplation seeing as they have governance experience.

Overall, the idea looks okay but I am missing a bit some perspective with existing similar voting systems such as SundaeSwap's (cc @Quantumplation) or Voteaire's (cc @codefly) from whom I'd appreciate their review / comments on this proposal.

I am not familiar with SundaeSwap but Voteaire uses metadata (correct me if I am wrong @codefly I am going off of https://github.com/voteaire/voteaire-onchain-spec).  I would like to move the procedure on-chain to allow for on-chain verification of vote authenticity (e.g., enforcing RCV/vote selection in a Smart Contract).

I am also not fully sure to understand the need for a Ballot NFT and counting ballot contract altogether. Indeed, the counting seems to happen entirely off-chain, by fetching and ordering UTxO entries, and counting assets within them. The contract merely states the rule by which the ballot can be returned to their original voters. But, why bother minting and sending ballots in the first place then?

The creation of the ballot and simultaneously sending in the vote is the entire process.  Counting can occur off-chain (just like NFT viewers retrieve IPFS images off-chain), but the validity of the votes are enforced on-chain.  I am going to add a few use cases in the "Motivation" section that hopefully clear up why you need to mint the ballots on-chain.

What is the added benefit compared to a more simple vote done by sending a transaction to oneself with the associated metadata?

For dApps, it is much simpler (and more cost effective against service providers) to look for UTxOs at a single address (the ballot box).  Otherwise we would have to snapshot the addresses who held and look at all their txn's during a voting period to find the specific vote.  We also could not enforce vote authenticity on-chain.

An off-chain process can easily fetch transactions with the appropriate metadata tag and count votes in a very similar fashion. If there's a clear benefit over doing that, it should be stated in the motivation (what problem this approach has) and the rationale (how this specification solves issues of that simple approach);

I will update the motivation and rationale for why this needs to be on-chain.

Thank you @thaddeusdiamond for writing up this proposal. We would certainly be adopting and using this standard at ApeWatch in order to let holders of our NFT - to be released - vote on various topics, e.g. which feature to build next.

Thank you @rphair.  I have updated the CIP to to have the appropriate spelling for ADA -> ada.  Can you advise on how to complete path to Active?  So far I have:

Considerations for ranked-choice voting if projects wish to have it
Minimal reference implementation making use of Lucid (off-chain), Plutus Core using Helios (on-chain): Implementation
Open-source implementations from other NFT projects that make use of this CIP

RCV is listed in this README as an add-on that can be verified through the datum
Reference implementation is checked in here
I open-sourced the full example (which we conducted and completed at wildtangz.com/vote) as part of the cardano-nft-js-toolkit repository I have.

Should I add those references somehow?

In the 20th NFT Guild Roundtable we explored CIP 71 with its author @thaddeusdiamond
Watch the entire Roundtable:
https://youtu.be/Yyx4EEFXRh4
Or read through the transcript:
https://drive.google.com/file/d/1gz9z0Gp0nh2uK6OgdmhmQHg-8OzAJbvS/view?usp=sharing


Syntax highlighting for example code blocks

The example code blocks should have syntax highlighting so they're easier to read.

Done for JS, but not Squiggle yet.


Quick links added to left side toc tree

Closes #59
Isn't it nice?

Cool! Looking at it I think I prefer Community rather than Support, what do you think?

Yeah, Community also feels better to me. I'm changing it.


Information

Can we see Private Account Post or Story from this tool

If you follow the private account, you can see their posts. Otherwise you can't see them.

If you follow the private account, you can see their posts. Otherwise you can't see them.

I followed but they didn't follow back


Old replay files

Hello!
Trying to parse replays from blizzard of version 3.16.1: https://github.com/Blizzard/s2client-proto#replay-packs . Is there any way to run simulations, or to translate events to newer format?
Sadly, i get only these types of events, no 'UnitDoneEvent' or simillar ones:
{'AddToControlGroupEvent',
 'BasicCommandEvent',
 'CameraEvent',
 'ControlGroupEvent',
 'DataCommandEvent',
 'GetControlGroupEvent',
 'PlayerLeaveEvent',
 'SelectionEvent',
 'SetControlGroupEvent',
 'TargetPointCommandEvent',
 'TargetUnitCommandEvent',
 'UpdateTargetPointCommandEvent',
 'UpdateTargetUnitCommandEvent',
 'UserOptionsEvent'}

Any way to get these replays to work? Maybe i can attach sample replay so you dont have to download entire pack?

Hey, so this is a known issue in that whatever Blizzard did to anonymize/create these replays, it ripped out important data (such as the UnitDoneEvent) that appears difficult to recover. You can see the discussion at https://github.com/ggtracker/sc2reader/issues/61
Also, https://github.com/ggtracker/sc2reader is now the official version of ggtracker, so I recommend that you use that version, and if you have any issues, you can file them there

Thanks for the answer! I was installing package via pip, so, i guess it's already ggtracker's version. Seems like whoever anonimized these replays is not a cool guy :(


fix(STONEINTG-580): handle invalid environments

Maintainers will complete the following section

[x] Commit messages are descriptive enough (hints)
[x] Code coverage from testing does not decrease and new code is covered (check the PR coverage on codecov)
[ ] Controllers diagrams are updated when PR changes controllers code  (if applicable)

/retest

/retest

/retest


ZuulProperties dynamiclly update problem

In my case ,I want to dynamicly delete some zuul.routes config properties。
When I use the EnvironmentChangeEvent to trigger ZuulProperties rebinding,I  got the unexpected result .  The deleted routes are always there,which is shown by  requesting /admin/routes ，but the changes happen immediately when requesting /admin/env .
I wonder if DataBinder has some bug to process this "delete property "case .
Another problem:the registed handlermapping is always there even if  the related route is deleted.
Spring Boot version:1.5.7.REALEASE
Spring Cloud Netflix Core version :1.3.5.REALEASE
Spring Framework version: 4.3.11.REALEASE

Duplicates #705


:received-date: not working, :submissionDate: working

:submissionDate: is supposed to be an alias to :received-date:, but giving the latter produces "XXX" while the former works properly.
:received-date: should work.

The problem is if I use :received-date: instead of :submissionDate: it doesn't work. For example,
= Document title
Author
:docfile: test.adoc
:nodoc:
:novalid:
:docnumber: 1000                  <= THIS WORKS
:doctype: engineering-report
:edition: 2.0
:revdate: 2000-01-01
:draft: 3.4
:copyright-year: 2001                  <= THIS WORKS
:status: SWG Work
:iteration: 3
:language: en
:title: Main Title
:published-date: 2002-01-01                  <= THIS WORKS
:issued-date: 2001-01-01                  <= THIS WORKS
:created-date: 1999-01-01
:received-date: 1999-06-01         <========== THIS ONE DOESN'T
:uri: http://www.example.com
:external-id: http://www.example2.com
:referenceURLID: http://www.example2.com
:fullname: Fred Flintstone
:role: author
:surname_2: Rubble
:givenname_2: Barney
:role: editor
:editor: Wilma Flintstone

Fixed in metanorma-standoc


Publish samples exhibiting Tooling API functinality and best practices

Here is one idea to add a sample for.
Modern frameworks, such as Quarkus, want to develop smart developer tooling for projects where they are applied. One such tool is a dev server whose purpose is to recompile and rerun user code on changes. The Tooling API is useful in this case, because it integrates with Gradle and tracks all inputs for compilation and runtime classpath. At the same time, it allows to programmatically trigger builds depending on the wanted dev server behavior. For instance, a popular use-case is not to recompile until the developer refreshes a served page in the browser.

Thank you for your interest in Gradle!
This is a valid documentation issue that we will address.


Revert navigation-options-menu-entry in map

In e5efa831a88cab7675b65a3fb596990d88975ee2 an entry was added in the map-view to start navigation. At the moment there is a bug (the button is enabled when count <= 1, but on press it checks if count > 0, so we have to check for count == 1 for enabled/disabled-state).
Also - and that's the main part of this issue - the navigation-entry makes no sense, because it needs the same number of clicks like when you click on the cache. The option only available after a press on "more", because it's the 7th entry. So also the "view on list"-button is in the more-menu.

Well, there might be a bug with the conditions, I have not checked that yet. But I can give comments on the other parts of the issue:

The feature does not only work for caches, but also for waypoints.
If I have been watching the map for some minutes and now want to invoke navigation, I find it much more user friendly if I can just do this instead of navigating back, being confused of which waypoint I just had selected, searching that waypoint again and then to invoke navigation.
On the map activity screen I typically have 6 items (and I know that I added the navigation as the 6th item). When do I get 7?
The issue of having the "more" button can easily be solved by setting the non usable menu items to invisible instead of disabled only. The "store for offline" and the "enable updates" are disabled at the screen that I look at right this moment. If they were invisible, that problem would be gone completely.

So, as a summary: I will just set the non available menu items as invisible (just as I did in the cache list activity yesterday) and complaint should be solved.

Another note: For me the menu item itself is not the important thing, but the ability to easily invoke additional navigation features. So if we had the ability to open a context menu on long tapping a cache/waypoint on the map, that would be an even better solution (and the menu item could be removed completely), I believe.

Live-map:

Karte
Aktualisierung ausschalten
Für Offline speichern
Spur einblenden
Kreise anzeigen
Als Liste anzeigen
Navigieren

If I have been watching the map for some minutes and now want to invoke navigation

So I have to zoom in until there is only one waypoint shown? And what if there are two at the same position (multi: listing-coord and first stage)?

As far as i understand the problem/solution we have two different menus at the moment: a) Map menu and b) (context) Cache menu
a) here i don't need a navigate function. If more than one cache/waypoint is displayed - to which of them i want to navigate ? The use-case "only one cache/waypoint is displayed" is to seldom in my eyes that we need a menu entry for navigate
b) navigate indeed is very senseful if a cache is selected ,-) I chose a cache, i open the menu, i can navigate there... Typical use-case

I never used the navigation function from live map.
Its only good if there is one single wp/cache shown.
However I would prefer keeping it as it is...so the option is somewhere if needed.

But there's no case where you need it. ;)

Now I understand what you wanted to do, Bananeweizen: If you open a single cache in maps view you can navigate to the cache with this meny-entry. Accidentially it is also shown in all other maps.
a) disable it in all other map-views than single-cache
b) remove it completely
I chose b) because also for a single cache with waypoints the cache-count is 1 and this entry would navigate to the listing-coordinates. Maybe we can do some redesign to make this better.
Also I added the list-button to all map-views so that the options-menu looks equal in all map-views. The different layout can confuse the user.

I find it quite arrogant of you to revert that code after several people agreed that they see a use case and before I'm even able to talk about the issue any more after getting back home from work.

I have only reverted a part of it. It needs some redesign. Also I talked to others that didn't comment here. If you know a good way and use-case for it, please add it again.
The thing with consistent layouts is another issue.

Finally a use-case for this button: http://www.geoclub.de/viewtopic.php?f=31&t=60447

Navigate to a point, select "show on map"
Close c:geo
Resume
You can't go back to the compass with the back-key

We have to find a way to tell the map that there's only one waypoint for this instance = the button should not be displayed for the live-map (or list-map) when only one cache is visible.


affected/package: gofmt

What version of Go are you using (go version)?

$ go version 1.19.4

Does this issue reproduce with the latest release?
Yes
What did you do?
Cant disable formating comments that ar parsed and used for code generation

Whatever you're trying to do (you didn't give an example) can probably be achieved in a different way without modifying gofmt.

working as intended


fix(react@15): Address unsupported attributes warnings

This is a dcos-ui part of addressing react@15 wrong html attributes warnings.
reactjs-components part: https://github.com/mesosphere/reactjs-components/pull/407
They can totally go separately.

Alfred please retest this one

Alfred please retest this one

@ahoskins looks like we can just remove it in both cases. Thanks for pointing this out!

retest this please

Alfred please retest this one


Spike: Deploy services without helm controller, use integrated client, same as for apps

Ref #1704
This is a test/spike to see if

We can rewrite epinio to use the same integrated client for service instance deployment as we use for apps. And
If that change will get rid of the post-upgrade issues with creation of service instances

:warning: :construction: :zap: The tests will very likely fail.
While the manual tests of service instance creation, listing, showing, and deletion worked the API tests for service delete/show may not be fully adapted to the changes yet.
And there is something broken in the test helper function to create a service instance. The integrated helm client seems to time out in 3 seconds with a cntext deadline exceeded, and the last commits trying to extand that to 3 minutes does not seem to work.
Currently considering rewriting that part into using the external helm cli client instead.

Codecov Report
Base: 63.79% // Head: 8.54% // Decreases project coverage by -55.24% :warning:

Coverage data is based on head (89d975c) compared to base (f9ab365).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #1764       +/-   ##
==========================================
- Coverage   63.79%   8.54%   -55.25%
==========================================
  Files         170      88       -82
  Lines       12924    9173     -3751
==========================================
- Hits         8245     784     -7461
- Misses       3659    8336     +4677
+ Partials     1020      53      -967

Flag
Coverage Δ

acceptance-api
?

acceptance-apps
?

acceptance-cli
?

unittests
8.54% <0.00%> (-0.22%)
:arrow_down:

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

 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.

Just referring this comment for a previous spike that we did, maybe it contains some useful hints: https://github.com/epinio/epinio/issues/1281#issuecomment-1085686827

Ok. The code added back for HC-service support has not broken the handling of the new services.
Checking that the HC-service support also works then coming Monday, via extended upgrade tests.

EKS still about

Creating the PVC
persistentvolumeclaim/epinio-binary created
Creating the dummy copier Pod
pod/epinio-copier created
Waiting for dummy pod to be ready
error: timed out waiting for the condition on pods/epinio-copier

Very unrelated to the main work.

Tested on released epinio v1.4.0. For a service installation it shouldn't use an extra helm-install* Job anymore but helm client from epinio pod instead.
I was using simple command from our docs to create a service epinio service create mysql-dev mydb. After that I was checking if the related helm-install* Job is present in kubectl get pods -A output.
Result:

on epinio 1.3.0 I could see the Job for installing the service is still present:

epinio         helm-install-xf964de095d44d6aea92fa3fadcdf-6pxgb                  0/1     Completed   0              3m21s
workspace      xf964de095d44d6aea92fa3fadcdf-mysql-0                             1/1     Running     0              3m7s

on epinio 1.4.0 there was no trace of that Job and the service was running:

workspace      xcca9aa0f19a036fb6389474a7be0-mysql-0                             1/1     Running     0              5m51s


Attribute Error

I keep running into this error and can't figure out what is going wrong. I'm attempting to run the train_cnndm_single_neg.sh script on the given data. I have not made any changes to the batch script except to add my directories, but I'll paste it here just in case:
TOTAL_NUM_UPDATES=20000
WARMUP_UPDATES=500
LR=3e-05
MAX_TOKENS=1024
UPDATE_FREQ=32
NEG_DIR=$DATA/cnndm_synthetic/negative_syslowcon
SAVE_PATH=$DATA/2
POS_DIR=$DATA/cnndm_synthetic/positive_bt_filter
DATA_DIR=$DATA/cnndm_binarized
USER_DIR=../../models/bart

fairseq-train $DATA_DIR --pos-data $POS_DIR --neg-data $NEG_DIR --max-neg-samples 4 \
    --restore-file $BART_PATH --save-dir $SAVE_PATH \
    --max-tokens $MAX_TOKENS \
    --task contrastive_translation --mlp 1024 \
    --source-lang source --target-lang target \
    --truncate-source \
    --layernorm-embedding \
    --share-all-embeddings \
    --share-decoder-input-output-embed \
    --reset-optimizer --reset-dataloader --reset-meters \
    --required-batch-size-multiple 1 \
    --arch contrastive_bart_large \
    --criterion contrastive_loss \
    --label-smoothing 0.1 \
    --fixed-validation-seed 7 \
    --spectral-norm-classification-head \
    --dropout 0.1 --attention-dropout 0.1 \
    --weight-decay 0.01 --optimizer adam --adam-betas "(0.9, 0.999)" --adam-eps 1e-08 \
    --clip-norm 0.1 \
    --lr-scheduler polynomial_decay --lr $LR --total-num-update $TOTAL_NUM_UPDATES --warmup-updates $WARMUP_UPDATES \
    --fp16 --update-freq $UPDATE_FREQ \
    --skip-invalid-size-inputs-valid-test --max-epoch 5 \
    --no-save-optimizer-state --no-epoch-checkpoints \
    --find-unused-parameters \
    --user-dir $USER_DIR;

Here is the error I keep getting:
  File "/home/lewis.2/fairseq/cliff_summ/models/bart/constrative_bart.py", line 49, in forward
    eos: int = self.eos
  File "/home/lewis.2799/miniconda3/envs/QP2/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1185, in __getattr__
    raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'ContrastiveBARTModel' object has no attribute 'eos'

It appears that something is going wrong in the constrative_bart.py script with "eos" but I'm struggling to trace where that is coming from and what it's doing. Any information would be really appreciated!

Hi, I have never experienced such issue before. A quick fix would be removing the line containing eos: int = self.eos, as the forward function is not actually using it.

Hi, I have never experienced such issue before. A quick fix would be removing the line containing eos: int = self.eos, as the forward function is not actually using it.

Hi, can you reflect this issue to your latest code?


label show text "Piauí" ,Will crash

Sandcastle example:https://sandcastle.cesium.com/index.html#c=bVHBTgIxEP2VyZ6WBLtBBAIuxGQ9kmhC4qmXoTtgQ7clbXcRDZ/ET+iP2S4QjdJLO2/ee3kzbdBCI2lHFqagaQcFOVlX7KXFUp6Iti6M9ig1WZ507rlugkrhktRcOk8BLlCpJYpN6HG9qrXw0mjAspxHVtqBD64BFqhLgc4rYiUJhZbSCyW6wjkJI+2ll+RY6KatEmBrnIymk0vCAq0PL9R9trKmeqS1JXLpzWjAesO73nA46kJ/zMaD23g63ZNNm3oCZ1MAT29+Ajx5llh/HT+PPDkTD+19iLkOcaifWQKSdJPc+b2i2cXnQVZbYz3UVqWMZZ6qrcKQL1vWYkOeCedOIwLk2W9pXsoGZDm9smkIK3IudFa1Ugv5TjyZ5Vng/5Mqg6XU66eGrMJ9pL32ZvMTyBjLs1BeV3pjwsfZP87f
Browser: Google Chrome 87.0.4280.141
Operating System: windows 10

show on sublime text3

copy to Sandcastle :

Sandcastle hangs the browser tab when I open the demo, but I was able to grab the problem string.  It is 50 69 61 75 ed ad in hex.  That last character 0xAD is a soft hyphen which is normally not rendered.  It definitely should not be in the label text, but also its inclusion should not cause Cesium to hang the browser.
Actually, I just realized that this already came up in https://github.com/CesiumGS/cesium/issues/4918#issuecomment-452686121 but @mramato said it was fixed.  Maybe they forgot to test for this specific character?
At any rate, IIRC, Label never auto-wraps text, which is the only purpose of this character, so simply stripping it from input strings should be the right course of action.

Sandcastle hangs the browser tab when I open the demo, but I was able to grab the problem string.  It is 50 69 61 75 ed ad in hex.  That last character 0xAD is a soft hyphen which is normally not rendered.  It definitely should not be in the label text, but also its inclusion should not cause Cesium to hang the browser.
Actually, I just realized that this already came up in https://github.com/CesiumGS/cesium/issues/4918#issuecomment-452686121 but @mramato said it was fixed.  Maybe they forgot to test for this specific character?
At any rate, IIRC, Label never auto-wraps text, which is the only purpose of this character, so simply stripping it from input strings should be the right course of action.

Thanks for including the Sancastle example @hemincan .  I was able to reproduce this crash as well

Thanks for including the Sancastle example @hemincan .  I was able to reproduce this crash as well


Add ability to reference another server section

E.g.:
[server:waitress]
use = egg:waitress#main
host = <IP_ADDRESS>
port = 9600

[server:main]
use = waitress

This works in PasteDeploy (doc link) but had been failing in montague with:
  File "/Users/marca/dev/git-repos/montague/src/montague/compat/loadwsgi.py", line 321, in loadserver
    return loader.load_server(name)
  File "/Users/marca/dev/git-repos/montague/src/montague/loadwsgi.py", line 187, in load_server
    scheme, resource = server_config.config['use'].split(':', 1)
ValueError: need more than 1 value to unpack

This change adds support for it.
Cc: @inklesspen, @sontek, @sudarkoff

Coverage decreased (-0.05%) when pulling 2f1aba6e1d03e846fb4e0e2f6291fd9f3c7f642a on msabramo:reference_another_server_section into 866008cd2ca4dded30f1ae377645b5fd45b70b66 on inklesspen:master.

@msabramo Thanks for the pull request! However, the reason it doesn't pass in Montague is primarily because no PasteDeploy test tests it; I would want this pull request to include a test. (In general, if something works in PasteDeploy and does not work in Montague, it's because the PasteDeploy tests don't cover it.)
In addition, please be aware that Montague is pending a rather large reorganization, based on IRC discussions. (I've just had a hard time finding the time to work on it.)

OK, I will add a test a bit later.

Coverage increased (+0.05%) when pulling 61ca6490a2c500266e2bb2ddee24b4305cd9c4ee on msabramo:reference_another_server_section into d82668bb02438b1435620b3bf3c532ad31115fa9 on inklesspen:master.

@msabramo Can you add a test to show what happens when you reference an invalid server section as well?

@sontek: Done.

Coverage increased (+0.25%) when pulling c0317917414561066c2521e252c6e0e95c274a39 on msabramo:reference_another_server_section into d82668bb02438b1435620b3bf3c532ad31115fa9 on inklesspen:master.

Oops will fix that test failure.

oops again

Coverage increased (+0.25%) when pulling 81770b8aaaf170e6f3760ae48c9337b7ecfc502d on msabramo:reference_another_server_section into d82668bb02438b1435620b3bf3c532ad31115fa9 on inklesspen:master.

Coverage increased (+0.25%) when pulling f79c2dfb6a6108d6ca85872f92409cc1d4bcaec5 on msabramo:reference_another_server_section into d82668bb02438b1435620b3bf3c532ad31115fa9 on inklesspen:master.


Use tsync timestamps in NWBFile

@bendichter Alessio added the tsync timestamp capabilities into the extractors a while back, just now getting around to allowing the converter to actually use them via conversion options.
So far, the Recording itself, the accelerometer data, and the Image series interfaces all support handling this.
One interesting case with the image series is the camera frames actually go slightly (5 frames) beyond the final timestamp of the recording, so these are filled in with the unsychronized timestamps.
Pointing this to add_multi_accelerometer for readability.

@alejoe91 Since our last discussion on this topic, I've actually decided the easiest way (i.e., least amount of code) to pass those timestamps is your first suggestion of the local override of run_conversion in this converter. It still operates on the conversion_options routing framework, however, which makes it a bit easier than the other things we were considering.

@bendichter Ready for review; all timestamps are now being passed and used by downstream interfaces
Also handles electrode metadata, and polished the main conversion script a bit for subject and session info.

@bendichter Updates per our last couple meetings

Adjusted main conversion script to work with new pipeline design.

Extended only the main recording and accelerometer data to include tsync timesteps.

Added static quick_write function for use in the quick save option of new pipeline; essentially a wrapper to the one-liner of NwbSortingExtractor.write_sorting, but since that is intended to potentially be the first time that NWBFile is written, it needs to be made with those minimal number of required kwargs such as description/id, so the quick_write function parses that the same automatic way it would during get_metadata, but independent of that sort of converter class use. So the call in the pipeline itself is still just one line

Also removed dateparser as requirement; using strptime instead.

Thanks @CodyCBakerPhD. Is there an advantage to making quick_write a static method over just a regular function?

@bendichter Hmm... not really; it would just come down to how to import it into the environment. If not static, then it would be an import like from .syntalosnwbconverter import quick_write or something like that... would that be preferable?

@CodyCBakerPhD I think that would be better. Static classes are useful if 1) We want to enforce a common syntax across classes (as is the case for RecordingExtractor.write_recording or 2) if the method is only expected to be used within that class. If neither of those are true, it's probably better to make it a stand-alone method.

@bendichter OK, made it a general method that just gets imported directly


Kevin Gong's methodology?

Has anyone found any details as to how Kevin Gong approached this problem? Apparently he was able to enumerate n=16 in under 11 days time back in 2004 on a much slower/smaller computer than we have today, one would have to imagine he made some sort of breakthrough that no one here has happened across yet.

Here is a paper describing some theory: https://github.com/mikepound/opencubes/issues/5#issue-1802085753


Feature request: map custom linestyle pattern

It would be nice if matplotlib2tikz could support custom line styles (linestyle is given as on-off-tuples, see linestyle description of matplotlib.
There is already code in matplotlib2tikz looking to support linestyle tuples from matplotlib, starting from here:
https://github.com/nschloe/matplotlib2tikz/blob/0ea793030d1ca9f397404effa163b7631eb0e9d8/matplotlib2tikz/path.py#L296
However, custom linestyles seemed to be mapped to "dashed"
import matplotlib.pyplot as plt
import matplotlib2tikz

plt.plot([1,2,3], linestyle=(1,(5,1)))
print(matplotlib2tikz.get_tikz_code('tikz'))

% This file was created by matplotlib2tikz v0.7.3.
\begin{tikzpicture}

\definecolor{color0}{rgb}{0.12156862745098,0.466666666666667,0.705882352941177}

\begin{axis}[
tick align=outside,
tick pos=left,
x grid style={white!69.01960784313725!black},
xmin=-0.1, xmax=2.1,
xtick style={color=black},
y grid style={white!69.01960784313725!black},
ymin=0.9, ymax=3.1,
ytick style={color=black}
]
\addplot [semithick, color0, dashed]
table {%
0 1
1 2
2 3
};
\end{axis}

\end{tikzpicture}

Found the reason: https://github.com/nschloe/matplotlib2tikz/blob/0ea793030d1ca9f397404effa163b7631eb0e9d8/matplotlib2tikz/path.py#L308
Above line checks for tuples, but matplotlib's Line2D.get_linestyle() does never return a tuple, see Line2D.
There is a Line2D.set_dashed(...), but no get_dashed().
Dashing information is stored in self._dashSeq, self._us_dashSeq,   self._dashOffset, self._us_dashOffset, where "us" means unscaled and self is a matplotlib Line2D.
Any better idea than to use Line2D's private attributes to try the get the dash pattern?

does never return a tuple,

Alright, yes, perhaps it did in the past. Too bad we don't have a test for this yet, but it should be easy to add, perhaps in test_basic_sin. Can you prepare a PR?

PR #297 is ready for review


Support for npm3+

We love Zelda, great tool that eases a lot of pain. Are there plans to support the new npm3 flat format?

Yeah, I'd love to support npm3 but haven't had time to do that yet. In the meantime, PR welcome!

Working on this right now -- should be done soon.

@feross awesome! If you need us to test then we are happy to do that. Thanks for your efforts!

Released as 3.0.0.

Quickest release ever! Will test this out, thanks!

To be clear this release will only work with npm3+?

I haven't tested it with npm2, but I see no reason why this approach wouldn't work there too.


document._currentScript not needed

This custom element has a variant of the following line:
var script = document._currentScript || document.currentScript;
var template = script.previousElementSibling;

document._currentScript was only needed in IE11, but Starcounter does not support that browser anymore.
Therefore, this code can be simplified to:
var template = document.currentScript.previousElementSibling;

If we want to drop support for IE11.

This is blocked on https://github.com/Starcounter/Guidelines/issues/32

This is needed to point to correct <script> when HTML Imports polyfill is used.
For V1 version of webcomponentsjs polyfill, where HTML Imports are not 100% standard compatible, this may not be needed.
There will be no imported document, the entire fragment will be stamped into <link> in the main document.

@kegor could you please do that? I can help you set up the environment for developing custom elements if needed.

Closed, because it was merged into #42.


How to lineage Hive job in azkaban

I have defined the flow in azkaban, jobtype is Hive, but I find it can't be analyzed for Wherehows, then I found in the log_lineage_pattern don't contain the hive type.
I have read the log in azkaban for Hive, its complex for regx, If is there some simple solution for hive job type in azkaban?
Thanks.

I found in the VM version is too old, 0.0.1ver, suggest to update to latest version. In the VM version don't support Hive, just support HDFS, mygod.

@xiashiwendao How to fix it ? Would you give some suggessions for me，Thank you.


ERROR ...  MemorySessionStore - Can't find the session for client ...

Expected behavior
I'm using Moquette to support a production client based on Eclipse Paho.
I run integration tests as part of the build and would like to not have errors
in the build log.
Actual behavior
In my log file, I am seeing a lot of "ERROR ... Can't find the session for client ..."
Things seem to be working but the error messages are a bit disconcerting to see in
my build output.
Steps to reproduce
My test code looks like this...
class VirtualDevice ...
VirtualDevice(Map parms) {
this.parameters = parms
this.server = new Server()
String tmpDir = System.getProperty("java.io.tmpdir")
this.dataStore = new MqttDefaultFilePersistence(tmpDir)
}
    void start() {
        Properties cfg = new Properties()
        cfg.put(PORT_PROPERTY_NAME, parameters['port'])

        MemoryConfig mcfg = new MemoryConfig(cfg)
        server.startServer(mcfg)
    }
   ...

}
My client code looks like this...
import org.eclipse.paho.client.mqttv3.*;
...
MqttPersistenceStrategy strategy = new MqttPersistenceStrategy(persistence);
MqttAsyncClient client = new MqttAsyncClient(serverUrl, clientId, strategy.create());
...
try {
thisClient.connect(options, thisClient.getClientId()+" Connection", mylistener);
}
catch (MqttException e) {
...
}
Minimal yet complete reproducer code (or URL to code) or complete log file
2018-04-25_13:54:11.609 - INFO messageLogger - C->B CONNECT
2018-04-25_13:54:11.611 - INFO messageLogger - C->B CONNECT
2018-04-25_13:54:11.614 - ERROR io.moquette.persistence.MemorySessionStore - Can't find the session for client <Mqtt-Agent-paho104149710463
181>
2018-04-25_13:54:11.615 - ERROR io.moquette.persistence.MemorySessionStore - Can't find the session for client <Mqtt-Agent-paho104149519831
452>
2018-04-25_13:54:11.618 - INFO messageLogger - C<-B CONNACK
2018-04-25_13:54:11.618 - INFO messageLogger - C<-B CONNACK
Moquette MQTT version
0.10
JVM version (e.g. java -version)
1.8.0_144-b01
OS version (e.g. uname -a)
OSX (Darwin Kernel Version 17.5.0)
This happens on other platforms as well.

BTW thanks for Moquette. It has been very helpful to my team.

Fixed in 0.11-SNAPSHOT with 5456431dd4c625e3be126ba423244a375efab65f
the problem was to due to a transient session (clean session = true) that tried to retrieve a session from the store, which is a no sense, because in the store goes only durable sessions