Label Printing fails since updating to 0.16.8 and 0.16.9

Please verify that this bug has NOT been raised before.

[x] I checked and didn't find a similar issue

Describe the bug*
The original Setup version was probably 0.15.8. My College told me they have had printed a lot of Labels in the past, and after an update it does not work any more.
We use a Brother QL-1110NWBc for label printing.
Similar-ish issues, but not the same issue:

https://github.com/inventree/inventree-brother-plugin/issues/48
https://github.com/inventree/InvenTree/issues/7709

Image proof:

Steps to Reproduce

Click on a Part.
To the right of the part there is a qr symbol → click on it → select "Print Label".
In the "Print Label" window, → select a "Template" → select the printing Plugin "InvenTreeLabelMachine" → Select the Machine.
Press "Print"
You get an Error message in both UI's and nothing happens. (There is no where a real error logged. (only in "Background Tasks" under "Failed Tasks"))

Expected behaviour
The Label should get printed.
Deployment Method

[x] Docker
[ ] Package
[ ] Bare metal
[ ] Other - added info in Steps to Reproduce

Version Information
Version Information:
InvenTree-Version: 0.16.9
Django Version: 4.2.15
Commit Hash: e0756a7
Commit Date: 30/11/2024
Database: postgresql
Debug-Mode: False
Deployed using Docker: True
Platform: Linux-6.1.0-28-amd64-x86_64-with
Installer: DOC
Active plugins: [{'name': 'InvenTreeBarcode', 'slug': 'inventreebarcode', 'version': '2.1.0'}, {'name': 'InvenTreeCoreNotificationsPlugin', 'slug': 'inventreecorenotificationsplugin', 'version': '1.0.0'}, {'name': 'InvenTreeCurrencyExchange', 'slug': 'inventreecurrencyexchange', 'version': '1.0.0'}, {'name': 'InvenTreeLabel', 'slug': 'inventreelabel', 'version': '1.1.0'}, {'name': 'InvenTreeLabelMachine', 'slug': 'inventreelabelmachine', 'version': '1.0.0'}, {'name': 'InvenTreeLabelSheet', 'slug': 'inventreelabelsheet', 'version': '1.0.0'}, {'name': 'DigiKeyPlugin', 'slug': 'digikeyplugin', 'version': '1.0.0'}, {'name': 'LCSCPlugin', 'slug': 'lcscplugin', 'version': '1.0.0'}, {'name': 'MouserPlugin', 'slug': 'mouserplugin', 'version': '1.0.0'}, {'name': 'TMEPlugin', 'slug': 'tmeplugin', 'version': '1.0.0'}, {'name': 'Brother Labels', 'slug': 'brother', 'version': '1.0.0'}]
Please verify if you can reproduce this bug on the demo site.

[ ] I can reproduce this bug on the demo site.

Relevant log output
Error Details

invalid literal for int() with base 10: '' : Traceback (most recent call last):

File "/root/.local/lib/python3.11/site-packages/django_q/worker.py", line 97, in worker

res = f(*task["args"], **task["kwargs"])

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/inventree/src/backend/InvenTree/machine/machine_types/label_printer.py", line 81, in print_labels

self.print_label(machine, label, item, **kwargs)

File "/usr/local/lib/python3.11/site-packages/inventree_brother/brother_plugin.py", line 164, in print_label

rotation = int(machine.get_setting('ROTATION', 'D')) + 90

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

ValueError: invalid literal for int() with base 10: ''

@mcsys-dev looks like this was a bug introduced into the label printer plugin

See: https://github.com/inventree/inventree-brother-plugin/pull/46#discussion_r1875197230

Your 5) is actually #8511
Regarding the printing driver issue. Do you have a shared cache (redis) as per requirements for the machine registry feature?

@wolflu05

Regarding the printing driver issue. Do you have a shared cache (redis) as per requirements for the machine registry feature?

No. We use the default Docker-file, but I just noticed that the has docker-file changed. I have now added the changes so that we use the "inventree-cache". But the printing issue is still present.
I couldn't find a section in the stable Docs where requirements for features are listed. (https://docs.inventree.org/en/stable) (There is Redis still listed as disabled by default)

I couldn't find a section in the stable Docs where requirements for features are listed

I agree, its a bit hidden in the developer docs (extend section).

But the printing issue is still present.

Have you also updated the env file to tell inventree to also use the cache? There are 3 env vars to add for this. If it's still not working after a docker compose down + up. Try connecting to the redis container via docker compose exec -it inventree-cache redis-cli and type MONITOR. You should see keys accessed like: :1:machine:* (e.g. :1:machine:registry:hash or :1:machine:machine:<machine-uuid>:status, when doing something with the machines, e.g. load the machine table, print, ...

@wolflu05
I have already had updated the .env to reflect the latest change: .env
# Redis cache setup
# Refer to settings.py for other cache options
INVENTREE_CACHE_ENABLED=True
INVENTREE_CACHE_HOST=inventree-cache
INVENTREE_CACHE_PORT=6379

I can see all the different :1:machine:* events that you mentioned.
It looks to me if the cache is working as intended. If you want to see some of those entries, let me know.

Am I understanding this right to be a duplicate of https://github.com/inventree/InvenTree/issues/8511 @wolflu05 ?

Not really. There is another issue happening there, but I had no time yet to look into it. It normally should work currently but somehow it doesn't for @mcsys-dev

I have a short update for you:
My College, who uses invenTree regularly, got the Pinter to pint labels. He told me he completely reinstalled and reconfigured (over the ui) the brother plugin and the printer's settings itself. He showed it to me. But still sometimes fails until it works. (not talking about getting both messages: error and success)
Not sure how it was before, but if the printer is in sleep he needs to be turned on manually, and you have to wait a couple of minutes before trying to print. He could not tell me if he changed anything on the printer side.
I hope this somehow helps you. My College is right now happy that he can print some labels again.  :)


submod step2

Not yet ready to be used!
Step 2 of #5584
Now that a published version of the parent module does not include this submodule's files, the submodule can go mod tidy successfully.
That is this PR.
Things missing from this PR
The gcloud archiver does not yet have a way to work, the plugin architecture it needs has not yet been rewritten.
That should be done before a release is tagged, so anyone using the gcloud archiver will not see a broken period.

Pull Request Test Coverage Report for Build 018cfa19-6e2e-48f0-8e3a-28c33b1fab76

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.007%) to 62.303%

Totals

Change from base Build 018cf02e-2f0f-46c7-adac-ccab41358226:
-0.007%

Covered Lines:
92891

Relevant Lines:
149096

💛  - Coveralls

Closing in favor of the easier-to-maintain #5609


ipaddr.IPv4.subnetMaskFromPrefixLength(32) throws Error

ipaddr.IPv4.subnetMaskFromPrefixLength(32) throws Error rather than returning "<IP_ADDRESS>"

This isn't actually a legal subnet mask (neither is <IP_ADDRESS> by the way, a subnet needs to have at least 4 IPs in it). It should be an error, although a different one; adjust the condition?

Hmm... I'm not sure how to take this one.  /31 and /32 do translate to valid masks but it is true that they are not usable subnets as they do not have any effective hosts available.
If it were my own module, I think I'd still want the /31 and /32 to return the subnet mask anyway. However, if you still disagree, I can still make a PR for your suggested approach anyway.

Good call. :+1:


Simple redux form not showing up, webpack and react NodeJS application

I'm following the Simple Redux Form example and transferred the code to my client side file in my NodeJS application, in which I use webpack to compile it into a bundle.js file. However, no form shows up on the page (no error in the console and also when I look at the source code, I don't see any react or es6 related content). Am I missing a step here?

This is a usage question, and we encourage you to ask it on StackOverflow instead. We try to use the issue tracker for bug reports and feature requests, as well as some discussions, but this appears to be a very localized question.
This is the only way to ensure the same question doesn’t get asked many times in a row, and that folks who have the same question in the future will be able to find it.
I’m closing for these reasons.


added self information

Good job @MarkL50
Congrats 🎉, your PR got merged. To be eligible for the swags from ClueLess. Follow this steps.

SignIn / SignUp in ClueLess Website.

Go to profile section from the top right hand corner.

Comment your profile URL under this comment tagging the person who merged your PR.

That’s it. Follow the leaderboard !
And don’t forget to share your achievement with your friends.


Add broad Arm architecture support

This change moves Arm architectures to a separate enum, ArmArchitecture. Overall, I think this is heading in a useful direction, but I'm not really thrilled with the implementation here.

Should Aarch64 live under ArmArchitecture?
What is the source of truth? Eg: LLVM aliases arm64 -> aarch64. Should we copy this behavior?
Is FPU information useful?
is_thumb returns a bool with the given arch triple's thumb-ness. This doesn't seem terribly useful - I think it would be more helpful to have a supports_thumb fn to return actual ISA support. Thoughts?

Arm processor list and FPU list copied from:
https://github.com/gcc-mirror/gcc/blob/master/gcc/config/arm/arm-cpus.in#L261
See also:
https://github.com/llvm-mirror/llvm/blob/master/lib/Target/ARM/ARM.td
https://llvm.org/doxygen/Triple_8cpp_source.html
Closes https://github.com/CraneStation/target-lexicon/issues/11

I think I addressed all comments, let me know what you think. Thank you for reviewing!

This looks good to me!


Add --include-dev option to add

This will add the devDependencies of a package
also to the list of packages to be notified.
Those two separate add command definitions is a bit
weird now because of the option.. (As the include-dev should only be active on the add without package). But it seems that it doesn't work otherwise.. :/

Bump


Bump dependencies

This PR updates all dependencies to the latest version.
Most importantly for me it bumps Axios, which fixes https://nvd.nist.gov/vuln/detail/CVE-2023-45857 (reported by Snyk).

@volodymyrZotov @dustin-ruetz, do either of you potentially have time to review this PR? 🙏

@gevalo1 This PR is included in the v1.4.1 release. Thanks again for your contribution!


An issue is still visible on iPad after marking it read.

On iPad the app only updates it’s detail view when a selection is made.
However marking an issue read, should ideally select the next issue below it (or above if no more below).
When there are no more issues, it should display the empty view again.
Version 1.5.0 (1330)
Device: iPad7,3 (iOS 11.0)

Hmm sort of a UI edge case. I actually disagree with this too. I'd rather not lose my spot. I view the detail pane almost like a separate tab. What do others think?

Nothing here would be ideal I suppose, so I'd not bother changing it.

Maybe you're not understand my point. This is definitely not expected behaviour.
Its like swiping in mail and selecting Archive. The item is removed from the list so I DEFINITELY wouldn't expect to still see the detail for it on the right.
Is that clearer? The detail view is showing me something I can no longer see in the list!

Ya, but the item isn't "deleted" persay, just marked read (and if you had "all" selected, it'd still be visible). I'm erring on no action since this could introduce other weird side effects.

Well its up to you...

I would probably expect the detail view to update too. What about animating the detail view along with the swipe or cell delete animation? Either to the next issue (prob not though), or just fade it away first. It would make the distinction clear(er) between "all" and "unread".

