WslRegisterDistribution failed with error: 0x800700b7

Your Windows build number:  (Type ver at a Windows Command Prompt)

Microsoft Windows [Version 10.0.17763.253]

What you're doing and what's happening:  (Copy&paste the full set of specific command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.)

C:\wsl\ubuntu> .\ubuntu1804.exe
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x800700b7
The distribution installation has become corrupted.
Please select Reset from App Settings or uninstall and reinstall the app.
Error: 0x800700b7 Cannot create a file when that file already exists.

What's wrong / what should be happening instead:
I expect the distro to install and open a bash terminal

For WSL launch issues, please [collect detailed logs]
logs.zip

Additional Information
The distro seems to work fine for the first user who logs into the server. The next user trying to use WSL gets this error message.

Hi @dhirschfeld !
If you uninstall the app and then try to reinstall it do you get the same error?
As well, I see you're installing it using the command line approach, have you tried using the Windows Store to install it (if you're able?)
As far as troubleshooting goes, if uninstalling it and reinstalling it doesn't work I would recommend running this command in an Administrative Powershell window:
dism /online /cleanup-image /restorehealth
And then check to see if you have any antivirus that might try and stop the install
And then try and install again.
Let me know if any of those work for you!

have you tried using the Windows Store to install

My usecase is deploying on servers, some being headless so I don't think I can use the App Store. In any case I'm petty sure the App Store is disabled by policy in our organisation so it would be great if the portable version Just Worked.
I tried it twice, both times it works for the first user and then the 2nd user gets the file when that file already exists 0x800700b7 error..
From the suggestion in #3305 I already tried:
sfc /scannow
dism /online /cleanup-image /restorehealth

and
Restart-Service LxssManager

with no luck.

I'd like WSL to be available to anyone who uses the server... in the same way that anyone can login and use powershell.
Are you saying there's no way to support that usecase?
When each new user logs in for the first time do they then have to install WSL for themselves before they can use it? ...and then repeat that for every single server in our organisation?

Correct, distributions are per-user.  I agree this isn't ideal for your scenario.

