other distro, besides ubuntu

Hi! is the laptop supporting other distros? maybe debian or archlinux? If I want to try something like that, what do I need to keep in mind to don't brick the hardware?
More specificall, how can I install archlinux on this laptop?
On https://archlinuxarm.org/ says olimex is supporting them!

There is an unofficial Gentoo image, check this forum thread: https://www.olimex.com/forum/index.php?topic=5966.0
If things go bad just download the official image to a micro SD card and boot from there.

FYI: The link I see from reading the thread is here.

I'll see what I can do to document supported OSes with TERES.  It's just slightly difficult for me to be super thorough because I don't actually own a TERES -- I just want to see it succeed.

theres this:

https://wiki.debian.org/InstallingDebianOn/Olimex/Teres-I
https://archlinuxarm.org/about/downloads (ARMv8 AArch64 Multi-platform) might work...
https://github.com/khumarahn/teres1-gentoo

I downloaded the gentoo image.. burn it to a sd card.. and nothing happens... I dunno how-to install !
(I have experience installing linux in peepz computers on more than 100 probably...)

the olimex bios is weird.. is there a button to select where to boot from?

The Gentoo author has published instructions:
"
To install to MMC, replace the contents of your /dev/mmcblk0p1 and /dev/mmcblk0p2 with what is in the respective partitions in the image. Then edit /etc/fstab and /boot/uEnv.txt.
"

the olimex bios is weird..

TERES-I is not a conventional x86 laptop. Its has an ARM chip inside and ARM architecture, not x86. The ARM architecture is more common for tablets and smartphones (and some netbooks like Chromebook); the x86 is more common for personal computers and bigger laptops. Because of the ARM architecture, TERES-I has no BIOS either (in the traditional sense of "BIOS").
The typical way of installing the operating system of TERES-I is via a micro SD card (there is a slot on the TERES-I). It generally goes like this:

Download the latest image provided by Olimex
Download it to a micro SD card (8GB or bigger)
Insert the card in the laptop and start the laptop, it would boot from the micro SD card
A command line would appear and you execute an install script, that would move the files from the card to the eMMC memory inside
Remove the card, so TERES-I can now boot from the eMMC memory

is there a button to select where to boot from?

No. There is a pre-defined priority list of boot mediums (the board would attempt to boot from different places in specific order - if it can't boot from the top priority place it would try from the second, then the third, and so on).

@albjeremias hi, there is no more detailed guide, sorry. This is on purpose: I did not mean to be too user friendly, because maintaining linux for teres still requires expertise.
If you are adventurous, here are approximate (untested) instructions. Run them only if you understand what is going on and that this may kill your cat. Assuming you boot from gentoo micro sd card, run
mkdir /mnt/mmc-boot
mkdir /mnt/mmc-root
mount /dev/mmcblk0p1 /mnt/mmc-boot
mount /dev/mmcblk0p2 /mnt/mmc-root

mkdir /mnt/sd-root
mount --bind / /mnt/sd-root

rsync -aAxXhH --delete /boot/ /mnt/mmc-boot
rsync -aAxXhH --delete /mnt/sd-root/ /mnt/mmc-root

Then edit /mnt/mmc-boot/uEnv.txt and /mnt/mmc-root/etc/fstab to point to mmcblk0 instead of mmcblk1.
See also install_emmc.sh which is a part of the official installation. It does the same and more.

@albjeremias please do not take it offenseve but the questions you ask show that you have no much experience with linux, in this case may be good idea to stay with ubuntu as it's most user friendly distro for beginners.
Gentoo require you to compile everything from sources and this may be a bit confusing for novices. Arch also has not so many packages available as Ubuntu, for instance you should compile KiCad from sources in Arch as if I remember correctly the KiCad team work on Ubuntu and their nightly builds are for Ubuntu.

lol! :-1: dude, i use linux since 15yrs... since fedora... i used gentoo, debian, rasppi, etc.. etc... i have much experience... im just no familiar with this ARM stuffs... and I want gentoo because i bet that is way faster than stupid ubuntu, and i hate that ubuntu sold our soulds to amazon once.

If I can bring this thread back on topic please...
I don't understand the mentality of intentional limited documentation.  It is completely valid to not provide half-complete walkthroughs which contains so many gaps that the user to becomes confused and wastes tons of time, potentially losing data.  Bold warnings are generally acceptable if there is inherent risk in a step of the process.  However, unless the products are flying off the shelves faster than they can be restocked, there is certainly value in making the product more powerful, easier to use, and more reliable.  I have never experienced thoughtfully-written documentation as being a negative factor in my professional career.
If any of you find value in this, I am happy to provide a general guide to load OSes on eMMC, as well as a comprehensive example.  If this is the case, I would appreciate some direction as to not waste time using a useless example.
More frankly, what is the completion criteria of this issue?

but i cant just boot some distro from the sd card?

There is an Armbian image too now. Armbian is friendlier for people outside of electronics. Check here: https://www.armbian.com/olimex-teres-a64/

Has anyone tried to get archlinux running?

@sameer Not that I'm aware, but I'll keep an eye out until then.. and, of course, please report back if you hear of anything. It looks like there are Arch options for Olimex's sister products, but I'm sure this is not news to you: https://archlinuxarm.org/platforms

@albjeremias You definitely can. I finally got a Teres so I can be of more help now. Once you download/extract/copy a valid .img file containing a valid boot partition onto a uSD card, the Teres will look to boot off of the uSD card before eMMC. In this way, you can have a stack of imaged uSD cards handy (I coincidentally do right now!) and freely boot whatever you want. If you so desire to copy an image to the eMMC, you can do so using your own method or one of the provided scripts. This is one of the particularly pleasant aspects of ARM boards. :smiley:
These are the available Teres image torrents I currently seed. Am I missing any (apart from the laundry list of past Armbian releases)? I will create a wiki page describing the official/unofficial distros with associated torrent files. Will that be enough to satisfy this issue for now?

Android (Android_teres_rev4.torrent)
Armbian's latest Debian stretch xfce desktop
Armbian's latest Ubuntu bionic xfce desktop
@khumarahn's Gentoo lxde desktop: 20180926
Olimex's Ubuntu (xenial/mate) releases: 20161117, 20171211, 20181220

Based on the decision from issue #32, I uploaded all known (by me personally) torrent files for the A64-TERES. I also created a README within SOFTWARE/A64-TERES describing the currently available operating system images, both Olimex-supported and third-party. Issues related to the Olimex-supported Teres images should be created within this repository, and any issues with third-party images should be submitted through their respective maintainers. Once an alternative OS is deemed production-ready for the Teres, I will be happy to link it (with disclaimers, obviously) accordingly. I think these commits satisfy the requirements for this issue, so I'm closing it. Feel free to open it again, with comment, if you disagree.


AWS API usage from Canada only works with EU region

Hi,
Great work on this plugin! Just wanted to flag the following (resolved) issue for anyone else having trouble...
Device: Protect 7470i (requires AWS API) located in Quebec, Canada
After enabling the AWS API, I'd get this error (similar to this issue: https://github.com/fjs21/homebridge-blueair/issues/24)
TypeError: Cannot read properties of undefined (reading 'sessionToken')
    at BlueAirAwsApi.awsLogin (/var/lib/homebridge/node_modules/@fjs21/homebridge-blueair/src/blueair-aws-api.ts:150:42)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at BlueAirHomebridgePlatform.discoverAwsDevices (/var/lib/homebridge/node_modules/@fjs21/homebridge-blueair/src/platform.ts:165:33)

Issue was resolved by changing region from US to EU.
It's not clear what it is about my account which requires me to use the EU region. I don't have my address/country set in my profile. I do have my temperature set to Celsius, so maybe it assumes EU based on that? Account was created recently from within Quebec.
Anyway, got it working. I also hit this UUID issue: https://github.com/fjs21/homebridge-blueair/issues/291, but it worked after I hid Germ Shield in the plugin settings (it wasn't clear what "disable.UUID" does, so I didn't want to add that.
Feel free to close this issue if there's nothing to be done with it, just wanted to document the solution for others.

@nlittlejohns Thanks for flagging this! I made an update in the configs, and will make and update in the Readme.md to offer better guidance to show "Canada/EU" instead of just "EU". When I have some time, I will work to make it so that the country auto-selects without user-input.


[TACHYON-1031] Move IndexedSet to Common

Can one of the admins verify this patch?

ok to test

I left a minor question. Thanks for the fix!

LGTM

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/Tachyon-Pull-Request-Builder/5194/
Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/Tachyon-Pull-Request-Builder/5202/
Test PASSed.

LGTM


INT B-22122 v2

Agility ticket
Summary
Adding in 5k lines of zip3_distances with AK data instead of the previous 2k
How to test

Fire up your server, migrate yer stuff - should be no errors

Warnings

:warning:
This PR does not include changes to unit tests, even though it affects app code.

  Generated by :no_entry_sign: dangerJS against 4076db578e8ab1649f5c0c4b07cb2867fe45947e


Initialize git when generating new project

I just started a new project and realized that Git wasn't initialized, which doesn't even allow tests to be run since the generated gemspec requires only files in Git. Just to avoid users to run the git init command themselves :-)

Thanks!  This is now released as 2.18.2


Readcomiconline.li "No pages found"

Source information
Readcomiconline.li
Source language
English
Steps to reproduce
Click on any chapter
"No pages found" error toast pops up
Expected behavior
Chapter should open normally
Actual behavior
Comics are viewable and searchable (passed cloudflare check in webview and comics list) but clicking on chapter gives error toast "no pages found"
Comic chapters are viewable in webview as well
Mihon/Tachiyomi version
0.16.5(6)
Android version
11
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] I have updated the app to version 0.15.3.
[X] I have updated all installed extensions.
[X] I have tried the troubleshooting guide.
[X] If this is an issue with the app itself, I should be opening an issue in the app repository.
[X] I will fill out all of the requested information in this form.

Hello, i updated the extension following the merge of  #4041 and tried to open a comic. I still can't open any comics in app itself with the error message "Failed to find image URLs", but it opens fine in the WebView

Yeah it still does not work... "Failed to find URLs"

Yeah it still does not work... "Failed to find URLs"

Just got fixed in the new update!

Yeah it still does not work... "Failed to find URLs"

Just got fixed in the new update!

Yeah you are correct I had to go to Mihon where it updated again to 1.4.22 and now I can read comics but can't look at the Popular or Latest pages still

That's the issue with cloudflare protection. Go to the WebView and go to the Comics List page, which should trigger the check

Yeah it still does not work... "Failed to find URLs"

Just got fixed in the new update!

Yeah you are correct I had to go to Mihon where it updated again to 1.4.22 and now I can read comics but can't look at the Popular or Latest pages still