But then what would you expect to happen in All? Would it be persistent there, or should it fade away? Or should we even go to the next issue?
Think about this scenario:

Open unread issue in "unread"
Go to "all"
Mark issue as unread

What would you expect to happen?! I think leaving it as is would be the least confusing.

@BasThomas simple!
The left hand side should always indicate what's being shown on the right. So in the scenario you suggested, switching back to the unread section would deselect any rows and show the empty view on the right – since the user has not made a new selection. Switching back to All, would do nothing in this case.
I don't want to add fire to the flame (apologies for creating this issue 😬) but IMHO (and pretty much all –decent– split-view apps appear to agree) selection is persistent on iPad, especially when dealing with a split-view.
Anyway the issue is closed and I totally accept that. I just felt it was inconsistent with most other iPad apps I use, and as a fairly heavy iPad user I tend to notice more than others. 😀

@BasThomas One thing I should mention although I don't think it changes my point above.
Marking Unread has already been discussed as not happening since GitHub doesn't provide API for that.


Add support for additional arguments to load_ui

Per the python mailing list discussion, add support for the 2nd argument to uic.loadUi
Here is an example using PyQt4
http://nullege.com/codes/search/PyQt4.uic.loadUi
Here is an example of an implementation for PySide that accepts the same arguments
https://gist.github.com/cpbotha/1b42a20c8f3eb9bb7cb8

Thanks @bpabel.

Per the python mailing list discussion

Would it be possible to link to this discussion?

Here is an example of an implementation for PySide that accepts the same arguments

Excellent, would you happen to know whether the same implementation works for PySide2? If you put a pull-request in, we could have it run through tests on each platform, Python version and Qt distribution. That should get the conversation started.
As I'm not a user of loadUi myself, it would also be lovely to have one or more usage examples so that we implement it in a way that makes sense to you.

Would it be possible to link to this discussion?

This was from the 3DPRO mailing list. I asked Abel to post an issue :)
@mottosso Did you get my invite?

Excellent, would you happen to know whether the same implementation works for PySide2?

I've made a gist where this works in PySide2:
https://gist.github.com/fredrikaverpil/0a89b174c9d29bc585f11d250adf2a7c
I think Abel's request makes a lot of sense. I omitted additional arguments to the load_ui convenience function but here's a clear way to support that. We should do it!

Would it be possible to post a minimal example ui file, along with how it is used today, and how you would like it to be used with this feature?

Would it be possible to post a minimal example ui file, along with how it is used today, and how you would like it to be used with this feature?

I could do a PR, but I won't have time for it until mid August 😢 as I'm on vacation with my family.
However, here's an example UI file. Today, we can access the widgets from the ui file like this:
Load UI
self.main_widget = load_ui(main_window_file)
Edit widget which resides in main window UI
self.main_widget.boilerPushButton.setText('Push me!')
However, we can't load the UI into self and make the pushButton available like so: self.boilerPushButton. So let's say you load three UI files and want all of their widgets to be accessed like self.widgetName. Today this is possible in PyQt but not in PySide (without pysideuic). But with @bpabel's gist, this seems doable with a custom QUiLoader class.
@mottosso if you like, we can assign this to me, but I won't have time for it until a couple of weeks away.

Sorry, I edited my prevous post a lot. Please re-read it if you already read it 😜

If we were to write tests for this, we'd need to store a .ui file in the repository. How do you feel about that, @mottosso ?
We could create a main_window.ui file in a data dir?

We could, but I'd rather keep it contained in the test module.
If you hand me a .ui snippet, I can show you how I mean.

If you hand me a .ui snippet, I can show you how I mean.

Will this do?
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>MainWindow</class>
 <widget class="QMainWindow" name="MainWindow">
  <property name="windowTitle">
   <string>MainWindow</string>
  </property>
  <widget class="QWidget" name="centralwidget">
   <layout class="QGridLayout" name="gridLayout">
    <item row="0" column="0">
     <widget class="QPushButton" name="pushButton">
      <property name="text">
       <string>PushButton</string>
      </property>
     </widget>
    </item>
   </layout>
  </widget>
  <widget class="QMenuBar" name="menubar">
   <property name="geometry">
    <rect>
     <x>0</x>
     <y>0</y>
     <width>125</width>
     <height>22</height>
    </rect>
   </property>
  </widget>
  <widget class="QStatusBar" name="statusbar"/>
 </widget>
 <resources/>
 <connections/>
</ui>

Here's what I had in mind.
def test_pyside_load_ui():
    """load_ui works well"""

    ui = """\
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>MainWindow</class>
 <widget class="QMainWindow" name="MainWindow">
  <property name="windowTitle">
   <string>MainWindow</string>
  </property>
  <widget class="QWidget" name="centralwidget">
   <layout class="QGridLayout" name="gridLayout">
    <item row="0" column="0">
     <widget class="QPushButton" name="pushButton">
      <property name="text">
       <string>PushButton</string>
      </property>
     </widget>
    </item>
   </layout>
  </widget>
  <widget class="QMenuBar" name="menubar">
   <property name="geometry">
    <rect>
     <x>0</x>
     <y>0</y>
     <width>125</width>
     <height>22</height>
    </rect>
   </property>
  </widget>
  <widget class="QStatusBar" name="statusbar"/>
 </widget>
 <resources/>
 <connections/>
</ui>"""

    with tempfile.NamedTemporaryFile(suffix=".ui") as f:
        f.write(ui)
        f.seek(0)

        with pyside():
            import Qt
            widget = Qt.load_ui(f.name)

Ideally then, the .ui file would only contain parts we are actually testing. In this case, perhaps QStatusBar and explicit widths are less important in the interest of readability.

Ah, yes. That's an excellent idea.

It might not seem like a big deal today. From experience with maintaining external files with tests, I find that this works fine initially, but then as the project is updated, tests change, and the external files will need to branch out to cover both in order to be backwards compatible.
With this approach, even though it makes each test bigger and more repetitive, tests and data change together and should be easier to maintain long-term.

Yep. Agreed.

Hm, so I'm wondering about one thing. It looks like we could add a custom class to the _pyside and _pyside2 functions. First, it's quite unconventional to define a class inside a function, but it will inherit QtUiTools.QUiLoader from PySide/PySide2 and will throw an error if Qt.py is using PyQt4/PyQt5.
Right now, I'm just putting the class definition in both these functions. Any idea on how we could structure this more nicely?

Never mind, I think I found a solution.

@fredrikaverpil If you can, please post an example or two of the intended usage before looking at implementing this.
What I'm looking for is to have tests in place before the implementation starts. TDD style.

Yes, I'm doing the tests now. But as I had to rebuild the docker container I now am having issues with nosetests complaining about not being able to connect to an X server:
...
...
Raise ImportError if sip API v1 was already set (Python 2.x only) ... ok
load_ui works well ... ERROR
nosetests: cannot connect to X server

Do you see this on your end too?

See #81


Can't open .kdbx file with orther clients

Hi,
I don't see this issue anywhere and I'm surprised of that, I hope it is not me doing it wrong :)
I am actually using the webapp I deployed on my server.
To deploy the application, I did : npm install ; grunt
Then serve the file keeweb/dist/index.html with my nginx server.
When I save any database with keeweb (button "save to file" in the database config menu) to a .kdbx file I am unable to open it with another keepass client.
I always have the error

Failed to open the specified file!
Unexpected XML declaration. The XML declaration must be the first node in the document, and no whitespace characters are allowed to appear before it. Line 1 position 4.

Or

XML declaration cannot appear in this state, line 1 position 57.

Or any other similar error message depending on the client I use.
This error appear when I try to open any database that come from keeweb, even the demo and file that I imported from another keepass client and modified with keeweb.
The keeweb webapp you hosted on your server works flawlessly of course.
I used the Linux clients Keepass and Keepassx (from the Arch community repo) and the android clients KeePassDroid and Keepass2Android.
Thanks for your work anyways, your project looks promising !

Hello!

The keeweb webapp you hosted on your server works flawlessly of course.

You mean, my app at app.keeweb.info can open such files (produced by your version), or it generated files which can be opened by other KeePass clients?
Does the problem repeat if you just deploy index.html file from gh-pages branch, without building?

Please also copy the output of following commands:
npm list --depth 0
bower list

I've just tested the installation on a fresh system and I confirm that the the issue exists. Some of npm packages was broken, I'll figure it out and upgrade or downgrage it.

Here's why: https://github.com/kangax/html-minifier/issues/513
I'll add a peerDependency shortly

Wow, that was quick !
Cheers mate !


Add support for ionizer

Function is not supported in HomeKit

@davidjbradshaw Sure it isn't supported. In the new v0.0.5 version I've added a switch which turns on and off the Ionizer.


dilated convolution in 3D, error:  No algorithm without scratch worked

I'm using tf.nn.convolution to implement the dilated convolution in 3D. I got "No algorithm without scratch worked" error during training. Here is the related code
To define the model,
def inference(self, images, is_training, keep_prob):
        """ Forward inference
        Return:

        """
        c1 = self._dilation_conv(images, self._n_filters, scope = 'c1', dilation_rate = (1,1,1))
        score = self._conv(c1, scope = 'score', filters = 2,  filter_size = (1,1,1) )

        pred = tf.nn.softmax(score)

        # pdb.set_trace()
        return score, pred

    def _conv(self, in_tensor, filters, scope, filter_size = None):
        """ """

        if self._wd is None:
            myreg = None
        else:
            myreg = tf.contrib.layers.l2_regularizer(float(self._wd))

        if filter_size is None:
            filter_size = self._filter_size

        with tf.variable_scope(scope):
            return tf.layers.conv3d(
                in_tensor, filters = filters,
                kernel_size = filter_size, padding = 'valid',
                activation = None,
                kernel_initializer  = tf.truncated_normal_initializer(stddev = self._stddev),
                kernel_regularizer =myreg,
                name = 'conv')

    def _dilation_conv(self, in_tensor, n_filters, scope, dilation_rate, filter_size = None):
        """ dilated convolution filter with batch norm. """

        if self._wd is None:
            myreg = None
        else:
            myreg = tf.contrib.layers.l2_regularizer(float(self._wd))

        if filter_size is None:
            filter_size = self._filter_size

        batch_size, H, W, D, in_channel = in_tensor.get_shape().as_list()

        with tf.variable_scope(scope):
            kernel = tf.get_variable('weights', shape = self._filter_size + (in_channel, n_filters),
                                     dtype = tf.float32,
                                     initializer = tf.truncated_normal_initializer(stddev=self._stddev))
            output = tf.nn.convolution(in_tensor, kernel, padding = 'SAME', strides = (1,1,1), dilation_rate = dilation_rate, name = 'dilation_conv')

            # Somehow set training = True even for testing phase works
            # better.
            if self._bn:
                output = tf.layers.batch_normalization(
                    output, training = True, name = 'bn')

            return tf.nn.relu(output, 'relu')

    def get_loss(self, labels, scores, beta = 0.9999):
        """
        return total loss of the model, including data loss and
        regularization loss.

        It looks that softmax_cross_entropy_with_logits does not need the
        input logits 2 dimension. As long as the last dimension is for
        classes, it should work. So, we do not need reshape the input tensor.

        TF has a weighted_cross_entropy_with_logits, but this function is
        for multi-class problem, i.e. a picture may have both a dog and a
        truck.
        """

        class_weight = tf.constant([beta, 1.0 - beta])
        # TF suppot numpy's broadcasting. score array has dim BXY2,
        # weights array has dim (2), which is broadcast to BXY2.
        weighted_logits = tf.multiply(scores, class_weight)

        # both logits and labels are BXY2 dimension.
        cross_entropy = tf.nn.softmax_cross_entropy_with_logits(logits = weighted_logits, labels = labels)
        # fromm dim BXY to dim 0 (scalar)
        cross_entropy_mean = tf.reduce_mean(cross_entropy, name = 'cross_entropy')

        reg_loss_list = tf.get_collection(tf.GraphKeys.REGULARIZATION_LOSSES)
        if reg_loss_list:
            return cross_entropy_mean + tf.add_n(reg_loss_list)
        else:
            return cross_entropy_mean

