ServerError: <ErrorMessage code=0000 [Server error] message="java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Tried to hard link to file that does not exist /var/lib/cassandra/data/zooniverse/classifications

View details in Rollbar: https://rollbar.com/Zooniverse/Zooniverse_Aggregation/items/75/
Traceback (most recent call last):
  File "./aggregation_api.py", line 1903, in <module>
    project.__migrate__()
  File "./aggregation_api.py", line 1036, in __migrate__
    self.cassandra_session.execute("drop table classifications")
  File "/usr/local/lib/python2.7/dist-packages/cassandra/cluster.py", line 1341, in execute
    result = future.result(timeout)
  File "/usr/local/lib/python2.7/dist-packages/cassandra/cluster.py", line 2865, in result
    raise self._final_exception
ServerError: <ErrorMessage code=0000 [Server error] message="java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Tried to hard link to file that does not exist /var/lib/cassandra/data/zooniverse/classifications/zooniverse-classifications-jb-116-TOC.txt">

doesn't seem to have reoccurred


[$250] Attachment - I'm navigated to "about:blank" after downloading a docx attachment

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 9.0.62-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5223403&group_by=cases:section_id&group_id=292107&group_order=asc
Issue reported by: Applause - Internal Team
Action Performed:

Navigate to https://staging.new.expensify.com/
Log in with a Gmail account
Navigate to a 1:1 DM
Send a docx attachment
Tap on the download icom
Tap on "Download"

Expected Result:
1:1 DM should open after downloading
Actual Result:
I'm navigated to "about:blank" after downloading a docx attachment
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Standalone
[ ] Android: HybridApp
[ ] Android: mWeb Chrome
[ ] iOS: Standalone
[ ] iOS: HybridApp
[x] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

https://github.com/user-attachments/assets/777ae751-833f-49c8-bf3b-243d95bb65a1
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~021859608263768238021
Upwork Job ID:<PHONE_NUMBER>768238021
Last Price Increase: 2024-11-21
Automatic offers:

Krishna2323 | Contributor | 105027213

Issue OwnerCurrent Issue Owner: @hungvu193

Unable to login to my test accounts 🙃 I enter the magic code and the site doesn't respond in staging. Going to create a bug report.

@Krishna2323 I don't think we should remove that specific logic for Safari.
About your second and third option, Can you make sure it won't introduce CORS issue, I think this was mentioned in here:
https://github.com/Expensify/App/blob/686b8b45ca606453e4b8a5f11e2a16e75dd0b15d/src/libs/fileDownload/DownloadUtils.ts#L44-L45

Assigned!

@Krishna2323 any updates on finalizing the PR? Thanks!

Hey @Krishna2323 and @hungvu193 — just a heads up that I will be OOO starting this afternoon (December 20th) and will be returning January 6th. A handful of folks on the BZ team will be online for a few days in between the 25th and the 1st, but we'll be operating with a skeleton crew. If any action is needed during that time from a BZ perspective, please post this issue in #expensify-open-source and someone on the team will jump in. Otherwise I will review when I am back in office.
Thank you!


NPM start?

I ran the NPM Start command, but I am curious as to which port I should access the application at. Here is the output of the command:

 npm start

><EMAIL_ADDRESS>start /home/ubuntu/Ostia
> node server.js

Navigate to http://localhost:3000/dashboard in your web browser. You may need to refresh the page a few seconds after running npm start to let all the data load.


Is there a reference for options??

On this page, it says

To control location of the preview of the preview window (up|down|left|right) look into winopts.preview.horizontal and winopts.preview.vertical respectively.

How do I "look into" these exactly?  I can't find any real reference for variables, I'm just grepping through all pages I can find and it's a real mess.
Currently the split is vertical and the left side, the one that's actually interesting, is super narrow.
So I want to either

remove the preview
make the preview appear above or under the actual search
increase the left column

But I can't seem to find any indication for how to do that..

How do I "look into" these exactly?

That’s a naming convention to look for the variable within the opts map structure (look at the defaults section under the README).
To remove the previewer altogether call:
require("fzf-lua").files({ previewer = false })

To start with hidden previewer (press F4 to toggle):
require("fzf-lua").setup({ winopts = { previewer = { hidden = 'hidden' }} })

Vertical, 70% down:
require("fzf-lua").setup({
  winopts = {
    preview   = {
      layout   = "vertical",
      vertical = "down:70%",
    },
  },
})

many of the options are derivatives of the binary fzf flags, man fzf where appropriate.

To start with hidden previewer (press F4 to toggle)

Can I rebind this? for the old fzf.vim i used ? which was handier.
is there also a way to collapse the filepath, like what you can do in telescope? ie: maybe just show only 2 letters of each path until the last file name, or just show last file name + directory, etc..

The answer is yes to all, please read the README, wiki and issues.

My issued stemmed from using skin and skin documents to have the same CLI flags mentioned, but they don't seem to work. Solved by moving back to fzf.

I checked the skim CLI help and I used fields that supposedly existed, but they didn't work. So they seem like skim bugs, maybe skim just documents those fields but doesn't support them (yet) or so.

I checked the skim CLI help and I used fields that supposedly existed, but they didn't work. So they seem like skim bugs, maybe skim just documents those fields but doesn't support them (yet) or so.
EDIT: that debug stuff is helpful though!

Can you paste what’s working for you right now with fzf? I’ll convert it to something that works with skim.

Btw, I ditched skim because it’s pretty much a dead project, last year’s development in fzf added a lot of features that made the UX much better, for example, being able to remove/modify entries without restarting the process, compare git_status stating changes between skim and fzf and you’ll see what I mean, you can use the skim profile with :FzfLua profiles.

Thanks for the effort. I don't mind too much using fzf instead of skim if it saves me trouble. I just think it's nice to use Rust tools since occasionally I can contribute to them. Thanks for the effort here.
I commented on the skim issue (you actually created) here: https://github.com/lotabout/skim/issues/418 in the hope that the skim devs can look into having it work better with this plugin.
Thanks for the awesome work!

Ty @stevenroose, hopefully the project is revived one day.

Closing, lmk if ever need more help on this @stevenroose.


Cannot describe recursive type aliases like JSON in terms of generic mapped types

In the following examples, I've defined 4 different versions of a Json type, where they differ on their description of object types.
Playground link here.
In the first two, I've defined them in terms of mapped types with a concrete key of string, and an object type with a string index signature. TypeScript has no issues with either of those.
On the other hand, the last two are described with Record, or with a helper mapped type fed in a string key type.
// No errors ✅
namespace ObjectIsMappedTypeOnString {
    export type Json =
        | string
        | number
        | boolean
        | null
        | Json[]
        | { [K in string]: Json }
        ;
}

// No errors ✅
namespace ObjectIsIndexSignature {
    export type Json =
        | string
        | number
        | boolean
        | null
        | Json[]
        | { [key: string]: Json }
        ;
}

// Errors ❌
namespace ObjectIsRecord {
    export type Json =
        | string
        | number
        | boolean
        | null
        | Json[]
        | Record<string, Json>
        ;
}

// Error ❌
namespace ObjectIsGenericMappedType {
    type JsonProperties<K extends PropertyKey> = {
        [P in K]: Json
    };
    export type Json =
        | string
        | number
        | boolean
        | null
        | Json[]
        | JsonProperties<Json>
        ;
}

I would expect all of these to work.

… uh, duplicate #41164?


Xiaomi MiJia human body movement sensor (occupancy)

Hello, i can´t connect my two  "Xiaomi MiJia human body movement sensor (occupancy)"
Error: zigbee2mqtt:error 2018-12-29 17:08:17 Cannot get the Node Descriptor of the Device: 0x00158d0001d5XXX (Error: Timed out after 10000 ms)
What can i do? thx for help
Version:
zigbee2mqtt  1.01
HASS 0.84.6

See https://koenkk.github.io/zigbee2mqtt/getting_started/pairing_devices.html
IMPORTANT: Release and start pressing the reset button every second. This keeps the device awake, otherwise pairing will fail!.

As the issue template suggests, this should first be posted in the zigbee2mqtt issue tracker, not here.

@millerce that’s a good suggestion, may want to bring it up in the zigbee2mqtt issue tracker

thx it works perfect, nice tiny sensor. thx for your work.

The press and release of reset button every second after a 5 second long push did the trick for me.
I can't tell you how frustrating this was. It was on the supported list and I could find no reason why it would not work. My error sent me to the 'how to support new devices' web page. As a suggestion, perhaps you could point everyone to both pages (the how to pair and the how to support)?