That's the issue with cloudflare protection. Go to the WebView and go to the Comics List page, which should trigger the check

Thanks it works now!

Yeah it still does not work... "Failed to find URLs"

Just got fixed in the new update!

Yeah you are correct I had to go to Mihon where it updated again to 1.4.22 and now I can read comics but can't look at the Popular or Latest pages still

That's the issue with cloudflare protection. Go to the WebView and go to the Comics List page, which should trigger the check

Thanks it works now!

Hello! This fix does load up the list of comics but there's a new Java IO Integers recasting error on trying to download from the site (https://www.reddit.com/r/mangarockapp/s/lDaSNBUGzq)


Started implementing the snake game so that it can be networked later…

… as a real project using jiber. Any thoughts or comments on this? Do you think it's a good idea?

Coverage remained the same at 84.126% when pulling a95671350deb93efff03d94d0d7a58880d00021e on GambitAnimating:patch-3 into cfc9a5321996e2467189c9632e48cbfe1974f434 on jacob-grahn:master.

Cool! The first step would be to get the game logic running in a reducer, and then use that same reducer on the client and server. It would look something like this:
const reducer = (state, action) => {

  // the action has some helpful data in it
  // it's important not to use outside data like Date.getTime() or Math.random()
  // otherwise the state on the client might not be the same as on the server
  const timeMs = action.$timeMs
  const userId = action.$userId

  // a default state to start us off
  if (!state) {
    state = {players: {}, timeMs}
  }

  // make sure the player is set up
  let player = state.players[userId]
  if (!player) {
    player = {snake_array: [0,0], score: 0}
    state.players[userId] = player
  }

  // respond to key presses
  if (action.type === 'KEY_DOWN') {
    player.d = action.d
  }

  // run game logic
  while (state.timeMs < timeMs) {
   step(state)
  }

  // return the new state
  return state
}

const step = (state) => {
  state.timeMs += 500
  state.players.forEach(player => {
    var nx = player.snake_array[0].x;
    var ny = player.snake_array[0].y;

    if(player.d == "right") nx++;
    else if(player.d == "left") nx--;
    else if(player.d == "up") ny--;
    else if(player.d == "down") ny++;

    player.snake_array.unshift({x: nx, y: ny})
    player.snake_array.pop()
  })
}

Then in your draw loop you would do room.getState(), and draw whatever the state is.
I haven't tested this code, it probably doesn't exactly work! Hopefully it helps, though

Looks awesome, i'm sure it will help! Thanks a lot :smile:

Coverage remained the same at 72.637% when pulling 8bf79e8edc7d4d0c9e6e992c50bdfa0e4c38105e on GambitAnimating:patch-3 into 94a7d16431ac1e515be89b01e66049656d157c01 on jacob-grahn:master.

Coverage increased (+0.02%) to 73.071% when pulling 9c2c7062c16f65070e62ca28e495c0ac8f50a6a0 on GambitAnimating:patch-3 into a85b5874e6d656ac725e1558ff6e5e67207b03c2 on jacob-grahn:master.


Response text from OpenAI to long for discord

