Namespace prefix inheritance produces inefficient output

It looks like prefix handling is slightly off when children use a prefix mapping inherited from an ancestor. For example, take the XML document:
<?xml version='1.0'?>
<root xmlns:x='urn:very-long-urn'>
  <x:child/>
  <x:child/>
  <x:child/>
</root>

If you parse and output the document with default writer settings, you end up with something like this:
<?xml version='1.0'?>
<root>
  <x:child xmlns:x='urn:very-long-urn'/>
  <x:child xmlns:x='urn:very-long-urn'/>
  <x:child xmlns:x='urn:very-long-urn'/>
</root>

This output seems sub-optimal. First, it's longer than the input. Second, it is more difficult to edit later because the prefixes all refer to different URN mappings. It would be better to maintain the single URN mapping wherever it is defined.
Additionally, it is difficult to see what is happening because Element doesn't have any way to see existing prefix-to-namespace mappings.
I propose two separate changes:

Add a method on Element to see what prefixes have already been mapped there
Always put the prefix definition on the element it was originally defined, even if it is only used in ancestor nodes

If there's buy-in, I'm happy to work on PRs that address both issues.
Example code (fails assertion):
let xml = "<?xml version='1.0'?><root xmlns:x='urn:very-long-urn'><x:child/><x:child/><x:child/></root>";

let package = sxd_document::parser::parse(xml).unwrap();
let doc = package.as_document();

let mut output = Vec::new();
sxd_document::writer::Writer::new().format_document(&doc, &mut output).unwrap();
let output_str = String::from_utf8(output).unwrap();

assert_eq!(output_str, xml);

Always put the prefix definition on the element it was originally defined

It seems like this wouldn't catch the case of (pseudocode)
let a = make_element(URI_A, "a");
let b = make_element(URI_A, "b");
let c = make_element(NULL, "c", [a, b]);

This would ideally output as
<c xmlns:x="...URI_A...">
  <x:a />
  <x:b />
</c>

Even though the namespace was never defined on the parent (c).
Additionally, if the parent were in the URI:
let a = make_element(URI_A, "a");
let b = make_element(URI_A, "b");
let c = make_element(URI_A, "c", [a, b]);

Then we could just do:
<c xmlns="...URI_A...">
  <a />
  <b />
</c>

Doing the most space-efficient output is fairly complicated; it may be easier to aim for "source reproducibility" (which is what your test does).
Space-efficiency may be better viewed as some other function that a user could call before outputting the document (either on the Writer or the Document itself?).

Additionally, it is difficult to see what is happening because Element doesn't have any way to see existing prefix-to-namespace mappings.

Add a method on Element to see what prefixes have already been mapped there

Is this method needed for the functionality or just as a debugging aid?

Overall I'm in favor of the direction!

