text:
Error running docker image on Ubuntu 20.04

When I run the docker image to reproduce the experiments, I get an error. I think a dependency is missing, as listed by this line:
REQUIRED DEPENDENCIES AND EXTENSIONS
                     numpy: yes [not found. pip may install it below.]
          install_requires: yes [handled by setuptools]
                    libagg: yes [pkg-config information for 'libagg' could not
                            be found. Using local copy.]
                  **freetype: no  [The C/C++ header for freetype2 (ft2build.h)
                            could not be found.  You may need to install the
                            development package.]**
                       png: yes [version 1.6.37]
                     qhull: yes [pkg-config information for 'libqhull' could not
                            be found. Using local copy.]

But in case you want to full output, here it is:
100%|██████████| 42/42 [00:00<00:00, 67494.55it/s]Task update removed 0 completed tasks. Tasks remaining: 41580
Written task file to abed_tasks.txt

There are 41580 tasks left to be done, out of 41580 tasks defined.
cd execs/python/bocpdms && virtualenv venv && source venv/bin/activate && pip install -r requirements.txt
created virtual environment CPython3.8.2.final.0-64 in 319ms
  creator CPython3Posix(dest=/TCPDBench/execs/python/bocpdms/venv, clear=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv)
    added seed packages: pip==20.2.1, setuptools==49.2.1, wheel==0.34.2
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
Collecting scipy==1.1.0
  Downloading scipy-1.1.0.tar.gz (15.6 MB)
Collecting matplotlib==2.2.2
  Downloading matplotlib-2.2.2.tar.gz (37.3 MB)
    ERROR: Command errored out with exit status 1:
     command: /TCPDBench/execs/python/bocpdms/venv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-idi0i_6h/matplotlib/setup.py'"'"'; __file__='"'"'/tmp/pip-install-idi0i_6h/matplotlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-b3xnf8ei
         cwd: /tmp/pip-install-idi0i_6h/matplotlib/
    Complete output (61 lines):
    ============================================================================
    Edit setup.cfg to change the build options

    BUILDING MATPLOTLIB
                matplotlib: yes [2.2.2]
                    python: yes [3.8.2 (default, Jul 16 2020, 14:00:26)  [GCC
                            9.3.0]]
                  platform: yes [linux]

    REQUIRED DEPENDENCIES AND EXTENSIONS
                     numpy: yes [not found. pip may install it below.]
          install_requires: yes [handled by setuptools]
                    libagg: yes [pkg-config information for 'libagg' could not
                            be found. Using local copy.]
                  freetype: no  [The C/C++ header for freetype2 (ft2build.h)
                            could not be found.  You may need to install the
                            development package.]
                       png: yes [version 1.6.37]
                     qhull: yes [pkg-config information for 'libqhull' could not
                            be found. Using local copy.]

    OPTIONAL SUBPACKAGES
               sample_data: yes [installing]
                  toolkits: yes [installing]
                     tests: no  [skipping due to configuration]
            toolkits_tests: no  [skipping due to configuration]

    OPTIONAL BACKEND EXTENSIONS
                    macosx: no  [Mac OS-X only]
                    qt5agg: no  [PySide2 not found; PyQt5 not found]
                    qt4agg: no  [PySide not found; PyQt4 not found]
                   gtk3agg: no  [Requires pygobject to be installed.]
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-idi0i_6h/matplotlib/setup.py", line 197, in <module>
        msg = pkg.install_help_msg()
      File "/tmp/pip-install-idi0i_6h/matplotlib/setupext.py", line 592, in install_help_msg
        release = platform.linux_distribution()[0].lower()
    AttributeError: module 'platform' has no attribute 'linux_distribution'
                 gtk3cairo: no  [Requires cairocffi or pycairo to be installed.]
                    gtkagg: no  [Requires pygtk]
                     tkagg: yes [installing; run-time loading from Python Tcl /
                            Tk]
                     wxagg: no  [requires wxPython]
                       gtk: no  [Requires pygtk]
                       agg: yes [installing]
                     cairo: no  [cairocffi or pycairo not found]
                 windowing: no  [Microsoft Windows only]

    OPTIONAL LATEX DEPENDENCIES
                    dvipng: no
               ghostscript: no
                     latex: yes [version 3.14159265]
                   pdftops: no

    OPTIONAL PACKAGE DATA
                      dlls: no  [skipping due to configuration]

    ============================================================================
                            * The following required packages can not be built:
                            * freetype
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 20.2.1; however, version 20.2.2 is available.
You should consider upgrading via the '/TCPDBench/execs/python/bocpdms/venv/bin/python -m pip install --upgrade pip' command.
make: *** [Makefile:358: execs/python/bocpdms/venv] Error 1

Fixed by that PR

repo: alan-turing-institute/TCPDBench


text:
update config_param() function

User might need to specify host bluebird is running on (if other than localhost) and what simulator communicating with (default is bluesky).

Update config_param() function implementation to take in config file location as argument so that can point to new config file if necessary.

Some refactoring done in #93 but there should probably be more discussion on how to best address need for some config flexibility (users specifying host and ports)

bluebird_config function has been added that allows setting bluebird host, port and version to values other than those in config defaults.

source: gharchive/issue

repo: alan-turing-institute/dodo

license: MIT

license_type: permissive

license_source: github-api


text:
[DOC]Install requirements for WSL2 in installation guide

Describe the issue linked to the documentation
It has come to my attention that in order to run sktime under WSL2, we should follow the Ubuntu linux instructions.

We should include a ..note directive in the windows instructions pointing to the linux ones for users of WSL2 as their platform.

Closing for #1010

well, it hasn't been merged yet, so let's reopen but attach to the new PR, so it closes whan that gets merged.

repo: alan-turing-institute/sktime


text:
[ENH] Compositor for forecasting of exogeneous data before using in exogeneous forecaster

This PR adds a compositor, ForecastX, that makes forecasts on exogeneous data before using that forecast to forecast endogeneous data.
The typical use case is exogeneous data which is available only up until current cutoff, but forecasts are made of exogeneous data to apply another forecaster to endogeneous data which requires exogeneous data at the forecasting horizon time stampe.

nice, I recently had the same idea to have sth like this, just forgot to create an issue. I was thinking about name of ExogForecaster but ForecastX or ForecasterX is also fine I think. There is just one edge case that I was thinking about, the case where you have some columns of X_pred given and only want to create X forecasts for some other missing columns. But could be done in a separate PR

@fkiraly , how would this solution work if only a subset of the features in X should exhibit this behavior while the rest of the features should be used in a traditional manner. Would it be better to add another parameter to this transformer called columns, or something similar, in which the user can specify which features should be forecast into the future and which features are known in the future?

Yes, @LarsLZondag, I guess adding a columns argument makes it easier.
I've thought how one could have the effect with ColumnForecaster or ForecastingPipeline etc but could think of no easy alternative way.

There is just one edge case that I was thinking about, the case where you have some columns of X_pred given and only want to create X forecasts for some other missing columns. But could be done in a separate PR

@aiwalter, do you want to check whether I've addressed your edge case properly?

source: gharchive/pull-request

authors: LarsLZondag aiwalter fkiraly


text:
Support for programmatically adding the SwiftSiriWaveformView

Not everyone uses exclusively Storyboards, it'd be nice if there was a support to instantiate simply like this:
let bounds = CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 60)
let siriWaveFormView: SwiftSiriWaveformView = SwiftSiriWaveformView(frame: bounds)

It seems you haven't created the default init().

I see that even if the noise changes in the background the wave never changes

authors: LeonardoCardoso kyramckenna

repo: alankarmisra/SwiftSiriWaveformView

license: mit

license_source: bigquery


text:
Using no disk based files with torrent creation.

Hi !
I have the following issue, or rather just a request for someone to point me into the right direction.
I have a content repository that is read only from my side, and which is represented by the following interfaces.
Each content file is represented by a sequential collection of blocks all identified by their SHA256 hash.
The blocks are each 1 MB in size ( except the last one of a given content item )
interface IBlock
{
  long Size { get; }
  byte[] Sha256 { get; }

  Stream OpenRead();
}

interface IContent : IReadOnlyList<IBlock>
{
    string Filename { get; }
     long Size { get; }
}

Now i would like to distribute those content files via bittorrent, using monotorrent of course.
Backward compatiblity is no concern, as all clients are under my control. So the V2 protocol can be used,
In my mind the structure i have maps perfectly to torrents and their piece structure, and since i already have the SHA256 hashes
this would also work quite well with the V2 protocol .
However currently i am struggling on how to plug my system into montorrent e.g creating a torrent file from a collection of such content items...
All the samples and interfaces like ITorrentFileSource etc assume that the files reside on disk, and that piece are not already defined.
Is there a way to plug my system into the torrent creation pipeline ? Where should i start to look in terms of interfaces ?

After some more investigation it seems that i would have to reimplement TorrentCreator
However a lot of the types needed to do this are internal to monotorrent... i would rather like to avoid doing a full source fork ...
Any ideas ?

@BernhardGlueck what did you end up doing?

I wrote everything from scratch so its now not related to monotorrent anymore ( our own Beencode writer and of course the Torrent V2 creation ) .. works like a charm... however it was very difficult as the TorrentV2 spec is very ambiguous and left us with a lot of trial and error to do.

Ah, it's actually quite easy to do with MonoTorrent. It's unlikely you'll want to return to MonoTorrent, but if you are interested the extension point you need is also used in these (new) tests:
The first part is to create a custom IPieceWriter. You need to implement the 'Read' and 'Write' methods to read/write from your content repository. https://github.com/alanmcgovern/monotorrent/blob/master/src/Tests/Tests.MonoTorrent.IntegrationTests/IntegrationTests_FakePieceWriter.cs#L29-L109
The second part is to use that writer when creating torrents:
https://github.com/alanmcgovern/monotorrent/blob/master/src/Tests/Tests.MonoTorrent.IntegrationTests/IntegrationTests_FakePieceWriter.cs#L214-L222
Hope that helps the next person at least! Good luck with your project too!

Thank you for your answer.
We are working on our client side right now, which downloads the torrent files we create. Right now we are using a libtorrent custom wrapper but that quite complex and error prone, and also requires us to ship native dependencies for all supported platforms ( 6 )
So switching back to monotorrent for the client side would be great, however we can only support V2 torrents ( due to SHA256 requirements for our hashes in our backend )
I was under the impression that V2 Torrents are not yet supported in monotorrent for downloading ? If that has changed it would be an real option

I was under the impression that V2 Torrents are not yet supported in monotorrent for downloading ? If that has changed it would be an real option

Do check out the latest preview release in nuget, or build the latest master commit. While it's probably not fully done-done yet, I have just shipped a bunch of fixes for various aspects of V2 support. I'm fairly convinced that, at the least, MonoTorrent is compatible with whatever version of libtorrent 2.x that qBittorrent uses in terms of being able to distribute the merkle tree, and also download/upload data for v2 only torrents.

We are working on our client side right now, which downloads the torrent files we create. Right now we are using a libtorrent custom wrapper but that quite complex and error prone, and also requires us to ship native dependencies for all supported platforms

Native dependencies can be tricky alright. It's been a while since I had to worry about p/invokes, but it's something I definitely do not miss ;) If MonoTorrent suits your needs then great! If not, do let me know what the issues are and I can figure out what it'd take to address them!

authors: BernhardGlueck alanmcgovern lostmsu

repo: alanmcgovern/monotorrent


text:
Delayed access to 'roles' object

I've encountered something confusing. I have the following code in my layout component:
  getMeteorData() {
    if (!Meteor.userId()) {
      // User logged out or their login timed out
      store.dispatch(userLoggedOut());
    }

    if (Meteor.user()) {
      console.info('Checking if user is L11 admin:', Meteor.user());
      if (!Roles.userIsInRole(Meteor.userId(), 'admin', 'L11')) {
        store.dispatch(userLostSuperPrivs()); // User is no longer L11 admin
      }
    }

    return {
      user: Meteor.user()
    }
  }

