Multipart type lacking boundary at line 1

While looking for an example of #8 I came across this issue.
I get the error Error: Multipart type lacking boundary at line 1 when parsing this email.
var letterparser = require("letterparser")

letterparser.extract(`MIME-Version: 1.0
Content-Type: multipart/alternative; boundary=mk-c744386e165c44ecbb696782a4f930f1; charset=UTF-8

--mk-c744386e165c44ecbb696782a4f930f1
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hey, glad you're checking out Buttondown :)

Please let me know if you need any help getting set up, or have any questio=
ns or
feature requests!  I'd be more than happy to help =E2=80=94 I also offer co=
ncierge
onboarding, so if you need any help migrating back issues or existing
subscribers from Mailchimp/Tinyletter/whatever, I'd be happy to do that
free of charge.

Some stuff coming down the pipeline in the next month or so:

   - A new, cleaner writing interface
   - Improved accessibility
   - Internationalization

Also, if you wanna keep up to date with new features, feel free to [sign up=
 for our newsletter](https://newsletter.buttondown.email).

---

If you're interested in supporting Buttondown's development, please conside=
r:

- Signing up for our premium newsletter, [Weeknotes](https://weeknotes.butt=
ondown.email), for $4/month.
- Upgrading to **Buttondown for Professionals** for $29/month, which gives =
you access to custom domain support,
  custom URLs, removed branding, [and more](https://buttondown.email/pricin=
g).

(Don't worry, this is exactly the _only_ time I'll be obnoxious and ask for=
 money.)

---

Have a great rest of your day, and don't hesitate to reach out!

(Seriously, replies go straight to my inbox, and I love getting email.)

=E2=80=94 Justin from Buttondown

--mk-c744386e165c44ecbb696782a4f930f1
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hey, glad you're checking out Buttondown :)

Please let me know if you need any help getting set up, or have any ques=
tions or
feature requests!  I'd be more than happy to help =E2=80=94 I also offer co=
ncierge
onboarding, so if you need any help migrating back issues or existing
subscribers from Mailchimp/Tinyletter/whatever, I'd be happy to do that
free of charge.

Some stuff coming down the pipeline in the next month or so:

A new, cleaner writing interface

Improved accessibility

Internationalization

Also, if you wanna keep up to date with new features, feel free to sign up for our newsletter.

If you're interested in supporting Buttondown's development, please cons=
ider:

Signing up for our premium newsletter, Weeknotes, f=
or $4/month.

Upgrading to Buttondown for Professionals for $29/mont=
h, which gives you access to custom domain support,
  custom URLs, removed branding, and more.

(Don't worry, this is exactly the only time I'll be obnoxious a=
nd ask for money.)

Have a great rest of your day, and don't hesitate to reach out!

(Seriously, replies go straight to my inbox, and I love getting email.)<=
/p>

=E2=80=94 Justin from Buttondown
<img src=3D"https://ea.pstmrk.it/ope=
n/v3_P-aeGHPIISH2BUXSOKKE4BZp-HanwtEbCgvz_6SycY51mHCcxUHOM85uyh6H9kTAY83tF7=
FcGzesFhWcsoQUxX_bkz657r-Mu7gf4s-H0h0ll32WCOvCfka8Z9HK28lEoeZ4rlqXLYj47t1rs=
F9NuM9DIzqXc-Ec4jIHY1Rzi_I3h0MFf0aGpRRrbnHrEuwtmkh-qj9HA1tE0rAa_RApixCXRjIt=
dTJVD00bhrsDEKw-Jv1WDsFIgAFS4ILlOpDagKNMk8GQ4mlvMN61Wh-irfULUNzsX2WvTI9fLy4=
8eRfLTkUPDzaT7uwbQmRGND9u4Ci2p9K4EHYw3sVp_flfID3Tr0oF-66UTW5JsoEc1xGihmDi9-=
XCyInt-k3dyb7thdztb9vlFYiTmPIyBj_dRkZe4o6SuV6wBcPeeL6V6vupwRITgKjS-otoDKWWj=
dbKkGdrktwpA97et4monhRmNQ" width=3D"1" height=3D"1" border=3D"0" alt=3D"" /=
>
--mk-c744386e165c44ecbb696782a4f930f1--`)

Thank you for your report, the issue has been resolved in 41658e0 and the release will be made soon.

Amazing, thank you!

Released with 0.0.8.


Updated FAQ

Updated FAQ
Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?

[ ] Issue
[ ] Feature
[ ] Maintenance/Chore

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[x] Tested Locally
[ ] Optional Screen Shoot.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app

Closing this PR to resolve the conflict


Allow combining individual scans using flags

As mentioned in #44, usually, the purpose of flags is to enable optional functionality.
Also, in #44, it was learned that preserving compatibility with the current way of calling the script (--host and --type flags need to be preserved) is mandatory.
Still, this doesn't prevent future development from making these flags optional (offering the same functionality as of now when used), while moving towards a more standardized way of calling the script.
Because of this, I propose to make the --host and --type flags optional (as long as what was proposed in #44 is considered and implemented), and allow specifying the current --type functionality in separate, and accumulative, flags, for example:
$ ./nmapAutomator.sh -b -u <IP_ADDRESS>              # Performs Basic and UDP scan

$ ./nmapAutomator.sh --recon --vulns <IP_ADDRESS>    # Performs Recon (+ Basic) and Vulns scan

$ ./nmapAutomator.sh <IP_ADDRESS>                    # Performs by default the Basic scan

$ ./nmapAutomator.sh --type All --host <IP_ADDRESS>  # This is still possible and works as expected

This was requested before, but the reason I never did this is because other scans are automatically run together when needed.
However, the script is evolving, do I guess we may need to do something like you suggested.

I guess you may be referring to #15. AFAIK, you cannot currently run something like Recon and Vulns (+ Quick and Basic, run as dependencies), or Full + UDP (or individual combinations of them) without performing an All scan.
Of course, I'm more than happy to help in the implementation for this matter 🙂

As you said, the script is evolving (and I'm pretty sure you have many awesome things in mind), so these changes are also suggested from the implementation POV, for easing the addition of features, parsing of flags, etc 🚀

Yeah you're right. We need to make it dynamic to allow for more flags, and to enable scanning multiple hosts.
Pull requests are always welcome of course ;)
I'll work on merging the current ones in the weekend, and will start working on host/port discovery without nmap for remote scanning.

I've added this as an upcoming feature, so that we can start working on it.
I'm closing the issue to keep the repo clean.

We need to make it dynamic to allow for more flags, and to enable scanning multiple hosts.
Pull requests are always welcome of course ;)

I'll work on implementing this incredibly genius way of flag parsing (with some improvements), as it is future-proof and hassle-free. In a nutshell:

A header, with the content of the expected help command, is added to the file
The functions, which are called by specific flags, are named after the long version of these flags
When the script is called, it reads itself, parsing the content of such header to detect if the given flags are valid
When all the flags are valid, the only thing left to do is to eval the name of the flags, calling the associated functions

From the development POV, adding a new flag will only resort to:

Adding a new line in the header with the flag variants and explaining its purpose (help style)
Creating a function named after the long version of the flag with the functionality

Easy, right? 🙂

Wow.. looks really promising, and will make it much easier to add more flags in the future.
Since we already have functions for each type of scan, perhaps like you suggested we should use each scan type as a flag, instead of putting the type in the --type flag.
We should probably also refactor the case statement in the main function, as this may take its place.

Since we already have functions for each type of scan, perhaps like you suggested we should use each scan type as a flag, instead of putting the type in the --type flag.
We should probably also refactor the case statement in the main function, as this may take its place.

Refactoring the case in favor of the automagically-flag parsing is the main idea. Of course, this would still support the --type and --host flags (by creating functions named after the flag as well) if you want to preserve compatibility, the only thing is that these functions shall undefine themselves when called as they shadow the type (used as which POSIX replacement in the Recon scan), and host (not used for now) commands. For example:
type() {
  # unsets itself
  unset -f type

  # Performs what the current `main` function does
  ...
}

I see.. that could work.. host is actually being used as well for DNS recon.

Regarding the footer function, we just add it in a trap (trap footer EXIT) after making sure the parsed flags are correct, and it will always be executed when the script exits.

yeah that's a great idea.. i guess this would show even if a user cancel's with ^c, which is great as well, so that the tee output would always have the footer.

That would only work if main is run inside a subshell (main is defined with parentheses instead of curly braces) with the trap defined inside, and tee is immunized against SIGINT (and forced to be run inside another subshell to avoid making the trap global):
main() (
  trap footer EXIT
  ...
)
...
main | (trap '' INT; tee "nmapAutomator_${HOST}_${TYPE}.txt")

The way I would do it is by piping to tee in the exit trap, so that the two extra subshell processes are avoided:
trap 'footer | tee "nmapAutomator_${HOST}_${TYPE}.txt"' EXIT

# And this one to record that the operation was interrupted
trap 'echo "[Operation interrupted by the user]" | tee "nmapAutomator_${HOST}_${TYPE}.txt"' INT

I guess the second option would work.
There's no need to tee that the script was interrupted. The only thing we need to add to the output on user interruption is the footer. So i guess this line should do the trick:
trap 'footer | tee "nmapAutomator_${HOST}_${TYPE}.txt"' EXIT


⚠ Bofrost.de has degraded performance

In 16c8f27, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1059 ms

Resolved: Bofrost.de performance has improved in c349c37.


Adding Arabic Content

Changes :

added Arabic content from prof. walid issa channel, this is useful for non-English

Professional PCB Design Course

Basic 101 EEE Course

101 Digital Electronics

شكرًا


Should throw descriptive error if node version is < 8

When I tried running with node v6 installed, I received a generic fatal exception:
Unexpected identifier

Turns out I just needed to update my node version - but it would be useful to have an exception handling check to determine if the cause is an outdated node installation.

This is not the role of PuPHPeteer, NPM should do this when reading the configuration of the package.


GSD Request

--- GSD JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from  to before v5.16.10",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=fe4de5330c774e2e0c1621e6a72d60391568b94d"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "fe4de5330c774e2e0c1621e6a72d60391568b94d",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "scsi: target: iscsi: Make sure the np under each tpg is unique\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v5.16.10 by commit fe4de5330c774e2e0c1621e6a72d60391568b94d. For more details please see the references link."
}
--- GSD JSON ---

This issue has been assigned GSD-2022-1000492


Add enableWebsockets property to the gateway snippet

Thank you for helping make the Radius documentation better!
Please follow this checklist before submitting:

[ ] Read the contribution guide
[ ] Commands include options for Linux, MacOS, and Windows within codetabs
[ ] New file and folder names are globally unique
[ ] Page references use shortcodes instead of markdown or URL links
[ ] Images use HTML style and have alternative text
[ ] Places where multiple code/command options are given have codetabs

