shadcn-ui: command not found

Config File
{
  "hasSrc": false,
  "packages": [
    "drizzle",
    "lucia",
    "resend",
    "shadcn-ui"
  ],
  "preferredPackageManager": "yarn",
  "t3": false,
  "alias": "@",
  "analytics": true,
  "rootPath": "",
  "orm": "drizzle",
  "auth": "lucia",
  "componentLib": "shadcn-ui",
  "provider": "node-postgres",
  "driver": "pg"
}

steps to reproduce
kirimase init

██╗  ██╗██╗██████╗ ██╗███╗   ███╗ █████╗ ███████╗███████╗
██║ ██╔╝██║██╔══██╗██║████╗ ████║██╔══██╗██╔════╝██╔════╝
█████╔╝ ██║██████╔╝██║██╔████╔██║███████║███████╗█████╗
██╔═██╗ ██║██╔══██╗██║██║╚██╔╝██║██╔══██║╚════██║██╔══╝
██║  ██╗██║██║  ██║██║██║ ╚═╝ ██║██║  ██║███████║███████╗
╚═╝  ╚═╝╚═╝╚═╝  ╚═╝╚═╝╚═╝     ╚═╝╚═╝  ╚═╝╚══════╝╚══════╝

? Please pick your preferred package manager Yarn
◐ Checking project for existing packages...                                                                     16:19:29
✔ Successfully searched project and found no additional packages.                                              16:19:29

? Select a component library to use: Shadcn UI (with next-themes)
? Select an ORM to use: Drizzle
? Please choose your DB type Postgres
? Please choose your DB Provider Neon
? Select an authentication package to use: Lucia
? Select any miscellaneous packages to add: Resend
⠋ undefined
✔ Configuration complete
ℹ Installing Dependencies                                                                                16:20:32
! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing<EMAIL_ADDRESS>! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager

➤ YN0000: · Yarn 4.3.1
➤ YN0000: ┌ Resolution step
➤ YN0085: │ + @lucia-auth/adapter-drizzle@npm:1.1.0, @neondatabase/serverless@npm:0.9.5, and 539 more.
➤ YN0000: └ Completed in 3s 725ms
➤ YN0000: ┌ Post-resolution validation
➤ YN0086: │ Some peer dependencies are incorrectly met by dependencies; run yarn explain peer-requirements for details.
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0013: │ 70 packages were added to the project (+ 261.31 MiB).
➤ YN0000: └ Completed in 4s 433ms
➤ YN0000: ┌ Link step
➤ YN0031: │ One or more node_modules have been detected and will be removed. This operation may take some time.
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0000: └ Completed in 3s 579ms
➤ YN0000: · Done with warnings in 11s 850ms
➤ YN0000: · Yarn 4.3.1
➤ YN0000: ┌ Resolution step
➤ YN0085: │ + @types/pg@npm:8.11.10, dotenv@npm:16.4.5, drizzle-kit@npm:0.24.2, pg@npm:8.13.0, and 91 more.
➤ YN0000: └ Completed in 0s 568ms
➤ YN0000: ┌ Post-resolution validation
➤ YN0086: │ Some peer dependencies are incorrectly met by dependencies; run yarn explain peer-requirements for details.
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0013: │ 12 packages were added to the project (+ 16.97 MiB).
➤ YN0000: └ Completed in 0s 768ms
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0007: │ esbuild@npm:0.18.20 must be built because it never has been before or the last one failed
➤ YN0007: │ esbuild@npm:0.19.12 must be built because it never has been before or the last one failed
➤ YN0007: │ esbuild@npm:0.23.1 must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 3s 345ms
➤ YN0000: · Done with warnings in 4s 790ms
ℹ Installing ShadcnUI Components                                                                               16:20:53
Need to install the following packages:
<EMAIL_ADDRESS>Ok to proceed? (y)

sh: shadcn-ui: command not found

