Extremely Slow Loading Times

Hi, I'm currently configuring emacs and landed on catppuccin for its theme.
I really like the theme, but it takes 1.25 seconds to load... on a 2.40 second startup and adds 36 out of 58 garbage collections. In comparison gruvbox adds 0.01 seconds and 2 garbage collections.
This is how I load the theme:
(use-package catppuccin-theme
  :config
  (setopt catppuccin-flavor 'mocha)
  ;; For some reason, loading catpuccin with nil
  ;; doesn't work and it throws an error about
  ;; missing a `catppuccin-definitions.el'
  ;; for profiling: (profiler-start 'cpu)
  (load-theme 'catppuccin :no-confirm)
  ;; for profiling: (profiler-stop)
)

I tried to profile the theme using profiler-start and profiler-stop around (load-theme 'catppuccin) and this is the result:
         221  57% - command-execute
         221  57%  - call-interactively
         221  57%   - funcall-interactively
         221  57%    - execute-extended-command
         221  57%     - command-execute
         221  57%      - call-interactively
         221  57%       - funcall-interactively
         221  57%        - eval-buffer
         221  57%         - condition-case
         221  57%          - if
         221  57%           - condition-case
         221  57%            - progn
         221  57%             - load-theme
         189  49%              - load
         185  48%               - byte-code
         181  47%                - #<compiled -0x88245b19b75c50e>
         166  43%                 - eval
         160  41%                  - let
          73  18%                   - catppuccin-quantize-color
          37   9%                    - catppuccin-color
           6   1%                     - called-interactively-p
           3   0%                      + #<compiled -0x9b3a81caaad56ee>
           6   1%                    - if
           6   1%                     - catppuccin-lighten
           3   0%                      - catppuccin-color
          33   8%                   - catppuccin-color
          10   2%                    - called-interactively-p
           7   1%                     - #<compiled -0x9b3a81caaad56ee>
           7   1%                        backtrace-frame
           6   1%                   - if
           6   1%                    - catppuccin-lighten
           3   0%                     + apply
           3   0%                   + backquote
           9   2%                 - #<lambda 0xf4cc37a01496>
           9   2%                    cadr
          16   4%              - enable-theme
          16   4%               - custom-theme-recalc-face
          16   4%                - face-spec-recalc
          13   3%                 - face-spec-set-2
          13   3%                  - apply
          13   3%                   - set-face-attribute
          13   3%                    - internal-set-lisp-face-attribute
          13   3%                     - frame-set-background-mode
          10   2%                      - face-spec-recalc
           7   1%                       - make-face-x-resource-internal
           7   1%                        - set-face-attributes-from-resources
           7   1%                           set-face-attribute-from-resource
           3   0%                       + face-spec-set-2
           3   0%                        face-list
           3   0%                 + face-spec-reset-face
          13   3%              - disable-theme
           7   1%               - set-frame-parameter
           7   1%                - modify-frame-parameters
           7   1%                 - frame-set-background-mode
           7   1%                  - face-spec-recalc
           4   1%                   - make-face-x-resource-internal
           4   1%                    - set-face-attributes-from-resources
           4   1%                       set-face-attribute-from-resource
           3   0%                   + face-spec-reset-face
           6   1%               - face-set-after-frame-default
           6   1%                - face-spec-recalc
           6   1%                 - make-face-x-resource-internal
           3   0%                  + set-face-attributes-from-resources
         164  42% - ...
         164  42%    Automatic GC

I'm not sure the cause of this sorry, a while ago we removed the no-byte-compile variable from the file and that sped up initial loading time a lot.
Also as long as you are running a relatively new version of catppuccin-theme.el you will need the external catppuccin-definitions.el file beside it.

Also as long as you are running a relatively new version of catppuccin-theme.el you will need the external catppuccin-definitions.el file beside it.

This is the error I get when using (load-theme 'catppuccin nil):

I think this is a bug in use-package instead of catppuccin.

I have now set all instances of no-byte-compile: t to no-byte-compile: nil and tried to compile all files using emacs-lisp-byte-compile, but it did not make a difference. Thinking about it, byte-compiled code also showed up in the profiling and there was a catppuccin-theme.elc, so it should've been byte-compiled.

I'm not sure the cause of this sorry, a while ago we removed the no-byte-compile variable from the file and that sped up initial loading time a lot.

I found the error:

no-byte-compile is supposed to be set on those files.

I think this is a bug in use-package instead of catppuccin. The real catppuccin-definitions.el is at /home/doomdot/.config/emacs/elpa/catppuccin-theme-20241016.2258/catppuccin-definitions.el

Yeah that should be loading in, it works for me when using package.el

Thanks for the quick replies/help, I decided to switch to dracula though.
I'll be closing this issue, since I am no longer affected.
Have a great rest of your night!

Btw, here's the entire config:
;;  Define some useful functions
(defvar init--log-sec nil "Current log section")

(defun init--log-sec-begin (name)
  (message "%s - begin" name)
  (setopt init--log-sec name)
)

(defun init--log-sec-sublog (msg)
  (unless init--log-sec
    (error "'init--log-sec-sublog' called when no section is defined!"))
  (message "%s: %s" init--log-sec msg)
)

(defun init--log-sec-end ()
  (unless init--log-sec
    (error "'init--log-sec-end' called when no section is defined!"))
  (message "%s - done" init--log-sec)
  (setopt init--log-sec nil)
)

;;  Make emacs NOT write its stuff into our config file
(setopt custom-file "~/.config/emacs/emacs-custom.el")
;;  Make sure the file exists
(unless (file-exists-p custom-file)
  (write-region "" nil custom-file)
)
(load custom-file)

;;  Disable annoying "features"
(init--log-sec-begin "Disable features")

(init--log-sec-sublog "tool-bar-mode")
(tool-bar-mode      -1)
(init--log-sec-sublog "menu-bar-mode")
(menu-bar-mode      -1)
(init--log-sec-sublog "scroll-bar-mode")
(scroll-bar-mode    -1)
(init--log-sec-sublog "splashscreen")
(setopt inhibit-startup-message t)

(init--log-sec-end)
(init--log-sec-begin "Enable features")

(init--log-sec-sublog "column-number-mode")
(column-number-mode  1)
(init--log-sec-sublog "show-paren-mode")
(show-paren-mode     1)
(init--log-sec-sublog "visible-bell")
(setopt visible-bell t)
(init--log-sec-sublog "line-numbers")
(setopt display-line-numbers-type 'relative)
(global-display-line-numbers-mode 1)
(init--log-sec-sublog "line-scrolling")
(setopt scroll-step               1
	scroll-conservatively 10000)
(init--log-sec-sublog "FiraCodeNerdFontMono")
(set-frame-font "FiraCodeNerdFontMono 12" nil t)

(init--log-sec-end)

;;  Set up package.el
(init--log-sec-begin "package.el")

(require 'package)
;;; Set repositories
(init--log-sec-sublog "Setting package repositories")
(setopt package-archives
       '(
	  ("gnu"    . "http://elpa.gnu.org/packages/")
	  ("nongnu" . "http://elpa.nongnu.org/nongnu/")
	  ("melpa"  . "http://melpa.org/packages/")
	  ("org"    . "http://orgmode.org/elpa/")
	)
)
(init--log-sec-sublog "Initializing")
(package-initialize)
(init--log-sec-sublog "Refreshing contents")
(unless package-archive-contents
  (package-refresh-contents))
(init--log-sec-end)

;;  Install some packages
(init--log-sec-begin "Installing use-package")
;;; Convenience function for installing packages
(defun init--package-opt-install (package)
  (init--log-sec-sublog (symbol-name package))
  (if (not (package-installed-p package))
    (progn
      (message (symbol-name package))
      (package-install package)
      (init--log-sec-sublog (concat (symbol-name package) " - ok"))
    )
    (init--log-sec-sublog (concat (symbol-name package) " - skipped"))
  )
)
;;; Use-package
(init--package-opt-install 'use-package)

(init--log-sec-end)

(init--log-sec-begin "Install packages")

(require 'use-package)
(setopt use-package-always-ensure t)

(init--log-sec-sublog "auto-package-update")
(use-package auto-package-update
  :custom
  (auto-package-update-interval 7)
  (auto-package-update-prompt-before-update t)
  (auto-package-update-hide-results nil)
  (auto-package-update-delete-old-versions t)
  (auto-package-update-at-time "09:00")
  :config
  (auto-package-update-maybe)
)

(init--log-sec-sublog "catppuccin")
(use-package catppuccin-theme
  :config
  (setopt catppuccin-flavor 'mocha)
  ;; For some reason, loading catpuccin with nil
  ;; doesn't work and it throws an error about
  ;; missing a `catppuccin-definitions.el'
  (load-theme 'catppuccin :no-confirm)
)

(init--log-sec-sublog "ace-window")
(use-package ace-window
  :bind ("C-x o" . ace-window)
)

(init--log-sec-sublog "evil-mode")
(use-package evil
  :config
  (require 'evil)
  (evil-mode 1)
)

(init--log-sec-sublog "undo-tree")
(use-package undo-tree
  :config
  (global-undo-tree-mode)
)

(init--log-sec-end)

(defun display-startup-echo-area-message ()
	(message "Emacs load done in %.2f seconds with %d garbage collection(s)."
		 (float-time (time-subtract after-init-time before-init-time))
		 gcs-done
       )
)


devtools and button timers for like/dislike

[x] create devtools page
[x] delete method
[ ] update method
[ ] timers for like and dislike to prevent spam

devtools page can be accessed by clicking on future feature button.
update is implemented with a button that changes the description to "test"
delete implemented with button that deletes the skatepark.

timers have been implemented for like and dislike now. users must wait 10 seconds before either button will work now.

Also a potential idea could be to have only admins be able to access devtools instead of any user


textblock

I install the package with wagtail 3.0 (I had to make two small tweaks in the edit_handlers.py package script to run it). I had an issue with running the migrations as TextBlock* (from your ReadMe, as below) wasn't recognized. Thus,  I changed it to CharField. This enabled me to enter the information in the admin but without the annotations. That is the selected points are rendered below the image rather on it.
Any input would be highly appreciated. Thanks for the consideration.

class AnnotationForm(BaseAnnotationForm):
title = forms.CharField()
about = forms.TextField()

We haven't update this package to work with  wagtail 3.x yet, which might explain why the selected points are rendering in the wrong spot.
For a textarea element to render using a django form, try using a CharField but changing the widget, like this:
forms.CharField(widget=forms.TextInput)
There isn't a forms.TextField, there's a models.TextField, but that's not used for forms.


plz keep copyright of Megvii but not replace/delete it.

This repo violate apache2.0 license becasue some of your code are comming from YOLOX but you remove the copyright statement.

No problem, but I don't know exactly what to do next.


91porn.com Cannot extract title

Checklist

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2<IP_ADDRESS>
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar issues including closed ones

Verbose log
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'http://www.91porn.com/view_video.php?viewkey=346411d086b719d26d99']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2<IP_ADDRESS>
[debug] Python version 2.7.17 (CPython) - Linux-4.15.0-106-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: none
[debug] Proxy map: {}
[91porn] 346411d086b719d26d99: Downloading webpage
ERROR: Unable to extract title; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 797, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/porn91.py", line 39, in _real_extract
    r'
([^<]+)
', webpage, 'title')
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 1005, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract title; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description
As of recently, I am unable to download from 91porn.com
I get the errors detailed above, some example videos exhibiting this are below:

http://www.91porn.com/view_video.php?viewkey=346411d086b719d26d99&page=&viewtype=&category=
http://www.91porn.com/view_video.php?viewkey=e69edd3eb6aaf26df783&page=&viewtype=&category=
http://www.91porn.com/view_video.php?viewkey=7447423c62b357ac9a8a&page=&viewtype=&category=

Hello, may I ask how did you get his address? I sent a wrong message.

@lzkgbld  the video was likely removed, you can use any video from 91porn
http://www.91porn.com/view_video.php?viewkey=67e4ba8d20d91c9ec3a7

fix seems to be ready and waiting...
https://github.com/ytdl-org/youtube-dl/pull/25842


feat!: make sure lighter/darker are more extreme than lightness/darkness

BREAKING CHANGES:

BREAKING CHANGE

lighter/darker + lightness/darkness parameters

Simplified logic:
--- a/src/index.js
+++ b/src/index.js
-    const lightness = getRandomIntInclusive(64, 80);
-    const darkness = getRandomIntInclusive(0, 24);
-    let lighter = lightness > 76 ? 68 : 84;
-    let darker = darkness < 8 ? 16 : 0;
+    const lighter = getRandomIntInclusive(76, 84);
+    const lightness = getRandomIntInclusive(64, 72);
+    const darkness = getRandomIntInclusive(16, 24);
+    const darker = getRandomIntInclusive(0, 12);

Previously:

80 >= lightness >= 64

lighter = lightness > 76 ? 68 : 84

24 >= darkness >= 0

darker = darkness < 8 ? 16 : 0

From now on:

84 >= lighter >= 76

72 >= lightness >= 64

24 >= darkness >= 16

12 >= darker >= 0

BREAKING CHANGE

complement, analogous, and hue variations (xlight, lighter, mid, lowmid, dark, and darker) property names changed so that hsl comes at the end instead of in the middle: huehslxlight to huexlighthsl, analogoushslmid to analogousmidhsl, etc.

Deploy preview will be broken pending update to example to account for API changes.


Custom CSS

Hi,
I use this plugin on a daily basis, but one thing that bothers me is the style. I would like to customize some CSS properties, eg. line height, margin, etc. Would it be possible to outsource the CSS file to the plugin directory?
Thanks in advance.

I merged ur PR and update release powershell script to include the style.css in the release zip files.

Thank you so much for this feature!
I know it's not actually released yet but I just grab latest source and build a copy myself in visual studio for my x86 notepad++ and it worked as I expected...
Finally a markdown preview plugin I can properly use custom CSS with!!
Note that I did tried MarkdownViewer++ but it didn't display my custom CSS corectly unlike this (pre-release version) plugin and idk why...
Looking forward to official release of new version...


New: Scaffold should generate entity too.

The scaffold command should also create an entity.
Description
Entities are another most usable feature of CodeIgniter. So when we're using the scaffold command it helps by generating Controller, Model, Migrations, and Seeder. An entity also can be generated so no one has to create the same manually.
Checklist:

[ ] Securely signed commits
[ ] Component(s) with PHPDoc blocks, only if necessary or adds value
[ ] Unit testing, with >80% coverage
[ ] User guide updated
[ ] Conforms to style guide

Thank you for sending a PR.
It seems this PR is an enhancement. So this PR should go to 4.3 branch, not develop.
See https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/workflow.md#branching
Please fix the base branch.
See https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/workflow.md#if-you-sent-to-the-wrong-branch

Have you done this?

To include an Entity class in the scaffolded files, just include the --return entity to the command and it will be passed to the model generator.

https://codeigniter4.github.io/userguide/cli/cli_generators.html#scaffolding-a-complete-set-of-stock-code

Have you done this?

To include an Entity class in the scaffolded files, just include the --return entity to the command and it will be passed to the model generator.

https://codeigniter4.github.io/userguide/cli/cli_generators.html#scaffolding-a-complete-set-of-stock-code

Yes, I've tried this and it also works for me.

This feature is already implemented as an option.


QR Code Hidden not working

QR Code doesn't work with hidden network

thanks for the report! would you mind posting the generated QR code and which reader you used?

same as me
WIFI:S:RealmOfXiang;T:WPA;P:12345678;H:true;
show 'no usable data available'

@torchlennon which reader are you using? ZXing or any other?

Same issue here when using iOS 12.1.4(16D57) native camera app.
If I uncheck the Hidden checkbox, it does allow me to connect though so it makes me question the purpose of that checkbox.


Added Overlay OnClickListener, PlayInSequence, Next method

hihi,
Awesome library! Have a look at the changes!
Regards,
workerApe

Thanks for the many commits!
I realize that you are actually working on a few separate features that are not relevant to each other. Can you separate them into different branches and submit as different pull request?
The reason behind this is because there will be some back and forth, for example: I might have some feedback on commit 1, and you might need to do changes on commit 1, but commit 2 is ready to be merged, but I couldn't merge yet due to commit 1 still having to change.
Besides, it is easier for discussion when each relevant feature is in each individual branches, and also easier for me to understand your code.
From what I can see, you are working on:

Overlay listener feature
Convenience method for playing in sequence feature
Method to check if TourGuide is showing

So ideally you should have 3 branches and 3 pull requests (it is alright for feature and the relevant example to go under the same branch).
Thanks again!


MapTypes.fs Interface Generator Bug

Hi,
I've been trying to use google maps' style types, and I believe you have an unwanted line in MapTypes.fs at line 26:
  24: let MapTypeStyler =
  25: Config "MapTypeStyler"
  26: |+> Static [Constructor T]

If you comment out line 26 and rebuild, clients can use the MapTypeStyler type, otherwise there is a compiler error because of the extra constructor definition.
Here is some code that currently fails to compile (fixed above):
    [<JavaScript>]
    module GoogleMaps =
        open WebSharper.JavaScript
        open WebSharper.Google.Maps

        let mts = new MapTypeStyler()

Fixed in commit 27f077d8084222d895ed49f7a0fdcc2d4633bb9e


Dice coefficient as custom objective function

I need to implement dice coefficient as objective function in keras.
Seems to be I can't do it right.
y_true and y_pred in custom objective function are Tensor Variables not a real data like numpy array , that's why we can operate only with backend functions like K.sum, K.dot and others or tensor functions (T.sum, T.dot...)
I tried at first:
def dice_loss1(y_true,y_pred):
 yt = T.flatten(y_true)
 yp = T.flatten(y_pred)
 loss=1.0-2.0*T.dot(yt,yp)/(T.sum(yt)+T.sum(yp))
 return loss;

But also I need clip and round prediction data and (T.sum(yt)+T.sum(yp)) can be zero, that's why:
def dice_loss2(y_true,y_pred):
 yt = K.flatten(y_true)
 yp = K.round(K.clip(K.flatten(y_pred),0.7,1.0))
 sum=K.sum(yt)+K.sum(yp)
 if (sum): loss=1.0-2.0*K.dot(yt,yp)/sum
 else: loss=0.0
 return loss;

I tried to use K.variable and not to use it, nothing new: dice coefficient doesn't work, it calculated wrong.
Please say where am I wrong? I am not fully understand how to work with backend functions and Tensor Variables.

Some my mistakes i corrected and did in a different way . Now code looks like:
def dice_loss3(y_true,y_pred):
 y_true = y_true.astype('int8')
 y_pred=(T.ceil(T.clip(y_pred,0.7,1.0))).astype('int8')
 insec=T.sum(y_true&y_pred)
 sum=T.sum(y_true)+T.sum(y_pred)
 if (sum):
  return (1.0-2.0*insec/sum)
 else:
  return 0.0

But what our objective function must return according to using optimizer?
Seems to be values from [0..1]  returns by dice_loss not good for optimizers.

I see in the main page in "Support" section: you can also post bug reports and feature requests in Github issues That's why I post here.
Maybe somebody know how to implement correct dice_loss function with some optimizer?

@razn7 https://github.com/jocicmarko/ultrasound-nerve-segmentation/blob/master/train.py#L19

@ducha-aiki already have seen, thanks for answer.
Marko use the same as dice_loss1 with some small differences. He decided the problem where sum1+sum2=0 with smooth parameter but not the main: how to use ceil and clip and make dice work more precisely!? Or this impossible due to[from keras google group]: the problem is that loss function must be differentiable, and neither round nor ceil are

You can't use if statements in the loss function since they're not cuda-able
You have K.switch to emulate tensor-wide if statements

what is y_true and y_pred...
in this code , how is he reading y_true and y_pred . Where is he defining y_true, y_pred ? I dint find any.
https://github.com/jocicmarko/ultrasound-nerve-segmentation/blob/master/train.py#L19
Can anyone say , where he is defining y_true and y_pred ? !!

@pratikgorji please refer to some theoretical background on what you are trying to do. I might be wrong but your question shows that you don't fully understand the bigger picture here. This is not a bad thing, but you might want to read more about what you are trying to do before writing any code. I would recommend the following link http://cs231n.github.io but there are many other sources available.  Good luck.


Adds web redirection handling to API client.

Based on the API contract for web redirections provided here.  This will be accompanied with a dependent PR within the https://github.com/go-gandi/terraform-provider-gandi repo.

@nlewo do you have an opinion on this one?

@tiramiseb yep, this LGTM :)


[T3A1] [F09-A3] Antonia Devina

ready for review

The bot does not allow space between the closing square bracket and opening square bracket because it followed the instructions strictly.

Good Job!


Streamline "Add Application" dialog is not dismissed

When trying to create an app the dialog does not disappear after entering the name and selecting the environment and clicking "ok".

Closed via 8faf516


Eject from react-scripts

Fix tests & yarn start
Signed-off-by: Leslie Lazzarino<EMAIL_ADDRESS>Summary of changes
Eject from react-scripts
Context and reason for change
Required to use web workers
How can the changes be tested
Check that all yarn scripts still work

Some of the following dependencies might be unused:
Unused dependencies

@mui/lab
Unused devDependencies
babel-plugin-named-asset-import
browserslist
identity-obj-proxy
jest-resolve
postcss-flexbugs-fixes
postcss-normalize
postcss-preset-env
prompts
sass-loader
tailwindcss
wait-on


storybook/html is affecting storybook/react

storybook-html is affecting @storybook/react
I would like to have 2 script files one to run stories for React component and the other to run stories for plain html and scripts. My React storybook works as charm, as soon as I installed storybook-html from npm I get error when trying to run storybook-react task.
Running : npm run storybook-react
`
    "storybook-react": "start-storybook -p 9001 -c .storybook-react",

    "storybook-html": "start-storybook -p 8001 -c .storybook-html"

`
My config in .storybook-react
'
import { configure, addDecorator  } from '@storybook/react';
import { setDefaults } from '@storybook/addon-info';

// addon-info
setDefaults({
  header: false, // Toggles display of header with component name and description
  inline: true, // Displays info inline vs click button to view
  source: true // Displays the source of story Component
});

const req = require.context('../src/stories/components', true, /\.js$/)

function loadStories() {
  req.keys().forEach((filename) => req(filename))
}

configure(loadStories, module);

'
My webpack.config.js in .storybook-react
`
const path = require("path");

module.exports = {
  module: {
    rules: [
      {
        test: /\.scss$/,
        loaders: ["style-loader", "css-loader", "sass-loader"],
        include: path.resolve(__dirname, "../")
      }
    ]
  }
};

`
I don't even started adding files in .storybook-html and by only installing @storybook/html I got this error:
`
><EMAIL_ADDRESS>storybook-react C:\Projects\LCA\UI
> start-storybook -p 9001 -c .storybook-react
info @storybook/html v4.0.0-alpha.11
info
Terminate batch job (Y/N)? y
PS C:\Projects\LCA\UI> info => Loading custom addons config.
WARN => Custom configuration file C:\Projects\LCA\UI\.storybook-react\webpack.config.js is detected
WARN    but impossible to import loader for .js
info => Loading custom webpack config (extending mode).
10% building modules 2/2 modules 0 activei ｢wdm｣: wait until bundle finished:
(node:2188) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead

`

@storybook/react ^3.4.10
@storybook/html ^4.0.0-alpha.11

Yeah, every supported framework in storybook is creating the same cli file, so they are overriding each other.
You can try using something like this:
"storybook:html": "node node_modules/@storybook/react/bin/index -p 9001 -c .storybook-react",
"storybook:react": "node node_modules/@storybook/html/bin/index -p 8001 -c .storybook-html",

Of course, it's a workaround.


Deployment Enabled

Added multiple remote registry support
-publish 1  required in repo command to enable publishing into the registry
repo -r -n registry -url https://your-registry.com -publish 1

As it stands this doesn't allow multiple servers, it allows two, one with deployment enabled and one not.
DeploymentEnabled should be allowed to be 1 or null instead of 1 or 0 - the unique index will allow one server with it set to 1 (as intended), and many with it set to null.

As it stands this doesn't allow multiple registries, it allows two, one with deployment enabled and one not. DeploymentEnabled should be allowed to be 1 or null instead of 1 or 0 - the unique index will allow one server with it set to 1 (as intended), and many with it set to null.

look here, if 0 it makes it null, so, it's ok
Method %OnBeforeSave(insert As %Boolean) As %Status [ Private, ServerOnly = 1 ]
{
	// Leave DeploymentEnabled null to make unique index work right
	// (i.e., deployment can only be enabled for one remote server.)
	Set:..DeploymentEnabled=0 ..DeploymentEnabled=""
	Quit $$$OK
}

As it stands this doesn't allow multiple registries, it allows two, one with deployment enabled and one not. DeploymentEnabled should be allowed to be 1 or null instead of 1 or 0 - the unique index will allow one server with it set to 1 (as intended), and many with it set to null.

look here, if 0 it makes it null, so, it's ok
Method %OnBeforeSave(insert As %Boolean) As %Status [ Private, ServerOnly = 1 ]
{
	// Leave DeploymentEnabled null to make unique index work right
	// (i.e., deployment can only be enabled for one remote server.)
	Set:..DeploymentEnabled=0 ..DeploymentEnabled=""
	Quit $$$OK
}

Ah - didn't realize we already had code for that, great!

Well, I've decided to change some logic a bit. I don't want to force users to use publish flag, WWE already have two ways of authorizations on registry, which means that the server with that settings may be used for publishing.  So, I've ordered the list of configured registries in order

Server with DeploymentEnabled = 1
Server with Token
Server with Username and Password
Any other servers
So, publish 1 just raise thee priority

Updated the login on changing settings by repo command, so, already defined properties may be limited, as well as the type of registry
zpm "repo -n registry -publish 1"
zpm "repo -n registry -token sometoken"
zpm "repo -n registry -username demo -password demo"


Add PHPUnit 9 support

Hi there,
I'm using this dependency and was wondering if there are plans for PHPUnit 9 support?
It looks like in PHPUnit 9 the PHPUnit\TextUI\ResultPrinter class has been converted into an interface (check sebastianbergmann/phpunit#4024) and there is now a PHPUnit\TextUI\DefaultResultPrinter
So the fix to the issue would be simply to change this part:
https://github.com/LimeDeck/phpunit-detailed-printer/blob/ae5ab59ae406c306b02a7cb8ec95dc99d5e6314c/src/Printer.php#L3-L11
to this:
namespace LimeDeck\Testing;

use PHPUnit\Framework\Test;
use PHPUnit\Framework\Warning;
use PHPUnit\TextUI\DefaultResultPrinter;
use PHPUnit\Util\Test as UtilTest;
use PHPUnit\Framework\AssertionFailedError;

class Printer extends DefaultResultPrinter
{
...
}

Hey @steve-todorov, thanks for the issue. Since you've already got this figured out, could you please create a PR? We could release a major version of this to be able to. support PHPUnit 9.
Thank you!

I've just pushed my changes. Tests are passing on my end but it looks like there's no CI hooked?


[Question-like] SAT resolver in resolver-tests crate

Problem
It's surprised for me to find there is a SAT resolver in resolver-tests crate.
It looks strange,

this resolver is not used anywhere
rust allows install different versions of same package. But in my understanding, SAT only allows one version for each package.

So, it feels like it's useless? What is the purpose of this resolver? Another strategy which might be enabled in the future?
Steps
No response
Possible Solution(s)
No response
Notes
No response
Version
No response

@epage has summarize things pretty well, although he's pasted the same link twice. I am happy to answer any follow-up question you may have! The challenge will be getting me to stop talking. If you have specific questions feel free to ask them here, or come to my office hours. I would appreciate if you could turn your new understanding into documentation. @ShuiRuTian, when you are surprised to see this code, which documentation did you look at? Were there places you looked where there wasn't documentation? Were there confusing things about the documentation you did find?
Let's make (or move) answers to your questions, and put them where you would have found them!

@Eh2406 Hi.
I read the comments in the file and some third-party documents:

Version SAT, describe the SAT and package management: https://research.swtch.com/version-sat?ref=thefeedbackloop.xyz
Thoughts on "Dependency hell is NP-complete", feels like the thought of a member of cargo: https://www.thefeedbackloop.xyz/thoughts-on-dependency-hell-is-np-complete

NOTE: here is some more docs, but not as important as the above ones

pub solver, how dart's package manager works with SAT: https://github.com/dart-lang/pub/blob/master/doc/solver.md
Simplifying the Solver with Functors: https://roscidus.com/blog/blog/2014/09/17/simplifying-the-solver-with-functors/

And I found most of SAT resolvers work for the environment that does not allow duplicated packages(.i.e, you could not have a package with different versions).
It feels like reasonable, if you could download different versions, SAT should be able to always give an answer, then it does not make much of sense to use SAT.
Finally, when I read the resolver of cargo, I wanted to have a look at test files firstly, then I am surprised to find cargo has a SAT resolver only for test. Especially the comment says "The SAT library dose not optimize for the newer version, so the selected packages may not match the real resolver."
Thanks for the following up!

I read the comments in the file

Looking around, you make a good point. We don't seem to have general documentation about what the resolver-tests crates are for. Would you be up for adding a reame.md to https://github.com/rust-lang/cargo/tree/master/crates/resolver-tests ?

pub solver, how dart's package manager works with SAT

If you enjoyed this link, you may also be interested in the https://github.com/pubgrub-rs/pubgrub project and its longform documentation at https://pubgrub-rs-guide.netlify.app/ we would love help.

It feels like reasonable, if you could download different versions, SAT should be able to always give an answer, then it does not make much of sense to use SAT.

In order to always be able to find a solution you either need to not have "these two versions are not compatible" rules (like npm) or not have "these two version constraints do not overlap" (like go). Otherwise you're resolver should be NP-complete and a SAT library might be useful.
SAT is a remarkably general framework. It consists of variables and clauses. If there is a solution each variable must be set to either true or false. Similarly if there is a solution one literal in each clause needs to be true. This is sufficient to model any binary operation. Each bit is variable, and there's a clause ensuring each connection. Considering modern programs are "just" operations on bits in theory SAT can solve anything. Alternatively, you can model circuits directly with the variable for each wire which either has power (true) or does not have power (false) then all connections get modeled with clauses. So any circuit can be modeled in SAT and computers are "just" circuits. So almost anything can be modeled as an SAT problem. Whether SAT solvers can find a solution to that problem is a different story.
So how do we model dependency resolution as an SAT problem.

We create a variables that represents each package version which is set to "true" if the packages in the lock file and "false" if it is unused. https://github.com/rust-lang/cargo/blob/633929d3aa142730466aeb1c7c44001edcc92d57/crates/resolver-tests/src/lib.rs#L256
At this point is possible to select every version of every package. So we need to mark certain versions as incompatible with each other. We could add a clause not A, not B for all A and B that are incompatible, but there are more efficient ways to do it for large numbers of versions. https://github.com/rust-lang/cargo/blob/633929d3aa142730466aeb1c7c44001edcc92d57/crates/resolver-tests/src/lib.rs#L198 if you want "at most one version per package" then you have these constraints for all versions of the package. But for cargo we want "at most one version per compatibility range per package" so we do https://github.com/rust-lang/cargo/blob/633929d3aa142730466aeb1c7c44001edcc92d57/crates/resolver-tests/src/lib.rs#L271
Now different versions can conflict, but dependencies might not be selected. So we need to add clauses that ensure that if a package is selected for each dependency a version that satisfies that dependency is selected. https://github.com/rust-lang/cargo/blob/633929d3aa142730466aeb1c7c44001edcc92d57/crates/resolver-tests/src/lib.rs#L289

I hope that helps you understand what is going on. Feel free to turn this into comments in the code to help answer questions going forward! And if you have follow-up questions please ask!

Cooooool, especially about https://pubgrub-rs-guide.netlify.app/. Looks really interesting.
Need some time to read the doc/code to figure out how it works. Would like to contribute a README if I am ready in future!

@epage , what is correct tag for "help wanted" these days?

S-accepted

Assumed Eh2406 was going to tag this as S-accepted for documenting things discussed above, so I went ahead and did that.


[Bug]: TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

Current Behavior
from gptcache.adapter.langchain_models import LangChainChat
Traceback (most recent call last):
File "/home/ld/miniconda3/envs/llm/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/ld/miniconda3/envs/llm/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/ld/.vscode-server/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/main.py", line 39, in
cli.main()
File "/home/ld/.vscode-server/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 430, in main
run()
File "/home/ld/.vscode-server/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 284, in run_file
runpy.run_path(target, run_name="main")
File "/home/ld/.vscode-server/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 321, in run_path
return _run_module_code(code, init_globals, run_name,
File "/home/ld/.vscode-server/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 135, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/home/ld/.vscode-server/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 124, in _run_code
exec(code, run_globals)
File "/home/ld/code/cache_t/gptcache_t.py", line 14, in
from cache import MyLangChainChat
File "/home/ld/code/cache_t/cache/init.py", line 1, in
from .langchainchat import MyLangChainChat
File "/home/ld/code/cache_t/cache/langchainchat.py", line 4, in
from gptcache.adapter.langchain_models import LangChainChat
File "/home/ld/miniconda3/envs/llm/lib/python3.10/site-packages/gptcache/adapter/langchain_models.py", line 30, in
class LangChainLLMs(LLM, BaseModel):
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
Expected Behavior
No response
Steps To Reproduce
No response
Environment
ubuntu: 22.04 LTS
gptcache: 0.1.40

Anything else?
No response

Looking into it, it looks like the metaclass from Langchain's LLM and pydantic's BaseModel are mismatched :

So the hierarchy from LangChainLLMs raises an error.
I did some dirty testing and it seems that simply removing BaseModel from the hierarchy fixes the issue. I however don't have the big picture knowledge necessary to know what are the impacts of that change
Any chance for a fix ?

This seems to need to be fixed in langchain repo

This issue seems to still be present using Langchain v0.0.312 and GPTCache v0.1.42 :
>>> from gptcache.adapter.langchain_models import LangChainLLMs
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/kovac/.pyenv/versions/ENV/lib/python3.11/site-packages/gptcache/adapter/langchain_models.py", line 30, in <module>
    class LangChainLLMs(LLM, BaseModel):
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

This problem occurs when Pydantic v2 is installed.
It is explained on the Langchain side and can be solved by using Pydantic v1 and v2 without mixing them.(https://python.langchain.com/docs/guides/pydantic_compatibility)
The following classes used in gptcache/adapter/langchain_models.py both already inherit from pydantic.BaseModel.

langchain.llms.base.LLM
langchain.chat_models.base.BaseChatModel

Currently, the Langchain side explicitly uses Pydantic v1, so when the GPTCache side is in a situation to inherit v2, an error occurs.
As already suggested, it would be best to remove BaseModel inheritance from LangChainLLMs and LangChainChat.

I am currently encountering this issue myself, and since I cannot lower the version of Pydantic or Langchain, I have added code to my repository to work around it. May I submit this as a pull request?

yes, you can do it

thank you very much @yacchi . i've tried to use your forked repository and it works well!


fixing https-instancecert-nodejs.config configuration file

After testing the .ebextensions configuration file , I have detected two major issues. They are:

In line 60, the 'ssl_ciphers' option breaks the communication between the Load Balancer and the instance. Removing this line solves the issue. Please find the code snip below:
--- snip ---
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
--- snip ---

From line 88 to line 90, there is a container_commands key to restart Nginx proxy. The ebextensions fails with the following error message:
[SUPRESSED] INFO [SUPRESSED] - [Application update SUPPRESED@SUPPRESED/AppDeployStage0/EbExtensionPostBuild/Infra-EmbeddedPostBuild/postbuild_0_nodejs_test/Command 01restart_nginx] : Activity execution failed, because: /bin/sh: service: command not found
(ElasticBeanstalk::ExternalInvocationError)

This error message can be found in /var/log/eb-activity.log on the EC2 instance.
Removing this solves the issue since inside the appdeploy/enact folder Elastic Beanstalk has a hook script that restart the proxy layer.
Please find the code snip below:
--- snip ---
container_commands:
01restart_nginx:
command: "service nginx restart"
--- snip ---

Thanks @rmedeir ! I will merge.


Use reserved keywords as form data variable name

First check

[x] I added a very descriptive title to this issue.
[x] I used the GitHub search to find a similar issue and didn't find it.
[x] I searched the FastAPI documentation, with the integrated search.
[x] I already searched in Google "How to X in FastAPI" and didn't find any information.
[x] I already read and followed all the tutorial in the docs and didn't find an answer.
[x] I already checked if it is not related to FastAPI but to Pydantic.
[x] I already checked if it is not related to FastAPI but to Swagger UI.
[x] I already checked if it is not related to FastAPI but to ReDoc.
[x] After submitting this, I commit to one of:

Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.
I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.
Implement a Pull Request for a confirmed bug.

Example
Here's a self-contained, minimal, reproducible, example with my use case:

from fastapi import FastAPI, Form

app = FastAPI()

@app.get("/")
def read_root(from_: str = Form(...)):
    return {"Hello": from_}

Description
In the above example I have a value that comes in as multipart/form-data so I am using the Form feature from FastAPI to read it. However, the variable's name coming in is not actually from_ but rather just from. I'm unable to change this as this is being hit from a 3rd party service.
When receiving application/json I'm able to get around this by using Pydantic's alias feature. I've tried implementing solutions shown in https://github.com/tiangolo/fastapi/issues/2387. However that doesn't work when the alias names are reserved keywords in python(for example "from" or having a hyphen).
What would be great is if there was a way to alias the Form variables like you can in a Pydantic model using an arbitrary string.
Environment

OS: CentOS 7
FastAPI Version: 0.63.0
Python version: 3.8.6

`from_: str = Form(..., alias="from")

`from_: str = Form(..., alias="from")

Thanks I found this just as you commented actually. I will open a pull request to add this to the docs unless you know of it being somewhere already. I wasn't able to find that this was a thing without digging into the source code for Form

Thanks I found this just as you commented actually. I will open a pull request to add this to the docs unless you know of it being somewhere already. I wasn't able to find that this was a thing without digging into the source code for Form

Not for form specifically, but for Query, there is:

Not for form specifically, but for Query, there is:


Infinite transmission notification

Hi,
When I set my logging to INFO level, I'm getting continuously a transmission success message, which in turn is transmitted, which.. once again logs a transmission success
2020-04-02 13:31:32,141 INFO Transmission succeeded: {"itemsReceived":1,"itemsAccepted":1,"errors":[]}.
2020-04-02 13:31:47,879 INFO Transmission succeeded: {"itemsReceived":1,"itemsAccepted":1,"errors":[]}.
2020-04-02 13:32:04,620 INFO Transmission succeeded: {"itemsReceived":1,"itemsAccepted":1,"errors":[]}.

There is a branch of code in https://github.com/microsoft/opentelemetry-azure-monitor-python/blob/master/azure_monitor/src/azure_monitor/export/init.py
if response.status_code == 200:
                logger.info("Transmission succeeded: %s.", text)
                return ExportResult.SUCCESS

The Transmission Succeeded message is logged everytime a teleemtry envelope is sent successfully. Since  you are either using the trace or metrics exporter, it runs in a separate worker thread and exports every export_interval seconds. That is the reason you are seeing multiple messages in the logs. The logs that you see are not "transmitted" to Azure monitor for 2 reasons:

Log exporter is not implemented yet
The Python logger is unique per name, the logger that is being used here belongs to __init__.py in the export folder. The only logs that would be exported would be from loggers that are in the user's applications.

The transmission logs did end up in Azure monitor, however I can see how that's the application configuration issue.
The root logger was configured with an AzureLogHandler, causing this behaviour.
Thanks for clarifications!


Infra#T02: for hardware presure test before we can get it.

More detailed info is here:
https://thcloud-ai.sg.larksuite.com/wiki/XLCtwQibkiqAeHkT72DlUzjcghe


Add events.

Before/after remove.
Before/after drop ?
Before/after show preview ?

+1

dragstart
dragend
dragenter
dragover
dragleave

@iblis76  This is the same scenario as #55

I think simplest way is after the dropify element already initialized, we looking for class .dropify-remove and bind click event into it
$('.dropify').find('.dropify-remove').on('click',(e)=>callback(e))


Clarify how to scale a cluster created with acs-engine up and down.

Is this a request for help?: Yes

Is this an ISSUE or FEATURE REQUEST? (choose one): ISSUE

What version of acs-engine?: Any

Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm)
Any
What happened:
I was looking to find docs on changing the size of a cluster created with acs-engine. I found this but it's very unclear what it is trying to say or mean.
What you expected to happen:
I found documentation on how to scale a cluster up and down, ideally as a User Guide!

Have you taken a look at this project: https://github.com/wbuchwalter/Kubernetes-acs-engine-autoscaler

@dcieslak19973 I recently discovered it! I could probably trawl through the code and figure it out, but since resizing a cluster feels like such a fundamental part of runing a cluster, I am hoping someone who already knows it will just write docs :)

I'll see if I can make a PR to improve, but the doc is already pretty much complete (albeit missing some newlines :) )
In the mean time, to unblock you, here is the same thing explained a bit differently, let me know if it makes more sense:
Scaling Up:
The issue when scaling up using ARM templates, is that you may overwrite some changes made by kubernetes after the first deployment.
Namely, k8s will make changes to the network resources, and if you just redeploy the template with a different agent count this changes will get overwritten, and all your kubernetes services will stop working.
In order to avoid that, when scaling up you need to do two (and a half) things. I will assume that the pool you want to scale up is name agentpool1 and you want to go from 2 to 3 agents:

In the parameters file, add a pool1Offset parameter and the value for this param will be 2 (the current number of agents, that we don't want to overwrite)
You also need to delete the Microsoft.Network/networkSecurityGroups resource from the template, again, not to overwrite modifications made by k8s.

the Microsoft.Network/virtualNetworks has a dependency on the NSG, so you'll need to also delete the dependency of the VNet on the NSG in  dependsOn.

You should now be able to scale correctly and without service interruption. Use incremental mode to deploy the template.
Scaling Down:
You'll need to use Azure REST API.
See: https://github.com/wbuchwalter/Kubernetes-acs-engine-autoscaler/blob/master/autoscaler/engine_scaler.py#L71

Thanks for that, @wbuchwalter! Let me see if I understand this correctly!
To scale up, I should:

Take a copy of the JSON template that was used to create the cluster
Manually remove the network security groups & virtual networks
Add an offset parameter to the params.json file.
Apply this.

To delete nodes:

Use the azure REST API to remove the node (and associated nic + disks)

is this accurate?
If so, how do you manage:

Multiple scaling up - I've already scaled up, and now want to scale up again. What do I use for offset and count?
Scaling up after scaling down - If I delete some of the nodes so the count changes, what parameters do I use?

That would be most useful, thanks :)

re: the az tool, we've generally had bad experiences with its usability & error reporting and so are trying to avoid it (we're still using it to apply ARM templates tho). acs-engine also had 1.6 way for a long time before az seemed to get it, and it's unclear to us if this lag will persist - so we'll prefer using acs-engine for now!
I'll take a look at the autoscaler - thanks for pointing to it! The reason we want to be able to manually scale is because we want something like https://github.com/kubernetes/autoscaler/pull/77 - waiting until all nodes are full before requesting we spin up a new node is too slow for our use case.
Thanks!

Manually remove the network security groups & virtual networks
Only remove the network security group. You should keep the VNet, but remove the depency it has on the network security group.
For example in the original template the VNet should look like that:

    {
      "apiVersion": "[variables('apiVersionDefault')]",
      "dependsOn": [
        "[concat('Microsoft.Network/networkSecurityGroups/', variables('nsgName'))]",
        "[concat('Microsoft.Network/routeTables/', variables('routeTableName'))]"
      ],
      "location": "[variables('location')]",
      "name": "[variables('virtualNetworkName')]",
      "properties": {
        "addressSpace": {
          "addressPrefixes": [
            "[variables('vnetCidr')]"
          ]
        },
        "subnets": [
          {
            "name": "[variables('subnetName')]",
            "properties": {
              "addressPrefix": "[variables('subnet')]",
              "networkSecurityGroup": {
                "id": "[variables('nsgID')]"
              },
              "routeTable": {
                "id": "[variables('routeTableID')]"
              }
            }
          }
        ]
      },
      "type": "Microsoft.Network/virtualNetworks"
    },

And you should remove this line:
 "[concat('Microsoft.Network/networkSecurityGroups/', variables('nsgName'))]",

Multiple scaling up - I've already scaled up, and now want to scale up again. What do I use for offset and count?

Offset is always equal to the number of nodes you currently have in your cluster, and count is equal to the number of nodes you want.
Say you had 2 nodes originally, and scaled to 3 nodes. Now you want to scale again to 5 nodes, offset would be 3 and count would be 5.

Scaling up after scaling down - If I delete some of the nodes so the count changes, what parameters do I use?

One thing I forgot to mention, when you scale down, you should always kill the most recent node, aka the one with the highest id (node names are in the form k8s-pool-xxxx-<id>).
If you kill a node that isn't the most recent one you will have issue when scaling up again.
But if you do that, scaling up after scaling down is no different: Offset is the current number of nodes (so after scaling down) and count is your desired agent count.

Regarding the autoscaler

waiting until all nodes are full before requesting we spin up a new node is too slow for our use case.

There is an --over-provision flag in the autoscaler which allows you to scale up preemptively. This flag basically tells the autoscaler that whenever it needs to scale up, it should not scale up just to match the current demand, but also add an extra N nodes. If after some time (by default 30 minutes) these extra nodes are not used they will get killed, but it should make scaling up faster. Could tfit your needs ?

Hi, how about adding new master node?

Is that the same process for master-nodes ?

I know this topic is closed but If anybody lands here this may be helpful ... https://github.com/Azure/acs-engine/blob/487b5688a57c38440a180b2fb239373b6e3ea076/docs/kubernetes/scale.md

@wbuchwalter Hi, I tried , but always got below error. The acs-engine version is 0.13.1
Deployment failed. Correlation ID: 08d74499-6a48-4426-bee8-52a00e4c9184. {
"error": {
"code": "PropertyChangeNotAllowed",
"target": "customData",
"message": "Changing property 'customData' is not allowed."
}
}

Same error. @wbuchwalter is there any specificity for cluster deployed with custom vnet ?

Haven't tried this with custom vnet myself, maybe @jackfrancis would know?


raw-data

Hello，i would like to learn mne from your project. I wonder if the raw data used in this project could be provided for understanding the code. Thank you!

Hello, I can give you more information about the functioning of the code, which even due to lack of time I could not make it more interpretable. I can also provide you with the specifications of the input data for this code, but I cannot provide you directly with the EEG files/data because they are not public and have privacy requirements.


Less verbose CI build

@joaomoreno yeah I am seeing ANSI escape sequences popping up in the travis output if I do not take out colors :-/
Summary of my changes:

back to dot reporter to not get spam test output
no more verbose output from NLS and CSS inline warnings

I also played around with "npm install --silent" to hide the npm output but that does not bring much due to https://github.com/npm/npm/issues/10732. I also noticed you can do "gulp --silent" though I fear that might take out too much.
Interestingly you can add markers for Travis to produce folding regions (e.g. https://github.com/macbre/travis-fold).
No matter what, Appveyor does not support folding it seems...

@bpasero Those look like text printed out by some of the tests... Notice how there are both white and yellow dots in there, so colors are working. But they go away when taking out the colors? 😕

@joaomoreno good point, I removed the --no-colors.


Fixed the Python version issue and update the quickstart URLs

I created a PR to fix the Python version issue and update the quickstart URLs. This resolves the following issues:
Issue #28
Issue #20
Issue #13

@rahul188 Instead of updating automation script, pls add the ignore checks in the template.

@sshvans i have made changes in templates.

@sshvans can you take a look on this? as its customer is waiting for this fix.

/do-e2e-tests

@sshvans , can you please elaborate the failure?

@rahul188 It uses following 3 parameters to deploy the stack. Currently, the test is failing bcz these values are missing in the config file that is stored internally and used while testing the templates. Can you provide these values over email that can be stored and used for testing?
NewRelicAccountNumber: ''
LaunchAccountList: ''
NewRelicAccessKey: ''

@sshvans, For testing purposes, to avoid security hiccups please create a new free New Relic account and provide the following values to update the config file:

NewRelicAccountNumber
NewRelicAccessKey

Additionally, could you also provide more information on what values should be populated for the LaunchAccountList variable?

/do-e2e-tests

@tbulding , can you give us more insights.

Please add the additional parameters to your TaskCat test file...
      AdditionalParametersLicenseKey: ''
      NewRelicLicenseKey: ''

Template validation for these templates is failing with errors due to number of characters (32 instead of 40). Additionally the Regex Pattern is reporting false positives when I modified them in my test environment. I changed the pattern from
'^([A-Z0-9-]){32}$'
to
'^[A-Za-z0-9]{40}$'

templates/control-tower-customization.template.yml
templates/newrelic-hub-cfct.yaml
After making these modifications in my test environment, The test started, however it failed when creating the custom resource. Here are the error details...
"
"StackName": "tCaT-cfn-ps-ct-newrelic-one-newrelic-onboarding",
"LogicalResourceId": "NewRelicFirstLaunch",
"PhysicalResourceId": "tCaT-cfn-ps-ct-newrelic-one-newrelic-onboarding-us-west-2-...",
"ResourceType": "AWS::CloudFormation::CustomResource",
"Timestamp": "2024-08-09T17:21:42.851000+00:00",
"ResourceStatus": "CREATE_FAILED",
"ResourceStatusReason": "Received response status [FAILED] from custom resource. Message returned: ERROR: (truncated) xist\nFor more information check ...
(Service: AmazonCloudFormation; Status Code: 400; Error Code: ValidationError; Request ID: ...; Proxy: null) (RequestId: ...)",
"ResourceProperties": "{\"ServiceToken\":\"arn:aws:lambda:us-west-2:...:function:tCaT-cfn-ps-ct-newrelic-o-NewRelicOnboardingFuncti-...\"}"

@tbulding the above failure with status code 400 due to StackSetUrl which present in .taskcat.yml file was not accessible. i have updated the same StackSetUrl which is present in control-tower-customization.template.yml file and now its woking as expected.

/do-e2e-tests

Please update the constraint restrictions for the Access Key in these files.
^([A-Z0-9-]){32}$
^([A-Z0-9-]){32}$

/do-e2e-tests

/do-e2e-tests

I know this was merged already, but I think there is an issue with commit d104340 .  This changed the NewRelicAccessKey requirement from 32 to 40 character for NewRelicAccessKey, but I think 32 is the correct value.  NewRelic 'Ingest - License' keys are 40 characters, but my 'NerdGraph User' keys all seem to be 32 characters.  I created a new User key today and it was 32 characters including the NRAK prefix and the '-' character.
Should I create a new issue or would rahul188 like to address this?


Bug: Some commands do not exit properly when cancelled with pending output

Example, run 'ls' on a large directly and then press ^C. The next command run will continue the output from the previous command.

Thread to read stderr was removed and all commands use 2>&1 to redirect stderr to stdout


Installation instruction

Hi guys,
I am a bit confused about which files go where?
Could you give us a simple instruction set?
Kind regards,
Mike

Hi Mike
The template is tested for vtiger 6. to install
You need to copy isleenlayout folder to layout folder and isleen folder to libraries. change the default theme in viewer class.

Thanks for the quick reply!
I will check it out

Hi,
Should it be changed like this;
const DEFAULTLAYOUT = 'vlayout';
const DEFAULTTHEME  = 'isleen';
?

const DEFAULTLAYOUT = 'isleenlayout';

I am getting a l lot of errors. I did follow your instructions to the letter.
info.png / settings.png are missing. Errors with AccessDenied, when going to Administrator > CRM Settings I get: Unable to load template file 'modules/Vtiger/uitypes/PhoneDetailView.tpl' in 'modules/Vtiger/DetailViewBlockView.tpl
I now have:
const DEFAULTLAYOUT = 'isleenlayout';
const DEFAULTTHEME = 'isleen';

Disable notification functionality
On 23 Jul 2015 20:20, micagroup<EMAIL_ADDRESS>wrote:I am getting a l lot of errors. I did follow your instructions to the letter.
info.png / settings.png are missing. Errors with AccessDenied, when going to Administrator > CRM Settings I get: Unable to load template file 'modules/Vtiger/uitypes/PhoneDetailView.tpl' in 'modules/Vtiger/DetailViewBlockView.tpl
I now have:
const DEFAULTLAYOUT = 'isleenlayout';
const DEFAULTTHEME = 'isleen';
—Reply to this email directly or view it on GitHub.

I'm sorry, but I don't know how that works. I would love to give you some usefull feedback, but with these instructions I'm getting nowhere.

Error when trying to load widget;

committed notification disabled

did your issue fixed

I also got the same problem as micagroup.
You told us we should disable notifications, but no one knows HOW!
ALso you dont answer via E-Mail - so i´ll try here to:
SAME Errors as @micagroup

Access Denied
tpl missing (when have alook at vtigers vlayout, there seems to be missing more then 10 tpls
Widget on dashboard error.

So - please provide UNDERSTANDABLE Support - or dont offer it...
thanks (sry, but waiting for 5! days for an answer, yet)

Hi
We committed disabled notification code.
thank

Added installation instruction in readme file

Sorry, but you DID NOT give instructiuons in readme about how to disabling notifications...


Task not serializable error with HashingTF

Hello,
Using org.apache.spark.mllib.feature.HashingTF in an RDD map gives Task Not Serializable error. Code:
import org.apache.spark.mllib.feature.HashingTF
val spamText = sc.textFile(dataLocation)
val tf = new HashingTF(numFeatures = 10000)
val spamFeatures = spamText.map(email => tf.transform(email.split(" ")))
org.apache.spark.SparkException: Task not serializable
org.apache.spark.util.ClosureCleaner$.ensureSerializable(ClosureCleaner.scala:166)
org.apache.spark.util.ClosureCleaner$.clean(ClosureCleaner.scala:158)
org.apache.spark.SparkContext.clean(SparkContext.scala:1605)
org.apache.spark.rdd.RDD.map(RDD.scala:286)

I think that's not the fault of ISpark.
I think if you compile the code and submit you will get the same message.

The problem does not exist on Zeppelin, though.

I probably encounter it somewhere else before, could you try:
@transient val tf = new HashingTF(numFeatures = 10000)

and let me know the result
?

I tried with the @transient, but I'm getting the same error.
Would you need extra info about my configuration? I can post my ipython_config.py if you want.

I've tested again on the latest build and didn't see this problem, it may be a bug on 1.3.0 but was resolved 0.0.1 later, I'll upload the latest jar tomorrow.

New jar and source code uploaded. Please use the following code to test:
import org.apache.spark.mllib.feature.HashingTF
val text ="Apache Spark is an open-source cluster computing framework originally developed in the AMPLab at UC Berkeley. In contrast to Hadoop's two-stage disk-based MapReduce paradigm, Spark's in-memory primitives provide performance up to 100 times faster for certain applications.[1] By allowing user programs to load data into a cluster's memory and query it repeatedly, Spark is well suited to machine learning algorithms.[2]"
val spamText = sc.parallelize(text.split("[\.,]"))
val tf = new HashingTF(numFeatures = 10000)
val spamFeatures = spamText.map(email => tf.transform(email.split(" ")))
spamFeatures.count()
case closed

Thank you for the quick fix.


VQ-VAE with discrete flows

I've been trying this autorregresive model for quantizised vectors tokens. So far, the training has been troublesome. Any suggestions?
Thanks in advance.

Weird model! If you’re doing the usual VQ-VAE thing with the straight through estimator, could there be some kind of accumulation of error? I can’t picture the model exactly, but you’ll probably have problems with any VQ-VAE if you have an auto regressive process in training that can “compound” the error from the ST estimator.

I'm not familiar with STE concept. The discrete flow is to model the prior of the discrete bottleneck sequence given by the previously trained encoder.  So far, the KL term goes to high (around a 2 billion value) so the training goes nowhere. I guess I'll try something else. Thanks for replying anyway.


Update package.json to include latest vedajs

Fixes issue with lib/camera-loader using removed createObjectURL method call in webcam examples.

Thanks!


Feature: Add Singly Linked List program in Java (Insertion [start, end, mid], Deletion [start, end, mid], Traversal)

assign this issue to me @akgmage

assign this to me please @akgmage .

i can make traversal in both approaches iterative and recursive.please assign this issue to me.


HE notification loop

Build 10307312
Upon launching game, you get a looping notification that the garrison has discovered HE in sector.
Imported from trac ticket #135,  created by Big_Beta_Tester on 07-13-2010 at 01:11, last modified: 08-11-2010 at 20:38

Garrison also reports HE in sectors not yet scouted (looping).
Trac comment by Big_Beta_Tester on 07-13-2010 at 01:14

Replying to [ticket:135 Big_Beta_Tester]:

Build 10307312
Upon launching game, you get a looping notification that the garrison has discovered HE in sector.

we dont want the octal dates, just give us a build#.  it would be helpful if you can identify exactly which build this started happening in (i would look around the time i committed changes for the #100 set)
Trac comment by anonymous on 07-13-2010 at 03:43

This would have been avoided if the MSGVER was incremented, I guess I'm not completely blameless, i could have altered the patch...
Trac comment by Imago on 07-13-2010 at 23:20

client and server were not compatible.
Trac comment by Big_Beta_Tester on 07-13-2010 at 23:16

It was me who had the server out of sync problem.  This was a real error.
Trac comment by Xynth on 07-15-2010 at 01:27


Link in the speaker detail activity is not clickable

Actual Behaviour
Link in the speaker detail activity is not clickable
Expected Behaviour
Link should be clickable
Steps to reproduce it
Add steps to reproduce bugs or add information on the place where the feature should be implemented. Add links to a sample deployment or code.
LogCat for the issue
Provide logs for the crash here
Screenshots of the issue

Would you like to work on the issue?
yes, I would like to work on this. it can be changed to something like this

@amitiwary999 Can you specify the link which you are talking about?

@harshitagupta30 updated the issue comment.

@amitiwary999 Sure, go ahead,


Tag: fix stop propagation problem

Please make sure these boxes are checked before submitting your PR, thank you!

[ ] Make sure you follow Element's contributing guide (中文 | English | Español | Français).
[ ] Make sure you are merging your commits to dev branch.
[ ] Add some descriptions and refer relative issues for you PR.

Closes #15149

@infjer 看一下 review 的评论


New version: ContinuousWavelets v1.1.3

Registering package: ContinuousWavelets
Repository: https://github.com/UCD4IDS/ContinuousWavelets.jl
Created by: @dsweber2
Version: v1.1.3
Commit: 0477fbac338127ddad050bc2c83aa95ee8f0accc
Reviewed by: @dsweber2
Reference: https://github.com/UCD4IDS/ContinuousWavelets.jl/commit/0477fbac338127ddad050bc2c83aa95ee8f0accc#commitcomment-74431993
Description: wide array of continuous wavelet transforms using Julia

block, created non-skipping versioning, apparently separately


Grpc call canceled by client - not a failure

Here are 3 occurances of I think the same thing...
[From Serval]
fail: Microsoft.AspNetCore.Server.Kestrel[13]
      Connection id "0HMSKT8T418KU", Request id "0HMSKT8T418KU:00000002": An unhandled exception was thrown by the application.
      Grpc.Core.RpcException: Status(StatusCode="Cancelled", Detail="Call canceled by the client.", DebugException="System.OperationCanceledException: The operation was canceled.")
       ---> System.OperationCanceledException: The operation was canceled.
         --- End of inner exception stack trace ---
         at Serval.Translation.Services.EngineService.GetWordGraphAsync(String engineId, String segment, CancellationToken cancellationToken) in /app/src/Serval.Translation/Services/EngineService.cs:line 100
         at Serval.Translation.Controllers.TranslationEnginesController.GetWordGraphAsync(String id, String segment, CancellationToken cancellationToken) in /app/src/Serval.Translation/Controllers/TranslationEnginesController.cs:line 309
         at lambda_method367(Closure , Object )
         at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ExceptionContextSealed context)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
         at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
         at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
         at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
         at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
         at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)

[From Machine]
fail: Grpc.AspNetCore.Server.ServerCallHandler[6]
      Error when executing service method 'GetWordGraph'.
      System.Threading.Tasks.TaskCanceledException: A task was canceled.
         at SIL.Machine.Utils.ObjectPool`1.GetAsync(CancellationToken cancellationToken) in /app/src/SIL.Machine/Utils/ObjectPool.cs:line 56
         at SIL.Machine.Translation.Thot.ThotSmtModel.GetWordGraphAsync(String segment, CancellationToken cancellationToken) in /app/src/SIL.Machine.Translation.Thot/ThotSmtModel.cs:line 120
         at SIL.Machine.Translation.HybridTranslationEngine.GetWordGraphAsync(String segment, CancellationToken cancellationToken) in /app/src/SIL.Machine/Translation/HybridTranslationEngine.cs:line 208
         at SIL.Machine.AspNetCore.Services.SmtTransferEngineService.GetWordGraphAsync(String engineId, String segment, CancellationToken cancellationToken) in /app/src/SIL.Machine.AspNetCore/Services/SmtTransferEngineService.cs:line 97
         at SIL.Machine.AspNetCore.Services.SmtTransferEngineService.GetWordGraphAsync(String engineId, String segment, CancellationToken cancellationToken) in /app/src/SIL.Machine.AspNetCore/Services/SmtTransferEngineService.cs:line 97
         at SIL.Machine.AspNetCore.Services.ServalTranslationEngineServiceV1.GetWordGraph(GetWordGraphRequest request, ServerCallContext context) in /app/src/SIL.Machine.AspNetCore/Services/ServalTranslationEngineServiceV1.cs:line 61
         at Grpc.Shared.Server.UnaryServerMethodInvoker`3.ResolvedInterceptorInvoker(TRequest resolvedRequest, ServerCallContext resolvedContext)
         at Grpc.Shared.Server.UnaryServerMethodInvoker`3.ResolvedInterceptorInvoker(TRequest resolvedRequest, ServerCallContext resolvedContext)
         at SIL.Machine.AspNetCore.Services.UnimplementedInterceptor.UnaryServerHandler[TRequest,TResponse](TRequest request, ServerCallContext context, UnaryServerMethod`2 continuation) in /app/src/SIL.Machine.AspNetCore/Services/UnimplementedInterceptor.cs:line 21
         at Grpc.Shared.Server.InterceptorPipelineBuilder`2.<>c__DisplayClass5_0.<<UnaryPipeline>b__1>d.MoveNext()
      --- End of stack trace from previous location ---
         at Grpc.Shared.Server.InterceptorPipelineBuilder`2.<>c__DisplayClass5_0.<<UnaryPipeline>b__1>d.MoveNext()
      --- End of stack trace from previous location ---
         at Grpc.AspNetCore.Server.Internal.CallHandlers.UnaryServerCallHandler`3.HandleCallAsyncCore(HttpContext httpContext, HttpContextServerCallContext serverCallContext)
         at Grpc.AspNetCore.Server.Internal.CallHandlers.ServerCallHandlerBase`3.<HandleCallAsync>g__AwaitHandleCall|8_0(HttpContextServerCallContext serverCallContext, Method`2 method, Task handleCall)

[From Serval]
\u001b[41m\u001b[30mfail\u001b[39m\u001b[22m\u001b[49m: Microsoft.AspNetCore.Server.Kestrel[13]
      Connection id \"0HMSKT8T418G2\", Request id \"0HMSKT8T418G2:00000002\": An unhandled exception was thrown by the application.
      Grpc.Core.RpcException: Status(StatusCode=\"Cancelled\", Detail=\"Call canceled by the client.\", DebugException=\"System.OperationCanceledException: The operation was canceled.\")
       ---> System.OperationCanceledException: The operation was canceled.
         --- End of inner exception stack trace ---
         at Serval.Translation.Services.EngineService.GetWordGraphAsync(String engineId, String segment, CancellationToken cancellationToken) in /app/src/Serval.Translation/Services/EngineService.cs:line 100
         at Serval.Translation.Controllers.TranslationEnginesController.GetWordGraphAsync(String id, String segment, CancellationToken cancellationToken) in /app/src/Serval.Translation/Controllers/TranslationEnginesController.cs:line 309
         at lambda_method367(Closure , Object )
         at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ExceptionContextSealed context)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
         at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
         at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
         at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
         at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
         at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)

What exactly happened?  Wordgraph?  Client cancelled?  This should (likely) be an info, not a failure.

A few more messages before:

One idea is that two requests were sent at nearly exactly the same time - and that Serval cracked under it.
Or that the cancellation token was invoked - how would we figure that out?

Maybe the SF client in the browser cancelled the request to the SF backend and it bubbled all the way up to the engine.

I'm not sure how to address this. Is this reproducible? Is it happening often in the logs, @johnml1135? I could certainly filter the logs such that these exceptions are logged as info rather than error (preferable for alerting purposes etc.) if indeed they are a product of normal use as it seems they are.

We could try calling the Serval endpoint using Postman or something like it and cancelling the request to see if it causes this.

It is a bug (one way or the other).  I am inclined to just leave it alone for now and see if it happens again.

The same bug came up for me when running tests as I cancelled a request. Seems like it's likely normal behavior; should we set up a filter then to keep this from registering as a fail?

Yes - it should not register as a fail if it is cancelled from the client.  A filter should be fine.

Fixed here.


I can't get the library to work properly for the life of me.

Describe your problem here.
Attempting to build a modified version for Linux, and this is one of the main issues.
After exporting in any way, attempting to run the file returns the error:
Error : [lime.utils.Preloader] ERROR: There is no asset library with an ID of "songs"
I've attempted completely redoing the code for that multiple times, taking it back from this git, etc
<library name="videos"        preload="true" />

	<library name="songs"         preload="true" />
	<library name="shared"        preload="true" />

	<library name="songs"         preload="false" />
	<library name="shared"        preload="false" />

<assets path="plugins/"             rename=''               if="VIDEOS_ALLOWED windows" />
<assets path="dlls/"                rename=''               if="VIDEOS_ALLOWED windows" />
<assets path="assets/videos"        library="videos"        if="VIDEOS_ALLOWED"/>
<assets path="assets/songs/"         library="songs"         exclude="*.ogg" if="web"/>
<assets path="assets/songs/"         library="songs"         exclude="*.mp3" unless="web"/>
<assets path="assets/shared"        library="shared"        exclude="*.ogg" if="web"/>
<assets path="assets/shared"        library="shared"        exclude="*.mp3" unless="web"/>

<assets path='example_mods' rename='mods' embed='false' if="MODS_ALLOWED"/>
<assets path='art/readme.txt' rename='do NOT readme.txt' />

there's only one week in the mod so far, which is why all the week folders are erased.
I've been reaching out to people in discord servers to little success as well, I'm just hoping this is a mistake that I or the team is making and not lime being a shit with me
A weird part is that if I do it with lime test linux it runs completely fine, just trying to run it outside of the test (dragging the file into terminal and pressing enter)
Are you modding a build from source or with Lua?
Source
What is your build target?
Linux
Did you edit anything in this build? If so, mention or summarize your changes.


Add select_tuple_arity annotation

Pull Request Test Coverage Report for Build 377

0 of 5 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.4%) to 84.964%

Totals

Change from base Build 373:
-0.4%

Covered Lines:
1554

Relevant Lines:
1829

💛  - Coveralls

Pull Request Test Coverage Report for Build 377

5 of 5 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.4%) to 84.964%

Totals

Change from base Build 373:
-0.4%

Covered Lines:
1554

Relevant Lines:
1829

💛  - Coveralls

I also started to figure out a testcase by the way :-)


[Feature request] Adding a new moderation command

I have this idea to add a .moderate command to prevent people from texting in that text channel. After issuing that command, Nadeko replies with something like This channel is being moderated! and no one is allowed to text in that channel, but people with admin permissions are also moderated by bot deleting their messages rigt as they are sent. Altho, I'm aware that using that in public bot woud be very risky as a lot of people would use that and the bot will break every 5 minutes, so at first I recommend adding it as a Bot Owner only command. Trust me, that feature could be very useful for serious servers, especially for people who host their own bots ;)

I don't see any exemple why it should be done by the bot, you can use discord permissions directly.

It is always recommended to do that publicly with bot commands. For example, if I'll just do directly via channel permissions, other people will get very lost on why they suddently can't send messages, while the bot warns everyone straight away.
That's just my idea tho, I thought that it will end up being something very useful at the end.

You can say that this channel is now for read only yourself ¯\_(ツ)_/¯.
Maybe in some scenarios this can be useful, but If we didn't know this scenario, we can't make a viable solution.

Well then why is there even a .mute command then? I can just manually give the command to a person since it's easier 😆
Anyway, my idea was, that if the channel becomes really spammy, on purpose, I can make sure that the bot is taking care of it meanwhile I write in the same channel with a request to stop the spam and use .unmoderate after a while to see if the spam stopped.
Also, if you'll keep thinking about it your way, then ofc there is no way that you will like that idea, just try to think of how useful it might end up.

Thanks for the suggestion but no. Too specific.


The metrics

Could you provide the script for LPIPS and D&C like fid ?
very very very big  thanks.

sorry ,I have found that you already provide a DC.py in evaluation,but when I simply changed test_fid.py by replaced function calculate_fid_given_paths of calculate_DC_given_paths , it called


What is Group Number?

@laserlab In the integration limits, you mention a Group Number. Do you mean the homework group number?

yeah, i think we are 2

so in task 1, you will do x^3+1/2

Isn't it related to number of data groups rather than number of group members? or may be, i don't know, it is the number of group members, but can you explain what is the necessity to have the group number in the boundaries?

I guess it is just your homework group number


Add option to upload Jenkins test result to BQ

After this is merged, flags just need to be added to Jenkins master jobs.
I tested this on a GCE Linux VM.

I'd like to get this on PRs also... I suspect we'll find some uses for the
data... And there we do skip some tests.
On Tue, May 2, 2017, 5:27 PM Matt Kwong<EMAIL_ADDRESS>wrote:

@matt-kwong commented on this pull request.
In tools/run_tests/python_utils/upload_test_results.py
https://github.com/grpc/grpc/pull/10967#discussion_r114455542:

big_query_utils.create_table(bq, _PROJECT_ID, _DATASET_ID, bq_table, _RESULTS_SCHEMA, _DESCRIPTION)

for shortname, results in six.iteritems(resultset):
for result in results:

 test_results = {}

 _get_build_metadata(test_results)

 test_results['compiler'] = args.compiler

 test_results['config'] = args.config

 test_results['cpu_estimated'] = result.cpu_estimated

 test_results['cpu_measured'] = result.cpu_measured

 test_results['elapsed_time'] = '%.2f' % result.elapsed_time

 test_results['iomgr_platform'] = args.iomgr_platform

 # args.language is a list, but will always have one element in the contexts

 # this function is used.

 test_results['language'] = args.language[0]

 test_results['passed'] = bool(result.state == 'PASSED')

AFAIK, if we're only uploading results from master jobs, there shouldn't
be any skipped tests. I'll add a field for timeouts.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/grpc/grpc/pull/10967#discussion_r114455542, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJpudZrMd26iLVH18TZeMisEF5_VU3d-ks5r18nFgaJpZM4NO0wb
.

Gotcha, in that case I think it's better to change the passed field to result and make it a string.

No significant performance differences

Tests were failing because big_query_utils.py being imported was causing errors w/ run_tests.py because dependencies weren't installed (they were only installed on perf VMs). I installed them on Linux, Windows, and Macs workers.
Also, the result field should include timeout and skipped, in addition to passed and failed.

No significant performance differences

No significant performance differences

Since I changed the Dockerfiles, they are no longer being built from cache and a few unrelated failures have come up. They seem like trivial fixes, so I'm fixing them before merging.

No significant performance differences

jenkins, test this please

All failures are known issues and they were passing in previous runs. The "unrelated" issues I referred to earlier were actually my fault and those tests are now passing.


Material theme icons produce propTypes warnings

Steps

Use material theme for icons
Add an icon with name="apps" (or notifications or others)

Expected Result
This should just render the material icon.
Actual Result
Icons are rendered but console warnings are produced:
Failed prop type: Invalid prop `name` of value `apps` supplied to `Icon`.

Version
0.67.0
Maybe material icon names should be added ICON_ALIASES in https://github.com/Semantic-Org/Semantic-UI-React/blob/master/src/lib/SUI.js . Or maybe just disable validation of the name as you can't possibly cover all themes including any custom icons ppl may add. Possibly add another prop that would disable this validation?

Maybe material icon names should be added

Nope. We use only defined icon names from SUI.

Possibly add another prop that would disable this validation?

Use className prop to add your custom classes:
<Icon className="apps" />

You can find more info on customizing icons here https://github.com/Semantic-Org/Semantic-UI-React/issues/931#issuecomment-263643210.


Cannot train the Embedding layer

Hi, I'm trying to train a model with the Embedding layer, however, it does not work. Here is the example code:
// set up the model
var inputs = keras.Input(shape: (5), name: "text", dtype: TF_DataType.DtInt32Ref);
var embed = keras.layers.Embedding(1000, 64, input_length: 5).Apply(inputs);
var embed_flat = keras.layers.Flatten().Apply(embed);
var output = keras.layers.Dense(10).Apply(embed_flat);
var model = keras.Model(inputs, output, name: "test");

// init input and labels
var input_array = np.random.randint(1000, size: (100, 5)).ravel().ToArray<int>();
var x_train = new NDArray(input_array, (100, 5));
var labels = np.random.randint(10, size: (100, 1)).ravel().ToArray<int>();
var y_train = new NDArray(labels, (100));

var opt = keras.optimizers.SGD(5e-2f);
model.compile(opt, keras.losses.SparseCategoricalCrossentropy(from_logits: true), metrics: new[] { "accuracy" });
model.summary();
model.fit(x_train, y_train, 10, 10, 1, 0.0f);

The error information:
Tensorflow.InvalidArgumentError: var and delta do not have the same shape[1000,64] [50,64]

I just hit a similar problem with this simple code (var and grad, not var and delta!)   The dimensions are strange - one is the vocab size x embedding layer size (8x21) and the other is 32x15x8 (480x8), or the batch size x message length x output embedding layer size.  The latter is the shape I'd expect to be working through - the vocab size is odd to have show up as a dimension.
var and grad do not have the same shape[21,8] [480,8]
#r "nuget:TensorFlow.Net"
#r "nuget:TensorFlow.Keras"
#r "nuget:NumSharp"
#r "nuget:SciSharp.TensorFlow.Redist"

open type Tensorflow.KerasApi
open Tensorflow.Keras.Layers
open Tensorflow.NumPy

let vocab = 21
let messageLength = 15
let layers = LayersApi()
let inputs = layers.Input(messageLength)
let embedding = layers.Embedding(input_dim = vocab, input_length=15,output_dim = 8).Apply(inputs)
let flatten = layers.Flatten().Apply(embedding)

let dense1 = layers.Dense(8, activation = "relu").Apply(flatten)
let dense2 = layers.Dense(1, activation = "relu").Apply(dense1)
let model = keras.Model(inputs, dense2)

model.summary()

model.compile(
        optimizer = keras.optimizers.Adam(),
        loss = keras.losses.BinaryCrossentropy(),
        metrics = [|"accuracy"|]
)

let samples = 1000
let rng = System.Random()
let input = Array2D.init samples messageLength
                            (fun j i -> rng.Next(vocab) |> float32 )

let output =
    Array.init
        samples
        (fun j ->
            let values = [| for i in 0..messageLength-1 -> input.[j,i]  |]
            if (values |> Array.average )>= 10.0f then 1.0 else 0.0
        )

model.fit(np.array input,np.array output,epochs=10,batch_size=32)

Tensorflow.InvalidArgumentError: var and grad do not have the same shape[21,8] [480,8]
   at Tensorflow.Eager.EagerRunner.TFE_FastPathExecute(FastPathOpExecInfo op_exec_info)
   at Tensorflow.Contexts.Context.ExecEagerAction(String OpType, String Name, ExecuteOpArgs args)
   at Tensorflow.Contexts.Context.ExecuteOp(String opType, String name, ExecuteOpArgs args)
   at Tensorflow.gen_training_ops.resource_apply_adam(Tensor var, Tensor m, Tensor v, Tensor beta1_power, Tensor beta2_power, Tensor lr, Tensor beta1, Tensor beta2, Tensor epsilon, Tensor grad, Boolean use_locking, Boolean use_nesterov, String name)
   at Tensorflow.Keras.Optimizers.Adam._resource_apply_dense(IVariableV1 var, Tensor grad, Dictionary`2 apply_state)
   at Tensorflow.Keras.Optimizers.OptimizerV2.apply_grad_to_update_var(IVariableV1 var, Tensor grad, Dictionary`2 apply_state)
   at Tensorflow.Keras.Optimizers.OptimizerV2.<>c__DisplayClass25_1.<_distributed_apply>b__1(NameScope <p0>)
   at Tensorflow.Binding.tf_with[T](T py, Action`1 action)
   at Tensorflow.Keras.Engine.Model.train_step(DataHandler data_handler, Tensors x, Tensors y)
   at Tensorflow.Keras.Engine.Model.train_step_function(DataHandler data_handler, OwnedIterator iterator)
   at Tensorflow.Keras.Engine.Model.FitInternal(DataHandler data_handler, Int32 epochs, Int32 verbose, List`1 callbackList, Nullable`1 validation_data, Func`3 train_step_func)
   at Tensorflow.Keras.Engine.Model.fit(NDArray x, NDArray y, Int32 batch_size, Int32 epochs, Int32 verbose, List`1 callbacks, Single validation_split, Nullable`1 validation_data, Boolean shuffle, Int32 initial_epoch, Int32 max_queue_size, Int32 workers, Boolean use_multiprocessing)
   at <StartupCode$FSI_0006>.$FSI_0006.main@() in bug2.fsx:line 89
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
Stopped due to error

My only joy so far has been that I can change the message (slightly!) to
Tensorflow.InvalidArgumentError: Incompatible shapes: [21,8] vs. [480,8]
By switching the optimizer! - I don't think that's relevant though.
optimizer = keras.optimizers.RMSprop()

I was starting to go a little crazy trying to get this to work, so I did a sanity check with (I think!) the same net in python keras and it seems to work.  The cool thing about tensorflow.net is that it maintains the naming schema and conventions, so this is easy to flip over.  I'm starting to suspect there's a bug in the embedding implementation, or a convention I don't understand.  It's odd that the vocab size reemerges as a dimension in the shape since that's implicit in the scale of the integers for the input, but should never be a dimension (unless there's one-hot encoding expected or materialized somewhere).  I'll see if I can follow the embedding implementation.
import tensorflow as tf
import tensorflow.keras.layers as layers
import tensorflow.keras.models as models
import numpy as np
import random

vocab = 21
messageLength = 15

inputs = layers.Input(messageLength)
embedding = layers.Embedding(input_dim = vocab, input_length=15,output_dim = 8)(inputs)
flatten = layers.Flatten()(embedding)

dense1 = layers.Dense(32, activation = "relu")(flatten)
dense2 = layers.Dense(1, activation = "sigmoid")(dense1)
model = models.Model(inputs, dense2)

model.summary()

model.compile(
        optimizer = 'adam',
        loss = 'binary_crossentropy',
        metrics = ['accuracy']
)

samples = 1000
input = np.random.randint(low=0,high=vocab-1, size = (samples, messageLength))

output = np.array([ 0 for i in range(0,samples) ] )

for j in range(0,samples):
    t = 0
    for i in range(0,messageLength):
        t = t + input[j,i]
    if t/messageLength >= 10:
        output[j] = 1

model.fit(input,output,epochs=10,batch_size=32)

>>> model.fit(input,output,epochs=10,batch_size=32)
Epoch 1/10
32/32 [==============================] - 0s 2ms/step - loss: 0.0850 - accuracy: 0.9870
Epoch 2/10
32/32 [==============================] - 0s 2ms/step - loss: 0.0751 - accuracy: 0.9920
Epoch 3/10
32/32 [==============================] - 0s 2ms/step - loss: 0.0708 - accuracy: 0.9920
Epoch 4/10
32/32 [==============================] - 0s 2ms/step - loss: 0.0622 - accuracy: 0.9890
Epoch 5/10
32/32 [==============================] - 0s 2ms/step - loss: 0.0574 - accuracy: 0.9930
Epoch 6/10
32/32 [==============================] - 0s 2ms/step - loss: 0.0531 - accuracy: 0.9900
Epoch 7/10
32/32 [==============================] - 0s 2ms/step - loss: 0.0489 - accuracy: 0.9940
Epoch 8/10
32/32 [==============================] - 0s 2ms/step - loss: 0.0461 - accuracy: 0.9950
Epoch 9/10
32/32 [==============================] - 0s 2ms/step - loss: 0.0423 - accuracy: 0.9960
Epoch 10/10
32/32 [==============================] - 0s 3ms/step - loss: 0.0404 - accuracy: 0.9990
<keras.callbacks.History object at 0x000001E574EFA440>

@Wanglongzhi2001 It seems to be a BUG during the shape inference of model build. Would you like to help with this issue?

@Wanglongzhi2001 It seems to be a BUG during the shape inference of model build. Would you like to help with this issue?

OK.

Let me know if I can help / test any branches.  It seems like it's probably a confusion on the dimensions (it's tricky - took me a while to wrap my head around the 'vocabulary' dimension since it's implicit in the range of values you are feeding in.  You're doing a heroic job putting this all together - and I want to get more familiar with code so I can help.   Probably most useful thing I can do short term is write some simple examples and then ask dumb questions :)   Fixing this embedding problem will also help me to test the RNN stuff more thoroughly, since many tasks involving recurrent nets on text input also end up using embedding as a first step.

Let me know if I can help / test any branches. It seems like it's probably a confusion on the dimensions (it's tricky - took me a while to wrap my head around the 'vocabulary' dimension since it's implicit in the range of values you are feeding in. You're doing a heroic job putting this all together - and I want to get more familiar with code so I can help. Probably most useful thing I can do short term is write some simple examples and then ask dumb questions :) Fixing this embedding problem will also help me to test the RNN stuff more thoroughly, since many tasks involving recurrent nets on text input also end up using embedding as a first step.

Thank you for your kindness and attention to TensorFlow.NET, the reason cause this problem is that the shape of variables of the Embedding layer and the corresponding gradient are not euqal during training. And you are right, embedding layer is important to RNN. I'm fixing this.

Hey! - wanted to say thanks, and confirm that the changes related to #1125 appear to resolve this issue ( I just verified with the published nuget libs and my code above).  I think it's safe to close the ticket, but I didn't open it originally, so maybe @Leo-LiHao can close, or also verify.


Multiple toolbars with hot reloading

With hot reloading a new toolbar is appended after each update. In the screenshot there is only one at the bottom, but the number can increase. I think something wrong happens while checking for new props passed to the component, probably in componentWillReceiveProps.

Quill version:

[ ] master
[ ] 0.4.1
[x] 1.0.0-beta-3
[ ] Other (fork)

Duplicate of #147