In addition, please fill out the following to help reviewers understand this pull request:
Description
Add enableWebsockets property to the gateway snippet
Issue reference
Fixes: #[issue number]
or
Fixes: https://github.com/radius-project/radius/issues/[issue number]

based on the update, do we need an entry in table https://docs.radapp.io/reference/resource-schema/core-schema/gateway/#properties ?


write data by streamwriter but the file has some problem

Description

Steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
I wrote some data by streamwirter,and the row data is no order,  the result is that the output file has some problem

here is my code
func main() {
	var (
		err  error
		data []interface{}
	)
	file := excelize.NewFile()
	writer, err := file.NewStreamWriter("Sheet1")
	if err != nil {
		return
	}
	//
	d := []interface{}{"A", "B", "C", "D", "E", "F", "G"}
	err = writer.SetRow("A1", d)
	if err != nil {
		return
	}

	data = []interface{}{"A1", "B1", "C1", "D1", "E1", "F1"}
	err = writer.SetRow("A2", data)
	if err != nil {
		return
	}

	data = []interface{}{"A2", "B2", "C2", "D2", "E2", "F2"}
	err = writer.SetRow("A3", data)
	if err != nil {
		return
	}

	data = []interface{}{"A3", "B3", "C3", "D3", "E3", "F3"}
	err = writer.SetRow("A4", data)
	if err != nil {
		return
	}

        // back to the second row and write the data G2
	err = writer.SetRow("G2", []interface{}{"G2"})
	if err != nil {
		return
	}

	err = writer.Flush()
	if err != nil {
		return
	}

	err = file.SaveAs("/Users/cc/Desktop/test2.xlsx")
	if err != nil {
		return
	}
}

Describe the results you expected:
Output of go version:
go version go1.16.5 darwin/amd64

Excelize version or commit ID:
github.com/xuri/excelize/v2 v2.4.1

Environment details (OS, Microsoft Excel™ version, physical, etc.):
Microsoft Excel™ 16.59
macOS 12.1
2019 MacBook Pro 16 inch

Thanks for your issue. Note that as the document says, please ensure that the order of line numbers is ascending in the streaming writing process.

Thanks for your issue. Note that as the document says, please ensure that the order of line numbers is ascending in the streaming writing process.

Although the line numbers are not in order, the data written is not in conflict, is this not allowed?

Yep, if you wanna write cell back around, please using the normal API.

Yep, if you wanna write cell back around, please using the normal API.

ok, thanks

I closed this issue. If you have any questions, please let me know.


chore(packages/template): regenerated vuex

tendermint/vue#1976

Has both SDK and IBC, looks good. Haven't tried the template, though.


Changed the dependency-definition to get rid of a deprecation warning

Version: Ansible <IP_ADDRESS>
Warning displayed:
[DEPRECATION WARNING]: The comma separated role spec format, use the yaml/explicit format instead..
 This feature will be removed in a future release. Deprecation warnings can be disabled by setting
 deprecation_warnings=False in ansible.cfg.

The current error is something new from molecule and not related to this PR.


Ctrl-Tab and Ctrl-Shift-Tab to move between tabs.

Hi,
Presently there appears to be no keyboard shortcut to switch between tabs in DBeaver.  It would be nice to be able to switch tabs forward with Ctrl-Tab and backward with Ctrl-Shift-Tab like you can with Tabs in Chrome for example.  I am surprised that this has never been implemented.
Cheers,
Jason.

Never mind .. I found how to do this.. :)


metatensor integration - neighbor list

it looks to me (based on examples) that the metatensor wrappers use a separate neighbor list argument to the calculator.forward. Given that https://docs.metatensor.org/latest/atomistic/reference/systems.html#metatensor.torch.atomistic.System has a way to incorporate neighbor list data, shouldn't we do that?

A metatensor model is available in the docs since PR #99


What hardware do I need to run this program

What hardware would I need to purchase and setup in order for climbdex to light my 8x12OG Kilterboard?
I have no experience with computers other than basic user skills. And no experience with addressable LEDs. I found a link to climbdex on reddit.
From watching youtube videos I have gathered I could possibly purchase an esp32 board kit, flash WLED to the board from WLED website, and  hookup ws2811 (312lights x 2) string lights with 10-12 inch spacing, and 5v power booster.  All readily available online.  Am I way off watching these videos?
I would be happy to make a contribution if I can get climbdex working with my kilter board!

Interesting question! I'd imagine you can purchase an LED kit directly from Kilter. As long as you are using the same LED controller that Kilter provides with their LED kit, Climbdex should be able to communicate with the controller to light up climbs. If you wanted to use a different controller, I suspect their would be some work to implement a new bluetooth communication protocol, but you are certainly welcome to contribute this if you're motivated.
Just a heads-up that the Bluetooth feature is a bit of a work-in-progress. It generally works, but the official Kilter mobile app is probably still a little bit more robust. I'm interested in improving this as well and I would be happy to accept contributions in this area.

Also, this issue would belong in https://github.com/lemeryfertitta/Climbdex/issues as the Bluetooth support is in Climbdex, not BoardLib. Feel free to open a new issue to continue the discussion there if you have further questions or ideas.


Remove some unnecessary task storage internal APIs.

Code cleanup, with one side effect (described below).

Remove MetadataStorageActionHandler's getInactiveStatusesSince and getActiveEntriesWithStatus.
Remove TaskStorage's getCreatedDateTimeAndDataSource.
Remove TaskStorageQueryAdapter's getCreatedTime, and getCreatedDateAndDataSource.
Migrated all callers to getActiveTaskInfo and getCompletedTaskInfo.

This has one side effect: since getActiveTaskInfo (new) warns and continues when it
sees unreadable tasks, but getActiveEntriesWithStatus (old) threw an exception when it
encountered those, it means that after this patch bad tasks will be ignored when
syncing from metadata storage rather than causing an exception to be thrown.
IMO, this is an improvement, since the most likely reason for bad tasks is either:

A new version introduced an additional validation, and a pre-existing task doesn't
pass it.
You are rolling back from a newer version to an older version.

In both cases, I believe you would want to skip tasks that can't be deserialized,
rather than blocking overlord startup.

The error looks like the travis cache got corrupted? I cleared it and tried the job again.
[INFO] Compiling 191 source files to /home/travis/build/apache/incubator-druid/java-util/target/classes
error: error reading /home/travis/.m2/repository/io/netty/netty-transport/4.0.52.Final/netty-transport-4.0.52.Final.jar; error in opening zip file
An exception has occurred in the compiler (9-internal). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.util.zip.ZipError: zip END header not found
	at com.sun.nio.zipfs.ZipFileSystem.zerror(ZipFileSystem.java:1605)

Please check this:
[ERROR] /home/travis/build/apache/incubator-druid/common/src/main/java/io/druid/metadata/MetadataStorageActionHandler.java:24:8: Unused import - io.druid.java.util.common.Pair. [UnusedImports]
Audit done.

I removed that and re-pushed.

Hi, @gianm . There are still unused import clauses. IMO, we should add the --fail-at-end option into the maven command for the `strictly compiled' part, and then we can get all these error messages at once, including checkstyle, compile, testcases, etc.

@gianm If you think this is necessary, I will create a PR for it. :smile:

@asdf2014 I will fix them and re-push.
Anything that makes the CI failure message more useful sounds great 😄


Implement :reload command

Reload command is already parsed, but not implemented yet.
:reload should replace all definitions from files previously added with :module with definitions in those same files.

Reserve


How to reinitiate apollo client middleware?

Is there any way to reset the apollo client middleware on command? I am basically looking for a function that does this:
apolloClient.reinitiateMiddleware() -> So it fetches the token from a cookie again.
Basically my problem is this:
I use the feathersClient to authenticate a user, which in turns sets the jwt token into a cookie.
After the user is authenticated, I fetch the details with a graphql query using the apollo client.
What does work:

Log in, refresh page  ==> apollo client token gets re-initiated

What does not work:

Log in ==> apollo client token doesn't get re-initiated.
Log in, switch page ==> apollo client token doesn't get re-initiated.
Log out ==> apollo client keeps the token in headers

apollo defaultclient:
export default (ctx) => {
  const { req } = ctx;

  const httpLink = new HttpLink({ uri: 'http://localhost:3001/graphql' });

  const token = process.server
    ? getTokenFromRequest(req)
    : ssrStorage.getItem(cookieName); // eslint-disable-line

  const middlewareLink = new ApolloLink((operation, forward) => {
    operation.setContext({
      headers: { authorization: `Bearer ${token}` },
    });
    return forward(operation);
  });

  const link = middlewareLink.concat(httpLink);

  return {
    link,
    cache: new InMemoryCache(),
  };
};

Authentication with store:
async local(store, { email, password }) {
    await feathersClient.authenticate({ strategy: 'local', email, password });
    // get user via graphql as viewer
    store.dispatch('getViewer');
  },

  async getViewer(store) {
    const client = this.app.apolloProvider.defaultClient;

    const user = await graphqlQueryToGetViewer(client);
    store.commit('SET_USER', user);
  },

async logout(store) {
    await feathersClient.logout();
    await this.app.apolloProvider.defaultClient.resetStore();
    store.commit('SET_USER', null)
  },

My current hacky solution:
async getViewer(store) {

    let client;

    if (process.server) {
      client = this.app.apolloProvider.defaultClient;
    } else {
      client = new ApolloClient(apolloDefaultClientModule({ req: {} }));
    }

    const user = await graphqlQueryToGetViewer(client);
    store.commit('SET_USER', user);
  },

But the solution is very hacky, because I am spawning a new apollo client object, mocking the req object. Also, I would have to do this for every query, and that's just not clean.

That's what I werer confused too. Here is one of the answer:
https://github.com/nuxt-community/apollo-module/issues/73

Currently this is what work for me. I did not use Vuex to handle the token, I define my own plugin to handle auth with apollo client (https://nuxtjs.org/guide/plugins#inject-in-root-amp-context):
My plugin.js file look something like this
import Vue from 'vue'

export default ({ req, app }, inject) => {
  // Inject `token` key
  // -> app.$token
  // -> this.$token in vue components
  // -> this.$token in store actions/mutations
  inject('token', new Vue({
    data: () => ({
      token: process.server ? req.session.authToken : window.__NUXT__.state.auth.token
    }),
    methods: {
      set (token) {
        this.token = token
      },
      remove () {
        this.token = null
      }
    }
  }))
}

Here is my apollo client
import { ApolloLink, concat, split } from 'apollo-link'
import { HttpLink } from 'apollo-link-http'
import { InMemoryCache } from 'apollo-cache-inmemory'
import { WebSocketLink } from 'apollo-link-ws'
import { getMainDefinition } from 'apollo-utilities'
import 'subscriptions-transport-ws'

export default (ctx) => {
  const httpLink = new HttpLink({ uri: 'https://api.graph.cool/simple/v1/cjaeub9io2kcz0115e4m0ql6d' })

  // auth token
  let token
  // let token = ctx.app.$token.token will not work here, it's weird, console log will get undefined.

  // middleware
  const middlewareLink = new ApolloLink((operation, forward) => {
    token = ctx.app.$token.token // It is working here - confusing @_@
    operation.setContext({
      headers: { authorization: `Bearer ${token}` }
    })
    return forward(operation)
  })

  const wsLink = process.client && new WebSocketLink({
    uri: `wss://subscriptions.ap-northeast-1.graph.cool/v1/cjaeub9io2kcz0115e4m0ql6d`,
    options: {
      reconnect: true,
      connectionParams: () => {
        return {
          Authorization: token ? `Bearer ${token}` : null
        }
      }
    }
  })

  const link = process.server ? httpLink : split(
    ({query}) => {
      const {kind, operation} = getMainDefinition(query)
      return kind === 'OperationDefinition' && operation === 'subscription'
    },
    wsLink,
    httpLink
  )

  return {
    link: concat(middlewareLink, link),
    cache: new InMemoryCache()
  }
}

