text:
PReLU should be channelwise

from keras.models import Sequential
from keras.layers.advanced_activations import PReLU
from keras.layers import Convolution2D, MaxPooling2D

model = Sequential()
model.add(Convolution2D(32, 5, 5, input_shape=(28,28,1)))
model.add(PReLU())

model.summary()

This script produces the PReLU layer with 18432 parameters. If the PReLU was implemented according to the paper (https://arxiv.org/abs/1502.01852), number of parameters would be 32. Shouldn't this not be implemented that way? It adds an unnecessarily large number of parameters to the model.

What's your image_dim_ordering?

from keras import backend as K
print(K.image_dim_ordering())

returns 'tf'
For mnist, image_dim_ordering is '(28, 28, 1)'

The same bug report here. https://github.com/fchollet/keras/issues/3568
https://github.com/fchollet/keras/blob/25dbe8097fba9a6a429e19d0625d78c3b8731527/keras/layers/advanced_activations.py#L66
is input_shape[1:] and this should be something like input_shape[1] or input_shape[3].

I submitted a pull request to address this that may work for you in the interim: https://github.com/fchollet/keras/pull/4141

Wow, you have implemented already.
I did the same thing now. https://github.com/yukoba/keras/commit/defaec55d2fce9880e8cae89e36ed49910c2d57a
But I will throw it away.

authors: carlthome singlasahil14 the-moliver yukoba

repo: fchollet/keras


text:
Incorrect input shape of Convolution2D

Hi,
From the documentation at https://keras.io/layers/convolutional/. They suggest that the input for the convolution should follow the order: channels, rows, cols. However, when I run the example codes:
model = Sequential()
model.add(Convolution2D(64, 3, 3, border_mode='valid', input_shape=(3, 256, 256)))
print model.output_shape # output (None, 1, 254, 64)
I get (None, 1, 254, 64) instead of (None, 64, 254, 254). When I switch input shape to: rows, cols, channels, I got the correct result.
model = Sequential()
model.add(Convolution2D(64, 3, 3, border_mode='valid', input_shape=(256, 256, 3)))
print model.output_shape # output (None, 254, 254, 64)
I use Keras version: 1.1.2 (updated from master branch).

input_shape depends on K.image_dim_ordering() that you are using(can be found in ~/.keras/keras.json), you can check here. I think in your case image_dim_ordering is tf.
Hope it helps.

source: gharchive/issue

authors: binh-vu varun-bankiti

license_type: permissive

license_source: github-api


text:
Code runs fine on CPU but gives ValueError on GPU

I'm trying to build a Deconvolutional Network, model is built as follows:
`
model = Sequential([
Convolution2D(120,5,5,input_shape=(3,16,16),dim_ordering="th",activation="relu",border_mode="same"),

MaxPooling2D(pool_size=(2,2)),

Convolution2D(240,3,3,activation="relu",border_mode="same"),

MaxPooling2D(pool_size=(2, 2)),

Convolution2D(90,1,1,activation="relu",border_mode="same"),

MaxPooling2D(pool_size=(2, 2)),

Convolution2D(512,2,2,activation="relu"),

UpSampling2D(dim_ordering="th"),

Deconvolution2D(112,2,2,input_shape=(512,2,2),output_shape=(None,112,4,4),subsample=(2,2),dim_ordering="th",activation="relu",),

Deconvolution2D(64,2,2,input_shape=(112,4,4),output_shape=(None,64,8,8),subsample=(2,2),dim_ordering="th",activation="relu"),

Deconvolution2D(32,2,2,input_shape=(64,8,8),output_shape=(None,32,16,16),subsample=(2,2),dim_ordering="th",activation="relu"),

Deconvolution2D(4,1,1,input_shape=(32,16,16),output_shape=(None,4,16,16),dim_ordering="th",activation="relu"),

Flatten(),

])
`
If I set "optimizer=None" in .theanorc file i.e if code is run on CPU, No error occurs. But when run using GPU (optimizer=fast_run) following error occurs:
`
 Traceback (most recent call last):

File "C:/Users/Lab/PycharmProjects/srcovnet/shariq/cov2d.py", line 59, in <module>
model.fit(data_train,labels_train,nb_epoch=10)

File "C:\Users\Lab\Anaconda2\lib\site-packages\keras\models.py", line 652, in fit
sample_weight=sample_weight)

File "C:\Users\Lab\Anaconda2\lib\site-packages\keras\engine\training.py", line 1111, in fit
initial_epoch=initial_epoch)

File "C:\Users\Lab\Anaconda2\lib\site-packages\keras\engine\training.py", line 826, in _fit_loop
outs = f(ins_batch)

File "C:\Users\Lab\Anaconda2\lib\site-packages\keras\backend\theano_backend.py", line 811, in
__call__
return self.function(*inputs)

File "C:\Users\Lab\Anaconda2\lib\site-packages\theano\compile\function_module.py", line 871, in
__call__

storage_map=getattr(self.fn, 'storage_map', None))

File "C:\Users\Lab\Anaconda2\lib\site-packages\theano\gof\link.py", line 314, in raise_with_op
reraise(exc_type, exc_value, exc_trace)

File "C:\Users\Lab\Anaconda2\lib\site-packages\theano\compile\function_module.py", line 859, in
__call__

outputs = self.fn()

ValueError: GpuDnnConv images and kernel must have the same stack size`

What is the problem?

Which version of Keras are you using? I looks similar to a problem I had before and that was fixed by #4631. If your problem is similar, upgrading to 1.2.0 might help. Keras 1.1.2 and older have an incorrect order of the filter shape in the deconvolution layer for Theano.
If this is indeed the cause of your problem, your code probably also doesn't do what you want in CPU mode. It's just that the GPU code has better checks. (This is fixed in the current Theano master and should be included in the next Theano release.)


text:
Bug in BatchNormalization

I found the implementation of the BatchNormalization is wrong. If the mode is 0, "featurewise normalization" is used and two attributes which named  running_mean and running_std are used to store the mean and STD of the training data. But both of these attributes are implemented as a Theano expression in the get_output function. In the test stage, they refer to mean and STD of the input data, not the mean and STD of the training data as we expected.
To fix it, the running_mean and running_std should be implemented as a Theano shared value as model's parameters, and should be updated when training. And I noted that the updating mechanism of them is different from the conventional parameters which are updated by their gradient. Therefore, we need to define individual update methods in some especial Layer, and the update list should be integrated into the conventional one in the training function of the Model.

I saw that too. And for Theano shared variables, you can't do assignment.
I belieive way to have a state that is updated is if we implement BatchNormalization with a scan loop.
Do you have other ideas?

I change the BatchNormalization.get_output into:
def get_output(self, train):
    X = self.get_input(train)

    if self.mode == 0:
        if train:
            m = X.mean(axis=0)
            # manual computation of std to prevent NaNs
            std = T.mean((X-m)**2 + self.epsilon, axis=0) ** 0.5
            X_normed = (X - m) / (std + self.epsilon)

            # I changed the following 5 lines
            self.running_mean = shared_zeros(self.input_shape)
            self.running_std = shared_ones((self.input_shape))

            mean_update = self.momentum * self.running_mean + (1-self.momentum) * m
            std_update = self.momentum * self.running_std + (1-self.momentum) * std

            self.updates = [(self.running_mean, mean_update), (self.running_std, std_update)]
        else:
            X_normed = (X - self.running_mean) / (self.running_std + self.epsilon)

    elif self.mode == 1:
        m = X.mean(axis=-1, keepdims=True)
        std = X.std(axis=-1, keepdims=True)
        X_normed = (X - m) / (std + self.epsilon)

    out = self.gamma * X_normed + self.beta
    return out

And append the updates into the Model's update list, for example in Graph model:
def compile(self, optimizer, loss, theano_mode=None):
    ......
    updates = self.optimizer.get_updates(self.params, self.constraints, train_loss)
    # add the especial update rules into the training process
    for m in self.nodes:
        if hasattr(self.nodes[m],'updates'):
            updates.extend(self.nodes[m].updates)
    ......

This is fixed; it required some significant framework-wide changes. All layers / containers now support custom "updates" that they define in a init_update method run after the layer has been connected.

authors: EderSantana alzhusan fchollet


text:
Very low or NaN accuracy in the examples when running on a GPU with float32

I've been trying all the MNIST examples from the Keras documentation as well as the cifar10 and they just don't work if I use the GPU.
The Accuracy is always below 0.1 or NaN.
If I do it on the CPU it works correctly and if I do it in the GPU with float64 it also works correctly although slowly.
I've tried to restart the laptop |(like another user suggests) and also cleaning and purging theano-cache, but the problem remains.
My system is a Mac OS X 10.10. With a GTX 750M.
Theano without Keras works properly in GPU float32 with other libraries/examples.

All these examples work fine on my GT650M on OSX. I guess this is a 750M issue.
Try lowering the epsilon value for the GPU in optimizers.py and tell me what you get.

I tried to change the epsilon for several values ranging from 1e-6 to 1e-20 in optimizers.py and the bug remains the same.
About being a 750M issue, I doubt it because like said, this sort of operations work fine directly in Theano, or using Lasagne or even an handmade library. The accuracy problem only arrises when using Keras.

About being a 750M issue, I doubt it because like said, this sort of operations work fine directly in Theano, or using Lasagne or even an handmade library. The accuracy problem only arrises when using Keras.

It's a float32 overflow, and it happens on the 750M but not the 650M. Surely you can understand this.

from 1e-6 to 1e-20 in optimizers.py and the bug remains the same.

I realize I wasn't clear. I meant the epsilon in objectives.py, and I meant lowering the exponent. Try 10e-5 and 10e-4. You can also try changing the epsilon value in the optimizer you are using, by lowering the exponent, but I believe the one value that is causing the overflow would be the one in objectives.py.

Tried changing for epsilon to 10e-5 and 10e-4 to no avail. I also constructed a model using SGD propagation which doesn't use epsilon and it also only works in float64.

I have the same issue whenever I try to train GRU or LSTM with categorical_crossentropy and adam, rmsprop or SGD. The network will converge just fine for a while and then suddenly go to NaN.
I've also tried fiddling with epsilon, to no avail.

Just as a clarification, I found out that float64 is actually using the CPU even if you configure Theano to use the GPU. So this is a issue arising when you use GPU with Keras.

All GPUs only perform float32 operations. Well I guess you could perform virtual float64 operations emulated via hardware float32 operations, but that's not something Theano would do.

The interesting thing here is that the issue is specific to certain GPUs, which means the cause of the float32 overflow is unlikely to be found in the Keras code (if the Keras code was at fault, the overflow would happen every time the code is run in float32, i.e. on every GPU).

But on the other side, if the Keras code was not at fault the issue would happen every time you would try something similar with any library that uses Theano. Yet, I've tried similar runs in pure Theano and in Lasagne (another library that uses Theano as the backend like Keras does) and it runs just fine. So it must be something that Keras does and it's not supposed to do, even if it works fine with other cards.

Could you pls try NanGuardMode and tell us what you get?

Where can I change that setting?
I've tried NanGuardMode = True in .theanorc and the results remain the same.

I ran into this problem as well.
I had to upgrade scipy to 0.16.0 to fix it (if you are using gensim, that might be problematic though).

I have scipy 0.16.0 installed and the problem remains.
An added information, an user in the Keras mailing list thread about this problem says he also has it and that he uses a Titan X.

But on the other side, if the Keras code was not at fault the issue would happen every time you would try something similar with any library that uses Theano.

This is most likely due to a specific feature of Theano being used by Keras and which doesn't play well with this specific GPU (Titan X). You can still run Keras on any other GPU, or use other Theano features on the Titan X.
It would be interesting to determine which feature is at fault, specifically. Then we can open an issue with the Theano devs.
In any case, since this problem is GPU-specific and since Keras does not have any GPU-specific code (it simply calls Theano as its computation backend), the issue definitely lies with Theano.

@morgado-developer I have had the same issue with Keras code. I replaced the get_output() function for Convolutional2D class with the code below and it solved the issue. If you are using cuDNN make sure to remove it completely (by deleting all the *.so files and cudnn.h file from cuda installation) because theano uses cuDNN by default, if present, and set optimizer_including=conv_gemm in the THEANO_FLAGS. Please let me know if the fix works for you -
def get_output(self, train):
        X = self.get_input(train)
        border_mode = self.border_mode
        if border_mode == 'same':
            border_mode = 'full'
#         pdb.set_trace()
        X = gpu_contiguous(X)
        conv_out = theano.sandbox.cuda.blas.GpuCorrMM(border_mode=border_mode,\
                subsample=self.subsample)\
                (X, self.W)
#         conv_out = theano.tensor.nnet.conv.conv2d(X, self.W,
#             border_mode=border_mode, subsample=self.subsample)

        if self.border_mode == 'same':
            shift_x = (self.nb_row - 1) // 2
            shift_y = (self.nb_col - 1) // 2
            conv_out = conv_out[:, :, shift_x:X.shape[2] + shift_x, shift_y:X.shape[3] + shift_y]

        return self.activation(conv_out + self.b.dimshuffle('x', 0, 'x', 'x'))

just set optimizer_excluding=cudnn would also work. but it seems like a major setback if cudnn cannot be used

just set optimizer_excluding=cudnn would also work. but it seems like a major setback if cudnn cannot be used

This recent change might have helped, check it out: https://github.com/fchollet/keras/blob/master/keras/layers/convolutional.py#L152-L164

I had this problem and solved it by getting the latest Theano from github. I am using cuDNN v3 with a Titan X on Win8.

great, upgrading to the github theano solved the problem

So, everyone confirms that this issue is definitely solved with the latest Theano and latest Keras?

I had gotten bleeding edge keras and theano 2 weeks ago to no available,
haven't tried since.
On 27 August 2015 23:01:01 François Chollet notifications@github.com wrote:

So, everyone confirms that this issue is definitely solved with the latest
Theano and latest Keras?

Reply to this email directly or view it on GitHub:
https://github.com/fchollet/keras/issues/511#issuecomment-135553852

I am using keras  2c30d503eada5cb5429b6f6d8ced0e996760e40e (github on august 27th) and theano 0.7.0.dev-856aa0b6d3454ff1b4d00575e1ec38f27aedb7d9.

Just tried with keras head 332d43e023073561fec53828ee21e206ac1b34b1 and theano head '0.7.0.dev-dc13bfcaa165b0d2d24ec509944da9f29114470b' using python3.4 mnist_cnn.py on a Tesla K40m prints a nan loss. The when using cpu configuration works fine.

Just for the fun, also tried with python2.7 (instead of python3.4) and there I have the same nan behaviour.

Just adding some more evidence for this.
I am using an iMac with GTX 980M and was seeing the same problem. I was running examples/addition_rnn.py and it never converges on GPU but did on CPU.
Running with optimizer_excluding=cudnn fixes the issue. E.g.
THEANO_FLAGS=device=gpu,floatX=float32,cuda.root=/usr/local/cuda,optimizer_excluding=cudnn python examples/addition_rnn.py
I also updated to the bleeding edge theano as suggested on this thread:
pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git
And this now works fine. I.e. the original failing version now works correctly, as reported by others on this thread.
THEANO_FLAGS=device=gpu,floatX=float32,cuda.root=/usr/local/cuda python examples/addition_rnn.py

Excellent. We'll consider this resolved then.
I believe the NaN loss on GPU reported by @rodrigob is a different issue (which we also encountered in the past). We'll resolve it separately.

Hi all, just ran into this bug (or a very similar bug) running 0.1.3, updating to the current master (c18a9cd405f29040ebb259aef74963c4b2134494) has fixed this problem for me.

Hi all. I fixed the problem by replacing the layer ReLU as SOFTPLUS. Maybe, you can try it.
I use the Bleeding Edge version of Theano and the latest version of Kereas.

Issues still remains, although disabling cudnn optimisation:
Code: mnist_cnn.py with SGD
Graphics: GTX980 Ti
.thenorc:
[global]
floatX=float32
optimizer_excluding=cudnn
[lib]
cnmem=0.7
[nvcc]
fastmath=True
using bleeding edge theano and keras (20dc637)

authors: andykitchen apcode bhokaal2k ddsh dhammack fchollet flyboys3000 jiehanwang lmoesch morgado-developer pcyin rodrigob w0nk0


text:
Added Clip layer for clipping of outputs

DON'T MERGE - LET ME KNOW IF MERGE #36 IS USED - Either way, there is an additional commit that will need to be applied.
This provides the ability to apply a clipping to a Layer. Clipping is sometimes used to defend against output saturation and vanishing gradient.
EX:
model = Sequential()
model.add(Dense(2,1, activation='sigmoid', init='example_normal')) # this example_normal is an additional PR
model.add(Clip(high=.32, low=.20))

sgd = SGD(lr=0.1, decay=1e-6, momentum=0.9, nesterov=True)
model.compile(loss='mse', optimizer='sgd')

A = model._predict(np.asarray([[1,1],[2,2]]))
print A

Yields
[[ 0.31999999]
 [ 0.2       ]]

So what's the problem with this patch? Are clip layers not useful?

source: gharchive/pull-request

authors: alito patyork


text:
Expand softmax for usage in FCNs

Related to https://github.com/fchollet/keras/issues/1169#issuecomment-220265092

Too many assumptions; this would break people who process timeseries data while using the default channels_first.

@fchollet Just to confirm, using TimeDistributed layer with this modified softmax will fail?

I would recommend instead having an axis argument, defaulting to -1. For FCNs with data_format="channels_first", you can then use axis=1.

LGTM, thanks

Hi,
How do we use this in the model? Do we use  Activation with keyword arguments activation="softmax", and axis=1? Or do we need to use Lambda layer?
Thanks

authors: MartinThoma fchollet joelthchao tawantinsuyu


text:
Remove VersionAbstractionFedoraObjectHandler and Fedora2-specific code

Remove VersionAbstractionFedoraObjectHandler and Fedora2-specific code

JIRA Ticket: (None)
What does this Pull Request do?
Removes Fedora2-specific content, and collapses 3 object handler interface/classes down to 2.
How should this be tested?
Automated tests should pass. Any migrations you run (except from a Fedora2 repo) should run the same as previously.
Interested parties
@fcrepo/committers

@bcail :  So if I'm grokking your changes what you've done is move version handling into from VersionAbstractionFedoraObjectHandler into ObjectAbstractionStreamingFedoraObjectHandler so that you can now get both object and version information in one pass.  Is that right?   Just want to make sure I understand the motivation for that particular refactoring.

@dbernstein thanks for looking at this. Basically, I didn't see the need for 3 separate handlers, so I removed one. I think it would work to remove another handler, too, but that might be more work. There's also code/config related to fedora-2 and fedora-2-style disseminators I removed.

authors: bcail dbernstein

repo: fcrepo-exts/migration-utils


text:
Merge memento versioning branch

**Merges memento-versioning branch into master

JIRA Ticket: https://jira.duraspace.org/browse/FCREPO-2713

@dbernstein looks like you'll need to rebase this on master before we can test it.

I'm going to rebase on master and try again.

authors: dbernstein whikloj


text:
hyperdom.html("a.z") makes <a.z> not

I think this is a regression, i.e. an old plastiq.html("a.z") would have created <a class="z">
https://github.com/joshski/bloom-editor/commit/2a891ebcd8e2474abfddb7755d0c074627451f26

I've not been able to reproduce this and there are automated tests on all browsers that show that it works. Can you isolate this any further?

Nah, can't reproduce it now

authors: joshski refractalize

repo: featurist/hyperdom

license: MIT


text:
Update README.md

Use the published version of the buildpack in the setup instructions.

Thank you! ⚡✨

authors: febeling jkutner

repo: febeling/webpack-rails-buildpack


text:
Ability to change log level at runtime

Sometimes when debugging a live issue it would be useful to get trace logs and there's currently no way to do that.

Wrong git repo!

Wrong git repo!

Why? Sounds like something that would be nice to add as an admin API tbh, having to restart the federation every time one wants to change log levels is quite annoying.

IMO, this will just rot in a backlog, and is a lot of engineering effort and complexity for increasingly lower benefits.

I don't think it's a lot of engineering complexity given that there is already support in tracing. But agree not a huge priority.

authors: dpc elsirion justinmoon

repo: fedimint/fedimint


text:
Flaky devimint DKG expected status: VerifyingConfigs current status: ReadyForConfigGen

00:00:00 2024-03-21T06:35:48.695041Z  INFO devimint: Setting up test dir path=/tmp/nix-shell.xDJxNH/devimint-132964-242
00:00:00 2024-03-21T06:35:48.695220Z  INFO devimint::devfed: Starting dev federation
warning: ignoring untrusted flake configuration setting 'extra-substituters'.
00:00:00 2024-03-21T06:35:48.772828Z  INFO devimint: Running DKG
00:00:31 Error: Polling waiting-server-status: VerifyingConfigs failed after 75 retries (timeout: 30s)
00:00:31
00:00:31 Caused by:
00:00:31     expected status: VerifyingConfigs current status: ReadyForConfigGen

https://github.com/fedimint/fedimint/actions/runs/8370642513/job/22918333777
This has been happening recently quite often and needs investigation.

I believe @bradleystachurski is already investigating.

Fixed with https://github.com/fedimint/fedimint/pull/4647 and backported in https://github.com/fedimint/fedimint/pull/4731

authors: bradleystachurski dpc


text:
Weird flake of fedimint-ln-gateway::gatewayd-tests

fedimint-test-all-wasm32-unknown-unknown-ci> 00:00:07 2024-12-18T00:17:33.923159Z  INFO ln_gateway::state_machine: Successfully registered gateway 020085cb4ddc0a92b4a88eaa1dfd1509c1c5d5206573abb8a9db22df20d23569bd with federation 0406afdc71a052d2787eab7e84c95803636d2a84c272eb81b4e01b27acb86c6f
fedimint-test-all-wasm32-unknown-unknown-ci> 00:00:07 2024-12-18T00:17:33.923583Z ERROR fedimint_core::db: error=Other decoding error: Decoding named block field: FederationConfig{ ... invite_code ... }
fedimint-test-all-wasm32-unknown-unknown-ci> 00:00:07 thread 'test_gateway_executes_swaps_between_connected_federations' panicked at /build/source/fedimint-core/src/db/mod.rs:1580:9:
fedimint-test-all-wasm32-unknown-unknown-ci> 00:00:07 Unrecoverable decoding DatabaseValue as ln_gateway::db::FederationConfig; err=Other decoding error: Decoding named block field: FederationConfig{ ... invite_code ... }, key_bytes=0406afdc71a052d2787eab7e84c95803636d2a84c272eb81b4e01b27acb86c6f2a, val_bytes=bbb18c0568ca7b59
fedimint-test-all-wasm32-unknown-unknown-ci> 00:00:07 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fedimint-test-all-wasm32-unknown-unknown-ci> 00:00:07

https://github.com/fedimint/fedimint/actions/runs/12383535974/job/34566407494

@fedimint/lightning

https://github.com/fedimint/fedimint/actions/runs/12417503245/job/34668605487

Likely due to https://github.com/fedimint/fedimint/pull/6570, will investigate as soon as I can

One observation, each time the test fails, the federation ID starts with 0x04, which is the key prefix for FederationConfig
fedimint-test-all-wasm32-unknown-unknown-ci> 00:00:36 2024-12-19T17:41:23.270285Z  INFO ln_gateway::state_machine: Successfully registered gateway 038c8df1f087cd6880fc26175ddac97cd73e4a8de5883daab5692d6b4cb776a5d9 with federation 049f8984de2e18b2651f5e5945c6fb7846c06a59c97d4b2e906ea50ccca39126
fedimint-test-all-wasm32-unknown-unknown-ci> 00:00:36 Unrecoverable decoding DatabaseValue as ln_gateway::db::FederationConfig; err=Other decoding error: Decoding named block field: FederationConfig{ ... invite_code ... }, key_bytes=049f8984de2e18b2651f5e5945c6fb7846c06a59c97d4b2e906ea50ccca391262a, val_bytes=94b18b5cbb871b8c
Not sure yet why that's causing it to crash


text:
Plugin tree - possible?

I work with django-cms, and like the ability to have nested plugins. Simple use case, have a gallery plugin, place picture plugins in it. Or even picture AND video plugins, mixed, if the frontend allows.
Is this somehow possible, with django-content-editor? Or is it not, by design, and will never be? I guess the later, but hope not.

Hi @benzkji
Right now it's not possible. What we do instead is use subregions to automatically group related plugins (e.g. a list of images is automatically grouped into a gallery) https://feincms3.readthedocs.io/en/latest/guides/rendering.html#grouping-plugins-into-subregions
You could add a GalleryPlugin, (for example having a title field or something) and register it with the renderer as follows:
renderer.register(models.GalleryPlugin, "", subregion="gallery")
renderer.register(models.Image, template_renderer("plugins/image.html"), marks={"default", "gallery"})
renderer.register(models.Video, template_renderer("plugins/video.html"), marks={"default", "gallery"})

In the renderer implementation, you'd have something like this:
def handle_gallery(self, plugins, context):
    gallery = plugins.popleft()
    yield render_in_context(
        context,
        "subregions/gallery.html",
       {"gallery": gallery, "slides": [self.render_plugin(plugin, context) for plugin in self.takewhile_mark(plugins, "gallery")]},
    )

So, the content model is powerful enough to do what you want, even though the editor interface doesn't support nesting at this time.
Or what we're doing more recently is adding configurable sections, something like this:
CLOSE_SECTION = "close"

class Section(JSONPluginBase, PagePlugin):
   class Meta:
       verbose_name = _("section")
       verbose_name_plural = _("sections")

   def __str__(self):
       return self.type

class SectionInline(JSONPluginInline):
   color = "#1aa4c5"

DidYouKnowBox = Section.proxy(
   "did_you_know",
   verbose_name=_("did you know box"),
   schema={
       "type": "object",
       "properties": {
           "title": {"type": "string", "title": _("title")},
       },
   },
)
KeepInMindStrategiesBox = Section.proxy(
   "keep_in_mind",
   verbose_name=_("keep in mind / strategies box"),
   schema={
       "type": "object",
       "properties": {
           "title": {"type": "string", "title": _("title")},
       },
   },
)

And then customize the renderer to automatically add plugins to those sections.
I want to clean up the code and add section nesting to the CMS for those more advanced use cases.

Thank you @matthiask !
With the first solution, I could add one gallery per region, as all images and videos would be rendered in there, is that correct? And the visual appearance would not be correct, in the admin, as images and videos would be on the same level as the gallery plugin?
I don't really understand the second example. But if you say "I want to clean up the code and add section nesting to the CMS for those more advanced use cases", does it mean a real tree (with django-tree-inline ;), or something different?
IMHO, hierarchical plugins would be a benefit for this library. It' way more simple (from my developer view), quite a few workarounds would be obsolete, and you just know that you can have hierarchical plugins if you need, or not, if you don't. But yea, it would add complexity.

ah, just now realized the gallery = plugins.popleft(). Thanks again for the insights.

I don't really understand the second example. But if you say "I want to clean up the code and add section nesting to the CMS for those more advanced use cases", does it mean a real tree (with django-tree-inline ;), or something different?

It wouldn't be a "real" tree in the sense of django-tree-queries or something, but would still be a tree with nodes and leaves and everything.

IMHO, hierarchical plugins would be a benefit for this library. It' way more simple (from my developer view), quite a few workarounds would be obsolete, and you just know that you can have hierarchical plugins if you need, or not, if you don't. But yea, it would add complexity.

Yeah, that's the thing. It's always a trade off. The main benefit of using django-content-editor is that you have very little additional code -- almost everything is handled by the Django admin interface's inlines/formsets. Once you leave that path you need much more code to handle all the new cases you get. So, it's either simple in the way how the data structure directly represents the tree or simple in the way how it's implemented. You cannot have both.

ah, just now realized the gallery = plugins.popleft(). Thanks again for the insights.

Yes, you just need to add a plugin with different marks in-between, or add the GalleryPlugin itself (since it doesn't have the gallery mark in my example!) to start another gallery.

It wouldn't be a "real" tree in the sense of django-tree-queries or something, but would still be a tree with nodes and leaves and everything.

yes, nodes and leaves, no need for left, right and other such things ;) is this feature in the development pipeline, or is it more of a nice to have, for you?

I'm not 100% certain it will happen but it's definitely something I want to do. Automatic grouping of plugins is nice, but a more explicit way to present it would be better.

In cases like that I tend to use a normal model of its own e.g. Gallery, which may be a PluginBase or not depending of it having mixed content. And for the Page a GalleryPlugin, which is just a foreign key to Gallery. So editing is two steps: editing a gallery and adding it to the page via the GalleryPlugin. Bonus: you can add the plugin multiple times if needed and when you have say hundreds of images in one gallery sorting them may be easier in its own model.

Yes, I like that approach as well!

@gradel yep, know this, that's my default with forms.

By the way, nested sections are now possible: https://406.ch/writing/django-content-editor-now-supports-nested-sections/

Played around and built an accordion app with "chained" foreign keys to mimic a plugin tree.
https://github.com/gradel/feincms3-accordion

authors: benzkji gradel matthiask

repo: feincms/django-content-editor


text:
Testar possíveis tecnologias e padrões para IoT

Testar, além de MQTT, possíveis tecnologias e padrões para conectar embarcados, e IoT em geral, na plataforma unificada deste projeto, que já contemplará HTTPS.

1- Como criar um servidor de websocket para arduino(esp-32):
https://www.youtube.com/watch?v=ZbX-l1Dl4N4&t=143s
2- Integração de um servidor web com Esp-32, usando websocket:
https://www.youtube.com/watch?v=mkXsmCgvy0k&t=367s
3- Servidor web com websocket para outros programas controlarem uma rasp usando Node JS(toda a documentação e códigos na descrição:
https://www.youtube.com/watch?v=YvsOUkTUsxg

De acordo com #1, o sistema foi atualizado. O sistema usará REST API + JSON, sem a necessidade de MQTT ou WebSockets.

authors: boidacarapreta leojungneves

repo: feira-de-jogos/nuvem


text:
Exception from HRESULT: 0x8007000B

Hi,
I am trying to implement your library is my software, and I get error:

Solution exception:An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

I really need to run the code on 64 bit, as I cannot load native code minkowski.dll that is 32 bit (I assume it is) on 64 bit environment (I assume this is the main error).
Is there any way to compile it under 64 bits?

Yes, you can compile minkowski.dll under 64 bits. Just switch compiler like this:

Thank you for reply. I am trying to do this for an hour in visual studio 2017 command prompt.
Do you have any idea why it says:
C:\Program was unexpected at this time.

I think, 'System32' folder appears because you run cmd as administrator
Try this https://stackoverflow.com/questions/43372235/vcvarsall-bat-for-visual-studio-2017/43570522
Try this https://stackoverflow.com/questions/42794845/visual-studio-community-2017-cl-exe
Or you can try this x64 dll version minkowski.zip

@fel88 :   Thank you man, it works like a charm.
           But sometimes on my other PC it produces SEH exception while Calling MinKowski.setData() , i clearly know that the exception happens in Minkowski.dll but i dunno how to solve this. It works perfectly fine in one PC but on the other it throws this exception. Can you help, If Possible!


text:
🛑 PasImpCh is down

In 7c21383, PasImpCh ($SITE_PASIMPCH) was down:

HTTP code: 0
Response time: 0 ms

Resolved: PasImpCh is back up in 9190ddb after 13 minutes.

repo: felipesbs/bitrate-uptime


text:
For-loop semantic analysis doesn't check if the variable used is mutable or not.

The for-loop semantic analysis currently doesn't doesn't check if the variable used is mutable or not, hence I get the following error from gcc:

_gen_test.c:4:13: error: read-only variable is not assignable
for (;a<5; a=a+1) {
           ~^
1 error generated.

I think that perhaps it shouldn't be the for-loop that does the checking, it should be the assignment expression.

We first need to create an analyzer function for for loops in semantic.c.
Then, you'd have to call that function from analyzeStructuredStatement.

repo: felixangell/alloy


text:
File path doesn't work when spaces in the file/folder name

I have just installed the PHP Extension Pack and opened my folder to my PHP project. I noticed a bunch of warnings and when I click on the warning I get the error "Unable to open 'File.php': File not found (c:...My+Folder\File.php)." I copied the path to Windows file explorer and it could not find the file. However if I replace the + with a space then it opens the file.

https://github.com/felixfbecker/php-language-server/issues/130

authors: felixfbecker nfplee

repo: felixfbecker/vscode-php-debug

license: mit

license_source: bigquery


text:
(7.x.x) Example - Font Class - Implement custom type : SVG

This example shows and validate a way to implement custom type font in 7.x.x
The implemented format is SVG Font => ExtrudedGeometry

A custom font type requires :

Its own FontVariant class
Any other classes that comes with FontVariant implementation :  TypographicFont, TypographicGlyph, InlineGlyph, GeometricGlyph.

This implementation validate that one implemented by extending FontVariant abstract class, all basic font properties are still working as expected : kerning, letterSpacing, lineHeight,
Documentation, and extending three-mesh-ui ( adding custom properties : depth, etc... ) would still remains, but could be done after first 7.x.x release.

Impressive work, congrats !
It seems you included the commit of Friday were you reworked how static files are bundled, is that intended ?

Nope. Thanks for noticing it.
I was too lazy and didnt want to add entry in the example array, so I based this work on the other branch. Forgot to cherry pick it.

authors: felixmariotto swingingtom

repo: felixmariotto/three-mesh-ui


text:
Made a copy button on paste page

I've never coded in Go ever before, so it's possible that this just does not work, but I thought I'd take a shot at it. Any fixes I have to make, I can, I just thought it might be helpful for people to be able to copy without selecting all and copying themselves.

Bumping for visibility.

repo: felixphew/pokepaste


text:
Unable to uninstall windows-build-tools using /Uninstall parameter

I installed windows-build-tools using the following command:
npm install --global --production windows-build-tools
Now I want to uninstall it. So I entered the following command:
npm --vcc-build-tools-parameters='[""/Uninstall""]' install --global windows-build-tools
But I am unable to uninstall it. I get the following output:
C:\WINDOWS\system32>npm --vcc-build-tools-parameters='[""/Uninstall""]' install --global windows-build-tools

> windows-build-tools@1.3.2 postinstall C:\Users\pkim\AppData\Roaming\npm\node_modules\windows-build-tools
> node ./lib/index.js

Downloading BuildTools_Full.exe
Downloading python-2.7.13.msi
[>                                            ] 0.0% (0 B/s)
Downloaded python-2.7.13.msi. Saved to C:\Users\pkim\.windows-build-tools\python-2.7.13.msi.
Starting installation...
Launched installers, now waiting for them to finish.
This will likely take some time - please be patient!
Waiting for installers... -Successfully installed Python 2.7
Waiting for installers... -Successfully installed Visual Studio Build Tools.
+ windows-build-tools@1.3.2
added 128 packages in 72.392s

How can I uninstall windows-build-tools? Am I using /Uninstall parameter incorrectly?
I looked at #51 and it suggests uninstalling Microsoft Visual C++ Build Tools from Program & Features settings in Windows. If so, what is the use of /Uninstall parameter?

What worked on for me

Navigating to where build tools downloaded the files (cd c:\Users<YOUR-USER>.windows-build-tools) in a cmd with admin rights
Ran "BuildTools_Full.exe /Uninstall /Force /S"
Ran Python installer to uninstall

It's not the most elegant but it gets the job done. The alternative was to script in PowerShell which I know nothing about. See this repository ps1/launch-installer.ps1 where I adapted the script from

Am I using /Uninstall parameter incorrectly?

Definitely not. Your command line is installing windows-build-tools via npm. You're just telling it to pass /Uninstall to the build tools while doing so.
You probably want to do what @ammonvictor suggested and npm uninstall the module itself.

We sadly don't remove the Visual Studio C++ Build tools or Python when you uninstall. I've updated the title of he issue.
I'm frankly a bit afraid of breaking too many user's environments when we auto-remove anything from the system, but npm's hooks would allow us to run code and therefore remove the C++ Build Tools and/or Python programmatically.
I'd love to see a PR!

authors: ammonvictor felixrieseberg kimbaudi oliversalzburg

repo: felixrieseberg/windows-build-tools


text:
Update chart grafana to 8.4.0

This PR contains the following updates:

Package
Update
Change

grafana (source)
minor
8.3.7 -> 8.4.0

Release Notes

grafana/helm-charts (grafana)
v8.4.0
Compare Source
The leading tool for querying and visualizing time series and metrics.
What's Changed

[grafana] add value to make extraConfigmapMounts and extraSecretMounts optional by @tibuntu in https://github.com/grafana/helm-charts/pull/3250

New Contributors

@tibuntu made their first contribution in https://github.com/grafana/helm-charts/pull/3250

Full Changelog: https://github.com/grafana/helm-charts/compare/loki-distributed-0.79.2...grafana-8.4.0
v8.3.8
Compare Source
The leading tool for querying and visualizing time series and metrics.
What's Changed

[grafana] Update Helm test annotations to new format by @ibakshay in https://github.com/grafana/helm-charts/pull/3251

New Contributors

@ibakshay made their first contribution in https://github.com/grafana/helm-charts/pull/3251

Full Changelog: https://github.com/grafana/helm-charts/compare/tempo-distributed-1.15.3...grafana-8.3.8

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠ Warning: custom changes will be lost.

repo: fenio/homelab


text:
spin update An easier way to update to latest spin version

I wondered if there is an easier way to update the spin CLI than installing the artifact again using  the installation docs for every new release
Would like to know your input on the same.

Certainly possible but self-update mechanisms are quite tricky to get right, especially cross-platform.

authors: lann me-diru

repo: fermyon/spin


text:
[Bug] Lists containing images don't render correctly inside  elements in Chrome

If an <Accordion> element contains a list (doesn't matter if ordered or unordered) and one of the list items contains an image, then the list bullets/numbers are displayed on separate lines - see the image below.

The issue seems to have been introduced sometime after October 24, 2024; previously the lists were displayed correctly.
Doesn't matter if images are embedded using Markdown syntax ![](...) or using Fern's <Frame> component.
Lists outside accordions are not affected.

I'm not sure but it looks like the issue is caused by this CSS rule:
.fern-accordion li {
  list-style-position: inside;
}

In the meantime I added the following to our custom CSS as a workaround:
.fern-accordion li {
  list-style-position: revert;
}

CLI Version (from fern.config.json)
0.45.0
Minimal API Specification
n/a
Actual UI Behavior

Expected UI Behavior
The bullets and text should be on the same line.

Steps to Reproduce
In a .mdx file include this:
<Accordion title="Test">
List containing an image:

* apples
* oranges

  ![](https://picsum.photos/100)

List _followed_ by an image:

* apples
* oranges

![](https://picsum.photos/100)

Just a list:
* apples
* oranges

</Accordion>

Environment Details
The issue can be observed in:

Chrome (latest version) on macOS 15.0.1

But Safari is fine

Chrome on Android

Seems to be fixed now.

repo: fern-api/fern


text:
Support 'buffer' encoding

Since Node.js v10.0.0 crypto.DEFAULT_ENCODING is deprecated and the default value is now 'buffer', which makes methods default to Buffer objects. I am running into an issue where Buffer.from is called on a string, but the encoding is buffer. That throws an exception because Buffer.isEncoding doesn't support the buffer encoding.
I'd suggest to add this to allow users to integrate this with a more up-to-date version of node.
Would it already work if we just adjust Buffer.isEncoding and add buffer as one of the supported types? Or do we need to do more to make this work?

I haven't had time to look into this, but I would accept a PR that fixes this issue. Cheers!

repo: feross/buffer


text:
Unspecified JSON.parse

It's not specified in the manual that the string that gets passed to data event listener gets decoded if it looks like JSON. This behaviour is implicit and the worst thing is that it works on strings that look like JSON but are not JSON. It was a really bad idea to toss
try {
  data = JSON.parse(data)
} catch (err) {}

into the source.

Thanks for the issue! I think you might be right.
Has this been an issue for you in real production code? Or is this primarily a theoretical objection?

@feross Yep, that's from production.

Updated the documentation so this behavior is clearer.

Um, sorry, that was not a question, but a bug. This is not a kind of behaviour that should be documented, but burned with fire. It spontaneously parses text as if it was JSON on some strings in production. If somebody was up to use this library in such cases, he'd have to escape strings (e.g. by adding and removing a char in the front of the string) to counteract this behaviour.

I don't appreciate the snark. You're not paying for simple-websocket, so please don't act so entitled.
That said, I happen to agree with you. The documentation update was better than nothing, but the behavior should be removed. That is now done in https://github.com/feross/simple-websocket/commit/803716d3b2499d45f6144709a5e5527ea13a7b64 and 4.0.0.

@feross I've just got tired by the fact that out of a hundred reported bugs there're no more than five that get really fixed. Sorry, was in a bad mood that evening :/

No problem :) Software is so hard. So many issues, so little time. Thanks again for the report.

authors: feross polkovnikov-ph

repo: feross/simple-websocket


text:
ブキ統計が遅い

こういうやつが4回走るので死ぬほど遅い。
一回にまとめると早くなる（かも）
SELECT MAX("weapon"."key") AS "key", MAX("weapon"."name") AS "name", MAX("subweapon"."key") AS "sub_key", MAX("subweapon"."name") AS "sub", MAX("special"."key") AS "special_key", MAX("special"."name") AS "special", COUNT(*) AS "count", SUM("battle_player"."kill") AS "total_kill", SUM("battle_player"."death") AS "total_death", SUM(CASE WHEN "battle"."is_win" = TRUE AND "battle_player"."is_my_team" = TRUE THEN 1 WHEN "battle"."is_win" = FALSE AND "battle_player"."is_my_team" = FALSE THEN 1 ELSE 0 END) AS "win_count", SUM(CASE WHEN battle_player.point IS NULL THEN 0 WHEN battle.is_win = battle_player.is_my_team THEN battle_player.point - 300 ELSE battle_player.point END) AS "total_point", SUM(CASE WHEN battle_player.point IS NULL THEN 0 ELSE 1 END) AS "point_available" FROM "battle_player" INNER JOIN "battle" ON "battle_player"."battle_id" = "battle"."id" INNER JOIN "lobby" ON "battle"."lobby_id" = "lobby"."id" INNER JOIN "weapon" ON "battle_player"."weapon_id" = "weapon"."id" INNER JOIN "subweapon" ON "weapon"."subweapon_id" = "subweapon"."id" INNER JOIN "special" ON "weapon"."special_id" = "special"."id" WHERE ((((((((("battle"."rule_id"=1) AND ("lobby"."key" <> 'private')) AND (NOT ("battle"."is_win" IS NULL))) AND (NOT ("battle_player"."weapon_id" IS NULL))) AND (NOT ("battle_player"."kill" IS NULL))) AND (NOT ("battle_player"."death" IS NULL))) AND ("battle_player"."is_me"=FALSE)) AND (("lobby"."key"='standard') OR (("lobby"."key"='fest') AND ("battle_player"."is_my_team"=FALSE)))) AND (NOT ("battle_player"."point" IS NULL))) AND ((("battle"."is_win" = battle_player.is_my_team) AND ("battle_player"."point" > 300)) OR (("battle"."is_win" <> battle_player.is_my_team) AND ("battle_player"."point" > 0))) GROUP BY "battle_player"."weapon_id"

https://github.com/fetus-hina/stat.ink/commit/2956b4d567fbb4fac352b7ed66fae93d3216fa6a


text:
Exception on start in JUCE plugin host when previously saving the filtergraph with plugin open

The title might be a bit misleading because this only happens if one does not resize() the level meter sources in prepareToPlay(), however I thought it might be good to add this to the readme.
To reproduce, open a plugin with level meters in the juce plugin host, save the filter graph (ctrl+s) while the plugin is open, then restart the plugin host.
The exception is an out of range exception which occurs in LevelMeterSources.h in getMaxLevel():
float getMaxLevel (const int channel) const
{
    return levels.at (size_t (channel)).max;
}

The obvious fix is to call resize() on the level meter sources before processing audio. I didn't do that because I followed the tutorial and it wasn't done there.

Thanks for the heads up, I will update the readme/tutorial.

Thanks for the report.
The resize in measureBlock() is gone, so there is no possibility for a race condition any more.

authors: cornzz ffAudio


text:
Token environment variable not picked up

When trying to deploy the exporter via docker compose, the token environmental token is not getting picked up.
time="2023-01-04T00:54:51Z" level=fatal msg="invalid config" error="No token configured"
  -c, --config string   Config file to use
  -l, --listen string   Address for the exporter to listen on (default "[::]:9806")

This is using the below compose file.
version: '3.7'
services:
  unms-exporter:
    image: quay.io/ffddorf/unms-exporter
    container_name: unms-exporter
    environment:
      - UNMS_EXPORTER_TOKEN="instance.unmsapp.com=token"
      - TZ=Australia/Melbourne
    ports:
      - 9806:9806
    restart: unless-stopped

I was able to get around this by passing through a config file instead. Slight gotcha that stopped me for a while is there needs to be no space between the -c or --config declaration and the file path. Suggest updating the Dockerfile to use an entrypoint rather than a command so end users can specify parameters by adding to the command.
Working docker compose file below
version: '3.7'
services:
  unms-exporter:
    image: quay.io/ffddorf/unms-exporter
    container_name: unms-exporter
    environment:
      - TZ=Australia/Melbourne
    volumes:
      - /config/prometheus/unms-exporter.yaml:/config/unms-exporter.yaml
    ports:
      - 9806:9806
    restart: unless-stopped
    entrypoint: ["/usr/local/bin/unms-exporter"]
    command:
      - '-c/config/unms-exporter.yaml'
      - ```

This is likely because the latest changes on main had not been part of a release, so they were not present on the latest tag in the registry.
I just released v0.2.0 which pushed a new image to the registry?
Can you try again with the environment variable?

One note about your trouble with the config file parameter: shell args needs to be provided as lists, so these variants should work:
    command:
      - "-c"
      - "/config/unms-exporter.yaml"

OR
    command: "-c /config/unms-exporter.yaml" # not using a list will use shell mode which allows seperating args with whitespace

closing for lack of activity

@mraerino sorry, missed the notification. Putting the command as a list worked for me, however using the environment var for the token instead of using the config file did not.

Environment VARS are now working as intended.

authors: mraerino southerngrampiansshirecouncil

repo: ffddorf/unms-exporter


text:
Update epub2txt.py

import Iterable from collections.abc

Thanks for the pr.

I clicked merge but somehow the merge did not go through. I am not  too familiar with the process. Thanks anyway.

authors: ffreemt sangjeedondrub


text:
US33-AddViaDynamically

Existe um problema para salvar uma prescrição quando existe uma solicitação de Exame na mesma. Não conseguimos encontrar a causa da raiz do mesmo, e o mesmo vem de histórias passadas.

Coverage decreased (-1.04%) to 94.26% when pulling c0b9557d93fbcb13d5bc07eb441318daec3f0c6e on devel into dd2e668afe3cec5c4fdcc52ed892e91f718b8524 on master.

O pull request será recusado pelo decréscimo excessivo da cobertura de testes do código.

authors: Ronyell coveralls joaopaulonsoares


text:
List of supported/unsupported Clonezilla image types?

It looks like clonezilla-util is unable to mount the image I created, because I used Only dd option and clonezilla-util  requires partclone.
[23:25:12 INF] Indexed 237.1 GB / 237.1 GB (100%)
[23:25:12 INF] Indexed 237.1 GB / 237.1 GB (100%)
Index written to 'C:\Program Files\clonezilla-image-mount-util\cache\3aa834abbde88eac\sdb2.gztool_index.gzi.wip'.
Built index with 45354 access points.

[23:25:12 INF] Finished generating gzip index. Moving to final location: C:\Program Files\clonezilla-image-mount-util\cache\3aa834abbde88eac\sdb2.gztool_index.gzi
[23:25:15 INF] [2023-11-09-08-IMP_boot_issues_after_RAID1_img] [sdb2] Loading partition information
[23:25:16 ERR] [2023-11-09-08-IMP_boot_issues_after_RAID1_img] [sdb2] Error while opening partition
System.Exception: Unknown partclone image version: ☼
   at libPartclone.PartcloneImageInfo..ctor(String containerName, String partitionName, Stream readStream, IPartcloneCache cache)
   at libPartclone.PartcloneStream..ctor(String containerName, String partitionName, Stream inputStream, IPartcloneCache cache)
   at libClonezilla.Partitions.PartclonePartition..ctor(String originFilename, PartitionContainer container, String partitionName, Stream compressedPartcloneStream, Nullable`1 uncompressedLength, Compression compressionInUse, IPartitionCache partitionCache, IPartcloneCache partcloneCache, Boolean willPerformRandomSeeking)
   at libClonezilla.PartitionContainers.ClonezillaImage.<>c__DisplayClass3_0.<.ctor>b__1(String partitionName)
[23:25:16 INF] [2023-11-09-08-IMP_boot_issues_after_RAID1_img] [sdb3] Finding optimal decompressor (seekable/sequential)
[23:25:23 INF] [2023-11-09-08-IMP_boot_issues_after_RAID1_img] [sdb3] Loading partition information
[23:25:23 ERR] [2023-11-09-08-IMP_boot_issues_after_RAID1_img] [sdb3] Error while opening partition

Am I correct about this?
Is there a more-or-less complete list of supported / unsupported Clonezilla options? Is it only "partclone" that is actually supported?
Here's the contents of myInfo-saved-by-cmd:
/usr/sbin/ocs-sr -q1 -c -j2 -ntfs-ok -z1p -i 4096 -sfsck -senc -p cmd savedisk finename sdb
The dd vs partclone in the Clonezilla advanced mode menu, just for reference:

Thanks for the detailed report Igor! I have a fix which I'm testing now, and I'll release an update tomorrow.

I've encountered some issues, so it'll be a while longer

It's good to know that you assume that this type of images should be supported, at least :)
The ability to get a few files out of the image without unpacking the whole image is quite valuable.

Hi Igor,
v2.1.0 now supports dd-based Clonezilla images.
Please let me know how it goes.
Cheers!
Fidel

I can confirm this works now!
Thanks a lot!

Awesome!! Thanks for confirming 😁

repo: fiddyschmitt/clonezilla-util


text:
Client Allocation Request for: Starry sky in Yunnan

Client Allocation Questions
Core Information

Name: Starry sky in Yunnan
Website / Social Media: https://ah22192341-1.icoc.vc/
DataCap Requested: 5TiB
Addresses to be Notarized: f3roqgq2iyh5rrzkfdipcw4vpn7pj5b2vx4m2vxbi6t7rj7aodaccuglaeaersukth34clwwknbkgez6eah4da
Notary Requested: Rin-huang

Client Allocation Questions
Core Information

Name: Starry sky in Yunnan
Website / Social Media: https://ah22192341-1.icoc.vc/
DataCap Requested: 5TiB
Addresses to be Notarized: f3roqgq2iyh5rrzkfdipcw4vpn7pj5b2vx4m2vxbi6t7rj7aodaccuglaeaersukth34clwwknbkgez6eah4da
Notary Requested: Rin-huang
请问能否提供一下贵公司Filecoin +项目负责人的联系信息？ 邮箱或者微信都可以，谢谢！
Can you provide the contact information of the person in charge of your company's Filecoin + project? Email or WeChat is fine, thank you!

hey @1am5UP3RasM4R10
email:liyunzhi@grandhelmsman.com
WeChat:13169628872

This user’s identity has been verified through filplus.storage


text:
*FIX pin to start

Description
pin to start crashes FILES app
Steps To Reproduce
.
Requirements
.
Files Version
3.0.8.0
Windows Version
Windows 11 PRO 22H2
Log File
.

Thank you for the report, we're tracking this in #13947.

repo: files-community/Files


text:
Code Quality: Merged App.ValueConverters with App.Converters

Resolved / Related Issues

[ ] Were these changes approved in an issue or discussion with the project maintainers? In order to prevent extra work, feature requests and changes to the codebase must be approved before the pull request will be reviewed. This prevents extra work for the contributors and maintainers.
Closes #issue...

Validation
How did you test these changes?

[ ] Did you build the app and test your changes?
[ ] Did you check for accessibility? You can use Accessibility Insights for this.
[ ] Did you remove any strings from the en-us resource file?

[ ] Did you search the solution to see if the string is still being used?

[ ] Did you implement any design changes to an existing feature?

[ ] Was this change approved?

[ ] Are there any other steps that were used to validate these changes?

Open app ...
Click settings button ...

Screenshots (optional)
Add screenshots here.

Ready for review.

Ready for review.

@yaira2 @ferrariofilippo can you review?


text:
Fix layout selection when navigating using the addressbar

Fixes an issue for which the wrong layout mode is selected when navigating using the address bar (clicking on the path bar components)

:shipit:


text:
Change GSX to RESTful API Apple June 2019

Hi Filipp,
We have news that Apple for June 2019 is going to change everything GSX to RESTful API, similar Reservation Manager, do you know anything about this news, on the other hand if you want us to collaborate with the project you tell us where we can start, we would be delighted.

Hi,
Yes, I got the notification from Apple a while back. The library will be upgraded to support the new API, hopefully with minimal effect on exisiting systems that use it, but I haven’t started working on it yet. It appears there will be a transition period where some APIs will use the old SOAP protocol, which might make migrating a bit tricky, but I’m sure we’ll figure it out. :-)
Thanks,
-filipp

On 12 Nov 2018, at 15.00, INFNITYLOOP SISTEMAS notifications@github.com wrote:
Good Filipp,
We have news that Apple for June 2019 is going to change everything GSX to RESTful API, similar Reservation Manager, do you know anything about this news, on the other hand if you want us to collaborate with the project you tell us where we can start, we would be delighted.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Hi Filipp,
Where can we track the progress and updates on the new api changes in the library.
Thanks

@filipp Do you have any new lib for supporting GSX new REST APIs?

Do you know if Apple has released any DETALIED information on the transition to REST APIs?

authors: filipp gunwantsonawane julianram kirai nch-odoo

repo: filipp/py-gsxws


text:
curl hlavicky

Zdravim,
jste si jist ze se posilaji hlavicky v curl, ktere definujete v promenne $headers?
$headers = array(
            'User-Agent: PHP-SOAP',
            'Content-Type: text/xml; charset=utf-8',
            'SOAPAction: "' . $action . '"',
            'Content-Length: ' . strlen($request),
        );
        $options = array(
            CURLOPT_VERBOSE        => false,
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_POST           => true,
            CURLOPT_POSTFIELDS     => $request,
            CURLOPT_HEADER         => $headers,
            CURLOPT_HTTPHEADER     => array(sprintf('Content-Type: %s', $version == 2 ? 'application/soap+xml' : 'text/xml'), sprintf('SOAPAction: %s', $action)),
            CURLOPT_SSL_VERIFYPEER => false
        );

CURLOPT_HEADER - TRUE to include the header in the output.
CURLOPT_HTTPHEADER - An array of HTTP header fields to set, in the format array('Content-type: text/plain', 'Content-length: 100')

Vy sice nastavite hlavicky do promenne headers, ale http hlavicky posilate pouze content-type + soapaction

Díky za připomínku 👍. V další verzi bude opraveno.

Do připravované verze 3.1.0 je toto opraveno + možnost modifikovat již stávající nastavení curl a možnost přidat nové parametry curl

authors: filipsedivy lampaczcz

repo: filipsedivy/PHP-EET


text:
handle cyclic dependancies when inserting records

To resolve #59
Currently fflib does not handle cyclic dependancies. If a new record has a lookup to another new record of the same SObjectType, the records are inserted, but the lookup field is left blank.
I solved this by keeping a track of reflective (or self-referencing) relationships in a separate collection when the record being referenced has a blank Id (i.e. hasn't been inserted yet).
When committing the uow, I let all the records of an SObjectType be inserted as per usual, but then if one or more records from a particular SObjectType collection has reflective relationships, I follow up by resolving those relationships and updating the records in a second pass.
This solution does have overhead, but it is predictable and reliable (I've been using it for a few months now).
If a collection of SObjectType in the UoW has reflective relationships to be resolved, there will be +1 dml and x2 dmlrows incurred for that SObjectType (not x2 across the entire UoW).

Wow thanks for this, it looks quite elegant and light weight which i like! :+1:
Question though, what depth of cyclic dependency does it go to?
Can I insert Accounts that reference A > B > C > D etc...?

Also does this help with the use cases referenced here https://github.com/financialforcedev/fflib-apex-common/pull/23?

Technically, it's infinite. You could insert 5000 records that form a chain of records.
1x insert of 5000 records
no relationships resolved
1x update of 5000 records
all relationships resolved
This works because you can't make a self relationship required on the platform.

Ah yes i see, on the face of it i started to wonder if doing a load of inserts then updates (admittedly on a a subset of the records) is inefficient compared to a directly coded solution not using UOW (since UOW is really supposed to aid in being performant). But then in contrast would you in reality without UOW burn through more DML statement invocations, i think so? I've also ping'd a couple of other contributors on the other PR to review this as well, hope thats OK.

Playing devils advocate here, but yet wanting to be sure we understand the pros and cons over direct vs UOW approaches, i guess the direct approach would not do any update's and perhaps perform better as updates are more expensive than inserts. Hmmm... tough one this, its elegant in its simplicity.... but potentially has some hidden costs not apparent to the developer using UOW...

Also, while the platform does not insist on relationships being populated on insert, i guess this is dependent on Apex Trigger logic on objects not insisting on the relationship being present on insert.
BTW, have you seen some of the extensibility points thats been added to UOW recently? Maybe this feature can be added via subclassing the existing one?

This resolves the primary use-case that I had for my original pull request, i.e. objects that have relationships with themselves. The solution seems elegant enough to me and guarantees (as far as I can see) that you only have as many DML statements as you have levels in your hierarchy.
The main problem I have with it is that the relationships are not populated on insert. If you're architecting the whole solution this isn't necessarily a problem as you can work around it, but it's not the way people tend to work with the platform and has a potential knock-on impact with managed package, existing triggers, workflow, processes, etc. I'm also generally against anything that forces people to work in an unnatural way.
This also doesn't solve is more complex object hierarchies, for example, although these are rare (I only have one example where I've needed this):
Object 1 (Type 1)
       |
Object 2 (Type 2)
       |
Object 3 (Type 1)

I do have to remind myself that fflib is for use in managed packages as well. I'm using it for a new project, so I've got a bit of tunnel vision as to possible use cases. I'm using the UOW to simplify my test setups, and that's where I'm hammering it the hardest, with cyclic dependencies right in the middle of the object hierarchy.
I first solved this by going into a loop, inserting the records where all the relationships were resolvable and repeating until all were inserted. This worked great until I got two records of the same object type that reference each other. Needless to say, Infinite loop ensues and neither record gets inserted. So I tried this insert, then upsert method because I could guarantee it would work regardless of how complicated the dependencies got.
I'll go back to the drawing board and have another crack at it. I've just had an idea for how to deal with those pesky records that look up to each other, and even the objects that lookup up to each other.

If I were to write out code manually that had records/objects that reference each other anyone would do it like this
// Insert the first record
SObject one = new SObject();
insert one;

// Insert the second record, and reference the first
SObject two = new SObject();
two.Lookup_Left__c = one.Id;
insert two;

// Update the first record to reference the second
one.Lookup_Right__c = two.Id;

So there's definitely a dml update in the mix here. This also applies to objects of different types. One is inserted first, then you must come back and update it. The question that needs to be answered is, if you have cross referencing records like this, which gets inserted first? The logical answer is, whichever was registered with the UoW first.

In my scenario I've to relate an existing record with a new record that are being created, and it worked very well for me! I'm not seeing a problem to use that. It's far better than my direct coded solution. @afawcett

Great feedback gents, i do wonder if the new extensibility in UOW allows for subclassing to provide a choice of 'uow strategies' to be chosen by the developer based on needs? Perhaps this might help balance optimisation vs flexibilty, rather than trying to teach UOW to handle all cases? Just a thought. @loganm thanks so much for moving this along in the meantime, looking forward to your next thoughts! :+1:

Is this live already?

@afawcett @loganm is there an issue with merging this into master? it looks like a solid approach and will meet most use cases that I can identify and overhead is relatively small. I've hit my first cyclic relationship since adopting this lib and I'm really reluctant to move away from using uow or implementing some hacky insert solution.

@loganm  thanks so much for driving this discussion and others here. This is actually one of three PR's on this topic. I am have been reviewing and discussing with the authors on them all over the last few weeks. I think its best to go forward with this https://github.com/financialforcedev/fflib-apex-common/pull/195 as it covers more use cases and has some reporting aspects to it that will be useful. So please continue to contribute and ensure your needs and if needed impl approach is considered over in the discussion for this PR. Thus i am recommended we close this PR. @agarciaodeian @stephenwillcock

@afawcett agreed. #195 looks like a solid starter.

authors: adtennant afawcett dudunato loganm maximorojr thegogz

repo: financialforcedev/fflib-apex-common


text:
Added automated build from SFDC for FINOS members

This adds a new page to the landscape with all the current FINOS members. Data is pulled from SFDC on a nightly basis as an automated job.
To make this work, please follow the two prerequisite items outlined at https://github.com/jmertic/landscape-tools/blob/master/INSTRUCTIONS.md#recommended---automatic-build-with-github-actions
You can also embed this landscape in your website by adding this HTML...
<!-- Embed list of all FINOS members -->
<iframe src="https://landscape.finos.org/pages/members" frameborder="0" id="landscape" scrolling="no" style="width: 1px; min-width: 100%; opacity: 1; visibility: visible; overflow: hidden; height: 1717px;"></iframe>
<script src="https://landscape.finos.org/iframeResizer.js"></script>

Ping me if you have questions on this.
Signed-off-by: John Mertic jmertic@linuxfoundation.org

Build failed because of:
no headquarter addresses for interwork-alliance-e317 at https://www.crunchbase.com/organization/interwork-alliance-e317
InterWork Alliance, Inc. either has no crunchbase entry or it is invalid

Build failed because of:
no headquarter addresses for interwork-alliance-e317 at https://www.crunchbase.com/organization/interwork-alliance-e317
InterWork Alliance, Inc. either has no crunchbase entry or it is invalid

Build failed because of:
no headquarter addresses for interwork-alliance-e317 at https://www.crunchbase.com/organization/interwork-alliance-e317
InterWork Alliance, Inc. either has no crunchbase entry or it is invalid

Waiting for Crunchbase to update which will fix this

Build failed because of:
no headquarter addresses for interwork-alliance-e317 at https://www.crunchbase.com/organization/interwork-alliance-e317
InterWork Alliance, Inc. either has no crunchbase entry or it is invalid

Build failed because of:
no headquarter addresses for interwork-alliance-e317 at https://www.crunchbase.com/organization/interwork-alliance-e317
InterWork Alliance, Inc. either has no crunchbase entry or it is invalid

This PR could be merged now, as we have adapted our metadata-tool to pull members from landscape, but the members tab still looks a bit off - https://deploy-preview-88--finos-landscape.netlify.app/members
Also, I'd like to internally review the list of members and get the ok from @toshaellison and @grizzwolf .
I will play with layouts and margins, using https://deploy-preview-88--finos-landscape.netlify.app/pages/members as reference.
@jmertic - I'll keep you posted!

In terms of formatting I don't think it works. It's really hard to read some of our members, including Platinum members. I think Grizz has logos to use that might help with this.
In terms of the list:

@toshaellison I'd be thrilled to get better logos for any of these members. If you have them, we can add them right into the LF SFDC account records - let me know if you need help there.

@jmertic - we're pausing this while we're working on our new website and come up with a consolidated approach for projects and members landscape.

authors: CNCF-Bot jmertic maoo toshaellison

repo: finos/finos-landscape


text:
Search and configure certificates for TLS

What type of PR is this?
#enhancement
What does this PR do / why is it needed ?
Searches for JVM SSL configurations and configures them into the Apache HttpClient in service store
Which issue(s) this PR fixes:

Fixes #
Other notes for reviewers:
Does this PR introduce a user-facing change?

@amatts44 - I submitted a PR last night for the same feature :) https://github.com/finos/legend-engine/pull/969

closing duplicate PR

repo: finos/legend-engine


text:
Function with empty boolean resolves to true

type Foo:
    someBoolean boolean (0..1)
    alwaysFalse boolean (1..1)

func ExpressionWithEmptyBoolean:
    inputs:
        foo Foo (1..1)
    output:
        result boolean (1..1) // output cardinality validation should validate that expression resolves to optional

    set result:
        foo -> someBoolean or foo -> alwaysFalse // if foo -> someBoolean is empty, then function resolves to true

The output cardinality validation is covered in issue https://github.com/finos/rune-dsl/issues/856.

For type conditions, resolving to empty is treated in the same way as resolving to true.  In the below example, if attr is False then the condition returns empty which is treated as success (which really it should be treated as not applicable?).
type Foo:
    someBoolean boolean (0..1)
    alwaysFalse boolean (1..1)
    attr boolean (1..1)

    condition SomeCondition:
        if attr = True
        then alwaysFalse

repo: finos/rune-dsl


text:
Investigate create of 'key_dates' table

Primarily to associate gates with CI's.
Key dates should have and entity , date_type and the date (+ provenance etc)

replace by #5310

repo: finos/waltz


text:
28 Sept 2023 - Emerging Technologies Meeting Agenda

Date
28 Sept 2023 - 10 am EST / 3pm BST
Untracked attendees

Fullname, Affiliation, (optional) GitHub username
...

Meeting notices

FINOS Project leads are responsible for observing the FINOS guidelines for running project meetings. Project maintainers can find additional resources in the FINOS Maintainers Cheatsheet.

All participants in FINOS project meetings are subject to the LF Antitrust Policy, the FINOS Community Code of Conduct and all other FINOS policies.

FINOS meetings involve participation by industry competitors, and it is the intention of FINOS and the Linux Foundation to conduct all of its activities in accordance with applicable antitrust and competition laws. It is therefore extremely important that attendees adhere to meeting agendas, and be aware of, and not participate in, any activities that are prohibited under applicable US state, federal or foreign antitrust and competition laws. Please contact legal@finos.org with any questions.

FINOS project meetings may be recorded for use solely by the FINOS team for administration purposes. In very limited instances, and with explicit approval, recordings may be made more widely available.

Agenda

[ ] Convene & roll call (5mins)
[ ] Display FINOS Antitrust Policy summary slide
[ ] Review Meeting Notices (see above)
[ ] Approve past meeting minutes
[ ] Welcome & Announcements

[ ] New Brain Trust Members
[ ] Updates on current projects
[ ] Updates on Blog
[ ] Notices about upcoming events/deadlines

[x] POC Program (No Update this month)
[ ] Deep Dive

[ ] Hedera Platform Overview

[ ] Call to action

[ ] POC Program
[ ] Primers
[ ] Brain Trust membership

[ ] AOB & Discussion
[ ] Thanks & Close Out

Zoom Details

https://zoom.us/j/98538837792?pwd=ZHg3QVVnaCtOT0tEZSs5c0hrZTg1dz09
Meeting ID: 985 3883 7792
Passcode: 152455

Join by Phone

Find your local number: https://zoom.us/u/adl5rhui4P

Patrick Downing | Github 👋

András Velvárt - Response.

Peter Smulovics / Morgan Stanley 🏦

Mike @ ZNGLY

Michael Shelton / JPMorgan Chase

Mimi Flynn / Morgan Stanley

James McLeod / FINOS

Mike Cave / Hedera

Alex Scammon / G-Research

Kendall Perez | FINOS

Alvin Shih / Morgan Stanley

Keith O'Donnell / Feynic

Polina Levyant / GSR Markets

Meeting minutes:
00:04:41.520: Keith J. O'Donnell welcomes attendees to the meeting and mentions a unique approach for this month's meeting.
00:05:00.190: Kendall Waters Perez takes over to discuss the Linux Foundation Antitrust policy and topics that cannot be discussed.
00:05:26.690: Kendall Waters Perez talks about the Finos project leads' responsibilities.
00:05:48.440: Kendall Waters Perez emphasizes adherence to antitrust and competition laws.
00:06:28.340: Keith J. O'Donnell introduces an avatar but decides not to use it for the full session.
00:06:55.180: Keith J. O'Donnell mentions the use of QR codes and asks attendees to have their phones ready.
00:07:18.820: Barbie introduces the meeting agenda.
00:07:42.130: Keith J. O'Donnell skips the POC program and mentions other content to cover.
00:08:03.680: Keith J. O'Donnell talks about the Brain Trust Meeting and Blog.
00:08:54.340: Keith J. O'Donnell talks about various blogs run by the Barbie and Ken teams.
00:09:30.140: Keith J. O'Donnell mentions upcoming events.
00:10:48.730: Keith J. O'Donnell introduces Andrew Aitken from Hedera, who will discuss their platform.
00:12:33.130: Andrew Aitken introduces himself as the Chief Open Source Officer for Hedera.
00:13:33.890: Andrew Aitken mentions Hedera's unique governance and council.
00:14:16.380: Andrew Aitken provides an overview of Hedera's platform layers.
00:15:37.560: Andrew Aitken talks about the sustainability aspect of Hedera and the Guardian platform.
00:16:02.760: Giuseppe Bertone from Swirlds Labs introduces himself as part of the sustainability team.
00:17:50.050: Giuseppe Bertone discusses the Guardian-enabled sustainable applications.
00:18:59.130: Giuseppe Bertone explains the components of Guardian and its flexible policy workflow engine.
00:19:51.810: Giuseppe introduced Guardian as a trust chain solution for digital assets and identity.
00:20:24.799: He highlighted the importance of digital identities for individuals and entities.
00:20:56.190: Giuseppe emphasized that Guardian is user-friendly and integrates easily with existing tools.
00:21:37.560: He mentioned that Guardian has regular releases with new features and community-driven updates.
00:22:57.380: Giuseppe discussed the main services used in Guardian, such as ACE, consensus service, Token Service, and IPFS network.
00:23:46.849: He explained that users can start with Guardian by downloading and running their own instance or using partners like Envision.
00:24:23.050: Giuseppe provided links to documentation, real-world examples, and community resources.
Greg Scullard (SwirldsLabs) introduced Stable Coin Studio, an open-source toolkit for stable coins:
00:24:58.740: Greg explained that Stable Coin Studio simplifies the deployment of stable coins on the Hedera network.
00:26:09.870: He described the benefits of stable coins, such as stability and real-world value.
00:27:22.639: Greg highlighted the toolkit's components, including an SDK, terminal-based interface, and React-based user interface.
00:29:09.090: He mentioned that users can try Stable Coin Studio by visiting stablecoinstudio.com.
00:30:34.169: Greg encouraged engagement with the open-source repository, documentation, videos, and the community on Discord.
00:39:31.710: James McLeod expresses interest in collaboration and bundling primers and blog posts.
00:40:00.330: James McLeod asks if primers and blog posts can be bundled into publications.
00:40:36.600: Keith J. O'Donnell discusses plans for distilling primers, recording podcasts, and making them more accessible.
00:40:57.050: Keith J. O'Donnell mentions their efforts to engage more voices for the podcast.
00:41:17.230: Andrew Aitken talks about making content more interactive and accessible.
00:42:00.910: Andrew Aitken suggests packaging primers in simple formats like PDF or email for wider distribution.
00:43:06.069: Keith J. O'Donnell discusses creating simple packages of primers for easy sharing.
00:43:37.770: Peter Smulovics raises a question about people who may not believe in coins.
00:45:02.360: Andrew Aitken responds to Peter Smulovics' question about non-believers in coins.
00:45:06.040: Greg Scullard adds to the discussion about the early challenges of the DLT industry.
00:46:09.020: Greg Scullard talks about the need to prove the utility of DLT technology.
00:47:27.200: Michael Wilson shares information about the adoption of distributed ledger technology.
00:49:03.750: Keith J. O'Donnell asks Andrew Aitken about Hadera's use cases in the Open Source and Finance Forum.
00:49:44.480: Andrew Aitken expresses interest in having Hadera's representation at the forum.
00:50:18.020: Keith J. O'Donnell: Keith mentions something about injustice.
00:50:20.000: Michael Wilson: Michael talks about the progress of a generative AI project for the insurance space, launching in New York on October 12th.
00:50:40.020: Michael Wilson: Michael begins discussing the use of Vertex AI in the project and demonstrates how it can be used for conversational search.
00:52:48.720: Michael Wilson: Michael discusses the challenges of using Vertex AI's pre-alpha documentation and invites others to collaborate.
00:54:19.860: Keith J. O'Donnell: Keith suggests turning the conversation into a blog post within zenith.
00:55:50.640: Alvin Shih: Alvin proposes a project related to scraping financial documents for AI training and regulatory horizon scanning.
00:58:29.240: Keith J. O'Donnell: Keith expresses interest in the proposed project and plans to follow up on it.

authors: MikeWilsonZngly alvin-c-shih mcleo-d michael-a-shelton mikecave mimiflynn padraignix polinalevyant psmulovics stackedsax tenatzen vbandi wendallkaters

repo: finos/zenith