[VSCode] Error installing Live Share - unable to download needed dependencies

Product and Version [VSCode]:
Version: 1.37.0 (user setup)
Commit: 036a6b1d3ac84e5ca96a17a44e63a87971f8fcc8
Date: 2019-08-08T02:33:50.993Z
Electron: 4.2.7
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.18362
Live Share Extension Version:  v1.0.581 (July 24th, 2019)
Target Platform or Language [e.g. Node.js]: N/A - Error occurs when attempting to install
Steps to Reproduce / Scenario:

Attempt to install Live Share
Extension shows as installed from extension manager but cannot execute any of the contributed commands
Logs display

ExtensionService#loadCommonJSModule c:\Users\212635452\.vscode\extensions\ms-vsliveshare.vsliveshare-1.0.694\out\prod\extension-prod
ProxyResolver#getCertificates (intermediate value) is not a function

Error displays: "Visual Studio Live Share was unable to download needed dependencies to finish installation. Ensure you have network connectivity and restart VS Code to retry."

Resolution Steps attempted
Computer restart
Uninstall extension, re install
Set and unset proxy settings (on a network with and without said proxy)

@legomushroom , any comment on hwy the donwload failed?
@reallyely , would you mind upgrading to a newer extension?

Latest I see is 1.0.694, is that correct? I'm still encountering the error on this version as well.

I think I'm in error in associating the #ProxyResolver method error with Live Share. Removing that from the title.

I'm running 1.39.2 of VS Code and having a very similar problem. Same error message from the extension host, but the information logged in the Output window doesn't show any proxy errors.
[2019-10-22 15:31:12.908] [exthost] [info] ExtensionService#_doActivateExtension ms-vsliveshare.vsliveshare {"startup":false,"extensionId":{"value":"ms-vsliveshare.vsliveshare","_lower":"ms-vsliveshare.vsliveshare"},"activationEvent":"*"}
[2019-10-22 15:31:12.908] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/a7247/.vscode/extensions/ms-vsliveshare.vsliveshare-1.0.1056/out/prod/extension-prod

I remember success with near older versions of Live Share Extension.
I search other version.Result is as below.

1056 OK
1123 OK
1293 OK
1377 OK
1482 OK
1510 OK
1587 NG
1653 NG
2000 NG

same,my environment is behind proxy.

We recently released a fix; on newer versions, you should be shown a notification with a Repair button.
If you don't see the notification, you still can try it from the Command Palette (Shift + Ctrl + P), Live Share / Repair Installation
Let us know if this resolves the issue

This does not resolve the issue for me.
same issue here. No proxy being run right now.
MacOS 10.14.6
VScode 1.43.2
I've also tried removing the extensions files from ~/.vscode.extensions but with no change in behavior

Still getting the same error. Please recommend a solution. I am not using a proxy server.

@BrunoGuardia is this a potential work around?  I was able to install on my mac, but now I can't install on my linux box I ssh into, and use the remote-ssh extension.  Seeing the same hangup on needed dependencies.

@psakievich
Yes, that is a potential workaround for Linux install. Other potential workarounds are at #3392

@BrunoGuardia okay I've tried both, but neither are working.  What I don't understand is why I can install it through an RGS session on my linux box just fine, but I can't install it over the remote ssh.  Why does the work around script require root access?  I don't have that, but I was able to install locally just fine.  These seem like system libraries, while the error on this thread seems like it's a different dependency, like a TPL or something?  Also in the spirit of #3392 I tried copying the installed extensions from ~/.vscode/extensions to ~/.vscode-server/extensions but it does not see these extensions.

Closing this as a duplicate of #180.


Remove $ prefix for easy copy paste

Thank you for your contribution @ruudk, it's much appreciated.
However, I think I don't agree with this change for the following reasons:

Having the $ eases readability: it's clear that it's a CLI command to run
Yet it's a bit annoying to remove the $ after for copy-pasting, but I do think it is not that bad, because running commands should be done carefully. Plus the commands updated here must be ran separately as one of them needs some interactions, so pasting the whole block in the CLI would be annoying as well

I see your point. Too bad :)


Update vendored Molinillo to 0.5.2

See https://github.com/CocoaPods/Molinillo/releases/0.5.2

@homu r+

:pushpin: Commit dcd6795 has been approved by segiddins

:hourglass: Testing commit dcd6795 with merge c712d5e...

:broken_heart: Test failed - status

Superseded by #5135.


FunScript.Data is not compatible with FSharp.Data 2.1

Nugget package for FunScript.Data requires exactly FSharp.Data 2.0.9. I'm not sure this is necesary.
Regards.