Login method will look something like this
  methods: {
    async emailLogin () {
      const { email, password } = this.$data
      await this.$apollo.mutate({
        mutation: UserLogin,
        variables: {
          email,
          password
        }
      }).then((result) => {
        const id = result.data.login.id
        const token = result.data.login.token
        this.$axios.post('/api/login', { id, token })
        this.$token.set(token)
      }).catch((error) => {
        console.log(error)
      })
    }
  }

Thanks to @kieusonlam for the fix.
I made a pull request as it is a bug in the README file -> https://github.com/nuxt-community/apollo-module/pull/86
The function that is given to the apollo middleware link is:
(operation, forward) => {
    operation.setContext({
      headers: { authorization: `Bearer ${token}` }
    })
    return forward(operation)
  }

This function is called on each apollo request, therefore the token must be fetched from inside the function like this:
(operation, forward) => {
    const token = process.server ? ctx.req.session : window.__NUXT__.state.session

    operation.setContext({
      headers: { authorization: `Bearer ${token}` }
    })
    return forward(operation)
  }


Update rack to 2.0.8

Apisonator is not affected, but this update addresses this CVE: https://github.com/advisories/GHSA-hrqr-hxpp-chr3

bors r+

bors r-

bors r+

bors ping

bors retry

bors r=unleashed

Wow, that was ... slow.


Not able to access gallery

Hi!
I really liked your component and i´m trying to use it in my application but i´m getting an issue.
I did all the things listed in your github page, but when i try to open the gallery, i´m having the following issue:
Calling startActivity() from outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK flag.
And i´m calling the picker like you did
new Picker.Builder(getBaseContext(),new MyPickListener())
.build()
.startActivity();
Can you help me out?
I´ll appreciate.
Thanks

Can you send your source code ?
for now try to replace getBaseContext() with this , if you are calling it inside an activity

I replaced the getBaseContext() with this and worked great!
Thanks alot for the reply.

You're welcome , I will also be grateful to you if you gave me your feedback about this library
on<EMAIL_ADDRESS>


Add "nodoc" annotation

The can be used to control the pony compilers documentation generation,
any structure that can have a docstring (except packages) can be
annotated with \nodoc\ to prevent documentation from being generated.
This replaces a hack I put in years ago to filter out items that
were "for testing" by looking for Test and _Test at the beginning of
the name as well as providing UnitTest or TestList.
All standard library test items have been annotated with \nodoc\ to
keep them continuing to not have documentation generated by our
standard process of creating the standard library documentation site.
ponylang org libraries will need to be updated as well.
Note that the "should we include this package" hack to filter out
packages called "test" and "builtin_test" still exists for the time
being until we have further discussion.
Closes #3332

I've also added a manual CHANGELOG entry to the "changed" aspect of this that removed the previous "sean quick hack" version.

Tutorial PR opened:
https://github.com/ponylang/pony-tutorial/pull/493


docs: clarify need to fork all branches

If you fork only main, the three apps pointing to other branches will fail to sync.

lol I need to read further down the docs


More filtering refactoring.  Another backward-incompatible change.

More changes in Dataset.read_period.  Move flagging, calibration count
filtering, and PRT count filtering, out of the reader and into their own
classes.  Those are applied by default through HIRS.default_orbit_filters
(6 in total), but you can pass any (ordered!) combination of those through
the orbit_filters parameter in HIRS.read.  This replaces apply_flags and
apply_filter.  The calibrate parameter has been renamed apply_calibration.
Specifically:
Before:
M = hirs.read_period(..., reader_args={"apply_flags": False, "calibrate":
False})
After:
M = hirs.read_period(...,
orbit_filters=[f for f in hirs.default_orbit_filters
if not isinstance(f,
(typhon.datasets.filters.HIRSCalibCountFilter,
typhon.datasets.filters.HIRSPRTTempFilter,
typhon.datasets.filters.HIRSFlagger))])
which is unfortunately more verbose and cumbersome, but a lot more
flexible as one can use any number of filters, the default ones that
are built-in or you can supply your own.

Do you want any help or code review? Otherwise feel free to merge your changes :wink:

Oh, I forgot to merge this one.  I can manage although just last week I had someone you know better than me review my code design for the first time, and it was very useful!  :-)


C++: Update @kind for metric queries

@Semmle/cpp-analysis this PR updates the metric queries to use the alternative @kind metric that was introduced by @aibaars in #28231 and #28480. I omitted any deprecated queries.
This seems as if it would be worth doing for 1.19, but if there may be wider implications and you plan to do this later feel free to close the PR.

I have no idea what difference this might make to PI, TI, and LGTM. Are there corresponding PRs for other languages? Who is competent to review this?

Depending on how this PR went, I was planning to make further PRs for other languages.
As far as I know, this is behavior preserving for all products but @aibaars and @adityasharad would be best placed to comment on the safety of this change.

With Arthur's changes to the toolchain, this is entirely behaviour-preserving for 1.19 onwards, but 1.18 toolchains will not recognise @kind metric. With our existing branch-tracking setup, I think this change should either be targeted at next now, or at master after we release 1.19. @aibaars does that sound sensible?
Another concern I raised on the internal PRs is that the metric property tags still involve treemap, e.g. treemap.warnOn, because those are a bit harder to rename. So there is a minor oddity of sometimes having metric and treemap mentioned in the same file, but that's mainly aesthetic.

On balance it sounds as if I should close this PR and raise a couple of Jira issues for consideration in a future release.


Logs to Metrics Display issue siggles

There is a image in this doc that has scribbles on it. Can we get a better image?
https://help.sumologic.com/docs/metrics/logs-to-metrics/
Slack Message

Image is fixed


TypeScript types incompatible with packaged library

When implementing the mParticle npm package, along with its types (provided by DefinitelyTyped), seems to have a few issues both when in the editor and when serving the app.
Importing enum or other types from the library gives me an error stating:
Error: export 'EventType' (imported as 'EventType' ) was not found in '@mparticle/web-sdk' (possible exports: default)

Importing the default export gives me an error:
Module '"/Users/dsantiago/dev/research/mparticle-test/node_modules/@types/mparticle_web-sdk/index"' has no default export. 2 import MParticle, { EventType, SDKEventAttrs } from '@mparticle/web-sdk';

And in the editor:

I have an example repo here that shows the above issues.
Uninstalling the Typescript types, does seem to allow the app to build/serve but we lose the Typescript types.
Is there a more detailed guide on how to use the npm packaged library with the types in an Angular project?

Hi @dasco144 -
The type of app framework (angular, react) shouldn't matter.  You can take a look at our sample app.  I think the issue you are having is the casing of mParticle. You should import mParticle and not MParticle as shown in the sample app.
Let me know if that fixes things.  If not, you may need to open up a ticket directly with your customer success manager so that we can route this through the proper channels for debugging.

Hi @rmi22186
From what I understand, the casing doesn't matter here, as when importing from a default export, you can name the import as you like.

But, I may have managed to resolve this. Our TSConfig did not have allowSyntheticDefaultImports enabled, since we generally don't import files from libraries packaged the way the @mparticle/web-sdk exports them. Once that setting was enabled in the TSConfig compiler options, it did resolve the types correctly.
It does seem strange that this extra step is required though, as many other libraries do not. Maybe it's because many of the libraries in the Angular ecosystem are TypeScript libraries, where the exports are managed in a different way (most of the time it is named exports).
Is there a path to resolve that perhaps? Might help a lot of non-react devs, as it seems that TSConfig option is enabled by default in the current create-react-app and vite methods of creating react apps with TypeScript.
At the very least, it might be worth mentioning this in the docs somewhere (if there is a reference I did not see it 😅) for either the types (@types/mparticle__web-sdk) or the library itself (@mparticle/web-sdk)

That's my mistake for suggesting that.
Thank you for the suggestion about including @types in the docs.  While it does show a little linter squiggly line saying to try installing from there, I can understand that it isn't obvious for someone who hasn't had to use the @types packages before for non-TS projects.  I'll make a ticket for that.
We are in the process of migrating our JS --> TS in order to avoid having the extra @types/ step and to simplify things.
Glad you found a solution though!

I'll mark this as closed for now given the config setting you found.


Use texel dtype appropriate for ArrayBufferView dtype when uploading dense matrix to texture.

This enables performance parity with fromPixels when uploading Uint8Array.
To see the logs from the Cloud Build CI, please join either
our discussion
or announcement mailing list.

This change is

@pyu10055 Hey Ping - let me know if this closes the performance gap you were seeing with FromPixels.


Skype call drops after 13 sound play prompts

I have a Skype calling bot that sends back to skype audio files as play prompt. The call drops each time after 13 audio files have been played.

Could you share your bot id please? We have a limit on the number of serial workflows that can be given by a bot and the behavior you are explaining might be a result of that.

Microsoft App ID: c277b29c-65f2-4883-b7bb-0664ac959670

Thanks. I can confirm that the behavior that you are seeing is a result of the limit that we have on the number of back and forth interactions. We will look into increasing the limit.

Please look into removing the limit at all. It might be extremely difficult  to run a conversational bot with limit when the call drops when limit is reached. This would be bad from both the conversation-with-bot-experience point of view and from skype-call-experience point of view. Thanks.

Thanks for your feedback. We will definitely look into this holistically.


Add host info to weight templates

Add the hostname and cpu name to all weight templates.
Looks like this: HOSTNAME: oty-parity, CPU: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz.
This helps with identifying on which machine the benchmark ran.

/cmd queue -c bench-bot $ runtime pallet pallet_system