Thanks for the info @benhillis, that is a bit disappointing though :( Given that constraint I'm not sure we can really use it on our servers :/
Is it likely/possible that constraint will be removed in future?
I'd also suggest that that constraint be documented in the server installation guide:
https://docs.microsoft.com/en-us/windows/wsl/install-on-server
If the distribution is necessarily per-user then it seems a bit of an anti-pattern to install it into C:\Distros\Ubuntu as documented there, rather than into the users home directory?

@dhirschfeld - The way the distributions are registered (especially on server) is something that could potentially change in the future, but nothing planned in the short term.  From a Windows perspective each WSL distribution is owned by the user that registered the distribution.

I'll close this as resolved then.
...though I hope a multi-user install is considered in future.

@dhirschfeld @benhillis I encounter the same error because I have changed my windows user-name, can I get the ubuntu back without reinstalling it?

Same; unable to access after username change, I would really like it if I could save my Ubuntu setup :(

Same; unable to access after username change, I would really like it if I could save my Ubuntu setup :(
I have the same problem as you. It seems like I can only reload

Same; unable to access after username change, I would really like it if I could save my Ubuntu setup :(

I have the same problem as you. It seems like I can only reload

Same; unable to access after username change, I would really like it if I could save my Ubuntu setup :(

I have the same problem as you in Aug 1 2021. It seems like I can only reset...

Same; unable to access after username change, I would really like it if I could save my Ubuntu setup :(

I have the same problem as you. It seems like I can only reinstall.


Update outdated documentation about secret key validation.

Fixes an issue with k8s.io/docs/concepts/configuration/secret/ regarding secret key validation
see: https://github.com/kubernetes/website/issues/7674, https://github.com/kubernetes/kubernetes/issues/59516

/assign @a-mccarthy

/assign

/approve (for writing)
Still need /lgtm for technical accuracy.
/cc @caesarxuchao
/cc @huangjiuyuan

/lgtm
(verified)


[BUG]There is no column with name

ClickHouse Version: 1.1.54380

Problem:
Insert to the table  t_coderate got some errors. The table on cluster didn't  have column  namecnt, but it have  _cnt with default value 1
I can't reproduce it on other tables, it confuse me.

Logs:
2018.06.13 13:39:17.706317 [ 1774011 ]  executeQuery: Code: 16, e.displayText() = DB::Exception: There is no column with name cnt. There are columns: day, its, anchoruid, coderate, line, p2p, platform_id, version, value, h265, harddecode, iretcode, txp2p, platform, experiment, networktype, sdk, simcardtype, device, originalpainting, experiment_p2p, _cnt, switchp2p, theoryp2p, e.what() = DB::Exception (from <IP_ADDRESS>:36540) (in query: INSERT INTO default.t_coderate (its, platform_id, platform, version, experiment, anchoruid, coderate, h265, harddecode, iretcode, line, networktype, p2p, sdk, device, simcardtype, txp2p, originalpainting, experiment_p2p, value) VALUES), Stack trace:

Can you provide

the way how you have created tables
your cluster configuration
structure of your tables (show create table)
?

Also, you may check that all replicas has the same schema (run show create table on each node), and that all cluster configs are the same.

Checked , there are some replicas with different schema, thank you.


[WIP] Port Azure ServiceBus Transport to netstandard1.6

[ ] Fix compile error for TransportType
[ ] Fix compile error for TokenProvider
[ ] Fix compile error for AmqpTransportSettings
[ ] Fix compile error for MessageState
[ ] Fix compile error for BrokeredMessage
[ ] Fix compile error for NetMessagingTransportSettings

Why do you use both libraries? The new one has 4.5.1 and netstandard 1.3. All these ifdefs are just noise. I have started the work but it is quite large.

@alexeyzimarev  I don't like the #ifdef either. I opt for this as didn't want to break the previous support for net45.  But it would be a cleaner option to use just the new library.
However, I think the trend in the discussion https://github.com/MassTransit/MassTransit/issues/909 was to only support netstandard2.0 and forgot about support for netstandard1.6.

@alexeyzimarev it may not be possible (yet) to support Azure Servicebus for MT. The NServiceBus team just published this today https://particular.net/blog/a-new-azure-service-bus-transport-but-not-just-yet

@dennisroche They wrote exactly what I wrote. It is required to switch to the new library and it takes time and effort. The new library supports net451 and netstandard1.3, so I am confused about your previous comment. Indeed, some API changes in MT are to be made but this will be a major release so it can be expected and there will be not many changes anyway.


Sinon.fakeTimer doesn't handle the result of moment.format('x')

Fiddle here http://jsfiddle.net/tutuca/e3s21Lab/, although it fails to run.
I have packaged the minimal case that you can run (download)
So, the gist of it is that moment().format('x') returns milliseconds from UNIX epoch but sinon.fakeTimer fails with a non obvious error TypeError: Cannot set property 'hadOwnProperty' of undefined
describe("Test sinon.fakeTimes with Moment.js", function() {
    var today, tomorrow, ticks, clock;
    beforeEach(function(){
        // get milliseconds since UNIX epoch for this date.
        ticks = parseInt(moment('01/15/2015').format('x'));
        // set the timers to start at expected time.
        clock = sinon.useFakeTimers(ticks);

    });
    afterEach(function(){
        clock.restore();
    });
    it("date is set in some arbitrary time.", function() {
        today = new moment();
        tomorrow = today.add(1, 'days');
        expect(tomorrow.format('MM/DD/YYYY')).toBe('01/16/2015');
    });
});

See how I needed to wrap the time with parseInt?
This error is not descriptive and is very misleading, even though moment is probably to blame we should handle the situation in a more elegant way.
Opinions?

That looks like an interesting scenario, thank you for reporting this.
I'll take a closer look when I get a chance to.
Have you managed to boil down a failing test for moment? The error should also be reported to that project.

This is not a bug, but expected behavior. moment().format('x') returns ms from epoch as a string, but sinon.fakeTimer expects a number. If you want ms from the epoch as a number, use moment().valueOf() or +moment() instead.
http://momentjs.com/docs/#/displaying/unix-offset/
@mroderick I believe this should be closed as it is not actually a bug.

It would be nice if Sinon complained about the type, or at least tried to coerce it.

This is not Sinon's fault, but I agree that the error could be better. A pull request that improves this function would be most welcome.


Write client for protocol buffer interface in Java

There is a first version of a java client available here


export adds a / to path of static resources

The export feature works nearly perfectly, but all my static resources got an extra / in front of them, making them break. building from the blog or portfolio template, if I export
src="{% static 'images/heroImage.jpg' %}"

It generates out too
src="/static/images/logo.jpg"

When it should be
src="static/images/logo.jpg"

maybe a feature request for a modal asking the domain you will be hosting the site on would make sense (and prefix it to the path)? That way all resource links are absolute, a best practice.

Hi there,
Just to make sure — is your use case to serve your website from a non-root path?
Cheers,

This was when testing using the mac app, then exporting to desktop and
opening in browser from there.
The idea was to export it to a github enabled folder, then sync (with
github for mac) it to host it on github pages. However just enabling git on
the static directory would allow this setup without the need to export I
assume...
On Sun, Jan 18, 2015 at 5:35 PM, Thomas Orozco<EMAIL_ADDRESS>wrote:

Hi there,
Just to make sure — is your use case to serve your website from a non-root
path?
Cheers,
—
Reply to this email directly or view it on GitHub
https://github.com/koenbok/Cactus/issues/109#issuecomment-70414872.

That let to another problem for page in sub-directory, instead of:
src="static/images/logo.jpg"

This approach requires:
src="../static/images/logo.jpg"

hey all.  I fixed this for myself with an ugly hack.
This is a plugin, which overrides the default static and url tags and computes relative URLS using the builtin python relpath() Happy if someone else wanted to clean this up and add a config flag. For now it's clean enough for my purposes.
#coding:utf-8
from six.moves import urllib
from django import template
from os.path import relpath
from os.path import dirname

def static(context, link_url):
    """
    Get the path for a static file in the Cactus build.
    We'll need this because paths can be rewritten with fingerprinting.
    """
    #TODO: Support URLS that don't start with `/static/`
    site = context['__CACTUS_SITE__']
    page = context['__CACTUS_CURRENT_PAGE__']

    url = site.get_url_for_static(link_url)

    if url is None:

        # For the static method we check if we need to add a prefix
        helper_keys = [
            "/static/" + link_url,
            "/static"  + link_url,
            "static/"  + link_url
        ]

        for helper_key in helper_keys:

            url_helper_key = site.get_url_for_static(helper_key)

            if url_helper_key is not None:
                return relpath(urllib.parse.urljoin( site.static_path, helper_key), dirname(page.absolute_final_url))

        url = link_url

    return relpath(urllib.parse.urljoin( site.static_path, link_url), dirname(page.absolute_final_url))

def url(context, link_url):
    """
    Get the path for a page in the Cactus build.
    We'll need this because paths can be rewritten with prettifying.
    """
    site = context['__CACTUS_SITE__']
    page = context['__CACTUS_CURRENT_PAGE__']

    url = site.get_url_for_page(link_url)

    if url is None:

        # See if we're trying to link to an /subdir/index.html with /subdir
        link_url_index = os.path.join(link_url, "index.html")
        url_link_url_index = site.get_url_for_page(link_url_index)

        if url_link_url_index is None:
            logger.warn('%s: page resource does not exist: %s', page.link_url, link_url)

        url = link_url

    if site.prettify_urls:
        return relpath(urllib.parse.urljoin(site.url,  url.rsplit('index.html', 1)[0]), dirname(page.absolute_final_url))

    return relpath(urllib.parse.urljoin(site.url, url), dirname(page.absolute_final_url))

def dumpContext(context):

  site = context['__CACTUS_SITE__']
  page = context['__CACTUS_CURRENT_PAGE__']

def preBuild(site):
    register = template.Library()
    register.simple_tag(takes_context=True)(url)
    register.simple_tag(takes_context=True)(static)
    register.simple_tag(takes_context=True)(dumpContext)
    template.base.builtins.append(register)

@cjrider is there anything special I need to do, to get this plugin to work? Do I just toss it into a .py file and dump it into the plugin directory? Do I need to include it?
Sorry, total noob with the plugin paradigm in cactus.


Odd behaviour on Sliding Panes, Gmail Inbox

Odd behaviour on the plugin.
I'm using sliding panes, obsidian 15.6, and I have a custom frame of gmail email inbox.
When the plugin is on, I can't open new panes on click, and new panes do not stack as expected.

Can you elaborate or maybe show screenshots/video recordings? I've never personally used the sliding panes plugin, so I'm not sure how to reproduce this issue!

Hi! I'm closing this issue for now due to inactivity. If you're still experiencing it, please leave a comment so I can reopen it.


Types for views are not generated

We are using a postgres database and it seems like sqlhydra doesn't generate types for views.
Is there anything extra we need to add in the configuration file? Or is it not supported by the library?
Thanks!

That is not by design. I’m guessing that the metadata query is not returning info on views.

Here it seems like we are fetching tables and columns, but not views, right?
https://github.com/JordanMarr/SqlHydra/blob/main/src/SqlHydra.Npgsql/NpgsqlSchemaProvider.fs#L10
Could it be the case that we are just not even fetching views? 🙂

Okay, I understand what you meant. Seems like let sTables = conn.GetSchema("Tables") doesn't include views, but conn.GetSchema("Views") will return views on the other hand. However, for views the resulting dataset doesn't have TABLE_TYPE. Do you think we can fetch views separately and concatenate them with tables while removing TABLE_TYPE (since we will know which one comes from tables or views)?

Oh that’s perfect! Yes we can pull the views separately and then manually set the table type.


[SERV-922] Enable configuration of Solr client timeout

Still testing this with real data, so converting to draft in the meantime.

Testing succeeded


请教一下 flanel 如何实现跨节点的发送广播消息和组播消息？thank you

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

Flannel version:
Backend used (e.g. vxlan or udp):
Etcd version:
Kubernetes version (if used):
Operating System and version:
Link to your project (optional):

use host-gw to resolve your problem, more details concepts can refers here:
http://cizixs.com/2017/09/28/linux-vxlan/


Integration with tflint

Thanks for this plugin, it saved me a lot of time.
I'd like to have it integrated with https://github.com/wata727/tflint

great idea, I will give it a try!


Clean up and data downloads

Well, it's passing all the checks on my computer. Travis can't seem to "resolve the host: github.com". I'll try to remember to re-build it on Travis tomorrow to see if it's running OK.


fixing broken api link

/cc @stevehoag

Open Publishing Build Service: The pull request content has been published and here are some sample preview links:

Docset 1: core-docs

@mairaw Thanks for fixing this! :shipit:


Bug: Compiler route isn't loading.

Describe the bug
Is this supposed to be a normal behavior?
To Reproduce
Steps to reproduce the behavior:

Go to million.dev/docs/compiler
See error

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

Device (please complete the following information):

MacOS
Google Chrome

Yep! I was just about to raise this. Thank you for raising it.

/docs/compiler was removed and merged into /docs/install


Allow negative solder mask rendering per #50.

Updated example rendering and code to use this option

@hamiltonkibbe, looks great as usual.
I use pcb-tools mostly for file processing, but I think I will start using the rendering code on my site as well. Would be good to make it pretty stable with many use cases.
Thanks a lot.


Merging !!
Cheers,
Gus


[pinmux] Use regfile async option for wakeup detector CSRs

This switches over to the new regfile CDC option such that the CDCs do not have to be explicitly coded anymore in the wakeup detectors.
Signed-off-by: Michael Schaffner<EMAIL_ADDRESS>

i was actually going to say pinmux is pretty mature and you don't need to bother changing :). But this is fine too if DV is okay with it!

I thought I'd change it since this part has not been explicitly FPV'd just yet (and the new CDC scheme makes things much simpler ;)).

so much code reduction!
On Wed, Aug 4, 2021 at 2:38 PM Michael Schaffner @.***>
wrote:

I thought I'd change it since this part has not been explicitly FPV'd just
yet (and the new CDC scheme makes things much simpler ;)).
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/lowRISC/opentitan/pull/7607#issuecomment-892992239,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAH2RSVCLGMZDCFHU6YUVILT3GXNHANCNFSM5BR4BIDA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

I love to slash unnecessary code ;)

pinmux FPV and top-level are both not fully developed yet. Thanks for the consideration and changes :)


make cloning tutorial

I did my best to keep the words "clone" and "cloning" out of the tutorial itself, but I'm having trouble coming up with a title for the project that doesn't use the word "clone."
Is it OK as it is, or should we think of a different title?

Another idea -- maybe think of a way to make it clear that Level 2 is all about cloning and that you should do this project first?

I clarified the instructions in step 4, added a blurb at the beginning of the tutorial about how Level 2 is all about cloning, and I added "(Start Level 2 Here)" to the cloning tutorial link in index.html -- and since I did that, I figured I might as well add "(Start Here)" to Star Catcher.
Thoughts?

Looks great! I like having a "Start here" for star catcher and the cloning project. However, I think they can have the same exact text "Start here" and it can be implied that they mean "for this level". Also, I think it would look better to have "start here" on it's own line and a different color, potentially with a text outline or in green text. I want it to seem like the "right" thing to click. Potentially give it a badge or an icon...? Or you could but a vertical bar between it and the other projects of its level to demonstrate that it's the first one to do.
The name of the tutorial should probably be uniformly "Cloning Tutorial" instead of calling it "making copies of the same sprite" once you click on it.
I'd probably color the text green instead of yellow. I'd also give warning that the text cannot be copied at the top.

Also! Once we get this game made, I'd be excited about linking to it in the Woof documentation in the Control menu where we try to explain sprites. https://github.com/stevekrouse/WoofJS/blob/master/docs/index.html#L728
Potentially, we could say something along the lines of:

There's no cloning in Woof, but you can create many sprites that do similar things in a loop:

every(1, "second", () => {
  new Circle({
    x: randomX()
  })
})

If you'd like to learn more, you can follow this tutorial...

So, I did all three to test it out -- "Start Here" new color (green didn't look right, I felt yellow was better), star icon, and vertical bar. Let me know your thoughts and I can tweak accordingly.
Also added the warning and changed the highlight color from yellow to green.
That's a good idea about the documentation. Once this is up, I can create an issue in the Woof repository.


convert combineReducers to typescript

This converts combineReducers to typescript. It supplants #3520 and is a step on the path to #3500

Dammit JS, you is stoopid.


please consider renaming the project

https://www.google.co.in/search?q=spark+java+postgresql&oq=spark+java+postgresql&aqs=chrome..69i57.5059j0j1&sourceid=chrome&es_sm=93&ie=UTF-8
it is very, very, very hard to google for anything around this project because of the big name conflict with Apache Spark. and it becomes very hard to become productive.
Taking an inspiration from TypeScript, you could also call it TypeSpark (P.S. TypeSpark.org is available) ... but please consider having something we can actually look for.

We're looking into it.

@tipsy thanks!

Agree with @vnwarrior on this one - any progress? I thought I'd point out that I'm running a (web) Spark app from (big data) Spark ... well trying to. Not only does this make things even more confusing (especially when I'm searching for documentation on both!), but also when you get dependencies with the same name (i.e. "spark-core" for both). It doesn't break things, but it did have me confused for a while.

Little progress I'm afraid. It's a very hard problem that we don't really have the capacity/skills to do deal with properly. We're open to suggestions though.

I've never done it before (so I'm probably missing something), but why not decide a new name and migrate on the next big release? I wouldn't worry about backward compatibility (though there may be a clever way to do that), and just rely on existing users (who want to upgrade) to make the code changes (as they usually have to do with big releases anyway). Overall, it's not going to take them long (a few sed commands should do most of it).
Then I guess it's just admin stuff - create a new (renamed) fork on github (leaving the old one round for maintenance), update the website, etc.

It's not that hard to "just do it", but to come up with a new name that makes sense and doesn't collide with anything else, and doesn't cause us to confuse/lose our entire userbase, is a challenge. Then there's changing all the branding, redirecting old links, explaining to people who click old links that the project has been renamed, etc.

+1 on this suggestion. Spark is a very confusing name and IMHO Apache Spark
has the SEO + mindshare here.
I dont see a reason for fear. Firebird -> Firefox ,  Seomoz -> Moz,
Typesafe -> Lightbend (the Scala company. Read here
https://www.lightbend.com/blog/typesafe-changes-name-to-lightbend and here
http://www.lightbend.com/blog/whats-in-a-name) are good examples.
Old links will not vanish - you will just have a 301 redirect. Plus, i
would say that you would rank better and be more discoverable.
Also, i would simply post about this on Producthunt and Hacker News and
call it a day.
On Wed, Nov 2, 2016 at 12:50 AM, David<EMAIL_ADDRESS>wrote:

It's not that hard to "just do it", but to come up with a new name that
makes sense and doesn't collide with anything else, and doesn't cause us to
confuse/lose our entire userbase, is a challenge. Then there's changing all
the branding, redirecting old links, explaining to people who click old
links that the project has been renamed, etc.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/perwendel/spark/issues/463#issuecomment-257666322,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEsU6D2ipRtiezIXYMxgc2ITEpnrX2nks5q55EVgaJpZM4HaBMq
.

@tipsy, I agree that it's not easy, however it's largely just documentation-level changes. Some feedback on your arguments:

names are hard ... but technically easy. Put another way, someone could come up with the perfect name in 5 seconds, and it'd be done.
I'd suggest that part of your userbase is already "lost" in some sense: how many more users would you have if Google hadn't shown them Apache Spark? (And this will get worse and worse.) Or they got frustrated with the above points? Those who you do have are probably aware of the problem, and would welcome a change.

I see @sandys just made similar points.

i actually like the name TypeSpark - you anways have "NodeJS Developer? Using/Curious About TypeScript? Try Spark Instead!" on the front page.  Also the name is a derivative of the previous name .. so you are not very far away.
TypeSpark.org is still available.

I dont see a reason for fear. Firebird -> Firefox ,  Seomoz -> Moz,
Typesafe -> Lightbend (the Scala company. Read here
The comments there are absolutely brutal though.

how many more users would you have if Google hadn't shown them Apache Spark?
Not that many I would guess. If you already know what we're called you won't confuse us for Apache Spark, and for our most relevant web searches (like "java web framework"), Apache Spark is (obviously) not listed.

I have disliked the Spark name since I joined, so I understand where you're all coming from, but the vast majority of our users have never visited us on GitHub, and I'm not sure they know about Apache Spark. If we get one complaint about the name per hundred thousand views, I'm not sure it's worth changing.
I still really want to though, and instead of releasing Spark 3.0 I would much prefer creating a new project XYZ 1.0. It bothers me a lot.

for our most relevant web searches (like "java web framework"), Apache Spark is (obviously) not listed.

It may be me, but when I was searching, I went for 'spark java' (after finding it on one of the blogs about the "best web frameworks for java" etc.), in the same way I generally search ' ' e.g. 'python flask'. In addition, when I saw your website URI (sparkjava.com) I kept using that. As you'll see, Apache Spark is definitely there (and it's likely to be there more in future, in part due to the likes of Zeppelin which are kind of web frameworks for Apache Spark).
Is there any way you can gauge the feeling of the wider Spark community?

why don't you just send a survey? post it on your github page front, hacker
news, etc.
lets see what people want.
IMHO, you cannot beat google. and the first 10 results for anything related
to spark is Apache Spark. and people google a lot to understand code
On Nov 2, 2016 4:13 AM, "David"<EMAIL_ADDRESS>wrote:

I dont see a reason for fear. Firebird -> Firefox , Seomoz -> Moz,
Typesafe -> Lightbend (the Scala company. Read here
The comments there are absolutely brutal though.
how many more users would you have if Google hadn't shown them Apache
Spark?
Not that many I would guess. If you already know what we're called you
won't confuse us for Apache Spark, and for our most relevant web searches
(like "java web framework"), Apache Spark is (obviously) not listed.
I have disliked the Spark name since I joined, so I understand where
you're all coming from, but the vast majority of our users have never
visited us on GitHub, and I'm not sure they know about Apache Spark. If we
get one complaint about the name per hundred thousand views, I'm not sure
it's worth changing.
I still really want to though, and instead of releasing Spark 3.0 I would
much prefer creating a new project XYZ 1.0. It bothers me a lot.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/perwendel/spark/issues/463#issuecomment-257721369,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEsUyVsIZrfef9-X_K0n07uDk2NdisKks5q58ClgaJpZM4HaBMq
.

I always defeat the "other Spark issue" by googling "sparkjava", but I guess that leaves out quite a bit of potentially useful search hits. So yes, perhaps a name change is in order. Some ideas:

"javatra", because "sinatra" and "scalatra" (but this would draw too much comparison?)
"frank", perhaps coupled with something descriptive ("java", "web", "server"?) for disambiguation?
"exude" - no software related hits comes up, refers to "express" as in ExpressJS

I kind of like "frank" or "exude", since the Spark API allows one to be "quite frank" and "express" one self rather clearly.

I'm sort of used to searching for perwendel spark... BTW, which project came first? perwendel/spark or apache/spark?

If I remember correctly, Apache Spark has earlier commits than Spark, but Spark was launched before Apache Spark.

The name conflict is definitely a shortcoming of this web framework. The impact of Apache Spark is just too big.
I wouldn't change to another web framework just because of this, sure. But if I were already thinking of changing for other reasons, it might "just push it over the top".

Try searching for anything related to this framework and caching. It's absolutely impossible. You can't even search with "-apache" because perwendel/spark is licensed under the Apache license. It doesn't matter who started first or who released first. All that matters is who show's up higher in search engines.


BUG: Social media links in footer section are not working

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
I have observed social media links are not working in footer section.
I want to work on this issue.
Please assign me this issue.
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

I would like to resolve this issue. Kindly assign this task to me with required GSSOC'24 Labels


Use @available to suppress warnings in Xcode 9.

This commit drops support for Xcode versions below 9.

I've opened this branch following a long period of waiting for these changes in https://github.com/SVProgressHUD/SVProgressHUD/pull/821/files.

The minimum iOS Version with Xcode 9 is 8. Thus we can simplify a little more, e.g.
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000
@property (nonatomic, strong) UIVisualEffectView *hudView;
#else
@property (nonatomic, strong) UIView *hudView;
#endif

to
@property (nonatomic, strong) UIVisualEffectView *hudView;

@juliensaad I removed all stuff regarding pre iOS 8, could you do a final check?

@honkmaster LGTM 👍

Merged.


Migrate iOS app deployment target from 8.0 to 9.0

Migrate the existing app's Xcode project minimum iOS version from 8.0 to 9.0.  Don't change the version if it's anything other than 8.0.
Compile App.framework for 9.0 (see https://github.com/flutter/flutter/pull/68729 for when I had to revert a previous version of this change since the Xcode projects weren't also being migrated at the same time).
Update IPHONEOS_DEPLOYMENT_TARGET, App.framework/Info.plist MinimumOSVersion value, -miphoneos-version-min, and -miphonesimulator-version-min.
Run flutter build ios on all the examples, integration tests, etc. to validate the versions were changed.  No longer see The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. warnings everywhere.
Added a few tests to validate App.framework/Info.plist is embedded in the right place in the app.
Note: this does not migrate any plugin project minimum versions, other than the example app.
Template changed in https://github.com/flutter/flutter/pull/62902
See also https://github.com/flutter/flutter/pull/68729
Fixes https://github.com/flutter/flutter/issues/85173

Hold off on reviewing please, I forgot about migrating the AppFrameworkInfo.plist MinimumOSVersion value.

Hold off on reviewing please, I forgot about migrating the AppFrameworkInfo.plist MinimumOSVersion value.

Updated, ready to review.

@0xf10yd Please read https://github.com/flutter/flutter/wiki/Tree-hygiene#getting-a-code-review
In particular:

approvals in the GitHub UI should be reserved for those with contributor access


chore: update keymanager spec tests to run against v1.1.0

Motivation
Latest spec now covers voluntary exit and graffiti apis which we have implemented already but are not tested right now.
Description
Update keymanager spec tests to run against v1.1.0

:tada: This PR is included in v1.22.0 :tada:


Added git ignore.

Hey Andres, I'm the guy who posted this question on Stack Overflow you've been having some back and forth with:
http://stackoverflow.com/questions/28788115/soundcloud-ios-sdk-is-there-a-signup-view-controller/29061314?noredirect=1#comment46660790_29061314
I was initially going to send a pull request removing the import unnecessary statement I pointed out on SO to get in touch with you, but I saw you already edited it :) so I thought maybe you'd like a git ignore instead. Feel free to reject this pull request if you don't want it.
Anyway, I was hoping you wouldn't mind letting me get in touch with you more directly so we can solve this problem via email, rather than Stack Overflow comments. My email is<EMAIL_ADDRESS>let me know if you wouldn't mind reaching out.

Hi Ben,
thanks for the PR. I didn't realise I hadn't .gitignore. I will contact you by mail :).


🌹 Prepare viem for realese

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#24  👈
#23
#22
#21
#12 : 1 other dependent PR (#20 )
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @MiksuJak and the rest of your teammates on  Graphite


Editor should stay in disassembly view, if possible, when clicking other call stack frames

Testing https://github.com/microsoft/vscode/issues/129574

With mock debug or c++, click on a stack frame and open the disassembly view
Click on another stack frame
You're taken back to the editor

If the disassembly view is the active editor, the editor should remain in that view if the desired stackframe has disassembly available

It sounds like it should be a user preference then


Flash API:flash_mmap API call for obtaining flash device mapping in CPU address space

Introduction
The proposed change brings optional flash_driver_api callback mmap with supporting flash_mmap API call.
Function is provided to obtain, from supporting driver, information on where flash device is mapped, if that is the case in CPU memory map.
Problem description
There are two issues being solved here:

Nearly all SoC devices have internal flash mapped to address space which allows quick access and direct casting of storage device to structures used in code, allowing significant improvements in performance and reduced stack usage where reads, and potentially writes, can be done via standard C functions like memcpy, rather than calling entire chain of calls to flash driver.
Devices have now various coprocessors that have direct access to address space and can operate on data directly very efficiently, without need to transfer the data to RAM first - this also saves on RAM usage in some scenarios; such coprocessors can be used for direct SHA calculation, AES decryption/encryption. direct signature validation on storage, etc. These coprocessors, to work, need to obtain direct address on device they are going to operate on so that they can program DMA or other peripheral to directly get data from storage.

Proposed change
Proposed change here is implementation of Flash API call, followed by Flash Map API call, that will allow to obtain address and size of mapping a device has within CPU address space.
The proposed API call looks like this:
int flash_mmap(const struct device *dev, void **base, uint64_t *size, uint32_t flags)

where base is returned base address of device, size is variable for size of mapping and flags is one or more flags that describe requested access.
Detailed RFC
Drivers that support such change will have to implement mmap callback returns mapping of device to address space.
If driver does not implement the function, -ENOTSUP if will be returned by the flash_mmap call.
Dependencies
None, change is independent from other parts of code and function may or may not be implemented and may and may not be used.
Concerns and Unresolved Questions
There is certain risk in allowing direct access to memory as output of mmap may not be filtered, at this point, by driver to limit mapping to only area that is supposed to be visible by thread. This gives two potential risks: 1) areas protected by readout will fault device if access is attempted and 2) unprotected areas that should not be read may be mapped and read directly.
Both issues actually are resident within the code anyway, because any pointer can trigger them.
Nevertheless the coprocessors can not work effectively without direct access to storage via address space, which means that without such convenient access as asking device driver directly, users will have to resolve to hardcoding addresses and offsets, potentially falling into above issues anyway.
So, all you can do is test your stuff.
Alternatives
Hardcoding offsets/addresses and making maintaining the user code more painful than needed.
Directly accessing information from DTS, which in turn makes problems for projects like MCUboot, where you have to potentially serve each device/vendor differently instead of just asking device for values to use.

@FRASTM @dleach02 you may be interested in this feature as it is also intended to allow MCUboot directly pass memory regions to coprocessors capable of running SHA and encryption functions via DMA, bypassing CPU.


WIP: Wire up support for BZip2 compresion in zip files

Work in progress changes to wire up BZip2 support in Zip files using the ZipFile API. refs #315
Notes:
Needs #333 to prevent ZipInputStream breaking if you try to read such an entry with it.
Needs #422 to reject attempts to add bzip2 compressed entries to ZipOutputStream.
Might need some other tweaks.
It does seem to be reading small zip/bzip2 format files produced with 7-zip successfully at least.
I certify that I own, and have sufficient rights to contribute, all source code and related material intended to be compiled or integrated with the source code for the SharpZipLib open source product (the "Contribution"). My Contribution is licensed under the MIT License.

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 1

Clones added
============
- test/ICSharpCode.SharpZipLib.Tests/Zip/ZipFileHandling.cs  2

See the complete overview on Codacy


Named return in an union not supported

Can't use :: to separate a name in a return, but in a union, so different than #464.
Affects the following files in OTP

erts/preloaded/src/erlang.erl
lib/wx/src/wx_object.erl

Fixed by https://github.com/eirproject/eir/commit/8bcf7a788f301befbb8ccac52118feba80b5fb85

Confirmed.  erlang.erl and wx_object.erl no longer show this error.


Subscriptions not removed on dropped connections

When a session is cleaned up, active subscriptions are not removed from the CTrieSubscriptionDirectory repository. This is a memory leak and causes unnecessary processing when the broker tries to send messages to these phantom subscriptions.
When subscriptions are cleaned up for expired sessions the interceptor should also be notified of this.

In our internal version I made a hack to implement this: https://github.com/FraunhoferIOSB/moquette/commit/3756936b842ea75508fef6a2fc7f4df767334fa4
Definitely not the cleanest way, but may be of use for inspiration.
The tricky bit is getting the unsubscribe notification to the interceptor, since the PostOffice is not involved, since there is no unsubscribe message. In my hack I solved this by giving the SessionRegistry a reference to the interceptor.


Create the Internship Page

AIM
Create the Internship Page for the "Internships" Section.
Features

Information about Internship
Stipend, Skill and Duration should be mentioned
Make use of Boostrap Cards for quick prototyping

Please assign me this issue.


Test all supported Python versions in CI

Add a matrix to the test CI job to run on all supported Python versions: https://github.com/commaai/body-jim/blob/2f06d4038c6d440ad2b023c4d2e8848e7d41423c/.github/workflows/tests.yaml#L6
GitHub has some docs here: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#using-multiple-python-versions

I'm going to take a shot at a dynamic implementation (as mentioned in Discord)


Youtube Still blocked

despite the fact that i removed all my adblockers and installed your script in Tampermonkey, youtube still detects an adblock and blocks me

Common Issues
"Ad Blockers violate Youtube Terms Of Service" OR Just a black screen
This happens when there is an adblock other than the script running. Common ways you may be blocking ads accidentally on Youtube is:

Adblock extension: Disable or whitelist YouTube on your ad blocker extension.

Browser built-in adblock: Some browsers have built-in ad blockers. Disable or configure them.

Other Tampermonkey scripts: Scripts like YouTube enhancer may conflict. Disable them one by one to identify the issue.

Wi-Fi/DNS/Firewall adblock rules: Check network settings for any ad-blocking configurations.

Windows hosts file rules: Inspect the Windows hosts file (C:\Windows\System32\drivers\etc) for ad-blocking rules.


Retry finalizing submits when querying for some timestamps fails

When finalizing submits it can happen that queries for timestamps can
fail when the timestamp is not yet ready to be queried. This aborted
with a CHECK for now, but needs to be worked around by re-enqueing the
submits where timestamp queries failed for later processing. This is
now fixed with this change.
Tested: Manually ran example application and capture multiple times.
Bug: http://179649352

The approach here taken can be summarized as follows:
When completing current submits:

Query all timestamps and write those into the QueueSubmission data structure if successful.
If any query fails, re-enqueu QueueSubmission to try again later.
For all QueueSubmission's where all timestamps were queried successfully, send the data out of the layer.

@florian-kuebler Can you advise on where and if I need to adjust the tests?

I verified that the current unit tests still pass and will merge this once the CI is done.
I will follow-up with additional unit tests that isolate the issue fixed here.


Separate XML schemas

Current occi.xsd includes XML rendering and XML extension description.
Should be separated in:
occi-core
occi-extension (import occi-core)
occi-rendering (import occi-core)

I can help for that, if you want.

Hi, thanks.
Actually schemas are in erocci/apps/erocc/priv/schemas
Splitting ideas:

core: all complexTypes but extensionType and capabilitiesType
extension: import core, describe extensionType
rendering: import core, describe requestType (does not exist still), can be:

capabilities
resource
link

Schemas are now located in https://github.com/occiware/occi-schemas


Run Prettier

[X] Code clean up

Summary of Changes

Run Prettier
Add a lint:fix command to package.json so developers can easily run this

In a subsequent PR we can consider adding ESLint

^ RIP there goes my goal of going net negative

lol this change is going to be fun for rebases


500 error, cannot read "includes" of undefined

I'm very sorry, this is now fixed. You can re-build your static site manually using Triggers, or it will be manually re-build within 24 hours.
It was opened yesterday in #52. I'll make sure I add some tests today itself, so we don't end up with these kind of errors again. Thanks for using Upptime!

Phew, I've also added some end-to-end tests where Cypress visits http://localhost:3000 and ensures that there are status websites and also checks a single incident page: https://github.com/upptime/status-page/pull/55. These tests should take care of bugs like this before releasing. 😄


Add support for unligned writes to LPC flash driver

Add support for unaligned writes to LPC flash driver. The LPC flash ROM APIs require that all writes be 512 byte aligned and be in length multiples of 512 bytes. The majority of Zephyr subsystems do not work with flash devices requiring minimum write lengths of 512 bytes.
This PR adds CONFIG_FLASH_MCUX_LPC_IAP_WRITE_BUFFER, which allocates write buffers and enables 1 byte aligned writes of length multiples of 1 byte.
Fixes https://github.com/zephyrproject-rtos/zephyr/issues/45528

Note from @Laczen added in issue #45528

@danieldegrasse, I have looked at the issue and the proposed solution (https://github.com/zephyrproject-rtos/zephyr/pull/45526 ). The solution uses a read/modify/erase/write method that will increase the wear and might leave zephyr users breaking their system early. Next to this it also might result in a broken littlefs system or lost data (nvs) whenever a write is interrupted.

For nvs let's consider a flash area (page) that contains ate's, these will be 8 byte long and for the page to be completely written it will be erased 64 times. Every write of an ate will erase a page, and every write can result in loosing all other ate's in that area. Nvs does not play nice with these kind of flashes, and nvs shouldn't be used on them.

For littlefs the same holds, and it is not required/advantageous. Littlefs should be defined with a block size of 512 bytes and everything will be taken into account, the fs will try to limit flash writes. And as a bonus the fs will not be broken when a write is interrupted.

@Laczen I agree with you that the increased wear is undesirable. That being said, there are several subsystems (MCUBoot for example) that generally require alignment less than 512 bytes. I think the read/modify/erase/write algorithm has merit in those cases. Perhaps we should make the algorithm opt-in? Also, can we continue discussion in this PR? I'd prefer that the solution be discussed here, and the issue used for tracking status

@danieldegrasse, even for mcuboot this solution will result in problems. In mcuboot the requirement to have a smaller write alignment is to keep track of the swapping process. This will always be written to the same area in flash, this area will as a result wear out quickly (it will even be worse than for nvs as each 'page' will be rewritten 128 times during an update). Afaik the mcuboot community is working on this problem.

@Laczen do you think the best solution here is to avoid upstreaming this algorithm entirely, or to make the algorithm opt-in and provide board level defaults for projects like the LittleFS subsystem sample to ensure that those samples work on the LPC boards?

I think the best solution is to avoid upstreaming this algorithm:
a. For LittleFS it is not needed,
b. For nvs wear is to large and there is a risk of loosing data
c. For mcuboot there is increased wear, but the real problem is that it might lead to a unrecoverable error when swapping (whatever method) is interrupted and data containing the swap progress is not written to flash.

My feeling is setting write-block-size should address the alignment requirement,
    write-block-size:
     type: int
     description: address alignment required by flash write operations
     required: false

My feeling is setting write-block-size should address the alignment requirement

@mmahadevan108 We need the intermediate unaligned write logic present because the underlying flash driver API FLASH_Program requires 512 byte alignment. So essentially we use the write_block_size property in the DTS to indicate the actual alignment requirements of the flash, but CONFIG_FLASH_MCUX_LPC_IAP_WRITE_BUFFER enables the unaligned write logic, which means we can "fake" support for 1 byte write alignment to flash driver consumers

@Laczen, over the life of a device, how may times is mcuboot invoked to perform writes?
As with any product/device, scoping the lifetime usage of the part is important when making these kinds of decisions. The flash lifecycle on these parts is rated at a minimum of 100,000 page erase/write cycles at optimum temperature ranges (10,000 cycles min in non-optimum temp ranges).

write-block-size
By setting write-block-size to 512, would this alignment requirement handled by the Zephyr flash subsystem?

In mcuboot the requirement to have a smaller write alignment is to keep track of the swapping process

@Laczen I assume you are referring to the swap status region here- If I am understanding correctly, the core issue is that MCUBoot relies on individual writes to the status region only changing the bits for the page mcuboot is attempting to update.
Given that, the failure sequence would look something like the following, correct?

swap algorithm starts, swap status is set to 0xff for all fields
swap proceeds normally, a portion of the swap status fields (for example, pages 0-200) are set to indicate the primary and secondary slot have been swapped
during the update of the 201st swap field, the device looses power- due to the algorithm in use here, the reality is that the first 512 swap fields have been erased, and are now in an unknown state

I think with this better understanding of MCUBoot's current upgrade methodology, I am inclined to agree with you that this algorithm will cause issues- one upgrade would perform up to 512 erase/write cycles on a status flash page. We may need to investigate a different approach to supporting MCUBoot on this platform.

@danieldegrasse, yes I was referring to the swap status region. It seems that there is work being done to support devices with larger write block size in mcuboot. I have today proposed a method to avoid writing any status update during upgrade.

@Laczen, The concern you have appears to be related to mcuboot's particular usage of flash. As it is now, mcuboot does not work on these devices but does work with this change. We are also doing this change because of some other users not accommodating the alignment requirements of this device. As structured, a user of our chips does not have to enable this if all of the code abides by the alignment, but they have the option of turning it on if needed.
The mcuboot problem with larger sizes is a mcuboot problem. This will be a larger problem with some of our devices that want the larger sizes to be used because these devices have ECC support which is disabled if smaller sizes are used.

@Laczen, The concern you have appears to be related to mcuboot's particular usage of flash. As it is now, mcuboot does not work on these devices but does work with this change. We are also doing this change because of some other users not accommodating the alignment requirements of this device. As structured, a user of our chips does not have to enable this if all of the code abides by the alignment, but they have the option of turning it on if needed.
The mcuboot problem with larger sizes is a mcuboot problem. This will be a larger problem with some of our devices that want the larger sizes to be used because these devices have ECC support which is disabled if smaller sizes are used.

My concern is larger than mcuboot, the method might break littlefs, nvs, ... I can understand that users of your devices might wish it. It is your responsibility when a user is insufficiently warned when enabling this property. I am not blocking this PR neither will I approve it.

@danieldegrasse. Maybe this should not be enabled by default and turned on by the application such as mcuboot

@mmahadevan108  have updated the PR to only enable unaligned write support when mcuboot is in use, and confirmed this PR enables MCUBoot for the platform. I have switched the littleFS and settings subsystem samples to use a properly aligned write block size, so that they can function without unaligned write support being present in the driver.

Hi @danieldegrasse,
Just to verify, is applying these changes currently the only way to get NVS working on the LPC55x?

@JeroenReeskamp no, NVS works correctly on the LPC55x right now, but only for 512 byte aligned reads/writes. You can use littleFS for example, provided you configure it with a write block size of 512 bytes. Things like MCUBoot that do not support 512 byte write sizes do not work however

@danieldegrasse thanks, I will look into that.
I tried using the default NVS system and got that to work using the changes form this PR. So i can at least move forward 😄

@JeroenReeskamp, if you do use this PR realise that it might result in reduced flash lifetime. To make it as large as possible make  the simulated write block size as large as possible (e.g. 16 bytes, or more). NVS will never be a good fit for devices with large write block size, so avoid it if possible.

@Laczen, thank you for the heads-up. For now we are mostly experimenting with Zephyr and LPC to see if we can use it in some projects. In this specific project we have EEPROM as an alternative.
I will keep it in mind for future projects!

@danieldegrasse , So for LPC55xx users is the preferred bootloader solution to use the NXP MCUBoot secondary bootloader? I see where the applications notes and code examples have been updated to support the LPC55XX processors.
For sake of clarity in this next comment, I am going to refer to the MCUBoot project as "MCUBoot", and the NXP MCUBoot code as "NXPBOOT". Otherwise, I tend to confuse myself.
At that point, would it be an option to override the MCUBoot calls to use the NXPBoot application code? Effectively using all the Zephyr tooling, but getting the functionality from the NXP code?

Hi @irose-PeLtd - could you ask this question in this discussion thread: https://github.com/zephyrproject-rtos/zephyr/discussions/49246? I'd like to avoid using this PR as a discussion space about using the LPC flash controller with Zephyr or MCUBoot, since it will be easier for users to find a discussion post than a closed PR.


Add explicit value type definition to Annotations for Enum config

Currently only default parameter is recognized for annotations. The new type parameter should be recognized as an explicit type of the expected value.
Should be implemented after #13

Has been implemented together with #13


Remove 'breakpoint' from the top of a cell when debugging.

For #8260

Codecov Report

Merging #9004 into master will decrease coverage by 32.61%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master   #9004       +/-   ##
==========================================
- Coverage   57.92%   25.3%   -32.62%
==========================================
  Files         530     319      -211
  Lines       27658   14927    -12731
  Branches     4188    2201     -1987
==========================================
- Hits        16020    3777    -12243
- Misses      10744   11121      +377
+ Partials      894      29      -865

Impacted Files
Coverage Δ

src/client/datascience/cellMatcher.ts
9.09% <0%> (-75.53%)
:arrow_down:

src/client/providers/serviceRegistry.ts
0% <0%> (-100%)
:arrow_down:

src/client/interpreter/serviceRegistry.ts
0% <0%> (-100%)
:arrow_down:

src/client/common/utils/icons.ts
0% <0%> (-100%)
:arrow_down:

src/client/debugger/constants.ts
0% <0%> (-100%)
:arrow_down:

src/client/formatters/serviceRegistry.ts
0% <0%> (-100%)
:arrow_down:

src/client/language/languageConfiguration.ts
0% <0%> (-100%)
:arrow_down:

src/client/debugger/extension/serviceRegistry.ts
0% <0%> (-100%)
:arrow_down:

src/client/linters/serviceRegistry.ts
0% <0%> (-100%)
:arrow_down:

src/client/testing/navigation/serviceRegistry.ts
0% <0%> (-100%)
:arrow_down:

... and 408 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 f43665c...7e4b0c5. Read the comment docs.


#159117716 Setup babel configuration to get browser-compatible javascript

What does this PR do?
Setup babel configuration to transpile
Description of Task to be completed?
Help the application to use the latest javascript features
Transpile javascript to ES5 for browsers that can't understand latest javascript features
How should this be manually tested?
After cloning the repository, cd into the directory then run npm install
to install all dev-dependencies and dependencies.
run npm start, if the application works fine with es6 features, then you are good to go.
What are the relevant pivotal tracker stories?
#159117716

This worked fine. You can merge it into the develop branch


[WIP]: Hybrid Model Development

Currently I have few hacks implemented to make the hybrid model work.

I have had to use new variable names for each component in the hybrid system  https://github.com/NREL-SIIP/PowerSimulations.jl/blob/d4212f6f898da7f2886fbde8ed7c8036ea3f076d/src/core/variables.jl#L96-L112
This limits the formulation for the hybrid device to the simplest version ( ThermalDispatch, RenewableDispatch, BookKeeping, etc..)
Since all of the HybridSystems done have each component I had use devices_filter_func field in DeviceRangeConstraintSpec which resulted in changes to _apply_range_constraint_spec! and _apply_timeseries_range_constraint_spec! to accept Union{Vector{T}, IS.FlattenIteratorWrapper{T}}} where {T <: PSY.Device}

The following model are currently working with few limitations

PhysicalCoupling (only applies input/output active power limits or inverter rating constraints)
FinancialCoupling (allows for MarketBidCost to be associated with output power variable)
StandardHybridFormulation (PhysicalCoupling + FinancialCoupling)

closed in favor of #832


WFLY-14276 Store elytron security identity in local context, not as a replicated session attribute, as this is not serializable.

https://issues.redhat.com/browse/WFLY-14276

@fjuma or @darranl Please review

@fjuma or @darranl Please review

I think the change made here is reasonable, it would mean on failover a complete session is replicated minus the authentication so authentication would need to be performed again.  I am not sure if this matches the original bug report as I think they also want the authentication to be replicated but we have the SSO implementation for that.
My only concern is what happens if the user authenticates as a different user, i.e. permission checks may have been performed as the session is populated but then authentication happens using a different user those prior checks may no longer be valid.

I think the change made here is reasonable, it would mean on failover a complete session is replicated minus the authentication so authentication would need to be performed again.  I am not sure if this matches the original bug report as I think they also want the authentication to be replicated but we have the SSO implementation for that.
My only concern is what happens if the user authenticates as a different user, i.e. permission checks may have been performed as the session is populated but then authentication happens using a different user those prior checks may no longer be valid.

My only concern is what happens if the user authenticates as a different user, i.e. permission checks may have been performed as the session is populated but then authentication happens using a different user those prior checks may no longer be valid.

If an application uses relies on security checks for securing access to specific session attributes, they have to manage that access manually - there is nothing in the servlet specification that applies security context to specific session attributes.  Otherwise the server has no way of knowing which attributes are "secured" and which are not.

My only concern is what happens if the user authenticates as a different user, i.e. permission checks may have been performed as the session is populated but then authentication happens using a different user those prior checks may no longer be valid.

If an application uses relies on security checks for securing access to specific session attributes, they have to manage that access manually - there is nothing in the servlet specification that applies security context to specific session attributes.  Otherwise the server has no way of knowing which attributes are "secured" and which are not.


Update ciris, ciris-refined to 2.0.1

Updates

is.cir:ciris
is.cir:ciris-refined

from 1.2.1 to 2.0.1.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "is.cir" } ]