And to train the model, I used tf.train.AdamOptimizer. I didn't paste the training related code, since I don't think they are relevant, but I can add them later if that helps.
Here is the error logs I saw:
In [40]: train.train(train_dataset, test_dataset, model = model, out_ckpt='./ckpt_3d/dilation', summary_dir='./summary_3d/dilation')
2017-05-01 15:08:10.813716: I tensorflow/core/common_runtime/gpu/gpu_device.cc:977] Creating TensorFlow device (/gpu:0) -> (device: 0, name: Graphics Device, pci bus id: 0000:85:00.0)
---------------------------------------------------------------------------
NotFoundError                             Traceback (most recent call last)
/home/weiliu/.local/lib/python3.4/site-packages/tensorflow/python/client/session.py in _do_call(self, fn, *args)
   1038     try:
-> 1039       return fn(*args)
   1040     except errors.OpError as e:

/home/weiliu/.local/lib/python3.4/site-packages/tensorflow/python/client/session.py in _run_fn(session, feed_dict, fetch_list, target_list, options, run_metadata)
   1020                                  feed_dict, fetch_list, target_list,
-> 1021                                  status, run_metadata)
   1022

/usr/lib/python3.4/contextlib.py in __exit__(self, type, value, traceback)
     65             try:
---> 66                 next(self.gen)
     67             except StopIteration:

/home/weiliu/.local/lib/python3.4/site-packages/tensorflow/python/framework/errors_impl.py in raise_exception_on_not_ok_status()
    465           compat.as_text(pywrap_tensorflow.TF_Message(status)),
--> 466           pywrap_tensorflow.TF_GetCode(status))
    467   finally:

NotFoundError: No algorithm without scratch worked!
	 [[Node: gradients/c1/dilation_conv_grad/Conv3DBackpropInputV2 = Conv3DBackpropInputV2[T=DT_FLOAT, padding="SAME", strides=[1, 1, 1, 1, 1], _device="/job:localhost/replica:0/task:0/gpu:0"](gradients/c1/dilation_conv_grad/Shape, c1/weights/read, gradients/AddN_3)]]
	 [[Node: Adam/update/_26 = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/cpu:0", send_device="/job:localhost/replica:0/task:0/gpu:0", send_device_incarnation=1, tensor_name="edge_89_Adam/update", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"]()]]

During handling of the above exception, another exception occurred:

NotFoundError                             Traceback (most recent call last)
<ipython-input-40-c48a6e49a4b4> in <module>()
----> 1 train.train(train_dataset, test_dataset, model = model, out_ckpt='./ckpt_3d/dilation', summary_dir='./summary_3d/dilation')

/home/weiliu/projects/seismic/code/weiliu/train.py in train(train_dataset, test_dataset, model, init_lr, summary_dir, in_ckpt, out_ckpt)
    141                          keep_prob_pl: 0.5}
    142
--> 143             _, loss_value = sess.run([optimizer, loss], feed_dict = feed_dict)
    144
    145             global_step_val = tf.train.global_step(sess, global_step)

/home/weiliu/.local/lib/python3.4/site-packages/tensorflow/python/client/session.py in run(self, fetches, feed_dict, options, run_metadata)
    776     try:
    777       result = self._run(None, fetches, feed_dict, options_ptr,
--> 778                          run_metadata_ptr)
    779       if run_metadata:
    780         proto_data = tf_session.TF_GetBuffer(run_metadata_ptr)

/home/weiliu/.local/lib/python3.4/site-packages/tensorflow/python/client/session.py in _run(self, handle, fetches, feed_dict, options, run_metadata)
    980     if final_fetches or final_targets:
    981       results = self._do_run(handle, final_targets, final_fetches,
--> 982                              feed_dict_string, options, run_metadata)
    983     else:
    984       results = []

/home/weiliu/.local/lib/python3.4/site-packages/tensorflow/python/client/session.py in _do_run(self, handle, target_list, fetch_list, feed_dict, options, run_metadata)
   1030     if handle is None:
   1031       return self._do_call(_run_fn, self._session, feed_dict, fetch_list,
-> 1032                            target_list, options, run_metadata)
   1033     else:
   1034       return self._do_call(_prun_fn, self._session, handle, feed_dict,

/home/weiliu/.local/lib/python3.4/site-packages/tensorflow/python/client/session.py in _do_call(self, fn, *args)
   1050         except KeyError:
   1051           pass
-> 1052       raise type(e)(node_def, op, message)
   1053
   1054   def _extend_graph(self):

NotFoundError: No algorithm without scratch worked!
	 [[Node: gradients/c1/dilation_conv_grad/Conv3DBackpropInputV2 = Conv3DBackpropInputV2[T=DT_FLOAT, padding="SAME", strides=[1, 1, 1, 1, 1], _device="/job:localhost/replica:0/task:0/gpu:0"](gradients/c1/dilation_conv_grad/Shape, c1/weights/read, gradients/AddN_3)]]
	 [[Node: Adam/update/_26 = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/cpu:0", send_device="/job:localhost/replica:0/task:0/gpu:0", send_device_incarnation=1, tensor_name="edge_89_Adam/update", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"]()]]

Caused by op 'gradients/c1/dilation_conv_grad/Conv3DBackpropInputV2', defined at:
  File "/usr/local/bin/ipython", line 11, in <module>
    sys.exit(start_ipython())
  File "/usr/local/lib/python3.4/dist-packages/IPython/__init__.py", line 119, in start_ipython
    return launch_new_instance(argv=argv, **kwargs)
  File "/usr/local/lib/python3.4/dist-packages/traitlets/config/application.py", line 658, in launch_instance
    app.start()
  File "/usr/local/lib/python3.4/dist-packages/IPython/terminal/ipapp.py", line 348, in start
    self.shell.mainloop()
  File "/usr/local/lib/python3.4/dist-packages/IPython/terminal/interactiveshell.py", line 440, in mainloop
    self.interact()
  File "/usr/local/lib/python3.4/dist-packages/IPython/terminal/interactiveshell.py", line 431, in interact
    self.run_cell(code, store_history=True)
  File "/usr/local/lib/python3.4/dist-packages/IPython/core/interactiveshell.py", line 2717, in run_cell
    interactivity=interactivity, compiler=compiler, result=result)
  File "/usr/local/lib/python3.4/dist-packages/IPython/core/interactiveshell.py", line 2827, in run_ast_nodes
    if self.run_code(code, result):
  File "/usr/local/lib/python3.4/dist-packages/IPython/core/interactiveshell.py", line 2881, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-40-c48a6e49a4b4>", line 1, in <module>
    train.train(train_dataset, test_dataset, model = model, out_ckpt='./ckpt_3d/dilation', summary_dir='./summary_3d/dilation')
  File "/home/weiliu/projects/seismic/code/weiliu/train.py", line 116, in train
    optimizer = tf.train.AdamOptimizer(learning_rate).minimize(loss, global_step = global_step)
  File "/home/weiliu/.local/lib/python3.4/site-packages/tensorflow/python/training/optimizer.py", line 315, in minimize
    grad_loss=grad_loss)
  File "/home/weiliu/.local/lib/python3.4/site-packages/tensorflow/python/training/optimizer.py", line 386, in compute_gradients
    colocate_gradients_with_ops=colocate_gradients_with_ops)
  File "/home/weiliu/.local/lib/python3.4/site-packages/tensorflow/python/ops/gradients_impl.py", line 560, in gradients
    grad_scope, op, func_call, lambda: grad_fn(op, *out_grads))
  File "/home/weiliu/.local/lib/python3.4/site-packages/tensorflow/python/ops/gradients_impl.py", line 368, in _MaybeCompile
    return grad_fn()  # Exit early
  File "/home/weiliu/.local/lib/python3.4/site-packages/tensorflow/python/ops/gradients_impl.py", line 560, in <lambda>
    grad_scope, op, func_call, lambda: grad_fn(op, *out_grads))
  File "/home/weiliu/.local/lib/python3.4/site-packages/tensorflow/python/ops/nn_grad.py", line 77, in _Conv3DGrad
    padding=op.get_attr("padding")),
  File "/home/weiliu/.local/lib/python3.4/site-packages/tensorflow/python/ops/gen_nn_ops.py", line 663, in conv3d_backprop_input_v2
    padding=padding, name=name)
  File "/home/weiliu/.local/lib/python3.4/site-packages/tensorflow/python/framework/op_def_library.py", line 768, in apply_op
    op_def=op_def)
  File "/home/weiliu/.local/lib/python3.4/site-packages/tensorflow/python/framework/ops.py", line 2336, in create_op
    original_op=self._default_original_op, op_def=op_def)
  File "/home/weiliu/.local/lib/python3.4/site-packages/tensorflow/python/framework/ops.py", line 1228, in __init__
    self._traceback = _extract_stack()

...which was originally created as op 'c1/dilation_conv', defined at:
  File "/usr/local/bin/ipython", line 11, in <module>
    sys.exit(start_ipython())
[elided 8 identical lines from previous traceback]
  File "<ipython-input-40-c48a6e49a4b4>", line 1, in <module>
    train.train(train_dataset, test_dataset, model = model, out_ckpt='./ckpt_3d/dilation', summary_dir='./summary_3d/dilation')
  File "/home/weiliu/projects/seismic/code/weiliu/train.py", line 67, in train
    images_placeholder, is_training = istraining_pl, keep_prob = keep_prob_pl )
  File "/home/weiliu/projects/seismic/code/weiliu/dilation_net_3d.py", line 71, in inference
    c1 = self._dilation_conv(images, self._n_filters, scope = 'c1', dilation_rate = (1,1,1))
  File "/home/weiliu/projects/seismic/code/weiliu/dilation_net_3d.py", line 116, in _dilation_conv
    output = tf.nn.convolution(in_tensor, kernel, padding = 'SAME', strides = (1,1,1), dilation_rate = dilation_rate, name = 'dilation_conv')
  File "/home/weiliu/.local/lib/python3.4/site-packages/tensorflow/python/ops/nn_ops.py", line 661, in convolution
    op=op)
  File "/home/weiliu/.local/lib/python3.4/site-packages/tensorflow/python/ops/nn_ops.py", line 331, in with_space_to_batch
    return op(input, num_spatial_dims, padding)
  File "/home/weiliu/.local/lib/python3.4/site-packages/tensorflow/python/ops/nn_ops.py", line 653, in op
    name=name)
  File "/home/weiliu/.local/lib/python3.4/site-packages/tensorflow/python/ops/nn_ops.py", line 140, in _non_atrous_convolution
    name=name)
  File "/home/weiliu/.local/lib/python3.4/site-packages/tensorflow/python/ops/gen_nn_ops.py", line 529, in conv3d
    strides=strides, padding=padding, name=name)
  File "/home/weiliu/.local/lib/python3.4/site-packages/tensorflow/python/framework/op_def_library.py", line 768, in apply_op
    op_def=op_def)