On my console.info call, it dumps out my user info, though the roles object is missing, so it bounces me out of the admin layout. Then if I go into the Chrome console and dump out Meteor.user(), I see the roles object.
Why is this happening? I had to fix it with the following:
if (Meteor.user() && Meteor.user().roles) {
  if (!Roles.userIsInRole(Meteor.userId(), 'admin', 'L11')) {
    store.dispatch(userLostSuperPrivs()); // User is no longer L11 admin
  }
}

Yet in the examples folder, I don't see any code that checks to make sure Meteor.user().roles exists before using the userIsInRole method.

I believe this is a race condition due to the roles data not being on the client when the first check is performed.  You can find a description of the sequence of events here and a previous discussion of this issue here.
Basically you just need to display some kind of "loading" message while you are waiting for the roles subscription to complete. The handle is stored here: Roles.subscription.
Good suggestion to add this to the example apps.  If you are interested, a PR would be a great way to contribute!  :-)
Closing this issue but feel free to continue the discussion or re-open if I haven't addressed the proper concern.

authors: alanning ffxsam

repo: alanning/meteor-roles


text:
New database connection windows needs to be resized to show login and password field

When creating a new database connection, the dialog window is to short, it doesn't show the login and password by default. It should be large enough to show those two fields, or have a scrollbar.

This has been fixed in release v0.4.0. I've added a JScrollPane to the dialog, so that there are scrollbars in case it's too small. I'm going ahead and close this. Please feel free to reopen it if I've missed anything, thank you

I can see a black border, but no scrollbars in the default size. Those only appear when I decrease size.

Hi Jörg, are you running IntelliJ on a Linux system? What is your font size? I can't reproduce this issue on my side, so I'll see if I can spin up an environment similar to yours in order to reproduce it.

Hi @albertoventurini, thanks a lot for looking into this. I have the issue on linux as well as windows (running via citrix in a virtualbox env). What they share though is that I have a 4k monitor at about 137 dpi. I have set the scaling in windows to 138%, and use pycharm with Segeo UI 14. On linux (ubuntu) I use the tweaks tool with a font scaling of 1.24, and use pycharm with Noto Sans 20.

authors: albertoventurini jhb


text:
clean up exchange adv restore test

Does this PR need a docs update or release note?

[x] :no_entry: No

Type of change

[x] :robot: Supportability/Tests
[x] :broom: Tech Debt/Cleanup

Issue(s)

#3562

Test Plan

[x] :zap: Unit test
[x] :green_heart: E2E

@ryanfkeepers could you please rebase this? :)

authors: pandeyabs ryanfkeepers

repo: alcionai/corso


text:
make error

when I git the rep, so I "cd" the dir, cuda.
Then, I use "make"
I get this problem: make: *** No rule to make target 'diff.h', needed by 'tvq2opt'.  Stop.
please how to fix it ? thanks

The Makefile was outdated, thanks for pointing this out.
I have pushed a commit with the correct Makefile.
Let me know if you still face any issues.

authors: mdouskos zyfsa

repo: alcor-vision/confidence-fusion


text:
Validating fields which dont have to be inserted

I am not sure if this relates to collection2 or simpleschema, but there's a need for another rule which makes a key skip database insertion. One example of such a field is Confirm password field which is only required for validation but is not to be inserted in the database.
Something like 'skipInsert' or 'validationOnly'.

In autoform, you can use a form schema that contains the extra fields, and then remove them in a before insert hook. I don't think it's worth adding the extra options to autoform since it's really pretty easy to do it yourself in the before hook, but feel free to make a case for it.
It doesn't make sense in SS pkg because there is no "insert" concept outside of a database context. It could go in collection2, but it doesn't feel right to include a field in a collection schema if you don't actually want that field in your collection.

authors: aldeed dpacmittal


text:
validation reports date error only on Safari

I am validating a date field, and I am replacing the field by a string. This works fine in FF & Chrome, but with Safari, validation reports 'field must be a date'. If I bypass validation on Safari, the record get saved correctly.
I traced down into your code and noticed that you have a special condition coded for Safari, and this patch seems to trigger the validation error report.

Closing old issues. Please comment if this is still an issue and should be reopened.

authors: aldeed dpatte


text:
CJS Build warning

Hi, I added your plugin in Vite through Quasar config following this https://quasar.dev/quasar-cli-vite/handling-vite/#using-with-typescript, and I get this warning:
The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.

It is not high priority at all, it works perfectly - I just have this warning.
The only .cjs file I have in my project is .eslintrc.cjs.

I only get that Vite warning if I import this plugin, so extraneous .cjs config files (like your .eslintrc.cjs file @nicobao) are not the cause.

Given that Vite itself will be dropping its CJS build, this library should probably drop its CJS build as well as there will no longer be much use for it. Users having CJS projects should rename their config files to vite.config.mjs/vite.config.mts.
If the CJS build needs to be kept for some reason, then I would suggest this plugin should dynamically import vite

Users having CJS projects should rename their config files to vite.config.mjs/vite.config.mts.

Thoughts on mentioning this in the readme?

authors: aleclarson benmccann electrovir nicobao

repo: aleclarson/vite-tsconfig-paths


text:
🛑 Nitter is down

In e853874, Nitter (https://nitter.alefvanoon.xyz) was down:

HTTP code: 502
Response time: 92 ms

Resolved: Nitter is back up in 5fd5d2d.

repo: alefvanoon/Status


text:
🛑 CloudTube is down

In 8f8bb80, CloudTube (https://tube.alefvanoon.xyz) was down:

HTTP code: 525
Response time: 181 ms

Resolved: CloudTube is back up in 6c91119.


text:
🛑 PipedP is down

In 5f989e4, PipedP (https://pipedp.alefvanoon.xyz) was down:

HTTP code: 525
Response time: 104 ms

Resolved: PipedP is back up in ddbf703.


text:
Output response if not JSON

Problem
HTTP responses are not output if they are not JSON
$ alcli deployments create_deployment --account_id 12345678 --mode automatic --name "test"  --credentials '[{"id": "REDACTED", "purpose": "discover"}]' --platform '{"type":"aws","id":"REDACTED","monitor":{"enabled":true,"ct_install_region":"us-east-1"}}' --scope '{"include":[{"type":"region","key":"/aws/us-east-1"}]}'
HTTP Status Code: 400

Solution
Output them.
alcli  deployments create_deployment --account_id 12345678 --mode automatic --name "test"  --credentials '[{"id": "REDACTED", "purpose": "discover"}]' --platform '{"type":"aws","id":"REDACTED","monitor":{"enabled":true,"ct_install_region":"us-east-1"}}' --scope '{"include":[{"type":"region","key":"/aws/us-east-1"}]}'
HTTP Status Code: 400
Invalid JSON. Path: credentials..id.

(happy to take a fuller approach to HTTP responses, respecting content-type, etc if desired)

repo: alertlogic/alcli


text:
Yoshi help you through the wall

after check again Hmm... you are right so I will close this issue but Alesan shouldn't put this in Alesan99 mappack

license: WTFPL


text:
permission denied?

I can not work out how to get this script working... like others posted the command stdbuf -oL libinput debug-events|grep switch seems to do nothing.. it just sort of goes to a new line and runs... I get no outputs of any kind and have to ctrl+c out. If I run it without the grep I get a ton of info, but nothing seems to happen when I fold the laptop. The LS command seemed to return results I could use?
~ ❯❯❯ ls -lh /dev/input/by-path
total 0
lrwxrwxrwx 1 root root 10 Jul 21 14:50 pci-0000:00:14.0-usb-0:1:1.1-event-mouse -> ../event13
lrwxrwxrwx 1 root root  9 Jul 21 14:50 pci-0000:00:14.0-usb-0:1:1.1-mouse -> ../mouse2
lrwxrwxrwx 1 root root 10 Jul 21 14:50 pci-0000:00:14.0-usb-0:8:1.0-event -> ../event12
lrwxrwxrwx 1 root root  9 Jul 21 14:50 pci-0000:00:15.0-platform-i2c_designware.0-event-mouse -> ../event6
lrwxrwxrwx 1 root root  9 Jul 21 14:50 pci-0000:00:15.0-platform-i2c_designware.0-mouse -> ../mouse4
lrwxrwxrwx 1 root root  9 Jul 21 14:50 pci-0000:00:15.1-platform-i2c_designware.1-event -> ../event8
lrwxrwxrwx 1 root root  9 Jul 21 14:50 pci-0000:00:15.1-platform-i2c_designware.1-event-mouse -> ../event7
lrwxrwxrwx 1 root root  9 Jul 21 14:50 pci-0000:00:15.1-platform-i2c_designware.1-mouse -> ../mouse0
lrwxrwxrwx 1 root root  9 Jul 21 14:50 pci-0000:00:1f.0-platform-VPC2004:00-event -> ../event4
lrwxrwxrwx 1 root root  9 Jul 21 14:50 platform-i8042-serio-0-event-kbd -> ../event3

I assume that pci-0000:00:1f.0-platform-VPC2004:00-event is the correct event... so I made the config file.... (I also tried pci-0000:00:15.1-platform-i2c_designware.1-event)

input_device: /dev/input/by-path/pci-0000:00:1f.0-platform-VPC2004:00-event
modes:
  laptop:
     - xinput enable "AT Translated Set 2 keyboard"
  tablet:
     - xinput disable "AT Translated Set 2 keyboard"

but whenever I run the script I get....
Failed to open /dev/input/event4 (Permission denied)
Failed to initialize device /dev/input/by-path/pci-0000:00:1f.0-platform-VPC2004:00-event

I tried copying it into /root/.config and then running the script with sudo... but I got the same erorr...
I'd appreciate any advise you may have on this.. thanks.

If stdbuf -oL libinput debug-events|grep switch prints nothing when you convert your laptop, then most likely your device is not supported, and this script won't work for you. The script uses libinput debug-events internally, with input_device property being there to filter out irrelevant events, it just adds --device argument to libinput debug-events.
You may try to run sudo stdbuf -oL libinput debug-events|grep switch and see if it shows anything. If it works, check permissions for those input devices. On my machine they belong to user root and group input, so to have access you'd add yourself to the input group. This is distribution-dependent, so check it yourself. If running that command with sudo still doesn't show anything  - you are out of luck here. You might try luck with the older version of this script, I put under old/ in the repository: https://github.com/alesguzik/linux_detect_tablet_mode/tree/master/old . It uses a pair of accelerometers instead of mode switch events.

ok thanks.. I see.. I still couldn't get it to work, but I appreciate you taking the time to respond.


text:
Add the list of contributors in the readme.md file

List out all the contributors to this repository and auto-add all the contributors
Go through this https://github.com/all-contributors/all-contributors for more information

Can I do this?

Hey, I can help you in implementing this once you assign it to me but before that, i will need to know you want this to be added using npm package or all-contributors bot can add using both.

@hariom1625 We would encourage you to use npm package.
We need that list to be in the README, so it's upto you whatever you would like to use.
Shall I assign you on this?

Yeah sure :-)
But before starting I need you to know that this package doesn't automatically add the new contributors to the list,
for updating, there are two ways one using CLI and other using Bot, So from my experience what I would suggest is that to configure the package using CLI in order to add the contributors who have already contributed till now and after that enabling the Bot to keep updating the Contributors list. I will share the details on how to configure the bot once I configure the files it is just quite a few steps and you are good to go :-)

Alright! That sounds good. Waiting for the Details.
Assigned.

Hey @Tushar11Raj What approach did you for this issue?

Alright! That sounds good. Waiting for the Details.
Assigned.

Since this issue is labeled under the Hactoberfest I will make the PR once the event starts :-)

