Feature Request: Mechanism to disable test caching for specific unit tests

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

$ go version
go version go1.13.1 darwin/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/{name}/Library/Caches/go-build"
GOENV="/Users/{name}/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/{name}/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.13.1/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.13.1/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/rv/cjpwdbp50p573x7q0ggx9bjc0000gp/T/go-build190894529=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

I'm writing integration tests using the testing package that are triggered via build tags; e.g.:
// +build integration

package myservice

func Test123(t *testing.T) {
        ....
}

Due to the nature of the integration tests I would like them to never be cached; the systems they are integrating against are always changing.
What did you expect to see?
A mechanism to disable caching for specific test functions.
What did you see instead?
Mechanisms for either clearing the cache for all tests or disabling the cache for all test.
Workaround
I can currently workaround this issues by running tests twice.

Run all unit tests, which the cache should be maintained for, via go test ./...
Run integration test by using the build tag and combining with -count=1 -run=....

This workaround requires that all tests that should never be cached have a regex pattern that be be used; forcing all these test to include the phrase NoCache or something else.  These tests would also still need to be protected by requiring a build tag to prevent them from being run in step 1.
Proposal
Add a NoCache() method to the testing.T struct that would disable the specific method from being cached.
// +build integration

package myservice

func Test123(t *testing.T) {
        t.NoCache()
        ....
}

Thanks for the request. This is a dup of #23799.

Thanks.  Closing as a dup.  Please comment over on #23799.


iOS Notification Service Extension causing build failure

I've added react-native-onesignal to my project which suggests to set up a Notification Service Extension: https://documentation.onesignal.com/docs/react-native-sdk-setup#section-add-notification-service-extension
After I've done that my build started to fail with the following exception:
<built-in>:1:10: fatal error: '/Users/adam/Library/Developer/Xcode/DerivedData/app-dvdnocjhkcmmvdgxdrwahrxgeifn/Build/Intermediates.noindex/ArchiveIntermediates/app/BuildProductsPath/GeneratedInfoPlistDotEnv.h' file not found #include "/Users/adam/Library/Developer/Xcode/DerivedData/app-dvdnocjhkcmmvdgxdrwahrxgeifn/Build/Intermediates.noindex/ArchiveIntermediates/app/BuildProductsPath/GeneratedInfoPlistDotEnv.h"
Anyone has any suggestion how should I set up my extension so it would work with react-native-config?

Eventually I was able to resolve this on my own - turned out that preprocessor settings was set for the service extension target. After I've removed that build started to work.


No X11 DISPLAY variable was set

Expected behavior
Gauge should be able to capture the screenshot
Actual behavior
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
Observed on

CI Linux FT of Java

The message is
Failed to take regular screenshot:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.

is this still relevant @sguptatw ?

Not relevant anymore


IllegalStateException in restoreViewModels on startup.

Hello
When my users restart/re-open (Not sure which one) the app i get the following error report in  firebase crashlytics:
Fatal Exception: java.lang.RuntimeException: Unable to start activity
ComponentInfo{getflareapp.com.sosterTilSoster/getflareapp.com.sosterTilSoster.MainActivity}:
java.lang.IllegalStateException: You are trying to call restoreViewModels but you never called saveViewModels!
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2858)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2933)
       at android.app.ActivityThread.-wrap11(Unknown Source)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1612)
       at android.os.Handler.dispatchMessage(Handler.java:105)
       at android.os.Looper.loop(Looper.java:164)
       at android.app.ActivityThread.main(ActivityThread.java:6710)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)

I'm having a hard time reproducing the error in development.
The project has several AndroidX dependencies. Maybe this could be the problem?
...
    implementation "android.arch.navigation:navigation-fragment-ktx:1.0.0-rc02"
    implementation "android.arch.navigation:navigation-ui-ktx:1.0.0-rc02"

    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'androidx.cardview:cardview:1.0.0'
    implementation 'androidx.recyclerview:recyclerview:1.0.0'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3'
    implementation('androidx.recyclerview:recyclerview:1.0.0')
    implementation "androidx.lifecycle:lifecycle-extensions:2.0.0"
    implementation 'androidx.exifinterface:exifinterface:1.0.0'
...

Maybe the following issue regarding MvRx and AndroidX is related?
https://github.com/airbnb/MvRx/pull/211
Thanks for any help!

@jQrgen did you build your own MvRx binary? We did not release this yet.
This looks like a some state where our view model did not get save but you try to restore them.

I did not build my own binary. My mistake was assuming that MvRx was androidx ready.
Now i have an app in production using androidx and MvRx so I guess i could pull master since it has the merged androidx update and try building my own binary?

@jQrgen It's fine to use mvrx with androidx. Do you have your own BaseFragment or do you use BaseMvRxFragment that ships with MvRx directly?

Basically i'm using a home-grown version of the setup in the official example. Not too sure if it is best practice and how robust it the setup is.
I have inherited from BaseMvRxFragment into my own BaseFragment class
BaseFragment.kt
abstract class BaseFragment: BaseMvRxFragment() {
    val currentUserSessionViewModel: CurrentUserSessionViewModel by activityViewModel ()
    val chatListViewModel: ChatListViewModel by activityViewModel ()
    val allUsersViewModel: AllUsersViewModel by activityViewModel ()
    val newsPostsViewModel: NewsPostsViewModel by activityViewModel ()
    val chatViewModel: ChatViewModel by activityViewModel ()
    val markersViewModel: MarkersViewModel by activityViewModel ()

    protected fun navigate(@IdRes id: Int, args: Parcelable? = null) {
        findNavController().navigate(id, Bundle().apply { putParcelable(MvRx.KEY_ARG, args) })
    }

    protected fun hideSoftKeyboard() {
        val context = activity?.applicationContext ?: return
        val currentView = view ?: return
        val inputMethodManager = context.getSystemService(Activity.INPUT_METHOD_SERVICE) as InputMethodManager
        inputMethodManager.hideSoftInputFromWindow(currentView.windowToken, 0)
    }

    override fun onRequestPermissionsResult(requestCode: Int, permissions: Array<out String>, grantResults: IntArray) {
        super.onRequestPermissionsResult(requestCode, permissions, grantResults)

        // Forward results to EasyPermissions
        EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this)
    }

}

Then i have inherited from the BaseFragment into a BaseEpoxyFragment class
BaseEpoxyFragment.kt

abstract class BaseEpoxyFragment : BaseFragment() {

    private var recyclerView: EpoxyRecyclerView? = null
    protected val epoxyController by lazy { epoxyController() }

    abstract fun epoxyController(): MvRxEpoxyController

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        epoxyController.onRestoreInstanceState(savedInstanceState)
    }

    override fun onCreateView(
            inflater: LayoutInflater,
            container: ViewGroup?,
            savedInstanceState: Bundle?
    ): View? {
        return inflater.inflate(R.layout.fragment_base_mvrx, container, false).apply {
            recyclerView = findViewById(R.id.recycler_view)
            recyclerView?.setController(epoxyController)
        }
    }

    override fun invalidate() {
        recyclerView?.requestModelBuild()
    }

    override fun onSaveInstanceState(outState: Bundle) {
        super.onSaveInstanceState(outState)
        epoxyController.onSaveInstanceState(outState)
    }

    override fun onDestroyView() {
        epoxyController.cancelPendingModelBuild()
        super.onDestroyView()
    }
}

I have used MvRxEpoxyController from the example which i have limited understanding of and have never touched.
MvRxEpoxyController.kt
/**
 * For use with [BaseEpoxyFragment.epoxyController].
 *
 * This builds Epoxy models in a background thread.
 */
open class MvRxEpoxyController(
    val buildModelsCallback: EpoxyController.() -> Unit = {}
) : AsyncEpoxyController() {

    override fun buildModels() {
        buildModelsCallback()
    }
}

/**
 * Create a [MvRxEpoxyController] that builds models with the given callback.
 */
fun BaseEpoxyFragment.simpleController(
    buildModels: EpoxyController.() -> Unit
) = MvRxEpoxyController {
    // Models are built asynchronously, so it is possible that this is called after the fragment
    // is detached under certain race conditions.
    if (view == null || isRemoving) return@MvRxEpoxyController
    buildModels()
}

/**
 * Create a [MvRxEpoxyController] that builds models with the given callback.
 * When models are built the current state of the viewmodel will be provided.
 */
fun <S : MvRxState, A : MvRxViewModel<S>> BaseEpoxyFragment.simpleController(
    viewModel: A,
    buildModels: EpoxyController.(state: S) -> Unit
) = MvRxEpoxyController {
    if (view == null || isRemoving) return@MvRxEpoxyController
    withState(viewModel) { state ->
        buildModels(state)
    }
}

/**
 * Create a [MvRxEpoxyController] that builds models with the given callback.
 * When models are built the current state of the viewmodels will be provided.
 */
fun <A : BaseMvRxViewModel<B>, B : MvRxState, C : BaseMvRxViewModel<D>, D : MvRxState> BaseEpoxyFragment.simpleController(
    viewModel1: A,
    viewModel2: C,
    buildModels: EpoxyController.(state1: B, state2: D) -> Unit
) = MvRxEpoxyController {
    if (view == null || isRemoving) return@MvRxEpoxyController
    withState(viewModel1, viewModel2) { state1, state2 ->
        buildModels(state1, state2)
    }
}

/**
 * Create a [MvRxEpoxyController] that builds models with the given callback.
 * When models are built the current state of the viewmodels will be provided.
 */
fun <A : BaseMvRxViewModel<B>, B : MvRxState, C : BaseMvRxViewModel<D>, D : MvRxState, E : BaseMvRxViewModel<F>, F : MvRxState> BaseEpoxyFragment.simpleController(
    viewModel1: A,
    viewModel2: C,
    viewModel3: E,
    buildModels: EpoxyController.(state1: B, state2: D, state3: F) -> Unit
) = MvRxEpoxyController {
    if (view == null || isRemoving) return@MvRxEpoxyController
    withState(viewModel1, viewModel2, viewModel3) { state1, state2, state3 ->
        buildModels(state1, state2, state3)
    }
}