NotFoundError (see above for traceback): No algorithm without scratch worked!
	 [[Node: gradients/c1/dilation_conv_grad/Conv3DBackpropInputV2 = Conv3DBackpropInputV2[T=DT_FLOAT, padding="SAME", strides=[1, 1, 1, 1, 1], _device="/job:localhost/replica:0/task:0/gpu:0"](gradients/c1/dilation_conv_grad/Shape, c1/weights/read, gradients/AddN_3)]]
	 [[Node: Adam/update/_26 = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/cpu:0", send_device="/job:localhost/replica:0/task:0/gpu:0", send_device_incarnation=1, tensor_name="edge_89_Adam/update", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"]()]]

I also check the atrous_convolution_test.py and it seems I used it right.
I'm on Ubuntu 14.04 64 bit, tensorflow version 1.1.0-rc2.
If anyone can point me direction how to debug, that would be great.

Most likely an issue that this is not supported by the underlying Cudnn 5 library that is being used. Adding mjanusz@ to confirm.

Thanks. As I know TF does not support cudnn 6 yet, but this dilated operation seems have been here for a while.

got same error using cudnn 6.

The real error for me is out of memory, but it still raise this error.

It has been 14 days with no activity and this issue has an assignee.Please update the label and/or status accordingly.

Closing this as there have been no updates since July and the bot has nagged three days in a row. @mjanusz feel free to reopen if you're still working on this.

I'm getting the error "No Algorithm found!" while using Dilated 3D convolutions. Does it have anything to do with the Compute Capability version? I'm running my model on a GTX 960M. But seeing from the previous comments, the method seems to be giving out the same issues with Compute Capability 6.0 as well(btw mine is 5.0). I'd like to know if there's a fix for this.

I get tensorflow.python.framework.errors_impl.NotFoundError: No algorithm worked! [Op:Conv3D]

Issue seems to when we use dilation > 1 and padding=SAME.
I've checked this on TFlow2.4 with CUDA11.0 and CuDNN=8.0

import os
import pdb
import traceback

os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"
import tensorflow as tf
if len(tf.config.list_physical_devices('GPU')):
    tf.config.experimental.set_memory_growth(tf.config.list_physical_devices('GPU')[0], True)
else:
    print (' - No GPU present!! Exiting ...')
    import sys; sys.exit(1)

class Conv3DWS(tf.keras.layers.Conv3D):
    """
    Ref
     - https://www.tensorflow.org/api_docs/python/tf/keras/layers/Conv3D
     - https://www.tensorflow.org/api_docs/python/tf/nn/conv3d
     - https://github.com/joe-siyuan-qiao/WeightStandardization
    """

    def __init__(self, filters, kernel_size=(3,3,3), strides=(1, 1, 1), padding='same'
                    , dilation_rate=(1,1,1)
                    , activation='relu'
                    , kernel_regularizer=None
                    , name=''):
        super(Conv3DWS, self).__init__(filters=filters, kernel_size=kernel_size, strides=strides, padding=padding
                        , dilation_rate=dilation_rate
                        , activation=activation
                        , kernel_regularizer=kernel_regularizer
                        , name=name)

    def call(self,x):

        # Step 1 - WS
        kernel_mean = tf.math.reduce_mean(self.kernel, axis=[0,1,2,3], keepdims=True, name='kernel_mean')
        kernel_std  = tf.math.reduce_std(self.kernel, axis=[0,1,2,3], keepdims=True, name='kernel_std')
        kernel_new  = (self.kernel - kernel_mean)/(kernel_std + tf.keras.backend.epsilon())

        # Step 2 - Convolution
        # [Does not works due to padding=same]
        output = tf.nn.conv3d(input=x, filters=kernel_new, strides=list((1,) + self.strides + (1,)), padding=self.padding.upper(), dilations=(1,) + self.dilation_rate + (1,))
        # [Works due to padding=valid]
        # output = tf.nn.conv3d(input=x, filters=kernel_new, strides=list((1,) + self.strides + (1,)), padding='VALID', dilations=(1,) + self.dilation_rate + (1,))

        # Step 3 - Bias
        if self.use_bias:
            output = tf.nn.bias_add(output, self.bias, data_format=self._tf_data_format)

        # Step 4 - Activation and return
        if self.activation is not None:
            return self.activation(output)
        else:
            return output

if __name__ == "__main__":
    try:
        x = tf.random.normal((1,140,140,40,1))
        layers = Conv3DWS(filters=10, dilation_rate=(3,3,3))
        y = layers(x)
        print (' - y: ', y.shape)

    except:
        traceback.print_exc()
        pdb.set_trace()


Receiver Name Consistency

There is a lint rule enforced by lintReceiverNames that specifies that receivers should be named consistently.
Generally this is a sound assumption, but I would like to argue against the general application of this rule.
Consider the following (common) use-case:
There is a struct that one would like to chain functions on. It is defined as follows:
type Node struct{
	Value string
	Prev *Node
	Next *Node
}

I would like to define the following functions on this node:
func (p *Node) Chain(v string) *Node {
	n := &Node{Value: v}
	n.Prev = p
	p.Next = n
	return n
}

func (n *Node) Empty() bool{
	return n.Value == ""
}

For the Chain function, the passed Node receiver is semantically equal to the previous node, whereas the Empty function is applied directly to a current node. Thus, it is desirable to name the pointer receivers differently, so that p can always be interpreted as the current node.
The lint rule defined in lintReceiverNames goes directly against this. It is difficult to detect semantic differences like the above example, however it should be possible to possible ignore this rule for "chaining" methods, where another instance of the same type is returned.
I would like to hear your thoughts before investing any time into this, if there is a general consensus on this topic I would open a PR.

I think the general lint rule is sound.
By all means ignore the lint warning if it doesn't apply to your code.  Lint rules are meant to be generally applicable, but they are not meant to be 100% applicable.

@ianlancetaylor Unfortunately I don't want to ignore lint rules, as they pollute my IDE with warnings, and make real code inconsistencies less transparent.
It seems that this is a more general issue with golint that has been discussed in depth in https://github.com/golang/lint/issues/263. I will explore community-supported lint tools as a workaround. Thanks!


add topics

I suggest adding topics such as state-space, sequence-modeling, time-series-model, time-series in the About section at https://github.com/HazyResearch/state-spaces.

Thanks for the suggestion: added!


java.lang.NullPointerException

Video: https://disk.yandex.ru/i/k-RVeXDYVvN03Q
System info:
Phone: Xiaomi Mi 8
OS: Android 10
MIUI: 12

The stack trace shows that the crash happened in Play Service SDK, this means it's not our problem and nothing we can do.

Deleted all google play services data, the error is gone, thanks.


Unit test

Are we supposed to do unit test using assert statement?

@poojashresthacode yeah you can use, but depends what you want to test for?

@poojashresthacode ya Professor told us to use the assert for unit test.


feat: add request info to verification emails

It is common practice to include in email verification emails some user request info like IP Address, User Agent Device & Date when a user is asked for some code. This PR adds this information.
I also improved default email templates to improve readability of the code.
@lonnieezell  @kenjis  @MGatner I don't know if we want to provide more complex Email templates, or if basic HTML is fine for the start of using this library and leave it completely to the developer.
Language files are not completed, some translated with Google Translator.
Please help with translations.
Here is what it looks like now in the Email client.

some translated with Google Translator.

Can we use translations by Google Translator in this project?
Do we have copyright of the translation?
And we can certify the following?
https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/DCO.md

Hello @jozefrebjak ,
Thank you for sending PR.
I agree to the following terms with this PR:

IP Address, User Agent Device & Date

Please add Time.

I also improved default email templates to improve readability of the code.
I don't know if we want to provide more complex Email templates, or if basic HTML is fine for the start of using this library and leave it completely to the developer.

I am against adding and changing the default templates, the reason is that in a real project each site has its own theme and the email templates are the same as the site theme, so I believe that in the real project the email templates are also The face is designed exclusively and we do not need to add details in the shield.

Please help with translations.

In the final stages of this PR, we can get help from our friends for translation. Therefore, we must first see what the members think.
Refactor
In my opinion, this PR should be implemented by View Decorators. I believe it makes us write less code and provides better flexibility. I want to hear from other members here?

Can we use translations by Google Translator

An intriguing question! I did some digging, and the answer is murky but "yes". Here is an excerpt from WikiMedia's legal team who had to answer this for their services:

Assuming that such a mechanical translation is a protected derivative work ... the resulting copyright owner would be the user of the software, not the software manufacturer. ... Since the Supreme Court defined “author” as “he to whom anything owes its origin,”[7] it follows that person who initiated the translation would be the author.

So two interpretations:

The translation is too shallow a change to count as a derivative work so copyright belongs solely to the originating author
The translation is derivative but is done via automation so the copyright is the authors but the license for the derivative version belongs to the user of Google Translate

In both cases since @jozefrebjak is the originating author and the one using the translation software he is the sole owner of the content and may submit it based on our license and agreement.

@MGatner Very interesting opinion. Can you give the URL of the WikiMedia's legal team answer?

Here ya go: https://meta.m.wikimedia.org/wiki/Wikilegal/Copyright_for_Google_Translations
Specifically "Copyright in Translations"

Please fix the failed test: 1) Tests\Controllers\ActionsTest::testEmailActivateShow

Untranslated language files cause test failures.
What if you put some marks as follows for the ones that cannot be translated?
--- a/src/Language/fa/Auth.php
+++ b/src/Language/fa/Auth.php
@@ -74,10 +74,10 @@
     'resetTokenExpired'         => 'متاسفانه، توکن بازنشانی شما منقضی شده است.',

     // Email Globals
-    'emailInfo'      => 'Some information about the person who asked for the code:',
-    'emailIpAddress' => 'IP Address:',
-    'emailDevice'    => 'Device:',
-    'emailDate'      => 'Date:',
+    'emailInfo'      => '(To be translated) Some information about the person who asked for the code:',
+    'emailIpAddress' => '(To be translated) IP Address:',
+    'emailDevice'    => '(To be translated) Device:',
+    'emailDate'      => '(To be translated) Date:',

     // 2FA
     'email2FATitle'       => 'احراز هویت دو عاملی',

