zephyrCommon: Implement analogWrite()

The 'pwms' node under the 'zephyr,user' defines available PWM channels.
The 'pwm-pins' defines the mapping of PWM channels to pin numbers.
API looks up the 'pwm-pins' when querying the PWM channel by digital pin number.
So it should be in the same order as 'pwms' node.
PWM channels should configure and tied to the output pins.
The period property of the PWM channel is used as resolution as PWM.
For original Arduino API compatibility, it should be 255.
The period property and API argument determines the duty ratio.

I verified this PR with mkrzero and nano_33_ble.
Some pins of the mkrzero seem not to work correctly.
Only verified configuration only enableed.

I thought I would have rebase access, but seems like I can't squash commits, please can you squash my last commit ?

I thought I would have rebase access, but seems like I can't squash commits, please can you squash my last commit in previous one? Also rebase on top of main please. Thank you

squash and update done.


Add presenation to Documentation

after the presentation (3.15.22) add it to Documentation folder

added PDF of final presentation


chore: Add Mailgun send email action

Add GitHub Action to send email using mailgun.js npm module.
Update nightly workflow to use the send email action.
Add a failing integration test to trigger the email notification workflow (this test will be removed once we confirm the email notifications be working as expected).

Duplicate of #


Convert Last Commit Date to "Time Ago" Format

Each theme displays the date of its last commit using a standard date format of "last commit Oct 19, 2019". It would be better if it used a "time ago" format ie "last commit 2 hours ago"

The exact formatting and details of the time ago format can be whatever makes sense.
We'd prefer not use javascript which modifies the DOM in the client, as it will significantly impact performance. It would be great the date format was converted at build using standard Hugo functionality.

I can work on this if you'd like.

That would be awesome!

Are you sure you want the dates converted at build time? This would mean that the last commit time shown would then be based on the difference between the repo's last commit time and the time the site was last built. Unless the site rebuilds every hour the last commit times will be stale.

You're right, that wouldn't work.
I suppose the only solution is client side JS? I had an implementation using JS but it slowed the site down and you could see the text change from "Oct 9,2019" to "3 Hours ago" after the site had loaded. Maybe you could implement something more performant?

Let me think on/experiment with it and see if I can come up with something that has acceptable performance.

I thought about this further and come to the realization that any form of last commit date shown will be stale, even if calculated on the front-end, because as it is now, the repo's last commit date is also being retrieved at build time.
To recap, if the conversion is done at build time the last commit value is stale because it is based on the difference between build time and the repo's last commit time; while if conversion is done in the front-end the last commit time will become stale over time because the repo's last commit time was captured at build time and there may have been more recent commits since the site was built—either way the last commit values are only accurate when the build is fresh and grow stale as time marches forward.
<tangent>
Another thing of note that I came across while looking into this is that the value being used to report the last commit is the "pushed_at" key of the github repo object. This time value is representative of the time a commit was made to any branch of the repo, not just the master branch. So this is not reflective of recency of the master branch that users would probably be looking for. I think the correct value to use would be the date of the last commit of the master branch.
Using the repo hauke96/hugo-theme-hamburg as an example:

Retrieving the repo's object and looking at the pushed_at key we see (at the time of this writing): "2019-08-23T13:18:15Z"
Retrieving the master branch's last commit object and looking at the commit.author.date key we see (at the time of this writing): "2019-08-19T23:59:44Z"
Retrieving the dev branch's last commit object and looking at the commit.author.date key we see (at the time of this writing): "2019-08-23T13:18:14Z"

Given the above, the value used as the last commit ("2019-08-23T13:18:15Z") is really representative of the dev branch, not the master branch. If the last commit is supposed to representative of repo activity that might be fine, it depends on what is meant to be conveyed and may be worthy of clarification on the front-end (e.g. maybe "last activity" is better instead of "last commit" which I think might be thought of as "last commit on master").
</tangent>
Back to the issue at hand...
The naive approach would be to retrieve and update the last commit time on the front-end. This would be way too slow and there would be rate limit issues with the GitHub API (not to mention it's bad practice to bang away at an external API per page request when the results could be cached).
The only reasonable way I can think of to keep this data fresh (but still not real-time) is to have a server-side process which retrieves and stores the needed data at intervals (daily/hourly/etc.). This could probably be as simple as a JavaScript file generated at intervals that resides server side that contains a single JSON object with pairs of repo name (key) and time ago (value), where the time ago is calculated as of the refresh time (this file generation would be similar to what the site's existing generate-github.js script is doing currently pre-build). Then that single JSON file could be brought in to the page via a script tag and some JS added to perform the update of the last commit divs. I think that would make it the fastest it could be.
I should also note, that depending on how many themes this site grows to have the single JSON file approach may not scale.
I'm not sure if you want or need the added complexity of the above solution though, so I'll await your thoughts on this.

Thank you for such a well researched answer.
I am OK with the staleness of the last_commit date we retrieve from Github. It's adequate for people to know that the Repo has been updated in the last few days, or months or years. Anything that has been updated in the last month is still indicative of a freshly maintained repo, anything that is a few months or even years old is something to be concerned about.
It would be best if we could get the last_commit from only the master branch. You are correct, this is intended to represent "last commit on master".

We are OK with a slightly stale last_commit generated at build time.
Get the correct value for last_commit from the Github API in the generate-github.js script. It should be the "last commit on master"
Still implement a solution that shows the last_commit as time ago format but the time agos current date used in the comparison must be a realtime timestamp. After resisting the inevitable it seems like client-side javascript is the only solution here.

Probably in scripts.js we should have one iteration over all themes where any DOM manipulation is done.
document.querySelectorAll(".theme").forEach((theme) => {
 // find relevant DOM node
// apply date library formating
// do other DOM manipulations in the future.
})

And then see which library is most performant out of moment.js, datefns and timeago.js

Another thing to consider is we do actually allow theme submissions on other branches than master. So if the submitted branch is develop I wonder if the last_commit should be taken from that branch.

Would you like me to open a separate issue to address where the last commit is sourced from, or just keep it part of this issue? Whether it's separate or kept here I can work on that too.
Based on the notes you left above, I'll continue to work on this and probably have a PR ready for review sometime early next week.

I think a seperate issue makes sense.

Just wanted to drop an update to say I haven't had time this week to work on this, but have time set aside on Sunday and expect to drop a PR for review sometime Sunday night.

@JugglerX I've been playing with this and have a version that is using jQuery and the timeago library working. I've been thinking though to minimize the amount of updates made on the page we could specify a cut-off amount of time passed since the last commit to consider "probably inactive" and at build time see if the last commit is beyond that cut-off time and just use something like "no recent activity".
For example, any repo with a last commit date over 3 months ago, would get "no recent activity" applied at build time. The rest would get the time ago formatting applied.
What do you think of that strategy and if you like it what would you want to use for the cut-off period?

You can give what I had so far a review. A few notes:

I saw that the jQuery and timeago libraries were already in themes/jamstackthemes/assests/js/libs so I just pulled them in via the baseof layout template. Let me know if that should be done a different way.
I added the time ago format under the last commit date itself within parenthesis that are initially set to "(...)" before being updated. This looked less jarring then actually replacing the date. If you want to see it where it's just replacing the date you can swap this into themes/jamstackthemes/layouts/partials/last-commit.html:

<div class="last-commit">
  last commit <time class="timeago" datetime="{{ dateFormat "2006-01-02T15:04:05Z07:00" .last_commit }}">{{ dateFormat "Jan 2, 2006" .last_commit }}</time>
</div>

If you rather it just replace the date or have any other feedback that requires me to resubmit the PR just let me know.

@rgroves I think your solution is good given the constraints. I like how you have added the time ago as a seperate line ( your right it feels less jarring ) - I'll probably tweak the design of this a bit. I'll go ahead and close this issue and merge the PR.
I also think your suggestion to apply a cutoff to older themes has merit and could be used more broadly to limit the number of actual themes loaded on the page. I had actually started working on a script for this in scrub-themes.js but its pretty broken right now.
Basically this script should iterate through the data/themes.json and compare the last commit date against todays time. If it is older then X then we add a new key stale: true
We can then use this property in the hugo templates to a) modify the date so it is not effected by the timeago.js b) set a class on the theme and shade back the opacity or put a grey border on it or something and add a badge that says "stale" c) not render the themes at all.
I'm considering create a new page called "all themes" where stale themes (as above) and other themes with low quality indicators will still be shown. The homepage will remain and will be "latest themes" or "popular themes" and have a smaller selection of higher quality themes (based on metrics not curation)


⚠ Bofrost.es has degraded performance

In abc9063, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1553 ms

Resolved: Bofrost.es performance has improved in b9cdede after 27 minutes.


UI design - Forecasting data page

@LittleLittleCloud  could you help to provide the validate steps for this issue?


Reset cache

Hi,
In my database design, I have a users table storing the users name and email and this table is filtered based on tenant id. Each user can only see data that is assigned to the same tenant id. I have another table which maps these tenant id's to an identifier. This identifier is used to authenticate the user upon login. The login function gets the email of the user, matches the email in the users table, gets the tenant id, & matches this tenant id to the identifiers table. However, when I update the tenant id of a specific  user in the users table to point to a different tenant id, and I close the browser to log back in, my function is still grabbing the old identifier? However, in the database it shows that the tenant id column is updated to the new tenant id.
I'm wondering if asp.net core or the finbuckle framework caches the tenant id somewhere and if its possible to clear this cache?

hi @sookyee
The Finbuckle EF Core support specifically tries to avoid caching for this reason, but it's possible tat it could be happening somewhere. Can you post what your db context and your startup class look like and I can take a look for you?

Depending on what "log back in" means, it could just be the authentication ticket that still contains the old claims.
If so you need to update the Security Stamp, when you change TenantId.

@Nisden makes a good point. If you are storing the tenant as part of the auth ticket in the cookie it probably isn’t rereading from the database. Look into extending the security stamp validation in Identity (are you using Identity or just authentication by itself?)

Hi sorry for the late reply. Yes @Nisden  was right the application was reading from the old auth ticket. Thanks everyone for the help!


Add ImplicitExpect cop

Closes #194

@andyw8 and @bquorning could you review this cop?

