Openssl issue while upgrading from version 1.0.2g with fips mode enabled.

Hi,
I am running go lang based server with fips mode enabled. I am using spacemonkeygo for openssl bindings. When I run server with version post Openssl 1.0.2g (1.0.2h onwards), I get following error while reading request from connection.
"SSL errors: SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac"
Here are some of my observations,

Creating 2 connections in parallel gives this issue.
While a client is sending data, another client connecting does not error. The error seems to be only when two clients try to handshake together. If we serialise ssl wrap even thousands of clients do not give this issue.
There comes a time(after 40 iterations in case of 3 parallel handshaking clients) after which the server kind of gives up and keeps on giving the same error no matter how much we slow down the clients(I stopped my client script for 5 minutes before trying again).

Here is server code, with which I am able to reproduce this issue.
`
package main
import (
"log"
"net"
"net/http"
"fmt"
"os"
"bufio"
"io"
"strconv"
"github.com/spacemonkeygo/openssl"
)
func init_fips() {
err := openssl.FIPSModeSet(true)
if err != nil {
panic(fmt.Errorf("%v Error:%v\n", "openssl failed to set fips mode.", err))
}
log.Print("OpenSSL FIPS mode is set to: True\n")
}
func main() {
init_fips()
laddr := "<IP_ADDRESS>:443"
var ln net.Listener
var err error

// Init SSL shared context used across connections
ctx, err := openssl.NewCtxFromFiles("/etc/certs/sslcert.crt", "/etc/certs/sslcert.key")
if err != nil {
    log.Fatalf("Failed to read ssl certificate. Error: %v", err)
}

// Set options and do not allow SSLv2 and SSLv3 communication
_ = ctx.SetOptions(openssl.CipherServerPreference |
    openssl.NoSSLv2 | openssl.NoSSLv3)

// Read certificate
// Listen on bind address
ln, err = openssl.Listen("tcp", laddr, ctx)

if err != nil {
    log.Fatalf("Failed to start server. Error: %v",
        err)
    os.Exit(1)
} else {
        log.Println("Started secure server")
}
if err != nil {
    log.Fatalf("server: listen: %s", err)
}
log.Print("server: listening")
for {
    accepted, err := ln.Accept()

    if err != nil {
        log.Println("Got errored while accepting connection. %v", err)
        return
    }

    go handleClient(accepted)
}

}
func handleClient(conn net.Conn) {
defer conn.Close()
reader := bufio.NewReader(conn)
for {
//log.Print("server: conn: waiting")
var err error
httpreq, err := http.ReadRequest(reader)
if err != nil {
log.Print("Errored while reading request. Error: ", err)
break
}
buf := make([]byte, httpreq.ContentLength)
toread := int(httpreq.ContentLength)
rbytes := 0
n := 0
for toread > 0 {
n, err = httpreq.Body.Read(buf[rbytes:])
if err != nil && err != io.EOF {
log.Print("Errored while reading request body. Error: ", err)
break
}
rbytes += n
toread = toread - n
}
    resp := append([]byte("HTTP/1.1 200 OK\r\n"+"Content-Length: "+
            strconv.Itoa(len(buf))+"\r\n\r\n"), buf...)
    _, err = conn.Write(resp)
    if err != nil {
            log.Print("Errored while writing response. Error: ", err)
            break
    }

    log.Printf("server: conn: wrote %d bytes", n)

}
log.Println("server: conn: closed")

}
`
Issue is reproducible with openssl-1.0.2h build with fips module openssl-fips-2.0.16.  I am running server on Ubuntu 14.04.5 .

Did you set up the locking callbacks in your openssl server?

@richsalz, Thanks for reply. I am using spacemonkeygo binding for openssl in go lang. I am expecting spacemonkeygo during init must be setting locking callbacks. But still I will check code to confirm.
Also can setting fips mode make any difference. As I can see issue only if, FIPS_mode_set(1) is called.

I have no experience with spacemonkeygo -- no knowledge of it, actually.  The symptoms you describe are consistent with locking not set, but we'll have to wait and see.

@richsalz , thanks for information. I can see spacemonkeygo openssl not setting CRYPTO_set_id_callback. After setting this callback server is running fine.
Any reason, why I was hitting issue only when FIPS mode is set. As CRYPTO_set_id_callback callback was not set even when running without FIPS mode, but server was running fine without any issue.

Did you try this with OpenSSL 1.0.2m or later? Possibly it is bug #4180 which was fixed by #4192. The first release with that fix in it was 1.0.2m.

I am going to close this issue.  You have working code, @mattcaswell pointed to some bugs and a later release, so there is nothing for openssl to do here.

I was using Openssl 1.0.2o version. Sure I have working code, but was curious 'why issue was seen with fips mode set'.

It's a timing isssue.  So perhaps FIPS changes the timing of things.  We don't maintain the current FIPS code any more.  Sorry.

@richsalz Thanks for the help.


fix deb package generation on armhf platform (raspbian)

Sorry for not following the bug template.
It is a small tweak. There are many issues about arm port of Atom. Since now we got raspberry pi 4 with 4GB ram. Now we get a platform popular enough to give the porting another try.
I follow the build from source guideline, it almost works, if you got the right chromedriver. But when building the deb package, the deb architecture has to be set to 'armhf' to make the deb installable on raspbian.

Thanks for the contribution!  As you've probably seen in the related issues, we don't officially support Atom on ARM - with the team's current resources and priorities, supporting Atom on more platforms isn't something we can take on.  Since we're not going to maintain changes related to running Atom on ARM, I'm going to close this out but thank you again for your interest and contribution.

That is okay. I will try to smooth atom porting process on arm/raspbian on my fork. Anyway, porting to arm is easier than before due to some main dependiences upgrades.

@aguegu look at my fork. This is not finished, but I will tell you when it's finished


Unable to pull Docker images onto windows server 2019

When I try to build a docker image, the command works fine, but when I am trying to pull an existing image from the registry

, I get the following error
"Error response from daemon: Get https://registry-1.docker.io/v2/: authentication required"
Proxy has already been set and as I mentioned above, docker build is working just fine

I am not finding official MSSQL server images for windows containers. All them are removed and no explanation why they did so. The early access program reaches to 404 page.  Wondering what is going on here.

Here is a blog where the suspension of the SQL Server on Windows container was announced: https://techcommunity.microsoft.com/t5/sql-server/update-beta-program-for-sql-server-on-windows-container-is/ba-p/2516639


Unwrap stream.resume()

As isPaused() is already implied by resume(), its call is
extraneous.  This wouldn't be a problem, but this breaks compatibility
with NodeJS 0.10.x, which, while old, is still in the ecosystem.
Fixes #49

It looks like there are some non-trivial TLS problems.  Not an issue for my use case, but it doesn't seem like it is worth trying to maintain a broken version officially.  I can just fork a local copy, and hopefully Meteor will update their NodeJS version soon.
meteor/meteor#5124

Fair enough, i think with the changes you made it should work for non-TLS correct? Or should I merge this one to get it there?

  Several of the TLS tests are broken in 0.10.x.
The first commit is trivial:  it just removes the redundant isPaused() call.
Yes, it works fine without TLS on 0.10.x.  I'm testing it now for my Meteor wrapper.


fix: clean up non-existent node related variables from qwik city starter

What is it?

[ ] Feature / enhancement
[x] Bug
[ ] Docs / tests

Description
Clean up non-existent variables from Qwik City starter, since the node API has already been removed.
Checklist:

[x] My code follows the developer guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] Added new tests to cover the fix / functionality

thanks!


Unity doesn't build scripts from TestFramework

Describe the bug
I imported zenject via UPM from the link from GIT https://github.com/starikcetin/Extenject.git#9.1.0. I'm trying to write tests to my unity package, but I can't use the scripts in Zenject-TestFramework because unity doesn't build it.
To Reproduce

Import extenject as UPM.
Create new package, and create test assembly.

Add to test assembly zenject-testframework

Create default zenject test in this assembly

Extenject and Unity info (please complete the following information):

Extenject 9.1.0
2020.3

Back when I was creating this UPM fork, I did not give much thought to how the extras would play along, and I do not have enough free time to look further into it. I am keeping this repository up for the sole purpose of not breaking the projects that are already using it. I am not planning on performing any maintenance any time soon. Please bear that in mind before using this repo in your project.

Ok, I create a workaround for this problem with TestFramework.
Honestly, I have no idea what the main bug is, but there is a list of things that I changed that could cause potential problems:

removing zenject-TestFramework into a separate package (previously assemblies TestFramwork were nested inside Zenject)
remove everything from precompiledReferences and remove UNITY_INCLUDE_TESTS from Define Constraints from TestFramework
use of GUIDs in Assembly Definition References
put everything in TestFramwork into the Runtime folder

If somebody wants use TestFramework as package you can use my solution just put this into manifest.json:
"com.svermeulen.extenject": "git+https://github.com/EHS-VR/Extenject#046cd679ce5b0e2fbd9f8048920c59bae5cb7115",
"com.svermeulen.extenject.testframework": "https://github.com/EHS-VR/ExtenjectTestFramework.git",


Prototype "this week" in SDK Project Board

We'll use the "Iteration" field as a 2-week sprint to denote what's in flight


Sui-select does not reflect right value on load

The value of value is 0. But based on the below code, sui-select shows me One is selected but html select shows me Zero is selected.
sui-select(:value="value" @change="(e) => value= e.target.value")
	option(value="0") Zero
	option(value="1") One
