[libigl] Fix configure error and dependencies

This PR will:

Fix configure error
Remove feature png due to source issue #1199
Feature imgui is enabled only during static builds

wip: fix feature embree when building static
Related: #8811

/azp run

I couldn't find imgui feature in libigl using #include <igl/opengl/glfw/View.h> with libigl[core, opengl, glfw, imgui]:x64-windows installed, so I have merged this PR locally for a fast try. But upgrading vcpkg and auto-rebuilding didn't solve the problem.
You mentioned "Feature imgui is enabled only during static builds", but I still get BUILD_FAILED when installing static version.
$ .\vcpkg.exe install libigl[imgui]:x64-windows-static
Computing installation plan...
The following packages will be built and installed:
    libigl[core,imgui]:x64-windows-static
Starting package 1/1: libigl:x64-windows-static
Building package libigl[core,imgui]:x64-windows-static...
-- Using cached C:/Users/Jin Li/vcpkg/downloads/libigl-libigl-f6b406427400ed7ddb56cfc2577b6af571827c8c.tar.gz
-- Using source at C:/Users/Jin Li/vcpkg/buildtrees/libigl/src/f571827c8c-c8ef868db9
CMake Error at ports/libigl/portfile.cmake:39 (message):
  Feature imgui does not support static build currentlly
Call Stack (most recent call first):
  scripts/ports.cmake:90 (include)

@L-JIN That's why this PR marked work in progress now.

@JackBoosY Sorry, I thought this is all finished and waiting to be merged.

/azp run

/azp run

@L-JIN Feature imgui only support dynamic build.

@JackBoosY Glad to know that. Thank you!

The test microsoft.vcpkg.pr (Run PR Test x64_osx)  is deprecated.

/azp run

@strega-nil We can do it step by step.

/azp run

/azp run


[WIP] Dep-inject functions involving randomness

Coverage decreased (-0.05%) to 84.861% when pulling e5088aeda5256bf754d152cdc856ff57f5faf5bd on akalin/rand-interface into 2fda0838fec99dd7345943a2f02ee20a0e06340e on master.

Per our chat, changed this PR to avoid changing the public API. PTAL!

Reverted my mistake re. max receiver count

LGTM

Made sure to test vendoring this into client and kbfs to make sure the API really didn't break!


Support PyCharm in launchEditor

PyCharm has the same signature as WebStorm and PhpStorm <editor> <projectPath> --line <number> <filePath> so it can reuse the logic from those.
https://www.jetbrains.com/help/pycharm/opening-files-from-command-line.html
Tested with PyCharm Pro 2017.1.4 on MacOS 10.12

Thanks!

Hi there! This change is out in<EMAIL_ADDRESS>please give it a go! Thanks.


Get-CsDialPlan: Appliets to is incorrect

The Applies to section says it Get-CsDialplan applies to Skype for Business online. Yet, it appears this is no longer correct. When I log into my tenant, it tells me Get-CsDialplan is not a known command. The same goes for Get-CsVoicePolicy. The doc should be updated accordingly.
And is there a central place where changes in these commandlets are kept? Just noticing the change if a commandlet stops working is somewhat iffy.. isn't there a central changelog somewhere?

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

ID: 0bce1475-ff1d-ae12-780b-c50164f59841
Version Independent ID: d78e0a6e-14a9-1a8e-33ad-f209ca1a7197
Content: Get-CsDialPlan (skype)
Content Source: skype/skype-ps/skype/Get-CsDialPlan.md
Service: skypeforbusiness-powershell
GitHub Login: @tomkau
Microsoft Alias: tomkau

@officedocsbot assign @yogkumgit

I have been experiencing the same problem since Monday with Get-CsDialplan and Get-CsVoicePolicy commands.
These two commands worked last week.
Is it a bug or a  choice of MS?
How can we be informed of these changes?

Hello @rogupta @tomkau can you confirm these cmdlets have been removed from SkypeFB Online? I checked and I can confirm that are not present in my tenant but I do want a final confirmation from you.
Thank you

Same issue here, looks to be since start of November?
Could we please have confirmation whether these cmdlets were retired from the online module?

@get-itips -- heard back from the team that owns these.  They do not apply to online and the documentation should be updated to reflect this.

Ok @tomkau will take care of that. Thanks for letting me know

@tomkau Please merge this PR #4492

@get-itips  Thank you very much for the contribution and updating the documentation with PR. @ssteiner Hope this update is helpful for you. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.

Does the -Tenant option still apply?


kopylot --version should not require the token to be set

As far as I am aware, most programs can run <program> --version without external dependencies or actual secrets/tokens present.
This fails for me on the current version (0.0.4):
➜  kopylot git:(main) kopylot --version
Error: KOPYLOT_AUTH_TOKEN not set.

I just merged a fix for that. Thanks for reporting the 🐛 !


Sending POST request is not working as expected

so the issue is when I tried to make POST request using collection.create(payload),
somehow the payload was not being sent properly to API (no payload at all)

@gaghan430 It should be fixed on the yesterday release. Closing it, thanks!


Enhance README.md for adding '.properties' to the code block.

Enhance README.md for adding '.properties' to the code block for highlight parameters.

Hi,
Thanks for your contribution, however Sunflower is going to be archived in favour of maintaining a smaller set of up-to-date set of compose-samples, that can be found here: https://github.com/android/compose-samples, as well as snippets that can be found here: https://github.com/android/snippets.
Please feel free to keep your fork up-to-date for your learning, but this repository will be archived shortly.


ClusterRoleBinding updated for Argo Redis

What is this PR About?
Describe the contents of the PR
How do we test this?
Provide commands/steps to test this PR.
cc: @redhat-cop/day-in-the-life

/approve

/lgtm


Implementing backspace deletion