/bench runtime pallet pallet_system


is there any didTouchFinish?!

hi.
thank for your great work.
how i can know if touch is finished?
i want to send selected rate to server after user set the rate.
i used didTouchCosmos,but it is not good way to send rated value to server!

Hi @zigool, this is actually a really useful suggestion that I will use in my own app.
Implemented, thanks!
// Called when user finishes changing the rating by lifting the finger from the view.
// This may be a good place to save the rating in the database or send to the server.
cosmosView.didFinishTouchingCosmos = { rating in }

hey man!
Thanks
i'm using Xcode 6 and swift 1.2 and cocoapods!
there is not any 'didFinishTouchingCosmos'
how i should update library in my project?!
sorry i'm beginner in ios

No worries. Yes you will need to upgrade to Xcode 7 to get this update.


Throw internal/compiler errors instead Error when possible

Closes #645
I have replaced throw Error with throwInternalCompilerError in most cases, as that's essentially how the compiler should behave. If the user encounters an "impossible" case, they should definitely be encouraged to report it.
Otherwise, if we encounter this kind of error while using the compiler API in a tool, we should understand that we are using it incorrectly.
Note that I didn't modify the old backend, as it will be rewritten anyway.

[x] I have updated CHANGELOG.md
[ ] I have documented my contribution in Tact Docs: https://github.com/tact-lang/tact-docs/pull/PR-NUMBER
[ ] I have added tests to demonstrate the contribution is correctly implemented: this usually includes both positive and negative tests, showing the happy path(s) and featuring intentionally broken cases
[x] I have run all the tests locally and no test failure was reported
[x] I have run the linter, formatter and spellchecker
[x] I did not do unrelated and/or undiscussed refactorings

Oh, btw, let's add the Tact errors to index.ts as well


Export-SqlLogin: Try Catch around dynamic params to prevent Null exception

Fixes #660
Tested on Windows 10/2012R2, SQL2014/16, Powershell 5
Changes proposed in this pull request:

Wrap Dynamic Param in Try/Catch to prevent null exception

How to test this code:

[ ] Export-SqlLogin -SqlServer SQL01 -FilePath C:\logins.sql

Has been tested on minimum requirements:

[ ]  Powershell 3
[ ]  Windows 7
[ ]  SQL Server 2000

Has been tested on maximum requirements:

[ ]  SQL Server vNext
[ ]  Windows 10
[ ]  Azure Database

Tests for tester:

[ ] Working/useful help content, including link to command on dbatools web site
[ ] All examples work as advertised
[ ] Does not contain template content
[ ] Does not contain excessive/unnecessary amounts of comments
[ ] Works remotely
[ ] Works locally
[ ] Works on lower versions or throws error specifying version not supported
[ ] Works with named instances
[ ] Works with clustered instances
[ ] Handles offline/read only databases
[ ] Supports multiple servers (at the command line or piped from Get-SqlRegisteredServerName)
[ ] No un-handled errors which stop the command working with multiple servers

Dammit, wrong branch.


why  chart of the plotly code output don't displayed?

I've had a problem with using plotly in Jupiterlab/jupyternotebook, the chart of the code output is not properly displayed,  the code is as follows, and the jupyterlab/jupyter-plug-in has been installed
import plotly.graph_objs as go
fig = go.Figure({
'data':[{'type':'bar',
'x':[1,2,3],
'y':[1,3,2]}],
'layout':{'title':{'text':'A Bar Chart'}}
})
fig.show()

I have the same issue. The plot doesn't show up when I run the following:
import plotly.express as px
fig = px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16])
fig.show()
I tried to run it in offline mode but that didn't help either.

My issue was resolved with proper installations given here: https://github.com/plotly/plotly.py#jupyterlab-support-python-35

@x83443647629 ,This is the reason.
@jupyterlab/plotly-extension is being deprecated. Please use the Plotly-supported jupyterlab-plotly. See the plotly.py README for more info.

Closing as answered. Thanks @rajvijen and @ptiagi !


Asymmetric uncertainties in input data

Is it possible to modify the routine in order to deal with asymmetric uncertainties (xsig=(xsig-,xsig+), ysig=(ysig-,ysig+)), or even better accounting for the resulting uncertainty distribution when going from linear to logarithmic scale (which is not Gaussian anymore)?
The problem is, if you have (symmetric) uncertainties in the (initially linear-scale) data and want to apply LinMix to perform a linear regression of the log-log-scale converted data, you end up with asymmetric uncertainties and the fit will be biased towards larger values in the Gibbs sampler (for the drawn data) and hence biased towards larger values in the intercept and eventually a flatter slope (which I have tested with some data simulations).
This should be a common issue in astronomy because we often go from linear-linear to log-log scale and then perform a linear regression to effectively fit a power law to the data.

I also am running into this issue currently and was wondering if there is any update.

I am still stuck on this. Has anyone found a solution?

same here


fix(table): tooltips don't truncate

Closes #2953
Summary

fix the issue that cell header text not overflow with tooltips. Passed in resized column width in ToolTipDefinition to make text-overflow works. ( Note: the option width prop on column is undefined when resizing the column width. Not sure how to trigger setting it)
fix the issue tooltips got blocked by action menu. Made sure z-index is set to 6001

Acceptance Test (how to verify the PR)
Show overflow when not enough space

Make sure tooltips are not blocked