select(:value="value" @change="(e) => value= e.target.value")
	option(value="0") Zero
	option(value="1") One

Is it 0 or "0" ?

closing since no issue was found


Add Teahliana's file

created a branch, created a file and made a commit, and opened a pull request


skeleton minplayers restriction

About the PR

Prevent ClosetSkeleton event from happening if there's not enough (10) players on the server
Why / Balance

Skeleton players can do antag activities.
Technical details

N/A
Media

[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog

:cl:

tweak: Skeletons can only spawn with 10 people on the server now.

but traitors is still 5 players minimum lol

but traitors is still 5 players minimum lol

Traitors have certain objectives, they can't go massacre the entire station.  Skeletons can.

Traitor's aren't required to follow any of their objectives

but traitors is still 5 players minimum lol

Traitors have certain objectives, they can't go massacre the entire station. Skeletons can.

Traitor's aren't required to follow any of their objectives

Yet they're encouraged to by the game design. Regardless, this conversation has no purpose anymore.


how to edit theme??? Feedback for “Docs Theme”

where is docs theme template itself? how to edit theme? not just poor configure but gain full control of output html.
how to change layout, customize css, add custom blocks, remove annoying «Question? Give us feedback
and «Edit this page» elements etc. ?

This is how I hide "Edit this page" 😅

I wish there was more control over the components and theme, especially in terms of customization options.

@oyesameed and @washirving The prebuilt Nextra themes are for people who don't want to hastle creating a theme. If you want more control, I suggest you create your own theme. Find out more from here.

@oyesameed and @washirving The prebuilt Nextra themes are for people who don't want to hastle creating a theme. If you want more control, I suggest you create your own theme. Find out more from here.

yeah. but docs theme sooo good. so calm and pretty. just need some edits wich are not provided by config

@washirving Like what edits?

@washirving Like what edits?

completely get rid of «on this page» (this is just stupud. here is the page, just look at it. totally unnessesary table of contents for small pages), this block must be optional for long pages.
remove «Question? Give us feedback →». feedback link should be in the footer. there is alredy «Contact ↗» in header
remove «Edit this page». simple user shouldn't see it at all, he cant edit my content, it's just for me as administrator and I know how to edit my site without a link.  maybe it make sence for wikis or comunity sites, but I have just some project documentaton.
move  «Last updated on April 18, 2023» below page title or have an option to remove it for specific pages like «About». edit
date for domumentation can be reasonable, but «about us» or other pages like it  should be like they where there forever.
make pagination smaller and prettier. have an option to remove it as well or move it to top of the page
make page title bigger and in different font. custom font for every h1, h2, h3 etc.
full rich 4-column footer
move «Light/Dark» switch in top right corner in sticky header (where by defailt useless discord link is)
custom sidebar and content div width.
etc.

all this can be done in minutes if there was a html template or something like that

Plus there's no option to change colors and fonts for your website specific customisation.

so, just played enough with Nextra. my thoughts:
overall expieriecce is not satysfiing. all is too complicated in use.
we need only three things: menu in sidebar (automatically generated of folders and files structure in «pages» folder), special folder for header links to pages like «about» and existing html/css template which can be easily edited as users like to render all this out.
I see workflow something like that: customise template once and then just adding md files with content to site. would be perfect to use obsidian connected to git for that. thats all.
simple projects dont need all this not obvious .tsx configs at all but good old html/css for configuring visuals. I  forgot comma or branch in _meta.json and thete is error on deploy. simplicity is a key to future.

wow! what an interesting thing Turbo! Thank you! I'll play with it.
yeah, finally read the docks, lol. feedback link can be disabled! nice.  (and «edit this page» should not exist at all)
dont be angry, we just used to old ways of html/css and frustrated, trying to reach something new

@washirving You'll have to remove sentry to be able to run the Turbo website

My example is here.


Clicking too quickly on a tile.

I'm getting "Game Error: There was an error loading required game content. Your game will be restarted." at the end of every 2min game because its selecting a tile to quickly after clicking play and not showing the error until the end of the game, if I wait 1 or 2 seconds before selecting a tile after clicking play I dont get the error at the the begining of the game or the end.

How did you fix it in the script?

does it work better now?

ran the script a couple of times, got the error only once after the game so its better, but now it stays on the play screen after a game instead of playing another one.


CrashMonkey4IOS/bin/smart_monkey -d ~/有坛 --event-number 3000 -a com.forum.dev -w e8babe2abef5a5065da02dca9fac64aa43dafeb6

2015-07-02 00:24:06.090 instruments[1088:14415] WebKit Threading Violation - initial use of WebKit from a secondary thread.
2015-07-02 07:24:12 +0000 Fail: The target application appears to have died
2015-07-02 00:24:12.890 instruments[1088:14414] Attempting to set event horizon when core is not engaged, request ignored
2015-07-02 00:24:12.890 instruments[1088:14414] Attempting to set event horizon when core is not engaged, request ignored
Instruments Trace Complete (Duration : 7.386172s; Output : /Users/chenlengyao/instrumentscli5.trace)
Stop iOS system log capture.

这种提问题的方式不解答，环境，步骤，日志，分析，思考导向，统统没有.....先学会提问题方式在说吧，这里不是“快餐店”！


forge debug cannot display code

Component
Forge
Have you ensured that all of these are up to date?

[X] Foundry
[X] Foundryup

What version of Foundry are you on?
forge 0.2.0 (ee88f75 2022-10-04T00:07:32.8134078Z)
What command(s) is the bug in?
forge debug --debug tokentest.sol --sig "testtrang()" --fork-url https://rpc.ankr.com/bsc
Operating System
macOS / Windows
Describe the bug
I want to debug the whole process of the function and watch the process and result of the code running, but when there is a function that calls other contract functions, I can't see the code that calls other contract functions。
And I can't debug tx hash

forge --version
forge 0.2.0 (b554ab1 2022-10-15T00:07:41.079769Z)
Execution error
“Error:
No input files detected.”

afaik, forge is not pulling the contract code from etherscan for now.
Easy fix is to download the code and reference to it locally.

afaik, forge is not pulling the contract code from etherscan for now. Easy fix is to download the code and reference to it locally.

How to reference to it locally. Is there a case study?

Marking as duplicate of https://github.com/foundry-rs/foundry/issues/5435, continuing the conversation there


[Question] Datagrid

Hi,
In Datagrid example how did you highlight the entire row a specific color for example your sample was red

@di48l069 Just take a look at the sample

@punker76 I see it thanks


PROD SUPPORT: Complainant name is appearing twice in parties tab

Describe the bug

Hi @Rkum113  Please share the audit trail logs with @nitish-beehyv  @anirudh-0

Hi @atulgupta2024  @manimaarans  How can we Fix this issue can you please come up with some Logic

Hi @rajeshcherukumalli  Please test the fixed version in uAT

The issue is still happening Sawad will be sharing the video


Improve BCD field length docs

Codecov Report

Merging #18 (9bcac36) into master (c8944b3) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master       #18   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            5         5
  Lines          399       399
  Branches        91        91
=========================================
  Hits           399       399

Flag
Coverage Δ

3.9
100.00% <100.00%> (ø)

ubuntu-latest
100.00% <100.00%> (ø)

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

Impacted Files
Coverage Δ

iso8583/specs.py
100.00% <ø> (ø)

iso8583/decoder.py
100.00% <100.00%> (ø)

iso8583/encoder.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c8944b3...9bcac36. Read the comment docs.


Resolve dependencies among environment variables and keep the Pod template consistent

See #258 for the related method and explanation.
Kubernetes allows dependencies between environment variables, and one can reference another in its value, like the following:
- name: ENV_A
  valueFrom:
  secretKeyRef:
    name: secret-name
    key: key
- name: ENV_B
  value: "$(ENV_A)_suffix"

In the example above, the value of ENV_B depends on the value of ENV_A, which is loaded from a Secret. This makes it easier to dispatch configurations dynamically.
However, the variables' order must be enforced to resolve the values correctly: one variable must be after its dependencies. So here comes another order:
Compare the env a and b.

If a depends on b directly or transiently, then b < a.
Otherwise, compare the name of a and b in alphabetical order.

Resolved by #298 thanks to @Flpha0830


Audio issues getting INTERNAL SERVER ERROR (500)

I am trying to run the sample as listed here: https://github.com/johnwheeler/flask-ask/tree/master/samples/audio/simple_demo
I ran the non-audio examples in there and they worked good, but not the audio sample.
While configuring in AWS, I did set the "Skill Information" to use "Audio Player" (i.e Does this skill use the audio player directives? Yes).
The copied the same code as listed in the "simple_demo" (using ngrok on my windows x64 machine).

Below is the stack trace from python script
C:\apps\Python\Python36-32\python.exe C:/apps/PycharmProjects/TestProj/Alexa/ask_audio.py

Restarting with stat
Debugger is active!
Debugger PIN: 207-945-196
Running on http://<IP_ADDRESS>:5000/ (Press CTRL+C to quit)
<IP_ADDRESS> - - [29/Apr/2017 18:58:52] "POST / HTTP/1.1" 500 -
Traceback (most recent call last):
File "C:\apps\Python\Python36-32\lib\site-packages\flask\app.py", line 1997, in call
return self.wsgi_app(environ, start_response)
File "C:\apps\Python\Python36-32\lib\site-packages\flask\app.py", line 1985, in wsgi_app
response = self.handle_exception(e)
File "C:\apps\Python\Python36-32\lib\site-packages\flask\app.py", line 1540, in handle_exception
reraise(exc_type, exc_value, tb)
File "C:\apps\Python\Python36-32\lib\site-packages\flask_compat.py", line 33, in reraise
raise value
File "C:\apps\Python\Python36-32\lib\site-packages\flask\app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "C:\apps\Python\Python36-32\lib\site-packages\flask\app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\apps\Python\Python36-32\lib\site-packages\flask\app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\apps\Python\Python36-32\lib\site-packages\flask_compat.py", line 33, in reraise
raise value
File "C:\apps\Python\Python36-32\lib\site-packages\flask\app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "C:\apps\Python\Python36-32\lib\site-packages\flask\app.py", line 1598, in dispatch_request
return self.view_functionsrule.endpoint
File "C:\apps\Python\Python36-32\lib\site-packages\flask_ask\core.py", line 594, in _flask_view_func
result = self._map_intent_to_view_func(self.request.intent)()
File "C:\apps\PycharmProjects\TestProj\Alexa\ask_audio.py", line 26, in demo
return audio(speech).play(stream_url, offset=93000)
File "C:\apps\Python\Python36-32\lib\site-packages\flask_ask\models.py", line 154, i play
directive['audioItem'] = self._audio_item(stream_url=stream_url, offset=offset)
File "C:\apps\Python\Python36-32\lib\site-packages\flask_ask\models.py", line 208, in _audio_item
push_stream(stream_cache, context['System']['user']['userId'], stream)
File "C:\apps\Python\Python36-32\lib\site-packages\werkzeug\local.py", line 377, in
getitem = lambda x, i: x._get_current_object()[i]
TypeError: 'NoneType' object is not subscriptable

During my testing of the skill, in AWS console... when I enter "begin demo", below is the service request json:
{
"session": {
"sessionId": "SessionId.5a620bab-539c-42f7-b3a0-7ad67862a01d",
"application": {
"applicationId": "amzn1.ask.skill.41a5e218-82cf-41ae-b6f5-6ffbe863a570"
},
"attributes": {},
"user": {
"userId": "amzn1.ask.account.AHU4KOJCDEQLMXFZD7HP47D2YPJ77EB3XRMVEZSDYIWVLUKUGIIFK4E6IPOZSLLFKH7U6TLXGA2NCS4H6XBXDYKHOJXP74FXEBZCOCNNKHUNPSDUNHH2UIKQYYWR6QHHWUSULF456LGX3B4L4TWC4E5GIUULO7RU52UWXFHYHUQHC7HYBRQFDLQTNOQ77RJBTTP7YB4RVIHC6YY"
},
"new": true
},
"request": {
"type": "IntentRequest",
"requestId": "EdwRequestId.97d52191-40b3-486b-976a-d15f832711de",
"locale": "en-US",
"timestamp": "2017-04-30T18:46:34Z",
"intent": {
"name": "DemoIntent",
"slots": {}
}
},
"version": "1.0"
}
And below is the service response :
There was an error calling the remote endpoint, which returned HTTP 500 : INTERNAL SERVER ERROR
Appreciate your help in identifying the underlying issue.
In the response https://github.com/johnwheeler/flask-ask/issues/110, I am told to pass the valid context... but I understanding is that the API is doing the part of sending the Context information!!

Flask-Ask should definitely handle a request without the user context a bit nicer than an HTTP 500. I can look at this later this week. Ultimately, we can let play directives occur cleanly...but proper handling of other AudioDirectives may just need to produce more descriptive errors.
In the mean time, @skgali please explicitly add a Context to your request. When you test using Amazon's Service Simulator UI it does not actually provide a Context element automatically. In fact, they currently claim they don't support testing AudioDirectives using the Service Simulator itself:

Note: Service Simulator does not currently support testing audio player directives and customer account linking.

Until this is resolved, please try adding a valid Context. End users of the skill will always generate a Context since it's the only user-identifiable information guaranteed in every request. I don't know why Amazon's test tool doesn't provide one because per their own documentation:

The context object provides your skill with information about the current state of the Alexa service and device at the time the request is sent to your service. This is included on all requests.

Thanks Dave, you guessed right.... when I passed the context, I didn't get the Internal server any more....
Here are my observations

When I passed the type: LaunchRequest as follows, I got the valid response
Request:

{
"version": "1.0",
"session": {
"new": true,
"sessionId": "SessionId.c137735c-f456-406a-ae72-a102cd5b53be",
"application": {
"applicationId": "amzn1.ask.skill.41a5e218-82cf-41ae-b6f5-6ffbe863a570"
},
"attributes": {},
"user": {
"userId": "amzn1.ask.account.AHU4KOJCDEQLMXFZD7HP47D2YPJ77EB3XRMVEZSDYIWVLUKUGIIFK4E6IPOZSLLFKH7U6TLXGA2NCS4H6XBXDYKHOJXP74FXEBZCOCNNKHUNPSDUNHH2UIKQYYWR6QHHWUSULF456LGX3B4L4TWC4E5GIUULO7RU52UWXFHYHUQHC7HYBRQFDLQTNOQ77RJBTTP7YB4RVIHC6YY"
}
},
"context": {
"System": {
"application": {
"applicationId": "amzn1.ask.skill.41a5e218-82cf-41ae-b6f5-6ffbe863a570"
},
"user": {
"userId": "amzn1.ask.account.AHU4KOJCDEQLMXFZD7HP47D2YPJ77EB3XRMVEZSDYIWVLUKUGIIFK4E6IPOZSLLFKH7U6TLXGA2NCS4H6XBXDYKHOJXP74FXEBZCOCNNKHUNPSDUNHH2UIKQYYWR6QHHWUSULF456LGX3B4L4TWC4E5GIUULO7RU52UWXFHYHUQHC7HYBRQFDLQTNOQ77RJBTTP7YB4RVIHC6YY"
},
"device": {
"supportedInterfaces": {
"AudioPlayer": {}
}
}
},
"AudioPlayer": {
"offsetInMilliseconds": 0,
"playerActivity": "IDLE"
}
},
"request": {
"type": "LaunchRequest",
"requestId": "amzn1.echo-api.request.0000000-0000-0000-0000-00000000000",
"timestamp": "2017-04-30T19:40:56Z",
"locale": "string"
}
}
Response:
{
"version": "1.0",
"response": {
"outputSpeech": {
"type": "PlainText",
"text": "Welcome to an audio example. You can ask to begin demo, or try asking me to play the sax."
},
"card": {
"content": "Welcome to an audio example. You can ask to begin demo, or try asking me to play the sax.",
"title": "Audio Example",
"type": "Simple"
},
"reprompt": {
"outputSpeech": {
"type": "PlainText",
"text": "You can ask to begin demo, or try asking me to play the sax."
}
},
"shouldEndSession": false
},
"sessionAttributes": {}
}

When I passed the type: IntentRequest, that's where I was getting the Internal server error. Here is my JSON request:
{
"version": "1.0",
"session": {
"new": true,
"sessionId": "SessionId.c137735c-f456-406a-ae72-a102cd5b53be",
"application": {
"applicationId": "amzn1.ask.skill.41a5e218-82cf-41ae-b6f5-6ffbe863a570"
},
"attributes": {},
"user": {
"userId": "amzn1.ask.account.AHU4KOJCDEQLMXFZD7HP47D2YPJ77EB3XRMVEZSDYIWVLUKUGIIFK4E6IPOZSLLFKH7U6TLXGA2NCS4H6XBXDYKHOJXP74FXEBZCOCNNKHUNPSDUNHH2UIKQYYWR6QHHWUSULF456LGX3B4L4TWC4E5GIUULO7RU52UWXFHYHUQHC7HYBRQFDLQTNOQ77RJBTTP7YB4RVIHC6YY"
}
},
"context": {
"System": {
"application": {
"applicationId": "amzn1.ask.skill.41a5e218-82cf-41ae-b6f5-6ffbe863a570"
},
"user": {
"userId": "amzn1.ask.account.AHU4KOJCDEQLMXFZD7HP47D2YPJ77EB3XRMVEZSDYIWVLUKUGIIFK4E6IPOZSLLFKH7U6TLXGA2NCS4H6XBXDYKHOJXP74FXEBZCOCNNKHUNPSDUNHH2UIKQYYWR6QHHWUSULF456LGX3B4L4TWC4E5GIUULO7RU52UWXFHYHUQHC7HYBRQFDLQTNOQ77RJBTTP7YB4RVIHC6YY"
},
"device": {
"supportedInterfaces": {
"AudioPlayer": {}
}
}
},
"AudioPlayer": {
"offsetInMilliseconds": 0,
"playerActivity": "IDLE"
}
},
"request": {
"type": "IntentRequest",
"requestId": "amzn1.echo-api.request.0000000-0000-0000-0000-00000000000",
"timestamp": "2017-04-30T19:06:53Z",
"intent": {
"name": "DemoIntent",
"slots": {}
},
"locale": "string"
}
}
Then, I felt, it may be due to the audio() command, so in the code, I commented out the audio() function and replaced with question(speech) as follows:

@ask.intent('DemoIntent')
def demo():
speech = "Here's one of my favorites"
stream_url = 'https://www.vintagecomputermusic.com/mp3/s2t9_Computer_Speech_Demonstration.mp3'
return question(speech) #audio(speech).play(stream_url, offset=93000)
Now when I pass the same JSON, it returned with valid response as follows:
{
"version": "1.0",
"response": {
"outputSpeech": {
"type": "PlainText",
"text": "Here's one of my favorites"
},
"card": null,
"reprompt": null,
"shouldEndSession": false
},
"sessionAttributes": {}
}
So it seems like there is some issue with running the audio() ?

Correct! The issue you helped find is building an audio() response without the presence of a valid context.
The design challenge with audio controls is managing the state of which user is playing which audio stream. Recently we added the feature to properly track this information in a cache under the assumption we use the userId in the context as the key. When handling audio related intents, Flask-Ask tries to get the userId from the context to do a cache lookup or update.
Without a context, that currently fails because of an unchecked lookup of that userId in the non-existant context.
Any intent that doesn't try to build an audio() response should work fine since they don't automatically use this user-based caching.
As some background, the reason this caching is needed is Amazon/Alexa expects to close the Session when the stream begins playing. This means any session attributes you try to use for retaining stateful information are inaccessible when the user then interacts with the stream via a stop/pause, next, etc. audio directive.

so, is there any way to get the sample "simple-demo" code working? Any work around?

ok, like you said, the issue playing the audio is in the Test simulator... but it is now working on my Alexa echo dot. Earlier, it didn't work on my echo dot as well, only change I see is that I had python 3.6 then, but changed to python v2.7. I will have to confirm if this is truely an issue with python v3.6

Awesome! Thanks

I faced the same problem. This thread of discussion has really helped me. I am able to play the song using my echo dot. thank you @skgali @voutilad


Math not rendering in github or in docs

In the concept sections the math symbols and equations are not rendering, tried the github articlses it's the same. Here's a snap of part of the docs

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

ID: 434e640f-ea90-3c49-9510-1fda8cbee7a1
Version Independent ID: 9c5af71d-7980-d644-b2bc-9b54bda5e551
Content: Vectors and matrices in quantum computing - Microsoft Quantum
Content Source: articles/concepts/vectors-and-matrices.md
Product: quantum
GitHub Login: @QuantumWriter
Microsoft Alias<EMAIL_ADDRESS>

i have the same issue ...can microsoft team or someone plzz resolve this thing ??

@geduardo @KittyYeungQ   is the webpages fixed ???

Now it is Fixed .. Thanks Microsoft Team !!


Upgrade gl to v8

Description

Refer to their release notes.
Now, we have prebuilt binaries shipped for most systems, so it will save us so much time (and compute resources – especially for GitHub Actions runners) to not have to build from source each time.
Type of change

[x] 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 not work as expected)
[ ] This change requires a documentation update
[x] Code quality improvements