I think "source-reproducibility" is the way to go. It definitely makes sense about minimizing size being tough (might even be NP-complete? I wonder if there's a paper out there).
I was mostly thinking of trying to mimic the XML document as closely as possible within the data structures. This gives the consumer of the library lots of control over exactly where prefixes are defined. Also, I think it might also simplify some of the scoping code in writer.rs.

Is this method needed for the functionality or just as a debugging aid?

It would actually be useful for my current project, a Rust implementation of RFC 5261. Also, just for completeness -- it's a part of the XML document on disk, so it would be unusual that it isn't visible from inside the library. That said, I know I have a niche use-case, and most people are just trying to parse or generate some XML without worrying about the namespaces too much.

I am not convinced that source-reproducibility is a good target. It offers little actual use but opens many problems with respect to the XML data model. This is because the XML data model is defined in terms of its infoset, not of its concrete (textual) representation. Namespace prefixes is a pain but not the only one if you aim for source-reproducibility. I can also think of

Characters or external entities or entity references,
CData or text,
attributes order,
single or double quoted attributes,
<foo></foo> or <foo/>,
white spaces inside tags,
encoding

An more interesting feature would be Canonical XML

trying to mimic the XML document as closely as possible within the data structures.

We should definitely add functionality first, but the back of my mind worries about performance. Tracking everything about the document in the data structures would probably be overly expensive and/or annoying to deal with.
I also want to ensure that XML generated from pure code doesn't have a disadvantage compared to XML read from a file (or vice versa!).

This gives the consumer of the library lots of control over exactly where prefixes are defined
most people are just trying to parse or generate some XML without worrying about the namespaces too much.

My main concern with this is to avoid requiring users to deal with namespaces when they don't care do. This is why most things take a string (no namespace) or a tuple of strings (namespace). So long as we can keep the "typical" path straightforward, I'm pretty happy.

I can also think of

What's interesting here is that (almost?) all of the things you list are what I would consider output options, along the lines of the Writer that @danieldulaney just introduced. While it's true that conceptually each of those settings could be changed on a per-element basis, my gut says that in practice most XML processors have a single uniform mode that they default to (or accept, in some sad cases).

more interesting feature would be Canonical XML

It certainly seems like that it might be a better first target, especially since it's somewhat defined and standardized.

Thank you both for your contributions! This is the most activity that this repo has seen in a while and it's exhilarating. ❤

(almost?) all of the things you list are what I would consider output options

Single-vs-double quotes already are an output option, and there's a pretty clear path to implementation of the others in #70 (with the possible exceptions of CDATA and the definite exception of external entities).

Canonical XML

This seems like a really great additional feature. I think it might work best as a standalone transformation operating on a Document object, though I could also potentially see it also working as an output option.

Tracking everything about the document

I think namespace prefix declarations are worth tracking (unlike attribute order, quoting style, etc) because prefix declarations are attributes. Automatically generating prefix declarations for unknown elements makes sense, but it is also important to expose the location of explicit prefix declarations to the user, along with the ability to create new mappings (exists) and remove existing mappings (doesn't exist). Having control over which attributes (including prefix declarations) are present on every element is an important feature. For example, I'm not sure how I could use this library to transform this:
<root xmlns:n="namespace">
  <child>
    <n:grandchild/>
  </child>
</root>

into this:
<root>
  <child xmlns:n="namespace">
    <n:grandchild/>
  </child>
</root>

and back again.
Also, if all prefix declarations are visible on a particular element, it enables a fast, stack-based write implementation. You can maintain a stack holding the ancestor elements, and when you encounter a QName you check back through the stack for any prefix declarations (or a default namespace declaration) that match, falling back to generating a new prefix declaration on the current item (which gets used if any children use that namespace). I have a hunch (but would need to benchmark) that this faster than the current approach of keeping a stack of PrefixScope structures. It would definitely be cleaner code to reason about.


Update versions

Context
The changes in PR:https://github.com/oracle/weblogic-azure/pull/275 missed the version update.

@edburns could you help review this PR?


Is the term attribute used uncanonically?

if i understand the sections module correctly, i have the impression that the term attribute  is used uncanonically with regards to Python's oop terminology. in that jargon, a property  is a data object or descriptor that is bound to a class or instance, while a method  is a callable that is bound to a class. an attribute is a union of both.
unless i'm missing something, the term property  should be used where attribute is used atm in the sections module.

You're right that I'm not using "attribute" correctly, but don't think "property" would be correct either.  Just so we're on the same page, this is how I'm using the terms:

Property: a data descriptor, specifically one created the @property decorator.
Method: a callable bound to a class.
Attribute: not one of the above (and also not a inner class)

I have a more narrow view of what "property" means, which is why I don't think it's a good term for "non-method/non-class attribute".  Unfortunately, there doesn't seem to be an official definition of "property", but I think my definition is more consistent with general usage and with the way it's used in the stdlib documentation, e.g. inspect, new-style class, and property.  It's also the case that a property can be a method, just like an attribute can.
Maybe "data member" would be a more accurate term for a non-method/non-class attribute, but it feels to unpythonic to me (I associate the term more with statically-typed languages like C++).
After thinking about this for a bit, I'm inclined to stick with the terminology I have.  It's not strictly correct, but I haven't been able to come up with an alternative I like better.  I also think that it fits with the colloquial use of the term "attribute", although maybe that's just my perception.
On a related note, right now autoclasstoc groups descriptors in with methods, but I'm thinking now that that might have been a mistake.  After all, descriptors have the same interface as attributes, so it would make more sense for them to be grouped together.

i see your point regarding property.
i'd still object that your use of attribute is uncommonly narrow. also mind the builtins getattr, hasattr, setattr and AttributeError. and i find it misleading regarding sections.is_attribute and the contributed sections that rely on it.

On a related note, right now autoclasstoc groups descriptors in with methods, but I'm thinking now that that might have been a mistake. After all, descriptors have the same interface as attributes, so it would make more sense for them to be grouped together.

yep, that's exactly the question that got me started with this question. in docs i'd always separate callables and "data members" due to their distinct usage and purposes. at least for me, it is helpful when grasping an api that's new to me.

I looked around a little more, and I now think that "data attribute" is the most correct term, based on its usage in the stdlib docs here.  I also found that autodoc uses .. attribute:: and :attr: to cross-reference data attributes, and there may be some value in staying consistent with that.
I think what I'll do is rename "attribute" to "data attribute" everywhere in sections.py and in the docs, with the exception that I'll keep the "public-attr/private-attr" section keys the same.  This removes most of the ambiguity, and keeps the usage of "attr" in *.rst files consistent with autodoc.

that is much clearer. i wouldn't consider anything from Sphinx as an authority when it comes to naming things though.


Deck.js Plugin, Panorama Backgound

This is a Plugin for Deck.js that enables an easy setup for a panoramic background image, pretty much like in the android launcher.
It requires a minimum setup, is very easy to use and supports sub-slides.
Setting a Background for single Slides hides the panorama background for the slide.

@braandl Thanks for the plugin! This repository doesn't really accept new plugins, however. I encourage you to create the plugin as its own repository under your control and then link to it in the wiki.


[IDEA] - Spotify support

Create a Spotify app and sync it with the search command
https://developer.spotify.com/documentation/web-api/
https://www.youtube.com/watch?v=p4lP96Tiv9s

Not implementing this for now


SUBMARINE-490 Test to synchronize user information from LDAP server.

What is this PR for?
Test to synchronize user information from LDAP server.
What type of PR is it?
Feature
Todos

[ ] - Task

What is the Jira issue?

Open an issue on Jira https://issues.apache.org/jira/browse/SUBMARINE/
Put link here, and add [SUBMARINE-Jira number] in PR title, eg. [SUBMARINE-23]
https://issues.apache.org/jira/projects/SUBMARINE/issues/SUBMARINE-490?filter=allopenissues&orderby=priority+ASC%2C+updated+DESC

How should this be tested?

First time? Setup Travis CI as described on https://submarine.apache.org/contribution/contributions.html#continuous-integration
Strongly recommended: add automated unit tests for any new or changed behavior
Outline any manual steps to test the PR here.

Screenshots (if appropriate)
Edit the example.ldif file to add user in LDAP server.

Use testList() to test and get the user name which in LDAP server.

The user name in LDAP server.

Questions:

Does the licenses files need update? No
Is there breaking changes for older versions? No
Does this needs documentation? No

@pingsutw This PR is a semi-finished product and I am helping @Eroschang  improve it.

Gotcha, Thanks @liuxunorg


Fixed Python runtime packaging for the Lambda layer. TimeoutInSeconds…

… is now optional in RunConfig model.
Issue #, if available:
Description of changes:

Fixed Python runtime packaging path in Lambda during canary run.
TimeoutInSeconds attribute during RunConfig definition is now optional.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Looks good


177256960 add set point tool

This PR adds a set point tool to the seismic model.  Changes includes:

rename lat-long tool to Set Region
add Set Point button
when in set point mode a single lat/long point can be added and moved around the map
Set Point and Set Region only appear in Seismic unit
points or region are cleared when the mode is exited

Can test here:
http://geocode-app.concord.org/branch/set-point/index.html

I think this is fine. One question is whether this could have been done with an additional property in LatLngRegionDrawLayer, since it seems that 90% of the component is the same. But either way is fine.
Only other question is whether the single point should really be labeled "Corner 1".

Yeah, I was expecting them to diverge more so I started with 2 modules.  I'll make a note to try to refactor this back into a single module if time permits in the sprint.  I also fixed the label.  It shouldn't say "corner 1."  Thanks for catching that.


The publishing process is already working?

I tried to upload the ZIP file several times and it hangs. After minutes it retunred this error:
The following checks failed:
Package acceptance validation error: ValidationFatal UnsuccessfulHttpRequestException thrown with message: Unsuccessful status code of InternalServerError returned by https://general-a-eus2.falconprod-sf.trafficmanager.net/extensionassetvalidator/v1/validate. Content: Code: PAC-ValidationFatal
Thanks

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

ID: 303075ec-ed9b-7ba4-15c5-242f93d53eb2
Version Independent ID: 15d3653d-af25-8ee7-2e94-01057a734de4
Content: Publish An Extension - Microsoft Edge Development
Content Source: microsoft-edge/extensions-chromium/publish/publish-extension.md
Product: microsoft-edge-chromium
GitHub Login: @MSEdgeTeam
Microsoft Alias: msedgedevrel

I was able to upload my extension today. Although it failed on the first upload. So you might have to retry it a few times.

Still not working for me

I have the same issue as felipepessoto, the uploading process hangs without any outcome. I have tried few times, even with the extension which attached to "Getting Started Tutorial". I have a company account that was authorized.

I have the same issue as felipepessoto, the uploading process hangs without any outcome. I have tried few times, even with the extension which attached to "Getting Started Tutorial". I have a company account that was authorized.

It may sound strange, but can you try uploading it from another ip address/network.
Another thing no one tried yet is uploading it from another device. You may try it from your phone, laptop, desktop or tablet.
Since it's a server error it could also be Azure related. Because I think the website is hosted in Azure. There are multiple Azure server parks in the world. You may try to connect with another server park by uploading it via a VPN in another continent.
Those are just some guesses, but the 3 things we haven't tried yet.

I have the same issue as felipepessoto, the uploading process hangs without any outcome. I have tried few times, even with the extension which attached to "Getting Started Tutorial". I have a company account that was authorized.

It may sound strange, but can you try uploading it from another ip address/network.
Another thing no one tried yet is uploading it from another device. You may try it from your phone, laptop, desktop or tablet.
Since it's a server error it could also be Azure related. Because I think the website is hosted in Azure. There are multiple Azure server parks in the world. You may try to connect with another server park by uploading it via a VPN in another continent.
Those are just some guesses, but the 3 things we haven't tried yet.

I tried to upload it via another network, and it works fine. Thanks:)

Aha, then we have finally found an issue!
My guess would be that the server remembers something per ip address that blocks the upload process. Or the connection itself can become corrupt per ip address.

Disable any ad blocker you might be running.
I had to disable uBlock Origin.

If you are facing any issues with respect to the publishing process, please feel free to write to us at<EMAIL_ADDRESS>We'll try our best to resolve the issue.


Add is_geographic or is_projected boolean property to meshkernel instance

Is your feature request related to a problem? Please describe.
Quick question. When we want to save a meshkernel instance as a netcdf file, it is good to add "projection_x_coordinate" or "longitude" and other attributes. For this we need to know whether the meshkernel instance is projected/cartesian or spherical. Whether it is spherical or spherical accurate is irrelevant in this case, since the attributes would be the same. Maybe it is also useful to add a crs (coordinate reference system) to the meshkernel instance, but that might be out of the scope of meshkernel.
Describe the solution you'd like
I would like to avoid checking on mk.get_projection()==meshkernel.ProjectionType.CARTESIAN in several packages (dfm_tools, xugrid, hydromt, hydrolib-core and maybe in the future external packages also). Is there a boolean property of the meshkernel instance that provides this information? If not, could it be created?
For instance, when converting a meshkernel instance to xugrid.UgridDataset (xugrid.Ugrid2d) with xugrid.Ugrid2d.from_meshkernel() we need to know it:
https://github.com/Deltares/xugrid/blob/a021f190bc35dae4b325a11569f9d87d600bc9be/xugrid/ugrid/ugrid2d.py#L193

The suggested solution does not make sense because more than 2 projection types are possible in the backend. Currently 2 are fully supported in MKPy for the time being.  What you can do is write a small function that does that:
def projection_is_cartesian(projection_type: ProjectionType):
  return projection_type == meshkernel.ProjectionType.CARTESIAN

Then use it as follows: if(projection_is_cartesian(mk.get_projection())): ...


auto scroll still happen when I swipe between images

when I set autoPlayInterval to 3 seconds, and when I wait around 2 seconds and then swipe to a different image. After 0.5 seconds or so, it will auto-swipe to the next image. I guess the idea is when I swipe to a different image, the interval should be reset.

Agree this would be a very nice feature, the way it works now isn't really how most users would expect it to work.


Module bot found

I don't know why but his showing this error
ModuleNotFoundError: No module named 'Resolver'

Hi @Nebu134, Thank you for trying out the tool. Can you please share the entire error trace to get the complete picture? I just tried it on the side, and it works as expected.

Thank you for responding to my issues
And yes I installed the requirements.txt
And when I run the tool i get this error
./spoofcheck.py google.com
Traceback (most recent call last):
File "/home/kali/g/spoofcheck/./spoofcheck.py", line 7, in
import emailprotectionslib.dmarc as dmarclib
File "/usr/local/lib/python3.11/dist-packages/emailprotectionslib/dmarc.py", line 3, in
import Resolver
ModuleNotFoundError: No module named 'Resolver'
I installed Resolver but it still doesn't work

Oh, that's strange. Can you create a virtual environment and try to run it from there?

Yes it works thank you for helping me

Yes it works thank you for helping me

Yes it works thank you for helping me

Yes it works thank you for helping me

Python libraries can be a pain to manage sometimes. It's good to know that it worked for you.


The PPX nightmare continues...

Of course the examples on this project do not include the configuration files so we are left to guess which combination of npm versions work together.
These are my test results so far:
On Mac->
package.json file with:
"@jsiebern/bs-material-ui": "1.2.0",
"@jsiebern/bs-material-ui-ppx": "1.0.5"
OR
"@jsiebern/bs-material-ui": "1.3.0-zero.2",
"@jsiebern/bs-material-ui-ppx": "1.1.0-zero.2",
OR
"@jsiebern/bs-material-ui": "1.3.0-zero.4",
"@jsiebern/bs-material-ui-ppx": "1.1.0-zero.4",
bsconfig.json:
"ppx-flags": ["./node_modules/@jsiebern/bs-material-ui-ppx/ppx"],
Results: Fails with Fatal error: exception Failure("Ast_mapper: OCaml version mismatch or malformed input")
The only way you can get this to work is changing the ppx flag to use ppx6:
"ppx-flags": ["./node_modules/@jsiebern/bs-material-ui-ppx/ppx6"],
On Linux Alpine ->
No combination of packages and ppx or ppx6 flags for the bsconfig.json seems to work.
On Linux Ubuntu ->
Any combination of
"@jsiebern/bs-material-ui": "1.3.0-zero.2",
"@jsiebern/bs-material-ui-ppx": "1.1.0-zero.2",
Works ONLY if you use ppx in the flags:
"ppx-flags": ["./node_modules/@jsiebern/bs-material-ui-ppx/ppx"],
It fails if you use ppx6.
What am I doing wrong?

Resolution:
After much more testing it seems that the only PPX package that works across ALL platforms with (bsconfig.json):
"ppx-flags": ["./node_modules/@jsiebern/bs-material-ui-ppx/ppx"],
It is this version (package.json):
"@jsiebern/bs-material-ui-ppx": "1.1.0-test.2"
Notice there is no ^ on the version number.
This works even in AlpineLinux.
Now for some reason in Ubuntu it also works with the ^ version modification but if you want to fix your CI just use the package above.
I will leave this open because I think the author should promote this version to be the default on the npm/yarn install.

Sorry about all the confusion, I'll take some time to get an update out soon. I'll deprecate the old API then and will clean up that version mess of the PPX 👍

This issue should be adressed with the latest package releases 😃


Fix the dropdown (select) in the button [+ Create dApp]

If the user passes the mouse over the button [+ Create dApp] and tries to select one of the options below without passing the mouse over the arrow of the selection the dropdown disappears.
Steps to reproduce

Pull the master branch of the moralis-admin to you machine
yarn start api/front
Click in the button [+ Create dApp]
Try to get one of the options without passing the mouse over the arrow

What is the current bug behaviour?
The select options disappears and the user needs to pass the mouse over the button again and need to pass again above the arrow to get all the options for creating a server.
What is the expected correct behaviour?
This modal should close only if the user clicks out of the box or in one of the options (perhaps check this with someone of UX/UI can give a more precisely opinion about this)
Relevant logs and/or screenshots
https://www.loom.com/share/33c3c2871e7b406c8ab0c9ef057d475f[](https://github.com/web3ui/web3uikit/issues/new#ps)
PS
The issue happens more often in Firefox, but also happens in Chrome.

@rayyan224 i assigned this to you because you built it and i tried to add a quick fix for you but no joy. There is a CSS bug where your :after is rendering on screen in two places. My idea was to add a before under the after that is wider but fully transparent, so the user has something to continually hover over... or maybe you can delay the hover-off state my like 500ms perhaps?

Hmm I think Loco made the popover comp.  But no worries, I'll take a look in a few.
Thanks for attaching a loom, helps a lot!

hey @akinolu52 i have also reassigned this one as you have plenty of Admin tasks and @Darrellbor needs some tasks here. TY dude

hi @Darrellbor
i'll push my latest work on this, so you can clean it up

you can pull from origin/259-fix-the-dropdown-select-in-the-button-+-create-dapp to continue, basically it's done, just need to remove comments etc


web - multiple problems when userdata.js contains multiple usernames

Expected Behavior
Clicking on Info - shows user info about user currently in focus
Clicking on Items - shows items of user currently in focus
..
same for Pokemon and Pokedex
Actual Behavior
Clicking on Info - always shows the first username, shows info of a random user
Clicking on Items - always shows the first username, shows items of a random user
..
same for Pokemon and Pokedex
All item names are undefined, some item counts are undefined
Steps to Reproduce
Start SimpleHTTPServer and go to localhost:8000
Other Information
OS: Ubuntu 14.04
Git Commit: c7ab5b03cb93b5393bebbc383545a50e8519e57a

See here for Web issues.


Fix for FlipView : Navigation's button visibility and Transition update

Refresh navigation buttons' visibility when control's orientation changes.
Handle navigation buttons' visibility when toggling their display.
Apply transition when SelectedIndex changes.

Here you are, i added a detail explanation of the coercion trick.
As i am totally new to GitHub, feel free to instruct me on the workflow in case i did a mistake.

@jumulr why closed?

Mistake, sorry. Is that ok ?


Error: Connection lost: The server closed the connection.

I thought that the pool is supposed to handle closed connections?.. But an app crashes periodically because of this.
And of course it is not reasonable to query for all of the open connections in the pool, and periodically send a keep alive...

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: Connection lost: The server closed the connection.
    at Protocol.end (/home/yehuda/app/node_modules/mysql/lib/protocol/Protocol.js:103:13)
    at Socket.<anonymous> (/home/yehuda/app/node_modules/mysql/lib/Connection.js:102:28)
    at Socket.emit (events.js:117:20)
    at _stream_readable.js:944:16
    at process._tickCallback (node.js:448:13)
    --------------------
    at Protocol._enqueue (/home/yehuda/app/node_modules/mysql/lib/protocol/Protocol.js:135:48)
    at Connection.query (/home/yehuda/app/node_modules/mysql/lib/Connection.js:201:25)
    at /home/yehuda/app/node_modules/knex/lib/dialects/mysql/index.js:80:18
    at tryCatcher (/home/yehuda/app/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._resolveFromResolver (/home/yehuda/app/node_modules/bluebird/js/main/promise.js:480:31)
    at new Promise (/home/yehuda/app/node_modules/bluebird/js/main/promise.js:70:37)
    at Client._stream (/home/yehuda/app/node_modules/knex/lib/dialects/mysql/index.js:77:12)
    at Client.stream (/home/yehuda/app/node_modules/knex/lib/client.js:137:25)
    at /home/yehuda/app/node_modules/knex/lib/runner.js:94:28
    at tryCatcher (/home/yehuda/app/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/home/yehuda/app/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/home/yehuda/app/node_modules/bluebird/js/main/promise.js:581:18)
    at Async._drainQueue (/home/yehuda/app/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/home/yehuda/app/node_modules/bluebird/js/main/async.js:133:10)
    at Async.drainQueues (/home/yehuda/app/node_modules/bluebird/js/main/async.js:15:14)
    at process._tickCallback (node.js:448:13)

@tgriesser any ideas?

I'm also experiencing this issue. Can't find a way to get over it.

if you have a look at function connectionErrorHandler called on connection error or end, the connection is removed from pool but the promise returned by _query is never resolved or rejected...

Has anyone determined workarounds for this issue? Should the recovery be done outside of knex?

I believe this is similar to #1198 which is still not completely resolved, but some investigation is in there for those interested.
You can try supplying a ping function on your pool config, which will check whether or not to dispose of the current connection and acquire a new one. See Pool2 for syntax.
Obviously this should be handled by knex internally, but since we're yet to find a complete solution (primarily transactions are the issue atm), this is all I can provide for now.


function  insert don't return last id

return $this->pdo->exec($query) ? $this->id() : 0 ;

Yes, the insert() will not return the last id since v1.2. If you need the last inserted id, call id() alone.


where is the undeterministic implementation？

If run the code directly, I will get the following error:
RuntimeError: index_add_cuda_ does not have a deterministic implementation, but you set 'torch.use_deterministic_algorithms(True)'. You can turn off determinism just for this operation if that's acceptable for your application. You can also file an issue at https://github.com/pytorch/pytorch/issues to help us prioritize adding deterministic support for this operation.

You may directly change the includ_cuda Flag to false in fix_random_seed.

The error is likely produced by either an older version of PyTorch or an old architecture of the GPU. Setting include_cuda to False in train.py will switch to non-deterministic routines on the GPU.

The error is likely produced by either an older version of PyTorch or an old architecture of the GPU. Setting include_cuda to False in train.py will switch to non-deterministic routines on the GPU.

It can solve the problem but loss the reproducibility at the same time. I used PyTorch 1.8.1 and Nvidia 3090

We recommend to use the PyTorch version with 1.10+. In PyTorch 1.10+, it solves the reproducibility issue. You may want to switch to PyTorch 1.10+ and have another retry.

We recommend to use the PyTorch version with 1.10+. In PyTorch 1.10+, it solves the reproducibility issue. You may want to switch to PyTorch 1.10+ and have another retry.

OK, thank you. I will have a try.


Installation fails related to depency on inherits

sudo npm install --global somafm
...
npm` http 200 https://registry.npmjs.org/spdx-license-ids
npm http GET https://registry.npmjs.org/is-utf8
npm http 304 https://registry.npmjs.org/is-utf8
/bin/somafm -> /lib/node_modules/somafm/cli.js
npm WARN unmet dependency /lib/node_modules/block-stream requires<EMAIL_ADDRESS>but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /lib/node_modules/fstream requires<EMAIL_ADDRESS>but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /lib/node_modules/fstream-ignore requires inherits@'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /lib/node_modules/fstream-npm requires inherits@'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /lib/node_modules/glob requires inherits@'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /lib/node_modules/npmconf requires<EMAIL_ADDRESS>but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /lib/node_modules/tar requires inherits@'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
<EMAIL_ADDRESS>/lib/node_modules/somafm
├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>└──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>

Works for me on NPM v3.10.3 ... what version are you on?

@chrisdamato Looks like these are warnings for other packages you have installed on your system. I tried installing with npm v2.14.3 and got similar results for packages installed on my system. According to the logs the package was still installed successfully.
Anyway, I recommend using the latest version of Node and npm.

Thanks for your help, I am new at this and thought I might be missing something easy. I am using the latest versions from the Fedora 23 distro but will check and confirm.

I updated npm to 3.10.8 and the installation was successful but I still can't get the program to run. Tried a number of uninstall/reinstall/update commands but no luck so far.
If I am having a node/npm problem related to my cluelessness feel free to close the issue, but I will share this in case it's a problem you might care about.
$ somafm

/usr/lib/node_modules/somafm/cli.js:24
  `
  ^
SyntaxError: Unexpected token ILLEGAL
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:935:3

You need at least Node.js v4.0.0 to use this module. (The installer should have given you a warning.)
For Node version management, I recommend n or nvm. On my systems, I use this one-liner to install n locally to ~/local/node:
curl -L http://git.io/n-install | N_PREFIX=$HOME/local/node bash -s -- -y

Then, to install the latest version of Node, run:
n latest

and finally upgrade npm:
npm install --global npm

I hope that helps.

Hey thanks very much, that did the trick! I had no idea the distro version of node could be so far behind.
Much appreciate your tip about nvm and your one-liner. Now on to enjoying this tool for my favorite radio station!


Update docs: improve README, init data structure

Issues resolved by this pull request

Fixes #107
Fixes #8

@rperlin-ela
no deploy for this, but you can still view it here before we merge. some notes:

readme won't make a ton of sense to you but give it a skim for typos i guess, and make sure it sorta makes sense and nothing is glaringly inaccurate.
i gutted all the legacy junk, and made a sample.env file for API keys if any devs use it. pretty common convention, and makes docs easier.
i improved MB docs, placed in the docs/data-structure.md file.

as for AT,  i didn't know how far to go w/this so that's where i stopped (in the data-structure file also). i found a way to grab the entire data structure from AT in JSON format, and started whittling it down, but stopped for several reasons:

you can already access the info... in AT.
it's not terribly current in some cases, so that almost makes it worse than nothing at all in case the info is wrong/misleading.
i don't think the descrips i write for the cols and tables get read in the first place, so it seems futile to markdown-ify them.
the most important part is that the code has what it needs, and the major way i keep that intact is through the "types" file i mention. there's no connection w/AT, but it's as close as i can get to enforcing it.
if there are any changes to the data structure, that means i now have up to 4 places to document it: in the types, the in-code comments (potentially), AT, and this MD file. obviously not maintainable, and it's already pretty loose to begin with!
because there is no true enforced relationship between code and data, so the docs will be a mixed bag even if the code is good.
i think it would require a couple of days to document it all properly, so i'm holding out for CMS or similar in another scope. it would be more self-documenting i hope, but docs are a challenge to maintain either way!
some stuff that's in AT is not relevant whatsoever to the code. only the "types" are, but even some of those i'm kinda cowboying on the fly, and they're not in AT at all (hard to explain)

i left some efforts intact from my AT JSON dump (ha), and i do have my semi-whittled JSON attempts in case we want to expand the tables list (or gut it entirely, i don't care), but i'm just not sure how useful it would be since it's just redundant w/AT.
The big things
...are the routing stuff, "types", and MB layers/fields/config, all of which i at least allude to in the docs. i also linked in readme to the Gdocs folder, in case you want to add more info there.
i know this was a pretty vague requirement in the first place so we can probably call it, but let me know if there's anything not living up to your immediate docs needs!


Docs: improve README.md file

Issue #449
Description
Readme has been updated with all required things.Please Review it and merge it.
Screenshots

@priyankarpal the changes I wanted were solved through this PR. You can check there. Also I have made changes you wanted

@priyankarpal the changes I wanted were solved through this PR. You can check there. Also I have made the changes you wanted

yeah just add the image(copy the link from readme)

@priyankarpal done

Ohkay sure. I will make sure to apply this from every next commit


Add Kleros' Pinakion (PNK)

Project: https://kleros.io
Etherscan: https://etherscan.io/token/0x93ed3fbe21207ec2e8f2d3c3de6e058cb73bc04d?a=0x211f01e59b425253c0a0e9a7bf612605b42ce82c
Note: The JSON had some indentation inconsistencies that I fixed.

Hi @estebanmino . We got the reputation now.


Mark parameter modifiers as deprecated and update spec

Contributing a Pull Request
Contributing a feature

[x] I have opened a new issue for the proposal, or commented on an existing one, and ensured that the Bicep maintainers are good with the design of the feature being implemented
[x] I have included "Fixes #{issue_number}" in the PR description, so GitHub can link to the issue and close it when the PR is merged
[x] I have appropriate test coverage of my new feature

Closes #1670.
Closes #1727.

How much more work would the quick fix be to switch to the decorator syntax? I wonder if we should show just a regular warning instead of a strikethrough to start.

Makes sense re: quick fix, so let's decide separately what we want to do there.
WRT the strikethrough, it just feels a little aggressive to me, but I'm curious what others think. Can we also include a link in the warning message so people understand what we mean when we way "use decorators"?

Makes sense re: quick fix, so let's decide separately what we want to do there.
WRT the strikethrough, it just feels a little aggressive to me, but I'm curious what others think. Can we also include a link in the warning message so people understand what we mean when we way "use decorators"?

I see. The the VSCode feature request https://github.com/microsoft/vscode/issues/50972 received a number of 👍s which makes me think we should strikeout modifiers, but I'm totally fine removing it if that's a bit aggressive. I would also like to hear @anthony-c-martin , @majastrz  and @TarunSunkaraneni 's thoughts on this. Including a link to the parameter spec in the warning message is a good idea and I'll do it (just realized that the examples in the spec are still using modifiers so I'll update them in the PR, too).

Codecov Report

Merging #1693 (59d1589) into main (311f540) will increase coverage by 0.52%.
The diff coverage is 91.11%.

@@            Coverage Diff             @@
##             main    #1693      +/-   ##
==========================================
+ Coverage   95.13%   95.65%   +0.52%
==========================================
  Files         363      360       -3
  Lines       20147    20309     +162
  Branches       15        0      -15
==========================================
+ Hits        19166    19427     +261
+ Misses        981      882      -99

Flag
Coverage Δ

dotnet
95.65% <91.11%> (+0.05%)
:arrow_up:

typescript
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

src/Bicep.Core/Diagnostics/FixableDiagnostic.cs
58.33% <50.00%> (ø)

...c/Bicep.Core/Diagnostics/FixableErrorDiagnostic.cs
58.33% <50.00%> (ø)

...icep.LangServer/Extensions/DiagnosticExtensions.cs
81.81% <77.77%> (-3.90%)
:arrow_down:

src/Bicep.Cli.IntegrationTests/ProgramTests.cs
100.00% <100.00%> (ø)

...Core.IntegrationTests/Emit/TemplateEmitterTests.cs
100.00% <100.00%> (ø)

src/Bicep.Core/Diagnostics/Diagnostic.cs
100.00% <100.00%> (ø)

src/Bicep.Core/Diagnostics/DiagnosticBuilder.cs
100.00% <100.00%> (ø)

src/Bicep.Core/Diagnostics/ErrorDiagnostic.cs
66.66% <100.00%> (ø)

src/Bicep.Core/TypeSystem/TypeAssignmentVisitor.cs
97.65% <100.00%> (+<0.01%)
:arrow_up:

...gServer.UnitTests/BicepCompilationProviderTests.cs
100.00% <100.00%> (ø)

... and 28 more

I do see the point that the default strike-through style is a bit aggressive. We are saying "this is going to break in the future" vs "this is a potential problem", so I feel like the distinction makes it justifiable. Implementing the code fix makes the experience better also because then there's an instant mechanism to fix it which removes the strike-through styling.

Btw, I think the phases for modifier deprecation should be the following:
0.4 - block modifier usage with errors, parser/semantic model still understands modifiers (the latter is needed to make the code fix reliable)
0.5 - parser/semantic model no longer understands modifiers (we would also remove the code fix)

Makes sense. I'll remove the strikethrough. The deprecation plan also sounds good to me.

No, I'm saying that it's OK that it's aggressive.

Also interested in what others think about it.

No, I'm saying that it's OK that it's aggressive.

Ah misread your message...I think we should have a DSL discussion on it.

Makes sense.

I wouldn't let this open question block check-in though. Since it's just a flag, we can play with it and make a decision?

Good pt.


Allow atoms to be reparsed

Fixes the reparsing test. Two failures remain related to destruction of a renderer after it fails to render.

Awesome, thanks


[Task]: Make the code editor Keyboard accessible

Is there an existing issue for this?

[X] I have searched the existing issues

SubTasks
All the text input fields in the Property pane is a code editor.
Make it keyboard accessible

Verified all the widgets for keyboard accessibility on all the text input fields in the Property pane.


Expose and manage fkr on_delete and on_update actions

There is some minimal support to introspect the ON DELETE ... and ON UPDATE ... rules which can be set on foreign key constraints.  But, it isn't exposed through the REST API as introspective JSON content nor is it configured when creating new constraints (they get the default).
We should expose this so clients can reason about the risk of runtime conflicts for update and delete operations on data.
There is a complicating issue:

PostgreSQL allows multiple constraints to repeat the same column reference pattern but have different rules configured for each.
The effective behavior seems to depend on the order that constraints were defined, so it isn't very easy to reason about the DB behavior even when introspecting a table definition in PostgreSQL itself (ignoring ERMrest).
ERMrest treats all constraints with the same column reference pattern as an equivalence class and would need to somehow collapse the many constraints' rules into a single effective rule statement. Any further management of constraints needs to change them en masse as well.

Suggested solution:

Force ermrest catalogs to use a simpler schema w/ no repeat/redundant constraints
During introspection, flag violating schemas and error out as internal server error for admins to isolate and fix their broken ETL scripts etc?
During REST-based management, treat all operations as update/replacement of existing constraint so duplicates cannot be introduced.

This is now implemented in the stateful-model branch, allowing on_delete and on_update rules to be set during schema creation and viewed during schema introspection.
Redundant constraints are rejected during schema creation and during schema introspection, making ERMrest more strict than it used to be.


Added some items missing

I've added some items missing from the template repo including a code of conduct, contributing guide, links to authors, etc.
@GreenRover A few notes to consider:

Feel free to modify Contributing.MD to a different process if you'd like or add resources that might be valuable to folks getting started.
Please add a short overview
Should we change solace_exporter to be solace_prometheus-exporter for the cli tool? or is it okay to not match the repo name?

@Mrc0113 I changed the name

@Mrc0113 I changed the name


Scanned text with proper formatting

Hi @jonathanpalma Is there any way to get data with proper formatting like space and tab-spaces. The following image shows how my scanned data looks like...
But If I wanted spaces too, Is there anything I can implement?

@mitjnextt sure, you can use recognizeTokens, and provide the token level you want to recognize (LEVEL_BLOCK | LEVEL_LINE | LEVEL_PARAGRAPH | LEVEL_SYMBOL | LEVEL_WORD). This method will return an array of Tokens
type Bounding = {
    bottom: number;
    left: number;
    right: number;
    top: number;
};

type Token = {
    token: string;
    confidence: number;
    bounding: Bounding;
};

Hello @jonathanpalma ,
As you suggested that this has not been implemented for iOS so I have never tried with above code, but I appreciated your help/reply for that code.
After that my colleague has worked on the demo with different native code, so then, we did not used any repo.


[BUG] hydra closes quickly after opening

Describe the bug
Launcher não abre
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
N/a
Additional context

OS: Windows 11
Hydra Version: 1.2.0
Additional information and context of your problem: o launcher não abre, instalei tudo certo porém ele está com esse bug

first: english.
second: insufficient information.

The launcher has a bug where it opens and closes quickly. Do I need to add any commands in the properties, or is there another way to solve this?

did you uninstall 1.1.0?

did you uninstall 1.1.0?

Yes, I followed all the provided steps.

In the previous version, a code was used in the executable address "--no-sandbox".

can you download debugtron, it's a program that shows the log of electron application, you can download from here:
https://github.com/pd4d10/debugtron/releases/tag/v0.5.0
execute debugtron with admistrador level and open hydra, this will show the error log.

the error

please, to confirm the version, can you:
1: right click on the hydra shortcut,
2: properties,
3: open on the local file button,
after this  on the base folder find the hydra.exe.
1: right click on the hydra.exe,
2: properties,
3: details page, send a print that show the hydra version

could you manually select and open this hydra.exe file in debugtron?

like this ?

Same error
Debugtron:

Details:

I noticed that version 1.0.1 opens the launcher, but the search systems and nothing involving them don't work, it shows Elden Ring as the first game, and only loads it in the application.
1.0.1:

since 1.1.0 it doesn't work
I hope I was able to provide more details

maybe i found a solucion, try to put --no-sandbox on hydra.exe, and say me if work or not

Thanks mate, if more people with this problem show up, I'll try to help as well.

It worked.

Thx JackEnx!!

Thank you for your help, I was able to execute❤❤🌼👾

I had this issue when put " --no-sandbox" in the directory.

I had this issue when put " --no-sandbox" in the directory.

this is other error, fixed in a new version: https://github.com/hydralauncher/hydra/releases

Even after putting "--in-sandbox" in my hydra directory, it keeps giving white screen and obviously closing, basically "-in-sandbox" doesn't work for me (i tried in version 1.2.1, but even then it didn't work ) (i've searched several forums, but everyone said to put the --in-sandbox, but no one talks if it happens to go wrong)

is "--no-sandbox"

sorry, I typed wrong, I put "-in-sandbox" before

sorry, I typed wrong, I put "--no-sandbox" before

sorry, I typed wrong, I put "--no-sandbox" before, it simply doesn't work for me

can you download debugtron, it's a program that shows the log of electron application, you can download from here:
https://github.com/pd4d10/debugtron/releases/tag/v0.5.0
execute debugtron with admistrador level and open hydra, this will show the error log.

Thanks, I just installed the app with this software.

Is this still an issue in version 2.0.2?
Feel free to reopen this if you still have problems


Use DictionaryIterator for Dictionary functions

Without DictionaryIterator the simplest code is impossible to write:
var myDictionary : {[x:string]: string;}
_.filter(myDictionary, (v, k, c) => { return k == "A"; })

@bczengel @david-driscoll can I merge this PR?

Any update for this pull request ?

@NN--- I decided merge this PR. thanks mate!


Make menus instances 'request aware' and allow overriding of all Menu classes via settings

Related to #120. Fixes #106
Still needs a couple of tests adding to ensure the override settings work as expected. The new settings also need documenting.

Progress update! Decided to roll a solution to #106 into this, as it's related. Just in the process of ensuring that backwards compatibility is maintained for developers that have overridden the MenuPage methods that have changed.

@ababic Glad you rolled them both in, it seems to make some overriding simple enough.


 Set BHAG's.

It's a PR, but I don't seem to have a merge option on the GH interface.

Oh it's wrong PR


ZX48/128 ULA Timings

I deliberately do not write here about Pentagon-a timings, because they are ALMOST! the correct ones were before, the difference with one pixel ideal you are, this is a half tact, I myself can fix it
Speech about the timings of the original models Spectrum 48 \ 128
These timings and Syd-a were approximate, he knew about it, and now is no better, not even from the good, not that perfect.
I understand that this should be done in conjunction with ULA + CPU + contended memory / The question is whether this will be corrected, and if not, then there is no point in showing tests and differences. Thank.

All changes and improvements to timings into VHDL are welcomed! I don't dare to do that, so I will be happy if you (or anyone more skilled) fork this project, commit improvements and make pull request... or simply attach patch here. 😉

I don't dare to do that
ULA not dare to change? But you change other parts of VHDL))
Therefore, I asked whether you would fix it or not.
Well to no - and no trial.
I can only for the Pentagon-to show my changes
there you need to move the curb on the screen half a takts, I did this:
--		if sysclk'event and sysclk = '1' and clk7m = '1' then
if sysclk'event and sysclk = '0' and clk7m = '1' then

And this is my fix, maybe it's not quite right, but it works to load SNA files
--			elsif cpuHaltAck = '0' and cpuRegisters(212) = '1' and cpuSaveInt7_prev = '0' then
elsif cpuHaltAck = '0' and cpuRegisters(212) = '0' and cpuSaveInt7_prev = '1' then
and two test files (Pentagon mode):
https://drive.google.com/open?id=1deuhQIfgbdoeeLqv-yTnmOaFl9OjcADf
https://drive.google.com/open?id=1zOztxDHgC-I1Yb9V2gAc8f77xrT33eeb
and one of the files works fine, is not reset, and in your version. Well, I hope you will see the shift by one pixel.

thank you a lot, patches applied 😉

Timings The Pentagon is now faithful, thank you.
But it's too early to close the thread)
Attach two tests for zx48 and zx128
it would also be nice to move the screen relative to the border, but in different directions :-)
and these are the simplest tests, there is a little more complicated, everything is much worse there, but we must start with these if it is easy.
https://drive.google.com/open?id=1E7oV68H4dtlB_z7v9NkNx9_NSWhfYM6y