As I understand it (from reading http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#new-api-for-one-liners-isexpected), setting config.syntax = :expect has no influence on the support for it { should ... } or it { is_expected.to ... } – since this particular should is not a monkey patch on Object. Is that correct?

@bquorning correct!

:+1:


Add pulpcore 3.49 pipelines

Nothing to see here

As always, I don't have merge permissions, and thats amazing


Enable Aarch CRIU ubu22 machines

Enable Aarch CRIU ubu22 machines
Issue: Runtimes/backlog_1487

Test Link:
hyc_grinder 44462: All aarch combo triggered successfully (the failed test is related to another issue)


DeveloperError When remove a primitive from PrimitiveCollection

I have wrote a function that will caused specific primitive removed from a PrimitiveCollection when the camera moved. But It will cause a strange error  sometimes(seems this error always happens when I zoom in or zoom out the camera...).
This is how a use the remove function of PrimitiveCollection:
   var a = primitives.get(i);
   primitives.remove(a);

And I've tried to ignore the error by "try ... catch ..." but it doesn't work. And I also tried to prevent repetitive destroy by the sentence below(but it doesn't work as well):
if(a.hasOwnProperty("isDestroyed"))
  {
      continue;
  }

I' m using Cesium 1.30 and here is the strange error:
An error occurred while rendering. Rendering has stopped.
DeveloperError: This object was destroyed, i.e., destroy() was called.
Error
    at new DeveloperError (http://localhost:8080/cesium/Build/CesiumUnminified/Cesium.js:605:19)
    at Model.throwOnDestroyed (http://localhost:8080/cesium/Build/CesiumUnminified/Cesium.js:30221:31)
    at PrimitiveCollection.update (http://localhost:8080/cesium/Build/CesiumUnminified/Cesium.js:185696:27)
    at updatePrimitives (http://localhost:8080/cesium/Build/CesiumUnminified/Cesium.js:194356:27)
    at executeCommandsInViewport (http://localhost:8080/cesium/Build/CesiumUnminified/Cesium.js:194222:13)
    at updateAndExecuteCommands (http://localhost:8080/cesium/Build/CesiumUnminified/Cesium.js:194085:17)
    at render (http://localhost:8080/cesium/Build/CesiumUnminified/Cesium.js:194575:9)
    at Scene.render (http://localhost:8080/cesium/Build/CesiumUnminified/Cesium.js:194613:13)
    at CesiumWidget.render (http://localhost:8080/cesium/Build/CesiumUnminified/Cesium.js:208408:25)
    at render (http://localhost:8080/cesium/Build/CesiumUnminified/Cesium.js:207804:32)

Hello @micromiss, can you please provide a more complete code sample that reproduces the crash in Sandcastle?  Thanks

Thanks for your reply !
Um... I'm not quite sure that you can reproduce the crash in Sandcastle since that there is a complicated logic to control the creation and destroy of the primitives in my project. Um... So I'm try to show some important part here.
This function will be executed when users move their cameras. It will remove any primitives (from .gltf)  which are too far away from the camera.
               var primitives = viewer.scene.primitives;                 // Remove all the models which should not be rendered.                 for(var i=0;i<primitives.length;i++){                     var id = primitives.get(i).id;                     if(typeof (id)=="undefined" || typeof(id)!="string" ||id.indexOf('ignore')==0 )continue;                     // If this primitive should not be rendered, then remove it.                     var isfound = models_priority.find(id,maxRenderNum);                     if (isfound == false) {                         primitives.remove(primitives.get(i));                     }                 }

Closing this since we haven't gotten a good test case to reproduce the crash. @micromiss if you're still experiencing this issue feel free to reopen

I have wrote a function that will caused specific primitive removed from a PrimitiveCollection when the camera moved. But It will cause a strange error sometimes(seems this error always happens when I zoom in or zoom out the camera...).
This is how a use the remove function of PrimitiveCollection:
   var a = primitives.get(i);
   primitives.remove(a);

And I've tried to ignore the error by "try ... catch ..." but it doesn't work. And I also tried to prevent repetitive destroy by the sentence below(but it doesn't work as well):
if(a.hasOwnProperty("isDestroyed"))
  {
      continue;
  }

I' m using Cesium 1.30 and here is the strange error:
An error occurred while rendering. Rendering has stopped.
DeveloperError: This object was destroyed, i.e., destroy() was called.
Error
    at new DeveloperError (http://localhost:8080/cesium/Build/CesiumUnminified/Cesium.js:605:19)
    at Model.throwOnDestroyed (http://localhost:8080/cesium/Build/CesiumUnminified/Cesium.js:30221:31)
    at PrimitiveCollection.update (http://localhost:8080/cesium/Build/CesiumUnminified/Cesium.js:185696:27)
    at updatePrimitives (http://localhost:8080/cesium/Build/CesiumUnminified/Cesium.js:194356:27)
    at executeCommandsInViewport (http://localhost:8080/cesium/Build/CesiumUnminified/Cesium.js:194222:13)
    at updateAndExecuteCommands (http://localhost:8080/cesium/Build/CesiumUnminified/Cesium.js:194085:17)
    at render (http://localhost:8080/cesium/Build/CesiumUnminified/Cesium.js:194575:9)
    at Scene.render (http://localhost:8080/cesium/Build/CesiumUnminified/Cesium.js:194613:13)
    at CesiumWidget.render (http://localhost:8080/cesium/Build/CesiumUnminified/Cesium.js:208408:25)
    at render (http://localhost:8080/cesium/Build/CesiumUnminified/Cesium.js:207804:32)

getting same error in cesium version 1.113. can anyone suggest how to resolve this


activate batchsplit only for EPUB-200

I would suggest to activate batchsplit only for EPUB-200, I guess normal epub don't need to be splitted.
Originally posted by @celogeek in https://github.com/darodi/kcc/issues/22#issuecomment-1364108794
Originally posted by @celogeek in https://github.com/darodi/kcc/issues/21#issuecomment-1364111286

@celogeek
done


Setting "code" query parameter breaks auth0 state

If you're logged in to my site, and then add "?code=blah" to the href, auth0 now thinks I'm not logged in. I realize this has something to do with the oauth redirect flow, but the problem is that I need to use that query parameter (stripe uses it for their oauth flow: https://stripe.com/docs/connect/collect-then-transfer-guide).
Proposed change: if code param fails to change the auth0 state, auth0-react should fall back on whatever it would have the state be if that code were excluded (instead of just saying there's no user).

Hi @asktree - am not sure how this library should work when there are multiple oauth providers on the same page, let me investigate and get back to you

We have similar issue with LInkedIn authorization. when client provide us access to their linkedIn profile inside our app.
Can we stick auth0 code query parameter evaluation to auth0 callback URL explicitly somehow?

Hi @dutsik @asktree
I have a branch (https://github.com/auth0/auth0-react/compare/skip-redirect-callback) where I've added the config option skipRedirectCallback, if true this will ignore the code/state parameters. You can apply this setting to be true on callback routes for other OAuth providers where you know the SDK doesn't need to handle the callback params. Or conversely, you can set it to true, unless you know the route to be the auth0 callback path, eg
<Auth0Provider
  domain={domain}
  clientId={clientId}
  redirectUri={`${window.location.origin}/auth0-callback`}
  skipRedirectCallback={window.location.pathname !== '/auth0-callback'}>

Can you try it out and let me know if it meets your needs?

@adamjmcgrath This previous merged address an issue is currently happening in my application. Is there a timeline for the next package update?

Hey @martinrojas - I am waiting on an upstream dependency before I do another release - should be a 1 week - 2 max

Hey @martinrojas - this is released as 1.1.0

@adamjmcgrath Thank you

@adamjmcgrath did you forget to include the skipRedirectCallback option to your merge? The LinkedIn Callback using both state and code query params. We need the option to expicilty skip the auth0 callback

Hi @dutsik - the PR i merged was https://github.com/auth0/auth0-react/pull/107 which just mitigates the issue by requiring the state and code param to be in the url before handling the callback.
I didn't hear any feedback about the https://github.com/auth0/auth0-react/compare/skip-redirect-callback branch - so I didn't action it.
If you're looking for some more help around that, you can reopen this issue. Could you also share a minimal test case app, because I'd like to investigate some other solutions in addition to the skipRedirectCallback option

Hi @adamjmcgrath, in our case we want to add OAuth-flow from LinkedIn which also uses code and state in callback. I think #107 checks for this both params to decide its the Auth0-callback, which is not the case here :(
Adding skipRedirectCallback would be perfect in our case as well. Not sure how else to solve it. Could you maybe add it additionally and optionally?

@stevehobbsdev Good idea! But we don't use social logins though. We need to connect a LinkedIn account as a team setting to publish articles to LinkedIn. It's not related to the login flow :(

Was running into this issue when using stripes oauth work flow for connected accounts and the skipRedirectCallback option that @adamjmcgrath added solved this problem. Does it seem like this is going to be the solution in future releases as well?

Hi @kcarra

Does it seem like this is going to be the solution in future releases as well?

Yep - that's the plan, do you have any feedback on it?

@adamjmcgrath no specific feedback from me, it has solved my issues with the stripe oauth workflow so I'm very happy with your changes!

thx for this thread!


Adding support for fetching multireddit data

https://github.com/sahilm/reddit.js/issues/9

Thanks for logging this. I think this project is past its prime. I'm archiving this project. Feel free to fork though :)


Fix chapter number for Check if a given string is a isomorphic

Fix chapter number for Check if a given string is a isomorphic

Stale ticket, will close for now and update accordingly.


Sigma 5.0.0 Beta 22 Fails To Launch

Using the latest build of SigmaRemap, when launching the client, upon selecting a choice in the Classic vs Jello selector, the game proceeds to instantly close. Shows the "Saving world" screen.

crash-2024-10-18_09.57.04-client.txt
I've attached my crash report.

try using sklauncher and if the issue persist try adding on jvm argument  -noverify

try using sklauncher and if the issue persist try adding on jvm argument -noverify

sklauncher worked idk if it was gonna work without -noverify but it worked with -noverifiy


Recent change SimpleFunctionRegistry/fluxifyInputIfNecessary breaks routing Messages with array payloads

Describe the bug
I noticed this side effect from the stream-applications process, router-sink function.  When you consider a function signature of Function<Message<?>, Message<List<Object>>>, the message payload does not get deserialized as a whole, but instead broken into several messages.  Prior to this change, there were no issues.
From tracing through, the new section of code that causes this is here:
https://github.com/spring-cloud/spring-cloud-function/blob/90cec8e350c5e1cd5ced9c3fec3c80486c18dc65/spring-cloud-function-context/src/main/java/org/springframework/cloud/function/context/catalog/SimpleFunctionRegistry.java#L762-L773
Noteworthy is that enqueued messages are converted to byte[] arrays, but are set with contentType=application/json.

 If we convert it to Message<List<String>> you will end up with ClassCastException, since Function does not take List as input.
Did I miss something?

May be if input type is unknown (e.g., Function<Object,...> or Function<Message<?>, ...> or Function<byte[], ...> etc), we should not go through that fluxifying logic and treat input s is?

I think i see the issue now. We just need to be a bit more clever as to what we do and when we do it . For example

If function input is typeless (Message<?>, byte[], Object), then do nothing and pass input as is
If function input is Collection, then pre-convert input to Collection of messages (as what was done already but unconditionally)
If function input is Message<Collection>, then pre-convert input to Message>

I don't have the context of why the original change was made, but what you wrote sounds correct, and would produce the previous (desired) behaviour.


AndroidTest build failed

Hi, when I run the Android Test, I got some error issues and build failed.

Error output

What went wrong:
Execution failed for task ':app:preDebugAndroidTestBuild'.
Conflict with dependency 'org.bouncycastle:bcprov-jdk15on' in project ':app'.
Resolved versions for app (1.50) and test app (1.52) differ.
See https://d.android.com/r/tools/test-apk-dependency-conflicts.html for details.

Waring

warning: Supported source version 'RELEASE_7' from annotation processor
'com.manuege.boxfit_processor.processor.BoxfitProcessor' less than -source '1.8'

Thanks!

Hi!
Despite the warning, I am not sure it is a Boxfit issue. The warning is just a warning, shouldn't bring any error.
Could you check the steps from here (https://stackoverflow.com/a/28999596/4912616) and confirm that this is a Boxfit issue?
Thanks :)

I found out why the build failed.
androidTestImplementation 'org.robolectric:robolectric:3.8'

It leads to conflict.


Fix api route for loading cart on a session

When a user without a 'Pending' order is logged in, they cannot add an item to their cart. We need to change the middleware in server/api.js that loads cart on the session (from Order.findOne to Order.findOrCreate)


[NEXT-37386] Add generic CartEvent interface

1. Why is this change necessary?
It's probably not strictly necessary, more like a nice to have for (downstream) developers, allowing to handle CartEvents more generically.
Example (simplified):
class CartSubscriber implements EventSubscriberInterface
{
    public function __construct(
        private SomeHandler $handler
    ) {
    }

    public static function getSubscribedEvents()
    {
        return [
            AfterLineItemAddedEvent::class => ['onAfterLineItemAdded', -9000],
            AfterLineItemRemovedEvent::class => ['onAfterLineItemRemoved', -9000],
            AfterLineItemQuantityChangedEvent::class => ['onAfterLineItemQuantityChanged', -9000],
        ];
    }

    public function onAfterLineItemAdded(AfterLineItemAddedEvent $event): void
    {
        $this->handler->handle($event->getCart());
    }
    public function onAfterLineItemRemoved(AfterLineItemRemovedEvent $event): void
    {
        $this->handler->handle($event->getCart());
    }
    public function onAfterLineItemQuantityChanged(AfterLineItemChangedEvent $event): void
    {
        $this->handler->handle($event->getCart());
    }

2. What does this change do, exactly?
Instead of duplicating code (guard, extract data & delegating to a handler usually takes more than one line) for all Events specifically with similar interfaces, subscriptions can be done independently from the implementation easily by depending on a shared interface:
For above example this requires a missing interface for now called CartEvent which is implemented (already) by all relevant events. (This is similar to CartAware but that is marked internal).
(Alternatively we are forced to use type unions for this, which may become cumbersome because of the long event names.)
Refactored Example:
class CartSubscriber implements EventSubscriberInterface
{
    public function __construct(
        private SomeHandler $handler
    ) {
    }

    public static function getSubscribedEvents()
    {
        return [
            AfterLineItemAddedEvent::class => ['onCartChanged', -9000],
            AfterLineItemRemovedEvent::class => ['onCartChanged', -9000],
            AfterLineItemQuantityChangedEvent::class => ['onCartChanged', -9000],
        ];
    }

    public function onCartChanged(CartEvent $event): void
    {
        $this->handler->handle($event->getCart());
    }

3. Describe each step to reproduce the issue or behaviour.
Please see the code example above.
4. Please link to the relevant issues (if any).
None yet, this is just a draft/idea I want to suggest to help to reduce inconsistency, please check out the inlined TODO? comments and feel free to take over, as (I don't know how far you want to go with this and) I can give this only very low priority.
5. Checklist

[x] I have rebased my changes to remove merge conflicts
[x] I have not written additional tests, as no new functionality was added, this is a refactoring change
[x] I have created a changelog file with all necessary information about my changes
[x] I have written or adjusted the documentation according to my changes: not really - mainly deprecations
[x] This change has comments for package types, values, functions, and non-obvious lines of code - even a TODO 6.7 due to BC :/
[x] I have read the contribution requirements and fulfil them.

Oh cool passed triage, does that mean "we want it"? Nice, how much of it? Shall I remove the TODO?s for a minimal improvement or can you please advice on how to continue here? (@AydinHassan)
Should this include a refactor and additional tests?

Hi @JustusNBB ,
Thanks for the PR. You are welcome to implement the change you suggested in Shopware\Core\Checkout\Cart\Event\CartChangedEvent.
Please also add a changelog file :)
Don't worry about the issue number. As soon as this PR is imported, an issue number will be assigned to it.

Thank you. I'll start prepping the PR. If internal review is successful, it will be merged soon! 😄

Thank you. I'll start prepping the PR. If internal review is successful, it will be merged soon! 😄

Nice! I've squashed. All done from my side :)

Your PR has (finally) been merged! Thanks for your contribution 💙

`public function updateLineItem(Cart $cart, array $data, LineItem $lineItem, SalesChannelContext $context): void
{
if (!isset($data['type'])) {
$data['type'] = $lineItem->getType();
}
    $this->validate($data);

    $handler = $this->getHandler($data['type'] ?? '');

    if (isset($data['quantity'])) {
        $lineItem->setQuantity($data['quantity']);

        $this->eventDispatcher->dispatch(new BeforeLineItemQuantityChangedEvent($lineItem, $cart, $context));
    }

    $lineItem->markModified();

    $handler->update($lineItem, $data, $context);
}`

 `BeforeLineItemQuantityChangedEvent` should be triggered before quantity is set?


[feat] Opening access to tauri::test::MockRuntime to enable windowless fuzzing of Tauri applications

Describe the problem
Hello everyone,
I've been working on a framework to fuzz Tauri applications.
The goal is to be able to detect vulnerabilities that could exist in an application backend code.
Currently I'm fuzzing the Tauri commands of applications for potential exploits due to wrong input validation or
To improve performance of fuzzing I have been using Tauri MockRuntime to run a Tauri application without a webview.
For this to be possible I need to be able to access and use the MockRuntime from external code.
Describe the solution you'd like
I need to open accessibility to Tauri MockRuntime.
I also need few helper functions to facilitate the fuzzing process.
All these code can be hidden behind a fuzz feature.
Alternatives considered
Another possibility is to write another completely separated runtime rather than using the MockRuntime.
This may happen in the future if the fuzzer requires more features that what is currently provided by the MockRuntime.
Additional context
I already have a working forked version of Tauri on a private repo.
I'm writing this issue to ask for permissions and recommendations for a PR that would be accessible on Tauri official repo.

MocRuntime is already exported in the test module https://docs.rs/tauri/latest/tauri/test/struct.MockRuntime.html (needs test feature flag), am I missing something?

I also need few helper functions to facilitate the fuzzing process.
I already have a working forked version of Tauri on a private repo.
I'm writing this issue to ask for permissions and recommendations for a PR that would be accessible on Tauri official repo.

This sounds a bit vague, what helper functions do you need? do you already have the APIs implemented? if so, just open a PR and we can discuss it there.


Merge: New project form with new client submission working

Implemented semi-reactive forms I think? There is definitely more to do, but these are a little more powerful than what I had.

This should be fine to merge. Take a look and see if it looks like I broke anything crucial.


Load token from AsyncStorage in every auth api call

Does it seem api.js load token in every auth API call, isn't it better load token one's app lunch and read it from the store when it is needed?

you mean managin' it in redux ? I was waiting for final store structure to do it
if you got any other solution please provide us
thanks


Enable sub-resources patch on incremental SyntheticServiceEntry MCP update

Describe the feature request
Refer to this merge, Pilot has supported incremental updates for SyntheticServiceEntry. However this update only works incrementally for SyntheticServiceEntry resource itself only, not for sub-resources like endpoints within it. We would like to update(add/delete) the endpoints incrementally, not replace the whole enpoints with those passed in.
Describe alternatives you've considered
None at present
Additional context
With large scale clusters, the number of endpoints are 1000+ and updated frequently. By enabling incremental on endpoints, we can significantly increase the performance of Pilot and be more responsive.

Can you have multiple SSE for the same service and shard the endpoints?

@howardjohn  Endpoints shard just split the change but do not do it incrementally. I must figure out how many shards I need according to the scale of the cluster. The problem is every cluster is different, some get 1000 endpoints, some get 5000 and the shard's configuration is static. Besides, the endpoint shards is originally designed to have different sidecars serving the same cluster getting different endpoints. I don't think it quite fits the schema.
I also feel it weird and confusing if incremental update for SyntheticServiceEntry works only for ServiceEntry discarding the endpoints within. If Pilot and Envoy both supported the endpoints patching, the performance will boost incredibly for large clusters.

@seflerZ I completely agree that we want full incremental endpoint updates. I do think the focus should be on Envoy though, because you generally have 1000x as many Envoys as Pilot so the performance improvements there are 1000x more effective, not to mention the EDS response is much larger than MCP so it's more expensive as well

MCP is eventually going to be replaced with XDS, so I"m not sure we want to spend too many cycles refactoring the incremental protocol there. I'm not sure if the incremental XDS work addresses this.
In the meantime, would it help to move out endpoints into a separate structure that can be versioned independently from SE?

One way to optimize what we currently have might be to introduce some sort of annotation keys for endpoints added, deleted and updated. This way we can apply those endpoints incrementally in Pilot, although not sure how the performance of the pilot or the protocol would look like by having to include a large list of endpoint entries in the annotations. This way we could still update "a service" individually via EDS and if endpoints are sharded more logically(e.g by hostName, vips etc) the performance might not look that terrible. Furthermore, it may be beneficial to run one Pilot per cluster if those services are running in different clusters?? Having said that as others suggested too the ultimate bottleneck would still exist at envoy since envoy still does not support EDS patch for endpoint subsets yet.

I am not sure what the aversion to sharding the endpoints is? Am I missing something where this will not work? This is exactly what Kubernetes has done to solve the same problem with EndpointSlice. We should just add native support to pilot for EndpointSlice. I have a WIP doing this in https://github.com/istio/istio/pull/18394, but would need to send it over MCP as well (this is just reading from k8s).

@nmittler Are you sure the MCP is a temporary solution talking to xDS? If it is, what about the compability and works we have done? Although as I know MCP is originally derived from xDS, still there're differences. We must be careful.
Anyway, no matter what the protocol used for communitcation, I think incremental on every resource is still needed, especially for thoese changing frequently like endpoints.
@Nino-K I agree with you on implementing incremental endpoints updated based by current work. As for details and performance impacts, I'll try to investigate and figure out. Deploying a Pilot per cluster is the solution we've tried and found it nerely impossible due to high cost and difficulties on maintaince.
@howardjohn Thank you for your support. As the K8s doc shows, the Endpoint Slices feature is need in alpha state in K8s 1.16. As far as I know, the Endpoint Slices is a scalable alternative to Endpoints as the cluster goes big. EndPoint Slices allow developers to manage endpoints indepently despite of services. That is to say, Endpoints Slices can be assgined to multiple resoureces. Because Endpoint Slices is limited to 100 endpoints as most, deploying them to services leds endpoins changes to units with 100 endpoints at most. It did solved the incremental endpoints update problem some how because with 1000 endpoints only 100 or less will be sent when state changes, but this is not a perfect solution as still more data was sent with only one changed.

In the kubernetes controller, Endpointslice will be split at 100 endpoints, but for your case you are the controller, so you can decide yourself how to create the endpoint slices, and could include one endpoint per Endpointslice if desired.
While it's alpha in 1.16 kubernetes you can still send it over mcp even on older k8s where it doesn't exist in mcp (once we add support for mcp) since they are not persisted to the k8s cluster.

@howardjohn Yes, the Endpoint Slice IS a solution and worth looking into. The only thing we need to worry is whether it generates too many configs if every slice is set to 1 endpoint.

The only thing we need to worry is whether it generates too many configs if every slice is set to 1 endpoint.

Endpointslice is not expected to be used like this way. IIRC. 100 is by default. I agree with you the right way is to do endpoints merging.

Close this issue since SSE resources and controller has been removed refer to this issue

Close this issue since SSE resources and controller has been removed refer to this issue


no color on .html

It is difficult to write the program and the colors do not appear
Version: 1.74.3
Commit: 97dec172d3256f8ca4bfb2143f3f76b503ca0534
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
Embedder: codespaces

Can you set the cursor in the file, and run the command Developer: Inspect Editor Tokens and Scope. This will show a hover. If you can make a screenshot, that could help.

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


Email client support for modern authentication

Exchange recently announced that it will retire basic authentication for legacy protocols.
https://techcommunity.microsoft.com/t5/Exchange-Team-Blog/Improving-Security-Together/ba-p/805892
In this document, SAML-based SSO only supports clients with basic auth.  Is this document not up-to-date or would this mean that SAML-based federated tenant will have to use latest Outlook w/basic auth or Outlook on the web?  It would be helpful to understand the potential change that maybe applicable to this topic.

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

ID: e45e65a0-74ae-440c-0064-2a0b1c6bb0d9
Version Independent ID: a50f705d-ab3f-ca2b-aedd-9ab37bea3d3f
Content: Azure AD Connect: Use a SAML 2.0 Identity Provider for Single Sign On - Azure
Content Source: articles/active-directory/hybrid/how-to-connect-fed-saml-idp.md
Service: active-directory
Sub-service: hybrid
GitHub Login: @billmath
Microsoft Alias: billmath

@TKO77
Thanks for the feedback! We are looking into this and will get back to you shortly.

This does seem to be what the announcement indicates, but I agree that it's unclear. I've reached out to the product team and Exchange PM to confirm about this and will update you as soon as I have an answer.

The Exchange PM says that you can use federation with older versions, but he's uncertain whether basic auth is required for SAML-based SSO. If it is required then I guess you would not be able to use older versions of Outlook. I haven't seen too many cases of people using SAML SSO for Office though. Is that what your setup is?
I've also reached out to some folks on the Identity team to check whether this needs to be updated.
CC: @billmath

What came up to my mind was the third-party cloud-based SAML IdP such as OneLogin.

@TKO77
I got a new response from the PG that all modern authentication clients will work with SAML IdP. (They count as web-capable clients that can service a modern auth redirect.)
The documentation also says,
"Web-based clients such as Outlook Web Access and SharePoint Online", which implies modern auth.
So everything should work.

Great! thanks for verifying


Save viewed state

This PR starts the work to save viewed state for diffs.
As discussed in #50 the state is saved in workspaceState so that we don't have to change the file.
I've split the work in three stages; the first is done
stage 1 – save basic boolean state

[x] add toggleViewed message: filename -> viewedValue (bool for now)
[x] instrument webview to send these messages
[x] instrument extension to remember it in workspaceState
[x] instrument extension to give the information to the webview when updating the view
[x] instrument webview to reflect the remembered state on update

stage 2 – optional – make it work with multiple tabs open

[ ] instrument extension to notify all relevant webviews about state changes (when the same diff is opened multiple times)

stage 3 – work nicely with changes in the diff file

[ ] include hash of what was viewed in viewedValue
[ ] where webview reflects the remembered state, if the current state doesn't match the hash, don't toggle as viewed but show a message "changed since last viewed"
[ ] clear that message on toggle

"won't" requirements:

[ ] make it a configurable option (because the content of the file isn't changing so I think it's a natural expectation that the state can be saved)

What do you think @caponetto ? I'm particularly not sure about where you would like some of the new interfaces and classes to live.
The first commit is just localized suggested renaming for clarity where we deal with elements inside a diff view, not the diff container itself.

@jacekkopecky can you please rebase your branch with main?

Thank you @caponetto!
If you're happy with it for now, can you please look at the PR description and see if you like the rest of the plan? And would you like to merge first and have me continue in a next PR, or merge when the whole thing is done?

@jacekkopecky good job here! I'll merge this PR already.
Feel free to send others for stage 2 and stage 3, they are very welcome. :)


Installation docs missing

That bower statement seems incomplete :)
Dependencies are not shipped, so you'll have to do the following:

bower install

Also typo:
"This probably won't work on Internet Explorer has it uses HTML5 download feature and opens a data-uri as a fallback. "

If you do a bower install, it'll fetch dependencies and you'll be able to run example.html. Which you be use mostly for contribution.
Install instructions are written there: http://a----.github.io/highcharts-export-clientside/#installation
But you're right, that should be clarified.

Sorry to drop your pull request, I (finally) reworked the README page and I don't want to maintain both the README and the website, that's too error-prone.


fix documentation for comp_hets tool priority

Hopefully clarifies this question https://github.com/arq5x/gemini/issues/616#issuecomment-162112466

Excellent, thank you!


Use Static Loggers for Attribute Filters

Closes #1736
Try to launch cas-services context and I have logger error in RegisteredServiceRegexAttributeFilter.java

Should be ported back to 4.1 and forward to master.

Handled via https://github.com/apereo/cas/pull/1825


tests.yml: adjust rm command

If a bottle starts with a -, this could be interpreted as an option. Use -- to mark end of options.

Makes sense, thanks @fxcoudert!


[Event Hub] Ignore test/perf/track-1 when linting

Otherwise, we will get these errors because linted files must be included in the tsconfig.json file:
/home/dealmaha/repo/sdk/eventhub/event-hubs/test/perf/track-1/index.spec.ts
  0:0  error  Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: test/perf/track-1/index.spec.ts.
The file must be included in at least one of the projects provided

/home/dealmaha/repo/sdk/eventhub/event-hubs/test/perf/track-1/receive.spec.ts
  0:0  error  Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: test/perf/track-1/receive.spec.ts.
The file must be included in at least one of the projects provided

/home/dealmaha/repo/sdk/eventhub/event-hubs/test/perf/track-1/send.spec.ts
  0:0  error  Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: test/perf/track-1/send.spec.ts.
The file must be included in at least one of the projects provided

Interesting...
@HarshaNalluru, just curious.. why are these files ignored by tsconfig?

I found this pattern in service bus too:
dealmaha@dev:~/repo$ find sdk/ -path "*/test/perf/track-1/*" -name "*.ts";
sdk/servicebus/service-bus/test/perf/track-1/index.spec.ts
sdk/servicebus/service-bus/test/perf/track-1/sbBase.spec.ts
sdk/servicebus/service-bus/test/perf/track-1/sendBatch.spec.ts
sdk/eventhub/event-hubs/test/perf/track-1/index.spec.ts
sdk/eventhub/event-hubs/test/perf/track-1/receive.spec.ts
sdk/eventhub/event-hubs/test/perf/track-1/send.spec.ts

and it also exclude it in tsconfig.json so I think it makes sense to ignore this pattern globally.

why are these files ignored by tsconfig?

We don't want the track-1 files to be compiled since they are independent npm projects and would not change with our API changes to the package.
And we'd get rid of track-1 folders at some point.

@HarshaNalluru Sounds good

@HarshaNalluru, I see more places that have the same problem...

service-bus/test/perf-js-libs/service-bus-v1
service-bus/test/perf-js-libs/service-bus-v7
service-bus/test/perf-js-libs/rhea-promise
service-bus/test/stress

For now, I think we can go with adding a eslintrc.json file for Service Bus

Sounds good, thank you!


ODS-Component - Tabs

Tabs
Requirement
As a developer
I want to insert Tabs
So That I will get this ready to use component compatible with Orange design specifications and a11y requirements
DSM reference
DSM staging reference
General description
Component
For the component description please refer to the DSM updates
App Page
the page will propose to the user describe the component and allow to see the implementation in action.
UI specifications
Anatomy
Component
For the component description please refer to the DSM updates
App Page

title: "Tabs"
image: xxx.jpg
Text: intro text in the DSM
Core field: a list of the various variants from the DSM

selector view:

Check boxes for icon text
Number of tabs: "-" button (to take away one tab); 2 tabs; "+" button (to add a new tab)
names of the tab will be provide by @mccart77

Variants

Awaiting DSM updates

States

NA

Internationalization

NA

UX specifications
Interaction

All:

The user select the tabs actions buttons

Touch:

Nothing Specific

Keyboard:

Nothing specific

Animations

default OS animation

Accessibility
Visual Accessibility

taken into account within the design creation process

Usage Accessibility

(?) Focus order - The user should be able to understand that they are in an ordered list of X items
(?) Focus loss expected behavior - NA
(?) Screen Reader - default OS behavior

Technical specifications

On the Selection view to build the tabs the user should not be able to deleted all text and icon at the same time
The "+" & "-" buttons only show between 2 - 6

Implementation tasks

[ ] Task 1
[ ] Task 2

Related tasks

[ ] Task 1
[ ] Task 2

This comment is more with regard to the options in the bottom sheet:
When we have a customisation that offers either on or off, we should use a switch and not a checkbox (checkboxes should be used for a a set of options, i.e. more than one.
The customisation item in this component is "Text" should use a switch not a checkbox

I created issue #196 to update all customization bottom sheets in the demo app with switches instead of checkboxes. So I close this one.

When the text option is not checked, there is no vocalisation on the tabs. it is necessary to add textual alternatives so that the vocalisation is relevant even if the titles are not displayed.


Server crash on start up

When I tried to start up the server with the forge mods and the required dependency. It crashed with no specific reason.
I attached the error shown when I start up the server with the debug file here: https://mclo.gs/JGrwB54

getting the same issue here

This issue should've been fixed with the latest release of SDLink, which ironically, is another broken version. This issue has been fixed fully in the upcoming V3 release, which goes out as a beta soon.
For now, I think most Groovy Mod Loader mods are client side only, so you it should be safe to remove groovy from your server.
See here for more info: https://github.com/hypherionmc/sdlink/issues/67#issuecomment-1625652276


LDAP Test Plan

Basic Requirements: - Below requirements needed before executing any LDAP test cases.
(1)

Base   Steps:  Break the firewall between LDAP   server and BMC   telnet   command:   telnet   <IP address of LDAP server >

(2)

Update   LDAP server IP and host name details in /etc/hosts of BMC   Sample   output of LDAP /etc/hosts

3)

Check No   LDAP Config exists – Before creating LDAP config

Basic Requirements for LDAP readiness check:
Break the firewall between LDAP server and BMC telnet command: telnet

Update LDAP server IP and host name details in /etc/hosts of BMC Sample output of LDAP /etc/hosts

Check No LDAP Config exists – Before creating LDAP config

Create Config and LDAP Login: Non - Secured

[ ]  Create LDAP Configuration with Redfish commands using CURL  / Automation and ensure all required LDAP parameters are provided.

LDAP IP addr
LDAP Secure type: Generally if we pass the LDAP url as ldao:// then it is non secured mode.
LDAP Binddn
LDAP Basedn
LDAP PAssword
LDAP Search scope : Value could be base, sub, one
LDAP Server type: Value could be ADS or openldap - Openbmc supports more openldap

[ ]  Run LDAP enumerate command and see the config exists

[ ]  Using the LDAP user, Log into LDAP server

Create Config and LDAP Login: Secured:

[ ] Ensure LDAP secured is running in LDAP server

[ ]  Certificate upload : Server CA Certificate

[ ] Certificate upload: Client Certificate

[ ]   Create LDAP Configuration with Redfish commands using CURL / Automation and ensure all required LDAP parameters are provided.
LDAP IP addr
LDAP Secure type: Generally if we pass the LDAP url as ldaps:// then it is non secured mode.
LDAP Binddn
LDAP Basedn
LDAP PAssword
LDAP Search scope : Value could be base, sub, one
LDAP Server type: Value could be ADS or openldap - Openbmc supports more openldap

[ ] Run LDAP enumerate command and see the config exists

[ ] Using the LDAP user, Log into LDAP server

Privilege User Verification:

[ ]  LDAP user with priv-admin who was able to login should be able to power on / power off the system and also able to list inventory etc.

[ ]  LDAP user with priv-user who will have only read permission, He/She shouldnt be able to power on / power off the system

[ ] LDAP User with priv-operator who should be able to power on / power off the system. But not able to add any new user etc.  (TBD)

Delete Group Privileges and Delete Config:

[ ]  Ability to delete Privilege

[ ] Ability to delete LDAP config and it should have been cleared. - No object should be available.

Need to test with new Redfish commands and added it in existing test plan.
Dont know about openbmctool at this time.

[ ] Redfish commands and update test plan - 2

[ ] openbmc tool commands update - 2

Considering only 2 for estimate. Once confirmation on openbmctool happens then we can include that as well.

There are few new things as of now, I am observing that need to be taken care.

[ ] Operator role which is new when compare to old implementation using REST

[ ]  Settings / properties like
LDAPSearchSettings,
LDAPService
PrivilegeMap
Roles
ServiceEnabled
PrivilegeMap

[ ] And other settings / actions which is only associate with Redfish under AccountService

Not sure whether RemoteRoleMapping will come into picture in this release or getting implemented, need to check on that.

Not sure whether RemoteRoleMapping will come into picture in this release or getting implemented, need to check on that.
RemoteGroup, RemoteUser also need to taken care

That's a lot of new use cases..  so we keep this open still then ? or we can close it

I believe it is not lot of new use cases except user role - operator associate with.
All other places are kind of we need to map from REST to Redfish Schema format.
for eg. LDAPSearchSettings is something similar to LDAP Search Scope.

Closing since its completed


Updating docs links

Updating all links that referenced the old docs url.
Before: https://docs.recurly.com/api
After: https://dev.recurly.com
cc: @bhelx

:+1:


Cloudlaunch monitor view hangs with no errors

Hi, I am launching an AMI I built on CentOS according to an adapted Galaxy-Cloudman playbook. I then built the Galaxy filesystem as well and saved the snapshot to an S3 bucket. I supplied this bucket (which contains galaxyFS-latest.tar.gz) and AMI to a Cloudlaunch instance setup using @afgane 's cloudlaunch-docker repo. When I submit this information, the "monitor" page hangs during the "Requesting" stage. Is there a log where I can monitor why this is hanging?

Try connecting to the container interactively and look in /srv/cloudlaunch/cloudlaunch/.
If there's nothing there, starting cloudlaunch directly and seeing the logging output from the celery task will give you logs (have you ever gotten that to work on CentOS?). Many of the actions happen within BioBlend but to see it log, you need to enable logging by uncommenting this line: https://github.com/galaxyproject/bioblend/blob/master/bioblend/cloudman/launch.py#L23 (note that you'll need to do that for bioblend installation in the virtualenv where cloudlaunch is running).

I installed the software locally and encountered a few errors that I'll post for posterity. Since there's no default VPC associated with the AWS account I'm running under (nor do I have authority to change it), the boto request fails with the following error when no subnet_id is provided to the  botorun_instances method.
[2015-10-26 10:41:44,094: ERROR/MainProcess] 400 Bad Request
[2015-10-26 10:41:44,094: ERROR/MainProcess] <?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error>VPCIdNotSpecified<Message>No default VPC for this user</Message></Error></Errors><RequestID>6ea36d33-f6a1-4ee4-b0cf-98e032904627</RequestID></Response>
[2015-10-26 10:41:44,095: ERROR/MainProcess] Problem launching an instance: No default VPC for this user (code VPCIdNotSpecified; status 400)
Traceback (most recent call last):
  File "/home/ralstonm/Projects/bioblend/bioblend/cloudman/launch.py", line 177, in launch
    placement=placement)
  File "/home/ralstonm/.pyenv/versions/cloudlaunch/lib/python2.7/site-packages/boto/ec2/connection.py", line 973, in run_instances
    verb='POST')
  File "/home/ralstonm/.pyenv/versions/cloudlaunch/lib/python2.7/site-packages/boto/connection.py", line 1208, in get_object
    raise self.ResponseError(response.status, response.reason, body)
EC2ResponseError: EC2ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error>VPCIdNotSpecified<Message>No default VPC for this user</Message></Error></Errors><RequestID>6ea36d33-f6a1-4ee4-b0cf-98e032904627</RequestID></Response>

When I pass a subnet_id to boto's run_instances method, I get the following error. This seems to be a incompletely addressed idiosyncracy of the boto library and how it prefers for subnets to be specified. See this stackoverflow post and this github issue related to the run_instances call with a subnet_id. It seems that boto prefers subnet ids over subnet names in this method.
[2015-10-26 10:10:34,542: DEBUG/MainProcess] <?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error>InvalidParameterCombination<Message>The parameter groupName cannot be used with the parameter subnet</Message></Error></Errors><RequestID>e72077dd-f31d-4c94-b0ac-970f6c41fe56</RequestID></Response>
[2015-10-26 10:10:34,542: ERROR/MainProcess] 400 Bad Request
[2015-10-26 10:10:34,542: ERROR/MainProcess] <?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error>InvalidParameterCombination<Message>The parameter groupName cannot be used with the parameter subnet</Message></Error></Errors><RequestID>e72077dd-f31d-4c94-b0ac-970f6c41fe56</RequestID></Response>
[2015-10-26 10:10:34,543: ERROR/MainProcess] Problem launching an instance: The parameter groupName cannot be used with the parameter subnet (code InvalidParameterCombination; status 400)
Traceback (most recent call last):
  File "/home/ralstonm/Projects/bioblend/bioblend/cloudman/launch.py", line 177, in launch
    placement=placement)
  File "/home/ralstonm/.pyenv/versions/cloudlaunch/lib/python2.7/site-packages/boto/ec2/connection.py", line 973, in run_instances
    verb='POST')
  File "/home/ralstonm/.pyenv/versions/cloudlaunch/lib/python2.7/site-packages/boto/connection.py", line 1208, in get_object
    raise self.ResponseError(response.status, response.reason, body)
EC2ResponseError: EC2ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error>InvalidParameterCombination<Message>The parameter groupName cannot be used with the parameter subnet</Message></Error></Errors><RequestID>e72077dd-f31d-4c94-b0ac-970f6c41fe56</RequestID></Response>

After making some changes to bioblend I was able to get the boto requests to succeed. However, Cloudlaunch still hangs while the instance is launching. @afgane what is the best way to investigate?

Does CloudMan (attempt to) start? Can you post a gist of all the (sanitized) log files from /var/log/cloudman?
The order of boot events is as follows: /usr/bin/cm_autorun.py -> cm_boot.py -> Nginx -> CloudMan -> Galaxy++. Note that the log for cm_autorun.py might contain info about an exception that occurred within cm_boot.py. Nginx gets started by a process running root so I don't think this should be an issue, but can you check where it's pid file is and if it exists on system boot? It shouldn't exist then yet to avoid any conflicts.
Once you start nginx manually, do you see anything if you visit <ip>/cloud? Although until CloudMan is configured to start Galaxy, / should show the default 'No service running' page that should be part of the image, and handled via nginx.

The root page is a 404, <ip>/cloud produces a login page.
The failure occurs in cm_autorun.py during the password-based login setup.
[DEBUG] cm_autorun:82 2015-10-26 15:51:27,846: Saving user data in its original format to file '/opt/cloudman/boot/original_userData.yaml'
[DEBUG] cm_autorun:86 2015-10-26 15:51:27,847: Got user data
[INFO] cm_autorun:501 2015-10-26 15:51:27,847: Handling user data in YAML format.
[INFO] cm_autorun:369 2015-10-26 15:51:27,857: Setting up password-based login for user 'galaxy'
Traceback (most recent call last):
  File "/usr/bin/cm_autorun.py", line 608, in <module>
    main()
  File "/usr/bin/cm_autorun.py", line 604, in main
    _parse_user_data(ud)
  File "/usr/bin/cm_autorun.py", line 594, in _parse_user_data
    _handle_yaml(ud)
  File "/usr/bin/cm_autorun.py", line 509, in _handle_yaml
    _allow_password_logins(passwd)
  File "/usr/bin/cm_autorun.py", line 378, in _allow_password_logins
    subprocess.check_call(cl)
  File "/usr/lib64/python2.6/subprocess.py", line 500, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib64/python2.6/subprocess.py", line 478, in call
    p = Popen(*popenargs, **kwargs)
  File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.6/subprocess.py", line 1238, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

This is the only log at that point.

Should I make changes to the cm_boot.py script and save it to my bucket? I don't remember this step from the docs. Also, several of the variables set in this script have settings such as "cm.tar.gz" whereas the galaxyFS.tar.gz is produced from the galaxy-cloudman playbook. Should these files have the same name?

The cm_autorun failure seems to be when running the ssh reload command: https://github.com/galaxyproject/ansible-cloudman-image/blob/master/files/cm_autorun.py#L377
What happens when you run that command by hand?
As long as you use your ssh key to connect to an instance, you can comment out the call to _allow_password_logins method and then, yes, upload cm_boot.py to your default bucket. (Note that changes to cm_boot.py should be done under cm/boot module and then call python make_boot_script.py from CloudMan's root dir.

Okay, well under certain circumstances I can get this to run correctly with the default boot script fetched from cloudman. There are several issues that look like they need to be solved.

Is freeNX required for cloudman? What is the benefit to this? It seems this function is where the dpkg call is made
Regarding the mountpoint command, mountpoint -q /mnt returned an exit code of 1. for this script, and produces no standard out or error when run manually. What should be the result of the _ensure_ephemeral_disk_mounted call?
There is no device named /dev/xvdb on my system, although /dev/xvde exists. Should I replace this?
I have uploaded a script to my bucket and the correct URL is provided. I imagine this relates to my bucket permissions, something I'll have to sort out on my own. That being said, what are the most secure bucket permissions I can get away with for successful integration with S3FS-fuse and the other S3 featueres?

[DEBUG] cm_autorun:82 2015-10-27 16:14:25,714: Saving user data in its original format to file '/opt/cloudman/boot/original_userData.yaml'
[DEBUG] cm_autorun:86 2015-10-27 16:14:25,715: Got user data
[INFO] cm_autorun:501 2015-10-27 16:14:25,716: Handling user data in YAML format.
[INFO] cm_autorun:369 2015-10-27 16:14:25,726: Setting up password-based login for user 'galaxy'
/bin/sh: /usr/bin/dpkg: No such file or directory
[INFO] cm_autorun:397 2015-10-27 16:14:26,832: freenx-server is not installed; not configuring it
[DEBUG] cm_autorun:575 2015-10-27 16:14:26,833: Composed user data (with the following keys filtered out ['password', 'freenxpass', 'access_key', 'secret_key']): {'storage_type': u'volume', 's3_port': None, 'cloud_type': u'ec2', 'initial_cluster_type': u'Galaxy', 'cluster_name': u'cloudlaunch-test', 'role': 'master', 'bucket_cluster': 'cm-yadayada', 'boot_script_path': '/opt/cloudman/boot', 'ec2_conn_path': u'/', 'region_name': u'us-east-1', 'region_endpoint': u'ec2.amazonaws.com', 'ec2_port': None, 'storage_size': u'10', 'cloud_name': u'Amazon', 'boot_script_name': 'cm_boot.py', 'is_secure': True, 'custom_image_id': u'ami-1234567', 'cloudman_home': '/mnt/cm', 'bucket_default': u'bucket_name', 'custom_instance_type': u'', 's3_host': u's3.amazonaws.com', 's3_conn_path': u'/'}
[ERROR] cm_autorun:415 2015-10-27 16:14:26,857: Error running 'mountpoint -q /mnt'. Process returned code '1' and following stderr: ''
[WARNING] cm_autorun:439 2015-10-27 16:14:26,857: Mountpoint /mnt not available and no device /dev/xvdb
[DEBUG] cm_autorun:138 2015-10-27 16:14:26,858: Establishing boto S3 connection to Amazon
[DEBUG] cm_autorun:161 2015-10-27 16:14:26,982: Cluster bucket 'cm-yadayadyadayada' not found.
[DEBUG] cm_autorun:268 2015-10-27 16:14:26,982: Using default bucket 'bucket_name'
[DEBUG] cm_autorun:354 2015-10-27 16:14:26,982: Default bucket url: http://s3.amazonaws.com/bucket_name
[DEBUG] cm_autorun:294 2015-10-27 16:14:26,982: Could not get boot script 'cm_boot.py' from cluster bucket 'cm-yadayadayadayada'; retrieving the public one from bucket url 'http://s3.amazonaws.com/bucket_name/cm_boot.py'
[INFO] cm_autorun:239 2015-10-27 16:14:26,982: Getting boot script from 'http://s3.amazonaws.com/bucket_name/cm_boot.py' and saving it locally to '/opt/cloudman/boot/cm_boot.py'
[ERROR] cm_autorun:250 2015-10-27 16:14:27,138: Boot script at 'http://s3.amazonaws.com/bucket_name/cm_boot.py' not found.
[DEBUG] cm_autorun:307 2015-10-27 16:14:27,138: **Could not get the boot script**
[INFO] cm_autorun:605 2015-10-27 16:14:27,138: ---> /usr/bin/cm_autorun.py done <---

No. FreeNX is a leftover from the past just haven't found the time to properly clean it up and make sure not to break anything in the process.
The outcome is that an ephemeral disk is mounted under /mnt (i.e., it was either done automatically by Amazon or this method did it). Some instance types (e.g., t2's, c4's, m4's) don't even come with an ephemeral disk available so this method will break but at the time (no proper VPC support) that was an ok assumption.
Is that the ephemeral disk? In that case, yes.
The log you posted seems to indicate you're using bucket_name as the default bucket. It also seems that bucket does not exist? A default bucket name can be easily be set in cloudlaunch under Biocloudcentral->Clouds->Bucket default. As far as the permissions goes, if you'll be using one account only, you need no special permissions. If multiple accounts will be used and you know which ones they are, you can add read permissions for those accounts. Otherwise, a general read permission for anyone will be necessary. However, that bucket only needs to contain CloudMan source and cm_boot.py script so it seems those shouldn't be a big deal to allow access to.

Still hanging, but the cm_autorun.py and cm_boot.py scripts have been adapted for my situation and run successfully as far as I can tell. I've inspected /var/log/cloudman/cloudman.log (i assume the result of running the run.sh script in the /mnt/cm directory?) and I see that cloudman complains that I do not have snaps.yaml or persistent_data.yaml in my S3 bucket. Are the "Network Error" HTML issues a problem? I assume the missing yaml files are more of an issue. How about the AMPQ connection error?
/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/deploy/loadwsgi.py:22: DeprecationWarning: Parameters to load are deprecated.  Call .resolve and .require separately.
  return pkg_resources.EntryPoint.parse("x=" + s).load(False)
Python version:  (2, 6)
Image configuration suports: {'apps': ['cloudman', 'galaxy']}
2015-10-29 18:20:55,195 DEBUG            app:74   Initializing app
2015-10-29 18:20:55,195 DEBUG            ec2:124  Gathering instance zone, attempt 0
2015-10-29 18:22:10,374 DEBUG            ec2:130  Instance zone is '
<TITLE>Network Error</TITLE>

<big></big>

<big>Network Error (tcp_error)</big>

A communication error occurred: "Operation timed out"

The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.

For assistance, contact your network support team.

'
2015-10-29 18:22:10,374 DEBUG            ec2:48   Gathering instance ami, attempt 0
2015-10-29 18:23:25,494 DEBUG            app:77   Running on 'ec2' type of cloud in zone '
<TITLE>Network Error</TITLE>

<big></big>

<big>Network Error (tcp_error)</big>

A communication error occurred: "Operation timed out"

The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.

For assistance, contact your network support team.

' using image '
<TITLE>Network Error</TITLE>

<big></big>

<big>Network Error (tcp_error)</big>

A communication error occurred: "Operation timed out"

The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.

For assistance, contact your network support team.

'.
2015-10-29 18:23:25,494 DEBUG            app:95   Getting pd.yaml
2015-10-29 18:23:25,494 DEBUG            ec2:387  No S3 Connection, creating a new one.
2015-10-29 18:23:25,497 DEBUG            ec2:391  Got boto S3 connection.
2015-10-29 18:23:26,217 DEBUG           misc:578  Failed to get file 'persistent_data.yaml' from bucket 'bucket': S3ResponseError: 404 Not Found
<?xml version="1.0" encoding="UTF-8"?>
<Error>NoSuchKey<Message>The specified key does not exist.</Message><Key>persistent_data.yaml</Key><RequestId>blahblah</RequestId><HostId>bobloblaw'slawblog</HostId></Error>
2015-10-29 18:23:26,217 DEBUG            app:102  Setting deployment_version to 2
2015-10-29 18:23:26,217 INFO             app:109  Master starting
2015-10-29 18:23:26,217 DEBUG         master:64   Initializing console manager - cluster start time: 2015-10-29 22:23:26.217931
2015-10-29 18:23:26,218 DEBUG           comm:42   AMQP Connection Failure:  [Errno 111] Connection refused
2015-10-29 18:23:26,219 DEBUG         master:857  Trying to discover any worker instances associated with this cluster...
2015-10-29 18:23:26,219 DEBUG            ec2:366  Establishing boto EC2 connection
2015-10-29 18:23:29,057 DEBUG            ec2:375  Got boto EC2 connection for region 'us-east-1'
2015-10-29 18:23:29,610 DEBUG           misc:578  Failed to get file 'snaps.yaml' from bucket 'my_bucket': S3ResponseError: 404 Not Found
<?xml version="1.0" encoding="UTF-8"?>
<Error>NoSuchKey<Message>The specified key does not exist.</Message><Key>snaps.yaml</Key><RequestId>bob</RequestId><HostId>loblaw</HostId></Error>
Traceback (most recent call last):
  File "./scripts/paster.py", line 24, in <module>
    command.run()
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/script/command.py", line 104, in run
    invoke(command, command_name, options, args[1:])
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/script/command.py", line 143, in invoke
    exit_code = runner.run(args)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/script/command.py", line 238, in run
    result = self.command()
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/script/serve.py", line 284, in command
    relative_to=base, global_conf=vars)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/script/serve.py", line 321, in loadapp
    **kw)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
    return context.create()
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 229, in invoke
    filtered = context.next_context.create()
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke
    return fix_call(context.object, context.global_conf, **context.local_conf)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/deploy/util.py", line 56, in fix_call
    val = callable(*args, **kw)
  File "/mnt/cm/cm/buildapp.py", line 64, in app_factory
    app.startup()
  File "/mnt/cm/cm/app.py", line 111, in startup
    self.manager = master.ConsoleManager(self)
  File "/mnt/cm/cm/util/master.py", line 87, in __init__
    self.snaps = self._load_snapshot_data()
  File "/mnt/cm/cm/util/decorators.py", line 41, in df
    return fn(*args, **kwargs)
  File "/mnt/cm/cm/util/master.py", line 53, in newFunction
    return f(*args, **kw)
  File "/mnt/cm/cm/util/master.py", line 223, in _load_snapshot_data
    elif misc.get_file_from_public_bucket(self.app.ud, self.app.ud['bucket_default'], 'snaps.yaml', snaps_file):
  File "/mnt/cm/cm/util/misc.py", line 730, in get_file_from_public_bucket
    r = requests.get(url)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/requests/api.py", line 69, in get
    return request('get', url, params=params, **kwargs)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/requests/api.py", line 50, in request
    response = session.request(method=method, url=url, **kwargs)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/requests/sessions.py", line 454, in request
    prep = self.prepare_request(req)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/requests/sessions.py", line 388, in prepare_request
    hooks=merge_hooks(request.hooks, self.hooks),
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/requests/models.py", line 293, in prepare
    self.prepare_url(url, params)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/requests/models.py", line 347, in prepare_url
    raise InvalidURL(*e.args)
requests.exceptions.InvalidURL: Failed to parse: s3.amazonaws.com:None
Removing PID file cm_webapp.pid

It looks suspiciously like a metadata server failure. Are you running this on Openstack? If so, is the metadata service running ok? If you login to the instance and do a curl http://<IP_ADDRESS>/latest/meta-data/instance-type, it should return a valid value.
My guess would be that the line printing that long html string (7th line) is caused by the metadata server returning an error message instead of the correct zone.

@nuwang can you confirm that you're referring to the long html errors? I am running on EC2, and I can retrieve the userdata.yaml file without issue from the same server. I am running behind a proxy (S3 connections work fine with boto, and wget/yum works okay through the proxy as long as the galaxy user's bashrc is sourced. I have a file in /etc/profile.d which defines the proxy environment so most applications can connect to the web. wget returns the same 503 error as above and curl hangs, even when the proxy is supplied. It seems your guess is corect. How is the metadata served? What is the name of the service?
As root
>wget http://instance-data/latest/meta-data/instance-id
--2015-10-30 10:31:13--  http://instance-data/latest/meta-data/instance-id
Resolving proxy-server.domain.com... <IP_ADDRESS>, <IP_ADDRESS>
Connecting to proxy-server.domain.com|<IP_ADDRESS>|:port... connected.
Proxy request sent, awaiting response... 404 Not Found
2015-10-30 10:31:13 ERROR 404: Not Found.

>wget http://<IP_ADDRESS>/latest/meta-data/instance-id
--2015-10-30 10:31:46--  http://<IP_ADDRESS>/latest/meta-data/instance-id
Resolving proxy-server.bms.com... <IP_ADDRESS>, <IP_ADDRESS>
Connecting to proxy-server.bms.com|<IP_ADDRESS>|:8080... connected.
Proxy request sent, awaiting response... 503 Service Unavailable
2015-10-30 10:33:01 ERROR 503: Service Unavailable.

That narrows things down a bit. The metadata server is managed by EC2 and is always available at that fixed ip. (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html). It can be used by a running EC2 instance to retrieve additional information unique to itself, such as the zone it's running in, its IP etc. The side-effect is that it can't be proxied through another server. Can you add an exclusion rule for that particular IP in profile.d?

That is excellent. That should solve the issue with the 503 errors. The cloudman log still shows errors relating to the persistent_data.yaml and snaps.yaml.
@dannon and others what is required in the persistent_data.yaml and snaps.yaml files?
/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/deploy/loadwsgi.py:22: DeprecationWarning: Parameters to load are deprecated.  Call .resolve and .require separately.
  return pkg_resources.EntryPoint.parse("x=" + s).load(False)
Python version:  (2, 6)
Image configuration suports: {'apps': ['cloudman', 'galaxy']}
2015-10-30 11:29:26,124 DEBUG            app:74   Initializing app
2015-10-30 11:29:26,124 DEBUG            ec2:124  Gathering instance zone, attempt 0
2015-10-30 11:29:26,129 DEBUG            ec2:130  Instance zone is 'us-east-1a'
2015-10-30 11:29:26,129 DEBUG            ec2:48   Gathering instance ami, attempt 0
2015-10-30 11:29:26,131 DEBUG            app:77   Running on 'ec2' type of cloud in zone 'us-east-1a' using image 'ami-1234567'.
2015-10-30 11:29:26,131 DEBUG            app:95   Getting pd.yaml
2015-10-30 11:29:26,131 DEBUG            ec2:387  No S3 Connection, creating a new one.
2015-10-30 11:29:26,133 DEBUG            ec2:391  Got boto S3 connection.
2015-10-30 11:29:26,495 DEBUG           misc:578  Failed to get file 'persistent_data.yaml' from bucket 'my_company's_bucket_name': S3ResponseError: 404 Not Found
<?xml version="1.0" encoding="UTF-8"?>
<Error>NoSuchKey<Message>The specified key does not exist.</Message><Key>persistent_data.yaml</Key><RequestId>foobar</RequestId><HostId>bobloblaw'slawblog</HostId></Error>
2015-10-30 11:29:26,495 DEBUG            app:102  Setting deployment_version to 2
2015-10-30 11:29:26,495 INFO             app:109  Master starting
2015-10-30 11:29:26,495 DEBUG         master:64   Initializing console manager - cluster start time: 2015-10-30 15:29:26.495641
2015-10-30 11:29:26,496 DEBUG           comm:42   AMQP Connection Failure:  [Errno 111] Connection refused
2015-10-30 11:29:26,496 DEBUG         master:857  Trying to discover any worker instances associated with this cluster...
2015-10-30 11:29:26,496 DEBUG            ec2:366  Establishing boto EC2 connection
2015-10-30 11:29:26,922 DEBUG            ec2:354  Got region as 'RegionInfo:us-east-1'
2015-10-30 11:29:28,012 DEBUG            ec2:375  Got boto EC2 connection for region 'us-east-1'
2015-10-30 11:29:28,305 DEBUG           misc:578  Failed to get file 'snaps.yaml' from bucket 'my_company's_bucket_name': S3ResponseError: 404 Not Found
<?xml version="1.0" encoding="UTF-8"?>
<Error>NoSuchKey<Message>The specified key does not exist.</Message><Key>snaps.yaml</Key><RequestId>barbaz</RequestId><HostId>bobloblaw'slawblog</HostId></Error>
Traceback (most recent call last):
  File "./scripts/paster.py", line 24, in <module>
    command.run()
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/script/command.py", line 104, in run
    invoke(command, command_name, options, args[1:])
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/script/command.py", line 143, in invoke
    exit_code = runner.run(args)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/script/command.py", line 238, in run
    result = self.command()
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/script/serve.py", line 284, in command
    relative_to=base, global_conf=vars)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/script/serve.py", line 321, in loadapp
    **kw)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
    return context.create()
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 229, in invoke
    filtered = context.next_context.create()
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke
    return fix_call(context.object, context.global_conf, **context.local_conf)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/paste/deploy/util.py", line 56, in fix_call
    val = callable(*args, **kw)
  File "/mnt/cm/cm/buildapp.py", line 64, in app_factory
    app.startup()
  File "/mnt/cm/cm/app.py", line 111, in startup
    self.manager = master.ConsoleManager(self)
  File "/mnt/cm/cm/util/master.py", line 87, in __init__
    self.snaps = self._load_snapshot_data()
  File "/mnt/cm/cm/util/decorators.py", line 41, in df
    return fn(*args, **kwargs)
  File "/mnt/cm/cm/util/master.py", line 53, in newFunction
    return f(*args, **kw)
  File "/mnt/cm/cm/util/master.py", line 223, in _load_snapshot_data
    elif misc.get_file_from_public_bucket(self.app.ud, self.app.ud['bucket_default'], 'snaps.yaml', snaps_file):
  File "/mnt/cm/cm/util/misc.py", line 730, in get_file_from_public_bucket
    r = requests.get(url)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/requests/api.py", line 69, in get
    return request('get', url, params=params, **kwargs)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/requests/api.py", line 50, in request
    response = session.request(method=method, url=url, **kwargs)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/requests/sessions.py", line 454, in request
    prep = self.prepare_request(req)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/requests/sessions.py", line 388, in prepare_request
    hooks=merge_hooks(request.hooks, self.hooks),
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/requests/models.py", line 293, in prepare
    self.prepare_url(url, params)
  File "/home/galaxy/.virtualenvs/CM/lib/python2.6/site-packages/requests/models.py", line 347, in prepare_url
    raise InvalidURL(*e.args)
requests.exceptions.InvalidURL: Failed to parse: s3.amazonaws.com:None
Removing PID file cm_webapp.pid

The other errors seem to be related to the use of an apostrophe in your server and bucket names. The apostrophe is a reserved character in the url spec, and therefore can't be used without proper encoding. Cloudman isn't encoding the bucket name, so while this is technically a bug in cloudman, and you could try to work around it by manually encoding the name, I think it would be safer to avoid use of apostrophes altogether.
The AMQP failure is usually a result of RabbitMQ not being in a running state. It can sometimes be slow to start but the connection should be re-established later as long as rabbitmq does start running at some point.

@nuwang the bucket isn't named "my_compan's_bucket_name"

Ok, I thought you were using some test name or something. It did seem a bit strange that AWS would allow a bucket to contain an apostrophe in the first place :-) However, the error is an InvalidURL exception, so there must be something wrong with the URL somewhere?

The error at the bottom is an invalid URL because the value that's being concatenated with "s3.amazonaws.com" seems to be Nonetype. This seems to be an issue with the Cloudman boot script and not cloudlaunch specific. I'm closing this here and moving this to Cloudman

I see, it's probably missing the EC2 port?
Are you using cloudlaunch? If so, try specifying the ec2 port in cloud settings (although it's supposed to default to the correct one). Also, a missing snaps.yaml shouldn't cause a bug. Snaps.yaml is deprecated in favour of passing in userdata through the launcher. A sample config is available here: https://github.com/gvlproject/gvl.utilities/blob/master/launch_multiple_gvls/sample_data.txt

I'm confused. Yes, I am using cloudlaunch to launch the instance, but the error occurs in the cloudman run.sh script. The galaxy-cloudman-playbook script "cm_autorun.py" runs fine, no errors in the log. This then downloads and runs "cm_boot.py" which is part of the cloudman code. This runs fine, downloads the cm.tar.gz filesystem archive (although this is name galaxyFS-latest.tar.gz in galaxy-cloudman-playbook) and extracts this successfully. No errors in its log and the cloudman run.sh script is triggered. THis is when the startup script complains that no snaps.yaml is available. I don't have this yet because it's not documented as a requirement. Why would the EC2 port cause an issue? The reason for the URL error is because it's accessing s3.amazonaws.com:None. If the EC2 port was specified, would the s3 URL be s3.amazonaws.com:80 (for instance)?

Yes, that would be my guess. It looks like it's concatenating a null port number and coming up with an invalid URL. Can you check /opt/cloudman/boot/userData.yaml and check which port has been passed in for s3?
The snaps.yaml file is still fetched for backward compatibility, and while its absence is ok, cloudman still needs to connect to S3 to check for its presence.

Both ec2 and s3 ports are null in userData.yaml. These were both set from cloudman's "biocloudcentral/aws_db_data.json" file. What should these be?

I'm not really sure why this is happening anymore, since the GVL cloud launch settings look like this:

And this is what our flavour/userdata configuration looks like:

Can you paste in a sanitized version of userData.yaml to aid debugging? I'm turning in for the night (it's pretty late over here), but I'm sure someone will chime in soon.

access_key: !!python/unicode 'my_access_key'
boot_script_name: cm_boot.py
boot_script_path: /opt/cloudman/boot
bucket_cluster: company_bucket
bucket_default: !!python/unicode 'company_bucket'
cloud_name: !!python/unicode 'Amazon'
cloud_type: !!python/unicode 'ec2'
cloudman_home: /mnt/cm
cluster_name: !!python/unicode 'clustername'
custom_image_id: !!python/unicode 'ami-123456789'
custom_instance_type: !!python/unicode ''
ec2_conn_path: !!python/unicode '/'
ec2_port: null
freenxpass: !!python/unicode 'cloudlaunch'
initial_cluster_type: !!python/unicode 'Galaxy'
is_secure: true
password: cloudlaunch
region_endpoint: !!python/unicode 'ec2.amazonaws.com'
region_name: !!python/unicode 'us-east-1'
role: master
s3_conn_path: !!python/unicode '/'
s3_host: !!python/unicode 's3.amazonaws.com'
s3_port: null
secret_key: !!python/unicode 'sssshhhhhhhhhhhhhhh'
storage_size: !!python/unicode '10'
storage_type: !!python/unicode 'volume'

Thanks. I'll switch to the cloudman thread now, since that's probably more appropriate.

Hello again, I've got my cluster launching from cloudlaunch okay now, except the cloudlaunch /monitor page hangs during booting, and does not show a complete launch, even though the launch is successful. It freezes and shows
Hmm, this seems to be taking longer than usual. It may be best if you checked on that instance. I am afraid we have no more information but we will keep checking on this instance.
Note that this may be a terminal error which you many need to correct first and then attempt the start process again.

The log, too, displays no further information about the hung request.
[2015-12-01 15:01:13,394: INFO/MainProcess] Task biocloudcentral.tasks.instance_state[abcdefg-123456bad] succeeded in 63.5855340958s: {'public_ip': None, 'placement': '',...


acasa1

@PerteGeorge this is your task now, please go ahead. Deadline (when this ticket should be closed) is 2020-12-31T13:55:31.623477.
Estimation here is 90 minutes, that's how much you will be paid.
Remember, you don't have to solve everything in this ticket - you can solve it partially and leave todo markers in the code, which will become future tasks.
If you have any questions don't ask me, I'm not a technical person. Open new tickets instead.
If you don't have time or simply don't want to work on this, you can always resign.

@PerteGeorge please keep in mind that manual assignment of tickets is a bad practice and it is discouraged. Next time, please let me elect the assignee.

@PerteGeorge thank you for resolving this ticket. I've just added it to your active invoice. You can always check all your invoices and more on the Contributor Dashboard.


Sample C# code

I have put together a sample code in C# here https://thucnguyen77.blogspot.com/2019/02/dynamics-365-how-to-execute-batch.html.
Feel free to comment.

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

ID: b27f2e4f-ecc8-c826-4cce-4cc589ebd4b7
Version Independent ID: b83aa965-1607-0535-1d9c-15691bd6c47f
Content: Execute batch operations using the Web API (Developer Guide for Dynamics 365 for Customer Engagement)
Content Source: ce/developer/webapi/execute-batch-operations-using-web-api.md
Service: crm-online
GitHub Login: @JimDaly
Microsoft Alias: jdaly

@thucnguyen77 Thanks for sharing this. Keen to try this out - can you please share the complete sample(maybe host it on GitHub) so I can try running it ?

Sure @susikka.
Here is a working example: https://github.com/thucnguyen77/dynamics-365-web-api-batch-request-example

@thucnguyen77 I see this output when I run the sample

The sample successfully creates new entities but fails at retrieve operation. Can you please check the reason for this ?
Thanks,
Sushant

@susikka The failed request happened in Sample1Async() method, at this line:
batchContent.Add(CreateHttpMessageContent(HttpMethod.Get, "Account_Tasks?$select=subject"));
Thus you can change it to a valid entity in your CRM instance, "tasks" for example.
Thanks,
Thuc

@thucnguyen77 Thanks for the resolution. Reading through the sample I found that it does not include an Update operation on one of the created entity records. Everything else seems good to me. Would you mind if we use this sample in our documentation ?

@susikka Sure. Feel free to use the sample code. My pleasure to contribute.

Closing this issue for now. Will update soon on the status of the code sample.


Switch to MIT license

On discussion with several people, it now seems clear to me that this code is more valuable if it's permissively licensed. I am very keen to encourage commercial adoption and I think an MIT license would facilitate that.
As the current codebase has been written pretty well from scratch, by me, I think my permission is all that's required - though I will mention Joel in the pull request to request his blessing.

This is prompted in part by discussions with @VigneshVSV about aligning/merging/cross-fertilising labthings-fastapi and hololinked which are two scientific Python libraries with closely aligned aims and designs.
I don't have a strong preference between MIT and BSD licensing - I have picked MIT because it's simpler.

@jtc42 and I have previously discussed licensing for LabThings, and he was in agreement that a permissive license might make a lot of sense. The present repository doesn't have much code copied wholesale from python-labthings, but @jtc42 if you were happy to give this license your blessing that would keep things watertight in the event that I've copied anything over and forgotten about it.

This is really great guys! I have a fork, I will just pull it.

@jtc42 and I have previously discussed licensing for LabThings, and he was in agreement that a permissive license might make a lot of sense. The present repository doesn't have much code copied wholesale from python-labthings, but @jtc42 if you were happy to give this license your blessing that would keep things watertight in the event that I've copied anything over and forgotten about it.

More than happy

I would also appreciate if you guys freely license the old version. There were few good gems there.


Rename isChild to hasChild

From https://github.com/phetsims/axon/issues/82 we should rename isChild to hasChild.  I'll assign to myself to see if this is easy.

Changes in 14 files across 9 repos.  I tested Area Builder and Bending Light and all seems well.  I'll commit shortly.

Changes committed above, reassigning to @jonathanolson in case he wants to review or look for other cases that should have a similar renaming.

Looks good, thanks!


save latitude and longitude to local storage

When the user chooses a location
Then the coordinates are saved to local storage ONLY if they do not already exist


Add styles

Description

Adds basic styles to anchor-positioning demo.
Similar to the toggles demo
uses Open Props for some design tokens

Steps to test/reproduce
Please explain how to best reproduce the issue and/or test the changes locally (including the pages/URLs/views/states to review).
Show me

Provide screenshots/animated gifs/videos if necessary.

 I want a nicer looking and easier to understand demo site.

@jgerigmeyer With the polyfill applied, what should the position-fallback  version look like?
It currently looks like this:

Also, for the anchor positioning with scroll version, is there a way we can set the scroll position so that the anchor and floats are visible?
Jonny, I think you mentioned us possibly changing how these are shown (with a dropdown?). Were you thinking of doing that work here or in another story?

@jgerigmeyer With the polyfill applied, what should the position-fallback  version look like?

I think that changed slightly with the PR I just merged in... Now it looks like this, which is currently "correct" for what's defined:

Also, for the anchor positioning with scroll version, is there a way we can set the scroll position so that the anchor and floats are visible?

Yes! Please feel free to edit any of the examples to make them clearer -- I haven't put much thought into them at all.

Jonny, I think you mentioned us possibly changing how these are shown (with a dropdown?). Were you thinking of doing that work here or in another story?

Your call -- that was just an idea. Maybe a slight preference for that being a new PR?
@dvdherron

@jgerigmeyer Is there an attribute that I can hook into when the polyfill is turned on? Say, if we wanted to change the button text to ´Polyfill Applied´?

Done in https://github.com/oddbird/css-anchor-positioning/commit/9b73d0365523011313eb4d04c2db99a680f19ea7

Yesterday Stacy mentioned that it could possibly be confusing to use "Float" for the element being positioned relative to the anchor. Some might expect these elements to be positioned with the Css property 'float'. I don't know if we need to decide on whether to change this now, but could something like 'Positioned Element' work better?

I'm fine with "Target" or "Positioned" or whatever 👍

@stacyk Applied disabled styles to the "Apply Polyfill" button. I think this covers everything if you to give this a final 👍🏽


RuntimeError:cuda out of memory and thread_monitor resource temporarily unavailable in pthread_create

it post 'cuda out of memory'  when I run demo at 350 frames with RTX2080Ti , running with A10 is ok.
it post 'cuda out of memory' or  'thread_monitor resource temporarily unavailable in pthread_create ' when I run apartment at 155 frames with A10, meanwhile one of five python process fork 65 threads when run 155 frames. env config is right
RuntimeError: CUDA out of memory . Tried to allocate 178.00 MiB(GPU 0; 22.20 GiB total capacity; 402.81 MiB already allocated; 12.79 GiB free; 468.00 MiB reserved in total by PyTorch)

Hi, please double-check your environment, as far as I know, my classmates at ZJU and ETH are able to run the code on devices like 2080ti, TITAN X, 3090. We mainly use Linux ubuntu for the experiments, but other distributions like CentOS should also work fine.


Implement test updates for SLE12 / SLE12-SP1 / SLE11SP4

+1

@bmwiedemann this patch has been tested and does no longer overwrite the Pool repos.

Looks good to me, just the question about code that got removed or lost.

@dirkmueller can you comment @vuntz questions and rebase please?

+1