Enthought Python Distribution and Spyder DMG are not working well on Mac OS X

From<EMAIL_ADDRESS>on 2013-02-20T15:23:46Z
Spyder Version:  2.2.0beta2
Python Version:  2.7.3
Qt Version:      4.8.2, PyQt4 (API v2) 4.9.4 on Darwin
What steps will reproduce the problem?

Install Spyder from the disk image (not macports)
Go to Preferences>Console>Advanced Settings and then reassign the "Path to Python Interpreter Executable Binary" to /Library/Frameworks/EPD64.framework/Versions/7.3/bin/python.
Restart Spyder What is the expected output? What do you see instead? Expected output at console upon Spyder restart:
Python 2.7.3 |CUSTOM| (default, Apr 12 2012, 11:14:05)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin

Actual output:
Python 2.7.3 |CUSTOM| (default, Apr 12 2012, 11:14:05)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
File
"/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/scient ific_startup.py",
line 16, in <module>
from pylab import *  #analysis:ignore
File
"/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packag es/pylab.py",
line 1, in <module>
from matplotlib.pylab import *
File
"/Applications/Spyder.app/Contents/Resources/lib/python2.7/matplotlib/pylab .py",
line 265, in <module>
from matplotlib.pyplot import *
File
"/Applications/Spyder.app/Contents/Resources/lib/python2.7/matplotlib/pyplo t.py",
line 97, in <module>
_backend_mod, new_figure_manager, draw_if_interactive, _show =
pylab_setup()
File
"/Applications/Spyder.app/Contents/Resources/lib/python2.7/matplotlib/backe nds/init.py",
line 25, in pylab_setup
globals(),locals(),[backend_name])
File
"/Applications/Spyder.app/Contents/Resources/lib/python2.7/matplotlib/backe nds/backend_qt4agg.py",
line 13, in <module>
from backend_qt4 import QtCore, QtGui, FigureManagerQT, FigureCanvasQT,\
File
"/Applications/Spyder.app/Contents/Resources/lib/python2.7/matplotlib/backe nds/backend_qt4.py",
line 24, in <module>
from qt4_compat import QtCore, QtGui, _getSaveFileName, version
File
"/Applications/Spyder.app/Contents/Resources/lib/python2.7/matplotlib/backe nds/qt4_compat.py",
line 36, in <module>
import sip
ImportError: No module named sip
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1277

From ccordoba12 on 2013-02-23T07:45:47Z
I'm sorry for not answering this issue for you on the list. You need to deactivate our PYTHONSTARTUP replacement.
For that you have to go to:
Tools > Preferences > Console > Advanced Settings > PYTHONSTARTUP replacement
and select the option
[ ] Default PYTHONSTARTUP script
Besides, I should mention that if you want to use IPython with Spyder and EPD, you need to update it inside the last one. For that you need to open a terminal and write:
enpkg enstaller
enpkg ipython
and then restart Spyder
Status: WontFix

From<EMAIL_ADDRESS>on 2013-02-25T08:40:30Z
Thanks!  This seemed to work on my work computer with the full 64bit version of EPD.  I got some errors on my home computer with EPD_free.  I'll try it again, and then post the error message if it happens again.

From<EMAIL_ADDRESS>on 2013-02-27T06:06:07Z
I actually started having issues with the full version of EPD on my work computer.  I will post the error messages in the next few days.
Here is what I get at the console of my home computer with the free version of EPD:
Python 2.7.3 |CUSTOM| (default, Apr 12 2012, 11:28:34)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Exception in thread Thread-1:
Traceback (most recent call last):
File "threading.pyo", line 551, in __bootstrap_inner
File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/widgets/externalshell/monitor.py", line 568, in run
already_pickled=True)
File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/utils/bsdsocket.py", line 29, in write_packet
sock.send(struct.pack("l", len(sent_data)) + sent_data)
error: [Errno 32] Broken pipe
I am starting to wonder if I should just bite the bullet and install Spyder via Macports.

From ccordoba12 on 2013-02-27T06:13:31Z
I think we fix this one on beta3. Could you try it?

From<EMAIL_ADDRESS>on 2013-02-28T16:13:57Z
Ok I updated to Spyder Version:  2.2.0beta3 and tried it on my work computer with the full 64 bit version of EPD.  It seems to work properly except runfile() (F5 on the keyboard) does not work.  The console says "name 'runfile' is not defined.
Is runfile() is normally imported using the scientific startup script?  (I used the default PYTHONSTARTUP script like you told me to.)

From ccordoba12 on 2013-03-01T08:50:11Z
You're totally right: runfile is not present when you switch interpreters and hence it can't be used. The scientific startup script only loads Numpy, Scipy and matplotlib when the interpreter is started, so it doesn't have anything to do with runfile.
Please open a new issue to see what we can do it.
Status: Invalid

From<EMAIL_ADDRESS>on 2013-03-01T21:36:26Z
UPDATE
Ha, nevermind, I forgot when I reset the spider prefs, python executable defaults back to the OS X installation.
Things still aren't working for me with Enthought's distro and Spyder

From<EMAIL_ADDRESS>on 2013-03-01T21:38:49Z
The iphthon console does not load on launch - I'm met with a grey screen. The regular python console works fine, but doesn't let me actually run any programs (run file error above)

From ccordoba12 on 2013-03-05T09:53:04Z
Ok, there are three issues here:

Our scientific startup script has to be disabled when switching to EPD.
runfile is not working after the switch, so you can't run files.
IPython consoles are not working now (they were in beta1, I think).

I'll try to solve them for your next release. 1. and 3. shouldn't be so hard, but 2. could be tricky.
@-Stefan: That |CUSTOM| on the line
Python 2.7.3 |CUSTOM| (default, Apr 12 2012, 11:14:05)
comes from EPD, so you are already using it. I'll see what I can do to make it print the right thing, i.e.
|EPD_free 7.3-1 (64-bit)|
Summary: Enthought Python Distribution and Spyder DMG are not working well on Mac OS X  <span class="oldvalue"> (was: Enthought Python Distribution and Spyder DMG installation on Mac OS X) </span>
Status: Accepted
Labels: MS-v2.2 OpSys-OSX

From<EMAIL_ADDRESS>on 2013-03-01T21:47:31Z
I'm not clear I'm following what your problems are but I seem to have related errors:
I have EPD 7.3 with upgraded ipython, I have set the spyder python executable to the EPD one and when I start spyder I see this message in the internal console:
Traceback (most recent call last):
File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/widgets/externalshell/start_ipython_kernel.py", line 170, in <module>
ipk_temp.config = kernel_config()
File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/widgets/externalshell/start_ipython_kernel.py", line 36, in kernel_config
from spyderlib.config import CONF
ImportError: No module named spyderlib.config
Furthermore, the standard console that greets me one startup is this one:
Python 2.7.3 |CUSTOM| (default, Apr 12 2012, 11:14:05)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
I would have expected to see the EPD python (that I do see when I start python, or ipython) on the commandline. Can we re-open this issue?
Anyone with a working EPD and spyder running in harmony, please feel free to let us know that we are aiming for something doable.

From ccordoba12 on 2013-03-09T20:08:16Z
This issue was updated by revision e2e335803d02 .