Untranslated language files cause test failures. What if you put some marks as follows for the ones that cannot be translated?
--- a/src/Language/fa/Auth.php
+++ b/src/Language/fa/Auth.php
@@ -74,10 +74,10 @@
     'resetTokenExpired'         => 'متاسفانه، توکن بازنشانی شما منقضی شده است.',

     // Email Globals
-    'emailInfo'      => 'Some information about the person who asked for the code:',
-    'emailIpAddress' => 'IP Address:',
-    'emailDevice'    => 'Device:',
-    'emailDate'      => 'Date:',
+    'emailInfo'      => '(To be translated) Some information about the person who asked for the code:',
+    'emailIpAddress' => '(To be translated) IP Address:',
+    'emailDevice'    => '(To be translated) Device:',
+    'emailDate'      => '(To be translated) Date:',

     // 2FA
     'email2FATitle'       => 'احراز هویت دو عاملی',

Good idea how to handle missing languages.

Hello @jozefrebjak , Thank you for sending PR.
I agree to the following terms with this PR:

IP Address, User Agent Device & Date

Please add Time.

I also improved default email templates to improve readability of the code.
I don't know if we want to provide more complex Email templates, or if basic HTML is fine for the start of using this library and leave it completely to the developer.

I am against adding and changing the default templates, the reason is that in a real project each site has its own theme and the email templates are the same as the site theme, so I believe that in the real project the email templates are also The face is designed exclusively and we do not need to add details in the shield.

Please help with translations.

In the final stages of this PR, we can get help from our friends for translation. Therefore, we must first see what the members think.
Refactor In my opinion, this PR should be implemented by View Decorators. I believe it makes us write less code and provides better flexibility. I want to hear from other members here?

For me is date enough, but I can change this to return also time.
Time::now()->toLocalizedString('MMM d, yyyy');

I'm fine with html email like they are now. I have added for now only a few basic HTML tags, which I believe we should support in default email templates.
I'd like to learn how to use View Decorators to provide some kind of templating system, but I don't have experience with that yet.

For me is date enough, but I can change this to return also time.

Please add, maybe this is better. toDateTimeString

I'm fine with html email ...

Okay. Because you have made some changes, the test has an error, please correct the following to fix it.
https://github.com/codeigniter4/shield/blob/5c1a9afff601d5e87f57311c7e861715c62d7130/tests/Controllers/ActionsTest.php#L233-L241
more info see : https://github.com/codeigniter4/shield/actions/runs/3061616247/jobs/4941607181

I'd like to learn how to use View Decorators ...

In this regard, since other members did not comment, there is no need to change. But if you want to learn, watch this video.

@ddevsr thank you for your help.
You can register a change request in the review. please see here:
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-proposed-changes-in-a-pull-request

@ddevsr thank you for your help. You can register a change request in the review. please see here:
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-proposed-changes-in-a-pull-request

@datamweb Thankyou for information how to request changes

Hello @jozefrebjak , can you continue this PR?

Some of your commits are unsigned, please check GPG-Signing Old Commits, also note other comments.

Some of your commits are unsigned, please check GPG-Signing Old Commits, also note other comments.

@datamweb I signed the latest commit, but the older ones were not signed. The rebase method is completely new to me, so if you provide me with how to sign them, I will.

I recommend you set git sign automatically.

As a faster alternative, you can still securely sign commits without the -S option in git commit by setting git config --global commit.gpgsign true and git config --global user.signingkey 3AC5C34371567BD2 to all local repositories. Without the --global option, the change is applied to one local repository only.
https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/workflow.md#gpg-signing-old-commits

Then, just to run git rebase signs all commits.
$ git fetch upstream
$ git rebase upstream/develop

I recommend you set git sign automatically.

As a faster alternative, you can still securely sign commits without the -S option in git commit by setting git config --global commit.gpgsign true and git config --global user.signingkey FA4CD0840816FD28 to all local repositories. Without the --global option, the change is applied to one local repository only.
https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/workflow.md#gpg-signing-old-commits

Then, just to run git rebase signs all commits.
$ git fetch upstream
$ git rebase upstream/develop

What I did
git fetch upstream
git rebase upstream/develop
git config pull.rebase false

and run sync from vscode.
is it ok now?

and run sync from vscode.

Does it run git merge?
It seems this branch was broken.

I got it.
The last merge commit broke the branch.

2b86f82 - (HEAD -> jozefrebjak/develop) Merge branch 'develop' of github.com:jozefrebjak/shield into develop [2022-10-06 12:09:13 +0200]

All you need to do is:

reset the last commit$ git reset HEAD^

force push

Resetting the last commit makes the git log graph straight.
* 8e958ae - (HEAD -> jozefrebjak/develop) Fix testEmailActivateShow [2022-10-06 12:08:48 +0200] <Jozef Rebjak>
* 60f14a5 - Update src/Language/fr/Auth.php [2022-10-06 12:08:48 +0200] <Jozef Rebjak>
* 8b4af59 - Update src/Language/id/Auth.php [2022-10-06 12:08:48 +0200] <Jozef Rebjak>
* ee9ec4f - fix fr translate [2022-10-06 12:08:48 +0200] <Jozef Rebjak>
* 0526ada - tests fix [2022-10-06 12:08:48 +0200] <Jozef Rebjak>
* dd635e3 - Update src/Views/Email/email_2fa_email.php [2022-10-06 12:08:48 +0200] <Jozef Rebjak>
* d71564c - Update src/Language/ja/Auth.php [2022-10-06 12:08:48 +0200] <Jozef Rebjak>
* f3baef9 - feat: add request info to emails [2022-10-06 12:08:48 +0200] <Jozef Rebjak>
*   f4cdfb6 - (upstream/develop, test, develop) Merge pull request #464 from datamweb/fix-property-last_used_at [2022-10-05 13:41:44 +0330] <Pooya Parsa Dadashi>

hello @jozefrebjak,
Please address the mentioned items, including Time and magic link.
What do you think about them?

hello @jozefrebjak,
Please address the mentioned items, including Time and magic link.
What do you think about them?

@datamweb This PR was about verification emails, I would like to make another PR about the magic link email.

Sorry for the delay, Google translator is limited here. The unit test doesn't fully cover it, however I don't mind.
Also note that we are in the process of releasing a new version, if possible send out the magic link PR as soon as possible. (Honestly, I believe that should have been done in this PR as well.) Thank you.

@datamweb Ok, please leave it open, I'll add support for magic link as well.

@datamweb, @kenjis
Here is the final emails:
Register

2FA

Magic Link

All checks have passed. I'm merging.


Add definitions for Query module in flatbuffers

@wu-sheng @Fine0830 @ascrutae Would you pls take a look at it? This PR intends to introduce the Query API of BanyanDB.
The schema will be used in retrieving trace data from banyandb, the default client-side is the OAP server.

@hanahmily @lujiajing1126 As you are doing the official query API rather than just testing, I prefer to consider the schema concept. From my understanding, the query API should not care which fields OAP is going to use for the query. It should care more about which fields have an index, or which kind of the index is better in the storage model.
The protocol level data type should more like type=SEARCHABLE_ID(represents trace id or segment id), or type=TIMESTAMP(represents start_time), etc.
We are designing BanyanDB closing to the APM field, but not for replacing OAP logic. We just leverage the benefit of data_model and private types. What do you think?

@hanahmily @lujiajing1126 As you are doing the official query API rather than just testing, I prefer to consider the schema concept. From my understanding, the query API should not care which fields OAP is going to use for the query. It should care more about which fields have an index, or which kind of the index is better in the storage model.
The protocol level data type should more like type=SEARCHABLE_ID(represents trace id or segment id), or type=TIMESTAMP(represents start_time), etc.
We are designing BanyanDB closing to the APM field, but not for replacing OAP logic. We just leverage the benefit of data_model and private types. What do you think?

I am trying to understand your idea. Are you arguing that the Query module should only rely on the general schema instead of the specific model like Trace, Metrics and Log.
For example, query module should accept query as a format of logical expresses, select("traceID"), projection(Gt(duration, 30ms)), and return a general RecordBatch data structure containing schema of the record and data in bytes.

I am trying to understand your idea. Are you arguing that the Query module should only rely on the general schema instead of the specific model like Trace, Metrics and Log.

Trace is a type of schema. But you should not hardcode the column name and type in the protocol.