labels: library-update, semver-major

Superseded by #466.


Log files should be cleaned automaticaly

Description of the new feature / enhancement
Today I saw tons of log files generated by the various powertoys programs over the last few years. These should be removed automatically after a certain time, which you can set in the settings.
Scenario when this would be used?
Always
Supporting information
No response

Thanks for your message. This is a Duplicate of another issue: /dup #8419


mysql-workbench - No start menu entry

This is recipe is working to install MySQL Workbench, but a start menu entry never appears.   To run, one must type mysqlworkbench.exe or "MySQLWorkbench" on the command line.
Reproduce Steps:

scoop install mysql-workbench
Check the start menu

Expected:
Should install and place an entry in the start menu.

Fixed


Add links to dependencies

The example fails to compile unless users understand they need to download the core. This PR removes that hurdle.

The dependencies are documented in the Readme, as well as in the library.properties. They will automatically install if Arduino IDE is used.
Furthermore SensirionCore.h is not directly used by the example but through the SensirionI2CSen5x.h. There is no need to include it in the example.


Question: Auth for rest api

Hi :) Amazing work!!!!
Quick question, do you have an authentification example for a full rest server ?
I want to implement some kind of auth for a small server i created. I can already limit the access to only one ip (a web server), and use ssl but i want to implement some kind of auth mechanism wich does not involve forms.
in your doc, auth mechanism only use  forms. Is there another way ?
Any idea ? maybe implementing a middleware, with some db behind holding secrets ?
Thanks again for you work ! (and sorry for my english ... )