Previous work (the one that solved issue #1226 ) was a hack that was not
working well.
Use our sitecustomize script with external interpreters so that runfile
and debugfile are present in them.
Add the app's main python path to the end of sys.path so that IPython
consoles start and work as expected (if the external interpreter has it
installed).

Status: Started

From<EMAIL_ADDRESS>on 2013-03-05T22:06:44Z
Just for the record. Both EPD MacOSX 32bit and 64bit have similar kind of problems. There are some minor though probably irrelevant differences between the two packages such as wxpython in the 32bit see here: https://www.enthought.com/repo/epd/installers/ "Special note about 64-bit Mac OSX
The macosx-x86_64 installer does not include wxPython, which a lot of ETS relies on. Even though ETS supports the use of PySide as a backend, things are much less stable under Qt. Therefore, if you want to use ETS, we recommned using the 32-bit EPD on Mac OSX. "

From ccordoba12 on 2013-03-09T20:08:17Z
This issue was updated by revision aebf0789020d .

From ccordoba12 on 2013-03-09T20:08:16Z
This issue was updated by revision e5d2c92ca0db .

From<EMAIL_ADDRESS>on 2013-03-12T11:48:00Z
YES!!! This works for me now!
more specifically, with Spyder I can now use ipython with EPD64, the python interpreter with EPD64, and use the default scientific startup script!
Thanks Carlos!
Attachment: Screen Shot 2013-03-12 at 11.47.50 AM.png

From ccordoba12 on 2013-03-12T11:39:06Z
I uploaded a new DMG (beta4), please test it and tell me if things work for you. All three problems in comment #13 should be fixed.

From<EMAIL_ADDRESS>on 2013-03-13T08:22:48Z
At first glance it appears the three problems in comment #13 are fixed.  Thanks, Carlos.
However, the PYTHONPATH manager does not seem to be working with the EPD64 interpreter.  When I do "print sys.path" with the default python interpreter, the directories listed in the PYTHONPATH manager show up.  When I do "print sys.path" with the EPD64 interpreter, the directories listed in the PYTHONPATH manager do not show up.

From<EMAIL_ADDRESS>on 2013-03-13T10:45:42Z
me too: Thank you Carlos and the PYTHONPATH manager settings appear to be ignored in the EPD python interpreter. However, EPD python does seem to honour the $PYTHONPATH environment variable so it's not a big problem.

From<EMAIL_ADDRESS>on 2013-03-17T08:15:18Z
It seems that Spyder 2.2.0beta4 does not play well with the free version of EPD on my home computer.  (In comment #21 above, I was referring to my work computer, which has the full version of EPD64.)  I set Spyder 2.2.0beta4's interpreter to /Library/Frameworks/Python.framework/Versions/7.3/bin/python2.7, and I got the error list below in the console.  I should also note that my work computer is running OS X 10.7 (Lion), while my home computer is running OS X 10.8 (Mountain Lion).
Spyder 2.2.0beta4 internal shell on Python 2.7.3 64bits [Darwin]
Inspect Spyder internals:
spy.app, spy.window, dir(spy)
>>> Exception in thread Thread-3:
Traceback (most recent call last):
File "threading.pyc", line 551, in __bootstrap_inner
File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/widgets/externalshell/introspection.py", line 71, in run
File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/utils/bsdsocket.py", line 54, in read_packet
OverflowError: signed integer is greater than maximum
Exception in thread Thread-2:
Traceback (most recent call last):
File "threading.pyc", line 551, in __bootstrap_inner
File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/widgets/externalshell/introspection.py", line 71, in run
File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/utils/bsdsocket.py", line 54, in read_packet
OverflowError: signed integer is greater than maximum

From ccordoba12 on 2013-03-14T05:51:34Z
Ok, thanks a lot for the confirmation to the three of you. I'd say this is verified! :)
@-breedlun or @-stefan: Please open a new issue for our PYTHONPATH manager not working with EPD. I didn't test it so I didn't know it wasn't working. However, since it's a minor thing compared to the others, I'll fix it after 2.2 is released.
Status: Verified

From ccordoba12 on 2013-03-17T08:15:29Z
Are you using EPD 32 or 64 bits on your home computer?

From<EMAIL_ADDRESS>on 2013-03-17T08:26:41Z
Based on this web page: http://www.enthought.com/products/epd_free.php I believe I am using EPD-free 32-bit, since that is the only version available for macs.

From ccordoba12 on 2013-03-17T08:41:40Z
I think you are, yep. Those OverflowError's seem to be due to a mismatch in between 32 and 64 bits.
This represents a real problem, because the App is currently built for 64 bits and I don't have the resources nor the time to build it for two archs right now...

From ccordoba12 on 2013-03-17T08:45:03Z
Would you (or someone else in this issue) be able to help me? I can give you detailed instructions on how to do build the App.

From<EMAIL_ADDRESS>on 2013-03-17T08:52:47Z
I would like to, but it sounds like it will take some time and effort.  I am no expert at the command line, and I am already over committed right now.  Sorry.
In the future, when I am less busy, I will be willing to contribute.

From ccordoba12 on 2013-04-06T20:29:06Z
Labels: Cat-Console

From ccordoba12 on 2013-03-17T09:35:52Z
Don't worry about it, it's tricky and it really takes some time.

I thought I would post an update on this issue.  Now that Enthought provides a free version of 64bit Canopy, I installed it, and downloaded the DMG for Spyder 2.3.2.  I fired up Spyder, pointed the "Path to Python Interpreter Executable Binary" to ~/Library/Enthought/Canopy_64bit/User/bin/python, and turned off the scientific startup script.  I restarted Spyder and the Console window just stays blank.  No error or anything.
P.S. As a workaround, I have successfully built spyder from source with Canopy 64bit, and everything (except for the profiler) seems to work correctly.  Thus, I don't need this issue solved right away.


Expose Run and Debug test to other UI entries?

Hi @connor4312,
Bellow are some rough ideas came up in my mind, would like to hear your thoughts on them :)
The new testing API provide functionality like Run/Debug tests in current file, Run/Debug tests at cursor. Since now they can only be triggered from the Command Palette, which users might even do not know their existence. I'm thinking if it's possible to promote them in different UI entries?

Put Run/Debug tests in current file to editor/title/run when current file has tests?

There is a separate discussion in https://github.com/microsoft/vscode-java-debug/issues/1037

Put Run/Debug tests at cursor in to the context menu, like when debugging we have run to cursor:

Yes, all "test xxx" commands that work on the active editor contents (and not a selection within that), should live in the Run/Debug dropdown item as well. But these commands must be contributed in a very selective way (with a "when" context condition) so that the dropdown does not get crowded.
And having selection based "test xxx" commands in the context menu are a no-brainer, right?

And having selection based "test xxx" commands in the context menu are a no-brainer, right?

Maybe @connor4312 can answer this question. Currently the extension which adopts the new testing API will provides test items to VS Code (containing URI and range if they have). So I guess from VS Code side, it's possible to have selection based test xxx commands?

Yea, haven't prioritized it yet though, should be pretty simple

@connor4312 maybe a "help wanted"?

If this is still open and unresolved, I'd like to give it a shot.

Sure!

Can I also add pr for this question? There seems to be no progress

Sure, PR's welcome, just haven't gotten to this

I'll try to fix it


Values for I/O's

Is it possible that you can also see the status of the IO's or the status of the load management.

see https://github.com/iobroker-community-adapters/ioBroker.fronius/issues/123
I'm sorry, but this seems to be impossible.
Leaving Issue open for nkleber to correct if I'm wrong.

too bad, would be cool for virtual relays...Am 17.07.2023 17:37 schrieb Kleber Norbert @.***>:
Indeed i do not know a way how to achieve this except with Modbus TCP where you can use the Modbus Adapter
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>


Update start.sh line #32

Updated Comments Section from
give your subscriptionId and press enter and give preferred location to create Amazon resources
give your subscriptionId and press enter and give preferred location to create Azure resources
Purpose

...

Does this introduce a breaking change?

[ ] Yes
[ ] No

Pull Request Type
What kind of change does this Pull Request introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

Get the code

git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install

Test the code

What to Check
Verify that the following are valid

...

Other Information

Updated the comments to make it more meaningful

Closing this PR without merging. The same fix was delivered in another PR too.


Rename tables

I propose we go with this solution, which makes users on <2.0 have to do some work but new users will be happy and adopt more easily.

Coverage increased (+0.002%) to 99.713% when pulling cd183190e05be13fb79632e9c41286e8380b7876 on rename-tables into ffc5092e98385ed3e2c0ac0fdcb6195b9c153c48 on master.

Coverage increased (+0.002%) to 99.713% when pulling 7af1785583bcb79ae244ee2af162e6f8db817c43 on rename-tables into ffc5092e98385ed3e2c0ac0fdcb6195b9c153c48 on master.

Coverage increased (+0.002%) to 99.713% when pulling 2320a34793fe107972b73e94abea8dbe4cca4adc on rename-tables into ffc5092e98385ed3e2c0ac0fdcb6195b9c153c48 on master.

Coverage increased (+0.002%) to 99.713% when pulling 9a2b157811903b559c2dac07d627d323c81e3c09 on rename-tables into ffc5092e98385ed3e2c0ac0fdcb6195b9c153c48 on master.


Clean up main function

Move the input to a function
Move the current network discovery and grep into a function

Version 1.0.7 takes care of this.


Move Dutch phrases and words to separate file

We could create a i18n folder with something like:
// localization/nl.js
module.exports = {
  welcome_message: 'Welkom in de Obachine app!'
};

// localization/index.js
import nl from './nl';
module.exports = function(str) {
  return nl[str];
}

// some other file
import t from './localization';

...
`<div>${t('welcome_message')}</div>`
...

That way, it's easier in the long run to support other languages 😄
(above is just a quick example, needs more investigation)

very nice
i like


UC2550: UART B HS doesn't work

UART B-HS is broken. Check pin TX,RX, CTS and RTS and their alternate functions are correct.

Because this port shared to wifi


Yor adding labels to google_monitoring_notification_channel resource

Describe the bug
Yor is adding labels to google_monitoring_notification_channel resources which doesn't accept custom labels.
│ Error: Error creating NotificationChannel: googleapi: Error 400: Field "notification_channel.labels['yor_trace']" is not allowed; labels must conform to the channel type's descriptor; permissible label keys for "email" are: {"email_address"}.
To Reproduce
Steps to reproduce the behavior:

Execute yor tag --directory against terraform file with google_monitoring_notification_channel
It adds custom labels
Terraform errors on apply

resource "google_monitoring_notification_channel" "this" {
  display_name = "GDOS Development Team email"
  force_delete = false
  labels = {
    email_address =<EMAIL_ADDRESS>    yor_trace     = "330d221a-39ad-4fde-9d1a-710c2e406ad4"
  }
  project = module.project.project_id
  type    = "email"
}

Expected behavior
Yor doesn't add labels to google_monitoring_notification_channel resource.
Desktop (please complete the following information):

OS: MacOS
Yor Version 0.1.158

It sounds like you need #299

manually excluding resources from being tagged would be a great way to address this issue. Based on #299 , it doesn't seem like that is possible right now?

No, just another linked issue.


package_data are not installed when installing pytzwhere with pip in a venv

Hello,
when installing tzwhere in a venv with pip using Python 3.6 (or 3.5) both json files 'tz_world.json' and            'tz_world_shortcuts.json' are missing:
$ python3 -m venv test_pytzwhere
$ source test_pytzwhere/bin/activate
(test_pytzwhere) $ pip install tzwhere
(test_pytzwhere) $ tree test_pytzwhere/lib/python3.6/site-packages/tzwhere*
test_pytzwhere/lib/python3.6/site-packages/tzwhere
├── __init__.py
├── __pycache__
│   ├── __init__.cpython-36.pyc
│   └── tzwhere.cpython-36.pyc
└── tzwhere.py
test_pytzwhere/lib/python3.6/site-packages/tzwhere-3.0.1-py3.6.egg-info
├── PKG-INFO
├── SOURCES.txt
├── dependency_links.txt
├── installed-files.txt
├── requires.txt
└── top_level.txt

Removing the Line "include_package_data=True," from the setup.py (https://github.com/pegler/pytzwhere/blob/master/setup.py#L19) seems to fix the problem - is this needed by anything else?

I'm having the same problem and would love to see it fixed!
Would it be possible to submit a pull request with your changes? Thanks in advance!

I dug a little deeper into the setuptools documentation (https://setuptools.readthedocs.io/en/latest/setuptools.html?highlight=include_package_data#including-data-files) - the missing entries in the MANIFEST.in for those files seem to be the real cause for the missing files:

if using the setuptools-specific include_package_data argument, files specified by package_data will not be automatically added to the manifest unless they are listed in the MANIFEST.in file.

So including those files to the MANIFEST.in seems to be the better solution (the file tzwhere/tz_world.csv mentioned in MANIFEST.in has been removed in https://github.com/pegler/pytzwhere/commit/df871d2dfaed96a8d537b0f57f2a6d00fd2bb024 )
#46 should fix the installation of those files.

Thanks @linwoodc3 and @seahawk1986 for the pull requests.  I ended up using @linwoodc3's since it added compression.  I just pushed version 3.0.2 to PyPI

I have no idea what's going on anymore; I just tried it again, and the file is STILL missing.  I really don't know what we missed.  Double checking.....

@linwoodc3 I just pushed v 3.0.3 with the fix


bpfd: bump prost,prost-types and tonic

Bump these deps all together since they have build dependencies on eachother.

Also fixes https://github.com/bpfd-dev/bpfd/issues/396


Settings unavailable everywhere

I don't understand why, but some functions are only available through a scene or automations, but not directly on the device on the main page.

What you mean exactly?

The ability to control the fan speed and the swing are only visible through automations and scenes, not directly on the device on the main page of the Home app.

If you press the gear button on the main page then open setting with swing and fan control. You can also create extra buttons in plugin settings to have direct control of this function.

Nothing when I press the settings icon. I know that I can create extra buttons, but I thought that I could have the same layout on the main page

Ohhhhh my bad, I found it. The main accessory is a group, and you have to select the second AC to find the sub-settings. My bad, everything is clear now


Add support for tmux 2.8

This adds tmux 2.8 to the supported matrix and to the travis.yml file.
I did not update the changelog because I wasn't sure of the ticket number that would be created by the PR.

tmuxinator v0.13.0 has been published to rubygems.org.


Bug when using style-loader through node

Hi there,
We are using a node instance that runs webpack-dev-server with style-loader. I have narrowed down the issue which you can test on this test repo: https://github.com/christianalfoni/style-loader-bug. As stated in the README:

npm install
node server
Go to localhost:3000
The background color should be red
If it is white, do a file change in app/main.js, just a lineshift, save and refresh... it works
If it is red, please restart server until the problem occurs

When increasing number of chunks you will also start to get random errors in those chunks.
When I do not use style-loader but manually create style tags using the css loader it does not give this error.

:+1:

omg... this is pretty weird... :-O

in server/bundle.js you are starting the compiler twice:
  var compiler = webpack(webpackConfig, function () {
    console.log('Project is ready!');
  }); // starts a compilation

  var bundler = new WebpackDevServer(compiler, {
    // ...
  }); // starts watching, which also starts a compilation

to fix it:
  var compiler = webpack(webpackConfig); // only create a compiler

  var bundler = new WebpackDevServer(compiler, {
    // ...
  }); // starts watching, which starts the compilation

I propably need to throw an error in this case.

Hehe, thanks for taking a look @sokra and yeah and error there would be good. Though I think a more common pattern using the webpack instance would be:
  var compiler = webpack(webpackConfig);
  compiler(function () {
   console.log('compiled');
  });

And:
  var compiler = webpack(webpackConfig);
  var bundler = new WebpackDevServer(compiler, {
    // First compile done and starts watching
  });

But I suppose that is too big of a change, and maybe does not make sense related to the rest of the API. But I do seem to loose a hook to check when the initial bundle is ready? As the callback for "new WebpackDevServer" is run immediately? Maybe add a second callback here that runs when the initial compile is done?

Ah, I can see there is a plugin mechanism?
  var compiler = webpack(webpackConfig);
  compiler.plugin('done', function () {
    console.log('Done bundling');
  });
  var bundler = new WebpackDevServer(compiler, {}, function () {
    // Initial compile done
  });
  // Starts compilation

No problems using that?

Closing since it looks like it's been fixed.


Cannot close the nfc windows on IOS

Hello,
I want to close the IOS scan window with the following code :
      NfcManager.isSupported().then(supported => {
        if (supported) {
            NfcManager.start({
                onSessionClosedIOS: () => {
                }
            })

            return  NfcManager.registerTagEvent((tag) => {
                console.warn(tag, "TAG2")
                NfcManager.unregisterTagEvent()
              },
              "Hold your device over the tag",
              {
                invalidateAfterFirstRead: true
              })
        }
      });

But I get the warning :
Not even registered
like the session is already closed.
I think this is a regression, had a previous app where the behaviour was normal.
Thanks in advance!

Ok my bad ;)
It is still working, but the unregister tag event won't work if the invalidateAfterFirstRead is set to true.
So for my case, as I want to close the IOS scan screen directly after a tag is scanned, I need to set the  invalidateAfterFirstRead to false and unregisterdTagEvent when the tag is read.


Compare the encoding/decoding performance of maps with array-of-structs

We should also look at the encoding/decoding performance of maps, and compare against the array-of-structs approach: https://protobuf.dev/programming-guides/proto3/#backwards. We may want to do that after integrating into apm-server, in case it makes operating on the model types too painful.
Originally posted by @axw in https://github.com/elastic/apm-data/issues/47#issuecomment-1586977053

I have been trying this out on measurements (see this branch: https://github.com/elastic/apm-data/compare/main...dmathieu:apm-data:array-measurements)
Here are the benchstat differences:
Running benchstat
goos: darwin
goarch: arm64
pkg: github.com/elastic/apm-data/codec
                         │ bench-main  │            bench-branch            │
                         │   sec/op    │   sec/op     vs base               │
Encode/format=json-10      21.18µ ± 3%   21.09µ ± 2%       ~ (p=0.912 n=10)
Encode/format=vtproto-10   2.386µ ± 2%   2.361µ ± 2%       ~ (p=0.325 n=10)
Decode/format=json-10      17.85µ ± 3%   17.41µ ± 8%       ~ (p=0.218 n=10)
Decode/format=vtproto-10   6.654µ ± 1%   6.496µ ± 3%  -2.37% (p=0.004 n=10)
geomean                    8.802µ        8.662µ       -1.59%

                         │  bench-main  │             bench-branch              │
                         │   bytes/op   │   bytes/op    vs base                 │
Encode/format=json-10      5.988Ki ± 0%   5.988Ki ± 0%       ~ (p=1.000 n=10) ¹
Encode/format=vtproto-10   2.741Ki ± 0%   2.739Ki ± 0%  -0.07% (p=0.000 n=10)
geomean                    4.052Ki        4.050Ki       -0.04%
¹ all samples are equal

pkg: github.com/elastic/apm-data/input/elasticapm/internal/decoder
                   │  bench-main  │          bench-branch          │
                   │    sec/op    │    sec/op     vs base          │
NDStreamDecoder-10   40.99n ± 14%   40.97n ± 11%  ~ (p=1.000 n=10)

pkg: github.com/elastic/apm-data/model/modelpb
                          │ bench-main  │         bench-branch          │
                          │   sec/op    │   sec/op     vs base          │
APMEventToJSON/to-json-10   11.34µ ± 1%   11.35µ ± 3%  ~ (p=0.971 n=10)

The benchmarks may not be appropriate for this. But if they are, the change seems not to really have any significant impact.

Agreed, I think we can stick with what we have. The wire encoding is compatible, so we could come back to this later if needed.
Closing, but if someone else feels strongly we can reopen and discuss.


Question

For the benchmark, are you only evaluating the GoT and React techniques?
Or are knowledge graph and RAG techniques also being tested? If so, how are you using the knowledge graph in this case?

Thank you for your question. Regarding the benchmarking, we compared the performance of KRAGEN (GoT + RAG) combined with ChatGPT, ChatGPT without KRAGEN, and two open-source LLM models without KRAGEN on datasets specifically created for our research. KRAGEN employs a combination of Graph of Thought (GoT) and Retrieval-Augmented Generation (RAG) techniques to answer user queries.
For Alzheimer's information, we converted the data in The Alzheimer's KnowledgeBase (AlzKB) into vectors and stored them in a vector database, which is then used for Retrieval-Augmented Generation (RAG). Additionally, the REACT technique was used for developing the web app in this project.
I hope this clarifies your query. If you have any further questions, please feel free to ask.
Thank you.

Thanks for answering.
Yes, I have a specific question.

we converted the data in The Alzheimer's KnowledgeBase (AlzKB) into vectors and stored them in a vector database

Did you use a knowledge graph here? If so, how did you build it?

Yes, a knowledge graph was used in the study. This knowledge graph was created by my colleagues. The Alzheimer's Knowledge Base (AlzKB) is designed as a large, heterogeneous graph knowledge base. It was assembled using 22 diverse external data sources that describe biological and pharmaceutical entities at different levels of organization, such as chemicals, genes, anatomy, and diseases.
For more detailed information, please refer to the paper below:
https://www.jmir.org/2024/1/e46777/

Thanks. The knowledge graph was created manually. Have you considered any tool to automate the knowledge graph generation process for using together with Kragen?

No problem. It is an interesting idea, I think one of my colleagues has been working on it!


bcdedit /Set misses the warning for Powershell

when you lookup bcdedit set there is a warning for users that use PowerShell.
ID e.g. {current} has to be set in " " using PowerShell. This note is missing here in the examples. Please include the advice  according to
https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/bcdedit--set

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: b4e56d98-d380-e346-4ba3-d17f1596af86
Version Independent ID: 2946df6a-59c0-335a-9a6a-5e9ceabaf13f
Content: Changing the Friendly Name of a Boot Entry - Windows drivers
Content Source: windows-driver-docs-pr/devtest/changing-the-friendly-name-of-a-boot-entry.md
Product: windows-hardware
GitHub Login: @EliotSeattle
Microsoft Alias: eliotgra

@Karl-WE - Thanks for the suggestion, I added the same text to the topic and moved BCDEdit up to the top of the topic as that is more popular these days. The updates should be live in a day or so.
You are always welcome to submit a pull request.

@Karl-WE - The changes are live, so closing this issue. Thanks for the input.


Web -Workspace-Blank space appear for a brief moment after refreshing the page

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:
Precondition: Add VBA into your testing account

Go to https://staging.new.expensify.com/
Log in with any account ( I used High traffic account)
Make sure the bank account added
Go to any Workspace
Select Reimburse expenses
Refresh the page

Expected Result:
There is no blank space appeared for a brief moment after refresh
Actual Result:
Blank space appear for a brief moment after refresh
Workaround:
Unknown
Platform:

Where is this issue occurring?

Web
Android

Version Number: 1.1.66-0
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers<EMAIL_ADDRESS>/ Feya87Katya
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
https://user-images.githubusercontent.com/43996225/170138198-921580a1-2790-4c87-8dfb-9132aa229782.mp4
https://user-images.githubusercontent.com/43996225/170138201-10c80700-2cfc-4e76-931c-09eec01c3087.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:
View all open jobs on GitHub

:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

Identify the pull request that introduced this issue and revert it.
Find someone who can quickly fix the issue.
Fix the issue yourself.

The blank space is almost unnoticeable on my personal account and also on web with the high traffic account<EMAIL_ADDRESS>I only notice it on mWeb.
I can't tell if it's a regression or a fix of some sort though - on production, the label "Unlock next-day reimbursements" appears as a placeholder until the view gets updated with "Fast reimbursements = happy members!". So I'm assuming there's something that makes a network request to know what exact message the user should be shown, and the staging app doesn't show anything until that network request has received a response.
Going to dig a bit more to verify this hypothesis though.

Production:

https://user-images.githubusercontent.com/2229301/170144087-60d595c7-6602-44d5-930b-4ddca7c459bf.mp4

Staging:

https://user-images.githubusercontent.com/2229301/170144100-a3f80ccb-48f6-4d8e-91a7-fe0d7ed9f913.mp4

There are 2 separate Get calls that are made when the user clicks Reimburse Expenses:

Get nameValuePairs  with nvp name = expensify_freePlanBankAccountID,
Get nameValuePairs, bankAccountList with nvpNames=private_failedBankValidations_,expensify_migration_2020_04_28_RunKycVerifications,expensify_ACHData_throttled,private_throttledHistory_BankAccount_Get

And that hasn't changed on this version that is currently on staging. The only change is that we no longer show the wrong placeholder "Unlock next-day reimbursements", so I would lean on this not being a blocker or regression. Curious for other opinions though.

This was a purposeful fix for https://github.com/Expensify/App/issues/9057. While I agree it's not the most optimal to have that brief delay while the ACH state is loading, I think it's an improvement over what was in place. Shouldn't be a deploy blocker at the least.

Thanks both, I agree that this is an overall improvement and shouldn't hold up deployment. 👍

I guess now the question is: should we leave this open as an improvement? I'd say probably not, but happy either way.

I agree with not even keeping this as an improvement. The solutions I can think of would be:

Add a skeleton screen while the network requests are pending. However that sounds like a bigger project we might want to plan out in detail first, and potentially use those skeletons every time some UI components are drawn after a network request completes (and also would most likely be on hold until the Offline First changes are finished)
Random example of what I'm talking about:

Load the NVPs and bankAccountList preemptively, and store them in Onyx - but I don't think that would be a suitable solution because we get NVPs like expensify_ACHData_throttled and private_throttledHistory_BankAccount_Get, which we probably don't want to cache in Onyx, and instead load every time.
??

Going to close this since the root issue should be fixed now. We can consider adding skeleton UI later.


POM file for billing v1.0.0-alpha06 has broken dependency

The latest version of the androidbrowserhelper.billing package seems to have in invalid dependency which cannot be resolved by gradle. The package is available at https://maven.google.com/web/index.html?q=#com.google.androidbrowserhelper:billing:1.0.0-alpha06.
To Reproduce
Steps to reproduce the behavior:

Change the version of the dependency 'com.google.androidbrowserhelper:billing' from alpha05 to alpha06
Run bubblewrap update
Observe gradle error

Expected behavior
A successful build with the latest package
Did this ever used to work
Billing v1.0.0-Alpha05 worked correctly but a new dependency seems to have snuck into the Alpha06 pom file. I'm not sure if there's meant to be a new dependency or not.
Workaround
The following seems to be a workaround for now as it excludes the broken dependency and build correctly. I'm not sure if this will have side effects though.
implementation('com.google.androidbrowserhelper:billing:1.0.0-alpha06') {
        exclude group: 'android-browser-helper', module: 'androidbrowserhelper'
}

Screenshots

This has been fixed. Closing the issue.


[Bug] Len function used in the blog instead of length

Page link
https://kyverno.io/blog/2023/12/13/kyverno-chainsaw-exploring-the-power-of-assertion-trees/
Description
In the Working with arrays section len is used instead of the length function both in the description and in the example.
Following this blog post, users will get an error: Internal error: unknown function: len .
Expected behavior
Use length instead len both in the description and in the example.
Slack discussion
https://kubernetes.slack.com/archives/C067LUFL43U/p1721647322310929?thread_ts=1721296277.816009&cid=C067LUFL43U

/assign


feat: Add option for languge check skipping

Closes #118
This probably needs some sort of test, but I thought I'd see if this looks right as a start

A test would be perfect. But if not, we can still get this merged.


pull fails using kind + TLS secured registry

Issue
The following push fails against a localhost:5000 registry running as container
docker pull gcr.io/google-samples/hello-app:1.0
docker tag gcr.io/google-samples/hello-app:1.0 localhost:5000/hello-app:1.0
docker push localhost:5000/hello-app:1.0
Get "http://localhost:5000/v2/": dial tcp [::1]:5000: connect: connection refused

Bash script used
#!/bin/sh

set -o errexit

reg_name='kind-registry'
reg_port='5000'
reg_image_version='2.6.2'

current_dir=$(pwd)
temp_cert_dir=$(mktemp -d 2>/dev/null || mktemp -d -t 'temp_cert_dir')

read -p "Do you want to delete the kind cluster (y|n) - Default: n ? " cluster_delete
cluster_delete=${cluster_delete:-no}
read -p "Which kubernetes version should we install (1.14 .. 1.22) - Default: 1.21 ? " version
k8s_minor_version=${version:-1.21}
read -p "What logging verbosity do you want (0..9) - A verbosity setting of 0 logs only critical events - Default: 0 ? " logging_verbosity
logging_verbosity=${logging_verbosity:-0}

kindCmd="kind -v ${logging_verbosity} create cluster"

generate_certificate() {
  echo "==== Generate a self-signed certificate and user/pwd to secure the local registry"
  mkdir -p certs/localhost

  cat <<EOF > req.cnf
  [req]
  distinguished_name = req_distinguished_name
  x509_extensions = v3_req
  prompt = no
  [req_distinguished_name]
  C = BE
  ST = Namur
  L = Florennes
  O = Red Hat
  OU = Snowdrop
  CN = localhost
  [v3_req]
  keyUsage = critical, digitalSignature, keyAgreement
  extendedKeyUsage = serverAuth
  subjectAltName = @alt_names
  [alt_names]
  DNS.1 = localhost
  DNS.2 = kind-registry
  DNS.3 = localhost:5000
  DNS.4 = kind-registry:5000
EOF

  openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
      -keyout certs/localhost/localhost.key \
      -out certs/localhost/localhost.crt \
      -config req.cnf \
      -sha256
  echo "==== Copy the localhost.crt and key files to the dir: $current_dir"
  mkdir -p $current_dir/localhost
  cp certs/localhost/localhost.* $current_dir/localhost
}

populate_htpasswd() {
  echo "==== Create the htpasswd file where user: admin and password: snowdrop"
  mkdir auth
  docker run --entrypoint htpasswd registry:2.7.0 -Bbn admin snowdrop > auth/htpasswd
  echo "==== Copy the generated htpasswd to the dir: $current_dir"
  cp auth/htpasswd $current_dir/
}

if [ "$cluster_delete" == "y" ]; then
  echo "==== Deleting kind cluster ..."

  docker stop ${reg_name} || true && docker rm ${reg_name} || true
fi

pushd $temp_cert_dir

populate_htpasswd
generate_certificate

# Start a local Docker registry (unless it already exists)
running="$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true)"
if [ "${running}" != 'true' ]; then
  echo "==== Launch the container registry ps"
  docker run -d \
    -v `pwd`/auth:/auth \
    -v `pwd`/certs:/certs \
    -e REGISTRY_AUTH=htpasswd \
    -e REGISTRY_AUTH_HTPASSWD_REALM="Registry Realm" \
    -e REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd \
    -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/localhost.crt \
    -e REGISTRY_HTTP_TLS_KEY=/certs/localhost.key \
    --restart=always \
    -p "${reg_port}:5000" \
    --name "${reg_name}" \
    registry:${reg_image_version}
fi

echo "==== Connect the local Docker registry with the kind network"
docker network connect "kind" "${reg_name}" > /dev/null 2>&1 &

# Create a kind cluster
if [ "$k8s_minor_version" != "default" ]; then
  patch_version=$(wget -q https://registry.hub.docker.com/v1/repositories/kindest/node/tags -O - | \
  jq -r '.[].name' | grep -E "^v${k8s_minor_version}.[0-9]+$" | \
  cut -d. -f3 | sort -rn | head -1)
  k8s_version="v${k8s_minor_version}.${patch_version}"
  kindCmd+=" --image kindest/node:${k8s_version}"
else
  k8s_version=$k8s_minor_version
fi

# Kind cluster config template
kindCfg=$(cat <<EOF
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
containerdConfigPatches:
- |-
  [plugins."io.containerd.grpc.v1.cri".registry.mirrors."localhost:${reg_port}"]
    endpoint = ["https://localhost:${reg_port}"]
  [plugins."io.containerd.grpc.v1.cri".registry.configs."localhost:${reg_port}".tls]
    cert_file = "/etc/docker/certs.d/localhost/localhost.crt"
    key_file  = "/etc/docker/certs.d/localhost/localhost.key"
nodes:
- role: control-plane
  extraMounts:
    - containerPath: /etc/docker/certs.d/localhost
      hostPath: ${current_dir}/localhost
  kubeadmConfigPatches:
  - |
    kind: InitConfiguration
    nodeRegistration:
      kubeletExtraArgs:
        node-labels: "ingress-ready=true"
  extraPortMappings:
  - containerPort: 80
    hostPort: 80
    protocol: TCP
  - containerPort: 443
    hostPort: 443
    protocol: TCP
EOF
)

echo "==== Creating a Kind cluster with Kubernetes version : ${k8s_version} and logging verbosity: ${logging_verbosity}"
echo "${kindCfg}" | ${kindCmd} --config=-

# Document the local registry
# https://github.com/kubernetes/enhancements/tree/master/keps/sig-cluster-lifecycle/generic/1755-communicating-a-local-registry
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: ConfigMap
metadata:
  name: local-registry-hosting
  namespace: kube-public
data:
  localRegistryHosting.v1: |
    host: "localhost:${reg_port}"
    help: "https://kind.sigs.k8s.io/docs/user/local-registry/"
EOF

popd

Here is more information abut the problem
How can I fix such an issue which occurs when I try to pull an image (or when a pod tries to pull the image) from a TLS local container registry
root@kind-control-plane:/# crictl pull localhost:5000/hello-app
FATA[0000] pulling image: rpc error: code = Unknown desc = failed to pull and unpack image "localhost:5000/hello-app:latest": failed to resolve reference "localhost:5000/hello-app:latest": failed to do request: Head "http://kind-registry:5000/v2/hello-app/manifests/latest?ns=localhost%3A5000": net/http: HTTP/1.x transport connection broken: malformed HTTP response "\x15\x03\x01\x00\x02\x02"

Log of the registry reports such an error
2021/09/28 08:22:05 http: TLS handshake error from <IP_ADDRESS>:52546: tls: first record does not look like a TLS handshake

I can of course curl the docker registry from a container
curl -vk -u admin:snowdrop https://kind-registry:5000/v2/hello-app/manifests/latest?ns=localhost%3A5000
*   Trying fc00:f853:ccd:e793::3:5000...
* Connected to kind-registry (fc00:f853:ccd:e793::3) port 5000 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=BE; ST=Namur; L=Florennes; O=Red Hat; OU=Snowdrop; CN=localhost
*  start date: Sep 28 07:01:23 2021 GMT
*  expire date: Sep 28 07:01:23 2022 GMT
*  issuer: C=BE; ST=Namur; L=Florennes; O=Red Hat; OU=Snowdrop; CN=localhost
*  SSL certificate verify result: self signed certificate (18), continuing anyway.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Server auth using Basic with user 'admin'
* Using Stream ID: 1 (easy handle 0x55f8e6e0b890)
> GET /v2/hello-app/manifests/latest?ns=localhost%3A5000 HTTP/2
> Host: kind-registry:5000
> authorization: Basic YWRtaW46c25vd2Ryb3A=
> user-agent: curl/7.74.0
> accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS == 250)!
< HTTP/2 404
< content-type: application/json; charset=utf-8
< docker-distribution-api-version: registry/2.0
< x-content-type-options: nosniff
< content-length: 96
< date: Tue, 28 Sep 2021 07:27:25 GMT
<
{"errors":[{"code":"MANIFEST_UNKNOWN","message":"manifest unknown","detail":{"Tag":"latest"}}]}
* Connection #0 to host kind-registry left intact

Here is the latest version of the bash script I'm using - https://gist.github.com/cmoulliard/6de2fa393ec45bd181fa7d5d73c6960c
Error that I must fix now is
FATA[0000] pulling image: rpc error: code = Unknown desc = failed to pull and unpack image "kind-registry:5000/hello-app:1.0": failed to resolve reference "kind-registry:5000/hello-app:1.0": failed to do request: Head "https://kind-registry:5000/v2/hello-app/manifests/1.0": x509: certificate signed by unknown authority

@jacobdotcosta @BarDweller

To prove you that curl + self signed CA cert works, see -->
root@kind-control-plane:/# curl -u admin:snowdrop --cacert /etc/docker/certs.d/kind-registry/localhost.cert -v https://kind-registry:5000/v2/_catalog
*   Trying fc00:f853:ccd:e793::3:5000...
* Connected to kind-registry (fc00:f853:ccd:e793::3) port 5000 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: /etc/docker/certs.d/kind-registry/localhost.cert
*  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=BE; ST=Namur; L=Florennes; O=Red Hat; OU=Snowdrop; CN=kind-registry
*  start date: Sep 28 12:50:50 2021 GMT
*  expire date: Sep 28 12:50:50 2022 GMT
*  subjectAltName: host "kind-registry" matched cert's "kind-registry"
*  issuer: C=BE; ST=Namur; L=Florennes; O=Red Hat; OU=Snowdrop; CN=kind-registry
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Server auth using Basic with user 'admin'
* Using Stream ID: 1 (easy handle 0x55cfedcdd890)
> GET /v2/_catalog HTTP/2
> Host: kind-registry:5000
> authorization: Basic YWRtaW46c25vd2Ryb3A=
> user-agent: curl/7.74.0
> accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS == 250)!
< HTTP/2 200
< content-type: application/json; charset=utf-8
< docker-distribution-api-version: registry/2.0
< x-content-type-options: nosniff
< content-length: 31
< date: Tue, 28 Sep 2021 13:20:25 GMT
<
{"repositories":["hello-app"]}
* Connection #0 to host kind-registry left intact

I was able to fix the issue after uploading the Self signed CA certificate to the kind container using the following instructions
https://gist.github.com/superbrothers/9bb1b7e00007395dc312e6e35f40931e
Remark. the extension of the certificate to be uploaded should be .crt and not .cert


[Translate ru] Accessibility -> a11y-styles

Check out a review request at GitLocalize

@agektmr Reviewed

:tada: This has been pushed live to https://developers.google.com/web/


knife download environments incomplete

Chef: 12.5.1
knife download environments, creates files formatted as:
{
  "name": "staging"
}

alternatively, a command such as "knife environment show staging --format=json > environments/staging.json" generates:
{
  "name": "staging",
  "description": "",
  "cookbook_versions": {

  },
  "json_class": "Chef::Environment",
  "chef_type": "environment",
  "default_attributes": {

  },
  "override_attributes": {

  }
}

The latter format is more complete, and in fact test-kitchen + chef-solo requires those additional attributes in an environment, it crashes otherwise.
"knife download environments" should probably download the same data as "knife environment show", right?

Right, we should totally verify which bits of this kitchen/solo/zero actually need and make knife download environment do the right thing here.

If the problem here is that ChefFS is suppressing empty hashes on download and is not actually reflecting the state of the 'document' on the server, that should definitely get fixed there.
If its accurately reflecting the server, it might be a bit muddier as to what to do about this...

This should be part of https://github.com/chef/chef/issues/3368

I'm not actually positive its part of that epic....   it might just be a core bug in ChefFS...


CJK Character support

tests/test_width_and_alignment.py:16: in <module>
    (Color('{autoblue}世界你好{/autoblue}'), 8),
.tox/py26/lib/python2.6/site-packages/colorclass.py:391: in __new__
    obj = parent_class.__new__(cls, *args, **kwargs)
E   UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 5: ordinal not in range(128)

Was user error. Had to declare the string as unicode in python 2.6 (e.g. u'string').
(env)[Bosco colorclass (cjk)]$ python
Python 2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-7<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from colorclass import Color
>>> Color('{autoblue}世界你好{/autoblue}')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "colorclass/core.py", line 65, in __new__
    instance = PARENT_CLASS.__new__(*color_args, **kwargs)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 5: ordinal not in range(128)
>>> Color(u'{autoblue}世界你好{/autoblue}')
Color(u'\x1b[94m\u4e16\u754c\u4f60\u597d\x1b[39m')
>>> ^D
(env)[Bosco colorclass (cjk)]$ python3
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 23 2015, 02:52:03)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from colorclass import Color
>>> Color(u'{autoblue}世界你好{/autoblue}')
Color('\x1b[94m世界你好\x1b[39m')
>>> ^D
(env)[Bosco colorclass (cjk)]$ python2.6
Python 2.6.9 (unknown, Oct 23 2015, 19:19:20)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-7<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from colorclass import Color
>>> Color(u'{autoblue}世界你好{/autoblue}')
Color(u'\x1b[94m\u4e16\u754c\u4f60\u597d\x1b[39m')
>>>


docs/benchmark: update 2.2 benchmark using fixed script

hack/benchmark: add the missing boom patch …
This patch is necessary for correct benchmark.
docs/benchmarks: specify to use SSD as etcd data dir …
It is not pointed out clearly before.
docs/benchmark: update 2.2 benchmark using fixed script …
Old benchmark is incorrect because the old script doesn't actually write
the value of the key. Update it using fixed script.
When the benchmark is made again, I changed Go version to 1.5 to make it up-to-date, and changed etcd version to 2.2.0 to make it official.
/cc @quinton-hoole

fixes #3661 @raoofm

The heading hierarchy of this document is inconsistent with most other coreos docs. The Title should usually be a level one heading (HTML <h1>) (# Physical Machines in this document), and so on. I can easily fix this up after a merge of this PR. Just noting it here.

@yichengq have we tried to send this patch upstream..?

@jonboulle It is pending at https://github.com/rakyll/boom/pull/70.

etcd performance on GCE is quite variable, for some reason that I don't yet fully understand. It doesn't appear to be trivially related to network performance variance, as illustrated by the test below.
I would suggest that you repeat the performance tests on physical machines on a dedicated LAN when you have a chance, and until then make clear mention of the fact that performance varies considerably over time on GCE, so any one trying to reproduce the results should take this into account.
I could totally believe that this variance is all due to something in the GCE environment, but the point remains that the etcd performance benchmarks as they're currently published are not very useful, I think.
For example, noting that the difference between one run of etcd version x is different from one run of etcd version x+1 by ~10% could simply be variance due to the GCE environment, rather than any particular performance difference between the versions.
In this example my etcd nodes are 10.240.0.[2..4].  I ran the test from one of the nodes, but I've run it from a dedicated client node and seen similar results.  The below were two consecutive runs, a few minutes apart.  As you can see, network performance during the two runs we quite comparable, but etcd read performance varied by ~30%.
quinton@etcd-v22-intrazone-node1:~/etcd-v2.2.0-linux-amd64$ for ((i=2;i<5;i++)) ; do SRC=/sbin/ifconfig eth0 | gre p inet\ addr | cut -d ' ' -f 12 ; DST=10.240.0.$i ; echo $SRC '->' $DST ; iperf -c $DST --udp | grep bits | cut -d
' ' -f 10-20 ; ./boom -n 85000 -c 85 http://:2379$DST/v2/keys/foo | grep Requests/sec ; done
addr:<IP_ADDRESS> -> <IP_ADDRESS>
1.05 Mbits/sec
1.05 Mbits/sec   0.064 ms    0/
Requests/sec: 22763.2430
addr:<IP_ADDRESS> -> <IP_ADDRESS>
1.05 Mbits/sec
1.05 Mbits/sec   0.018 ms    0/
Requests/sec: 21897.0501
addr:<IP_ADDRESS> -> <IP_ADDRESS>
1.05 Mbits/sec
1.05 Mbits/sec   0.055 ms    0/
Requests/sec: 23270.9710
quinton@etcd-v22-intrazone-node1:~/etcd-v2.2.0-linux-amd64$ for ((i=2;i<5;i++)) ; do SRC=/sbin/ifconfig eth0 | gre p inet\ addr | cut -d ' ' -f 12 ; DST=10.240.0.$i ; echo $SRC '->' $DST ; iperf -c $DST --udp | grep bits | cut -d
' ' -f 10-20 ; ./boom -n 85000 -c 85 http://:2379$DST/v2/keys/foo | grep Requests/sec ; done
addr:<IP_ADDRESS> -> <IP_ADDRESS>
1.05 Mbits/sec
1.05 Mbits/sec   0.050 ms    0/
Requests/sec: 15538.6981
addr:<IP_ADDRESS> -> <IP_ADDRESS>
1.05 Mbits/sec
1.05 Mbits/sec   0.006 ms    0/
Requests/sec: 14896.3651
addr:<IP_ADDRESS> -> <IP_ADDRESS>
1.05 Mbits/sec
1.05 Mbits/sec   0.040 ms    0/
Requests/sec: 15173.0829
quinton_hoole [4:28 PM]
That's two consecutive runs, where network latency and throughput was effectively identical, but etcd performance differed by ~30% across all nodes.

I would suggest that you repeat the performance tests on physical machines on a dedicated LAN when you have a chance, and until then make clear mention of the fact that performance varies considerably over time on GCE, so any one trying to reproduce the results should take this into account.

xiang makes the point that it is pretty valuable to provide performance results on GCE because it is easier for people to deploy and compare. At my side, I ran 100 rounds of benchmark in several hours, and observed at most 20% difference between min and max. So it may be doable by listing average and covariance.
I agree that I should document the fact that performance could change considerably on GCE under some circumstances. For example, in your case, any random 4 machines cannot get the stable result.

For example, noting that the difference between one run of etcd version x is different from one run of etcd version x+1 by ~10% could simply be variance due to the GCE environment, rather than any particular performance difference between the versions.

Make sense. I need to find better ways to compare the difference between them. The original comparison is not useful.

@quinton-hoole
The goal of the benchmark on a cloud env is to provide a rough idea of etcd's performance. So I guess it is good enough to find a relative good GCE instances to do the benchmark and get the avg of a few tests. Thera are multiple ways to avoid the bad data points.
For the comparison, I agree with you that if the cloud env is not stable in a short period of time it does not make any sense. We need to dig more into it.

@quinton-hoole
From my understanding, part of your concern is that etcd itself might be not stable. If we do the benchmark on a cloud env, we might not know if the problem is etcd itself.
I also agree with you on that one. We might find stable env to do test. But we still want to publish results on cloud env.

I remove the comparison result because it is meaningless, and mention the variance clearly. The purpose of the benchmark is to let users have a rough idea about the throughput of etcd requests, so this result is good enough for current stage.
For the follow-up, we fight find stable env to do test to prove that etcd is stable and help us compare the performance between versions.
PTAL. @joshix @quinton-hoole @xiang90 @jonboulle

@joshix @jonboulle @xiang90 addressed all comments.
Added average and stddev value to represent actual results better.

@yichengq Several issues:

We do not need to keep high accuracy for standard deviation and avg. Probably we only need the 3 most significant ones.

We need to talk about how do we get the standard deviation and avg.

Actually I did some benchmark last week. And I found it is easy enough to write a simple script to run boom for a longer time to get reasonable result and also report these information.

We do not need to keep high accuracy for standard deviation and avg. Probably we only need the 3 most significant ones.

I think we have agreed on that we would provide stddev and avg. The 3 most significant ones cannot reflect the expected value IMO.

We need to talk about how do we get the standard deviation and avg.

I wrote some script to handle it. I could write more words about it.

Actually I did some benchmark last week. And I found it is easy enough to write a simple script to run boom for a longer time to get reasonable result and also report these information.

It is ok if the result is stable. Considering we have the result now, I would prefer to just merge it. Do you want to take over it?

Considering we have the result now, I would prefer to just merge it. Do you want to take over it?

I really dislike keeping the high accuracy. I can take it over. Thanks for your effort.

Already fixed with https://github.com/coreos/etcd/pull/4705


Registration

This need a page to people join in. The minimal information needed is:

Name
Email
Password
Postal code
Phone
Redirect to login when the registration is done or add the error state to the fields with invalid values.

The e8a0c69bc946c67ffb07ae1f2db86e4e31ddf0da, 838692618ae48323942a20deab9bcb8852bae136, 33215c21f90fbe2dbe14e6c3d83d8cd8c2cbbbf7, f520c3fb0035c57b0b51b82fbb8d70d65b0c299e and dbb75ab296683acbd2b86cedfbc93091561fbe58 commits are related with this issue


opt use weak_ptr to cache the file handle of file segment

Proposed changes
Use weak_ptr to cache the file handle of file segment. The max cached number of file handles can be configured by file_cache_max_file_reader_cache_size, default 1000000.
Users can inspect the number of cached file handles by request BE metrics: http://be_host:be_webserver_port/metrics:
# TYPE doris_be_file_cache_segment_reader_cache_size gauge
doris_be_file_cache_segment_reader_cache_size{path="/mnt/datadisk1/gaoxin/file_cache"} 2500

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 52.73 seconds
stream load tsv:          507 seconds loaded<PHONE_NUMBER>9 Bytes, about 140 MB/s
stream load json:         19 seconds loaded<PHONE_NUMBER> Bytes, about 118 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select:          29.0 seconds inserted 10000000 Rows, about 344K ops/s
storage size:<PHONE_NUMBER>6 Bytes

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.25 seconds
stream load tsv:          538 seconds loaded<PHONE_NUMBER>9 Bytes, about 132 MB/s
stream load json:         19 seconds loaded<PHONE_NUMBER> Bytes, about 118 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          29.3 seconds inserted 10000000 Rows, about 341K ops/s
storage size:<PHONE_NUMBER>1 Bytes

LGTM

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.07 seconds
stream load tsv:          499 seconds loaded<PHONE_NUMBER>9 Bytes, about 142 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          64 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select:          28.9 seconds inserted 10000000 Rows, about 346K ops/s
storage size:<PHONE_NUMBER>3 Bytes


Valid tag names can include any digit [0-9]

This change will allow HTML tag names that include any digit eg. <extension-v182>.
The current regex (created in  #28) was updated to allows tags with the digits [1-6] and therefore only supports h tags eg. <h1> ... <h6>.
This change is non-breaking.

Thanks!


Feature request: git url

git-url [REMOTE] [REF] [--] [PATH]

Prints the GitHub URL of the specified item to standard output.

Arguments:
  REMOTE   Use the repository pointed at by the value. Defaults to master.
  REF      A branch, tag or commit
  PATH     A file path

Remarks:
  If a PATH is given, the specified path is linked in the given REF, or if
  not set, to the current branch, tag or commit (if detached).

  If a PATH is not given, the REF itself is linked, or the repository itself
  if not set.

  When REMOTE or REF is ambiguous, both must be supplied. When PATH is
  ambiguous, add a -- argument before it.

 Although hub browse -u already covers some of these features, I definitely see a value in smart handling of when branch names, commit SHAs, or file names are passed.
I'm not so sold on this command being called git url, but I'm definitely open for making hub browse working more like this, or making a new command like hub open and deprecating hub browse.

I have to admit I wasn’t aware of hub browse. To me it seems like it could be extended for the above use cases with a handful of changes:

Adding a way to specify a remote from which the user and repository should be inferred, perhaps -r upstream or by changing the first positional argument to [REMOTE | [USER/]REPOSITORY], although that could lead to ambiguities
Making the [SUBPAGE] argument more flexible by accepting branches and tags, perhaps making the commit//branch//etc part optional, essentially making this [SUBPAGE|REF]
Adding a [PATH] argument. It would be good to be able to disambiguate from [SUBPAGE|REF]with -- but unfortunately that’s already used. Not sure what to do about that

The behaviour between [SUBPAGE|REF] and [PATH] would then be the same as in the proposal.


pgTap Testing

As a unauthorized user,
I want no data back when i request the list of RTP's and their details,
so that I  cannot see other users responses and be confident other users can't see mine.

As an authorized user,
I want to be able to view, and update my RTP,
so that I can have confidence that the CCBC team will process my RTP.

As an authorized user,
I do not want to view other users RTP's,
so that I have confidence that no other users can view my RTP.

As an authorized user,
I do not want to be able to delete my RTP,
so that I have confidence that it will not be deleted.

Feature: View and update existing RTP
Scenario: Authorized user accessing their own existing data

Given that I am an authorized user
And I have logged in with BCeId basic
And I have existing RTP data in the database
When I click on "Resume"
Then I should see data I previously entered into the form
And I should be able to edit data I previously entered into the form

Feature: Inability to other users data
Scenario: Authorized user tries to see other users data

Given that I am an authorized user
And have logged in with BceId basic
When I attempt to see other users data
Then I should not see other users data

Feature: Inability to delete existing form data
Scenario: Authorized user attempts to delete form data

Given that I am an authorized user
And I have logged in with BCeID basic
When I attempt to delete existing form data
Then I should be met with an error
And the data should remain stored in the database


Can not find module iohook.node after installation .exe

iohook is working properly in my development platform. Compiling the program is also working. But when I tried to install the .exe file this error is appearing. I have manually build iohook for electron version 13. It is working fine during development. But after building this error is appearing. I have tried both with asar and without asar.

May be if i am able to see the full directory where the app is requiring iohook.node then i can able to fix the issue but its /app.a.../iohook.node thats why i am unable to figure it out.
Note: I have manually build iohook for electron version 13 and node version 14. With following setup. Its working fine during development seriously.
"iohook": {
"targets": [
"node-83",
"electron-89"
],
"platforms": [
"win32",
"darwin",
"linux"
],
"arches": [
"x64",
"ia32"
]
},
Expected Behavior
Should work fine as development.

Current Behavior
error while installing the program

Possible Solution
I have tried all possible solution mentioned on stackoverflow and some other places spending 8 hours. May be this is not a bug but a well documentation about implementation with webpack and electron builder may help us. Also a prebuilds update for electron v13 and v14 will be better.

Steps to Reproduce (for bugs)

git clone https://github.com/electron-react-boilerplate/electron-react-boilerplate.git
install iohook inside /src/ directory as mentioned in their documentation and try to do some basic implementation on main process
Manually build prebuilds iohook for electron v13 and node v14.
try to build by yarn package then install the installer.exe file.

Context

Your Environment

IOHook Version: v0.9.3 (With Manual Build)
Environment name and version (e.g. Chrome 39, node.js 5.4, electron 11.2): Chrome 93, nodejs 14.17.0, electron 13.1.8, electron builder 22.11.1, webpack 5.36.2
Operating System and version (desktop or mobile): win32 x64

You can use require.resolve('iohook') to find out where the runtime is looking for the missing iohook.node file. Note that @ash0x0 has stated that it won't work in Electron 13 without significant modifications.

You can use require.resolve('iohook') to find out where the runtime is looking for the missing iohook.node file. Note that @ash0x0 has stated that it won't work in Electron 13 without significant modifications.

Hi Thanks, May be i can be able to fix the issue but the problem is i am unable to get the package location of iohook.node. require.resolve('iohook') is returning path in development but its returning a number 78200 when i am in production. Can you please specify the working way of getting path in production?

Sorry you can try require.resolve.paths("iohook"). I don't know what 78200 could mean in this context but I see it also appears in your error screenshots above ("...at Object.78200"). I don't know where those error dialogs you screenshotted are coming from but they are obviously abbreviated in an unhelpful way so check the actual javascript console for the full error messages.

Sorry you can try require.resolve.paths("iohook"). I don't know what 78200 could mean in this context but I see it also appears in your error screenshots above ("...at Object.78200"). I don't know where those error dialogs you screenshotted are coming from but they are obviously abbreviated in an unhelpful way so check the actual javascript console for the full error messages.

for this require.resolve.paths("iohook") ....paths is not a function in productions, But i got the alternative way to find out the path from where its requiring the module iohook.node and i have fixed that route inside index.js of iohook module thats also isn't working. the exact same path exists the iohook.node file but the app is saying can not find this module. I have also tried to manually change the location with the prebuilds thats also isn't working. Its pretty strange things that the exact path exists the *.node file but it says its can not find the module. may be @ash0x0 is right its need some significant change for working this module. This module is also not working in electron 12 with asar:true. asar must be false for working with it in electron 12. May be there are some significant changes required for electron 13/14. I am eagerly waiting for the update of iohook . I have spend two of my full working days on it (forgot to add timer) and i am unable to fix the issue. Thank you so much for your comment. Hope this will fix soon.

FWIW I have an Electron 12 project that uses iohook and asar:true successfully. I use Electron Forge for building and I make sure *.node and *.dll files are excluded from the asar. My forge config includes
asar: {
  unpack: "**/*.+(node|dll|exe)",
  smartUnpack: true
}

BTW if you're sure the .node file exists in your packaged app, also make sure the .dll is in the same path. If the dll is missing the error message will say "Cannot find module iohook.node" even if the .node file is there!

FWIW I have an Electron 12 project that uses iohook and asar:true successfully. I use Electron Forge for building and I make sure *.node and *.dll files are excluded from the asar. My forge config includes
asar: {
  unpack: "**/*.+(node|dll|exe)",
  smartUnpack: true
}

BTW if you're sure the .node file exists in your packaged app, also make sure the .dll is in the same path. If the dll is missing the error message will say "Cannot find module iohook.node" even if the .node file is there!

Hey, Thanks for your time, I have cross checked there were both .dll and .node and did many possible ways to figure it out but failed. May be some other changes can fixes the issue. Hope this will be fixed by the team soon.  And for Electron 11/12 i am using electron builder with asar:true and asarUnpack:"**/*.+(node|dll|exe)" but its failing. Its working perfect without asar enabled.  I am interested and waiting for mejor changes in iohook that will support both electron 13 14. and node 16. as i am using this in a big project. Anyway i have downgraded my application electron version for iohook and will rebuild it after fixes of these issue. Thank you so much..

Hi @geniusmonir is this issue fixed, I am also facing same kind of issue in electron 12 & node 16.

No the isssue is not fixed i used the earlier versions. without asar, asar:false

@geniusmonir which version of node, electron and iohook, can you please specify ?


Hide internal crs

This commit adds the annotation to the CSV generated for OperatorHub,
that would hide the following Hive CRs from the UI

ClusterSync
ClusterSyncLease
FakeClusterInstall
Checkpoints
ClusterDeprovision
ClusterProvision
ClusterState
MachinePoolLease

The annotation added is
operators.operatorframework.io/internal-objects as per OpenShift Docs
xref: https://issues.redhat.com/browse/HIVE-1575
/assign @dgoodwin
/cc @2uasimojo

/lgtm


Add letterSpacing style property for Text

Fixes #457

Restarted the Travis build. @a2 / @nicklockwood - what do you think?

:+1: - I'd love to see this get merged

@a2 thank you, fixed the nit

Hey, can you make sure it actually follows the same behavior as CSS.
Example, can you run this in React Native, take a screenshot and make sure it looks pixel perfect:
http://jsfiddle.net/y7h9j3uw/
If you want to try a different font: http://iosfonts.com/

It is super important that any feature which has the same name as CSS does actually work exactly the same as CSS, otherwise it makes debugging a lot hard and confuses developers.

@vjeux here is what I get:

The code:
return (
      <View style={{ flex: 1, backgroundColor: 'white' }}>
        <View style={{ flex: 1, justifyContent: 'flex-end', alignItems: 'flex-start' }}>
            <Text style={{ fontFamily: 'Copperplate', letterSpacing: 5, fontSize: 10 }}>
              This is <Text style={{ letterSpacing: 0 }}>a text with a lot</Text> of spaces
            </Text>
        </View>

        <View style={{ flex: 1, backgroundColor: 'blue' }}>
          <WebView url="http://localhost:8082/" renderLoading={() => <View/>} renderError={() => <View/>}/>
        </View>

      </View>
    );
  }

Html:
<!DOCTYPE html>

  <meta charset="UTF-8">
  <title></title>

      This is a text with a lot of spaces

Can you also check what's the behavior for negative spacing? Thanks a lot for making sure it's the same

For -3px I get the following:

Pretty close

There is the last nasty problem: width calculation. One the web letter spacing affects width, both positive and negative. Negative letter spacing makes width less than required to display text, but it is not clipped according to this width (even with all kinds of overflow and text-overflow properties). On iOS, on the contrary, it is clipped.

Pushed a fix for this problem, no behaves exactly the same way

Great work @vkurchatkin - looking forward to putting this to use!

@vjeux all done

Awesome work @vkurchatkin - I badly want to see this getting merged.

@vjeux ping

This looks good to me. Not sure what's holding it up. I'll check.

+1

@nicklockwood any update?

Sorry about the radio silence. There were a few issues merging - notably this broke the UIExplorer snapshot tests because the default letterSpacing value of 0 is not pixel-for-pixel identical to having no letterSpacing set at all (it disables iOS's per-character smart kerning).
Anyway, that's fixed now, and I've merged this internally so it should be appearing on GitHub real soon.

:palm_tree: that's great, thanks!


Add error scenarios for getApproved

This PR introduces the Tokenizable interface which allows us to inject token IDs into our scenarios to simulate various errors.

♻ @nadavhollander


Show trace events with attributes

We use OT span events holding additional data or exceptions.
I do not see it in dashboard now.
Could You please add it?
Thank You

@JamesNK don't we show all span details in the details view?

Span events aren't that common, but I think we should at least show them in the span detail pane: https://github.com/dotnet/aspire/pull/1522
In future, if more people ask for better span event support, then we could add UI to the span graph.

By the way, when OpenTelemetry Tracer/TelemetrySpan is used, TelemetrySpan.RecordException adds exception as span event so better visualisation showing that exception would be useful.
Visualising span events together with the span would be nice as well so that we could open an event from the visualisation as well.


Replace PlatformAbstractions with RuntimeInformation

Part of https://github.com/aspnet/PlatformAbstractions/issues/34

:shipit:


Write or manipulate pdfs

Feature request
Hi first of all thanks for the great library! I'm currently writing a tool to translate pdfs. My idea was to identify text blocks (which works pretty well in pdfminer), modify these blocks (modify text and font or remove and add) and write the pdf. Are there any plans to implement writing pdfs documents?

Nope.
Pdfminer.six is a library for extracting texts in human readable order from a pdf. It does not contain any functionality for modifying a PDF.


Queue Bug(Error)

When i play a song, says to me that i need to add more songs to queue, and automaticly bot go out of the vc.

This Happens Some Times, Some Ways To Fix:

Restart Bot
Update All NPM Packages (Run This Command In Terminal/Console: npm update)

Still Giving Error? Join Discord Server

Closing This Issue!


Install fails on my windows 7 machine, but works on others

I have been debugging this with my friends, trying to make it work on my PC, but we just couldn't go around it. Same method works on several other machines without problems, only my PC gives us trouble. Here is the error part of the log:

7269 verbose stack Error<EMAIL_ADDRESS>postinstall: `node install.js`
7269 verbose stack Exit status<PHONE_NUMBER>
7269 verbose stack     at EventEmitter. (C:\Users\LexLuthor\AppData\Roaming\npm\node_modules\npm\lib\utils\lifecycle.js:239:16)
7269 verbose stack     at emitTwo (events.js:100:13)
7269 verbose stack     at EventEmitter.emit (events.js:185:7)
7269 verbose stack     at ChildProcess. (C:\Users\LexLuthor\AppData\Roaming\npm\node_modules\npm\lib\utils\spawn.js:24:14)
7269 verbose stack     at emitTwo (events.js:100:13)
7269 verbose stack     at ChildProcess.emit (events.js:185:7)
7269 verbose stack     at maybeClose (internal/child_process.js:827:16)
7269 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
7270 verbose pkgid<EMAIL_ADDRESS>7271 verbose cwd S:\trunk\src\CentralServer\OPM 1.0\EkspertskiAlat
7272 error Windows_NT 6.1.7600
7273 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\LexLuthor\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "electron-prebuilt"
7274 error node v5.7.1
7275 error npm  v3.8.0
7276 error code ELIFECYCLE
7277 error<EMAIL_ADDRESS>postinstall: `node install.js`
7277 error Exit status<PHONE_NUMBER>
7278 error Failed at the<EMAIL_ADDRESS>postinstall script 'node install.js'.
7278 error Make sure you have the latest version of node.js and npm installed.
7278 error If you do, this is most likely a problem with the electron-prebuilt package,
7278 error not with npm itself.
7278 error Tell the author that this fails on your system:
7278 error     node install.js
7278 error You can get information on how to open an issue for this project with:
7278 error     npm bugs electron-prebuilt
7278 error Or if that isn't available, you can get their info via:
7278 error     npm owner ls electron-prebuilt
7278 error There is likely additional logging output above.
7279 verbose exit [ 1, true ]

Does anyone have a answer for this issue????
@lexluthor91 How did you proceed ?

@nelreina I did not proceed. I worked on my work PC. I am pretty sure a clean windows install would be a safe bet, because I believe this problem had something to do with previously installed software, but I could not go that route, because of ongoing stuff on my computer at the time.
Hope that was helpful!

@nelreina are you getting the same error? What version of Windows are you using?

@lexluthor91
The error is on my work pc windows 7 SP1. My personal computer is a Mac Book Pro (No problems)!
@zeke
Yes I am getting the same error (npm i electron-prebuilt) as of 2 day ago. But I found somewhat of a work around. I downloaded the prebuilt binaries put this is my project folder, and changed my start script to start from there.

I downloaded the prebuilt binaries put this is my project folder, and changed my start script to start from there.

@nelreina can you share that technique in more detail here? Might be useful for others.

Remove corrupt files from  c:\users\{name}\.electron and download again.

@zeke
In the meantime at work we made use of the free update from Microsoft to win 10. so I do not have this issue anymore neither the example project :(.
But my solution was to include electron-prebuild binary in your project folder and NOT make use of the global binary.
project - folder
projecy-name

electron-prebuild
...

package.json
Use npm scripts to start electron.
npm run scripts search for modules in your project folder first and then globally
package.json
...
scripts:{
   // I don't remember exactly how I called it but if you google around you'll find it
   "start":"electron" // or "start":"electron-prebuild/electron"
}
...

run npm start

Thanks for the feedback, @stanleyxu2005 and @nelreina. Closing this out.


v1.1.18 - unable to play music with invalid id3 tag

Per the discord PM - any local music that's missing a id3 tag can't be played. This appears in the logs when adding the track.

When you try to view the info for the track, this screen is displayed where the white line cycles across the screen

If you try to play now or add to queue, it doesn't play and it will never appear in the queue - note no errors show in logs for this.

This has been fixed with 1.1.19 - Thanks!


Separated list style do not apply

Describe the bug
Try to append functionality for List
style("boxed-list-separate", active: active)
doesn't work for list at all :(
To Reproduce

create a new function inside List.swift like:

/// https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/style-classes.html#boxed-lists-cards
public func separatedBoxedList(_ active: Bool = true) -> View {
        style("boxed-list-separate", active: active)
    }

apply it to List object in code

     List(model.items) { item in ...
            Text(item.title)
                .padding()
     }
     . separatedBoxedList()

run app

Expected behavior
A separated style list shown

Additional context
No response

This is a new feature in Libadwaita which is not yet in a stable release (will ship with GNOME 47 I guess). In case you're in a Flatpak, you could change the runtime-version to master, otherwise you would have to install the development version of GNOME on your system. Once GNOME 47 is stable, I'll add type-safe support for this style so you won't have to do it yourself. If you want to build for GNOME 46, you would have to use ForEach and apply the card style to the children. Hope that helps!


Has many relation in input field.

// Activity Model
class Activity extends Model
{
   public function session(){
      return $this->hasMany('App\Models\ActivitySession', 'activities_id');
   }
}

// Session Model
class ActivitySession extends Model
{
   public function session_items(){
	return $this->hasMany('App\Models\ActivitySessionItem', 'session_id');
    }
}

This code i'm trying. but not work.
// How do it work. ?
$form->text('session.session_items.name')->rules('required');

Thank.

This way only works on one to one relation.

Ok. Thank you.


How to set video direction with jcodec ?

I'm using jcodec to generate mp4 video, but I don't know how to set the direction of the video.
How can I set the video direction？ Anything will help.Thanks.

@Rogero0o can you explain what is your definition of video direction?

I mean the direction info in the mp4 file.

I don't know what that is
Sent from my iPhone

On Nov 28, 2017, at 1:51 AM, Roger<EMAIL_ADDRESS>wrote:
I mean the direction info in the mp4 file.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Can you provide example?

I want to rotate the video like when recording it's vertical, but when generating that mp4 file I want it to be horizontal.
Any ideas about that? Anything will help, thanks.

Hi, so as I understand you want to turn your videos 90 degree right when you transcode it?
It depends on which API you are using but in each case you'll need to write code to do it. Basically you create an image with width=height and height=width and you copy pixels over so that (height - y - 1, x) ->(x, y) .
If you are using Transcoder you'd have to do a custom filter, otherwise just supply your new transformed image to the SequenceEncoder class.

Got it, I will try
Thanks so much for your response!


[table]Hide table columns on dashboards and export filtered table in CSV

Is your feature request related to a problem? Please describe.
I would like to filter a table in a dashboard to only show a subset of the columns in the original table in Superset. I would also like to have the possibility to select a subset of columns to export. This feature would bring values to non technical users that extract data from Superset to other tools.
Describe the solution you'd like
The possibility for a user to select which columns that are displayed in a dashboard table.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
I would be happy to contribute to this, but might need some pointers since I am new to Superset.

@filipvitez

Changed title to [table]Hide table columns on dashboards and export filtered table in CSV
It does seems helpful. we should implement at least the first request. @villebro


Add more than one high school

It'd be great to be able to add more than one high school.

Closed by  https://github.com/hackedu/shipit/commit/edc8c4c22168bfef8097ba876aebc893622f93b1


TypeScript setting to control adding space to empty braces

Issue Type: Feature Request
We have the typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces setting. It would be nice to customize if we want a space added to empty braces or not.
VS Code version: Code 1.37.1 (f06011ac164ae4dc8e753a3fe7f9549844d15e35, 2019-08-15T16:17:55.855Z)
OS version: Windows_NT x64 10.0.17763

Duplicate of https://github.com/microsoft/TypeScript/issues/28678


ocdm: added skeleton for opencdm_system_supports_server_certificate

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

I think we should add this to the interface. I guess we need to plug this down to the plugins and everything, but that is not my expertise.


Fix aws s3 configuration usage in aws_post_processing.sh

Description
Currently, tornado gets a configuration file for running codes on fpga.
On AWS instances, the configuration needs some metadata about S3 bucket
and related folders to upload files on S3, however, aws_post_processing.sh
is not using these metadata properly. This fix uses the defined variables
to run create_vitis_afi.sh
Problem description
If user has different bucket and folder names in their S3, tornado
will fail to upload generated files to S3. So, this will prevent create_vitis_afi.sh
script to generate AFI image for FPGA on AWS and the image will not be
available for tornadovm to run on the FPGA device.
Backend/s tested
Mark the backends affected by this PR.

[x] OpenCL
[ ] PTX
[ ] SPIRV

OS tested
Mark the OS where this PR is tested.

[x] Linux
[ ] OSx
[ ] Windows

Did you check on FPGAs?
If it is applicable, check your changes on FPGAs.

[x] Yes
[ ] No

How to test the new patch?
Compiling the tornadovm should generate the correct form of aws_post_processin.sh
in bin/bin and bin/sdk/bin folders. Then using any name for S3 bucket and
dcp/logs folder keys should work properly and the AMI image should be generated.

Thank you @ShAlireza for digging into this. We will test this as well.

good catch, I will test it and will let you know.

@ShAlireza it appears to be an error in the Vitis script regarding the passing parameters. A space is added for each of the three arguments ("$S3_BUCKET", "$S3_DCP_KEY", "$S3_LOGS_KEY"), and this causes the script to not be able to upload the generated bitstream to S3. See below:
aws s3  cp 23_11_29-121533_Developer_Vitis_Kernel.tar s3:// tornadovm-fpga-bucket/ outputfolder/

Unknown options: tornadovm-fpga-bucket/,outputfolder/

Can you please confirm whether you have encountered that issue?


Differential analysis format

Hello again,
I am interested in creating a differential role analysis as in Figure 6. Perhaps a silly question, but did you just run each condition separately through spacia, and then do custom scripts to test the outputs?
Thanks

Yes, you are right. We did separate analyses and then compared the results in the downstream.
It would be lovely to have some integrated differential analyses as part of the core model. We would defer to follow up works from people in the community :)
Tao

Hi @wtwt5237, making some progress on this, though I did have a few more questions:

For figure 6d, it looks like spacia was run with -sf SQMST1 and no -rf set. Is that pathway enrichment of a particular module of receiver genes, or the combination of all significant modules?
For figure 6e, did you run spacia separately for each receiver gene? Is there a way to look at a set of receiver genes independently without spacia combining them (as it does when you do -rf geneA|geneB|geneC)
How do you access the list of all betas (is it in geneX_correlated_genes/geneX_correlated_genes_beta.txt)?

Hello!
Is that pathway enrichment of a particular module of receiver genes, or the combination of all significant modules? – If I understand you correctly, it’s a particular module of receiver genes. The findings in the prior parts of this section led us to narrow down and investigate some specific modules
For figure 6e, did you run spacia separately for each receiver gene? - Yes
Is there a way to look at a set of receiver genes independently without spacia combining them (as it does when you do -rf geneA|geneB|geneC) – Yes. Spacia can do both. If you are not sure how to set this in the input, please contact James for the R interface and Yunguan for the python interface.
How do you access the list of all betas (is it in geneX_correlated_genes/geneX_correlated_genes_beta.txt)? – Sorry. I cannot recall the details. Please contact James for the R interface and Yunguan for the python interface.
Thanks!
Tao
From: Robert Butler @.>
Sent: Saturday, October 19, 2024 1:05 PM
To: yunguan-wang/Spacia @.>
Cc: Tao Wang @.>; Mention @.>
Subject: Re: [yunguan-wang/Spacia] Differential analysis format (Issue #51)
EXTERNAL MAIL
Hi @wtwt5237https://urldefense.com/v3/__https:/github.com/wtwt5237__;!!MznTZTSvDXGV0Co!CeOb7BAqrGZoBVxD28JQilJ9EABf7jorQFddULwUIndD4qMgkoJrT33m3LERZHRBmeU9vqXKx_Jz8KZe3E0xIz945KwXmSzD$, making some progress on this, though I did have a few more questions:

For figure 6d, it looks like spacia was run with -sf SQMST1 and no -rf set. Is that pathway enrichment of a particular module of receiver genes, or the combination of all significant modules?
For figure 6e, did you run spacia separately for each receiver gene? Is there a way to look at a set of receiver genes independently without spacia combining them (as it does when you do -rf geneA|geneB|geneC)
How do you access the list of all betas (is it in geneX_correlated_genes/geneX_correlated_genes_beta.txt)?

—
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/yunguan-wang/Spacia/issues/51*issuecomment-2424111709__;Iw!!MznTZTSvDXGV0Co!CeOb7BAqrGZoBVxD28JQilJ9EABf7jorQFddULwUIndD4qMgkoJrT33m3LERZHRBmeU9vqXKx_Jz8KZe3E0xIz945IlmtBWH$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AAXIKLOVKIAF45SUAE3UP6TZ4KNLDAVCNFSM6AAAAABOBSREAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRUGEYTCNZQHE__;!!MznTZTSvDXGV0Co!CeOb7BAqrGZoBVxD28JQilJ9EABf7jorQFddULwUIndD4qMgkoJrT33m3LERZHRBmeU9vqXKx_Jz8KZe3E0xIz945KZgPA71$.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>CAUTION: This email originated from outside UTSW. Please be cautious of links or attachments, and validate the sender's email address before replying.

UT Southwestern
Medical Center
The future of medicine, today.

Hi @yunguan-wang and @zzhu33, I am making progress with the differential analysis, comparing four groups as in Fig6a using the unfiltered output of Interactions.csv:

I am not sure how to get the distances for Figure 6b. Do you know which file in the py output contains those? Is it a flattened dist_sender.json? The average value for each sender cell or all values for each cell?
I can also make a pathway enrichments (Figs 6 c&d) easily enough for modules discovered from clustering. to be continued...
Also as above, to make the plot in Fig 6e, @yunguan-wang  do you know is it geneX_correlated_genes/geneX_correlated_genes_beta.txt in the py output that has the distribution of betas?

It is saved in the geneX_correlated_genes_beta.txt file. The beta are organized in order of chains. For example, if there is 3 mcmc chains, each with n =10000,  and nthin is 10, then there should be (10000/10*3) + 3 (init values) values for beta.

I was plotting Fig6e with my data using the Ntrk2_correlated_genes_beta.txt and I got results that trended towards the Beta values in the Pathway_betas.csv file, but were notably smaller:
      group                 module        Sender_pathway        Beta         pval     pval_adj
     <char>                 <char>                <char>       <num>        <num>        <num>
1:   PS19-V Ntrk2_correlated_genes Bdnf_correlated_genes  0.97840573 5.090559e-22 5.090559e-22
2: PS19-C31 Ntrk2_correlated_genes Bdnf_correlated_genes  0.45000446 2.238242e-04 2.238242e-04
3:     WT-V Ntrk2_correlated_genes Bdnf_correlated_genes  1.14059361 1.324546e-30 1.324546e-30
4:   WT-C31 Ntrk2_correlated_genes Bdnf_correlated_genes -0.07797043 4.375069e-01 4.375069e-01

Are the values calculated for the final Pathway_betas.csv means or adjusted? It noted in the figure data that the values were downsampled to 10000. Do you recommend randomly downsampling prior to differential testing? Excluding outliers? Some individual betas were quite large (>20).

Hello!
Could you please email Noah Chang<EMAIL_ADDRESS>for your question? He generated Fig. 6e
Thanks!
Tao
From: Robert Butler @.>
Sent: Friday, November 8, 2024 6:33 PM
To: yunguan-wang/Spacia @.>
Cc: Tao Wang @.>; Mention @.>
Subject: Re: [yunguan-wang/Spacia] Differential analysis format (Issue #51)
EXTERNAL MAIL
I was plotting Fig6e with my data using the Ntrk2_correlated_genes_beta.txt and I got results that trended towards the Beta values in the Pathway_betas.csv file, but were notably smaller:
  group                 module        Sender_pathway        Beta         pval     pval_adj

 <char>                 <char>                <char>       <num>        <num>        <num>

1:   PS19-V Ntrk2_correlated_genes Bdnf_correlated_genes  0.97840573 5.090559e-22 5.090559e-22
2: PS19-C31 Ntrk2_correlated_genes Bdnf_correlated_genes  0.45000446 2.238242e-04 2.238242e-04
3:     WT-V Ntrk2_correlated_genes Bdnf_correlated_genes  1.14059361 1.324546e-30 1.324546e-30
4:   WT-C31 Ntrk2_correlated_genes Bdnf_correlated_genes -0.07797043 4.375069e-01 4.375069e-01
plot_zoom_png.png (view on web)https://urldefense.com/v3/__https:/github.com/user-attachments/assets/3f4ccfa2-90e8-410c-9b57-81c638cbde1a__;!!MznTZTSvDXGV0Co!EcPV2c7f5Jhaet46KTQdgN6B78TknmhEv-8eBbrtbCX5cJaiUU_GSLQQTN8hvy0zgCzjWidz1Imf2xNxFdBKYy_IImVPKOFI$
Are the values calculated for the final Pathway_betas.csv means or adjusted? It noted in the figure data that the values were downsampled to 10000. Do you recommend randomly downsampling prior to differential testing? Excluding outliers? Some individual betas were quite large (>20).
—
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/yunguan-wang/Spacia/issues/51*issuecomment-2465940725__;Iw!!MznTZTSvDXGV0Co!EcPV2c7f5Jhaet46KTQdgN6B78TknmhEv-8eBbrtbCX5cJaiUU_GSLQQTN8hvy0zgCzjWidz1Imf2xNxFdBKYy_IIh4WaOmh$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AAXIKLNZ5TMI4HAEQTCUJGDZ7VJ4NAVCNFSM6AAAAABOBSREAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRVHE2DANZSGU__;!!MznTZTSvDXGV0Co!EcPV2c7f5Jhaet46KTQdgN6B78TknmhEv-8eBbrtbCX5cJaiUU_GSLQQTN8hvy0zgCzjWidz1Imf2xNxFdBKYy_IIu-hD9mu$.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>CAUTION: This email originated from outside UTSW. Please be cautious of links or attachments, and validate the sender's email address before replying.

UT Southwestern
Medical Center
The future of medicine, today.


Replace context check with event types parser

This moves the custom project logic into Project Types and
allows a single job to determine the types of events to support.
Change-type: minor
Signed-off-by: Kyle Harding<EMAIL_ADDRESS>

@balena-ci I self-certify!


SDK v3

Hi,
Can you please update this to work with the new version 3 of the PHP SDK?
Thanks!

WHen I try to install I get

dnocode/yii2-awsddb v1.0.2 requires aws/aws-sdk-php 2.* -> no matching package found.

Cannot install it!