From my understanding, only entity ID, duration(we need certain precision), trace ID, field(searchable and multiple values supported), tags(storage only, but can't see the usage today), raw data(pure binary) are columns/types for Trace entity.
@hanahmily Please correct me if I am wrong.

From my understanding, only entity ID, duration(we need certain precision), trace ID, field(searchable and multiple values supported), tags(storage only, but can't see the usage today), raw data(pure binary) are columns/types for Trace entity.
@hanahmily Please correct me if I am wrong.

StartTime and EndTime as well I suppose?

2 key issues

I can't see any structure of files or folders reflect trace, metric, log, event, metadata.
I can't see any comments, but this is a key query protocol, if no comments, how others could follow the context.

Comments are added to describe the protocol

Before resolving the rest of the questions, I suppose it may be better to discuss the design doc first? @hanahmily @wu-sheng What's your opinion?
It seems we still have a large disprecancy on some particular topics like pagination.

It seems we still have a large disprecancy on some particular topics like pagination.

I can see a meeting has been set, design doc is not the real requirements, the logic is. Take a look at the current SkyWalking UI, all these are very clear.

As we discussed this morning, the following changes are applied,

Add type system to Pair, so now we have StrPair and IntPair
Simplify Entity: move duration, trace_id to fields since these names should be defined in a Schema.
Remove count in response: we do not have statistics so far.
Add projection to select key names.
Rename EntityCriteria.
Add offset with limit to support paging scenario.
Also move duration, trace_id to fields which are indexed and add comments.

Besides, I suppose Range operation is vague: it is not clear for inclusive or exclusive at the edges. What's your opinion?
Any other suggestion is welcome.

I want to ask a thing, should we add tenancy/schema as metadata for all requests (query and insert/update)? How to make BanyanDB works for multiple OAP clusters?

I want to ask a thing, should we add tenancy/schema as metadata for all requests (query and insert/update)? How to make BanyanDB works for multiple OAP clusters?

I am not sure. Are we going to support multi-tenant? @hanahmily

It looks good to me. Before merging it, please add name and group to EntityCriteria

Added


Python communication agent is broken

Upon attempting to run it, one gets error message of the form
base_left 7: [4778, 0] recv error message [(error illegal_command_form)]
base_left 7: [4778, 0] lost say? at [4778, 0] sense=0 internal=1
Quite strangely the above error disappears if in hfo/hfo_c_wrapper.h, instead of
hfo.say(message)
one uses hfo.say("anyfixedstring")
One can then hear() back "anyfixedstring". Alas this is of no use - what one wishes is to be able to send custom messages through the python communication agent. Playing around with const char* message with different datatype + variable combination  did not get me anywhere.
Further examination reveals that the 'say_msg' in /src/agent.h:setSayMsg() does seem to be set correctly. So the sending code seems to be correct (atleast till that point).
In an attempt to locate the function that prints the obtained error message, I looked at analyzeError() functions in
./build/librcsc-prefix/src/librcsc/rcsc/coach/coach_agent.cpp
./build/librcsc-prefix/src/librcsc/rcsc/player/player_agent.cpp
./build/librcsc-prefix/src/librcsc/rcsc/trainer/trainer_agent.cpp
However, none of these seem to be throwing the error.
Any help from someone more knowledgeable about the internals would be greatly appreciated.

"Illegal command form" sounds like it would be coming from the server,
actually. Yes - take a look at player.cpp in the rcssserver code. (BTW,
does a fixed string still work if it has a space in it, for instance?)
-Allen
On Fri, Oct 27, 2017 at 5:27 AM, DurgeshSamant<EMAIL_ADDRESS>wrote:

Upon attempting to run it, one gets error message of the form
base_left 7: [4778, 0] recv error message [(error illegal_command_form)]
base_left 7: [4778, 0] lost say? at [4778, 0] sense=0 internal=1
Quite strangely the above error disappears if in hfo/hfo_c_wrapper.h,
instead of
hfo.say(message)
one uses hfo.say("anyfixedstring")
One can then hear() back "anyfixedstring". Alas this is of no use - what
one wishes is to be able to send custom messages through the python
communication agent.
Further examination reveals that the 'say_msg' in /src/agent.h:setSayMsg()
does seem to be set correctly.
It is at this point that the trail goes cold. In an attempt to locate the
function that prints the obtained error message, I tried to looked at
analyzeError() functions in
./build/librcsc-prefix/src/librcsc/rcsc/coach/coach_agent.cpp
./build/librcsc-prefix/src/librcsc/rcsc/player/player_agent.cpp
./build/librcsc-prefix/src/librcsc/rcsc/trainer/trainer_agent.cpp
However, none of these seem to be throwing the error.
Any help from someone more knowledgeable about the internals would be
greatly appreciated.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/LARG/HFO/issues/53, or mute the thread
https://github.com/notifications/unsubscribe-auth/AZsckVZg-fRCzhbtGLORMKJpcRPgymvzks5swbASgaJpZM4QI2w5
.

Note also for longer-term reference that it is most helpful to do messages
if the "attentionto" is set properly - e.g., with the current setup, for
offense to whichever teammate has the ball, to more likely receive pass
messages. (Admittedly, IIRC these will only actually be picked up currently
on doing Dribble or Reorient.)
On Sun, Oct 29, 2017 at 7:46 PM, Allen Smith<EMAIL_ADDRESS>wrote:

"Illegal command form" sounds like it would be coming from the server,
actually. Yes - take a look at player.cpp in the rcssserver code. (BTW,
does a fixed string still work if it has a space in it, for instance?)
-Allen
On Fri, Oct 27, 2017 at 5:27 AM, DurgeshSamant<EMAIL_ADDRESS>wrote:

Upon attempting to run it, one gets error message of the form
base_left 7: [4778, 0] recv error message [(error illegal_command_form)]
base_left 7: [4778, 0] lost say? at [4778, 0] sense=0 internal=1
Quite strangely the above error disappears if in hfo/hfo_c_wrapper.h,
instead of
hfo.say(message)
one uses hfo.say("anyfixedstring")
One can then hear() back "anyfixedstring". Alas this is of no use - what
one wishes is to be able to send custom messages through the python
communication agent.
Further examination reveals that the 'say_msg' in
/src/agent.h:setSayMsg() does seem to be set correctly.
It is at this point that the trail goes cold. In an attempt to locate the
function that prints the obtained error message, I tried to looked at
analyzeError() functions in
./build/librcsc-prefix/src/librcsc/rcsc/coach/coach_agent.cpp
./build/librcsc-prefix/src/librcsc/rcsc/player/player_agent.cpp
./build/librcsc-prefix/src/librcsc/rcsc/trainer/trainer_agent.cpp
However, none of these seem to be throwing the error.
Any help from someone more knowledgeable about the internals would be
greatly appreciated.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/LARG/HFO/issues/53, or mute the thread
https://github.com/notifications/unsubscribe-auth/AZsckVZg-fRCzhbtGLORMKJpcRPgymvzks5swbASgaJpZM4QI2w5
.

Another question re the python agent - python 3 strings are Unicode by
default (with whether it's UTF-8 or UTF-16 varying by OS). What version of
Python are you trying it with?
On Sun, Oct 29, 2017 at 7:46 PM, Allen Smith<EMAIL_ADDRESS>wrote:

"Illegal command form" sounds like it would be coming from the server,
actually. Yes - take a look at player.cpp in the rcssserver code. (BTW,
does a fixed string still work if it has a space in it, for instance?)
-Allen
On Fri, Oct 27, 2017 at 5:27 AM, DurgeshSamant<EMAIL_ADDRESS>wrote:

Upon attempting to run it, one gets error message of the form
base_left 7: [4778, 0] recv error message [(error illegal_command_form)]
base_left 7: [4778, 0] lost say? at [4778, 0] sense=0 internal=1
Quite strangely the above error disappears if in hfo/hfo_c_wrapper.h,
instead of
hfo.say(message)
one uses hfo.say("anyfixedstring")
One can then hear() back "anyfixedstring". Alas this is of no use - what
one wishes is to be able to send custom messages through the python
communication agent.
Further examination reveals that the 'say_msg' in
/src/agent.h:setSayMsg() does seem to be set correctly.
It is at this point that the trail goes cold. In an attempt to locate the
function that prints the obtained error message, I tried to looked at
analyzeError() functions in
./build/librcsc-prefix/src/librcsc/rcsc/coach/coach_agent.cpp
./build/librcsc-prefix/src/librcsc/rcsc/player/player_agent.cpp
./build/librcsc-prefix/src/librcsc/rcsc/trainer/trainer_agent.cpp
However, none of these seem to be throwing the error.
Any help from someone more knowledgeable about the internals would be
greatly appreciated.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/LARG/HFO/issues/53, or mute the thread
https://github.com/notifications/unsubscribe-auth/AZsckVZg-fRCzhbtGLORMKJpcRPgymvzks5swbASgaJpZM4QI2w5
.

Hi Allen,
Thanks for the reply.
In hfo/hfo_c_wrapper.h, instead of
hfo.say(message)
if one uses hfo.say("a b")
One can then hear() back "a b". So a message containing a space separated string works well as long as it is hard-coded into the wrapper.
I am using python3.4 on Ubuntu 14.04.5 LTS.
main_player.cpp and sample_player.cpp do not seem to contain relevant code. I am unsure if the problem is within the server, since the C++ communicating agent works well.

In HFO/build/rcssserver-prefix/src/rcssserver/src/player.cpp, I tried to insert prints in the parseMsg() and parseCommand(). However, they did not show up on the output or in the logs. So I'm not sure if I'm doing it right.

It turns out that the issue was rather benign. The default message string "Hello!" had the special charachter '!'. Removing it, makes everything work smoothly. Here is an additional list of what the message string can and cannot contain
# the message string can contain charachters a-z A-Z 0-9
# the message string can contain special charachters like ?SPACE-*()+_<>/
# the message string cannot contain !@#$^&={}[];:"'


Compatible spring-xsuaa version and spring-boot version

Hi
Our project spring.boot.version is upgrading from 2.2.4.RELEASE to 2.3.2.RELEASE.
Current spring-xsuaa is 1.5.0 which is rather old.
Should I upgrade to latest (version 2.7.5)?
10X, Itai

Hi @ItaiFonio
Yes, its always recommended to upgrade to the latest one :-)
We also keep our spring-dependencies up to date.
You can watch the releases, then you get a mail with the latest release notes
(see also here: https://github.com/SAP/cloud-security-xsuaa-integration/releases)
Best regards,
Nena


Problem overflow-y scroll and brim

Is it possible to somehow allow scrolling content inside div when use brim.js?
I try add
content
 in brim-main, but scroll don't work..

@MrAdrianS Hello, we are experiencing the same problem. Did you find any solution to this?

i think you can comment this code as below:
`global.document.addEventListener('touchmove', function (e) {
if (viewport.isMinimalView() && firstMove) {
//e.preventDefault();
}
            firstMove = false;
        });`


License of the project

Thank you for sharing this great typst template!
I would like to use it in my small 3-people company (after doing some minor colors updates).
What it the license of the project and is it allowed to use in a company?

Ok thank you for your answer.
I will start from scratch using this template as a reference, and using parts of the code of this template, but won't reuse any styling of the template.

Best of luck!


fix: switch log level of failed locks to debug

### Definition of Ready

- [ ] I am happy with the code
- [ ] Short description of the feature/issue is added in the pr description
- [ ] PR is linked to the corresponding user story
- [ ] Acceptance criteria are met
- [ ] All open todos and follow ups are defined in a new ticket and justified
- [ ] Deviations from the acceptance criteria and design are agreed with the PO and documented.
- [ ] No debug or dead code
- [ ] Critical parts are tested automatically
- [ ] Where possible E2E tests are implemented
- [ ] Documentation/examples are up-to-date
- [ ] All non-functional requirements are met
- [ ] Functionality of the acceptance criteria is checked manually on the dev system.

IMO, I'd rather delete the log lines, as the errors are already handled by returning them / sending them to a channel.


python311Packages.monty: 2024.2.26 -> 2024.3.31

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python311Packages.monty is: Serves as a complement to the Python standard library by providing a suite of tools to solve many common problems
meta.homepage for python311Packages.monty is: https://github.com/materialsvirtuallab/monty
meta.changelog for python311Packages.monty is: https://github.com/materialsvirtuallab/monty/releases/tag/v2024.3.31
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2024.3.31 with grep in /nix/store/bihcz8qyfhh2pkqz4c524hhhic4bk4qi-python3.11-monty-2024.3.31
found 2024.3.31 in filename of file in /nix/store/bihcz8qyfhh2pkqz4c524hhhic4bk4qi-python3.11-monty-2024.3.31

Rebuild report (if merged into master) (click to expand)

7 total rebuild path(s)

7 package rebuild(s)

First fifty rebuilds by attrpath
python311Packages.atomman
python311Packages.monty
python311Packages.pymatgen
python311Packages.sumo
python312Packages.atomman
python312Packages.monty
python312Packages.pymatgen

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/bihcz8qyfhh2pkqz4c524hhhic4bk4qi-python3.11-monty-2024.3.31 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python311Packages.monty https://github.com/r-ryantm/nixpkgs/archive/fb289c3f1682786fe7542085f7485678f390357a.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/fb289c3f1682786fe7542085f7485678f390357a#python311Packages.monty

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/bihcz8qyfhh2pkqz4c524hhhic4bk4qi-python3.11-monty-2024.3.31
ls -la /nix/store/bihcz8qyfhh2pkqz4c524hhhic4bk4qi-python3.11-monty-2024.3.31/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

4 packages failed to build:

python312Packages.atomman
python312Packages.atomman.dist
python312Packages.pymatgen
python312Packages.pymatgen.dist

10 packages built:

python311Packages.atomman
python311Packages.atomman.dist
python311Packages.monty
python311Packages.monty.dist
python311Packages.pymatgen
python311Packages.pymatgen.dist
python311Packages.sumo
python311Packages.sumo.dist
python312Packages.monty
python312Packages.monty.dist

Maintainer pings
cc @PsyanticY for testing.

Result of nixpkgs-review pr 302159 run on x86_64-linux 1

4 packages failed to build:

python312Packages.atomman
python312Packages.atomman.dist
python312Packages.pymatgen
python312Packages.pymatgen.dist

10 packages built:

python311Packages.atomman
python311Packages.atomman.dist
python311Packages.monty
python311Packages.monty.dist
python311Packages.pymatgen
python311Packages.pymatgen.dist
python311Packages.sumo
python311Packages.sumo.dist
python312Packages.monty
python312Packages.monty.dist


Limits are not updated with datashade and groupby

ALL software version info
hvplot.__version__ = '0.7.3'
pandas.__version__ = '1.3.4'
panel.__version__ = '0.12.4'
param.__version__ = '1.12.0'
numpy.__version__ = '1.20.3'
holoviews.__version__ = '1.14.6'

Description of expected behavior and the observed behavior
When using datashade and groupby the limits are not updated when shifting between the groups.
I'm not completely sure if this is a hvplot or holoviews issue, so move if necessary.
Complete, minimal, self-contained example code that reproduces the issue
import hvplot.pandas  # noqa
import pandas as pd
import panel as pn
pn.extension()

df = pd.DataFrame({
    "time": range(100),
    "data": 100 * [1],
    "group": 50 * [1] + 50 * [2],
})

df.hvplot.line("time", "data", groupby="group", datashade=True)

Screenshots or screencasts of the bug in action
Without datashade

With datashade

Transferring to holoviews since I can reproduce with:
import holoviews as hv
from holoviews.operation.datashader import datashade
import pandas as pd

hv.extension('bokeh')

df = pd.DataFrame({
    "time": range(100),
    "data": 100 * [1],
    "group": 50 * [1] + 50 * [2],
})

ds = hv.Dataset(df, kdims=['time', 'group'], vdims=['data'])

datashade(ds.to(hv.Curve).opts(framewise=True))

Thanks @Hoxbro !


Using a non-default input path causes the action to fail

When using either v1.0.0 or v1.0.1 of the action it fails when attempting to run the command to actually generate the bom. When running the 1.0.0 version of the action I get the log output:
Options:
  i: ./xxxxx/requirements.txt
  o: ./bom.xml
Running: cyclonedx-py -i ./xxxxx/requirements.txt -o ./pythonsbom.xml
usage: cyclonedx-py [-h] (-c | -cj | -e | -p | -pip | -r) [-i FILE_PATH]
                    [--format {xml,json}]
                    [--schema-version {1.4,1.3,1.2,1.1,1.0}] [-o FILE_PATH]
                    [-F] [-pb] [-X]
cyclonedx-py: error: one of the arguments -c/--conda -cj/--conda-json -e/--e/--environment -p/--p/--poetry -pip/--pip -r/--r/--requirements is required
Error: Command failed: cyclonedx-py -i ./xxxxx/requirements.txt -o ./bom.xml
usage: cyclonedx-py [-h] (-c | -cj | -e | -p | -pip | -r) [-i FILE_PATH]
                    [--format {xml,json}]
                    [--schema-version {1.4,1.3,1.2,1.1,1.0}] [-o FILE_PATH]
                    [-F] [-pb] [-X]
cyclonedx-py: error: one of the arguments -c/--conda -cj/--conda-json -e/--e/--environment -p/--p/--poetry -pip/--pip -r/--r/--requirements is required

That lead me to believe that since the -r flag wasn't set it was causing the command to fail. The 1.0.1 version doesn't actually give any output when it fails.
I was able to successfully generate a bom when I instead just ran the command to generate the bom in the workflow and provided it the -r flag.
If there's anything else that I can provide that would help just let me know.

I observed the same using cyclonedx-bom v3.6.3.

I solved the problem using version 1.0.1.
It is possible that the problem may have other causes.

I solved the problem using version 1.0.1.

Hm, @coveros-phil reported that v1.0.1 also has the issue.

This PR should fix that.


[Bug]: Unable to configure memory limit

Testcontainers version
3.7.0
Using the latest Testcontainers version?
 (Docker Inc.)
    Version:  0.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-feedback.exe
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v0.1.0-beta.10
    Path:     C:\Program Files\Docker\cli-plugins\docker-init.exe
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-sbom.exe
  scan: Docker Scan (Docker Inc.)
    Version:  v0.26.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-scan.exe
  scout: Docker Scout (Docker Inc.)
    Version:  v1.2.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-scout.exe

Server:
 Containers: 24
  Running: 0
  Paused: 0
  Stopped: 24
 Images: 38
 Server Version: 24.0.7
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: d8f198a4ed8892c764191ef7b3b06d8a2eeb5c7f
 runc version: v1.1.10-0-g18a0cb0
 init version: de40ad0
 Security Options:
  seccomp
   Profile: unconfined
 Kernel Version: <IP_ADDRESS>-microsoft-standard-WSL2
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 16
 Total Memory: 3.829GiB
 Name: docker-desktop
 ID: d148ec48-a8e8-4270-a982-10e4570c90ce
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  <IP_ADDRESS>/8
 Live Restore Enabled: false

WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support
WARNING: daemon is not using the default seccomp profile

What happened?
Using HostConfig.Memory to configure memory limit gets me an error:
using DotNet.Testcontainers.Builders;

namespace Sandbox;

class Program
{
    static async Task Main()
    {
        await using var container = new ContainerBuilder()
            .WithImage("alpine")
            .WithCreateParameterModifier(x => x.HostConfig.Memory = 2 * 1024 * 1024)
            .Build();

        await container.StartAsync();
    }
}

Relevant log output
[testcontainers.org 00:00:00.09] Connected to Docker:
  Host: npipe://./pipe/docker_engine
  Server Version: 24.0.7
  Kernel Version: <IP_ADDRESS>-microsoft-standard-WSL2
  API Version: 1.43
  Operating System: Docker Desktop
  Total Memory: 3.83 GB
[testcontainers.org 00:00:00.22] Docker container 9fa88b052728 created
[testcontainers.org 00:00:00.25] Start Docker container 9fa88b052728
[testcontainers.org 00:00:01.56] Wait for Docker container 9fa88b052728 to complete readiness checks
[testcontainers.org 00:00:01.57] Docker container 9fa88b052728 ready
Unhandled exception. Docker.DotNet.DockerApiException: Docker API responded with status code=BadRequest, response={"message":"Minimum memory limit allowed is 6MB"}

   at Docker.DotNet.DockerClient.HandleIfErrorResponseAsync(HttpStatusCode statusCode, HttpResponseMessage response, IEnumerable`1 handlers)
   at Docker.DotNet.DockerClient.MakeRequestAsync(IEnumerable`1 errorHandlers, HttpMethod method, String path, IQueryString queryString, IRequestContent body, IDictionary`2 headers, TimeSpan timeout, CancellationToken token)
   at Docker.DotNet.ContainerOperations.CreateContainerAsync(CreateContainerParameters parameters, CancellationToken cancellationToken)
   at DotNet.Testcontainers.Clients.DockerContainerOperations.RunAsync(IContainerConfiguration configuration, CancellationToken ct)
   at DotNet.Testcontainers.Clients.TestcontainersClient.RunAsync(IContainerConfiguration configuration, CancellationToken ct)
   at DotNet.Testcontainers.Containers.DockerContainer.UnsafeCreateAsync(CancellationToken ct)
   at DotNet.Testcontainers.Containers.DockerContainer.StartAsync(CancellationToken ct)
   at Sandbox.Program.Main() in C:\GIT\Sandbox\Sandbox\Program.cs:line 14
   at Sandbox.Program.Main() in C:\GIT\Sandbox\Sandbox\Program.cs:line 14
   at Sandbox.Program.<Main>()

Additional information
No response

This is not an issue in Testcontainers. Unfortunately, this is a limitation of Docker and is documented.

If you set this option, the minimum allowed value is 6m (6 megabytes). That is, you must set the value to at least 6 megabytes.

You will find more information in the related pull request as well (https://github.com/moby/moby/pull/41168).

I've set value to 2GB (see the code). Are you sure it's not the testcontainer proxy container issue?

I've set value to 2GB (see the code).

Nope, you did not. You set it to 2MB.
According to the API docs the unit is bytes.

Memory limit in bytes.

🤦
My, mistake, sorry.


Add require to Gemfile instructions

A minor README update since I hit a bump when trying to install it.
Thanks for the gem \o/

Thank you, @sunny!


Add Maven Mojo to auto-generate plugin.xml from xsp.properties

Since the required libraries will have to be on the classpath at some point, it should be possible to generate a plugin.xml by looking them up and asking for their bundle identifiers. This would end up being the equivalent of Designer's process when modifying xsp.properties.

This will likely have to take place in an OSGi container, since I suspect a lot of libraries will reference an Activator for those methods.


Single character modify style

The run element in Python docx will call the characters with the same style and connected as a flag, but I want to modify the characteristic text (that is, characters). What should I do?
For example, the content in "1. Docx" is abcdefga
Their styles are the same. How to modify the style for the character "a" alone?
I would appreciate it if someone could know how to implement this method!

For a character or sequence of characters to have different font formatting than the text on either side, those characters need to be in a distinct run.
The code here will isolate a sequence of characters into its own run, after which you can format that run as desired:
https://github.com/python-openxml/python-docx/issues/980

Thank you for your reply, but I encountered the following errors during operation:
Traceback (most recent call last):

File "test.py", line 114, in <module>

isolate_ run(par, 0, len(par.text))

File "test.py", line 88, in isolate_ run

r, r_ idx, start, end = advance_ to_ run_ containing_ start(start, end)

File "test.py", line 46, in advance_ to_ run_ containing_ start

r_ ends = tuple(itertools.accumulate(len(r.text) for r in rs)) + (0,)

NameError: name 'itertools' is not defined

Do you have any use examples for your code? I'd like to refer to it. I may be powerless for your current answer.


Motions docx export with docxtemplater

An implementation of the docx export with the docxtemplater.

@emanuelschuetze First Docx export works. I have orientated myself at the pdf export. Do you have improvements for the layout?
One other thing: The text and reason is now plain html. What would you suggest to handel this?

I havn't test it yet, but just for note: we need all formatting (html tags) of motion text also in docx! Have to look similar to the pdf. Maybe we can reuse the html parser of pdf generator?

Tags like p,b,i,br (maybe a) are i think quite easy, but whats about pictures? I will have a try to generate them in the document.

@emanuelschuetze ready for review.
Supported html tags: p, b, strong, i, em, span (color, backgroundcolor, strike, underline), a, img. Others should be ignored. Please test this.

Tested:
I created a new motoin with title/text/reason/submitter. If I try the docx export I get ReferenceError: tags is not defined. Same if I added a tag to this motion. => I can't test the docx file.

@emanuelschuetze I can't reproduce that. Do you have updated the bower components? If this error raises again, please tell me and especially where this error appears, because I don't access the tags nowhere...

Tested: Works good for me. Only embedded images of motions are visible in docs via LibreOffice but not via MS Word. @FinnStutzenstein is looking on it.
@normanjaeckel Ready for your first review.

Rebase and fix travis.

@normanjaeckel I will fix the image error first ;)

I just don't have a MS word on my machine (I crashed windows two days ago), so I will create an issue for that image problem if this is merged and try to get word. So from my side is everything ok.
@normanjaeckel Ping

Some additional (forgotten) remarks.

@normanjaeckel Ping


fix: Enhanced User Registration Form Validation

Description:  This PR improves the user registration form on the Manage NMK page with essential validations (see issue #112)

Name Field: Only letters allowed—no numbers or symbols.

Age Limit: Ensures values are between 12 and 99, blocking unrealistic entries.

Addiction Duration: Cannot exceed the user's age, ensuring sensible data.

Positive Values Only: Prevents negative entries in critical fields like treatment duration.

Why This Matters: Previously, users could enter invalid data, such as numbers in the name field or negative values for age and addiction duration. These enhancements ensure more accurate and meaningful data collection.

** @ratnesh-maurya Please feel free to reach out if you require any further adjustments or clarification.**

link the issue which you have work on .

issue #112 this is the issue I have worked on


Add possibility to clear nonces

In Laravel app, I have this piece of code View::share('scpScriptNonceToken', SecureHeaders::nonce()); in AppServiceProvider. I used this to prevent generating a big amount of nonces for scripts.
But there is also another reason for this. On sites when is no JS, no nonce is generated. Which then means that someone is able to inject his own script without nonce and it will work. (This would happen really rarely). This will always generate a nonce.
But then, I need to remove nonces for some routes where libraries like FileManager lives. Currently, there is no way how to remove already generated nonces.

Hope this is understandable. If not, don't hesitate to ask

Hi @arxeiss,
Sorry for late reply.
In my opinion, when there are some routes do not contain js, isn't it a better approach to exclude those routes from AppServiceProvider?

Excluding would be awesome, but when boot method is called, request()->route() returns null. The boot method is called before the Router is initialized. So I would need to do some regex matching on the URI itself. That's why I wanted to add this function.


Deep Learning: Users can leverage Torch models in their ML.NET pipelines for building neural networks

Can't this already be done by exporting Torch model to ONNX?

We aren't using this to track the work happening in ML.NET.  Instead we're using this board:  https://github.com/dotnet/machinelearning/projects/27


piratewallet-lite quit unexpectadely on Mac

Restarted the old Mac - wallet keeps shutting down when I try to send Arrr back to TO.
Any suggestions?

Same is happening to me any resolution yet?

Apparently you can restore your wallet on Android with the seed phrase...will check it out
Ma Bu
Sent with ProtonMail Secure Email.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Saturday, April 24, 2021 7:16 PM, goldfingers777 @.***> wrote:

Same is happening to me any resolution yet?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Same issue. I can restore wallet but only one address comes up out of three. Any help please? I am using High Sierra OSX


Updating to a new toolset compiler.

2.6.0-rdonly-ref-61915-01
The difference from the previous one is bug fixes.
The corresponding VSIX is:
https://dotnet.myget.org/F/roslyn/vsix/0b48e25b-9903-4d8b-ad39-d4cca196e3c7-<IP_ADDRESS>91501.vsix

@dotnet-bot test this please

test this please

both Ubuntu runs failed with something tests/System.IO.Pipelines.Tests/System.IO.Pipelines.Tests
I assume that just happens sometimes

test this please

test this please

test this please

@dotnet-bot test Innerloop Ubuntu16.04 Release Build and Test

I think we have rerun this enough times. It seems to build fine.
Something needs to be done about those Ubuntu tests.

I think we have rerun this enough times. It seems to build fine.
Something needs to be done about those Ubuntu tests.

Agreed :)

@jaredpar - FYI.

After installing VSIX I get
Severity	Code	Description	Project	File	Line	Suppression State
Error	MSB6003	The specified task executable "csc.exe" could not be run. Could not load file or assembly 'System.IO.FileSystem, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.	DI	C:\Program Files (x86)\Microsoft Visual Studio\Preview\Enterprise\MSBuild\15.0\Bin\Roslyn\Microsoft.CSharp.Core.targets	84

On the projects that don't reference new compiler package.
Is there a known issue or workaround?

@pakrym - no this is not a known issue. I use the VSIX on my dev machine and most projects are just regular projects.

@pakrym - you may be missing something on your machine that I have. I remember instaling some new SDK or CLI versions (do not remember exactly). Perhaps that brought in System.IO.FileSystem, Version=<IP_ADDRESS> , which appear to be required.

I also use a fairly new VS. Not sure if that is relevant.
Microsoft Visual Studio Enterprise 2017 Int Preview
Version 15.3.0 Preview 7.0 [26730.0.d15rel]
VisualStudio.15.IntPreview/15.3.0-pre.7.0+26730.0.d15rel
Microsoft .NET Framework
Version 4.7.02053

Installed Version: Enterprise

Architecture Diagrams and Analysis Tools   00369-60000-00001-AA002
Microsoft Architecture Diagrams and Analysis Tools

Visual Basic 2017   00369-60000-00001-AA002
Microsoft Visual Basic 2017

Visual C# 2017   00369-60000-00001-AA002
Microsoft Visual C# 2017

Visual C++ 2017   00369-60000-00001-AA002
Microsoft Visual C++ 2017

Visual F# 4.1   00369-60000-00001-AA002
Microsoft Visual F# 4.1

Application Insights Tools for Visual Studio Package   8.8.00712.1
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017   15.0.30726.0
ASP.NET and Web Tools 2017

ASP.NET Core Razor Language Services   1.0
Provides languages services for ASP.NET Core Razor.

ASP.NET Template Engine 2017   15.0.30726.0
ASP.NET Template Engine 2017

ASP.NET Web Frameworks and Tools 2017   5.2.50601.0
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0   15.0.30728.0
Azure App Service Tools v3.0.0

Azure Data Lake Node   1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio   2.2.9000.1
Microsoft Azure Data Lake Tools for Visual Studio

Azure Data Lake Tools for Visual Studio   2.2.9000.1
Microsoft Azure Data Lake Tools for Visual Studio

Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Fabric.DiagnosticEvents   1.0
Fabric Diagnostic Events

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

JavaScript UWP Project System   2.0
JavaScript UWP Project System

Microsoft Azure HDInsight Azure Node   2.2.9000.1
HDInsight Node under Azure Node

Microsoft Azure Hive Query Language Service   2.2.9000.1
Language service for Hive query

Microsoft Azure Service Fabric Tools for Visual Studio   1.7
Microsoft Azure Service Fabric Tools for Visual Studio

Microsoft Azure Stream Analytics Language Service   2.2.9000.1
Language service for Azure Stream Analytics

Microsoft Azure Stream Analytics Node   1.0
Azure Stream Analytics Node under Azure Node

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.50719.1

Microsoft Continuous Delivery Tools for Visual Studio   0.3
Simplifying the configuration of continuous build integration and continuous build delivery from within the Visual Studio IDE.

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual C++ Wizards   1.0
Microsoft Visual C++ Wizards

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

NuGet Package Manager   4.3.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

SQL Server Data Tools   15.1.61707.200
Microsoft SQL Server Data Tools

TestDriven.Net   4.1-Alpha
Zero friction testing for Visual Studio

ToolWindowHostedEditor   1.0
Hosting json editor into a tool window

TypeScript   <IP_ADDRESS>
TypeScript tools for Visual Studio

Visual Studio Code Debug Adapter Host Package   1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio tools for CMake   1.0
Visual Studio tools for CMake

Visual Studio Tools for Universal Windows Apps   15.0.26730.00
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

WebJobs Tools v1.0.0   __RESXID_PRODUCTVERSION__
WebJobs Tools v1.0.0

@agocke - any idea where System.IO.FileSystem, Version=<IP_ADDRESS>  comes from?

Should be either in VS itself or in the VSIX package.


QT dates get wiped when editing timeline

When editing the timeline, the SQT dates that have previously been saved are not pulled and prefilled in the inputs.
This means the user has to go back, make a note of what was previously entered and then add those dates back in order to edit any other dates.
We should prefill those dates, as with the other fields.

Not a bug.


The L1 lightstrips can only turn on/off one at the time

Ive tested to put the lightstrips in groups and when i try turning on multiple lightstrips with one command the command only turn on one at a time... I have multiple other smart home devices that dosent have a problem with turning them on and off. I sadly dont have any more sonoff devices to try with, have tested setting the application to online only. I have successfully recreated the same error (i think) when i try to automate the strips to turn on and set the brightness at the same time...

Duplicate #338

Duplicate #338


BOLT12 support

With Alby Hub giving user an "always online" wallet, it would be great if it would support BOLT12 payment requests.

Thanks for your feedback, we're already looking into that :+1: closing this as duplicate of #46


Rename to Kingfisher Summarize

"Kingfisher Views" doesn't say what it does, and it's also confusing viz. SQL views (we only use 5 views, the rest are tables).
While renaming the project as a whole, we can also:

[x] Rename ocskingfisher-views-cli to manage.py (extension registry, Django apps, etc. all have this file, so this provides a consistent interface across projects) and move code from cli.py to it
[x] Remove -view or -views from CLI command names as this is very repetitive. Also, rename to clarify:

add-view -> add
delete-view -> remove ('delete' pairs with 'create', whereas 'remove' pairs with 'add')
list-views -> index

We should do this before publicizing the tool (we don't presently).

Check these still work:

[ ] CI badge
[ ] Coveralls badge

Also to do:

[ ] Create new ReadTheDocs subdomain
[ ] Redirect old ReadTheDocs subdomain
[ ] Update Kingfisher troubleshooting doc, as needed
[ ] Update deploy docs and Salt states, as needed

Remaining occurrences of "view":

[ ] view_data_ schema prefix

If we were to change this, we'd need to keep backwards-compatible code in the index command

[ ] .config/ocdskingfisher-views directory

Easy to change. Just requires modifying the deployment.

[ ] views schema (related #171 #164)

Easy to change. Not much queries the two tables here.

Closing in favor of follow-up issues.


Graffiti - Running out of memory

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
I'm constantly getting our of memory errors and my app crashes.
==== JS stack trace =========================================
Security context: 0x1991fcae3ac1
1: /* anonymous /(aka / anonymous /) [/usr/local/lib/node_modules/babel-cli/node_modules/core-js/modules/es6.promise.js:~67] [pc=0xc21e0f8675] (this=0x1991fca04189 ,it=0x180c23cacaa9 <a Promise with map 0xcef15a14bc1>)
2: / anonymous /(aka / anonymous */) [/usr/local/lib/node_modules/babel-cli/node_modules/core-js/modules/es6.promise.js:107] [pc=0xc221293e68] (this=0x19...

@sibeliusseraphini

Please close this it was a bug in my code.


feat: support icons_by_file_prefix

Closes #168

make colors makes me delete icons_by_file_prefix table in lua/nvim-web-devicons/icons-light.lua, but this will occur an exception no icons show after set vim.o.background = "light", how can i fix this? If there are something i missed, let me know plz.

Please reopen if you wish to continue this change.