Bootstrap 4 Navbar with Dropdown and sub-dropdown

It appears like  "ul" listing is dropped out from dropdown items ( See Bootstrap 4 alpha version).
"ul" listing would be a great feature to have especially when the dropdown needs to be extended and to have sub-dropdowns.
Here attached are:

A screenshot of a navbar with dropdown and sub-dropdowns
HTML code with additional CSS
bootstrap4-nabvar-menu.txt

See #16387#issuecomment-97153831

Nested dropdowns aren't supported and haven't been since v3.

@mdo , could you explain why nested dropdowns are so bad?
The only issue with multi-level menus I see when searching about it is that hover is not possible on mobile. IMO this can be simply resolved by also expanding on click, not only hover. Best of both worlds.
 I hate when i have to click multiple times to reach some part of the web site.

@alainalexa
The code in the attachment works as static and non responsive , sub menu items should be shown on the click on menu item but on the page loading itself the entire snap as shown is loaded, but not on the click of menu items, and its not even collapsible.
I am using bootstrap 4 for angular 4 application, and needed a help in developing menus with sub-menus till level of 3.

@mdo I am sure you have your reasons for not having nested clickable dropdowns, and while I respect that, for a large content management sites, not having the basic ability to nest a list in navigation bar is going to be pretty useless.

I made the decision over three years ago, and it hasn't stopped anyone from building anything :).

@mdo , question was whether the feature is good for the project and why (not). Ideally decisions in an FLOSS project are driven (and when needed reconsidered) based on user input, feature usefulness, development feasibility, etc. I think many people like me are having the point of view that multi-level menus are very useful thus interested in why the decision was made.
Of course project owner is not in any way obligated to follow any rules and I know how frustrating it is to receive demands especially from non-paying clueless users. To give a concise rationale though is good, in my opinion, for the overall health of the project community.

It might not have stopped anyone from building anything in last 3 years, but it did worse. It made peaple write bad crappy hacks to make that possible. Please think about it. You are anyway allowing dropdown on navbar. But you are not allowing nested  tag there. That's often producing semantically incorrect markup.

I found #6342. Search for "submenu" to find related posts.
 Is this still the case? I think mobile moved somehow since then (screen size, etc.). One person there gave examples for using submenus on iStuff.
One question unanswered for me is why click to expand dropdowns are bad on mobile? Another interesting question is what observation people since submenus were dropped.
I only know that navigating through a big site without submenus requires far more waiting time, to wait new page to open, see available links, click new link and then go to new page to again check links, click again and wait. With submenus, you can much faster reach what you want.
What kind of data would actually be useful to have this feature reconsidered for inclusion in Bootstrap?

Still sticking to a  comment from 2012 seems to me a bit narrow minded. The world has changed since, more than a bit.
I have to work from time to time with leading desing agencies, and they do desiging submenues. "submenus are shit on mobile" is not an argument for them to not desing some, if they think it is suitable and usable for the content.
Just use google/stackoverflow for "boostrap submenue" or "boostrap subnavigation" instead of counting pull requests.
@akostadinov "question is what observation people since submenus were dropped"
ppl then use to write own code to add submenu capability and that for two very simple reasons:

mobile is - no doubt - part of the world. but not the whole word!
mobile has changed too and now as ppl using phablet/tablet they are asking for submenues instead of clicking through. (to be correct: they are asking for something else than clicking and just waiting for a page and clicking and wating and .... )

Privately i'm using bootstrap for my own projects, but at work we kicked it out a couple of years ago, because it don't fit our needs, neither for mobile nor for desktop.
Just my 2 cents.

100% agree with last comments !
Pull requests are poor indicators, people switch to other frameworks, they just stop using BootStrap!
They will not say to you.
Exactly !  Just use google/stackoverflow for "boostrap submenue" or "boostrap subnavigation" ..
We need them back.
Sub-dropdown are all arround, nowadays I do not see any usability issue.
I do see a big usability issue not giving us the "option" to choose: Sub-dropdown yes or not depending on any web project.
Thank you for your attention.

We keep hacking bootstrap to use nested submenus for our clients while these people sit on their high chairs

I'm still kind of stunned by "I made the decision over three years ago, and it hasn't stopped anyone from building anything".
Can anyone point me to a hacked solution that works well with Bootstrap 4?

Today I wasted some hours exploring, why submenus are not working.
I did not get the idea, that they could be removed on purpose.
In my opinion, they are pretty important in almost every somewhat larger business web application and I won't miss them on mobile either.
So please put into bootstrap an adequate replacement - Thanks!

I know that Bootstrap is a "responsive, mobile-first front-end component library".
However I'm making more intranet websites for PC users than general mobile friendly websites. I like using Bootstrap as it makes my UI work easier but unfortunately I keep hitting walls when trying to accomplish easy-to-seem things like the mentioned sub-dropdowns. I don't care about sub-dropdowns are looking bad on mobile. I don't make this intranet website for mobile users. Should I leave Bootstrap because it only focuses on mobile? Shouldn't Bootstrap support those nasty sub dropdowns and just let the developers know that they look bad on mobile?  I need them. I don't want to write hacky code. I need Bootstrap to support sub dropdowns. Period.

I made the decision over three years ago, and it hasn't stopped anyone from building anything :).