How to test

Checklist

[x] I have tested this code
[ ] I have updated the documentation

Rebasing this PR due to long-term inactivity with many outdated changes and since now Yarn v1.22.22 is now released (will try with a fresh attempt).
@RichDom2185 might need you to check on the dependencies again, I have only updated those directly linked to the bumping of gl.
Checklist:

[x] Runs locally
[x] Builds locally
[x] Tests passing locally
[ ] Builds on CI
[ ] Tests pass on CI

Pull Request Test Coverage Report for Build<PHONE_NUMBER>0
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 31.716%

Totals

Change from base Build<PHONE_NUMBER>1:
0.0%

Covered Lines:
4822

Relevant Lines:
14372

💛  - Coveralls


ResourceExhaustedError - conv6

Hello! Thank you for work!
But I have a question. I'm trying to run run.py with kitti dataset. But I got an error ResourceExhaustedError (see above for traceback): OOM when allocating tensor of shape [1024] and type float          [[Node: flownet_c/conv6/biases/Adam/Initializer/zeros = Const[_class=["loc:@flownet_c/conv6/biases"], dtype=DT_FLOAT, value=Tensor<type: float shape: [1024] values: 0 0 0...>, _device="/job:localhost/replica:0/task:0/gpu:0"]()]].
Actually, I used 2 gpu GeForce GTX 108. I played with a batch_size, but nothing helped...
What can cause such a problem?