This time, I implemented backspace deletion.
It's the desired feature that tags gets deleted when you press backspace button.
but flutter doesn`t have the function to detect the soft backspace button.
So I did the trick like the space add function.
Execute when the param value of onChanged function enters once space.
Since this part can conflict with the space add-in, the form's starting value is always two spaces.
When the TextField focuses, it is always fixed with two spaces to avoid errors in the user's space position via focusNode.
The problem here occurs when the user forcibly moves the cursor of the textfield.
However, I thought that people would seldom deliberately change the position of the cursor.
Below is a demo video.

I'm sorry for my poor English.
Please let me know if there is any problem with the code.

@eyoeldefare  This is exactly what I am looking for. Do you have any plan to merge this pr?

Hey

@eyoeldefare This is exactly what I am looking for. Do you have any plan to merge this pr?

Hey I will officially start reviewing and maintaining this package starting end of May. I started a new job and was too busy to get into Flutter properly in these past months. I will have to review everything and test everything over end of May. Until then, you can fork and work with the new changes.

I don't think this defeats the point at all, but I can't comment to how much extra maintenance burden this would be.
I'd like to see this implemented, if possible.


Add script to add/update @deprecated tags

    @aruniverse @calebmshafer know anyone who's bored and wants to write a script to add `@deprecated in 3.x` to existing tags?

 If we already have a list of deprecated APIs from 2.x or the resulting list is small, may be easier to do manually

Do we want to add minor as we go, or stay at the version ? (I will deprecated stuff in upcoming days and I'm not sure if we want to go @deprecated in 3.6.0 or stay at @deprecated in 3.x ?)

I did the easy part -- a lint rule will be useful to ensure future deprecations include version info. For example, in #4923.


Add chapter level sponsors to chapter pages.

Currently, chapter sponsors do not show up on the chapter level pages. This will take a bit of design help for layout + template additions to be able to make this work. Very design friendly!

30 second mockup! We can place logos and names in an aside below the chapter name on desktop:

Then small-tile logo on mobile, dropping the name for space:

Anyone else have suggestions?

I like the mockup. Once you've settled on a design, feel free to assign this to me :grin:

I think this is the only idea so far. If you think you can run with it, please do!

Assign to me please :smiley:

@minamarkham assigned!

+1 priority, gracias @minamarkham


build: run android builder with android-L devices.

The current builder cross-compiles the test binaries, runs the compiled binaries on the device, and parses the output of them. This does not work for android-L that requires PIE and refuses to run the test binaries with the following error message.
"only position independent executables (PIE) are supported."
Probably related to : #6940

Does Android L support PIE executable with text relocations?
We can easily generate PIE executable if text relocation is supported.
External linking with PIE (#6940) is a different story though.
(Removing text relocations is ##9210).
To eliminate text relocations, we need to modify the way we load
addresses into registers. Right now, we use constant pool entry
for absolute address, to support PIE (or PIC), we have to use PC
relative load.
MOVW addr(SB), R0 is currently translated to:
ldr r11, [pc, #cpoff]; constant pool uses R_ADDR reloc.
ldr r0, [r11]
To switch to PIC, it needs to be translated to:
ldr r11, [pc, #cpoff]; constant pool uses R_PCREL+addend
ldr r0, [pc, r11]
MOVW $addr(SB), R1 is currently translated to:
ldr r1, [pc, #cpoff]
To switch to PIC, it needs to be:
ldr r11, [pc, #cpoff]
add r11, pc, r1

Just adding -ldflags="-extldflags=-pie" works on my Nexus 6. While it complains about the text relocations, it appears to work just fine:
W/linker  (12596): /data/local/tmp/test has text relocations. This is wasting memory and prevents security hardening. Please fix.

@quarnster huh, that didn't work last time I tried it, but you're right.

I believe this can be closed. android/arm and android/arm64 run on Android M devices and android/386 and android/amd64 on Android O emulators.


Problem installating rdkit ModuleNotFoundError: No module named 'rdkit'

I installed rdkit in my Ubuntu using the following command
sudo apt-get install python-rdkit librdkit1 rdkit-datapython
Looking at the output it seems like everything went well
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libbonobo2-0 libbonobo2-common libgconf2-4 libgnome2-0 libgnome2-bin
  libgnome2-common libidl-common libidl0 liborbit-2-0 liborbit2
  linux-headers-3.13.0-119 linux-headers-3.13.0-119-generic
  linux-headers-3.13.0-139 linux-headers-3.13.0-139-generic
  linux-headers-3.13.0-52 linux-headers-3.13.0-52-generic
  linux-headers-3.13.0-77 linux-headers-3.13.0-77-generic
  linux-headers-3.13.0-79 linux-headers-3.13.0-79-generic
  linux-headers-3.13.0-83 linux-headers-3.13.0-83-generic
  linux-headers-3.13.0-85 linux-headers-3.13.0-85-generic
  linux-headers-3.13.0-87 linux-headers-3.13.0-87-generic
  linux-headers-3.13.0-93 linux-headers-3.13.0-93-generic
  linux-headers-3.13.0-95 linux-headers-3.13.0-95-generic
  linux-image-3.13.0-119-generic linux-image-3.13.0-139-generic
  linux-image-3.13.0-52-generic linux-image-3.13.0-77-generic
  linux-image-3.13.0-79-generic linux-image-3.13.0-83-generic
  linux-image-3.13.0-85-generic linux-image-3.13.0-87-generic
  linux-image-3.13.0-93-generic linux-image-3.13.0-95-generic
  linux-image-extra-3.13.0-119-generic linux-image-extra-3.13.0-139-generic
  linux-image-extra-3.13.0-52-generic linux-image-extra-3.13.0-77-generic
  linux-image-extra-3.13.0-79-generic linux-image-extra-3.13.0-83-generic
  linux-image-extra-3.13.0-85-generic linux-image-extra-3.13.0-87-generic
  linux-image-extra-3.13.0-93-generic linux-image-extra-3.13.0-95-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libboost-regex1.54.0
Suggested packages:
  rdkit-doc
The following NEW packages will be installed:
  libboost-regex1.54.0 librdkit1 python-rdkit rdkit-data
0 upgraded, 4 newly installed, 0 to remove and 260 not upgraded.
Need to get 8 054 kB of archives.
After this operation, 25,7 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://se.archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-regex1.54.0 amd64 1.54.0-4ubuntu3.1 [261 kB]
Get:2 http://se.archive.ubuntu.com/ubuntu/ trusty/universe librdkit1 amd64 201309-1 [1 420 kB]
Get:3 http://se.archive.ubuntu.com/ubuntu/ trusty/universe python-rdkit amd64 201309-1 [1 897 kB]
Get:4 http://se.archive.ubuntu.com/ubuntu/ trusty/universe rdkit-data all 201309-1 [4 476 kB]
Fetched 8 054 kB in 0s (12,0 MB/s)
Selecting previously unselected package libboost-regex1.54.0:amd64.
(Reading database ... 715051 files and directories currently installed.)
Preparing to unpack .../libboost-regex1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-regex1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package librdkit1.
Preparing to unpack .../librdkit1_201309-1_amd64.deb ...
Unpacking librdkit1 (201309-1) ...
Selecting previously unselected package rdkit-data.
Preparing to unpack .../rdkit-data_201309-1_all.deb ...
Unpacking rdkit-data (201309-1) ...
Selecting previously unselected package python-rdkit.
Preparing to unpack .../python-rdkit_201309-1_amd64.deb ...
Unpacking python-rdkit (201309-1) ...
Setting up libboost-regex1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Setting up librdkit1 (201309-1) ...
Setting up rdkit-data (201309-1) ...
Setting up python-rdkit (201309-1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.14) ...

However when importing rdkit in Pythin I am getting the following error
>>> from rdkit import Chem
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'rdkit'

Any help?

try this instead, maybe
import rdkit
from rdkit import Chem

I just tried this on ubuntu 18.04 and everything worked fine. Are you sure that your PYTHONPATH is set properly and that you're running the correct version of Python?

First thing:
I activated a python environment like
source activate py36 followed by
sudo apt-get install python-rdkit librdkit1 rdkit-datapython
I tried as suggested by @UnixJunkie which is giving error like
>>> import rdkit
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'rdkit'

My python path is here /home/sbhakat/miniconda2/envs/py36/bin/python
Am I installing it in a  wrong way? I am not sure what is going wrong here.

I guess source activate is conda-related.
But then you use apt to install rdkit system-wide.
I guess you need to follow the instructions on how to install rdkit in a conda environment.
https://www.rdkit.org/docs/Install.html

@greglandrum @sbhakat @UnixJunkie  I am also facing the same problem, I just installed rdkit by this command :
sudo apt-get install python-rdkit librdkit1 rdkit-data
While importing the module it's giving error
>>> import rdkit
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'rdkit'

I tried to install again and getting this message
Reading package lists... Done
Building dependency tree
Reading state information... Done
librdkit1 is already the newest version (201603.5+dfsg-1ubuntu1).
python-rdkit is already the newest version (201603.5+dfsg-1ubuntu1).
rdkit-data is already the newest version (201603.5+dfsg-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.

Are you using Python3?

@e-kwsm  it was python issue. I solved it.
Thank you !

this issue can be closed

@e-kwsm @monk1337 What is the issue with python? I'm also Python3 and getting the same error. How can I import the library successfully?

@jiachangliu what are the exact commands you used to install rdkit?

@UnixJunkie I used the command:
sudo apt-get install python-rdkit librdkit1 rdkit-data

Ok, this is probably an old version of rdkit, so only python-2 will work with it.
If you want to use python-3, you can create packages from source using: Scripts/create_deb_packages.sh.
Just remove all the system-wide installed rdkit packages before installing those new ones.

@UnixJunkie Hi, I have tried your command, the installation I think was successful. However, I am still not able to import rdkit. By the way, I am using a virtual environment for python3. Does this affect how the above command Scripts/create_deb_packages.sh would run?

@UnixJunkie I have started using Anaconda3 and everything can be installed properly now. Thanks for answering my question though.

I just tried this on ubuntu 18.04 and everything worked fine. Are you sure that your PYTHONPATH is set properly and that you're running the correct version of Python?

Hi, I am unable to install it on 18.04, can you please help me in the process, even I used create debian packages.sh, not working though.

probably related to https://github.com/lehy/ocaml-sklearn

Please tried the solution in  this link


Android Basics: Navigation backstack

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-navigation-backstack?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-3-pathway-4%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-navigation-backstack#2
In which task and step of the codelab can this issue be found?
3. Implement Up button behavior
Describe the problem
Click the back/up button the application quits/exits stops.
Steps to reproduce?

Go to... any fragment other than the start fragment
Click on... the back arrow or up arrow in the action bar.
See error...
kotlin.UninitializedPropertyAccessException: lateinit property navController has not been initialized
at com.example.cupcake.MainActivity.onSupportNavigateUp(MainActivity.kt:52)
Versions
Android Studio version: 2020.3.1 Patch 2
API version of the emulator: 30.9.5-7820599

Additional information
Include screenshots if they would be useful in clarifying the problem.
package com.example.cupcake
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.NavController
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.setupActionBarWithNavController
/**

Activity for cupcake order flow.
*/
class MainActivity : AppCompatActivity(R.layout.activity_main) {
// Make navController a class variable so you can use it in another method.
private lateinit var navController: NavController
//  override the onCreate() method to set up the navigation controller. Get an instance of
//  NavController from the NavHostFragment.
//  Make a call to setupActionBarWithNavController(navController) passing in the instance of
//  NavController. This will do the following: Show a title in the app bar based off of the
//  destination's label, and display the Up button whenever you're not on a top-level
//  destination.
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
 val navHostFragment = supportFragmentManager
     .findFragmentById(R.id.nav_host_fragment) as NavHostFragment
 val navController = navHostFragment.navController

 setupActionBarWithNavController(navController)

}
override fun onSupportNavigateUp(): Boolean {
return navController.navigateUp() || super.onSupportNavigateUp()
}

}

removed val in front of navController in onCreate. The app runs fine.


dict order matters or 'field email_config not found in type config.plain' error

create config for alertmanager where defined 'rereivers' email config, as a result if dict keys are sorted AM argues with error
AM works al right
error message in logs "field email_config not found in type config.plain"
k8s

System information:
insert output of uname -srm here

Alertmanager version:
alertmanager, version 0.21.0 (branch: HEAD, revision: 4c6c03ebfe21009c546e4d1e9b92c371d67c021d)
build user:       root@dee35927357f
build date:       20200617-08:54:02
go version:       go1.14.4

Prometheus version:
insert output of prometheus --version here (repeat for each prometheus
version in your cluster, if relevant to the issue)

Alertmanager configuration file:

global:
  resolve_timeout: 5m
receivers:
- name: "null"
- name: opsgenie
  opsgenie_configs:
  - api_key: REDUCTED
- email_config:
  - to<EMAIL_ADDRESS>  name: deadsmansnitch
route:
  group_by:
  - job
  group_interval: 5m
  group_wait: 30s
  receiver: opsgenie
  repeat_interval: 12h
  routes:
  - match:
      alertname: Watchdog
    receiver: "null"
templates: []

Prometheus configuration file:

insert configuration here (if relevant to the issue)

Logs:

level=info ts=2020-11-04T11:04:09.025Z caller=coordinator.go:119 component=configuration msg="Loading configuration file" file=/etc/alertmanager/config/alertmanager.yaml
level=error ts=2020-11-04T11:04:09.028Z caller=coordinator.go:124 component=configuration msg="Loading configuration file failed" file=/etc/alertmanager/config/alertmanager.yaml err="yaml: unmarshal errors:\n  line 8: field email_config not found in type config.plain"

not actual, closing


Widget Testing

https://flutter.dev/docs/cookbook/testing/widget/introduction

I am participating in GSSOC '21, and I'd like to work on this project. Can I try and work on this issue ?

Sure @piyushpradhan, go ahead.

Okay, thank you @himanshusharma89

@himanshusharma89 please review my PR and kindly tell me what else I need to add in there, or is there any improvements that I need to make.

@himanshusharma89 please review my PR and kindly tell me what else I need to add in there, or is there any improvements that I need to make.

Sure, will check it soon.


Spike: how to prevent phone number harvesting

As an end-user verifying my phone number with Valora, I need my phone number to be safe from mass phone number harvesting.
Some helpful context on the problem here and here
Eng:

one option is to imitate ODIS rate limits but in a centralized way-- this should probably be our default, but more details are needed on what exactly that entails

AC:

notion (or markdown) doc with specific plan for protecting user data from mass harvesting
plan is agreed upon by at least one activation engineer, plus the author
UX impact and tradeoffs of plan are defined and agreed on by Laura

this issue sort of assumes we support any kind of GET /my-friends-phone-number type endpoint out of the gate to allow users to send money to friends using their phone numbers. Another possibility would be to first implement an "upload" of attestations, then do a (perhaps smaller) modification of the PN-to-wallet-address querying feature we already have (which looks things up on the blockchain using ODIS)


360° image not recognized as 360

Hi,
I've uploaded a few 360 images with the latest uploader script, but in Kartaview it is not recognized as 360. It shows up as a regular image.
In Mapilary it is recognized as 360, although, the scrolling around doesn't work as it should but at least it is 360.
I've got a GoPro Fusion , using GoPro Studio with the below settings.
Someone any tipps how to get this working in Kartaview?
Thanks!

Hi , i checked from database, this sequence 's projection is PLANE . I would like to ask how you upload images? use a script?

Hi @zhangyu-Grab  I'm not sure what you mean with sequence projection, but I did upload it with the KV-Uploader script


"Connection lost" issue when the topology contains loops

The Of_l2ls NApp  is not working well in topologies that contains loops,  like the connection between MIA1, MIA2, MIA3 FLZ1, SPO1 in the topology below:

Simplified error output:
2021-02-11 14:51:56,731 - INFO [kytos.core.controller] (MainThread) connection closed. Cannot send message
2021-02-11 14:51:56,732 - INFO [kytos.core.controller] (MainThread) connection closed. Cannot send message
2021-02-11 14:51:56,734 - INFO [kytos.core.controller] (MainThread) connection closed. Cannot send message

Steps to reproduce:

Start Kytos
Start Mininet (e.g. using this topology: https://www.dropbox.com/s/pabgr1qqnwsdxwh/vip-students-mirror.py?dl=0)

Related issue:

https://github.com/kytos/flow_manager/issues/108
https://github.com/kytos/flow_manager/issues/107

This use case with multiple interconnected rings is not currently in use with the of_l2ls NApp, tagging it with wontfix for now.


feat(sdk-trace-web): web worker support

Which problem is this PR solving?
This is an initial bootstrap on test facilities on web workers. Packages that target web platforms without specific instrumentation on browsing context API should be able to run their test suites on web workers too.

Added guidance of Web API usages.
Removed window references in generic functions in sdk-trace-web.

Type of change

[x] New feature (non-breaking change which adds functionality)

How Has This Been Tested?
Basically, we are running the test suites again on a web worker environment with karma. If tests that are not intended to run won web workers, they should be relocated to the test/window directory.
Checklist:

[x] Followed the style guidelines of this project
[x] Unit tests have been added
[x] Documentation has been updated

thanks for diligently splitting out the window-specific tests.

Agreed


Switch to go modules; fix breaking changes

Some of the packages we were using have been pulled, so I had to fix a
call to the github API. TBD whether it breaks things. I think what's
going to happen is that the --force flag is going to stop working, but
I'd need to dig into the api to know for sure.

Indentation is spaces, should be tabs for consistency.

can we just get rid of vendor/ now, or is there a reason we're keeping it around?

We want to vendor our deps a) for stability and b) so we can build in docker without injecting github creds.


FEAT access to n_iter in compute

It would be nice to have access to n_iter in the compute function. This way we could specify at which iteration a given metric should be computed. For example we want to optimize, i.e. define the stopping_strategy w.r.t. value=metric_1, but compute metric_2 only every 10^th iteration (as its computation is more costly).

With #576 we'll allow passing anything between objective.get_result and solver.compute so this should be possible then!

Is it good enough for your use case @JuliaLinhart ?
Otherwise, feel free to reopen the issue.


Destructuring defaults

let myMeth = ({ans=420}) => {console.log('Answer: ',ans)}

myMeth({});

Results in:
SyntaxError: repl: Unexpected token (1:18)
> 1  | let myMeth = ({ans=420}) => {console.log('Answer: ',ans)}
     |                  ^
  2  |
  3  | myMeth({});
  4  |
    at raise (https://6to5.org/scripts.js:1:314788)
    at unexpected (https://6to5.org/scripts.js:1:341818)
    at expect (https://6to5.org/scripts.js:1:341732)
    at parseObj (https://6to5.org/scripts.js:1:361464)
    at parseExprAtom (https://6to5.org/scripts.js:1:359839)
    at parseExprSubscripts (https://6to5.org/scripts.js:1:355723)
    at parseMaybeUnary (https://6to5.org/scripts.js:1:355389)
    at parseExprOps (https://6to5.org/scripts.js:1:354292)
    at parseMaybeConditional (https://6to5.org/scripts.js:1:353676)
    at parseMaybeAssign (https://6to5.org/scripts.js:1:353302)

See #230

@sebmck Thanks, searched before filling, but did not find.

Currently available as of 2.9.0

:+1:


Removed the .bin extension on Linux.

Fixes https://github.com/godotengine/godot/issues/14470
This removes the extension from Linux exports entirely. So it will no longer export MyGame.bin and will simply export MyGame instead.
Also, I made a version with .x86 and .x86_64 extensions here depending on which architecture you choose, but I believe the consensus is to just remove all extensions from Linux since the end user can add those manually. The code is already written though just in case: https://github.com/NathanWarden/godot/tree/linux_extensions
Thanks :)

The tone of using no extension was just as an alternative to .bin, not as the preferred solution.
I think having the architecture extensions should be used since you already had them done, especially if it cleanly works (as in it auto-selects based on what is being exported). I don't see why anyone would prefer no extension, it's the same result but less information for the user.

@insomniacUNDERSCORElemon I'm happy either way. I like the extension being auto-filled for me as it's one less thing to type, but, it isn't too annoying filling it out either. Like I said, I already have the work done in the link provided to another branch. Doing some searching it does look like .x86 is somewhat popular on Linux and it seems .x86_64 is becoming more widely used. I've seen both used. Maybe we can get more feedback from @reduz, @akien-mga, and any other Linux users who might have an opinion too. :)

I would keep the .x86 or the .x86_64, to distinguish the to exports.

I'm also in favor of using .x86 and .x86_64

Also agree about having an arch suffix.
I'm not sure about having a get_binary_extension64() method for that though, we might want to support armv7, arm64, etc. in the future.

Awesome! :) @akien-mga Unless you already have something in mind, I'll think about that a little bit how to generalize it better and I'll update this PR :)

I moved this to a new PR as the branch name linux_no_extension doesn't really make sense for this PR and might be confusing when looking through the git history. I tagged you all in the new PR.
New PR: https://github.com/godotengine/godot/pull/14597


When deactivating Sidebery or switching to another sidebar function, tabs appear and this extension must be clicked twice to re-enable.

When deactivating Sidebery or switching to another sidebar function, tabs appear and this extension must be clicked twice to re-enable.
I use the Sidebery extension to show tabs in Firefox's sidebar. For the most part, this extension and Sidebery work great together — thanks for creating and publishing it!
The one problem I have encountered is that, when I have the tab bar hidden with this extension, and I have Sidebery activated, and either deactivate Sidebery or switch the sidebar to Bookmarks (or anything else), then this extension stops working; the tab bar reappears; and I have to click on this extension's toolbar button twice to re-enable it.
The solution I'm looking for is to be able to do whatever I want with the sidebar, and have my hidden tab bar stay hidden.
Thanks again!

I think the challenge here is that Sidebery has a similar function that this addon is based on.  I'll have to see how that addon handles things when the sidebar is hidden or changed.
Do you have have any of the options enabled for hiding the native tabs in Sidebery?

I looked at it a little and it did remind me of how the original feature works in Sidebery and part of the reason I ended up doing this addon.  The idea was that if the native tab bar could be hidden when Sidebery was displayed, but if Sidebery (or the sidebar) was hidden that the native tab bar would return.  I use TST and there are definitely times (not often) that I do want to be able to see both the sidebar tabs and the native tabs at the same time in order to do something.  I do not believe this is possible with Sidebery.
The way these both addons work is to add a value to the window "titlePreface" which userChrome.css can take action on if it is there or not.
browser.windows.update(window.id, { titlePreface: titlePreface });
Therefore, when Sidebery or the sidebar is hidden, it likely clears the title Preface and the native tabs will be shown again.  So, I don't these addons can work together UNLESS Sidebery adds an option to enable/disable "dynamic native tabs" on their end which would allow Toggle Native Tab Bar to work without interruption.
So for now, I think this is how things work:

Use Sidebery + Dynamic Native Tabs --> Can't show sidebar and native bar at the same time if configured properly.
Use Sidebery - Dynamic Native Tabs + Toggle Native Tab Bar --> Don't think DNT can be disabled, so some strange behaviors when Sidebery takes actions.
Don't use Sidebery + Toggle Native Tab Bar --> Obviously works.

Oh, and one last comment ... the behavior you are seeing makes sense to me.
Sidebery is removing the titlePreface and the tabs show up.  Toggle Native Tab Bar doesn't know about this change.  When you click on Toggle Native Tab Bar the first time, it also thinks it should clear the titlePreface which won't result in any changes.  When you click the second time, the titlePreface is reapplied properly and the tabs become hidden again.


feat(webapis): introduce @react-native-webapis/battery-status

Description
Initial implementation of Battery Status API for Android and iOS.
Requires https://github.com/microsoft/rnx-kit/pull/2580.
Test plan
Apply the following changes to the test app:
diff --git a/packages/test-app/babel.config.js b/packages/test-app/babel.config.js
index 69ebd557..a012b7f5 100644
--- a/packages/test-app/babel.config.js
+++ b/packages/test-app/babel.config.js
@@ -13,6 +13,7 @@ module.exports = {
           { runtime: "automatic" },
         ],
         [require("@babel/plugin-transform-react-jsx-source")],
+        [require("@rnx-kit/polyfills")],
       ],
     },
   ],
diff --git a/packages/test-app/src/App.native.tsx b/packages/test-app/src/App.native.tsx
index 599634a9..a9b493ab 100644
--- a/packages/test-app/src/App.native.tsx
+++ b/packages/test-app/src/App.native.tsx
@@ -1,3 +1,5 @@
+// @react-native-webapis
+
 import { acquireTokenWithScopes } from "@rnx-kit/react-native-auth";
 // Both `internal` imports are used to verify that `metro-resolver-symlinks`
 // resolves them correctly when `experimental_retryResolvingFromDisk` is
@@ -7,7 +9,7 @@ import {
   getRemoteDebuggingAvailability,
 } from "internal";
 import { getHermesVersion } from "internal/hermes";
-import React, { useCallback, useMemo, useState } from "react";
+import React, { useCallback, useEffect, useMemo, useState } from "react";
 import type { LayoutChangeEvent } from "react-native";
 import {
   NativeModules,
@@ -186,6 +188,14 @@ function App({ concurrentRoot }: { concurrentRoot?: boolean }) {
     [setFabric]
   );

+  const [batteryLevel, setBatteryLevel] = useState(-1);
+  useEffect(() => {
+    // @ts-expect-error Battery Status API is deprecated
+    navigator.getBattery().then((status) => {
+      setBatteryLevel(status.level);
+    });
+  }, []);
+
   return (
     <SafeAreaView style={styles.body}>
       <StatusBar barStyle={isDarkMode ? "light-content" : "dark-content"} />
@@ -195,6 +205,9 @@ function App({ concurrentRoot }: { concurrentRoot?: boolean }) {
         style={styles.body}
       >
         <Header />
+        <View style={styles.group}>
+          <Feature value={batteryLevel.toFixed(2)}>Battery Level</Feature>
+        </View>
         <View style={styles.group}>
           <Button onPress={startAcquireToken}>Acquire Token</Button>
         </View>

Build and run:
cd packages/test-app
yarn add @rnx-kit/polyfills --dev
yarn add @react-native-webapis/battery-status
yarn build --dependencies

# Android
yarn bundle:android
yarn android

# iOS
yarn bundle:ios
pod install --project-directory=ios
yarn ios

Note: When running in the iOS simulator, the battery level will always be '-1'.
Screenshots

Android
iOS

is fast refresh something that can be tested by the e2e tester in CI, to capture the problem fixed in the polyfill?

is fast refresh something that can be tested by the e2e tester in CI, to capture the problem fixed in the polyfill?

I've added tests, but it doesn't look like we're capable of capturing this specific error. We currently don't have e2e tests running on a device (emulator or otherwise). I'm not sure how one would trigger fast refresh outside of running the code. If you have any pointers, I'd really appreciate it.


Add Mobile virtual keyboard for Text Entry behavior

Made by @Bouh in https://github.com/4ian/GDevelop-extensions/issues/11
Let's continue the discussion here :)
I've cleaned the extension (double check though that it's still working, because I found something fishy in the closeKeyboardById function => it was refering to the eventsFunctionContext not passed as parameter, which must never be done!).
An example was included in https://github.com/4ian/GDevelop-extensions/issues/11
Ideally, I would like to see how to bundle examples and even documentation - to be sure that it's easy to understand, use and maintain these custom behaviors.

When we switch between two scenes the input HTML is created again and again. Otherwise it works well

This might be due to the ownerRemovedFromScene not being called, I'll investigate.

FYI, I'll fix this in GDevelop by making sure that onOwnerRemovedFromScene is properly called when a scene is unloaded.

In the next version, onDestroy (which is the new name of onOwnerRemovedFromScene - but existing behavior with onOwnerRemovedFromScene will continue to work) will be properly called when 1) The object is removed from the scene or 2) The scene is unloaded :)
After this, we should be able to merge this, without issue with HTML inputs being recreated without being destroyed! :)

This should be better now in beta 76

This should be better now in beta 76

Yes, perfect. Here new files ready for bundle.
Keyboard_mobile.zip

Merged! I did some changes/clean up before merging, though this was done before your latest zip file. Can you check the version that is available online and tell me if there are changes to be made?
Thanks for making this! Will be super useful :)


package trying to auth with sasl but none provided

hi there, i am using version 10.0.0-alpha.0 to connect to a confluent cp-kafka image, and i seem to have configured my network correctly, but i am now getting this error trace below. It is a little odd because i am not passing any sasl configuration options so i was wondering if you had any thoughts on it.
eyeshade-consumer    | sentry 2020-12-09T05:44:43.344Z sentry TypeError: Cannot read property 'toUpperCase' of undefined
eyeshade-consumer    |     at SASLAuthenticator.authenticate (/usr/src/app/node_modules/kafkajs/src/broker/saslAuthenticator/index.js:33:54)
eyeshade-consumer    |     at Broker.connect (/usr/src/app/node_modules/kafkajs/src/broker/index.js:120:29)
eyeshade-consumer    |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
eyeshade-consumer    |     at async /usr/src/app/node_modules/kafkajs/src/cluster/brokerPool.js:79:9
eyeshade-consumer    |     at async Cluster.connect (/usr/src/app/node_modules/kafkajs/src/cluster/index.js:104:5)
eyeshade-consumer    |     at async Object.connect (/usr/src/app/node_modules/kafkajs/src/consumer/index.js:110:5)
eyeshade-consumer    | From previous event:
eyeshade-consumer    |     at /usr/src/app/node_modules/sinek/dist/lib/kafkajs/JSConsumer.js:221:36
eyeshade-consumer    | From previous event:
eyeshade-consumer    |     at JSConsumer._connectInFlow (/usr/src/app/node_modules/sinek/dist/lib/kafkajs/JSConsumer.js:202:16)
eyeshade-consumer    |     at JSConsumer.connect (/usr/src/app/node_modules/sinek/dist/lib/kafkajs/JSConsumer.js:171:21)
eyeshade-consumer    |     at /usr/src/app/bat-utils/lib/runtime-kafka.js:136:22
eyeshade-consumer    |     at Array.map (<anonymous>)
eyeshade-consumer    |     at Kafka.consume (/usr/src/app/bat-utils/lib/runtime-kafka.js:133:29)
eyeshade-consumer    |     at Object.<anonymous> (/usr/src/app/eyeshade/consumer.js:35:15)
eyeshade-consumer    |     at Module._compile (internal/modules/cjs/loader.js:1063:30)
eyeshade-consumer    |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
eyeshade-consumer    |     at Module.load (internal/modules/cjs/loader.js:928:32)
eyeshade-consumer    |     at Function.Module._load (internal/modules/cjs/loader.js:769:14)
eyeshade-consumer    |     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
eyeshade-consumer    |     at internal/main/run_main_module.js:17:47

config: https://github.com/brave-intl/bat-ledger/blob/removed-old-code/config.js#L113
batch config: https://github.com/brave-intl/bat-ledger/blob/removed-old-code/bat-utils/lib/runtime-kafka.js#L9
docker-compose: https://github.com/brave-intl/bat-ledger/blob/removed-old-code/docker-compose.yml#L18
not sure if this is just a me issue or if i found a tiny case where things don't match.

does node-sinek simply not support the confluent kafka image?

I was able to get the following logs by cloning this repo, and running the following commands:
yarn
yarn run kafka:start
yarn test


Fixing JHU failing tests

Recovered was still causing a problem because all values are zero.  There's a more elegant approach, but since we don't actually use them, i'm excluding it as a column

the one failing test is due to incorrect covid county data, going to merge this so the next update data source is clean


README

          # README

User Story
As a boot camp student,
I want the prework notes to be structured on a webpage,
So that I can easily find and read the information
Acceptance Criteria
GIVEN the prework project repository,
WHEN I view the README for the repository,
THEN I can see a professional README that provides information on the project and how to use it
Originally posted by @CodyCCL in https://github.com/CodyCCL/prework-study-guide/issues/1#issuecomment-1676619373

Hi @CodyCCL I would like to work on this issue. Could you please assign it to me? Thank You!


update to golang 1.8.3

Updates to golang 1.8.3.  Of note, 1.8.2 included a security fix, and 1.8.3 has functionality fixes.

Signed-off-by: Riyaz Faizullabhoy<EMAIL_ADDRESS>

I'm not sure if these have to be kept in sync, but I noticed that the github.com/docker/go package was rebased on top of the current Go version; the last rebase was done on top of Go 1.6, so possibly the package needs an update;
https://github.com/docker/go/commit/c4d9f5c4e1ee950c11e101f7c0fa254f6a20a0b8
ping @cyli @riyazdf ^^

@thaJeztah Yeah, it's on my list of stuff to look at.  We can't just carry the patch forward :|  They no longer merge cleanly.


the issue of using generate.py to generate image

I meet a problem my model can generate good image when training but my model generated a brown image when I used pretrained model by generate.py. I will appreciate if somebody can tell me how to solve the problem.

excuse me，how did you solved this problems?


bluetooth: Reconnect automatically to last known device

At boot time, bluetooth-audio will attempt to reconnect to the last known device based on the MAC address.
Change-type: minor
Signed-off-by: Tomás Migone<EMAIL_ADDRESS>

@tmigone this works well. :+1:

@tmigone dont forget to push the new commits into your branch. :+1:


Xcode 10 Compatibility

The project does not work with Xcode 10, it looks like it's a problem with RxCocoa, the Cartfile is also using a old version of Alamofire and RxSwift.

Hey @munirwanis - We usually don't bump dependencies to such early builds of Xcode (but closer to GM) as it requires a lot of work and its easier than chasing a moving target.
I believe there's a Xcode10 branch on RxCocoa if you'd like to try that.
Shai


Adds RFC for raycasting and highlighting utilities

RFC asked for in #5

Finally getting around to taking a look at this. Thanks for your patience!
This is looking really good. Ideally, we'd close most if not all of the open questions before accepting the RFC. Perhaps it warrants writing a demonstration mode that doesn't necessarily do anything practical, but makes use of all these things? Seeing what's required to make it work in the API's current state could also help inform how the API might assist in making these things easier.


Bug process error status on es_scroll_parser and compaction_action

Proposed changes
process error status on es_scroll_parser and compaction_action
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

run buildall

run p0

run buildall

run buildall

do not pick this to 2.0


Disentangle solution and simulation frameworks in HARK.core and downstream classes

Related to #493
HARK.core.AgentType provides frameworks for both solving models and simulating them.
These two sets of processes are conceptually distinct. This ticket is for disentangling them in the code, decoupling the two kinds of functionality.
Ideally, it would be possible to use Dolo's simulation engine on a HARK model, and HARK's simulation engine on a Dolo model.

I don't understand this one.  They already are decoupled.  If you went and
deleted all of the simulation methods from AgentType and/or any of its
subclasses, their solve method would still work.
On Fri, Feb 7, 2020 at 7:43 PM Sebastian Benthall<EMAIL_ADDRESS>wrote:

Related to #493 https://github.com/econ-ark/HARK/issues/493
HARK.core.AgentType provides frameworks for both solving models and
simulating them.
These two sets of processes are conceptually distinct. This ticket is for
disentangling them in the code, decoupling the two kinds of functionality.
Ideally, it would be possible to use Dolo's simulation engine on a HARK
model, and HARK's simulation engine on a Dolo model.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/econ-ark/HARK/issues/495?email_source=notifications&email_token=ADKRAFKLIBK2E777Z7DB5RLRBX54HA5CNFSM4KRXBIZ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IL6RMRQ,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADKRAFMYKDGNFSTEE6SWD23RBX54HANCNFSM4KRXBIZQ
.

Ah, ok.
If you delete all the solution methods from AgentType, would the simulation methods still work?
How can you tell (besides looking through all the code) which of the methods are simulation methods, and which are necessary for the solver?

There's no need to delete anything in the near term.
But Dolo has some very cool simulation tools, and I'd like to figure out
how we can feed our agents into that.
This will require figuring out some means by which we can provide the
decision rules etc in whatever form Dolo requires.
If we're going to do that, we might as well separate our own simulation
tools and have the same interface; then it will be possible to choose
either Dolo or HARK for any particular simulation, and switch between
them.
On Sat, Feb 8, 2020 at 4:07 AM Sebastian Benthall<EMAIL_ADDRESS>wrote:

Ah, ok.
If you delete all the solution methods from AgentType, would the
simulation methods still work?
How can you tell (besides looking through all the code) which of the
methods are simulation methods, and which are necessary for the solver?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/econ-ark/HARK/issues/495?email_source=notifications&email_token=AAKCK735Y324CHMOTMMHFQDRBYOYZA5CNFSM4KRXBIZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELFIAKY#issuecomment-583696427,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKCK7663U74CTN7LZYZGDDRBYOYZANCNFSM4KRXBIZQ
.

--

Chris Carroll

I wasn't proposing that we delete anything.
I think @mnwhite and I are discussing to what extent the simulation and solution functionalities are currently coupled.
This is instrumental to the goal of changing the HARK interface to be more modular.

If you delete the solution methods, the simulation can't run because
there's nothing for it to act on.  The simulator needs to know the policy
function for each period in order to be able to simulate what agents do.
With very little work, we could have AgentType subclasses do things like
cNrmNow = self.cFunc[t](mNrmNow) rather than cNrmNow = self.solution[t].cFunc(mNrmNow), so that the simulation code doesn't refer
to the solution attribute at all.  We'd just have the postSolve()
method run unpack('cFunc') (and whatever else is relevant).  In this way,
you could run a simulation without ever solving, if you wanted.
That is, you could say, "What would happen if my 50 period lifecycle
consumers acted on this arbitrary linear consumption function?".  And do
cFunc_fake = lambda m : 0.1*m + 0.3 and MyType.cFunc = 50*[cFunc_fake]
and you'd be ready to simulate.
On Sat, Feb 8, 2020 at 8:35 AM Sebastian Benthall<EMAIL_ADDRESS>wrote:

I wasn't proposing that we delete anything.
I think @mnwhite https://github.com/mnwhite and I are discussing to
what extent the simulation and solution functionalities are currently
coupled.
This is instrumental to the goal of changing the HARK interface to be more
modular.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/econ-ark/HARK/issues/495?email_source=notifications&email_token=ADKRAFKANGYS2IACK4OC34DRB2YI5A5CNFSM4KRXBIZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELFR6IQ#issuecomment-583737122,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADKRAFNA77Y2PI57GYI4HW3RB2YI5ANCNFSM4KRXBIZQ
.

I see. Thanks, that makes sense.
I think Dolo's representation of policies is a class called DecisionRule:
https://github.com/EconForge/dolo/blob/master/dolo/numeric/decision_rule.py

Revisiting this as I now think I understand how the simulation workflow is supposed to go.
This automated test uses the workflow from the PerfForesightConsumerType DemARK.
https://github.com/econ-ark/HARK/blob/master/HARK/ConsumptionSaving/tests/test_PerfForesightConsumerType.py#L31-L50
If I understand correctly, the way this works it hat the SimulationParams gets passed in as arguments to the callable AgentType and assigned as member variables on the object, enabling the simulation code to work (which also depends on there being a solution, with solve called previously.)
The thing that I find worrisome about this structure is how it allows for arbitrary variables to be assigned as member variables to the AgentType, without any kind of namespacing. Something could be overwritten and break up the conceptual coherence of the object, let alone its functionality.
For example, what if somebody passes in a new parameter value for PermShkStd while they also pass in the SimulationParams. Of course, this wouldn't automatically update the solution used in the simulation. But it's not clear how that could be signaled in the API docs. Rather, you have to just trust the user to not to try anything funny, or to have read the entire manual cover to cover, which is rarely a well-founded assumption. In fact, this architecture is resulting in a system where a number of necessary parameters are not in the API docs at all (see #493)
It would be quite easy to scaffold things differently.
For example, simulation parameters could be passed in as arguments to the simulate method.
If they are persisted on the object, they could be persisted in a different namespace (i.e., in a dictionary that is stored as a member variable).
That would prevent any accidental collisions.
scikit-learn has a possibly useful analogous coding pattern for classifiers and other trainable model classes. These have a lot of class parameters given in initialization, a fit method for fitting internal model parameters to a data set, and a predict method for applying the model to new data. fit has to be called before predict. The arguments needed for each phase of the class's use are passed in all documented and scoped to the function where they are used.

Overwriting parameters that were used in solving the model is actually
intended behavior / a feature of HARK.  It is meant to be easy to answer
questions like "what would happen if people thought the standard deviation
of (log) permanent income shocks were 0.10, but it was actually 0.14?".
You're right that we don't "protect" anything namespace-wise.  I didn't
even know it was possible in Python, and haven't thought about it since I
last worked with Java 19-20 years ago.  I'm not sure I actually do want
to stop the user from doing anything "funny".
On Wed, Feb 26, 2020 at 5:10 PM Sebastian Benthall<EMAIL_ADDRESS>wrote:

Revisiting this as I now think I understand how the simulation workflow is
supposed to go.
This automated test uses the workflow from the PerfForesightConsumerType
DemARK.
https://github.com/econ-ark/HARK/blob/master/HARK/ConsumptionSaving/tests/test_PerfForesightConsumerType.py#L31-L50
If I understand correctly, the way this works it hat the SimulationParams
gets passed in as arguments to the callable AgentType and assigned as
member variables on the object, enabling the simulation code to work (which
also depends on there being a solution, with solve called previously.)
The thing that I find worrisome about this structure is how it allows for
arbitrary variables to be assigned as member variables to the AgentType,
without any kind of namespacing. Something could be overwritten and break
up the conceptual coherence of the object, let alone its functionality.
For example, what if somebody passes in a new parameter value for
PermShkStd while they also pass in the SimulationParams. Of course, this
wouldn't automatically update the solution used in the simulation. But it's
not clear how that could be signaled in the API docs. Rather, you have to
just trust the user to not to try anything funny, or to have read the
entire manual cover to cover, which is rarely a well-founded assumption. In
fact, this architecture is resulting in a system where a number of
necessary parameters are not in the API docs at all (see #493
https://github.com/econ-ark/HARK/issues/493)
It would be quite easy to scaffold things differently.
For example, simulation parameters could be passed in as arguments to the
simulate method.
If they are persisted on the object, they could be persisted in a
different namespace (i.e., in a dictionary that is stored as a member
variable).
That would prevent any accidental collisions.
scikit-learn has a possibly useful analogous coding pattern for
classifiers
https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html
and other trainable model classes. These have a lot of class parameters
given in initialization, a fit method for fitting internal model
parameters to a data set, and a predict method for applying the model to
new data. fit has to be called before predict. The arguments needed for
each phase of the class's use are passed in all documented and scoped to
the function where they are used.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/econ-ark/HARK/issues/495?email_source=notifications&email_token=ADKRAFKXB4HRSOJIYGIBI43RE3SD3A5CNFSM4KRXBIZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENCCWVA#issuecomment-591670100,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADKRAFNDCJYGFP7CPHTAUI3RE3SD3ANCNFSM4KRXBIZQ
.

The current assignParameters functinality allows users to overwrite core methods, like solve, like so:
>>> from HARK.ConsumptionSaving.ConsIndShockModel import PerfForesightConsumerType
>>> ex = PerfForesightConsumerType()
>>> ex(solve="This breaks things.")
>>> ex.solve()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'str' object is not callable

It's totally unnecessary to have this much flexibility.

On the whole this sounds like a good direction to move in, but I agree with
Matt that it is important to allow the simulation parameters to differ from
the solution parameters, for the reasons he articulates.  But I'd
definitely be in favor of printing a warning message to the user to signal
that to them; my guess is that 9 times out of 10 when that happens, it is
just a mistake rather than intentional, which is the kind of circumstance
that calls for a warning message.
There's a somewhat similar issue that I have found repeatedly plagues
newbies (and which even now I occasionally forget about/mess up): The fact
that, after you solve a model, you can change the parameters (for example,
increase relative risk aversion, or change the standard deviation of
shocks) and not remember/realize that you need to invoke the ".solve()"
method again in order to actually have the solution in the object be the
solution for the parameter values that are its attributes.  Unlike the
point Matt made about how we might want to simulate with parameters
different from those people believed, I can't really think of a use case
for being able to change, say, the CRRA attribute without re-solving the
model.  That's basically going to be a mistake 99.99 percent of the time.
I'm not sure exactly what the right fix for this is; certainly we would
not want to automatically trigger resolving the model whenever a
parameter is changed, because the person might be changing 3 or 4
parameters at the same time and we would NOT want to have to solve the
model 3 or 4 times in that circumstance (once after each parameter was
changed).  Probably the right way to handle this is for the solution object
to keep a record of all the parameter settings at the time the solution was
constructed (or at least the parameter settings that are likely to be
fiddled with), and then to do a quick check when the solution is used to
determine whether the parameters are the same as they were when the model
was solved.
On Wed, Feb 26, 2020 at 11:48 PM Sebastian Benthall <
<EMAIL_ADDRESS>wrote:

The current assignParameters functinality allows users to overwrite core
methods, like solve, like so:

from HARK.ConsumptionSaving.ConsIndShockModel import PerfForesightConsumerType
ex = PerfForesightConsumerType()
ex(solve="This breaks things.")
ex.solve()
Traceback (most recent call last):
File "", line 1, in
TypeError: 'str' object is not callable

It's totally unnecessary to have this much flexibility.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/econ-ark/HARK/issues/495?email_source=notifications&email_token=AAKCK734R652IJSBUQXO353RE3WSJA5CNFSM4KRXBIZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENCGFFY#issuecomment-591684247,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKCK7745DCVR2YPPU2W3RLRE3WSJANCNFSM4KRXBIZQ
.

--

Chris Carroll

I've coded up this toy example of how a smooth interface to models and simulations might be designed. I present it for your consideration.
https://github.com/sbenthall/sketches/blob/master/economics/MDP Interfaces.ipynb
I know it lacks the sophisticated machinery of HARK, but I want to indicate a few things about it:

The simulation code is totally general
The model variables are tracked in a clean and extensible way
Accessing simulated values uses the variable names to namespace the results
It's easy to assign a decision rule to a control variable and run a simulation, even if it's not the optimal one.

This notebook doesn't have anything yet to solve models--i.e., find the optimal decision rule for each control variable. But I think it's a clean and lightweight way to define a model and simulate one.
It should in principle be possible to adapt a HARK model into this alternative form, and vice versa, no?

(I originally posted this as an issue at your sbenthall/sketches repo, but now realize it should have gone here)
Seb,
Thanks for getting started on this!
My first response is something that you emphasized to Pablo earlier: It's not possible to distinguish between state variables and control variables, because the transition equations mean that today's choice of a control is mathematically identical to the choice of tomorrow's state. It seems that something Dolo/DolARK is going to need is that in every period the list of variables needs to be the same. But a given variable, at different stages, can be either a state or a control.
It IS necessary, at every stage (= subperiod in a cycle; = point at which a decision is made) every variable needs to be designated as either a state or a control. But that is properly accounted for in the definition and solution algorithm for the stage -- being a "state" or a "control" is not an intrinsic property of a variable.
Again, the simple example is the portfolio problem. As of the end of the period, assets are a state variable (having been determined by the consumption choice at the beginning). But, at the beginning, the problem can be formulated as making the choice of what $a$ to end the period with.
I think it would be useful to step back from trying to instantiate these ideas in code, and to do it more abstractly, as pseudocode.
With a given number of cycles n>0, each n would require something like your structure above, but the natural way to think about it is to identify each variable in the given subcycle as a state or a control. (The realization of exogenous/forcing/random variables would be treated, in this typology, as a state).
The problem is then defined by:
a payoff, which can is a function of states and controls
transition equations, which translate this period's states plus this period's controls into next period's states a (discounted) value function for the next period and in the Bellman formulation, the problem is to find, for any configuration of states in the current subperiod, the choice of controls that maximizes the sum of the payoff today and the resulting value tomorrow.
One point I want to be absolutely clear on: The most fundamental thing that needs to be kept track of is the value function. The decision rule is derived from maximizing the sum of today's value and the expected value from the resulting states. Decision rules are very useful objects DERIVED from the value function, but they are defined by their ability to maximize value. There are many cases where the problem cannot be solved without the value function.

PS.  The point is not that I want to insist that nobody should ever consider models in which people are not perfect maximizers.  It is that we always want to be able to compare actual behavior to optimal behavior, which means we need a framework to calculate optimal behavior.  The requirement that the problem must be formulated in such a way as to permit a Bellman solution provides the crucial extra discipline and coherence that is essential to describing a problem in a way that connects with the vast economics literature.

I expect it will be good to discuss this on our Thursday meeting to clear up any potential miscommunication, especially as this conversation is now happening in three places. I'm not sure I'm following you here, but let me try to respond.
I believe in your response, you are focusing on the challenge of modeling a multi-stage, and especially a cyclic, problem. To solve such a problem in the economic idiom, this requires a representation in Bellman form.
I've been looking for a Bellman form for a cyclic problem in HARK; I'm not sure where to locate it. I've made an issue for this: #563
I will take another look at the portfolio problem.
But I think we are talking past each other on a specific point.
In your response, you are talking about the process for solving a model.
Your description is, of course, accurate.
The title of this issue, which I'm trying to address in this work, is "Disentangle solution and simulation frameworks".
You have pointed out that in the "MDP Interfaces" notebook there is no representation of a reward function (yet), or a value function, and that therefore it is inadequate for solving the model as per the economics literature.
I know that. I said as much ("This notebook doesn't have anything yet to solve models--i.e., find the optimal decision rule for each control variable").
In my view, to "disentangle" solution and simulation functionality, it means that you have to be able to run a simulation of a model without having first solved it. Or, having attempted to solve it in different ways.
To put it another way: Currently in HARK, the workflow is:

Hard-code a model class, with solver and simulation functions
Instantiate the model with some parameters
Run solve()
Run simulate()

As you say earlier in this thread, it's possible to change the parameters after solving the model, to simulate it in a different way (so you can run a simulation where the person is using a misinformed or suboptimal policy), but that is quite confusing.
A different way to structure it, which would be quite mathematically well-founded, would be like this:

Define a model in Bellman form. This includes: transition functions, a utility function, and a value function.
A policy or decision rule for this model (take your pick on terminology) is a function mapping period state to decisions as choice variables.
The simulator works generically given a policy, however generated, and a model. (This is what I demoed in the MDP Interface notebook).
The solver takes a model and output as policy (hopefully, the best one).

A benefit here is that there shouldn't be custom simulation code for each model. It should be able to run using the model and policy definitions.

Making a note here as it's relevant to this issue:
Currently, tolerance and pseudo_terminal are passed to the AgentType in its constructor and saved to the instance. These are uses exclusively in the solution of the model.
A use case for a "disentangled" architecture would be to compare various solutions to the same model with different tolerance levels.
This would involve, at the very least, allowing these variables to be reset as arguments to the solver.

I'd like to revisit this issue in light of discussion about the Frame architecture in #865
Maybe it is time to refactor the solution code so that it is external to the AgentType.

I'll close this now. It's generated some other ideas but is too general in scope to be implemented.
We're getting in this direction with the Frame architecture, etc.

I'll close this now. It's generated some other ideas but is too general in scope to be implemented.
We're getting in this direction with the Frame architecture, etc.


Fix #1100 - pipe inside StatementExpression

I wonder if parent assignment should go in assignResults instead?

Inside assignResults is probably a little bit better.

Even though it's better it's more work than I'm going to do right now so I'll merge this and hopefully clean it up more later.


VSCode - TypeScript language service died unexpectedly 5 times in the last 5 minutes

We have written the needed data into your clipboard because it was too large to send. Please paste.
Issue Type: Bug
Occurs immediately upon opening a SSH project.
VS Code version: Code - Insiders 1.53.0-insider (ed6c343edb720d91ee0859e566c84b5687f5a9d5, 2021-01-08T10:44:29.135Z)
OS version: Darwin x64 19.6.0
Remote OS version: Linux x64 4.19.0-12-amd64

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-4308U CPU @ 2.80GHz (4 x 2800)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
4, 5, 6

Memory (System)
8.00GB (0.04GB free)

Process Argv
--crash-reporter-id ef901361-5ddb-4073-a63b-e5567ef38c88

Screen Reader
no

VM
0%

Item
Value

Remote
SSH: <IP_ADDRESS>

OS
Linux x64 4.19.0-12-amd64

CPUs
Common KVM processor (8 x 1607)

Memory (System)
9.79GB (7.14GB free)

VM
0%

Extensions (14)

Extension
Author (truncated)
Version

better-comments
aar
2.1.0

bracket-pair-colorizer-2
Coe
0.2.0

vsc-material-theme
Equ
33.1.2

vsc-material-theme-icons
equ
1.2.2

vscode-peacock
joh
3.9.1

remote-containers
ms-
0.154.2

remote-ssh
ms-
0.62.0

remote-ssh-edit
ms-
0.62.0

remote-wsl
ms-
0.52.0

vscode-remote-extensionpack
ms-
0.20.0

material-icon-theme
PKi
4.5.0

errorlens
use
3.2.4

vscode-icons
vsc
11.1.0

vscode-todo-highlight
way
1.0.4

(1 theme extensions excluded)

A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
openlogontheside:30221882
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30208929
wsl2prompt:30219162
vstry914:30230485
pythonvsdeb440:30224570
unusedpromptcf:30219165
folderexplorercf:30219167
openfilemenu:30219168
pythonvsded773:30223139
pythonvspyt600:30241727
core-portspanelcf:30233468

I am seeing this. in my VSCode log (Window)
[2021-01-10 20:01:28.305] [renderer1] [error] Could not create TS service. Service state:{"type":0}: Error: Could not create TS service. Service state:{"type":0}
	at T.service (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/extensions/typescript-language-features/dist/extension.js:1:232977)
	at T.executeImpl (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/extensions/typescript-language-features/dist/extension.js:1:240923)
	at T.execute (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/extensions/typescript-language-features/dist/extension.js:1:240526)
	at w.get fixableDiagnosticCodes (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/extensions/typescript-language-features/dist/extension.js:1:192814)
	at w.n.<computed> (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/extensions/typescript-language-features/dist/extension.js:1:32040)
	at w.getFixableDiagnosticsForContext (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/extensions/typescript-language-features/dist/extension.js:1:192669)
	at C.provideCodeActions (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/extensions/typescript-language-features/dist/extension.js:1:193315)
	at /home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:779:728
	at /home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:52:1010
	at new Promise (<anonymous>)
	at Object.t.asPromise (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:52:982)
	at P.provideCodeActions (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:779:699)
	at /home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:801:414
	at q._withAdapter (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:796:10)
	at q.$provideCodeActions (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:801:392)
	at m._doInvokeHandler (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:916:926)
	at m._invokeHandler (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:916:618)
	at m._receiveRequest (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:915:201)
	at m._receiveOneMessage (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:914:6)
	at /home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:912:136
	at l.fire (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:46:801)
	at v.fire (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:233:787)
	at /home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:1118:104
	at l.fire (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:46:801)
	at v.fire (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:233:787)
	at t.PersistentProtocol._receiveMessage (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:238:1004)
	at /home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:235:927
	at l.fire (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:46:801)
	at p.acceptChunk (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:231:195)
	at /home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:230:547
	at Socket.t (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:240:822)
	at Socket.emit (events.js:223:5)
	at addChunk (_stream_readable.js:309:12)
	at readableAddChunk (_stream_readable.js:290:11)
	at Socket.Readable.push (_stream_readable.js:224:10)
	at TCP.onStreamRead (internal/stream_base_commons.js:181:23)

I am seeing this. in my VSCode log (Window)
[2021-01-10 20:01:28.305] [renderer1] [error] Could not create TS service. Service state:{"type":0}: Error: Could not create TS service. Service state:{"type":0}
	at T.service (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/extensions/typescript-language-features/dist/extension.js:1:232977)
	at T.executeImpl (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/extensions/typescript-language-features/dist/extension.js:1:240923)
	at T.execute (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/extensions/typescript-language-features/dist/extension.js:1:240526)
	at w.get fixableDiagnosticCodes (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/extensions/typescript-language-features/dist/extension.js:1:192814)
	at w.n.<computed> (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/extensions/typescript-language-features/dist/extension.js:1:32040)
	at w.getFixableDiagnosticsForContext (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/extensions/typescript-language-features/dist/extension.js:1:192669)
	at C.provideCodeActions (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/extensions/typescript-language-features/dist/extension.js:1:193315)
	at /home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:779:728
	at /home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:52:1010
	at new Promise (<anonymous>)
	at Object.t.asPromise (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:52:982)
	at P.provideCodeActions (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:779:699)
	at /home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:801:414
	at q._withAdapter (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:796:10)
	at q.$provideCodeActions (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:801:392)
	at m._doInvokeHandler (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:916:926)
	at m._invokeHandler (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:916:618)
	at m._receiveRequest (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:915:201)
	at m._receiveOneMessage (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:914:6)
	at /home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:912:136
	at l.fire (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:46:801)
	at v.fire (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:233:787)
	at /home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:1118:104
	at l.fire (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:46:801)
	at v.fire (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:233:787)
	at t.PersistentProtocol._receiveMessage (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:238:1004)
	at /home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:235:927
	at l.fire (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:46:801)
	at p.acceptChunk (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:231:195)
	at /home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:230:547
	at Socket.t (/home/samantha/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/out/vs/server/remoteExtensionHostProcess.js:240:822)
	at Socket.emit (events.js:223:5)
	at addChunk (_stream_readable.js:309:12)
	at readableAddChunk (_stream_readable.js:290:11)
	at Socket.Readable.push (_stream_readable.js:224:10)
	at TCP.onStreamRead (internal/stream_base_commons.js:181:23)

When I disable all extensions (apart from Visual Studio Code Remote - SSH v0.62.0) I still see the same problem.
The problem occurs with both
VSCode 1.52.1
VSCode Version: 1.53.0-insider

When I disable all extensions (apart from Visual Studio Code Remote - SSH v0.62.0) I still see the same problem.
The problem occurs with both
VSCode 1.52.1
VSCode Version: 1.53.0-insider


Null reference for some cookies

For some cookies there is null pointer exception in line.
And for this exception my sessionAuthenticated hook in ESA failed.
The cookie cause : " swagger-editor-development-mode:true" with no name

Are you on the latest version of ember-cookies? Actually #34 should fix this.

I'm using ESA version 1.2.0 actually.

This will be fixed in ESA by simplabs/ember-cookies#51


Launch Diskspeed impossible on Windows Server 2012 R2

Hello.
When i try to launch Diskpeed last version i have this error message
not found api-ms-core-libraryloader-I1-2-1.dll

Downlevel binary operation was addressed in the 2.2 release.


feat!: add array-is-array rule

Closes: https://github.com/liferay/eslint-config-liferay/issues/139

See test results against liferay-portal here: https://github.com/liferay/eslint-config-liferay/pull/145#issuecomment-584101749

Given positive test results, going to merge this.


Failed to build operator image

Bug Report

[root@preserve-olm-env operator-marketplace]# pwd
/data/goproject/src/operator-framework/operator-registry/operator-marketplace

[root@preserve-olm-env operator-marketplace]# operator-sdk build quay.io/olmqe/marketplace-operator:cs
go: inconsistent vendoring in /data/goproject/src/operator-framework/operator-registry:
<EMAIL_ADDRESS>is explicitly required in go.mod, but vendor/modules.txt indicates<EMAIL_ADDRESS><EMAIL_ADDRESS>is explicitly required in go.mod, but vendor/modules.txt indicates<EMAIL_ADDRESS><EMAIL_ADDRESS>is explicitly required in go.mod, but vendor/modules.txt indicates<EMAIL_ADDRESS><EMAIL_ADDRESS>is explicitly required in go.mod, but vendor/modules.txt indicates<EMAIL_ADDRESS><EMAIL_ADDRESS>is explicitly required in go.mod, but vendor/modules.txt indicates<EMAIL_ADDRESS><EMAIL_ADDRESS>is explicitly required in go.mod, but vendor/modules.txt indicates<EMAIL_ADDRESS><EMAIL_ADDRESS>is explicitly required in go.mod, but vendor/modules.txt indicates<EMAIL_ADDRESS><EMAIL_ADDRESS>is explicitly required in go.mod, but vendor/modules.txt indicates<EMAIL_ADDRESS>
run 'go mod vendor' to sync, or use -mod=mod or -mod=readonly to ignore the vendor directory
Error: failed to build operator binary: failed to exec []string{"go", "build", "-o", "/data/goproject/src/operator-framework/operator-registry/operator-marketplace/build/_output/bin/operator-marketplace", "-gcflags", "all=-trimpath=/data/goproject/src/operator-framework/operator-registry", "-asmflags", "all=-trimpath=/data/goproject/src/operator-framework/operator-registry", "-mod=vendor", "operator-framework/operator-registry/operator-marketplace/cmd/manager"}: exit status 1
Usage:
  operator-sdk build <image> [flags]

Flags:
      --go-build-args string      Extra Go build arguments as one string such as "-ldflags -X=main.xyz=abc"
  -h, --help                      help for build
      --image-build-args string   Extra image build arguments as one string such as "--build-arg https_proxy=$https_proxy"
      --image-builder string      Tool to build OCI images. One of: [docker, podman, buildah] (default "docker")

Global Flags:
      --verbose   Enable verbose logging

What did you do?
A clear and concise description of the steps you took (or insert a code snippet).
What did you expect to see?
A clear and concise description of what you expected to happen (or insert a code snippet).
What did you see instead? Under which circumstances?
A clear and concise description of what you expected to happen (or insert a code snippet).

Possible Solution

Additional context
Add any other context about the problem here.

@jianzhangbjz It looks like something is off with the vendor directory of the project.
As suggested by the error message, can you run go mod vendor to sync and then rerun the operator-sdk build command?

@joelanford Thanks for you suggestion! Unfortunately, go mod vendor failed.
[root@preserve-olm-env operator-marketplace]# go mod vendor
warning: ignoring symlink /data/goproject/src/operator-framework/operator-registry/index_tmp_087608756/var/run
warning: ignoring symlink /data/goproject/src/operator-framework/operator-registry/index_tmp_087608756/var/spool/mail
go: finding module for package github.com/operator-framework/operator-marketplace/pkg/mocks/operatorsource_mocks
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test imports
	: no Go source files
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test imports
	: package  is not in GOROOT (/usr/local/go/src/)
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test imports
	"`a`": package "`a`" is not in GOROOT (/usr/local/go/src/"`a`")
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test imports
	/foo: package /foo is not in GOROOT (/usr/local/go/src/foo)
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test imports
	\"a\": package \"a\" is not in GOROOT (/usr/local/go/src/\"a\")
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test imports
	\x00: package \x00 is not in GOROOT (/usr/local/go/src/\x00)
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test imports
	\x7f: package \x7f is not in GOROOT (/usr/local/go/src/\x7f)
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test imports
	\x80\x80: package \x80\x80 is not in GOROOT (/usr/local/go/src/\x80\x80)
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test imports
	\xFFFD: package \xFFFD is not in GOROOT (/usr/local/go/src/\xFFFD)
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test imports
	a b: package a b is not in GOROOT (/usr/local/go/src/a b)
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test imports
	a!: package a! is not in GOROOT (/usr/local/go/src/a!)
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test imports
	a\\b: package a\\b is not in GOROOT (/usr/local/go/src/a\\b)
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test imports
	a\b: package a\b is not in GOROOT (/usr/local/go/src/a\b)
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test imports
	c:/foo: package c:/foo is not in GOROOT (/usr/local/go/src/c:/foo)
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test imports
	: package  is not in GOROOT (/usr/local/go/src/)
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test imports
	??: package ?? is not in GOROOT (/usr/local/go/src/??)
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test imports
	?FD: package ?FD is not in GOROOT (/usr/local/go/src/?FD)
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test/fixedbugs imports

bogus: package
bogus is not in GOROOT (/usr/local/go/src/
bogus)
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test/fixedbugs/bug222.dir imports
	chanbug: package chanbug is not in GOROOT (/usr/local/go/src/chanbug)
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test/fixedbugs/bug302.dir imports
	p: package p is not in GOROOT (/usr/local/go/src/p)
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test/fixedbugs/bug302.dir imports
	pp: package pp is not in GOROOT (/usr/local/go/src/pp)
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test/fixedbugs/issue22962.dir imports
	a: package a is not in GOROOT (/usr/local/go/src/a)
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test/fixedbugs/issue31252.dir imports
	b: package b is not in GOROOT (/usr/local/go/src/b)
github.com/operator-framework/operator-registry/index_tmp_087608756/usr/local/go/test/fixedbugs/issue31252.dir imports
	c: package c is not in GOROOT (/usr/local/go/src/c)
github.com/operator-framework/operator-registry/operator-marketplace/pkg/operatorsource tested by
	github.com/operator-framework/operator-registry/operator-marketplace/pkg/operatorsource.test imports
	github.com/operator-framework/operator-marketplace/pkg/mocks/operatorsource_mocks: module github.com/operator-framework/operator-marketplace@latest found (v0.0.0-20200508183615-b1ba97ff4cf3), but does not contain package github.com/operator-framework/operator-marketplace/pkg/mocks/operatorsource_mocks
github.com/operator-framework/operator-registry/operator-marketplace/test/helpers imports
	github.com/operator-framework/operator-sdk/pkg/test imports
	k8s.io/client-go/plugin/pkg/client/auth imports
	k8s.io/client-go/plugin/pkg/client/auth/azure imports
	github.com/Azure/go-autorest/autorest: ambiguous import: found package github.com/Azure/go-autorest/autorest in multiple modules:
	github.com/Azure/go-autorest v11.2.8+incompatible<EMAIL_ADDRESS>	github.com/Azure/go-autorest/autorest v0.9.3-0.20191028180845-3492b2aff503<EMAIL_ADDRESS>github.com/operator-framework/operator-registry/operator-marketplace/test/helpers imports
	github.com/operator-framework/operator-sdk/pkg/test imports
	k8s.io/client-go/plugin/pkg/client/auth imports
	k8s.io/client-go/plugin/pkg/client/auth/azure imports
	github.com/Azure/go-autorest/autorest/adal: ambiguous import: found package github.com/Azure/go-autorest/autorest/adal in multiple modules:
	github.com/Azure/go-autorest v11.2.8+incompatible<EMAIL_ADDRESS>	github.com/Azure/go-autorest/autorest/adal v0.8.1-0.20191028180845-3492b2aff503<EMAIL_ADDRESS>github.com/operator-framework/operator-registry/operator-marketplace/test/helpers imports
	github.com/operator-framework/operator-sdk/pkg/test imports
	k8s.io/client-go/plugin/pkg/client/auth imports
	k8s.io/client-go/plugin/pkg/client/auth/azure imports
	github.com/Azure/go-autorest/autorest/azure: ambiguous import: found package github.com/Azure/go-autorest/autorest/azure in multiple modules:
	github.com/Azure/go-autorest v11.2.8+incompatible<EMAIL_ADDRESS>	github.com/Azure/go-autorest/autorest v0.9.3-0.20191028180845-3492b2aff503<EMAIL_ADDRESS>

And, I tried to use -mod=mod or -mod=readonly to ignore the vendor directory this solution, but seems like the GOFLAGS="-mod=mod" doesn't work. The -mod=vendor" still exist when building this binary.
exec []string{"go", "build", "-o", "/data/goproject/src/operator-framework/operator-registry/operator-marketplace/build/_output/bin/operator-marketplace", "-gcflags", "all=-trimpath=/data/goproject/src/operator-framework/operator-registry", "-asmflags", "all=-trimpath=/data/goproject/src/operator-framework/operator-registry", "-mod=vendor", "operator-framework/operator-registry/operator-marketplace/cmd/manager"}:

[root@preserve-olm-env operator-marketplace]# export GOFLAGS="-mod=mod"
[root@preserve-olm-env operator-marketplace]# operator-sdk build quay.io/olmqe/marketplace-operator:cs
go: inconsistent vendoring in /data/goproject/src/operator-framework/operator-registry:
<EMAIL_ADDRESS>is explicitly required in go.mod, but vendor/modules.txt indicates<EMAIL_ADDRESS><EMAIL_ADDRESS>is explicitly required in go.mod, but vendor/modules.txt indicates<EMAIL_ADDRESS><EMAIL_ADDRESS>is explicitly required in go.mod, but vendor/modules.txt indicates<EMAIL_ADDRESS><EMAIL_ADDRESS>is explicitly required in go.mod, but vendor/modules.txt indicates<EMAIL_ADDRESS><EMAIL_ADDRESS>is explicitly required in go.mod, but vendor/modules.txt indicates<EMAIL_ADDRESS><EMAIL_ADDRESS>is explicitly required in go.mod, but vendor/modules.txt indicates<EMAIL_ADDRESS><EMAIL_ADDRESS>is explicitly required in go.mod, but vendor/modules.txt indicates<EMAIL_ADDRESS><EMAIL_ADDRESS>is explicitly required in go.mod, but vendor/modules.txt indicates<EMAIL_ADDRESS>
run 'go mod vendor' to sync, or use -mod=mod or -mod=readonly to ignore the vendor directory
Error: failed to build operator binary: failed to exec []string{"go", "build", "-o", "/data/goproject/src/operator-framework/operator-registry/operator-marketplace/build/_output/bin/operator-marketplace", "-gcflags", "all=-trimpath=/data/goproject/src/operator-framework/operator-registry", "-asmflags", "all=-trimpath=/data/goproject/src/operator-framework/operator-registry", "-mod=vendor", "operator-framework/operator-registry/operator-marketplace/cmd/manager"}: exit status 1

@jianzhangbjz Sorry this issue somehow fell through the cracks. Were you ever able to solve this problem?
The root cause of this seems to be that the go.mod file and the vendor directory are out of sync. Until that problem is solved, you won't be able to successfully run operator-sdk build.
You can verify that this isn't strictly operator-sdk issue by running just the underlying go build command and see that that is failing:
go build \
  -o ./build/_output/bin/operator-marketplace \
  -gcflags="all=-trimpath=/data/goproject/src/operator-framework/operator-registry" \
  -asmflags="all=-trimpath=/data/goproject/src/operator-framework/operator-registry" \
  -mod=vendor \
  operator-framework/operator-registry/operator-marketplace/cmd/manager

Is there a way to sync them?

go mod vendor should do it. If you get errors there, then you have some Go dependency issues to resolve.

For me returns the same error that
my-operator/controllers imports
	api/v1alpha1: package api/v1alpha1 is not in GOROOT (/usr/local/go/src/api/v1alpha1)

That error makes me think your code is trying to import api/v1alpha1
This is a Go issue. In this case, you likely need to use the fully qualified module name in the import path. For example: github.com/my-org/my-operator/api/v1alpha1.

@joelanford Thanks, that did the trick.


Test 2 on "Trigger Click Events with JavaScript" keeps failing

Challenge trigger-click-events-with-javascript has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36.
Please find my solution code attached. The second test Your code should add an onclick event handler. keeps failing although I can clearly see the debug text Test in the JS console.
<script>
  document.addEventListener('DOMContentLoaded',function(){
    // Add your code below this line
    document.getElementById('getMessage').onclick = function() {
      console.log('Test');
    };
    // Add your code above this line
  });
</script>
…

I'll look into this after class

Issue is the test is expecting no space between the onclick and function keywords. I'll fix this tonight!

@Ethan-Arrowood Great work with the triaging!
May I suggest that you replace the second test with one checking for typeof document.getElementById('getMessage').onclick === 'function' rather than the regex-based one?
This way, we could allow arrow functions to be used as event handlers as well.

Ooh I like that! Okay I'll give it a shot :)


Extend Readme Details

This change adds the steps that were required for me to run the project locally.
Brief overview:

firebase steps added
npm reference removed while there are peer dependency conflicts
.env.local.template created with instructions to rename
additional clarity added for dbseed.js
node download added

This is fantastic @loganom ! Thank you so much for your time and effort on this!
We look forward to more contributions from you in the future


[Bug] /sell ship fails

Describe the bug
Bot doesn't respond
Steps to reproduce
Steps to reproduce the bug.


Multiple selection

Hi, it'll be good if it'll be possible to select multiple items (nodes & links). :)
I guess, I'll implement it and make a PR, but let me know if you're already working on it

I also wanted to implement it - I had this feature in our tools (that we're migrating from) and definitely need it here

@alexkuz pls text me in vk/tg @beinlife so we can discuss it there :)

I'm not working on it. It would be a welcome addition.

Has anyone been able to implement this and can provide an example?


How to ignore specific import being sorted

I wanna ignore specific import line from being sorted since I wanna have it imported first but I'd like to organize all remaining imports.
from tracer import tracer  # noqa: I001

from bmodule import importb
from amodule import a

# fmt: skip is being ignored completely - so it organizes imports anyway
 # noqa: I001 stops ordering completely even for lines without noqa
Im running ruff check --select I

Hi! I think our lint.isort.force-to-top setting will do this for you. E.g. in a pyproject.toml file:
[tool.ruff.lint.isort]
force-to-top = ["tracer"]

Does that work?

it works partially - it just moves the import to the top of own modules - is there a way to move it all the way to the top even before builtin modules?

Yeah, you can define a custom section and put tracer in that section, then use section-order to enforce that that section comes before all others:
[tool.ruff.lint.isort]
sections = {"tracer" = ["tracer"]}
section-order = [
    "future",
    "tracer",
    "standard-library",
    "third-party",
    "first-party",
    "local-folder",
]

- https://docs.astral.sh/ruff/settings/#lint_isort_sections
- https://docs.astral.sh/ruff/settings/#lint_isort_section-order


Repository & organization pages don't redirect to proper letter casing

Description
Repository and organization pages don't redirect to the proper letter casing, for example if you visit this URL: https://try.gitea.io/blablablablab/Blatest (Blatest!) and then if you click issues, you'll end up at https://try.gitea.io/blablablablab/BlaTest/issues (BlaTest!). This is not only slightly confusing but can be a problem for search engines since the document path in URIs may or may not be case sensitive, so they may not reliably know if two different casing URIs point to the same site or not, especially if the site has dynamic contents.
The solution is, if the spelling of any repo or org URI was matched case insensitive but is not the canonical way of its letter casing specified in the settings, visitors should get a 301 permanent HTTP(S) redirect to correct the spelling. E.g., https://try.gitea.io/blablablablab/BlaTeST shouldn't just show the repository directly, but rather get me to the repo's proper spelling: https://try.gitea.io/blablablablab/BlaTest and the same for organization spelling too.
Gitea Version
1.18.0+dev-587-g716fcfcf7
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots

Git Version
No response
Operating System
No response
How are you running Gitea?
I'm not, I'm reproducing this on others' instances
Database
No response

Just for reference: Github does not redirect to the correct letter casing too.

Yeah, they don't, very annoying. I'm happy to have moved my repositories to a Gitea-based hoster.

IIRC, this issue has been fixed. But forget which PR fixed it, need some time to figure out.


Upload Swachhcoin

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

[x] Filename in the lowercase format
[x] Image format: png
[x] Image size: 256 by 256 px

@SwachhCoin can you name your token with a smart contract address? as per requirement and you should be good to go!

@SwachhCoin
Also, you can use these graphics to say that your ERC20 token fully compatible with Trust Wallet (https://trustwalletapp.com/logo-assets). Tokens will show up automatically once the user receives them.
Feel free to share this on social media and tag Trust Wallet:

Twitter: @trustwalletapp

Facebook: @trustwalletapp