Maybe an update to 1.0.0 will mend this issue?
The problem is that i cannot reproduce so i have to upload a new apk to my customer for quality assurance ¯_(ツ)_/¯

Solved by implementing the following:
abstract class BaseMvRxActivity : AppCompatActivity(), MvRxViewModelStoreOwner {

    /**
     * MvRx has its own wrapped ViewModelStore that enables improved state restoration if Android
     * kills your app and restores it in a new process.
     */
    override val mvrxViewModelStore by lazy { MvRxViewModelStore(viewModelStore) }

    override fun onCreate(savedInstanceState: Bundle?) {
        /**
         * This MUST be called before super!
         * In a new process, super.onCreate will trigger Fragment.onCreate, which could access a ViewModel.
         */
        mvrxViewModelStore.restoreViewModels(this, savedInstanceState)
        super.onCreate(savedInstanceState)
    }

    override fun onSaveInstanceState(outState: Bundle) {
        super.onSaveInstanceState(outState)
        mvrxViewModelStore.saveViewModels(outState)
    }
}

class MainActivity: BaseMvRxActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
        if(savedInstanceState != null)
            mvrxViewModelStore.saveViewModels(savedInstanceState)
        super.onCreate(savedInstanceState)

    // ....
}


payload should be exactly what we send. Not the buffer.

Payload is a buffer, if you don't trim it, it is a chunk that start with your data + other messages leftovers.
so i added in callback to get only the payload:
//payload extract
payload[length] = '\0';

Hello,
IIRC this modification will cause a data loss from payload, for example when a 1 byte string sent such as "P" (which is {'P', '\0'}) the strlen() return length will be 1, not 2, so there will be no data passed to process since 'P' will become 0x00.
If I'm wrong did you do unit testing for this?

I have tested it using "1" and "0" and they work fine. Also the length will be 1 but the buffer starts from 0 so the single byte will be preserved.

@abderraouf-adjal if you send {'P', '\0'} then you are sending a 2 byte payload. The length parameter passed to the callback will be 2. So doing payload[length] = '\0' will result in {'P', '\0', '\0'} and all is well.

@abderraouf-adjal if you send {'P', '\0'} then you are sending a 2 byte payload. The length parameter passed to the callback will be 2. So doing payload[length] = '\0' will result in {'P', '\0', '\0'} and all is well.

Interesting, in my current project I use Adafruit IO server and this app, I send one character from the app and in esp8266 I check the length, it's always 1.

@ajaybnl
I'm not sure if there is absolutely no risk by doing this because lengths calculation is a bit confusing,
See the buffer declaration and this part of code.
My question is: Can this modification cause data loss if the packet filled all that buffer?
I also need to note that there is no need for this since we are printing char by char here, so maybe pointing by a comment that the payload isn't null-terminated array will be better.

No, this change cannot corrupt it.
The length argument to the callback tells you exactly how many bytes of payload to read. The one extreme edge case is if the received packet fills the entire buffer, in which case this will overrun the buffer.
For that reason, I'm not going to be merging this change into the example code. Individual users need to decide for themselves of that is suitable given their application and circumstances.

Dear knolleary, Like i had problems using strcmp to match payload, if you want somebody not having problems, please add a comment to have the line i wrote, so that he should use it if needed.
I have been troubled for 2 hours figuring it out, and for the easiness of new arduino coders,  please do it.

abderraouf-adjal you are considering \0 as a char, but its a termination symbol for arduino. It should send your "P" in your callback message.

Hi,
I think, there is another problem with using
payload[length] = '\0';
The buffer and its size is defined via
#define MQTT_MAX_PACKET_SIZE 128
and
uint8_t buffer[MQTT_MAX_PACKET_SIZE];
So in this case the buffer reaches from buffer[0] to buffer[127].
The data written to the buffer is limited to the max size:
if (len < MQTT_MAX_PACKET_SIZE)
{
 buffer[len] = digit;
}
So the last possible value is stored in buffer[127].
If you send a 128 character payload the length parameter will have the (correct) value 128, the data is in buffer[0] to buffer[127].
So far so good.
But:
With
payload[length] = '\0';
you write a character to buffer[128] with is not defined/allowed! You are overwriting the next byte after buffer in memory (buffer overflow).

abderraouf-adjal you are considering \0 as a char, but its a termination symbol for arduino. It should send your "P" in your callback message.

@ajaybnl Never mind about my first comment since I was confused with the index.
The issue is when all the buffer is used this might cause data loss in other variables. There is data, there is data length, it's all clear.

Not everybody's sending ASCII strings so asking for null termination is no good. In C/C++, if a length parameter is provided following a buffer, that's a strong indication that the buffer content may not be null-terminated. It's also not a good idea to encourage payload[length] = 0 since you're writing to memory outside the specified length bounds, potentially overwriting useful data, especially if the library implementation changes at some point to hold multiple PUBLISH messages simultaneously in the buffer. If anything, I'd recommend the payload parameter be changed from uint8_t* to const uint8_t* to prevent this sort of thing.


s.wrapper.transition is not a function

Saw #1246 and #1410.  I am receiving very similar error with simple demo page:
Uncaught TypeError: s.wrapper.transition is not a function     at Swiper.s.setWrapperTransition (swiper-3.4.2.js:2188)     at HTMLDocument.Swiper.s.onTouchMove (swiper-3.4.2.js:1675)
Just downloaded the libraries this evening.  Structure is from one of your demo pages.  I have tried initializing "straight" and with jQuery.
Can see live at http://bit.ly/2lrFbBJ

Due to no input, I reverted back to Swiper 3.3.1 as found in a demo on a third-party site.  After reproducing their config by scraping the scripts, I was finally able to get it to work, with and without jQuery.
Also, the navigation buttons did not work after reverting.  I used the solution put forward in https://github.com/nolimits4web/Swiper/issues/1317#issuecomment-161328375.

3.x version is not supported anymore. I can recommend you to use 4.x


Removes preview mode from schema, as only subwordSmart makes sense anyways

This PR fixes #131525

hediet/remove-preview-mode-from-schema


Fix regressions in attach

Wrong bool parsing
Attach always all streams

Were introduced in #12120

@LK4D4 just curious, does this mean the old code was broken since we're now checking the various std* flags where before we didn't check them at all?

@duglin There was such logic in old code before my PR. It was in ContainerAttach function.

Ah, ok gotcha - thanks - just wanted to understand the history.

LGTM

LGTM


Add is_sse() and is_avx() methods to instruction

I'd like to check off an old stoke issue that needs this information.

Wow... someone's already done this. I'm going to add an intersection check to FlagSet to make what's here a little bit faster.


build: Enhance twister to follow all module.yml in module list

Is your enhancement proposal related to a problem? Please describe.
twister seems to only look for tests and samples beneath ZEPHYR_BASE and wherever it is explicitly told on the command line. It seems to ignore the optional tests: and subsys: list settings in zephyr/module.yml.  This prevents automatically running CI on the complete workspace.  Doing so is highly desirable for user-provided CI.
Describe the solution you'd like
twister should default to searching all modules for tests and samples as configured by each zephyr/module.yml.  A command line option should be added to support looking only over specific module(s).
Describe alternatives you've considered
I have not considered any other options, as this appears to be a gap in support of existing extensibility mechanisms.
Additional context
Please add this in or before the LTS.

./scripts/zephyr_module.py --twister-out t.args
./scripts/twister +t.args

we do not want twister dealing with manifests directly, this is up to the user to run tests on modules with tests.

@nashif

we do not want twister dealing with manifests directly,  ...

I completely agree, and this fundamentally has nothing to do with manifests.  Manifest parsing should be left to west, and any ability to kickoff off twister with a generated list of module directories from manifests should be left to a west extension located in zephyr/scripts/west_commands/.
This is about twister:

following a provided list of directories (e.g., `ZEPHYR[_EXTRA]_MODULES, or a new command line option)
detecting and validating any existing zephyr/module.yml
following the existing tests: and samples: in valid zephyr/module.yml to determine where to (and where not to) look for testcase_base values

Since I haven't been able to think of any other client that would use the tests: field in module.yml, this seems like twister was missed in the original implementation.

I still think twister should not deal with modules directly. We should have and we have the tools to cover modules in CI, but we do not want to be parsing module.yaml files in twister. If you want to test something in a module, point to it directly.

we have a method for testing module with twister which is part of CI. twister can be pointed to any directory with tests already.


Error in object detection example

Hi all,
I want to run Object Detection example. But i have three errors that illustrated in the bottom photo.
What should I do?

@masoudnick Are you using NumSharp 0.20 ?

@Oceania2018 I installed version 0.20.4

Are you using the C# 7.x ? or .NET Core ?

@Oceania2018 Does it different? I'm using Visual Studio 2015.

I'm not sure, you'd better use Visual Studio 2017 +. The error look like the C# compiler is imcompatible.

@Oceania2018
Thanks for your response :)
I'll install Visual Studio 2017 and test this example again.


[SPARK-11188][SQL] Elide stacktraces in bin/spark-sql for AnalysisExceptions

Only print the error message to the console for Analysis Exceptions in sql-shell

@marmbrus this is for 1.4.2 branch..

Can one of the admins verify this patch?

ok to test

Merged build triggered.

Merged build started.

Test build #44678 has started for   PR 9375 at commit ed395be.

Test build #44678 has finished for   PR 9375 at commit ed395be.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/44678/
Test PASSed.

Merged build triggered.

Merged build started.

Test build #45007 has started for   PR 9375 at commit f244688.

Test build #45007 has finished for   PR 9375 at commit f244688.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/45007/
Test FAILed.

@marmbrus hello Michael, even though the failure is in CliSuite, i don't think its related to the change as i have only made cosmetic changes in the last commit. I also ran CliSuite in my 142 env with my changes and am able to run it cleanly. Can we retest this please ?

test this please

Merged build triggered.

Merged build started.

Test build #45150 has started for   PR 9375 at commit f244688.

Test build #45150 has finished for   PR 9375 at commit f244688.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/45150/
Test PASSed.

Thanks, merging.  Can you close this?

@marmbrus Thank you very much. Closed the PR.


Error when attempting to create a schema: "Details: Cannot destructure property 'imports' of 'e' as it is undefined."

Please select the area your bug applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

[ ] Workspace.  VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
[ ] Lookup.  Dendron's Lookup Command
[ ] Views.  Dendron Preview, Tree View, Side Panels in the UI
[X] Schema.  Dendron Schemas
[ ] Pod.  Data import from / export to Dendron
[ ] Publish.  External Site Publish
[ ] Markdown.  Markdown features, such as syntax support and features

Describe the bug
Trying to create a new schema. When saving {root}/notes/daily.schema.yml the error "dendron.log" appears, rather than saving normally as expected.
To Reproduce
Steps to reproduce the behavior:

Create a new file {root}/notes/daily.schema.yml
Attempt to save the file
See error

Expected behavior
Expecting the file to save normally without error.
This issue implies that there should be different behaviour when encountering a malformed schema? If this error is due to a malformed schema, I would hope for a warning or error that indicated the problem.
Screenshots

Desktop (please complete the following information)

OS: Windows
Browser (if with published websites; include version): NA
Versions (all that apply to bug): v0.124.0

Dendron Extension: NA
VS Code version: 1.82.2
Dendron CLI: NA (?)

Additional context
I was hoping to create a template for my daily journal. I believe the tutorial mentioned how to do this, but I can't find a mention of it now.
Looking at the documentation it's not clear how to begin. It's mentioned here to make schema files with the following format: {name}.schema.yml. But it's unclear how to make a schema for the daily log file. This issue indicated that the default naming scheme for the daily journal schema is daily.schema.yml; There is also a set of example schemas here, but it's not clear from the README which one would be used to provide a template for the daily journal. Also, it's not clear where to save the schema file; Should it be saved in the root? I'm guessing it should be in the notes directory, but given this error I'm unsure.
Also, it would be helpful if the documentation were to cover this workflow; That is, how to create a template (schema) for the daily journal.
Finally pressing the "Go to Schema" button (see screenshot), does not appear to have an effect.
Dendron Log file
Please attach the output of > Dendron:Dev: Open Logs here
dendron.log

Re: https://github.com/dendronhq/dendron/actions/runs/6398520425
Fixed a markdown error.


kvm: support hot plugging

Codecov Report

Merging #208 into 1.1.0-alpha will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff              @@
##           1.1.0-alpha     #208   +/-   ##
============================================
  Coverage        16.74%   16.74%
============================================
  Files               15       15
  Lines             1033     1033
============================================
  Hits               173      173
  Misses             849      849
  Partials            11       11

Continue to review full report at Codecov.

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


forex.analytics crashes 'char const*'

System information

Have I written custom code (as opposed to using zenbot vanilla): No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04.1 server
Zenbot version (commit ref, or version): 4.1.0
Zenbot branch: ?
NodeJS version: 8.14.1
Python version (when using a python script):
Exact command to reproduce (include everything): ./zenbot trade binance.etc-btc --strategy forex_analytics --modelfile eth-btc.json
Did I make any changes to conf-sample.js?: binance api key and telegram bot Settings

Describe the problem
I've train with command "./zenbot Train binance.etc-btc --days_training 42 --days_test 14". After that I renamed the json file and run with the command above. After download complete, zenbot starts and crashs imidiatly with following error: "terminate called after throwing an instance of 'char const*' Aborted (core dumped)"
What's the problem?
Where can I find additional error logs/dumps?

The same problem :
crashs imidiatly with following error: "terminate called after throwing an instance of 'char const*
sh zenbot.sh train gdax.LTC-EUR --period 1m --days_training 20 --days_test 5
#!/bin/bash
sh zenbot.sh trade gdax.LTC-EUR --deposit 100 --strategy forex_analytics --modelfile models/forex.model_gdax.LTCEUR_...json --period=1m --paper --conf conf3.js

Any idea ?


Go updates and generic pre commit configuration

I was just investigating an issue with config recorder usage and did a bit of housekeeping with updates and slightly changing the configuration for pre-commit to work in a bit more generic way (my linux distro doesn't install it in /usr/local/bin/ for example)
Updated some go dependencies and the go version so make test works again.
Just in case you're interested to merge or pick some of my changes.
Thank you.

Thank you for this. Much appreciated!


BinaryView.read with negative length causes crash

Calling BinaryView.read() with a length that is negative causes Binary Ninja to crash.

This should be resolved in build 1451 or later.


Top button handling

Mark 1 has a button acting as a push button as well as a potentiometer.
This button should be handle to maybe

Trigger the recording when pushed
Manage the volume up/down when the button is rotated

both of those are supposed to be there and working

Indeed... sorry for the noise.


Build fail OS X 10.11.6

$ npm install node-qt

><EMAIL_ADDRESS>install /Users/me/Desktop/node_modules/node-qt
> node-gyp rebuild

  CXX(target) Release/obj.target/qt/src/qt.o
../src/qt.cc:30:9: warning: 'BUILDING_NODE_EXTENSION' macro redefined [-Wmacro-redefined]
#define BUILDING_NODE_EXTENSION
        ^
<command line>:8:9: note: previous definition is here
#define BUILDING_NODE_EXTENSION 1
        ^
In file included from ../src/qt.cc:33:
In file included from ../src/QtCore/qsize.h:35:
In file included from ../deps/qt-4.8.0/darwin/x64/include/QtCore/QSize:1:
In file included from ../deps/qt-4.8.0/darwin/x64/include/QtCore/qsize.h:45:
In file included from ../deps/qt-4.8.0/darwin/x64/include/QtCore/qnamespace.h:45:
../deps/qt-4.8.0/darwin/x64/include/QtCore/qglobal.h:328:6: warning: "This version of Mac OS X is unsupported" [-W#warnings]
#    warning "This version of Mac OS X is unsupported"
     ^
In file included from ../src/qt.cc:33:
../src/QtCore/qsize.h:37:32: error: expected class name
class QSizeWrap : public node::ObjectWrap {
                               ^
../src/QtCore/qsize.h:51:42: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
  static v8::Handle<v8::Value> New(const v8::Arguments& args);
                                         ^~~~~~~~~~~~~
                                         v8::internal::Arguments
/Users/me/.node-gyp/11.4.0/include/node/v8.h:143:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/qt.cc:33:
../src/QtCore/qsize.h:54:44: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
  static v8::Handle<v8::Value> Width(const v8::Arguments& args);
                                           ^~~~~~~~~~~~~
                                           v8::internal::Arguments
/Users/me/.node-gyp/11.4.0/include/node/v8.h:143:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/qt.cc:33:
../src/QtCore/qsize.h:55:45: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
  static v8::Handle<v8::Value> Height(const v8::Arguments& args);
                                            ^~~~~~~~~~~~~
                                            v8::internal::Arguments
/Users/me/.node-gyp/11.4.0/include/node/v8.h:143:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/qt.cc:34:
../src/QtCore/qpointf.h:37:34: error: expected class name
class QPointFWrap : public node::ObjectWrap {
                                 ^
../src/QtCore/qpointf.h:48:21: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
  QPointFWrap(const v8::Arguments& args);
                    ^~~~~~~~~~~~~
                    v8::internal::Arguments
/Users/me/.node-gyp/11.4.0/include/node/v8.h:143:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/qt.cc:34:
../src/QtCore/qpointf.h:51:42: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
  static v8::Handle<v8::Value> New(const v8::Arguments& args);
                                         ^~~~~~~~~~~~~
                                         v8::internal::Arguments
/Users/me/.node-gyp/11.4.0/include/node/v8.h:143:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/qt.cc:34:
../src/QtCore/qpointf.h:54:45: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
  static v8::Handle<v8::Value> IsNull(const v8::Arguments& args);
                                            ^~~~~~~~~~~~~
                                            v8::internal::Arguments
/Users/me/.node-gyp/11.4.0/include/node/v8.h:143:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/qt.cc:34:
../src/QtCore/qpointf.h:55:40: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
  static v8::Handle<v8::Value> X(const v8::Arguments& args);
                                       ^~~~~~~~~~~~~
                                       v8::internal::Arguments
/Users/me/.node-gyp/11.4.0/include/node/v8.h:143:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/qt.cc:34:
../src/QtCore/qpointf.h:56:40: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
  static v8::Handle<v8::Value> Y(const v8::Arguments& args);
                                       ^~~~~~~~~~~~~
                                       v8::internal::Arguments
/Users/me/.node-gyp/11.4.0/include/node/v8.h:143:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/qt.cc:36:
In file included from ../src/QtGui/qapplication.h:34:
In file included from ../deps/qt-4.8.0/darwin/x64/include/QtGui/QApplication:1:
In file included from ../deps/qt-4.8.0/darwin/x64/include/QtGui/qapplication.h:45:
In file included from ../deps/qt-4.8.0/darwin/x64/include/QtCore/qcoreapplication.h:45:
In file included from ../deps/qt-4.8.0/darwin/x64/include/QtCore/qobject.h:50:
../deps/qt-4.8.0/darwin/x64/include/QtCore/qlist.h:184:22: error: reference to 'random_access_iterator_tag' is ambiguous
        typedef std::random_access_iterator_tag  iterator_category;
                     ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:364:30: note: candidate found by name
      lookup is 'std::__1::random_access_iterator_tag'
struct _LIBCPP_TYPE_VIS_ONLY random_access_iterator_tag : public bidirectional_iterator_tag {};
                             ^
../deps/qt-4.8.0/darwin/x64/include/QtCore/qiterator.h:51:12: note: candidate found by name lookup is 'std::random_access_iterator_tag'
    struct random_access_iterator_tag;
           ^
In file included from ../src/qt.cc:36:
In file included from ../src/QtGui/qapplication.h:34:
In file included from ../deps/qt-4.8.0/darwin/x64/include/QtGui/QApplication:1:
In file included from ../deps/qt-4.8.0/darwin/x64/include/QtGui/qapplication.h:45:
In file included from ../deps/qt-4.8.0/darwin/x64/include/QtCore/qcoreapplication.h:45:
In file included from ../deps/qt-4.8.0/darwin/x64/include/QtCore/qobject.h:50:
../deps/qt-4.8.0/darwin/x64/include/QtCore/qlist.h:231:22: error: reference to 'random_access_iterator_tag' is ambiguous
        typedef std::random_access_iterator_tag  iterator_category;
                     ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:364:30: note: candidate found by name
      lookup is 'std::__1::random_access_iterator_tag'
struct _LIBCPP_TYPE_VIS_ONLY random_access_iterator_tag : public bidirectional_iterator_tag {};
                             ^
../deps/qt-4.8.0/darwin/x64/include/QtCore/qiterator.h:51:12: note: candidate found by name lookup is 'std::random_access_iterator_tag'
    struct random_access_iterator_tag;
           ^
In file included from ../src/qt.cc:36:
../src/QtGui/qapplication.h:36:39: error: expected class name
class QApplicationWrap : public node::ObjectWrap {
                                      ^
../src/QtGui/qapplication.h:45:42: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
  static v8::Handle<v8::Value> New(const v8::Arguments& args);
                                         ^~~~~~~~~~~~~
                                         v8::internal::Arguments
/Users/me/.node-gyp/11.4.0/include/node/v8.h:143:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/qt.cc:36:
../src/QtGui/qapplication.h:48:52: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
  static v8::Handle<v8::Value> ProcessEvents(const v8::Arguments& args);
                                                   ^~~~~~~~~~~~~
                                                   v8::internal::Arguments
/Users/me/.node-gyp/11.4.0/include/node/v8.h:143:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/qt.cc:36:
../src/QtGui/qapplication.h:49:43: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
  static v8::Handle<v8::Value> Exec(const v8::Arguments& args);
                                          ^~~~~~~~~~~~~
                                          v8::internal::Arguments
/Users/me/.node-gyp/11.4.0/include/node/v8.h:143:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/qt.cc:37:
In file included from ../src/QtGui/qwidget.h:35:
In file included from ../deps/qt-4.8.0/darwin/x64/include/QtGui/QWidget:1:
In file included from ../deps/qt-4.8.0/darwin/x64/include/QtGui/qwidget.h:49:
In file included from ../deps/qt-4.8.0/darwin/x64/include/QtGui/qpalette.h:47:
In file included from ../deps/qt-4.8.0/darwin/x64/include/QtGui/qbrush.h:53:
In file included from ../deps/qt-4.8.0/darwin/x64/include/QtGui/qpixmap.h:49:
In file included from ../deps/qt-4.8.0/darwin/x64/include/QtCore/qsharedpointer.h:50:
../deps/qt-4.8.0/darwin/x64/include/QtCore/qsharedpointer_impl.h:435:17: warning: 'register' storage class specifier is deprecated and incompatible
      with C++1z [-Wdeprecated-register]
                register int tmp = o->strongref;
                ^~~~~~~~~
../deps/qt-4.8.0/darwin/x64/include/QtCore/qsharedpointer_impl.h:822:5: warning: 'register' storage class specifier is deprecated and incompatible with
      C++1z [-Wdeprecated-register]
    register X *ptr = static_cast<X *>(src.data()); // if you get an error in this line, the cast is invalid
    ^~~~~~~~~
../deps/qt-4.8.0/darwin/x64/include/QtCore/qsharedpointer_impl.h:834:5: warning: 'register' storage class specifier is deprecated and incompatible with
      C++1z [-Wdeprecated-register]
    register X *ptr = dynamic_cast<X *>(src.data()); // if you get an error in this line, the cast is invalid
    ^~~~~~~~~
../deps/qt-4.8.0/darwin/x64/include/QtCore/qsharedpointer_impl.h:846:5: warning: 'register' storage class specifier is deprecated and incompatible with
      C++1z [-Wdeprecated-register]
    register X *ptr = const_cast<X *>(src.data()); // if you get an error in this line, the cast is invalid
    ^~~~~~~~~
../deps/qt-4.8.0/darwin/x64/include/QtCore/qsharedpointer_impl.h:866:5: warning: 'register' storage class specifier is deprecated and incompatible with
      C++1z [-Wdeprecated-register]
    register X *ptr = qobject_cast<X *>(src.data());
    ^~~~~~~~~
In file included from ../src/qt.cc:37:
../src/QtGui/qwidget.h:64:34: error: expected class name
class QWidgetWrap : public node::ObjectWrap {
                                 ^
../src/QtGui/qwidget.h:73:42: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
  static v8::Handle<v8::Value> New(const v8::Arguments& args);
                                         ^~~~~~~~~~~~~
                                         v8::internal::Arguments
/Users/me/.node-gyp/11.4.0/include/node/v8.h:143:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/qt.cc:37:
../src/QtGui/qwidget.h:76:45: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
  static v8::Handle<v8::Value> Resize(const v8::Arguments& args);
                                            ^~~~~~~~~~~~~
                                            v8::internal::Arguments
/Users/me/.node-gyp/11.4.0/include/node/v8.h:143:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
7 warnings and 20 errors generated.
make: *** [Release/obj.target/qt/src/qt.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Darwin 15.6.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/me/Desktop/node_modules/node-qt
gyp ERR! node -v v11.4.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/Users/me/Desktop/package.json'
npm WARN Desktop No description
npm WARN Desktop No repository field.
npm WARN Desktop No README data
npm WARN Desktop No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      /Users/me/.npm/_logs/2018-12-19T03_59_11_755Z-debug.log```

这个项目都十二年前了


Option to apply vrt colormap to png

There is an example of how to convert it and apply it via pillow here. Happy to submit a PR if there is a generic approach that works.
Looks like one way to do it is make it an option on array_to_img and then return the vrt source from tile_band_worker and then aws.tile. Then add a color_table_to_palette helper function to utils. That way users that want to use the vrt color table can extract it and pass it to array_to_img?
I guess another option is to use rasterio's write_colormap but it looks like that would require writing the data out to vsimem and reading it back? Would that be better than applying it to the PNG directly?
(Also thanks for this repo :) I was struggling to get my own WarpedVRT code to work, then I found this)