I added the source to the project. It seems to work with FSharp.Data 2.1.1, but it does not solve my problem with createRecord (https://github.com/ZachBray/FunScript/issues/152). I'm going to ask FSharp.Data people for a solution modifying FunScript.Data.

I'm afraid only reading is supported right now, writing json is relatively new in FSharp.Data, and the corresponding mappings in FunScript.Data were never made, so you'll need to add mappings to createRecord and similar functions to make it work.

I have done what Gustavo suggested.  Basically copying all needed code from JsonRuntime in JsRuntime:
createRecord
  static member CreateRecord (properties, cultureStr) : IJsonDocument =
    let cultureInfo = TextRuntime.GetCulture cultureStr
    let json =
        properties
        |> Array.map (fun (k, v:obj) -> k, JsRuntime.ToJsonValue cultureInfo v)
        |> JsonValue.Record
    JsDocument.Create(json, "")

ToJsonValue:
  static member inline OptionToJson f = function None -> JsonValue.Null | Some v -> f v

  static member private ToJsonValue (cultureInfo:CultureInfo) (value:obj) =
//    let inline optionToJson (f : 'a -> JsonValue) = function None -> JsonValue.Null | Some v -> f v
    match value with
    | null -> JsonValue.Null
    | :? Array                   as v -> JsonValue.Array [| for elem in v -> JsRuntime.ToJsonValue cultureInfo elem |]

    | :? string                  as v -> JsonValue.String v
    | :? DateTime                as v -> v.ToString(cultureInfo) |> JsonValue.String
    | :? int                     as v -> JsonValue.Number(decimal v)
    | :? int64                   as v -> JsonValue.Number(decimal v)
    | :? float                   as v -> JsonValue.Number(decimal v)
    | :? decimal                 as v -> JsonValue.Number v
    | :? bool                    as v -> JsonValue.Boolean v
    | :? Guid                    as v -> v.ToString() |> JsonValue.String
    | :? IJsonDocument           as v -> v.JsonValue
    | :? JsonValue               as v -> v

    | :? option<string>          as v -> JsRuntime.OptionToJson JsonValue.String v
    | :? option<DateTime>        as v -> JsRuntime.OptionToJson (fun (dt:DateTime) -> dt.ToString(cultureInfo) |> JsonValue.String) v
    | :? option<int>             as v -> JsRuntime.OptionToJson (decimal >> JsonValue.Number) v
    | :? option<int64>           as v -> JsRuntime.OptionToJson (decimal >> JsonValue.Number) v
    | :? option<float>           as v -> JsRuntime.OptionToJson (decimal >> JsonValue.Number) v
    | :? option<decimal>         as v -> JsRuntime.OptionToJson JsonValue.Number v
    | :? option<bool>            as v -> JsRuntime.OptionToJson JsonValue.Boolean v
    | :? option<Guid>            as v -> JsRuntime.OptionToJson (fun (g:Guid) -> g.ToString() |> JsonValue.String) v
    | :? option<IJsonDocument>   as v -> JsRuntime.OptionToJson (fun (v:IJsonDocument) -> v.JsonValue) v
    | :? option<JsonValue>       as v -> JsRuntime.OptionToJson id v

    | _ -> failwithf "Can't create JsonValue from %A" value

And a minimal implementation of IJsonDocument:
[<JS>]
type JsDocument =

    private {
                Json : JsonValue
                Path : string }

    interface IJsonDocument with
        member x.JsonValue = x.Json
        member x.Path() = x.Path
        member x.CreateNew(value,pathInc) = JsDocument.Create(value, x.Path + pathInc)

    static member Create(value,path) =
        {
            Json = value
            Path = path
        } :> IJsonDocument

Unfortunately a new issue related to Compare method has arised, but it seems a problem with FunScript LanguagePrimitives component. Compiler can not replace Compare for the following signature (I get a bit lost in this part):
{Call (None, Compare, [value, Value (<null>)])}

Any idea?

It looks like you need to add an expression replacement for Compare but looking at the code you posted I'm not sure where the problem comes from. FunScript.Core.LanguagePrimitives only contains an implementation of GenericComparer which is being used in the Map and Set modules, but likely not in this case. Are you working on a fork in your Github account or is there another way you can pass me the project to debug it and see where the problem comes from?
¡Ánimo!

I have done the changes in a fork, in [funscript-compatible branch] (https://github.com/jruizaranguren/FunScript/tree/funscript-compatible/src)
It includes a [minor change to PrimitiveTypes.fs in order to process MakeDecimal] (https://github.com/ZachBray/FunScript/issues/142), and the changes explained above.
The failing test can be found at FunScript.Data.Tests.JsonProvider.fs, can compile createRecord

Hi again! Thanks for showing me the code. Unfortunately I cannot tell you a quick fix: in the ToJsonValue method you're using many constructs not yet supported by FunScript. After debugging the code, apparently not a single line in that method can be compiled to JS in the current FunScript version:

The error you got comes from the first line: | null -> JsonValue.Null. I didn't check it throughly but for some reason it seems matching against null works for strings but not for objects.
The other lines combine pattern matching and type casting which unfortunately it's not supported either.
Finally, the last line calls failwithf which has no replacement yet :(

The problem with replacements is that you need to emulate the whole experience in JS, and FSharp.Data is a really complex and advanced project. I'd suggest trying to code a simple JSON type provider specific for FunScript using NewtonSoft.Json at design time and then erasing to native JS object creation. This would be much simpler and will likely cover your needs (and you can also use floats instead of decimals). I always say the same but... I'll also try to work on it when I have time ;)
Of course, it's also possible to implement all the features mentioned above in FunScript so the whole FSharp.Data code can be compiled to JS. This would also be beneficial for other projects too.

Not so bad. I might be not so far.

I can get rid of match with type casting with clumsy code using direct casts and if else clauses.
The same holds for null checking.
failwithf, also easy to replace.
Thank you for your help.


Ignore SIGPIPE for systemd

Fixes #13.

@nojima PTAL.

The following program exits with "broken pipe" when we execute go run hoge.go | head -n3.
This means that signal.Ignore does NOT ignore the SIGPIPE!!
package main

import (
        "fmt"
        "os/signal"
        "syscall"
        "time"
)

func main() {
        signal.Ignore(syscall.SIGPIPE)

        for {
                fmt.Println("Hello")
                time.Sleep(time.Second)
        }
}

What a fXXking behavior!

LGTM!!!


Create command for comparing across multiple nodes

Do sawnet compare --help for usage.

There are a few gross things in here that I need to fix, but Andi should be able to use it as is

I believe that the new "sawnet" CLI should be documented in the CLI Reference.  You can follow the model of other parent-commands-with-subcommands, such as "sawtooth block" or "sawset". I'm available to help (aka edit the doc information).

Fixed gross things

Do test you actually have to do sawnet compare-chains --help

Added an okay implementation of --tree.


Add exclude_columns to DropNullRowTransformer

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (20cb397) to head (4c31c69).
Report is 15 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #287   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           41        41
  Lines         1072      1072
  Branches        41        41
=========================================
  Hits          1072      1072

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Feature request: "Up to" button in file dialogs

It would be cool if File Dialogs will have this button - sometimes happens when you accidentally pick wrong folder and want to go back. But it cannot done in proper way. You need reopen file dialog again and complete full folder path again

Hi @LaineZ, thanks for the suggestion. I'll look into implementing this for the next minor release.


Error: Unknown subtree

Hi,
I am getting the error in the subject when trying to add a subtree. The remote is added OK, but then _cmd_add method is called a 2nd time and the 2nd arg becomes --prefix={path/to/repo}.
I haven't dug too deep into the shell.js but it looks like this line:
shell.execute('git', ['subtree', 'add', '--prefix=' + config.localFolder, subtree, config.branch, '--squash'], callbackAsync, function(data) { process.stdout.write(data) });

Is somehow calling _cmd_add.
I put in a check to shift to the 3rd arg which is the key to the subtree config but it appears to get caught in a loop, calling _cmd_add.
I'm running:
git 2.5.0
npm 2.12.1
node 0.12.7
Let me know if I can provide any more information.
Thanks!

Hi,
I didn't tested with git 2.5.0. Could you provide the output error to have more info?
Which OS are you using?

I've tested some commands in windows with 1.9.5 and ubuntu with 1.9.5 and 2.5.0 and for me it's working.

Hi, Thanks for testing!
The error is exactly as thrown in the code "Error: Unknown subtree".
I'm running OS X 10.10.4.

This error is shown if no configuration exists for the subtree name in the command. Could you paste your subtrees.json (removing private data) and the command you executed to try to test in my side?

It is reading the config correctly on the first execution of _cmd_add, as I mentioned, however that method is being called again with the wrong argument signature.
(Original report)

The remote is added OK, but then _cmd_add method is called a 2nd time and the 2nd arg becomes --prefix={path/to/repo}.

If there was no config, the remote add would have failed.

Hi, I've been looking into this, and I cannot reproduce your problem. I'm really sorry.

Hey no problem, feel free to close. It might be some sort of Git CLI weirdness from an alias. Thanks for looking into! Great project!


Moving from tbl_islist to islist since tbl_islist will be depecrated in neovim version 0.12.

Warning is being given in neovim version 0.11, this solves the issue for those using it.

Thank you for letting me know.
I want to keep lsp-zero compatible with Neovim v0.8, so you can't use vim.islist like that, you have to check if it exists first.
Below the state variable you can do this.
local islist = vim.islist or vim.tbl_islist

Then use islist in the function s.is_keyval

Oh okay, didn't think about the backwards compatibility, done! See if it's okay now.
Can I squash those commits in merge?

It's all good.


Support for etag

We know an operation supports etags when those 4 headers are present:

if_match
if_none_match
if_modified_since
if_unmodified_since

In TypeSpec, if the ConditionalRequest trait is used, they would be present:
https://github.com/Azure/autorest.python/blob/fa885f032ea574cb4617d5e64da182b185df72a0/packages/typespec-python/test/generated/azure-core-traits/_specs_/azure/core/traits/_operations/_operations.py#L51-L54
When we know an operation supports etag, we need to expose two parameters:

match_condition: using the enum azure.core.MatchConditions
etag: the etag in question

See guidelines: https://azure.github.io/azure-sdk/python_design.html#conditional-request-methods
And then the code would translate for the things to call the 4 headers.
This has already cadl-ranch supports with the "traits" file

resolved by https://github.com/Azure/autorest.python/pull/2013


[Addition]: Heltec Cluster in US (5 HS)

Hotspot b58 Addresses
11XNBCsq3AtB3zo5RHVxkmTupiAnN3dke7TDVuvLKcrnh4BL1cS
1126HRR2zaS2j53fXJ6mJSiXMW4M4U4eFP7RxSgGu2HhzotAgrob
112ok8o3taWJY2wojZWwgV7MfctiP9HVuWyUXvj2AMP1XWyMLesu
118twBX8XAnCYGmSbRyMkH2KBeKesGBoGsHWPDdK1LgM2DkYZXA
11B8vtZsCznF9SenyVREd7TpK9Wz5T5AuSV25GXSArXz3orLZoo
Discord Handle
No response
Reason(s)
Self-witnessing cluster being constantly adding to the same spot.

Hey hex. Report this acc.
https://github.com/hexP1

Hey hex. Report this acc. https://github.com/hexP1

Thanks. I reported the individual.


Memory Leak?

MWE (less connection to a database with a large table):
using LibPQ

# This works fine if you run it _before_ doing LibPQ stuff.
# Allocates about 28GB of RAM (fine on my machine if not much else
# is going on. Tailor this to consume lots of memory, but not more
# than you might reasonably have available in a Julia session with
# nothing else going on).
# Note that this function doesn't return anything, so Julia is free
# to use the memory for other stuff once it's run.
function allocate_large_array_less_than_RAM()
    x = fill(1.0, 3_500_000_000)
    return nothing
end

# Nothing escapes this function, so memory should be available for
# Julia to use once execution is complete.
# The idea is that the amount that this allocates + however much
# allocate_large_array_less_than_RAM allocates should be more than
# the amount of RAM available.
# This ensures that, if the problem is indeed LibPQ failing to free up
# some memory that has been handed over to C, Julia will complain about
# not having enough memory when we run this, followed by
# allocate_large_array_less_than_RAM.
function get_data()
    conn = <set-up-connection>
    result = execute(
        conn,
        "SELECT column from large_table;";
        binary_format=true,
    )
    data = LibPQ.columntable(result)
    return nothing
end

println("Allocating a large array -- this runs fine before we run get_data")
allocate_large_array_less_than_RAM()
println("Getting lots of data")
get_data()
println("Trying to allocate a large array again. Yields an OutOfMemory error on my machine")
allocate_large_array_less_than_RAM()

# Running get_data 10 times seems to increase memory usage.
# On my machine, this eventually kills my process, and it appears to be
# because memory usage continually increases with each iteration
# (I'm just staring at htop).
for _ in 1:10
    get_data()
end

Based on the above, this looks like a memory leak.
For reference, I have 32GB of RAM and 0 swap.
edit: julia 1.7.3, LibPQ 1.13.0

question:

calling  Base.close()  Method  ( "Clean up the memory used by the PGresult object. The Result will no longer be usable." ) -  helps?

As I see - there are 10 new "conn = " .. without "close()"

Interestingly, this doesn't seem to make a difference (tested locally, the issue persists).
I think the fact that we have finalisers explains this.
The PGResult has a finaliser attached to it here, so that shouldn't be a problem.
Additionally, the connections appear to have a finaliser attached to them here, and note that the implementation of Base.close for connections appears to do similar things to what the finaliser does (I don't know enough about how @async is handled to know if there are differences though).

The other thing to say is that my system appears to be allocating quite a lot more memory than I would have anticipated. In particular I'm downloading roughly 160 million Float64s, which should occupy (very roughly) 1.5GB of RAM. In practice I think closer to 5GB is being allocated -- I don't know whether this is at all relevant, but though I would mention it in case it is.

I can't reproduce this on Julia 1.7.2, LibPQ 1.13.0 . Running on MacOS 12.4 under Rosetta.
This is the code I've run - I'm using a data-generating query instead of reading data from a table:
using LibPQ

function connection(f, dsn::AbstractString)
    conn = LibPQ.Connection(dsn)
    return try
        f(conn)
    finally
        close(conn)
    end
end

_localhost_dsn() = "<snip>"  # My postgres server connection details
local_connection(f) = connection(f, _localhost_dsn())

function get_data(n::Integer, not_null::Bool)
    return local_connection() do conn
        r = execute(
            conn,
            "SELECT s.data::float8 FROM generate_series(0,$n,0.1) AS s(data)";
            binary_format=true,
            not_null,
        )
        LibPQ.columntable(r)
        return nothing
    end
end

for i in 1:10
    println(i)
    get_data(4_000_000, false)
    GC.gc()
end

What type & how many rows were you retrieving in your get_data? If I increase the number of rows in the example above by a factor of 10, it still seems to be OK.
FYI, in my case I tried both not_null=true and not_null=false, and didn't notice any material difference.
The only thing that seemed to make a temporary difference was commenting out the call to GC.gc(). But if I made that call after the loop instead, I'd get back to somewhere sane.


run alembic migrations instead of using sqlalchemy to migrate test db

Initial change required for work on #165.
Currently the tests do not seem to test the actual alembic migrations but instead use sqlalchemy directly to build the DB schema. I guess this is problematic because it's not really testing what's in prod.
Because as part of #165 I'd like to use a DB trigger it makes sense to instead apply the alembic migrations so that it can be tested. The existing test setup wouldn't add the trigger.

Not sure why the github actions workflow isn't running

Not sure why the github actions workflow isn't running

The CI is currently set up only to run when a PR is opened. I need (or you could if you fancy it) change this so it runs on every change

@peterdudfield I've fixed this PR and also added #171 to add the synchronize trigger.

@peterdudfield yep it's ready


v1.2.4

Codecov Report
Patch coverage: 100.00% and project coverage change: -0.05 :warning:

Comparison is base (6c2d774) 96.30% compared to head (ee49511) 96.25%.

: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
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #13      +/-   ##
==========================================
- Coverage   96.30%   96.25%   -0.05%
==========================================
  Files           3        3
  Lines         162      160       -2
  Branches       31       31
==========================================
- Hits          156      154       -2
  Misses          3        3
  Partials        3        3

Impacted Files
Coverage Δ

pdcast/core.py
95.89% <ø> (ø)

pdcast/types.py
100.00% <ø> (ø)

pdcast/__init__.py
100.00% <100.00%> (ø)

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

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


Error setting targetHeatingCoolingState: socket hang up

Hei,
i become this Error in the homebridge Log File but i can set theHeatingCoolingState.
My ESP8266 handler:
server.on("/targetHeatingCoolingState", handle_targetHeatingCoolingState);
void handle_targetHeatingCoolingState () {
String value = server.arg("value");
tarState = value.toInt();
Serial.print("\n tarState: ");
Serial.println(tarState);
}
thanks for your request!

Hi there, I believe you are having this issue because you are not returning an HTTP 200 OK status response back after receiving a request .
See line 157 of this script to see how to properly handle requests.


Limit workspace for cudnnGet results

Description
This PR applies the workspace limit when using cudnnGet (currently only the cudnnFind path is limited by the workspace size). This fixes problems like #14029.
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[x] Changes are complete (i.e. I finished coding on this PR)
[x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[x] Apply workspace limit to cudnnGet path of choosing cudnn algo

@mxnet-label-bot add [Operator, pr-awaiting-review]


[Windows] Final Fantasy XIV seems to run in exclusive fullscreen even when set to borderless

I'm playing Final Fantasy XIV. It uses DirectX 11 and is set to borderless fullscreen mode. There are various third-party programs that provide helpful information for this game in the form of on-screen overlays.
I recently started using DXVK, and was very pleased to see that it has helped resolve some issues I was having with DirectX 11. However, I've also noticed that none of my overlays are working anymore. It is as if the game is running in exclusive fullscreen mode, instead of borderless mode.
I did a search around, and I found the old issue #1397. As far as I can understand from this, setting the game to borderless should work, but it isn't working.
Software information
Final Fantasy XIV, set to use DirectX 11 and borderless fullscreen mode.
System information

GPU:  AMD Radeon RX 5700 XT
Driver: <IP_ADDRESS> and/or 30.0.15021.7000
Wine version: N/A
DXVK version: 1.10.1

Apitrace file(s)

Not sure this is applicable as I'm trying to use this on Windows rather than Linux.

Log files

Not sure this is applicable as I'm trying to use this on Windows rather than Linux.

This is not really a bug, Vulkan doesn't really have the concept of exclusive fullscreen mode the same way that DXGI does, so drivers on Windows tend to "optimize" Vulkan applications into exclusive fullscreen mode because it gives them a slightly faster presentation path.
TL;DR won't/can't fix, especially since this is a complete non-issue on Linux.

In the dxvk.conf file try setting dxgi.tearFree = True and dxgi.syncInterval = 0

Facing the same issue on another MMO called Soulworker. Borderless Windowed runs Exclusive Fullscreen. I have apps showing on top of the game generally usually (i.e. a DPS parser) and Exclusive Fullscreen shows on top of such apps no matter what.
Would be interesting if someone found a workaround to the problem. Will try the one proposed by @vlad54rus once I get home and report back.

Thank you for the suggestion. Unfortunately, I tried it and it didn't make any difference. I agree, it would be great if there were a workaround to this. But if it isn't possible, then I understand.
For the record, I am a Linux user, but I'm still stuck on a Windows virtual machine for my gaming as one of my games still uses anti-cheat software that refuses to work on Linux. Thanks for all your hard work on this.

@AFNGP Are you on AMD or NVIDIA? Do you still have this issue?

@vlad54rus I'm on AMD, and tried those settings, overlays such as volume control didn't work. Happy to try if you have other suggestions, ty


add columns to edx learners

What are the relevant tickets?
https://github.com/mitodl/hq/issues/4460
https://github.com/mitodl/hq/issues/4425
Description (What does it do?)
This adds the columns latest_program_cert_award_on and ever_completed_program to the stg__edxorg__s3__program_learner_report table. Currently only 4 records are making it into the intermediate program cert table (see https://github.com/mitodl/hq/issues/4460) because the current record program completion boolean is just set to 'false' when the person actually completed the program. We need a way to identify if they ever completed a program.
there will also be other intermediate changes following this PR
How can this be tested?
dbt build --select stg__edxorg__s3__program_learner_report

The code works except ever_completed_program is not a boolean.
Also just a question, do we need the existing columns user_has_completed_program and program_certificate_awarded_on if the downstream intermediate model is going to use these two new columns instead?

I'm going to leave those columns for now. They have a lot of downstream dependencies in redash reports and intermediate tables but as we switch things over we can come back and remove them i think.

The change looks good.
Related to my question, I wasn't clear but what I meant is instead of creating two new columns, we could update the source and definition of user_has_completed_program and program_certificate_awarded_on. So there is no need for upstream changes as everything will flow through.

The change looks good.
Related to my question, I wasn't clear but what I meant is instead of creating two new columns, we could update the source and definition of user_has_completed_program and program_certificate_awarded_on. So there is no need for upstream changes as everything will flow through.

o good point I think I'll change it to that before I merge


docs: removed hard code faucet url

Is the volumes possible to do?

I believe yes if you run all services (api-node and rest)in the same repo.
I will remove it, so it won't confuse others.


[IRGen] Fix crash when trying to compile _Atomic(_Bool)

Fixes rdar://72999296. Previously an LLVM-side patch (https://reviews.llvm.org/D94854), but decided to fix this on the Swift-side after discussion with John.

@swift-ci please smoke test

@swift-ci please smoke test

Fixed to use CreateZExtOrTrunc.
@swift-ci please smoke test and merge

Fixed to use CreateZExtOrTrunc.
@swift-ci please smoke test and merge


Simple fmt of swagger gen

Description

run make gen to fmt the swagger generated bundle yaml
Motivation and Context

How Has This Been Tested?

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Codecov Report

Merging #551 (13a87ad) into main (b143c3a) will not change coverage.
The diff coverage is n/a.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@           Coverage Diff           @@
##             main     #551   +/-   ##
=======================================
  Coverage   81.07%   81.07%
=======================================
  Files          28       28
  Lines        2256     2256
=======================================
  Hits         1829     1829
  Misses        337      337
  Partials       90       90

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


Some styling findings

If I remember correctly before big styling update the stick wasn't cut.

Also here the size of joystick is a little to big or container to small

Here is one picture from old version

The joystick and nipple cutting of comes from this css class:
/* Dash adds tons of classless divs that we need to expand to the available space */ body, div:not([class]) {   height:100%;   overflow: hidden; }
Which removes overflow on empty divs.
This removes an empty div in joystick.py:
joystick = Joystick(id=ids.JOYSTICK, size=230, angle=0, force=0)
And this allows the nipple to overflow:
.daq-joystick--light > div { 	overflow: visible !important; }

Oh, and this to prevent the scrollbar from appering when moving the joystick:
.offcanvas-body { 	overflow: hidden; }

An idea how to fix?

https://github.com/EinEinfach/CaSSAndRA/pull/85


Feature/scopeit

Scoper and its Namespace class generated and tested on Demo language

Build faalt (zie boven).  Did you build and test locally?

Wat bedoel je met zie boven?
En ja, ik heb alles lokaal gebouwd en getest.
From: Jos Warmer<EMAIL_ADDRESS>Sent: Wednesday, March 4, 2020 5:06 PM
To: projectit-org/ProjectIt<EMAIL_ADDRESS>Cc: annekekleppe<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [projectit-org/ProjectIt] Feature/scopeit (#45)
Build faalt (zie boven). Did you build and test locally?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/projectit-org/ProjectIt/pull/45?email_source=notifications&email_token=AEFEVK7FURMUALHIVWO7IQLRFZ35ZA5CNFSM4LBL35HKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENYVOPQ#issuecomment-594630462 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AEFEVK7OJJCZOGJTP4LHHXTRFZ35ZANCNFSM4LBL35HA .  https://github.com/notifications/beacon/AEFEVK4QPZQNK7EX34S2OOLRFZ35ZA5CNFSM4LBL35HKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENYVOPQ.gif


Remove subnet delegate

What this PR does
do not merge. is use this to test the cluster creation without subnet delegate
Jira:
Link to demo recording:
Special notes for your reviewer

AKS is fixing a bug on their side.  Don't need this as we're doing thet correct thing.  Closing :)


Fix SUBCASE infinite loop

Insert and check same hash for fullyTraversedSubcases

Description

Change the saved hash to match the hash later checked in the Subcase constructor.
This fixes an infinite loop that I encountered with at least two different nested SUBCASEs inside a loop.
TEST_CASE("Infinite")
{
  for (int idx = 0; idx < 2; ++idx)
  {
      SUBCASE("A")
      {
          SUBCASE("SUB A")
          {
              std::cout << "sub a" << std::endl;
          }
      }
      SUBCASE("B")
      {
          SUBCASE("SUB B")
          {
              std::cout << "sub b" << std::endl;
          }
      }
  }
}

I encountered this issue when bumping from 2.4.6 to 2.4.9. The impacted test did not have all its asserts trigger previously, related to https://github.com/doctest/doctest/issues/597. After the change in this PR all assertions are triggered and the test does not get stuck in an infinite loop.

Might be related to https://github.com/doctest/doctest/issues/684.


one feedback about your module

Very good and user friendly.
I train my model on a non-GPU PC and the training time of 660000 sentences corpus is less than 30 mins.
Very amazing.
My only concern is about accuracy because 20 epochs is not enough for my corpus ,maybe due to huge size.
The loss , val_loss are all about 50. sth.
I am now increasing the epochs from 20 to 100 and see the result.
Thanks for your nice work

you can draw the learning curve and see whether it had converged.


VLC doesn't play from SMB share

Hi!
Love the crouton concept!  Only problem that I've had thus far is that VLC will not play any video files from my SMB share.  My Samba server is the Synolog DS212j NAS.  I can connect to it just fine, but when I attempt to play a video file, I only see the first frame of the video.  The video will not play.
Any thoughts?
Thanks!

Not to resurrect an old thread, but if anyone has this same issue and was wondering, you can make it work by following these directions: http://jorisvandijk.com/2013/vlc-wont-play-smb-shares/
Summary:

Open VLC
Go to Tools > Preferences
Under the header Show Settings (bottom left), select the All button
Select Input / Codecs > Access Modules > SMB on the left
Enter credentials

This got VLC playing videos via samba for me.

None of the suggestions on this page work using straight ChromeOS. I'm just saying to save people time. I'm sure they work fine with Crouton / Linux.

I tried the comment of "R3vXX commented on Aug 9, 2015", and it worked. But the problem is that there is only one credential, not per shares. So, I cannot use two SMB shares.
Also, this is very awkward. I have already saved the credentials (permanently) for that SM share in the file manager (Thunar), and shouldn't it be used by all applications on the system, like in Windows? I know I may not complain about software I use for free, but this is very, very anti-user-friendly. I mean, I installed the SMB plugin from the Software Manager, and I dragged a file from a SMB share on the file manager to VLC. It only showed something like "An error occurred, check the log for details."  And I had no clue where the log was.
A Google search gave me some txt file on the Windows profile, but in my case it is Linux. I kept searching and found that there is no log file in Linux but I must see it in "Tools -> Messages". The developer of the error dialogue just assumed an average user just know there the log was. Why couldn't he just put a details button to the dialogue?
I examined the log and found something like "access denied". Why couldn't the SMB module just show credential-input dialogue instead of failing? And there was no hint how to solve the problem. So I had to search Google again and found this page. The credential-input was buried deep in the preference dialogue (not even be accessible from the default view).
I mean... it seems as if those developers assume all users are just as knowledgeable as themselves.

I know this is old...  But want to get this out here since I was having the same issue.
Turns out I need to install the package gvfs-fuse.  That will make a mount point under the user folder to allow applications to access the CIFS share.

9 year thread!  Throwing this out there.... was searching for an answer for the same problem happening on Armbian.  Cure for me was      sudo apt install vlc-plugin-samba


Uncaught TypeError: grid.setContext is not a function

Expected Behavior

Chart renders
Current Behavior

Uncaught TypeError: grid.setContext is not a function is thrown and chart is not rendered. Legend does render.
Possible Solution

Steps to Reproduce

I cannot reproduce this outside of the codebase its in which cannot be shared. :/ Mainly just looking for debugging tips as this is an internal Chart.js function throwing. The code which invokes chartjs such that it throws is inside a Vuejs composition function which does:
new Chart<'bar', Point[], string>(canvasRef.value, {
        type: 'bar',
        data: {
          labels: ['a', 'b', 'c'],
          datasets: [{ label: 'ad', data: [{ x: 1, y: 2 }, { x: 2, y: 2 }, { x: 3, y: 4 }] }],
        },
      })

I've ensured that all chartjs defaults overrides have been commented out so this is the only invocation of any chart.js code. This is occurring while I am migrating from chartjsv2 to chartjsv3.
Context

Environment

Chart.js version: 3.4 and 3.5
Browser name and version: FireFox
Link to your project: cannot

This was caused by placing the Chart object inside a @vue/composition-api ref which attempts to apply Vue's dependency tracking metadata down the tree (the Chart) using proxies which interferes with Chart.js's internal proxy revolvers. Placing the Chart inside a shallowRef instead of a ref solves this problem. Nothing to do here re: Chart.js, but might be useful for someone writing a Vue3 vue-chartjs or any other kind of harness for Vue.


Undesired interaction between figaro/active_record for rake db tasks (rake runs twice for db tasks)

Not sure how to report this, but active record's (4.2.x) default behavior has some undesired side-effects on rake tasks when used with figaro. The rake db:* tasks run twice in the dev environment when RAILS_ENV is not set:
The following configuration:
application.yml
development:
  MYSQL_DATABASE: rails_dev
  MYSQL_USER: rails_dev
  MYSQL_HOST: <IP_ADDRESS>
  ...
test:
  MYSQL_DATABASE: rails_test
  MYSQL_USER: rails_test
  MYSQL_HOST: <IP_ADDRESS>

database.yml
development:
  adapter: mysql2
  database: <%= ENV['MYSQL_DATABASE'] %>
  username: <%= ENV['MYSQL_USER'] %>
  password: <%= ENV['MYSQL_PASSWORD'] %>
  host: <%= ENV['MYSQL_HOST'] %>

test:
  adapter: mysql2
  database: <%= ENV['MYSQL_DATABASE'] %>
  username: <%= ENV['MYSQL_USER'] %>
  password: <%= ENV['MYSQL_PASSWORD'] %>
  host: <%= ENV['MYSQL_HOST'] %>

results in rake tasks being run twice when RAILS_ENV is not specified:
(assuming one's db does not have rails_dev and rails_test defined)
$ bundle exec rake db:create --trace
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:create
rails_dev already exists

This is more obvious in the case when you are trying to drop the dbs:
$ bundle exec rake db:drop --trace
** Invoke db:drop (first_time)
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:drop
Database 'rails_dev' does not exist

$ bundle exec rake db:drop --trace
** Invoke db:drop (first_time)
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:drop
Database 'rails_dev' does not exist
Database 'rails_dev' does not exist

This behavior is caused by the active record lib/active_record/tasks/database_tasks.rb trying to be super-extra helpful and setting environments to an array containing both development and test, instead of leaving it alone:
  def each_current_configuration(environment)
        environments = [environment]
        # add test environment only if no RAILS_ENV was specified.
        environments << 'test' if environment == 'development' && ENV['RAILS_ENV'].nil?

Net result is that the rake tasks are run twice due on development environment when RAILS_ENV is not specified, due to how figaro is hooking into rails.
A workaround is to specify RAILS_ENV on the command line or in your environment, but what sane person would do that:
$ RAILS_ENV=development bundle exec rake db:create --trace
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:create
$ RAILS_ENV=development bundle exec rake db:drop --trace
** Invoke db:drop (first_time)
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:drop

So there you have it. I haven't looked into figaro's internals to figure out whether or not this is fixable.
Hopefully this report will save folks some time and hair from being pulled out in frustration.

It is not run twice. It is run once for each environment (dev & test).
But from database.yml perspective all properties have the same values as where loaded into ENV at the moment of application initialization with the exact environment in that exact moment (e.g. development). In your example it drops rails_dev for dev env and then drops rails_dev for test env.
The problem is that figaro respects Twelve-Factor App, and Rails does not, it tries to be in two envs in a single run. Or does, in some way... Actually, if you set RAILS_ENV  the things become clear.
Actually, there should not be environments in the database.yml when you're using figaro. Because "environmental" configs are defined by an explicit external set of environment variables. I'm hardly sure that Rails would like this.

Thanks for the explanation. So how do I solve this without having to run rake tasks like this each time?
RAILS_ENV=development bundle exec rake db:create

Write your own, I guess.
Nothing stops you from writing these two lines of ruby:
puts `RAILS_ENV=development bundle exec rake db:create`
puts `RAILS_ENV=test bundle exec rake db:create`

put wherever you want, e.g. in a custom task db:create:all. You will get a single task.
Rails is doing too mach, you know. Wants to be a swiss knife. It's often not even possible to combine it with more clear and flexible approaches, like the one figaro implements.

Same problem for me, and executing RAILS_ENV=development bundle exec rails db:create also tries to create the db twice. @arantir @laserlemon have you any solution?

Having the same problem, any workaround?

I ended up just using the test environment. Rails itself tries to be too helpful and runs for both envs (always does the test one)


Problem installing and compiling

The script is having trouble installing and compiling the extension below:
Fetching nokogiri 1.6.8
Installing nokogiri 1.6.8 with native extensions

OK

I am facing the same issue.
Did it get resolved?


#1290 made all the options in the navbar working

#1290 made all the navbar options in the learn more website working
https://github.com/user-attachments/assets/cf721e35-93ed-48d4-a56e-ab17227f77bd
it is requested to please merge this as it can make the website more presentable

@mishrasushant101 Please resolve the conflicts in the mentioned files. Ensure you pull all the latest changes before pushing your feature/bug fixes to the main branch. After resolving the conflicts, please open a new PR for review.
Thank you!


Release 1.2.1 Hotfix: App Docs

@mikewilburn @mhdostal i'm requesting your review on a hotfix PR that introduces updated app UI imagery that reflects the app UI in the condition at this release.
Can we prioritize this PR? The project release 1.2.1 is currently in master and we cannot publish a formal release until this PR has merged as well. Thanks!

@esreli just beginning to review, but one initial observation - do you intend to increment the release version for this change to 1.2.2? Should we update RELEASE.md to call attention to these small improvements?

https://github.com/Esri/data-collection-ios/pull/252#issuecomment-675160244
Nope, that increment has already happened here. Merged the PR before updating the doc, my mistake!


[SPARKR-163] Support sampleByKey()

Only the "Support sampleByKey()" commit for this PR.
Please ignore the two "modified: pkg/R/RDD.R" commits, which are for [SPARKR-199].
Sorry about that.

One semantic behavior that we should discuss: with the current patch, if fractions omit some keys that actually exist in the RDD, the whole sampling still goes through and just ignores those items:
rdd <- parallelize(sc, 1:2000)
makePairs <- lapply(rdd, function(x) { if(x%%3 == 0) list("a", x) else { if (x %% 3 == 1) list("b", x) else list("c", x) }})
fractions <- list(c("a", 0.2), c("b", 0.1)) # omits key "c"
collect(sampleByKey(makePairs, FALSE, fractions, 1618L)) # still okay

However, in PySpark the above will throw an error:
  File "/Users/zongheng/workspace/spark/python/pyspark/shuffle.py", line 252, in mergeValues
    for k, v in iterator:
  File "/Users/zongheng/workspace/spark/python/pyspark/rddsampler.py", line 118, in func
    if self.getUniformSample() < self._fractions[key]:
KeyError: 'c'

        at org.apache.spark.api.python.PythonRDD$$anon$1.read(PythonRDD.scala:135)
        at org.apache.spark.api.python.PythonRDD$$anon$1.<init>(PythonRDD.scala:176)
        at org.apache.spark.api.python.PythonRDD.compute(PythonRDD.scala:94)
        at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:277)
        at org.apache.spark.rdd.RDD.iterator(RDD.scala:244)
        at org.apache.spark.api.python.PairwiseRDD.compute(PythonRDD.scala:307)

I think we should be consistent with PySpark.
Also, @hqzizania could you investigate the symmetric case where fractions contains a key that does not exist in the RDD, and compare SparkR & PySpark's behaviors?

@concretevitamin I have investigated it. In the case where fractions contains a key that does not exist in the RDD, SparkR (in this current patch) & PySpark (spark-1.3.0) both ignore it and finish the sampling of the keys that existing in the RDD. If want to be consistent with PySpark, the only thing we should improve is to make SparkR throw an error in the case you said like PySpark?

@hqzizania Thanks for investigating, indeed that'd be good to do (and we should document these two special behaviors in the method's doc).

Thanks. I open https://github.com/hqzizania/SparkR-pkg/pull/2 fixing some style nits; with that this is good to go :)

Merging in master & cherry-picking to sparkr-sql.


Behavior change from .NET Core SDK 3.0.101 to 3.1.100 when generating MenuItems in WPF

I write a WPF app targeting .NET Framework 4.7.2 and added a global.json to control which version of dotnet CLI tools to be used in building and deploying.
In this app I define a menu of MenuItems of which some contain MenuItems as their children (a submenu). In one place I set the UsesItemContainerTemplate-property of the parent to true and define an ItemContainerTemplate containing a MenuItem at the root. As expected the parents ItemContainerGenerator respects this template and does not generate a menu item around this parents children.
After I switched the SDK version in global.json from 3.0.101 to 3.1.100 I noticed that this behavior changed. My submenuitems now are wrapped into an extra MenuItem.
I created a super-simple example-app that reproduces this issue. It can be found in this GitHub repo alongside with screenshots of the issue.
After checkout you can build and run this project in VS16.5 and it will behave as (I) expect it. Then you can change the SDK version in global.json to 3.1.100 and rebuild it in VS. When you run it now, you will see the unexpected result.
On a side note: When running dotnet clean/run from the console, the unexpected behavior always occurs, regardless of the SDK version defined in global.json. Unfortunately my knowledge of the dotnet / MSBuild system is not sufficient to further investigate here.
Also, I am not 100% sure whether this is the right place to post this issue. If there is a place better suited for my issue, please let me know and I will move this issue.

@livarcocc

This seems like a WPF issue. Adding @rladuca and @vatsan-madhavan


Init fails, due to next.config not having the expected file extension.

Config File
{
  "hasSrc": true,
  "packages": [
    "shadcn-ui",
    "drizzle"
  ],
  "preferredPackageManager": "npm",
  "t3": false,
  "alias": "@",
  "analytics": true,
  "rootPath": "src/",
  "componentLib": "shadcn-ui",
  "driver": "sqlite",
  "provider": "turso",
  "orm": "drizzle"
}

Describe the bug
when running npx kirimase init the cli is unable to find a next.config.mjs file. I currently has a legacy dependency (contentlayer) in this project and because of it we are forced to use the .cjs extension instead.
To Reproduce
Steps to reproduce the behavior:

Rename next.config.mjs to next.config.cjs
Run npx kirimase init on the project root
See error

Expected behavior
I hope that the cli would be robust enough to able to check to see if any next-config is available and apply the changes to that file regardless of the extension used in the project.
Screenshots
~
Desktop (please complete the following information):

OS: macOS Sonoma
Browser: Arc

Additional context
n/a

any fix?
I installed a fresh next application and I get this error


[9.4.x] ISPN-9937 removing broken javadoc links

@karesti here's the backport for 9.4. thank you.

@tristantarrant can we backport ?


berkeley-schema-fy24 must migrate string "type" to object types consisting of the instances' class' class_uri

The berkeley-schema-fy24 is much stricter about the type slot, compared to the current nmdc-schema
Currently the type of a WorkflowExecutionActivity is

An optional string that specifies the type object. This is used to allow for searches for different kinds of objects.

The berkeley-schema-fy24 requires that all data instances of nmdc-schema classes must reiterate the class' class_uri as a CURIe.
Theoretically there should be a good example of this pattern (for some WorkflowExecution) in the example data files directory already but I haven't found one yet.
cc @Michal-Babins @mslarae13

Thanks for bringing this to my attention, @turbomam.
Was there a specific PR for this change (the change to the type slot)? I think knowing its URL will help us (a) name the Migrator module and (b) get more info if we need it.
Is creating a CURIe something that involves obtaining something from the outside world (e.g. "minting" or "registering" something) or is it just a matter of concatenating/processing various pieces of information that's already available in the Mongo document? If it's the former (i.e. involves accessing the outside world), I may add something to the "adapter" class I'm currently working on.

this PR added the type slot to all classes:

https://github.com/microbiomedata/berkeley-schema-fy24/pull/10

the new definition of type can be seen in that PR's src/schema/basic_slots.yaml
it also adds some test that check classes for their inclusion of the type slot

Notes from 5/21/2024 migration squad meeting

type slot in nmdc-schema has string range
type slot in berkeley-schema-fy24 has to be a class_uri

uses the "designates type" meta slot (https://linkml.io/linkml-model/latest/docs/designates_type/)
rule: all classes must assert their class_uri
rule: all classes must be able to use the type slot (without reasserting that capability if they inherited that capability)
rule: all instances must assert their own type value

See: https://github.com/microbiomedata/berkeley-schema-fy24/tree/main/tests

test_all_classes_assert_a_class_uri.py
test_all_classes_can_use_type_slot.py
test_inherited_slots_not_reiterated.py

Check whether https://github.com/microbiomedata/nmdc-schema/issues/1607 encapsulates this issue.

@turbomam  can this be closed? I believe in berkeley all classes now have type required with a range of a curie.


Suggestion: Make OnInputClicked from UNETSharedHologram sample optionnal and disabled by default

Overview
Hello everyone, I suggest that the method OnInputClicked of UNETSharedHologram should work optionnaly (for exemple a serialized boolean has to be enabled in the editor component window). Because I lost a lot of my work time to look why airtaping on some objects was starting a tap to place mode. Because our project is not small, it was not obvious that this bug was coming from this feature.
Unity Editor Version
2018.1.2f1
Mixed Reality Toolkit Release Version
2<IP_ADDRESS>

Just don't register the game object with the input manager

Just don't register the game object with the input manager

It doesn't sound like it's an issue with a global listener, but the action of actually tapping on an object, where there's no registration component.
I'll take a look at the prefab today.

Closing issues older than 180 days. If this is still an issue, please reactivate with recent information.


Could you add another wing to the map?

Could you add another wing to the map? Because in reality, most airplanes have the name of the airline on one side and the registration number on the other side.

I can't access to the 3d models

I can't access to the 3d models

well


Make the buttons bigger

And consider moving them to the bottom bar on phones.

The UI doesn't always function for me on a 7" tablet (Samsung). The basic problem is that I punch a chapter button, sometimes it selects and sometimes doesn't, and then nothing happens. I have to go back out to the main menu or something to get into that chapter. Sometimes it works to go to a previous chapter and then scroll in sideways. Though scrolling is pretty unresponsive, too. And then sometimes for no reason a random light touch at the middle right or left will send me to another chapter. So, yeah, bigger buttons would be nice. More dependable.


Post cloud.gov Pages newsletter update to cloud.gov News

Using the content that was prepared for the cloud.gov newsletter, cross post the information to the cloud.gov News section

Closing to to completion.


Combine CA French and English forms

We should switch to using the MergeConfig and the Combined tab. Currently we read from the English form

@awong-dev from #data-ca it seems like you've fixed this? Can I close?

yup. closing.


More Graceful Handling in the Votes Controller if User is Not a Party to the Request

Right now, the other_party_of method will return nil and cause an error if a user who is not affiliated with a request tries to cast a vote.
There should be more graceful handling of this. My suggestion would be to make a before_action callback that verifies the association, similar to what was done in the Messages Controller.

Handled in Pull Request 108


Add Sync Icon script for Mobile/Tablet

Retrofit this snippet to work for ebullient
https://forum.obsidian.md/t/mobile-make-sync-icon-always-visible/31780

Waiting on this change as 1.6 messes with the icon.

Got the final designs for 1.6 icon, so will start working on this.


vingo: seasons

Add field to season struct

is_current (in which season the current date is)

Add endpoints
/seasons -> gives all seasons except for the ones starting in the future
/admin/seasons -> gives all seasons

Added in #80


[wip] Mobile Optimization (Badges)

Fixes #24 and #69 (Depending on Device Max Width)
Changes
This will fix the badges on devices with a Max Width of 360px, you can find devices with 360px here.
Reviewers should focus on
@media (max-width: 360px) {
.PostUser-badges .Badge {
width: 20px;
height: 20px;
border-radius: 12px;
line-height: 19px;
margin-left: -72px;
margin-right: 92px;
}
}
Screenshots
None.
Additional Information
Do NOT add any code with @media (max-width: #px) unless given permission by @Nathan2023.

The reason I closed this is because the whole file structure is changed now and this PR won't be any valid.

I'm reopening this and making the changes to the new file.

I marked this as work in progress for you to include all devices in this PR. I transferred the modified file to the new file so you can work on that. After you're complete with all of them, ping me so I'll review and merge it.

@PartialDevAdmin What do you mean?

@Nathan2023 If you're not busy today, can you add some more devices to this?
This is marked for Beta 3.

Closing this because of conflicts and branch stuff.


'dict_keys' object does not support indexing

On lines 306 and 309 of views.py, trying to index a dictionary keys object will fail on Python 3 and result in a server error. The fix is simple: change all occurrences of
base_learner_origin.validation_results.keys()[0]
to
list(base_learner_origin.validation_results.keys())[0]

Thanks for catching this! I haven't written any tests yet, and I really should.. Fixed in release v0.1.2


Usage Command Typo and Suggestion

In the usage command it says to use backslash to open the Cmdr command line. As of a few versions ago it was changed to use F2 by default, but it still says to use backslash in the usage command.
Separate Suggestion: Because the command by default is called 'usage' you should make the window title that it opens named 'Usage' instead of 'About'. Personally, I would just rename the 'Usage' command to about.

In the usage command it says to use backslash to open the Cmdr command line. As of a few versions ago it was changed to use F2 by default, but it still says to use backslash in the usage command.

Thanks. I've updated that command to grab the activation key.

Separate Suggestion: Because the command by default is called 'usage' you should make the window title that it opens named 'Usage' instead of 'About'. Personally, I would just rename the 'Usage' command to about.

I've changed the command to default to about with the alias of usage (to keep backward compatibility. Thanks for the idea.
Both of these are up with V.2.7.3.


Jsfiddle is broken and old

I am trying to use the jsfiddle but it's not working anymore because of the ol-contextmenu code not being available.
I tried to update it myself but the last versions of openlayers and ol-contextmenu have the error of ol/control/Control of another issue.
I got myself a ContextMenu not defined.
I forked the fiddle with the new software to speed up your work

Fiddle fixed, thanks for reporting.
https://jsfiddle.net/jonataswalker/ooxs1w5d/


Transform export from statements

Fixes issue #36

Looks good :) thx for contributing

Thanks! Could you do a new release on npm? The last release was a while ago.

:) done.. thx


I am trying to convert this to Mathematica / MXnet

hangeul =
  StringSplit@
   Import["https://raw.githubusercontent.com/IBM/tensorflow-hangul-\
recognition/master/labels/2350-common-hangul.txt"];
hangeul // Length

d = ParallelTable[
    Rasterize[h] -> h, {h, hangeul[[ ;; ]]}]; // AbsoluteTiming
d // RandomChoice

Which one looks closer to your intentions?
a = NetChain[{
   ConvolutionLayer[032, 5, "PaddingSize" -> 2],
   Ramp, PoolingLayer[2, 2, "PaddingSize" -> 32],
   ConvolutionLayer[064, 5, "PaddingSize" -> 2],
   Ramp, PoolingLayer[2, 2, "PaddingSize" -> 32],
   ConvolutionLayer[128, 3, "PaddingSize" -> 1],
   Ramp, PoolingLayer[2, 2, "PaddingSize" -> 32],
   LinearLayer[1024],
   Ramp,
   DropoutLayer[],
   LinearLayer[hangeul // Length]
   },
  "Input" ->
   NetEncoder[{"Image", {64, 64}, ColorSpace -> "Grayscale"}],
  "Output" -> NetDecoder[{"Class", hangeul}]
  ]

b = NetChain[{
   ConvolutionLayer[032, 5], Ramp, PoolingLayer[2, 2],
   ConvolutionLayer[064, 5], Ramp, PoolingLayer[2, 2],
   ConvolutionLayer[128, 3], Ramp, PoolingLayer[2, 2],
   FlattenLayer[],
   LinearLayer[1024],
   Ramp,
   DropoutLayer[],
   LinearLayer[hangeul // Length],
   SoftmaxLayer[]
   },
  "Input" ->
   NetEncoder[{"Image", {64, 64}, ColorSpace -> "Grayscale"}],
  "Output" -> NetDecoder[{"Class", hangeul}]
  ]

Can you help me with the conversion or point me to a source on the internet / in a book which can?

See https://mathematica.stackexchange.com/questions/211094/manually-converting-tensorflow-models-to-mathematica for current progress.

Is
Mathematica (v12, my third, semi-informed, attempt at manual conversion)
c = {n, s, p} \[Function]
   ConvolutionLayer[n, s, "PaddingSize" -> p(*,"Biases"\[Rule]n*)];
p = PoolingLayer[{2, 2}, {2, 2}];
n = NetChain[<|(*3*)
    "c1" -> {"x" -> c[032, 5, 2], "h" -> Ramp, "p" -> p},
    "c2" -> {"x" -> c[064, 5, 2], "h" -> Ramp, "p" -> p},
    "c3" -> {"x" -> c[128, 3, 1], "h" -> Ramp, "p" -> p},
    "fc" -> {
      "h_pool_flat" -> FlattenLayer[],
      "x" -> LinearLayer[1024],
      "h_fc1" -> Ramp,
      "h_fc1_drop" -> DropoutLayer[],
      "y" -> LinearLayer[h // Length]
      },
    "sm" -> SoftmaxLayer[]
    |>,
   "Input" ->
    NetEncoder[{"Image", {64, 64}, ColorSpace -> "Grayscale"}],
   "Output" -> NetDecoder[{"Class", h}]
   ]~NetDrop~-1

a good conversion of
Tensorflow (v1, source network from an IBM demo project)

v1 complete code
v2 complete code via tf_upgrade_v2

    # First convolutional layer. 32 feature maps.
    W_conv1 = weight_variable([5, 5, 1, 32])
    b_conv1 = bias_variable([32])
    x_conv1 = tf.nn.conv2d(x_image, W_conv1, strides=[1, 1, 1, 1],
                           padding='SAME')
    h_conv1 = tf.nn.relu(x_conv1 + b_conv1)
    h_pool1 = tf.nn.max_pool(h_conv1, ksize=[1, 2, 2, 1],
                             strides=[1, 2, 2, 1], padding='SAME')

    # Second convolutional layer. 64 feature maps.
    W_conv2 = weight_variable([5, 5, 32, 64])
    b_conv2 = bias_variable([64])
    x_conv2 = tf.nn.conv2d(h_pool1, W_conv2, strides=[1, 1, 1, 1],
                           padding='SAME')
    h_conv2 = tf.nn.relu(x_conv2 + b_conv2)
    h_pool2 = tf.nn.max_pool(h_conv2, ksize=[1, 2, 2, 1],
                             strides=[1, 2, 2, 1], padding='SAME')

    # Third convolutional layer. 128 feature maps.
    W_conv3 = weight_variable([3, 3, 64, 128])
    b_conv3 = bias_variable([128])
    x_conv3 = tf.nn.conv2d(h_pool2, W_conv3, strides=[1, 1, 1, 1],
                           padding='SAME')
    h_conv3 = tf.nn.relu(x_conv3 + b_conv3)
    h_pool3 = tf.nn.max_pool(h_conv3, ksize=[1, 2, 2, 1],
                             strides=[1, 2, 2, 1], padding='SAME')

    # Fully connected layer. Here we choose to have 1024 neurons in this layer.
    h_pool_flat = tf.reshape(h_pool3, [-1, 8*8*128])
    W_fc1 = weight_variable([8*8*128, 1024])
    b_fc1 = bias_variable([1024])
    h_fc1 = tf.nn.relu(tf.matmul(h_pool_flat, W_fc1) + b_fc1)

    # Dropout layer. This helps fight overfitting.
    keep_prob = tf.placeholder(tf.float32, name=keep_prob_node_name)
    h_fc1_drop = tf.nn.dropout(h_fc1, rate=1-keep_prob)

    # Classification layer.
    W_fc2 = weight_variable([1024, num_classes])
    b_fc2 = bias_variable([num_classes])
    y = tf.matmul(h_fc1_drop, W_fc2) + b_fc2

    # This isn't used for training, but for when using the saved model.
    tf.nn.softmax(y, name=output_node_name)

How can the Mathematica model be improved to match the Tensorflow version exactly?
Is there a resource anywhere to learn the correspondences between the two?
Specifically, I am not sure about

tf.matmul == ???

Why does uncommenting (*, "Biases" -> n*) cause convergence to either take extremely long or perhaps completely fail (I have not waited)?
Why are the dimensions in different order between the two?

I remember seeing in an answer here that Mathematica was planning a change of orders due to a recent MXNet update - I am not sure which versions are involved / whether this has already happened.

Please feel free to ignore questions 4 and 5.


Fix detection of RHEL 6 ComputeNode

This PR fixes detection of RHEL 6 ComputeNode.
This bug was originally reported by @CreRecombinase in https://github.com/spack/spack/issues/15251 and fixed in Spack's vendored copy of distro in https://github.com/spack/spack/pull/15253
Let me know if you want me to add unit tests for this. https://github.com/spack/spack/issues/15251 has the output of lsb_release -a for the problematic nodes.

Ping @nir0s, any idea why the CI tests failed? I think they just need to be restarted.

Ping ping @nir0s

Ping ping ping @nir0s


feat(on): support declarative on style API

I believes this covers the use case presented in #19, though is rather naively implemented. This covers my need, but perhaps you guys could provide feedback on what you feel is missing.

@mbroadst Thank you and sorry for the late reply! The API has changed with 2.0.0, so this obsolete.


Google Cloud Storage Support (#113)

Update README and imports for Google Cloud Storage

Write Google Storage download and upload methods

Change key to blob for GSClient

Implement pass methods for GSClient

Write live tests for GSClient and GSPath

Unify GSClient methods

Add Mock Google Storage fixtures for testing

Fix Google Storage mock bucket copy_blob method

Change get_bucket method to bucket for GSClient

Update test mocks for Google Storage

Add documentation for Google Storage

Expand authentication options

Update metadata fetcher for GSPath

Add Google Cloud setup action to CI workflow

@wolfgangwazzlestrauss I merged your PR in to a feature branch on the main repo so I can poke at GitHub Actions to see if we can get the tests to pass in CI.
If we have code review comments we will @ you in this PR, thanks!

@wolfgangwazzlestrauss I merged your PR in to a feature branch on the main repo so I can poke at GitHub Actions to see if we can get the tests to pass in CI.
If we have code review comments we will @ you in this PR, thanks!

I'm not a GS expert, but this all looks good to me and now mocked/live tests are passing across all OSes. I'd say this is good to go!
@jayqi do you want to take a peek to confirm and if it looks good merge and cut a release?

I'm not a GS expert, but this all looks good to me and now mocked/live tests are passing across all OSes. I'd say this is good to go!
@jayqi do you want to take a peek to confirm and if it looks good merge and cut a release?


go-jsonnet: add jsonnet-deps and jsonnet-lint

Motivation for this change
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Looks reasonable to me. I don't currently use jsonnet so we should probably find a replacement maintainer. Any interest, @aaronjheng?

@nshalman With pleasure. Shoud I just Add myself to the maintainer list?

@nshalman With pleasure. Shoud I just Add myself to the maintainer list?

Yes please! :)


Remove hackable URL test

This commit removes the “hackable URL” test, which asserts that various whitehall-served URLs are “hackable” all the way up to /government and serve useful index pages. With the migration of the whitehall finders to finder-frontend, there are very few pages left for this test to look at.
The only remaining valid un-migrated paths are:

/government/ministers
/government/fields-of-operation
/government/world
/courts-tribunals

👍 go for it. For context, the test was introduced in https://github.com/alphagov/whitehall/commit/df0ae542b03edfe63195c92251cf2a747393d318.


Parser.feed(chunk) not trigger onParse callback

Hi! According to the requirements I need to use package version 0.0.5.
Here is my code:
// this callback not called
const onParse = (event: ParseEvent) => {
    console.log('event in createParser', event)
    if (event.type === 'event') {
      console.log('on parser event message!', event)
      onMessage(event.data)
    } else if (event.type === 'reconnect-interval') {
      console.log('We should set reconnect interval to %d milliseconds', event.value)
    }
  }

  const parser = createParser(onParse)

  for await (const chunk of streamAsyncIterable(resp.body!)) {
    const str = new TextDecoder().decode(chunk)   // this is actually string
    console.log('before feed', str)     // we see this log (logging is presented below)
    parser.feed(str)
  }

before feed {"text": ["\u0422\u044b \u0432\u0435\u0436\u043b\u0438\u0432\u044b\u0439 \u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430.\n\n### Instruction:\n\u041f\u0440\u043e\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0439 \u044d\u0442\u043e:\nimport * as esbuild from \"esbuild\"; import fs from \"fs\"; import path from \"node:path\"; import colors from \"picocolors\"; import cssModulesPlugin from \"esbuild-css-modules-plugin\";\n\n### Response:\n\u041a\u043e"]}

There are no errors in the console.

What do you mean by this?

According to the requirements I need to use package version 0.0.5.

Do you need to support Node.js versions lower than v14?
Regardless; this is expected, as this is not a valid SSE message:

Ты вежливый ассистент программиста.
Instruction:
Прокомментируй это:
import * as esbuild from "esbuild"; import fs from "fs"; import path from "node:path"; import colors from "picocolors"; >import cssModulesPlugin from "esbuild-css-modules-plugin";
Response:
Ко

I unfortunately do not have time to provide support for non-current versions of this module - v3 has a new parsing implementation, and also has an onError callback that should be helpful.


JVM metrics

Hi
Would it be possible to get jvm metrics included? Or would we be better of using something else for these metrics?
Thanks
David

Hi @dwybourn,
I think we'd want to leave jvm metrics to the application itself (i.e. have the application report them on its own /metrics endpoint and have prometheus scrape that).
This exporter mostly looks at things that are common to all applications (like CPU), and can therefore be tracked inside the cloud foundry platform. By default I don't think we get anything for JVM applications.

Thanks, we'll do that then.


Problem with vertical nav

Code: http://pastebin.com/FGnd0zYv
Hello. Steps to view the problem:

Open page into wide screen (screenshot 1)
Change window size to middle (2)
Change window size to small and click on navbar icon to show menu (3)
Click to hide (4)
Change window size to bigger (5)
Change window size to large (6)

How can fix this problem?

For questions about your specific use of Bootstrap (rather than issues relating to Bootstrap itself), please refer to forums like StackOverflow.


Use the .env File Challenge Issue

For more coverage, I am opening this here:
Challenge: https://www.freecodecamp.org/learn/apis-and-microservices/basic-node-and-express/use-the--env-file
As of <04/02/2021, a change has caused the above mentioned lesson to be uncompletable.
Error: SyntaxError: Unexpected token < in JSON at position 0     at JSON.parse (<anonymous>)     at /home/runner/boilerplate-express-2/node_modules/fcc-express-bground/index.js:91:26
The error in full:

Error
SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at /home/runner/boilerplate-express-2/node_modules/fcc-express-bground/index.js:91:26
    at IncomingMessage.<anonymous> (/home/runner/boilerplate-express-2/node_modules/fcc-express-bground/index.js:33:7)
    at IncomingMessage.emit (events.js:315:20)
    at IncomingMessage.Readable.read (_stream_readable.js:505:10)
    at flow (_stream_readable.js:1005:34)
    at resume_ (_stream_readable.js:986:3)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at /home/runner/boilerplate-express-2/node_modules/fcc-express-bground/index.js:99:28
    at IncomingMessage.<anonymous> (/home/runner/boilerplate-express-2/node_modules/fcc-express-bground/index.js:33:7)
    at IncomingMessage.emit (events.js:315:20)
    at IncomingMessage.Readable.read (_stream_readable.js:505:10)
    at flow (_stream_readable.js:1005:34)
    at resume_ (_stream_readable.js:986:3)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
_http_outgoing.js:518
    throw new ERR_HTTP_HEADERS_SENT('set');
    ^

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at ServerResponse.setHeader (_http_outgoing.js:518:11)
    at ServerResponse.header (/home/runner/boilerplate-express-2/node_modules/express/lib/response.js:771:10)
    at ServerResponse.send (/home/runner/boilerplate-express-2/node_modules/express/lib/response.js:170:12)
    at ServerResponse.json (/home/runner/boilerplate-express-2/node_modules/express/lib/response.js:267:15)
    at /home/runner/boilerplate-express-2/node_modules/fcc-express-bground/index.js:108:15
    at IncomingMessage.<anonymous> (/home/runner/boilerplate-express-2/node_modules/fcc-express-bground/index.js:33:7)
    at IncomingMessage.emit (events.js:315:20)
    at IncomingMessage.Readable.read (_stream_readable.js:505:10)
    at flow (_stream_readable.js:1005:34)
    at resume_ (_stream_readable.js:986:3) {
  code: 'ERR_HTTP_HEADERS_SENT'
}

If you encounter this, the best course of action is to skip the lesson, and continue with the curriculum.
As nothing obvious has changed on freeCodeCamp's side, this is likely an issue on Repl.it's side.

Current Debugged Steps

Tested code which previously used to pass - no longer passes
Downgraded express package - no effect
One user was able to pass, and the noticeable difference was their origin was not freecodecamp.org, when they submitted.
All manor of sending data via stringifying etc.

From forum post: https://forum.freecodecamp.org/t/headers-error-in-env-challenge/444357
_P.S. Even though I have said there has been no change to the challenge, in the last few seconds (19:00 UTC) there has been a change pushed to main. Otherwise, our side has not changed in a way I can see which would affect this

Doing some triaging here, it looks like the error originates from the /_api/use-env-vars route, which is defined in our custom express package.

Not really sure what is going on, as far as I can tell it's trying to JSON.parse a redirect link (for both /_api/json and /_api/use-env-vars routes).
Line 33: cb(d.toString(), req, res, r.headers);
For me d.toString() === Temporary Redirect
// the callback in /_api/json, "lowerCase" is the "d.toString()" argument
function (lowerCase, req, res) {
  process.env.MESSAGE_STYLE = msgStyle;
  try {
    // lowerCase === Temporary Redirect.
    lowerCase = JSON.parse(lowerCase);
  }

...rest of code
}

It's the same for the callback in /_api/use-env-vars.

That is likely a change in repl.it's functionality, then.
I'll test this on another host and see what I get.

I'm able to replicate these issues on Glitch as well.

Interestingly enough, if I throw the code up on my VPS, I'm able to get a successful query from the /_api/use-env-vars route that the test hits (this route crashes repl.it and glitch both).

@nhcarrigan Which browser/s did you see this kind of behaviour on? I am now wondering if some change in internet protocol (probably the completely wrong term , but 🤷♂ ) has caused this. That is, a Chromium change?

This was on Chrome. I can also test on Firefox Dev edition.

I believe I've found what's happening, although not fully sure why.
Long story short - request send from ie. /_api/use-env-vars to the relevant /json route uses http, what results in (repl.it?) trying to redirect to https. I don't know how up to date this information is, but I've found posts that http.request doesn't follow redirects on it own.
https://github.com/freeCodeCamp/fcc-express-bground-pkg/blob/master/index.js#L16
var selfCaller = function (path, req, res, cb, url) {
  var url = req.get('host').split(':');
  var port = url[1];
  url = url[0];
  var prot = req.protocol === 'https' ? https : http;
  var opts = {
    hostname: url,
    method: 'GET',
    path: path,
    port: port || 80,
    headers: {
      'User-Agent':
        'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36',
    },
  };
  var rq = prot.request(opts, function (r) {
(...)

Taking repl.it as example: req.host doesn't contain port, so port is undefined and in the request will be always used 80. Second thing is that protocol in passed req is http.
Changing prot to https and port to 443 makes everything work.
FWIW this is affecting also Basic Node and Express - Implement a Root-Level Request Logger Middleware and Basic Node and Express - Chain Middleware to Create a Time Server.

This popped up on the forum and reminded me that this is not the first time we are seeing this error on Glitch: https://forum.freecodecamp.org/t/basic-node-and-express-use-the-env-file-get-error-cannot-set-headers-after-they-are-sent-to-the-client/405090
@gikf Thank you, for the thorough debugging. I am not disagreeing with what you found, but I do not understand why the protocol would be unsecured.

After some more digging, there seem to be relation between what req.protocol is showing, using proxy and having trust proxy setting set or not in express - http://expressjs.com/en/api.html#req.protocol. With the option set req.protocol is https as expected.

Thanks @gikf I followed most of your advice, just to get something out which might work for most.
I am still not sure what introduced this bug, and I doubt it is the last time we will see it.

I have tried doing every way possible to get an HTTP request but it all responded with the same exact string
Permanent Redirect
I took FCC's boilerplate express package and put it into my reply to test around with it.
I tried using the http.get() request:
http.get('http://' + req.get('host') + '/json', (res) => {
    console.log(`STATUS: ${res.statusCode}`)
    console.log(`HEADERS: ${JSON.stringify(res.headers)}`)
    res.setEncoding('utf8');

    res.on('data', chunk => {
      console.log(`BODY: ${chunk}`)
    })

    res.on('end', () => console.log('no more data'))
  })

Still the same result.
At some point I tried messing around with the request protocols, adding Agents and adding some request headers and came across the SSL error that @lasjorg came across:
EPROTO<PHONE_NUMBER>63584:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:
After digging a little deeper, it seems like this error is happening because the proxy or the port is different or something
I was getting a bit curious because it's pointing on the response, so I wanted to try every way possible to do an HTTP request, and one thing that I tried is using node-fetch. When I used it, it worked, here's what it looked like:
var selfCaller = async function (path, req, res, cb, url) {
  let Url = req.protocol + '://' + req.get('host') + path;

  let rq = fetch(Url, {
    method: 'GET',
    headers: {
      'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36'
    }
  }).then(res => res.json())

  rq.then(d => cb(JSON.stringify(d), req, res))

  rq.catch(() => res.status(500).type('txt').send('SERVER ERROR'))
}

And it returned:

Here's the REPL:
https://repl.it/@JoshuaPelealu/boilerplate-express-1
Here's a join link if you want to mess around with it:
https://repl.it/join/elzmjplm-joshuapelealu
This narrows down the problem to become the express package, or the response handler. The method I use above (using node-fetch) somehow works.

Should a temporary solution be used for this issue, until we find exactly why it's failing? This will mean that users can use the curriculum back while we try to fix the issue.

@JoshuaPelealu There is a temporary solution, just waiting to be QAed.

I am going to close this, for now. The "temporary" solution appears to have worked well enough to prevent further issues.


Add convergence information and test.

Really just https://github.com/JuliaOpt/LsqFit.jl/pull/8 but using the proper tools from Optim (Optim.converged). Also a small test to see that the test actually converged.

I just did this too... whoops.

Oh, should I close?

Yes, I'll push my changes in one minute.


TypeError: 'NoneType' object is not iterable

Cann't figure out why this error occurs.
File "image_colorization.py", line 191, in
tf.app.run()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "image_colorization.py", line 142, in main
batch_reader = dataset.BatchDatset(train_images, image_options)
File "/home/pinky/Desktop/color/BatchDatsetReader.py", line 30, in init
self._read_images()
File "/home/pinky/Desktop/color/BatchDatsetReader.py", line 33, in _read_images
self.images = np.array([self._transform(filename) for filename in self.files])
TypeError: 'NoneType' object is not iterable
Looking forward to your reply.Thanks in advance :)

Maybe the dataset is not downloaded completely.
Try delete the Data_Zoo folder and run it again. :)


[core][jadx-next] Wrong class name used for package-private classes if source filename is different

Steps to reproduce:

example compiled with openjdk8 and decompiled with use-dx option
tested with latest git version (jadx-next)
reproducible also on master, but here deobfuscation has to be activated, even in cases when deobfucation is not needed (testet with longer names).

Filename "a.java"
class b {
}

Same with smali:
.class Lb;
.super Ljava/lang/Object;
.source "a.java"

# direct methods
.method constructor <init>()V
    .registers 1

    .prologue
    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

The decompiled result is:
/* renamed from: b */
/* loaded from: [...] */
class a {
    a() {
    }
}

If deobfuscation is activated, affected classes aren't deobfuscated. At least the filenames are correct, when sources are exported.
But there is also a special case: The name of a source file in my example could be "package-info.java". In this case the class name will be correct, but a wrong filename is used for exporting the source.
There are multiple issues with "package-info". I should open a new ticket for this.

Hi @skylot. Thank you for your fix in jadx-next.
I'm not sure whether your fix is correct. In my opinion this issue has nothing to do with deobfuscation (except of master branch).
For private or package-private classes the source name can differ from the real class name. Class names might be deobfuscated, but I think the filename should never be used as the new class name in any case. In my option for each class the original source name should be stored and should only be used to export sources. Classes should be aggregated to source files at least for private or package-private classes. Perhaps primary entity for export should be source file and not class node, because source file can contain more than one class. I would ignore kotlin clases and others for now.
Here is an example how I would exploit this issue:
// Fake source file: JadxDecompilerDetected.java
package detectjadx;

class ThisIsTheRealClassname {
  public Throwable getThrowable() {
    return new Throwable();
  }
}

// Source file: RuntimeDecompilerDetector.java
package detectjadx;

public class RuntimeDecompilerDetector {

  public static class DecompilerDetectedExcetion extends Exception {
  }

  public static void detectDecompiler() throws DecompilerDetectedExcetion {
    try {
      // check if jadx renamed the test class
      RuntimeDecompilerDetector.class.getClassLoader().loadClass("detectjadx.JadxDecompilerDetected");
      throw new DecompilerDetectedExcetion();
    } catch (ClassNotFoundException e) {
      // check if jadx used the expected filename for export
      try {
        Class<ThisIsTheRealClassname> clazz = (Class<ThisIsTheRealClassname>) RuntimeDecompilerDetector.class
            .getClassLoader().loadClass("detectjadx.ThisIsTheRealClassname");
        ThisIsTheRealClassname test = clazz.newInstance();
        if (!"JadxDecompilerDetected.java".equals(test.getThrowable().getStackTrace()[0].getFileName())) {
          throw new DecompilerDetectedExcetion();
        }

        // TODO Do repeat last check with a kotlin class if jadx could generate kotlin files
      } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e1) {
        throw new DecompilerDetectedExcetion();
      }

      // decompiler check passed, everything is ok
    }
  }

  public static void main(String[] args) {
    try {
      RuntimeDecompilerDetector.detectDecompiler();
    } catch (DecompilerDetectedExcetion e) {
      // Do some bad things
      System.out.println(
          "You are using a decompiled version of this app. Your account has been locked. This incident will be reported!");
    }
  }
}

As long as the source name of my canary class is different/fake, it would be possible to detect a decompiled and recompiled app, no matter of obfuscation or deobfuscation. I think this can be prevented with a fix before someone else has the same idea.

@nitram84 I understand now what you're trying to do.
But from my experience source name in most cases is literally garbage and doesn't contain any useful info, thus this feature (Use source file name as class name alias) is disabled by default.
Also in most cases decompiled source will not compile back and you should use apktool and edit smali code, so your use case is quite rare. And for such rare cases you can use jadx script to fit your needs.

@skylot Thank you for your answer. But I'd like to stay with jadx. I did some experiments with post processing of jadx outputs: dependency detection, auto-resource-cleaning, legacy-http-client detection, ... and I can say, first recompilable apps out-of-the-box are possible, but still a lot of work is needed. I have a small list of apps I recompiled successfully with jadx. But step by step, there are still a lot of gradle and resource issues.
In my opinion the most significant issue that prevents decompiling is https://github.com/skylot/jadx/issues/1073 (reproducible with almost any app, to fix this \src\main\res\values\attrs.xml has to be decoded first and its flag and enum definitions should be added to the attrib map in ManifestAttributes).
I'll soon prepare some PRs for some other issues I found during my tests.


feat(onboarding): onboarding wizard

closes #401
closes #354
fixes #421
fixes #157

TODO:
Update to Natalie's new mocks:

[x] Add copy to clipboard functionality
[x] Use old providersModal validation functions
[x] Add configure data collection process
[x] Add final page
[x]  Use api/providers to create source in the end of the process
[x] Add urls to links (take it from Koku documentation)
[x] Fix the clipboard button overflow
[x] Fix the size of the modal (look how Dan did it in the historical charts)
[x] Add testIds https://github.com/project-koku/koku-ui/issues/401

Minimals (not important for this PR)

[x] Folder naming: korekuta -> usage_collector and same thing in the translation files (e.g. korekuta.checkbox1 -> usage_collector.item1)
[x] clean unnecessary Redux actions

Thanks @dlabrecq for your review. I will update the code accordingly.

@dlabrecq can you take a look again? Thanks.

@dlabrecq sure.


Move ExtIPA chars to Phonetics_DisorderedSpeech

There are still a few extIPA characters that should be moved to GF_Phonetics_DisorderedSpeech.
Move ExtIPA symbols from GF_Phonetics_Disorderedspeech to GF_Phonetics_DisorderedSpeech:

fengdigraph U+2A9 ʩ
exclamdown U+00A1 ¡
asterisk U+002A *
parenleftinferior U+208D ₍
parenrightinferior U+208E ₎

Remove from GF_Phonetics_IPAStandard, already in
GF_Phonetics_DisorderedSpeech:

bidentalpercussive U+02AC ʬ
bilabialpercussive U+02AD ʭ
lsdigraph U+02AA ʪ
lzdigraph U+02AB ʫ
unaspiratedmod U+02ED ˭
voicingmod U+02EC ˬ
gbridgeabovecomb U+0346 ◌͆
equalbelowcomb U+0347 ◌͇
leftanglebelowcomb U+0349 ◌͉
nottildeabovecomb U+034A ◌͊
homotheticabovecomb U+034B ◌͋
almostequaltoabovecomb U+034C ◌͌
arrowleftrightbelowcomb U+034D ◌͍
arrowupbelowcomb U+034E ◌͎
arrowdoublerightbelowcomb U+0362 ◌͢

Remove from GF_Phonetics_IPAStandard:

leftanglebracket_rightanglebracket-math

See:

https://www.internationalphoneticassociation.org/sites/default/files/extIPA_2016.pdf
https://www.internationalphoneticassociation.org/IPAcharts/IPA_chart_orig/pdfs/IPA_Kiel_2020_symbollist.pdf

@RosaWagner I also removed leftanglebracket_rightanglebracket-math. I’m sure where that one came from so I didn’t move it DisorderedSpeech.

Ah I actually saw the brackets a lot in use in wikipedia article for American notation:
https://en.wikipedia.org/wiki/Americanist_phonetic_notation
and then in:
https://en.wikipedia.org/wiki/International_Phonetic_Alphabet#Brackets_and_transcription_delimiters
So I don't how much Wikipedia on this subject, maybe additional documentation should be found.
I think in standard IPA glyphset with are missing these:

The square brackets [ and ] are used to indicate a phonetic realization, the slash is used to indicate phonemes.
The angle brackets are used to indicate graphemes.
For example, an author can use the following for the French word "trou": spelled ⟨trou⟩, can have the phonemic representation /tru/ which can be realized as [tʁ̥u].
That convension for angle brackets is not specific to IPA, it is often used in works discussing spelling.
But since IPA or other phonetic transcriptions are often used in the same works it make sense to have it in the Phonetic sets.
For the tone letters:
Those ligatures could be added but in practice a lot more may be needed. Noto Sans has 140 of them for example.
A font can also be engineered to build them with contextual substitution/positioning instead of just ligature substitution.
Pysilfont has a script psftoneletter.py for this kind of more flexible stuff.

Then we could have a IPA_Plus set or something with them all, with a link to the script in the readme. Let's merge this in the meanwhile ;)


python311Packages.evohome-async: 0.4.4 -> 0.4.8

Diff: https://github.com/zxdavb/evohome-async/compare/refs/tags/0.4.4...0.4.8
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 266516 run on x86_64-linux 1

2 packages built:

python311Packages.evohome-async
python311Packages.evohome-async.dist


Geolocation-based sharding.

This issue tracks discussion on geolocation-based sharding.

Here is a description of the sharding proposal I suggested in Slack.  It uses a uniform quantization of space and time.  Each shard corresponds to a time interval (e.g., 1-7 days) and a latitude / longitude interval (e.g., 0.25 degrees).  This is chosen to be roughly city-sized (0.25 deg = 15 arcminutes = 15 nmi = 28 km along a line of longitude). The spatial blocks are narrower away from the equator, but at least 1/3 this size below 70 degrees latitude (beyond the arctic circle).
This quantization is extremely easy to compute -- it involves rounding the latitude, longitude, and unix time -- so all users can determine which shards are relevant to them.

are we still centralizing the writes? I guess this leaks data re set of locations to the server, but not time series data, so not too terrible.

So preliminary calculations based on the above scheme say the following:
At 1 rotation
download per user is: 0.45 to 2.54 MB
total download is:    3000 to 16600 GB
At 14 rotations (1 a day)
download per user is: 6.41 to 35.6 MB
total download is:    42000 to 233000 GB
At 336 rotations (1 an hour)
download per user is: 154MB and 856 MB
total download is:    1.0e6 to 5.6e6 GB
At 1344 rotations (4 an hour)
download per user is: 616 to 3420 MB
total download is:    4.03e6 to 2.24e7 GB

One perspective on sharding and anonymity is that it provides a second "knob" to turn adjusting reporter privacy vs. bandwidth, in addition to the report duration.
The report duration trades the number of reports (proxy for bandwidth) against user linkability over some interval (loss of reporter privacy).  This tradeoff is made with respect to the bandwidth usage over all users.  However, if we do sharding, we get to change what is considered to be the set of all users, potentially allowing shorter report durations for the same bandwidth.  This means that, all else fixed, implementing sharding can increase reporter privacy, rather than decrease it.

And from a practical perspective, some degree of geo information is already known to the server, based simply on geolocation of client IP address. So geo-based sharding down to the level of precision available from IP geolocation (approximately city-level) incurs no real loss of privacy, but significantly reduces the number of reports that must be processed by every client in that city, thereby allowing us to use shorter report durations and improve overall reporter privacy.

Geolocation from IP address is very coarse, and e.g. in Europe can point to the other side of the country, so even if we have contact, we might end up in different shards.
We need to sync switching between shards with the switching of TCNs, otherwise this will also be susceptible to rollover attacks, like TCN/MAC pairs. Ideally we would generate a new reporting keypair, so no more than one shard is correlated to any given keypair.


Export default options so other dependent packages can test against changing properties

See: https://github.com/redfin/react-server/pull/625
I also had questions around dependencies. When I tried to run gulp from react-server-cli package I was getting an error like so:
JASONs-Mac-Pro:react-server-cli jason$ npm run prepublish
path.js:7
    throw new TypeError('Path must be a string. Received ' + inspect(path));
    ^

TypeError: Path must be a string. Received null
    at assertPath (path.js:7:11)

What I realized was that because gulp wasn't a part of this package, it was trying to use a globally installed version I had which was out of date. I have always been under the belief that packages should force using local packages by using npm scripts. By adding gulp as a devDep, running npm run prepublish will always work.
Would love to hear your thoughts?
Thanks!

Re: installing gulp as a dev dependency -- I dig it.  We shouldn't rely on globally-installed tools at all, and personally I'd like to see us go one step further and use https://www.npmjs.com/package/npm-run

Your original title was actually good.  We use lerna-changelog to generate our release notes.  It automatically groups changes by package.

Thanks @jbenesch!