running pretrained net on CPU only

I have looked at the documentation, but it isnt clear how one can run a pretrained model on CPU only system ( for any dataset AN4 or librispeech ) , I have verified it works well on GPU system ? Also do you have any slack group / gitter / google group for deepspeech.torch for discussions ?

If it was a pre-trained GPU model, you'd just have to de-cuda the model on a platform with a GPU (otherwise it won't load) and then re-save it...
it's a couple of lines of code though
--load cuda model then:
model:float()
--then save it

I am not able to understand it , I am new to torch/lua and deeplearning too , Are the commands you mentioned above to be used in command line as arguments , if so with which file ? Or is that a psudocode that needs to be converted in real lua code , I would appreciate if someone can put a simple example and update the documentation


input of type radio

Hia,
I would expect the following would be possible be I suspect its currently not supported.

Is that suspicion correct?
And would you want this library to support radio input's? And if, so could you give me a head start, some guidance on how to do that?

what about checkboxes
I noticed a bs-input with type=radio will add a 'ember-text-field' class.

Or, is there an easy way to work around this with a custom control solution?

Thanks
Bas
{{#bs-form formLayout="vertical" model=model action="submit" disabled=isProcessing}}
    {{bs-form-element controlType="radio"
                      label="Expected practice(s)"
                      choices=model.practiceEstimateOptions
                      choiceLabelProperty="label"
                      choiceValueProperty="value"}}
{{/bs-form}}

Expected output
<form id="ember626" role="form" class="form ember-view">

  Expected practice(s)

                    <input type="radio" name="optionsRadios" id="optionsRadios1" value="1" checked="">
                    just one

                    <input type="radio" name="optionsRadios" id="optionsRadios1" value="<=5" checked="">
                    5 or less

                    <input type="radio" name="optionsRadios" id="optionsRadios1" value="5<10" checked="">
                    between 5 and 10

                    <input type="radio" name="optionsRadios" id="optionsRadios1" value="10<25" checked="">
                    between 10 and 25

                    <input type="radio" name="optionsRadios" id="optionsRadios1" value=">25" checked="">
                    we're huge; more then 25

</form>

This solution seems to work.
depends on: ember install ember-radio-button
            {{#bs-form-element label="Number of employees"
                               choices=model.numberOfEmployeesOptions choiceLabelProperty="label"
                               choiceValueProperty="value"
                               property="numberOfEmployees" disabled=isProcessing showValidation=false
                               useIcons=false showValidationOn="change" as |value id validationState|}}

                {{#each model.numberOfEmployeesOptions as |option|}}

                        {{#radio-button radioId=(concat id '-' option.value)
                                        value=option.value
                                        groupValue=value}}
                            {{option.label}}
                        {{/radio-button}}

                {{/each}}
            {{/bs-form-element}}

Yes, something like that would be the way for now. The form element component supports custom input elements, and just has some built-in support for the input elements that are supported within Ember itself (text inputs and textarea). Maybe that might change in the future, but now for things like radios, selects and whatever else you would have to use the custom control type setup as you did!


[doc] [client] [go] Add chunking to go-client doc

Master Issue: pulsar-client-go #865
Motivation
Add chunking document for go-client. (Do not merge. #865 is under review now.)
Modifications
Add chunking document for go-client.
Documentation

[ ] doc-required
(Your PR needs to update docs and you will update later)

[ ] doc-not-needed
(Please explain why)

[x] doc
(Your PR contains doc changes)

[ ] doc-complete
(Docs have been already added)

Matching PR in forked repository
PR in forked repository:  https://github.com/Gleiphir2769/pulsar-client-go

Thanks for your contribution! Feel free to add your updates to https://docs.google.com/spreadsheets/d/1YHYTkIXR8-Ql103u-IMI18TXLlGStK8uJjDsOOA0T20/edit#gid=1784579914 once the PRs get merged.

@RobertIndie @nodece could you please review this PR after https://github.com/apache/pulsar-client-go/pull/805 is merged? Thanks!

Thanks for your contribution! Feel free to add your updates to https://docs.google.com/spreadsheets/d/1YHYTkIXR8-Ql103u-IMI18TXLlGStK8uJjDsOOA0T20/edit#gid=1784579914 once the PRs get merged.

@Anonymitaet Hi, the ralated pr has merged https://github.com/apache/pulsar-client-go/pull/805. But I have no permits to edit this doc.

Thanks for your contribution! Feel free to add your updates to https://docs.google.com/spreadsheets/d/1YHYTkIXR8-Ql103u-IMI18TXLlGStK8uJjDsOOA0T20/edit#gid=1784579914 once the PRs get merged.

@Anonymitaet Hi, the ralated pr has merged apache/pulsar-client-go#805. But I have no permits to edit this doc.

@Gleiphir2769 can you leave comments in https://docs.google.com/spreadsheets/d/1YHYTkIXR8-Ql103u-IMI18TXLlGStK8uJjDsOOA0T20/edit#gid=1784579914? Then I'll copy your changes to that file, thanks!

Thanks for your contribution! Feel free to add your updates to https://docs.google.com/spreadsheets/d/1YHYTkIXR8-Ql103u-IMI18TXLlGStK8uJjDsOOA0T20/edit#gid=1784579914 once the PRs get merged.

@Anonymitaet Hi, the ralated pr has merged apache/pulsar-client-go#805. But I have no permits to edit this doc.

@Gleiphir2769 can you leave comments in https://docs.google.com/spreadsheets/d/1YHYTkIXR8-Ql103u-IMI18TXLlGStK8uJjDsOOA0T20/edit#gid=1784579914? Then I'll copy your changes to that file, thanks!

@Anonymitaet  Done, thx.

@RobertIndie @nodece Hi, could you review this PR and merge it soon?


Cleaning graph update events

This PR was intended to fix #1214 but did some more things along the way:

It reorganizes the graph handlers.
It avoids memory leaks on very dynamic graphs (lot of additions/deletions).
It removes the nodeKeyToIndex & edgeKeyToIndex registers that were previously used in some incremental changes experiments but are now unused, which makes processing go faster.
It removes unused methods linked to the beforementioned registers.

Manually rebased and merged.


Unable to run on Solaris 11.3 with python 3.7

Here it is a very simple structure:
$ ls -alR .
.:
total 116
drwxr-xr-x   3 mcmara   staff          4 Jan 31 21:32 .
drwxr-xr-x   9 mcmara   staff         18 Jan 31 21:04 ..
drwxr-xr-x   2 mcmara   staff          4 Jan 31 21:26 pictures
-rw-r--r--   1 mcmara   staff        127 Jan 31 21:31 sigal.conf.py

./pictures:
total 13015
drwxr-xr-x   2 mcmara   staff          4 Jan 31 21:26 .
drwxr-xr-x   3 mcmara   staff          4 Jan 31 21:32 ..
-rwxr-xr-x   1 mcmara   staff    4741682 Jan 31 21:05 pic1.jpg
-rwxr-xr-x   1 mcmara   staff    1839056 Jan 31 21:05 pic2.jpg

A default config file:
$ cat sigal.conf.py
source = 'pictures'
theme = 'galleria'
img_size = (800, 600)
thumb_size = (280, 210)
ignore_directories = []
ignore_files = []

It fails with an obscure error:
$ /opt/local/python3/bin/sigal build
Sorting albums  [####################################]  100%
Sorting media  [####################################]  100%
Traceback (most recent call last):
  File "/opt/local/python3/bin/sigal", line 11, in <module>
    sys.exit(main())
  File "/opt/local/python3/lib/python3.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/opt/local/python3/lib/python3.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/opt/local/python3/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/local/python3/lib/python3.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/local/python3/lib/python3.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/opt/local/python3/lib/python3.7/site-packages/sigal/__init__.py", line 141, in build
    gal = Gallery(settings, ncpu=ncpu)
  File "/opt/local/python3/lib/python3.7/site-packages/sigal/gallery.py", line 563, in __init__
    album.sort_medias(settings['medias_sort_attr'])
  File "/opt/local/python3/lib/python3.7/site-packages/sigal/gallery.py", line 344, in sort_medias
    reverse=self.settings['medias_sort_reverse'])
  File "/opt/local/python3/lib/python3.7/site-packages/sigal/gallery.py", line 341, in <lambda>
    key = lambda s: strxfrm(getattr(s, medias_sort_attr))
ValueError: character U+1010769 is not in range [U+0000; U+10ffff]

Any idea on what could be wrong?
Here it is the system:
$ uname -a
SunOS thalos 5.11 11.3 i86pc i386 i86pc
$ /opt/local/python3/bin/python3 --version
Python 3.7.0a0

@mcmara - It looks similar to http://bugs.python.org/issue16258 ? If you don't find a workaround, I guess we could add a failover on sigal to use a simple sort if the sort with the locale failed.


Error: ImportError: file C:\Python27\Lib\site-packages\Qt.py line 419: No Qt binding were found.

hi i having this error when using qt in maya 2016
import Qt
Error: ImportError: file C:\Python27\Lib\site-packages\Qt.py line 419: No Qt binding were found.
but no problem when using qt in maya 2017.
can anyone help?
Thanks
Desmond

Hi @tws0002, try not having your system Python on your PYTHONPATH when you launch Maya. It may cause Maya to try and run other modules you have there, such as a system-wide PyQt or PySide.
Try putting Qt.py in another folder, such as c:\my_modules and then adding only that.
Windows
$ copy Qt.py c:\my_modules\Qt.py
$ set PYTHONPATH=c:\my_modules
$ c:\C:\Program Files\Autodesk\Maya2016\bin\maya.exe

Linux
$ cp Qt.py ~/my_modules/Qt.py
$ export PYTHONPATH=~/my_modules
$ maya

If you are unfamiliar with environment variables, you can also try this from within Maya.
import sys
sys.path.insert(0, r"c:\my_modules")

Let me know if you have any problems.

thanks for the quick reply !!
it work if using ur instruction.
mean I cannot add  C:\Python27\Lib\site-packages to PYTHONPATH ?
Thanks
Desmond

mean I cannot add C:\Python27\Lib\site-packages to PYTHONPATH ?

You can, but it probably isn't a good idea.
If it works when you aren't doing that, then it may be the case that you have another PySide or PyQt installed there that Maya (and Qt.py) is trying to use. But because Maya has a specially compiled version of Python, compiled packages that works for one sometimes might not work with the other.
Best to keep them separate.

If this solves your issue, feel free to close this issue.

Thanks for the help.
I think because of PySide that I install are in the same folder that have Qt.py!!
that's the conflict I guess!! after I delete my PySide, problem solve.
Thanks
Desmond


Add ability to specify an order for each step

The idea here is to allow ordering the steps with minimal amount of code. This give a level of flexibility currently not available. In its current form there is room for improvement like inserting a step in the middle of already existing steps. At current if there is a step already defined and the given position or no order is defined it will simply add it to the end of the steps array.

@thematrimix awesome thank you! I will get this merged today


Redux core example app not working

What docs page needs to be fixed?

Section: Redux Core Example App
Page: Redux overview

What is the problem?
The demo application is not working because the script src is broken.
What should be changed to fix the problem?
Update the script src to a valid url for redux@latest

Yeah, I just updated the sandbox to point to the proper ESM module file - it should be working now. (Unfortunately, CodeSandbox also doesn't seem to be highlighting JS code in a <script type="module"> in the embed - I've filed https://github.com/codesandbox/codesandbox-client/issues/8259 for that.)
Thanks!


A way to simulate combat like Hodir with additional critical damage percentage buff.

As title described.
We already have ability to simulate additional combat-specific buffer by adding additional stat like haste/crit but not for crit damage.
This can be helpful to sim best gear for Hodir combat.

Hey @zsz1992418! We already have an issue in the backlog for this https://github.com/wowsims/wotlk/issues/2164 so I'm going to close out this one for now so that we can keep things organized


Can't get emoji crumb with 2FA signin

I saw this previous PR, but my login is still failing!
Starting import
Got tokens
2FA Code: 335716
Logged in
Uh oh! Error: Login error: could not get emoji upload crumb for https://0xproject.slack.com

We use 2FA. :( Anything I'm missing? I just did npm install -g and ran the command.

We've got Google SSO enabled, and, also seeing the same error.

Also still failing, Windows 10, node 12.3.1.

Same thing on MacOS 10.14, node 8.0.0

Same thing, but no 2fa enabled.


Migrate Project endpoint from data to api

Description
Since we have an API server now, the static data.dzcode.io is not needed, as a first step to migrating it to API, we start with the Project endpoint.
Check List

[ ] Create Project controller and endpoint with OpenAPI specs
[ ] Create Project repository that get data from both ./data folder & Github service
[ ] Update ./web and ./mobile code to use the new ./api endpoint

Additional Comments
once all models are migrated to ./api, we can decommission data.dzcode.io cc @CA1R7  ;)

Great @ZibanPirate finally 🔥🤩

finally starting to work on this one 😄, will close this as a duplicate of #549 and will track progress there instead


Custom format for the chart title 支持修改图表title的字体吗？

目前发现创建的图表的title都是灰色的，想把图表title更改字体颜色，不知道是否支持。
通过ChartTitle设置的图表title，看到charttitle只有name这一个属性

Thanks for your issue, I have made a breaking changes for the AddChart function, now it supports formatting and setting rich text titles for the chart. Please try to upgrade the master branch code, and this feature will be released in the next version. For example, you can set title for chart with blue color and custom formats like this:
err := f.AddChart("Sheet1", "E1", &excelize.Chart{
    // ...
    Title: []excelize.RichTextRun{
        {
            Text: "Chart Title",
            Font: &excelize.Font{
                Bold:   true,
                Italic: true,
                Family: "Times New Roman",
                Size:   16,
                Color:  "2354e8",
            },
        },
    },
});


Switching between fallback doesn't change the title

When viewing the fallback view for a resource, and changing to a different fallback view, the title doesn't update.
in the above example, I first get externalsecrets, then clusterrole then ingresses

Yeah I can see why, I'll see if I can fix it right away

#193 Should fix this!


Stream not playing in Chrome / Firefox in Windows

Have you read the FAQ and checked for duplicate open issues? Yes
What version of Shaka Player are you using? 3.0.7
Can you reproduce the issue with our latest release version? Yes
Can you reproduce the issue with the latest code from master? Yes
Are you using the demo app or your own custom app? Both
If custom app, can you reproduce the issue using our demo app? Yes
What browser and OS are you using?
Firefox 85 - Windows 10
Chrome 88 - Windows 10
For embedded devices (smart TVs, etc.), what model and firmware version are you using?
What are the manifest and license server URIs?

https://streamer.zapitv.com/provision/mirage.mp4/index.mpd
What did you do?

Load the previous stream
What did you expect to happen?
The stream plays without problem
What actually happened?

The stream does not start playing and in the browser console I see this:
Cannot play media. No decoders for requested formats: audio/mp4;codecs="mp4a.40.2";bitrate="122000";channels="2", video/mp4;codecs="avc1.640028";framerate="25";bitrate="3676000";width="1920";height="1080"
Note: The same stream in macOS works without problem.

Has the stream changed since this was posted? Just tested ff85/chrome88 on win10 and it appears to play on both.
Do see in firefox:
Cannot play media. No decoders for requested formats: audio/mp4;codecs="mp4a.40.2";bitrate="122000";channels="2", video/mp4;codecs="avc1.640028";framerate="25";bitrate="3676000";width="1920";height="1080", audio/mp4;codecs="mp4a.40.2";bitrate="122000";channels="2", video/mp4;codecs="avc1.640028";framerate="25";bitrate="3676000";width="1920";height="1080", audio/mp4;codecs="mp4a.40.2";bitrate="122000";channels="2", audio/mp4; codecs="mp4a.40.2", audio/mp4; codecs="mp4a.40.2", video/mp4;codecs="avc1.640028";framerate="25";bitrate="3676000";width="1920";height="1080", video/mp4; codecs="avc1.640028", video/mp4; codecs="avc1.640028", audio/mp4;codecs="mp4a.40.2";bitrate="122000";channels="2", video/mp4;codecs="avc1.640028";framerate="25";bitrate="3676000";width="1920";height="1080"
but it doesn't affect playback. For what it's worth, I see similar errors in firefox for pretty much any stream.

The problem is that it doesn't happen on all computers, on some it works and on others it doesn't.

Ah, does it make a difference if hardware acceleration is disabled in chrome/ff?

First, the URL you posted is no longer valid (404).  Secondly, that looks like normal H.264+AAC content, so I don't know why it wouldn't be supported.  It looks like it is multiplexed, but there are multiple MIME strings combined instead of combining their codec values.  Is that console line coming from our code or from the platform (i.e. does DevTools tell you where it comes from)?  Can you create non-multiplexed content for that stream and does that play?

The content provider has removed it, I will reopen the ticket when I get the stream again (it could take a couple of days ...)

@TheModMaker New stream:
https://shaka-player-demo.appspot.com/demo/#audiolang=es-419;textlang=es-419;jumpLargeGaps;uilang=es-419;asset=https://streamer.zapitv.com/provision/NO_GRITES.mp4/index.mpd;panel=HOME;build=uncompiled
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0"

No se puede reproducir el medio. No hay decodificadores para los formatos solicitados: audio/mp4;codecs="mp4a.40.2";bitrate="124000";channels="2", video/mp4;codecs="avc1.640028";framerate="25";bitrate="3363000";width="1920";height="1080", audio/mp4;codecs="mp4a.40.2";bitrate="124000";channels="2", video/mp4;codecs="avc1.640028";framerate="25";bitrate="3363000";width="1920";height="1080", audio/mp4;codecs="mp4a.40.2";bitrate="124000";channels="2", audio/mp4; codecs="mp4a.40.2", audio/mp4; codecs="mp4a.40.2", video/mp4;codecs="avc1.640028";framerate="25";bitrate="3363000";width="1920";height="1080", video/mp4; codecs="avc1.640028", video/mp4; codecs="avc1.640028", audio/mp4;codecs="mp4a.40.2";bitrate="124000";channels="2", video/mp4;codecs="avc1.640028";framerate="25";bitrate="3363000";width="1920";height="1080"

Note: the same stream in macOS works correctly.

I have found something very curious ... without the jumpLargeGaps setting it works. But if I activate it, it doesn't work ...: S Exactly what the url that I have sent has......

That sounds like a coincidence to me.  jumpLargeGaps shouldn't have anything to do with it, and the content plays for me (with jumpLargeGaps and without) in ChromeOS.

Your screenshot doesn't appear to show an error from us, just a console log.  If you click play, does the video play?  How about if you seek?  If you go to about:config (for Firefox), check that both media.mp4.enabled and media.mediasource.mp4.enabled configs are true.

If you click on play it doesn't work. if you do seek if it works. mp4 and mediasource are activated.

So that log isn't relevant for some reason.  It comes from something else (maybe an extension?).  There is a small gap at the start of your content.  What may be happening is the browser sometimes doesn't play through it and we get stuck.  So it probably has to do with gap jumping not handling this correctly.  I don't see any logs about jumping the gap in your screenshot, so we're not jumping it correctly.
What are the values of video.currentTime, video.buffered.length, and video.buffered.start(0) when it is stalled?

document.getElementById('video').currentTime
0
document.getElementById('video').buffered.length
1
document.getElementById('video').buffered.start(0)
0.044
document.getElementById('video').buffered.end(0)
15.978666

Sounds like https://github.com/google/shaka-player/commit/f7cc2f94312a970f356e9a1a8f47b9ab2216cef6 which landed after v3.0.8.  Is this fixed in the nightly build?
https://nightly-dot-shaka-player-demo.appspot.com/

You're right, it gets fixed with that commit. Thanks @joeyparrish


Minor update: Clarified need to create a custom sensitive type for matching multi-w…

…ord strings
I added the clarification that this is only needed for searchable fields.

@JohanFreelancer9 - kindly do the copy editor review for this PR. Thanks

@JohanFreelancer9 - kindly do the copy editor review for this PR. Thanks

@Esaggese

@Esaggese

fixed in a different pr


Build failure with CMake 3.20.0

When using CMake 3.20.0, the build fails with the following (tested with 7f455786f and ./build charm++ netlrts-linux-x86_64 smp  --with-production -j4, but it should fail in general):
Fatal Error by charmc in directory <...>/charm/netlrts-linux-x86_64-smp-clang-11
   CMakeFiles/ldb-rand.dir/src/conv-ldb/cldb.rand.C.o: file not recognized: File truncated
charmc exiting...
Fatal Error by charmc in directory <...>/charm/netlrts-linux-x86_64-smp-clang-11
   CMakeFiles/conv-static.dir/src/conv-core/conv-static.c.o: file not recognized: File truncated
charmc exiting...
CMakeFiles/ldb-rand.dir/build.make:75: recipe for target 'CMakeFiles/ldb-rand.dir/src/conv-ldb/cldb.rand.C.o' failed
make[2]: *** [CMakeFiles/ldb-rand.dir/src/conv-ldb/cldb.rand.C.o] Error 1
CMakeFiles/Makefile2:586: recipe for target 'CMakeFiles/ldb-rand.dir/all' failed
make[1]: *** [CMakeFiles/ldb-rand.dir/all] Error 2

The build works fine with CMake 3.19.7.

This is weird, cmake < 3.4.0 is not supported at all and should cause an error to appear (or automatically run ./buildold instead), see e.g.
https://github.com/UIUC-PPL/charm/blob/7f455786f6a3b8e9aac4e360e43f2c61f34d5797/CMakeLists.txt#L13
and
https://github.com/UIUC-PPL/charm/blob/7f455786f6a3b8e9aac4e360e43f2c61f34d5797/buildcmake#L27-L37
Can you paste the output of cmake --version

This is weird, cmake < 3.4.0 is not supported at all and should cause an error to appear (or automatically run ./buildold instead), see e.g.
https://github.com/UIUC-PPL/charm/blob/7f455786f6a3b8e9aac4e360e43f2c61f34d5797/CMakeLists.txt#L13
and
https://github.com/UIUC-PPL/charm/blob/7f455786f6a3b8e9aac4e360e43f2c61f34d5797/buildcmake#L27-L37
Can you paste the output of cmake --version ?

Ah, yes, my mistake, I mistyped the version number. I was testing with 3.20.0, not 3.2.0.

This is affecting CI now that https://github.com/actions/virtual-environments/releases/tag/ubuntu20%2F20210330.1 has introduced CMake 3.20.0 to the build images.

3.20.0 uses -MD to generate dependency information, which charmc did not support correctly (#3318).

I also get this charmc extension error with version 3.22.1 and -MD compiling with gcc11 on bigSur 11.6.


Fix LOGGER.debugf in FxViewRepository

@Eng-Fouad do you need a 0.8.2 release ?

@Eng-Fouad do you need a 0.8.2 release ?

No need. It's a subtle change. Will be in next release anyway :)


cables: 0.3.2 -> 0.4.4

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/cables-gl/cables_electron/releases.
meta.description for cables is: Standalone version of cables, a tool for creating beautiful interactive content.
meta.homepage for cables is: https://cables.gl
meta.changelog for cables is: https://cables.gl/changelog
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.4.4 with grep in /nix/store/27fwabcji9gl5jy8yf429dvq9di5bpwq-cables-0.4.4
found 0.4.4 in filename of file in /nix/store/27fwabcji9gl5jy8yf429dvq9di5bpwq-cables-0.4.4

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

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

cables

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/27fwabcji9gl5jy8yf429dvq9di5bpwq-cables-0.4.4 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

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

Or:
nix build github:r-ryantm/nixpkgs/8cb4eb65322e6c82a11a290e9af5a1ccc875b329#cables

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/27fwabcji9gl5jy8yf429dvq9di5bpwq-cables-0.4.4
ls -la /nix/store/27fwabcji9gl5jy8yf429dvq9di5bpwq-cables-0.4.4/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review

x86_64-linux

:white_check_mark: 1 package built:

cables

Maintainer pings
cc @rubikcubed for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

Add a :+1: reaction to pull requests you find important.

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 360921

x86_64-linux

:white_check_mark: 1 package built:

cables

Image of the launched program and basic functionality confirmed.

@NixOS/nixpkgs-merge-bot merge


2.0 Roadmap

Opening this issue as a stub and RFC (request for comments)
Project board:
https://github.com/darrenjennings/vue-autosuggest/projects/3
Branch:
https://github.com/darrenjennings/vue-autosuggest/tree/2.0
Try it out!
If you're feeling risky, In your package.json add "beta" as the version and it will pull the latest 2.0:
"vue-autosuggest": "beta"

Codesandbox Demos:

https://codesandbox.io/s/7z7p8mx2y1
With Algolia instantsearch: https://codesandbox.io/s/2vr87nyvkp

Features:

[x] new feature: v-model to address #52
[x] remove event props (onBlur, onClick onFocus, onSelected) and thus deprecation code
[x] Perf benefits: remove watcher, use computed for sections, section lists, size etc.
[x] feat(input) type should be configurable on the <input> element
[x] refactor(slots) rename header/footer slots to before/after-suggestions
[x] feat(slots) add section before/after slots

Did not do:

[ ] ~integrate with https://github.com/Akryum/vue-virtual-scroller~

was not straightforward and not a huge need for now. always interested to see if this can be accomplished at some point in the future 🤔

[ ] ~feat(input) add 👻 ghost input typeahead option~

added "before input" slot + v-model and will explore ghost input in the future in userland

[ ] ~Figure out way to get test coverage to 100%~

increased test coverage from ~80% to ~86% but not getting to 100% at the moment. Code coverage is close to 97% locally vs. 86% on Travis-CI so not sure what's up.

[ ] ~New vuepress docs~

should be easy to do, but not a blocker for the release.

A message should show if there are no results but I am unable to make it appear. I tried using

@mng78 yes this is something I have implemented with https://github.com/darrenjennings/vue-autosuggest/commit/87ee6b5c26fc6300f8fbb51fe1dfeabd91a1df21
I have updated the codesandbox to include this type of functionality. I am conditionally rendering the header or footer slot with a message and making sure should-render-suggestions will show the results.
<vue-autosuggest
  :should-render-suggestions="(size, loading) => size >= 0 && !loading"
>
  <template slot="header">
    <div
      v-if="suggestions.length === 0"
      class="autosuggest__results_message"
    >
      No Results
    </div>
  </template>

give it a try and let me know if you have any further questions.

Sorry I might be doing something wrong but that doesn't work. When inserting the :should-render-suggestions line, I can't no longer select nothing in the dropdown and if no results, it does the same thing as before, the message doesn't show.

@mng78 sorry I can't do much to help you without a codesandbox for reproducing. I suggest you fork the one I linked and send back a reproduction. Also ensure you are on the latest beta release. Feel free to file another issue and we can track off this thread, since this is reserved for new feature discussion.

ok I was switching between projects and I had forgotten to put beta version for that one.
Now I get an error "TypeError: Cannot read property 'map' of undefined".

@mng78 Yes please open another issue. thank you. Also, if you want to see algolia working with 2.0 here's a demo: https://codesandbox.io/s/2vr87nyvkp

@darrenjennings
I have some proposals for v 2.x

Add more slots, especially for showing messages: https://github.com/darrenjennings/vue-autosuggest/issues/99
Make it easier to style the list depending on the number of results: https://github.com/darrenjennings/vue-autosuggest/issues/98
Make the autosuggest__ CSS prefix configurable: https://github.com/darrenjennings/vue-autosuggest/issues/97
Improve the BEM compatibility: https://github.com/darrenjennings/vue-autosuggest/issues/96

(...) but vue-autosuggest will probably not try to become vue-multiselect which has very specific multiselect capabilities.

vue-multiselect is great, but it has its own gotchas. Multiple selection feature makes it much more complex, harder to manage and style. The worst thing about vue-multiselect is that it uses weird hacks to emulate the input field with multiple values - for example they use a hidden input that becames visible on focus, use  to emulate the placeholder, etc. Re-styling vue-multiselect is  not a trivial task.

@wujekbogdan responded to these tickets and can finish the conversations there. Thank you for the feedback, it's very helpful.

@darrenjennings I've got a feature proposal inspired by a project I'm currently working on.
It would be awesome to have slots and/or render functions for headers & footers in a section config.
My use case is building search autocomplete for a hospital that is grouped into categories. For example if you're searching "Cardiology" you see sections for cardiology services, doctors who are cardiologists, locations that have cardiology services.
Having a "section footer" slot would allow me to insert a link under each section that takes visitors to the results for that specific category (i.e. see all doctors who are cardiologists).
Love using vue-autosuggest. I really appreciate how un-opinionated it is about css / styling.

@joshuapease thanks for the kind words. I like this idea and should be possible via dynamic slots. Added to the list!

Closed by 2.0.0


Enable Wagtail API

Preparation for headless mode.
We need to add more fields as testing goes on but this is enough to get a basic API enabled on the develop site.
This changes nothing about the current frontend - that will continue to work as normal. We can then chose to work on the new frontend without affecting this repository and switch to using it when the time is right.
This PR adds new endpoints:

/api/v2/pages/
/api/v2/images/
/api/v2/media/
/api/v2/page_preview/

Usage is described here: https://docs.wagtail.org/en/stable/advanced_topics/api/v2/usage.html
Pages

All pages: http://localhost:8000/api/v2/pages/
Page details by ID: http://localhost:8000/api/v2/pages/5/
Page details by slug: http://localhost:8000/api/v2/pages/?slug=explore-by-topic
Page details by URI: http://localhost:8000/api/v2/pages/find/?html_path=/explore-the-collection/explore-by-topic/land-and-buildings/ (redirects to page details by ID, currently set up for use by containers with domain of host.docker.internal from WAGTAILAPI_BASE_URL env var)
Page children: http://localhost:8000/api/v2/pages/?child_of=5
Page ancestors: http://localhost:8000/api/v2/pages/?ancestor_of=221

Images

All images: http://localhost:8000/api/v2/images/
Image details: http://localhost:8000/api/v2/images/29/

Media

All media: http://localhost:8000/api/v2/media/
Media details: http://localhost:8000/api/v2/media/9/

Page preview

Draft page preview: http://localhost:8000/api/v2/page_preview/1/?content_type={content_type}&token={token}&format=json (uses a token generated by Wagtail but can be tested within the Wagtail preview pane)

Frontend
The new "head" to this API is available here: https://github.com/nationalarchives/ds-etna-frontend
You should be able to just start the frontend service with docker-compose up -d and everything should be set up to work with this service.
In order for the site to properly work, change the site hostname in Wagtail to localhost and the port to 65535:
http://localhost:8000/admin/sites/edit/2/
Username: admin
Password: admin

I can't run fab pull-staging-data, it gives me this error:

@jamesbiggs - Try
bash/run-dev.sh
poetry run python /app/manage.py migrate - comment this out


I can not connect to the address specified in proxylocal

I was able to connect before. But, for now I can not connect to the address specified in the proxylocal
hosts have any value, and is connected to the "62-76-42-54.clodo.ru"
proxylocal server is running?

It seems something is wrong with proxylocal , a simple connection doesn't even work ... maybe its down

Did you get any update on this? It's stopped working for me too.

+1
It stopped working about a week ago.

Damn. I've moved to https://ngrok.com/ which takes about 2 minutes to get working.


How get the client？

I wonder what this tool does to get the associated AP client

Over the release, it's in the zip.


Ignore some files or directories?

My library includes some vendored code and some generated code which we do not wish to reformat.  I know it's possible to use the path in a matrix to include specific directories. Eg: https://github.com/micahsnyder/clamav-devel/commit/a048ec1db706cdaaecbc5e35567f5cc788e438fa
But can I exclude specific files or subdirectories?

I don't have an exclude input in this Action but it should be pretty straightforward to add. The file discovery happens in this line of the Docker image's entrypoint script, so it would be a matter of

adding the input to action.yml
handing the input to the find command in entrypoint.sh

Some extra work would also have to be done to allow multiple paths to be passed to that input.
I can take a look this weekend, or if you want, you could submit a PR.

Thanks for the quick reply @jidicula
I tried to implement this using a regex: https://github.com/jidicula/clang-format-action/pull/36
I'm not sure that my implementation has the best user experience.  The entrypoint.sh script does seem to work for me, but I haven't tested it within an actual github action because I'm not familiar with how to test it.
I did also update the branch in my project for how I anticipate it will work there: https://github.com/micahsnyder/clamav-devel/blob/github-clang-format-action/.github/workflows/clang-format.yml

Thanks @micahsnyder! I have a private test repo that I use for testing this action - I typically modify one of its workflows, so to test yours, I'll point towards the feature branch of your fork of this repo:
name: clang-format Check
on:
  push:
  workflow_dispatch:
jobs:
  formatting-check:
    name: Formatting Check
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Run clang-format style check for C/C++ programs.
      uses: micahsnyder/clang-format-action@exclude-regex
      with:
        check-path: 'c_test'
        clang_format_version: 11
        exclude-regex: 'capi'

I'll try setting up a test repo that's public so this is a bit more transparent

Resolved in #36

@micahsnyder as promised: https://github.com/jidicula/test-clang-format-action
The action run here points to main on this repo and shows your patch working correctly to exclude the known_fail/capital_C/ directory 🎉

Oh and I almost forgot - thanks for adding documentation for the new input too! It's very clear 😁

Sure, you're welcome.  Thanks for the great github action! 🙂


Add verbiage regarding building with pre-installed libs

Description
We agreed we needed verbiage somewhere about building VisIt with pre-installed/system libs. This is a start of that.
Type of change
Documentation
How Has This Been Tested?
Will have it reviewed when finalized.
Checklist:

[x] I have followed the style guidelines of this project.~~
[ ] I have performed a self-review of my own code.
[ ] I have commented my code where applicable.
[ ] I have updated the release notes.
[x] I have made corresponding changes to the documentation.~~
[ ] I have added debugging support to my changes.
[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] I have confirmed new and existing unit tests pass locally with my changes.
[ ] I have added any new baselines to the repo.
[ ] I have NOT made any changes to protocol or public interfaces in an RC branch.
[x] I have assigned reviewers (see VisIt's PR procedures for more information).~~

@brugger1 and @cyrush here is a doc update we can routinely reference to explain to users why they should not attempt to build from pre-installed libs. Let me know what you think.

pinging @brugger1 and/or @cyrush (about 5-10 min read for doc update).

This looks good @markcmiller86  -- thanks for adding this!

Sorry I pulled the trigger after getting one approval from Eric thinking you are probably busy on other things ;)
Mark
"Cyrus Harrison" wrote:
This looks good @markcmiller86https://urldefense.us/v3/__https:/github.com/markcmiller86__;!!G2kpM7uM-TzIFchu!jfDJ6maOlitQKfNihAkNzvLKRvA6kvevnF4gNHHomJTw5PgP-JFkjR1wwtcS1ouC8w$ -- thanks for adding this!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://urldefense.us/v3/__https:/github.com/visit-dav/visit/pull/5588*issuecomment-812716379__;Iw!!G2kpM7uM-TzIFchu!jfDJ6maOlitQKfNihAkNzvLKRvA6kvevnF4gNHHomJTw5PgP-JFkjR1wwtfVkWWUfQ$, or unsubscribehttps://urldefense.us/v3/__https:/github.com/notifications/unsubscribe-auth/ABLUUZEF457QL7UALEDYIN3TGYW4TANCNFSM42DBM6QA__;!!G2kpM7uM-TzIFchu!jfDJ6maOlitQKfNihAkNzvLKRvA6kvevnF4gNHHomJTw5PgP-JFkjR1wwtdjFqkQ7w$.

No need to wait, I wanted just to make sure to thank you for getting it in!


[FEATURE] new ldap functionality

changes to the accountWizard since 4.14:

a filter dropdown and a column for the source of a possible conflict
TBD
Additional context
LDAP has different levels of integration. all of which are readonly from a cloudstack point of view and which are not distinquished between from the ui at the moment.
Note that the newest, domain level account binding, depends on domain level settings.

@DaanHoogland can you check current Primate and update/advise on this ticket what's missing or needs to be added? Thanks.

ok, @rhtyd I think the two screenprints at the top are the main thing. Doing a full test is sure to give more, but that will take some time, and i'll add tickets for what ever comes up.

Check/refer https://github.com/apache/cloudstack/pull/3694 TBD later cc @davidjumani

With @davidjumani

@davidjumani Primate QA server has a LDAP server now, you can test against that let me know if the requested features are not clear

PR received, tested; will merge PR after final review


SERP Alerts

This is a request for SERP Alert feature.
Considering that an install can be with lots of projects very easy, a SERP Alert feature is helpful.
Nothing complicated, just a way to add a notification in main dashboard and/or send email notifications to users that created the Group when URL increases/decreases position in serp significantly.
As an example, send alert notification if a webpage rankings:

jumps up say 10 positions in serps in top 20 only ( say from position 20 to position 10) = May be good sign of google update on that keyword
jumps down 15 positions in serps in top 20 only ( say from position 7 to position 22) = Sign of deindexation on specific keyword
All above to have setup per each group

yep, it was already on the roadmap :)


[CT-1035] [Feature] dbt deps should take require-dbt-version into account when resolving dependencies

Is this your first time submitting a feature request?

[X] I have read the expectations for open source contributors
[X] I have searched the existing issues, and I could not find an existing issue for this feature
[X] I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion

Describe the feature
Because dbt deps doesn't take require-dbt-version into account when resolving dependencies, package vendors have to ship many more versions of packages to thread the needles of compatibility themselves.
👇 This is a lazy example because I couldn't be bothered installing an old version of dbt Core, but the actual use case is an old Core installation trying to get the newest utils version.
# packages.yml
packages:
  - package: dbt-labs/dbt_utils
    version: "<0.8.0"

Running dbt deps with the above code on dbt Core 1.2.0 works fine, even though utils 0.7.6 has a require-dbt-version of require-dbt-version: [">=0.20.0", "<1.1.0"]. At runtime, we get an error:
  Failed to read package: Runtime Error
    This version of dbt is not supported with the 'dbt_utils' package.
      Installed version of dbt: =1.2.0
      Required version of dbt for 'dbt_utils': ['>=0.20.0', '<1.1.0']
    Check for a different version of the 'dbt_utils' package, or run dbt again with --no-version-check

(Please assume that dbt utils 0.9.0 is already out and requires dbt Core 1.2 or above)
As the maintainer of a package like dbt-audit-helper, I'd like to be able to change my utils dependency from [">=0.8.0", "<0.9.0"] to [">=0.8.0", "<1.0.0"]. Then, I would like people whose packages.yml looks like this:
# packages.yml
packages:
  - package: dbt-labs/audit_helper
    version: [">=0.5.0", "<0.6.0"]

to get the correct version of dbt utils for their Core version: utils 0.8.latest for Core 1.0 or 1.2, and 0.9.latest for 1.2 and above.
Describe alternatives you've considered
Releasing a new version of audit helper which only allows utils 0.9.x. As an end user this is a problem because it means that every package that I depend on has to update at the same time, or I am trapped on an older version for longer.
Doing a lot more backwards compatibility work in dbt utils so that 0.9 can also work with any Core 1.x version. This would solve the most pressing issue but I imagine that similar issues will arise in the future, especially as we get to utils 1.0 and beyond which might need to start taking advantage of new functionality added in minor versions of Core, but we want to have wide open dependency ranges to minimise thrash in the ecosystem.
Who will this benefit?
Package installers and vendors
Are you interested in contributing this feature?

Anything else?
No response

@joellabes Yes. I think the time has finally come: https://github.com/dbt-labs/dbt-core/pull/5651


Unknown binaries doesn't throw error

When I use command that doesn't exist the command is simply ignored and I don't have a message to say something like command not found. I know this is a small things but I put here to the record ^^

Nsh, the command-line used in NodeOS is on the verge of being updated, but when I last checked a bug in NodeJS was stalling it's progress. I'm not sure if it's been resolved yet. @piranna will have more info on the status of it

Nsh, the command-line used in NodeOS is on the verge of being updated, but when I last checked a bug in NodeJS was stalling it's progress. I'm not sure if it's been resolved yet. @piranna will have more info on the status of it

It seems it will be delayed a long time... I'm thinking about finding some workaround for this, but lately I don't have time for almost anything :-(

@piranna where is the Bug i could look into it

@piranna where is the Bug i could look into it

https://github.com/nodejs/node/issues/5574

@piranna if i understand this correct you want to issue a command like nano and want to keep the process.stdin and duplicate it through the file descriptor for other commands.
This is a whole new level for me :D

It's never too late to start learning ;-)
El 25/5/2016 20:04, "Philipp Czarnetzki"<EMAIL_ADDRESS>escribió:

@piranna https://github.com/piranna if i understand this correct you
want to issue a command like nano and want to keep the process.stdin and
duplicate it through the file descriptor for other commands.
This is a whole new level for me :D
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/NodeOS/NodeOS/issues/237#issuecomment-221656145

But is my assumption correct?

Yes, this is a low level bug on Node.js regarding management of tty
streams. I did it so easily on C some years ago, but this is Javascript.
El 25/5/2016 20:20, "Philipp Czarnetzki"<EMAIL_ADDRESS>escribió:

But is my assumption correct?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/NodeOS/NodeOS/issues/237#issuecomment-221661545

Maybe this is an alternative: pty
Create and use a pseudo-tty via the pty module. This allows you to create a "fake" tty that allows you to run programs like sudo without actually hooking them up to a real tty. The benefit to this is that you can programmatically control/access stdin/stdout/stderr.

Yes, pty.js is an alternative... but it also has a bug where when using
process.stdin on pty.open() (we can't use pty.spawn() because we are not
using a single command), so it's not an option :-(
El 26/5/2016 9:36, "Philipp Czarnetzki"<EMAIL_ADDRESS>escribió:

Maybe this is an alternative: pty https://github.com/chjj/pty.js
Create and use a pseudo-tty via the pty module. This allows you to create
a "fake" tty that allows you to run programs like sudo without actually
hooking them up to a real tty. The benefit to this is that you can
programmatically control/access stdin/stdout/stderr.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/NodeOS/NodeOS/issues/237#issuecomment-221798954

Anyway it's good to see your suggestion, it shows you are starting to think as an OS developer ;-)

@piranna Would you mind to give me more information how nsh should work?
Why does it need tty? Does it really need multiple stdin's?
We could also use this information in the docs

@piranna Would you mind to give me more information how nsh should work?

New nsh generate an AST tree from the bash source code and later walk and interpret it by creating pipe()able objects, also the external commands (as Transform streams). The tty is needed to create new ReadStream and WriteStream objects (the same ones used by the REPL)


Github task documentation seems out of date

The task described in this documentation is around version 0, but the latest task version is 1

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

ID: 3b12d2c4-f871-1d14-0c16-91e58fb1130b
Version Independent ID: 6b9e1d67-f303-7445-e573-830309ba49a4
Content: GitHub Release task - Azure Pipelines
Content Source: docs/pipelines/tasks/utility/github-release.md
Product: devops
Technology: devops-cicd-tasks
GitHub Login: @vijayma
Microsoft Alias: vijayma

Thanks for letting us know. This issue is fixed in our new task reference, which is generated using the task source code and includes all task inputs, including any aliases here:
https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/github-release-v1?view=azure-pipelines
Please check it out and let us know what you think. Thank you.


Keep-alive for Free tier Azure Web Jobs

An option to make sure that free tier Azure Web Jobs are kept alive and
not shut down.

Hi Wictor,
valid case and does solve the challenge. I'll run this through with Azure CAT to see if there's any other way to get this "fixed", so that we can have a pattern as default model for web jobs.

If you run it with the CAT team they prolly make sure it doesn't work anymore...

Azure has following noted in their documentation - "Web apps in Free mode can time out after 20 minutes if there are no requests to the scm (deployment) site and the web app's portal is not open in Azure. Requests to the actual site will not reset this.". at https://azure.microsoft.com/en-us/documentation/articles/web-sites-create-web-jobs/
Now the key question is that if we do workaround for this and automate the requests to scm, is this sustainable model for the future or not? - Hunting still down right contact for this, but could be falling into grey area. Stack Overflow shows nicely the demand for this, so trying to get official answer rather than guessing on something which might go away in next weeks.

I tried multiple ways…like every way I could think of to do keep alives of free web sites to take advantage of web jobs in free azure sites.  In every case azure was “smart enough” to realize that it was not a “real user” (probably related to the client IP, since all my work arounds also ran in Azure) and so none of them kept the site alive.  After spending considerable time on this I finally abandoned this approach and moved to one of the paid tiers of Azure web sites to one that was always alive.  And then for other reasons ultimately moved it out of web jobs altogether and back to where this code really should run, which is a cloud worker role.
I think it’s popular because most people see it the same way I did – as a possible free alternative to a typically expensive resource, the cloud worker role.
My $.02.
Steve
From: Vesa Juvonen<EMAIL_ADDRESS>Sent: Wednesday, December 02, 2015 5:19 AM
To: OfficeDev/PnP<EMAIL_ADDRESS>Subject: Re: [PnP] Keep-alive for Free tier Azure Web Jobs (#1231)
Azure has following noted in their documentation - "Web apps in Free mode can time out after 20 minutes if there are no requests to the scm (deployment) site and the web app's portal is not open in Azure. Requests to the actual site will not reset this.". at https://azure.microsoft.com/en-us/documentation/articles/web-sites-create-web-jobs/
Now the key question is that if we do workaround for this and automate the requests to scm, is this sustainable model for the future or not? - Hunting still down right contact for this, but could be falling into grey area. Stack Overflow shows nicely the demand for this, so trying to get official answer rather than guessing on something which might go away in next weeks.
—
Reply to this email directly or view it on GitHubhttps://github.com/OfficeDev/PnP/pull/1231#issuecomment-161287577.

This is interesting. Seems like they did something on the 24th of November to prevent this! Logs shows that everything worked up until then as expected. Need to look into this further...

Thanks Steve for sharing that and not that surprised on the fact that it would be now blocked. Let's keep this PR open for now if Wictor will test things still, but sounds like this isn't the right solution for now.

Just to process this, let's close this for now. We can re-open the PR if needed later or submit a new one if there's alternative way to do this.

An update: it seems to work now, so we're not being blocked doing this, but there's no guarantee. And the documentation actually says "Web apps in Free mode can time out after 20 minutes", notice "can".

Since the wording is indeed "can" and we cannot rely on the model, would not get this included in the default sample. It would not be anyway suitable model for any mid-sized or enterprise deployment, even though it would save few bucks from developers.


Nested trackers are incorrectly invalidated

According to the documentation

When there are nested autoruns, dependencies accrue to the innermost enclosing autorun.

But, when I have several nested containers, and the last one is invalidated, the computation is re-run from the top-most one.
Example:
<ContainerA>
  <ContainerB>
    <ContainerC />
  </ContainerB>
<ContainerC>

In container C, I create an object that implements Tracker.Dependency and then I invalidate this object. But the recomputation starts from ContainerA, not C ;(
Is this a bug in the tracker komposer? Here is an example:
// container
import {
  useDeps, composeWithTracker, composeAll
} from 'mantra-core';
import Component from '../components/component.jsx';

let index = 0;

class Model {
  constructor(text) {
    this.dep = new Tracker.Dependency();
    this._text = text + index++;
  }

  get text() {
    this.dep.depend();
    return this._text;
  }

  click() {
    this.dep.changed();
  }
}

export const composer = ({context, text}, onData) => {
  let model = new Model('Text');
  onData(null, {model});
};

export default composeAll(
  composeWithTracker(composer),
  useDeps()
)(Component);

// component
import React from 'react';

class MyComponent extends React.Component {
  click() {
    this.props.model.click();
  }

  render() {
    return (

        {this.props.model.text}
        <button onClick={this.click.bind(this)}>Click</button>

        {this.props.children}

    );
  }
}

export default MyComponent;

Usage
import React from 'react';
import Container from '../containers/container';

const Comp = () => (

    <Container><Container><Container></Container></Container></Container>

);

export default Comp;

When you click on any button, all three components are invalidated, not only from the current one below. Is this a bug or a feature?

And just to further describe my point. This works correctly. mc.click() invalidates only the last one. Model is ised from the previous example.
var ma = new Model("a");
  var mb = new Model("b");
  var mc = new Model("c");

  var a = Tracker.autorun(function () {
    console.log(ma.text);
    var b = Tracker.autorun(function () {
      console.log(mb.text);
      var c = Tracker.autorun(function () {
        console.log(mc.text);
      });
    });
  });

  mc.click();

Am already two days with the issue and no solution. Things got even weirder. Of course the nested invalidation does not work, but I managed to get invalidate only one of the components by using reactivedict. It never worked with Tracker.Dependency or ReactiveVar as they both invalidate the topmost context.
Please, any take on this thing? Thanks.

@arunoda do you have any take on this? I think it is a serious flaw and it renders the Mantra chain to be usable only on "simple" projects. What I found out, is that composeWithTracker works correctly only with trackers that are instantiated "externally", such as Session, local storage from context e.t.c. Any Tracker that get instantiated inside the composed container invalidates the root! context and forces redraw of ALL components. This tackles any Tracker.Dependency (as in the example), Reactive variable or dictionary. This makes it very difficult to create custom components based on Tracker.
For example: I have a simple tab control, that re-renders, when you click on a tab. Simple, right? You just put the index of current tab to the local storage and when it changes it re-renders the interface. Well, for such simple case it works. BUT I am rendering several of such tab controls and I need each and every one of them to maintain state. The easiest Meteor-like way is through Tracker.Dependency which is instantiated in a "model" of the tab control (similar to one above). But, since the flaw in the composer, when the user clicks on a new tab, it invalidates the root context, re-draws the whole interface and tab never gets changed.
Would you please let me know? I need to know if I should stick with Stateful React components for now. Unfortunately, I do not have a constructive solution.

I HAVE BEEN BLIND BUT NOW I SEE
I am pretty sure you were not responding in order for me to realise how far my head is up my ... ;) After three days of torturing myself with Trackers I have read and explored the documentation to the Tracker and realised its full and utterly ingenious potential. My thinking was stuck with trackers as the only source of reactivity ... but Komposer opens a way new and ultimately controlled way of updating page.
Here is a full and working example that replaces previous Tracker with Komposer functionality:
let index = 0;

class Model {
  onData: any
  _text: string;

  constructor(text: string, onData: any) {
    this._text = text + index++;
    this.onData = onData;
  }

  get text() {
    return this._text;
  }

  click() {
    this._text += this._text;
    this.onData(null, { model: this });
  }
}

interface IProps {
  context?: () => IContext;
}

export const composeModel: IKomposer = ({context}: IProps1, onData: IKomposerData<IComponentProps>) => {
  let model = new Model('Text', onData);
  onData(null, {model});
  return null;
};

export default composeAll<IProps>(
  compose(composeModel),
  useDeps()
)(Component);


Undefined offset 0 during installation

For some reason, a word key array gets passed to format_fields which causes
an Undefined offset 0 error.
The quick fix was to convert the word keys to integers with the following snippet located in format_fields for loop.
			if(!array_key_exists('0', $field)){
				$i = 0;
				foreach($field as $key => $f){
						$field[$i] = $f;
						unset($field[$key]);
						$i++;
				}
			}

I see that code has been written to handle this in https://github.com/Sohail05/laraadmin/blob/master/src/Models/Module.php#L794 .
Probably need to wait for an update on packagist. I'll handle it manually for now.


Not leaving the while loop (connecting)

I am trying the MKR1000 lwMQTT example.
I created everything in the GCP following the commands in README.md, and added the correct values in ciotc_config.h.
The board connects to wifi, is refreshing the JWT, but doesn't exit the while loop after the "connecting" message.
The loop returns "0" for both, the lastError and returnCode.
I also printed the returned jwt before the lastError and returnCode, and it looks correct.
There are no logs in the GCP's Stackdrive.
I don't understand why the device doesn't connect.

Got it.
I managed to connect.
I missed the step you recommended in the end of the ciotc_config.h:
// TODO(you): Install root certificate to verify tls connection as described
// in https://www.hackster.io/arichetta/add-ssl-certificates-to-mkr1000-93c89d
I didn't perform it, because I didn't know for what server I need the certificate. I found the server after you posted the issue #61: mqtt.googleapis.com.
After updating the firmware with the missing certificate, it connects.
Probably this needs to be emphasized in the instructions. Thank you.

Happy you found the solution, I'll think about ways we can make the instruction more clear 👍


negative values in output coordinates left_x, top_y, width, height

Hey everyone,
I trained the YOLO network by following all the steps from the link
https://github.com/AlexeyAB/darknet#how-to-train-to-detect-your-custom-objects
What is the meaning of negative values in the output coordinates that we get when we run the command:
darknet.exe detector test cfg/coco.data yolov4.cfg yolov4.weights -ext_output dog.jpg
The predictions on my test images were good and the bounding boxes drawn on the prediction.jpg were correct. But some of the values I got were:
left_x:   74   top_y:   -5   width:   92   height:  167
left_x:   -1   top_y:   47   width:   35   height:  119
left_x:  248   top_y:   -8   width:   77   height:  159
left_x:  336   top_y:   -1   width:   60   height:  144
Is my understanding on the coordinates correct?
left_x = top left x coordinate of bounding box
top_y = top left y coordinate of bounding box
width = with of bounding box
height = height of bounding box
Thank you!

Hi,
I got the following link only. Have you found your answer?
https://github.com/eriklindernoren/PyTorch-YOLOv3/issues/30


Licence key masking

Option to unmask the licence key within the report.

https://github.com/tpcarman/Documentation-Scripts/commit/858ee4ef53d476dd9050803dca8ac0e928dd2722


[BUG] latex: tex2svg might not be installed

Describe the bug
Unable to use LaTeX, because Julia can't find tex2svg when running it with "open". This is despite of the fact that I installed the required node module with
npm install -g mathjax-node-cli
and ensured that the relevant location (AppData\Roaming\npm) is in PATH. tex2svg works fine from cmd and Powershell from any directory.
To Reproduce

Julia Version (i.e. output of julia -v): 1.6.2

Operating system (Mac, Linux, Windows): Windows 10

Javis version (i.e output of ] status Javis in the REPL): 0.6.0

Minimum working code example that led to bug: v 0.6.0

Expected Behavior and Actual Behavior
Should render latex correctly and find the tex2svg program, as it is in PATH. Instead fails with a long stack trace.
Stacktrace (If Applicable)
`┌ Warning: Using LaTeX needs the program `tex2svg` which might not be installed
└ @ Javis C:\Users\USER\.julia\packages\Javis\FLdWO\src\latex.jl:151
[ Info: It can be installed using `npm install -g mathjax-node-cli`
ERROR: LoadError: IOError: could not spawn `tex2svg '\begin{equation}
\left[\begin{array}{cc}
2 & 3 \\  4 & \sqrt{5} \\
\end{array} \right]
\end{equation}'`: no such file or directory (ENOENT)
Stacktrace:
  [1] get_latex_svg(text::LaTeXString)
    @ Javis C:\Users\USER\.julia\packages\Javis\FLdWO\src\latex.jl:153
  [2] animate_latex(text::LaTeXString, pos::Point, t::Float64, valign::Symbol, halign::Symbol, object::Symbol)
    @ Javis C:\Users\USER\.julia\packages\Javis\FLdWO\src\latex.jl:85
  [3] latex(text::LaTeXString, pos::Point, draw_object::Symbol; valign::Symbol, halign::Symbol)
    @ Javis C:\Users\USER\.julia\packages\Javis\FLdWO\src\latex.jl:81
  [4] latex
    @ C:\Users\USER\.julia\packages\Javis\FLdWO\src\latex.jl:6 [inlined]
  [5] draw_latex(video::Video, action::Object, frame::Int64)
    @ Main C:\Users\USER\Documents\Fysiikka\latex.jl:13
  [6] draw_object(object::Object, video::Video, frame::Int64, origin_matrix::Matrix{Float64}, layer_frames::Nothing)
    @ Javis C:\Users\USER\.julia\packages\Javis\FLdWO\src\Javis.jl:607
  [7] macro expansion
    @ C:\Users\USER\.julia\packages\Javis\FLdWO\src\Javis.jl:363 [inlined]
  [8] macro expansion
    @ C:\Users\USER\.julia\packages\Luxor\XHa4Y\src\basics.jl:520 [inlined]
  [9] render_objects(objects::Vector{Javis.AbstractObject}, video::Video, frame::Int64; layer_frames::Nothing)
    @ Javis C:\Users\USER\.julia\packages\Javis\FLdWO\src\Javis.jl:362
 [10] render_objects
    @ C:\Users\USER\.julia\packages\Javis\FLdWO\src\Javis.jl:335 [inlined]
 [11] get_javis_frame(video::Video, objects::Vector{Javis.AbstractObject}, frame::Int64; layers::Vector{Javis.AbstractObject})
    @ Javis C:\Users\USER\.julia\packages\Javis\FLdWO\src\Javis.jl:550
 [12] macro expansion
    @ C:\Users\USER\.julia\packages\Javis\FLdWO\src\Javis.jl:278 [inlined]
 [13] macro expansion
    @ C:\Users\USER\.julia\packages\ProgressMeter\Vf8un\src\ProgressMeter.jl:940 [inlined]
 [14] render(video::Video; framerate::Int64, pathname::String, liveview::Bool, streamconfig::Nothing, tempdirectory::String, ffmpeg_loglevel::String)
    @ Javis C:\Users\USER\.julia\packages\Javis\FLdWO\src\Javis.jl:277
 [15] top-level scope
    @ C:\Users\USER\Documents\Fysiikka\latex.jl:28
in expression starting at C:\Users\USER\Documents\Fysiikka\latex.jl:28

caused by:
IOError: could not spawn `tex2svg '\begin{equation}
\left[\begin{array}{cc}
2 & 3 \\  4 & \sqrt{5} \\
\end{array} \right]
\end{equation}'`: no such file or directory (ENOENT)
Stacktrace:
  [1] _spawn_primitive(file::String, cmd::Cmd, stdio::Vector{Any})
    @ Base .\process.jl:99
  [2] #637
    @ .\process.jl:112 [inlined]
  [3] setup_stdios(f::Base.var"#637#638"{Cmd}, stdios::Vector{Any})
    @ Base .\process.jl:196
  [4] _spawn
    @ .\process.jl:111 [inlined]
  [5] open(cmds::Cmd, stdio::Base.DevNull; write::Bool, read::Bool)
    @ Base .\process.jl:370
  [6] open
    @ .\process.jl:361 [inlined]
  [7] open(cmds::Cmd, mode::String, stdio::Base.DevNull)
    @ Base .\process.jl:341
  [8] read(cmd::Cmd)
    @ Base .\process.jl:410
  [9] read(cmd::Cmd, #unused#::Type{String})
    @ Base .\process.jl:421
 [10] get_latex_svg(text::LaTeXString)
    @ Javis C:\Users\USER\.julia\packages\Javis\FLdWO\src\latex.jl:149
 [11] animate_latex(text::LaTeXString, pos::Point, t::Float64, valign::Symbol, halign::Symbol, object::Symbol)
    @ Javis C:\Users\USER\.julia\packages\Javis\FLdWO\src\latex.jl:85
 [12] latex(text::LaTeXString, pos::Point, draw_object::Symbol; valign::Symbol, halign::Symbol)
    @ Javis C:\Users\USER\.julia\packages\Javis\FLdWO\src\latex.jl:81
 [13] latex
    @ C:\Users\USER\.julia\packages\Javis\FLdWO\src\latex.jl:6 [inlined]
 [14] draw_latex(video::Video, action::Object, frame::Int64)
    @ Main C:\Users\USER\Documents\Fysiikka\latex.jl:13
 [15] draw_object(object::Object, video::Video, frame::Int64, origin_matrix::Matrix{Float64}, layer_frames::Nothing)
    @ Javis C:\Users\USER\.julia\packages\Javis\FLdWO\src\Javis.jl:607
 [16] macro expansion
    @ C:\Users\USER\.julia\packages\Javis\FLdWO\src\Javis.jl:363 [inlined]
 [17] macro expansion
    @ C:\Users\USER\.julia\packages\Luxor\XHa4Y\src\basics.jl:520 [inlined]
 [18] render_objects(objects::Vector{Javis.AbstractObject}, video::Video, frame::Int64; layer_frames::Nothing)
    @ Javis C:\Users\USER\.julia\packages\Javis\FLdWO\src\Javis.jl:362
 [19] render_objects
    @ C:\Users\USER\.julia\packages\Javis\FLdWO\src\Javis.jl:335 [inlined]
 [20] get_javis_frame(video::Video, objects::Vector{Javis.AbstractObject}, frame::Int64; layers::Vector{Javis.AbstractObject})
    @ Javis C:\Users\USER\.julia\packages\Javis\FLdWO\src\Javis.jl:550
 [21] macro expansion
    @ C:\Users\USER\.julia\packages\Javis\FLdWO\src\Javis.jl:278 [inlined]
 [22] macro expansion
    @ C:\Users\USER\.julia\packages\ProgressMeter\Vf8un\src\ProgressMeter.jl:940 [inlined]
 [23] render(video::Video; framerate::Int64, pathname::String, liveview::Bool, streamconfig::Nothing, tempdirectory::String, ffmpeg_loglevel::String)
    @ Javis C:\Users\USER\.julia\packages\Javis\FLdWO\src\Javis.jl:277
 [24] top-level scope
    @ C:\Users\USER\Documents\Fysiikka\latex.jl:28`

Additional context
I should add that the rest of Javis seems to be working fine, only the LaTeX support doesn't work. Also, this problem seems to persist when trying to use 'run' from REPL, so problem might be that my Julia install is somehow configured.
Decided to post this as an issue anyway, because Javis depends on tex2svg, and I just did a clean Julia, npm and Javis install from scratch. So doing this the obvious way didn't lead to a working Javis for me.
If anyone has any ideas, greatly appreciated :)

Thanks for opening the issue. If I understand your additional context correctly running tex2svg from the Julia command line also doesn't work? Then I suppose it is kind of a path problem. I'll ask around if anyone can replicate this using windows as I don't have a machine to test this on.

Thanks for opening the issue. If I understand your additional context correctly running tex2svg from the Julia command line also doesn't work? Then I suppose it is kind of a path problem. I'll ask around if anyone can replicate this using windows as I don't have a machine to test this on.

Yeah, that's right. I don't understand why, though, as the relevant np dir is in both the system and user path variables, so it should work. It does work correctly in powershell.

Some additional info: I can run other programs, like say git, from Julia REPL with run or open. Git is in the path variable in exactly same way as the node modules.

Do you mind running Sys.which("tex2svg") in Julia and post the result here?

Doesn't give anything in return, empty string. By contrast, e.g. Sys.which("git") does give the right path. Powershell's Get-Command tex2svg returns "C:\Users\USER\AppData\Roaming\npm\tex2svg.ps1", which is what I'd expect.

Actually, I just noticed something interesting. Doing run(tex2svg.cmd) or Sys.which("tex2svg.cmd") actually works. Doing run(tex2svg.ps1) doesn't, but it does find tex2svg.ps1, so probably it's a matter of not spawning a powershell process. Basically, tex2svg doesn't work because run and open don't spawn any process capable of handling those files on Windows. Even if I have set a default program for .ps1 files, for instance, run and open don't open the relevant process for handling those files.
If I simply change latex.jl in the sources to instead of tex2svg just call tex2svg.cmd, that produces a different error: this time, there's supposedly no \end{equation}:
`TeX parse error: Missing \end{equation}
Entity: line 1: parser error : Document is empty
^
ERROR: LoadError: LightXML.XMLParseError{String}("Failure in parsing an XML file.")
Stacktrace: `
Anyway it's probably not ideal to have to change the sources like this to work on Windows.

Hey @arunningcroc - just to give you a heads-up, we are actively trying to pinpoint the problem but as @Wikunia and I do not have  access to computers running Windows, a friend (thanks so much @Ved-Mahajan !) is helping us track down what this issue is on their Windows computer. As of now, it is interesting to note that up until now, Windows has not had this problem with Javis that we are aware of. Stay tuned for updates!

Any progress? I could make none :)

Does the solution described in #420 help?

@Wikunia It produces the same Tex parsing error as my solution of changing "tex2svg" to "tex2svg.cmd", the one I described in  this comment. In fact, I think that solution and #420 do the exact same thing, as Windows knows to spawn a cmd process when confronted with a .cmd file.
What I didn't notice before, though, is that only the tutorial seems to be failing for me, it produces the tex parser error above. But if I try with some other Latex, like:
\begin{bmatrix}0 & 1 \\ 1 & 0\end{bmatrix}
it seems to work just fine, which I completely missed previously. So kudos to @gpucce for making me try this again. I'll ask @gpucce in #420 if they can get the tutorial working.

Yeah it seems to me that the windows version has some problems with multiline?

Can you verify this when using the multiline string from the tutorial inside L"""...""" and put it into a single line `L".."?

I was trying to fix and the one line solution together with the cmd /C tex2svg switch does fix it for me

Awesome yeah then we probably just need a split on new line and a join to make it one line and check whether it's a Windows system. Wanna make the PR @gpucce ?

@Wikunia Yep, one line does the trick.. but I am curious about the reason why Windows doesn't like multiline strings in this instance. I tested a few things, including attempting to spawn a powershell and changing line endings from CRLF to LF, but no luck.
Guess it's a waste of time to wonder about that given the easy solution.

I also have no clue about that but if we can workaround that I'm already quite happy to be honest 😊

I think it works at least for tutorial 4 it does I can make the PR though I don't know if there are tests for the latex part

There aren't yet for that part but a PR would be awesome then I can test it on Linux whether it destroys something. ☺

On it way!


clientv3.New() fails when invoked concurrently

clientv3.New() returns Endpoint already exists error when it is invoked in multiple goroutines at the same time.
This Gist code can reproduce errors.
This runs with the latest master branch (commit 2921ab6) of etcd.
$ go build concurrent_new.go
$ for ((i=0; i<1000; i++)) do ./concurrent_new; done
Endpoint already exists for id: client-bntl5iu0z2ns
Endpoint already exists for id: client-bntl5iu1e4v8
:

I faced this type of error in go test, where many goroutines start etcd connections concurrently.
In clientv3/client.go, newClient() constructs a client ID with time.Now().UnixNano().
https://github.com/coreos/etcd/blob/master/clientv3/client.go#L479
This timestamp is not provided with high-resolution in some environment, and 2 calls of time.Now() can return the same value.
For example, my Ubuntu 16.04 VM on Hyper-V/Win8.1 provides the timestamp in steps of 100 ns.
If the client ID does not need much complexity, it is enough to take ID from a counter with a mutex lock.

/cc @jpbetz

@morimoto-cybozu Which version (or git hash) of the etcd client are you using?

@jpbetz
I'm using commit 2921ab6

This is almost certainly an issue with the client load balancer rewrite. I'll own getting this fixed.

any updates for this issue?

Working on this today

Switching to a uuid library, will submit a PR shortly


Release v0.1

@evert after https://github.com/evert/davclient.js/pull/21 is merged, would be good to tag a release as v0.1 or so.
We are now using bower to pull dependencies in owncloud core and it's better to point to an actual tag than a commit id: https://github.com/owncloud/core/blob/master/bower.json#L31

Let me know if you agree with this and I'll push a v0.1 tag

Yep totally!

Make the tag 0.0.1 to be consistent with semver

https://github.com/evert/davclient.js/tree/0.0.1


Registration e-mail text cannot be edited

http://snag.gy/hlwo2.jpg
This should definitely be editable here.
Also, the subject input is way too small, width: 100% would be much better and more suitable to most people.

Strange, you are experiencing similar issue to #347
Do you use Nginx?

No, I used the built-in PHP server.

Wow i didnt event knew it works under the built-in php  server
Can you paste the command you use to start it.

php -S localhost:8080 (or w/e other port you want)

Dude WHY? :laughing: You won't be able to serve Microweber like this, you need a bit more advanced server for that.

Dude, to test it out!

i will take a look and try to fix it.
in meantime you cant test at http://demo.microweber.org

Sorry, it's cool you're trying but I don't think it's wise. That thing is not reliable.

Ok, thx :)
I also noticed a weird thing - when you're running it from the built-in server, you can not view the website in non-live edit mode without logging out of your admin account.
If you click on "View Website" in the Live edit menu, it redirects you to about:blank.
Perhaps some $_SERVER variables are missing, although that shouldn't be the case since you should be using relative URLs anyway.

@ash-rain sorry, I don't really care. "That thing" can run all the sites I've had to work with.

Possibly there are even more issues. It may be worth looking into, but don't rely on support for now. You can pick any of the options we've listed in the docs - IIS, nginx and Apache are generally supported.
It's totally up to you what technology stack you use, I'm just saying we haven't considered it for testing so far and you should be prepared for surprises if you go with the built-in server.
Cheers

there are more issues yes. the image upload, etc

do you know if the build in server reads the htaccess by some means.... i am surpised that the url rewrite works to some extent

@ash-rain That's better. Thanks!
@peter-mw ah yeah, it doesn't read .htaccess... But then again, neither does nginx.
Well, I guess I'll have to try on Apache then.

i found the bug, its because of the port 8080, fixing it now

lolwhat? For real?

I may have fixed it
Can you update your install
Just replace the "src" folder with the one from the zip https://github.com/microweber/dist/raw/master/microweber-update.zip

@jurchiks let me know if it works
i am pleasantry surprised that it works on the build in server it seems its pretty fast

Yep, works :)

Hmm, weird thing: I opened checkout and am trying to edit the custom fields, but they don't actually seem to save.
To be exact:

the Personal Information block does not even show any Settings options at all
when I open the Settings panel for Address, which is a custom field, and uncheck State/Province, then close the dialog - the content does not update, and refreshing the page doesn't do it either. I open up the same Settings panel again, and the State/Province is unchecked, but it is still shown.
The AJAX request definitely does not include the state field, so I believe it could be that the backend does not check for fields that exist in database but don't exist in the request options list.

i see it, yes can you open separate issue


[WIP] Parse Typescript definition to get basic type information for decorators

This is a work in progress, lots of things probably will need to be moved around. There also seems to be a massive performance problem as it is right now, editor is much slower

TODO:

[ ] Check performance issue
[ ] Create ts compiler host using Cadl host
[ ] Implement spread
[ ] Include types for projection functions?
[ ] Remove the create decoratorDefinition helper and only use internally. Maybe replace with a manual setDecoratorSignature(fn: Funciton, signature: Decoratorsignature)

It looks like we're probably creating the TS compiler host from scratch on each keypress. Decent performance can likely be gained fairly trivially (tm)  by caching the compiler instance re-using existing source files when they are unchanged.

The other thing seems to be the in the TS CompilerHost API everything seems sync which is incompatible with our CompilerHost using async

@timotheeguerin What do we need to do to make progress on this PR?  Or should we close it?

@timotheeguerin What do we need to do to make progress on this PR? Or should we close it?

Was going to talke about this PR during the design meeting and the issues with it.

Closing as this is not going to be the approach we go with moving forward


电池外形

请问所用到的电池包是圆柱、软包还是铝壳形状啊？

铝壳电池

Zhongwei Deng    Associate Professor
School of Mechanical and Electrical Engineering,
University of Electronic Science and Technology of China,
No.2006, Xiyuan Ave, West Hi-Tech Zone, Chengdu, 611731, China
E-mail: @.; @.
https://scholar.google.com.hk/citations?user=aL1sCI4AAAAJ&hl=zh-EN
https://faculty.uestc.edu.cn/dengzhongwei
发件人： username7010 @.>
发送时间： 2023-06-23 14:47
收件人： TengMichael/battery-charging-data-of-on-road-electric-vehicles
@.>
抄送： Subscribed @.***>
主题： [TengMichael/battery-charging-data-of-on-road-electric-vehicles] 电池外形
(Issue #3)
请问所用到的电池包是圆柱、软包还是铝壳形状啊？
—
Reply to this email directly, view it on GitHub
https://github.com/TengMichael/battery-charging-data-of-on-road-electric-vehicles/issues/3,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKVYECIQZNOMOB2GQDY2UGLXMU3WJANCNFSM6AAAAAAZRE5ES4
.
You are receiving this because you are subscribed to this thread.Message
ID: <TengMichael/battery-charging-data-of-on-road-electric-vehicles/issues/3
@github.com>


Organization of Meeting Summaries

https://app.dework.xyz/singularitynet-ambas/africa-guild?taskId=8b37647a-5ab9-44e2-b637-0cbe9e3b4c08

https://drive.google.com/drive/folders/14AQ5tTYu-ghd0Zz74qpja6tlbwRWCU2N


Control the heating circuit of the DeltaSol MX in VIS

I would like to control the heating circuit of the MX controller in the VIS. What should the command in the deltasol-mx.js look like to integrate the heating circuit in the objects?
Regards
Frank

There is a discussion on this topic in the german ioBroker forum.
Is this directly related to trhis issue? Or in other words: Is this you asking and testing in the forum?

Yes, I am in contact with Gargano in the forum.


Fix missing "in" typo

Note to Hacktoberfest 🎃 participants:
While we appreciate the enthusiasm, we are experiencing a high volume of drive-by pull requests (one-line changes, README tweaks, etc.). Please remember that hundreds of people are subscribed to this repo and will receive notifications for these PRs. Spam submissions will be closed and won't count towards your Hacktoberfest goals.
Please search for issues tagged good first issue or hacktoberfest to find things to work on.
You can also search all of GitHub.

@snsie thanks!


Bug (Tracer): Lambda function not tracing the code

Bug description
Tracer not capturing the annotations and metadata inside lambda function, However it does capture the top level lambda traces.

Expected Behavior
Trace metadata, annotations inside my lambda function.

Current Behavior
Currently only top level lambda traces are captured.

Environment

Powertools version used: 0.7.2
Packaging format (Layers, npm): Yarn
AWS Lambda function runtime:  NODEJS_14_X
Debugging logs:

Related issues, RFCs

Could you please provide a minimal example of your function code to reproduce the issue? I'm interested especially in seeing how you have instrumented the function.

@apaidipa (also AWS employee) shared the code privately as it was close source and could not be shared publicly.
I was able to troubleshoot the issue and conclude that it was not in fact, a bug of Tracer but rather an issue with the implementation.
To benefit future readers, this particular implementation was using manual instrumentation. When closing the subsegment, it had a conditional statement that checks whether the subsegment is already closed:
if (subsegment && !subsegment.isClosed) { // <- DO NOT COPY THIS, THIS WON'T WORK, KEEP READING
  subsegment.close();
}

the code above should have been instead:
if (subsegment && !subsegment.isClosed()) { // <- subsegment.isClosed() is a function that returns a boolean value
  subsegment.close();
}

Closing the issue as resolved.


Access apiKey instance from Controller

I am trying to retrieve user details from a controller using:
$this->apiKey->user_id
but I keep getting

Trying to get property of non-object

The controller class is extending ApiGuardController correctly and the authorization middleware perfectly works.

I had the same issue and solved it by following the Muya's Blog.
I also changed the apiguard.php file according to the  api-guard/config/apiguard.php of this repo.
Finally access the user using: $user = Auth::user();
Hope, it will solve your issue too.

Not working at all, the "dev" branch has still lots of issues to be solved.

One more thing I did was to extend the User model with Authenticatable.
After performing above steps, did you get the same error or any other?

The dev branch has a way too many errors to be used, still relying on methods from 5.1 and incompatible methods. Anyway, since Laravel 5.2 ships with api authentication middleware, I decided to drop this buggy package.


Nutx3.6.0 install failed,Error: Expected "0.18.7" but got "0.17.19"

Environment
- Operating System: macos
- Node Version: v18.16.1
- Nuxt Version: 3.6.0
- Nitro Version:
- Package Manager<EMAIL_ADDRESS>- Builder: vite
- User Config:
- Runtime Modules:
- Build Modules: -

Reproduction
I encountered an error while following the instructions in the documentation. After executing the command,
the installation failed.

npx nuxi@latest init bcm
cd bcm
pnpm install

Describe the bug

Additional context
No response
Logs
efg@Adai-MacBook-Pro WEB % npx nuxi@latest init bcm
Nuxi 3.6.0                                                                                18:41:05
✨ Nuxt project is created with v3 template. Next steps:                                                                                18:41:07
 › cd bcm                                                                                18:41:08
 › Install dependencies with npm install or yarn install or pnpm install                                                                                18:41:08
 › Start development server with npm run dev or yarn dev or pnpm run dev                                                                                18:41:08
efg@Adai-MacBook-Pro WEB % cd bcm
efg@Adai-MacBook-Pro bcm % pnpm install
Packages: +797
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 WARN  EXDEV: cross-device link not permitted, link '/Users/efg/Library/pnpm/store/v3/files/f7/ecc6997a43b68602ad66ac5620e7291956d544d844cfe8e037588b923cedbc027be697a70a918bbda8f4109dbacd57b0cc7662ce1ecbb62b30462c4987afd9' -><EMAIL_ADDRESS>Falling back to copying packages from store
Packages are copied from the content-addressable store to the virtual store.
  Content-addressable store is at: /Users/efg/Library/pnpm/store/v3
  Virtual store is at:             node_modules/.pnpm
 WARN  EXDEV: cross-device link not permitted, link '/Users/efg/Library/pnpm/store/v3/files/e4/c6c37bf31a851d2e8b210da48dd48d24ee007ec6f2517fd26f9335469e0e70ffcf7656e5b4a98755f23d1d63730bcd638e50db809df68bfd8b9d2f5986374e' -><EMAIL_ADDRESS>Falling back to copying packages from store
 WARN  EXDEV: cross-device link not permitted, link '/Users/efg/Library/pnpm/store/v3/files/72/392bccd8964c88ec8aa3d815746a2b6a4466d9c7ca8f428d7d0f3e2bb11674ef494ca335c8b255eee5825c087a77bb45a5d60025f318b78a64e19beccd23c7' -><EMAIL_ADDRESS>Falling back to copying packages from store
 WARN  EXDEV: cross-device link not permitted, link '/Users/efg/Library/pnpm/store/v3/files/09/aeaced7d997d323a7c60777da584c881987096a307d8cb5dcc3499c289d21b58f73b3a1d6da8f230e7baa64ebf8c9f26de64c38ac0874b5187397128ceab69' -><EMAIL_ADDRESS>Falling back to copying packages from store
 WARN  EXDEV: cross-device link not permitted, link '/Users/efg/Library/pnpm/store/v3/files/59/b8d2f60a227071a8704f83cb37c0bf0dabcd7de5b09a7f1d59b8a662d751cab4f992adb7c6c720d616a4340c890597ce5988289046df0844c3ce4f77aa189a' -><EMAIL_ADDRESS>Falling back to copying packages from store
Falling back to copying packages from store
Falling back to copying packages from store
Falling back to copying packages from store
Falling back to copying packages from store
Falling back to copying packages from store
 WARN  11 other warnings
Falling back to copying packages from store
Falling back to copying packages from store
Falling back to copying packages from store
Falling back to copying packages from store
Falling back to copying packages from store
Falling back to copying packages from store
Progress: resolved 839, reused 797, downloaded 0, added 797, done
<EMAIL_ADDRESS>Running postinstall script, failed in 664ms
.../node_modules/esbuild postinstall$ node install.js
│ /Volumes/Adai_001/Adai/Dev/tvKua/WEB/bcm/node_modules/.pnpm/registry.npmmirror.com+esbuild@0.18.7/node_modules/esbuild/install.js:132
│     throw new Error(`Expected ${JSON.stringify(versionFromPackageJSON)} but got ${JSON.stringify(stdout)}`);
│           ^
│ Error: Expected "0.18.7" but got "0.17.19"
│     at validateBinaryVersion (/Volumes/Adai_001/Adai/Dev/tvKua/WEB/bcm/node_modules/.pnpm/registry.npmmirror.com+esbuild@0.18.7/node_modules/esbuild/install.js:132:11)
│     at /Volumes/Adai_001/Adai/Dev/tvKua/WEB/bcm/node_modules/.pnpm/registry.npmmirror.com+esbuild@0.18.7/node_modules/esbuild/install.js:283:5
│ Node.js v18.16.1
└─ Failed in 664ms at<EMAIL_ADDRESS> ELIFECYCLE  Command failed with exit code 1.

Upon investigation, it appears to be a network issue.


[SUPPORT] In hudi 0.14.0, the hoodie.properties file is modified with each micro batch.

Tips before filing an issue

Have you gone through our FAQs?

Join the mailing list to engage in conversations and get faster support at<EMAIL_ADDRESS>

If you have triaged this as a bug, then file an issue directly.

Describe the problem you faced
When using Spark Structured Streaming 3.4.1 with Hudi 0.14.0, it has been observed that the content of the hoodie.properties file remains unchanged within each micro batch. However, there are intermittent operations involving the creation and deletion of hoodie.properties.backup files, as well as the deletion and creation of hoodie.properties files. This behavior occasionally leads to failures in downstream query tasks. Such issues were not encountered with Hudi 0.11. (metastore.enable=false)
To Reproduce
Steps to reproduce the behavior:

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

Hudi version : 0.14.0, MOR, insert

Spark version : 3.4.1

Storage (HDFS/S3/GCS..) : S3

Additional context
Upon comparing the source code of versions 0.14 and 0.11, the following differences were found:
Hudi0.11.1:

Hudi0.14.0:

In Hudi 0.14, the condition “&& !metaClient.getTableConfig().getMetadataPartitions().isEmpty()” is missing from the logic, leading to 'shouldExecuteMetadataTableDeletion' always returning true. Consequently, the 'deleteMetadataTable' method is executed, resulting in recent modifications to the hoodie.properties file. However, in the case of “metastore.enable=false”, the result of “!metaClient.getTableConfig().getMetadataPartitions().isEmpty()” will always be false. Therefore, if this condition continues to exist, the current issue would not occur.
Any information or suggestions are helpful, thank you.
Stacktrace
Add the stacktrace of the error.

@CaesarWangX This issue was fixed in this PR - https://github.com/apache/hudi/pull/10292 . Can you check please.

@ad1happy2go  Thanks


Right click event

Hi!
It would be great to right click an event and get a customizeable view with the event as property.
In my case, I want to offer diferent manipulation methods of the event.
Thanks and BR
Chris

This is can be done by using eventRenderer, you can fully control the event element.
perhapds use ids/classes to construct your element, then listen to contextmenu and act on it.


Store MRU list in json data file

Follow up for ticket #1206. Most recently used (MRU) list of search and replace strings is still kept inside registry. Migrate to json storage, alongside with other settings.

Fixed in v.0.17 https://github.com/microsoft/PowerToys/releases


Make chat size fit phone screen

Hey, I'm not sure if you need this, but I found it very useful. I'm really not into Android development, but I hope this helps. My changes set the width of the Chat to the width of your screen, using javascript.
I have to mention, that WhatsApp automatically focuses the textfield of the active chat, but it doesn't recognise the new size of the Screen, so it only scrolls half way. I tried to find out, how it works, but sadly I couldn't. So be aware of this side effect.

Hi,
thats for the PR! already saw the change in your fork ;) I'll check it

Hi @benehmb
checked your changes locally, looks better than before, thanks! I'll try to fix the scrolling before releasing the next version


Clicking atom feed opens index of project

Describe the bug
I installed it, went to instagram bridge to get posts of "natgeo", the feeds show but atom file is not loaded(see screenshot). The same happens in other bridges also.
To Reproduce
Steps to reproduce the behavior:

Install termux and php7-apache module
Use bridge

Expected behavior
Atom feed loads
Screenshots

The items show here fine

But clicking on atom loads this
Smartphone (please complete the following information):

Device: Moto E7 powee
OS: Android 10
Browser Chrome
Version 95

Additional context
None

Fixed by changing .html in
<IfModule dir_module>   DirectoryIndex index.html </IfModule>
to .php Finally hosted successfully on Android!


AssertionError

Hi,
I'm using this library but I think it throws an AssertionError. I cannot be sure because I have no entry point reference in the stack trace.
assert.js:85
  throw new assert.AssertionError({
  ^
AssertionError: 5586 == 0
    at ClientRequest.onConnect (/home/egidio/Documents/giles-client/node_modules/tunnel-agent/index.js:159:14)
    at Object.onceWrapper (events.js:291:19)
    at emitThree (events.js:116:13)
    at ClientRequest.emit (events.js:195:7)
    at Socket.socketOnData (_http_client.js:443:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:189:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at TCP.onread (net.js:551:20)

My script is called index.js.
When doing the request I'm handling errors in this way:
request.post('http://sample.com', {
    form: formData,
    proxy: 'http://' + self.url
}, function (error, response) {
    if (error) {
        reject(error);
    } else {
        if (response.statusCode < 400) {
            console.info(response);
        }
        fulfill();
    }
}).on('error', function (error) {
    reject(error);
});

I've also tried to put the request.post method in a try-catch block but didn't work.
Can you please help me?
Thank you,
Egidio

See https://github.com/request/tunnel-agent/blob/master/index.js#L159
For some reason the head length is not zero. Can you add a console.log(head) statement before /home/egidio/Documents/giles-client/node_modules/tunnel-agent/index.js:159 and try re-running to see what head actually is?


Advisory from Netsparker - LibreCMS - 39d4783 - SQL Injection & Blind SQL Injection

Hello,
While testing the Netsparker web application security scanner we identified SQL Injection & Blind SQL Injection vulnerabilities in LibreCMS - 39d4783. Can you please advise whom shall we contact to disclose the vulnerability details so it can be fixed?
Please email me at<EMAIL_ADDRESS>for the technical details.
Looking forward to hearing from you.
Regards,
Daniel Bishtawi
Marketing Administrator | Netsparker Web Application Security Scanner

Exactly where was this SQL Injection discovered, i.e. which file? I ran the system through Vega, which I dod quite often, and no SQL Injection issues were found.

Oh, please be sure you are on the correct repository, there is another LibreCMS but isn't a Content Management System, rather it is a Course Management System that has been around longer.
https://github.com/librecms/librecms

There were two possible SQL Injections found, which I have now fixed and rescanned for. Please disclose if you have found issues other than in core/getexif.php and core/view/more.php.

@DiemenDesign We found new vulnerabilities from "core/toggle.php" and parameter named with "c". Please email me at<EMAIL_ADDRESS>for the technical details.

You can just disclose them here.

I think I know what the issue is, using $var directly in the prepared SQL query. I'm open to suggestions that don't add bloat (like a huge whitelist of column names). I'm not even sure I can bind table names are columns in prepared statements for execution.

I have just updated the Administration Area and Default template, fixing the original issues I found. This is a new code base that has been heavily modified since your original Pen Test.
The issue pertaining to the core/toggle.php file isn't an issue with the c var being passed as that is sanitized via the $_GET, however, as that var that is passed to $col is used directly in the prepare statement is where the actual issue is, as accessing table names or column names can't be bound into the prepare statement. I am currently looking for options to quickly sanitize that var to reduce security issues related to using vars in the SQL statement.

I am closing this issue, I have added a whitelist check to only allow the listed table and column names.
If you happen to find any more issues, please open a new issue, and detail the advisory. We don't need to contact you to have you try to advise purchasing expensive software that I can easily use Free and Open Source Pen Testing tools to do the same thing.

@DiemenDesign At your request we are disclosing the details here:
APP Name/Version : LibreCMS, (Commit ID: 39d4783 - Jul 27, 2018)
Vuln : SQLi & Blind SQLi
reTest : Y
SQLi I/O : GET
Vendor : https://github.com/DiemenDesign/LibreCMS
Technical Details
SQL Injection
Url http://{LibreCMS-root/core/toggle.php?id=1&t=config&c={payload}&b=3
Parameter Name: c
Parameter Type: GET
Attack Pattern: (SELECT+1+and+ROW(1%2c1)%3e(SELECT+COUNT(*)%2cCONCAT(CHAR(95)%2cCHAR(33)%2cCHAR(64)%2cCHAR(52)%2cCHAR(100)%2cCHAR(105)%2cCHAR(108)%2cCHAR(101)%2cCHAR(109)%2cCHAR(109)%2cCHAR(97)%2c0x3a%2cFLOOR(RAND(0)*2))x+FROM+INFORMATION_SCHEMA.COLLATIONS+GROUP+BY+x)a)
Blind SQL Injection
Url http://{LibreCMS-root/core/toggle.php?id=1&t=config&c={payload}&b=3
Parameter Name: c
Parameter Type: GET
Attack Pattern: maintenance+%2b+((SELECT+1+FROM+(SELECT+SLEEP(25))A))%2f*%27XOR(((SELECT+1+FROM+(SELECT+SLEEP(25))A)))OR%27%7c%22XOR(((SELECT+1+FROM+(SELECT+SLEEP(25))A)))OR%22*%2f
PoC
For SQLi:
http://{LibreCMS-root/core/toggle.php?id=1&t=config&c=(SELECT%201%20and%20ROW(1,1)>(SELECT%20COUNT(*),CONCAT(CHAR(95),CHAR(33),CHAR(64),CHAR(52),CHAR(100),CHAR(105),CHAR(108),CHAR(101),CHAR(109),CHAR(109),CHAR(97),0x3a,FLOOR(RAND(0)*2))x%20FROM%20INFORMATION_SCHEMA.COLLATIONS%20GROUP%20BY%20x)a)&b=3
For Blind SQLi:
http://{LibreCMS-root/core/toggle.php?id=1&t=config&c=maintenance%20+%20((SELECT%201%20FROM%20(SELECT%20SLEEP(25))A))/'XOR(((SELECT%201%20FROM%20(SELECT%20SLEEP(25))A)))OR'|"XOR(((SELECT%201%20FROM%20(SELECT%20SLEEP(25))A)))OR"/&b=3

Thank you, have you retested after the previous update? Or is this from your original test?
I have added a whitelist check for both valid table names, and column names before the script gets to the SQL statement. Because of the nature of the toggle behaves for AJAX requests for checkboxes I have directly used php vars to select the table and columns names as they can't be binded like other vars in PDO Prepared Statements.

According to Mustafa Yalçın the Netsparker Security Researcher who identified these vulnerabilities, the details are from the original test. He is going to retest in the next few days as the vulnerabilities might be fixed and let you know.

No worries, thanks for keeping this updated.

@DanielBishtawi any news on the testing progress yet? I'm looking at doing a v2 release, and besides the fixes above being done, I would like to add other fixes with the release. One thing I've also done is make the minimum PHP version 7, as I've swapped in some functions that are PHP 7 specific and safer from a user perspective to help reduce security risks. Obviously, we can't cover everything but if we can get open obvious things done, that would be great.

I have just updated the CMS to v2.0.0 after running several Penetration Tests which didn't reveal any serious issues.

@DiemenDesign Our Security Researcher has retested the latest version and the vulnerability has been fixed.

Thank you @DanielBishtawi I was also unable to find issues using Vega and a couple of other Linux based Pen Testers.