It's obvious that you have much more of knowledge how ULA working and probably you are more skilled in VHDL (I consider it from your patches you post there which resolves long term issue with contention).
So, do you have any suggestions to fix that timing issues? 😉

Thanks for such a flattering review, but still I'm not a programmer :)
I am more tester.
The core of the T80 from Sorgelig, I hope you know. He completed the previous kernel with almost 100% compatibility, in which there were enough bugs.
But someone pushed him for a whole year ???
And I wrote tests to check :)))))
So, I know what should be in the final in the end, and I can only guess how to achieve it. You can see how ULA is implemented in MisTer or ZXUno.
UNO is a good repository with source code and tests (mine are also present there :)
https://svn.zxuno.com/svn/zxuno/
User:  guest
Pass:  zxuno
http://svn.zxuno.com/svn/zxuno/software/tests/
ulatest.tap
ulatest3-modified.tap
ulatest3.tap
ulatest3_all.tap
these are good tests for testing the ULA.
ula128.tap
ula48.tap
These are my tests, but they are more graphical :)
Any of these tests work correctly in various emulators.
the tests show that the pattern is the same, but for some reason it is lagging behind by two cells.

This project reached its end. I'll probably never solve this issue, so closing it.


feat: enhance logging and parse cli arguments

In this pull request, a rudimentary version of a debug window will be implemented. This resolves (part of) #3.