ah maybe it is csrf ... sorry :)

Hey @LxLeChat , and thanks!
You can find an example in the docs which uses Basic authorization: https://badgerati.github.io/Pode/Tutorials/Authentication/Basic/. This will let you pass usernames/passwords in a requests header without the need for forms.
For CSRF, that's more to help prevent cross-site request forgery attacks, rather than authentication - if you're writing a REST API with no frontend, it's likely you might not need this.
Hope that helps! 😄

alright ! pretty obvious :) thanks !


Allow tickets for JWT Bearer passthrough when using Redis session store

After the work on the Redis session store and JWT Bearer token passthrough features, I've implemented a feature in oauth2_proxy that, when using the Redis Session Store, oauth2_proxy will accept the ticket to the session, extract the ID token from that session, and continue on the same was as if it had received a JWT in the first place.
Expected Behavior
When using Redis session store and JWT Bearer passthrough, a ticket to a session, and subsequently an IDToken, can be used in place of providing a JWT.
Current Behavior
Only a valid JWT is allowed when using JWT Bearer passthrough.
Possible Solution
When using JWT Bearer passthrough with the Redis session store, oauth2_proxy will inspect authorization headers to see if it contains a ticket instead of a JWT. If so, that ticket can be used to immediately lookup a session and extract the IDToken, replacing the header data as if a JWT had been originally sent along, and execute all validation code.
Context
We primarily use this feature as a way to issue small API tokens. Our OpenID Connect JWT tokens are rather large, typically around 4-6kB. In many cases this is okay, but by using the tickets instead of the tokens, reduce.
One good example is securing legacy applications, which cannot do cookie based authentication, or something like PKCE and can only speak HTTP Basic Authentication. We want to authenticate a user so we can attach identity information on subsequent requests, so just adding to the allowed list that oauth2_proxy supports for bypassing is not quite adequate.
Our example is an authenticated WebDAV service, protected by oauth2_proxy. The client is the macOS WebDAV in Finder. This client does not accept usernames or passwords beyond 255 characters in length, and does not support cookies or arbitrary authentication headers, so it cannot accept even smaller JWTs, and it only supports HTTP Basic or Digest.  By sending the user to a ticket-reflection page behind oauth2_proxy, which only reflects the ticket in an HTML page so the user can store it, the user can use that ticket in lieu of a JWT or username/password pair. The ticket is much less than 255 characters, so the service is authenticated, oauth2_proxy knows who the user is, and sets the appropriate headers for the protected WebDAV server.
This similar to the "App Passwords" pattern that cloud services like Google, Microsoft, and iCloud implement. Taking this one step further, an out-of-band application could write sessions to the Redis store and issue tickets to more fully implement an "App Passwords" pattern.