It may not have stopped anyone from building anything, but it's stopping them from doing it with Bootstrap.
I came back to Bootstrap to try out v4 in the day or so to protoype a rewrite of a big app that uses a bit of 2.3.1 - primarily for the navbar in specific mini-apps, where there were only  nav items with children. Our top-level system menu is being transitioned from the classic dmenu.js that many folks may remember. I figured I'd use Bootstrap to replace that menu, but it has 2 and very rarely 3 levels of nesting. I got the sense that nested dropdowns were not supported from the documentation, but I also figured they'd be relatively implementable as a simple extension or just by creatively applying the framework.
So I went down the path and got a bit of the way there, figuring I could just nest dropdown-toggle and dropdown-menu elements. (Here's the codepen if you want to follow along). Unfortunately, things weren't working as I was expecting - regardless of which nested menu was clicked, the first nested dropdown would be shown. I could see other sticky situations coming up too, e.g., dealing with keeping the "parent" menu open as you switch between activating submenus, et. Eyeballing the issue made me suspect something in how the association is made with a dropdown on https://github.com/twbs/bootstrap/blob/v4-dev/js/src/dropdown.js#L341-L349, but I wanted to see if anyone else had further insight or a recommended pattern. So I put the aforementioned codepen together and tried to find some help via IRC and Slack and then found my way here.
Instead of a fix or even recommendation, I am instead at an inflection point. As an experienced, long-time user of front-end open source libraries I know I have a few choices

Start digging in to debug what's going on in dropdown.js. I can use that knowledge to either develop my own workarounds and eventually a custom implementation for my nested submenus in Bootstrap, which I get to maintain forever and no one else outside my organization can help me with. (Blech). OR - I can use that information to try to formulate and share a fix upstream. Given what I now know about the situation, however, my assumption is that anything related to support for nested dropdowns wouldn't be considered a "bug," and that I'd be fighting an uphill battle against the project's clearly-stated preference around this feature. (Also blech)

Fundamentally re-think the UX here so that it works differently and conforms to the maintainers' preferences around what constitutes "mobile-first."  So far as I can tell, this would be an issue even if I weren't using the navbar - even if I was just trying to nest one dropdown inside of another. This may prove to be a great idea! However, it is a strange UX consideration to have forced upon you by your frontend framework. As others have pointed out, people use Bootstrap for apps that primarily or exclusively serve folks on desktop - even as they intentionally reap the rewards of the built in responsiveness, etc., of other "mobile-facing" features. It seems strange to tell these users, "If you want to use Bootstrap, you're not allowed to ever have something pop out of something else that has popped up."  it is not as if nested drop down menus are some sort of oddball or "new trendy fad" UI feature.

Try Foundation. They support nested dropdowns and it just works, AFAICT.

Ultimately, I think I'm gonna go with #3. I'm only a day or two into prototyping and hey, that's what I am supposed to be doing right now. Not becoming a long-term stakeholder of a particular dropdown menu implementation either in the Open Source community or within my organization (and creating a bunch of technical debt right out of the box) (Choice 1). Not fundamentally redesigning something that basically works (Choice 2).
I know that it is not the goal of any open source project or its maintainers to "win" as many users as possible or to serve every particular need, and in the case of nested dropdowns, Bootstrap's maintainers very well may be making the correct and strategic decision in terms of avoiding future headaches, etc. associated with this functionality. At the same time, it is certain that we are not talking about such an unboundedly complex problem that it could not be solved (rather expediently and comprehensively) if the decision were to be reversed.
What's most frustrating about the decision as it currently stands is that there appear to be bugs in the current implementation that stand in the way of users extending Bootstrap to solve this problem for themselves, and if those bugs are reported, they will not be considered bugs, because "nested dropdowns aren't supported" based on five-year-old reasoning that "submenus just don't have much of a place on the web right now" and more recent reasoning that "the JS to do it right on desktop didn't feel worth it."
Worth it how? The initial effort? Bytes? Bugs? Surely sharing an understanding of that calculus and whether it is still timely would be a more worthy way of considering this issue than "we decided five years ago that everyone who ever needs this is wrong."

Excuse me for posting commercial links, but I just stumbled upon this web site that is responsive and has sub-menus working great on mobile:
http://www.sportdepot.bg/en
If you click on the kebab menu button in the upper-left part of the page, you can see how nicely multi-level navigation can work on mobile.

@mdo This is insane for not listening to the community whatsoever. Three years ago people were saying it's a bad idea, and now you're hearing the other side. Why is this still not supported?

People. OpenSource software isn't like Subway for you demand certain fillings and features. Make your own sandwich (if possible be cool and share it). Peace.

Dreadfully inaccurate analogy @fabiofl. Especially when the sandwich actively prevents you from Having It Your Way (i.e., issues in code that stand in the way of users implementing nested dropdowns themselves).
If you really want to torture the Subway analogy, this situation seems more akin to walking into a Subway sandwich shop, ordering an Italian BMT, and the Sandwich Artist refuses to make it because he doesn't like Genoa Salami.
Or, if we really want to torture the Subway analogy (again, this was your idea, not mine), it seems more like going in, ordering a Sweet Onion Chicken Teriyaki Foot Long, and having your Sandwich Artist tell you, "Sorry, I don't think Sweet Onion Chicken Teriyaki tastes good on a six-Inch sub" and refusing to make you the foot-long sandwich.

@ajpiano Thanks for your response. I get your point of view. But for me the main idea is, as @mdo said, "it hasn't stopped anyone from building anything".
We are developers. We are "Sandwich Artists" too.
If you don't have a tool, build it. Every project borns out of necessity.
My point is that everyone is more and more getting used to ask more for "just-add-water" solutions nowadays.
If the core team of a project decided something is not priority, roll with the punches and DIY.

It has stopped and does stop people from building things, that was my point in the first post I wrote in this thread. AFAICT, the current dropdown menu code stands in the way of users implementing their own nested dropdown menus. I have still not gotten a straight answer about whether this is considered a bug.

It's beta software. Expect bugs. It's also free, provided "as is" without warranty of any kind (people don't read licenses). If you decide to use it, you should own your own technical debts.
I'll stop arguing since I think this discussion isn't getting anywhere.
I stated my point of view. Thanks again for showing yours.

@fabiofl I appreciate you bringing up these points as well and please accept my apologies for my using you as vector I've used to try and make these points to the project maintainers and other folks who come across this discussion - a discussion that is not and has never been about the first-principles of open source licenses.
Just for posterity, the point is not "expect bugs," obviously I expect bugs when using new and beta software. The question is whether those "bugs" will truly be considered bugs if they are only manifested when a user is trying to build an extension that implements functionality that the framework does not want to support.
Your mention of technical debt serves to make the point I've been trying to make as well. The exact reason someone wouldn't want to "DIY" and "roll with the punches" is that rolling your own implementation of Feature X based on Framework Y, when Framework Y explicitly does not support feature Feature X is the type of decision that saddles a project with technical debt.

"Make your own sandwich"
-Sure. But the framework is getting in the way and preventing us doing that because it does not support, for example, a nested <ul> tag as dropdown.
"It's beta software. Expect bugs."
-Sure. But for that to happen project maintainer needs to accept this as a bug.

https://codepen.io/svnt/pen/beEgre
This hack appears to be working ok.

This is support multi drop-down menu https://github.com/bootstrapthemesco/bootstrap-4-multi-dropdown-navbar

You can use the following styles:
ul.dropdown-menu {
  .dropdown-menu {
    top: 0;
    left: 100%;
  }
  span.caret {
    position: absolute;
    top: 10px;
    right: 5px;
    border-left: 4px dashed;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
  }
}

And I'm using the following to generate my menu items:
  renderItem(item, i) {
    const { name, value, items } = item
    if( !items || !items.length  )
      return (<NavItem key={i} href={value}>{name}</NavItem>)
    return (
      <NavDropdown key={i} title={name} id={this.generateID(name)}>
        {items.map( (sub_item, j) => this.renderItem(sub_item, j) )}
      </NavDropdown>
    )
  }

@Ataurr - nice spot. https://github.com/bootstrapthemesco/bootstrap-4-multi-dropdown-navbar demonstrates just how easy it would be to support multi-level dropdowns in Bootstrap 4. And how nicely they can work on mobile as well as desktop...

I am responsible for the front end of a global multi-billion dollar company. We also use nested menus as there is a lot of content in our navigation. We can certainly write our own solution, but I always try to use standard bootstrap methodologies so new developers can step in and get to work without having to figure out the custom logic. I would agree that it's a "miss" that bootstrap no longer supports nested menus. There is still a valid need for them that is not being met.

Very bad that bootstrap don't support multilevel dropdown. All solution that I found have their issues.
I think that will remove bootstrap dropdown and replace with Semantic UI dropdown, https://semantic-ui.com/modules/dropdown.html
You guys can check into and implement similar way as they do.
Their dropdown can even replace select2 how powerful is.

How do you say multi-level dropdowns are a bad UX design?  For large sites that have hundreds of pages, having dropdowns is the only logical way for a user to see all content from the home screen.  Bootstrap offers no solutions for this.

Man, why is there always one glaring area of lapse in judgement like this from maintainers of popular frameworks?! I feel like front-end people know where I'm coming from.

@mdo nested dropdowns are not evil, even if you do not really need them
@udf2457: If you do not have the skills to extend the bootstrap the way you want it, you should learn how css works and not scold the developers

@createdwithlove
First, why are you picking on me ?  If you care to read this thread you will see I was NOT the first and I almost certainly WILL NOT be the last person to comment on this issue.
Secondly, I might agree with your sentiment if the issue was something debatable.  But this one is not, it is a bizarre and poorly thought through design decision by the developers, and when prompted for their reasoning, the best they could come up with "well, we decided five years ago its was too difficult and that's that".

You need to give the option to the developer to be able to use multi-level dropdowns if he wishes so. I think it´s unwise for the future of the framework to remove such a basic feature, be smart!!

For what its worth, I'd like to place another me too on this feature.  I have invested in learning BS I'd like to continue to use it for all my projects.  However, the lack of this feature is a big hole.  I hope you can reconsider your thinking on this.
Being intransigent will cause developers to use other frameworks.

Almost 2019
No multi-level dropdowns

Can't believe this is still an argument. I've used and made multilevel dropdowns for TONS of things. Want to select anything that's categorized with items? Multilevel dropdown is the easiest solution.

Being intransigent will cause developers to use other frameworks.

Yup.  My company has already moved away from Bootstrap because of the lack of multi-level dropdown support.  We've been using other frameworks on a number of major projects and we do not miss Bootstrap one bit.
Our developers have better things to do with their time than implement (and subsequently maintain) hacky workarounds for stuff like multi-level dropdowns that should be part of the core framework.
Why force people to re-invent the wheel ?  Multi-level dropdowns is not a wheel that anyone should be wasting their time reinventing.

I came here looking for a BS4 multi-level dropdown solution. I'm shocked to find that its not a feature of the framework. I hope the BS developers will reconsider adding multi-level dropdowns as a feature to the framework. I may look into switching to a different framework instead. @udf2457 What framework are your developers using in place of BS?

@naknak987 We use a variety of frameworks depending on the project and its target, so there isn't one specific answer to your question.  But if you forced my hand, I would say that if you are looking something with similar breadth of features to BS but which also has dropdowns as part of core framework, I would probably recommend Zurb Foundation Sites (https://foundation.zurb.com/sites.html).
There are also other options out there apart from Zurb.  But they would be much "lighter" frameworks that don't have the same "kitchen sink" toolbox that Zurb and BS do.
Not only does Zurb have dropdown support, but they have good options for responsive (e.g. you can have it so that dropdowns on larger screens automagically transform into drilldowns (or other methods of your choice) on mobile.
We find it works really well and does the job, and most importantly it does the job "out of the box" so developers can focus on more important things than re-inventing the dropdown wheel or un-necessarily importing third-party hacks.
Yes, some people may comment the Zurb codebase is feeling slightly old in its current v6, some people might complain its not "cutting-edge" enough, but there is a new version around the corner that should silence any such comments.  Overall though, Zurb behaves really well (and of course the benefit of their slightly older codebase is that support for older browsers is still quite good).
Don't get me wrong, I'm not saying Zurb is perfect. But neither is BS (especially with its lack of dropdowns !).

@naknak987  I would definitely recommend Fomantic UI (https://github.com/fomantic/Fomantic-UI) a community form of Semantic UI. Good dropdown support, good responsiveness, and a very large range of kitchen-sink features.

It's 2019 and I just stumbled over this issue because I need / want this functionality. This is a ridiculous decision and the fact that I have to resort to hacks to build (what should be) a standard part of the navigation blows my mind.

the main idea is, as @mdo said, "it hasn't stopped anyone from building anything".

Yep, but I dismissed BS 3.x+ as soon as the project I was in ended (yes, I made a hack based on BS2) and never built anything else with it, mostly because this feature was removed and there is no sign of even try to think about having it back.
Now every time anyone suggests using BS, I show them three alternatives for them to know there are other options, some of them better and with users (devs and end users) in mind.
Nowadays I mostly use Fomantic-UI (Semantic had been stalled for some time).

I think an appropriate workaround is to make nested menus Collapsible elements.
This will make it semantically correct, it has the expected functionality for mobile (click to open) and it is allowed within Bootstrap.

here is the menu https://wordpress.isvek.ru/


Errors running sst ion commands when running another app on v2

Commands like sst refresh are failing with when I'm running an app on sst v2 at the same time:
Error from pulumi:
   Failed to call RPC: <!DOCTYPE html>

<meta charset="utf-8">
<title>Error</title>

Cannot POST /rpc

I'm running version 3.0.68

Apparently, it is also not possible to run a deployment.

Explain this again? So you have a v2 app? and you are trying to deploy a v3 app with the same name?

Not the same name. We have a big app that's on sst2. I'm creating a new service with a completely different name in sst3. I can't run the new service in sst3 or do a deployment in sst3 while the sst2 app is running. This means I can't test my main app running on sst2 against the new service running on sst3.

So you have sst dev running for v2? And you can't run commands on v3?

Yes, that's correct.

upgrade to v3.0.105 which has some extra logging

start the v2 project
try to run the v3 command that fails, eg sst refresh
check .sst/log/sst.log to see a line "server port assigned" and tell me which one it is

also we did fix an issue related to rpc using the wrong port but you need to update to latest, run an sst refresh while v2 is NOT running and that should fix it going forward

gotcha - so the bug here is sst v3 thinks it can use port 13557 even though it's currently being taken so it doesn't try an alternative port - i'll figure this out ty!

potentially fixed in v3.0.109

Unfortunately still doesn't work in v3.0.113:
time=2024-09-05T15:58:16.324-05:00 level=INFO msg="server port assigned" port=13557
time=2024-09-05T15:58:16.324-05:00 level=INFO msg="getting endpoint"
time=2024-09-05T15:58:16.325-05:00 level=INFO msg=server addr=<IP_ADDRESS>:13557
time=2024-09-05T15:58:16.326-05:00 level=INFO msg="deployer waiting for trigger"

hm ok can you run just sst v2 and check if localhost:13557 is responding? i don't understand why v3 thinks it can listen on the same port when it can't

this is what I get when I run curl -i http://localhost:13557:
HTTP/1.1 404 Not Found
X-Powered-By: Express
Content-Security-Policy: default-src 'none'
X-Content-Type-Options: nosniff
Content-Type: text/html; charset=utf-8
Content-Length: 145
Date: Fri, 06 Sep 2024 05:19:45 GMT
Connection: keep-alive
Keep-Alive: timeout=5

<!DOCTYPE html>

<meta charset="utf-8">
<title>Error</title>

Cannot GET /local/

And when I turn off sst2, it doesn't respond, so this is definitely sst2's port.
I'm on mac btw. Not sure if it matters.

can you try latest?

woot! it works!


soroban-cli: --list prints out cli and duplicate names

What version are you using?
7f8ad60b9921b43871b2a5ec7e4d9494b909446f
What did you do?
$ soroban --list

What did you expect to see?
A list of any plugins I have installed, where each is listed once. Or an empty list.
What did you see instead?
❯ soroban --list
Installed Plugins:
    cli
    cli

Discussions
It's odd that cli is included twice.
It's also odd that cli is included at all, since it isn't a plugin, it is the main tool.

I can't reproduce this anymore. Closing


Implement pseudo class selector

Draft
I'm reworking system::prepare_state to support pseudo classes selectors. The main problem is find a way to have freedom to query for any component state, without having to statically add all of'em as query on CssQueryParam.

Fixes #18
Added

:hover pseudo class selector, which corresponds to Interaction::Hovered;

I've added most of the code, just need some docs and minor refactors, but one things that I've noticed is the style needs to update whenever the Interaction state is changed. This can be very performance intensive, so I'll have to take a closer look.

After more testing, I noticed that we have two issues to fix:

[ ] Fix update order, as stated in #21, since when using :hover, usually you wanna the deepest property to have precedence;
[ ] Watch for changes on entities, as in #39;

I think it's possible to do both fixed in one go, since I'll have to rework how entities and styles are managed.

I'll release 0.5.1, since it'll only make sense to use pseudo-classes when those two issues are fixed, and those issues will require a major change on how the crate works.
After releasing 0.5.1, I'll merge this PR and work on those issues, to release on 0.6.


Mouse X/Y movements are inconsistent on start (rare)

Information

ratbagd version: 0.12
Piper version: 0.3
Distribution: Ubuntu MATE 19.10 Eoan
Kernel: Linux 5.3.0-26-generic x86_64 GNU/Linux
Mouse model: Logitech G600

Describe the bug
Sometimes, when starting my PC, my mouse will have different sensitivities in each direction - that is, it will move in the X and Y directions at different speeds. So moving it slightly to the left will move much further than moving the same distance upwards.
Changing profiles and then changing back using piper is enough to resolve the bug.
To Reproduce
This bug seems to happen completely at random when starting my PC, so this repro isn't exactly the most reliable

Start/Restart PC
Move mouse.
If it's working normally, go to step 1
Notice it moving oddly
Change profile, then change back. I do this with piper but it should be doable with the cli as well
Mouse movement is now fixed

Logs
This is probably useless, as I just tried 15 times in a row and was unable to reproduce the error, but here's what my log says on start
Initializing libratbag
ratbag debug: New device: Plantronics Plantronics GameCom 780
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 047f:c010
ratbag debug: New device: USB Keyboard
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 04d9:0169
ratbag debug: New device: USB Keyboard
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 04d9:0169
ratbag debug: New device: Logitech Gaming Mouse G600
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: device assigned driver logitech_g600
ratbag debug: hidraw info: bus 0x03 vendor 0x46d product 0xffffc24a
ratbag debug: Logitech Gaming Mouse G600 is device '/dev/hidraw2'.
ratbag debug: Parsing HID report descriptor
ratbag debug: Parsing HID report descriptor
ratbag debug: hidraw info: bus 0x03 vendor 0x46d product 0xffffc24a
ratbag debug: Logitech Gaming Mouse G600 is device '/dev/hidraw3'.
ratbag debug: Parsing HID report descriptor
ratbag debug: Parsing HID report descriptor
ratbag debug: - HID report ID 01
ratbag debug: - HID report ID 80
ratbag debug: - HID report ID f6
ratbag debug: - HID report ID f0
ratbag debug: - HID report ID f1
ratbag debug: - HID report ID f2
ratbag debug: - HID report ID f3
ratbag debug: - HID report ID f4
ratbag debug: - HID report ID f5
ratbag debug: - HID report ID f6
ratbag debug: - HID report ID f7
ratbag raw: feature get:   f3 ad 7f a8 00 04 00 00 00 00 00 00 00 02 08 18 28 40 00 00 00 00 00 00 02 00 00 00 00 00 00 01 00 00 02 00 00 03 00 00 04 00 00 05 00 00 17 00 00 00 00 00 00 00 00 00 00 59 00 00 5a 00 00 5b 00 00 5c 00 00 5d 00 00 5e 00 00 5f 00 00 60 00 00 61 00 00 54 00 00 55 00 00 56 00 ff ff 01 00 00 02 00 00 03 00 00 04 00 00 05 00 00 17 00 00 13 00 00 14 00 00 00 01 1e 00 01 1f 00 01 20 00 01 21 00 01 22 00 01 23 00 01 24 00 01 25 00 01 26 00 01 27 00 01 2d 00 01 2e
ratbag debug: Unknown data in profile 0
ratbag debug:   profile->unknown1:   00 00 00 00 00
ratbag debug:   profile->unknown2:   00 00 00 00 00 00 02 00 00 00 00 00 00
ratbag raw: feature get:   f4 a4 00 00 00 00 00 00 00 00 00 01 08 02 08 18 28 40 00 00 00 00 00 00 02 00 00 00 00 00 00 01 00 00 02 00 00 03 00 00 04 00 00 05 00 00 17 00 00 00 02 05 14 00 00 00 00 00 00 00 5a 00 00 5b 00 00 5c 00 00 5d 00 00 5e 00 00 5f 00 00 60 00 00 61 00 00 62 00 00 56 00 00 57 ff ff ff 01 00 00 02 00 00 03 00 00 04 00 00 05 00 00 17 00 00 00 02 05 14 00 00 00 01 59 00 01 5a 00 01 5b 00 01 5c 00 01 5d 00 01 5e 00 01 5f 00 01 60 00 01 61 00 01 62 00 01 56 00 01 57
ratbag debug: Unknown data in profile 1
ratbag debug:   profile->unknown1:   00 00 00 00 00
ratbag debug:   profile->unknown2:   00 00 00 00 00 00 02 00 00 00 00 00 00
ratbag raw: feature get:   f5 00 ff 00 01 04 00 00 00 00 00 01 08 02 08 18 28 40 00 00 00 00 00 00 02 00 00 00 00 00 00 01 00 00 02 00 00 03 00 00 04 00 00 05 00 00 15 00 00 13 00 00 14 00 00 00 00 00 00 00 1f 00 00 20 00 00 21 00 00 22 00 00 23 11 00 00 00 00 00 05 00 00 12 00 00 00 00 08 04 00 00 ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag debug: Unknown data in profile 2
ratbag debug:   profile->unknown1:   00 00 00 00 00
ratbag debug:   profile->unknown2:   00 00 00 00 00 00 02 00 00 00 00 00 00
ratbag raw: feature get:   f0 0a 00 00
ratbag debug: driver match found: Logitech G600
hidraw2: "Logitech Gaming Mouse G600", 3 profiles
ratbag debug: New device: Logitech Gaming Mouse G600
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: device assigned driver logitech_g600
ratbag debug: hidraw info: bus 0x03 vendor 0x46d product 0xffffc24a
ratbag debug: Logitech Gaming Mouse G600 is device '/dev/hidraw2'.
ratbag debug: Parsing HID report descriptor
ratbag debug: Parsing HID report descriptor
DBus server ready

Additional context
I have added piper to my "Startup Applications" but I doubt this is the cause of the issue
I apologise for this issue being so vague in places (such as with the logs). It is really difficult if not impossible to reproduce on demand, and as such, I probably can't be as helpful as I would like.

Okay so, I have gotten more information on this. I have done a LOT of experimentation with my PC over the last month, and I have noticed the following:

This issue happens on boot in ANY version of Linux, including versions that do not have libratbag installed. On Arch Linux I had the same problem
I have even had this problem in my Windows 10 dual-boot, which I set up this month specifically to test this. This is both with and without the (pretty crappy) software suite for my mouse installed
I have even had this issue in my BIOS setup screen once

This leads me to conclude that there is actually something wrong with the Logitech G600 itself, either a bug in it's actual firmware, or an issue with mine specifically. Either way, this is not a libratbag issue, so this can be closed now.


python based init system

In the readme's todo list there is currently an entry for replacing busybox's init with a python based solution.
Although there are quite a few init systems out there, not many of them are written in python.
I looked around a bit and found some OSS projects that fit the description, although not all of them would work as a drop-in replacement for the current init:

supervisord [1] - mature, active, but it is not intended to be run as PID 1 though;
murdur [2] - seems to be calling a lot of binaries in /bin or /sbin, so although it's written in python, it's not free of external binary dependencies;

I'm just writing this down in case someone else looks at init and wonders what pure python implementations are already out there.
[1] https://github.com/Supervisor/supervisor
[2] https://github.com/pisilinux/mudur

This exists as well: https://github.com/YtvwlD/yarfi


User documentation still has python2.7 in the example code

Probably not limited to:
https://docs.binary.ninja/dev/bnil-llil.html#introduction-by-example

I browsed the user documentation, and there are only two places of py 2.7 code. Fixed in https://github.com/Vector35/binaryninja-api/commit/a835ef412023854fb434fe02444db4cd26021c9e


Change interpretation of "last parameter"

The specification states that if the position of a parameter is not explicitly specified using BYTE-POSITION, "The parameter starts then at the byte edge next to the end of the last parameter". This PR changes the interpretation of "last parameter" from "parameter currently closest to the end of the PDU" to "most recently handled parameter". The reason is that IMO it is more likely that this is what is meant by the specification, and that it is slightly simpler to implement. That said, I consider it to be likely that no data set encountered in the wild is affected by this.
Besides this, a bug in dynamic endmarker fields is fixed by this PR: it turns out that the data occupied by the endmarker of these fields ought not to be considered consumed (why???), i.e., one needs to explicitly add a ReservedParameter after DynamicEndmarker fields...
Andreas Lauser<EMAIL_ADDRESS>on behalf of MBition GmbH.
Provider Information

@andlaus if "most recently handled parameter" was intended, it would have been called "previous parameter", not "last parameter"

Besides this, a bug in dynamic endmarker fields is fixed by this PR: it turns out that the data occupied by the endmarker of these fields ought not to be considered consumed

Got spec reference for this?

@andlaus if "most recently handled parameter" was intended, it would have been called "previous parameter", not "last parameter"

I'm not so sure about that; the language of the MCD-2 spec is sometimes quite strange (in the sense that it clearly was not written by a English native speaker) and the most literal interpretation of "last parameter" is the final parameter in the respective list, but that does not make any sense. I guess that somebody implemented their en-/decoding routine before writing that paragraph, and given that it is more obvious and simple to just continue at where you currently are instead of moving the cursor, I guess that this is what was intended. That said, if there is concrete evidence to the contrary, I'm happy to revert this assessment...

Got spec reference for this?

that would be section <IP_ADDRESS>.5 of the ASAM MCD-2 specification.


Remove -q flag from command | grep -q and ignore output

grep -q will exit immediately upon finding a match, which can trigger
a SIGPIPE signal if the pipe is still written to. This can happen when
the data being written is larger than PAGE_SIZE (4KB), and the match is
found in the first memory page. The pipefail option causes this signal
to fail the entire pipe with exit code 141, instead of silently closing
the writer and returning the exit code of the reader.

Merged, thanks!


Web App auto-restarts

I have created a Linux / php7 webapp. With apt-get I have added a couple of extra packages needed for my app. But the webapp seems to auto-restart from time to time, removing all installed packages. I don't see this behavior documented anywhere. For Containers a restart policy property is available, but I don't see anything similar for web apps.

Dokumentinformasjon
⚠ Ikke rediger denne delen. Den kreves for koblingen docs.microsoft.com ➟ GitHub-problem.

ID: ef9002ed-c817-c615-fe32-05ad4cc78b61
Version Independent ID: 72295255-8d90-a2c6-0995-0e1208fcdcab
Content: Introduction to App Service on Linux
Content Source: articles/app-service/containers/app-service-linux-intro.md
Service: app-service
GitHub Login: @naziml
Microsoft Alias: wesmc

Hi @oleliabo, thanks for the feedback! We are currently investigating and will update you shortly.

Hi @oleliabo, this may be due to Proactive Auto Healing feature. It is an expansion on the Auto Heal offering. Proactive Auto Heal is a feature designed to setup default auto heal settings for every web app so that if they violate these rules then it will recycle the process. Proactive Auto Heal is automatically enabled by default but you can opt out of it. Here’s how you can opt out:

Go to the Azure portal and go to your Linux Web App for which you would like to disable the feature.
Under Settings go to Application Settings.
Under App Settings add “WEBSITE_PROACTIVE_AUTOHEAL_ENABLED” and set it to “False.”

We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Introduce subsystems for memory and loop

This pull request does:

Change the whitespace (?) of "DiscoPoP/DiscoPoP.cpp" a lot -- sorry for that, maybe you know how to avoid that?
move the injected functions to the directory "injected_functions/" so "functions/" is free to use
introduce separate files for some 'hidden' injected fucntions
move all memory-related stuff to the directory "memory/"
rename some files in "memory/" so that their filenames describe their content
move all function-related stuff to the directory "function/"
move all loop-related stuff to the directory "loop/"
introduce "share/include/debug_print.hpp" which uses RAII to print the entering and exiting of a function
Introduce the class "Timer" in "share/include/timers.hpp" which uses RAII to time a function
Add a benchmark for the MemoryRegionTree
Add a lot of unittests for "memory/" and "loop"

check-license.sh, LICENSE and DiscoPoP.cpp should now be unchanged -- there was an issue with the line ending


breadcrumb links don't work with persistent URLs

When trying to view pages using the ChronAm-style persistent URLs, the page throws an error:
NoMethodError in NewspaperWorks::Newspapers#page
Showing /home/vagrant/newspaper_works/app/views/newspaper_works/base/_newspaper_hierarchy.html.erb where line #11 raised:
undefined method `next_page_link' for #<#<Class:0x00000000088dce50>:0x00007f1f7c8f1ba8>

This is because the breadcrumb methods in NewspaperWorks::BreadcrumbHelper and NewspaperPagesHelper are not accessible by default to NewspaperWorks::NewspapersController which is responsible for handling the persistent URL requests.
This should be fairly easy to fix:

Create a app/helpers/newspaper_works/newspapers_helper.rb file:

module NewspaperWorks
  module NewspapersHelper
    include NewspaperWorks::BreadcrumbHelper
  end
end

Move the #previous_page_link and #next_page_link methods from NewspaperPagesHelper into NewspaperWorks::BreadcrumbHelper. (This is fine, since these methods are well within the scope of BreadcrumbHelper.)

Adjust specs accordingly.

There is a related issue with the display of Title pages via the persistent URLs.
In app/views/hyrax/newspaper_titles/show.html.erb, we need to add the "full"-ish path to the issue_search_form and all_front_pages_form partials, so that they can be rendered from NewspapersController.
This:
<%= render partial: "issue_search_form", presenter: @presenter %>
<%= render partial: "all_front_pages_form", presenter: @presenter %>

Should be something like:
<%= render partial: "hyrax/newspaper_titles/issue_search_form", presenter: @presenter %>
<%= render partial: "hyrax/newspaper_titles/all_front_pages_form", presenter: @presenter %>

Fixed via #173.


Sentinel UEBA enable - additional charges may apply clarification.

Hello, can you provide more detils on this section :
"No special license is required to add UEBA functionality to Microsoft Sentinel, but additional charges may apply. "
What does add charges mean?  You mean Ingestion to BehaviourAnalyticsInsights source increase or will it collect from other sources as well?
The statement alone is not giving the customers a clear expectation what charges they will be seeing from sentinel when enabling UEBA .

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

ID: 7761de39-1065-13ca-3bc2-860fad7eb354
Version Independent ID: f40bd956-7790-432b-f802-e17c04749f7e
Content: Use entity behavior analytics to detect advanced threats
Content Source: articles/sentinel/enable-entity-behavior-analytics.md
Service: microsoft-sentinel
Sub-service: microsoft-sentinel
GitHub Login: @yelevin
Microsoft Alias: yelevin

@vmonge Thank you for your inputs . We will investigate and update the thread.

@vmonge The sentinel pricing always depends upon the data in log analytics workspace that sentinel uses. The UEBA adds a new table within the existing log analytics workspace. Ingestion and analysis of UEBA related data add to the cost for the Sentinel which are referred to as additional charges.  the exact calculation will depend upon the amount of data ingested for UEBA activity. The not has been modified to include this information and the content team has been request to review and approve it accordingly . Once they have approved , the changes will be live .
Thank you .


fix(airline): update in_active for inactive

@windwp Sorry I forgot to update airline, precisely the one I use! So I notice after the update today.

@muniter  ok


Match versions by ~semvish compatibility

I'd like to see versions matched by semvish compatibility rather than regex. For example
http://api.jsdelivr.com/v1/jsdelivr/libraries?name=jq*&lastversion=~0.1
http://api.jsdelivr.com/v1/jsdelivr/libraries?name=jquery&lastversion=^1.2
http://api.jsdelivr.com/v1/jsdelivr/libraries?name=jquery&lastversion=1.x

I'd also like to see lastversion -> version
Related to https://github.com/jimaek/jsdelivr-g/issues/2

@jimaek thoughts? Should this supercede #39 or is that issue better

I believe semvish is more powerful so this issue is looking better. Do you agree?

Definetely agree, I would like to drop most of the minimatch stuff in v2 for more modern approaches.
However, if this goes in I think jsdelivr-g will also need a similar change

I dont have plans to change the logic of jsdelivr-g in the near feature unfortunately. Do you want to add it only to the API?

Working towards this with https://github.com/megawac/SemVish/commit/a02cf2378c662bfbce34e1c77c78a5559ff815da

I started working on this, but after finding out semvish can't handle all version formats, I don't think this is a good idea. We'd have to exclude those projects/versions from all lastversion searches.

I dont think that semvish is that important. If its too hard then lets skip this

:+1:


Using slideToLoop and changing slideshow visibility breaks controls

Check that this is really a bug

[X] I confirm

Reproduction link
https://codepen.io/violetoffice/pen/ExeBNvL/5a85676c17eddc7c4e04683518acdbcc
Bug description
I have multiple swiper instances on a page, but only one is visible at a time. I have interactions on the page that toggle the visibility of the swipers and advance them to specific slides using slideToLoop. The links above is a simplified version of the interaction to highlight the issue. To replicate the bug, follow these steps:

Advance first slideshow (1.1 -> 1.2) using a swipe or the navigation buttons.
Click toggle button. This hides the first slideshow and reveals the second.
Click toggle button again. This hides the second slideshow and reveals the first.
Try advancing the slideshow (1.1 -> 1.2) with the navigation button.

Expected Behavior
Slideshow should advance when navigation button is clicked.
Actual Behavior
The navigation buttons no longer work.

Removingswipers[uid].slideToLoop(0) resolves the problem, so this seems to be caused by the combination of changing the visibility of the swiper and using slideToLoop.
I've trued using observeParents: true and observer: true
I've tried using .update() to reinitialize the navigation

Swiper version
9.2.0
Platform/Target and Browser Versions
macOS 12.5, latest chrome and firefox
Validations

[X] Follow our Code of Conduct
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
[X] Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

[ ] I'm willing to open a PR

swipers[uid].slideToLoop(0, 0)


A way to indicate current viewer

Implement viewer visual indication for the Context Panel

The Gear icon remains visible to the viewer that has the Context Panel open.
DG 1.17.0

v1.17.3
Gear icon is not highlighted if properties panel was opened using context menu (instead of clicking the icon itself).

This feature works for all viewers except for the grid
1.17.4


Minimum viable functionality

Purpose of issue is to describe minimum viable functionality.
Suggestions:

Able to create/update ensemble metadata according to proposed standard
Able to export data according to the proposed standard
Work both inside RMS and outside.

Export data to meet current REP requirements

Regular surfaces
Polygons
(Able to scale to Tables, Seismic (Cubes?), Grid3D, Points, Well with same patterns.)

Work both in template runs (not through ERT) and in FMU runs (through ERT).

Not a requirement to produce valid metadata in template runs

All interaction with ERT through existing functionality (workflows, forward_jobs, etc).
All interaction with RMS through existing functionality.

I think this if fulfilled now 👍


Investigate failing tests but everything working..

Tests appear to randomly fail, or randomly pass? Investigate. 🤔

This is caused by the leaky nature of Waterline, instances of connections and collections are leaking between tests.


Using (?<=\n). in Find-Replace fails if there are multiple matches

Type: Bug
Doing Find-Replace with this regex (?<=\n). i.e. a character in front of a new line, will only work when either there is exactly one match, or you use Replace All instead of just Replace. This isn't an issue in Notepad++.
Steps to reproduce:

Create a blank file
Type a new line, then a single character
Open the Find & Replace panel and enable "Use Regular Extensions"
Hitting Replace WILL work for this
Undo the replacement, unless you replaced the letter with another letter
Type another new line and single character
Hitting Replace WILL NOT replace any characters
Hitting Replace All WILL replace all characters

The test file should look something like this :

a
a

Updating VSC to 1.91.0 didn't fix it.
Disabling all extensions didn't fix it.
VS Code version: Code 1.91.0 (ea1445cc7016315d0f5728f8e8b12a45dc0a7286, 2024-07-01T18:52:22.949Z)
OS version: Windows_NT x64 10.0.22631
Modes:

System Info

Item
Value

CPUs
AMD Ryzen 7 1700 Eight-Core Processor           (16 x 3000)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
63.95GB (34.56GB free)

Process Argv
--crash-reporter-id bc5176cb-bc61-4853-a890-23249e5aa58b

Screen Reader
no

VM
0%

Extensions: none
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
jchc7451:31067544
chatpanelt:31048053
dsvsc021:30996838
bdiig495:31013172
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupyter:31046869
newcmakeconfigv2:31071590
legacy_priority:31082724

From other testing I did, this seems to affect all (or at least a lot of) regular expressions that start with (?<=\n) and then tries to match anything that doesn't contain a new line. I originally found this by using (?<=\n)\{ to find code blocks I wanted to prefix

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


idea/2021.04: analyzing is cycling constantly

The analyzing is cycling constantly with 2<IP_ADDRESS>.2 and bazel 3.7.

The auto complete is showing during editing but it's automatically closed after a second once analyzing cycle starts again.

Cache invalidation resolved the issue for now. Will re-open the issue if it's encountered again.


Request: URL dupe detection to include Description posts in which that URL exists

If I am trying to do a Link Post but that link's URL exists in a Description post, I won't know that my post might be a duplicate.
For example, if I tried to do a Link post for:
https://mail.stacker.news/subscription/form
I would not be notified that there is this post:
Subscribe to SN's Saturday Newsletter
https://stacker.news/items/25342
Might it even be useful to show possible dup posts where that URL is in the comments too?

I'm not sure dupes is the place for this.
The problem is that people shouldn't be posting links in the discussion area generally if they aren't also providing other valuable context.
Closing because I think this solution is "heavy," but I acknowledge the underlying problem.


Software vulnerabilities detected during code analysis with ESBMC-WR tool

Steps to reproduce
Hello,
3 potential software vulnerabilities were found in code.
To identify this kind of vulnerabilities I used tool ESBMC-WR: https://github.com/thalestas/esbmc-wr
More about the tool: https://arxiv.org/pdf/2102.02368.pdf
Please, check the logs of analysis:
Expected behaviour
Our main objective was to check memory safety
properties (e.g., pointer dereference and memory leaks) while
performing the verification code.
Version of Vim
8.2.3908
Environment
Ubuntu 20.4
Logs and stack traces
issue #1
--------

[FILE] src/xxd/xxd.c

State 1 file xxd.c line 271 function huntype thread 0
----------------------------------------------------
p = 0 (00000000 00000000 00000000 00000000)

State 2 file io.c line 50 function fclose thread 0
----------------------------------------------------
Violated property:
file io.c line 50 function fclose
dereference failure: invalid pointer freed

issue #2
--------

[FILE] runtime/tools/ccfilter.c

State 4  thread 0
----------------------------------------------------
argv[1073741824] = 0

State 5 file ccfilter.c line 131 function main thread 0
----------------------------------------------------
Violated property:
file ccfilter.c line 131 function main
dereference failure: array bounds violated

issue #3
--------

[FILE] src/tee/tee.c

State 1 file tee.c line 72 function myfread thread 0
----------------------------------------------------
Violated property:
file tee.c line 72 function myfread
dereference failure: invalid pointer

Issue #1: I do not see the "io.c" file, xxd.c line 271 does not call fclose().
Issue #2:  I do not see how using argv[i][0]  can be wrong.  I don't understand the remark "argv[1073741824]"
Issue #3: I do not see how there can be an invalid pointer.
None of these have reproduction steps.  This is not useful, closing.

Hello @brammool
Thank you for the quick update and analysis.
In order to check the reproducibility of the issue 1, follow the steps:
1 - install esbmc-wr: https://pypi.org/project/esbmc-wr/
2 - Go to source code: /vim/src/xxd and check the code by command: esbmc-wr -v -e "--unwind 1" -f
Logs details:
########################################
[FILE] xxd.c
[ARGS] ['--unwind', '1']
[FUNCTION] huntype
########################################
ESBMC version 6.7.0 64-bit x86_64 linux
file xxd.c: Parsing
Converting
Generating GOTO Program
GOTO program creation time: 0.107s
GOTO program processing time: 0.002s
Starting Bounded Model Checking
**** WARNING: no body for function perror
**** WARNING: no body for function putc
**** WARNING: no body for function perror
Not unwinding loop 24 iteration 1 file xxd.c line 335 function huntype
Not unwinding loop 27 iteration 1 file xxd.c line 276 function huntype
**** WARNING: no body for function perror
**** WARNING: no body for function perror
**** WARNING: no body for function perror
Symex completed in: 0.002s (170 assignments)
Slicing time: 0.000s (removed 110 assignments)
Generated 4 VCC(s), 4 remaining after simplification (60 assignments)
No solver specified; defaulting to Boolector
Encoding remaining VCC(s) using bit-vector/floating-point arithmetic
Encoding to solver time: 0.000s
Solving with solver Boolector 3.2.0
Encoding to solver time: 0.000s
Runtime decision procedure: 0.078s
Building error trace
Counterexample:
State 1 file xxd.c line 271 function huntype thread 0
p = 0 (00000000 00000000 00000000 00000000)
State 2 file xxd.c line 291 function huntype thread 0
n1 = 8 (00000000 00000000 00000000 00001000)
State 3 file xxd.c line 328 function huntype thread 0
have_off = -9223372036854775808 (10000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000)
State 4 file xxd.c line 276 function huntype thread 0
Violated property:
file xxd.c line 276 function huntype
unwinding assertion loop
VERIFICATION FAILED

What is the exact version of Vim you are using?
You wrote 8.2.3908, but line 271 of that version is not in the function huntype.

Hello @k-takata
Line 271 is:
int c, ign_garb = 1, n1 = -1, n2 = 0, n3, p = cols;

can you please be specific on what version you tested?
https://github.com/vim/vim/blob/27708e6c7b6f444fd599f3dc5015336b002b874d/src/xxd/xxd.c#L270-L273
L271 for neither master nor v8.2.3908 isn't that line.

@janislley It looks that it is v8.2.3552 or older.
There are many changes in xxd.c after that. Could you test with the latest source code?

Hello @brammool
Thank you for the quick update and analysis.
In order to check the reproducibility of the issue 1, follow the steps:
1 - install esbmc-wr: https://pypi.org/project/esbmc-wr/
2 - Go to source code: /vim/src/xxd and check the code by command: esbmc-wr -v -e "--unwind 1" -f
Logs details:
########################################
[FILE] xxd.c
[ARGS] ['--unwind', '1']
[FUNCTION] huntype
########################################
ESBMC version 6.7.0 64-bit x86_64 linux
file xxd.c: Parsing
Converting
Generating GOTO Program
GOTO program creation time: 0.107s
GOTO program processing time: 0.002s
Starting Bounded Model Checking
**** WARNING: no body for function perror
**** WARNING: no body for function putc
**** WARNING: no body for function perror
Not unwinding loop 24 iteration 1 file xxd.c line 335 function huntype
Not unwinding loop 27 iteration 1 file xxd.c line 276 function huntype
**** WARNING: no body for function perror
**** WARNING: no body for function perror
**** WARNING: no body for function perror
Symex completed in: 0.002s (170 assignments)
Slicing time: 0.000s (removed 110 assignments)
Generated 4 VCC(s), 4 remaining after simplification (60 assignments)
No solver specified; defaulting to Boolector
Encoding remaining VCC(s) using bit-vector/floating-point arithmetic
Encoding to solver time: 0.000s
Solving with solver Boolector 3.2.0
Encoding to solver time: 0.000s
Runtime decision procedure: 0.078s
Building error trace
Counterexample:
State 1 file xxd.c line 271 function huntype thread 0
p = 0 (00000000 00000000 00000000 00000000)
State 2 file xxd.c line 291 function huntype thread 0
n1 = 8 (00000000 00000000 00000000 00001000)
State 3 file xxd.c line 328 function huntype thread 0
have_off = -9223372036854775808 (10000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000)
State 4 file xxd.c line 276 function huntype thread 0
Violated property:
file xxd.c line 276 function huntype
unwinding assertion loop
VERIFICATION FAILED

This doesn't mean anything to me.  With reproducing the issue I mean to
run xxd with some parameters and input, resulting in a crash, asan or
valgrind error.  Static analysis very often has false positives.
--
There is no right or wrong, there is only your personal opinion.
(Bram Moolenaar)
/// Bram Moolenaar -- @.*** -- http://www.Moolenaar.net   \
///                                                                      \
\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///


⚠ ClamAV has degraded performance

In 4c2e983, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 194 ms

Resolved: ClamAV performance has improved in f30b19f.


Add whenConfirmed alongside whenClosed

I'm submitting a feature request

Expected/desired behavior:

It would be nice to have a whenConfirmed method as a shortcut for:
dialogService.open(...)
.whenClosed(response => {
if (!response.wasCancelled) {
// do something
}
});

What is the motivation / use case for changing the behavior?

Oftentimes we just need to handle a "confirmed" outcome and discard a "cancelled" one.
This can be handled with rejectOnClose, but rejecting a promise seems too strong (akin to throwing an exception) for what is meant to be a regular operation (e.g. the user realizes the action about to be performed is not desired or just decides to not proceed).

Nevermind, I figured this out.


Gitcoin Bounty - What is Metamask and How To Connect it to the XDC Network

Judging Criteria
All submissions must contain clear and concise information with explicit instruction and images describing each step required to execute the process. An accompanying video in addition to the written content is highly desired.
All submissions will be put through an industry standard plagiarism detection tool to ensure that all submissions are the work and ideas of the person submitting for the bounty. If the plagiarism tools flags your submission you will be disqualified from participation in the bounty.
You will be provided with resources (if available) as an aid to help you get started. The sole act of submitting content for the bounty does not automatically qualify you for the bounty. Our team will review all submissions and will choose the submission whose content best fits the needs and requirements of the bounty.
Only one participant will be selected as the winner for the bounty, and they will be notified within 7 working days after the bounty has ended.
Description
Amount of Bounty
Grant Sponsor: XDC Foundation. All monies paid will be in XDC.
What will you be creating?
You will be creating how to documentation for the XDC Network. Some documentation has already been created, and you will read through it to ensure it works as intended, reads clearly or if it needs better clarification, then make those changes. Those items without documentation will be created from scratch.  Documentation will have images that describe or represents what's being done or described in your tutorial.
Details
What is Metamask and How To Connect it to the XDC Network
Create a document explaining what Metamask is, what it is used for, and how to connect it to the XDC Network.
What you will learn
This article will teach you what Metamask is, what Metamask is used for, and how to connect Metamask to the XDC Network.
What you will do

Introduce Metamask
Explain what Metamask is used for
Describe how to connect Metamask to the XDC Network with screenshots and detailed explanations.

Total Prize of Bounty
Total sum of up to $200.00 USD worth of XDC for this event, reward amount assigned at judge's discretion.
Further Details
This event will be an ongoing collaboration to create "how to" documentation for the XDC Network. All documentation will be open source and uploaded here:
https://docs.xdc.community/get-details/wallet-integration/metamask.md
Resources
These are some of the resources you have available to you where you will find the necessary information to complete your submission.

Metamask is a software cryptocurrency wallet used to interact with blockchains. It allows users to access their wallet through a browser extension or mobile app, which can be used to interact with decentralized applications (Dapps).
How to add the XDC network to metamask?
Open metamask and click on the button saying Ethereum Mainnet next to account icon to open a drop down

Click on add network

Click on add a network manually

Fill These details on respective columns:
Network Name: XinFin Network Mainnet
RPC url: https://rpc.xinfin.network/
ChainID:   50
Symbol:   XDC
Block explorer url: https://explorer.xinfin.network/
Then Click on Save.
*refer to image below

Click on Got it and you are done

@WalterBlueu the bounty was of $200, but the payout is only done for $100 worth of XDC why so??

@drew7wonders I had multiple submissions and picked a different submission as the winner and paid them $200.  I paid you $100 because I appreciated your content.  Are you both "forcreators" and "drew7wonders" on Gitcoin?  If so, why did you submit for this bounty twice?  In the future please follow the pull request process for your submissions and only submit once for each bounty.

@drew7wonders I had multiple submissions and picked a different submission as the winner and paid them $200. I paid you $100 because I appreciated your content. Are you both "forcreators" and "drew7wonders" on Gitcoin? If so, why did you submit for this bounty twice? In the future please follow the pull request process for your submissions and only submit once for each bounty.

Okay! thank you

Why this happen?

Why this happen,I can't submit my project
https://docs.google.com/document/d/19_SYW29xBp9QyHv_j-DDKtVyAByRS3YvqHN4pHCkEeQ/edit?usp=drivesdk


unable to add fields to resource.class.invite_key_fields

this seems like a (hopefully quick) documentation issue:
how do you add fields to resource.class.invite_key_fields for use in the new.html.erb template?
it seems designed to allow for it, but it's not obvious how to do so (at least the obvious things i tried didn't work).

Define invite_key in devise.rb initializer, invite_key_fields return invite_key.keys
Also, you can define them in model, as parameters for invitable:
devise ..., invitable: {invite_key: {email: Devise.email_regexp}}

thanks! i tried both methods successfully (on rails 5.0.1, devise 4.2.0). i had to use this syntax (in case anyone else is confused by this too) to add a :name field (for example):
config.invite_key = { email: Devise.email_regexp, name: Proc.new { 2..80 } }

in config/initializers/devise.rb, or
devise :database_authenticatable, ... ,
  :invitable, invite_key: { email: Devise.email_regexp, name: Proc.new { 2..80 } }

in my User model.
devise only defines email_regexp & password_length in the :validatable module, so it seems that any other field will need to pass in a custom validation as a Proc (as your documentation notes). i was hoping to reuse the validator from my User model but couldn't get that to work.

Proc.new { 2..80 } doesn't make sense there, it always return true
proc === value, calls proc with value as argument, and Proc.new { 2..80 } return 2..80 which is always true.
You would want one of these:
Proc.new { |v| (2..80).include? v.size }
Proc.new { |v| (2..80) === v.size }
/.{2,80}/

ah yes, thank you. i was in too big of a hurry to get that wrapped up. 😀


Generation with alignment dictionary

Hi, in scripts like generate-lines.lua there is an option (-aligndictpath) to add an alignment dictionary.
How should this dictionary be built?
Thanks!

Hi there! The alignment dictionary is used for training and decoding with vocabulary selection models. You first create an alignment using scripts/build_sym_alignment.py and then generate the dictionary using scripts/makealigndict.lua.

Indeed, my bad! It should indeed be the alignment file produced by fairseq preprocess. This does not work?

No, it actually does not work. If I run generate-lines.lua without the -aligndictpath option, it works correctly. If I add the option, ( "-aligndictpath path/alignment", where the alignment files corresponding to the source and target dictionaries are path/alignment.idx and path/alignment.bin), I get the following error:
/HD_4TB_1/Tools/torch/install/bin/luajit: bad argument #2 to '?' (out of bounds at /HD_4TB_1/Tools/torch/pkg/torch/lib/TH/generic/THStorage.c:202)
stack traceback:
[C]: at 0x7fbd7e883b70
[C]: in function '__index'
...nstall/share/lua/5.1/torchnet/dataset/indexeddataset.lua:412: in function '__init'
/HD_4TB_1/Tools/torch/install/share/lua/5.1/torch/init.lua:91: in function </HD_4TB_1/Tools/torch/install/share/lua/5.1/torch/init.lua:87>
[C]: in function 'IndexedDatasetReader'
/home/patrik/soft/fairseq/generate-lines.lua:66: in main chunk
[C]: in function 'dofile'
...ools/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50

Hi. I went back to this problem and found out that it is due to this bug:
https://github.com/torch/torch7/issues/1064
After updating torch to the version indicated in the issue page, I could train fairseq with the alignment dictionary produced by fairseq preprocess, and then decode using the alignment dictionary.
Thanks.


Fixes for the VC Bundle with Git on Windows

There were a couple of issues that meant that functionality of the vc bundle when using git on Windows just didn't work at all.
I have opened #2 and #3 to report these issues, and since the issues are fairly simple to fix I have opened this PR with my suggestions.
However, in light of this it may be worth checking the consistency of the other platforms and version control types. I would do this, but I only work with git.
EDIT:
I've browsed the source, and it seems that only the mercurial template uses Abr. Hash: rather than AbrHash: etc. I still think moving git-windows/vc.bat inline with git-unix/vc is the right call so there are no differences between the vc-git.awk files.
EDIT 2:
I've also checked the rest of the .bat files, and none of the rest of them need escaping either.

Sorry, just rebased my commits to include the signed-off-by line.


Make interactive window a sidebar

When using the interactive window, it shows up as a object in the editor so I can't move it to the right side bar. For small monitors using the editor + interactive + variable explorer side by side consumes a lot of space.

It would be great if we could move the interactive window to below the variable explorer.

@sbatten do we have an issue for supporting editors in panels?

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


Tactical collaborator check

PR to test changes.

r? @TapscottLab

:blush: I meant to open this in my test Highfive repository.


[5.1] [Name lookup] Deduplicate nominal declarations found via resolveTypeDeclsToNominal

Perform basic deduplication of the nominal type declarations found via
resolveTypeDeclsToNominal(). Fixes rdar://problem/53164203

@swift-ci please test

Does this also address rdar://51413553 ?


Conditionally render all delete items in confirm widget

fixes #4336

@akshatgarg12 could you please include screenshots of the final UX for this?


[Gally]: master <- dev

Automatically created by Git-Ally

:tada: This PR is included in version 2.2.25 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Update contributor guide to enable reviewers/approvers to indicate willingness to mentor

This is a Feature Request
The contributor guide should be updated to suggest/encourage that reviewers and approvers should indicate their willingness to serve as a mentor. This can and should be done in a general fashion or even on specific issues that would be "good first issues" or "good second issues" .
The motivation for this is that by being more proactive about providing mentors, we will have a greater likelihood of expanding the number of contributors to kubernetes/website.
/cc @sftim @zacharysarah

I'm going to mark this one as:
/sig contribex

/sig contributor-experience
?

/priority important-longterm


Validator - validate batch table hierarchy

@rms13
Spec: https://github.com/AnalyticalGraphicsInc/3d-tiles/tree/master/TileFormats/BatchTable#batch-table-hierarchy
Sandcastle demo in Cesium: http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=3D Tiles Batch Table Hierarchy.html&label=3D Tiles
This is one of the more complicated areas of the 3D Tiles spec, so let me know if you have questions. Also I welcome feedback on the spec writing itself if anything is unclear.

[ ] instancesLength must be equal to sum of length property of all classes
[ ] instances.length for a class must be equal to its length property
[ ] classIds.length must be equal to instancesLength
[ ] parentIds.length must be equal to instancesLength when parentCounts is not defined
[ ] parentCount.length must be equal to instancesLength
[ ] parentIds.length must be equal to sum of parentCount values
[ ] classIds values should be 0-(classes.length- 1)
[ ] parentsIds values should be 0-(instancesLength- 1)
[ ] parentCounts values should be 0-(instancesLength- 1)
[ ] cyclic dependencies not allowed

@lilleyse
Am I missing anything?


log-backup: Added metrics for log backup

What is changed and how it works?

Issue Number: Close #12534
(NOTE: this is based on #12511)
What's Changed:
Added the "Log Backup" row for tikv_details.

Added metrics for log backup.

Related changes

PR to update pingcap/docs/pingcap/docs-cn:
Need to cherry-pick to the release branch

Check List
Tests

Manual test (add detailed scripts or steps below)
(It looks good.)
No code

Release note
None

/sig migrate

/merge

/merge

/test


Enhanced Randomness through Seeding

Made modifications to the files to infuse seed-based randomness into the Mersenne Twister algorithm, enhancing the random address functionality. A new parameter, ‘seed’, has been introduced in .atp files. In the absence of an explicitly set seed, ATP will autonomously generate an initial random seed using the random_device() function. However, if a seed is specified, it will be relayed to the random_generator class. This ‘seed’ parameter can be incorporated within the “RandomDesc” message. Given that “RandomDesc” is utilized for both Sizes and Addresses, it can be employed for either one, both, or none of them.

I should have solved the problems


Improve logic to generate nightly release notes

This PR tweaks the logic that calculates the release notes for nightly releases (which are saved on the atom-nightly-releases repo: https://github.com/atom/atom-nightly-releases/releases) to be more resilient and always give at least some meaningful information.
Context
The previous logic only displayed a message with a link to the compare URL with the previous version, and used that same message from the previous version to get the commit from that previous version.
This caused a domino effect whenever one single nightly release went wrong: if release notes could not be calculated, this was propagated to future nightlies until somebody manually wrote the release notes of a version.
This has caused empty release notes for months.
Solution
In order to avoid this scenario, the release notes now contain two parts:

the first one shows the commit id of this release. This is independant from previous releases and will be displayed in every release (unless something really bad goes on).
the second part is the compare URL. To calculate this one we first try to find the previous release and then its release notes. If for some reason we fail doing so, this whole part is not displayed.

This logic allows self-recovery of the release notes: even if there are failures while calculating the release notes of a nightly release, future releases will be able to recover correctly.
Finally, this is a couple of screenshots of how the new release notes are displayed:

This seems fine, but is there any way we could grab the previous release's revision SHA from its tag rather than by scraping it out of the release notes? Found a stray log statement.

The problem is that nightly releases live in a separate repo (e.g https://github.com/atom/atom-nightly-releases/releases/tag/v1.39.0-nightly20), with no direct access to the real commit from atom/atom that originated it.
Maybe we could add the SHA1 of the commit to the tag, but not sure if that would mess up with other parts of the release infra...
Another option would be to create tags on atom/atom potinting to each nightly, but that would mean tooons of tags created.

Another option would be to create tags on atom/atom potinting to each nightly, but that would mean tooons of tags created.

I would actually be okay with this. It seems useful to me. But I'm also fine leaving things as they are. I figured there was probably a good reason you did it this way but wanted to clarify.

I figured there was probably a good reason you did it this way but wanted to clarify.

The only reason is that this is the way it was done before this PR 😅 and didn't want to change drastically the way nightly releases work without fully understanding the whole flow.
Maybe we can revisit the whole nightly releases flow separately and rethink some aspects about how it works, e.g:

Do we need to publish the releases on a separate repository?
Is it fine if we publish the nightlies along the stable and beta versions
in https://github.com/atom/atom/releases, or will it create too much noise?
Should we keep publishing the nightlies in a separate repo but create tags for them on the main repo?


New_collab_and_cleaning

improved trainer.py
created trainer_utils.py
last model collab notebook
sorry i just realized I branched from generate_hugging and not main...
so there are also the lattest developments on generate-hugging, which is not much

I will add a "to do next" in the trainer.py so we take care of those points you mentioned before the next training.


make install is failing

$ make install
go install -ldflags="-w -X github.com/redhat-developer/odo/cmd.GITCOMMIT=e6dd7ebc"
can't load package: package github.com/redhat-developer/odo: no Go files in /home/snarwade/go/src/github.com/redhat-developer/odo
make: *** [Makefile:15: install] Error 1

fix is in https://github.com/redhat-developer/odo/pull/1038


Failed to find any 'Lookup Rollup Summary [dlrs]' when creating Package

I am attempting to create a package that includes 5 roll-up summaries that I have created using your application. When I try and install this package into the other instance of Salesforce it goes in but then when I go to look at the roll-up summaries they are not there. The only thing that I can think of is that when creating the package I couldn't actually find the roll-up records, just the apex class and trigger. I am not sure what it is that I am missing here. Please help.
Thanks,
Chad

Ok, so if i understand correctly you are creating a new package that is an extension of the DLRS one? And you want to include in your package the rollups you have defined. You must add them to your package explicitly as described in this blog. Also make sure after installation that you are reviewing the Manage Rollup Summaries tab (this shows rollups defined via Custom Metadata) and not the classic Lookup Rollup Summaries tab (based on Custom Objects).

My issue is that I am actually not seeing the RollUps in order to add them to the package. When I click that section in the Add Components page nothing shows up. So I am not sure if I am missing a setting or something. In  your example, it is AwesomeRollupOnOpportunity with type Lookup Rollup Summary [dlrs] when I try and look for mine there aren't any that are showing up. Hope this makes sense.
Thanks,
Chad

And you have used the Manage Rollup Summaries page to add them? If you go under Setup and search for Custom Metadata Types, then find the Rollup Summaries object, click Manage Records. Do you see your records? Are they public or protected? Under the Add Components drop down you should see them, can you include a screenshot of this drop / page?

I just followed the path you gave me and I do not see them either. Is that where I need to make them in order to get them in the package? I thought just making them on the normal tab would suffice.

Yes, you cannot package Custom Object based rollups, only Custom Metadata based ones. For these you need to exclusively use the Manage Rollup Summaries tab.

Oh alright. That is probably my issue then. Thanks.

No worries, let me know if you still have problems and we can re-open this.


Visual studio 2013 CodeMap blocks the back button press

Steps to reproduce:

Visual Studio is open with source code on left monitor and codemap in it's own window on right monitor.
Set window focus at the source code by clicking anywhere in the source code.
Press the "back" button on the mouse

Expected behavior:
Navigate backwards similar to pressing the dedicated back button or ctrl - keyboard shortcut.
Actual behavior:
Sets window focus to code map window.

If you think of this as an undo stack. Where the top of the stack is the most recent event.

Navigate into code (F12)
Navigate into code (F12)
*Set focus on CodeMap window by clicking on it
Navigate into code (F12)
Navigate into code (F12)
Navigate into code (F12)

The plugin is able to "back" the two "Navigate into code" commands. As soon as it reaches the CodeMap, it appears to get stuck. Pressing back multiple times just toggles the focus between the source code window and the CodeMap window.
I hope this helps.

I believe this is a duplicate of #4, but we won't know for sure until that gets implemented. :smile:


Keep program running while server_http instance is listening?

Maybe not an issue, as much as a question, but what's a good way to keep a program running as long as a server_http instance is listening? The server example uses a infinite loop to listen for (and discard) data on stdin, which just makes the example "idle" with high CPU usage.
Could put a sleep in there, but I imagine it'd be better to somehow just wait, if the program is intended to run until explicitly killed (as is the goal in my case). Right now I'm just creating a mutex and signaler in main, and waiting indefinitely that way. It works, but feels hacky, since it's got nothing to do with the server running, really.
As far as I can tell there's no way to "directly" wait for the server, or am I mistaken? (Should add: I'm still a C++ novice)

Which example shows an infinite loop?

Hmm, none it seems. Must have been mistaken. I was thinking of this example, which just looks at cin.get() and which I adapted. I guess I wrapped that get in a while(true) to have it not stop on stdin input but just keep waiting. However, even adding that to the plain example, I'm not getting the high CPU usage - which is what you'd expect. However... when I attach Xcode's debugger, the program starts idling at 100%... thanks, Xcode, for sending me on a while goose chase.
So apologies; I was digging in the wrong place.
Still, as a matter of curiosity, is there a better way to wait for the server, instead of waiting for something unrelated like stdin? Functionally, main can wait forever on anything, but semantically I feel like it'd make more sense to wait for the server instance. I suppose I can add something in a derived class, of course, just wondering if I missed anything in base implementation.

You can wait on any number of things.  There is a blocking version of start() for the server.  It depends on what you want to do.


Mask sampler for geostationary satellite

Description

Mask array is used when observation resolution is higher than the MODEL.
When obs locations are at 500 m resolution in ABI and AHI, we want to output loc stream points from the cubed sphere grid, corresponding to the masked positions and their nearest neighbor halo points on CS.
Other added functions:

Add mask sampler for geostationary satellite (GEOS-R series)
Add geostation name into NC for station sampler
Add mapping between the IODA loc_index and trajectory NC output loc_index
Corrected a _RETURN in  subroutine MAPL_GetGlobalHorzIJIndex (@weiyuan-jiang), when I realized my run crashes otherwise.   Only after the ESMF_functionalities are called using global PE, then partial PE can return with success.

Related Issue

Motivation and Context

How Has This Been Tested?

Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Trivial change (affects only documentation or cleanup)

Checklist:

[ ] I have tested this change with a run of GEOSgcm (if non-trivial)
[x] I have added one of the required labels (0 diff, 0 diff trivial, 0 diff structural, non 0-diff)
[ ] I have updated the CHANGELOG.md accordingly following the style of Keep a Changelog

Fixed a few bugs in the sampler code.

Add allocate(X, _STAT) to sampler codes
Skip destroy_regen_grid when list(n)%end_alarm is active (the last time step in sampler)
Add extract_unquoted_item(STR1) to fix a string bug in geoval_xname(mx_ngeoval) in trajectory sampler


item-metastat css class missing in autocomplete demo

I am following https://material.angularjs.org/latest/demo/autocomplete for implementing autocomplete. I think item-metastat css class is missing. kindly confirm.

This repo is about core Angular.js (not AngularMaterial). Please, reopen at https://github.com/angular/material.


Use the create_environment wf to initalize an environment

Fixes https://github.com/pantheon-systems/platform/issues/57
@joshkoenig @nstielau This will not fix the above bug for old versions of terminus. Can I get a +1 on this?

@kibra we already had the create_environment WF, it just wasn't being used?  If so, this makes sense to me.  If it is not backwards-compatible, we could consider moving to the 1.0 release.

I'm ok with this PR. But if this is to fix an issue with the previous workflow, we should figure out how this gets into an actual release.

+1 for having this in the 1.0 release.

@nstielau create_environment is a new workflow. Not sure what you mean by backwards compatibility. This will not change terminus behavior as far as UX is concerned.
I think having this in the 1.0 release makes sense.

If it doesn’t change behavior, +1 to merge.
On Tue, Sep 15, 2015 at 5:00 PM, kibra<EMAIL_ADDRESS>wrote:

@nstielau https://github.com/nstielau create_environment is a new
workflow. Not sure what you mean by backwards compatibility. This will not
change terminus behavior as far as UX is concerned.
I think having this in the 1.0 release makes sense.
—
Reply to this email directly or view it on GitHub
https://github.com/pantheon-systems/cli/pull/483#issuecomment-140583863.

--
Nick Stielau | p<PHONE_NUMBER>
Director of Engineering | Pantheon


NoBreakCommentFixer - fix edge case

Perhapse a better way to write this fixer is to find the end of switch blocks, then backward iterate them?

Unrelated to this PR ish, but what about this test case:
<?php

$foo = 1;

switch ($foo) {
    case 1:
?>
<?php
    default:
        echo 'lol';
}

don't know, tbh don't care, we don't test such cases at all.
if you care and if it's failing - open a PR.
from my perspective - we could skip files containing multiple php code mixed with html

Actually the test case suggested by @GrahamCampbell was failing so I added it.

Thank you @julienfalque.


Update the vsmac uninstall step to also delete contents from ~/Library/Application\ Support/VisualStudio/7.0/LocalInstall/Addins/

~/Library/Application\ Support/VisualStudio/7.0/LocalInstall/Addins/ may include local installed add-ins. Add-ins not installed via the installer, but manually by the developer.

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

ID: 030a8363-a4d4-9391-0fc2-554656b905fc
Version Independent ID: 4a056ae9-03cb-074f-cffa-037f780dfbaf
Content
Content Source

abs3993, open it because the folder is not deleted.


Sso db sync

Create a playbook for state syncronization

oh should imove it into ops rn?

oh should imove it into ops rn?


Converting Seurat object into counts input file

Hi! I'm having trouble converting my Seurat object into a text counts input file for CellphoneDB. I followed the instructions here but I'm getting a ParseCountsException: Invalid Counts data from the counts_preprocessor. The error seems to be the result of this error: ValueError: could not convert string to float. I also tried converting the Seurat object into a 10x .mtx format but didn't manage to apply the rowData function to my Seurat object. I would greatly appreciate any tips on how to solve this!

Hi nea-k,
Thank you for using CellphoneDB and my apologies for the delayed reply. To help me understand why the text counts file you've extracted from your Seurat object contains strings instead of floats, would you mind sharing your Seurat object with me and also letting me have the exact commands from here you used to extract the counts data from the Seurat object? Please send access details to the Seurat object to<EMAIL_ADDRESS>Thanks!
Best,
Robert

Hi nea-k,
I also use Seurat (v5). The approach that worked for me was to just convert the entire object to anndata format. I use sceasy to convert the object to an anndata (.h5ad) format:
`seurat[["RNA3"]] <- as(object = seurat[["RNA"]], Class = "Assay")
DefaultAssay(seurat) <- "RNA3"
seurat[["RNA"]] <- NULL
seurat <- RenameAssays(object = seurat, RNA3 = 'RNA')
sceasy::convertFormat(obj = seurat,
from = "seurat",
to = "anndata",
outFile = "cellphonedb/whole/seurat.h5ad")`
If you are using Seurat V4 you don't need to conver to RNA3 assay.


why doesnt /ping update the context value inside the handler?

Describe the Question
why doesnt /ping update the context value inside the handler?
Reproducible Code
package main

import (
    "context"
    "log"
    "net"

    "github.com/cloudwego/hertz/pkg/app"
    "github.com/cloudwego/hertz/pkg/app/server"
    "github.com/cloudwego/hertz/pkg/common/utils"
    "github.com/cloudwego/hertz/pkg/protocol/consts"
)

func main() {
    h := server.New(
                server.WithOnAccept(func(conn net.Conn) context.Context {
                                c := context.Background()
                                return context.WithValue(c, "aaa", "bbb")
                        }),
        )
    h.GET("/ping", func(c context.Context, ctx *app.RequestContext) {
            ctx.JSON(consts.StatusOK, utils.H{"message": "pong"})
            log.Printf("value1 = %v", c.Value("aaa"))
            log.Printf("value2 = %v", c.Value("2"))
            c = context.WithValue(c, "2", uint8(1))
    })

    h.Spin()
}

Expected behavior
the value("2") of the context should be updated but it's not. how to get it done?
Screenshots
If applicable, add screenshots to help explain your question.
Hertz version:
0.6.2

Why does "2" have a value? I don't see you assigning a value to "2" before printing

You can use the debug tool to help analyse the problem

@li-jin-gou , i've updated the code below
sorry can you pls explain
//why 2nd run c.Value("2") is not 1? it is still nothing. isn't c updated below?
alternatively, how do i store a "context" value that is updated on subsequent runs that doesnt call "server.WithOnAccept"?
basically i have something inside server.WithOnAccept, i would like to store a another key in context so subsequent runs use the value already stored first time.
package main

import (
        "context"
        "log"
        "net"

        "github.com/cloudwego/hertz/pkg/app"
        "github.com/cloudwego/hertz/pkg/app/server"
        "github.com/cloudwego/hertz/pkg/common/utils"
        "github.com/cloudwego/hertz/pkg/protocol/consts"
)

func main() {
        var i uint8 = 0
        h := server.New(
                server.WithOnAccept(func(conn net.Conn) context.Context {
                        log.Printf("only run once if ctx is kept alive right?")
                        c := context.Background()
                        if i == 0 {
                                i++
                                return context.WithValue(c, "aaa", "bbb")
                        }
                        return context.Background()
                }),
        )
        h.GET("/ping", func(c context.Context, ctx *app.RequestContext) {
                ctx.JSON(consts.StatusOK, utils.H{"message": "pong"})
                log.Printf("value1 = %v", c.Value("aaa"))
                log.Printf("value2 = %v", c.Value("2"))
                //why 2nd run c.Value("2") is not 1? it is still nothing. isn't c updated below?
                c = context.WithValue(c, "2", uint8(1))
        })

        h.Spin()
}

Why does "2" have a value? I don't see you assigning a value to "2" before printing

Each request is a new ctx.

@li-jin-gou but according to the logic, it is still returning "aaa" value as "bbb" which should happen right?
i == 1, should return context.Background()
        h := server.New(
                server.WithOnAccept(func(conn net.Conn) context.Context {
                        log.Printf("only run once if ctx is kept alive right?")
                        c := context.Background()
                        if i == 0 {
                                i++
                                return context.WithValue(c, "aaa", "bbb")
                        }
                        return context.Background()
                }),
        )

@li-jin-gou this is the output for running /ping multiple times value1 is showing bbb all the time while value2 =
./main
2023/04/17 23:10:42.912572 engine.go:617: [Debug] HERTZ: Method=GET    absolutePath=/ping                     --> handlerName=main.main.func2 (num=1 handlers)
2023/04/17 23:10:42.913132 engine.go:389: [Info] HERTZ: Using network library=netpoll
2023/04/17 23:10:42.913648 transport.go:109: [Info] HERTZ: HTTP server listening on address=[::]:8888
2023/04/17 23:10:48 only run once if ctx is kept alive right?
2023/04/17 23:10:53 value1 = bbb
2023/04/17 23:10:53 value2 = <nil>
2023/04/17 23:10:54 value1 = bbb
2023/04/17 23:10:54 value2 = <nil>
2023/04/17 23:10:55 value1 = bbb
2023/04/17 23:10:55 value2 = <nil>
2023/04/17 23:10:55 value1 = bbb
2023/04/17 23:10:55 value2 = <nil>
2023/04/17 23:10:55 value1 = bbb
2023/04/17 23:10:55 value2 = <nil>
2023/04/17 23:10:56 value1 = bbb
2023/04/17 23:10:56 value2 = <nil>
2023/04/17 23:10:56 value1 = bbb
2023/04/17 23:10:56 value2 = <nil>
2023/04/17 23:10:57 value1 = bbb
2023/04/17 23:10:57 value2 = <nil>
2023/04/17 23:10:57 value1 = bbb
2023/04/17 23:10:57 value2 = <nil>

You can use the debug tool to help analyse the problem

@li-jin-gou how to use and where is the "debug tool" documentation? i cant seem to find anything on "debug tool"
can you explain why c.Value("aaa") is always there on all subsequent calls but c.Value("2") is never there? since ctx is new with each call and "aaa" is not entered. how is this possible?

use goland break point

If you find a problem,  welcome make a PR

HTTP 1.1 keep alive causes this problem

@li-jin-gou so how to workaround? i'm using http2.

what's the workaround?
what's the alternative solution?


No app icon

I'm using this to assemble my application electron-packager build MyApp --out=dist/ --app-version=0.25.1 --icon=assets/icon.ico --prune but the application doesn't show up with an icon.
I can see the icon when using alert(), but not in the dock or in finder.
I'm using the latest version (0.3.3) (but the problem remains in 0.3.1).
Here's the alert and about box.

Here's finder

and the dock

I'm using Electron 0.25.1 with node v0.12.1.
Here's the icon I'm trying to use: http://www.filedropper.com/icon_4
What could be the problem? Thanks.

i'm not 100% sure on this but try an .icns file rather than a .ico

That solved the problem. Thanks. I used this online tool to convert the icon. https://iconverticons.com/online/


Simplify top-level key segment names used to access a single entity in a collection

The key predicate used to access a single entity in a collection shouldn't contain the entity type name in the OpenAPI description. This is to help disambiguate the key property from other property identifiers that are named in the format of EntityName+Id e.g., DeviceId in Device entity and AppId in Application entity.
Problem
Customers find it difficult to disambiguate the following:

Get-MgDevice -DeviceId $Device.Id vs Get-MgDevice -DeviceId $Device.DeviceId
Remove-MgDevice -DeviceId $Device.Id vs Remove-MgDevice -DeviceId $Device.DeviceId
Get-MgApplication -ApplicationId $Application.Id vs Get-MgApplication -ApplicationId $Application.AppId

Solution
Rename all key parameters from Entity+Id to Id. This has the hidden benefit of adding piping support to PowerShell since the key parameter names will match object id properties.

Get-MgDevice -Id $Device.Id
Remove-MgDevice -Id $Device.Id
Get-MgApplication -Id $Application.Id

Steps to fix this
Change how key predicates are represented in the OpenAPI description.

Impact

Breaking change. For PowerShell, we can make this switch when we move v2.

Related to https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/906

Fix: Set PrefixEntityTypeNameBeforeKey to false

@irvinesunday @peombwa I understand this would be a breaking change and we need to wait for PowerShell V2 but @maisarissi  tells me it's possible to use aliases. Is this something we want to do or wait for V2?

@RabebOthmani, given the thousands of APIs in MS Graph, aliasing is nearly impossible since it needs to be done by hand per parameter. As an alternative, can we spin a vNext service instance that we can use to test DevX API changes that will go into PowerShell v2?

That's my bad then @peombwa . I thought we could alias in an automated way, adding something to our current pipeline generation.
Yes, please, let's use it for v2 only.


Object detection producing incorrect results on mobile (ios)

Object detection SSD trained and tested to produce expected results in PC.
http://download.tensorflow.org/models/object_detection/ssd_inception_v2_coco_2018_01_28.tar.gz
https://github.com/tensorflow/models/blob/master/research/object_detection/samples/configs/ssd_inception_v2_pets.config
Model works well and produces accurate results on PC.
After converting to tflite and loading in mobile, the camera view shows incorrect detection (several detection of same class and in fixed place even when moving the camera).

Found a similar reported issue - https://github.com/tensorflow/tensorflow/issues/25746

@Lhogeshwaran, There is a objection detection model in Tflite for iOS.
https://github.com/tensorflow/examples/tree/master/lite/examples/object_detection/ios

@Lhogeshwaran Could you also describe how exactly you loaded the model on mobile, and how you preprocessed the inputs?

Thank you both!
@yyoon I converted the model to the .tflite format, placed it inside ObjectDetection/Model and changed the ModelDataHandler modelInfo and labelInfo to point to the custom model.

I used the saved_model.pb to check the output by capturing photos/videos using the mobile and using them to test in the system

@Lhogeshwaran We see that you are using older version of tensorflow .Many bug have been fixed in latest version. We recommend that you upgrade to latest stable version of tensorflow 2.6.0 and let us know if the issue still persists in newer versions .Thanks!


Update README.md

The service created with srvany-ng.exe is not working as it should, so I used another tool, NSSM.
It is a lighter service manager that works better than windows srvany. It also keeps the service always running and if it dies it will be restarted automatically, in addition it is possible to store the logs in a text file.

Thanks!