Okay Cool!

Hey @Tushar11Raj What approach did you for this issue?

I will be using allcontributors bot for this. You will have to comment ont the pull request in the following way:
@all-contributors please add <username> for <contributions>
but this will also work:
Jane you are crushing it in documentation and your infrastructure work has been great too. Let's add jane.doe23 for her contributions. cc @all-contributors

I got your point @Tushar11Raj . Since I've already assigned it, and a similar workout would be done, you can keep track of this issue and make any suggestions or changes once PRs are merged.

repo: alexa-dev-hub/alexa-community-jaipur


text:
Mask-Filling with pretrained BORT

Hello, I am trying to get the "mask-filling" to work correctly with BORT and don't seem to get good results. In short, I load the pretrained BORT model including the decoder (use_decoder=True) and then pass as an input something along the lines "The weather is  today." I would expect the pretrained BORT model with decoder head to be able to predict a sensible word in this case, but I only get weird results (such as predicting the  token...) :-/
I made a short notebook that showcases exactly how I use BORT with gluonnlp and mxnet and am not able to get any good results for the mask-filling problem.
Here is the notebook: https://colab.research.google.com/drive/17qNu6g1s2KJEwuRl1s5c3ipk2-99dZfm?usp=sharing that:
a) loads a tokenizer  + vocab
b) loads the pretrained model + decoder
c) runs a forward pass through the encoder and the decoder lm head
d) shows that the result is not as good as expected
@adewynter I would be very grateful if you could take a look at possible errors I've made in the notebook that could explain the strange behavior.
Thank you very much!
cc @stefan-it