@JoelSpeed, do you think this might be an acceptable feature?  I think this could be a useful feature to add, please raise a PR and we can discuss further there

Will do. It recognizes them based on the ticket prefix, which is effectively the cookie prefix.
On Feb 6, 2020, at 11:27 AM, Joel Speed <notifications<EMAIL_ADDRESS>wrote:
@brianv0https://github.com/brianv0 How does it recognise the tickets? I think this could be a useful feature to add, please raise a PR and we can discuss further there
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/pusher/oauth2_proxy/issues/375?email_source=notifications&email_token=AAEGEE6DQY26LNBBBPFWBUTRBRQD5A5CNFSM4KOMQDKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELAPDBQ#issuecomment-583070086, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAEGEE6VWL5ARFWUNYFXJDDRBRQD5ANCNFSM4KOMQDKA.

Any comments on #393? I'd like to make sure the feature is kosher before I do more work fixing potential merge conflicts


can't pass kwargs to xmap'd function

import jax
import jax.numpy as jnp
from jax.experimental.maps import xmap, mesh

def f(x, *, thing: bool):
    y = jnp.sum(x, axis=("data",))
    z = jnp.mean(y, axis=("batch",))
    if thing:
        # do thing
        pass
    return z

f = xmap(f, in_axes={0: "batch", 1: "data"}, out_axes=[...])
with mesh(jax.local_devices(), ("batch",)):
    x = jnp.ones((32, 128))
    print(f(x, thing=True))