As of now, I implemented a nicer way to log debug messages. This is part of the debugging experience, but has not really much to do with a debug window. I would suggest to merge this (anyway should you want to) without having implemented the actual window, such that that task can be done cleanly in a new PR.

I think that debug.c/.h should be renamed to something like log oder logging since debug might suggest that it deals with the debug window. A distinction like debug_logging and debug_window could be possible too.

I think that maybe the getopt switch case could parse all arguments. That would make the parsing more consistent. The check whether required parameters are present could then be done afterwards. This could ofc be paired with the suggestion I made above to check whether argc >= 2.

I think that maybe the getopt switch case could parse all arguments. That would make the parsing more consistent. The check whether required parameters are present could then be done afterwards. This could ofc be paired with the suggestion I made above to check whether argc >= 2.

As far as I'm aware, getopt shall only be used to parse optional arguments. Since frequency and rom_path are not optional, these should not be parsed directly by getopt. In addition, getopt is configured using a parsing string in the format "ab:c::", which would mean

a is an optional flag without arguments,
bis an optional flag with a mandatory argument
cis an optional flag with an optional argument.
If frequency and path to ROM shall be parsed by getopts, we would have to introduce flags for those arguments, making them optional. This, however, would only make sense for the frequency, but not for the path to ROM, as this emulator is quite useless without a ROM loaded.