Hi!
That's definitely a very odd error. Have you tried using the mask token implicitly? E.g., like in here. The reason being is that this particular version of Gluon is based on a script that did not originally support RoBERTa-style pretraining, so we kind of had to hack our way around that.
I'm unsure if the actual mask token in Gluon+RoBERTa + this version is defined as "<MASK>", so perhaps you could change it to vocab.mask_token and try again? Indeed, note how the output token is actually lowercase ("<unk>") on the notebook you shared.
Sorry about that!
-Adrian
PS: We never did mask prediction because Bort was not designed for that -- indeed, we have conjectured in the paper that MLM/pre-training is not something that is even needed. So, you should get "a" token (you shouldn't get the unknown token for sure!), but I'm not superduper sure if it'll be a sensible token, as you say.

Hey hey, did it work? I checked on this page and looks like lowercasing the tokens was the way to go. Should I close this then?

Sadly, @stefan-it and I didn't get it to work yet :-/. As you can see on this page the proposed word to fill the mask don't seem to be sensible. I tried to make it work using gluonnlp and mxnet in the notebook posted above without success. If you find a bit of time to make the mask-filling work in the gluonnlp library this would be super helpful!

authors: adewynter patrickvonplaten

repo: alexa/bort


text:
main.go:14: get current user: get current user: context deadline exceeded

I'm setting everything up by the guide and keep receiving this error 18:57:27 main.go:14: get current user: get current user: context deadline exceeded any clue how to solve it?

@Paul-Bob  i am facing the same issue can you let me know how you fixed it.

@vikashcodes check this issue https://github.com/alexandear/import-gitlab-commits/issues/1 it might be useful

I have tried but all in vain.

authors: Paul-Bob vikashcodes

repo: alexandear/import-gitlab-commits


text:
Automatic network node positioning broken

Automatic network positioning (using the exact code at http://d3plus.org/examples/advanced/9956648/ but swapping script src= for local dev branch) throws a TypeError at src/core/parse/nodes.js:13 with message TypeError: vars.nodes.value.filter is not a function. A closer look reveals that vars.nodes.value is a boolean false.
The exact commit which broke this was f41d7eb.
I spent a while poking around trying to figure out how the type leak was being tripped by the f41d7eb, which allowed edges to be omitted, but haven't had any success. I suspect the culprit is in src/viz/types/networks.js, but the fact that the TypeError pops up in a completely different place makes it hard to tell. Would appreciate a look from someone more familiar with the codebase!

Thanks for the thorough bug report! Was able to find the culprit, and the fix will be part of the next release. :beers:

authors: ajyoon davelandry


text:
🛑 TOP Onions is down

In a59e80c, TOP Onions (https://www.toponions.com) was down:

HTTP code: 503
Response time: 604 ms

Resolved: TOP Onions is back up in 3500544.

repo: alexandervantrijffel/upptimemonitoring


text:
Any license?

I'd like to use it in a project, but without any explicit license the default copyright laws apply. If this is intended, that's fine too! Is it ISC as package.json indicates?
Awesome library :+1:

LICENSE file I suppose would be ideal, but I see it is ISC here as well: https://www.npmjs.com/package/react-player-controls.
Thanks!

I added a LICENSE file and published version 0.5.13 to npm.

authors: alexanderwallin thekeenant

repo: alexanderwallin/react-player-controls

license: ISC


text:
✨ [REQUEST] Birdnet-Go

Checked

[X] If a new addon, I have checked on  Google that such as addon doesn't already exists
[X] If a new feature, I have searched in the discussions & issues that it was not already covered

Which addon?
Birdnet-go
Is your feature request related to a problem? Please describe
No it is not.
Describe the solution you'd like
Hey! Would it be possible to have the addon autmoaticlly map (instead of adding it to config) the share patition so that clips and webui.log are availble at the get-go?
Cheers

Sometimes birdnet-go stops analysing, would there be a way to monitor the logs and if it does say not get a reading for 10 mins restart the container?

Sometimes birdnet-go stops analysing, would there be a way to monitor the logs and if it does say not get a reading for 10 mins restart the container?

Hi, I've done that for birdnet-pi but it was much easier as based on services. I'll have to look how to do it for the go version

For your main question you can already do it by mapping a drive and using the relative path (such as /mnt/NAS/Clips instead of the default "Clips" which is relative to the home folder)
I could do it by default i'll have a look

Hi Alex! What are the differences between Pi and Go? Can you still join bird weather with go? As you know I've been testing and playing with Pi and enjoying it. I am curious about the lower system load of Go though.
Also - is it possible to run your Bridget-Pi as a stand alone docker container outside of Home Assistant?

Hi, here is my view from what I know :

Birdnet-pi : historical app abandoned by its owner but with a very active fork to keep it alive, lots of functions, runs on x64 (such as rpi4, x86). With it running, average cpu usage is <20% and analysis of a 15s segment lasts 2.5 seconds.
Birdnet-go : new app under heavy development, minimalistic UI, more resources efficient (for example runs on rpi3)

Both can join birdweather!
I'm all for the dev of a new system but as I user I'm selfishly using birdnet-pi as it is much more mature with features of analysis, deletion, species change... Also it is based on php/py/sh which means I can contribute as a contrary of birdnet-go that is in go which I know nothing about.
Currently you can't run it as a standalone container but I think another user was developing one...

Thanks! Considering I don’t use the change species.  Would I lose anything going to your Go Addon? Is species detection just as good on Go?

I haven't really tested it! What you could do is run both add-ons in parallel with the same rtsp feed. I've ran 2 birdnet pi add-ons in parallel without any impact on performance of the rpi4!

Got it. What about Size? That's really the problem I'm running into more. My HA VM was 20gigs and now it's 60 and I'm trying to figure it why.

I'm not sure about size ; birdnet-pi is based on "ghcr.io/linuxserver/baseimage-debian:arm64v8-bookworm" and birdnet-go on "ghcr.io/tphakala/birdnet-go:dev"
Try running ha su repair it will remove all dangling images that take a lot of place

Thanks! I got birdnet-go running. Is there a way to tell it to purge recordings daily or anything? Also, the log and stats both say "nothing here yet" even though it is detecting.  Am I just being impatient? 🙂

update: found the yaml that I can set logs to "true" - will that also be stats?

Thanks! I got birdnet-go running. Is there a way to tell it to purge recordings daily or anything? Also, the log and stats both say "nothing here yet" even though it is detecting. Am I just being impatient? 🙂

I'm not sure I think there is a purge but without much granularity - that's why I'm using birdnet-pi (I'm also developing a feature to keep only the best & latest recordings to avoid having too much data)
For the log and stat I think it's because it is placeholder pages

I started using the birdnet go.  I uninstalled birdnet pi and my home assistant full backup size went from almost 8gigs down to 400k. That seems unrealistic.  Anything that would make that true? I fear my backups are somehow incomplete now?

In a backup you can look in the zip which files take a lot of place. It could be simply the mp3 files from the saved detections, and birdnet go will fill the same in some time

They don’t purge at some point?

When the disk is at 95% capacity :) I'm writing a feature in birdnet pi to define a maximum of recordings to keep per species. For example i had 47k mp3 recordings of blackbird. The objective will be to keep the last 7 days, plus x (fire example 1000) recordings sorted by highest confidence

authors: alexbelgium deadrubberboy matthew73210

repo: alexbelgium/hassio-addons


text:
ufw setup

Hi
if I deny all ports via ufw BOTH In and Out, which port should I open for it to work correctly.
say I ran my proxy on port 2020
sudo ufw allow 2020
sudo ufw allow out 2020

the above config disconects users
help me please

I figured it out
I should open port 8888 as well
is it possible to change this code?
`TG_MIDDLE_PROXIES_V4 = {
1: [("149.154.175.50", 8888)], -1: [("149.154.175.50", 8888)],
2: [("149.154.162.38", 80)], -2: [("149.154.162.38", 80)],
3: [("149.154.175.100", 8888)], -3: [("149.154.175.100", 8888)],
4: [("91.108.4.136", 8888)], -4: [("91.108.4.136", 8888)],
5: [("91.108.56.181", 8888)], -5: [("91.108.56.181", 8888)]
}
TG_MIDDLE_PROXIES_V6 = {
1: [("2001:b28:f23d:f001::d", 8888)], -1: [("2001:b28:f23d:f001::d", 8888)],
2: [("2001:67c:04e8:f002::d", 80)], -2: [("2001:67c:04e8:f002::d", 80)],
3: [("2001:b28:f23d:f003::d", 8888)], -3: [("2001:b28:f23d:f003::d", 8888)],
4: [("2001:67c:04e8:f004::d", 8888)], -4: [("2001:67c:04e8:f004::d", 8888)],
5: [("2001:b28:f23f:f005::d", 8888)], -5: [("2001:67c:04e8:f004::d", 8888)]
}`
because I'm being attacked at this port and I get almost a gigabit traffic as I open this port.
any help?

I guess you can open 8888 only for outgoing connections

When I open 8888 outgoing port I get attacked by cycling IPs about a BigaByte/minute

why do you think it's an attack? Do you have an examples of those "cycling IPs"?

because its a continues data stream and does not stop and it changes its destination IP from time to time.
No there isn't any of those IPs in the attackers IP

there is 2 sets of those IPs in the screenshot

well, ok, I don't know what might it be

authors: erfantkerfan seriyps

repo: alexbers/mtprotoproxy


text:
System.ArgumentOutOfRangeException: 'minValue' cannot be greater than maxValue.

Hello,
Sometime I got this problem, do you think it comes from the library?

Thanks for useful package

This is how I call Nlipsum's method
        var paragraph = new Paragraph(1, 10);
        var generator = new LipsumGenerator();
        var content = string.Join(Environment.NewLine, generator.GenerateParagraphs(2, paragraph));

Having the same problem. Looks like the LipsumGenerator has no words internally to choose from.

Having the same problem. Looks like the LipsumGenerator has no words internally to choose from.

A LipsumGenerator needs to have its source text injected. Could you try using the constructor that takes a string and a boolean?
LipsumGenerator lipsum = new LipsumGenerator(Lipsums.LoremIpsum, false);
I realize this is not ideal and would've done it differently had I written it today. I originally wrote this for myself making use mostly of the static methods.

Yes, I have used the second constructor also and it works fine. Thanks for your great work !!

@alexcpendleton This seem to have changed on 1.0, as going back to 0.1.3 works fine.
I understand this is not ideal, but is there any reason the parameterless constructor can't just pass these parameters by default? Sounds like this would be the default use for the class.

@nvivo I'll take a look, I'm not sure what would've changed between the two to cause that. If I had written the library today, the default constructor might use that behavior by default, but I don't want to change it on the people already using the library as-is. I'll give it some more thought, but I'm not inclined to change it at this point.

I don't want to complain, this is a good library. But the point is that I have been using this library in a project for 6 months and suddenly it's broken in 1.0 and I'm having to change this call everywhere.
Maybe the package in nuget was not in sync with what was on github, but I guess this is not about changing the behavior, but reverting to what was working before.

Just for reference, using ILSpy, the code from 0.1.3 that is on nuget:
		public LipsumGenerator()
		{
			this.LipsumText = new StringBuilder(Lipsums.LoremIpsum);
		}

The git history here doesn't show when this was changed. But that's what is published in nuget.

Thank you. The Nuget package was uploaded by someone other than myself so it's possible there were some differences, and it seems that there were. For this is what's in the Nuget package then I'll restore it as soon as possible. Much appreciated.

On Jan 5, 2016, at 9:56 AM, Natan Vivo notifications@github.com wrote:
Just for reference, using ILSpy, the code from 0.1.3 that is on nuget:
    public LipsumGenerator()
    {
        this.LipsumText = new StringBuilder(Lipsums.LoremIpsum);
    }

The git history here doesn't show when this was changed. But that's what is published in nuget.
―
Reply to this email directly or view it on GitHub.

Thanks so much for bringing this to my attention. 1.0.1 is in source and pushed to Nuget. I'm terribly sorry for the mix up here.

Cool. Thanks for fix!

authors: alexcpendleton juanonsoftware nvivo

repo: alexcpendleton/NLipsum


text:
Add scope! macro

Similar to flame's flame_guard, this gives us the possibility to mark a scope so that it gets a begin and end counter and we can be sure that the end counter is incremented even on early exit.

Nice!

authors: alexcrichton llogiq

repo: alexcrichton/coz-rs


text:
Unable to exchange encryption keys

{ code: Session(-5), msg: "Unable to exchange encryption keys" }

How did you fix this?

authors: auser iamgrf


text:
add example for from_str

First step in order to fix https://github.com/alexcrichton/toml-rs/issues/171: add an example for toml::de::from_str
The TOML string used in this example is inspired by the example given on the official TOML repo: https://github.com/toml-lang/toml and code itself is inspired by the example from the index page of this crate: https://docs.rs/toml/0.4.0/toml/index.html#deserialization-and-serialization. I tried to make it a bit shorter and a bit different (in comparison with the index page), maybe I should have only copy/pasted it (but I think user would prefer different examples across pages).
The "name" in TOML is an arbitrary choice (not really, in fact it's the name of my daughter, since the original TOML example uses the name of its creator) I can change it if required.

Awesome, thanks!

repo: alexcrichton/toml-rs


text:
[Feature Request] Put all the answers in collapsible blocks

This will make it easier to try to work out the problems before seeing the answer

 What is 2 + 2
2 + 2 = 4

I can implement this if it is a feature people want

Thank you for the suggestion! I'm a bit hesitant, to be honest. Let's see if this request gets many +1's :)

I was thinking of this for the technical.md, not sure if it would be good for theory.md

I like how theory.md is, without the collapsable blocks.

Collapse feature is good if  you can expand all answers with one click.Clicking Multiple times to expand is not comfy.

I would like to see the collapsible answers implemented. But if it's not happening. How can i build website by forking the repo? I don't see the github action workflow file in the repo, but the workflow still is triggered and the site is built.

The action is coming from github pages, I guess thats why you don't see it

authors: AnirbanPatragithub alexeygrigorev bubblebooy hamzag95 miwojc

repo: alexeygrigorev/data-science-interviews


text:
Feature Request: Animation Easings?

First of all, this is by far the best scroll effects library out there! I was looking for a lightweight alternative to the ScrollMagic + GreenSock stack and this is finally something really useful! Great job!
I was just wondering if there are any plans to add support for easings? Im using lax.js to add some decent scroll effects to our website. As some of the animations stop right inside the viewport, it would be nice if we could add some easing effects to have them slow down before the animation ends.

Heya! Glad you like the library :)
I did start development on momentum/easings this but didn't find a clean way to implement it. Perhaps I should have another look!

@alexfoxy Yes we're still using it on the project. Unfortunately, as the project is still under active development, i cannot post a public link. As soon as the project is published, i will come back and post the link here.

You can achieve momentum via CSS, add this property to the animated element selector:
transition: transform 2s cubic-bezier(.2,.89,.44,1);

You can achieve momentum via CSS, add this property to the animated element selector:
transition: transform 2s cubic-bezier(.2,.89,.44,1);

interesting, do you have an example ?

Sure Alex, here you go
https://codepen.io/drozumek/pen/qBBKxGg
I used cubic bezier function, which decelerated smoothly at the end of transformation. You can achieve any effect this way, for example smooth acceleration at the beginning and at the end (just uncomment second transition and comment first one in my example).

@drozumek very nice. I'll have a think how to incorporate this into the library as an option. Of course it can be achieved with just CSS. Thanks!

@alexfoxy I add easing support as params in this PR https://github.com/alexfoxy/laxxx/pull/70

@Underclassity thanks, I need to check it out.
@chrisribal do you want to take a look and see if PR #70 fits your needs?

@Underclassity thanks for the PR! Looks very promising!
@alexfoxy I justed checked it out and seems to be a really cool solution! I think this way fits all needs of applying easing.

@Underclassity @chrisribal sorry for being slow on this one. Have either of you noticed any performance issues with easing?

@alexfoxy
I did not notice any performance issues. There is a moment with rendering floating-point values, but this needs to be solved separately. In the case of a small difference between the start and end values, the library generates numbers with a large floating point: for example, transform:translateX(9.25e-07px);.

@Underclassity @chrisribal @drozumek closing this issue as I have worked easings into the new 2.0 version.
Check out the alpha here: https://github.com/alexfoxy/laxxx/tree/version-2

authors: Underclassity alexfoxy chrisribal drozumek

repo: alexfoxy/laxxx


text:
Identity Server Security Bug: Unsafe expansion of self-closing HTML tag

Unsafe expansion of self-closing HTML tag
The original Identity Server 4 code base has several medium impact security bugs detected by CodeQL scanning.
Description:
Sanitizing untrusted input for HTML meta-characters is a common technique for preventing cross-site scripting attacks. But even a sanitized input can be dangerous to use if it is modified further before a browser treats it as HTML. A seemingly innocent transformation that expands a self-closing HTML tag from
 to

 may in fact cause cross-site scripting vulnerabilities.
// Deserialize a standard representation
tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase();
wrap = wrapMap[ tag ] || wrapMap._default;
tmp.innerHTML = wrap[ 1 ] + elem.replace( rxhtmlTag, "<$1></$2>" ) + wrap[ 2 ];

This self-closing HTML tag expansion invalidates prior sanitization as  this regular expression  may match part of an attribute value.
CodeQL
// Descend through wrappers to the right content
j = wrap[ 0 ];

Sanitizing untrusted input for HTML meta-characters is a common technique for preventing cross-site scripting attacks. But even a sanitized input can be dangerous to use if it is modified further before a browser treats it as HTML. A seemingly innocent transformation that expands a self-closing HTML tag from
  to

  may in fact cause cross-site scripting vulnerabilities.
Examples

Tool
Rule ID
Query
Source

CodeQL
js/unsafe-html-expansion
View query
.../additional-methods.js:932

CodeQL
js/unsafe-html-expansion
View query
.../jquery.validate.js#L1196-L1196

Issues

Issues

[ ] Issue 116 - https://github.com/alexhiggins732/IdentityServer8/security/code-scanning/116
[ ] Issue 117 - https://github.com/alexhiggins732/IdentityServer8/security/code-scanning/117
[ ] Issue 118 - https://github.com/alexhiggins732/IdentityServer8/security/code-scanning/118
[ ] Issue 119 - https://github.com/alexhiggins732/IdentityServer8/security/code-scanning/119
[ ] Issue 120 - https://github.com/alexhiggins732/IdentityServer8/security/code-scanning/120
[ ] Issue 121 - https://github.com/alexhiggins732/IdentityServer8/security/code-scanning/121
[ ] Issue 122 - https://github.com/alexhiggins732/IdentityServer8/security/code-scanning/122
[x] Issue 125 - https://github.com/alexhiggins732/IdentityServer8/security/code-scanning/123
[x] Issue 125 - https://github.com/alexhiggins732/IdentityServer8/security/code-scanning/124
[x] Issue 125 - https://github.com/alexhiggins732/IdentityServer8/security/code-scanning/125
[x] Issue 125 - https://github.com/alexhiggins732/IdentityServer8/security/code-scanning/126
[x] Issue 125 - https://github.com/alexhiggins732/IdentityServer8/security/code-scanning/127
[x] Issue 125 - https://github.com/alexhiggins732/IdentityServer8/security/code-scanning/128
[x] Issue 125 - https://github.com/alexhiggins732/IdentityServer8/security/code-scanning/129
[x] Issue 125 - https://github.com/alexhiggins732/IdentityServer8/security/code-scanning/130

Recommendation
Use a well-tested sanitization library if at all possible, and avoid modifying sanitized values further before treating them as HTML.
An even safer alternative is to design the application so that sanitization is not needed, for instance by using HTML templates that are explicit about the values they treat as HTML.
Example
The following function transforms a self-closing HTML tag to a pair of open/close tags. It does so for all non-img  and non-area  tags, by using a regular expression with two capture groups. The first capture group corresponds to the name of the tag, and the second capture group to the content of the tag.
function expandSelfClosingTags(html) {
	var rxhtmlTag = /<(?!img|area)(([a-z][^\w\/>]*)[^>]*)\/>/gi;
	return html.replace(rxhtmlTag, "<$1></$2>"); // BAD
}

While it is generally known regular expressions are ill-suited for parsing HTML, variants of this particular transformation pattern have long been considered safe.
However, the function is not safe. As an example, consider the following string:
<div alt="
<x" title="/>
"/>

When the above function transforms the string, it becomes a string that results in an alert when a browser treats it as HTML.
<div alt="
<x" title="></x" >
"/>

References

jQuery:  Security fixes in jQuery 3.5.0
OWASP:  DOM based XSS Prevention Cheat Sheet.
OWASP:  XSS (Cross Site Scripting) Prevention Cheat Sheet.
OWASP  Types of Cross-Site.
Wikipedia:  Cross-site scripting.
Common Weakness Enumeration:  CWE-79.
Common Weakness Enumeration:  CWE-116.

Updates released with #34


text:
Upgrade GitHub actions from Node 16 to Node 20

Node 16-based actions are EoL, we need to upgrade to Node 20-based (LTS) actions.

Some actions still need updating:

actions/configure-pages@v3
actions/upload-artifact@v3
actions/deploy-pages@v2

Pushed out to get the v3.4 features released quicker.

repo: alexnoddings/Tyne


text:
Controls on Page loses state

I have a datatemplateSelector (customcontrols) for the ItemTemplate. However, every time I swipe left or right, the custom controls on the previous page loses its states.
is this the default behaviour or am I missing something?

Default behavior (for now). Advice? Use ViewModels to save the values/states of your controls so you can restore them with bindings.

Okay cool. Sorry for the late reply.
I took a look at the source code and I understand why you built the control the way it is.  Especially with how bad Android is with memory management.
My advice would be to maybe have a property in the control to flag SaveState.... I wouldn't worry too much about this though as I think I am the only one having this problem
Thanks for the support.
Regards

This is something i will engineer after the control has passed Xamarin.Forms.Core PR.

If my work is helping you, please help me back: https://xamarinhq.wufoo.com/forms/nominate-a-xamarin-mvp/
This is what i have done that is community visible:

Alex has been pretty active sharing his knowledge and answering questions in StackOverflow, GitHub and Xamarin Forums.
Alex has been open sourcing Xamarin components and plugin with the community, with more of 10 repositories being maintained on GitHub.
One of Alex's Xamarin.Forms plugin, the CarouselView, is currently being pulled into the Xamarin.Forms core (https://github.com/xamarin/Xamarin.Forms/pull/853). As an stable widget, this control has become the standard for Xamarin.Forms carousel screens with more that 16K downloads in NuGet and more than 100 solved and not open issues.
Another Alex's plugin, the SegmentedControl (https://github.com/alexrainman/SegmentedControl), is a big candidate to be also pulled into Xamarin.Forms core.
Plus Xamarin.Forms UI related plugins, Alex shares plugins to set app icon Badge, Google Analytics and KeyChain access.
Alex shares his knowledge about cutting edge technologies like Couchbase NoSQL and MobileIron integration with Xamarin Apps.

authors: alexrainman oridotaoyebode

repo: alexrainman/CarouselView


text:
new api

Closes #47
Closes #39
Biting the bullet and changing the api for super flexibility

Love the new API 👍

authors: alexreardon nihgwu

repo: alexreardon/memoize-one


text:
Anyway to search with the combination of Country Codes and zip codes?

I use your gem  for finding the city and state/province of a given Country code and zipcode. However when a country code shares the same abbreviation of a US State, it treats it as a US State, providing  incorrect info. Is there anyway around this? Wasn't able to find anything in the documentation about it. Thanks

@brentluna Which geocoding service are use using? This is probably due to how that service will treat the country code. The service may have options which you can pass to it to ensure it treats the country code as a country code and not a US state code.

authors: TrangPham brentluna

repo: alexreisner/geocoder


text:
Old version with MQTT and WiFi

Came back to this code, and realised the new version is significantly streamlined with no WiFi / MQTT support. Wonder if I am missing anything out?

I think the mqtt version is a fork of this repo. Here it is: https://github.com/alexander-heimbuch/marax_timer

Ah my bad, thanks!
On 13 Nov 2022, at 1:38 AM, Alex Rus @.***> wrote:

I think the mqtt version is a fork of this repo. Here it is: https://github.com/alexander-heimbuch/marax_timer
—
Reply to this email directly, view it on GitHubhttps://github.com/alexrus/marax_timer/issues/14#issuecomment-1312535399, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGGT7XOI7ZVQMKVULCRPEYLWH7IXXANCNFSM6AAAAAAR6KBFVU.
You are receiving this because you authored the thread.Message ID: @.***>

authors: alexrus borez


text:
Update

Hi there! Thanks for nice app, works perfectly!
Just wonder if you have plan to update core and app itself? I mean, new features, new look maybe?

Hi @Escanor-87 , really appreciate the kind words.
The priority is update the Core for now. Don't have much capacity to work on the UI right now.

Glad to hear that you are working on it!
Don't leave this project, please, it's the best one out there.
Thanks for your time and hard work 💪

repo: alexsvitlov/iTransmission


text:
Update trade_api.py

XRP support pair

Closing this in favor of https://github.com/alfakini/python-mercadobitcoin/pull/13

authors: alfakini dnmello

repo: alfakini/python-mercadobitcoin


text:
Error: BoxNotFound(hdlr): Not found hdlr

I'm getting this error using videos recoded from phone camera or screen recording -> BoxNotFound(hdlr)
This error doesn't appear when i'm using videos downloaded from social networks or other platfroms.
Ocurs using mp4 = "0.13.0" but read_header works in mp4 = "0.12.0" with all kind of mp4 videos.
let f = std::fs::File::open(temp_file.path()).unwrap();
let size = f.metadata()?.len();
let reader = BufReader::new(f);

let mp4 = mp4::Mp4Reader::read_header(reader, size)?; // -> the error ocurs here

I am also running into this issue, working fine in 0.12, but 0.13 introduces some issue. I think I have narrowed it down to this code block, from meta.rs, but other than that I am at a loss.
When this is executed against my MP4 file, the hdlr_header.name is empty, the BoxHeader::read function is reading typ as 0, which is then can't convert into a BoxType.
 let hdlr_header = BoxHeader::read(reader)?;
        if hdlr_header.name != BoxType::HdlrBox {
            return Err(Error::BoxNotFound(BoxType::HdlrBox));
        }

I have also tried the Allow Hdlr to be not the first in the Meta box  PR, and am still getting the same error.

I can't download the mp4 file from this URL, it just serves me an HTML with a webapp redirecting to the main page

I can't download the mp4 file from this URL, it just serves me an HTML with a webapp redirecting to the main page

Argh, sorry about that, I deleted the file by accident, and I need to fix something on the webapp to make it work correctly (PWA cache busting).
As the GitHub file size limit is 10mb, I have a super short 3mb file here, also the same file in a zip, in case GitHub does anything funky with compression etc
https://github.com/alfg/mp4-rust/assets/32690432/e591052d-98f1-4b67-a4ef-7204234dc420
small_bad_mp4.zip

Briefly looking at the file in MP4Box.js... It appears the file has an empty meta box in the moov box.

This code tries to read it as any other meta box, but as it's empty and doesn't have the hdrl box, it fails.
Now I guess is the time to look at the spec and try to figure out what is the correct behavior here...

ISO/IEC 14496-12:2015 in section 8.11.1 clearly states, seemingly without any exceptions:

The 'meta' box is required to contain a ‘hdlr’ box indicating the structure or format of the ‘meta’ box contents.

It appears to be similar problem to #95 when implementers are interpreting the spec very liberally... In which case it's better to look at actual implementations like ffmpeg

ISO/IEC 14496-12:2015 in section 8.11.1 clearly states, seemingly without any exceptions:

The 'meta' box is required to contain a ‘hdlr’ box indicating the structure or format of the ‘meta’ box contents.

It appears to be similar problem to #95 when implementers are interpreting the spec very liberally... In which case it's better to look at actual implementations like ffmpeg

Can I ask a slightly unrelated question. Where can one read the ISO spec, without having to pay over 200 Swiss Francs from the ISO official website?

Can I ask a slightly unrelated question. Where can one read the ISO spec, without having to pay over 200 Swiss Francs from the ISO official website?

I don't think you are supposed to be able to. But you can find the PDFs in google if you look hard enough

Can I ask a slightly unrelated question. Where can one read the ISO spec, without having to pay over 200 Swiss Francs from the ISO official website?

I don't think you are supposed to be able to. But you can find the PDFs in google if you look hard enough

Haha, I thought that might be the case

My phone (Android-based) produces mp4 files like this, too.
It turns out they, like the mp4 file attached in a comment above, are not actually missing the hdlr box. Instead, something is odd with the meta box. Look at the file in a hex editor. As I understand the spec, the meta box should extend FullBox. That means the 4 bytes meta should be followed by 1 byte for the version number and 3 bytes for flags (all 0). However, in this case, the meta box seems to be extending Box only, which means there is no version number and no flags, and the next 4 bytes in the file are already the size field for the hdlr box (33).
So the call to read_box_header_ext() would probably need to be skipped in this case.
It's interesting that this seems to work in other software. I've looked at the ffmpeg code, it looks like for reading a meta box, they just scan through the file from the start of the meta box until they find the "hdlr" bytes, then jump back 8 bytes to reset the read position to the start of the hdlr box and parse it. If no "hdlr" bytes are found, the function returns without error.
Maybe some mp4 variants simply use Box instead of FullBox for the meta box? My phone says the ftyp is mp42, and the "small_bad_mp4.mp4" attached above says isom.

@w-flo it works, i tested with some videos and works. No more Not found hdlr.
mp4 = { git = "https://github.com/alfg/mp4-rust.git", rev = "55ee392b73801d5aff41dbde36455917e0ac2d19" }

@ajosecueto @mrjackwills It would be interesting to know if #111 fixes this issue for you. I've tested the small_bad_mp4.mp4 from this issue thread, and that one appears to be fixed now.

Sorry, I've not had proper access to my computer or the internet for a while, but I can confirm that it appears to now work when using the following dependency;
mp4 = { git = "https://github.com/alfg/mp4-rust.git", rev = "55ee392b73801d5aff41dbde36455917e0ac2d19" }

Great! Thanks to both of you for testing. Hopefully this will give the PR a good chance of being merged.

Thanks, all. I've been super busy, but I'll try to make time to review and merge soon. Sorry for the wait!

@alfg @w-flo I only tested it against "bad" mp4's, haven't looked into the source of the pr fully, but assume "good" mp4's will still work as before, can test again later

@mrjackwills Thanks. I have a set of "good" mp4s that I use to validate that I will run through. I've been meaning to create a new set of integration tests for these as well.

#95 and #111 are merged. Feel free to try again using the latest in master and I will create a release.
mp4 = { git = "https://github.com/alfg/mp4-rust.git", rev = "d6c38642de48360693132fd07552a454016d71c3" }

This issue is fixed for me when using the master branch, thanks a lot @alfg!

authors: DCNick3 ajosecueto alfg mrjackwills w-flo


text:
IndieS Link

YEEEEEE

WOW I CAN SEE IT ALL

:shipit: !

authors: Tantillizer alfovo


text:
Issues with disasters with the 81 tile mod.

These issues have been prevalent in BP's version of 81 as well.

The disaster infoview map flickers when enough tiles are bought and buildings are built outside the 25 tile area.
If a disaster occurs outside the 25 tiles it will not show up on the infoview.
Evacuation buses have a mind of its own outside the 25 tiles. Sometimes they follow their route, sometimes they drive around in circles, sometimes they head straight to another large shelter and return.

Here's an error relating to the flickering map:
IndexOutOfRangeException: Array index is out of range.   at DisasterManager.SampleDisasterHazardMap (Vector3 pos) [0x00000] in <filename unknown>:0    at CommonBuildingAI.GetColor (UInt16 buildingID, .Building& data, InfoMode infoMode) [0x00000] in <filename unknown>:0    at PrivateBuildingAI.GetColor (UInt16 buildingID, .Building& data, InfoMode infoMode) [0x00000] in <filename unknown>:0    at ResidentialBuildingAI.GetColor (UInt16 buildingID, .Building& data, InfoMode infoMode) [0x00000] in <filename unknown>:0    at BuildingManager.UpdateColorMap (UnityEngine.Texture2D colorMap) [0x00000] in <filename unknown>:0    at RenderManager.UpdateColorMap () [0x00000] in <filename unknown>:0    at RenderManager.LateUpdate () [0x00000] in <filename unknown>:0
Here's a video showing off the bugs. I had to use VLC because OBS wasn't working for me.
https://youtu.be/ZkOISpHiC48

Copy pasted from steam thread
One fight with SteamCMD later I do have to say nice work, you almost fixed everything except you might have broke the tsunami infoview as I couldn't get anything highlighted in the tsunami infoview. The tsunami is the only infoview that has this issue everything else worked perfectly.

Everything works now.


text:
Create an angular.js build that adds a directive

Probably like https://github.com/Siyfion/angular-typeahead did.

I can do that once the lib is ready

Fixed in 0.3.0

authors: pixelastic redox


text:
避免遍历dexfile获取生成类名，缩短启动时间的建议

我发现ClassUtils.getFileNameByPackageName这个方法耗时很高，主要是遍历dexfile获取arouter生成class类名这个操作造成的。
我做了实验，在有4个dex，3个生成类的情况下。如果是外部传入生成类名，省去遍历dexfile获取类名这步操作，app的启动时间能缩短100ms左右。虽然这样做会使接入麻烦点。但确实能缩短不少启动时间。

这块确实会有耗时，不过这个问题在于要通过包名拿具体的映射文件，拿之前并不知道有多少个映射文件，因为这个包下有多少映射文件完全由用户打包了多少个模块动态决定的。

这个问题导致了ANR，尤其4.4.x机型，有解决方案么 @zhi1ong

anr的包发给我，还有手机型号，我这边的Android 4.4.x 没问题  mail:to=zhilong.liu@aliyun.com

ClassUtils.getFileNameByPackageName这个方法的耗时占用了 Application.onCreate() 总耗时的一半, 有优化方法吗?

ClassUtils.getFileNameByPackageName这个方法的耗时占用了 Application.onCreate() 方法耗时的一半, 有优化方法吗?

@linsea 用 arouter-register 插件

repo: alibaba/ARouter


text:
anchor 设为 [] 后，不断拖动节点会导致线脱落

版本

请检查问题是否存在于最新版本中
是

环境

win7、浏览器:  77.0.3865.120（正式版本） （64 位）、gg-editor: 2.0.4

重现步骤
anchor: []

CustomNode 设置 anchor: [] 之后， 不断地拖动一个叶子节点，会导致连线脱落

期望的结果是什么
连线不会脱落
实际的结果是什么

想问一个问题，在取消了锚点后，如何使用连线连接两个节点？

想问一个问题，在取消了锚点后，如何使用连线连接两个节点？
我也是直接设置了 组件的 data 属性，

authors: Aragornzero dongceha

repo: alibaba/GGEditor


text:
[Feature] Adding more data into existing label vertex/edge

Describe the bug
We have asked by users for this feature for many times..
Additional context
Add any other context about the problem here.

Do you mean a mutable graph? or add a new property to a PG?

authors: sighingnow yecol

repo: alibaba/GraphScope


text:
[FEATURE] Add metrics documentation and grafana dashboard

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
/cc @who-need-to-know
/assign @who-can-help-you

This issue solved. #117

repo: alibaba/RemoteShuffleService


text:
container-twoColumn类型添加header,异步加载数据header被覆盖不能显示

container-twoColumn类型添加header,异步加载数据header被覆盖不能显示

框架不支持异步加载

repo: alibaba/Tangram-Android


text:
use dj with oss and random sample filter

由于是第一次对开源项目进行pr，而且可能使用的对象存储方式不同，故可能有些地方需要修改，麻烦了！需要我再次修改的话可以联系我！

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.谢硕 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

嗨，感谢你的contribution！
注意到你的PR未能通过precommit测试与单测，建议你：

在提交前使用pre-commit工具进行预检查，可参考开发者指南中的编码规范章节
在该PR中的Checks tab中检查该PR单测记录中的出错原因，fix后继续提交commit

如有任何需要帮助的地方，可随时联系我们~

authors: CLAassistant HYLcool hitszxs

repo: alibaba/data-juicer


text:
Merge pull request #1 from alibaba/master

拉取最新的master代码
What is the purpose of the change
XXXXX
Brief changelog
XX
Verifying this change
XXXX
Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Make sure there is a GITHUB_issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a GITHUB issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[ ] Format the pull request title like [Dubbo-XXX] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[ ] Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test  to make sure integration-test pass.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

更新master的最新代码

repo: alibaba/dubbo


text:
jsonpath正确语法报illeal jsonpath syntax

大佬您好，使用fastjson的时候发现一个问题，
$.adList[?(@.catIds.length>0)].length这个语法不支持。
具体信息如下：
fastjson版本：
1.2.60
jsonpath:
$.adList[?(@.catIds.length>0)].length
运行时报错：
com.alibaba.fastjson.JSONPathException: illeal jsonpath syntax. $.adList[?(@.catIds.length>0)].length
at com.alibaba.fastjson.JSONPath$JSONPathParser.readName(JSONPath.java:1584)
at com.alibaba.fastjson.JSONPath$JSONPathParser.readOp(JSONPath.java:1543)
at com.alibaba.fastjson.JSONPath$JSONPathParser.parseArrayAccessFilter(JSONPath.java:857)
at com.alibaba.fastjson.JSONPath$JSONPathParser.parseArrayAccess(JSONPath.java:786)
at com.alibaba.fastjson.JSONPath$JSONPathParser.readSegement(JSONPath.java:759)
at com.alibaba.fastjson.JSONPath$JSONPathParser.explain(JSONPath.java:1648)
at com.alibaba.fastjson.JSONPath.init(JSONPath.java:61)
at com.alibaba.fastjson.JSONPath.eval(JSONPath.java:71)
at com.alibaba.fastjson.JSONPath.eval(JSONPath.java:455)

目前api好像还不支持。顶多拿到catIds的value对象进行 有限 处理。这些处理，如下:

数值过滤(== != < > <= >= 等)
字符串过滤(=~ like等)

但你的catIds对应的数组对象，目前暂不能根据数组属性(length)进行过滤

解析流程流程如下：
Object parseArrayAccessFilter(boolean acceptBracket) {
    // omitted

    boolean self = false;
    if (ch == '@') {...}
    // 提取 path 中的 keyName
    String propertyName = readName();

    skipWhitespace();

    // ?(key) 型断言处理
    if (predicateFlag && ch == ')') {...}

    // [key] 型数组处理
    if (acceptBracket && ch == ']') {...}

    // 上面获取操作符左边的keyName
    // 当前 获取运算符
    Operator op = readOp();
    // 后面处理 运算符右边的数据
    // ?(key op ptn)
    // [key op ptn]

    if (op == Operator.BETWEEN || op == Operator.NOT_BETWEEN) {...}
    if (op == Operator.IN || op == Operator.NOT_IN) {...}
    if (ch == '\'' || ch == '"') {...}
    if (isDigitFirst(ch)) {...} else if (ch == '$') {...} else if (ch == '/') {...}

    // 处理 null/true/false 关键字
    if (ch == 'n') {} else if (ch == 't') {} else if (ch == 'f') {}
    throw new UnsupportedOperationException();
    // accept(')');

    // omitted
}

@hulog 可以支持一下这种情况吗？jmeter，com.jayway.jsonpath都是支持的

authors: hulog kevlxy

repo: alibaba/fastjson


text:
[BUG]Long自定义序列化失效

问题描述
简要描述您碰到的问题。
环境信息
请填写以下信息：

OS信息：  win10
JDK信息： jdk11
版本信息：2.0.16

重现步骤
如何操作可以重现该问题：
package cn.nextop.gadget.json.fastjson;
import java.lang.reflect.Type;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;

import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONWriter;
import com.alibaba.fastjson2.writer.ObjectWriter;

/**
 * @author Baoyi Chen
 */
public class Main {
	public static void main(String[] args) {
		JSON.register(Long.class, new ObjectWriter<Long>() {
			@Override
			public void write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) {
				Long value = (Long) object;
				if (value == null) jsonWriter.writeNull(); else jsonWriter.writeString(Long.toString(value));
			}
		});

		JSON.register(BigDecimal.class, new ObjectWriter<BigDecimal>() {
			@Override
			public void write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) {
				BigDecimal value = (BigDecimal) object;
				if (value == null) jsonWriter.writeNull(); else jsonWriter.writeString(value.toPlainString());
			}
		});

		Map<String, Long> map = new HashMap<>();
		map.put("0", 0L);
		String s = JSON.toJSONString(map);
		System.out.println(s);
	}
}