Produces the following error:
/home/grg/.local/lib/python3.9/site-packages/jax/experimental/maps.py:516: UserWarning: xmap is an experimental feature and probably has bugs!
  warn("xmap is an experimental feature and probably has bugs!")
WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)
Traceback (most recent call last):
  File "/tmp/x.py", line 16, in <module>
    print(f(x, thing=True))
TypeError: fun_mapped() got an unexpected keyword argument 'thing'

xmap was removed from JAX, so this is obsolete


Stream data row response

Our current implementation collects all DataRows from a query into an in-memory vector. This can cause memory issue when query returns large mount of rows, and does not work with streaming scenarios like live query.
The initial proposal is to make QueryResponse to hold Arc<Stream<Item=DataRow>>.

Implemented in #20 and #21


Do you plain to develop this project?

tcomb itself is js-only. But json-schema can be used in different environments (java/svagger, etc).
On current moment only ajv supports many features of json-schema draft v4 and 5 (meta-schemas, oneOf, allOf, refs) and provides complex information about errors: format, schemaPath, keyword, etc.
 Not a separation concern: doT templates, code generation, unnecessary for frontend speed optimizations, async support are monolythic parts of ajv.
I also try is-my-json-valid, jsen, schemasaurus. But all them are garbage, suitable only for true/false validation.
Tcomb - is good engine for scmema validators, provides best meta-information about errors. But tcomb-json-schema does not support some features of draft v4: oneOf/allOf, refs, metaschemas.
Do you plain to add this features?

Do you plan to add this features?

No, I don't. I don't use this library at work so currently is in maintenance mode. If anyone is willing to add those features, or become the new maintainer or fork this repo I will be glad to help out


W10 Flagging as Wacatac.B!ml

W10 Flagging as Wacatac.B!ml, Virus total showing this as well
https://www.virustotal.com/gui/file/c469fc4e78f29e357ddab2cef0009f97ca7f92f6c0f2e96527cd0d066813efa3

Seconded. Just tried and had the same issue on Windows 11.

Processor	AMD Ryzen 9 5900X 12-Core Processor               3.70 GHz
Installed RAM	80.0 GB
System type	64-bit operating system, x64-based processor
Edition	Windows 11 Home
Version	23H2
OS build	22631.4317
Experience	Windows Feature Experience Pack 1000.22700.1041.0

Not sure, I guess try building it yourself? Feel free to check the diff from upstream.

Obviously you need to do this investigating yourself, as you really shouldn't believe anything I say relating to this. Even if I had stuff some virus on my computer these were built with GH actions so they should be building in a clean env. I may need to contact the company flagging it, I'm not sure how that works overall

From building on dev and uploading a zip of the win-unpacked shows no flags but it isn't run against the vendor that was flagging before so that is largely not helpful. (doing a zip of that folder instead of the installer exe since exes can have a higher false positive rate as far as i know)
I do have to go to work, I'll look into this more when I get home today.

I've faced the same issue on Windows 11 with version 0.1.1 but looks like it disappared with 0.1.2...


[Backport 1.10]DCOS-22453: prevent unnecessary updates in ServiceBreadcrumb

fix: prevent service breadcrumb to update without changes
This adds a shouldComponentUpdate function to the ServiceBreadcrumb component. This ensures the
component is only updated if any of the props has changed.
To test you can use the following service config:
{
  "id": "/volumes",
  "containers": [
    {
      "name": "container-1",
      "resources": {
        "cpus": 0.1,
        "mem": 128,
        "disk": 0
      },
      "image": {
        "kind": "DOCKER",
        "id": "alpine"
      },
      "exec": {
        "command": {
          "shell": "sleep 1000;"
        }
      },
      "volumeMounts": [
        {
          "name": "home",
          "mountPath": "/var/home"
        },
        {
          "name": "nothome",
          "mountPath": "/var/nothome"
        }
      ]
    }
  ],
  "volumes": [
    {
      "name": "home",
      "persistent": {
        "type": "root",
        "size": 1,
        "constraints": []
      }
    },
    {
      "name": "nothome",
      "persistent": {
        "type": "root",
        "size": 1,
        "constraints": []
      }
    }
  ],
  "networks": [
    {
      "mode": "host"
    }
  ],
  "scaling": {
    "instances": 1,
    "kind": "fixed"
  },
  "scheduling": {
    "placement": {
      "constraints": []
    }
  },
  "executorResources": {
    "cpus": 0.1,
    "mem": 32,
    "disk": 10
  },
  "fetch": []
}

This is going to create a multi container application with multiple volumes. Then you should
navigate to the service detail page.
Check if you can navigate to the task detail page and back.
Check if you can visit the volume detail page.
Check if you can switch between the two volume detail pages.

Copy the URL of the first volume Detail page,
Visit the second one, go to the address bar paste the URL and hit enter.
After this you may use the browser history to go back and forth.

Close DCOS-22453

Commit:
87fa23929e0cf158cafb10dd1c36867720bee13c

This repo has @mesosphere-mergebot integration. You can interact with the following commands.
@mesosphere-mergebot integrate
@mesosphere-mergebot ship-it
@mesosphere-mergebot test

Backport of #2962

hold merge until master got merged 👍

@juliangieseke I strongly disagree with blocking this until master is merged. 1.10 is our top priority, so it should be the other way around.

@DanielMSchmidt if this is true I'd ask why this is a Backport, it should be a fix. opening backport PRs for stuff that isnt merged yet only creates confusion (like now) :(

@juliangieseke I agree, we should only have had one PR in the first place, have it merged and do forward ports afterwards