[16:23:20]  ERROR  Failed to install components: Command failed with exit code 127: npx shadcn-ui@latest add button sonner avatar input label dropdown-menu card

 ╭──────────────────────────────────────────────────────────────────────────────────────────────╮
 │                                                                                │
 │  🚀 Thanks for using Kirimase to kickstart your Next.js app!                                 │
 │                                                                                │
 │  The following packages are now installed and configured:                                    │
 │  - ORM: Drizzle (using neon)                                                                 │
 │  - Authentication: Lucia                                                                     │
 │  - Email: Resend                                                                             │
 │  - Component Library: ShadcnUI                                                               │
 │                                                                                │
 │  [installed and configured in just 168.453 seconds]                                          │
 │                                                                                │
 │  Next Steps                                                                                │
 │  1. Add Environment Variables to your .env                                                   │
 │  2. Run yarn run db:generate                                                                 │
 │  3. Run yarn run db:push                                                                     │
 │  4. Run yarn run dev                                                                         │
 │  5. Open http://localhost:3000 in your browser                                               │
 │  6. Build something awesome!                                                                 │
 │                                                                                │
 │  Notes                                                                                │
 │  - If you have any issues, please open an issue on GitHub                                    │
 │    (https://github.com/nicoalbanese/kirimase/issues)                                         │
 │                                                                                │
 │  Hint: use kirimase generate` to quickly scaffold entire entities for your application       │
 │                                                                                │
 ╰──────────────────────────────────────────────────────────────────────────────────────────────╯

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
 - OS: [e.g. iOS]
 - Browser [e.g. chrome, safari]
 - Version [e.g. 22]

**Additional context**
Add any other context about the problem here.

hey! make sure you're using kirimase@latest - this should be fixed with version 0.0.60

@nicoalbanese
thank you,
I ran npm install -g kirimase as per https://kirimase.dev/getting-started about an hour ago, and it pulled 0.0.59.
I just tried what you suggested:

changed 90 packages in 6s

31 packages are looking for funding
  run `npm fund` for details
kirimase --version
0.0.59

if I do:
npx kirimase@latest --version

if still gives me .59 .. somehow:
npx kirimase@latest --version
Need to install the following packages:
<EMAIL_ADDRESS>Ok to proceed? (y)

0.0.59

^ any idea why it is saying it will install 0.0.60 but --version returns .59 🤷

skill issue on my end lol. try again now should be 0.0.62!

haha all good.
Can confirm, the version is resolved for both methods.
npx kirimase@latest --version
Need to install the following packages:
<EMAIL_ADDRESS>Ok to proceed? (y)

0.0.62

npm install -g kirimase@latest && kirimase --version

changed 90 packages in 4s

31 packages are looking for funding
  run `npm fund` for details
0.0.62

Can confirm, 0.0.62 solves the issue, thank you <3


STREAMS-532: ids_only=false for friends/followers

ids_only=false for friends/followers now works
https://issues.apache.org/jira/browse/STREAMS-532

This looks good.  I'm on the road and can't test.
Assuming it does what you expect it to do, lgtm. +1


⚠ Bofrost.be has degraded performance

In a74783d, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1316 ms

Resolved: Bofrost.be performance has improved in 0629ca0 after 22 minutes.


The cookie bar doesn't want to disappear definitely when I click on the OK button

I have the same problem in production and development environment. When I click on the cookies_eu button "OK", the cookie bar disappears as expected. But if I go to another page of my website, sometimes the cookie bar appears again. Where is the problem ? I use Ruby 2.6.5 and Rails <IP_ADDRESS>

Same issue (ruby 2.6.6)

I use Ruby 2.6.6 now, same issue.

Hello community,
i had the same problem, but i finally found a easy solution here:
https://discuss.rubyonrails.org/t/js-cookie/73808
terminal:
yarn add js-cookie
app/javascript/packs/application.js
window.Cookies = require("js-cookie")

@frikkl it doesnt work for me tho ... I think the js-cookie is the completely different thing from cookies-eu

Sorry guys, but I just can't reproduce it. Can someone pls share me a boilerplate where I can reproduce it? I'm now testing it on Rails 5 and 6, works fine :(

Same issue. I just checked the browser console and found some error there.
Uncaught TypeError: Turbolinks.clearCache is not a function

It seems you have a problem with turbolinks, not cookie bar. Can you share a code where you use .clearCache function ?

I just integrated the gem. No external js is added for same.
Turbolinks.clearCache(), its already defined in gem's javascript file.
https://github.com/infinum/cookies_eu/commit/f497dd74853cd67dc9f4285132613020e5c6d954#diff-8c3d240d047cd715dd245b524045d31bf6ec42867d418d145da6f471c8bfaa28.
Any suggestion to fix this, will be really helpful!
Thanks.

Do you use turbolinks in you Rails app ? What rails version do you have ?

I am using rails 4.2.6. Yes,Turbolinks used in my application.


For #312: Added test coverage limits to project.

For #312: Added test coverage limits to project:

added jacoco plugin to pom.xml
configure jacoco to run on jacoco profile
added coverage limits to the project. As the project now fails when the code coverage is not meet I had to leave some of them below the suggested coverage (0.85)

Pull Request Test Coverage Report for Build 619

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.05%) to 90.919%

Files with Coverage Reduction
New Missed Lines
%

src/main/java/com/amihaiemil/docker/UserAgentRequestHeader.java
1
80.0%

Totals

Change from base Build 618:
-0.05%

Covered Lines:
871

Relevant Lines:
958

💛  - Coveralls

@paulodamaso thanks, looks good!

Job gh:amihaiemil/docker-java-api#327 is not assigned, can't get performer


Using the latest commit(09c6005), Emacs will show error message when starting

When updated to the latest commit(09c6005), Emacs says the following message in Message buffer when staring:
File mode specification error: (invalid-slot-name #<jsonrpc-process-connection jsonrpc-process-connection-156e7b60704c> :events-buffer-config)
down-list: Invalid slot name: "#<jsonrpc-process-connection jsonrpc-process-connection-156e7b7af88e>", :events-buffer-config
Quit
File mode specification error: (invalid-slot-name #<jsonrpc-process-connection jsonrpc-process-connection-156e7abbc6ca> :events-buffer-config)
slot-missing: Invalid slot name: "#<jsonrpc-process-connection jsonrpc-process-connection-156e7aeeb674>", :events-buffer-config
slot-missing: Invalid slot name: "#<jsonrpc-process-connection jsonrpc-process-connection-156e79b878b0>", :events-buffer-config
Error running timer ‘copilot--post-command-debounce’: (invalid-slot-name "#<jsonrpc-process-connection jsonrpc-process-connection-156e7b6f5d26>" :events-buffer-config)
slot-missing: Invalid slot name: "#<jsonrpc-process-connection jsonrpc-process-connection-156e79ac2b36>", :events-buffer-config
Error running timer ‘copilot--post-command-debounce’: (invalid-slot-name "#<jsonrpc-process-connection jsonrpc-process-connection-156e7a6ea8d4>" :events-buffer-config)
Quit [3 times]

I tried to checkout the prior commit, everything goes OK.
My environment:
OS: Ubuntu 23.10
Emacs: GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-09-02, modified by Debian

I've found the solution: install jsonrpc 1.0.23 will resolve this problem.

Does anyone know how to install version 1.0.23 of jsonrpc with elpaca/straight?

I tried
(use-package jsonrpc
  :straight (jsonrpc :type git :host github :repo "emacs-straight/jsonrpc"))

but I still got the error that makes Emacs unusable.
File mode specification error: (invalid-slot-name #<jsonrpc-process-connection jsonrpc-process-connection-54ec2c20> :events-buffer-config)

@benthamite It's at 1.0.24 now and I'm finding that fixed the same issue for me.

Great, thanks for letting me know!


Document usefulness of this crate more deeply

I fail to see a strong reason to use Display and Error derives in this crate. There's displaydoc for Display and thiserror for Error. The examples aren't very convincing either:
Example 1 of Display suggests using a different trait for implementing, which is a bad idea especially in case of Debug - it practically breaks the contract of the Display trait. (Implementing Debug using Display would make more sense logically.)
Example 2 suggests allocation which is again inefficient and it doesn't make sense to write a function returning owned String to implement Display when one could implement Display instead and use .to_string() to get the string.
The remaining Display examples are pretty much what displaydoc supports.
thiserror supports all the features of Error derive in this crate plus also backtraces (I personally don't use backtraces but it's nice to have it available.)
Further looking at some other things:

I don't see s!() as very useful. If your program needs to allocate strings so often that you want to save 7 characters from the name .to_owned() it is likely that you may want to redesign the program to allocate less in the first place. Methods are generally considered easier to work with than macros/"normal function" by many people, including me. (Prime examples: try!() was turned into ? operator and await was implemented as postfix operator as well.) Finally .to_owned is more readable to the newbies to a project as they don't have to look up what s!() means.
map! and co are useful, though there's already hmap! for instance. (It looks dead but is there really anything relevant to change? It's simple and works as advertised.)
 ;) (It's nice having the macro with others but noise in the absence of others.)
InetAddr with Tor support is great, the question is why it's not in torut itself? It would make more sense to me. Also I'm not sure if its a good idea to name it InetAddr could be confusing since such name exists in std (not hugely against it)
Would it make sense to add Service to Futures?
What's the use for Wrapper trait? In my experience newtypes are used in two ways: to protect an invariant and to distinguish meanings of underlying values. In the former case Wrapper trait must not be used as it does no checking (TryFrom<Inner>, Into<Inner> are idiomatic), in the latter case, I found that writing MyNewtype::new(42) is much more readable than 42.into() I avoid implementing From<Inner> for Newtype because of this. For conversion from Newtype to Inner simple into_inner method or From<Newtype> for Inner are more standard in the ecosystem.
Why AsAny doesn't have blanket impl? I also find it quite surprising that you need to use Any. It's very rarely used. :)
If Holder is being published it might be worth checking if it can be used with references well and think if there's a better name for it. I'm not even sure if it's useful to publish it because orphan rules might wreck its usefulness - a macro might be better.

The main reason is to have these derives in bitcoin projects where I do not want to rely on any external additional crates from outside of bitcoin community for this trivial functionality.
I will comment on the specifics tomorrow after thorough reading each of the points.

thiserror is from David Tolnay, the author of serde, so that shouldn't be a huge issue. :)
displaydoc should be sufficiently easy to review, I think.
At worst, it should be possible to pin the dependencies. Seems cleaner than writing from scratch or even forking if the main motivation is to resolve trust issues.

The base of derive and error/from was written by @elichai because rust bitcoin community would never integrate those two crates you are mentioning (ask Andrew Poelstra and other maintainers why, you can spend months negotiating and writing comments, literally :).
So this code was a part of derive_wrapper crate; however I needed more, so made this version which I heavily use in LNP/BP Core Lib. It will take days of my work to change it on any other dependencies, and its not critical at all, so I will not spend my time on it before the first release. Unfortunately I had to move to syn 1.+, so my MSRV version is higher than in rust-bitcoin currently, but in a matter of a year or so it they will match and I hope rust-bitcoin will start using this crate.

No problem, I guess I don't know something they know. I don't want to push it more but since I intended to use thiserror for my own security-critical project I'd like to ask @apoelstra to explain/link the reasons for avoiding it. I will not argue it further, and decide for my project on my own. :)

The s! macro.
It is useful when you initialize structs having Strings. Not sure whether writing to_string() each time helps newbies. Possible use places: https://github.com/LNP-BP/rust-lnpbp/blob/da2832468b7f021cd8674d2ab2f4138640c10b84/src/bp/chain.rs#L222-L357 Plenties of to_strings() and I do not see how to reformat without them.
(b)map! and (b)set! are really needed with RGB and LNP/BP library where they use to initialize structs heavily using BTreeMap and BTreeSet
Linked lists were previously used in graph verification operations in RGB over transition history graph, but I refactored it w/o them, so this structure can be removed (however I do not see anything wrong of having it once we already have other collection macro initializers).
Never seen InetAddr in stdlib (there are IpAddr and SocketAddr, but no InetAddr). Will be happy to rename, just can't find appropriate name. As for torut, it does not allow the needed functionality of being able to use both IP and Tor addresses in the same structures and being abstracted from which one is used.
What do you mean by Futures? Part of the core lib? How we can do it? I assume it will take ages to be merged. But I am ok with trying :)
Wrapper is very needed throughout LNP/BP code where each hash type/id needs to be a distingushed type wrapping hash type (and there a lot of them). The same applies for rust-bitcoin; it will be nice to re-factor it with this type + derive instead of all those ugly impl_* macros - the decision was already discussed, but we need to get MSRV bump first (so they will able to use amplify)
AsAny is not rarely used at all, it's core requirements for building LNP APIs with marshallers/unmarshallers used throughout all software done at LNP/BP (RGB Node, LNP Node, BP Node, future Bifrost and other servers/daemons):
https://github.com/LNP-BP/rgb-node/blob/master/src/api/fungible.rs#L25-L53
https://github.com/LNP-BP/rust-lnpbp/blob/master/src/lnp/presentation/encoding.rs#L32-L42
https://github.com/LNP-BP/rgb-node/blob/master/src/contracts/fungible/runtime.rs#L173-L191
Holder works really good in my cases in LNP/BP Core Library; I use it near hundred of times and it saved plenty of hours of coding time. Hate macros when you can do it without them and increase code maintainability and safety like in these cases:
https://github.com/LNP-BP/rust-lnpbp/blob/master/src/bp/strict_encoding.rs#L27-L68


Can I use the VAE code in the example if I want a higher dimenional latent vector?

Important note: the development of Keras is currently taking place at github.com/tensorflow/tensorflow. Please file your bug report by creating a new issue in the TensorFlow repository.
Please note that multi-backend Keras development has been discontinued. Do not report issues about multi-backend Keras (Keras 2.3.1 and lower), only report issues about the TensorFlow implementation of Keras (tf.keras).
As the question suggests, I just wanted to know whether just changing the dimensions of the latent vector in the code given here, https://github.com/keras-team/keras/blob/master/examples/variational_autoencoder.py, I could implement VAE with a higher dimensional latent vector. Also, say I wanted to convert it into a beta-VAE, is it enough if i just add a variable, beta multiplied with KL divergence for the same? ANy help is much appreciated.

@VANRao-Stack,
You can change the latent_dim to higher order as example given here.
import numpy as np
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers

class Sampling(layers.Layer):
    """Uses (z_mean, z_log_var) to sample z, the vector encoding a digit."""

    def call(self, inputs):
        z_mean, z_log_var = inputs
        batch = tf.shape(z_mean)[0]
        dim = tf.shape(z_mean)[1]
        epsilon = tf.keras.backend.random_normal(shape=(batch, dim))
        return z_mean + tf.exp(0.5 * z_log_var) * epsilon

latent_dim = 3     #higher order latent dimension

encoder_inputs = keras.Input(shape=(28, 28, 1))
x = layers.Conv2D(32, 3, activation="relu", strides=2, padding="same")(encoder_inputs)
x = layers.Conv2D(64, 3, activation="relu", strides=2, padding="same")(x)
x = layers.Flatten()(x)
x = layers.Dense(16, activation="relu")(x)
z_mean = layers.Dense(latent_dim, name="z_mean")(x)
z_log_var = layers.Dense(latent_dim, name="z_log_var")(x)
z = Sampling()([z_mean, z_log_var])
encoder = keras.Model(encoder_inputs, [z_mean, z_log_var, z], name="encoder")
encoder.summary()

Output
Model: "encoder"
__________________________________________________________________________________________________
 Layer (type)                   Output Shape         Param #     Connected to
==================================================================================================
 input_2 (InputLayer)           [(None, 28, 28, 1)]  0           []

 conv2d_2 (Conv2D)              (None, 14, 14, 32)   320         ['input_2[0][0]']

 conv2d_3 (Conv2D)              (None, 7, 7, 64)     18496       ['conv2d_2[0][0]']

 flatten_1 (Flatten)            (None, 3136)         0           ['conv2d_3[0][0]']

 dense_1 (Dense)                (None, 16)           50192       ['flatten_1[0][0]']

 z_mean (Dense)                 (None, 3)            51          ['dense_1[0][0]']

 z_log_var (Dense)              (None, 3)            51          ['dense_1[0][0]']

 sampling_1 (Sampling)          (None, 3)            0           ['z_mean[0][0]',
                                                                  'z_log_var[0][0]']

==================================================================================================
Total params: 69,110
Trainable params: 69,110
Non-trainable params: 0


@Mentions

In a News or Event record, I want to be able to use the "@" symbol and the URL slug of a Person to link to their Person Record detail.
Same for a Company and Resource

Can you provide a bit more detail on what exactly the relationship should be between a News instance and a Person instance?  For example, should each News instance belong to a Person instance, or should it have at least one author, who is a person or company?
Additionally, what exactly are the parameters of the task?  Implementing this relationship for both News and Event models?  Just News in one PR and Event in another?

Hey @rlgreen91,
I'm just looking for a News or Event instance to link to a Person resource when that person is "mentioned" which would be an "@" followed by the Person url slug (which we should have in the Person record already)
So in the description text of the Event record for my birthday, I could say happy birthday, @kenton-hansen and it would link to my Person at http://startupwichita.com/profile/kenton-hansen


[DCOS-42000] Add toolz as a test dependency.

Ping (CI green).

Why we decided initially not to rely on this library and rather copy the method?

The first function (get_in) was a bit different than the one in toolz, and from then on, inertia.

Thanks for the re-review @elezar.

Not critical, but I prefer the use of toolz.get_in and toolz.merge explicitly. Not going to fight you on it though.

My personal preference (from other prog langs) for things that are stdlib-y (in this case Python data structure functions, i.e. merge, get_in) is to import them directly into modules. Since you're not up for a fight I'll leave them as-is, but feel free to change them in a future PR if you think it's better!

I'm also all for using the external packages directly. I was just thinking of minimising changes. My review might also been a bit inconsistent


Creating a new default tenant with an SQL db and a table prefix entered fails with a Setup failed warning message

Full warning message: Setup failed: Transaction not connected, or was disconnected
I don't have time to dig into this right now, and it is hardly a priority, but if it is a restriction from Orchard that the default tenant should not have a prefix then a better error message should be displayed.

Are you sure this is not an issue with your SQL server instance? Can you otherwise connect to it?

I have the exact same issue... My SQL Server instance (MSSQL 2014) seems to be running just fine. (I have no problems logging in with the created user) Any solutions?

Can you share all the exception details, including stack trace? What is the timeout value for the connection?

Hi,
after trying to install a new instance, everything goes well.
As I remember correctly the error I got had something to do with a zombieing Nhibernate session towards my SQL Express 2014.
Bu no issues left for the moment

I think this is the same problem i'm having. I'm trying to setup orchard to use Sql Server.
Background:
I originally set up a site to use Sql Compact but i found that the site is too slow after deploying to my godaddy account. I covered the database but i didn't know how to set up Orchard to use Sql Server vs compact, so i tried created a new orchard site using Sql Server so i could  compare and make updates to my site.
Problem:
So when i entered in all the info for setting up the site and orchard went to cook up site, I received an error (I dont have it anymore). Then I downloaded the source to see if it was something i could trouble shoot. That's when i got the following error:
orchard session.transaction nhibernate.transactionexception -> message "transaction not connected, or was disconnected"
This was in SessionLocator.cs -> DisposeSession() ; line 96 ..._session.Transaction.Commit();
I am using Sql Server 2014.
I'm not knowledgeable about how to use nhibernate, so i'm not really sure how to troubleshoot this. I will continue to play with it but I'm guessing I should maybe check how sessions/transactions should be handled in Sql Server for Orchard (So far i don't see anything in Orchard Documentation stating any requirements for sql server.)

Additional note, tables are created in the database. also, when i reloaded the page i received the following message: "This tenant is currently initializing. Please try again later."

I also got this error after getting the lastest dev branch.
Here is my stack trace
[TransactionException: Transaction not connected, or was disconnected]    NHibernate.Transaction.AdoTransaction.CheckNotZombied() +70    NHibernate.Transaction.AdoTransaction.Commit() +258    Orchard.Data.TransactionManager.DisposeSession() in C:\dev\Projects\Orchard\src\Orchard\Data\SessionLocator.cs:96    Orchard.Data.TransactionManager.Dispose() in C:\dev\Projects\Orchard\src\Orchard\Data\SessionLocator.cs:86    Autofac.Core.Disposer.Dispose(Boolean disposing) +81    Autofac.Util.Disposable.Dispose() +36    Autofac.Core.Lifetime.LifetimeScope.Dispose(Boolean disposing) +65    Autofac.Util.Disposable.Dispose() +36    Autofac.Features.OwnedInstances.Owned1.Dispose(Boolean disposing) +45
Autofac.Util.Disposable.Dispose() +36
Orchard.Environment.DefaultOrchardShell.Activate() in C:\dev\Projects\Orchard\src\Orchard\Environment\DefaultOrchardShell.cs:81
Orchard.Environment.<>c__DisplayClass51_0.b__2() in C:\dev\Projects\Orchard\src\Orchard\Environment\DefaultOrchardHost.cs:373
Orchard.Utility.NamedReaderWriterLock.RunWithWriteLock(String name, Action body) in C:\dev\Projects\Orchard\src\Orchard\Utility\NamedReaderWriterLock.cs:62
Orchard.Environment.DefaultOrchardHost.ActivateShell(ShellSettings settings) in C:\dev\Projects\Orchard\src\Orchard\Environment\DefaultOrchardHost.cs:362
Orchard.Environment.DefaultOrchardHost.StartUpdatedShells() in C:\dev\Projects\Orchard\src\Orchard\Environment\DefaultOrchardHost.cs:134
Orchard.Environment.DefaultOrchardHost.EndRequest() in C:\dev\Projects\Orchard\src\Orchard\Environment\DefaultOrchardHost.cs:317
Orchard.Environment.DefaultOrchardHost.Orchard.Environment.IOrchardHost.EndRequest() in C:\dev\Projects\Orchard\src\Orchard\Environment\DefaultOrchardHost.cs:97
Orchard.Web.MvcApplication.HostEndRequest(HttpApplication application, IOrchardHost host) in C:\dev\Projects\Orchard\src\Orchard.Web\Global.asax.cs:42
Orchard.WarmupStarter.Starter`1.OnEndRequest(HttpApplication application) in C:\dev\Projects\Orchard\src\Orchard.WarmupStarter\Starter.cs:75
Orchard.Web.MvcApplication.Application_EndRequest() in C:\dev\Projects\Orchard\src\Orchard.Web\Global.asax.cs:33
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +87
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +101
System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +21
System.Web.Util.ArglessEventHandlerProxy.Callback(Object sender, EventArgs e) +56
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69`

I need a simple repro please

I just ran into this.
I created an Orchard website with no table prefix.
I added a tenant with a table prefix, same SQL Server database (identical connection string to default site).
Error occurs as above.
I am doing this in Azure via the Portal, so I don't have all the diagnostics available. I will attempt to reproduce at home on my development PC. Don't tell my boss I'm doing this at work ;)

Hey guys.
I am sorry for my bad english.
I have the same error after trying to install the Orchard system localy. I think the error is in the file:
Orchard/Data/Migration/AutomaticDataMigrations.cs
      private void EnsureDistributedLockSchemaExists()
       {
           // Ensure the distributed lock record schema exists.
           var schemaBuilder = new SchemaBuilder(_dataMigrationInterpreter);
           var distributedLockSchemaBuilder = new DistributedLockSchemaBuilder(_shellSettings, schemaBuilder);
           if (!distributedLockSchemaBuilder.SchemaExists()) {

               // Workaround to avoid some Transaction issue for PostgreSQL.
               if (_shellSettings.DataProvider.Equals("PostgreSql", StringComparison.OrdinalIgnoreCase)) {
                   _transactionManager.RequireNew();
                   distributedLockSchemaBuilder.CreateSchema();
                   return;
               }

               distributedLockSchemaBuilder.CreateSchema();

               distributedLockSchemaBuilder.CreateSchema();
               _transactionManager.RequireNew();
           }
       }

Here is the double call for distributedLockSchemaBuilder.CreateSchema() method.
If i comment one from the calls, i can done the installation.

@dronzel good catch

Why was this closed?


Reuse the open transaction for include_docs=true responses

Summary
CouchDB should reuse the open transaction when embedding document bodies into a response where the user has requested include_docs=true. Currently each document is loaded using a separate transaction. For example, here's a trace of a request to /foo/_all_docs?limit=3&include_docs=true:

The purple elements are new transactions, so you can see that we're using a separate transaction for each of the three included documents. We can significantly reduce latency and load on FoundationDB by not doing that.
Performance aside, reusing the transaction is the correct behavior. If we start a new transaction we run the risk that the document revision has been overwritten since the beginning of the top-level response and so we won't see it.
Desired Behaviour
Responses with include_docs=true should be delivered in a single transaction.
Possible Solution
As an example, we can pass the transaction object into the initial accumulator for the view_cb/2 function and use it when retrieving the document here:
https://github.com/apache/couchdb/blob/ff2cdb84f639ea26ac7b1ad85abb0a49c5141c74/src/chttpd/src/chttpd_db.erl#L988

A simple thing to try would be to wrap the whole db request function in a transaction:
https://github.com/apache/couchdb/blob/ff2cdb84f639ea26ac7b1ad85abb0a49c5141c74/src/chttpd/src/chttpd_db.erl#L385-L386
So it would look something like:
   fabric2_fdb:transactional(Db, fun(TxDb) -> Fun(Req, TxDb) end)

We might hit issues with transaction size limits or timeouts sooner.  For reads, values are not included in the size limit, but keys and conflicts ranges are. Perhaps we could track transaction size estimates and/or age and do something clever like start a new transaction if we reach the limits. Perhaps snapshot reads might also be useful here, as the long transaction could now easier conflict with other updates and retry too often.

As a general rule I think we should not stitch together multiple FDB transactions underneath a single CouchDB operation. A good exception would be a continuous _changes feed, where there's already no expectation that the response is generated from a single version of the underlying database. I realize this could shorten response sizes, but I think that's generally a good direction for us to be taking the project.
Snapshot reads are only useful to relax the isolation around a read performed as part of a RW transaction in FDB. A read-only transaction that never commits doesn't increase the likelihood of conflicts.

 I suppose  _all_docs results would return a timeout or transaction size error and clients would have to interpret that and paginate through the data.

Snapshot reads are only useful to relax the isolation around a read performed as part of a RW transaction in FDB

Ah you're right. It won't be much help here, these are all read transactions. (Maybe a tiny performance boost since a snapshot won't need to start gathering conflict ranges).

https://github.com/apache/couchdb/pull/3243 should cover this?

https://github.com/apache/couchdb/pull/3243 should cover this?

Confirmed that the cache_grv work achieves this. I print the GRV within the fold_docs transaction and the get_body_wait transactions and they are all the same.
diff --git a/src/fabric/src/fabric2_db.erl b/src/fabric/src/fabric2_db.erl
index a310470ea..352b30946 100644
--- a/src/fabric/src/fabric2_db.erl
+++ b/src/fabric/src/fabric2_db.erl
@@ -946,9 +946,12 @@ fold_docs(Db, UserFun, UserAcc0, Options) ->
     fabric2_fdb:transactional(Db, fun(TxDb) ->
         try
             #{
+              tx := Tx,
                 db_prefix := DbPrefix
             } = TxDb,

+couch_log:error("fold_docs ~p", [erlfdb:wait(erlfdb:get_read_version(Tx))]),

             Prefix = erlfdb_tuple:pack({?DB_ALL_DOCS}, DbPrefix),
             Meta = get_all_docs_meta(TxDb, Options),

diff --git a/src/fabric/src/fabric2_fdb.erl b/src/fabric/src/fabric2_fdb.erl
index 5394f27bb..8b2a19535 100644
--- a/src/fabric/src/fabric2_fdb.erl
+++ b/src/fabric/src/fabric2_fdb.erl
@@ -772,7 +772,7 @@ get_doc_body_wait(#{} = Db0, DocId, RevInfo, Future) ->
     #{
         tx := Tx
     } = Db = ensure_current(Db0),
-
+    couch_log:error("get_doc_body ~p", [erlfdb:wait(erlfdb:get_read_version(Tx))]),
     #{
         rev_id := {RevPos, Rev},
         rev_path := RevPath

Confirmed that the cache_grv work achieves this. I print the GRV within the fold_docs transaction and the get_body_wait transactions and they are all the same.
diff --git a/src/fabric/src/fabric2_db.erl b/src/fabric/src/fabric2_db.erl
index a310470ea..352b30946 100644
--- a/src/fabric/src/fabric2_db.erl
+++ b/src/fabric/src/fabric2_db.erl
@@ -946,9 +946,12 @@ fold_docs(Db, UserFun, UserAcc0, Options) ->
     fabric2_fdb:transactional(Db, fun(TxDb) ->
         try
             #{
+              tx := Tx,
                 db_prefix := DbPrefix
             } = TxDb,

+couch_log:error("fold_docs ~p", [erlfdb:wait(erlfdb:get_read_version(Tx))]),

             Prefix = erlfdb_tuple:pack({?DB_ALL_DOCS}, DbPrefix),
             Meta = get_all_docs_meta(TxDb, Options),

diff --git a/src/fabric/src/fabric2_fdb.erl b/src/fabric/src/fabric2_fdb.erl
index 5394f27bb..8b2a19535 100644
--- a/src/fabric/src/fabric2_fdb.erl
+++ b/src/fabric/src/fabric2_fdb.erl
@@ -772,7 +772,7 @@ get_doc_body_wait(#{} = Db0, DocId, RevInfo, Future) ->
     #{
         tx := Tx
     } = Db = ensure_current(Db0),
-
+    couch_log:error("get_doc_body ~p", [erlfdb:wait(erlfdb:get_read_version(Tx))]),
     #{
         rev_id := {RevPos, Rev},
         rev_path := RevPath

#3243 would cover it, but I thought we already fixed this for most general cases like _all_docs variants and view rows emits. I see for _all_docs, _design_docs and _local_docs we use TxDb https://github.com/apache/couchdb/blob/main/src/fabric/src/fabric2_db.erl#L971, and for views https://github.com/apache/couchdb/blob/main/src/couch_views/src/couch_views_reader.erl#L199
The code in chttpd might still catch some edge cases though from other requests which use the view_cb callback

#3243 would cover it, but I thought we already fixed this for most general cases like _all_docs variants and view rows emits. I see for _all_docs, _design_docs and _local_docs we use TxDb https://github.com/apache/couchdb/blob/main/src/fabric/src/fabric2_db.erl#L971, and for views https://github.com/apache/couchdb/blob/main/src/couch_views/src/couch_views_reader.erl#L199
The code in chttpd might still catch some edge cases though from other requests which use the view_cb callback


Incorrect html generation in 0.9.0

HTML file in this version generated with width starched to browser bounds, but if you would try to create a lot of  screenshots (Lets say 25 for each device), you'll see how inconvenient it looks like.
Moreover, last screenshots for some reason even smaller that same size screenshots for same device.

Thanks for reporting this. I'm using snapshot to generate 5 screenshots only. I guess it would make sense to set a minimum width so that doesn't happen? What's your suggestion?

@KrauseFx I guess it makes perfect sense to set minimum width for images.td {         min-width: 200px; } will make html correct again

Can you try it on your html file locally and let me know if that looks better? :+1:

@KrauseFx Just did, min-width: 200px;  is the only line I added into td style

Thanks @kohtenko, this will be in the next version :+1:


1.0/Public Release

This is intended to track the remaining tasks blocking a 1.0/public release. Anyone with access is free to edit this list.
Must have

[x] Working CI for release artifacts @Archez
[x] #445 @garrettjoecox
[x] #422 @inspectredc
[x] Determine if we are going to revert to OTR or not for modding sake. - We are going to launch with o2r, mod authors will be pointed to a temporary branch that generates OTRs, they can use that until we have tooling for o2r.
[x] #436 @garrettjoecox
[x] #406
[x] #207
[x] Winning the Beaver Race crashes
[x] Shooting Skulltullas with Bow or Hookshot crashes
[x] soh.otr -> 2ship.otr and shipofharkinian.json -> 2ship2harkinian.json
[x] One full playthrough on windows
[x] One full playthrough on Mac or Linux

Should have

[ ] #188 @KiritoDv
[ ] #225
[ ] #215
[ ] #158
[ ] #408 @Archez
[x] #448 Clang Format @briaguya-ai
[x] #214
[x] #60
[x] At least 10 playtesters actively playing for a week or two

Nice to have

[ ] Various SFX are playing at the wrong pitch/modulation
[ ] #159
[x] #404
[x] Controller visibility fix @briaguya-ai
[x] #388
[x] #323
[x] A few more general options in the save editor
[x] #228
[x] #155
[x] #237

Congrats everyone <3


Docs update

This PR intends to improve current bionode-watermill documentation.

Codecov Report

Merging #76 into dev will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev      #76   +/-   ##
=======================================
  Coverage   81.83%   81.83%
=======================================
  Files          37       37
  Lines         881      881
  Branches      107      107
=======================================
  Hits          721      721
  Misses        160      160

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 8fa4702...97c9293. Read the comment docs.

So, I think I have covered all the topics that we discussed regarding the docs. Just have that example with the multiple-inputs in the two-mappers pipeline that maybe can be removed from this PR. What do you think about it @thejmazz ? I made a disclaimer on the script anyway...
Otherwise if you agree with the modifications feel free to merge.

Hmm just noticed that docs/Task.md still needs a little simplifcation.


Neato component

Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (hass --version):
0.38.3 and after
Python release (python3 --version):
Component/platform:
neato component
Description of problem:
cannot initialize
Expected:
switch available in HA
Problem-relevant configuration.yaml entries and steps to reproduce:
platform: neato
username: [REDACTED]
password: [REDACTED]

Traceback (if applicable):
17-03-15 13:59:00 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform neato
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 151, in _async_setup_platform
    entity_platform.add_entities, discovery_info
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/switch/neato.py", line 26, in setup_platform
    if not hass.data[NEATO_ROBOTS]:
KeyError: 'neato_robots'

Additional info:
https://community.home-assistant.io/t/neato-component-not-working-anymore/9373

Your configuration is incorrect, you schould add the neato component like this:
neato:
  username:
  password:

And than add a sensor like so:
sensor:
  - platform: neato

No need to add sensor ;)

even with
neato:
username:
password:
or
sensor:

platform: neato

or
switch:

platform: neato

I've the same error.

Did you try it with only the component entry?
neato:
  username:
  password:

17-03-15 16:05:06 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform neato
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 151, in _async_setup_platform
entity_platform.add_entities, discovery_info
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in iter
yield self  # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/sensor/neato.py", line 31, in setup_platform
dev.append(NeatoConnectedSensor(hass, robot, type_name))
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/sensor/neato.py", line 45, in init
self._state = self.robot.state
File "/home/homeassistant/.homeassistant/deps/pybotvac/robot.py", line 94, in state
return self.get_robot_state().json()
File "/home/homeassistant/.homeassistant/deps/pybotvac/robot.py", line 70, in get_robot_state
return self._message({'reqId': "1", 'cmd': "getRobotState"})
File "/home/homeassistant/.homeassistant/deps/pybotvac/robot.py", line 44, in _message
response.raise_for_status()
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/requests/models.py", line 909, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://nucleo.neatocloud.com/vendors/neato/robots/OPS45315-EC1127F2D37F/messages
17-03-15 16:05:08 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform neato
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 151, in _async_setup_platform
entity_platform.add_entities, discovery_info
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in iter
yield self  # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/switch/neato.py", line 32, in setup_platform
dev.append(NeatoConnectedSwitch(hass, robot, type_name))
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/switch/neato.py", line 46, in init
self._state = self.robot.state
File "/home/homeassistant/.homeassistant/deps/pybotvac/robot.py", line 94, in state
return self.get_robot_state().json()
File "/home/homeassistant/.homeassistant/deps/pybotvac/robot.py", line 70, in get_robot_state
return self._message({'reqId': "1", 'cmd': "getRobotState"})
File "/home/homeassistant/.homeassistant/deps/pybotvac/robot.py", line 44, in _message
response.raise_for_status()
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/requests/models.py", line 909, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://nucleo.neatocloud.com/vendors/neato/robots/OPS45315-EC1127F2D37F/messages

Alright, it looks like the cloud api of neato has changed. I will take a look at what they changed

No, Your robot is not online at wifi.

Thanks for your help. Issue was on wifi (device offline)


Traceback during makemigrations run

Hello Guys, I'm facing a weired issue while running migration . I have integrated salesforce package and want to add some models at my django application. But when I run makemigrations or try to run old migration getting below error.
Django==1.9.5
django-salesforce==<IP_ADDRESS>
Please suggest me the solution.
Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/zorig/.virtualenvs/portal/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
    utility.execute()
  File "/home/zorig/.virtualenvs/portal/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 345, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/zorig/.virtualenvs/portal/local/lib/python2.7/site-packages/django/core/management/base.py", line 348, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/zorig/.virtualenvs/portal/local/lib/python2.7/site-packages/django/core/management/base.py", line 399, in execute
    output = self.handle(*args, **options)
  File "/home/zorig/.virtualenvs/portal/local/lib/python2.7/site-packages/django/core/management/commands/makemigrations.py", line 106, in handle
    ProjectState.from_apps(apps),
  File "/home/zorig/.virtualenvs/portal/local/lib/python2.7/site-packages/django/db/migrations/state.py", line 174, in from_apps
    model_state = ModelState.from_model(model)
  File "/home/zorig/.virtualenvs/portal/local/lib/python2.7/site-packages/django/db/migrations/state.py", line 393, in from_model
    fields.append((name, field.clone()))
  File "/home/zorig/.virtualenvs/portal/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 464, in clone
    return self.__class__(*args, **kwargs)
  File "/home/zorig/.virtualenvs/portal/local/lib/python2.7/site-packages/salesforce/fields.py", line 197, in __init__
    related_object = args[0]
IndexError: tuple index out of range

Edited: Wrapped by tags for preformated text, otherwise some underscores and asterisks missed.

I would like to offer some temporary solutions for your urgent case. Please explain more how you use migrations. You probably know that migrations are important with django-salesforce only if the same SalesforceModel class is used also for another type of database. People save normal Django data to other databases with django.db.models.Model in other directories (apps) and they use the combination of more database backends with one app usually only for easier and faster tests and not for the same persistent data in both databases. (I don't know about such case currently. I use it for some type of backup or cache, but I can create a new complete backup if the model is changed.) Most of them even run tests with sqlite3 in memory and there is really nothing to migrate. They need only to migrate application with normal Django model that use other databases for persistent data. They need only to make the changes in SalesforceModels manually in Salesforce. They run
python manage.py makemigrations your_other_db_apps_labels ...  # not SF apps

The command "makemigrations" with SF is usually only for a convenience that other apps need not to be listed and that Salesforce migrations will be simply never used then. So, if you still have a migration for Salesforce you can rename temporary the directory migrations in your SF app to something different in order to avoid eventual warning (no migrations are better than obsolete migrations)
If your urgent case is that you can not create migrations for normal Django by the command above, please write it explicitly.

You should run the "check" command before "makemigrations"
python manage.py check

and you will be warned about some ForeignKey that on_delete=PROTECT or on_delete=DO_NOTHING must be used with SalesforceModel. (This is for one because SFDC deletes custom objects that depends on a master relationship field automatically in the cascade, for another that it would be unsafe to have two potential mechanisms that could cause cascade delete. Also some (many) builtin objects have relationships with cascade delete, that can be found in Salesforce documentation for these objects and it is usually exactly what can be expected.) If you fix the problem with "on_delete" you can run "makemigrations".
I'm writing a fix, but the best time will be with the new version 0.7. If you confirm the reason, it will be probably not optimal neither for you to have a patch for the current version 0.6.9 or to download anything special.

Where is a feedback for your super super urgent issue? (24 hours after the last response) You had to confirm that it is the simple case or that is something other or that it is not urgent more. Otherwise you would wait for yourself.

@hynekcer  Sorry for the delay in response. I tried your solution by adding on_delete but no success. Still facing the issue. Thanks!

@nishuk0007 You're going to need to provide some more useful information if you'd like further assistance with this issue.
Migrations for Salesforce models is a rather advanced use of the library specific to unit testing that should really only be used by people with a strong Django background. It's fairly easy to munge up migrations in Django if you don't fully understand them.
Also, in the future please do not open issues with "urgent" in the title. This is an unpaid open source project, and we do our best to answer every issue as quickly as possible.

Did passed "manage.py check" without warnings? Did you also removed old migrations for models with SalesforceModel (==salesforce.models.Model) temporarily? (if you even had any) If it works then it is clear and you can restore migrations and I send a small patch.
Can you reproduce the problem on a very simplified model that can be shared? Try your models.py in a new project. You can remove all fields except ForeignKey and then you can remove also many classes.

Below is the current scenario, and I want to create migrations for Company model but it's giving error I posted earlier.
Also while running manage.py check getting below warning:
System check identified some issues:

WARNINGS:
contacts.Vendor.additional_contact: (fields.W340) null has no effect on ManyToManyField.

System check identified 1 issue (0 silenced).

class Company(models.Model):
    description = models.TextField(blank=True, null=True)

class Contact(models.Model):
    first_name = models.CharField(max_length=40, blank=True, default='')
    last_name = models.CharField(max_length=80)
    company = models.ForeignKey(Company,related_name='contacts')
    salesforce_id = models.CharField(max_length=255,blank=True,null=True)

    class Meta:
        verbose_name = 'Contact'
        verbose_name_plural = 'Contacts'
        managed = False
        db_table = 'authentication_user'

That is exactly what I wrote that you forgot "on_delete" at ForeignKey. It is a required parameter in every Django 1.9.
The warning is related to other model not to the example. Not helpful
The table for Contact db_table = 'authentication_user' is not a name of a Salesforce object. Are you sure that you can connect to Salesforce with this name?

It seems that you did not tried the simple steps in README first and you create migrations before your model works some way. (Prepare objects in Salesforce and write your first models by exporting a few objects and simplify the models by removing unused fields and especially relationships to unused objects. Then you know soon how to write valid models)
However there is a patch for version <IP_ADDRESS> and it should help
--- a/salesforce/fields.py
+++ b/salesforce/fields.py
@@ -181,10 +181,10 @@ class TimeField(SfField, models.TimeField):

 class ForeignKey(SfField, models.ForeignKey):
     """ForeignKey with sf_read_only attribute for Salesforce."""
-    def __init__(self, *args, **kwargs):
+    def __init__(self, to, *args, **kwargs):
         # Checks parameters before call to ancestor.
-        if DJANGO_19_PLUS and args[1:2]:
-            on_delete = args[1].__name__
+        if DJANGO_19_PLUS and args:
+            on_delete = args[0].__name__
         else:
             on_delete = kwargs.get('on_delete', models.CASCADE).__name__
         if not on_delete in ('PROTECT', 'DO_NOTHING'):
@@ -194,11 +194,10 @@ class ForeignKey(SfField, models.ForeignKey):
             # CreatedBy etc. Some related objects are deleted automatically
             # by SF even with DO_NOTHING in Django, e.g. for
             # Campaign/CampaignMember
-            related_object = args[0]
             warnings.warn("Only foreign keys with on_delete = PROTECT or "
                     "DO_NOTHING are currently supported, not %s related to %s"
-                    % (on_delete, related_object))
-        super(ForeignKey, self).__init__(*args, **kwargs)
+                    % (on_delete, to))
+        super(ForeignKey, self).__init__(to, *args, **kwargs)

     def get_attname(self):
         if self.name.islower():

Thanks for the first report. It helped me to find a real bug, because it is not sometimes easy to support unexpected inputs for more Django versions if the API is changing. Maybe we can cooperate later if you will continue studying in the meantime.

Thanks for the help.. Actually I'm in middle of the task..so I follow the steps mentioned here. and let here know if that help me. Thanks again!

I will rename the issue to "makemigrations failed if ignored manage.py check" and I will close it, because that was the only reproduced case. and I think that the failed check follows from the internal logic. If you can reproduce the problem with "manage.py check" passed, please reopen the issue again.


Add docker image

What's your use case for this?

What's your use case for this?

It's simply convenient and reliable than any package, but I'm not sure that your tool can be used in this way, there will most likely be restrictions. But this is the simplest way to order the vego. (sorry for my English).

What's your use case for this?

Docker can make it so that someone who doesn’t have Python installed (or maybe they have Python but the wrong version) can still use this tool.
It also make it easy to download and run with a single command and likely “just work” on Windows. See #13

It would just work, but the container would not include the user's configuration, or any of their software so they probably would have to tweak the Dockerfile and rebuild the image to install their own programs so that they could record them. Plus, Dockerfiles must contain a line such as ENV USER termtosvg so that the Docker container  runs as an unprivileged user, but this requires the user to create the Unix account termtosvg on their machine.
Honestly if it's just for experimenting you might just as well run any Linux Docker image with a python3 interpreter and install pip3 and then termtosvg. If you have more specific needs you could build your own image which would include your configuration and software of choice. I don't think I can provide something that would have more value than those  solutions.


Validation failed with invalid MIME type

Hello and nice work on this gem !
However, I'm trying to parse swagger file outputted with this kind of MIME types defined:
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SomeDataTypeHere"
              }
            }

This gem will crash (validation failed raised) when trying to access the content of requestBody because this MIME type doesn't fit with the regexp defined in: lib/openapi3_parser/validators/media_type.rb
I've patched it like this:
    ::Openapi3Parser::Validators::MediaType::REGEX = %r{
      \A
      (\w+|\*)+ # word or asterisk
      / # separating slash
      ([-+.\w]+|\*)+ # word (with +, - & .) or asterisk
      \Z
    }x.freeze

I'm not sure if that a problem with the gem OR if the swagger file provided is not OpenApi compliant.
Tell me if you want me to create a PR :+1:

Hello @anykeyh - thanks for reporting this. It looks an interesting problem, I've not seen application/*+json as a mime type before. I'm finding it tricky to find out much about it and it's prevalence. I've done some digging to try determine if it's valid or not.
Looking at the OpenAPI Specification they reference the field to be a media type or a media range, with media range being rather cryptically defined as media-range = ( "*/*" / ( type "/*" ) / ( type "/" subtype ) ) *( OWS    ";" OWS parameter ) which I think rules out application/*+json as being valid since it is neither "/*" or a subtype. I also checked the schemas that ship with OpenAPI Specification but they seem to lack any validation on whether request bodies have a valid media type or not: https://github.com/OAI/OpenAPI-Specification/blob/f8449d1a893cc6a811c6f3d87e88b05761dc5397/schemas/v3.0/schema.json#L1260-L1265.
Where are you seeing this come from? I saw this Stack Overflow post that indicates it's provided by the Spring Framework which might indicate this approach is in the wild 🤔
Thanks for sharing your approach to resolving it 👍 I can see how that fixed it, I think that might be a bit over forgiving as it'd probably accept wrong inputs like ***/*** or application/text*json.

The schema I get come from a supplier for my current professional project, I can't tell you more as I'm bound with strict confidential policies.
I'm not 100% sure about the technology they use for their API server, but I would put my guess over .NET or Java framework.
One thing I've noticed is they provide multiple MIME type for their endpoints as example below:
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/xxx"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/xxx"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/xxx"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/xxx"
              }
            }
          }

In case I try to access the key application/json, validation code is called and it raises the exception. Another solution that would work in my case might be to validate over the key you're trying to access instead of the whole content block.
And, indeed my solution is a quickfix, probably not strict enough as it would validate invalid data type.

Great, thanks for sharing those details. I think I'm going to consider that to be an invalid mime type and thus not meeting the specification. If you're able to establish otherwise (perhaps raising an issue on https://github.com/OAI/OpenAPI-Specification) I'm quite happy to consider changing this.
This seems like evidence for a feature I've long considered where it allows a lenient mode for parsing where it only blows up if types are incorrect (for example any string would be accepted here but not a number). Though I've got a few more changes to make to this before that so that might not be until after OpenAPI 3.1 is out.
It might be best that you carry on using your quickfix in the meantime, particularly if you aren't able to persuade the author of the openapi file to change the media-type definition (which, in my opinion, would be the ideal approach).
Hope this helps.


Controller crash on nil pointer deference during - now at different location

Stack trace:
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1cc4311]

goroutine 13310556 [running]:
github.com/openziti/channel/v2.(*channelImpl).rxer.func1()
	/go/pkg/mod/github.com/openziti/channel/v2@v2.0.99/impl.go:308 +0x3f
panic({0x2113340?, 0x4196650?})
	/usr/local/go/src/runtime/panic.go:914 +0x21f
github.com/openziti/ziti/controller/sync_strats.(*InstantStrategy).ReceiveClientHello(0xc00204ab00, 0xc002e390e0, 0xc002514000)
	/go/src/github.com/openziti/ziti/controller/sync_strats/sync_instant.go:500 +0x1051
github.com/openziti/ziti/controller/handler_edge_ctrl.(*helloHandler).HandleReceive(0xc001d6c3a0, 0xc000ac6330, {0x2bc82e0, 0xc00273f500})
	/go/src/github.com/openziti/ziti/controller/handler_edge_ctrl/hello.go:58 +0x4a8
github.com/openziti/channel/v2.(*channelImpl).rxer(0xc0003e3680?)
	/go/pkg/mod/github.com/openziti/channel/v2@v2.0.99/impl.go:357 +0x571
created by github.com/openziti/channel/v2.(*channelImpl).startMultiplex in goroutine 56
	/go/pkg/mod/github.com/openziti/channel/v2@v2.0.99/impl.go:288 +0xc7

Branch: fix-router-connect-panic
Part of the longevity test to check if issue #1423 was fixed.
I see that there is null checking above for logging but in line 500 it's unchecked.
If I may also suggest, a lot of the code I've looked at is very "Java". Setters and Getters and self. if it were more idiomatic Go, it would be easier on Go devs and leverage the simplicity and semantic principles foundational in the language.

Hi @arunsworld ,
Would you be willing to run a build from a debug branch, so we can get some more information? I've spent a few hours digging through the code and I can't see a way for the VersionInfo to be nil there.
The VersionInfo gets set in accept.go. If the VersionInfo isn't present or can't be parsed, we now close the connection instead of continuing processing. The Router with the VersionInfo set is then placed in the connected routers map. The only time something is placed in that map is from accept. We never clear VersionInfo. Part of the fix was to always grab the router from the connected routers map.
Anyway, I can add some debug logging which may help us get to the bottom of this. Let me know if that's something you want to pursue. I'm surprised we're not seeing this as we're hosting lots of ziti networks and I get notified whenever there's a panic.
Regarding code style: I agree about the setters/getters and I think newer code doesn't suffer from those issues. We try to fix those things as we come across them. We've gotten much more comfortable in Go since the project has started and I think the code is much cleaner and more idiomatic these days. In general I personally try to only add setters/getters when it's needed for an interface.
Regarding self, we're going to have to disagree :) The Go recommendations for style have a few things I don't like.
One is single letter variable names. I think there's a happy medium between a, b, c and superLongOverlyDescriptiveVariableName.
The other is the advice to not use names like self. I consider using self a big time saver. I've never gotten confused about what it means in context. I no longer need to spend time thinking about how to abbreviate type names. As the quote says "There are only two hard things in Computer Science: cache invalidation and naming things."

Also, I realized I forgot to mention - I know I could just wrap that line in a nil check, but since that should never be nil, I want to track down the actual root cause, rather than bandaid it. If we can't figure out, I can always do the bandaid later.

Sure; happy to build from a debug branch and running that and hopefully reproduce the problem. Please let me know once there is a ready branch. Thanks.

I'll put together a branch today and post it here

I've pushed some changes to the router-hello-panic-debug branch. I also made some tweaks which may possible fix the panic, though I'm not holding out hope. The main debugging I added was logging the router and channel pointer values so that we compare them in the accept and the hello handling code and check the ordering and the values.
Let me now how it looks. Appreciate you helping track this down.

Thanks. I've deployed from this branch all controllers and routers. Hopefully will be able to reproduce the panic soon; and I'll have the logs here presently.

FYI: The potential fix included in the debug branch was released in 0.31.0. Even if it doesn't fix the bug it made the code a bit cleaner, so I went ahead and pushed it through.

Closing. If this is still an issue, please re-open.


Demonstrate workaround for rendering body datatypes

Add PersonHttpService to demonstrate workaround for rendering body datatypes, which are not used in another route as response type.
It is a really annoying issue, I think it makes sense to have an example to show how to work around it.

Thanks, this great!


[Feature]: Transform using received file content

🚀 Feature Proposal
The ts-jest transform ignores the file content it receives from Jest until there is already a hit in the memory cache, instead loading the file from disk. This feature proposal is to use the received file content instead.
Motivation
Doing things like chaining transforms (see https://github.com/anc95/jest-chain-transform) requires this, or else ts-jest will just read the original file from disk and ignore the other transformation(s). It should also help people trying to do this: https://github.com/kulshekhar/ts-jest/discussions/2721
Example
Here is a sample repository which uses jest-tsd-transform to run a sample typing test: https://github.com/TexKiller/jest-tsd-transform-example
Running jest should result in the following expected output:

This is possible because a PR for this feature was merged and published in version 27.1.3.
That PR is being reverted for the next version, so if you change the version of ts-code to anything other than 27.1.3 you should see this instead:

This happens because ts-jest is trying to compile the content of the file on disk instead of the result of the transformation performed by jest-tsd-transform.

We will move away from using TypeScript API for isolatedModules: false. With isolatedModules: true, chaining is already possible. I’d suggest to build your chaining around isolatedModules: true.
For this request, we will add tests to ensure this is supported.


Add docs for MatchLabelKeysInPodTopologySpread feature

Signed-off-by: Alex Wang<EMAIL_ADDRESS>

Hey there 👋 @denkensk , 1.25 Release Docs Shadow here!
Thanks for filing this placeholder. As a reminder, final docs PRs are due August 9th. Take a look at Documenting a release for additional information for the docs requirement for the release.
Thanks again!

/milestone 1.25
/assign @cathchu
/cc @kcmartin

ping @cathchu  It‘s ready to review.

/retitle Add docs for MatchLabelKeysInPodTopologySpread feature

@sftim  Updated. Pls take a look again. Thanks.

/assign @krol3

/lgtm
from sig scheduling

ping @sftim  for approve~ Thanks.

/assign @cathchu

/approve


Add feature to export blocks as image.

This feature is good for writing documentation.

The export palette is becoming crowded, in my 768 height screen it appears on the left. This looks like an issue with the gtk2 toolkit. It does work nevertheless.

After further testing this, I would like to make 2 improvements when I find the time:
[ ] self.canvas.height is not the same as the programming canvas - long programs get cropped.
[ ] autocropping - For my own use, locally, I used ImageMagick magic mogrify -trim command but to avoid dependency a cairo solution would be better.
I'm using this to finish https://icarito.gitbooks.io/physics-with-xo/ .


Update getmetadatapropertyvalue.md

Added one known limitation.

@an-emma : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@an-emma : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off

@ktoliver : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Run a series of test suites back to back

Currently it appears that there might be an error generated from tests being ran in a certain order.

This is in fact the case, but it can be easily resolved by running a bisect on the seed that finds this error.


Adding YogaSMC might be a good idea.

Hey, how you doing?!
I recently learned about YogaSMC. You might want to check and add it out.
Second thing is that I tried out FeatureUnlock. It has resolved my "AirPlay to Mac not working" problem. So you might want to add it.
Plus, I think it would be nice to add a note for people with NVIDIA 940MX, that they have to add -wegnoegpu as a boot argument (Root > NVRAM > Add > 7C436110-AB2A-4BBB-A880-FE41995C9F82 > boot-args > ) as there are a lot of people that are new to Hackintosh and might not know how and what to do as without that argument brightness and sleep won't work at all.

I recently learned about YogaSMC.

YogaSMC is not going to be added for the time being.

Second thing is that I tried out FeatureUnlock. It has resolved my "AirPlay to Mac not working" problem. So you might want to add it.

Thanks for testing and letting me know. I have added the kext.

Plus, I think it would be nice to add a note for people with NVIDIA 940MX, that they have to add -wegnoegpu.....

Added. Thanks again. :)


local test vs vmchecker

Hello :)
I have the first 2 test sets completely passed when I run the local tests,but when I run on vmchecker,I have issues about color and pixels.
Output from vmchecker:
Verifying LOOP no REPEAT
Pixels that are different
green: 2037
blue: 2037
alpha: 2037
all: 2037
design/3_loop/loop_no_repeat.dsn.svg=>- SVG 1024x768 1024x768+0+0 16-bit sRGB 0.250u 0:00.239
Can you help me, please?

Please make sure you have the latest checker version installed. Verify each
test that fails manually and compare it with our output.
On Sat, Mar 16, 2019 at 3:25 PM irinaioncea<EMAIL_ADDRESS>wrote:

Hello :)
I have the first 2 test sets completely passed when I run the local
tests,but when I run on vmchecker,I have issues about color and pixels.
Output from vmchecker:
Verifying LOOP no REPEAT
Pixels that are different
green: 2037
blue: 2037
alpha: 2037
all: 2037
design/3_loop/loop_no_repeat.dsn.svg=>- SVG 1024x768 1024x768+0+0 16-bit
sRGB 0.250u 0:00.239
Can you help me, please?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/UPB-FILS/alf/issues/28, or mute the thread
https://github.com/notifications/unsubscribe-auth/ACtOoddeC41VHTrWjk7XOP7YlQWzNx7Hks5vXPDYgaJpZM4b3zZR
.

--
Alexandru RADOVICI
Universitatea "Politehnica" din Bucuresti
e-mail<EMAIL_ADDRESS>telefon:<PHONE_NUMBER>
www.ipworkshop.ro

I do have the latest checker version and I have already verified the tests with the output :(

How did you split the lines? On the vmchecker machine we use \n, wundows
has \r\n
On Sat, 16 Mar 2019 at 18:35, irinaioncea<EMAIL_ADDRESS>wrote:

I do have the latest checker version and I have already verified the tests
with the output :(
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/UPB-FILS/alf/issues/28#issuecomment-473563013, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACtOoR_X0TDKU5xn9fT39lRXqoJCZagtks5vXR1FgaJpZM4b3zZR
.

--
Alexandru RADOVICI
Universitatea "Politehnica" din Bucuresti
e-mail<EMAIL_ADDRESS>telefon:<PHONE_NUMBER>
www.ipworkshop.ro

just letting you know that vmchecker has been down for about an hour now...We can't test anything on the local because the criteria don't match the ones from https://vmchecker.cs.pub.ro/ . Hope this get fixed soon.

You can test locally, it should be the same. What is different?
On Sun, 17 Mar 2019 at 10:28, Grama Ioan-Emanuel<EMAIL_ADDRESS>wrote:

just letting you know that vmchecker has been down for about an hour
now...We can't test anything on the local because the criteria don't match
the ones from https://vmchecker.cs.pub.ro/ . Hope this get fixed soon.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/UPB-FILS/alf/issues/28#issuecomment-473632219, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACtOoYqjxAXXFCqb8myVG4t-lNvGnmvhks5vXfyjgaJpZM4b3zZR
.

--
Alexandru RADOVICI
Universitatea "Politehnica" din Bucuresti
e-mail<EMAIL_ADDRESS>telefon:<PHONE_NUMBER>
www.ipworkshop.ro

You answer is a solution but, given the fact that vmchecker is offline, we can't check what tests fail. Indeed, comparing the output files locally gives enough information to correct the mistakes but going through every test manually (without exactly knowing if it is a false positive or not - because everything offline seems to pass 👍 ) is too slow.

Please make sure you have the latest checker version installed. Verify each test that fails manually and compare it with our output.
…
On Sat, Mar 16, 2019 at 3:25 PM irinaioncea @.***> wrote: Hello :) I have the first 2 test sets completely passed when I run the local tests,but when I run on vmchecker,I have issues about color and pixels. Output from vmchecker: Verifying LOOP no REPEAT Pixels that are different green: 2037 blue: 2037 alpha: 2037 all: 2037 design/3_loop/loop_no_repeat.dsn.svg=>- SVG 1024x768 1024x768+0+0 16-bit sRGB 0.250u 0:00.239 Can you help me, please? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#28>, or mute the thread https://github.com/notifications/unsubscribe-auth/ACtOoddeC41VHTrWjk7XOP7YlQWzNx7Hks5vXPDYgaJpZM4b3zZR .
-- Alexandru RADOVICI Universitatea "Politehnica" din Bucuresti e-mail<EMAIL_ADDRESS>telefon:<PHONE_NUMBER> www.ipworkshop.ro

Run
make -f Makefile.checker

This will run all the tests.


Clicking a group "Tirrel Support" from the sidebar makes the screen go black and never load

I'm seeing something similar when clicking on the ~lanlyd/terminal group; the page spends a long time trying to load and then I get something like this on the load of index.10df79c8.js:

If I try to reload it I seem to get TypeError: Error in body stream instead/as well?
Not sure if this is the exact same error but it seems to be the same behaviour - the screen goes white (light theme user) and never loads.

I can't repro this with that group. @tacryt-socryp what's your base hash for %groups?
@lycurgus your issue appears to be different, but I also can't repro it. What's your base hash?

> +vat %base
%base
  /sys/kelvin:      [%zuse 416]
  base hash:        0vm.3e4jl.d3dce.o5bhm.aavnu.obac8.8hc46.i06ur.31ge3.1jm15.f65bp
  %cz hash:         0vm.3e4jl.d3dce.o5bhm.aavnu.obac8.8hc46.i06ur.31ge3.1jm15.f65bp
  app status:       running
  force on:         ~
  force off:        ~
  publishing ship:  ~
  updates:          remote
  source ship:      ~wanzod
  source desk:      %kids
  source aeon:      129
  kids desk:        %kids
  pending updates:  ~
::

Which I think is the latest?

I tried to get a "cleaner" error by opening ~tirrel/the-marketplace in a new tab with the browser tools already open (rather than clicking the link and letting it open a tab of its own) and it looks like the core is a 404 on /~/scry/hark/group/~tirrel/the-marketplace/latest.json. The page appeared to load for a moment, before redirecting as above.
I grabbed a HAR trace, if that helps diagnose?

I also see a 404 for that scry, and 500s on a smattering of other groups.
Thanks, we'll take a look (and at least not crash the front-end if that scry doesn't come back).

I think this is a permissions issue, and will be fixed with: https://github.com/tloncorp/landscape-apps/pull/1832

I should clarify: the blank screen you're seeing will be fixed, I'm not sure what the underlying permissions issue is.

Did this ever get resolved?


How to input data for Lego visualization

Hi,
I want to plot the Hausdorff distance between the surface voxels of an prediction and its associated label in a segmentation task. I have a 3D numpy array with all surface voxels with some numerical value and everything else set to zero. I saved this in nifti format and then tried to open with the lego function but it returns:
Error in legosurface(): no scalars found!
And the plot is empty. How should I treat the data to obtain one of these nice plots? Also, I was not able to find it, but it there a quick way to display this as a mesh maintaining scalar values?
Thank you,

Hi, can you specify what 'surface voxels' mean?
can you visualize it with
from vedo import Volume
Volume(my_nparray).show()

In my array I have labeled pixels (0/1), and 1's correspond to a volume which my network has predicted/segmented. With an erosion operation (scipy.ndimage.morphology.binary_erosion) I get left with just the surface voxels of said volume.
Nothing pops up with these lines that you have provided (I attach an image so you can have a bit more insight on the nparray called sds) :(

uhm.. are you inside a notebook or something?  I would first try it out from the normal anaconda terminal or otherwise try adding:
from vedo import Volume, embedWindow
embedWindow(False)
Volume(my_nparray).show()

Now I tried from terminal, and using this:
`>>> from vedo import Volume

import nibabel as nib
im = nib.load('/Users/pere/Downloads/fold_1/results/HD_test.nii').get_data()
type(im)
<class 'numpy.ndarray'>
im.shape
(512, 512, 904)
import numpy as np
np.unique(im)
array([ 0.        ,  0.399884  ,  0.48628342, ..., 25.00651302,
25.0114829 , 25.05391801])
Volume(im).show()`

I get this (left):

On the right I display what I can get with a custom function on MATLAB which is what I want to obtain with vedo.

Is it possible that, since most of my voxels are close to 0, they are almost white? Cause now I think it could be possible that this this I can see in the vedo image corresponds to that red area at the top of my image on MATLAB. Is there a way to tune the colors?

Yes! You can modify the appearance of both color and transparency simply by setting
Volume(..).color(['r','g','b','pink',...]).alpha([0,.5,.4,1]

the meaning of the arrays is explained here
let me know if you manage to get something meaningful


Added supervisord to prombench docker image

#264 introduced exit on error behavior for apply/delete in prombench. This became a problem because the container ran that script as PID1 and would restart the container if make deploy or make clean errors out resulting in not letting any other process run on the container.
This PR uses a combination of tini init system and  supervisord to solve it since the container started by the statefulset to start/stop a test needs to be able to run multiple scripts at once.
supervisorctl also gives a very nice way to check status of the various scripts inside the container, for eg:
/prombench # supervisorctl status
clean                            STOPPED   Not started
deploy                           STOPPED   Not started
init                             RUNNING   pid 9, uptime 0:00:34
signal-supervisor                RUNNING   pid 8, uptime 0:00:34

Closes #278
Closes #270
Changes Added:

~Log fatal instead of returning error in AllNodepoolsRunning and AllNodepoolsDeleted~
~Revert Makefile clean target to clean: resource_delete nodepool_delete , as sometimes nodepool_delete takes longer and times out.~
Added tini init system so that we can run it as PID 1
Added supervisord since tini only tracks a single child. (supervisord is recommended by docker)
Updated prombench Dockerfile to use WORKDIR
removed initContainer from stateful-set.yaml, put that logic into deploy.sh
~split prombench/manifests/prombench/benchmark/1c_cluster-role-binding.yaml into two files as the Role and RoleBinding were getting deleted when deleting the namespace. this gets rid of the error message Role: loadgen-scaler and RoleBinding: loadgen-scaler not found when running make clean~

Additionally, with this approach we are also able to see the logs for make clean in loki which was not possible previously(with statefulsets)
https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#debugging-hook-handlers
cc @krasi-georgiev

See #284


Having issues using test module from Vocarerum labs

Recently enrolled into a program school that my employer offers and was sent a link to test out skills through Vocareum Labs/Gradle. First lesson asks to create an empty file within a folder and then run "run-workflow step-01" to make sure it works. Currently pulling my hair out trying to see exactly what I did wrong but there isn't much to go on. Not sure if there is a forum for beginner programmers either as I'm really out at sea with this. Any help would be appreciated.

@bot-gradle

Thank you for your interest in Gradle!
Your issue appears to be a question about how to use Gradle. Your question might be answered in Gradle documentation or on our community Slack or forums. Find links to these resources on help.gradle.org.
If you think you have come across a Gradle bug, please file a new issue describing the problem and how to reproduce it.
If you think Gradle is missing a feature, please file a new issue describing your use case for the feature.


can we add this command as mdbookspre in brew

requirements

no security warning for unsigned files
easy to add: brew install...

tfwiki runs the mdbook and itself

tfwiki should act as a fixer and a pre-processor.

not relevant anymore. mdbook isn't used.


Error from rotate and list commands

I set timeout to 6 hours but even after that duration was over rotate still gave the 'can't sorry' message. Are there restrictions on who can use the command? I also wonder if it has anything to do with list giving the error message 'something went wrong, the error has been logged'. Thanks.

Seems to be caused by images with incompatible file formats but I can't view their image codes and remove them

I suppose I need to stop accepting tiff images. In other news, how the heck did you come across a tiff image?

2018年7月23日(月) 3:02 samantha<EMAIL_ADDRESS>
I suppose I need to stop accepting tiff images. In other news, how the
heck did you come across a tiff image?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/bippum/rohrkatze-rotator/issues/1#issuecomment-406888949,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AfrvGDYeMaPV4Kr1MJJxIozuWdtcsnrYks5uJMxXgaJpZM4VZarW
.

I don't know how I got the tiff, sorry :p
But can I also ask about why the bot randomly stops responding to my
messages while still responding to other users'? Is there a temporary ban
function? Thanks

There's a limit on how many times it can rotate, once it rotates there's a ten minute cooldown for everyone. However there isn't any other ignoring functionality in the bot.


Add missing XListDeviceProperties and XGetDeviceProperty calls

Usage sample:
import ctypes
from ctypes import *
import pyglet.canvas
from pyglet.libs.x11 import xinput as xi
from pyglet.libs.x11 import xlib

def _ptr_add_offset(ptr, offset):
   address = ctypes.addressof(ptr.contents) + offset
   return ctypes.pointer(type(ptr.contents).from_address(address))

display = pyglet.canvas.get_display()
count = ctypes.c_int(0)
device_list = xi.XListInputDevices(display._display, count)
for i in range(count.value):
    device_info = device_list[i]
    ptr = device_info.inputclassinfo
    print("\nID: {}".format(device_info.id))
    print("Name: {}".format(device_info.name))
    xdev = xi.XOpenDevice(display._display, device_info.id)
    if xdev:
        props = xi.XListDeviceProperties(display._display, xdev, ctypes.c_int(4))

        for n in range(4):
            name = xlib.XGetAtomName(display._display, props.contents)
            if name:
                s_name = str(name, 'utf-8')
            if s_name == "Device Node":
                print("Device Node Found!")
                print("Property: " + s_name)

                act_type = ctypes.c_ulong(0)
                act_format = ctypes.c_int(0)
                nitems = ctypes.c_ulong(0)
                bytes_after = ctypes.c_ulong(0)
                prop = ctypes.c_char_p()

                xi.XGetDeviceProperty(display._display, xdev, props.contents, 0, 1000, False, xlib.AnyPropertyType, act_type, act_format, nitems, bytes_after, prop)

                print("Value:" + str(prop.value, 'utf-8'))

            props = _ptr_add_offset(props, sizeof(props.contents))

        xi.XCloseDevice(display._display, xdev)

Hi @pro-roy,
Thanks for the contribution. Normally the xinput bindings are generated by tools/genwrappers.py in the respository, but the wrapping tools are currently broken for Python 3. In the future hopefully we can regenerate this automatically, but in the mean time this is good to have updated.


Improve mock backend logging

This PR is follow up to @ppalaga work in https://github.com/apache/camel-quarkus/pull/1782.

Currently blocked by https://github.com/quarkusio/quarkus/issues/12250


Visibility dark theme - buttons switch to light version while tools are processing

On the Visibility Add-In panel, using Dark Theme, I'm seeing the Input Point and Tools buttons being rendered using the light version of the the button while the tool is actually running (after you click OK).
It doesn't last long,  but it looks a little strange.
The buttons are dark when not in use, and light-blue highlighted when active, but when you add points and then click OK, the buttons seem to flash "on" in white.

This is still an issue as of today:

Looking at this issue again today to verify and it is still an issue: @CTLocalGovTeam. If you feel you have a build where you are seeing something different please let me know.