I see 🤔 Making frequency an option sounds like a good idea while keeping the ROM path, as you suggested, an argument


Include BLEPeripheral nRF51822 - Low Power (Interrupt) Example

https://gist.github.com/sandeepmistry/6a6dfe9021b19bfddd60 should be included in the examples/ that come with the library. Many people will be interested in a Low Power (Interrupt) Example.

This only works with nRF5x boards, so not too keen.

Is it a requirement that all example sketches need to run on boards other than nRF5x as well? That would limit the power of this project in my opinion.
Can't we have it print a statement if used with an incompatible board?
I assume that many people are using this project exactly for the reason that they want to make something low power, and a bare nRF5x board is best for this. In fact, that's why I use this project, anyway ;-)

I would also like to ask for including the example with the library. To indicate that it works only with the nrf5x boards, simply include nrf51 into the name of the example and it should be crystal clear that the example is only for specific boards...


take_snapshot failed

Hello, I use IConsole.take_snapshot() to creates a new snapshot. But it is failed to find attribute takeSnapshot in <virtualbox.library_ext.console.IConsole object.
My script is:
In [1]: import virtualbox

In [2]: vbox = virtualbox.VirtualBox()

In [3]: vm = vbox.find_machine('test')

In [4]: session = virtualbox.Session()

In [5]: progress = vm.launch_vm_process(session, 'gui', '')

In [6]: session.console.pause()

In [7]: session.console.take_snapshot('a', 'aaa')

And it is failed such as:
C:\Python27\lib\site-packages\virtualbox\library.pyc in take_snapshot(self, name, description)
  13200             raise TypeError("description can only be an instance of type basestring")
  13201         progress = self._call("takeSnapshot",
> 13202                      in_p=[name, description])
  13203         progress = IProgress(progress)
  13204         return progress

C:\Python27\lib\site-packages\virtualbox\library_base.pyc in _call(self, name, in_p)
    169     def _call(self, name, in_p=[]):
    170         global vbox_error
--> 171         method = self._search_attr(name)
    172         if inspect.isfunction(method) or inspect.ismethod(method):
    173             return self._call_method(method, in_p=in_p)

C:\Python27\lib\site-packages\virtualbox\library_base.pyc in _search_attr(self, name, prefix)
    150                 time.sleep(0.1)
    151         else:
--> 152             raise AttributeError("Failed to find attribute %s in %s" % (name, self))
    153         return attr
    154

AttributeError: Failed to find attribute takeSnapshot in <virtualbox.library_ext.console.IConsole object at 0x0000000004A479B0>

My Enviroment is:
+ Python 2.7.10 64bit
+ pyvbox 0.2.2
+ VirtualBox 5.0.10
+ Windows 10 x64

Can you help me? I don't know why I will be failed. Thank you. :)

Same problem, python2.7, pyvbox==1.0.0 and virtualbox 4.3...
It was "working" with virtualbox 4.2 (except i got several segmentation faults, but that happened with VBoxManage manually too)

I was able to make this work with VirtualBox 5.1.14

Using vbox 5.1.16 I get this error:
Traceback (most recent call last):
File "./vboxvdi", line 148, in
mygo()
File "./vboxvdi", line 119, in mygo
m = virtualbox.library.IMachine.take_snapshot(a, "bob", "alsbndl", False)
File "/usr/local/lib/python2.7/dist-packages/pyvbox-1.0.0-py2.7.egg/virtualbox/library.py", line 13101, in take_snapshot
in_p=[name, description, pause])
File "/usr/local/lib/python2.7/dist-packages/pyvbox-1.0.0-py2.7.egg/virtualbox/library_base.py", line 172, in _call
return self._call_method(method, in_p=in_p)
File "/usr/local/lib/python2.7/dist-packages/pyvbox-1.0.0-py2.7.egg/virtualbox/library_base.py", line 198, in _call_method
raise errobj
virtualbox.library.OleErrorNotimpl: 0x80004001 (Method takeSnapshot is not implemented)

OK I am officially past this above issue.  but I think there is another issue here,  the follow code
self.clone.lock_machine(self.session, self.LOCKTYPE)
x, p = self.session.machine.take_snapshot("test1", "test2", True)

self.logger.info("waiting... ")
p.wait_for_completion(timeout=-1)