👋 Hi @kriscarle, thanks for opening this issue.
So to keep everything as simple as possible we could:

add an option in array_to_img to apply a palette to a 1 band image (example).
add a utils.get_palette function that accept either a rasterio dataset (as in geop) or a color_palette name (local palettes shipped within rio-tiler)

btw, there are some work to do to fully support one band output image (e.g. add mask) : https://github.com/mapbox/rio-tiler/blob/f33930f4da0493c6941e5c3e617364eb9caca86a/rio_tiler/utils.py#L354-L355

Hi @vincentsarago I was able to get it working like this, using rasterio's built in support for writing colormaps and MemoryFile. The PIL palette doesn't support RGBA values, plus I think this example can easily be adapted to support multiple bands.
import rasterio
from rio_tiler import aws
from rasterio.io import MemoryFile

def tile(event, context):
    args = event['pathParameters']
    x = int(args['x'])
    y = int(args['y'])
    z = int(args['z'])

    bucket = 'my-bucket'
    key = 'data.vrt'
    tile = aws.tile(bucket, key, x, y, z, 1, 256)
    with rasterio.open('s3://{}/{}'.format(bucket, key)) as src:
      colormap = src.colormap(1)
      meta = src.meta
      meta['driver'] = 'PNG'
      meta['height'] = 256
      meta['width'] = 256

      with MemoryFile() as memfile:
        with memfile.open(**meta) as dataset:
          dataset.write(tile, indexes=1)
          dataset.write_colormap(1, colormap)
        memfile.seek(0)
        return memfile.read()

@kriscarle I'm not sure to follow 100%
I made this notebook to try to explain my though.
Basically your example does not imply any change in rio_tiler but it's more on the lambda handler side. What I think will be good is to add this in the documentation.

plus I think this example can easily be adapted to support multiple bands.

I'm not sure to understand the concept of applying color palette to multiple bands. I'll be interested to see any use case for that.

@vincentsarago
Yes, I ended up not needing to change rio-tiler, so it could just work as an example. Though it could still be a nice feature to automatically apply the color map from a VRT band if it is provided in the VRT.
I'm not entirely sure what I meant by multiple bands either. I think I meant that you can create tiles for multiple bands and then combine them in some way. Maybe for calculating NVDI on the fly?


Failed to load the native TensorFlow runtime: error when installing tensorflow. #10026 did not work, #10794 was abandoned

Please go to Stack Overflow for help and support:
https://stackoverflow.com/questions/tagged/tensorflow
If you open a GitHub issue, here is our policy:

It must be a bug or a feature request.
The form below must be filled out.
It shouldn't be a TensorBoard issue. Those go here.

Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.

System information

Linux Ubuntu 16.04:
TensorFlow installed from binary:
TensorFlow version 1.2.1:
Python version - have tried on both 2.7 and 3.6:
CUDA Version 8.0.61, Cudnn Verison 5.1:
GeForce GTX 950M:
import tensorflow as tf:

Describe the problem
I am trying to install GPU-supported version of tensorflow. Regardless of installation method or python version I use, I always get the message down below. Note that CPU version installs and runs without problem.
I have tried uninstalling packages/anaconda/pip and then installing them through ATP, but nothing seems to help.
Thanks beforehand!
Source code / logs

import tensorflow as tf
Traceback (most recent call last):
File "", line 1, in
File "/home/kpk227133/tensorflow/local/lib/python2.7/site-packages/tensorflow/init.py", line 24, in
from tensorflow.python import *
File "/home/kpk227133/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "/home/kpk227133/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 52, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/home/kpk227133/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "/home/kpk227133/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "/home/kpk227133/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
ImportError: /home/kpk227133/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so: undefined symbol: cuDevicePrimaryCtxRetain

Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

What do you see in your terminal if you type nvidia-smi?

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.66                 Driver Version: 384.66                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 950M    Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   39C    P5    N/A /  N/A |    210MiB /  4044MiB |     13%      Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|    0      1037    G   /usr/lib/xorg/Xorg                             162MiB |
|    0      1794    G   compiz                                          46MiB |
+-----------------------------------------------------------------------------+

This question is better asked on  StackOverflow since it is not a  bug or feature request. There is also a larger community that reads questions there. Thanks!


Allow user to select whether or not to apply variability multiplier

@PatrickBunn I need to fix up some tests, but this is functioning and allows you to set "apply variability multiplier" on Systems, and alerts the user if the system has changed (i.e. whether or not to apply the multiplier has changed) since the last time results were computed.


muhannad150

Environment (please complete the following information):

OS (e.g., Windows 10):
Extension version (e.g., 1.2.3):

Describe the bug:

Repro steps:

Expected behavior:

Additional context:

vs

Closing as incomplete. Please feel free to add more information if you have any and we can re-open the issue.


Some issue with the openers name

I get the following issue in the logs with version 1.2.2 on HB 1.3.8. Before my opener was called „Haustür“. Have tried to change to „Haustuer“ but issue persists. Bridge is found.
[12/21/2021, 1:59:58 AM] [Nuki] Nuki_Bridge_: set Last Updated from "Tue Dec 21 2021 01:59:37" to "Tue Dec 21 2021 02:00:36"
[12/21/2021, 1:59:58 AM] [Nuki] Nuki_Bridge_39DC10EB: warning: heartbeat error: RangeError: : invalid name
 at Opener.set name (/homebridge/node_modules/homebridge-nb/node_modules/homebridge-lib/lib/Delegate.js:108:13)
 at Opener.set name [as name] (/homebridge/node_modules/homebridge-nb/node_modules/homebridge-lib/lib/AccessoryDelegate.js:130:16)
 at new Delegate (/homebridge/node_modules/homebridge-nb/node_modules/homebridge-lib/lib/Delegate.js:38:15)
 at new AccessoryDelegate (/homebridge/node_modules/homebridge-nb/node_modules/homebridge-lib/lib/AccessoryDelegate.js:45:5)
 at new NbAccessory (/homebridge/node_modules/homebridge-nb/lib/NbAccessory.js:14:5)
 at new Opener (/homebridge/node_modules/homebridge-nb/lib/NbAccessory.js:357:5)
 at Bridge.addOpener (/homebridge/node_modules/homebridge-nb/lib/NbAccessory.js:214:24)
 at Bridge.heartbeat (/homebridge/node_modules/homebridge-nb/lib/NbAccessory.js:265:22)
 at processTicksAndRejections (internal/process/task_queues.js:95:5)

Looks like the bridge is reporting an empty name for the opener.  What’s the output of nb list?  Did you restart the bridge, after changing the opener name?

It's still using “Haustür” internally but interestingly the restart solved the issue. Thanks.
/homebridge # nb -H  -T  list
[
{
"deviceType": 2,
"firmwareVersion": "1.6.4",
"lastKnownState": {
"batteryCritical": false,
"mode": 2,
"state": 1,
"stateName": "online",
"timestamp": "2021-12-21T12:04:40+00:00"
},
"name": "Haustür",
"nukiId":
}
]
BR
crabman

On 21. Dec 2021, at 07:18, Erik Baauw @.***> wrote:
Looks like the bridge is reporting an empty name for the opener. What’s the output of nb list? Did you restart the bridge, after changing the opener name?
—
Reply to this email directly, view it on GitHub https://github.com/ebaauw/homebridge-nb/issues/47#issuecomment-998504826, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFHRQD6ST7IVFFLVCA57GYDUSAL2XANCNFSM5KO7FDBA.
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.

The bridge only refreshes some device info on reboot, like name or firmware version.  There's nothing I can do about this.


spelling/grammar

no, i will not

@all-contributors please add @Zamiell for code

@all-contributors please add @Zamiell for docs

@all-contributors please add @Zamiell for docs


Create default map

Created new .html page with a default map (files affected: map.html, map-style.css, map-script.js)
Added buttons linking to map.html and charts.html (files affected: index.html)
Fixed stylistic errors raised by linter.

@megankj


Install SSH on the node

Please can we add an ssh server to the windows box
The steps below are how ansible installs SSH, on windows, these require a relatively up to date server 2019 image, there is a KB that enables this as well but these steps should be enough to understand setting this up
Requires admin rights to install

name: Install OpenSSH
win_shell: Add-WindowsCapability -online -Name OpenSSH.Server~~~~<IP_ADDRESS>
become: yes
become_method: runas
become_user: SYSTEM
retries: 5
delay: 3
register: result
until: result is not failed

name: Set default SSH shell to Powershell
win_regedit:
path: HKLM:\SOFTWARE\OpenSSH
state: present
name: DefaultShell
data: '{{ systemdrive.stdout | trim }}\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'
type: string

name: Enable ssh login without a password
win_shell: Add-Content -Path "$env:ProgramData\ssh\sshd_config" -Value "PasswordAuthentication no`nPubkeyAuthentication yes"

name: Set SSH service startup mode to auto and ensure it is started
win_service:
name: sshd
start_mode: auto
state: started

this is fixed by #66


Update cli Dockerfile to use latest docker version

The problem with embedding the latest version of Docker into the CLI image is that it will also use the latest Docker API version by default, and thus fail when run with any older version of the Docker engine on the host machine.
AFAIK the version of Docker embedded in the image thus forms a minimum version requirement on the version of Docker that is running on the host machine. Shipping Docker 1.10  in the kontena/cli image should work with any version of Docker >= 1.10 running on the host machine.

I see...actually I was not sure if keeping the old version is intentional and this was actually kind of proposal/question :).
Anyway when using this image in our CI the docker login email argument is little bit annoying. We are using single image to building, pushing and deploying the image. Fortunately with gitlab-ci we can split the build phase (docker build/login/push) into separate step with different image (although it will not be possible to use kontena stack build).

Anyway when using this image in our CI the docker login email argument is little bit annoying (in latest version it's deprecated)

Can you explain this a bit more? I don't understand what you mean. The docker run kontena/cli kontena stack build is somehow misbehaving with the Docker 1.10 CLI, but it's fixed in the latest version of Docker? What is it that has changed?

kontena stack build should be fine. The issue is with docker login and it's email attribute. In version 1.10 it's required (and command fails with weird error btw info here). In latest version the command warns about deprecation of email attribute:
docker login -e<EMAIL_ADDRESS>Flag --email has been deprecated, will be removed in 1.14.

Closing because the kontena/cli Docker image needs to be pinned to some specific Docker version for compatibility reasons, and not pull in a different version when rebuilt with/without --no-cache.
We can consider upgrading it from 1.10.3 to some newer version if needed to fix issues, though... a GitHub issue explaining how the docker login --email is broken in the current version, and what Docker version it is fixed in would be helpful.


Publishing RPMs?

Similar to how the previous version had their RPMs published, will the new v2.x have its RPMs published here?
https://download.opensuse.org/repositories/home:/liberouter/CentOS_7/x86_64/
or maybe something like:
https://download.opensuse.org/repositories/home:/liberouter-v2/...

No, sorry, but we will not be building packages this way anymore. Generally, they should be available in the official repositories on Linux distributions but that will take some time and you can always build them yourself. That is, once the scripts are ready for all the projects, which should be by the end of this year latest.

@michalvasko - good to know. I assume once the RPMs are up on official Linux distros, it will be noted in the readme files. Until this happens, our team will most likely stick with the previous 1.x versions of netopeer2.


Remove extra telemetry sent when detecting refresh rate scale

What does this PR do?
Removes a piece of telemetry we're seeing a lot of at the moment.
Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] Make sure you discussed the feature or bugfix with the maintaining team in an Issue
[ ] Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

Codecov Report

Merging #1358 (788199f) into release/1.18.0 (4096fc0) will decrease coverage by 0.19%.
The diff coverage is n/a.

@@                Coverage Diff                 @@
##           release/1.18.0    #1358      +/-   ##
==================================================
- Coverage           81.99%   81.80%   -0.19%
==================================================
  Files                 362      362
  Lines               12903    12894       -9
  Branches             2164     2164
==================================================
- Hits                10579    10547      -32
- Misses               1678     1682       +4
- Partials              646      665      +19

Impacted Files
Coverage Δ

.../android/rum/internal/domain/scope/RumViewScope.kt
94.95% <ø> (+0.61%)
:arrow_up:

... and 13 files with indirect coverage changes


navbar only displays 3 links and refuses to close.

Describe your problem and - if possible - how to reproduce it
When visiting freecodecamp.org on my android zte,  with a firefox browser i encounter a problem with the nav bar,  fhere are onky 3 links.  What happened to the guide link,  youtube,  community,  etc.  Also the droodown refuses to close after clicking out of the drkldown are kr when i click the menh bar to close the dropdown
Add a Link to the page with the problem
Freecodecamp.org
Tell us about your browser and operating system