Closing this one in favor of #2962 since the discussion is happening there.

@Poltergeist We should have the discussion here, 1.10 is our top priority right now, AFAIK

Since now the master PR #2962 got merged I am reopening this PR.


prevent creation of _UIAnimatedImage

I know that this is probably unrelated to FLAnimatedImage, but I thought you might be able to help me out. I'm downloading gifs from the network, and they have a large file size, so I just want them to be plain old UIImage that take up minimum RAM.
What's happening though is that I'm getting _UIAnimatedImage in the imageview which are presumably being animated by the system (I'm using an FLAnimatedImageView). This baloons up memory usage(>500MB), causing my app to crash.
Do you have any pointers as to how to disable either the creation of _UIAnimatedImage or stopping the animation? Any methods I can set a break point on to track this? Thanks. (FWIW, SDWebImage is responsible for creating UIImages out of network data.)
Happy to provide more info.

This is definitely the wrong place to be asking, but your issue is that SDWebImage is automatically creating the animated UIImage from the remote data.

Yeah I just figured that out. Apologies for posting that here.

welp. looks like there's no official way to disable GIF creation. Didn't really want to fork.

The fine people over at SDWebImage are looking into replacing that bit with FLAnimatedImage: https://github.com/rs/SDWebImage/issues/945
Here the relevant thread on FLAnimatedImage discussing the strategy:
https://github.com/Flipboard/FLAnimatedImage/issues/11
I think it's mostly on me to bang the uiimage-subclass branch (highly experimental, pushed a few weeks ago) in shape, then we can start integration, which would solve your problem.

DFImageManager already features FLAnimatedImage integration. It has its own UIImage subclass @interface DFAnimatedImage : UIImage. I'm looking forward to replace it with FLAnimatedImage implementation.


Use consistent path separators

Most of the to path separators are slashes, but a few were backslashes. They are now slashes to match the others.
In its former form, the page was a bit confusing to a new reader (me). When I got to the first backslash form, a reference to prisma.env, since I wasn't expecting a backslash path separator, I thought at first it was some sort of escape. Consistency avoids this kind of confusion.

Thanks for the PR @breyed, great catch! 💯

This is what happens when part of the team uses Windows @mhwelander :D


PR/Docs: Editor setup guide for vscode

I've been trying out vscode and I found it to be really nice for node development. Its much faster than atom and it has great support flow flow's type inspection.
If you have any suggestions for any recommended plugins, please feel free to contribute to this discussion!

Vs code has been a joy to work with. I recommend:

vscode icons
eslint
mssql
git history
hopscotch theme
atom one dark theme
XML tools

Links please! :)

eslint
flow
editorconfig

Jest
GitLens


Can't get amp-list sample to run on localhost

Experiencing this regression on Goobuntu with node v5.5.0 and on Ubuntu 16.04 with node v7.2.0.
Also reported by a partner as a CORS issue blocking the sample from working locally.
Repro steps:

Clone the repo, cd, npm install
gulp build
gulp backend:serve
#ensure go_appengine is in $PATH
Navigate to http://localhost:8080. Notice the service worker failing to load.
Click the amp-list sample.