期待结果
{"0":"0"}

实际输出
{"0":0}

see issue 820

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.17-SNAPSHOT/
问题已修复，请用2.0.17-SNAPSHOT版本验证，2.0.17版本可能在这个周末发布

@wenshao 还是有问题
import java.lang.reflect.Type;
import java.math.BigDecimal;
import java.util.LinkedList;
import java.util.List;

import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONWriter;
import com.alibaba.fastjson2.writer.ObjectWriter;

/**
 * @author Baoyi Chen
 */
public class Main {
	public static void main(String[] args) {
		JSON.register(Long.class, new ObjectWriter<Long>() {
			@Override
			public void write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) {
				Long value = (Long) object;
				if (value == null) jsonWriter.writeNull(); else jsonWriter.writeString(Long.toString(value));
			}
		});

		JSON.register(BigDecimal.class, new ObjectWriter<BigDecimal>() {
			@Override
			public void write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) {
				BigDecimal value = (BigDecimal) object;
				if (value == null) jsonWriter.writeNull(); else jsonWriter.writeString(value.toPlainString());
			}
		});

		List<Long> list = new LinkedList<>();
		list.add(0L);

		List<BigDecimal> list1 = new LinkedList<>();
		list1.add(new BigDecimal("0.11"));

		System.out.println(JSON.toJSONString(list));
		System.out.println(JSON.toJSONString(list1));
	}
}