discord has a message cap on 2000.
The error message i got:
DiscordAPIError[50035]: Invalid Form Body
content[BASE_TYPE_MAX_LENGTH]: Must be 2000 or fewer in length.
    at SequentialHandler.runRequest (/workspaces/chappie-gpt-bot/node_modules/@discordjs/rest/dist/lib/handlers/SequentialHandler.cjs:293:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async SequentialHandler.queueRequest (/workspaces/chappie-gpt-bot/node_modules/@discordjs/rest/dist/lib/handlers/SequentialHandler.cjs:99:14)
    at async REST.request (/workspaces/chappie-gpt-bot/node_modules/@discordjs/rest/dist/lib/REST.cjs:52:22)
    at async TextChannel.send (/workspaces/chappie-gpt-bot/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:175:15) {
  rawError: {
    message: 'Invalid Form Body',
    code: 50035,
    errors: {
      content: {
        _errors: [
          {
            code: 'BASE_TYPE_MAX_LENGTH',
            message: 'Must be 2000 or fewer in length.'
          }
        ]
      }
    }
  },
  code: 50035,
  status: 400,
  method: 'POST',
  url: 'https://discord.com/api/v10/channels/1142174611946082496/messages',
  requestBody: {
    files: [],
    json: {
      content: 'To improve client outreach early in the development of a new product, you can consider implementing the following strategies:\n' +
        '\n' +
        '1. Clearly define your target audience: Understand who your product is intended for and what problem it solves. This will help you tailor your outreach efforts and reach the right people.\n' +
        '\n' +
        '2. Create a compelling value proposition: Clearly communicate the unique benefits and value your product offers to potential clients. Show them how it will solve their pain points or improve their lives.\n' +
        '\n' +
        '3. Develop a strong online presence: Build a professional website, create engaging content, and leverage social media platforms to reach potential clients. Regularly share valuable information and engage in conversations to build your brand and attract attention.\n' +
        '\n' +
        '4. Utilize networking opportunities: Attend industry events, conferences, and trade shows where you can meet potential clients face-to-face. Focus on building relationships, showcasing your product, and collecting contact information for further follow-up.\n' +
        '\n' +
        '5. Offer product demos or free trials: Provide potential clients with an opportunity to experience your product firsthand. This can help build trust, demonstrate its value, and increase the likelihood of conversion.\n' +
        '\n' +
        '6. Invest in targeted advertising: Use online advertising platforms to reach your target audience directly. This can include search engine ads, social media ads, or targeted email campaigns.\n' +
        '\n' +
        '7. Leverage partnerships and influencers: Identify strategic partnerships or influencers in your industry who can help promote your product to their existing network of clients or followers.\n' +
        '\n' +
        '8. Gather and showcase positive reviews: Encourage early adopters to share their positive experiences and reviews. These testimonials can help build credibility and trust in your product.\n' +
        '\n' +
        '9. Implement a referral program: Incentivize existing clients to refer your product to others. This can help expand your reach and attract new clients.\n' +
        '\n' +
        '10. Continuously track and analyze results: Monitor the effectiveness of your outreach efforts and make data-driven adjustments as needed. Use analytics tools to gain insights into your client acquisition process and identify areas for improvement.\n' +
        '\n' +
        'Remember, successful client outreach requires a combination of targeted marketing, relationship-building, and delivering a valuable product. Adapt your strategies based on your specific industry, target audience, and product offering.',
      tts: false,
      nonce: undefined,
      embeds: undefined,
      components: undefined,
      username: undefined,
      avatar_url: undefined,
      allowed_mentions: undefined,
      flags: undefined,
      message_reference: undefined,
      attachments: undefined,
      sticker_ids: undefined
    }
  }
}

6c1af96 fixed the issue


Case Study submission form - issues

Right now, there is a separate description field and a separate project overview field. We do not need two fields. "Project Overview" essentially is the description, and should be treated as the generic "description field", in that the content from this field should populate the description section under list view.

NOTE: this is the only instance where the "description" is required versus optional.

When I tried to edit an existing case study, I could not edit in admin because academic discipline is required there. Should the admin override required fields?
http://aashe-hub-dev.herokuapp.com/admin/content/casestudy/4/

@monika-aashe how about this solution?

Remove the "Project Overview" field
Keep description, but label it "Project Overview"
Leave the new "Project Overview" field at the second position

This makes displaying this easier down the road. The only concern I thought you might have is that the description/project overview field would be the second field in the form... the normal position for description.

The main concern I have is that the "project overview" be treated like the description, so that when you access the a page such as this, (http://aashe-hub-dev.herokuapp.com/browse/topics/energy/#resources-panel), it is the project overview field that provides the descriptive content.
As long as that's the case, your solution above would work.

Ok, cool. It would :)

Hey @baronvonvaderham - to do this, you simply override the label_overrides for the Case Study content type. See the example in Academic Programs.

Removed original overview field (first field)
Overriding label on background field to read "Overview"
Updated migrations to reflect this

This is almost there, I think we actually want to override the 'description' field's title, not background.

Ah, I didn't see this was inheriting fields from another model.

Can we relabel this field to "Project Overview or Description"? Besides this issue above, there are some additional issues with the submission form that I found in my 1/8/16 review:
The following fields are currently OPTIONAL, but should be REQUIRED:

Project overview
Background
Project goals
Project implementation
Project timeline
Financing
Project results (or results to date)
Lessons learned

There is also a minor issue with the authors/I am an author field, but I will submit that as a separate ticket since it relates to more than one content type.

Reopening to address Monika's additional issues. Working on this now.


TurboAPI

Ok 4th attempt, I fixed all lint issues, just prettier wasn't working on the GitHub check so I did it myself!TurboAPI can do POST and GET requests from code blocks.

If you wanna try it out now, import it via: http://createserver.xyz/turbowarp/TurboAPI

@LilyMakesThings my bad, this is my first time attempting pull requests, had no idea you could re-edit them, next time I will.

don't close and open a new pull request, just edit the existing pull request, otherwise you are sending us spam

@NexusKitten every suggestion you made is now resolved, I'll run it through prettifier then publish it.

All changes done, updated the extension (also updated the 3rd party link to the newest version too)

I didn't see this comment, sorry. This was my first time making a pull request so I had no idea it could auto-update.

I didn't see this comment, sorry. This was my first time making a pull request so I had no idea it could auto-update.

(This is tekinical on his alt)

I'm in the process of updating it to be more lightweight, but for some reason, this doesn't report a value?

I'm in the process of updating it to be more lightweight, but for some reason, this doesn't report a value?

It probably throws an error, and unsandboxed blocks shouldn't throw.

I'm in the process of updating it to be more lightweight, but for some reason, this doesn't report a value?

It probably throws an error, and unsandboxed blocks shouldn't throw.

Already checked and it doesn't. It just simply doesn't report the value.

I just wont add this then; I'll figure out something else to make the extension better.

I'm in the process of updating it to be more lightweight, but for some reason, this doesn't report a value?

You forgot to make the function async

I'm in the process of updating it to be more lightweight, but for some reason, this doesn't report a value?

You forgot to make the function async

Thank you, update to the script that makes it more lightweight will be published in a minute.

Passed all checks! Yippee!
(if anyone wants to try this out, you can copy it here or from my fork. http://createserver.xyz/turbowarp/TurboAPI.js

please submit exactly 1 extension per pull request

please submit exactly 1 extension per pull request

how do i do that. it automatically put my extension in this pull request

! Before commenting on this: I am no longer giving support to this extension unless it gets added to the extension gallery, this was easy to make and I don't wanna add anything else. It's basically fetch but with a post request option. Go check out my Save Codes extension which is much better than this.


Update stale wording/label

After seeing the workflow run for the last two days made me realize that there needs to be a few changes to it:

Updated stale wording to be more clear.
Changed the exempt label. (You will need to add this to the repo and can use it to prevent pulls/issues being marked as stale)
Updated the cron to run every 6h instead of daily.

Great changes, I was going to ask about something along these lines, but you beat me to it!


examples/decrypt-cenc: missing flag.Parse

https://github.com/edgeware/mp4ff/blob/1c6e070a1f36630e8e195818881436077566d994/examples/decrypt-cenc/main.go#L21-L25
Because flags are never parsed, os.Open will always fail
https://godocs.io/flag#Parse

Yeah, that's true. Just shows that I only ran the code by via the test.


Hiccups when clearing buffer

Hi,
I would like to tell shaka do not clear the buffer when it switches between the video track automatically (when adaptation is enabled). The buffer clearing causes hiccups on IE11.
Is there a way to configure this behaviour?
Yair

I'm using DASH with Widevine and I see the same behavior - hiccuping  in chrome.
Sometimes I see glitches during playback as well.
When I compare I have a better performance without glitches on the old version of shaka.
I agree with Yair. It will be nice if there is a solution in the default configuration that can be made for better performance.

Hi Yair, Dobrin,
We are working on it and hope to release improvements in v2.0.1 as soon as feasible.  Thanks!

In a8ac3142ef515c14275f548af6905066b22198c2 we made buffer clearing explicit and more flexibl for calls to selectTrack().  When the ABR manager is making the call, though, it still decides if/when/how to clear the buffer.

That was fast!
Thanks Joey Parrish.
I will try it now and update you guys here.

After retesting I don't see any hiccuping in chrome. And the switches between the video tracks is smooth.
Again thanks for the great work!

The thing that fixed it was probably when we switched from clearing 10 seconds ahead to clearing 2 segments ahead.  Clearing based on segment size reflects the reality of how MediaSource works, while 10 seconds was only a guess at the segment size anyway.
@yairans, can you confirm that this has improved things for you as well?

@joeyparrish
It plays perfect now.
Thank you.

Excellent!  Thank you for retesting.

I'm now seeing hiccups on ChromeOS and Chrome Linux.  The hiccup occurs when an upgrade decision is made, specifically caused by clearing content that is ahead of the playhead.
More testing is needed on other browsers/platforms.


How to treat background training images when fine tuning from COCO

In SSD300 model you add a further class to account Background. My Training dataset (Belgian traffic sign detection dataset) there are also instances of "Background" or traffic signs which do not belong to a certain class (Labelled: 0).
I thought of just truncating them from the training and validation sets, as the Label 0 isn't allowed anyway. But if I wanted to put them in the learning process too, to which label do I have to map them or how is background in MS COCO labelled?

The background class is not a property of any given dataset, it's a property of SSD. MS COCO, Pascal VOC, or any other datasets I know of don't label a background class. The background class is just a way for SSD to assign a label to the boxes that are not any of the positive classes. Every predicted box needs to belong to some class. Since SSD predicts a fixed (large) number of boxes regardless of the number of actual objects in an image, all the boxes that don't detect any of the objects in the dataset need to be assigned some label. This is what the background class is for.
Your dataset is the first dataset I've ever heard of that labels a background class. I don't fully understand what's part of the definition of this background class in your dataset, but it wouldn't make any sense to try to treat it as the background class in the sense that SSD uses this background class. If you would want to explicitly include whatever is labeled as "background" boxes in your dataset, then you would just add them as another regular class. E.g. if your dataset has 80 non-background classes and that one background class, just make the background class number 81.
That being said, I don't understand how bounding boxes for a background class make any sense. A bounding box should enclose an object, and all bounding boxes of any given class should enclose objects of the same type. How is the model supposed to learn to predict the background class if the bounding boxes for that background class contain all sorts of things? Also, how does it make sense to put a bounding box around a patch of background? I.e. I don't understand how it makes sense to have a labeled background class in the dataset to begin with. Certainly nothing good can come from trying to train a model on such a background class because that data will probably be highly contradictory within itself.

Thanks for your Statement, that pretty much backs up what I was thinking about it, but I was still too unsure about due to my lack of experience. I just will kick out these instances off my Training/Validation data.

Anytime!


chore: update language of local compilation doc

I've changed some phrasing in the local compilation part of the docs to (hopefully) improve legibility.
Feel free to provide feedback or request further changes.

One thing I've noticed is, that docs/po/zh_CN.po and docs/src/user_guide/2-2_local_compilation.md are slightly out of sync.
Is this something you intend to continue supporting? I tried to keep my changes in both files consistent without altering the differences.

One thing I've noticed is, that docs/po/zh_CN.po and docs/src/user_guide/2-2_local_compilation.md are slightly out of sync.
Is this something you intend to continue supporting? I tried to keep my changes in both files consistent without altering the differences.

.po is somehow hard to update/maintain, I'm considering to remove it.

thanks a lot!


help with auto complete

I have an issue where I need to export the auto complete from an old PST file and import it in to a new one
I cant seem to be able select the old PST as the source file so I can copy the auto complete and paste it in to a new PST
would it be faster to run MFCMAPI on the old machine rather then fight with it on the new machine ?

You don't give enough information on where you're having a problem to help you here. I don't know how to interpret "can't seem to be able to select the old PST".

ok more info
2 pst's one old.pst one new.pst
if I load MFCMAPI on the new pc it picks up the old.pst only and there seems to be no way to make it load the new one (or was I blind)
-side note-
I did "fix" the issue by using MFCMAPI on the old Pc and exporting it to the new one  but for future updates selecting the file you want to export the auto complete might be a thing ?

Random PST on disk won't ever be seen until you add them to a MAPI profile. MFCMAPI only knows what's in the profile.


Works but can't archive for App Store

Hi Mohammad and thanks for this,
worked great for me until the next time that I tried Product | Archive, then I got a bunch of errors.

I'm compiling for iOS 14.1 and up.
Any advice, any troubleshooting I can do at my end? Can anyone else repro?
Thanks!
Nick

+1 also an iOS 15 issue

Found a thread about it: https://developer.apple.com/forums/thread/690405
Appears that the swift tools needs to be bumped to 5.5 and that should fix it.


Profile new feature

This is an updated version for the profile photo selection. The older version was simple just two buttons and ordinary but the updated version has a modern style with a taking photo, uploading from gallery and cropping image for the profile.

Hi, @DARSHcverse , do you have any test video?

https://youtu.be/5YVaDY0Zq98


Type Mismatch Errors with Events in Tauri v2

When attempting to include type-safe events in a Tauri v2 project, I encounter build errors due to type mismatches. While commands work fine, the following errors occur
error[E0308]: mismatched types
   --> /Users/username/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-2.0.0-rc.10/src/webview/mod.rs:183:5
    |
182 |   pub fn inner(&self) -> cocoa::base::id {
    |                          --------------- expected `*mut objc::runtime::Object` because of return type
183 |     self.0.webview
    |     ^^^^^^^^^^^^^^ expected `*mut Object`, found `*mut c_void`
    |
    = note: expected raw pointer `*mut objc::runtime::Object`
               found raw pointer `*mut c_void`

error[E0308]: mismatched types
   --> /Users/username/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-2.0.0-rc.10/src/webview/mod.rs:192:5
    |
191 |   pub fn controller(&self) -> cocoa::base::id {
    |                               --------------- expected `*mut objc::runtime::Object` because of return type
192 |     self.0.manager
    |     ^^^^^^^^^^^^^^ expected `*mut Object`, found `*mut c_void`
    |
    = note: expected raw pointer `*mut objc::runtime::Object`
               found raw pointer `*mut c_void`

error[E0308]: mismatched types
   --> /Users/username/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-2.0.0-rc.10/src/webview/mod.rs:201:5
    |
200 |   pub fn ns_window(&self) -> cocoa::base::id {
    |                              --------------- expected `*mut objc::runtime::Object` because of return type
201 |     self.0.ns_window
    |     ^^^^^^^^^^^^^^^^ expected `*mut Object`, found `*mut c_void`
    |
    = note: expected raw pointer `*mut objc::runtime::Object`
               found raw pointer `*mut c_void`

I think you might want to report this problem to Tauri because it's unclear to me how this is related to Tauri Specta as the error doesn't refer to Tauri Specta anywhere.

Give the latest Tauri/Tauri Specta version a go. It should fix this!

Give the latest Tauri/Tauri Specta version a go. It should fix this!

Yes it did, thanks


PHP7: Update Zend

For PHP7 support we are going to have to update/patch zend, I ran into an issue with queueable jobs already, it declares a class Null which is now a reserved class name in php7
Whoops\Exception\ErrorException thrown with message "Cannot use 'Null' as class name as it is reserved"

Stacktrace:
#0  in /Users/michaelkrasnow/concrete5-5.7.0/web/concrete/vendor/zendframework/zend-queue/library/ZendQueue/Adapter/Null.php:24

To provide some additional info, Zend Framework 3 will support PHP 5.5+ and have full support for PHP 7, it is intended that they will release ZF3 in Q3 2015

Can we somehow override zend-queue?
I want/need to use queueable jobs in a PHP7 environment ;) I can edit the Zend files to get it working, but that's not the way to go.
The Null adapter needs to be renamed, and the class is only used in one place (queue).
For now... implementing another solution with jobs...

What about forking zend queue so that we can rename this class? According to concrete5.org we support PHP7 while in fact we don't. I don't think that puts concrete5 in a good light...
While I don't like it a lot, I would take a look at forking zend queue to make it work with PHP7 if it would get merged into concrete5. Replacing zend queue would be nice if someone has the time to do so.

Forking is fine – we've done it in the past with flysystem (which we
eventually remerged in the version 8 branch.)
I've created the fork if someone wants to fix this in it and create a pull
request:
https://github.com/concrete5/ZendQueue
best,
Andrew
On Wed, Apr 6, 2016 at 12:33 AM, Remo Laubacher<EMAIL_ADDRESS>wrote:

What about forking zend queue so that we can rename this class? According
to concrete5.org we support PHP7 while in fact we don't. I don't think
that puts concrete5 in a good light...
While I don't like it a lot, I would take a look at forking zend queue to
make it work with PHP7 if it would get merged into concrete5. Replacing
zend queue would be nice if someone has the time to do so.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/concrete5/concrete5/issues/2812#issuecomment-206182944

I'm going to do this

First part done: https://github.com/concrete5/ZendQueue/pull/1
Once it'll be merged I'll create a second PR on https://github.com/concrete5/concrete5

Second (and last) part: https://github.com/concrete5/concrete5/pull/3669

Thanks @mlocati

:wink:

Quite interesting... I deleted my ZendQueue fork (it was https://github.com/mlocati/ZendQueue), and now there's a GitHub uncaught error if you try to view the pull request page (https://github.com/concrete5/ZendQueue/pull/1)
I already contacted GitHub about that.
This obviously does not affect concrete5.

PS: I'm the very first Verified author of a concrete5 commit :wink: - See https://github.com/concrete5/concrete5/commits/develop (more info about this on the GitHub blog).

PPS: the great GitHub support team just wrote me that they fixed the issue that I mentioned above: https://github.com/concrete5/ZendQueue/pull/1 is now accessible.


notebooks: add markdown editing

Fixes LAND-368
This works independently of tiptap using bare prosemirror but users can still switch back to tiptap if they want.
@urcades thoughts on how this is presented?
Looks like this:
https://github.com/tloncorp/landscape-apps/assets/1221094/1c8c0a2f-ee57-497f-b30a-525e783cc743

Spent most of the day working on parsing our special blocks from MD into the prosemirror AST and working on edge cases/weirdness. Next step is to work on using diaryMixedToJSON to hydrate the MD editor directly without going through the extra tiptap steps.

This should be good for review now.

Just made some style updates, now looks like this, @urcades:
https://github.com/tloncorp/landscape-apps/assets/1221094/ad23a414-448d-48da-87c9-d84362ab985f


Added usage example for tf.math.floordiv.

I have signed.

Closing this PR as this not against master, please open a new PR against master
CC @mihaimaruseac


Improve inference in the presence of context-sensitive expressions

Suggestion

🔍 Search Terms
contextually context-sensitive generic inference unused parameter method object literal
✅ Viability Checklist
My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[x] This feature would agree with the rest of TypeScript's Design Goals.

⭐ Suggestion
When generic inference is gathering candidates, context-sensitive expressions should still be considered if it's possible to do so without observing a type parameter from the call.
📃 Motivating Example
declare function callIt<T>(obj: {
    produce: (n: number) => T,
    consume: (x: T) => void
}): void;

// Works
callIt({
    produce: () => 0,
    consume: n => n.toFixed()
});

// Fails for no obvious reason
callIt({
    produce: _a => 0,
    consume: n => n.toFixed()
});

// Fails for no obvious reason
callIt({
    produce() {
        return 0;
    },
    consume: n => n.toFixed()
});

💻 Use Cases
Background: expressions can be "context-sensitive" for the purposes of inference -- this is a syntactic property of an expression that tells us whether or not an expression's type could be dependent on the inference of its contextual type. For _a => 0, this is true because the return expression might depend on _a (including in indirect ways). For produce() {, it's context-sensitive because (unlike an arrow function) it takes its parent object type for this, so could depend on the type parameter via a reference of this.
When it turns out that the type of the expression is not actually dependent on the inference of the type parameter (which would represent a true circularity, thus more understandably non-working), then this just looks busted for no obvious reason. This is a continuous source of surprise and annoyance. (TODO: link user reports)
Discussion
There are a few implementation strategies we could try, with varying trade-offs

Proceed to do structural inference on context-sensitive expressions but mark the type parameters symbols as "off limits" with logic to back out. This is likely impractically invasive
Perform a more robust check to determine "true" context-sensitivity -- for example, produce: _a => 0 should not be contextually sensitive because the relational target (n: number) => T does not use T in a covariant position. There are multiple ways we could do this
Add an optional intermediate pass when inference collected no candidates when ignoring context-sensitive expressions where we go and collect from them anyway. This pass could safely fix parameters since they'd be going to unknown. This entire bullet point might be wrong.
As a stopgap, consider function expressions to not be context-sensitive if all of their return expressions can be trivially seen to not depend on earlier lines of code (e.g. are literals, literals of literals, null, or undefined). This might fix a surprisingly large class of reports
As a stopgap, consider an object literal method to not be context-sensitive if it doesn't reference this. I believe we already have code for this and it would fix another large class of surprises.

Fix now available in #48538.

Not all these cases work yet, so reopening

Might be related to my issue: https://github.com/microsoft/TypeScript/issues/49951, which still happens in 4.7/4.8

I fear this is another example of bad inference: https://stackoverflow.com/questions/75882004/mapping-array-of-arguments-into-tuples-of-t-extends-tuple-t-args-nonn
Typescript 5.0.2

:wave: I believe most of the fixes for this have focused on inference across lambdas/keys "at the same level" within the AST; for my use case, I'd like inference to be pushed "up" (or "down"?) chained method calls, i.e. in something like:
// Create a Zod-style fluent DSL for building config
const c = {
  value<V>(): ValueConfig<V> {
    return null!;
  },
};

type Config<T> = { [P in keyof T]: ValueConfig<T[P]> };

function configure<T>(object: Config<T>): void {}

// Add fluent methods to `c.value()`
interface ValueConfig<V> {
  req(): ValueConfig<V>;
  readOnly(): ValueConfig<V>;
  validate(value: V): ValueConfig<V>;
}

// A pojo
type Author = { name: string; address: string; city: string  };

// Try and configure the author
configure<Author>({
  // correctly inferred as c.value<string> --> ValueConfig<string>
  name: c.value(),
  // inferred only as c.value<unknown> --> ValueConfig<unknown>
  address: c.value().req(),
  // compile error, v is implicitly typed as any
  city: c.value().validate((v) => v.length > 0),
});

Ideally all three c.value<V>s would be inferred as V = string, so that any chained/fluent methods that come next are appropriately typed.
Is this use case appropriate for this issue? Thanks!

https://github.com/microsoft/TypeScript/assets/25604544/645cbdc8-df9e-4a6d-bc30-2fb7bf13a350
playground

I reckon this causes this playground's issue, too? :thinking:

I noticed that these issues always contain anonymous functions. I am getting the same issue using normal generic types. You can see it in the playground.

I've managed to conjure another example of this: https://tsplay.dev/mxpM7m
Referencing my SO issue and subsequent discussion for completeness.

The inference source for R can only be discovered in the second inference pass today (the one that starts including context-sensitive nodes). The compiler never gets to it though.
The intermediate argument's type ({ x: {}; y: Fn<Foo>[]; }) gets rejected as it doesn't match the parameter type ({ x: (bar: Foo) => Base; y?: Fn<Base>[] | undefined; }) of the intermediate signature. Note that {} in x is the "anyFunctionType", that's an internal kind of any used as a placeholder in the first inference pass.
The problem is that the first pass will always use constraints as the fallback for the inferred types. Since - at that point in time - no candidate for R has been observed it gets instantiated as Base and the constraint of F gets instantiated as Fn<Base>. That isn't satisfied by Fn<Foo> that you pass there.
Do you even need F to be a type parameter? It doesn't appear in the return type of your Baz and that's usually a sign that it shouldn't be a type parameter.
You can work around this if you make an inference for R discoverable earlier using intersections:
interface Base {
  x: string;
}
interface Foo extends Base {
  y: number;
}

type Fn<T> = (t: T) => void;
declare const FooFn: Fn<Foo>;
declare const FooBase: Fn<Base>;
declare const FooExtra: Fn<Foo & { extra: string }>;

type Baz = <R extends Base, F extends Fn<R>>(arg: {
  x: (bar: Foo) => R;
  y?: (F & Fn<R>)[];
}) => R;

declare const baz: Baz;
const R1 = baz({ x: (ctx) => ctx });
const R2 = baz({ x: (ctx) => ctx, y: [FooFn] });
const R3 = baz({ x: (ctx) => ctx, y: [FooBase] });
const R$ = baz({ x: (ctx) => ctx, y: [FooExtra] }); // error (as expected, although the location of the error could be better)

Yeah, in a real world scenario, the type(s) of F would later be used to constrain other types.
The use of an intersection type's a great trick! Very handy to know...
One limitation, though, if I actually alter the return type of y then the compiler is back to expecting Base as the arg for it.
Here's an example where the return type is a union: https://tsplay.dev/N97gMW
I wonder if Fn<Base> is chosen because it's the narrowest common type between the return types, compiler trying to resolve Fn<Foo | Bar>... as opposed to Fn<Foo> | Fn<Bar>... forcing TS to distribute the Return type with R extends Base ? Fn<R> : never doesn't seem to change anything.

Yeah, I don't have an answer to that 😉
An interesting experiment to run would be not ignoring the inferences that could be made from this anyFunctionType. If we'd infer any the signature applicability check could pass and the overall inference could improve in the second pass. I don't know when I'd find the time to play around with this though.


Postinstall script update

Since https://github.com/angular/angular/issues/9359 issue is resolved, we can remove unused postinstall task for rx.js bundle.

@mgechev , can you take a look for this one?

Yes, I will review & merge tomorrow.

This PR breaks the main application. (reported by @mindietea and @kurtdaveting)
Uncaught ReferenceError: require is not defined
    at Rx.ts:5
(anonymous) @ Rx.ts:5
(index):60 SyntaxError: Unexpected token <
    at eval (<anonymous>)

(screenshot)
reverting back to the previous version does still give an error but allows the app to run but with the following error:
[23:36:06] Starting 'build.js.dev'...
C:/dev/angular-seed/node_modules/rxjs/Subject.d.ts(16,22): error TS2415: Class 'Subject<T>' incorrectly extends base class 'Observable<T>'.
  Types of property 'lift' are incompatible.
    Type '<R>(operator: Operator<T, R>) => Observable<T>' is not assignable to type '<R>(operator: Operator<T, R>) => Observable<R>'.
      Type 'Observable<T>' is not assignable to type 'Observable<R>'.
        Type 'T' is not assignable to type 'R'.
[23:36:10] TypeScript: 1 semantic error
[23:36:10] TypeScript: emit succeeded (with errors)

This could be related to rxjs (version 5.4.1)

@Karasuni , clean install ?


Add pkg-config like options

pkg-config --cflags --libs somepackage on a Linux distribution would return compiler flags and linker options for linking with an installed library, allowing pretty much any build system to find those and link.
vcpkg seems to only support CMake as an alternative build system. If something analogous to pkg-config  was created, providing locations of libraries, include directories, and MSVC flags, other build systems could be made aware of libraries installed using vcpkg.
Obviously, MSVC flags would have to be distributed with the package.

I played a little bit with vcpkg+pkg-config-lite+meson so I will resume my experience...
Some package like protobuf install pkg-config file and produce the *.pc file required by pkg-config program to find library.
Ex :
D:.
├───vcpkg
└───x86-windows
    ├───bin
    │       libprotobuf-lite.dll
    │       libprotobuf-lite.pdb
    │       libprotobuf.dll
    │       libprotobuf.pdb
    │       libprotoc.dll
    │       libprotoc.pdb
    │
    ├───lib
    │   │   libprotobuf-lite.lib
    │   │   libprotobuf.lib
    │   │   libprotoc.lib
    │   │
    │   └───pkgconfig
    │           protobuf-lite.pc
    │           protobuf.pc

Install and configure vc-pkg
> D:\
> git clone https://github.com/Microsoft/vcpkg.git
> cd vcpkg
> .\bootstrap-vcpkg.bat
> .\vcpkg integrate install
> .\vcpkg install zlib libsodium protobuf

Now install pkg-config-lite and configure it.
> set PKG_CONFIG_PATH=%PKG_CONFIG_PATH%;D:\Data\vcpkg\packages\protobuf_x86-windows\lib\pkgconfig

Use meson to build a c++ program that link to protobuf
project('myprogram', 'cpp', version : '1.0')

src = ['main.cpp']

protobuf = dependency('protobuf', version: '>=3.0')

executable('myprogram',
           sources: src,
           dependencies: [protobuf])

This work perfectly as pkg-config-lite find the libprotobuf.pc file by looking at the %PKG_CONFIG_PATH% path.
But what if we want to use library like zlib  or libsodium both are not configured to produce a pkg-config file.
See ref here : https://github.com/mesonbuild/meson/issues/4029#issuecomment-416952360
I think vc-pkg should always produce or offer options to produce pkg-config file.

@purell That's quite interesting – I didn't know vcpkg supported pkg-config. It would be nice to at least see this being somewhat integrated with vcpkg, however, i.e., such that it can be assumed that as long as vcpkg is installed and detected, libraries and their linker options can be located using such a command or its extended vcpkg counterpart.

@galexite   vcpkg feature )


[Master] Add more JSDoc tests and move them into one folder instead of spread between salsa and jsdoc conformance

looks like some are failing.


License information missing for the package monaco-graphql

Looks like the license information is missing for package monaco-graphql. Since graphiql has a dependency on monaco-graphql it will be great to include the license information for this package as well.
Can this be fixed?

@saponniah good catch, thank you! need to add that, and update copyrights

@acao any chance someone could cut a release of monaco-graphql with the license?  It would help us use graphiql internally as we can't rely on a third-party CDN and we require licenses for libraries & dependencies.
Thanks in advance <3

@hjdivad hopefully soon - the latest release of graphiql does not use monaco-graphql however! are you using 1.x? What you see in main branch is just an RFC

@acao Yeah, I'm trying to use the latest stable version -<EMAIL_ADDRESS>

oh wow, i didn’t realize 1.0.3 published with monaco-graphql as a dependency, that is strange. i can fix this tonight!

this was fixed last week! enjoy!


Different directory structures when using Copy-Item when destination does or does not exist.

Suppose I have the following directories in the current working path:
src\foo\bar
and the dest directory does not exist.
Running "Copy-Item -Recurse src dest" yields dest\foo\bar
However, if dest does exist then I get dest*src*\foo\bar
I at least expect to get the same behavior regardless of whether dest already exists or not.
Environment data
Name                           Value
----                           -----
PSVersion                      5.1.14393.576
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.576
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

I can confirm this. It is really annoying. And if you need to add more items to the destination, the copy item throws an error, unless you force it.

While this would be a pretty big breaking change, the current behavior is very confusing and can lead to nasty bugs that are hard to track down. I stumbled into this problem on more than one occasion. My preference would also to get this changed.
As it stands I've gotten into the habit of writing this when copying a folder to another location:
if (!(Test-Path $TargetPath)) {
    New-Item -ItemType Directory $TargetPath
}
Copy-Item -Path "$SourcePath\*" -Destination $TargetPath -Recurse -Force

Somewhat annoying to have this much boilerplate code just for a simple, complete and consistent copy.

@Aculeo, you can ease the pain a bit by replacing the if statement with $null = New-Item -Force -ItemType Directory $TargetPath, which, thanks to -Force, is a quiet no-op if the dir. already exists (the New-Item call returns a [System.IO.DirectoryInfo] instance either way - representing either the newly created or the preexisting dir.  - which $null =  discards).
You can therefore even roll it into a single command:
Copy-Item -Path "$SourcePath\*" -Destination (New-Item -Force -ItemType Directory $TargetPath) -Recurse -Force


Guidance - S mode support?

Hey I couldn't find anything about whether this is intended to work on devices in S mode. (My device is in S mode and crashes when I try to open it.) I will submit a bug report with Feedback Hub diagnostics if it's supposed to.

It’s not supposed to, sorry. CMD and PowerShell are restricted on S mode devices by policy, and we can’t countermand that policy.

Could you mention that in the readme please?

@svgPhoenix Will do - thanks for the suggestion.
Also, when you say "it crashes when I try to open it", I assume you mean Terminal? If so, could you share what errors etc. you see here too? Sorry to bifurcate you across two feedback mechanisms, but it might shorten the path to a root cause by doing so in this case.

@bitcrazed Yeah, I meant Terminal Preview crashes - not windows itself lol. Here's the link to my diagnostic data on Feedback Hub. Terminal doesn't give any errors or anything, just closes as soon as the frame renders.


How to send in data-* attributes to ReactModal component?

I am wanting to send in a data-* to the underlying element of the ReactModal component - how do I do this? For example,
<ReactModal data-synthetics="something" >...</ReactModal>

@joetidee Sorry for the delay. I've merged #657 and now we have data attributes available on react-modal.

I'll close this for now. Please feel free to reopen if it still an issue. Thanks.


update readme - test process

maybe I should have forked?

Could you add it after the badges please?


conversion to python 3

Hi,
Is the code easy to adapt to python 3 ? I readed in former issues that there's changes to do.
Thank you.

Yes, However here is a version of this code that is already compatible with python3.


[Snyk] Security upgrade browser-sync from 2.26.13 to 3.0.0

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

package.json
package-lock.json

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

676/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 7.1
Cross-site Request Forgery (CSRF) SNYK-JS-AXIOS-6032459
Yes
Proof of Concept

658/1000  Why? Proof of Concept exploit, Recently disclosed, Has a fix available, CVSS 5.3
Regular Expression Denial of Service (ReDoS) SNYK-JS-AXIOS-6124857
Yes
Proof of Concept

(*) Note that the real score may have changed since the PR was raised.

Commit messages

Package name: browser-sync
    The new version differs by 127 commits.

c0556cb v3.0.0
5d5e665 v3.0.0-alpha.2
b7bf92e remove package
2e8dd31 v3.0.0-alpha.1
23f1754 optiona
ab5f75b v3.0.0-alpha.0
aa23814 moving localtunnel to peer dependency
f267cb6 Merge remote-tracking branch 'origin/09-09-adding_playwright_tests'
97f08e7 removing cypress
8731b98 removing cypress
7f2dc62 adding playwright tests
d787281 Update README.md (#2051)
2e2fdc6 fixing nx caching, run tests on nonde 16, 18 & 20 (#2050)
b2441b1 build(deps): bump json-schema and jsprim in /packages/browser-sync-ui (#2042)
86fd7fd build(deps): bump json5 from 1.0.1 to 1.0.2 (#2014)
a95410e build(deps-dev): bump webpack in /packages/browser-sync-client (#2027)
1e4fb68 build(deps): bump engine.io in /packages/browser-sync (#2038)
daa8e8a build(deps): bump nanoid and mocha in /packages/browser-sync-ui (#2015)
02efdff v2.29.3
62d906e fix: append to head if body not present yet - fixes #2031 (#2041)
f91440e v2.29.2
d0c50e0 deps: drop qs (#2040)
6ffc212 v2.29.1
7b07798 v2.29.1-alpha.0

See the full diff

Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Cross-site Request Forgery (CSRF)
🦉 Regular Expression Denial of Service (ReDoS)

👷 Deploy Preview for optimistic-mahavira-71b58e processing.

Name
Link

🔨 Latest commit
2c61ab8379ed2f927e085ec8bbab411d5ea8208d

🔍 Latest deploy log
https://app.netlify.com/sites/optimistic-mahavira-71b58e/deploys/658db1178a8bc80008273d9f


New project generates incorrect routing export/import name with --routing

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
OSX Yosemite

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:

angular-cli: 1.0.0-beta.16
node: 5.12.0
os: darwin x64
Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

Run ng new testapp --routing
The app-routing.module.ts file is generated with  export class TestappRoutingModule { } instead of export class AppRoutingModule { }
The app.module.ts import is incorrect for the routing file.
import { TestappRoutingModule } from './testapp-routing.module';

instead of
import { AppRoutingModule } from './app-routing.module';

The log given by the failure.

Normally this include a stack trace and some more information.

Mention any other details that might be useful.

Thanks! We'll be in touch soon.

I encountered this same issue under Windows 10 64bit.


DOC: Create a "Developer: Testing" section to the wiki

Tasks

[x] Draft up basic pytest usage
[x] Add a section for installation_test.sh

Removed the installation test since it was not in use. Instructions have been added with https://github.com/Jython1415/zolltools/commit/a52e0314d37d470f949019bd38a717a6f76e17e7.


Add ability for the progressbar to be filled with art grunt funds

We need to be able to input funds that are supplied from the art grunt.
To make it simple we can add it inside the dream page - so when user drill down he will see 2 progress bars - one is the coins and the other is the art fund - need more UX work here

In Midburn Art fund is sending out 90% of the money and the coins is 10% of the money - that way it will make the process of the Art fund into more transparent


Replace @completionHandlerAsync with @available(*, renamed:)

Instead of a new attribute @completionHandlerAsync, allow the use of
the existing renamed parameter of @available to specify the
asynchronous alternative of a synchronous function.
No errors will be output from invalid names as @completionHandlerAsync
had, but if a function is correctly matched then it will be used to
output warnings when using the synchronous function in an asynchronous
context (as before).
Resolves rdar://80612731

@swift-ci please test

Few main changes from the commit in the other PR:

No Decl::getRenamedDecl, it only makes sense in the context of a particular attribute
getAsyncAlternative uses the first-in-source @available that has no platform and a renamed, or the first with a renamed otherwise (regardless of platform)
findPotentialCompletionHandlerParam ignores default parameters in the async function if the argument labels don't match. Added a bunch of tests for that case

Build failed
Swift Test OS X Platform
Git Sha - 87648a0e7118a851ce5c8265c2250966e7d858f8

@swift-ci please test

@swift-ci please test Windows platform

@swift-ci please test

Build failed
Swift Test Linux Platform
Git Sha - 1b4e614e92a6374eb62e38ec04a3dd2f448c7525

Build failed
Swift Test OS X Platform
Git Sha - 1b4e614e92a6374eb62e38ec04a3dd2f448c7525

@swift-ci please test

Ah, someone else got module format version number change in before I could merge. Ah well. Last tests passed, will just do a smoke test so I can merge.
@swift-ci smoke test

@etcwilde I'm going to merge this, but let me know if you think it needs any changes.


Remove GK quantile.

GK is not used.

Codecov Report

Merging #5816 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #5816   +/-   ##
=======================================
  Coverage   82.61%   82.61%
=======================================
  Files          12       12
  Lines        2727     2727
=======================================
  Hits         2253     2253
  Misses        474      474

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 c4d7212...49f51e1. Read the comment docs.

WXQ is not documented and doesn't provide better performance.

Do you have some benchmarks?

@hcho3
Implementation is not well defined according to:  https://github.com/dmlc/xgboost/pull/5251#issuecomment-584456536
Speed is not improved compared to WQuantile according to: https://github.com/dmlc/xgboost/pull/5251#issuecomment-584970975
But I also ran some bench with approx for 10 boosting rounds with higgs and url, the accuracy drops a little I'm not sure if it's a good thing, as there could be some unexpected regularization due to over pruning and somehow improves the training result.
Before PR:
{
  "higgs": {
    "xgb-approx": {
      "accuracy": {
        "AUC": 0.7863048187857767,
        "Accuracy": 0.6683204545454545,
        "Log_Loss": 0.5994604972915893,
        "Precision": 0.6274573581031722,
        "Recall": 0.9213437189704226
      },
      "train_time":<PHONE_NUMBER>4099594
    }
  }
}

{
  "url": {
    "xgb-approx": {
      "accuracy": {
        "AUC": 0.9937412206162852,
        "Accuracy": 0.9793312549819918,
        "Log_Loss": 0.23446456971505325,
        "Precision": 0.9794169259854371,
        "Recall": 0.989928429820077
      },
      "train_time":<PHONE_NUMBER>4500565
    }
  }
}

After PR:
{
  "higgs": {
    "xgb-approx": {
      "accuracy": {
        "AUC": 0.7863032095727018,
        "Accuracy": 0.6681763636363637,
        "Log_Loss": 0.5995105257037553,
        "Precision": 0.6273229415617546,
        "Recall": 0.9214491873787757
      },
      "train_time":<PHONE_NUMBER>5900081
    }
  }
}

{
  "url": {
    "xgb-approx": {
      "accuracy": {
        "AUC": 0.9937861863103972,
        "Accuracy": 0.9793875958316118,
        "Log_Loss": 0.23464104552753764,
        "Precision": 0.9797411558496062,
        "Recall": 0.989672822034638
      },
      "train_time":<PHONE_NUMBER>2199705
    }
  }
}

When I extended the quantile tests found WXQ does not pass some tests. The rank of the output quantiles was outside the expected range in many cases, additionally when encountering low cardinality data it will sometimes remove elements from the set even when the cardinality is less than the maximum sketch size - so the sketch is removing information from the data set. I don't understand its implementation so I couldn't directly fix these issues. WQ does not have these problems.

Restored WXQ.


ERROR: asyncio

Hello!
I got an error on both .exe and .bat about the asyncio so can't use it do you have an idea on how to fix it? :(
Im using python 3.10 is that bad?
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-3' coro=<PoeRPC.monitor_log() done, defined at C:\Users*\Desktop\PathOfExileRPC-master\poeRPC.py:295> exception=ContentTypeError(RequestInfo(url=URL('https://www.pathofexile.com/character-window/get-characters?accountName=MikuArt'), method='GET', headers=<CIMultiDictProxy('Host': 'www.pathofexile.com', 'Accept': '/', 'Accept-Encoding': 'gzip, deflate', 'User-Agent': 'Python/3.10 aiohttp/3.8.1')>, real_url=URL('https://www.pathofexile.com/character-window/get-characters?accountName=MikuArt')), (), message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', headers=<CIMultiDictProxy('Date': 'Sun, 06 Feb 2022 11:48:21 GMT', 'Content-Type': 'text/html; charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'X-Frame-Options': 'SAMEORIGIN', 'Referrer-Policy': 'same-origin', 'Cache-Control': 'private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0', 'Expires': 'Thu, 01 Jan 1970 00:00:01 GMT', 'Expect-CT': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"', 'Vary': 'Accept-Encoding', 'Server': 'cloudflare', 'CF-RAY': '6d9426217d6aee58-CDG', 'Content-Encoding': 'gzip')>)>
Traceback (most recent call last):
File "C:\Users*\Desktop\PathOfExileRPC-master\poeRPC.py", line 312, in monitor_log
await self.handle_log_event(log)
File "C:\Users*\Desktop\PathOfExileRPC-master\poeRPC.py", line 259, in handle_log_event
await self.fetch_char()
File "C:\Users*\Desktop\PathOfExileRPC-master\poeRPC.py", line 97, in fetch_char
js = await resp.json()
File "C:\Users******\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\client_reqrep.py", line 1103, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', url=URL('https://www.pathofexile.com/character-window/get-characters?accountName=MikuArt')

I believe that its a problem with the type of data that is collected. Im trying to figure some workaround, if i get anything, ill let you know.

Is this still an issue @DankAlighieri ? I haven't looked at this project in a while, if you join my support server at https://discord.gg/hUWQ5fJ I can try to take a look at it / help.

Yeah, i couldn't figure it out how to convert the data to something that the client could read.


Add support for migration symlinks

Hey everyone!
I'm trying to use node-pg-migrate with Bazel, but I'm not being able to. The problem seems to be that symlinks are ignored  on the migration directory. And Bazel, by default, uses symlinks all around.
Love the project, keep up the good work!

Thank you so much for the quick change @dolezel !


add database schema and store images as reprojected raster in postgis

store plastic mask raster in db with polygon bbox and other metadata.
Convert to polygons with pixel values and store in related vector table
downloading, predicting, reprojecting and vectorizing is all happening in memory

@emely3h shall we merge this?

@marcleerink definitely, you have the honour of merging :D


[Feature] Make Bruno usable via keyboard navigation

Currently, it’s nearly impossible to use Bruno solely via keyboard navigation. While there already is an issue to allow submitting new collections via Enter (https://github.com/usebruno/bruno/issues/1222), I would love to see such accessibility navigation things on a much bigger scale: to allow everything usable solely with the keyboard.

Major +1 to this. Love Bruno and got the golden edition already. I think that even just getting the tab switching to start would be a huge improvement (looks like some progress made via #736 but hasn't made it into main?) Collection switching would be great as well. TBH something like VSCode's "recently used" method doesn't seem table-stakes, just previous/next would go a long way.


Pkg rename: Microsoft.Framework.ConfigurationModel.Interfaces -> Microsoft.Framework.ConfigurationModel.Abstractions

See https://github.com/aspnet/Announcements/issues/8#issuecomment-97566113

https://github.com/aspnet/Configuration/commit/38e05891e42df691ef3b5f735f438a3ff3e5981a


Write a flowchart of computation

Inputs (and their types)
Where do validation happen
Which scripts are involved, when
Add validations where needed (cf https://github.com/CDCgov/cfa-immunization-uptake-projection/pull/65#discussion_r1869780144)

Cf. https://github.com/cdcent/fall-virus-model?tab=readme-ov-file#file-and-script-organization for an example

The big question is whether you want a single main.py to do everything, or if you want to break this up into different pieces. I guess it's fine to start with everything all in once place, and then start splitting it up, as you find that it slows you down, to need to re-run everything. Do you have a sense of how long it takes main.py to run now?
You can drop everything that's inside of nisapi; you can just start from nisapi.get_nis()
I find it hard to read some of these colors:

My vote is to keep the entire pipeline in main.py for the time being. Before PR #82, main.py takes < 1 second. That said, several upcoming changes will cause this to increase:

Replacing scikit-learn models that generate point estimates with numpyro models that generate full posteriors
Using multiple models rather than just the one
Refitting the model each time the forecast date changes, to include all available data, as discussed in PR #82

If/when these changes make the run-time of main.py intolerably long, that's when I suggest we switch to a Makefile to compartmentalize the steps. But personally, for the sake of scientific progress, I'd prefer to focus on these three items themselves before refactoring our scripts.

As for the flow diagram, I agree with @swo that the granular steps inside NIS_API can be left out, and that the low contrast between font color and compartment color is hard to read. Additionally, removing the "projection" vs. "evaluation" to make [model fitting -> making projections -> evaluation metrics] a single linear process, as discussed in PR #82, will change the structure of the flow diagram a bit.
But I think this is a very good start, and I like your color-coding of data objects vs. key operations vs. validation vs. etc. Maybe you can teach me how to make these flowcharts sometime?

My vote is to keep the entire pipeline in main.py for the time being. Before PR #82, main.py takes < 1 second

After our discussion, I agree. It's OK to keep everything in one script for now, if it's fast. Once it starts slowing down, think harder about breaking up computational actions into functions, splitting them across scripts, and using a Makefile to manage the pipeline.

Lurking here.... in R the targets package (and drake before that) helped with pipeline running. For my own understanding is there something similar to that in Python, or is the Makefile approach a make way to go?

Lurking here.... in R the targets package (and drake before that) helped with pipeline running. For my own understanding is there something similar to that in Python, or is the Makefile approach a make way to go?

target is unusual in that it's R code running R functions, which introduces a number of limitations (e.g., it makes parallelization or cloud computation really challenging).
Make runs command line commands (which, in this case, will be python scripts).
Python has Snakemake, which lets you write makefile-like "snakefiles" that can take advantage of full Python logic (e.g., read in a list of targets from a yaml), but it still ultimately issues command line commands, so you could eg use a Snakefile to run an R pipeline (if you had R scripts that accepted command line arguments).

@swo Thanks! that is cool to learn about. I haven't heard about Snakemake!

See also https://teams.microsoft.com/l/message/19:d6a0b1ac75474c15ba1ed525ce05a963@thread.tacv2/1734462023465?tenantId=9ce70869-60db-44fd-abe8-d2767077fc8f&groupId=4f34eba7-8fcb-4a26-9b34-a434ea777f0c&parentMessageId=1734462023465&teamName=CFA-Predict&channelName=Topic - Dev&createdTime=1734462023465 for a discussion about similar tools; it seems like Nextflow and Metaflow are common alternatives


May I set the date in response with a expression

my useage senario is:
send a message to destination system, then the destnation return a response contains a date related with the current date.
e.g.:
i send msg today, return 14jan18,
and send msg tommrow, then return 15jan18,
it's current date add ten days.

One solution is to write your own response handler.

Is there any template handler? How should I use the handler?

The development version has implemented now as template function.
Feel free to build your Moco and try it.


Runtime Error '449' Argument not optional

Hi,
I am trying to covert REST API Response to JSON but facing an error "Runtime Error '449' Argument not optional ".
When I comment out "Debug.Print Json"Statement, no error is showing.
Below is the code I have written.
Set Json = JsonConverter.ParseJson(objRequest.ResponseText)
Debug.Print Json
I need to get items from the response using Json("items");
Kindly help me on this.
Note: I am able to see the JSON when I print objRequest.ResponseText

Here is the screenshot .

As I understand it (and I'm certainly no expert), the JSON converter takes a string and returns a dictionary or collection that you can work with.
So the way to print that is to cycle (iterate) through the dictionary or collection and address which element(s) you wish to print:Debug.Print Json("Items")
When you print objRequest.ResponseText you are printing the plain text before it has been converted to a dictionary or collection object.
Hope it helps a little.
On Sunday, June 14, 2020, 10:39:50 AM EDT, syagnam<EMAIL_ADDRESS>wrote:

Hi,
I am trying to covert REST API Response to JSON but facing an error "Runtime Error '449' Argument not optional ".
When I comment out "Debug.Print Json"Statement, no error is showing.
Below is the code I have written.
Set Json = JsonConverter.ParseJson(objRequest.ResponseText)
Debug.Print Json
I need to get items from the response using Json("items");
Kindly help me on this.
Note: I am able to see the JSON when I print objRequest.ResponseText
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Update package.json for use with Browserify

Make browserify work by adding a "main" entry to package.json. Browserify uses this to figure out how to load the module.
https://www.npmjs.com/package/browserify#package-json

@rniemeyer any chance we can get this merged?

@riltsken @AMeng - Thanks! merged and published (0.5.2).


WIP: Add function to get computed style, fix #55

This will fix #55 , @wangzuo

Thanks, will check


Possible list of all current DLC files

Assuming the DLC files all end in zero, this appears to be a list of all current DLC files, can't help but wonder if there is a pattern:

tu002350.dlc
tu002560.dlc
tu002770.dlc
tu002880.dlc
tu003000.dlc
tu003150.dlc
tu003410.dlc
tu003550.dlc
tu010040.dlc
tu010110.dlc
tu010160.dlc
tu010390.dlc
tu010530.dlc
tu010600.dlc
tu010950.dlc
tu011010.dlc
tu011090.dlc
tu011100.dlc
tu011840.dlc
tu011880.dlc
tu011920.dlc
tu011940.dlc
tu012640.dlc
tu012700.dlc
tu012720.dlc
tu012750.dlc
tu012760.dlc
tu012770.dlc

tu020730.dlc
tr020740.dlc
tu021270.dlc
tr021360.dlc

Russian:

Dumb question maybe, but would Russian DLC work on a furby purchased in america?

@ja450n @jeffrafter Sorry for necroing this but do either of you happen to have those DLC files you listed? Hasbro killed their AWS server and I don't know of any archives for these DLC files.

Oh my... I have a set that is out of date somewhere. I don't think I have all of them at all though...

@CylMaddhatta , i've pushed what I managed to scrape up to my fork
https://github.com/ja450n/bluefluff/tree/master/connectworld
@jeffrafter , if you have any files not in my repo let me know and we can try to get it as complete as we can.


Refactor Flex Volume to fetch Dataset info from Kubernetes API directly

This pull requests will attempt an improvement of the current transfer mechanism and flex volume. It will solve the following issues #257 #255

[ ] separate object storage interaction from metadata interaction
[ ] model dataset interaction "session" as a sync
[ ] create a Kubernetes implementation of the meta interface that connects to cluster from node
[ ] implement the meta interface first version using the dataset CRD
[ ] implement current "ZipTransfer" mechanism with new metadata interface

For the flex volume to update dataset resource it needs access to the Kubernetes API, this means we need credentials for the API. We got three scenarios we need to consider here:

In minikube for development
In the public cluster, running on bare metal
In the private clusters, running on cloudstack

In order to get credentials to the flex volume the recommended way is to setup a pod with service credentials. This means we need to deploy the flex volume as a daemon set (which is the recommended way anyhow. This does require service accounts to be present (how about prod deployments?), but does make it easier to install the flex volume in the future as it doesn't require node access.
How will this work on deployments were the kubelet is run inside a container?

[x] create a container that holds the flex volume
[x] create a script that installs the flex volume upon pod launch
[x] add a daemonSet.yaml to the nerd repository
[x] give the flex volume access to the Kubernetes svc
[x] refactor flex volume to take a dataset id and not s3 values directly
[x] test on actual deployment cluster

This needs to be combined with #277 to update flex volumes to their final form.


Document use of link-local address as gateway

From @caseydavenport on June 17, 2016 16:20
We set up the following routes within a container to get traffic out to the host:
default via <IP_ADDRESS> dev eth0
<IP_ADDRESS> dev eth0

We should document this so that it isn't confusing / surprising to users.
Copied from original issue: projectcalico/calico-containers#1023

From @caseydavenport on September 19, 2016 19:53
@djosborne giving this one to you as one to consider as part of your docs work.

This exists in the FAQ.  Where else do we think it should go?


Bump sdks/go/container/pom.xml to 2.5.0-SNAPSHOT

Checking if this is the only thing that causes test failures. In that case we should merge this quickly while discussing further resolution.

Follow this checklist to help us incorporate your contribution quickly and easily:

[n/a] Make sure there is a JIRA issue filed for the change (usually before you start working on it).  Trivial changes like typos do not require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.
[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue.
[x] Write a pull request description that is detailed enough to understand:

[x] What the pull request does
[x] Why it does it
[x] How it does it
[n/a] Why this approach

[x] Each commit in the pull request should have a meaningful subject line and body.
[n/a] Run mvn clean verify to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
[x] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Based on the fact that the builds didn't fail immediately, and the Go builds succeeded, I think this unbreaks the build.

LGTM.


ErrorRequestHandler type not detected in VSCode

In Typescript, with "no implicit any" setting, I am unable to use the custom error handling OOTB.  This appears to be an issue with the types.  The following produces errors in VSCode and tsc.
import express, { NextFunction } from 'express';

const expressApp = express();
expressApp.use((req, res, next) => {});
expressApp.use((err, req, res, next) => {});  //<--------problem
expressApp.use((err: any, req: any, res: any, next: NextFunction) => {});

There is a repo here: https://github.com/staplespeter/expressjs-bug-types-ErrorRequestHandler
In the code inspector in VSCode the RequestHandler type is displayed for the 3-arg version and RequestHandlerParams for the 4-param version of the possible arguments to use().
I have had a look at, and played around with the typedefs to no avail.
Please let me know if i have missed something or if the types are not correctly defined.
Thanks!

@types/express package is provided by the DefinitelyTyped project. The problem with error handling in Express is known and looks like the only way to fix it is by manually specifying the error handler's type:
import express, { ErrorRequestHandler, NextFunction } from 'express';
//                ^^^^^^^^^^^^^^^^^^^

// ...

// (1) wrap the arrow function in () and add as ErrorRequestHandler
expressApp.use(((err, req, res, next) => {}) as ErrorRequestHandler);

// (2) function as a typed variable, IMO the best option
const errorHandler: ErrorRequestHandler = (err, req, res, next) => {}
expressApp.use(errorHandler);

// (3) anonymous function instead of arrow with as ErrorRequestHandler doesn't require wrapping in ()
expressApp.use(function (err, req, res, next) {} as ErrorRequestHandler);

Related issues:

https://github.com/DefinitelyTyped/DefinitelyTyped/issues/4212 (workarounds in comments)
https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/59681 (no response)
https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/61636 (no response)
https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/64888 (no response)

claude
You're correct that the built-in types for Express middleware functions do not correctly support error-handling middleware. This is because Express's types were written before TypeScript had proper variadic tuple type support.
To fix this, you'll need to write your own type definitions for Express's error middleware. Here's what that would look like:

import { Request, Response, NextFunction } from 'express';

type ErrorRequestHandler = (
    err: any,
    req: Request,
    res: Response,
    next: NextFunction
) => void;

expressApp.use((err: any, req: Request, res: Response, next: NextFunction) => {
  // Type checks pass
});

By defining your own ErrorRequestHandler type, TypeScript now understands that the 4th argument is the NextFunction, and the type checks will pass.
The core issue here is that Express's types don't properly model variadic arguments or overloads, so for some of Express's more dynamic features, you'll need to supplement the types with your own definitions. Defining an ErrorRequestHandler type is a great example of improving Express's type definitions.

claude
You're correct that the built-in types for Express middleware functions do not correctly support error-handling middleware. This is because Express's types were written before TypeScript had proper variadic tuple type support.
To fix this, you'll need to write your own type definitions for Express's error middleware. Here's what that would look like:
import { Request, Response, NextFunction } from 'express';
type ErrorRequestHandler = (
err: any,
req: Request,
res: Response,
next: NextFunction
) => void;
expressApp.use((err: any, req: Request, res: Response, next: NextFunction) => {
// Type checks pass
});
By defining your own ErrorRequestHandler type, TypeScript now understands that the 4th argument is the NextFunction, and the type checks will pass.
The core issue here is that Express's types don't properly model variadic arguments or overloads, so for some of Express's more dynamic features, you'll need to supplement the types with your own definitions. Defining an ErrorRequestHandler type is a great example of improving Express's type definitions.

@VitorhugoBatista there already is a ErrorRequestHandler type in @types/express:

declaration in @types/express extending the declaration from @types/express-serve-static-core
declaration in @types/express-serve-static-core

this type is a better version of the one that you suggested and can be imported directly as shown in my previous response. The type basically is:
import * as core from 'express-serve-static-core';

interface ErrorRequestHandler<
    P = core.ParamsDictionary,
    ResBody = any,
    ReqBody = any,
    ReqQuery = core.Query,
    Locals extends Record<string, any> = Record<string, any>
> = (
    err: any,
    req: Request<P, ResBody, ReqBody, ReqQuery, Locals>,
    res: Response<ResBody, Locals>,
    next: NextFunction,
) => void;

Lack of variadic tuple support (which is supported since TS 4.0) is not a problem - there are only static overloads and variadic are unnecessary. The problem with overload resolution was reported as a TypeScript bug a long time ago, but the issue was closed as a design limitation: microsoft/TypeScript#31867.
You can check a simple version of this TS problem here.
Adding types to the middleware function parameters can resolve the error, but it is more work than just declaring the type of the error handler like I've shown previously.

@VitorhugoBatista Hello
I am currently looking for any documentation that covers Express and Typescript so i can know how to use type annotations properly with Express.
I took a look into @types/express i can only see that only 3 prototypes is exposed which are Response, Request and Application type annotation for req,res and app

I think this question was answered and since we do not ship types I think if there is continued issues they should be discussed in the DT repo for now.


[DOCS-4392] Add app variant definition in docs

What does this PR do?
Adds a sentence to define APP_VARIANT_NAME.
Motivation
DOCS-4292, customer feedback.
Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] Make sure you discussed the feature or bugfix with the maintaining team in an Issue
[ ] Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

Codecov Report

Merging #1296 (f6e0e15) into develop (16543f7) will decrease coverage by 0.09%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #1296      +/-   ##
===========================================
- Coverage    82.11%   82.02%   -0.09%
===========================================
  Files          361      361
  Lines        12832    12832
  Branches      2153     2153
===========================================
- Hits         10536    10525      -11
+ Misses        1653     1652       -1
- Partials       643      655      +12

Impacted Files
Coverage Δ

...id/rum/internal/ndk/DatadogNdkCrashEventHandler.kt
89.00% <0.00%> (-5.00%)
:arrow_down:

...d/v2/core/internal/storage/FileEventBatchWriter.kt
94.74% <0.00%> (-2.63%)
:arrow_down:

...in/com/datadog/android/log/internal/LogsFeature.kt
87.69% <0.00%> (-1.54%)
:arrow_down:

...lin/com/datadog/android/rum/internal/RumFeature.kt
92.03% <0.00%> (-1.45%)
:arrow_down:

...ain/java/com/datadog/opentracing/PendingTrace.java
59.48% <0.00%> (-0.86%)
:arrow_down:

...ndroid/telemetry/internal/TelemetryEventHandler.kt
73.44% <0.00%> (-0.78%)
:arrow_down:

.../kotlin/com/datadog/android/v2/core/DatadogCore.kt
85.59% <0.00%> (-0.42%)
:arrow_down:

.../android/rum/internal/domain/scope/RumViewScope.kt
95.20% <0.00%> (-0.18%)
:arrow_down:

...android/v2/core/internal/net/DataOkHttpUploader.kt
94.94% <0.00%> (ø)

...al/persistence/file/batch/BatchFileOrchestrator.kt
95.28% <0.00%> (+1.57%)
:arrow_up:

... and 1 more


Small wording tweaks for readability

Summary of changes

A couple small wording / punctuation tweaks for readability.

Pull Request Checklist

[ ] Changes have tests
[ ] News fragment added in changelog.d/.
(See documentation for details)

Thank you very much @mccalluc


docker/scripts/dev_start.sh : Failed to pull docker image, unauthorized: authentication required

Hi. I am getting the following error while trying to run dev_start.sh.  Or look at the debugging information

enable debug mode on dockerd (start dockerd --debug or set "debug": true in the daemon.json configuration), and the requests are printed in the daemon logs;

Here is the discuss about docker debug log https://github.com/docker/cli/issues/336


Failed to deploy to <IP_ADDRESS> see console output for details.

[Enter steps to reproduce:]

...
...

Atom: 1.58.0 x64
Electron: 9.4.4
OS: macOS 11.4
Thrown From: Atom Core
Stack Trace
Failed to deploy to <IP_ADDRESS> see console output for details.
At undefined

undefined

Commands
     -0:54.5.0 tree-view:remove-project-folder (span.name.icon.icon-file-directory)
     -0:43.9.0 roku-deploy:deployRoku (div.tool-panel.tree-view)
     -0:34.6.0 settings-view:open (atom-pane.pane.active)
     -0:01.8.0 roku-deploy:deployRoku (div.tool-panel.tree-view)

Non-Core Packages
roku-deploy 0.5.1

@tduddie  This error is for the atom package roku-deploy which is a separate project. It is a plugin/package installed to Atom. If you are experiencing issues with the package, you should create a more detailed issue in the plugins repository.
https://github.com/mmratio/roku-deploy


while requires a value, not an expression, which makes certain situations seem like weird errors

while (~test) {
    // some code
}

will not parse as ~test is an expression so it has to be wrapped in parenthesis, leading to strange occurrences such as:
while ((~test)) {
    // some code
}

which is very confusing.

Presumably the fix here is just to replace value with expression in syntax.lark, right?
Is there already a test for this in the syntax tests? Maybe we should add this as a test to make sure it doesn't happen again


[BUG] Incomplete data (KeyError: 'name')

Basic information

Program version: 0.2.0
Python version: 3.10.5
Operating system: win11 (22h2)

Describe the bug
youtube will return incomplete data on some specific streams.
apparently if any one with no name (idk how this is possible yt ?) like - https://www.youtube.com/channel/UC_oQ7X9HmE3Xuaa_wFerOqg post a comment author key is not added
Test Case stream link - https://www.youtube.com/watch?v=-JU0rbfPECY
Additional context/information
there is nothing the library can do to prevent this from happening other than passing {'author':{'name': "" , .......}} or mention this kind stuff in docs or have a test case for such thing.?

Hmmm, interesting... I'll look into it, thanks!


Antrea-agent Container gets restarted at its startup with Error "exit status 4: iptables: Resource temporarily unavailable"

Describe the bug
A clear and concise description of what the bug is.
If you believe this bug is a security issue, please don't use this template and follow our security guidelines
Antrea-agent Container gets restart on redeploying Antrea Daemon Set with below error:
Error running agent: error initializing agent: error setting up iptables rules: exit status 4: iptables: Resource temporarily unavailable.
root@prom-050569f83e0:~# docker logs 3ec97410d298
I1231 10:44:34.387044       1 agent.go:45] Starting Antrea agent (version v0.2.0)
I1231 10:44:34.387092       1 client.go:33] No kubeconfig file was specified. Falling back to in-cluster config
I1231 10:44:34.388024       1 client.go:23] No antrea kubeconfig file was specified. Falling back to in-cluster config
I1231 10:44:34.388099       1 ovs_client.go:61] Connecting to OVSDB at address
I1231 10:44:35.388344       1 ovs_client.go:84] Not connected yet, will try again in 2s
I1231 10:44:35.388463       1 agent.go:186] Setting up node network
F1231 10:44:40.814722       1 main.go:57] Error running agent: error initializing agent: error setting up iptables rules: error checking if rule [-m mark --mark 0x00000400/0x00000400 -j MASQUERADE -m comment --comment Antrea: masquerade traffic requiring SNAT] exists in table nat chain ANTREA-POSTROUTING: running [/sbin/iptables -t nat -C ANTREA-POSTROUTING -m mark --mark 0x00000400/0x00000400 -j MASQUERADE -m comment --comment Antrea: masquerade traffic requiring SNAT --wait]: exit status 4: iptables: Resource temporarily unavailable.
root@prom-050569f83e0:~#

POD description
Containers:
  antrea-agent:
    Container ID:  docker://bf810d52f56cc36a0893e32bba84f0733dc43399cf4b95a2a59cea794dbe20a3
    Image:         antrea/antrea-ubuntu:v0.2.0
    Image ID:      docker-pullable://antrea/antrea-ubuntu@sha256:c12efa83dfc9c5c13f668a58d26fbee26d2799f4d6a5434db1fe6259c53b3733
    Port:          <none>
    Host Port:     <none>
    Command:
      antrea-agent
    Args:
      --config
      /etc/antrea/antrea-agent.conf
    State:          Running
      Started:      Tue, 31 Dec 2019 10:44:41 +0000
    Last State:     Terminated
      Reason:       Error
      Exit Code:    255
      Started:      Tue, 31 Dec 2019 10:44:34 +0000
      Finished:     Tue, 31 Dec 2019 10:44:40 +0000
    Ready:          True
    Restart Count:  1
    Liveness:       exec [/bin/sh -c container_liveness_probe agent] delay=5s timeout=5s period=10s #success=1 #failure=5
    Environment:
      POD_NAME:       antrea-agent-w9k89 (v1:metadata.name)
      POD_NAMESPACE:  kube-system (v1:metadata.namespace)
      NODE_NAME:       (v1:spec.nodeName)
    Mounts:
      /etc/antrea/antrea-agent.conf from antrea-config (ro)
      /host/proc from host-proc (ro)
      /host/var/run/netns from host-var-run-netns (ro)
      /var/lib/cni from host-var-run-antrea (rw)
      /var/run/antrea from host-var-run-antrea (rw)
      /var/run/openvswitch from host-var-run-antrea (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from antrea-agent-token-2lx2d (ro)

To Reproduce
Steps to reproduce the behavior.

We have already deployed PODs on setup.
While Redeploying Antrea Deamon Set, antrea-agent container gets restarted

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

Antrea-agent container should not restart, it should wait for iptables lock to available and try to add iptables rules again.

exit status 4: iptables: Resource temporarily unavailable
Actual behavior
A clear and concise description of what's the actual behavior. If applicable, add screenshots, log messages, etc. to help explain the problem.
Versions:
Please provide the following information:

Antrea version (Docker image tag). v0.2.0
Kubernetes version (use kubectl version). If your Kubernetes components have different versions, please provide the version for all of them. v1.16.0
Container runtime: which runtime are you using (e.g. containerd, cri-o, docker) and which version are you using? docker
Linux kernel version on the Kubernetes Nodes (uname -r). 4.4.0-131-generic
If you chose to compile the Open vSwitch kernel module manually instead of using the kernel module built into the Linux kernel, which version of the OVS kernel module are you using? Include the output of modinfo openvswitch for the Kubernetes Nodes.
Additional context
Add any other context about the problem here, such as Antrea logs, kubelet logs, etc.

(Please consider pasting long output into a GitHub gist or any other pastebin.)

@Nilesh7756: thanks for reporting this issue. However I could not reproduce it in my env. Could I know more details how you reproduce it. I just tried to delete one antrea-agent Pod and let a new Pod get created by K8s, but did not see any error for the new Pod. Any extra steps I should do?

@jianjuns
We have K8S scale setup with Antrea:
Antrea version 0.2.0, Single K8 cluster, 100k Pods, 1000 worker nodes + 3 master nodes, 10k Namespaces, 20k Network Policies.

100K PODs got scaled in ENV
Redeployed Antrea Deamon Set, by kubectl edit:
kubectl edit ds  -n kube-system
Here for POD's "Antrea-agent" container got restarted at its startup with error for some of the Deamon set in ENV.

@jianjuns I think the issue is hard to reproduce as it should be due to conflict between kube-proxy and antrea-agent when they happened to run iptables at the same time: the exit code 4 and message iptables: Resource temporarily unavailable. indicates that errno EAGAIN is returned by the kernel and is mostly because multiple iptables commands run concurrently.
iptables has a lock "/run/xtables.lock" to solve the concurrent issue and support "--wait" option to wait for the xtables lock and the library antrea-agent uses has added the option according to the log. However, antrea-agent runs in container so its own xtables.lock was created and thus kube-proxy and antrea-agent could still run iptables at the same time.
To fix it, antrea-agent should mount xtables.lock of hostPath as well as kube-proxy does, then concurrent iptables calls won't happen.

Created a PR for it, assigning to myself.