In general this means that you are out of GPU memory. Do you mean you are using the GTX 1080? How much GPU memory do you have and which batch size did you try? You could run nvidia-smi on the command line to check if something occupies your GPU memory first.

Yes, you're right! I've checked with nvidia-smi and some process occupied my memory. Now, it works! Thanks a lot!

Great! No problem :)


add shrik3.com

Hi, I'd like to add my blog to the webring. This blog is mostly about programming and music. It's minimalistic and has zero JS, except for pages where JS is required to render math notations. I hope it fits the criteria. Constructive criticism are welcome!
[edit] the music section may look a little empty at this moment, it's under construction -- I haven't got the time to add all my projects there.
Location of webring icon/link: bottom right (the "MISC" row).
P.S. I'd like to render some previews of random sites in the webring later.

Very nice website, I'd love to merge the PR but first I need to resolve the conflict but Github's new web editor to change files in a PR is totally broken on firefox.. Could you try resolving the conflicts for me? Just put your <li> at the end

Cheers! Welcome to the webring :) I'm moving it off github in about a month so we'll be done dealing with that thing.


Forbid MapMaker

new MapMaker().makeMap() is an obscure way to write new ConcurrentHashMap<>(). Also, it reduces Druid's dependency on Guava, that is always a good thing.

:+1:

I also forbad Maps.newConcurrentMap(), it delegates to new MapMaker().makeMap()


Split Sytle/MethodMissing into Style/MethodMissingSuper and Style/MissingRespondToMissing

Style/MethodMissing violates SRP by handling both checking for super and respond_to_missing?. Now each cop can be independently configured.

Makes sense to me!
I guess alternatively we could have made the existing cop more configurable, but I'm fine with splitting it.

Style/MethodMissing violates SRP by handling both checking for super and respond_to_missing?.

You can argue that the single responsibility is making sure method_missing was used correctly. ;-)

You can argue that the single responsibility is making sure method_missing was used correctly. ;-)

True, that would have gone along with making the Style/MethodMissing configurable instead of splitting it.


Mapping for closing the current open node

Hi,
I've been using the plugin for a few days and I would like a to a have a way too toggle the node without moving the cursor up to the parent directory.
Current behavior
Dir <-- cursor is here

press default edit command (<CR>)

Dir
  file1
  file2 <-- I move here
  file3

If I want to close back the node I have to go up to dir and repress enter to close it.

Wanted behavior
Dir <-- cursor is here

press default edit command (<CR>)

Dir
  file1
  file2 <-- I move here
  file3

I press my preferred keybinding from file2 and the node closes.

Sounds like a nice feature to have indeed and should not be too difficult to implement.
Additionally, I think it is nice if this works with counts too, so you can close one or more levels of nesting at once.
Cheers, will look into this soonish 👍

Just implemented the base feature in a branch called feature/close-dir-from-cursor-position.
Undocumented and untested so not ready to merge yet, but if I'd like to give it a spin you can. The action is mapped to - by default, and can optionally be prefixed with a count i.e. 2- will close the next 2 collapsible parent entries.

I'm testing it and works like a charm! If I found any bug I will let you know.


[PLT-870] Removing holiday look up based on currency

Holiday look up would be done based on the region currency instead of the actual region code for a specific use case that no longer exists. So we can revert back to the generic behavior.

Build failed the first time for some reason but https://ci.opengamma.com/job/Platform v2/job/OG-Platform Pull Requests/569/console shows that it now passes.

Retest this please.


Removed fieldsets from Dialog Editor

Purpose or Intent
Remove unwanted %fieldsets from views
Before:

After:

@epwinchell please review
Links
Parent issue: #8502
Steps for Testing/QA

[Optional] If there are any manual steps that you would like the reviewer(s) to take to verify your changes, please describe in detail the steps to reproduce the features added by the pull request, or the bug before and after the change.

@miq-bot add_label enhancement, ui


Add/Remove scripts on a running proxy

Is there a way to do the same | does in mitmproxy but using mitmdump?

mitmdump is completely non-interactive - not sure what you envision here? You can spawn a second instance in the background and then kill the first one.

Yes, I was trying to avoid having to do that :)
I guess I'm trying to do something weird:  I'm thinking in using mitmproxy with my unit tests against an API so I can intercept and "mock" it when necessary without having to change or specialise my app.

IMO restarting isn't that bad. Alternatively, you can either send special "command" requests through the proxy which are processed by your inline script, e.g. your inline script acts on GET http://mitmproxy.local/set-server-replay-file/foo or you can spawn a web server in your inline script and expose an API.
Closing this for now as I don't see a way how else it should work. :-)

Thanks for the suggestions!


University of Cambridge endorsement quote

Added the Pro-Vice-Chancellor's endorsement to the home page. Now, it's official.

Things get interesting on mobile:

Maybe we can use max-width instead of padding?

Very good point. Any suggestions for use of the logo? Maybe we can get away with centering it? Or we just hope noöne complains about the alignment.

I think we can keep the logo & citation right aligned to the bounding box of the quote?
I also think that we can ditch the text "University of Cambridge" as it's in the logo as well.

How's that?

@varkor you happy for this to ship? I am if you are.

I think it's quite nice to promote — let's go for it.


Editor settings and preferences don't work

Hi, I tried to enter Editor settings in Account but it doesn't open. It says error, too many redirects. What can I do now? Thank you!

same issue
Google Chrome, private mode and usual mode

I have the same problem with safari

same problem here! please help!! (chrome)

Ditto here.  Thanks!

same here

same here!

same here!

same here!

Firstly…please don't do the whole "same here" thing, it's not useful… a PR would be!
Anyway, there's odd behaviour here, some account pages work, but most do the redirect loop:

https://jsbin.com/account/editor
https://jsbin.com/account/preferences
https://jsbin.com/account/embed
https://jsbin.com/account/assets
https://jsbin.com/account/delete

All of these go into a redirect loop, I've noticed specifically it redirects from http to https and back again. It makes no sense as to why it would redirect to http, but once on http, it's correctly redirecting to https.
It's also odd that the /subscription and /profile page don't run the redirect loop.
I half suspect a misconfiguration in the nginx setup, but equally there could be something in the code that's the issue. The oddest part is the code base hasn't changed in a long while, so it's very strange that this has started happening.
My next action: to review any commits since the issue was opened.

More digging. It looks like the ssl option flag is being set to false (I'm guessing when it was turned on by default, the option was missing from the page so saving prefs then caused the flag to flip to false).
Now it seems (but I'm trying to verify) that once a browser visits https it'll never load http again. To test, visit https://jsbin.com (signed out), and then try to load the http version - it'll redirect. This isn't behaviour that jsbin has built, but I believe is happening inside the browser. This is new behaviour which is exposing this redirect issue.

Fixed. A bit of a sledgehammer approach, but it's working. All pages under /account are now forced on to SSL.

Remy, thank you very much for your help! I really appreciate it!


persistent URLs

Idea: create persistent URLs for storing saved data. This would basically boil down to saving the JSON provided by the backend and generating some unique URL.URLs should only be generated on request, and compression of the data may be wise to reduce the amount of storage used.

Fixed in latest release.


As-is, a lot of times you might forget to save, in which case you get a notification saying "there's no changes to commit" if it's the only file. In that case you need to clear the notification, save the file, and try again.
My current workaround is a custom task that does this. This works because of a similar option, task.saveBeforeRun, does this same behavior, just for tasks. It'd be nice to have the same thing for committing specifically (and other commit-related actions, like Git: Commit (amend).

This behavior exists today, although there was a bug with it that has been fixed in the latest insiders, see #104945. Are you not seeing that behavior?

This behavior exists today, although there was a bug with it that has been fixed in the latest insiders, see #104945. Are you not seeing that behavior?

Ah, yeah so maybe that bug was making it worse than it actually was. Now that that's fixed, it's not too bad -- it's just one extra Enter press to confirm
Still, it would be nice to have a preference that, in the scenario where there's dirty editors when you're committing, it would always just Save All and Commit (and thus never show that dialog). For me at least, that's always the behavior I want, so it would be nice to take the extra modal confirmation step out of it

Ah, yeah so maybe that bug was making it worse than it actually was. Now that that's fixed, it's not too bad -- it's just one extra Enter press to confirm
Still, it would be nice to have a preference that, in the scenario where there's dirty editors when you're committing, it would always just Save All and Commit (and thus never show that dialog). For me at least, that's always the behavior I want, so it would be nice to take the extra modal confirmation step out of it


fixed styling and name slot

When the div was added to wrap everything it broke some of the css directives. It should be fixed now.
I also added the name slot into the items

Thanks for fixing this. Much appreciated.
I'll perform manual regression now.

Bug: From the test app. When I toggle between selecting and checking, I notice the check no longer cascades.

Expected Result

I am not able to reproduce this. on my branch the checks cascade correctly.

Fixes https://github.com/geekhybrid/vue3-tree-vue/issues/27
Version 2.0.10 released. Thanks for the effort.


Rework Home Page

Issue
#121
Done:

Fixed the hidden title on the home page;
Now it follows the idea of library tab where it says hi to the user;
First section with Recommended playlists in one line, they adapt to the screen size;
Second section align to the left there is user favorite songs and on the right user favorite artsists. Both timeline buttons that update their info according to short_term, medium_term and long_term. It was also added :hover on the songs and artist card and everything adapts to the user screen size.

Preview:

Nice work @Filipecerqueira99!


Use-after-move in Env_test.cpp

Problem:
There are two cases of using an object and asserting a condition about it after it has been moved from.
src/test/jtx/Env_test.cpp:485:23: warning: 'jt1' used after it was moved [bugprone-use-after-move]
        BEAST_EXPECT(!jt1.get<int>());
                      ^
src/test/jtx/Env_test.cpp:484:13: note: move occurred here
        JTx jt2(std::move(jt1));
            ^
src/test/jtx/Env_test.cpp:491:23: warning: 'jt2' used after it was moved [bugprone-use-after-move]
        BEAST_EXPECT(!jt2.get<int>());
                      ^
src/test/jtx/Env_test.cpp:490:13: note: move occurred here
        jt1 = std::move(jt2);

This code is explicitly testing the state of a moved from object. The code is OK as-is.


[PoC/Experiment] Remove dense indexes

:memo: Checklist

[ ] All user-facing changes have changelog entries.
[ ] The changes are reflected on vast.io, if necessary.
[ ] The PR description contains instructions for the reviewer, if necessary.

:dart: Review Instructions

Closing this in favor of the follow-up PR in #2430


Crash in [FlurryAppOrientationSource onqueue_dataProviderDidUpdate:]

Describe the bug
After iOS 14.0 release I see crashes for my app in [FlurryAppOrientationSource onqueue_dataProviderDidUpdate:]. Here is a sample crashlog:
Process:         MyApp [3080]
Path:            /private/var/containers/Bundle/Application/0EB462F0-D6BD-45D7-90F5-A5B08028496B/MyApp.app/MyApp
Identifier:      com.myapp.MyApp
Version:         2163
Code Type:       ARM-64
Parent Process:  ??? [1]

Date/Time:       2020-09-22 11:18:51 +0000
OS Version:      iPhone OS 14.0 (18A373)
Report Version:  104

Exception Type:  SIGSEGV
Exception Codes: SEGV_MAPERR at 0xea930120
Crashed Thread:  3

...

Thread 3 Crashed:
0   libobjc.A.dylib                     0x0000000197260df0 objc_release + 16
1   MyApp                               0x00000001058d2944 -[FlurryAppOrientationSource onqueue_dataProviderDidUpdate:] + 208
2   MyApp                               0x00000001058b97d4 __30-[FlurryActor wrapAsyncBlock:]_block_invoke + 236
3   libdispatch.dylib                   0x0000000183655298 _dispatch_call_block_and_release + 24
4   libdispatch.dylib                   0x0000000183656280 _dispatch_client_callout + 16
5   libdispatch.dylib                   0x00000001836324fc _dispatch_lane_serial_drain$VARIANT$armv81 + 568
6   libdispatch.dylib                   0x0000000183632fe8 _dispatch_lane_invoke$VARIANT$armv81 + 404
7   libdispatch.dylib                   0x000000018363c808 _dispatch_workloop_worker_thread + 692
8   libsystem_pthread.dylib             0x00000001c92705a4 _pthread_wqthread + 272
9   libsystem_pthread.dylib             0x00000001c9273874 start_wqthread + 8

This Bug is About
Please choose the closest item by replacing [ ] with [x].

[ ] Integration
[x] Analytics
[ ] Ads
[ ] Messaging/Push
[ ] IAP
[ ] Remote Configuration
[ ] Flurry Website/Dashboard
[ ] Other

Platform
Please choose the platform(s) that you are having the issue by replacing [ ] with [x].

[x] iOS
[ ] tvOS
[ ] WatchOS

Environment
Please tell us the versions of Flurry SDK, XCode, and iOS you are using.

Flurry SDK: 11.1.0
XCode: 12.0
iOS: 14.0

To Reproduce
This crash occurs to my users, but I cannot reproduce it.
Additional context
Are you using Flurry Push/Messaging? Yes
(iOS) Are you using CocoaPods or manual binary integration? Yes
Manual binary integration

@vladogrigorov Thank you for using Flurry analytics. Are you integrating Flurry Analytics through cocoapods or via manual binary integration?

I'm using manual binary integration, as I've written above. The previous version of Flurry, that I was using, was 10.2.0. A few days ago I released an updated version of my app for iOS 14 with Flurry 11.1.0 and I started to see those crashes.

@vladogrigorov We believe this crash is caused by a possible race condition however we have not been able to reproduce the crash during our testing scenarios. We have published a beta build which fixes the race condition suspected for this crash and the build can be downloaded from https://github.com/flurry/flurry-ios-sdk/releases/tag/11.1.1.rc1

Thank you @rajkaur01. Since I cannot reproduce the crash myself, and only see this crash for my users, I'll wait for a non-beta release build.

We just released an update with 11.1.0 and flurry is now the largest crash with only 5% of our user base having installed the update. Do you have an ETA on 11.1.1 being released? It seems to be occurring on iOS 13 as well, both in foreground and background.
Crashed: FlurryAppOrientationSource
0  libobjc.A.dylib                0x18eb2e980 objc_retain + 16
1  Flurry_iOS_SDK                 0x1030a7dfc _hidden#2704_ + 51 (__hidden#2706_:51)
2  Flurry_iOS_SDK                 0x10308de7c _hidden#1587_ + 321 (__hidden#1602_:321)
3  libdispatch.dylib              0x18eab69a8 _dispatch_call_block_and_release + 24
4  libdispatch.dylib              0x18eab7524 _dispatch_client_callout + 16
5  libdispatch.dylib              0x18ea638a4 _dispatch_lane_serial_drain$VARIANT$mp + 608
6  libdispatch.dylib              0x18ea64294 _dispatch_lane_invoke$VARIANT$mp + 416
7  libdispatch.dylib              0x18ea6d78c _dispatch_workloop_worker_thread + 588
8  libsystem_pthread.dylib        0x18eb08b74 _pthread_wqthread + 272
9  libsystem_pthread.dylib        0x18eb0b740 start_wqthread + 8

@bsweett Thank you for using Flurry Analytics. We are working on getting v11.1.1 released late next week.

@bsweett @vladogrigorov We just made v11.1.1  GA on cocoapods.

Closing out this issue as v11.1.1 is now GA. Feel free to reopen if the issue is not resolved.


Fast Paintings

CurseForge link
https://www.curseforge.com/minecraft/mc-mods/fast-paintings
CurseForge Mod Distribution
Allowed
Modrinth link
https://modrinth.com/mod/fast-paintings
Source/other link
https://github.com/MehVahdJukaar/FastPaintings
Mod file size
146.73 KiB + 869.18 KiB = 1015.91 KiB
License
All Rights Reserved / ARR
What it does
Optimizes paintings, like #23 optimizes (other?) block entities
Why should it be in the modpack
For the same reason as (other?) block entities are optimized, paintings could also use optimization
Why shouldn't it be in the modpack

According to Modrinth, it is required on client and server. Not sure if that's an error or what is the technical reason for that if true.
According to CurseForge, it changes vanilla behaviour by adding new mechanics like particles. Not sure if these can be disabled
Requires a huge library
Is ARR, even though source is available - may hinder its sustainability

Additional details
As suggested in https://legacy.curseforge.com/minecraft/modpacks/fabulously-optimized/?comment=998

The Modrinth Page seems compiled inaccurately as seen in the issue
Also it might be redundant cause moreculling

TheBossMagnus

iirc, prevents from joining Hypixel, due to Moonlight Lib (869KiB).

UltimatChamp

seems like an extremely invasive(for an optimization mod) both-side change
turning paintings into blocks will bring a significant amount of unsolvable parity issues and I'd be firmly against

skyevg

https://discord.com/channels/859124104644788234/1221872453035495624/1221872453035495624
(via)
Per those issues, closed.


Skip building testing libraries for SPM users.

Fixes #1919. Needs to wait for https://github.com/ReactiveCocoa/ReactiveSwift/pull/758 as they pull Quick/Nimble as well.

Warnings

:warning:
Package.swift, Package.resolved were updated, but there were no changes in Moya.podspec, Cartfile, Cartfile.resolved.
Did you forget to update them?

:warning:

Package.swift#L27 - Collection literals should not have trailing commas. (trailing_comma)

:warning:

Package.swift#L40 - Collection literals should not have trailing commas. (trailing_comma)

:warning:

Tests/MoyaTests/MoyaProvider+CombineSpec.swift#L121 - immutable value 'error' was never used; consider replacing with '_' or removing it

:warning:

Tests/MoyaTests/MoyaProvider+CombineSpec.swift#L121 - immutable value 'error' was never used; consider replacing with '_' or removing it

:warning:

Tests/MoyaTests/MoyaProvider+CombineSpec.swift#L154 - initialization of immutable value 'cancellable1' was never used; consider replacing with assignment to '_' or removing it

:warning:

Tests/MoyaTests/MoyaProvider+CombineSpec.swift#L154 - initialization of immutable value 'cancellable1' was never used; consider replacing with assignment to '_' or removing it

:warning:

Tests/MoyaTests/MoyaProvider+CombineSpec.swift#L167 - initialization of immutable value 'cancellable2' was never used; consider replacing with assignment to '_' or removing it

:warning:

Tests/MoyaTests/MoyaProvider+CombineSpec.swift#L167 - initialization of immutable value 'cancellable2' was never used; consider replacing with assignment to '_' or removing it

:warning:

Tests/MoyaTests/MoyaProvider+CombineSpec.swift#L215 - initialization of immutable value 'cancellable' was never used; consider replacing with assignment to '_' or removing it

:warning:

Tests/MoyaTests/MoyaProvider+CombineSpec.swift#L215 - initialization of immutable value 'cancellable' was never used; consider replacing with assignment to '_' or removing it

:warning:

Tests/MoyaTests/MoyaProvider+CombineSpec.swift#L218 - 'let' pattern has no effect; sub-pattern didn't bind any variables

:warning:

Tests/MoyaTests/MoyaProvider+CombineSpec.swift#L218 - 'let' pattern has no effect; sub-pattern didn't bind any variables

:warning:

Tests/MoyaTests/MoyaProvider+CombineSpec.swift#L262 - initialization of immutable value 'cancellable' was never used; consider replacing with assignment to '_' or removing it

:warning:

Tests/MoyaTests/MoyaProvider+CombineSpec.swift#L262 - initialization of immutable value 'cancellable' was never used; consider replacing with assignment to '_' or removing it

:warning:

Tests/MoyaTests/MoyaProvider+CombineSpec.swift#L275 - initialization of immutable value 'cancellable' was never used; consider replacing with assignment to '_' or removing it

:warning:

Tests/MoyaTests/MoyaProvider+CombineSpec.swift#L275 - initialization of immutable value 'cancellable' was never used; consider replacing with assignment to '_' or removing it

:warning:

Tests/MoyaTests/MoyaProvider+CombineSpec.swift#L297 - initialization of immutable value 'cancellable' was never used; consider replacing with assignment to '_' or removing it

:warning:

Tests/MoyaTests/MoyaProvider+CombineSpec.swift#L297 - initialization of immutable value 'cancellable' was never used; consider replacing with assignment to '_' or removing it

:warning:

Tests/MoyaTests/MoyaProvider+CombineSpec.swift#L310 - initialization of immutable value 'cancellable' was never used; consider replacing with assignment to '_' or removing it

:warning:

Tests/MoyaTests/MoyaProvider+CombineSpec.swift#L310 - initialization of immutable value 'cancellable' was never used; consider replacing with assignment to '_' or removing it

Messages

:book:
iOS: 	 Executed 292 tests, with 0 failures (0 unexpected) in 15.602 (15.874) seconds

:book:
tvOS: 	 Executed 292 tests, with 0 failures (0 unexpected) in 15.040 (15.300) seconds

:book:
macOS: 	 Executed 281 tests, with 0 failures (0 unexpected) in 13.578 (13.812) seconds

  Generated by :no_entry_sign: Danger Swift against e7c6ae1767d0f0e046d7aa6c68eb9d0659c18e7f

Codecov Report

:exclamation: No coverage uploaded for pull request base (development@9862538). Click here to learn what that means.
The diff coverage is n/a.

@@              Coverage Diff               @@
##             development    #1923   +/-   ##
==============================================
  Coverage               ?   89.85%
==============================================
  Files                  ?       29
  Lines                  ?     1025
  Branches               ?        0
==============================================
  Hits                   ?      921
  Misses                 ?      104
  Partials               ?        0

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9862538...e7c6ae1. Read the comment docs.

I'm not sure if this PR on ReactiveSwift is gonna pass or not, so I created our own fork in the meantime (in Moya organization).

We will use our own fork by default for SPM integration but if anyone would want to use the original version of ReactiveSwift there is no problem as well. Gonna add documentation about that in a second.


The Logic App Properties doesn't list Gov Subs

The Logic App Properties windows doesn't list Azure Gov Subscription that I am using in VS2019. I can use Cloud Explorer and other tools except being able to use Logic App Designer so I can develop and deploy apps to Gov Subs.

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

ID: a4e4c182-ccd7-0ee5-a993-9f4b4febf8d5
Version Independent ID: a02db181-a2e8-2a13-5932-d93dadacbae9
Content: Create automated workflows with Visual Studio - Azure Logic Apps
Content Source: articles/logic-apps/quickstart-create-logic-apps-with-visual-studio.md
Service: logic-apps
GitHub Login: @ecfan
Microsoft Alias: estfan

Hi @melzoghbi - Thank you for your feedback! We will review and update as appropriate.

@melzoghbi Are you using Azure Environment Selector to ensure you're on Azure Government environment? If not, please give that a try and let us know.

@melzoghbi Following up on my previous comment above, please let us know if we can assist further. Otherwise, we'll proceed to close this issue.

@mike-urnun-msft & @melzoghbi: We'll update the topic with more info about this extension.

@mike-urnun-msft & @melzoghbi:
The topic is now updated in the Prerequisites section:

@mike-urnun-msft: #please-close

First, the Gov. Selector extension is not supported in VS2019. VS2019 is designed to connect to any environment without the need to install the Azure Environment Selector extension. Till today using build 16.3.5, VS2019 doesn't list Government subscriptions! so the issue for logic app project template is not working till this point using this build.

I'm still experiencing this issue.  Any update on this?

This topic walks through how to set up Visual Studio 2019 so that you can use Azure Government subscriptions:
https://docs.microsoft.com/azure/azure-government/documentation-government-connect-vs

Thanks @ecfan.  I've set up access to Azure Government in VS2019, and I'm able to do deployments and see the subscription and resources in Cloud Explorer.  What's not working is when you go to open a Logic App in Designer View, and it asks you to  pick a subscription.

Hi @ccapellan,
Apologies for the delay, but the engineering team provided a solution, which I'll add to the doc. By default, Visual Studio isn't set up to work with Azure Government accounts. So, you need to add a discovery endpoint for Azure Government Cloud by following these steps:

In Visual Studio, on the Tools menu, select Options > Environment > Accounts.

Under Registered Azure Clouds, select Add. From the Discovery endpoint list, select Azure U.S. Government (https://login.microsoftonline.us).
This step generates a JSON file named Azure U.S. Government-A3EC617673C6C70CC6B9472656832A26.Configuration at this location:
%localappdata%\.IdentityService\AadConfigurations

Close Visual Studio.

Rename the generated JSON file to AadProvider.Configuration.json.

Restart Visual Studio.

On the File menu, select Account Settings.

Under All Accounts, select Add an account, and sign in with your Azure Government account.
Visual Studio now works with Azure Government accounts by default.

To revert this setup, delete the JSON file at the following location and restart Visual Studio:
%localappdata%\.IdentityService\AadConfigurations\AadProvider.Configuration.json

Thanks @ecfan.  That worked for me!

I've been looking for this solution, thanks @ecfan !


Missing modules when running npm run build or npm install

Hi,
I am working on a foundation press project and I am trying to get it all setup and working. I have cloned the preexisting repository howoever every time I run pretty much any npm command I get the following output:

<EMAIL_ADDRESS>build /path/to/foundation/project
gulp build

module.js:327
throw err;
^
Error: Cannot find module 'glob'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/path/to/foundation/project/node_modules/gulp-load-plugins/node_modules/findup-sync/lib/findup-sync.js:15:12)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
npm ERR! Darwin 15.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v4.4.1
npm ERR! npm  v2.14.20
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>build: gulp build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script 'gulp build'.
npm ERR! This is most likely a problem with the foundationpress package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gulp build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs foundationpress
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls foundationpress
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /path/to/foundation/project/npm-debug.log
I have uninstalled nodeJS completely and reinstalled it again. It seems that I must have large dependency missing because every time I try to install the module that it says its missing it just complains about another module missing. Im a bit new to these package managers but aren't supposed to take care of all the dependencies?

Tyler

Do you get errors when you run npm install?

@colin-marshall
Ya, npm install throws this error.

The error in the original post is from running npm run build. I want to see the error from npm install
Please do the following:
rm -rf node_modules
npm install
provide the contents of that error message
Thanks.

@tylerfoulkes did you figure it out?

Yes that worked perfect, thank you! Sorry I didn't respond earlier.

No worries! Just making sure you got it sorted out. Feel free to close the issue if it's resolved. Thanks!

@colin-marshall , I am having the same error, I am using a windows 8 system, but it is as if the command  rm -rf node_modules is not recorgnized on windows.

@clementcrownrise , rm -rf is linux command to remove the directory i.e., node_modules in this case. You can try deleting node_modules and do "npm install"  again. Hope it works!

if it doesn't work it could be a linking problem like I had. Try to uninstall npm and install it again, it should fix the problem.

In windows you could probably use rmdir /s node_modules  instead of rm -rf node_modules.

i am facing same problem . i also uninstall and then install it ,but it is not working
getting below error:
module.js:428
throw err;
^

Hi, I'm getting the same error on WINDOWS 10,
C:>node C:\Users\chegi\Documents\00 Soft Project\Test1.js
module.js:471
throw err;
^
I tried to run the npm install
and I got:
C:>npm install
npm WARN enoent ENOENT: no such file or directory, open 'C:\package.json'
npm WARN !invalid#1 No description
npm WARN !invalid#1 No repository field.
npm WARN !invalid#1 No README data
npm WARN !invalid#1 No license field.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v6.10.0
npm ERR! npm  v3.10.10
npm ERR! path C:\node_modules
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall mkdir
npm ERR! Error: EPERM: operation not permitted, mkdir 'C:\node_modules'
npm ERR!     at Error (native)
npm ERR!  { Error: EPERM: operation not permitted, mkdir 'C:\node_modules'
npm ERR!     at Error (native)
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: 'C:\node_modules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v6.10.0
npm ERR! npm  v3.10.10
npm ERR! path C:\npm-debug.log.3072103967
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall open
npm ERR! Error: EPERM: operation not permitted, open 'C:\npm-debug.log.3072103967'
npm ERR!     at Error (native)
npm ERR!  { Error: EPERM: operation not permitted, open 'C:\npm-debug.log.3072103967'
npm ERR!     at Error (native)
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'open',
npm ERR!   path: 'C:\npm-debug.log.3072103967' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR!     C:\npm-debug.log
C:>
Any suggestion how to fix this one, or If removing the modules may help, Thanks!!!

I am also getting same error!

Firstly, npm on windows is just horrible. I know your pain.
Secondly, it's telling you what to do: npm ERR! Please try running this command again as root/Administrator
Open the cmd.exe with right click -> run as administrator

having the same problem here.

at npm install i did not get any error but after running on command promt i am geeting an error.
C:\Users\Lenovo\Desktop\sample website with node.js>node pcnmserver.js
module.js:471
throw err;
^
Error: Cannot find module 'C:\Users\Lenovo\Desktop\sample website with node.js\pcnmserver.js'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:389:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:504:3

Same error after a fresh install of node, npm and node-sass on Win 10:
[INFO] Running 'npm install --color=false' in C:\Users\---src\main\frontend
[ERROR] npm WARN prefer global<EMAIL_ADDRESS>sho`uld be installed with -g
[INFO]
[INFO] ><EMAIL_ADDRESS>install C:\Users\---\src\main\frontend\node_modules\node-sass
[INFO] > node scripts/install.js
[INFO]
[ERROR] module.js:341
[ERROR]     throw err;
[ERROR]     ^
[ERROR]
[ERROR] Error: Cannot find module 'extend'
[ERROR]     at Function.Module._resolveFilename (module.js:339:15)
[ERROR]     at Function.Module._load (module.js:290:25)
[ERROR]     at Module.require (module.js:367:17)
[ERROR]     at require (internal/module.js:20:19)
[ERROR]     at Object.<anonymous> (C:\Users\---\src\main\frontend\node_modules\request\index.js:17:29)
[ERROR]     at Module._compile (module.js:413:34)
[ERROR]     at Object.Module._extensions..js (module.js:422:10)
[ERROR]     at Module.load (module.js:357:32)
[ERROR]     at Function.Module._load (module.js:314:12)
[ERROR]     at Module.require (module.js:367:17)
[ERROR] npm WARN frontend No description
[ERROR] npm WARN frontend No repository field.
[ERROR] npm WARN frontend No license field.
[ERROR]
[ERROR] npm ERR! code ELIFECYCLE
[ERROR] npm ERR! errno 1
[ERROR] npm ERR<EMAIL_ADDRESS>install: `node scripts/install.js`
[ERROR] npm ERR! Exit status 1
[ERROR] npm ERR!
[ERROR] npm ERR! Failed at the<EMAIL_ADDRESS>install script.
[ERROR] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[ERROR]
[ERROR] npm ERR!      C:\Users\---\AppData\Roaming\npm-cache\_logs\2017-08-08T11_02_46_858Z-debug.log

@colin-marshall  thx

@artigarg did you troubleshoot this issue
I get a similar problem...
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>node app.js
module.js:538
throw err;
^
Error: Cannot find module 'C:\WINDOWS\system32\app.js'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
C:\WINDOWS\system32>rimraf node_modules
C:\WINDOWS\system32>npm install
npm WARN saveError ENOENT: no such file or directory, open 'C:\WINDOWS\system32\package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open 'C:\WINDOWS\system32\package.json'
npm WARN system32 No description
npm WARN system32 No repository field.
npm WARN system32 No README data
npm WARN system32 No license field.
up to date in 0.284s
C:\WINDOWS\system32>node app.js
module.js:538
throw err;
^
Error: Cannot find module 'C:\WINDOWS\system32\app.js'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
C:\WINDOWS\system32>

@dnorton94 are you even using FoundationPress? You don't build FoundationPress with node app.js which makes me think you using a completely different Node app.
Regardless, I think you are probably in the wrong directory if you are trying to run a Node app from the C:\WINDOWS\system32 directory. You need to be in the directory app.js is in.

@clementcrownrise Directly open the installed folder (node_modules). Right-click to remove it

BTW, chaps, for those of you who don't use Linux/Mac, just so you know - Windows has a huge problem with the deep file system created in node_modules & will very often refuse to remove the entire directory, even from PowerShell using Administrative privileges.
One solution is "Unlocker", but then people who aren't paying attention install other unnecessary applications on their PC, and the other irritation is that it often requires a system reboot to perform the operation.
In Windows 10, fortunately, we can install 'Windows Subsystem for Linux' via 'Control Panel >> Programs & Features >> Turn Windows Features On or Off'.
There is a tutorial on installation here: https://msdn.microsoft.com/en-us/commandline/wsl/install-win10, and afterwards users can then perform native Linux commands on their Windows folders using Bash from the Command Prompt, eliminating the need for pesky workarounds to delete files Windows battles with.

Hey guys, I'm on mac OS High Seirra and I'm trying to install solidity but i'm getting the below response. I tried runnig the command as sudo - same response. I also tried running    rm -rf node_modules   npm install   Also did not work.
Here is the response I have been getting:
 ~ $sudo npm install -g solc
 Password:
 module.js:538
     throw err;
     ^

 Error: Cannot find module '../lib/utils/unsupported.js'
     at Function.Module._resolveFilename (module.js:536:15)
     at Function.Module._load (module.js:466:25)
     at Module.require (module.js:579:17)
     at require (internal/module.js:11:18)
     at /usr/local/lib/node_modules/npm/bin/npm-cli.js:19:21
     at Object.<anonymous> (/usr/local/lib/node_modules/npm/bin/npm-cli.js:92:3)
     at Module._compile (module.js:635:30)
     at Object.Module._extensions..js (module.js:646:10)
     at Module.load (module.js:554:32)
     at tryModuleLoad (module.js:497:12)

@Jay991 are you using FoundationPress?

I just moved to a new environment all worked fine - Thanks ! :)
--
Jihad Rizk
On December 6, 2017 at 8:53:32 PM, Colin Marshall<EMAIL_ADDRESS>wrote:
@Jay991 https://github.com/jay991 are you using FoundationPress?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/olefredrik/FoundationPress/issues/780#issuecomment-349738264,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AYu4n3QEaj_FaVJaJXu0Sp_qGhJB4W2yks5s9uKrgaJpZM4H5SqI
.

i just run this code
npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/cli@latest

module.js:538
throw err;
^
Error: Cannot find module 'bcrypt'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object. (G:\codebase\calendercode1.1.0\server_side\controller\api\auth\auth.js:5:14)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object. (G:\codebase\calendercode1.1.0\route.js:7:12)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
plz give the solution for this ... I reinstall all npm package still this problem happens

I  getting this error, I didn't know how to figure it out
module.js:557
throw err;
^
Error: Cannot find module '/Users/udaysaikumar/connection'
at Function.Module._resolveFilename (module.js:555:15)
at Function.Module._load (module.js:482:25)
at Function.Module.runMain (module.js:701:10)
at startup (bootstrap_node.js:194:16)
at bootstrap_node.js:618:3


feat/add php refactor for convert arrow function to anonymous function

Hello,
I was in the middle of trying to make something just like this plugin when I came across yours! I was frustrated by the lack of good PHP code action providers. So, I made a PR that adds the ability to convert an arrow function fn () => ... to an anonymous function function() { return ...; }
You'll notice I also added support for providing a custom formatting function (so I can use my conform.nvim plugin instead of the built-in vim.lsp.buf.format()).
In the future, if you're up for it, I'd like to add PHP refactors for:

Converting back from an anonymous function to an arrow function
Converting back/forth between ternary and basic if/else statements
Any other refactors I find myself doing a lot!

My current work stack is Laravel backend, JS/React frontend. So, I'd be happy to add other refactors for JS as well.

@deshazer Thank you for this contribution!
I have updated the PR with a reformatting of the entire plugin (now that we have a stylua conf 😄).
I have renamed the action to match the one I have for JS, and also refactored it, so that is supports toggling to and from arrow function syntax.
Please test my changes and let me know if they work as expected.

Awesome! 🔥🚀
Sorry, I didn't get much of a chance today. But, I did think of a couple of edge cases we might need to account for:

When the arrow function has a use() clause, we need to remove that (I always forget about those because I wish they didn't exist).
More challenging, but it would be cool if we added the use() statement back in for the correct variables when converting back to a function(). We might have to mark this one as "extra-credit", because I think we'll want the LSP's help to determine if any variable inside the function was declared outside the scope. 🤷♂
It's kind of annoying when your anonymous function only has one line, and you can totally convert it to an arrow function, but you plan to ignore the return value. For example:

$users->each(function ($user) {
  $user->update( /* ... */);
});

This could easily be converted to this, despite not having a return statement.
$users->each(fn ($user) => $user->update( /* ... */));

Ok, I think I've handled all three of the cases from my previous comment.

Removing the use statement was already happening naturally as we converted to an arrow function.
I did this without using the LSP. All Treesitter, as promised. 👍
I also modified this to convert to an arrow function as long as there was only one named child expreesion_statement or return_statement.

Give it a try and let me know what you think! 👀

The changes look good!
Thank you for your contribution :smile:


time library does not have a constant defined for golang time string

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go1.7.5 darwin/amd64
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
What did you do?
Use time.Parse()
Time string is in the default go format. There is no constant defined in the time library for go's native format.
2006-01-02 15:04:05.999999999 -0700 MST
const longFormat = "2006-01-02 15:04:05.999999999 -0700 MST"
createTimeStamp, err := time.Parse(longFormat, timeStringToParse)

What did you expect to see?
-A constant defined like one of the RFC standards or UnixDate.
-A way to call time.Parse() without passing in a format so that it defaults to the default format.
What did you see instead?
I have to define the format like the code snippet above. I want to know if there will be support for this. I would like to avoid defining my own custom wrapper library.

Dup of #6587 (and #9596), both of which were closed with the decision that we're not going to add this.
@robpike said previously:

The default format string is a clumsy one whose sole merit is that it represents all the
pieces of the value. Few uses need that property alone. A better approach is to choose a
format that meets your needs (say, RFC3999Nano) and use that explicitly. The only reason
to publish this as a constant is to parse a default value again. If you're parsing, it's
better to be clear about what you're printing too.

Closing.


Move bypassing in-package resilience logic to a resilience check with accessing module

isResilient() returns the decl's resilience by definition and should not be altered whether bypassing optimization is enabled or not. The overloaded isResilient(ModuleDecl, ResilienceExpansion) is used for accessing a decl from a client module, which is the appropriate place to check for in-package resilience bypass optimization.
Resolves rdar://123031292

@swift-ci smoke test

@swift-ci smoke test

@swift-ci smoke test

@swift-ci smoke test

@swift-ci smoke test

@swift-ci smoke test


Feature request: setting to disable features like jump to definition/find references

I'm implementing a language service that includes features for jumping to definition / find references with CSS Custom Properties, and I'm finding that the built in CSS Languageservice clashes with the results.
e.g. jump to definition will give two results for the same location with slightly different ranges, turning an instant jump into an interaction with a menu.
(Our language service understands HTML Imports, which is very useful for our users, otherwise I'd just turn off our CSS features in our VSCode plugin and defer to the vscode css languageservice.)

The css language service is just a library and the user of the library decides when and and what document location to use it.
If this is about the css language server (not service), please file your suggestion against https://github.com/Microsoft/vscode


[QUESTION] int values for enums

I'm working with an API that returns integer values for enums instead of their String names. So instead of:
enum UserRole {
  @JsonValue('swaggerGeneratedUnknown')
  swaggerGeneratedUnknown,
  @JsonValue('Guest')
  guest,
  @JsonValue('User')
  user,
  @JsonValue('Admin')
  admin
}

I would need this to be generated:
enum UserRole {
  @JsonValue(-1)
  swaggerGeneratedUnknown,
  @JsonValue(0)
  guest,
  @JsonValue(1)
  user,
  @JsonValue(2)
  admin
}

Is this possible with this package?

Hi @Miiel
I will check if it's possible to generate it like this. Actually it's good idea to generate int enums

Hi @Miiel
Please check latest version. Let us know in case of any issues


dev: rejected transaction status

Current Behavior
Right now, any validation error (nonce, invalid signature..) is not popped up back to the user, there is no way to see on the client side why the tx has failed.
When trying to query the receipt there will be an error: Transaction Hash not found
Expected Behavior
It should return a receipt with the REJECTED status.

Could you point us the exact method you are using that doesnt return the desired reject?


JSONPath with bracket-notation and descendant axis returns more tokens than expected

Source JSON
{
    "root": {
        "a": {
            "name": "John",
            "b": {
                "name": "Sarah"
            }
        }
    }
}

Expected behavior
Using SelectToken with JSONPath, I want to search for “a” recursively, then get the “name” non-recursively. I expect to find a single token: the “name” node, which is an immediate child of “a”.
Actual behavior
When I use the dot-notation — “$..a.name” — it returns correctly the “name” token, which is a child of “a”.
However, when I use the alternative bracket-notation — “$..['a']['name']” — it returns both of the “name” tokens. The second “name” should not be returned, because it is not an immediate child of “a”.
Steps to reproduce
// In C Sharp, in a console application,
// using Newtonsoft.Json 12.0.2 and .NET Framework 4.8.

string json = @"
        {
            ""root"": {
                ""a"": {
                    ""name"": ""John"",
                    ""b"": {
                        ""name"": ""Sarah""
                    }
                }
            }
        }
        ";

JToken t = JToken.Parse( json );

int count1 = t.SelectTokens( "$..a.name" ).Count(); // result: 1, expected: 1
int count2 = t.SelectTokens( "$..['a']['name']" ).Count(); // result: 2, expected: 1

Thanks for the good repro. Fixed.


feat: externilize configuration

Refs: #23

Codecov Report

Merging #24 (7b66c03) into master (17b26e1) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #24   +/-   ##
=======================================
  Coverage   52.69%   52.69%
=======================================
  Files          17       17
  Lines         463      463
=======================================
  Hits          244      244
  Misses        198      198
  Partials       21       21

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 17b26e1...7b66c03. Read the comment docs.


Remove jwst package dependency in miri.py by hardcoding wavelengths

This Pull Request addresses Issue #236.
The old function wave_MIRI(filename) which used the jwst package was removed.
It was replaced with wave_MIRI_hardcoded() which includes the full wavelength array.
The reasoning behind this is that hdulist['WAVELENGTH', 1].data is populated by zeros for the simulated data.
When the actual data with a proper wavelength array is available, line 55 in miri.py has to be just changed to:
data.wave = hdulist['WAVELENGTH', 1].data

I added the checks for the wavelength and time arrays.
If np.all(hdulist['WAVELENGTH', 1].data == 0) --> use hardcoded wavelength array and output a warning
else --> use hdulist['WAVELENGTH', 1].data and do swapaxis which is needed for the miri data
if len(int_times['int_mid_BJD_TDB']) == 0 --> use the coded time arrays and output a warning
else --> use int_times['int_mid_BJD_TDB']