期待
["0"]
["0.11"]

实际
[0]
[0.11]

我感觉不能覆盖默认行为的代码要仔细考虑一下，这么改bug很难覆盖全面

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.17-SNAPSHOT/
问题已修复，请用2.0.17-SNAPSHOT版本验证，2.0.17版本可能在这个周末发布
同时支持一个新的Feature，内置支持的性能更好：
List list = JSONArray.of(0L);
String s = JSON.toJSONString(list, JSONWriter.Feature.WriteLongAsString);
assertEquals("[\"0\"]", s);

https://github.com/alibaba/fastjson2/releases/tag/2.0.17
问题已修复，请用新版本

问题依然存在

authors: leonchen83 wenshao xingfudeshi


text:
序列化和反序列化能否增加对防御XSS攻击的支持？

请描述您的需求或者改进建议
序列化和反序列化能否增加对防御XSS攻击的支持？
请描述你建议的实现方案
建议在JSONReader.Feature和JSONWriter.Feature增加防御XSS攻击的配置
转义方法可参考org.springframework.web.util.HtmlUtils类
描述您考虑过的替代方案
对您考虑过的任何替代解决方案或功能的描述。
附加信息

已经补上类似FASTJSON 1.x SerializeFeature.BrowserSecure一样的功能，用法同样了类似：
Model model = new Model();
model.name = "<>";
String str = JSON.toJSONString(model, JSONWriter.Feature.BrowserSecure);
assertEquals("{\"name\":\"\\u003c\\u003e\"}", str);

 public static class Model {
        public String name;
}

好像跟我的期望有出入

我是想在上面配置里加上配置

发送json请求后

这里接收到的数据是转义后的数据  <script></script&gt

通过\uXXXX转义也是安全的

JSONReader.Feature中好像没有相关配置

Reader不需要做额外配置吧

https://github.com/alibaba/fastjson2/releases/tag/2.0.21
请用新版本

前端给后端传json数据，后端用对象接收，怎么接收转义后的数据？

Reader不需要做额外配置吧

前端给后端传json数据，后端用对象接收，怎么接收转义后的数据？