I know this is a very old thread but would you mind stating all your steps?
I run hassio with the zigbee2mqtt bridge addon, have configured it, no errors in the logs, it sees and uses my zigbee stick, it connects to my mqtt server but all my tries to pair  the xiaomi mijia human body sensor, pressing > 5secs or pressing once multiple times do not yield in any log entries :-(
I have no other zigbee stick or zigbee device so not sure if I am just missing something here?

@ovizii try opening a new thread if you can't get it to work.
Some things to keep in mind:

Make sure your devices has a good battery
Make sure z2m is in pairing mode
Make sure you have mqtt installed and auto discovery enabled
Make sure your devices is close to either the coordinator or to a router (if you have active router devices in your mesh)
Make sure your usb stick (coordinator) has no interference - usually adding an USB extension cord is a good idea

Steps to pair:

Hold the button pressed until you see 3 long blinks
Release the button

If you get just 1 blink on release and nothing else, it means something is wrong (so check initial steps above). If you get 1 blink and then 3 short rapid blinks, it should work within a minute.

@ciotlosm thanks for all the good tips. I tried and am still failing so I bought and borrowed a couple of different brands zigbee devices compatible with z2m and am still failing with all of them so now it is time to debug my new slaesh zigbee stick which I am using as a controller.

@ciotlosm SOLVED. I can't believe it has taken me a week and borrowing and buying multiple zigbee devices to figure it out. This was the solution that worked:
Make sure your usb stick (coordinator) has no interference - usually adding an USB extension cord is a good idea
there wasn't really anything close to the stick but plugging it into a 0.7m USB extension cord solved everything.


chore: disable git.mergeEditor by default

related #157361

Just adding 1 cent of my opinion to this discussion.
I think that 3-way editor is a great feature, but it has a significantly higher learning curve than previous experience, and on screens with fewer pixels available, the experience of viewing 3 simultaneous tabs can be quite confusing and cluttered.
Considering that, I believe 3way shouldn't be the default VsCode experience, being less inclusive than the previous one. Perhaps this option could be something configurable in an onboard installation or user welcome.

@hediet

friendly ping @jrieken @bpasero

Thanks for your feedback!
In the last release, we added a button to make it really easy to switch to the inline merge UI:

We believe we can make the new merge UI less confusing for everyone. However, for that, we need your feedback! The new merge editor is available for four releases now, but only since we enabled it by default we got the feedback we need to make the new merge editor better.
We already adressed many pain points in the last release and will continue to do so with the next one.
For now, we have no plans to change the default back to the old experience, but we will continue to closely listen to your feedback.
Those who really dislike the new 3-way merge editor can opt-out of it completely by changing the git.mergeEditor setting. The inline experience will always be available.


Lacking documentation for managing index patterns via API[DOC]

Hi,
I am trying to work out how to create an index patter programmatically. I thought that the Opensearch dashboard API was meant to map to the Kibana API however the documented method for kibana does not seem to work in Opensearch Dashboard.
https://www.elastic.co/guide/en/kibana/current/index-patterns-api-create.html
Can you please update the Opensearch-Dashboard Docs on how to replicate this Kibana feature in Opesearch
Thanks,
Patrick

In OpenSearch Dashboards, index patterns are just a particular type of Saved Object, and can be created or edited programmatically via the Saved Object API (which itself needs documentation). See https://github.com/opensearch-project/documentation-website/issues/3799


Including windows static libraries

do i need to include windows static libraries too?
if so, where can i find the include folder for the header files? xD

Sorry, I'm not sure what you mean.
There's no significant difference between linking to a windows static .lib and a mac/linux static .a file; you just need to pass in a reference to the object, as per:
https://github.com/shadowmint/ue4-static-plugin/blob/master/Source/TestPlugin/TestPlugin.Build.cs#L114
What header files are you looking for?
If you need to refer to an external set of headers, you use:
https://github.com/shadowmint/ue4-static-plugin/blob/master/Source/TestPlugin/TestPlugin.Build.cs#L80
Broadly speaking, LoadLibrary does all the things you need to link to an external static library, regardless of it's source.
If you have external (eg. win api) dependencies, you'll have to link to them dynamically, by calling PublicAdditionalLibraries on each dependency manually; there's no real shortcut for this if you're linking static code.
...so, can you clarify exactly what your question is?

I am trying to link the SFML network module and its depedent on 2 windows static libraries (ws2_32.lib and winmm.lib)

And im getting errors
this is my code
if (Target.Platform == UnrealTargetPlatform.Win64)
{
PublicAdditionalLibraries.Add(@"D:\RenegadeLine\SFML-2.3.2\lib\sfml-system-s.lib");
PublicAdditionalLibraries.Add(@"D:\RenegadeLine\SFML-2.3.2\lib\sfml-network-s.lib");
PublicAdditionalLibraries.Add(@"D:\RenegadeLine\netLink-master\build\out\Release\netLink.lib");
        PublicIncludePaths.Add(@"D:\RenegadeLine\netLink-master\include");
        PublicIncludePaths.Add(@"D:\RenegadeLine\SFML-2.3.2\include");

        Definitions.Add("WITH_SFML_BINDING=1");
        Definitions.Add("WITH_NETLINK_BINDING=1");
    }

These are the errors
http://prntscr.com/9wcoim

I think ideally you want to provide the source code to the libs rather than provide the compiled libs. The example is providing source code to the libs they are using and then compiling them during build time if I understand correctly.


[CT-1483] [Bug] Macros whose names contain "materialization" treated as materialization macros by compiler, fail with "no supported_languages..."

Is this a new bug in dbt-core?

[X] I believe this is a new bug in dbt-core
[X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior
After upgrading to dbt 1.3.0 which adds supported_languages for materialization macros (#5695), all standard macros whose name has "materlialization" as a substring prevent compilation.
A project I'm contributing to contains a macro named get_materialization (it defaults model materializations to view under certain conditions). The parser seems to treat it as a materialization macro for that, even though it's not (location of this in dbt-core code referenced below in "Additional Context").
So when running dbt run or dbt compile I get the following error:
No supported_languages found in materialization macro <project_prefix>__get_materialization

Expected Behavior
Only materialization macros are able to trigger this compilation error when not declaring supported languages.
A regular macro ({% macro_name([params]) %}) with the substring "materialization" in its name is not considered a materialization macro ({% materialization [materialization_name] ... %}) and does not trigger the compilation error.
Steps To Reproduce

Create a new regular macro and have its name contain the substring "materialization", e.g. get_materialization or print_materialization.
Run dbt compile.

Relevant log output
No response
Environment
- OS: macOS 12.5.1
- Python: 3.8.15
- dbt: 1.3.0

Which database adapter are you using with dbt?
snowflake
Additional Context
The parse_unparsed_macros method performs this "generalization":
https://github.com/dbt-labs/dbt-core/blob/f02243506df2a9b6851abe6bcfe10af8808d41cc/core/dbt/parser/macros.py#L88

Thanks for surfacing this @CraftyIvan !
Agreed that this is a surprising result when there is a non-materialization macro that happens to have "materialization" within the name.
Our next step will be to determine what our options are for changing the implementation.

@dbeatty10 Your proposal makes sense to me! Much better than what I was going to say.
I'm going to tag this one for Team:Language, since that's whose surface area this falls under. Stu was original implementer here, so still very happy to hear from him too.

please reopen this ticket, now we have version 1.5.2 and it is still not fixed :(

Given how straightforward Doug's proposed fix is, I think this could be a community contribution.
@mjedrzejczak-wh Any interest in giving it a spin?

@jtcohen6 unfortunately we have in our projects such macros, which block us effectively from upgrade
and I would prefer not to fix this myself - I do not know dbt internals so well

@jtcohen6 - I am also facing the same issue trying to upgrade.

@jtcohen6 @mjedrzejczak-wh @dbeatty10 @CraftyIvan @joevandyk
Just FYI, I too faced the same error while trying to upgrade dbt.
I did try the code change suggested by @dbeatty10 locally in my python virtual environment and it is working as expected. I am facing some other project specific errors but thought to share this here so that we are all aware that the idea proposed above is fixing the issue.

@fconrady it is already fixed and closed, update your dbt :)


certificate identifier is limited to maxLength 80 but no limit specified

The JSON Schema limits the "ci" - certificate identifier field to 80 characters:
https://github.com/corona-warn-app/cwa-app-android/blob/1c73bc563d523f667b2bce8cc91a668d668ff150/Corona-Warn-App/src/main/assets/jsonschema-dcc-ebb6720.json#L139
My certificate (issued by Thailand) has an 81 character CI. Hence, validation fails with a JSON-schema error.
Looking at the spec (referenced in above JSON schema), I don't see a hard limitation to 80 characters. Could you please clarify?
Note: the Swiss CovidCert app recognizes my certificate as valid.
Thanks in advance!
Internal Tracking ID: EXPOSUREAPP-

Hi @dbaldes,
Thanks for the question. We will try to get you an answer ASAP. Best wishes, DS

Corona-Warn-App Open Source Team

Thanks. just to clarify: my certificate is supposed to be valid in the EU (and other countries).

@dbaldes
I'm sure that @dsarkar will be consulting with the experts. I just happened to notice in the json you quoted
https://github.com/corona-warn-app/cwa-app-android/blob/1c73bc563d523f667b2bce8cc91a668d668ff150/Corona-Warn-App/src/main/assets/jsonschema-dcc-ebb6720.json#L136-L139
the document https://ec.europa.eu/health/sites/health/files/ehealth/docs/vaccination-proof_interoperability-guidelines_en.pdf seems to state a maximum of 72 characters (footnote 6 on page 12).

@thomasaugsten my decoded certificate identifier looks like this (this is fake data):
"ci" : "URN:UVCI:01:TH:0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDE#O"

I just found that the greenpass.eu app also recognizes my certificate as valid. And my wife's certificate (also Thai-issued) has the same problem. If needed, I can provide my real certificate via a private channel.

@dbaldes
Did you get the same failure on the German CovPass App?
I checked my German vaccination certificate decoded on https://github.pathcheck.org/debug.html and the ci uses 48 characters.

@MikeMcC399  it does work in the CovPass app.
A side note, the CovPass, CovPassCheck and Corona Warn Apps are not available to download via the play store here in Thailand. ("this item is not available in your country"). I had to install them by downloading an APK.

@dbaldes

it does work in the CovPass app.

That should give you a workaround in that case.

A side note, the CovPass, CovPassCheck and Corona Warn Apps are not available to download via the play store here in Thailand. ("this item is not available in your country"). I had to install them by downloading an APK.

Unfortunately the app store country availability is driven by legal considerations which do not take much account of individual circumstances. It's good that you know your way around obtaining and installing APKs. 🙂

Unfortunately the app store country availability is driven by legal considerations which do not take much account of individual circumstances. It's good that you know your way around obtaining and installing APKs. slightly_smiling_face

It would be useful to offer the APK for download on the official website.

@dbaldes

It would be useful to offer the APK for download on the official website.

The FAQ article [Google/Android]: The app isn’t available as an APK, neither on GitHub nor on F-Droid etc. Will you also deliver the app as an APK? provides the official statement about this.  I may be wrong, but I don't expect this to change.

The FAQ article also references https://github.com/corona-warn-app/cwa-wishlist/issues/57.


Uncaught Error: Couldn't find Materialize object on window

Hi,
I've tried to use MaterializeCSS on my Angular 6 app. I'm using materialize-css and angular2-materialize module from npm. When I run the app it builds successfully. But I've got this error from the browser console
Uncaught Error: Couldn't find Materialize object on window. It is created by the materialize-css library. Please import materialize-css before importing angular2-materialize.
Though I've import them in the app.module.ts
Here is my code:
app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

import 'materialize-css';
import { MaterializeModule } from 'angular2-materialize';

import { LayoutComponent } from './layout/layout.component';
import { SliderComponent } from './layout/slider/slider.component';

@NgModule({
  declarations: [
    AppComponent,
    LayoutComponent,
    SliderComponent
  ],
  imports: [
    BrowserModule,
    MaterializeModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

styles and scripts array from angular.json
"styles": [
    "./node_modules/materialize-css/sass/materialize.scss",
    "src/styles.sass"
],
"scripts": [
    "./node_modules/materialize-css/dist/js/materialize.min.js"
],

I haven't find any proper solution about this issue on internet :(

I am having the same issue after following the instuctions section titled 'Installing & configuring angular2-materialize in projects created with the Angular CLI' at https://www.npmjs.com/package/angular2-materialize. Any help wold be appreciated.

What worked for me was upgrading angular to ^6.1.7 and, after that, npm update.

angular2-materialize use materialize version '0.100.2'. In your package.json change materialize-css to "^0.100.2".

I tried to do what @sergiutritean and @MatheusBueno said, but didn't work.
The only thing that i tried that ever worked is put those links in 'index.html'

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>

<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css">

I tried to do what @sergiutritean and @MatheusBueno said, but didn't work.
The only thing that i tried that ever worked is put those links in index.html
<!--Import Google Icon Font-->
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

    <!--Let browser know website is optimized for mobile-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>

    <!--Import jQuery before materialize.js-->
    <script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css">

I tried to do what @sergiutritean and @MatheusBueno said, but didn't work.
The only thing that i tried that worked was put those links in index.html
<!--Import Google Icon Font-->
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

    <!--Let browser know website is optimized for mobile-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>

    <!--Import jQuery before materialize.js-->
    <script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css">

I've been trying to find another solution to fix this error, because I don't like that one. After all, I put the declarations on the style and script... should be working without those links

@bjgrassi After change in package.json do you run npm install in your project ?

I am having the same problem and I did upgrade angular to 6.1.7 and materialize-css to 0.100.2. Still nothing...

correction -- I upgraded angular to 6.1.7 and materialize-css to 0.100.2 AND ran npm install in my directory - AND IT WORKED! thanks @MatheusBueno!

I had the very same problem and I was going nuts. I upgraded Angular to 6.1.9, materialize-css to 0.100.2 (as @sergiutritean, @MatheusBueno and @jefrice very well recommended; thanks guys) BUT I needed to add
ng update @angular/cli
as explained here. I hope this can help. Keep going!

Hi! i got the solution for this! first modify your package.json file in dependencies section  adding these  4 lines "angular2-materialize": "^15.1.10",  "hammerjs": "^2.0.8",  "jquery": "^2.2.4",  "materialize-css": "^0.100.2",  it must look like this
"dependencies": {      ...     "angular2-materialize": "^15.1.10",     "hammerjs": "^2.0.8",     "jquery": "^2.2.4",     "materialize-css": "^0.100.2",      ... }
then in your .angular-cli.json file in scripts and style sections add this in this specific order
"styles": [         "../node_modules/materialize-css/dist/css/materialize.css",         "styles.css"       ],       "scripts": [          "../node_modules/jquery/dist/jquery.js",         "../node_modules/hammerjs/hammer.js",         "../node
delete your node_modules directory and run
npm i
ng serve
Hope this helps!! it works for me perfectly!

It took me two days to figure out what the problem was but finally i was able to resolve it by reading a comment by some guy on stackOF that goes:
"Basically materialize-css have changed their object name from Materialize to M in v1.0.0. But angular2-materialize have built on top of v0.100.2. That's why this error has been generated. You can change the object name by editing the source code of angular2-materialize from node_modules folder. But that needs a ton of effort. So I have decided to drop angular2-materialize module and just use materialize-css v1.0.0. And for this only materialize-css library is required. You don't need any other dependencies like jQuery or HammerJS"

@deenkadir , i did the same but I am having issues with routing. how did you solve it ?

Hi everyone
I have the same problem and tested the different proposed solutions but I still have the same problem.
already change in my package.json the dependencies and run npm install but it is not installed correctly materialize css and angular2-materialize in the browser presents the following message in console:
### "could not find materialize object on window. it is created by the materialize-css library. please import materialize-css before importing angular2-materialize."
Post: I am using angular 7 for this project and I want the front-end to use materialize

Use angular material which is designed for angular.


Display subscribed msg using react toastify

Description
Display subscribed msg using react toastify
Fixes #822
Replace issue_no with the issue number which is fixed in this PR
Screenshots

Checklist

[ x] Tests have been added or updated to cover the changes
[ x] Documentation has been updated to reflect the changes
[ x] Code follows the established coding style guidelines
[ x] All tests are passing

It's error on toast message , and toast mesaage stick after appearing and suddenly show the error page
After reloading the page , then its working normal but you have to fix this !

now its working fine @thestarsahil
email.webm
pls check and merge this. Thank you!

Can you also do with authentication aur login part !

Could you pls elaborate @thestarsahil

@Amruta7203 Not working dear , same problem still

https://github.com/Counselllor/Counsellor-Web/assets/84167034/dc3c6607-d717-4056-80ca-4bba38a61997

I am not getting the problem @thestarsahil ..Could you help me with it?

Come on discord VC I'll explain it


Set Up with Kubernetes, dockerfile document error in constructing doc…

…ker image
#5021

Purpose of this pull request
[Bug] [doc] Dockerfile error

Check list

[x] Code changed are covered with tests, or it does not need tests for reason:
[x] If any new Jar binary package adding in your PR, please add License Notice according
New License Guide
[x] If necessary, please update the documentation to describe the new feature. https://github.com/apache/seatunnel/tree/dev/docs
[x] If you are contributing the connector code, please check that the following files are updated:

Update change log that in connector document. For more details you can refer to connector-v2
Update plugin-mapping.properties and add new connector information in it
Update the pom file of seatunnel-dist

[x] Update the release-note.

Thanks for your first contribution, looking forward to your deep participation. thx

Does this Docker file work?
It compiles, but none of the connectors are installed


Update v3

v3:

sol_move_file to move files - should ensure mode and fsync;
Using more 'flow_node_type' 'inheritance';
More sol_util_strerrora() when applicable;
More doc on fbp sample;
Linux micro backend now only have two URLs: one for metadata and other for fetching;
Executable location configurable;
Naming consistency on update module helpers.

v2:
I've tried to address all issues of v1. Main highlights:
No information is passed along one API call to another - it's backend task to keep state. So, no URL or file_paths anymore;
Using http 'chunked' transfer;
Example module uses Kconfig defined data to get URL to get relevant data, but also accepts some envvars;
Common helpers divided into 'file' and 'http' ones: include functions that download file, check its hash, move files, etc.

New Soletta module update.
An API is introduced to update Soletta apps. The overall idea is that
different update modules can be used on different Soletta scenarios.
The API is quite straightforwad, with methods to check for updates,
fetch and install them.
A module to update Soletta app statically built running as PID1 is also
presented, to check and showcase the API. This is a simple update, just
Soletta app file is changed.
Node-types were made so one can update the app via fbp - and a sample was
also added.
Note that update module expects that device boots via EFI using an startup.nsh
script, showcased on samples. I'm not sure if we will integrate this somehow
with image generation - but there are more steps to make Linux micro one static
file a reality, though.
Documentation should give a better insight of this new feature.

The asynchronous/worker thread can come later in another patch, just add the documentation on this one and merge it changing the other minor/details like function name. No need to send another PR

Integrated with fixes.


Update uninstall.md

See https://github.com/caskroom/homebrew-cask/pull/30570 for reference.

Thanks for the updates @vitorgalvao.


Enums don't get assigned the correct size when tag type is specified

test "" {
    const Enum = enum(u8) { B = 2 };
    comptime @import("std").debug.assert(@sizeOf(Enum) == 1);
}

std/debug/index.zig:86:13: error: encountered @panic at compile-time
            @panic("assertion failure");
            ^
test/test.zig:3:41: note: called from here
    comptime @import("std").debug.assert(@sizeOf(Enum) == 1);

Aha, so what's going on is zig actually needs 0 bytes to represent this enum. Enum is a 0-bit type, same as void. However, I agree that if you specify the tag type explicitly, it should use that tag type. So I'll make that work.


How can I test orbit with latest js-ipfs?

Would love to be able to make orbit, orbit-db and ipfs-log testable without too much configuration, as easy as:
> git clone<EMAIL_ADDRESS>orbit-db, ipfs-log} && \
> npm install && \
> npm link && \
> npm run {test, benchmark}:{electron, browser}:{go-ipfs, js-ipfs}

I believe this can be closed as we're supporting up to js-ipfs 0.36 and go-ipfs 0.4.22 on latest


Can't use a glob in the CLI on Windows

When using the tslint CLI on Windows, globs are interpreted as literal filepaths:
> node_modules\.bin\tslint.cmd src\**\*.{ts,tsx}
Unable to open file: src\**\*.{ts,tsx}

And just for fun, trying to use / seperators:
> node_modules\.bin\tslint.cmd src\**\*.{ts,tsx}
Unable to open file: src\**\*.{ts,tsx}

According to https://github.com/palantir/tslint/issues/680#issuecomment-143776713, this is "obviously" supposed to work. Does this rely on some Bash convention that cmd doesn't have?

@dallonf Ah, I see, wasn't thinking about the Windows side of things - I'm unsure of how that works out, but I'll take a look into it.
On the *nix side of things, bash, zsh, or whatever shell you're using takes the glob and expands it into a list of filenames automatically.  Running tslint *.ts or running tslint a.ts b.ts looks the exact same to tslint. That is, tslint is passed the same command line arguments by the shell in both cases.
It seems like that's not the case on Windows though. I'll look into how node programs that accept a list of files normally handle globs on Windows.

Well, I learned something today! :smile: Before today, I thought Unix programs took globs by convention, not as an actual feature of Bash...
Anyways I think a lot of node programs also accept a directory name and recursively search for files in that directory; eslint does this, for example.

Made a new issue for this category of feature requests: #692. If you feel like I've sufficiently captured your use case, then we can move discussion over there

That issue describes things a lot better than I did! Thanks.

FYI, I was told that a lot of Node programs handles globs using https://www.npmjs.com/package/minimatch

#827 solves this.


Import rar and csv for project tasks

The user to be able to upload tracks for annotation in the corresponding formats. The .zip extension has already been implemented.

.rar closed


Support anyOf property

Original ticket

+1 to this issue, seeing igluctl's lint affected by this.

@dhuang While this issue is still open and something we're hoping to address, in the meantime, a workaround could be to switch from, eg "anyOf": [{"type": "string"}, {"type": "null"}] to "type": ["string", "null"].

We've got additional pattern and maxLength requirements on the string, so I don't think the type: [...] format supports that, but definitely good to know that's an alternative elsewhere.


Bottom Sheet with TemplateRef

Feature Description
Bottom Sheet should be able to display a TemplateRef. Basically the same as with MatDialog.
Use Case
I want to build a "responsive" menu component, which displays a MatMenu on desktop and a MatBottomSheet on mobile.

This is supported already. You can pass in a TemplateRef into MatBottomSheet.open.

You're right. I overlooked the "(+1 overload)" in VSCode.
Then maybe align the Type Definitions of Bottom Sheet and Dialog?
Dialog:
open<T, D = any, R = any>(componentOrTemplateRef: ComponentType<T> | TemplateRef<T>, config?: MatDialogConfig<D>): MatDialogRef<T, R>;

Bottom Sheet:
open<T, D = any, R = any>(component: ComponentType<T>, config?: MatBottomSheetConfig<D>): MatBottomSheetRef<T, R>;
open<T, D = any, R = any>(template: TemplateRef<T>, config?: MatBottomSheetConfig<D>): MatBottomSheetRef<T, R>;

There's been a PR for MatDialog for a while now, but it ended up breaking some people. https://github.com/angular/components/pull/11731


fix or restrict gossip and quest frame sharing

Either fix the gossip frame update issue when sharing with quest frame or else add a configurable option to prevent gossip & quest frames from being open at the same time

Fixed itself as of 10.0.0; possibly e13eb68 affected it as well


use single quotes everywhere and add a rule to eslint

similar to
https://github.com/open-telemetry/opentelemetry-js/pull/2351

I'm up for it.

thx @CptSchnitz

This can now be closed I guess?


npm version and bower version are different

sorry for that, when using npm  i install the dragular.


Investigate algorithms/packages for probabilistic breakpoints to replace CBS.

For example, the Bayesian change point (bcp) R package.

Notes on a few possibilities I've explored:
bcp (Bayesian change points):
-pros: R package available, probabilistic breakpoints, fast (linear), multivariate
-cons: assumes normal distribution, a few free parameters (but standard values typically taken)
ecp:
-pros: R package available, non-parametric, multivariate (even seems to segment well on [alt, ref, tn cr])
-cons: very slow (quadratic, ~20 min/chr over het-only coverage)
tvd (total variation denoising):
-pros: R package available (java implementation should also be straightforward), fast, single penalty parameter
-cons: not clear how to do our particular multivariate case, smoothing step only (need segmentation step after)
PELT (pruned exact linear time):
-pros: R package available (java implementation should also be straightforward), fast (linear), single penalty parameter, can use our CR/AF likelihoods
-cons: some papers seem to suggest that oversegmentation is an issue
wbs (wild binary segmentation):
-pros: R package available, fast, some advantages over CBS
-cons: some underlying Gaussian assumptions, free parameters/choice of stopping criteria
I've explored a few additional possibilities, including PDP, NP-PELT, and a few other Bayesian approaches.  Although something multivariate + Bayesian would be great, in practice I think these would be difficult to implement (for example, it's not clear how to handle the "missing data" problem, i.e., the fact that targets and hets do not overlap 1-to-1 to give a nice multivariate quantity to segment on).
My feeling is that something simple like univariate PELT + our CR/AF likelihoods + segment union could yield good results, while being fast, easy to implement in java, and relatively parameter free (requiring only a single parameter that penalizes changepoints---we'd still need to choose this via a parameter sweep/cross validation, which would require a truth set).
Ultimately, if we implement an HMM hooked up to our likelihoods that gives good results and can account for missing data, then we can get rid of this whole segment + segment-union paradigm.  Again a segmentation truth set will be critical here.

Obviated by HMM implementations.


Add necessary comments to the code

I would be happy to write comments to the code in the project files so that the code is more readable and understandable to other programmers.
@hetulbhatt , please assign it to me

Assigned to you.

I did it!! please merge my pull request...

Thanks @chavi362. I have been away for a couple of days from my desk, will try to review PR tomorrow or day after tomorrow.

Thanks!
Enjoy your vacation!
בתאריך יום ג׳, 5 בספט׳ 2023 ב-20:33 מאת Hetul Bhatt <
@.***>:

Thanks @chavi362 https://github.com/chavi362. I have been away for a
couple of days from my desk, will try to review PR tomorrow or day after
tomorrow.
—
Reply to this email directly, view it on GitHub
https://github.com/hetulbhatt/KeyFlow/issues/39#issuecomment-1707028594,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BBPQEOMT2JIS5EGXDHND5QLXY5O6VANCNFSM6AAAAAA4BVPSAM
.
You are receiving this because you were mentioned.Message ID:
@.***>

@chavi362, I have reviewed the PR and provided some comments. Please have a look here: https://github.com/hetulbhatt/KeyFlow/pull/44#pullrequestreview-1617998364

Thank you!
I'll work about it tomorrow
בתאריך יום ו׳, 8 בספט׳ 2023 ב-21:16 מאת Hetul Bhatt <
@.***>:

@chavi362 https://github.com/chavi362, I have reviewed the PR and
provided some comments. Please have a look here: #44 (review)
https://github.com/hetulbhatt/KeyFlow/pull/44#pullrequestreview-1617998364
—
Reply to this email directly, view it on GitHub
https://github.com/hetulbhatt/KeyFlow/issues/39#issuecomment-1712057083,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BBPQEOLIB7CAYWO5WBONVF3XZNOHNANCNFSM6AAAAAA4BVPSAM
.
You are receiving this because you were mentioned.Message ID:
@.***>

Thanks, @chavi362 for working on this issue!


find an object that matches the search criteria

Describe what you want to achieve.
Trying to find object(s) that matches the search criteria
Describe what you tried.
Do I need to write a search on each key value and loop over all the objects in the vector to find the match? That seems too expensive. Any suggestions? I should be able to search on all the keys and return the matching objects.

class person {
	public:
		std::string name;
		std::string address;
		int age;
	};

	void to_json(json& j, const person& p) {
		j = json{ {"name", p.name}, {"address", p.address}, {"age", p.age} };
	}

	void from_json(const json& j, person& p) {
		if (j.contains("name")) p.name = j.at("name").get<std::string>();
		if (j.contains("address")) p.address = j.at("address").get<std::string>();
		if (j.contains("age")) p.age = j.at("age").get<int>();

	}

int main()
{
	       std::vector<ns::person> persons;
		// convert to JSON: copy each value into the JSON object
		ifstream inputFile("input/person.json");
		json j;
		ns::person person;
		try {
			j = json::parse(inputFile, NULL, true);// false to get rid of error
			if (j.is_discarded()) {
				cout << "error";
			}
		}
		catch (std::exception& e)
		{
			std::cerr << e.what() << std::endl;
		}
		for (int i = 0; i < j.size(); i++)
		{
			std::cout << j.at(i)<<"\n";
			person = j.at(i);
			persons.push_back(person);
		}
//ask user for search criteria
// loop over all the objects and return the match?
}

Describe which system (OS, compiler) you are using.

Describe which version of the library you are using (release version, develop branch).

The items function may help.

I am not sure how to map the std::vector(thats what i am using) to nlohmann ::json and use the items function on it.

nevermind. I figured looping over each json object in the  vector of objects and doing a search on each key using items.


Vulnerability from jsdoc

=== npm audit security report ===
│ High          │ Regular Expression Denial of Service
│ Package       │ marked
│ Patched in    │ >=0.3.9
│ Dependency of │ trendyways
│ Path          │ trendyways > jsdoc > marked
│ More info     │ https://nodesecurity.io/advisories/531

Not relevant for prod code


[ERRORS and no Content]

Hi, I have just installed civic-server and civic-client on my Centos 07 server.
I believe I have followed the install doco but will re-install on another host to be sure.
Here is what I get when I run "gulp serve:dist" I run the civic-server and civic-client as a non privileged user and try connect via lynx which is installed on the local host. I have the build from today. Can anyone suggest where to look to resolve this? ps. The pots seem to be listening but no content from lynx browser.
[pathos-test] ~/civic-client > gulp serve:dist
[16:16:33] Using gulpfile ~/civic-client/gulpfile.js
[16:16:33] Starting 'wiredep'...
[16:16:33] Starting 'scripts'...
[16:16:34] Starting 'partials'...
[16:16:35] Starting 'images'...
[16:16:35] Starting 'fonts'...
[16:16:36] Starting 'misc'...
[16:16:36] Finished 'wiredep' after 3.13 s
[16:16:36] Starting 'styles'...
[16:16:36] all files 1.15 kB
[16:16:36] Finished 'misc' after 534 ms
src/components/filters.js
line 90  col 9  Bad line breaking before '?'.
line 92  col 9  Bad line breaking before '?'.
line 94  col 9  Bad line breaking before '?'.
line 96  col 9  Bad line breaking before '?'.
✖ 4 problems
src/app/pages/AboutCtrl.js
line 12  col 11   Strings must use singlequote.
line 13  col 14   Strings must use singlequote.
line 13  col 36   Strings must use singlequote.
line 14  col 13   Strings must use singlequote.
line 15  col 21   Strings must use singlequote.
line 16  col 17   Strings must use singlequote.
line 16  col 27   Strings must use singlequote.
line 17  col 13   Strings must use singlequote.
line 17  col 24   Strings must use singlequote.
line 18  col 19   Strings must use singlequote.
line 18  col 116  Strings must use singlequote.
line 19  col 16   Strings must use singlequote.
line 20  col 15   Strings must use singlequote.
line 20  col 113  Strings must use singlequote.
line 21  col 14   Strings must use singlequote.
line 21  col 111  Strings must use singlequote.
line 22  col 14   Strings must use singlequote.
line 22  col 111  Strings must use singlequote.
line 23  col 14   Strings must use singlequote.
line 23  col 111  Strings must use singlequote.
line 25  col 26   Strings must use singlequote.
line 26  col 14   Strings must use singlequote.
line 27  col 21   Strings must use singlequote.
line 27  col 31   Strings must use singlequote.
line 28  col 25   Strings must use singlequote.
line 29  col 39   Strings must use singlequote.
line 30  col 23   Strings must use singlequote.
line 34  col 13   Strings must use singlequote.
line 35  col 16   Strings must use singlequote.
line 35  col 38   Strings must use singlequote.
line 36  col 15   Strings must use singlequote.
line 37  col 23   Strings must use singlequote.
line 38  col 19   Strings must use singlequote.
line 38  col 29   Strings must use singlequote.
line 39  col 15   Strings must use singlequote.
line 39  col 26   Strings must use singlequote.
line 40  col 21   Strings must use singlequote.
line 40  col 118  Strings must use singlequote.
line 41  col 18   Strings must use singlequote.
line 42  col 17   Strings must use singlequote.
line 42  col 115  Strings must use singlequote.
line 43  col 16   Strings must use singlequote.
line 43  col 113  Strings must use singlequote.
line 44  col 16   Strings must use singlequote.
line 44  col 113  Strings must use singlequote.
line 45  col 16   Strings must use singlequote.
line 45  col 113  Strings must use singlequote.
line 47  col 28   Strings must use singlequote.
line 48  col 16   Strings must use singlequote.
line 49  col 23   Strings must use singlequote.
line 49  col 23   Too many errors. (39% scanned).
✖ 51 problems
src/app/pages/CollaborateCtrl.js
line 21  col 9  Missing semicolon.
✖ 1 problem
src/app/pages/HelpView.js
line 75   col 9   Missing semicolon.
line 8    col 43  '$urlRouterProvider' is defined but never used.
line 91   col 9   Comma warnings can be turned off with 'laxcomma'.
line 90   col 9   Bad line breaking before ','.
line 207  col 9   Missing semicolon.
✖ 5 problems
src/components/directives/userCard.js
line 26  col 10  '' is not defined.
line 30  col 11  '' is not defined.
line 33  col 11  '' is not defined.
line 36  col 11  '' is not defined.
line 40  col 23  '_' is not defined.
✖ 5 problems
src/components/services/CommentPreviewService.js
line 23  col 21  Strings must use singlequote.
✖ 1 problem
src/components/services/ConfigService.js
line 48  col 29  Strings must use singlequote.
line 49  col 30  Strings must use singlequote.
line 50  col 34  Strings must use singlequote.
line 51  col 20  Strings must use singlequote.
line 52  col 16  Strings must use singlequote.
✖ 5 problems
[16:16:39] all files 1.17 MB
[16:16:39] Finished 'images' after 3.85 s
src/components/services/VariantGroupRevisionsService.js
line 215  col 11  '_' is not defined.
✖ 1 problem
src/app/views/add/evidence/addEvidenceBasic.js
line 182  col 33  Strings must use singlequote.
line 183  col 34  Strings must use singlequote.
line 184  col 38  Strings must use singlequote.
line 185  col 24  Strings must use singlequote.
line 186  col 20  Strings must use singlequote.
line 48   col 14  'toUpperCase' is defined but never used.
✖ 6 problems
src/app/views/community/main/communityMain.js
line 69   col 64  'stopWatching' is defined but never used.
line 69   col 57  'scope' is defined but never used.
line 69   col 47  'oldValue' is defined but never used.
line 69   col 37  'newValue' is defined but never used.
line 69   col 30  'field' is defined but never used.
line 92   col 64  'stopWatching' is defined but never used.
line 92   col 57  'scope' is defined but never used.
line 92   col 47  'oldValue' is defined but never used.
line 92   col 37  'newValue' is defined but never used.
line 92   col 30  'field' is defined but never used.
line 116  col 64  'stopWatching' is defined but never used.
line 116  col 57  'scope' is defined but never used.
line 116  col 47  'oldValue' is defined but never used.
line 140  col 64  'stopWatching' is defined but never used.
line 140  col 57  'scope' is defined but never used.
line 140  col 47  'oldValue' is defined but never used.
line 140  col 37  'newValue' is defined but never used.
line 140  col 30  'field' is defined but never used.
✖ 18 problems
src/app/views/events/common/actionBlock.js
line 20  col 34  '$scope' is defined but never used.
✖ 1 problem
src/app/views/events/common/entityCommentForm.js
line 33   col 24  Strings must use singlequote.
line 35   col 27  Strings must use singlequote.
line 43   col 33  Strings must use singlequote.
line 52   col 57  Strings must use singlequote.
line 52   col 57  Missing semicolon.
line 50   col 25  'error' is defined but never used.
line 53   col 15  Missing semicolon.
line 55   col 71  Strings must use singlequote.
line 100  col 19  'error' is defined but never used.
line 92   col 35  'resetModel' is defined but never used.
✖ 10 problems
[16:16:41] all files 14.08 MB
[16:16:41] Finished 'fonts' after 5.3 s
src/app/views/events/common/entityTabs.js
line 153  col 91  Missing semicolon.
✖ 1 problem
src/app/views/events/evidence/edit/evidenceEditBasic.js
line 88  col 33  Strings must use singlequote.
line 89  col 34  Strings must use singlequote.
line 90  col 38  Strings must use singlequote.
line 91  col 24  Strings must use singlequote.
line 92  col 20  Strings must use singlequote.
✖ 5 problems
src/app/views/events/variants/summary/evidenceGrid.js
line 336  col 43  'event' is defined but never used.
✖ 1 problem
src/app/views/events/variants/summary/variantSummary.js
line 42  col 6  Missing semicolon.
✖ 1 problem
[16:16:43] all files 549.22 kB
[16:16:43] Finished 'scripts' after 9.88 s
[16:16:44] all files 249.31 kB
[16:16:44] Finished 'styles' after 8.14 s
[16:16:44] all files 230.22 kB
[16:16:44] Finished 'partials' after 9.85 s
[16:16:44] Starting 'html'...
[16:16:48] gulp-inject 144 files into 404.html.
[16:16:48] gulp-inject 144 files into index.html.
[16:16:48] all files 4.4 kB
[16:16:48] Finished 'html' after 4.45 s
[16:16:48] Starting 'build'...
[16:16:48] Finished 'build' after 5.7 μs
[16:16:48] Starting 'serve:dist'...
[16:16:48] Finished 'serve:dist' after 20 ms
[16:16:48] Server started http://<IP_ADDRESS>:3001

I see the same thing with gulp serve:dist but gulp serve seems to work fine.  Are you trying to simulate a production build?  FYI, we do most of our local testing on Mac and deploy on Ubuntu.
I have such instances running right now on two machines, with all the latest code.
The docs assume you are trying to set up a local environment to experiment with changing the code.  To deploy an instance that you can remotely login to may not be documented as completely.  I suspect that @acoffman and @jmcmichael may have additional thoughts.

CIViC is a single-page app that relies on Javascript to render the user interface. Lynx doesn't have Javascript support, so the CIViC app will not execute. What you're seeing when you load the page in Lynx is the base index.html page which bootstraps the application.
Are you able to load the site using a graphical browser that supports Javascript? We use Chrome, Firefox, and Safari with success, and it should work in Internet Explorer versions >8.
There exist console browsers that support Javascript, such as ELinks but I doubt that the app will run very well in those either, as the application is quite complex, containing drop-down menus, popups, etc. that seem unlikely to be well-rendered in a text-only environment.

I've created an issue (#337) to show a notice on browsers that cannot run CIViC.

(Also cleaned up all those jshint warnings)

Malachi,
Thanks for the response. At this stage we are evaluating, but yes a snapshot of a working prod version would be our aim for now. Good news is that I “think” we have the interface / landing page running  on  centOS. The client seems to call the database and the DB logs as I can see in the DB logs queries being executed. What I need next is some sample data to play with. So I guess this is where “gulp serve:dist” is required? Or do I need to import some data some other way? :-)
Ps. Is there a way around the authentication? What to I see and can I do when I authenticate?
Regards,
Christopher Welsh
Systems Administrator, Research Support Services
Cancer Research Division
Peter MacCallum Cancer Centre
http://www.petermac.orghttp://www.petermac.org/
Phone +61 3 9656 1512
Fax +61 3 9656 1411
E-mail<EMAIL_ADDRESS>[unknown.png]
[unknown_1.png]
From: Malachi Griffith <notifications<EMAIL_ADDRESS>Reply-To: genome/civic-client <reply<EMAIL_ADDRESS>Date: Friday, 12 February 2016 at 3:23 AM
To: genome/civic-client <civic-client<EMAIL_ADDRESS>Cc: test <Christopher.Welsh<EMAIL_ADDRESS>Subject: Re: [civic-client] [ERRORS and no Content] (#336)
I see the same thing with gulp serve:dist but gulp serve seems to work fine. Are you trying to simulate a production build? FYI, we do most of our local testing on Mac and deploy on Ubuntu.
I have such instances running right now on two machines, with all the latest code.
The docs assume you are trying to set up a local environment to experiment with changing the code. To deploy an instance that you can remotely login to may not be documented as completely. I suspect that @acoffmanhttps://github.com/acoffman and @jmcmichaelhttps://github.com/jmcmichael may have additional thoughts.
—
Reply to this email directly or view it on GitHubhttps://github.com/genome/civic-client/issues/336#issuecomment-182942041.
This email (including any attachments or links) may contain
confidential and/or legally privileged information and is
intended only to be read or used by the addressee.  If you
are not the intended addressee, any use, distribution,
disclosure or copying of this email is strictly
prohibited.
Confidentiality and legal privilege attached to this email
(including any attachments) are not waived or lost by
reason of its mistaken delivery to you.
If you have received this email in error, please delete it
and notify us immediately by telephone or email.  Peter
MacCallum Cancer Centre provides no guarantee that this
transmission is free of virus or that it has not been
intercepted or altered and will not be liable for any delay
in its receipt.

Hi Joshua,
I have installed KDE and can now view the page. (<IP_ADDRESS>:3001)
Seems to be no data to play with though.
Regards,
Christopher Welsh
Systems Administrator, Research Support Services
Cancer Research Division
Peter MacCallum Cancer Centre
http://www.petermac.orghttp://www.petermac.org/
Phone +61 3 9656 1512
Fax +61 3 9656 1411
E-mail<EMAIL_ADDRESS>[unknown.png]
[unknown_1.png]
From: Joshua McMichael <notifications<EMAIL_ADDRESS>Reply-To: genome/civic-client <reply<EMAIL_ADDRESS>Date: Friday, 12 February 2016 at 3:54 AM
To: genome/civic-client <civic-client<EMAIL_ADDRESS>Cc: test <Christopher.Welsh<EMAIL_ADDRESS>Subject: Re: [civic-client] [ERRORS and no Content] (#336)
CIViC is a single-page app that relies on Javascript to render the user interface. Lynx doesn't have Javascript support, so the CIViC app will not execute. What you're seeing when you load the page in Lynx is the base index.html page which bootstraps the application.
Are you able to load the site using a graphical browser that supports Javascript? We use Chrome, Firefox, and Safari with success, and it should work in Internet Explorer versions >8.
There exist console browsers that support Javascript, such as ELinks but I doubt that the app will run very well in those either, as the application is quite complex, containing drop-down menus, popups, etc. that seem unlikely to be well-rendered in a text-only environment.
—
Reply to this email directly or view it on GitHubhttps://github.com/genome/civic-client/issues/336#issuecomment-182956575.
This email (including any attachments or links) may contain
confidential and/or legally privileged information and is
intended only to be read or used by the addressee.  If you
are not the intended addressee, any use, distribution,
disclosure or copying of this email is strictly
prohibited.
Confidentiality and legal privilege attached to this email
(including any attachments) are not waived or lost by
reason of its mistaken delivery to you.
If you have received this email in error, please delete it
and notify us immediately by telephone or email.  Peter
MacCallum Cancer Centre provides no guarantee that this
transmission is free of virus or that it has not been
intercepted or altered and will not be liable for any delay
in its receipt.

Hi Christopher,
Before going further, we would like to say that we would love to have people from Peter
MacCallum Cancer Centre contribute to the canonical live site at www.civicdb.org.  All content there is public and can be viewed without even logging in.  An account is needed only to contribute/edit.  That being said, we understand that there are use cases where creating a local/private installation is needed and that is fine too.
As for your specific questions. We provide a snapshot of some test data in a few forms, right in the repo to allow for testing.  It is a future plan to create periodic dumps of our live data at civicdb.org that could be loaded into a test instance (but this will require first scrubbing authentication and personal user data since it would be shared publicly).
To populate the database with the test data you can follow the instructions near the bottom of the install instructions: https://github.com/genome/civic-server
There are two methods (from the civic-server repo):
1.) rake civic:import['import/GeneSummaries.txt','import/VariantSummaries.txt','import/ClinActionEvidence.txt','import/VariantGroupSummaries.txt']
2.) rake civic:load
Historically, the former has been a bit more reliable than the latter. To blow away the database and start from scratch you can do this:
rake db:drop
rake db:create
rake db:schema:load

You need your postgres service running for all of this to work.
On your second question, in order for the login system to work you will need authentication.
Otherwise it works just like the public site. You can see everything, you just can't edit until you log in.  We use Oauth for authentication.  For security reasons we obviously can not share our authentication keys with you.  You will need to obtain a key/token for Google, GitHub, and OrcID.  For local testing you will set these in some environment variables (e.g. in .bashrc) and then you can login and create accounts on your local test instance just as you would on the publicly deployed site.

Hi Malachi,
I believe contributing would be the intention as this is where the true value for everyone is. How updates/contributions are done at this stage, I am not sure. Perhaps via pushing updates via an API? I will speak with the team and find out. For now, we are in eval mode. For my part, I am happy to push any install doc I do your way.
As for populating the DB, I thought I did that, just to be sure I did the following from the civic-server folder..
The postgres server is running
“rail s' is running
"gulp serve" is running
rake db:drop
rake db:create
rake db:schema load
Should I be running these rake commands as the progres user?
Regards,
Christopher Welsh
Systems Administrator, Research Support Services
Cancer Research Division
Peter MacCallum Cancer Centre
http://www.petermac.orghttp://www.petermac.org/
Phone +61 3 9656 1512
Fax +61 3 9656 1411
E-mail<EMAIL_ADDRESS>[unknown.png]
[unknown_1.png]
From: Malachi Griffith <notifications<EMAIL_ADDRESS>Reply-To: genome/civic-client <reply<EMAIL_ADDRESS>Date: Friday, 12 February 2016 at 12:14 PM
To: genome/civic-client <civic-client<EMAIL_ADDRESS>Cc: test <Christopher.Welsh<EMAIL_ADDRESS>Subject: Re: [civic-client] [ERRORS and no Content] (#336)
Hi Christopher,
Before going further, we would like to say that we would love to have people from Peter
MacCallum Cancer Centre contribute to the canonical live site at www.civicdb.orghttp://www.civicdb.org. All content there is public and can be viewed without even logging in. An account is needed only to contribute/edit. That being said, we understand that there are use cases where creating a local/private installation is needed and that is fine too.
As for your specific questions. We provide a snapshot of some test data in a few forms, right in the repo to allow for testing. It is a future plan to create periodic dumps of our live data at civicdb.org that could be loaded into a test instance (but this will require first scrubbing authentication and personal user data since it would be shared publicly).
To populate the database with the test data you can follow the instructions near the bottom of the install instructions: https://github.com/genome/civic-server
There are two methods (from the civic-server repo):
1.) rake civic:import['import/GeneSummaries.txt','import/VariantSummaries.txt','import/ClinActionEvidence.txt','import/VariantGroupSummaries.txt']
2.) rake civic:load
Historically, the former has been a bit more reliable than the latter. To blow away the database and start from scratch you can do this:
rake db:drop
rake db:create
rake db:schema:load
You need your postgres service running for all of this to work.
On your second question, in order for the login system to work you will need authentication.
Otherwise it works just like the public site. You can see everything, you just can't edit until you log in. We use Oauth for authentication. For security reasons we obviously can not share our authentication keys with you. You will need to obtain a key/token for Google, GitHub, and OrcID. For local testing you will set these in some environment variables (e.g. in .bashrc) and then you can login and create accounts on your local test instance just as you would on the publicly deployed site.
—
Reply to this email directly or view it on GitHubhttps://github.com/genome/civic-client/issues/336#issuecomment-183138976.
This email (including any attachments or links) may contain
confidential and/or legally privileged information and is
intended only to be read or used by the addressee.  If you
are not the intended addressee, any use, distribution,
disclosure or copying of this email is strictly
prohibited.
Confidentiality and legal privilege attached to this email
(including any attachments) are not waived or lost by
reason of its mistaken delivery to you.
If you have received this email in error, please delete it
and notify us immediately by telephone or email.  Peter
MacCallum Cancer Centre provides no guarantee that this
transmission is free of virus or that it has not been
intercepted or altered and will not be liable for any delay
in its receipt.

We agree that contributing is where the true value for everyone is.  :).  To be clear, to contribute right now you don't need to do any of this...  Simply go to www.civicdb.org, create an account, and start contributing.
Some have expressed an interest in having a mixed model where a local instance is used synchronized with the canonical public instance at www.civicdb.org but some additional private data (e.g. relating to individual patients, or results covered by an NDA, etc.) are kept only in the local instance.  This is a really interesting idea but we haven't had time to pursue it seriously.  Not sure how syncing/sharing data between multiple instances would work.  For things like evidence items it might be tractable.  For things like variant and gene summaries it might be harder to avoid merge conflicts.  Right now we are focused on building the open/public content so this hasn't been a high development priority.
For now the local instance is really used to (A) help develop the code and (B) for demonstration purposes, where you can really kick the tires on how contributions work without polluting the public resource with example submissions, fake users, etc.

Closing comment, as we've solved the original issue.

Hi Folks,
I have have had a chat with Ken Doig who had requested I install civic locally.  The server is installed and returning results by listening on the servers hosts IP address at port 3000. Why install locally? I believe his requirement is that he would simply like to be able to login to a local running instance add and remove data and evaluate  civic with some colleagues.  Perhaps it is best if Ken discusses what he wants to do form this point of view rather than I.
Currently he is connecting to the civic-server directly rather than the civic-client. There was mention that this could be done without the need for the civic-client. Is there a specific need for ken to connect via the client?
The current issues we are having is authentication (Admin access) . We have tried github authentication (Ken has an account) but receive a 404 error.  We use a firewall and perhaps that is where authentication is failing? Any pointers to Ken on how to work around this would be welcome. Anyway I will hand over to Ken for further discussion
Regards,
Christopher Welsh
Systems Administrator, Research Support Services
Cancer Research Division
Peter MacCallum Cancer Centre
http://www.petermac.orghttp://www.petermac.org/
Phone +61 3 9656 1512
Fax +61 3 9656 1411
E-mail<EMAIL_ADDRESS>[unknown.png]
[unknown_1.png]
From: Malachi Griffith <notifications<EMAIL_ADDRESS>Reply-To: genome/civic-client <reply<EMAIL_ADDRESS>Date: Friday, 12 February 2016 at 3:23 AM
To: genome/civic-client <civic-client<EMAIL_ADDRESS>Cc: test <Christopher.Welsh<EMAIL_ADDRESS>Subject: Re: [civic-client] [ERRORS and no Content] (#336)
I see the same thing with gulp serve:dist but gulp serve seems to work fine. Are you trying to simulate a production build? FYI, we do most of our local testing on Mac and deploy on Ubuntu.
I have such instances running right now on two machines, with all the latest code.
The docs assume you are trying to set up a local environment to experiment with changing the code. To deploy an instance that you can remotely login to may not be documented as completely. I suspect that @acoffmanhttps://github.com/acoffman and @jmcmichaelhttps://github.com/jmcmichael may have additional thoughts.
—
Reply to this email directly or view it on GitHubhttps://github.com/genome/civic-client/issues/336#issuecomment-182942041.
This email (including any attachments or links) may contain
confidential and/or legally privileged information and is
intended only to be read or used by the addressee.  If you
are not the intended addressee, any use, distribution,
disclosure or copying of this email is strictly
prohibited.
Confidentiality and legal privilege attached to this email
(including any attachments) are not waived or lost by
reason of its mistaken delivery to you.
If you have received this email in error, please delete it
and notify us immediately by telephone or email.  Peter
MacCallum Cancer Centre provides no guarantee that this
transmission is free of virus or that it has not been
intercepted or altered and will not be liable for any delay
in its receipt.

You are receiving a 404 when trying to log in with GitHub because you need to supply OAuth credentials to the server. This involves registering your copy of the application with GitHub (and Google and Orcid should you want to use those.) So that you can use their API. That can be done here: https://github.com/settings/applications/new and is documented here: https://developer.github.com/v3/oauth/#web-application-flow.
Registering your application with GitHub will provide you with a secret token and a key. These should be placed in the environment variables CIVIC_GITHUB_SECRET and CIVIC_GITHUB_KEY or in a secrets.yml config file. You can see this working here: https://github.com/genome/civic-server/blob/master/config/initializers/omniauth.rb. If you do opt to go with the secrets.yml file, make sure that you do not check it into the repo as that will allow anyone to use your GitHub credentials.


Allow decorating a class to indicate decorating all methods defined w…

Closes #2

Awaiting tests

@alexmojaki  ready for review.

Well done! Try to write more descriptive commit messages though.


Releases 3.1.4

Good afternoon. When installing version 3.1.4, the integration says 3.1.2 - is this an error? Devices connected to the H100 and KH100 gateways are not connected. When I try to install the working version 3.0.0, it is not in the list.

+1, same issues

Yes it should be a bug, the version number in the constants ist not set to 3.1.4, but probably you are running 3.1.4.
Yes, it is still a problem that versions above 3.0.0 only show 3 entities of the KH100 hub.  See also #751
I tried it for myself today again. Installed 3.1.4, restarted HA and only 3 entities in den KH100 hub are still there (firmware, signal level, overheat). I delete the integration totally and reinstalled 3.1.4, config all my Tapo devices new, same again. I downgraded to 3.0.0 and all entities in the KH100 hub are back. But only max 12 devices as mentioned in #650
Downgrade is only possible when you download the 3.0.0 release and copy the tapo folder manually in the custom_components folder, because the 3.0.0 is not more listed in the version dropdown. For that I used the samba-add-on.


Handle nested views that don't need to be completely re-rendered

RouteA - LayoutViewA - SubviewA
RouteB - LayoutViewA - SubviewB
In the above situation, the layout views shouldn't be rerendered. What's the API for this situation?

This will be solved by a different routing lib


Generate typescript comments based on columns comments

Most databases support having a comment field for each columns. We could extract the comment, and output it to the definition file.
Example:
This schema
CREATE TABLE `customer_metrics` (
  `company_id` bigint unsigned NOT NULL,
  `date` date NOT NULL,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `customer_email` text,
  `remote_customer_id` varchar(255) NOT NULL,
  `mrr` decimal(16,4) DEFAULT NULL COMMENT 'Monthly Recurring Revenue in USD',
  `ltv` decimal(16,4) DEFAULT NULL COMMENT 'Lifetime Value in USD',
  PRIMARY KEY (`company_id`,`date`),
  KEY `customer_metrics_date` (`date`),
  KEY `customer_metrics_company_id` (`company_id`),
  KEY `customer_metrics_remote_customer_id` (`remote_customer_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

would output this:
export interface CustomerMetrics {
  company_id: number
  customer_email: string | null
  date: Date
  /**
   * Lifetime Value in USD
   */
  ltv: Decimal | null
  /**
   * Monthly Recuring Revenue in USD
   */
  mrr: Decimal | null
  remote_customer_id: string
  updated_at: Generated<Date>
}

which would enable this:

Upvote & Fund

We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.

This is a great idea! This should definitely be added.


feat: allow use other name to replace origin version

Fixes: #[Add issue number here]
Changes:

Screenshots of the change:

@SylviaBABY coding 🌚


[Gekidou]: MM-39757 - Recent mentions

Summary
Recent mentions screen for v2
Ticket Link
https://mattermost.atlassian.net/browse/MM-39757
Checklist

[ ] Added or updated unit tests (required for all new features)
[x] Has UI changes
[x] Includes text changes and localization file updates
[x] Have tested against the 5 core themes to ensure consistency between them.

Device Information
This PR was tested on:
Screenshots

condensed
expanded

Release Note
NONE

@koox00 can you resolve the conflicts?

Building app in separate branch.

Adding @Rina-dsg for UX review, I think based on the screenshots the horizontal padding is wrong

@enahum, @Rina-dsg wait a bit, I did a clean install and it seems I have no mention data now, I'll ping when fixed

Building app in separate branch.

Successfully building:
https://circleci.com/gh/mattermost/mattermost-mobile/19325
https://circleci.com/gh/mattermost/mattermost-mobile/19324

Artifact links:
https://19325-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.apk
https://19324-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.ipa

left & right paddings should be 20pt

the height for the yellow one should be 10pt

the body text should have 72% opacity (Center Channel Text)

Building app in separate branch.

Successfully building:
https://circleci.com/gh/mattermost/mattermost-mobile/19332
https://circleci.com/gh/mattermost/mattermost-mobile/19331

Artifact links:
https://19332-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.apk
https://19331-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.ipa

Successfully building:
https://circleci.com/gh/mattermost/mattermost-mobile/19358
https://circleci.com/gh/mattermost/mattermost-mobile/19357

Artifact links:
https://19358-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.apk
https://19357-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.ipa

Building app in separate branch.

Successfully building:
https://circleci.com/gh/mattermost/mattermost-mobile/19389
https://circleci.com/gh/mattermost/mattermost-mobile/19388

Artifact links:
https://19389-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.apk
https://19388-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.ipa

Building app in separate branch.

Successfully building:
https://circleci.com/gh/mattermost/mattermost-mobile/19494
https://circleci.com/gh/mattermost/mattermost-mobile/19493

Artifact links:
https://19494-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.ipa
https://19493-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.apk


improved tasks! macro, replaced lock with raise, etc.

@homunkulus r+

:pushpin: Commit 59cff58 has been approved by japaric

:hourglass: Testing commit 59cff58 with merge 59cff58...

@homunkulus r+

:pushpin: Commit e72687a has been approved by japaric

:hourglass: Testing commit e72687a with merge e72687a...

:sunny: Test successful - status-travis
Approved by: japaric
Pushing e72687a36635ccfce494f8807269bf897b3b6d7b to master...


How do I use local Storage?

I think javaScript can't find localStorage because it is looking for it on Server Side. I am trying to use a plugin for vuex to save data on localStorage.
Can anyone help me set it up? Getting error: localStorage is not defined.

HI @andrisole92
You should check if (process.server) before trying to use the localStorage since it does not exist on server-side.

Yeah, I mean if I want to use it? If it is always process.server, then it seems I can't use it?

Yes, obviously
You could say
import Vue from 'vue'
import Vuex from 'vuex'
import VuexPersist from 'vuex-persist'

Vue.use(Vuex)
let vuexLocalStorage = null;

if (process.browser) {
    vuexLocalStorage = new VuexPersist({
      key: 'vuex', // The key to store the state on in the storage provider.
      storage: window.localStorage, // or window.sessionStorage or localForage
    })
}
export function createStore() {
    return new Vuex.Store({
        state: {
            ...
        },
        actions: {...},
        mutations: {...},
        getters: {...},
        plugins: process.browser ? [vuexLocalStorage.plugin] : []
    })
}

I hope this helps

@jalasem Ok this is old but in my case process.browser to use with window.localStorage doesn't seem to work.
I'm using a middleware to store my options, and here is what I thought of doing.
if (process.browser) {
  window.localStorage.set('options', JSON.stringify(options));
}

But the localStorage doesn't set after auth is passed, and that's because process.browser is always false. Any ideas?

Use cookies, it's available both in browser and server as well


Warn on @-mentioning someone who won't see it because not subscribed

Referenced users do not receive notifications from unsubscribed streams. See github issue. Unfortunately there is no warning at mobile-client :-( This is a ugly pitfall if you think you have notice someone, but the person didn't get any information.
See https://chat.zulip.org/#narrow/stream/48-mobile/topic/Referenced.20users.20on.20unsubscribed.20streams/near/709487

Yeah, we should fix this.
For this category of things, there's a few parts of the webapp code we may want to study/adapt.

exports.notify_local_mixes in static/js/notifications.js  (things we do after you send a message)
validate_stream_message_mentions and the handful of functions after it in static/js/compose.js (validation/warnings/etc. we do before you send a message)
The $(document).on('usermention_completed.zulip', function (event, data) { handler in static/js/compose.js, which is where the webapp checks for this particular issue (this happens right after completing the mention in the typeahead)

Bumping the priority, because this can be pretty frustrating for everyone involved when it happens.

working on the issue

@gnprice
I would like to take this issue..
But i have no idea, where to begin, if you could help me i am happy to work on this :)

Looks like zulip/zulip#14966 was just closed, so work on this can continue! 🙂  Thanks @akashaviator and @timabbott!


RC Test: Faraday's Electromagnetic Lab 1.0.0-rc.1

RC Test
Mentions: @arouinfar @ariel-phet @kathy-phet @KatieWoe @Nancy-Salpepi
Simulation links

github repository for issues
phet top-level directory
sim: all_phet.html
phet-io wrapper index
link to phet-io zip file

Test Matrices

General Test Matrix
PhET-iO Test Matrix

Features included

PhET-iO
Dynamic Locale
Alternative Input
UI Sound
Sonification
Description
Voicing

Focus and Special Instructions
Be on the lookout for common-code regressions, related to changes announced recently in the Slack#quality-assurance channel.
This sim is part of a suite of 4 sims, all being released and tested at the same time. Faraday's Electromagnetic Lab is the full sim, and should therefore receive a full RC test. The other sims are derivates, and require only an RC spot-check.
The QA issues for the other sims in this suite are:

https://github.com/phetsims/qa/issues/1117
https://github.com/phetsims/qa/issues/1118
https://github.com/phetsims/qa/issues/1119

Issues to Verify
These issues have the "status:ready-for-review" label. Unless an issue says to close after verifying, assign the
issue back to the developer.

[ ] https://github.com/phetsims/faradays-electromagnetic-lab/issues/2

For QA...

General features

What to Test

Click every single button.
Test all possible forms of input.

Test all mouse/trackpad inputs.
Test all touchscreen inputs.

If there is sound, make sure it works.
Make sure you can't lose anything.
Play with the sim normally.
Try to break the sim.
Test all query parameters on all platforms. (
See QA Book for a list of query parameters.)
Download HTML on Chrome and iOS.
Make sure the iFrame version of the simulation is working as intended on all platforms.
Make sure the XHTML version of the simulation is working as intended on all platforms.
Complete the test matrix.
Don't forget to make sure the sim works with Legends of Learning.
Test the Game Up harness on at least one platform.
Check this LoL
spreadsheet and notify AR or AM if it not there.
If this is rc.1 please do a memory test.
When making an issue, check to see if it was in a previously published version.
Try to include version numbers for browsers.
If there is a console available, check for errors and include them in the Problem Description.
As an RC begins and ends, check the sim repo. If there is a maintenance issue, check it and notify developers if there
is a problem.
As the RC ends, please review the QA credits in the about dialog. If the QA credits are complete and correct, please
add a comment in the RC test issue indicating so. If not, please open a new issue and specify what changes should be
made.

PhET-iO features

What to Test

Make sure that public files do not have password protection. Use a private browser for this.
Make sure that private files do have password protection. Use a private browser for this.
Make sure standalone sim is working properly.
Make sure the wrapper index is working properly.
Make sure each wrapper is working properly.
Launch the simulation in Studio with ?stringTest=xss and make sure the sim doesn't navigate to youtube
For newer PhET-iO wrapper indices, save the "basic example of a functional wrapper" as a .html file and open it. Make
sure the simulation loads without crashing or throwing errors.
Load the login wrapper just to make sure it works. Do so by adding this link from the sim deployed root:/wrappers/login/?wrapper=record&validationRule=validateDigits&&numberOfDigits=5&promptText=ENTER_A_5_DIGIT_NUMBER

Further instructions in QA Book
Conduct a recording test to Metacog, further instructions in the QA Book. Do this for iPadOS + Safari and one other
random platform.
Conduct a memory test on the stand alone sim wrapper (rc.1).
Test one platform combination with ?phetioDebug=true on the Studio and State wrapper.
If Pan/Zoom is supported, make sure that it works when set with PhET-iO State.
Test that the sim works offline:

Click the link to the phet-io zip file (at top of issue) to download the zip file.
Unzip it to a spot locally.
Open index.html by double clicking it on your desktop or in a Finder-view.
It should look like the standalone version of the sim in PhET-iO brand.

Accessibility features

What to Test

Specific instructions can be found above.

Make sure the accessibility (a11y) feature that is being tested doesn't negatively affect the sim in any way. Here is
a list of features that may be supported in this test:

Alternative Input
Interactive Description
Sound and Sonification
Pan and Zoom
Mobile Description
Voicing

Test all possible forms of input.

Test all mouse/trackpad inputs.
Test all touchscreen inputs.
Test all keyboard navigation inputs (if applicable).
Test all forms of input with a screen reader (if applicable).

If this sim is not in this list or up to date there, make an
issue in website to ask if PhET research page links need updating. Please
assign to @terracoda and @emily-phet.

Screen Readers
This sim may support screen readers. If you are unfamiliar with screen readers, please ask Katie to introduce you to
screen readers. If you simply need a refresher on screen readers, please consult the
QA Book, which should have all of the information
you need as well as a link to a screen reader tutorial made by Jesse. Otherwise, look over the a11y view before opening
the simulation. Once you've done that, open the simulation and make sure alerts and descriptions work as intended.

Platforms and Screen Readers to Be Tested

Windows 10 + Latest Chrome + Latest JAWS
Windows 10 + Latest Firefox + Latest NVDA
macOS + Safari + VoiceOver
iOS + Safari + VoiceOver (only if specified in testing issue)

Critical Screen Reader Information
We are tracking known screen reader bugs in
here. If you find a screen reader bug,
please check it against this list.

Keyboard Navigation
This sim supports keyboard navigation. Please make sure it works as intended on all platforms by itself and with a
screen reader.
Magnification
This sim supports magnification with pinch and drag gestures on touch screens, keyboard shortcuts, and mouse/wheel
controls. Please test magnfication and make sure it is working as intended and well with the use cases of the
simulation. Due to the way screen readers handle user input, magnification is NOT expected to work while using a screen
reader so there is no need to test this case.

FAQs for QA Members

There are multiple tests in this issue... Which test should I do first?
Test in order! Test the first thing first, the second thing second, and so on.

How should I format my issue?

We typically assign the developer who opened the issue in the QA repository.

My question isn't in here... What should I do?
You should:

Consult the QA Book.
Google it.
Ask Katie.
Ask a developer.
Google it again.
Cry.

Memory tests look ok
PhET Brand:

PhET-iO:

Since we'll need an RC spot-check for https://github.com/phetsims/faradays-electromagnetic-lab/issues/194... Yes, please do create an issue for the overlapping pointer areas.

QA is done

Thanks QA! All issues have been addressed, so proceeding with 1.0.0-rc.2 spot check.


Crash writing to a large DB

I have a DB that's basically a large MultiMap of  [u8; 20] keys and [u8; 32] values. Inserting this in batch transactions of 100K keys, the DB crashes around 123GB of on-disk size (max size configured to 1TB):
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: TryFromIntError(())', /Users/bruno/.cargo/registry/src/github.com-1ecc6299db9ec823/redb-0.8.0/src/tree_store/btree_base.rs:983:60

I did not configure custom page size nor region size.
I can't get the backtrace to show anything meaningful sadly, it's a bunch of memory addresses and _libc_thread at the bottom, even though I made sure to build it with debug symbols.

Huh, that's odd. Ok, I'll see if I can debug this anyway. When you say that it's "basically a large MultiMap". You mean that it's a redb::MultimapTable right?

@cberner yes, that's what I mean.

Are you able to reproduce this? I have a theory of what is happening, but it doesn't really make sense given that you didn't set a custom page size. So I'd like to create a debug branch for you to try running to collecting some more debug info

Is this happening on a mac? In which case the page size is might 16k, instead of the 4k default.

No, this was on Linux. (specifically aarch64, ARM instance on AWS)

@cberner for the moment I had to switch to LMDB to finish a project, so I am not sure I will be able to reproduce this again on a branch quickly.
I confirmed that pagesize on the system is 4K:
$ getconf PAGE_SIZE
4096


Show toast/notifcation to admin when the update program details

Is your feature request related to a problem? Please describe.
Admin currently do not receive feedback if their changes to program details saved successfully.
Describe the solution you'd like
Add a toast notification like the one used to confirm translations when the admin is redirected to the program page after editing program details:

Done when
Admin can see a confirmation notification when a field they edited in program details was updated successfully.

Whoever takes this, pair with @mferhut on exactly which pieces should have confirmations.  Probably err on the side of having more notifications than less.


add github workflow for checking openapi

adds workflow that validates openapi.json
relating to issue: https://github.com/lnbits/lnbits/issues/1442

Codecov Report

Merging #1551 (0765292) into main (f943ca7) will decrease coverage by 0.15%.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##             main    #1551      +/-   ##
==========================================
- Coverage   46.87%   46.73%   -0.15%
==========================================
  Files          48       48
  Lines        6841     6841
==========================================
- Hits         3207     3197      -10
- Misses       3634     3644      +10

Impacted Files
Coverage Δ

lnbits/db.py
76.51% <0.00%> (-6.05%)
:arrow_down:

lnbits/commands.py
57.89% <0.00%> (-1.76%)
:arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Fix for current error:
diff --git a/lnbits/settings.py b/lnbits/settings.py
index adec5951..ae373383 100644
--- a/lnbits/settings.py
+++ b/lnbits/settings.py
@@ -228,6 +228,12 @@ class EditableSettings(
             **{k: v for k, v in d.items() if k in inspect.signature(cls).parameters}
         )

+    class Config:
+        @staticmethod
+        def schema_extra(schema: dict[str, Any]) -> None:
+            for prop in schema.get("properties", {}).values():
+                prop.pop("env_names", None)
+

 class EnvSettings(LNbitsSettings):
     debug: bool = Field(default=False)

omg give this man a bounty!

closes https://github.com/lnbits/lnbits/issues/1442


Support socket activation with launchd and systemd

This would allow shell2http to be used with inetd-like scenarios, eg. Systemd Socket activation, or Launchd socket activation.
This is especially useful if you want your application to bind to a privileged port (eg. 80), but don't want the application to run as root, but also don't want to set up a separate proxy process to proxy 80 -> 8080.
So in that case you would have a managing process (like launchd, systemd) open the socket on the privileged port and have it passed to the process instead.
Launchd:
https://en.wikipedia.org/wiki/Launchd#Socket_activation_protocol
https://github.com/sstephenson/launch_socket_server/blob/master/src/launch_socket_server.go
Systemd:
http://0pointer.de/blog/projects/socket-activation.html
https://www.darkcoding.net/software/systemd-socket-activation-in-go/
https://github.com/coreos/go-systemd/tree/master/examples/activation/httpserver
I am open to doing a PR if you would find the idea compatible with shell2http.

Hi, sorry for delay.
I want to keep the server as simple as possible, and not be tied to the features of the two launch systems (systemd and launchd). And there is no single standard for "socket activation".
About privileged ports, on Mac OS you can use any free port including the privileged one, just try shell2http -port 80 /d date. On Linux you can use CAP_NET_BIND_SERVICE capabilities, see stackoverflow.com and man capabilities

It looks like systemd socket activation supports an inetd-compatible mode, which would avoid requirement to link with anything odd or add systemd-specific code. Would that be more acceptable? I guess it might not work with some advanced HTTP features but presumably they're not particularly important for shell2http anyway...
From systemd.socket(5):

Note that the daemon software configured for socket activation with socket units needs to be able to accept sockets from systemd, either via systemd's native socket passing interface (see sd_listen_fds(3) for details) or via the traditional inetd(8)-style socket passing (i.e. sockets passed in via standard input and output, using StandardInput=socket in the service file).

And according to https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html:

There are four ways to launch daemons using launchd. The preferred method is on-demand launching, but launchd can launch daemons that run continuously, and can replace inetdfor launching inetd-style daemons. In addition, launchd can start jobs at timed intervals.

This is interesting about inetd-style, where the socket is passed as stdin/stdout. I need to investigate this and try to make an experiment.


Add IPv4 druid expressions

Description
New druid expressions for filtering IPv4 addresses:

ipv4address_match: Check if IP address belongs to a subnet
ipv4address_parse: Convert string IP address to long
ipv4address_stringify: Convert long IP address to string

These expressions operate on IP addresses represented as either strings
or longs. The filtering is more efficient when operating on IP addresses
as longs. In other words, the intended use case is:

Use ipv4address_parse to convert to long at ingestion time
Use ipv4address_match to filter (on longs) at query time
Use ipv4adress_stringify to convert to (readable) string at query
time

A follow-up PR will add the equivalent SQL functions.

This PR has:

[x] been self-reviewed.
[x] added documentation for new or modified features or behaviors.
[x] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
[x] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
[x] added unit tests or modified existing tests to cover new code paths.

@gianm, @clintropolis: Ready for re-review


Fixed image exports for graphs with custom buttons

"TypeError: this.exportSVGElements is undefined" was thrown when
trying to export image from graphs with custom buttons. Checking if
the method exists before hand and if not then returning should fix
this.

Thanks, merged and put it live. Appreciate the fix.


Error when starting 2.* windows based container: PowerRegisterSuspendResumeNotification failure

Do you want to request a feature or report a bug?

Bug

What did you do?
I experience a bug when starting traefik 2.0 and 2.1 windowsservercore 1809 images. 1.7 does start.

What did you expect to see?
Something like: Using high precision timer
What did you see instead?
fatal error: PowerRegisterSuspendResumeNotification failure

runtime stack:
runtime.throw(0x2541033, 0x2e)
        /usr/local/go/src/runtime/panic.go:774 +0x79 fp=0x415fdb0 sp=0x415fd80 pc=0x433229
runtime.monitorSuspendResume()
        /usr/local/go/src/runtime/os_windows.go:294 +0x1a9 fp=0x415fe50 sp=0x415fdb0 pc=0x42f389
runtime.goenvs()
        /usr/local/go/src/runtime/os_windows.go:531 +0x1ba fp=0x415fea8 sp=0x415fe50 pc=0x42fd0a
runtime.schedinit()
        /usr/local/go/src/runtime/proc.go:554 +0xa9 fp=0x415ff00 sp=0x415fea8 pc=0x435c29
runtime.rt0_go(0x415ff30, 0x7ffe67c57974, 0x415ff30, 0x0, 0x7ffe67c57974, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        /usr/local/go/src/runtime/asm_amd64.s:214 +0x13d fp=0x415ff08 sp=0x415ff00 pc=0x45f9ed

Output of traefik version: (What version of Traefik are you using?)
traefik:v1.7-windowsservercore-1809 works.
traefik:v2.0-windowsservercore-1809 throws error.
traefik:v2.1-windowsservercore-1809 throws error.

What is your environment & configuration (arguments, toml, provider, platform, ...)?
Docker on windows. Both windows 10 and 1809 throw the same errors. Haven't done any configuration yet, just wanted to start it up first.

If applicable, please paste the log output in DEBUG level (--log.level=DEBUG switch)
fatal error: PowerRegisterSuspendResumeNotification failure

runtime stack:
runtime.throw(0x25bf75d, 0x2e)
        /usr/local/go/src/runtime/panic.go:774 +0x79 fp=0x421fdb0 sp=0x421fd80 pc=0x433229
runtime.monitorSuspendResume()
        /usr/local/go/src/runtime/os_windows.go:294 +0x1a9 fp=0x421fe50 sp=0x421fdb0 pc=0x42f389
runtime.goenvs()
        /usr/local/go/src/runtime/os_windows.go:531 +0x1ba fp=0x421fea8 sp=0x421fe50 pc=0x42fd0a
runtime.schedinit()
        /usr/local/go/src/runtime/proc.go:554 +0xa9 fp=0x421ff00 sp=0x421fea8 pc=0x435c29
runtime.rt0_go(0x421ff30, 0x7ffe67ad7974, 0x421ff30, 0x0, 0x7ffe67ad7974, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        /usr/local/go/src/runtime/asm_amd64.s:214 +0x13d fp=0x421ff08 sp=0x421ff00 pc=0x45f9ed

Thanks in advance!

Hello,
related to https://github.com/golang/go/issues/35447

Hi,
Seems related indeed. Using an older golang version should work as a workaround.

Triage information: this issue is labelled as bug possible, time the upstream problem in golang is fixed.

I read the issue is resolved in golang, when will this go version be used by traefik?

https://github.com/golang/go/issues/35447#issuecomment-572605263

1.13 is the currently used version, 1.13.6 this issue is solved. Will this be used in Traefik soon, that’s a bit unclear for me. Thanks!

The problem is now solve in v2.1.4.
Thanks.


Fix name of the script

Apparently there is a bit of confusion around the name of the script. I have geo-activity-playground and geo-playground. This should become unified.

Extended the name.