Browser Name: Firefox
Browser Version: current
Operating System: android

If possible, add a screenshot here

@JonDevOps, a new version of the site went live about two days ago. On the new site there's currently no Community drop down or map like the older one.
Is there another drop down that you're seeing and having problems closing? Could you take a screenshot?

To begin, when I click the menu button, the dropdown will open,  then when i reclick the menu button, the drop-down menu refuses to close. Also,  is there a way to find all the example.freecodecamp.org links?

@JonDevOps, that's a good question. I don't believe there's a way to find all of those links from the main page now. Maybe they'll be incorporated again in the future?
For now here are some of those links, just in case:

YouTube
Medium
Guide


Fixes issue #125 where this plugin is nested inside another publisher

This is a fix for notifications failing when the Slack publisher is nested within another post-build action such as a conditional action or a template.
Unless I'm missing something it seems unnecessary to have a separate listener for build events outside of the core Notifier implementation. This may simply have been here for legacy reasons, but it makes it difficult to identify which Publisher(s) to run.
I'm going to run a few more tests on this locally in case I'm missing something obvious and breaking anything, but would welcome any comments.

I'm highly interested in this PR. What can I do to get it merged quicker?

I'm very interested in this as well

Hi,
I'm also very interested in this. Could you please review and merge this branch? It would be awesome!

I'd also love to have this reviewed & merged....

Really wanting this to be available, when is 2.4 going to be released?


Change libvirt driver version info from stderr to stdout after new driver release.

As of now https://github.com/code-ready/crc/blob/master/pkg/crc/preflight/preflight_checks_linux.go#L223 we use stderr but since https://github.com/code-ready/machine-driver-libvirt/pull/5 merged so we need to update about version side info when have new driver binary released.

@praveenkumar when to handle the release and this modification?

This is done.


api-docs: Clean up feature level 233 and 230 documentation.

Updates the API changelog entries and changes notes for feature levels 233 and 230, which both are related to the onboarding steps (hotspots and one-time notices) updates.

Feature level 233 was originally documented in commit 83bd9955e3 and ac8af3d6de.
Feature level 230 was originally documented in commit 8d633cc36.

Screenshots and screen captures:

API changelog updates
Current documentation

Get events updates
Current documentation

Register queue updates
Current documentation - search for "onboarding" on page

Self-review checklist

[ ] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[ ] Explains differences from previous plans (e.g., issue description).
[ ] Highlights technical choices and bugs encountered.
[ ] Calls out remaining decisions and concerns.
[ ] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[ ] Each commit is a coherent idea.
[ ] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[ ] Visual appearance of the changes.
[ ] Responsiveness and internationalization.
[ ] Strings and tooltips.
[ ] End-to-end functionality of buttons, interactions and flows.
[ ] Corner cases, error conditions, and easily imagined bugs.

Merged, thanks @laurynmm!


Removing CallCompletionStatusInterceptor.

It was really helpful when we first started this project.  It's not used anymore, and doesn't seem to be helpful now.  It's getting in the way of some other things we need to do.

LGTM


[Feature] add hbase client options HBASE_OPERATION_TIMEOUT

Feature Description (功能描述)
Creating table failed caused by HBASE client operation timeout
 curl  -X POST -H "Content-Type: application/json" http://${url}/graphs/test -d \
'gremlin.graph=com.baidu.hugegraph.HugeFactory
backend=hbase
serializer=hbase
hbase.hosts=hadoop001,hadoop002,hadoop003
hbase.port=2181
store=test'

Exception info
{
    "exception":"class com.baidu.hugegraph.backend.BackendException",
    "message":"Failed to create table 's_ui' for 's' store",
    "cause":"java.io.InterruptedIOException: Interrupt while waiting on Operation: CREATE, Table Name: talent_test:s_ui, procId: 1649"
}

it was caused by restserver.request_timeout


SSL

Hey mate
First thanks for this, it has helped a lot.
Question
Can you support SSL ?
I tried to pass the env variable
-e USE_SSL=1
but it seems it is not working.
can you take a look ?
Really thanks

What do you mean by "support SSL", and in what way is it "not working"? Are you trying to do something that works in normal localstack, but behaves differently in localstack-persist with a comparable version?

Hey Mate,
Sorry, I wasn't clear.
Yes.
Basically I want to have the localstack running with your image using the variable USE_SSL=1 to use https, ex  https://localhost:4566
When I use your image and add the variable USE_SSL=1 it isn't working.
When I use the localstack image itself, with this variable it works.

It is working, it was my mistake, sorry.


Turn this project into a template

This will allow users to create new projects they "own", instead of forking the repository.
For this, go to "Settings" and look for a checkmark "Template repository" close to the top.

Done! (I think!)


not coloured as operator in context when it isn't

           read config-file
               at end
                   move 1 to ws-eof
               not at end
                   perform
                       set cell-type of cells(first-number, second-number)
                         to CELL-TYPE-BOMB
                   end-perform
           end-read

The not in not at end is classified as operator. Technically it isn't.

I have an issue where not and or isn't coloured at all (extension version 3.7.4 from marketplace):

@spgennard do we need a new issue for this?

Thank you for the response.
I've added the setting to my user settings. Nothing happened but vscode (current insider-version) noted that "editor.tokenColorCustomizations" always applies to current design. Removed the theme name and the operators are now highlighted.
The following user setting did it:
       "editor.tokenColorCustomizations": {
            "textMateRules": [
                {
                    "scope": "keyword.operator",
                    "settings": {
                        "foreground": "#FF0000"
                    }
                }
            ]
       }

I now have to find out if I can specify "use the same color that if uses"...
As I'm using the default design "dark+" I assume others will have the same "issue".
Can I suggest to add a note/reference to this issue in the README (we could create a new one to link to or directly include in the README)?

The dark+ theme (for some reason), makes keyword.operators white.
It does:
{
"scope": "keyword.operator",
"settings": {
"foreground": "#d4d4d4"
}
},
Using the value: #569cd6 should help.
Yes, I will look at doing something in the README.

Yes, I will look at doing something in the README.

Not done yet, is it? I suggest to reopen until the README was adjusted (or just adjust the README ;-)

This is a different issue, so feel free to raise a new issue and propose a README change.
Or just wait until I get a chance to do it.


PackagesNotFoundError: The following packages are not available from current channels:    - gxx=12   - gcc=12

The requested packages are for an Linux environment.

Hi, on Windows, there is no need to perform this step. You need a Microsoft C++ build tools v14.0 or greater instead.

We are trying to supplement docs about how to run on Windows. Hope you guys to help to improve this.

We are trying to supplement docs about how to run on Windows. Hope you guys to help to improve this.

I already did a youtube tutorial for Windows. Still works fine.
No need of poetry, conda, etc or any complex setup


Rename all occurance of CeresDB into HoraeDB

Let's search and replace it globally where it should be HoraeDB now.

We won't change the GitHub org name "CeresDB" now. It will be done once we transfer the repo.

Ditto for the docs site ceresdb.github.io/docs. We will change it once we transfer the repo.

[ ] The first step should be rename ceresdbproto to horaedbproto as it's a root dependency.
[ ]

被京东收购了？

@tematou This is a coincident name conflict while the post you refer to should be years ago.
You can take a look at this proposal that HoraeDB (this project) is going to enter the ASF incubator.
I'll hide your comment as Off Topic and Resolved.

Most of the tasks are done. Closing...


Armor stands griefable.

Hello, so my issue is that people can take armor from the armor stands. With shift right click. But it even says you dont have the permission. On false is interact inventory and interact-entity-secondary, debug https://griefprevention.github.io/debug/?LPJDwQDniW

Okay so new one, claim owner debug who cant take the armor https://griefprevention.github.io/debug/?Wx5Z6fHmO2
and normal player without trust or anything who can take the armor.
https://griefprevention.github.io/debug/?9Q6Dr3fzzS
There is no difference.


Fix  #212 🐛 [Bug report]: XML Sitemap is not linked in robots.txt file and other SEO issues

First thing, PLEASE READ THIS: ReactPlay Code Review Checklist

Description
I worked on adding the XML sitemap file and its reference to the robots.txt file. fixed minor SEO issues too.
Fixes #212
Type of change
Please delete options that are not relevant.

[x] Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Checklist:

[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

Review Ready

@all-contributors please add @Sachin-chaurasiya  for Code


Replace top text in the button with an arrow

🎇 Description

I would like to replace the top icon  with the arrow icon so that it will be more understandable for the user to use this particular feature

🖼 Screenshots

Hey, I would like to work on this issue. :)

I'm sorry, I don't want to make these changes. Kindly try to find other bugs/issues. For example: Try ti fix sign-in/sign-up form.


express should not be in dev dependencies

script will run directly on services such as heroku if we move express dependency. otherwise it fails.

Bautiful nice


Adding STM32F103 Port. Clean Code WB Port.

STM32F1 Port tested in STM32F103C8T6 (blue pill).

Thanks ! Added.


Setting per method headers doesn't work

Description
Hello,
I started to use openapi-ts with axios client, and I want to set globally the headers for each method. When i use directly axios instance this works fine, but with openapi axios wrapper the headers are set wrongly, see image bellow:

thanks for help
Reproducible example or configuration
OpenAPI specification (optional)
No response
System information (optional)
No response

Hi @ionMoraru!

What's the expected result here?
Is this a regression or has it never worked as you expect?

hi @mrlubos,

when i use the axios library without openapi-ts, setting the patch header result in

with openapi-ts the content-type is set

i expect that axios work in the same way when using openapi-ts wrapper.

thank you @mrlubos now it's work as expected


Update Python requirements