我前端post的json对象为
{
"password": "test123",
"username": "

上面的<>是转义后的，& lt; & gt;这样的

authors: WilliamHWM XuJincai wenshao


text:
常量修改不生效

发现一个问题。
假如A用到了B的一个常量，那么当只修改B里的这一个常量的时候，运行之后A的值还是之前的，除非修改A文件（譬如加个空行或删个空行的）A才会跟着改。
目测这和Java及Buck同样原理的编译机制有关（把常量直接编译到A里面，而A文件又没有检测到修改所以没有重新编译）。

@msdx 跟#228 提到的类似，通过反编译可以看到实际上还是修改了，应该是因为final修饰了常量，导致的在运行期没有重新加载...

@lomanyong 如果我在A加个空行之类的，再编译一下，则能够生效。

能否做到对于这种情况，也检测到A也应该被重新编译和加载？

@msdx 不好检测其实，这里涉及到freeline现在也存在的一个问题，抽象类的改动容易触发运行期出错。抽象类的变更跟final field类似，重新编译的时候需要把引用或者继承的类一起重新编译。
带来的问题是我们需要在编译期收集抽象类与继承类的关系、final class以及final field与引用类的关系，并在增量编译时做判断是否需要将引用类一起进入重新编译的流程...
如果做到上面这一步的话，就可以解决抽象类/final field or class在增量编译时报错或者不生效的问题了...
抽象类的问题在规划中，之后会去看下怎么处理比较好...

@lomanyong 感谢释疑，明白。我没疑问了。这个issue 你可以选择关闭了。

authors: lomanyong msdx

repo: alibaba/freeline


text:
有搭建开发环境入门资料吗

有搭建开发环境入门资料吗

文档在更新中，这周会搞的差不多，可以先安装试用下：https://higress.io/zh-cn/docs/user/quickstart.html

看了一下项目很多依赖都是用的 submodule 去管理，git mod replace 去引用的。提供了一些 makefile targets 去构建环境。
可以 clone 下来试试 make build @hadoop835

文档在更新中，这周会搞的差不多，可以先安装试用下：https://higress.io/zh-cn/docs/user/quickstart.html

可以在文档里面加上 WASM plugin的测试方法吗？
当前 WASM的入门配置似乎有点繁琐：
https://github.com/alibaba/higress/blob/main/plugins/wasm-go/README.md

@liweijian 嗯，这个例子包含了从wasm编译，镜像构建的流程，如果想直接测试可以用这个文档里的yaml：
https://github.com/alibaba/higress/tree/main/plugins
后面我增加下quickstart

@johnlanni 我根据快速入门，运行
❯ curl localhost/foo
no healthy upstream%
❯ curl localhost/bar
no healthy upstream%

是某一步漏了吗？ macbook M1 pro的

@liweijian 可能是这个 foo 和 bar 的pod镜像没拉下来，你 kubectl get po 看看，后面我搞个国内仓库的镜像

@johnlanni
❯ kubectl get po
NAME      READY   STATUS             RESTARTS       AGE
bar-app   0/1     CrashLoopBackOff   13 (45s ago)   42m
foo-app   0/1     CrashLoopBackOff   13 (41s ago)   42m

对了，我们是IDEA研究院，WASM是我们的研究方向之一 https://idea.edu.cn/dii.html
后续我们想给higress开发一些wasm plugin配套的工具，你方便加一下我wx吗 bGFtYmRhLWNhbGN1bHVz (base64 decode ？

authors: Xunzhuo hadoop835 johnlanni liweijian

repo: alibaba/higress


text:
能补充关于如何使用数据源的文档吗

引擎版本 1.0.6
ext 版本 1.0.3

需求：后端返回一个字符串，通过数据源获取到，然后在text组件中显示。

参考一下 demo 中用法，https://lowcode-engine.cn/demo/mock/info.json，返回个 JSON 对象吧~

authors: CChenXuejun LeoYuan

repo: alibaba/lowcode-engine


text:
test: add test case for apis/opts/ports.go

Ⅰ. Describe what this PR did
add unit-test from apis/opts/ports.go
Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how you did it
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

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

authors: BuggMaker CLAassistant

repo: alibaba/pouch


text:
feature: implement ReadOnlyRootfs and NoNewPrivs of cri manager

Signed-off-by: YaoZengzeng yaozengzeng@zju.edu.cn

Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?

fixes part of #635
Ⅲ. Describe how you did it
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Codecov Report

Merging #935 into master will decrease coverage by 0.03%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master     #935      +/-   ##
==========================================
- Coverage   13.45%   13.41%   -0.04%
==========================================
  Files         122      123       +1
  Lines        8000     8019      +19
==========================================
  Hits         1076     1076
- Misses       6828     6847      +19
  Partials       96       96

Impacted Files
Coverage Δ

daemon/mgr/spec.go
0% <ø> (ø)
:arrow_up:

daemon/mgr/container_types.go
15.38% <ø> (ø)
:arrow_up:

daemon/mgr/spec_root.go
0% <0%> (ø)

daemon/mgr/cri_utils.go
30.64% <0%> (-0.22%)
:arrow_down:

daemon/mgr/container_utils.go
56.19% <0%> (-4.64%)
:arrow_down:

daemon/mgr/spec_process.go
0% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 890bdca...1e95be8. Read the comment docs.

@allencloud PTAL.

LGTM

authors: YaoZengzeng allencloud codecov-io


text:
Sealer run kubernetes 1.20.x using containerd , build and delete error

What happened:
What you expected to happen:
Sealer run kubernetes 1.20.x using containerd,  when building, Report an error ：

and when delete ,Report an error ：

The mirror I made is as follows:
registry-1.docker.io/bryantrh/kubernetes-withflannel-containerd-amd64:v1.20.11
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:

sealer version (use sealer version): v0.5.0
Cloud provider or hardware configuration:
OS (e.g: cat /etc/os-release):  Ubuntu 18.04.5 LTS
Kernel (e.g. uname -a): 4.15.0-136-generic
Install tools:
Others:

hi,@bryant-rh ,at present ,our sealer registry still use docker as its runtime.we need to be compatible with containerd not only the k8s runtime.i will open an issue later to handle this.

hi,@bryant-rh ,at present ,our sealer registry still use docker as its runtime.we need to be compatible with containerd not only the k8s runtime.i will open an issue later to handle this.

我通过修改基础镜像，已经解决了这个问题。即部署1.20版本的k8s，runtime采用containerd，但是修改了基础镜像init-registry.sh 脚本，依然在master安装了docker来启动私有镜像仓库，就解决了这个问题，目前我这边已经制作了k8s-1.20.11版本，runtime为containerd的基础镜像（包括支持amd和同时支持amd64&arm64）,已经在几个环境中用起来了。sealer的确很灵活

repo: alibaba/sealer


text:
[Nacos Config] config[dataId=apu-gateway-prod.yaml, group=PROD] is empty

启动报错，nacos能正常访问，请各位大佬帮忙看看呢。

读取不到配置

springBoot 2.6.13
springCloudAlibaba 2021.0.5.0

给个复现例子

authors: UpdateCw yuluo-yx

repo: alibaba/spring-cloud-alibaba


text:
Greenwich

Describe what this PR does / why we need it
Unified Dubbo version management
Does this pull request fix one issue?
Fixes#789
Describe how you did it

Delete Dubbo coordinates in spring cloud starter Dubbo POM file
Maintain Dubbo coordinates in spring cloud Alibaba dependencies

Describe how to verify it
Run the mvn clean install command to verify whether it can be compiled
Special notes for reviews
nothing

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.5 out of 8 committers have signed the CLA.:white_check_mark: chuntaojun:white_check_mark: yuhuangbin:white_check_mark: mercyblitz:white_check_mark: SoulSong:white_check_mark: theonefx:x: HaojunRen:x: fangjian0423:x: ligang2495You have signed the CLA already but the status is still pending? Let us recheck it.

nothing

authors: CLAassistant niuzhiweimr


text:
Install of 0.1.4 requires Git?

Why do I need to have Git installed in order to install Structure-View?
Installing “structure-view@0.1.4” failed.Hide output…
Failed to install structure-view because Git was not found.

The structure-view package has module dependencies that cannot be installed without Git.

You need to install Git and add it to your path environment variable in order to install this package.

You can install Git by downloading, installing, and launching GitHub for Windows: https://windows.github.com

Run apm -v after installing Git to see what version has been detected.

Gitarian

Update: Manual installation of release 0.1.4 seems to have worked. But trying to run it (Structure View: Show) throws another error:
Failed to activate the structure-view package
Cannot find module 'jquery'
Show Stack Trace
The error was thrown from the structure-view package. You can help by creating an issue. Please explain what actions triggered this error.

Strange, seems I'm the only one having these problems.

#4 Duplicated issue

Hi John,
thank you for explaining the root causes - and sorry for duplication, I should have read better in the first place.
After installing Git it does work. Now I cant turn my actual goal, adding support for another (simple) language.
But since I'm totally new to Atom and Git these will become some trial & error fun. ;-)

Wow PR is welcomed!!! 💪

Hi John,
I just finished my first small change (support for soft-wrapped lines).
Though I'm a total newbie regarding GitHub, I did get the general procedure goes like this.

Clone and prepare the repository --> [done]
Make your changes --> [done]
Commit (to local repo) --> [done]

What's next? Push is blocked (of course). Do I have to fork you repo to propagate my changes to you?

You should fork this project first, then commit and push to your repo, at last submit a pull request.

authors: Joouis gitarian

repo: alibaba/structure-view


text:
有办法获取到Downstream的SocketFD吗？

需要获取SocketFd，发现默认的全局变量里面不含，有什么办法可以获取到吗？

@40lsgy1 可以描述一下你这个需求背景吗？

repo: alibaba/tengine


text:
Why set the max-width?

[ ] https://github.com/alibaba/uform/blob/b9d45049121d22e7caeb89b74022b8b9b6a86913/packages/antd/src/utils.js#L29

why there is the max-width?
How can i custom it or remove it ?
and why the other component doesn't have this rule, eg: Input ?

这个问题你可以通过在x-props中传style属性来自定义长度

@janryWang 那为什么要设一个这样的max-width呢？ 而且仅仅只有select设置了，导致select跟其他组件在一起显得长度不一致

@janryWang 那为什么要设一个这样的max-width呢？ 而且仅仅只有select设置了，导致select跟其他组件在一起显得长度不一致
个人觉得这种maxwidth之类的属性应该让用户自己自定义比较好，组件不需要care

嗯，赞同，只是这份代码，一开始不是我加的，是另外一个同学加的，我需要了解清楚他当时加这个是为了解决什么问题

@janryWang 那为什么要设一个这样的max-width呢？ 而且仅仅只有select设置了，导致select跟其他组件在一起显得长度不一致
个人觉得这种maxwidth之类的属性应该让用户自己自定义比较好，组件不需要care

嗯，赞同，只是这份代码，一开始不是我加的，是另外一个同学加的，我需要了解清楚他当时加这个是为了解决什么问题

当时加的时候只是避免100%长度占太长，可以把max-width属性去掉让用户自定义好了

@stkevintan 欢迎提个PR解决这个问题吧

authors: cnt1992 janryWang stkevintan

repo: alibaba/uform


text:
uform list为Table，当editable为false时，“操作”列应该不展示

How would you tag this issue?
uform list为Table，当editable为false时，“操作”列应该不展示
案例：https://w02pl.csb.app/

目前这个功能并不支持，推荐自己写个自定义组件来控制

authors: janryWang zhaowei-plus


text:
Mr/nullable

In context to https://github.com/allaboutapps/nullable/pull/2 - make it easier for us to catch generation problems earlier with nullable after upgrades to goswagger.
No sure if we should add dedicated binding testing from this to go-starter, feels like this should continue to live in allaboutapps/nullable.

btw: we will need to switch to allaboutapps/nullable again before merging this of course. https://github.com/allaboutapps/nullable/pull/2 comes first.

repo: allaboutapps/go-starter


text:
Adds the capability to read molecules from tar.gz files

Adds the capability to read molecules from tar.gz files in large datasets such as ornl_aisd_ex.
An input dataset can thus contain tar.gz files or molecule directories directly. The tar files will be distributed amongst process just as molecule directories are distributed for parallel processing.
Additional input arguments --datafile and --tmpfs are added. datafile can be 'mollist.txt'. tmpfs is recommended for use with tar.gz files to denote a temporary location where a tar.gz file can be extracted.

cc @jychoi-hpc
Could you test this out before it is merged?

On Frontier, I got some errors. First, I tried to run train_discrete_uv_spectrum.py but got the following error:
  File "/lustre/orion/phy122/world-shared/jyc/frontier/HydraGNN-pr8/examples/dftb_uv_spectrum/train_discrete_uv_spectrum.py", line 247, in <module>
    total = DFTBDataset(
  File "/lustre/orion/phy122/world-shared/jyc/frontier/HydraGNN-pr8/examples/dftb_uv_spectrum/train_discrete_uv_spectrum.py", line 138, in __init__
    data_object = dftb_to_graph(mdir, dftb_node_types, var_config)
  File "/lustre/orion/phy122/world-shared/jyc/frontier/HydraGNN-pr8/examples/dftb_uv_spectrum/train_discrete_uv_spectrum.py", line 72, in dftb_to_graph
    data = generate_graphdata_from_rdkit_molecule(
  File "/lustre/orion/world-shared/phy122/jyc/frontier/HydraGNN-pr8/hydragnn/utils/smiles_utils.py", line 104, in generate_graphdata_from_rdkit_molecule
    if atomicdescriptors_torch_tensor is not None:
AttributeError: 'dict' object has no attribute 'shape'

I remember we did some changes around atomic descriptors. @allaffa may remember something. If we move this code to the main repo, will be the problem gone?
Next, I tried to runtrain_discrete_uv_spectrum.py but the the following error happened:
  File "/lustre/orion/phy122/world-shared/jyc/frontier/HydraGNN-pr8/examples/dftb_uv_spectrum/train_smooth_uv_spectrum.py", line 367, in <module>
    total = DFTBDataset(
  File "/lustre/orion/phy122/world-shared/jyc/frontier/HydraGNN-pr8/examples/dftb_uv_spectrum/train_smooth_uv_spectrum.py", line 161, in __init__
    data_object = dftb_to_graph(mdir, dftb_node_types, var_config)
  File "/lustre/orion/phy122/world-shared/jyc/frontier/HydraGNN-pr8/examples/dftb_uv_spectrum/train_smooth_uv_spectrum.py", line 77, in dftb_to_graph
    ytarget = np.loadtxt(spectrum_filename, usecols=1, dtype=np.float32)
  File "/lustre/orion/world-shared/phy122/jyc/frontier/sw/anaconda3/2022.10/lib/python3.9/site-packages/numpy/lib/npyio.py", line 1356, in loadtxt
    arr = _read(fname, dtype=dtype, comment=comment, delimiter=delimiter,
  File "/lustre/orion/world-shared/phy122/jyc/frontier/sw/anaconda3/2022.10/lib/python3.9/site-packages/numpy/lib/npyio.py", line 975, in _read
    fh = np.lib._datasource.open(fname, 'rt', encoding=encoding)
  File "/lustre/orion/world-shared/phy122/jyc/frontier/sw/anaconda3/2022.10/lib/python3.9/site-packages/numpy/lib/_datasource.py", line 193, in open
    return ds.open(path, mode, encoding=encoding, newline=newline)
  File "/lustre/orion/world-shared/phy122/jyc/frontier/sw/anaconda3/2022.10/lib/python3.9/site-packages/numpy/lib/_datasource.py", line 533, in open
    raise FileNotFoundError(f"{path} not found.")
FileNotFoundError: /tmp/jyc/ornl_aisd_ex_155/mol_1627499/EXC-smooth.DAT not found.

Do we expect EXC-smooth.DAT in the tar files? Or, should users need to run something before this?
Here is my command line used:
srun -n4 mkdir /tmp/$USER
srun -n32 -c4 \
    python -u examples/dftb_uv_spectrum/train_discrete_uv_spectrum.py \
    --preonly --input_data /lustre/orion/lrn026/world-shared/kmehta/datasets/ornl-aisd-ex \
    --tmpfs /tmp/$USER

On Frontier, I got some errors. First, I tried to run train_discrete_uv_spectrum.py but got the following error:
  File "/lustre/orion/phy122/world-shared/jyc/frontier/HydraGNN-pr8/examples/dftb_uv_spectrum/train_discrete_uv_spectrum.py", line 247, in <module>
    total = DFTBDataset(
  File "/lustre/orion/phy122/world-shared/jyc/frontier/HydraGNN-pr8/examples/dftb_uv_spectrum/train_discrete_uv_spectrum.py", line 138, in __init__
    data_object = dftb_to_graph(mdir, dftb_node_types, var_config)
  File "/lustre/orion/phy122/world-shared/jyc/frontier/HydraGNN-pr8/examples/dftb_uv_spectrum/train_discrete_uv_spectrum.py", line 72, in dftb_to_graph
    data = generate_graphdata_from_rdkit_molecule(
  File "/lustre/orion/world-shared/phy122/jyc/frontier/HydraGNN-pr8/hydragnn/utils/smiles_utils.py", line 104, in generate_graphdata_from_rdkit_molecule
    if atomicdescriptors_torch_tensor is not None:
AttributeError: 'dict' object has no attribute 'shape'

I remember we did some changes around atomic descriptors. @allaffa may remember something. If we move this code to the main repo, will be the problem gone?
Next, I tried to runtrain_discrete_uv_spectrum.py but the the following error happened:
  File "/lustre/orion/phy122/world-shared/jyc/frontier/HydraGNN-pr8/examples/dftb_uv_spectrum/train_smooth_uv_spectrum.py", line 367, in <module>
    total = DFTBDataset(
  File "/lustre/orion/phy122/world-shared/jyc/frontier/HydraGNN-pr8/examples/dftb_uv_spectrum/train_smooth_uv_spectrum.py", line 161, in __init__
    data_object = dftb_to_graph(mdir, dftb_node_types, var_config)
  File "/lustre/orion/phy122/world-shared/jyc/frontier/HydraGNN-pr8/examples/dftb_uv_spectrum/train_smooth_uv_spectrum.py", line 77, in dftb_to_graph
    ytarget = np.loadtxt(spectrum_filename, usecols=1, dtype=np.float32)
  File "/lustre/orion/world-shared/phy122/jyc/frontier/sw/anaconda3/2022.10/lib/python3.9/site-packages/numpy/lib/npyio.py", line 1356, in loadtxt
    arr = _read(fname, dtype=dtype, comment=comment, delimiter=delimiter,
  File "/lustre/orion/world-shared/phy122/jyc/frontier/sw/anaconda3/2022.10/lib/python3.9/site-packages/numpy/lib/npyio.py", line 975, in _read
    fh = np.lib._datasource.open(fname, 'rt', encoding=encoding)
  File "/lustre/orion/world-shared/phy122/jyc/frontier/sw/anaconda3/2022.10/lib/python3.9/site-packages/numpy/lib/_datasource.py", line 193, in open
    return ds.open(path, mode, encoding=encoding, newline=newline)
  File "/lustre/orion/world-shared/phy122/jyc/frontier/sw/anaconda3/2022.10/lib/python3.9/site-packages/numpy/lib/_datasource.py", line 533, in open
    raise FileNotFoundError(f"{path} not found.")
FileNotFoundError: /tmp/jyc/ornl_aisd_ex_155/mol_1627499/EXC-smooth.DAT not found.

Do we expect EXC-smooth.DAT in the tar files? Or, should users need to run something before this?
Here is my command line used:
srun -n4 mkdir /tmp/$USER
srun -n32 -c4 \
    python -u examples/dftb_uv_spectrum/train_discrete_uv_spectrum.py \
    --preonly --input_data /lustre/orion/lrn026/world-shared/kmehta/datasets/ornl-aisd-ex \
    --tmpfs /tmp/$USER

@jychoi-hpc I think there is a bug in the code that I wrote for the function dftb_to_graph
We need to replace
data = generate_graphdata_from_rdkit_molecule(
        mol, ytarget, dftb_node_types, var_config
    )

with
data = generate_graphdata_from_rdkit_molecule(
        mol, ytarget, dftb_node_types, **var_config=var_config**
    )

This works now. I tried it on Frontier and it was successful.

Any more changes coming to this PR? Jong has successfully tested this on Frontier. If Max does not have any more changes or suggestions, I will merge this PR.

@kshitij-v-mehta @jychoi-hpc
can we merge this PR into my ranch ?

authors: allaffa jychoi-hpc kshitij-v-mehta

repo: allaffa/HydraGNN


text:
data.cfg file

@allanglen Would you be willing to share your data config file for reference? I cannot figure out how to adjust the TAS indicator with the encoder. I did get it moving erratically with the "laminar/c172/knob_TAS" custom ref, but not correctly. Did you get yours to move correctly?

Did you get the 7 segment transponder to work? Mine comes up all 8s

@mccluress I'm using saitek radios, so I don't really have that issue.

Hello allanglen
. I'm asking for help
I am a computer engineer from Iran. I want to create a 172 Sesena simulator.
If you start from start to build.
I need your help. Thanks
amoghaddam.a@gmail.com
00989156957768
afshin zabihi moghadam

Apologies for the very slow response on this. I have moved and all of my equipment and the simulator are currently in storage.
I didn't have any problems with the encoder moving erratically but that may depend on which version or ArdSimX you are using as there have been several changes to how encoder acceleration and smoothing are handled.

So for erratic encoder movement you need to add a 10k resistors to the 5v and signal wire on the multiplexer

So for erratic encoder movement you need to add a 10k resistors to the 5v and signal wire on the multiplexer

That really depends on your system, wire lengths, etc. For anyone reading this in the future, it's best just to read all the documentation on SimVim's website.

authors: Austinthemighty acirinelli afshinjaam allanglen mccluress


text:
How many tokens were trained for 7B model.

The paper and the readme both say that 2.5 T tokens were trained. However, the corresponding config says 2 T tokens.
ReadMe:
https://github.com/allenai/OLMo/blob/26392798cbc4d9ac3898bd2949e77042220bf3f8/README.md?plain=1#L49
Config:
https://github.com/allenai/OLMo/blob/26392798cbc4d9ac3898bd2949e77042220bf3f8/configs/official/OLMo-7B.yaml#L74C1-L74C13

We had to make configuration tweaks mid-run in order to do training for more than 1 epoch (https://github.com/allenai/OLMo/issues/584). The 2.5T token count is accurate.

repo: allenai/OLMo


text:
Fluxtomize with multiple levels of subdirectories

Allow fluxtomize to process nested subdirectories
Relates to: https://github.com/allenporter/flux-local/issues/295

Thank you didn't realize you also sent a PR in addition to an issue -- I will take a look today.

Oh i see this just came in today, great

Thank you for the PR, I adjusted the description a bit and it looks good overall. Do you mind removing the dead code also then we can merge and i'll release a new version of the library with your fix.

Codecov Report

Merging #298 (912fdd7) into main (1fb9d4b) will decrease coverage by 0.07%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #298      +/-   ##
==========================================
- Coverage   91.87%   91.81%   -0.07%
==========================================
  Files          16       16
  Lines        1661     1661
==========================================
- Hits         1526     1525       -1
- Misses        135      136       +1

Files Changed
Coverage Δ

flux_local/kustomize.py
90.55% <100.00%> (-0.79%)
:arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

@allenporter thank you for the approval, I fixed the linter issue, the other issues seems to be related that the cluster7 is not available on the live branch for the diff task, should I remove it from the GitHub workflow?

@allenporter thank you for the approval, I fixed the linter issue, the other issues seems to be related that the cluster7 is not available on the live branch for the diff task, should I remove it from the GitHub workflow?

No, should be working as intended until next time. Thanks!

authors: allenporter ansarhun codecov-commenter

repo: allenporter/flux-local


text:
🛑 Yorklyn Construction is down

In 5f8a4ff, Yorklyn Construction (https://yorklynconstruction.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Yorklyn Construction is back up in f87f827 after 3 hours, 21 minutes.

repo: alliancewebteam/Uptime


text:
🛑 Down East Granite is down

In af43aab, Down East Granite (https://downeastfab.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Down East Granite is back up in 4c38e75 after 5 days, 12 hours, 15 minutes.