Error messages in the browser console:
amp.js:106Powered by AMP ⚡ HTML – Version<PHONE_NUMBER>976 http://localhost:8080/components/amp-list/
2016-11-30 20:14:56.005 helpers.js:25[sw-toolbox] install event fired
2016-11-30 20:14:56.010 helpers.js:25[sw-toolbox] creating cache [$$$toolbox-cache$$$http://localhost:8080/$$$$$$inactive$$$]
2016-11-30 20:14:56.014 helpers.js:25[sw-toolbox] preCache list: /, /components/amp-img/, /components/amp-install-serviceworker/, /youre_offline/, /img/offline.png, /img/logo.svg, /favicons/favicon.ico, /favicons/favicon-230x230.png, /favicons/favicon-96x96.png, /favicons/android-chrome-36x36.png, /favicons/android-chrome-72x72.png, /img/ic_experiment_black_2x_web_18dp.png, /img/ic_experiment_black_1x_web_18dp.png, /img/ic_experiment_black_2x_web_24dp.png, /img/ic_experiment_black_1x_web_24dp.png, /img/ic_experiment_black_2x_web_36dp.png, /img/ic_experiment_black_1x_web_36dp.png, /img/ic_link_black_1x_web_18dp.png, /img/ic_link_black_2x_web_18dp.png, /img/ic_menu_white_1x_web_24dp.png, /img/ic_menu_white_2x_web_24dp.png, /img/ic_indeterminate_check_box_black_24dp_1x.png, /img/ic_indeterminate_check_box_black_24dp_2x.png, /img/ic_add_box_black_24dp_1x.png, /img/ic_add_box_black_24dp_2x.png, /img/ic_chevron_left_black_24dp_1x.png, /img/ic_chevron_left_black_24dp_2x.png, /img/ic_play_arrow_white_1x_web_24dp.png, /img/ic_play_arrow_white_2x_web_24dp.png, /img/ic_play_circle_filled_white_24dp_1x.png, /img/ic_play_circle_filled_white_24dp_2x.png, /img/GitHub-Mark-Light-32px.png, /img/GitHub-Mark-Light-64px.png, /img/abe_device_screenshot_1x.png, /img/abe_device_screenshot_2x.png
2016-11-30 20:14:56.136 http://localhost:8080/favicons/favicon.ico Failed to load resource: the server responded with a status of 404 (Not Found)
2016-11-30 20:14:56.136 http://localhost:8080/favicons/favicon-230x230.png Failed to load resource: the server responded with a status of 404 (Not Found)
2016-11-30 20:14:56.147 http://localhost:8080/favicons/favicon-96x96.png Failed to load resource: the server responded with a status of 404 (Not Found)
2016-11-30 20:14:56.159 http://localhost:8080/favicons/android-chrome-36x36.png Failed to load resource: the server responded with a status of 404 (Not Found)
2016-11-30 20:14:56.160 http://localhost:8080/favicons/android-chrome-72x72.png Failed to load resource: the server responded with a status of 404 (Not Found)
2016-11-30 20:14:56.289 localhost/:1 Fetch API cannot load https://ampbyexample.com/json/examples.json?__amp_source_origin=http%3A%2F%2Flocalhost%3A8080. The 'Access-Control-Allow-Origin' header has a value 'https://cdn.ampproject.org' that is not equal to the supplied origin. Origin 'http://localhost:8080' is therefore not allowed access. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
2016-11-30 20:14:56.291 error.js:78 Fetch failed  https://ampbyexample.com/json/examples.json?__amp_source_origin=http%3A%2F%2Flocalhost%3A8080 : Failed to fetchmd @ error.js:78
2016-11-30 20:14:56.295 localhost/:1 Fetch API cannot load https://ampbyexample.com/json/examples.json?__amp_source_origin=http%3A%2F%2Flocalhost%3A8080. The 'Access-Control-Allow-Origin' header has a value 'https://cdn.ampproject.org' that is not equal to the supplied origin. Origin 'http://localhost:8080' is therefore not allowed access. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
2016-11-30 20:14:56.296 error.js:78 Fetch failed  https://ampbyexample.com/json/examples.json?__amp_source_origin=http%3A%2F%2Flocalhost%3A8080 : Failed to fetchmd @ error.js:78
2016-11-30 20:14:56.298 localhost/:1 Fetch API cannot load https://ampbyexample.com/json/examples.json?__amp_source_origin=http%3A%2F%2Flocalhost%3A8080. The 'Access-Control-Allow-Origin' header has a value 'https://cdn.ampproject.org' that is not equal to the supplied origin. Origin 'http://localhost:8080' is therefore not allowed access. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
2016-11-30 20:14:56.298 error.js:78 Fetch failed  https://ampbyexample.com/json/examples.json?__amp_source_origin=http%3A%2F%2Flocalhost%3A8080 : Failed to fetchmd @ error.js:78
2016-11-30 20:14:56.460 sw.js:1 Uncaught (in promise) TypeError: Request failed
2016-11-30 20:15:07.353 localhost/:1 Site cannot be installed: no matching service worker detected. You may need to reload the page, or check that the service worker for the current page also controls the start URL from the manifest
2016-11-30 20:15:55.823 sw.js:1 Service Worker termination by a timeout timer was canceled because DevTools is attached.

Yup. CORS is currently only enabled for cdn.ampproject.org. However, if you use:
gulp backend:watch

instead. The json file will be loaded from your machine.

I couldn't use the watch task due to #465, but gulp build + gulp backend:serve should have the same effect, no?

Not the same:
https://github.com/ampproject/amp-by-example/blob/master/gulpfile.js#L337
It makes more sense though to set this in gulp backend:serve

I can run the sample successfully without the backend (since the JSON it needs is static) by just running gulp and ignoring that gulp appears to be stuck (#465).


Add a switch to silence model warnings

https://discord.com/channels/1131200896827654144/1133060505792159755/1232366205239824385

Added to main branch.


add example of creating systems via closures

Prompted by this discord discussion.
This example shows how to pass an arbitrary argument to a closure, and how to then use that closure as a bevy_ecs::system::System.

could you also add the example to https://github.com/bevyengine/bevy/blob/main/examples/README.md?

For the first system, you can use a Local parameter and config it rather than using move to capture arg:
Box::new(|mut cmd: Commands, arg: Local<String>| {
    info!("this system uses the moved arg: {:?}", arg);
    let id = cmd.spawn().id();
    info!("also it spawned an entity {:?}", id);
})
.system()
.config(|config| config.1 = Some("hello".to_string()))

Thanks for the review!

To pass parameters to your systems, you can use a Local parameter and config it rather than using move to capture arg:
Box::new(|mut cmd: Commands, arg: Local<String>| {
    info!("this system uses the moved arg: {:?}", arg);
    let id = cmd.spawn().id();
    info!("also it spawned an entity {:?}", id);
})
.system()
.config(|config| config.1 = Some("hello".to_string()))

Interesting, I didn't know about this. Do you think it's still useful as an example? (cc @alice-i-cecile)

Do you think this PR is still useful as an example?

Yes! We don't show how to pass closures as system, so that's valuable. And it would be even more with the Local/config way, as we don't have an example on that yet

The content itself looks solid, it but could use a bit more motivating text at the start, explaining why you might want to do this.

The content itself looks solid, it but could use a bit more motivating text at the start, explaining why you might want to do this.

Just to make sure I'm understanding -- should I add a comment to the example, or do you mean add more explanation to the PR description?

The former please; it's much more important that end users can understand the motivation. And the reviewers can check the comments in the code ;)

sorry for dropping this! will try to wrap it up by the end of this week.

as seen on Discord, .system() removal may not yet work with .config(), we should do a full pass on Bevy first

#2422 should help with that.

Hey @cab I'm interested in merging this. Are you interested in refreshing this?
If so, please comment in https://github.com/bevyengine/bevy/issues/2373 and refresh this to main :)

Closing due to no response on relicensing.

Closing to let someone else pick this work up :) Please credit the author of this PR if you build off it.


Add assertion to ensure post() returns an instance of Response

Q
A

Branch
master

Bug fix?
no

New feature?
no

BC breaks?
no

Deprecations?
no

Tests pass?
no

Fixed tickets
n/a

License
MIT

Doc PR
n/a

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

Closed via https://github.com/sendgrid/php-http-client/pull/93/commits/05b84e69c781a0166da345a64673600df105812b.


WARNING: No libcudart.so found!

CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching /usr/local/cuda/lib64...
C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\cuda_setup\paths.py:27: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')}
warn(
WARNING: No libcudart.so found! Install CUDA or the cudatoolkit package (anaconda)!
CUDA SETUP: Loading binary C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\libbitsandbytes_cpu.so...
Traceback (most recent call last):
File "C:\Users\user\Desktop\lora\sd-scripts\train_network.py", line 873, in
train(args)
File "C:\Users\user\Desktop\lora\sd-scripts\train_network.py", line 262, in train
optimizer_name, optimizer_args, optimizer = train_util.get_optimizer(args, trainable_params)
File "C:\Users\user\Desktop\lora\sd-scripts\library\train_util.py", line 2699, in get_optimizer
import bitsandbytes as bnb
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes_init_.py", line 6, in
from .autograd._functions import (
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\autograd_functions.py", line 5, in
import bitsandbytes.functional as F
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\functional.py", line 13, in
from .cextension import COMPILED_WITH_CUDA, lib
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\cextension.py", line 41, in
lib = CUDALibrary_Singleton.get_instance().lib
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\cextension.py", line 37, in get_instance
cls.instance.initialize()
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\cextension.py", line 31, in initialize
self.lib = ct.cdll.LoadLibrary(binary_path)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\ctypes_init.py", line 452, in LoadLibrary
return self.dlltype(name)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\ctypes_init.py", line 364, in init
if '/' in name or '\' in name:
TypeError: argument of type 'WindowsPath' is not iterable
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\Scripts\accelerate.exe_main.py", line 7, in
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\accelerate\commands\accelerate_cli.py", line 45, in main
args.func(args)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\accelerate\commands\launch.py", line 1104, in launch_command
simple_launcher(args)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\accelerate\commands\launch.py", line 567, in simple_launcher
raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['C:\Users\user\AppData\Local\Programs\Python\Python310\python.exe', 'train_network.py', '--pretrained_model_name_or_path=C:\Users\user\Desktop\webUI\stable-diffusion-webui\models\Stable-diffusion\MeinaPastelV2-baked_VAE-pruned.safetensors', '--output_dir=C:\Users\user\Desktop\lora\notebooks\TrainingData\outputs', '--output_name=Shota_MPastel', '--dataset_config=C:\Users\user\Desktop\lora\notebooks\TrainingData\datasetconfig.toml', '--train_batch_size=1', '--max_train_epochs=10', '--resolution=768,768', '--optimizer_type=AdamW8bit', '--learning_rate=1e-4', '--network_dim=128', '--network_alpha=64', '--enable_bucket', '--bucket_no_upscale', '--lr_scheduler=cosine_with_restarts', '--lr_scheduler_num_cycles=4', '--lr_warmup_steps=500', '--keep_tokens=1', '--shuffle_caption', '--caption_dropout_rate=0.05', '--save_model_as=safetensors', '--clip_skip=2', '--seed=42', '--color_aug', '--xformers', '--mixed_precision=fp16', '--network_module=networks.lora', '--persistent_data_loader_workers']' returned non-zero exit status 1.
I have installed CUDA 11.6 in windows environment and PATH is passed.
PS C:\Users\user\Desktop\lora\sd-scripts> nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Fri_Dec_17_18:28:54_Pacific_Standard_Time_2021
Cuda compilation tools, release 11.6, V11.6.55
Build cuda_11.6.r11.6/compiler.30794723_0

Same. I really appreciate the work being done in this repo, but people have been having issues getting bitsandbytes to work with gpu when gpu is clearly available in the environment for almost a year now, and it seems like nobody cares?
Maybe fixing the way that bitsandbytes checks for cuda availability in an environment (e.g. docker) should be given some priority, so people can actually reliably deploy this library.

l think  that is dll path problem，check your path

the code check dll or so cant load below:
import ctype as ct
ct.cdll.LoadLibrary('your dll')

So I'm using Docker on Ubuntu to run my environments. What I ended up having to do was run a conda environment inside the docker container in order for bitsandbytes to properly detect libcudart.so and run the CUDA setup without errors.
I've never had to do this with any other GPU dependent package, but at least it seems to work now.

Conda automatically detected the CUDA libraries, but Windows CUDA installs are currently not supported. Read #30 for more information

Bitsandbytes was not supported windows before, but my method can support windows.（yuhuang）
1  open folder J:\StableDiffusion\sdwebui，Click the address bar of the folder and enter CMD
or WIN+R, CMD  。enter，cd /d J:\StableDiffusion\sdwebui
2  J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes
3 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes-windows
4 J:\StableDiffusion\sdwebui\py310\python.exe -m pip install https://github.com/jllllll/bitsandbytes-windows-webui/releases/download/wheels/bitsandbytes-0.41.1-py3-none-win_amd64.whl
Replace your SD venv directory file（python.exe Folder） here（J:\StableDiffusion\sdwebui\py310）


Added support for Yearly repeaters

There seemed to be an issue with an ical file like:
RRULE:FREQ=YEARLY;BYMONTH=12;BYMONTHDAY=17;COUNT=10
When.php was returning no occurrences.  After adding these lines the result is now:
{"occurrences":[{"date":"20151217T000000","type":"rrule"},{"date":"20161217T000000","type":"rrule"},{"date":"20171217T000000","type":"rrule"},{"date":"20181217T000000","type":"rrule"},{"date":"20191217T000000","type":"rrule"},{"date":"20201217T000000","type":"rrule"},{"date":"20211217T000000","type":"rrule"},{"date":"20221217T000000","type":"rrule"},{"date":"20231217T000000","type":"rrule"},{"date":"20241217T000000","type":"rrule"}],"batch":{"start":0,"end":13,"batch_size":13,"batches":1,"currentBatch":1}}

This has been fixed with another PR. Thanks!


gnome-tour: init at 2020-02-15

Motivation for this change
It was talked that gnome might recommend this as a default application for first run.
https://gitlab.gnome.org/GNOME/gnome-build-meta/issues/243, they will likely link it into gnome-initial-setup.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
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 nixpkgs-review --run "nixpkgs-review wip"
[ ] 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)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Does it even work without gtk 4?

Does it even work without gtk 4?

Yes, on master they switched to gtk3 just for the purpose so it can be distributed in distro's easily.

Didn't realize that was still a draft.

Hopefully today this will get its first release https://gitlab.gnome.org/GNOME/gnome-build-meta/-/merge_requests/514#note_727038, and I believe we should add it for 3.36.

Updated to release.


EzGraver on Raspberry Pi 3 running raspbian

Hi all,
I have compiled and installed EzGraver on my Raspberry Pi 3 with raspian (same instructions as for Ubuntu) and am just one step away from engraving.
I have been able to connect to my DK-8-KZ and do all the motions: up, down, left, right, center. I can also upload an image successfully, but when I press the Start button it only does a "preview" round and then seems to send just 1 byte (I see a quick flare of more intense light at the beginning of the drawing) and stops.
Any idea of what can be happening?
Regards,
Lucas

EzGraver doesn't yet work with new (2017) version 3 lasers. There is something wrong with the image transfer.

I've read about this and gave it a try on my raspberry pi because it worked perfectly on my Fedora 26 laptop. I was hoping to get the insight of all the other people who have been using the software but this can wait until the main issues are fixed.
Thanks

Hi folks.  I hope I am not hijacking this thread, but I wanted to share my experience on Raspberry Pi 3.
Using the unix_cli_fixes branch, I was able to use the EzGraverCli command to start a print.
I tried pausing and reseting the in-progress print but it didn't work the first time; not sure why as I saw the expected messages and didnt see any error messages.
But on the second attempt the Neje engraver correct processed the start, pause, and reset commands!
Thanks again for the great work!

Thanks for sharing your experience with us.
Indeed, it is strange that your first try only worked partially. Although, I have to tell that seeing messages is not a reliable source about how things are working. As long you see no error messages, it basically means the communication with the device/engraver is working. However, there is no feedback telling that the instruction sent has been recognized and processed. One exception is the progress output when engraving an image.
Glad you like it and thanks a lot for your feedback.

Yep, no problem.  And yes I really like being able to control the Neje engraver from Linux!


Can Kite coexist with YCM/Jedi?

So I use vim on Ubuntu and it was convenient for me to use YCM plugin to edit C/Python files before, but what should i do if i wanna install Kite for Python autocomplete? Can they both exist? Or should I remove YCM or configure some features?

They can co-exist, but Kite will automatically disable YCM when you open a .py buffer due to underlying incompatibilities.


Prefer require_relative for internal requires

I'd like to use require_relative for internal requires now that ruby 1.8 support has been dropped. It should be faster and it makes it more clear that the file being required is in the same library.
Also, it's nice to do this for bundler (which vendors a copy of thor) because given the LOAD_PATH manipulation bundler does, and that a copy of bundler is now always present in the LOAD_PATH by default in every installation of ruby, require_relative is safer because we are sure we never end up requiring a different copy of bundler than the one we're currently running.

Thank you so much @rafaelfranca :)


Recursively create the node['openvpn']['key_dir']

Useful when wanting to put the Key on a seperate partition (e.g. in AWS where the root volume isn't encrypted but another mount point is).
Without recursive true it is necessary to create parent directories to the key_dir path seperately, so it seems reasonable to recursively create them (equiv of mkdir -p)

@itwasntandy thanks!