Regression Test (how to make sure this PR doesn't break old functionality)

tests here

Things to look for during review

[ ] Make sure all references to iot or bx class prefix is using the prefix variable
[ ] (React) All major areas have a data-testid attribute. New test ids should have test written to ensure they are not changed or removed.
[ ] UI should be checked in RTL mode to ensure the proper handling of layout and text.
[ ] All strings should be translatable.
[ ] The code should pass a11y scans (The storybook a11y knob should show no violations). New components should have a11y test written.
[ ] Unit test should be written and should have a coverage of 90% or higher in all areas.
[ ] All components should be passing visual regression test. For new styles or components either a visual regression test should be written for all permutations or the base image updated.
[ ] Changes or new components should either write new or update existing documentation.
[ ] PR should link and close out an existing issue

If you go to the table playground story and

enable knob Demo column tooltips
enable options.hasResize
The width of the columns will be passed correctly. I can see in your PR deployment that it is working, but the problem is that the width you are setting for the inner div is the same as we set for the outer th element and that one has 1rem padding on each side. So the new inner width needs to subtract that.

This is really close, @jessieyan, but I think we are still going to need a way to flip the last column tooltip. When the table initially renders (or you enable the "Demo initial column sizes" knob, the Object tooltip overflows to the right and causes the table to scroll.

This is really close, @jessieyan, but I think we are still going to need a way to flip the last column tooltip. When the table initially renders (or you enable the "Demo initial column sizes" knob) the Object tooltip overflows to the right and causes the table to scroll.

Hi @kevinsperrine Thanks! I think the issue you mentioned should be fixed in this PR3349. It was just merged in yesterday.

Hi @kevinsperrine Thanks! I think the issue you mentioned should be fixed in this PR3349. It was just merged in yesterday.

Ah. My bad. I thought you were doing them both in the same PR.


Custom asset source does not work with GLTF

Bevy version
Recent main: d2614f2d802d0fb8000821a81553b600cc85f734
What you did
Added a custom asset source and tried loading a GLTF with it.
Loading simple assets (e.g. single file images) works fine.
What went wrong
It finds the gltf file, but fails to load the scene.bin mentioned within the GLTF.
Additional information
Logs
2023-12-07T13:22:34.813576Z ERROR bevy_asset::server: Failed to load asset 'gltf://FlightHelmet.gltf' with asset loader 'bevy_gltf::loader::GltfLoader': failed to read bytes from an asset path: path not found: <path>/bevy/assets/FlightHelmet.bin
2023-12-07T13:22:34.813584Z ERROR bevy_asset::server: Failed to load asset 'gltf://FlightHelmet.gltf' with asset loader 'bevy_gltf::loader::GltfLoader': failed to read bytes from an asset path: path not found: <path>/bevy/assets/FlightHelmet.bin

Minimal reproduction
Make a folder foo and copy-paste the flight helmet files into it first.
use bevy::asset::io::*;
use bevy::{gltf::Gltf, prelude::*};

pub struct GltfFailomatic;

impl Plugin for GltfFailomatic {
    fn build(&self, app: &mut App) {
        app.register_asset_source(
            AssetSourceId::from("gltf"),
            AssetSource::build().with_reader(AssetSource::get_default_reader("foo".into())),
        );
    }
}
fn main() {
    App::new()
        .add_plugins((GltfFailomatic, DefaultPlugins))
        .add_systems(Startup, (setup, setup2))
        .run();
}

fn setup(asset_server: Res<AssetServer>) {
    let _: Handle<Gltf> = asset_server.load("gltf://FlightHelmet.gltf");
}

fn setup2(asset_server: Res<AssetServer>) {
    let _: Handle<Scene> = asset_server.load("gltf://FlightHelmet.gltf#Scene0");
}

It seems when loading the scene.bin it tries look in the default asset source instead of the one used for the GLTF "parent asset".

This is the problem that would be resolved by Relative Asset Paths. See the end of this PR description for details: https://github.com/bevyengine/bevy/pull/9885.
I don't think we have an issue tracking this yet.

Just making a note that I tried this on Bevy 0.13 and the results were the same:
Adding a custom asset source and doing my-assets://FlightHelmet.gltf finds the GLTF file in the correct location, but the related FlightHelmet.bin is not found since the GltfLoader is not aware of the initiating asset source.


hi, i'm complie for android have  some error

this file <aeron-client/src/main/cpp/util/MemoryMappedFile.cpp>  line 176， if  PAGE_SIZE has defined, i will have a error , so i think i should set a Macro switch.

but now i have a new error, if complie for GCC arm, i think the aeron inline asm is x86 instruction set，

I've changed the member name to avoid macro substitution going wild here.


endpoint: DID Association

Not part of MVP necessarily - Alternatively hook into NNS
POST /users/{:id}/did/... ?
DELETE /users/{:id}/did/... ?
PUT /users/{:id}/did/... ?
GET /users/{:id}/did/... ?

Ok since we are not doing did reference mapping in database I'll close this one since it doesn't concern server afaik.


Parse utc date instead of local

When I use this filter my output is off by a day. My local offset is -7. This pr defaults moment to use utc http://momentjs.com/docs/#/parsing/utc/

ping @piwi

Hello Eddy,
Thank you for this fix, I merged it manually as all development should first go to the dev branch ...
You can find your fix in new 0.1.1 version of the package.
(you were really right pinging me: I did not receive an email about your request)
Thanx

@piwi same here. I always miss notifications. Thanks for publishing the update!


Ignore v prefix from tag name when updating Homebrew formula

Thanks for creating this awesome GitHub action!
Description

If the tag name starts with v, then use the rest of the string as the version in the formula. Else, use as is.
For example, v0.1.0 becomes 0.1.0 in the tapped repo.
It's common practice to name the tags v${semantic_version} when creating the GitHub release, but the first character needs to be removed when creating the tag and version for the Homebrew formula.

I don't have previous experience with JavaScript/TypeScript - so please provide feedback if it needs to be done differently!

An alternative approach to this might be to allow users to override the version value through a parameter to the action (and leave the logic such as trimming the first character to users). Let me know what your thoughts are!


New Adapter: docereeadmanager.md

🏷 Type of documentation

[x] new bid adapter
[ ] update bid adapter
[ ] new feature
[ ] text edit only (wording, typos)
[ ] bugfix (code examples)
[ ] new examples

📋 Checklist

[ ] Related pull requests in prebid.js or server are linked -> Paste link in this list or reference it on the PR itself
[ ] For new adapters check submitting your adapter docs

@Doceree-techStack can you link the related pull request?

Related PR in prebid.js
https://github.com/prebid/Prebid.js/pull/10684

ping @Doceree-techStack


feat(body-parser): add application/x-www-form-urlencoded

add maxPayloadSize for body parsers (with 2MB default) add .send() method
update vscode settings.json

coverage: 97.667% (-2.3%) from 100.0%
when pulling dc06d903a486bd36969ef47d0de5cd4a6f2ee4fa on joaoneto:feat/form-urlencoded
into 753a4d365e3665969d458e095ad0b8bd0ba69c49 on guarapi:main.


Refactoring auth data to not use heapless Strings, fixing build

This PR updates auth to:

Use the ConfigBuilder struct for specification to align with other start-up behaviors
Uses the buffer from the config to back the memory needed to cache the auth credentials, eliminating the need for heapless::String types (which impose run-time cost on users that don't need auth)
Excludes auth serialization without the expected feature flag to prevent accidentally providing insecure credentials.

CC @cnmozzie

When I run cargo build --features "unsecure" it shows the error message:
Compiling minimq v0.7.0 (D:\code\rust\minimq)
error[E0308]: mismatched types
  --> src\config.rs:93:13
   |
93 |             user_name,
   |             ^^^^^^^^^ expected `&str`, found `&mut [u8]`
   |
   = note:      expected reference `&str`
           found mutable reference `&mut [u8]`

error[E0308]: mismatched types
  --> src\config.rs:94:13
   |
94 |             password,
   |             ^^^^^^^^ expected `&str`, found `&mut [u8]`
   |
   = note:      expected reference `&str`
           found mutable reference `&mut [u8]`

For more information about this error, try `rustc --explain E0308`.
error: could not compile `minimq` (lib) due to 2 previous errors

@cnmozzie Thanks for the heads up! I fixed CI so that it builds with --all-features now to prevent this in the future and cleaned up the code :)

Nice, can't wait to see the new release  :)


uncaught decoder failure

Describe the bug
The decoder hits a character it cannot decode and segfaults, rather than gracefully erroring
To Reproduce
target file creating the issue is at:
http://gallery.herrold.com/stuff/Murray93DrunkAndDog.pdf
CentOS 7 with EPEL
[herrold@localhost prices]$ rpm -V python36-pdfminer
[herrold@localhost prices]$ rpm -q python36-pdfminer
python36-pdfminer-20160614-5.el7.noarch
[herrold@localhost prices]$ /usr/bin/latin2ascii Murray93DrunkAndDog.pdf
Traceback (most recent call last):
File "/usr/bin/latin2ascii", line 130, in
if name == 'main': sys.exit(main(sys.argv))
File "/usr/bin/latin2ascii", line 125, in main
for line in fileinput.input(args):
File "/usr/lib64/python3.6/fileinput.py", line 250, in next
line = self._readline()
File "/usr/lib64/python3.6/fileinput.py", line 364, in _readline
return self._readline()
File "/usr/lib64/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 10: ordinal not in range(128)
[herrold@localhost prices]$
ask if you need more information to reproduce, but this should suffice
Murray93DrunkAndDog.pdf

The latin2ascii.py file did not have any meaningful changes since 2010. I guess it is outdated and there are (much) better ways to achieve what you want. What is it that you want to do?
For you information; the latin2ascii command does not extract the content of the pdf. It just prints the all the bytes from the file (in your case the pdf) in ascii notation.


JSX middleware

We want to have JSX middleware. This was discussed in this issue #289 .
I want to make the following:

Just support for Sever-Side Rendering. Don't support the browser side. Render it as strings, not virtual DOM
Make it as middleware
Zero-dependencies
Use c.render method
Support props.children

Code example:
import { Hono } from 'hono'
import { jsx } from 'hono/jsx'
import { Header, Footer } from './component'

const app = new Hono()

const Layout = (props) => {

    {props.children}

}

type Props = {
  message: string
}

const Top = <Props>(props) => {
  return (
    <Layout>

{ props.message }

    </Layout>
  )
}

app.get('/', (c) => {
  const message = 'Hello Hono!'
  return c.render(<Top message={message} />)
})

app.fire()

Maybe we can check this project https://github.com/flareact/flareact

I know the Flareact. It seems to be a good framework like Next.js for Cloudflare Workers. And now, there is Remix that works in Cloudflare Workers. If I build a large website, I'll use one of these frameworks.
But, if I build a few small HTML pages, it's cumbersome to use these React-based frameworks. In the case of Hono, I want a tiny function to make HTML. It should not be React and having Virtual Dom. But, JSX is easy to write. So, I want a middleware that outputs HTML strings with JSX syntax.
And.. isn't it pretty cool that we can use JSX in Hono:)

@yusukebe
I have an idea for a (ultra?) fast JSX engine implementation specifically for SSR.
Summary
The implementation of this branch is short and beautiful, I love it.
https://github.com/honojs/hono/tree/feat/jsx
However, I think that it would be more optimized if it were dedicated to SSR.
Idea
At the first rendering, the static and dynamic parts are separated and serialized into an array.
https://github.com/honojs/hono/compare/feat/jsx...usualoma:poc-feat-jsx-with-jit
[
  '<title data-xxx="',
  [Function: lazy],
  '">Handle <> Event</title><meta name="description" content="',
  [Function: lazy],
  '"></meta><meta property="og:type" content="article"></meta><meta property="og:title" content="',
  [Function: lazy],
  '"></meta><meta property="og:site_name" content="家系ラーメン食べたい！"></meta><meta property="og:image" content="',
  [Function: lazy],
  '"></meta>',
  [Function: lazy] { map: [Function (anonymous)] },
  ''
]

The following benchmark results were obtained in my environment.
The current branch is a POC, so the results may change as we fix bugs and add features, but generally the results will be similar to this. Also, as the number of HTML elements increases, the performance difference becomes greater.
Not all use cases can take advantage of this optimization, but many cases can be covered for small applications.
jsx x 46,519 ops/sec ±1.54% (87 runs sampled)
jsx - with jit x 84,935 ops/sec ±1.36% (88 runs sampled)
jsx - nano-jsx x 34,598 ops/sec ±1.00% (93 runs sampled)
Fastest is jsx - with jit

（ Oops, I forgot to push some of the commits, so I updated poc-feat-jsx-with-jit branch. ）

With b59c828
jsx x 48,007 ops/sec ±2.35% (82 runs sampled)
jsx - with jit x 100,372 ops/sec ±1.10% (91 runs sampled)
jsx - nano-jsx x 34,042 ops/sec ±1.51% (89 runs sampled)
Fastest is jsx - with jit

But, well, also I think it is a good option to keep JSX implementation simple in the Hono, and if we want to do more optimization, we create another repository.

Hi @usualoma !
It's really ultrafast! And, your implementation is great!
However, as you point out, I think it's important to keep it simple. The main parts of Hono such as routers, compose, or context should be tuned, but I want to make the middleware simple.

if we want to do more optimization, we create another repository.

That's a good idea!
There is no JSX library that is optimized for SSR. People are believing JSX is just for React things. But, we know JSX is just syntax.
So, I will keep implementing the JSX middleware in the branch, we should add more tests and add other features ( have to make dangerouslySetInnerHTML??). Please don't stop helping.
PS.
The coupling of JSX SSR and Hotwire is interesting. Because Hono+JSX is more like Rails that React framework. Hotwire will be a good match. Don't you think so?
https://twitter.com/yusukebe/status/1532872756466855936

So, I will keep implementing the JSX middleware in the branch, we should add more tests and add other features ( have to make dangerouslySetInnerHTML??). Please don't stop helping.

👌

JSX SSR and Hotwire
I too think it's great to be able to use JSX SSR and Hotwire to generate HTML strings and still improve the UX without the development costs!


Why  it can't run on cpu?

Hi, thanks for your sharing, I try to run the code on cpu but failed. could you help me out?
I changed the link for installing tensorflow (on cpu)

it runs on CPU. what is the error message?


Rails 5: ActiveRecord::ConnectionNotEstablished: No connection pool with 'primary' found.

We have 2 servers: master and a slave server. slave server is primarily being used to handle reports. All the long background running processes are pushed to the slave server. We are using sidekiq for background processing.
Now, whenever a report is ready we create a Download object in which the generated report is attached. As the process is running in slave we need to connect to master in order to create Download object. Code looks something like this:
def perform(tenant_name)
  Apartment::Tenant.switch(tenant_name) do
    # data processing code here....
    connection = MasterDbConnectionService.connect(tenant_name)
    Download.create!(time_taken: time_taken, file: file) # Pseudo code
    # Disconnect from the previously established connection
    MasterDbConnectionService.disconnect(connection)
  end
end

But we are intermittently facing the error especially for long running jobs most probably because of sidekiq retrying that job.

ActiveRecord::ConnectionNotEstablished) "No connection pool with 'primary' found.

MasterDbConnectionService code:
def connect(tenant_name)
  ActiveRecord::Base.establish_connection(master_config.merge(schema_search_path: "'#{tenant_name}',public,shared_extensions"))
end

Config: Nginx, Phusion Passenger, Postgres, ruby-2.3.1, rails 5.1.3
Full stack trace:
/home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activerecord-5.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:930:in `retrieve_connection'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activerecord-5.1.3/lib/active_record/connection_handling.rb:116:in `retrieve_connection'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activerecord-5.1.3/lib/active_record/connection_handling.rb:88:in `connection'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/apartment-2.1.0/lib/apartment/adapters/postgresql_adapter.rb:40:in `reset'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/apartment-2.1.0/lib/apartment/adapters/abstract_adapter.rb:88:in `rescue in ensure in switch'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/apartment-2.1.0/lib/apartment/adapters/abstract_adapter.rb:88:in `ensure in switch'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/apartment-2.1.0/lib/apartment/adapters/abstract_adapter.rb:88:in `switch'
  /home/deployer/workspace/rails/dms_webapp/app/jobs/report_download_job.rb:12:in `perform'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activejob-5.1.3/lib/active_job/execution.rb:37:in `block in perform_now'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/callbacks.rb:108:in `block in run_callbacks'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/i18n-0.9.5/lib/i18n.rb:268:in `with_locale'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activejob-5.1.3/lib/active_job/translation.rb:7:in `block (2 levels) in <module:Translation>'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/callbacks.rb:117:in `instance_exec'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activejob-5.1.3/lib/active_job/logging.rb:24:in `block (4 levels) in <module:Logging>'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/notifications.rb:166:in `block in instrument'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/notifications.rb:166:in `instrument'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activejob-5.1.3/lib/active_job/logging.rb:23:in `block (3 levels) in <module:Logging>'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activejob-5.1.3/lib/active_job/logging.rb:44:in `block in tag_logger'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/tagged_logging.rb:69:in `block in tagged'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/tagged_logging.rb:26:in `tagged'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/tagged_logging.rb:69:in `tagged'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activejob-5.1.3/lib/active_job/logging.rb:44:in `tag_logger'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activejob-5.1.3/lib/active_job/logging.rb:20:in `block (2 levels) in <module:Logging>'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/callbacks.rb:117:in `instance_exec'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/callbacks.rb:135:in `run_callbacks'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activejob-5.1.3/lib/active_job/execution.rb:33:in `perform_now'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activejob-5.1.3/lib/active_job/execution.rb:22:in `block in execute'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/callbacks.rb:108:in `block in run_callbacks'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activejob-5.1.3/lib/active_job/railtie.rb:26:in `block (4 levels) in <class:Railtie>'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/execution_wrapper.rb:85:in `wrap'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/reloader.rb:68:in `block in wrap'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/execution_wrapper.rb:81:in `wrap'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/reloader.rb:67:in `wrap'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activejob-5.1.3/lib/active_job/railtie.rb:25:in `block (3 levels) in <class:Railtie>'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/callbacks.rb:117:in `instance_exec'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/callbacks.rb:135:in `run_callbacks'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activejob-5.1.3/lib/active_job/execution.rb:20:in `execute'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activejob-5.1.3/lib/active_job/queue_adapters/sidekiq_adapter.rb:40:in `perform'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/processor.rb:199:in `execute_job'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/processor.rb:170:in `block (2 levels) in process'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/middleware/chain.rb:128:in `block in invoke'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/middleware/chain.rb:133:in `invoke'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/processor.rb:169:in `block in process'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/processor.rb:141:in `block (6 levels) in dispatch'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/job_retry.rb:97:in `local'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/processor.rb:140:in `block (5 levels) in dispatch'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/rails.rb:42:in `block in call'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/execution_wrapper.rb:85:in `wrap'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/reloader.rb:68:in `block in wrap'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/execution_wrapper.rb:85:in `wrap'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/activesupport-5.1.3/lib/active_support/reloader.rb:67:in `wrap'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/rails.rb:41:in `call'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/processor.rb:136:in `block (4 levels) in dispatch'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/processor.rb:215:in `stats'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/processor.rb:131:in `block (3 levels) in dispatch'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/job_logger.rb:7:in `call'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/processor.rb:130:in `block (2 levels) in dispatch'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/job_retry.rb:72:in `global'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/processor.rb:129:in `block in dispatch'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/logging.rb:44:in `with_context'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/logging.rb:38:in `with_job_hash_context'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/processor.rb:128:in `dispatch'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/processor.rb:168:in `process'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/processor.rb:85:in `process_one'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/processor.rb:73:in `run'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/util.rb:16:in `watchdog'
  /home/deployer/.rvm/gems/ruby-2.3.1@rails513/gems/sidekiq-5.0.4/lib/sidekiq/util.rb:25:in `block in safe_thread'

@cgratigny can you please explain your thread safety issues?
i joined a codebase with heavy use of the apartment gem (almost everything  in own schemas) and when sidekiq runs jobs, sometimes emails are sent from another clients domain and contain links to another clients url.
this is obviously a threadsafe issue and my only solution is to destroy all software. i'm constantly pushing to revert the schema madness and do one shared database but i got pushed back a lot, so that ship has sailed i guess.

@krtschmr One "solution" is to run multiple sidekiq processes and use "-c 1" option.
You will loose the benefits of threads since each process will be using only one thread, but you should no longer experience these problems caused by Apartment + threads issues.
Depending on the type of job that you're running, the performance impact is low/none. In some cases you can achieve better results since you would be using multiple CPU cores ( https://medium.com/@zunaidahmed/sidekiq-and-scaling-dd6f1969b68e ).

Yes, it makes sense to have concurrency=1 to avoid a threading issue. we run 2 workers each 27 threads, so that 1 solution won't be possible right now.
We also had class variables for the ClientSettings, so this might also cause an issue, i refactored this to instance variables now and hope no more wrong urls are included in emails. if it's still the case, i guess i need to destroy all software and restart.


filter(TaxonLevel == ...) in source() fails ☠

😰 Just when I got #1 sorted, this pops up when I tried to knit:
(Re: commit 72f5b1a )
Quitting from lines 41-44 (essay.Rmd)
Error in filter_impl(.data, quo):
  Evaluation error: object 'TaxonLevel' not found.
Calls: <Anonymous> ... <Anonymous> -> filter -> filter.tbl_df -> filter_impl -> .Call

So, I think I must really let my MacBook restart to finish this X11 install. This weird behavior is suspicious as TaxonLevel in this context is always enquosed (sensu dplyr), and shouldn't be a "nonexistent object".
If this doesn't go away, defs using the HWP lab PC tomorrow in the AM... 😤😶

(Re: commits fe9d0ca to af0ddfa, and c42ddea)
So, I fixed this with a cheeky work around!
First I tried (fe9d0ca):

quoted all the other filter_() queries' column names (e.g. filter_("Date" == ...) aot filter_(Date == ...))

Then (af0ddfa):

fixing TaxonLevel quosure issue pt2: I've tried replacing ALL the Ta… …xonLevel enquosures with "TaxonLevel"...

But the actual, best solution came here, from commit c42ddea:

Copied the section of .R that handles the filtered (by region) MSW3s, such that the SE version of the dplyr verbs are no longer needed AND that the standard dplyr verbs don't break either. In other words, they are run directly in-chunk, not in source()!  I don't need you! 😭

Yay!!


Help with multiple sortable containers

I am trying to create a multiple zoned grid but anytime I try to move an item from one zone to the other it either crashes or the item just disappears. I have been trying to make this work for days now, but I can't do it. I tried copying from the storybook example , with no luck.
Here is the relevant code, but the whole repo can be cloned and built to reproduce the issue: https://github.com/AndrisBorbas/destiny-launcher/blob/dev/src/components/banner/BannerSection.tsx
Also I never managed to get the empty droppables to work, onDragOver never fires when moving over an empty droppable.
Could anyone help me with this?

Also I never managed to get the empty droppables to work, onDragOver never fires when moving over an empty droppable.

Do your empty droppables have a computed height or width that is greater than zero when empty?

Could anyone help me with this?

Perhaps others can jump in on this. I personally don't have time to jump into other folks repositories, clone them, install dependencies and figure out how to run the project and finally try to understand all of its moving pieces and dependencies.
The best way for me to assist you is by opening an issue with a link to a CodeSandbox that contains the minimum amount of code necessary to replicate the issue you are facing.

In the array that shows all the droppables, it is there with correct height and width values.
I'll try to create a codesandbox of the issue, but the file I linked is the whole thing.

I experienced this as well. My workaround is to use a custom collision detection strategy when the div is empty

I had some spare time to work on this and I managed to make it work by only using one array, with the ids and data both inside it. But I still cant drop items into empty droppables. @Joe-HC could you show me an example of your workaround?


Raspberry Pi Camera

I'm attempting to get the RPi camera to work with this docker image. I've attempted to connect volumes for raspistill and /opt/vc/lib/ into the container, then running ldconfig which kinda works but is a bit clunky.
I'm wondering if including libraspberrypi-bin in the 'apt-get install' block would simplify this process?

@philharle Did you try to extend the Docker image and install that package?

@lroguet Yeah, I did build a new image with the package and it stopped the error from occurring. However I discovered some further issues preventing the Docker container from being able to access the Pi camera and I ran out of time trying to debug it. I plan to revisit this at a later date, in the meantime it might be worth closing off the issue until I work it out.

@philharle We'll reopen an issue later then.


Allowing all supported extensions (TIFF in Qt 4.8, along with PPM, PBM, and PGM)

This PR enables TIFF support for those using Qt 4.8, along with PPM, PBM, and PGM support for all Qt versions.
As mentioned in #174, the QImageReader actually supports a number of formats. While the Qt 4.8 supported formats and Qt 5.x supported formats differ, it is worthwhile to be able to use all of those available for the version in use. This PR implements this change.

Awesome!

@VandammeThomas, I was able to successfully use PGM (pixel grey map, black and white) without problems. What version of Qt are you using? Are you getting a specific error?

I got it working, found the problem.
My PGM's weren't using the full range of values, and there appeared black. Transferred them to PNG and normalized them and it works fine.


[TE] add event driven scheduler

This PR is second one for event driven scheduling (data availability scheduling). It mainly includes the scheduler that runs in certain frequency to schedule tasks based on the event information updated by the event listener (in the first PR).

@vincentchenjl Could you please check my comments?


Disable functionality temporarily

I love the extension, but sometimes it would be great to being able to disable it temporarily by clicking on the extension icon, selecting "Disable" and reload the Github page I am currently on (especially as I am not aware of all the functionality and sometimes want to just check what the page would look like without the extension).

I don't see this happening. I suggest using something like https://github.com/HangYang/one-click-extensions-manager

Fair enough.


skaffold: 0.16.0 -> 0.18.0

Signed-off-by: Vincent Demeester<EMAIL_ADDRESS>Motivation for this change
Bump skaffold to the most recent version
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build skaffold

Success on aarch64-linux (full log)
Attempted: skaffold
Partial log (click to expand)
github.com/GoogleContainerTools/skaffold/cmd/skaffold
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/l2w91d8yj50jvgzqzyf1p8fpfgjzbcx0-skaffold-0.18.0-bin
shrinking /nix/store/l2w91d8yj50jvgzqzyf1p8fpfgjzbcx0-skaffold-0.18.0-bin/bin/skaffold
strip is /nix/store/6dpnd5aniypn8124mmy8f88s4mq2zl07-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/l2w91d8yj50jvgzqzyf1p8fpfgjzbcx0-skaffold-0.18.0-bin/bin
patching script interpreter paths in /nix/store/l2w91d8yj50jvgzqzyf1p8fpfgjzbcx0-skaffold-0.18.0-bin
checking for references to /build in /nix/store/l2w91d8yj50jvgzqzyf1p8fpfgjzbcx0-skaffold-0.18.0-bin...
strip is /nix/store/6dpnd5aniypn8124mmy8f88s4mq2zl07-binutils-2.30/bin/strip

Success on x86_64-darwin (full log)
Attempted: skaffold
Partial log (click to expand)
find: '/nix/store/r4aw40vdw1k5riz9n18dy8gksypm772x-skaffold-0.18.0': No such file or directory
find: '/nix/store/r4aw40vdw1k5riz9n18dy8gksypm772x-skaffold-0.18.0': No such file or directory
find: '/nix/store/r4aw40vdw1k5riz9n18dy8gksypm772x-skaffold-0.18.0': No such file or directory
find: '/nix/store/r4aw40vdw1k5riz9n18dy8gksypm772x-skaffold-0.18.0': No such file or directory
find: '/nix/store/r4aw40vdw1k5riz9n18dy8gksypm772x-skaffold-0.18.0': No such file or directory
find: '/nix/store/r4aw40vdw1k5riz9n18dy8gksypm772x-skaffold-0.18.0': No such file or directory
find: '/nix/store/r4aw40vdw1k5riz9n18dy8gksypm772x-skaffold-0.18.0': No such file or directory
find: '/nix/store/r4aw40vdw1k5riz9n18dy8gksypm772x-skaffold-0.18.0': No such file or directory
find: '/nix/store/r4aw40vdw1k5riz9n18dy8gksypm772x-skaffold-0.18.0': No such file or directory
find: '/nix/store/r4aw40vdw1k5riz9n18dy8gksypm772x-skaffold-0.18.0': No such file or directory

Success on x86_64-linux (full log)
Attempted: skaffold
Partial log (click to expand)
github.com/GoogleContainerTools/skaffold/cmd/skaffold
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/2b7fa7ainkl35sp8n8gwhcv6x657rf9i-skaffold-0.18.0-bin
shrinking /nix/store/2b7fa7ainkl35sp8n8gwhcv6x657rf9i-skaffold-0.18.0-bin/bin/skaffold
strip is /nix/store/rpbg8gmqxhz8g61p1plz5d2srs84pvmv-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/2b7fa7ainkl35sp8n8gwhcv6x657rf9i-skaffold-0.18.0-bin/bin
patching script interpreter paths in /nix/store/2b7fa7ainkl35sp8n8gwhcv6x657rf9i-skaffold-0.18.0-bin
checking for references to /build in /nix/store/2b7fa7ainkl35sp8n8gwhcv6x657rf9i-skaffold-0.18.0-bin...
strip is /nix/store/rpbg8gmqxhz8g61p1plz5d2srs84pvmv-binutils-2.30/bin/strip

Changelog: https://github.com/GoogleContainerTools/skaffold/blob/master/CHANGELOG.md


Skipping data if ETH node returns empty data

If an ETH node has an issue with returning data and instead of returning data or error if it returns an empty result, graph-node after 10 retries goes further without getting any data which leads to incorrect subgraph data.
Probably there is no connection with the number of retries, but only with an empty response that we can't check if it should contain any data.
Example of query:
curl -X POST -H "Content-Type: application/json"   --data '{"jsonrpc":"2.0","method":"trace_filter","params":[{"fromBlock":"0xbf967d","toAddress":["0x511bc4556d823ae99630ae8de28b9b80df90ea2e"],"toBlock":"0xbf9686"}],"id":59911}'

Erigon response was (before fix):
{"jsonrpc":"2.0","id":59911,"result":[]}

and OE response was:
{"jsonrpc":"2.0","result":[{"action":{"callType":"call","from":"0x1746228c3146cbd32f2f41f31a9b009dfd77993f","gas":"0x1c078","input":"0x25d5971f0000000000000000000000000000000000000000000000000000000000000000","to":"0x511bc4556d823ae99630ae8de28b9b80df90ea2e","value":"0x0"},"blockHash":"0xe81003879ce15d988852a1c242a8c14f7ecbb4883dbe6a13ffa36308dead5c0c","blockNumber":12555906,"result":{"gasUsed":"0x1634e","output":"0x"},"subtraces":2,"traceAddress":[],"transactionHash":"0xf5dd73bd781767d61b333705a8a9ea320d6873d6ecc72dd81f9dd6a8ecc8c5a6","transactionPosition":168,"type":"call"}],"id":59911}

I think @leoyvens was looking into this, was this an issue with Erigon?

Yes this is an issue with Erigon. I don't think there is an easy way in we could check if an empty response is correct or not, so my tendency is to take no action on our side.

We are working with the clients on reliability here (I think Erigon have made some fixes), and will also look to improve our testing and monitoring in this area, but as Leo says we probably don't have a way to check empty responses without requiring eth node client redundancy. Many thanks for reporting, will close and do re-open if you see regression or have other questions on this issue.


(bug) "node-sass" is no longer optional dependency

Versions
"1.6.0"
Repro steps
npm install  --no-optional
Observed behavior
node-sass is installed
Desired behavior
node-sass will not be installed
Mention any other details that might be useful (optional)
https://github.com/webpack-contrib/sass-loader/issues/519
latest sass-loader dependency (6.0.6) requires node-sass as a peerDependencies
"peerDependencies": {
"node-sass": "^4.0.0",
"webpack": "^2.0.0 || >= 3.0.0-rc.0 || ^3.0.0"
},

Unsure of what we can do about this right now. Perhaps we have to pin sass-loader to maintain previous behaviour.

@filipesilva @hansl what is the status of this issue?

It would be nice if you allow to install Angular CLI without node-sass. Our enterprise people decided that Python 2.7 is no longer allowed to be installed on user machines (only v3.4+ are approved). Hence, it is impossible to utilize node-sass package and SASS in general in Angular projects. In addition, they blocked the entire GitHub and node-sass tries to download binaries from there no matter what in-house NPM repos are configured in .npmrc. file.

Hi,
we have the similar situation as @DmitriiSer mentioned.
At least, our company allows to upload the 3rd party dependency to internal repo after a review process - which takes time, but it requires us to maintain the dependencies.
So whenever node-sass releases a new version, we have to deal with the process and can't build the product until the review is done.

I see different behaviors when using npm install and npm ci. In the case of npm install everything is ok. In the case of npm ci the build fails because of postinstall step and missing PYTHON :(

Currently node-sass is only a optional dependency of @angular-devkit/build-angular, and isn't a direct dependency of any package we use.

@filipesilva so how do I skip it during npm ci?

@ISkomorokh I don't think npm commands allow you to skip a package. If you're seeing different behaviours between npm install and npm ci, a better place to ask is in the NPM issue tracker.

iv'e used $ npm install --ignore-scripts
https://stackoverflow.com/questions/23505318/npm-disable-postinstall-script-for-package


Automatically publish SNAPSHOTs on pushes

Uses sbt-ci-release for automation
Counterpart of https://github.com/chipsalliance/firrtl/pull/1955
FIXME For validation, this should push to 1.5-SNAPSHOT. Will make the release flow only happen on pushes before merging. Things work correctly!

So, the release step currently is not blocked by Test, need to fix that.

@Mergifyio backport 1.2.x

Why @mergify why?!?!


Fixes for Julia v0.5, fix numerical issue and take probability into account in Benders

I have tried StructJuMP on an example of my own using Julia v0.5.
The first issue I had is that in the tests and README, the instantiation of a structured model is missing the num_scenarios keyword.
Then I had to fix a few thinks for Julia v0.5 and take the probability into account in Benders.
I still had a strange issues but I figured out it was due to infeasibility ray that were too large so I added a scaling factor.
About the probabilities, it might be better to multiply the theta with them instead of the c_i. I choose the c_i so that I do not have to add any argument to Benders_pmap

Hey @blegat sorry I didn't see this before now! I'll take a look now.

Sorry, I missclicked ^^

Thanks!


automatic tag expansion

When in <div /> /  is removed (in sequence) automatically expand tag and place cursor in the mid

@ILScc eta?

implemented a long time ago here: https://github.com/zardoy/vscode-experiments/blob/main/src/features/expandTag.ts


Update git 2.14.2

Bump Git to 2.14.2

The time for this has passed, the project has a much better way of dealing with versions now.


test coverage for user-provided run-env.sh

https://github.com/jboss-container-images/openjdk/blob/d39eac69f37f4090b89103117fcddbbf24ad680c/modules/run/artifacts/opt/jboss/container/java/run/run-java.sh#L102
The above code seems to suggest that a script named run-env.sh placed in $JAVA_APP_DIR (which defaults to /deployments) is sourced by the run script prior to launching java.
I don't think we have any behave test coverage for this feature. Before we make changes to this code area, I would like to have coverage to first test that this actually works, and later it remains working after any future refactoring (e.g. in #397 )
The test will need to perform an S2I build of a prepared application source, such that after the build, there is a run-env.sh script in $JAVA_APP_DIR which does something we can easily detect after starting the resulting container. A good candidate might be to set JAVA_APP_NAME=someCustomString, which should cause the final process name to be changed and that to be easily detected in container logs.
The prepared application source will need to live somewhere. We used to use the following repository as a source of test application sources: https://github.com/jboss-openshift/openshift-quickstarts but we archived it this year for various reasons. See #400 for further details of that (which effectively blocks this issue)

I am just trying to figure out which file the test goes into and how it looks.
I guess the test goes into tests/features/java/runtime.feature?
and looks like this :
@ubi9
Scenario: Check JAVA_APP_NAME is set to final process name
Given container is started with env
| variable         | value   |
| JAVA_APP_NAME    | someCustomString |
Then container log should contain JAVA_APP_NAME=someCustomString
?

I am just trying to figure out which file the test goes into and how it looks.

The test structure is a bit broken/unclear/undefined, so don't worry about it too much. We need to clean it up, I have raised a JIRA about that with a suggested approach (OPENJDK-2177) but in the meantime this shouldn't block adding more tests.

I guess the test goes into tests/features/java/runtime.feature?

That file is supposed to be for tests appropriate for the runtime images, but I think to test this feature we will need to do an S2I build which means using the builder images. tests/features/java/java_s2i.feature might be a better home.

and looks like this :

Take a look at one of the tests that use S2I in tests/features/java/java_s2i.feature. The "Given" line will have to be something like     Given s2i build https://github.com/jboss-openshift/openshift-examples from spring-boot-sample-simple/target, except, we will need a new URI with an appropriately-prepared application source for the test.

Then container log should contain JAVA_APP_NAME=someCustomString

Try running an existing openjdk container with JAVA_APP_NAME=somethingUnique
and look at its output to choose an appropriate string for the test.

Since #397 targets jlink-dev, I've merged it and not considered it blocked by this work (although this work should block eventually merging the jlink-dev branch back to ubi9).

The test structure is a bit broken/unclear/undefined, so don't worry about it too much. We need to clean it up, I have raised a JIRA about that with a suggested approach (OPENJDK-2177) but in the meantime this shouldn't block adding more tests.

+1

That file is supposed to be for tests appropriate for the runtime images, but I think to test this feature we will need to do an S2I build which means using the builder images. tests/features/java/java_s2i.feature might be a better home.

How about tests/features/java/openjdk_s2i.feature ? as the tests in that file are using the application source from https://github.com/jboss-openshift/openshift-quickstarts which we are planning to move to https://github.com/jboss-openshift/openjdk-test-applications and the sample application for our multistage build is also quarkus-getting-started.

Take a look at one of the tests that use S2I in tests/features/java/java_s2i.feature. The "Given" line will have to be something like  Given s2i build https://github.com/jboss-openshift/openshift-examples from spring-boot-sample-simple/target, except, we will need a new URI with an appropriately-prepared application source for the test.

Sure

Try running an existing openjdk container with JAVA_APP_NAME=somethingUnique and look at its output to choose an appropriate string for the test.

Yes I tried that
$ podman run --rm -it -e  JAVA_APP_NAME='someUniqueString' localhost/ubi9-micro-jlink-jre:latest
INFO exec -a "someUniqueString" java  -cp "." -jar /deployments/getting-started-1.0.0-SNAPSHOT-runner.jar
INFO running in /deployments
__  ____  __  _____   ___  __ ____  ______
 --/ __ \/ / / / _ | / _ \/ //_/ / / / __/
 -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/
2023-09-26 17:48:49,238 INFO  [io.quarkus] (main) getting-started 1.0.0-SNAPSHOT on JVM (powered by Quarkus 3.0.3.Final) started in 0.531s. Listening on: http://<IP_ADDRESS>:8080
2023-09-26 17:48:49,254 INFO  [io.quarkus] (main) Profile prod activated.
2023-09-26 17:48:49,254 INFO  [io.quarkus] (main) Installed features: [cdi, resteasy-reactive, smallrye-context-propagation, vertx]
^C2023-09-26 17:48:53,874 INFO  [io.quarkus] (main) getting-started stopped in 0.016s

So the serach string will be :  log should contain INFO exec -a "someUniqueString" java  -cp

So the serach string will be : log should contain INFO exec -a "someUniqueString" java -cp

Yes that would work.
We would need to ensure a) the test did not define JAVA_APP_NAME itself; b)  if the application source contained a .s2i/environment file containing JAVA_APP_NAME=someCustomString.
#400 should block merging this, but hopefully doesn't block continuing to work on it. You can fork the existing repo (or the quarkus-quickstarts repo) to your personal github space and then reference that in a test to get going (we have at least one test already which references my fork, https://github.com/jmtd/openshift-quickstarts, and another which references https://github.com/jerboaa/quarkus-quickstarts; these can all eventually be replaced with a new repo in #400)


Some tweaks to the markup for Test.ID.

As described. Affects SPI only.
Checklist:

[x] Code and documentation should follow the style of the Style Guide.
[x] If public symbols are renamed or modified, DocC references should be updated.

Self-reviewing. Docs only so no CI needed.


Rebase E2E tests to use Cluster API (from kube-up)

Benefits as per @roberthbailey

More test cycles (we will get hundreds of cluster create / delete cycles per day, hook into the upgrade test infra, etc).
It will also force us to build enough configurability to do all of the edge cases demanded by the tests
This can be used to convince ourselves that the API is solid and flexible (e.g. if we end up with un-readable templating like kube-up or k8s-anywhere we haven't succeeded)

This issue was moved to kubernetes-sigs/cluster-api#33


⚠ Processors has degraded performance

In 18a24ed, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 114 ms

Resolved: Processors performance has improved in 69738db.


Distinguishing nested optionals

Consider this example program:
🏁 🍇
  🆕🍯🐚🍬🔢🍆🐸❗ ➡ 🖍🆕dict

  1  ➡ 🐽dict 🔤one🔤❗
  🤷 ➡ 🐽dict 🔤nope🔤❗

  ↪ 🐽dict 🔤seventeen🔤❗ ➡ unwrapped 🍇
    💭 Won't print
    😀 🔤seventeen is in the dictionary🔤❗
  🍉

  ↪ 🐽dict 🔤nope🔤❗ ➡ unwrapped 🍇
    💭 Won't print, but perhaps it should?
    😀 🔤nope is in the dictionary🔤❗
  🍉
🍉

I create a dictionary of optional integers. The code above can't distinguish between "Not present in the dictionary" and "The value is 🤷". What is the proper way of achieving this?

The reason for this is a design flaw in the current compiler, which treats optionals very differently from other types when boxing, which is also the reason why casting to optionals is currently not possible. You're right that this behavior is strange and unexpected.
I will look into improving this.


redeclaration of symbols when CGO_ENABLED=0

When running with CGO disabled, both nobackend.go and openssl.go are configured by tags to be built.  This causes the build to fail due to multiple declarations.
https://github.com/dbenoit17/openssl-fips/actions/runs/3146401859/jobs/5114807714#step:14:2312

This actually needs to be fixed in golang-fips/go


why is this js file so big？

why is this js file so big？

@hyrious

Because we didn't configure the manualChunks option in vite.config.ts. By default vite leaves it as empty (i.e. the same as rollup's default behavior). You can treat that as bundled all dependencies in node_modules. You can turn on the visualizer plugin to know what modules it includes.
Manually configuring chunks can be hard because you don't know which dependencies are not going to update. It could easily become a false-optimization.
Below are some important libraries that Flat is depending on, which should give you the reason about the vendors size:

package
bundled size

agora-rtc-sdk-ng + agora-rtm-sdk
1.1 MB + 0.5 MB

white-web-sdk
2.3 MB

@netless/window-manager (video-js)
1 MB

@netless/app-slide (pixi-js)
1.6 MB

@netless/app-monaco (monaco-editor)
0.3 MB

antd + @ant-design/icons
1.2 MB + 0.7 MB

Flat was created initially as an electron application which is filesize insensitive. We were focusing on product POC and tried to launch a workable product as fast as possible. After months of evolving we finally gained enough feedbacks from realworld tutors. The fundamental shap of Flat project I think has come to a level of stability.
Optimization is on the way and for a start, the giant refactoring PR that is merged yesterday splits the different functionalities into on-demand dynamic modules. This should improve the initial page load.


[#noissue] Fix deprecation warning

Codecov Report

Merging #6159 into master will increase coverage by <.01%.
The diff coverage is 37.5%.

@@            Coverage Diff             @@
##           master    #6159      +/-   ##
==========================================
+ Coverage   39.59%   39.59%   +<.01%
==========================================
  Files        3025     3025
  Lines       91278    91276       -2
  Branches    11878    11878
==========================================
+ Hits        36141    36143       +2
+ Misses      52111    52103       -8
- Partials     3026     3030       +4

Impacted Files
Coverage Δ

...navercorp/pinpoint/web/applicationmap/MapWrap.java
0% <ø> (ø)
:arrow_up:

...r/deserializer/FilterHintListJsonDeserializer.java
84.61% <0%> (ø)
:arrow_up:

...int/plugin/spring/beans/BeanMethodTransformer.java
0% <0%> (ø)
:arrow_up:

...netty/transformer/http/HttpRequestTransformer.java
0% <0%> (ø)
:arrow_up:

...b/filter/deserializer/RpcHintJsonDeserializer.java
85.71% <0%> (ø)
:arrow_up:

...rp/pinpoint/web/view/ServerInstanceSerializer.java
89.47% <100%> (-1.01%)
:arrow_down:

...rp/pinpoint/rpc/packet/ControlHandshakePacket.java
51.51% <0%> (-24.25%)
:arrow_down:

...tor/metric/datasource/DefaultDataSourceMetric.java
75% <0%> (-3.13%)
:arrow_down:

...om/navercorp/pinpoint/rpc/codec/PacketDecoder.java
57.44% <0%> (-2.13%)
:arrow_down:

...cluster/zookeeper/ZookeeperClusterDataManager.java
52.9% <0%> (-1.94%)
:arrow_down:

... and 7 more

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 b10d2cd...0e10129. Read the comment docs.


Improve typescript vue apollo plugin

This PR consists of 3 commits, explained below.
Support type imports
Closes #5006
A test has been added to cover this.
Do not use undefined for variables generic and parameter
Not using undefined for variables generic fixes the following issue:
Type 'undefined' does not satisfy the constraint 'Record<string, any>'
Not using undefined for variables parameter fixes the following issue:
Argument of type 'undefined' is not assignable to parameter of type 'VariablesParameter<Exact<{ [key: string]: never; }>>'
Tests have been updated accordingly.
Improve jsdoc formatting

Remove newlines before and after the first argument in the example code.
Add @param variables where applicable.

@dotansimha Could you help with failing tests, please. Tests pass on my local machine.
Also, I wasn't sure whether I did the changeset correctly.

@P4sca1 You should update the example outputs in dev-tests folder by running codegen there yarn generate:examples

@ardatan Thanks for the hint! :)

Amazing work, thank you so much :)


fix: Error throwing behavior for BufferedStream

Issue #

https://github.com/awslabs/aws-sdk-swift/issues/1529
Description of changes

Scope

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This change has been incorporated into #743, closing.


[Explore]poor rendering performance while on "View Samples" tab

The rendering performance is also not very great while the "View Samples" tab is open. Sorting that table and resizing the panes are almost unbearably slow. Even adding/removing a metric also becomes slow.
And it stays slow even when I switched back to the View Results tab.
Originally posted by @ktmud in https://github.com/apache/incubator-superset/issues/11968#issuecomment-747945240

fixed

fixed

fixed by #12257

fixed by #12257

Confirming this issue is resolved/improved in latest master 01/09/2021 @ 5:36pm (UTC)

cc @graceguo-supercat @ktmud @zuzana-vej @mistercrunch

Confirming this issue is resolved/improved in latest master 01/09/2021 @ 5:36pm (UTC)

cc @graceguo-supercat @ktmud @zuzana-vej @mistercrunch


Option to remove header and footer rendering

Hello,
there is any option to remove header and footer rendering?
when i copy text from end of page to start of the next page i will want that its not copy the footer in the end of the page and the header in the start of the next page.
Tnx

there is any option to remove header and footer rendering?

No; and it's not something that can/will be added either since it's generally impossible to detect a e.g. a header/footer (given that e.g. all text is rendered with "normal" text rendering operators, which has no context of what the text represents in the document).