produces this error
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "./vboxvdi", line 288, in clone_vm
    self.take_snapshot()
  File "./vboxvdi", line 542, in take_snapshot
    p.wait_for_completion(timeout=-1)
  File "/usr/local/lib/python2.7/dist-packages/pyvbox-1.0.0-py2.7.egg/virtualbox/library_ext/progress.py", line 21, in wait_for_completion
    super(IProgress, self).wait_for_completion(timeout)
  File "/usr/local/lib/python2.7/dist-packages/pyvbox-1.0.0-py2.7.egg/virtualbox/library.py", line 19304, in wait_for_completion
    in_p=[timeout])
  File "/usr/local/lib/python2.7/dist-packages/pyvbox-1.0.0-py2.7.egg/virtualbox/library_base.py", line 170, in _call
    method = self._search_attr(name)
  File "/usr/local/lib/python2.7/dist-packages/pyvbox-1.0.0-py2.7.egg/virtualbox/library_base.py", line 151, in _search_attr
    raise AttributeError("Failed to find attribute %s in %s" % (name, self))
  File "/usr/local/lib/python2.7/dist-packages/pyvbox-1.0.0-py2.7.egg/virtualbox/library_ext/progress.py", line 16, in __str__
    return _progress_template % dict(o=self.operation, p=self.percent,
  File "/usr/local/lib/python2.7/dist-packages/pyvbox-1.0.0-py2.7.egg/virtualbox/library.py", line 19213, in operation
    ret = self._get_attr("operation")
  File "/usr/local/lib/python2.7/dist-packages/pyvbox-1.0.0-py2.7.egg/virtualbox/library_base.py", line 155, in _get_attr
    attr = self._search_attr(name, prefix='get')
  File "/usr/local/lib/python2.7/dist-packages/pyvbox-1.0.0-py2.7.egg/virtualbox/library_base.py", line 151, in _search_attr
    raise AttributeError("Failed to find attribute %s in %s" % (name, self))
  File "/usr/local/lib/python2.7/dist-packages/pyvbox-1.0.0-py2.7.egg/virtualbox/library_ext/progress.py", line 16, in __str__
    return _progress_template % dict(o=self.operation, p=self.percent,
  File "/usr/local/lib/python2.7/dist-packages/pyvbox-1.0.0-py2.7.egg/virtualbox/library.py", line 19213, in operation
    ret = self._get_attr("operation")
  File "/usr/local/lib/python2.7/dist-packages/pyvbox-1.0.0-py2.7.egg/virtualbox/library_base.py", line 155, in _get_attr
    attr = self._search_attr(name, prefix='get')
  File "/usr/local/lib/python2.7/dist-packages/pyvbox-1.0.0-py2.7.egg/virtualbox/library_base.py", line 151, in _search_attr
    raise AttributeError("Failed to find attribute %s in %s" % (name, self))
  File "/usr/local/lib/python2.7/dist-packages/pyvbox-1.0.0-py2.7.egg/virtualbox/library_ext/progress.py", line 16, in __str__
    return _progress_template % dict(o=self.operation, p=self.percent,
  File "/usr/local/lib/python2.7/dist-packages/pyvbox-1.0.0-py2.7.egg/virtualbox/library.py", line 19213, in operation
  ret = self._get_attr("operation")

This repeats for a while around the the last line as a reference point.  my current solution is to
wrap the "p.wait_for_completion" call, such as
try:
     p.wait_for_completion(timeout--1)
except:
     pass

Glad that the first issue was solved, @choman.  Could you reopen the second issue as another issue?


Fix bug with bad erc20 tokens display

Summary
A description of the changes proposed in the pull request.
Fixes #number
Checklist

[ ] Change is small and easy to review (please split big changes into multiple PRs)
[ ] Change is consistent with architecture
[ ] Change is consistent with test architecture
[ ] Change is consistent with naming conventions
[ ] New code is covered with tests
[ ] Tests related to old code are updated
[ ] Documentation is up to date with changes

It's one of usdc tokens, so the name is not the same as normal. I tried to get the normal one, but it's really hard to get it on kovan


AssetsLibrary and MobileCoreservices deprecation warnings in Xcode 11.4

Having installed YYImage with Cocoa Pods produces the following warnings in Xcode 11.4 beta, that are shown despite having inhibit_all_warnings! in Podfile:

Target Integrity
AssetsLibrary is deprecated. Consider migrating to Photos instead.
MobileCoreServices has been renamed. Use CoreServices instead.

It looks like there is no way to turn them off which is very annoying for those who stick to zero-warnings policy. Please fix!

@alex-vasenin
https://github.com/YYKits/YYImage
Let's restart this project.

You may try my fork: https://github.com/ElfSundae/YYImage/issues/2


Liquid syntax error - Unknown tag 'seo' included when serving jekyll with safe mode

When attempting to serve a jekyll site with minima in safe mode, I get the following error:
Liquid Exception: Liquid syntax error (/workspaces/gsd-tools/website/vendor/bundle/ruby/3.2.0/gems/minima-2.5.1/_includes/head.html line 5): Unknown tag 'seo' included in /workspaces/gsd-tools/website/vendor/bundle/ruby/3.2.0/gems/minima-2.5.1/_layouts/default.html
bundler: failed to load command: jekyll (/workspaces/gsd-tools/website/vendor/bundle/ruby/3.2.0/bin/jekyll)
/workspaces/gsd-tools/website/vendor/bundle/ruby/3.2.0/gems/liquid-4.0.4/lib/liquid/document.rb:23:in `unknown_tag': Liquid syntax error (/workspaces/gsd-tools/website/vendor/bundle/ruby/3.2.0/gems/minima-2.5.1/_includes/head.html line 5): Unknown tag 'seo' included  (Liquid::SyntaxError)

This error does not happen if I omit safe mode, although it appears that _includes/custom-head.html is being ignored, as well as setting the theme in _config.yml:
minima:
  theme: dark

Not sure what exactly is going on here, adding jekyll-seo-tag to the plugins does not appear to solve this.
Should be able to replicate the issue with: https://github.com/joshbuker/gsd-tools/tree/7dcc6aa2ed4331bbd5169e0579ba1ac961d26a1e/website

Ah, okay I figured this out after sanity checking my Gemfile.
If anyone else runs into this issue, it appears to be because the plugins minima relies on (jekyll-seo-tag and jekyll-feed) must be included both in your _config.yml and Gemfile.
_config.yml
plugins:
  - jekyll-seo-tag
  - jekyll-feed

Gemfile
group :jekyll_plugins do
  gem 'jekyll-seo-tag'
  gem "jekyll-feed"
end

This doesn't appear to solve the _includes/custom.html or theme issues, but it does solve serving with --safe mode enabled.

Thanks @joshbuker for the tip.  Would love to be able to use dark theme in safe mode as well.

@mxkpp Per #717, you can enable dark theme by updating to pull from the main branch. Themes aren't supported yet and are to be released in 3.0.


Coreos builds break because of ssh username

Hy,
Trying to create a base template for coreos build.
There is a bug currently in Softlayer that when creating a coreos device under the username/password information incorrect data will be shown.
username is root, and password is  xxxxxx
but the real username should be core with the above password.
when doing debug build I see:
2016/12/28 22:39:41 packer-builder-softlayer: 2016/12/28 22:39:41 Config: {PackerConfig:{PackerBuildName:softlayer PackerBuilderType:softlayer PackerDebug:true PackerForce:false PackerUserVars:map[]} Comm:{Type:ssh SSHHost: SSHPort:22 SSHUsername:root SSHPassword: SSHPrivateKey: SSHPty:false SSHTimeout:15m0s ....
It would be nice to have an ssh_username option for backup in such cases.
Issue is already raised to support.

Ahh wait... I just realised that this is before machine is provisioned and static, is there any way to overwrite this option to have a different username?

This should be coming from packer overrides. Can you try setting it here https://www.packer.io/docs/templates/communicator.html

Thanks, that solved my issue.


Add Cursor Tail Effector in Map page ! #4234

Hello, PR
Add Cursor Tail Effector in Map page done - #4234
https://github.com/user-attachments/assets/2cdee413-77ab-4a27-8d7d-d97417cc5d77
Type of PR

[x] Bug fix
[x] Feature enhancement
[ ] Documentation update
[ ] Other (specify): _______________

Checklist:

[x] I have made this change from my own.
[x] I have taken help from some online resources.
[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] I have tested the changes thoroughly before submitting this pull request.
[x] I have provided relevant issue numbers and screenshots after making the changes.

@abhi03ruchi please merge my PR

@abhi03ruchi @sailaja-adapa @atmajaa  please merge my PR with label

@abhi03ruchi @sailaja-adapa @atmajaa

@Subhajit-2023-44 it already exists work on new issue

@Subhajit-2023-44 it already exists work on new issue

@sailaja-adapa ma'am can you please merge my PR and give me level 1 because i send PR first, but someone solve it in his pr which he send after me..

@sailaja-adapa Thank You


document ClassLoader strategy

Documentation is lacking an explanation which strategy is used for loading mock classes.

added troubleshooting classloaders section to tutorial d75dc3abf813271aa4f980bd51b84fd0977f94be


[BUG] Possible conflict between Variant Encumbrance and DF Quality of Life

Module Version: v0.8.4
Describe the bug
The Changelog and Conflicts module reports incompatibility between the Variant Encumbrance and DF Quality of Life. It makes several updates that this happens and the warning does not go away. Any settings I disable between them also do not remove the warning.
Screenshots

Configs
Foundry Virtual Tabletop: Version 9, 9.251
Game System: dnd5e, 1.5.7
Active Modules: 67
Performance Mode: 2
OS: Unknown
Client: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36
GPU: ANGLE (NVIDIA, NVIDIA GeForce GTX 1660 Direct3D11 vs_5_0 ps_5_0, D3D11-<IP_ADDRESS>5)
Max Texture Size: 16384
Scene: 3000 x 3000 | Grid Size: 100 | Padding Percentage: 0
Walls: 0 | Ambient Lights: 0 | Ambient Sounds: 0 | Tiles: 0 | Tokens: 7
Actors: 120 | Items: 86 | Journal: 24 | Rollable Tables: 40 |
Playlists: 4 | Compendium Packs: 43 | Chat Messages: 0

Sorry  is this a issue ? are you trying to remove that conflict ? is not a warning (yellow color) is just a info (blue color), you can just ignore that.

That's the warning, but you can close the problem if you find it necessary.


Do not create /dev/fuse by default

This device is not required by the OCI spec.
The rationale for this was linked to docker/docker#2393
So a non functional /dev/fuse was created, and actual fuse use still is
required to add the device explicitly. However even old versions of the JVM
on Ubuntu 12.04 no longer require the fuse package, and this is all not
needed.
See also https://github.com/opencontainers/runc/pull/983 although this
change alone stops the fuse device being created.
Tested and does not change actual ability to use fuse.
Signed-off-by: Justin Cormack<EMAIL_ADDRESS>

Have a gofmt error;
1:11:03 ---> Making bundle: validate-gofmt (in bundles/1.13.0-dev/validate-gofmt)
11:11:03 These files are not properly gofmt'd:
11:11:03  - oci/defaults_linux.go
11:11:03
11:11:03 Please reformat the above files using "gofmt -s -w" and commit the result.

That's what happens when you try to finish before getting lunch...
On 12 Aug 2016 12:13 p.m., "Sebastiaan van Stijn"<EMAIL_ADDRESS>wrote:

Have a gofmt error;
1:11:03 ---> Making bundle: validate-gofmt (in bundles/1.13.0-dev/validate-gofmt)
11:11:03 These files are not properly gofmt'd:
11:11:03  - oci/defaults_linux.go
11:11:03
11:11:03 Please reformat the above files using "gofmt -s -w" and commit the result.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/docker/docker/pull/25660#issuecomment-239421028, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAdcPHZ58j7Po0B-4wlEDpSXgTBmin4oks5qfFVzgaJpZM4Ji_Te
.

Looks to work:
docker run --rm -it --cap-add SYS_ADMIN --device /dev/fuse ubuntu

Inside the container:
mkdir -p /mnt/droplet
sshfs -o allow_other root@redacted:/ /mnt/droplet

The authenticity of host 'redacted (redacted)' can't be established.
ECDSA key fingerprint is SHA256:WjfP2S3oMRzWbZ2N7Adf2NKvyt2Wl7FGiQPOhZCoXt0.
Are you sure you want to continue connecting (yes/no)? yes
root@redacted's password:

ls -la /mnt/droplet

root@50a6da533570:/mnt/droplet# ls -la /mnt/droplet
total 116
drwxr-xr-x 1 root root  4096 Aug 12 00:37 .
drwxr-xr-x 3 root root  4096 Aug 12 13:18 ..
drwxr-xr-x 1 root root  4096 Aug 10 19:48 bin
drwxr-xr-x 1 root root  4096 Aug 10 19:50 boot
...

LGTM

LGTM


Remove atypical a:focus behaviour

This PR is no longer needed as it's already been rolled out onto dev and staging.


Use the Symfony\Component\Process for executing commands

This seems like a no brainer given it is already a dependency.
It would add the ability to have timeouts, analyse exit codes, etc.
If this is something you're keen on I'd be happy to have a stab at a PR.

Yes, timeouts would be nice improvement, because optimizing big images may last long time. If you are still interested, PR is welcome. If not, maybe I will implement this, but it doesn't have big priority.

It will be done in 2.0.0 version - not released yet. Also there will be new configuration option: single_optimizer_timeout_in_seconds.


Forge install instructions minor error

The instructions for installing forge are slightly incorrect:
The example mscs.properties file given is
mscs-client-version=1.8.4
mscs-server-version=1.8.4
mscs-server-jar=forge-1.8.9-<IP_ADDRESS>2-installer.jar
mscs-server-url=

The third line should read something like mscs-server-jar=forge-1.8.9-<IP_ADDRESS>2-universal.jar rather than installer.jar.
The server fails to start with unknown PID if the instructions are followed exactly.

Nice catch!  The wiki page is editable by everyone, but I went ahead and made that fix.  Closing this issue.


Google MobileAds IOS 7.38 no Ad Adapter

Hello,
I just updated to version 7.38 of mobile.Ads.Ios. it is now not displaying me test reward video ads previously it was working for simulators  and now it is giving me following error .
"{Request Error: Cannot find an ad network adapter for mediation.}"
I am using following test id
"ca-app-pub-3940256099942544/1712485313"

I also updated to V7.38 of Xamarin.Google.iOS.MobileAds and my (banner) ads stopped showing up. Just shows blank. Was working with the previous version (V7.32 I believe). This is the error message I'm getting in Debug:
" Cannot find an ad network adapter with the name(s): com.google.DummyAdapter. Remember to link all required ad network adapters and SDKs, and set -ObjC in the 'Other Linker Flags' setting of your build target."

@zeerakMush, @DigitalNut Are you using Google's id tests?

@SotoiGhost I get the error with both Test ID and real ID.

FYI: I went back to V7.32 and Ads are working (showing up in my app on real device - iPad).

@DigitalNut @zeerakMush I tested our samples using Google's and real ids, and it's working for me. I did a little investigation of this and some users suggest that this issue happens due to a "user account problem". Can you follow this thread from the beginning and try the solutions provided? Thanks in advance.

Closing this issue now since no response was received from the owner of the issue.
If anyone faces something related to this, please, open a new issue. Thanks in advance!
Best!
Israel Soto.


Text and code revision of P1C3_Sequence2.ipynb

Hi @dcownden, I've just revised the textual and code chunks of P1C3_Sequence2.ipynb.

Thanks, should be live now, much appreciated as always!


Camera rotation

Sometimes when you ride your bike, the camera starts spinning without any reason, I think that it happens because if the camera has a rotation of more than 360 degrees it returns to default rotation. But it seems like a bug and should be fixed.

Fixed in #24


Update link to experimental Chromium WebVR branch

wip/bajones/webvr seems to be the branch that's currently working with headsets instead of wip/bajones/webvr_1

Updated in f72e97724cd00bb76ff27f2d33c04c406189cb06


Add check for consistency in land cover and soil

Purpose
This PR fixes issue #97.
Additions
Added land cover and soil consistency checks to initialize_from_file in RunModule.f90. These checks throw an error and stop the program if any cell is initialized with the following conditions:

land use type != water and soil type = water
land use type = water and soil type != water
land use type != ice and soil type = ice
land use type = ice and soil type != ice

Testing
I manually/hardcoded problematic values for vegtyp and isltyp to produce errors:
where (domaingrid%mask.eq.1) domaingrid%vegtyp = parametersgrid%ISWATER
where (domaingrid%mask.eq.1) domaingrid%isltyp = 1
returns => ERROR: one or more grid cells have a water land cover (vegtyp = 16) and a non-water soil type (isltyp != 14)
where (domaingrid%mask.eq.1) domaingrid%vegtyp = 1
where (domaingrid%mask.eq.1) domaingrid%isltyp = 14
returns => ERROR: one or more grid cells have a non-water land cover (vegtyp != 16) and a water soil type (isltyp = 14)
where (domaingrid%mask.eq.1) domaingrid%vegtyp = parametersgrid%ISICE
where (domaingrid%mask.eq.1) domaingrid%isltyp = 1
returns => ERROR: one or more grid cells have an ice land cover (vegtyp = 24) and a non-ice soil type (isltyp != 16)
where (domaingrid%mask.eq.1) domaingrid%vegtyp = 1
where (domaingrid%mask.eq.1) domaingrid%isltyp = 16
returns => ERROR: one or more grid cells have a non-ice land cover (vegtyp != 24) and an ice soil type (isltyp = 16)
Notes

Implemented checks using where statements to avoid iterating over the grid
Checks were implemented with hardcoded water and ice values for soil type. To avoid using hardcoded soil type values, we could require that the user provide ISWATER and ISICE values for the utilized soil classification scheme (as the user already must provide for the utilized land cover classification scheme).

Thanks for the review @drakest123. I went ahead and add locational information to the error messages.

@SnowHydrology Do you think this PR's checks are too restrictive? Here, we're requiring grid cells that have ice land cover to have ice soils as well.

Note: I'm leaving the stop statements as-is with the assumption that the issue will be corrected by PR #108.


Ad is detected but the ad continues to play.

I am using a OnePlus 7T, ad-free detects that an ad is being played but it does nothing about it, the ad continues to play.
PS: I'm using the mute plug-in.

sounds like a device specific issue that requires debugging. as I don't own your device, I cannot investigate it.

Does it happen all the time? What happens if you play music, open ad-free, navigate to the mute-plugin screen and test the plugin (tab onto the music note icon at the top right). Is the music muted?

I was using a bluetooth earphone and it wasn't working at the time. After that I tried with my wired earphone and it worked and now when I reconnected my bluetooth earphone it seems to work. Don't know why it wasn't working the first time though.

The issue still happens while using my bluetooth headset, disconnecting the headset and reconnecting it resolves the issue but it displays the same behaviour after some time.

Hi Andrin, since I updated from Android 9 to 10, I have the same behavior. I did not try with cable tough, only Bluetooth, and the ads are just playing. Taping on the music note doesn't mute the music. I have an OnePlus 6T. Upgraded, uninstalled the app did nothing. Thanks for looking into this.

I haven't tested the app on Android Q, as issues related to mute cannot be easily tested/debugged in a emulator and my devices are < Android Q. The behavior you described seems to be device specific as I do not have these issues on my devices. So unless someone debugs the issue on your device, it is likely that it will not get fixed.

Hi Andrin, since I updated from Android 9 to 10, I have the same behavior. I did not try with cable tough, only Bluetooth, and the ads are just playing. Taping on the music note doesn't mute the music. I have an OnePlus 6T. Upgraded, uninstalled the app did nothing. Thanks for looking into this.

Sometimes ad-free's background service is killed by the OS to save battery. In this case re-enabling the notification listener in the settings can fix undetected ads. Also remove ad-free from the list of apps that run in battery saved mode can fix issues. Issues for which ad-free detects ads but does not mute need debugging to figure out what's wrong.

Hello Andrin, upon tinkering around with your code (I've got only basic understanding of android app development) I found out that when I changed the method you used to set volume from adjustStreamVolume to setStreamVolume it worked and while unmuting using the same method the volume was set to max, so I set the volume to volume it was before using the musicStreamVolume variable that stored the previous volume.
From this:
`fun muteMusicStream() {
debug("current volume " + musicStreamVolume)
info("muting audio")
    if (musicStreamIsMuted) {
        return
    }
    musicStreamIsMuted = true
    val am = context.getSystemService(Context.AUDIO_SERVICE) as AudioManager
    musicStreamVolume = am.getStreamVolume(AudioManager.STREAM_MUSIC)

    am.adjustStreamVolume(AudioManager.STREAM_MUSIC, AudioManager.ADJUST_MUTE, 0)

}

fun unmuteMusicStream() {
    info("Unmuting audio....")
    if (!musicStreamIsMuted) {
        return
    }
    musicStreamIsMuted = false
    val am = context.getSystemService(Context.AUDIO_SERVICE) as AudioManager
    am.adjustStreamVolume(AudioManager.STREAM_MUSIC, AudioManager.ADJUST_UNMUTE, 0)
}`

to this:
`fun muteMusicStream() {
debug("current volume " + musicStreamVolume)
info("muting audio")
    if (musicStreamIsMuted) {
        return
    }
    musicStreamIsMuted = true
    val am = context.getSystemService(Context.AUDIO_SERVICE) as AudioManager
    musicStreamVolume = am.getStreamVolume(AudioManager.STREAM_MUSIC)

    am.setStreamVolume(AudioManager.STREAM_MUSIC, AudioManager.ADJUST_MUTE, 0)

}

fun unmuteMusicStream() {
    info("Unmuting audio....")
    if (!musicStreamIsMuted) {
        return
    }
    musicStreamIsMuted = false
    val am = context.getSystemService(Context.AUDIO_SERVICE) as AudioManager
    am.setStreamVolume(AudioManager.STREAM_MUSIC, musicStreamVolume, 0)
}`

Hello Andrin, upon tinkering around with your code (I've got only basic understanding of android app development) I found out that when I changed the method you used to set volume from adjustStreamVolume to setStreamVolume it worked and while unmuting using the same method the volume was set to max, so I set the volume to volume it was before using the musicStreamVolume variable that stored the previous volume.
Original:
`fun muteMusicStream() {
debug("current volume " + musicStreamVolume)
info("muting audio")
    if (musicStreamIsMuted) {
        return
    }
    musicStreamIsMuted = true
    val am = context.getSystemService(Context.AUDIO_SERVICE) as AudioManager
    musicStreamVolume = am.getStreamVolume(AudioManager.STREAM_MUSIC)

    am.adjustStreamVolume(AudioManager.STREAM_MUSIC, AudioManager.ADJUST_MUTE, 0)

}

fun unmuteMusicStream() {
    info("Unmuting audio....")
    if (!musicStreamIsMuted) {
        return
    }
    musicStreamIsMuted = false
    val am = context.getSystemService(Context.AUDIO_SERVICE) as AudioManager
    am.adjustStreamVolume(AudioManager.STREAM_MUSIC, AudioManager.ADJUST_UNMUTE, 0)
}`

Modified:
`fun muteMusicStream() {
debug("current volume " + musicStreamVolume)
info("muting audio")
    if (musicStreamIsMuted) {
        return
    }
    musicStreamIsMuted = true
    val am = context.getSystemService(Context.AUDIO_SERVICE) as AudioManager
    musicStreamVolume = am.getStreamVolume(AudioManager.STREAM_MUSIC)

    am.setStreamVolume(AudioManager.STREAM_MUSIC, AudioManager.ADJUST_MUTE, 0)

}

fun unmuteMusicStream() {
    info("Unmuting audio....")
    if (!musicStreamIsMuted) {
        return
    }
    musicStreamIsMuted = false
    val am = context.getSystemService(Context.AUDIO_SERVICE) as AudioManager
    am.setStreamVolume(AudioManager.STREAM_MUSIC, musicStreamVolume, 0)
}`

Hello Andrin, upon tinkering around with your code (I've got only basic understanding of android app development) I changed the method you used to set volume from adjustStreamVolume to setStreamVolume and it worked. Upon unmuting, the volume kept resetting to max volume, so I set the volume to it's previous value before muting and it seems to be working as expected.
PS: I don't know why this fix works. Also, thanks for this amazing app.

:+1: , will look into it. Probably on the weekend.

Hi Andrin, since I updated from Android 9 to 10, I have the same behavior. I did not try with cable tough, only Bluetooth, and the ads are just playing. Taping on the music note doesn't mute the music. I have an OnePlus 6T. Upgraded, uninstalled the app did nothing. Thanks for looking into this.

Sometimes ad-free's background service is killed by the OS to save battery. In this case re-enabling the notification listener in the settings can fix undetected ads. Also remove ad-free from the list of apps that run in battery saved mode can fix issues. Issues for which ad-free detects ads but does not mute need debugging to figure out what's wrong.

Hi Ardin, thanks, I will try these and let you know.

Hey Andrin, looking into the issue further, I found out that bluetooth absolute volume was causing the issue. Basically, when adjustStreamVolume method is used to mute the volume, my bluetooth earphones resets the volume back to what the device remembers as the last setting.
Upon disabling bluetooth absolute volume from developer options, this issue was fixed even with adjustStreamVolume. But this has the effect of requiring a user to control two (headphone and phone) volumes separately.
However as I have said above, if setStreamVolume is used in place of adjustStreamVolume it works as expected even if bluetooth absolute volume is turned on.

setStreamVolume seems to work with my headset too. Im planning to add an option to switch back to the current way if it will introduce issues for some users. this will make it in the next major release.

fixed in version #52


cmake CMAKE_TOOLCHAIN_FILE incorrect, use AzureSphereRTCoreToolchain.cmake

-DCMAKE_TOOLCHAIN_FILE="CMakeFiles\AzureSphereRTCoreToolchain.cmake"
This seems to be required to pick up the ARM GNU tools specified in ARM_GNU_PATH in order to build the HelloWorld_RTApp_MT3620_BareMetal sample.

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

ID: d96ea0aa-11c0-c2cc-e936-eecd824bd89d
Version Independent ID: d927434b-1b90-0f6b-0f98-ea59ea462bcb
Content: Build a real-time capable application on the Windows command line Quickstart - Azure Sphere
Content Source: AzureSphere/articles/install/qs-real-time-app-cli.md
Product: azure-sphere
GitHub Login: @Phka
Microsoft Alias: azurespheredocs

@maseman Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

@maseman Thank you for the feedback. This will be fixed in the next release of the documentation.

Verified the fix on https://docs.microsoft.com/en-us/azure-sphere/install/qs-real-time-app-cli and closing the issue.


IsSimilar Method Only Uses Primary Value

No sure if this is an issue or not, but looking at the code, is the IsSimilar method only using the 0 location on the array, aka the primary Double Metaphone value?
Should it not be something like....

(Primary Key = Primary Key) = Strongest Match
(Secondary Key = Primary Key) = Normal Match
(Primary Key = Secondary Key) = Normal Match
(Alternate Key = Alternate Key) = Minimal Match

Happy to implement, and issue a PR, but.. thoughts?

hey @m1nkeh it was implemented following the original article [(http://www.drdobbs.com/the-double-metaphone-search-algorithm/184401251?pgno=2)], but I can review it for sure

Hey, Anything on this yet? :)

soz, forgot to reply.. @eldersantos i read that post, but am not sure that is has the detail necessary in order to know that it was correctly implemented... to be honest, i am sure it's fine in "real world" usage. But when comparing the results from phonix to that of other implementations of double metaphone, such as in R, we were seeing differences.. if you like, i can dig them up?

Hi Chris, yeah feel free to send a PR
cheers
On Tue, May 29, 2018 at 8:10 AM, Chris Thompson<EMAIL_ADDRESS>wrote:

soz, forgot to reply.. @eldersantos https://github.com/eldersantos i
read that post, but am not sure that is has the detail necessary in order
to know that it was correctly implemented... to be honest, i am sure it's
fine in "real world" usage. But when comparing the results from phonix to
that of other implementations of double metaphone, such as in R, we were
seeing differences.. if you like, i can dig them up?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/eldersantos/phonix/issues/6#issuecomment-392739434,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AALBvCWZcfbrBbxkKXcuhYIQLXeRPo9vks5t3SzDgaJpZM4SZ1Al
.

Closed with the PR https://github.com/eldersantos/phonix/pull/8#issue-224246276


:only/:except options for expose

These options are useful to specify exposed fields for a using entity per request:
class User < GE
  expose :name
  expose :email
  expose :age
end

class Responce1 < GE
  expose :users, using: User, only: :name
end

class Respose2 < GE
  expose :users, using: User, except: :email
end

class Respose3 < GE
  expose :users, using: User, except: :name
end

As the result we have one shared type (User) that can be used in different context that need only specific fields from that type.

Isn't this feature essentially already available? https://github.com/ruby-grape/grape-entity#returning-only-the-fields-you-want

@dchandekstark I don't think so. The reference you pointed is about evaluating (or data processing) step. But this PR is about types definition and use it with inheritance.

Actually, this PR is not essential. On the project we've come up with the following base class:
# Example:
#
#   module Map
#     class UsersLocationsResponseSerializer < ApplicationSerializer
#       # Array of Hashes with Symbol keys that's response of Queries::Map::LastLocations
#       expose :locations, using: LocationSerializer
#       # Array of Hashes with Symbol keys that's response of Queries::Map::LastActivities
#       expose_nested :activities do
#         expose :user_id
#         expose_time :last_client_activity
#       end
#       # Array of Task
#       expose :tasks, using: TaskSerializer, only: %i[id summary]
#       # Array of User
#       expose :users, using: UserSerializer, except: %i[email]
#       # Boolean, true means the map should be fully redrawn (significant changes since last request)
#       expose :clear
#     end
#   end
class ApplicationSerializer < Grape::Entity
  # Extends the standard functionality with `:only` and `:except` options that
  # define exact serializable fields for the nested structures specified with `:using`.
  #
  # @note The `:only` and `:except` options can be used only along with `:using`.
  # @see Grape::Entity.expose for the standard set of attributes.
  def self.expose(*attributes, only: nil, except: nil, **options)
    if only || except
      using_class = options.delete(:using)
      raise ArgumentError, ':only or :except options can be used only with :using' unless using_class

      expose(*attributes, **options, format_with: proc { using_class.represent(_1, only: only, except: except) })
    else
      super(*attributes, **options)
    end
  end

  # Defines _in-line_ serializers.
  def self.expose_nested(attribute, **options, &block)
    entity_class = Class.new(ApplicationSerializer, &block)
    const_set("#{name.demodulize}_#{attribute}", entity_class)
    expose(attribute, using: entity_class, **options, &block)
  end
end


List style of beer in search results.

Right now, searching for beers produce results where 'type: beer' is always listed.  As all the results are beers, would it make more sense to instead list the style of beer in the results.

I agree, that's make more sense


Running into Tapping homebrew/cask is no longer typically necessary error in the Configure Detox Environment setup

Orb version
7.1.1
What happened
Started happening recently, was able to successfully finish this step a month back, and searching on Github also seeing these simiar issues are being reported: https://github.com/geerlingguy/mac-dev-playbook/issues/190
Running into the following error when going through the Configure Detox Environment step
==> Tapping wix/brew
Cloning into '/usr/local/Homebrew/Library/Taps/wix/homebrew-brew'...
remote: Enumerating objects: 747, done.
remote: Counting objects: 100% (203/203), done.
remote: Compressing objects: 100% (94/94), done.
remote: Total 747 (delta 100), reused 188 (delta 91), pack-reused 544
Receiving objects: 100% (747/747), 1.60 MiB | 11.31 MiB/s, done.
Resolving deltas: 100% (387/387), done.
Tapped 1 cask and 2 formulae (18 files, 1.6MB).
Error: Tapping homebrew/cask is no longer typically necessary.
Add --force if you are sure you need it done.

Exited with code exit status 1

Expected behavior
Should be able to config Detox environment successfully.

Configuring the detox environment is optional in 7.3.0, but that version of the orb needs to be published:
https://github.com/react-native-community/react-native-circleci-orb/issues/175

@dotcom900825 @fahimk newer versions of the orb have been published. 🎉
The feature you are looking for is included in version 7.2.0.


Feature.rename service objects

@pjbreaux @jlongstaf @zancas
What issues does this address?
The migration from using OpenStack names to name LTM objects
on the BigIP to the OpenStack UUIDs requires a test of the
translation from old to new names of existing LBaaS services.
This commit creates a docker container and test that will run
a neutronless agent that runs the legacy implementation.  Upgrade
tests can be executed using this container to deploy services
with the old algorithm.  The tests code for upgrade is in
this commit, but the full run_tests entry point needs to be
updated to execute the rename and teardown.
What's this change do?
Where should the reviewer start?
Any background context?

Ok'd by Jeff L


Improve str and repr messages in Geodesic Module

🐞 Problem
The geodesic module has very less informative string representation. It should be starting with:
"Geodesic Object ... "
Think about a better message.
🎯 Goal

💡 Possible solutions

📋  Steps to solve the problem

Comment below about what you've started working on.
Add, commit, push your changes
Submit a pull request and add this in comments - Addresses #<put issue number here>
Ask for a review in the comments section of pull request
Celebrate your contribution to this project 🎉

I want to work on this

Can i contribute to this ?

I'd like to work on this!

With #458 solved, I believe this issue should be closed. At least, remove the Good first issue tag!

#512 fixes this.


Theme not applying

[x] This is a question about using the theme.
[ ] This is a feature request or enhancement.
[ ] I believe this to be a bug with the theme.

[x ] I am using the latest version of the theme.
[ x] I have updated all gems with bundle update.
[ x] I have tested locally with bundle exec jekyll build.

Environment informations

Minimal Mistakes version:  latest
Jekyll version: latest
GitHub Pages hosted: yes
Operating system: macOS

Expected behavior
the theme would be applied
Steps to reproduce the behavior
https://github.com/jacc/JBGuide

You have your site configured wrong.
If you inspect the source of any page you'll see the paths are wrong (it's duplicating some stuff and you have an extra /).
For example this:
<link rel="stylesheet" href="https://jacc.github.io/JBGuide//JBGuide/assets/css/main.css">

I'd take a closer look at url, baseurl, repository, etc in your _config.yml and try to sort that out. This isn't a theme issue.


documentation failing in V1_feature_branch

The build of the docs in the v1_feature_branch current does not work:
https://github.com/OpenCOMPES/sed/actions/runs/10383160561

Addressed in #508


how to documentation

Can u please add requirements configuration on moodle?
Or some how to setup to use this module?
I try enable web services , REST , create token for user but not working.

Adding a "help wanted" label to this one. Do we have any users who are experienced with Moodle administration who can help me write a how-to to get web services (and therefore this module) up and running?

I guess at least from Moodle v3.9 a logged in user with admin-rights gets a pretty straight forward step-by-step guide on the following page of one's Moodle instance:
.../admin/category.php?category=webservicesettings