@alykat: I tested this new set of requirements against a few of the core dailygraphics commands, and didn't experience any issues. It's worth testing yourself, and kick it around on a new graphic. I'd probably recommend creating a new Python virtual environment to test this, so that if it's finicky you can undo the changes.

For all libraries I upgraded to the newest bugfix version (assuming semver)
I upgraded Fabric to the newest minor version to remove a dependency on pycrypto, which is insecure and is also no longer supported (since 2016)
I upgraded requests to the newest major version to remove a security bug
A few of the libraries in this file were dependencies-of-dependencies, and I have removed them; this is technically proper practice for requirements.txt if the repo also utilizes a setup.py, but in our case there's more of a risk of versions becoming improperly pinned (eg)

Once this PR is merged in, then I'll enable Snyk "Fail if the repo has any vulnerabilities (high-severity)" for this repo, thereafter warning on PRs if new high-severity issues exist (or develop!) in Python dependencies.

 Won't overwrite existing lextab module
WARNING: yacc table file version is out of date
WARNING: Token 'IMPORT' defined, but not used
WARNING: Token 'BLOCK_COMMENT' defined, but not used
WARNING: Token 'ENUM' defined, but not used
WARNING: Token 'EXTENDS' defined, but not used
WARNING: Token 'LINE_COMMENT' defined, but not used
WARNING: Token 'LINE_TERMINATOR' defined, but not used
WARNING: Token 'CONST' defined, but not used
WARNING: Token 'EXPORT' defined, but not used
WARNING: Token 'CLASS' defined, but not used
WARNING: Token 'SUPER' defined, but not used
WARNING: There are 10 unused tokens

I ran into this during GDPR, too. I was able to fix the error by bumping slimit and specifying a different version of ply (a slimit dependency).
slimit==0.8.1
ply==3.4


Create Organizations Module

create organizations module
respective trainings sets/areas should then be linked to an organization
long term goal: after an admin logged in, he/she can create their own trainings sets (which are yet again only linked to that admin)

Instead of creating a new module, we may just add an user property

Instead of creating a new module, we may just add an user property


Use alpine and optimize image build steps

This results in a far smaller docker image:
REPOSITORY                                              TAG                                        IMAGE ID            CREATED             SIZE
ptlange/gate                                            alpine                                     0dd5e93e68b9        9 minutes ago       247MB
ptlange/gate                                            latest                                     1dd55e27a242        28 minutes ago      676MB

LGTM!!

@vjdhama merging this then.
@pieterlange thanks.


Add Regional Tiered Cache API support

Description
Closes https://github.com/cloudflare/cloudflare-go/issues/1334
Has your change been tested?
Tests added in: regional_tiered_cache_test.go
Types of changes
What sort of change does your code introduce/modify?

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

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.
[ ] This change is using publicly documented in cloudflare/api-schemas
and relies on stable APIs.

Note: contrary to the docs on: https://developers.cloudflare.com/api/operations/zone-cache-settings-change-regional-tiered-cache-setting, this API does in-fact return result.value:

❯ curl https://api.cloudflare.com/client/v4/zones/<REDACTED>/cache/regional_tiered_cache | jq
{
  "result": {
    "editable": true,
    "id": "tc_regional",
    "value": "off"
  },
  "success": true,
  "errors": [],
  "messages": []
}

Note: contrary to the docs on: https://developers.cloudflare.com/api/operations/zone-cache-settings-change-regional-tiered-cache-setting, this API does in-fact return result.value:

thanks - i've confirmed internally this is just a byproduct of the rendering of the example.

Codecov Report

Merging #1336 (96ea409) into master (b9ac804) will increase coverage by 0.08%.
The diff coverage is 59.10%.

@@            Coverage Diff             @@
##           master    #1336      +/-   ##
==========================================
+ Coverage   48.33%   48.42%   +0.08%
==========================================
  Files         133      134       +1
  Lines       13023    13099      +76
==========================================
+ Hits         6295     6343      +48
- Misses       5201     5218      +17
- Partials     1527     1538      +11

Impacted Files
Coverage Δ

regional_tiered_cache.go
43.75% <43.75%> (ø)

logpush.go
51.81% <46.15%> (-0.30%)
:arrow_down:

rulesets.go
30.03% <52.17%> (-4.61%)
:arrow_down:

pages_deployment.go
38.88% <61.76%> (+4.64%)
:arrow_up:

pages_project.go
58.22% <90.00%> (+7.40%)
:arrow_up:

access_policy.go
70.27% <100.00%> (ø)

pagination.go
100.00% <100.00%> (+28.57%)
:arrow_up:

much appreciated @joshuamsager 👏


wandb.watch does not work with torch/jit/ScriptModules

Hi, first of all, I would like to say huge thank you for a great tool, I really like wandb and it helps me a lot.
Here is a problem, which I get while working with wandb

Weights and Biases version: wandb, version 0.8.12
Python version: Python 3.6.1
Operating System: Darwin

Description
wandb.watch does not work with any models, which contains layer with ScriptModules
What I Did
I am working with detection module from torchvision https://github.com/pytorch/vision/tree/master/references/detection
Here is a small example of a problem:
If you run this code
import wandb
from torchvision.models.detection import fasterrcnn_resnet50_fpn
wandb.init(project='common')
model = fasterrcnn_resnet50_fpn()
wandb.watch(model)

you will get this error
wandb: Started W&B process version 0.8.12 with PID 38398
wandb: Local directory: wandb/run-20190928_163622-ngu052su
wandb: Syncing run curious-deluge-85: https://app.wandb.ai/truskovskiyk/common/runs/ngu052su
wandb: Run `wandb off` to turn off syncing.

Traceback (most recent call last):
  File "bug_rep.py", line 8, in <module>
    wandb.watch(model)
  File "/Users/kyryl/Projects/Kyryl/common/client/wandb/__init__.py", line 148, in watch
    model, criterion, graph_idx=idx)
  File "/Users/kyryl/Projects/Kyryl/common/client/wandb/wandb_torch.py", line 227, in hook_torch
    graph.hook_torch_modules(model, criterion, graph_idx=graph_idx)
  File "/Users/kyryl/Projects/Kyryl/common/client/wandb/wandb_torch.py", line 291, in hook_torch_modules
    self.hook_torch_modules(sub_module, prefix=name)
  File "/Users/kyryl/Projects/Kyryl/common/client/wandb/wandb_torch.py", line 291, in hook_torch_modules
    self.hook_torch_modules(sub_module, prefix=name)
  File "/Users/kyryl/Projects/Kyryl/common/client/wandb/wandb_torch.py", line 326, in hook_torch_modules
    sub_module.register_forward_hook(self.create_forward_hook(name, modules)))
  File "/Users/kyryl/vn/common/lib/python3.6/site-packages/torch/jit/__init__.py", line 1834, in fail
    raise RuntimeError(name + " is not supported on ScriptModules")
RuntimeError: register_forward_hook is not supported on ScriptM
wandb: Waiting for W&B process to finish, PID 38398
odules
wandb: Program failed with code 1. Press ctrl-c to abort syncing.
wandb: Process crashed early, not syncing files

The problem here is this module https://github.com/pytorch/vision/blob/master/torchvision/ops/misc.py#L135
Here is some toy example of how to reproduce
import wandb
import torch

class MyModule(torch.nn.Module):
    def __init__(self):
        super().__init__()
        self.weight = torch.nn.Parameter(torch.rand(2, 2))
        self.linear = torch.nn.Linear(2, 2)

    def forward(self, x):
        output = self.weight.mv(x)
        output = self.linear(output)
        return output

module = MyModule()
scripted_module = torch.jit.script(MyModule())

wandb.init(project='common')
wandb.watch(scripted_module)

ouput
wandb: Started W&B process version 0.8.12 with PID 38764
wandb: Local directory: wandb/run-20190928_164606-sdgo358a
wandb: Syncing run wobbly-crypt-89: https://app.wandb.ai/truskovskiyk/common/runs/sdgo358a
wandb: Run `wandb off` to turn off syncing.

Traceback (most recent call last):
  File "bug_rep.py", line 34, in <module>
    wandb.watch(scripted_module)

wandb: Waiting for W&B process to finish, PID 38764
  File "/Users/kyryl/Projects/Kyryl/common/client/wandb/__init__.py", line 148, in watch
    model, criterion, graph_idx=idx)
  File "/Users/kyryl/Projects/Kyryl/common/client/wandb/wandb_torch.py", line 227, in hook_torch
    graph.hook_torch_modules(model, criterion, graph_idx=graph_idx)
  File "/Users/kyryl/Projects/Kyryl/common/client/wandb/wandb_torch.py", line 326, in hook_torch_modules
    sub_module.register_forward_hook(self.create_forward_hook(name, modules)))
  File "/Users/kyryl/vn/common/lib/python3.6/site-packages/torch/jit/__init__.py", line 1834, in fail
    raise RuntimeError(name + " is not supported on ScriptModules")
RuntimeError: register_forward_hook is not supported on ScriptModules
wandb: Program failed with code 1. Press ctrl-c to abort syncing.
wandb: Process crashed early, not syncing files

Thanks for reporting this! We'll look at it in our weekly meeting.

@cvphelps do you an update on this? I’m running into the same problem.

I aslo have this problem. Wish it was working. Great tool.

I have a similar issue: importing torch breaks wandb. Simple code such as
import torch
import wandb
if name == 'main':
wandb.init(project="project", dir="C:/Users/andre/Documents/wandb/")
generates the error:
File "C:\Users\andre\Anaconda3\lib\site-packages\wandb_init_.py", line 1125, in init
init_headless(run)
File "C:\Users\andre\Anaconda3\lib\site-packages\wandb_init.py", line 312, in _init_headless
"W&B process failed to launch, see: {}".format(path))
wandb.run_manager.LaunchError: W&B process failed to launch, see: wandb\debug.log

@andrecavalcante this is a Windows related issue.  We have a new version of the client library optimized for Windows here:  https://github.com/wandb/client-ng You can install with pip install wandb-ng

Thanks for reporting this! We'll look at it in our weekly meeting.

Hello,
Could you tell me if the problem has been solved?

Hi, I am now using the client wandb-ng on windows. For this client, there is no problem. However I don't know if the original "wandb" client still breaks on windows when using Pytorch.

@THSWind you can get the latest RC by running pip install wandb -U --pre

@vanpelt  okay, I'll try it, thank you very much

Hey @THSWind
Is the issue resolved?
We would like to close stale tickets. :smile:

Hi, @ariG23498 the error I reported above does occur for me anymore.

I get this Error too, on POP OS 20.10

Hey folks,
We do not support watch with models with ScriptModules.
We are looking forward to add support for this in the later runs.
Will update the thread as soon as this is supported.

hi, I have the same problem, I am working with BART (which is a transformer model ), could you please tell me what is the solution? noting worked for me
thank you

@mehraveh2016 you'll need to set the environment variable WANDB_WATCH=false to disable gradient logging until we're able to support custom Jit models.

Hey all, closing the loop here. We worked on this issue last year. FYI, this PR doesn't fix the issue for people who want to track weights, but it helps for users who want to track just gradients.
However, one workaround for this issue is to do the tracing/scripting before wandb.watch basically:
nn = nn.Linear(10, 2)
gg = torch.jit.script(nn)
wandb.watch(nn, log="all")

Or
class Net(nn.Module):
        def __init__(self):
            super().__init__()
            self.layer_1 = nn.Linear(10, 2)

        def forward(self, x):
            return self.layer_1(x)

    net = torch.jit.script(Net())
    run.watch(net, log_graph=True)

would work because we first script and then add the hooks. torch.jit  tracing doesn't support lambda functions this is the source for the original error… when we call these line. torch.jit can’t resolve this hook see this part of the code. It can’t find def hence it throws the above error.


Merge main to live again 11/17/23

(description generated by AI)
This pull request adds new YAML files and updates the index.yml file in the community-content/learn-with/ directory to showcase experts and provide resources for learning. The most important changes include adding a new YAML file for Bunmi Akinremi's profile, updating the index.yml file to include a hero-product component and a speaker-profile-cards component, and adding a new YAML file for the example profile.
Main content changes:

community-content/learn-with/bunmi-akinremi.yml: Added a new YAML file for Bunmi Akinremi's profile, including a profile header, social links, and a resources grid card section with links to machine learning resources.
community-content/learn-with/index.yml: Added a new section to the index.yml file, including a hero-product component and a speaker-profile-cards component to showcase experts. Also added information about Bunmi Akinremi with a link to her profile.

Additional content changes:

community-content/learn-with/example.yml: Added a new YAML file example.yml containing the profile information and resource links for Carly Revier, a Technical Program Manager at Microsoft.

#sign-off


[output] Backoff support in phantom output

to: @ryandeivert @jacknagz
cc: @airbnb/streamalert-maintainers
size: small
Background
Backoff support allows to retry requests when something goes wrong.
Changes

Added support for backoff in phantom output.
Added new test to keep the 100% code coverage.

Testing
$ rm .coverage && ./tests/scripts/unit_tests.sh
...
TOTAL                                                    2809    103    96%
----------------------------------------------------------------------
Ran 491 tests in 9.066s

OK

$ ./tests/scripts/pylint.sh

--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

$ python manage.py lambda test --processor rule all
...
StreamAlertCLI [INFO]: (59/59) Successful Tests
StreamAlertCLI [INFO]: (93/93) Alert Tests Passed
StreamAlertCLI [INFO]: Completed

Coverage increased (+0.01%) to 95.35% when pulling a3f9097b234ab83abf15ff74fc9017c3e89b5bfc on javier-streamalert-phantom-backoff into f856bd8ccb2a40507cab93ea4713c67fea684c16 on master.

Implements this https://github.com/airbnb/streamalert/issues/363


Introduce plugins (suggestion)

There's idea to make Tempest lib be extendable by writing own, custom logic - aka plugins. Plan is to let anyone write own, reusable piece of code that could be later easily connected with any Tempest Discord Bot.
It will require some changes to current rest handler & client but once done - you'll have access to all client properties and incoming interaction events.
Example of how it could look like:
type Plugin struct {
  Name string
  // Every plugin can expose whatever values they like for public use.
  // For example various statistics from their work.
  // I don't think it can be well typed so it'll have to stay "any".
  Values map[string]any
  OnBeforeCommandInteraction func(ctx CommandInteraction) bool // Return `true` to stop execution logic
  OnBeforeComponentInteraction func(ctx ComponentInteraction) bool
  OnBeforeModalInteraction func(ctx ModalInteraction) bool
  OnAfterCommandInteraction func(ctx CommandInteraction) bool
  OnAfterComponentInteraction func(ctx ComponentInteraction) bool
  OnAfterModalInteraction func(ctx ModalInteraction) bool
}

I would like to hear your opinions about it and suggestions how to best implement it.

PS: About execution logic. Every time client receives new interaction event - it'll fire "OnBefore" associated function, then depending on result it may stop or move to their regular handler. For example if we define OnBeforeCommandInteraction function and it'll return true - this command will never be realized, bot won't execute that command. All "OnAfter" callbacks will fire after main logic, idea for them is that you can place some cleaning or syncing logic there.

Scrapped idea. Instead I've just added pre & post hook handlers for commands + added interfaces to customize used http server & mux.


How to use Pango or CairoText?

I'm using:

Linux Mint 20 (updated)
Python 3.8.5
manim 0.1.1

I'm trying to reproduce this example from Documentation (saved in test.py):
from manim import *

class Example1Text(Scene):
    def construct(self):
        text = Text('Hello world').scale(3)
        self.add(text)

Running manim test.py I got:

Since I don't know how to work with Pango, I tried CairoText as suggested and I got:

As said in the warning, I tried to pass a font using font='Ubuntu' and I got:

So, no info nor warning about fonts but no movie was produced. I'm not able to follow the red lines as shown in the output above.
Any help is appreciated.
Regards.

I've just discovered that the missing self.wait() is causing the problem. Adding it as last line solves the problem.

I think wrong repo?

Please open an issue in ManimCommunity/manim if you are using the community edition.


Added example of using aliases to Columnar_Data tutorial

Addresses https://github.com/ioam/holoviews/issues/1001, providing an example and explanation of using dimension aliases with a real dataset.

Ready for review, I've had to rebuild the test data so subsequent PRs will have to be rebased before their tests will pass.

Looks good, thanks!

Thanks for the fix!

Looks good to me too. Happy to merge when the tests pass.

Tests are green. Merging.


04/17/2018 17:57 : Create Pull Request for branch prTesting_2018041717 -> master

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestCon.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


datasette.urls.static_plugins(...) method

Follow-on from #904. For constructing URLs like this:
/-/static-plugins/NAME_OF_PLUGIN_PACKAGE/yourfile.js

Should be documented on https://docs.datasette.io/en/latest/writing_plugins.html#static-assets and https://docs.datasette.io/en/latest/internals.html#datasette-urls

Also refs #1023

How does /-/static relate to current guidance docs around static regarding the --static option and metadata formulations such as "extra_js_urls": [ "/static/app.js"] (I've not managed to get this to work in a Jupyter server proxied set up; the datasette / jupyter server proxy repo may provide a useful test example, eg via MyBinder, for folk to crib from?)

That's a good question - I hadn't considered that. I'm going to open a new issue to have extra_js_urls respect the base_url setting, since the static files will be served from a different location.

Documentation here: https://docs.datasette.io/en/latest/internals.html#datasette-urls

From the docs, I note:
datasette.urls.instance()
Returns the URL to the Datasette instance root page. This is usually "/"

What about the proxy case? Eg if I am using jupyter-server-proxy on a MyBinder or local Jupyter notebook server site, https://example.com:PORT/weirdpath/datasette, what does datasette.urls.instance() refer to?

[ ] https://example.com:PORT/weirdpath/datasette
[ ] https://example.com:PORT/weirdpath/
[ ] https://example.com:PORT/
[ ] https://example.com
[ ] something else?


Online Login 1.1.5

After requesting to re-send the password, and get a temporary password on the email, I used a temporary password to login but failed
And I do not see the password change button

I just uploaded the fix.  What should happen is that when you put in the temp password a new screen pops up to change and confirm your new password.


Fix incorrect flag for start command

Summary
What kind of change does this PR introduce? (check at least one)

[x] Docs

Does this PR introduce a breaking change? (check one)

[x] No

If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:

[x] When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)

You have tested in the following browsers: (Providing a detailed version will be better.)
N/A

Hello, @DanielGibbsNZ. Thanks again for your contribution 😃


feat: fix response data assignment error

Fix: https://github.com/casdoor/casdoor/pull/2111

Well done! Thanks


error by define 'ELPP_THREAD_SAFE'

As shown in the picture ,if I  '#define ELPP_THREAD_SAFE', it will be error In my project ,  If I use wrong?

What does the error message say?

I have already translated into English

The first compiler error is
error C2065: 'INTMAX_MAX : undeclared identifier

at line 122 in file "ratio", doesn't seem to have anything to do with easylogging++...

but if not add "#define ELPP_THREAD_SAFE", there will be no errors


feat: @[rpc] attribute

Functions can now be marked with the @[rpc] attribute, which
registers the function as a user-made RpcProcedure that can be used to
communicate with the code editor and infoview.

Since attribute names are not namespaced, should this have a less ambiguous name that more explicitly ties it to the language server?

@[rpcMethod] or maybe @[serverRpcMethod]?

serverRpcMethod sounds good to me! I guess we won't have to type it all that often.