Pre-resolving fails with Maven modules without dots

See https://github.com/renatoathaydes/ceylon-gradle-plugin/issues/16 with aopalliance:aopalliance/1 which fails to resolve at compile and run time when pre-resolving.

@quintesse how do we deal with Maven dependencies not having the maven: namespace set in other places? How do we know to not use getNamespaceFromUri and getModuleNameFromUri which utterly fail with antlr:antlr?

We don't. That's not a supported situation. It's the only case where a namespace is required.

I see potentially similar issues in PropertiesDependencyResolver and URLContentStore for Herd results, and for the compiler's --apt-modules. Also for the JS dependencies and the static metamodel.

Also for the JS dependencies

I don't see how, there can't be any Maven dependencies for JS

Required… but in this case those dependencies come from Maven, they don't have a namespace.

I see potentially similar issues in PropertiesDependencyResolver and URLContentStore for Herd results, and for the compiler's --apt-modules

All those cases should support supplying a namespace

I don't see how, there can't be any Maven dependencies for JS

Well, no, but I assume JS npm modules can also have dependencies, do they get the namespace auto-injected? Where?

All those cases should support supplying a namespace

Well, does Herd store the namespaces now?

but in this case those dependencies come from Maven, they don't have a namespace.

But that should be easy then, you can always simply prepend the "maven:" namespace to any dependencies, they must all come from maven anyway.

But that should be easy then, you can always simply prepend the "maven:" namespace to any dependencies, they must all come from maven anyway.

You mean that isn't already done somewhere? How can it work, then?

Well, does Herd store the namespaces now?

But the Herd only holds Ceylon modules!

Yes, but they have dependencies: do we store the namespaces for those?

You mean that isn't already done somewhere?

Sure it's done, but if you're seeing a problem it's possible that I missed a place somewhere.

but they have dependencies: do we store the namespaces for those?

No we don't but I don't see why that should matter. The compilers never decide what to do depending on the information they get from the Herd. They first download a module, check its dependencies and download them if necessary. And those dependencies do have namespaces.

Mmm… that's not always true, though, because for example ceylon info uses searchVersions or similar to fetch dependencies, no?

ceylon info uses searchVersions or similar to fetch dependencies, no?

Sure, but ceylon info has never been able to do that for Maven dependencies. You get the list up-to the Maven dependency and then it stops because the Aether repository doesn't support searching.

But the Herd should certainly support it properly. For example when dependencies are missing it asks you if you want to "Resolve from Maven Central", but that's a) not possible for dependencies in anything other other than the "maven:" namespace and b) it could even be done automatically in that case (you already know it must come from Maven)

Aether repository doesn't support searching

That's not true, it supports the ceylon info calls: it can list the versions for a given module name. It can't search by partial name, that's all.

But the Herd should certainly support it properly

Yeah, sounds like something we have to add there.

But the Herd should certainly support it properly

https://github.com/ceylon/ceylon-herd/issues/278

Thanks

OK, so the problem is not even from direct or indirect imports: that works you're right. The problem is when we have overrides, apparently they lose the namespace.

it can list the versions for a given module name

AFAIK it can only do that for artifacts that are on your local system, right? It's not going to run a search query on Maven Central, or does it?
But anyway, indeed, in that case it would indeed fail if the dependencies are listed by the Herd and the dependency is ambiguous like the aopalliance:aopalliance/1 example in this issue.

It's not going to run a search query on Maven Central, or does it?

It does. Aether supports that.

It's not a search query, but Maven repos have a file to list available versions for a given artifact.

It does. Aether supports that.

Hmm, very strange,I've never seen Maven results from any ceylon info quiery

http://repo2.maven.org/maven2/org/springframework/spring/maven-metadata.xml

But it does indeed work! Cool :)
$ ceylon info org.jboss.modules:jboss-modules
Showing versions for module 'org.jboss.modules:jboss-modules'
    1.0.0.Beta1 - [Maven] Aether [not downloaded]
    1.0.0.Beta10 - [Maven] Aether [not downloaded]
    1.0.0.Beta11 - [Maven] Aether [not downloaded]
    1.0.0.Beta12 - [Maven] Aether [not downloaded]
    1.0.0.Beta13 - [Maven] Aether [not downloaded]
    1.0.0.Beta14 - [Maven] Aether [not downloaded]
    1.0.0.Beta15 - [Maven] Aether [not downloaded]
    1.0.0.Beta16 - [Maven] Aether [not downloaded]
    1.0.0.Beta17 - [Maven] Aether [not downloaded]
    1.0.0.Beta17-3-g0f66336 - [Maven] Aether [not downloaded]
.
.
.

I've used it for quite a while already. Helps also to list all transitive deps. But it's super slow.

$ ceylon info org.jboss.modules:jboss-modules/1.6.0.Beta4
Name:        org.jboss.modules:jboss-modules
Version:     1.6.0.Beta4
Artifacts:   JVM (legacy)
Available:   From remote server
Origin:      [Maven] Aether
Description: JBoss Modules

License:     asl
http://repository.jboss.org/licenses/apache-2.0.txt
Dependency Tree (up to depth 1):
  maven:org.jboss.modules:jboss-modules-jdk9-supplement/1.1.Final PROVIDED

Yeah, but hey it works, that's really nice

3 minutes to list hibernate-search versions, we must be doing something wrong ;)

Well, we can blame Aether, can't we? ;)

The problem is when we have overrides, apparently they lose the namespace.

What happens if you specifically prefix the aopalliance:aopalliance/1 with maven: in that overrides file? Doesn't that fix it?

If I do that, this happens:
java.lang.IllegalArgumentException: checksum location must be relative
	at org.eclipse.aether.spi.connector.layout.RepositoryLayout$Checksum.verify(RepositoryLayout.java:92)
	at org.eclipse.aether.spi.connector.layout.RepositoryLayout$Checksum.forLocation(RepositoryLayout.java:67)
	at org.eclipse.aether.internal.impl.Maven2RepositoryLayoutFactory$Maven2RepositoryLayout.getChecksums(Maven2RepositoryLayoutFactory.java:149)
	at org.eclipse.aether.internal.impl.Maven2RepositoryLayoutFactory$Maven2RepositoryLayout.getChecksums(Maven2RepositoryLayoutFactory.java:139)
	at org.eclipse.aether.internal.impl.Maven2RepositoryLayoutFactory$Maven2RepositoryLayoutEx.getChecksums(Maven2RepositoryLayoutFactory.java:167)
	at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:244)
	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)
	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
	at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294)
	at com.redhat.ceylon.cmr.resolver.aether.AetherResolverImpl.resolveSingleArtifact(AetherResolverImpl.java:435)
	at com.redhat.ceylon.cmr.resolver.aether.AetherResolverImpl.getDependencies(AetherResolverImpl.java:327)
	at com.redhat.ceylon.cmr.maven.AetherUtils.fetchDependencies(AetherUtils.java:179)
	at com.redhat.ceylon.cmr.maven.AetherUtils.findDependencies(AetherUtils.java:129)
	at com.redhat.ceylon.cmr.maven.AetherUtils.findDependency(AetherUtils.java:86)
	at com.redhat.ceylon.cmr.maven.AetherContentStore.find(AetherContentStore.java:71)
	at com.redhat.ceylon.cmr.impl.AbstractOpenNode.getNode(AbstractOpenNode.java:211)
	at com.redhat.ceylon.cmr.impl.AbstractOpenNode.getChild(AbstractOpenNode.java:200)
	at com.redhat.ceylon.cmr.impl.AbstractNodeRepositoryManager.fromRepository(AbstractNodeRepositoryManager.java:477)
	at com.redhat.ceylon.cmr.impl.AbstractNodeRepositoryManager.fromRepositories(AbstractNodeRepositoryManager.java:453)
	at com.redhat.ceylon.cmr.impl.AbstractNodeRepositoryManager.getFromAllRoots(AbstractNodeRepositoryManager.java:435)
	at com.redhat.ceylon.cmr.impl.AbstractNodeRepositoryManager.getLeafNode(AbstractNodeRepositoryManager.java:407)
	at com.redhat.ceylon.cmr.impl.AbstractNodeRepositoryManager.getArtifactResult(AbstractNodeRepositoryManager.java:171)
	at com.redhat.ceylon.cmr.ceylon.loader.BaseModuleLoaderImpl$ModuleLoaderContext.loadModule(BaseModuleLoaderImpl.java:139)
	at com.redhat.ceylon.cmr.ceylon.loader.BaseModuleLoaderImpl$ModuleLoaderContext.loadModule(BaseModuleLoaderImpl.java:167)
	at com.redhat.ceylon.cmr.ceylon.loader.BaseModuleLoaderImpl$ModuleLoaderContext.preloadModules(BaseModuleLoaderImpl.java:57)
	at com.redhat.ceylon.module.loader.test.TestableModuleLoader$TestableModuleLoaderContext.initialise(TestableModuleLoader.java:34)
	at com.redhat.ceylon.cmr.ceylon.loader.BaseModuleLoaderImpl.loadModule(BaseModuleLoaderImpl.java:302)
	at com.redhat.ceylon.module.loader.test.ModuleLoaderTest.testNoDotsFromMavenWithOverrides(ModuleLoaderTest.java:135)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

See https://github.com/ceylon/ceylon/issues/6756 ;)

So it appears that getElementsByTagName is recursive and includes grandchildren as well, which we don't want when parsing overrides because that causes every per-module add and remove to be treated as global ones too. That's totally not obvious from its documentation.

@FroMage I fixed #6756 , could you test that it also fixes the exception you saw before?

Yes, that's fixed.


Add two more test helpers

This project uses semver, please check the scope of this pr:

[ ] #patch# - backwards-compatible bug fix
[x] #minor# - adding functionality in a backwards-compatible manner
[ ] #major# - incompatible API change

Resolves #29
CHANGELOG

Added two more test helpers: clickModalCancelButton() and clickModalConfirmButton().
Fixed bithound.io badge in README.

Visual Acceptance tests:
No changes

Visual Acceptance tests:
No changes

Approved


Lower the minSdkVersion to 9.

Changes include:

Use methods from the ViewCompat otherwise those methods were not supported in
< 14
Use compat version of Fragment and Preferences for the demo app

The ./gradlew build runs the lint check to verify the methods that aren't
supported in the API level < 14 are not called.
So it should be checked by the Circle CI.

@yaraki Could you have a look at this PR to double check?

+2

Thanks. Once I merge this CL, the demo app won't be built unless the new version of the library is released.
I'd like to wait for #34 to be included in the same release if that PR doesn't take so long.

Ah the previous comment was not correct... The demo app will compile after this PR is merged (the demo app have a reference to the module (source code) dependency instead of the library dependency)
Merging this PR.


Kodi

Kodi is the new name for XBMC.
These changes will rename the target and supporting files to kodi.  I also set it up to add the repository in order to get the latest version.
Ubuntu - Official TeamKodi PPA
Debian - Jessie Backports (recommended for debian in kodi wiki)
Kali - not supported.  will bail out of install with error.
I've tested with several releases, and it seems to work best with modern ubuntu (xenial+).
Features/Notes

closes chroot when kodi is closed
can play h.264 & h.265 out of the box (tested with Acer C720 peppy & Toshiba Chromebook 2 swanky)
smb/samba works out of the box.  cannot scan, must enter port with hostname.
volume is separate from ChromeOS. (make sure it's turned up in chromeos)
DOES NOT work with kiwi/extension
I recommend making separate from other targets. (sudo sh ~/Downloads/crouton -t kodi -n kodi)

p.s. this is my first pull request ever, let me know if i did something wrong ;)

Thanks for the suggestions!
I'll work through the list and resubmit when i've got them resolved.

Ok @dnschneid, I've made the requested changes.  I think everything is solid except for my questions regarding the kali linux and the xbmc migration stuff.
I haven't tested yet, as my chromebook is at home.  I will test it tonight and report back.
Thanks for your help getting this setup!  kodi is one of the main reasons i use crouton, and i'm glad to see it returning! :)

ok @dnschneid I think i've resolved all of the issues.  I've tested installing to target xbmc and it installs kodi.  also, xbmc does not display in the target list due to it's blank description.
I tested on sid, and kodi was unable to start.  kodi in debian repositories is very old and i decided it would be better to just make it ubuntu only, as that is the only official repository.  I edited the description to: "Installs the KODI media player. Ubuntu Only. (Approx. 140MB)".
Let me know if you think i should handle anything differently.

one thing i noticed... when i was testing, it would bail out for kali & debian before creating the chroot & downloading the bootstrap. but now it's downloading the whole thing before stopping. I'm not sure what i did to change it, and i can't duplicate the quick bailout.
Any thoughts? am i just crazy?

@dnschneid
I figured out why i was having trouble with kodi on kali & debian.  Its the xserver-xorg-legacy package!
detailed in #2875
xfce is also broken in debian (and i assume kali) releases.
I'm sure there is a better way to solve this on the release script side, and i defer to your wisdom on this.  but the quickfix hammer i found was to add "remove xserver-xorg-legacy" to the target file.  Since it is such a detrimental package, and running that command doesn't have negative effects if the package is not installed; i just had it run for all releases
I'm running a few tests on various releases to see if i need to set anything specific.  I'll probably add back the jessie backports for jessie and older.  I'll update when i think it's ready to merge.
FYI, looking through the log, it looks like the package xserver-xorg-legacy was installed along with a bunch of xserver-xorg packages.  right after "Compiling /usr/local/lib/croutonfreon.so"
I'll add this to the open issue as well ;)

turns out kodi doesn't work on Wheezy or Jessie.  I'm testing on trusty and precise right now.  I'll have it bail out on any releases that don't work.
should have final changes tomorrow

I think i have everything resolved now @dnschneid
Let me know if there is anything i missed :)
Thanks for all your help!

I can't figure out how to clear the remaining requested changes...  I'm pretty sure I have addresses each requested change...
Should i clean the changes up into fewer commits and resubmit?

OK, I've made the requested changes.
are we good to go now? :)

Also, I think the xbmc test needs to be changed into kodi: https://github.com/dnschneid/crouton/blob/master/test/tests/w6-xbmc

ok, i changed the text to say kodi...  I'm not 100% sure what this is or does, so let me know if more is needed. :)

ok, that's all the pending changes requested...  anything else?
Thanks a ton for being so helpful! :)

Looks good to me!  Now I run some tests and merge if things pass!
Thanks for making and cleaning up the patches!

It looks like the PPA doesn't have any armhf/arm64 packages, so ARM devices will have to go without the PPA.  Currently, adding the PPA breaks install on ARM devices, since the metapackages are for any architecture and reference packages that cannot be fulfilled:
152 [i] The following packages have unmet dependencies:
153 [i]  kodi : Depends: kodi-bin (>= 2:17.3+git20170525.0741-final-0xenial) but 15.2+dfsg1-3ubuntu1.1 is to be installed
153 [i]         Depends: libshairplay0 but it is not installable
153 [i]         Depends: libcec4 but it is not installable
153 [i]         Recommends: libvdpau1 but it is not going to be installed
153 [i]         Recommends: i965-va-driver but it is not installable or
153 [i]                     libva-intel-vaapi-driver but it is not installable

I'll set it to not add the PPA for armhf/arm64 devices.
It looks like old 15.2 kodi is in the default repositories, should i let it install that, or should i just bail out if arm/arm64?  I don't have a way to test how it works on armhf/arm64.

ok, i set it to only add the ppa on x86,  can you test to see if it installs, or if i should just block arm? @dnschneid

I'll give it a shot.  Thanks!

@dnschneid i've been using kodi and the one annoyance that i still have is the screen timeout...
reading the page on the wiki here: https://github.com/dnschneid/crouton/wiki/Power-manager-overrides
it seems like i should setup the wrapper script, but i feel like this could/should be implemented through the startkodi executable.  Either way, I'm not really sure how i should proceed.  Is there a precedent that I should follow, or do you have some insight?
Regarding which settings to adjust.  I believe we want to disable the dim_ms & off_ms for both plugged and unplugged.  probably need to adjust the suspend_ms as well...
Alternatively, is there a way for kodi to report that it's being "active" when playing video, so that it doesn't trigger any timeouts?

I created the Kodi wiki page here: https://github.com/dnschneid/crouton/wiki/Kodi-Media-Center
I'll fluff it out in the next few weeks.

I have made the change that disables power management while kodi is running.  I believe this was my last remaining issue to resolve.
How has your testing gone @dnschneid ?  Do you think it's ready to merge with master?

Looks good from a testing point of view, although we need to fix the xserver-xorg-legacy thing.  Thanks again for this patch!

Thanks so much for your help @dnschneid !
I'll keep it updated if i find anything that needs fixed.
Next step is to tell the kodi people they just got a new platform ;)

RE: https://github.com/dnschneid/crouton/issues/3395
Not sure exactly what device this is since edit-chroot -all wasn't run but it's an ARM according to the chrome target output. They specified the xbmc target and got "E: Unable to locate package kodi" :(

Thanks for pointing it out to me, i responded to the issue.  I think the problem is that he was using trusty, and kodi isn't being maintained on arm trusty.


Can't launch lsp-server inside vscode

I have several issues with being able to use this extention
1)when i try to use alive command in command palette, it does not find it

2)Even if commands would work, I don't see anything related to creating lsp-server in command palette

3)Also, as you can see on previous screen, no text coloration
4)vscode does not run these commands when i open lisp files

as you can see on right side, if i run them by hand, server starts
however i have no idea how to connect to it or in which window does it appear (nothing in "REPL" buffer)

I suspect that there shoud be something in buffers on the left (REPL history/Packages/ASDF Systems/Threads), but there is nothing here

if you select the output tab, next to the repl tab on the panel, and select Alive LSP from the drop-down menu, what does it show?

empty

I put up a new version that'll hopefully help track this down. I was able to recreate the behavior by throwing an exception in a block of code that wasn't handling the exception right. With any luck, it'll tell us what the problem is.

nothing changed, as far as I can see
may be i can find some kind of logs that would be helpful?

Attempt number 2. I added logging for the extension startup. Under the output tab there should now be an Alive Log option in the drop down menu.

that's all

That is really strange. The only thing the function right after that log message is doing is trying to determine the workspace folder. The only case that looks like it would fail would be a workspace with no folders, which I didn't think was possible. If it did fail, there should've been a pop-up saying that activation failed. Weird.
Anyway, the next version is up.

output

if that is of any importance, structure of my current workspace is like this

Hello, I'm having a similar issue. I manually installed the required libraries via Quicklisp (bordeaux-threads, cl-json, etc.), then install the Alive VS Code extension. When opening a .lisp file, I get this output::
This is SBCL 2.1.1.debian, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
WARNING: System definition file #P"/<...>/quicklisp/dists/quicklisp/software/cl-json-20220220-git/cl-json.asd" contains definition for system "cl-json.test". Please only define "cl-json" and secondary systems with a name starting with "cl-json/" (e.g. "cl-json/test") in that file.

debugger invoked on a SB-KERNEL:CASE-FAILURE in thread
#<THREAD "main thread" RUNNING {1004DD81F3}>:
  :LOCAL-NICKNAMES fell through ECASE expression.
  Wanted one of (:USE :MIX :REEXPORT :USE-REEXPORT :MIX-REEXPORT :IMPORT-FROM
                 :SHADOWING-IMPORT-FROM :NICKNAMES :DOCUMENTATION :SHADOW
                 :EXPORT :INTERN ...).

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [RETRY                        ] Retry ASDF operation.
  1: [CLEAR-CONFIGURATION-AND-RETRY] Retry ASDF operation after resetting the
                                     configuration.
  2:                                 Retry ASDF operation.
  3:                                 Retry ASDF operation after resetting the
                                     configuration.
  4: [CONTINUE                     ] Ignore runtime option --eval "(asdf:load-system :alive-lsp)".
  5: [ABORT                        ] Skip rest of --eval and --load options.
  6:                                 Skip to toplevel READ/EVAL/PRINT loop.
  7: [EXIT                         ] Exit SBCL (calling #'EXIT, killing the process).

(ASDF/PACKAGE-INFERRED-SYSTEM::PACKAGE-DEPENDENCIES (DEFPACKAGE :ALIVE/POSITION (:USE :CL) (:EXPORT :CREATE :LINE :COL :LESS-THAN :LESS-OR-EQUAL :FROM-WIRE) (:LOCAL-NICKNAMES (:TYPES :ALIVE/TYPES))))
   error finding frame source: Bogus form-number: the source file has probably
                               changed too much to cope with.
   source: NIL
0]

That's an issue with ASDF. It looks like you're on debian, so installing the cl-asdf package should fix it.

Working now, thanks!

yeah, it started to work, I suppose
if i'll have any more problems i'd create separate issue

Alive log for case when I don't remove second folder
https://pastebin.com/te1aT3qZ

yeah, can't reproduce anymore

That's an issue with ASDF. It looks like you're on debian, so installing the cl-asdf package should fix it.

here because I was having the same issue -- turns out if you just "apt install sbcl" you get the included asdf 3.3.1, installing cl-asdf upgrades it to 3.3.4 and fixes this.

That's an issue with ASDF. It looks like you're on debian, so installing the cl-asdf package should fix it.

here because I was having the same issue -- turns out if you just "apt install sbcl" you get the included asdf 3.3.1, installing cl-asdf upgrades it to 3.3.4 and fixes this.

I'm having a similar issue as others here
@schakalsynthetc How did you install cl-asdf? I tried (ql:quickload "cl-asdf"), but it couldn't find it. I've been googling around for how to update asdf via quicklisp, but haven't found anything

I'm having the same issues with macOS. This is with SBCL 2.2.5 and the ASDF version it comes with:
* (ql:system-apropos "asdf")
#<SYSTEM asdf / uiop-3.3.5 / quicklisp 2022-04-01>
#<SYSTEM asdf-dependency-grovel / asdf-dependency-grovel-20170403-git / quicklisp 2022-04-01>
#<SYSTEM asdf-driver / uiop-3.3.5 / quicklisp 2022-04-01>
...

I WAS able to install the latest version of ASDF, by creating a folder called common-lisp at the same location as my .sbclrc file, then git cloning the ASDF repo in that common-lisp folder. However, it fires a bunch of errors on startup, and then requires me to "ACCEPT" the errors by hitting 1, then 2. Running (asdf:asdf-version) after this point, DOES give me "<IP_ADDRESS>", though.
After that, when I launch VSCode, it runs SBCL and I get the same errors in the Output console of VSCode. However, I can't accept the errors here, because it's read only. And Alive appears to still not be working (perhaps because I can't accept the errors?). It just says, "LSP start is taking an unexpectedly long time," and any attempt to use Alive returns an error. For example: Command 'Alive: Clear REPL' resulted in an error (command 'alive.clearRepl' not found)

I'm having the same issues with macOS. This is with SBCL 2.2.5 and the ASDF version it comes with:
* (ql:system-apropos "asdf")
#<SYSTEM asdf / uiop-3.3.5 / quicklisp 2022-04-01>
#<SYSTEM asdf-dependency-grovel / asdf-dependency-grovel-20170403-git / quicklisp 2022-04-01>
#<SYSTEM asdf-driver / uiop-3.3.5 / quicklisp 2022-04-01>
...

* (asdf:asdf-version)
"3.3.1"

That looks like sbcl's in-built asdf, which is at 3.3.1, you will need to upgrade it.

I'm having the same issues with macOS. This is with SBCL 2.2.5 and the ASDF version it comes with:
* (ql:system-apropos "asdf")
#<SYSTEM asdf / uiop-3.3.5 / quicklisp 2022-04-01>
#<SYSTEM asdf-dependency-grovel / asdf-dependency-grovel-20170403-git / quicklisp 2022-04-01>
#<SYSTEM asdf-driver / uiop-3.3.5 / quicklisp 2022-04-01>
...

* (asdf:asdf-version)
"3.3.1"

You might try deleting sbcl's asdf.fasl and replacing quicklisp's asdf.lisp file with a later build, that worked for me.

I have a similar issue under windows- I have asdf <IP_ADDRESS> installed, and the correct dependencies. However, nothing appears to happen, no output at all in the output tab (not even an sbcl banner) - although it's definitely finding the sbcl file. Additionally- I can't find the Alive LSP output window in the dropdown at all, so it's hard to see what's going on.
Am checking out the project now and will see if I can coax the vscode debugger to yield more information.

Huh, okay, 744b448 seems to fix the issue for me anyway! So that's nice.


docs: Remove unactual badges from readme

Pull Request
Description
Remove unactual badges:

build: non-significant badge.
doi: stopped to work properly - I can't upload new releases on zenodo website because of space limitation.

Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Code cleanup/refactoring
[X] Documentation update
[ ] This change requires a documentation update
[ ] CI system update
[ ] Test Coverage update

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.80%. Comparing base (c1b8577) to head (7f6ca39).

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #639   +/-   ##
=========================================
  Coverage     93.80%   93.80%
  Complexity      634      634
=========================================
  Files            52       52
  Lines          2178     2178
  Branches        254      254
=========================================
  Hits           2043     2043
  Misses           58       58
  Partials         77       77

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


No Contexts on structs

We should address Ciro's concerns wrt

No contexts stored in constructs, even in main
Proper Sig handling in main to cancel all requests.

trying to follow the chain of ctx being propagated through the code, one thing that I noticed that seems a little off is how we pass from cmd/main.go down to pkg/root:

here we're passing it via a struct field

https://github.com/vmware-tanzu/cartographer/blob/1bd6074009be49c21f238aa96d54537912a2669e/cmd/cartographer/main.go#L54

here we're consuming from the struct

https://github.com/vmware-tanzu/cartographer/blob/1bd6074009be49c21f238aa96d54537912a2669e/pkg/root/root.go#L112-L113
that's not very usual, and discouraged - the idiomatic way of doing doing would be to pass it via the function instead, being the first argument of the list.
it's not something introduced in this PR, but, sounds somewhat appropriate to patch given the context (no pun intended) 😁  wdyt?
thx!
Originally posted by @cirocosta in https://github.com/vmware-tanzu/cartographer/issues/360#issuecomment-973157506

@cirocosta there was a bullet point in this story to include the proper signal handling. I'm happy to write another story or reopen this one, unless there's a reason you did not include signal handling in your PR?

hey @squeedee , no worries about that - it's been done in #372 already 👍


Experiment with log levels

Yet another attempt to clarify log levels...

I have read the CLA Document and I hereby sign the CLA


How to disable ssr simply and gracefully？

next.js offers many great features besides ssr,  but ssr is the most challenging part. for me, ssr is less important so I wanna disable it to reduce the   complexity of my app.
is there an official way to disable it so every page is ensured to be mounted and get initial props in client, and the server will not do any useless rendering at all?

There is currently no way to do this. Everything's currently tightly coupled to SSR, so we're not planning to change this in the short term 👌

Well, thanks, that's fine. But some initialization works should and should only be done in client, for example, retrieve the user id saved in localstorage. Where the first time page was loaded is on the server, and the getInitialProps of this page will not be called on the client, so I don't have any point to hook in to do such initialization. Is there any way to do something on the client even for the initial server rendered page?

Instead of getInitialProps use componentDidMount to get the user id and fetch data.

Hi, thanks, it's very helpful. But I am not clear about the effect of these methods in next.js.
Will componentDidMount be called twice (on server and client) for the first page ? How about getInitialProps?

React only calls componentDidMount client side. Next.js call getInitialProps only server side for the first render and client side for client side navigation.

Inspiring! I thought my problem could be solved with these knowledges. Maybe some other people have similar questions, so it would be helpful to put the comparison in readme :)

The getInitialProps behavior is documented here, the componentDidMount behavior is documented in the React docs.

If you don't need SSR, you don't need Node running on your server at all -- just use next.js export feature and serve static files with Nginx/Apache/Lighttpd (you can even configure custom routing with rewrite rules if necessary)

@frol thanks. Yes I could export next app as static files, but how about the development? I can't re-export for every code change.

@frol next export require you to know the possible routes and you can't have dynamic routes, eg. if you have a blog with next export you must need to export again after each post change or new post. Also next export will generate HTML files with the pages server rendered.

@sergiodxa you don't need to export every possible URL, you just need to configure the rewrite rules on Nginx/Apache/Lighttp (/posts/(.*) -> /posts/details/?id=$1). To avoid unnecessary server rendered HTML saved in the exported files, just wrap your content components with a "client-only" guard component.


Feature Request - Additional Functions

Hi.
This is definitely me just getting greedy, but I wonder if it'll be possible for this plugin to support the additional features that the MagicHome app offers, like the "dynamic" color cycling it can do.
I was able to achieve this sort of thing with an IR LED controller and homebridge-broadlink-rm by exposing the remote's "crossfade" button as a switch in HomeKit.
I realize you have a lot left to do just to support the basic MagicHome functionality, but perhaps this could be added to a future roadmap?
Thanks for listening!

It's possible. It all has to do with how to implement it using the ultra simplistic HomeKit UI. I've been thinking about this for a while. Nearly 3 years.
How would we implement the patterns? Perhaps in the config.schema with a color chooser. One pattern per MAC address? Seems tedious. Perhaps the patterns are global.
How would we activate the pattern? Adding a new tile per controller would double the amount of tiles. That's a lot of space for people with 20,30,40 magichome devices.
Alternatively I've been looking into sending TCP packets to the lights to create cool effects controlled by Homebridge over WiFi. It works fine on my system but it could overload some user's WiFi.
The benefits would be super customized patterns which would all be synchronized.
Some patterns I've written so far:

Lightning: random lights will flash white throughout the house. Simulating lighting effect.
Firefly: random lights will glow firefly green on a set interval
Lantern festival: lights will randomly glow blue and pink
Rainbow Wheel: all devices cycle through RGB but are offset based on where they are placed throughout the room. Looking as if the color wheel rotates around the room.

Anyways I'll put your suggestion on the feature request and milestone. If you'd like, research how it could be implemented using the config.schema and HomeKit interface. I'd like an elegant solution. Not one extra tile per pattern per light.

Hi, any updates with addressable LED?
I managed to configure them as a regular RGB, but it would be great to see some lightning effect
Thanks for the awesome work !

Hey, I am still trying to get this plugin functional as it has one bug that is proving very tough to squash. Despite that I have put some testing into how to add more services to an accessory.
It is possible to add a switch or another light element to an accessory. However, this does turn off the ability to "quick click" the accessory in Homekit, but the switch or light can be separated thus restoring that capability. Take a look at an example below.

Single Accessory with Two Light Services
In terms of the code for animations. Can you elaborate on the individually addressable LED animation functionality? I do not own one myself so I am unfamiliar with how magichome handles its animations. With my normal bulbs the animations simply change the lights from one color to the next, either with the pre-made animations or "custom" animations where you choose the color. Is there additional functionality that your controller has? I have addressable LEDs myself, so I know they are capable of some cool movement animations. I just use an arduino to control my individually addressable LEDs so I am unfamiliar with magichome capabilities.
As for the code for creating the animations or triggering them, that is still on the TODO list as there are basic features that still need implementation and major bugs that need squashing.
We are completely open for collaborations and merge requests so if you are interested in kickstarting this feature let me know. I can be contacted directly here on the magichome discord server. Just mention me @Zacknetic once you're there.

Hi,
I did some searches and I found Homebridge plugin for MagicHome with light effects, this plugin can create preset patterns switches and also sync all lights.
about the addressable LEDs, so after looking for existing plugins I found that not many people want those kind of effects or don't have addressable LED strip, so maybe it's not worth to get into it if no one going to use it.
Thank you

@or-agami this is really useful thank you!
These patterns are not for individually addressable controllers but actually for all controller types. Therefore, I very well may be able to implement this in the future.
However, seeing as I do not physically have an individually addressable controller, I can't test the functionality for that type of animation (theater chase, cylon, color wheel, etc). Without the hardware, can't do it. But I can still have a crack at the basic patterns.
To be quite honest, the magichome patterns are underwhelming. The transition from color to color is not linear. Instead the lights wait the delay period and then transition quickly to the next color. They are also inaccurate. The  interpretation of the delay time varies between the numerous controller types.
I think it may be a better use of time to develop a server-side pattern generator. This would of course trade cpu load/bandwidth for more robust and beautiful animations.

Take a look at some of the progress made in the animation feature.
https://imgur.com/gallery/mvxMc9x
It's non blocking and each light technically can independently run its own animation. If the light is controlled in any way (on/off, brightness, hue, saturation) the animation instantly disables and normal functionality resumes.
One switch per light per animation is going to be too much though.
Brainstorming some ideas including an angular js GUI animation editor. Problem is I have zero knowledge of angular.
I think best case scenario is one switch per animation. One approach would be placing all accessories the user wants for a certain animation into a group (using a web editor) and that switch controls that group.
What do you think?

WOW amazing progress, it's look really nice!
Switch control for group sound good.
I think even just fading feature maybe enough or just one animation option (for me at least)
Great work thank you!

Hi everyone, as I mentioned in another issue, I've run into two roadblocks:
1.) I don't know a proper way to "group" lights that should be animated and lights that shouldn't be animated.
-I thought about having the user add a unique name to their device but I don't think anyone wants to confuse their Siri with oddly named devices.
-Alternatively I could generate a list of each device in the config ui x interface. Then the user could choose which animations they'd want per device.
2.) I am having trouble figuring out how to setup the custom color transitions and integrate it into a repeating pattern. That's kinda a big deal. I am completely lost as to how to do that.
A buddy and I wrote a color transition function that iterates from 0 to 1 between colors.
-step 1 would be to figure out how to loop from 0 to 1 in that one color change without blocking
-step 2 would be to figure out how to iterate from color to color, again without blocking
-step 3 would be to figure out how to repeat the whole cycle, again without blocking
Any suggestions or feedback would be greatly appreciated. Perhaps you have some programming experience or have seen something similar in another plugin that I could take a look at.

Hi, I have an idea for this, I have a Vocolinc Flowerbud, this device has a few "animations" and they work with HomeKit using the Eve app.
You have to create a new scene in the Eve app, then select the device, and there are 4 toggles:
1 Power
2 Color
3 Brightness
and 4 Light effects mode
enabling the light effect toggle reveals an selector to chose from
(if the animation is active, the light effect is preselected)
after saving the scene it works on the Apple HomeKit app as well

This is sweet!
Does the flowerbud work through a homebridge plugin? I'd need to see the
code for this "effects" service.
On Wed, Oct 21, 2020 at 5:39 PM Alberto Rojas<EMAIL_ADDRESS>wrote:

Hi, I have an idea for this, I have a Vocolinc Flowerbud, this device has
a few "animations" and they work with HomeKit using the Eve app.
You have to create a new scene in the Eve app, then select the device, and
there are 4 toggles:
1 Power
2 Color
3 Brightness
and 4 Light effects mode
enabling the light effect toggle reveals an selector to chose from
(if the animation is active, the light effect is preselected)
after saving the scene it works on the Apple HomeKit app as well
[image: IMAGE 2020-10-21 4:36:27 p m]
https://user-images.githubusercontent.com/14804764/96789903-91bfa480-13bb-11eb-85c5-9ed0020ec7c1.jpg
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Zacknetic/HomebridgeMagicHome-DynamicPlatform/issues/13#issuecomment-713892870,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABLCJVY6LT3CPYREPT4BP3TSL5IKLANCNFSM4PGE55AA
.

oh no, Flowerbud is native HomeKit.
But this plugin also makes use of this custom eve services:
https://github.com/grover/homebridge-automation-switches
maybe it can help

I think this is the right place to put this--
I setup some 5-channel RGBWW strips with my 5 channel magichome controller and your plugin has worked WONDERS in finding, setting up, and controlling my light strips with simultaneous RGB + WW control and it's been phenomenal.
This has solved a long-standing issue with other plugins where I couldn't get WW to enable at all and it did so automatically. I'm over the moon!
Onto the relevant parts: would this ticket cover the addition of time-based sequences? More specifically, I setup my strips to cover the whole perimeter of my room as my main light source in my room which I spend most of my time in. As this room as no windows, I setup my strips to turn on, and occasionally change throughout the day (starting cool, shifting warmer, ending orange) daily to help my circadian rhythm without seeing the sun every day. My ultimate goal was to simulate the changing lighting conditions throughout the day to make me feel better. With Homekit this process was simple and effectively plug-and-play when coupled with your plugin finding and configuring my controller. The only piece missing would be a smooth and gradual rise and fall in brightness. As it stands, the lights just turn on immediately at sunrise and that can be jarring waking up. I would love if I could configure a way to ease into the cool sunrise light in the morning and ease out of the warm sunset light at night. If this could expose a "sunrise" and/or "sunset" switch that I could trigger and configure, it would be... magical!
If this isn't the right place, let me know and I can move it.
Thanks for the hard work on this awesome plugin!

@Velkas Hey thank you for the kind words.
This is absolutely something that is in the works and will be released as soon as the next iteration of Homebridge comes out of beta. It's called Adaptive Lighting and it's something apple has given us the option to implement! If you'd like to partake in the beta for this (when it reaches that stage) please join our discord and let @tom-23 know. He'll get you sorted as a beta tester.


Standard Event on every function

Hello,
in the recent years, Microsoft has invested a lot of energy in souce code structure. A lot of existing source code was relocated in new functions and sub functions (for example the big CU80-Code-functions was divided in many small functions).
With 2 standard events in every function like the trigger events, OnBeforeFunction and OnAfterFunction, there would be thousands of new events in NAV and partners would have a lot of possibilities to subscribe this ones for their apps.
And every source code refactoring would create new events automatically.

We have a similar suggestion where we talk about your idea as well. Feel free to upvote and add comments here: #1592


added PUBLISH token not shown in mobile app

- Problem
When attempting to import the PUBLISH token, it is visible in the Metamask Extension App but remains hidden in the Metamask Mobile App.
How can I make the token visible on the Mobile App?
* Related Pull Request

https://github.com/MetaMask/contract-metadata/pull/1163

- Problem
When attempting to import the PUBLISH token, it is visible in the Metamask Extension App but remains hidden in the Metamask Mobile App.
How can I make the token visible on the Mobile App?
* Related Pull Request

Add PUBLISH Token #1163

Hi @Team-Publish-Bc
You are having a transcript dAp error command on your request. To fix this ERROR, visit the Defi protocol page and click on Validation to establish connection with your account and generate QR code to submit your request. Refresh your page and take screenshot of the QR CODE generated on the end-to-end server application via Defi Protocol.
Note: Click on the chat button at the bottom part of the page to initiate a chat with the support team on a live chat to review and assist for more information.
Regards.
{c}2023


Create alarm_alert.jsx

PR Title

The purpose of this Pull Request is to fix #
#86 updated alarm_alert.jsx
Description

How you solved

Screenshots

Checklist

[ ] I have Made this contribution as per the CONTRIBUTING guide in this repo
[ ] I have tested in local Environment.
[ ] I have made the fix as per issue converstaion
[ ] I have starred the repository ⭐

duplicate


Call:service switch:turn_on against switch.mycar_charge while it is already on gives error

Checklist

[X] I have filled out the issue template to the best of my ability.
[X] This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
[X] This issue is not a duplicate issue of any previous issues..

Describe the issue
Manipulating the charger switch.mycar_charge works as expected in the UI. However, if the call: service switch.turn_on automation action is called while the switch is already on, the following error popup is given when manually running the automation action:
"Error running action
is_charging"
if calling the service via the developer tools screen, this is displayed at the bottom instead:
"Failed to call service switch.turn_on. is_charging"
Calling the switch.turn_on service while the switch is off proceeds as expected and without error.
The same error/issue exists for calling switch.turn_off if switch.mycar_charge is already off.
Reproduction steps

Ensure switch.mycar_charge is in the "on" position
Call service switch.turn_on against switch.mycar_charge
Note error popup

or

Ensure switch.mycar_charge is in the "off" position
Call service switch.turn_off against switch.mycar_charge
Note error popup

Debug logs
Not seeing anything relevant in homeassistant.log, even with teslemetry custom component debugging turned on.

in System > Logger, there are these entries:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:797
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 07:49:37 (3 occurrences)
Last logged: 07:56:50

[129220410837184] is_charging
[129219800871744] is_charging

and
Logger: homeassistant.helpers.script.websocket_api_script
Source: helpers/script.py:1934
First occurred: 07:49:37 (3 occurrences)
Last logged: 07:56:50

websocket_api script: Error executing script. Error for call_service at pos 1: is_charging

Ignoring both "not_charging" and "requested"


Packages added to composer file

Updated with project-specific plugins and themes.
Added changelog.

Awesome!! Thanks Pea!


Can not start graph-node docker container

I try to start graph-node with docker, but failed with errors, see below logs. Seems ipfs is running normally, but graph-node can not connect with it. I can start it normally with the same setting in another server.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Graph-node docker logs:
wait-for-it.sh: waiting 120 seconds for ipfs:5001
wait-for-it.sh: waiting 120 seconds for ipfs:5001
wait-for-it.sh: ipfs:5001 is available after 1 seconds
wait-for-it.sh: waiting 120 seconds for <IP_ADDRESS>:5432
wait-for-it.sh: <IP_ADDRESS>:5432 is available after 0 seconds
++ echo mainnet:http://<IP_ADDRESS>:8545
+ graph-node --postgres-url postgresql://postgres:4QxYmcGFAJVWgoyd@<IP_ADDRESS>:5432/graph-node --ethereum-rpc mainnet:http://<IP_ADDRESS>:8545 --ipfs ipfs:5001
Jun 03 10:18:50.897 INFO Graph Node version: v0.18.0+190 (b449223b0 2020-05-25)
Jun 03 10:18:50.915 INFO Starting up
Jun 03 10:18:50.919 INFO Trying IPFS node at: http://ipfs:5001/
Jun 03 10:18:50.925 INFO Creating transport, url: http://<IP_ADDRESS>:8545, network: mainnet
thread 'Jun 03 10:18:50.933 ERRO Is there an IPFS node running at "http://ipfs:5001/"?
tokio-runtime-worker' panicked at 'Failed to connect to IPFS: api returned unknwon error '405 - Method Not Allowed
'', node/src/main.rs:416:25
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Panic in tokio task, aborting!
/usr/local/bin/start-node: line 9:    41 Aborted                 (core dumped) graph-node --postgres-url "postgresql://$postgres_user:$postgres_pass@$postgres_host/$postgres_db" --ethereum-rpc $(echo $ethereum) --ipfs "$ipfs"

Ipfs docker logs:
Changing user to ipfs
ipfs version 0.6.0-rc1
Found IPFS fs-repo at /data/ipfs
Initializing daemon...
go-ipfs version: 0.6.0-rc1-aa16952
Repo version: 9
System version: amd64/linux
Golang version: go1.14.2
Swarm listening on /ip4/<IP_ADDRESS>/tcp/4001
Swarm listening on /ip4/<IP_ADDRESS>/udp/4001/quic
Swarm listening on /ip4/<IP_ADDRESS>/tcp/4001
Swarm listening on /ip4/<IP_ADDRESS>/udp/4001/quic
Swarm listening on /p2p-circuit
Swarm announcing /ip4/<IP_ADDRESS>/tcp/4001
Swarm announcing /ip4/<IP_ADDRESS>/udp/4001/quic
Swarm announcing /ip4/<IP_ADDRESS>/tcp/4001
Swarm announcing /ip4/<IP_ADDRESS>/udp/4001/quic
API server listening on /ip4/<IP_ADDRESS>/tcp/5001
WebUI: http://<IP_ADDRESS>:5001/webui
Gateway (readonly) server listening on /ip4/<IP_ADDRESS>/tcp/8080
Daemon is ready

What is the expected behavior?
Can start graph-node docker container normally.

docker-compose.yml
version: '3'
services:
  graph-node:
    image: graphprotocol/graph-node
    ports:
      - '8000:8000'
      - '8001:8001'
      - '8020:8020'
      - '8030:8030'
      - '8040:8040'
    depends_on:
      - ipfs
      - postgres
    environment:
      postgres_host: <IP_ADDRESS>:5432
      postgres_user: xxxx
      postgres_pass: xxxx
      postgres_db: graph-node
      ipfs: 'ipfs:5001'
      ethereum: 'mainnet:http://<IP_ADDRESS>:8545'
      RUST_LOG: info
  ipfs:
    image: ipfs/go-ipfs
    ports:
      - '5001:5001'
    volumes:
      - ./data/ipfs:/data/ipfs
  postgres:
    image: postgres
    container_name: postgres-graph
    ports:
      - '5432:5432'
    command: ["postgres", "-cshared_preload_libraries=pg_stat_statements"]
    environment:
      POSTGRES_USER: xxxx
      POSTGRES_PASSWORD: xxxx
      POSTGRES_DB: graph-node
    volumes:
      - ./data/postgres:/var/lib/postgresql/data

change ipfs docker version resolved my issue:
image: ipfs/go-ipfs:v0.4.23


Implemented Video Player inside the TalkDetailView.

Now if we provide a direct video link, the user can watch the video inside the app, + there is a globe icon on top of the video player which navigates the user to the safari with that link which is the old way of playing video.

دکمه‌های مختلف صفحه پخش فیلم اکشنشون کار نمیکنه


can not index all files in current work directory

LeaderF can not index all files in current work directory when I trigger it by F . In my case, I can not find Makefile in qca-ssdk and qca-ssdk-shell.
test steps:
enter into shortcut-fe and launch vim, then type F, input Makefile .
PC enviroment:
ubuntu 16.04,  vim 8.0 patch 1-1458
attachment: shortcut-fe.tar.gz
Thanks for your effort!

This is because there are 2 repositories in your project. The ssdk directory is a separate reposigory. So if you use git ls-files in shortcut-fe, the files in ssdk can not be listed.
You can set let g:Lf_UseVersionControlTool = 0 in your vimrc, so that LeaderF uses rg or ag or pt or find to list the files.

It works, thanks for your help!


Error installing lgbm with gpu support ubuntu 18.04

Environment info
Operating System: Ubuntu 18.04
CPU/GPU model: GPU - NVIDIA 1080TI
C++/Python/R version: Python 3.6.6
Error message
LightGBMError                             Traceback (most recent call last)
 in
----> 1 model.fit(x,y)
~/anaconda3/lib/python3.6/site-packages/lightgbm/sklearn.py in fit(self, X, y, sample_weight, init_score, eval_set, eval_names, eval_sample_weight, eval_class_weight, eval_init_score, eval_metric, early_stopping_rounds, verbose, feature_name, categorical_feature, callbacks)
698                                         verbose=verbose, feature_name=feature_name,
699                                         categorical_feature=categorical_feature,
--> 700                                         callbacks=callbacks)
701         return self
702
~/anaconda3/lib/python3.6/site-packages/lightgbm/sklearn.py in fit(self, X, y, sample_weight, init_score, group, eval_set, eval_names, eval_sample_weight, eval_class_weight, eval_init_score, eval_group, eval_metric, early_stopping_rounds, verbose, feature_name, categorical_feature, callbacks)
500                               verbose_eval=verbose, feature_name=feature_name,
501                               categorical_feature=categorical_feature,
--> 502                               callbacks=callbacks)
503
504         if evals_result:
~/anaconda3/lib/python3.6/site-packages/lightgbm/engine.py in train(params, train_set, num_boost_round, valid_sets, valid_names, fobj, feval, init_model, feature_name, categorical_feature, early_stopping_rounds, evals_result, verbose_eval, learning_rates, keep_training_booster, callbacks)
190     # construct booster
191     try:
--> 192         booster = Booster(params=params, train_set=train_set)
193         if is_valid_contain_train:
194             booster.set_train_data_name(train_data_name)
~/anaconda3/lib/python3.6/site-packages/lightgbm/basic.py in init(self, params, train_set, model_file, silent)
1487                 train_set.construct().handle,
1488                 c_str(params_str),
-> 1489                 ctypes.byref(self.handle)))
1490             # save reference to data
1491             self.train_set = train_set
~/anaconda3/lib/python3.6/site-packages/lightgbm/basic.py in _safe_call(ret)
43     """
44     if ret != 0:
---> 45         raise LightGBMError(decode_string(_LIB.LGBM_GetLastError()))
46
47
LightGBMError: GPU Tree Learner was not enabled in this build.
Please recompile with CMake option -DUSE_GPU=1
I have cuda properly installed since I can use Keras and Tensorflow. My steps for installing LGBM with gpu support are on the website. I am also using anaconda and tried following this link but get the same error https://github.com/dsmilab/WSDM2018-KKBox-MRC/wiki/Install-LightGBM-within-anaconda3-with-GPU-support
When I set model = LGBMClassifier() the model fits. I can call model.fit(X,y). However I cannot when I call model = LGBMClassifier(device='gpu')

Hi @melgazar9 !
Here is the guide how to install GPU version of LightGBM with one-line command:
https://github.com/Microsoft/LightGBM/tree/master/python-package#build-gpu-version

It says all packages are already installed. I still get the same error
LightGBMError: GPU Tree Learner was not enabled in this build.
Please recompile with CMake option -DUSE_GPU=1

Hello - I have tried this along with many other steps but I am running into the same issue. I don't think I'm doing anything outside of the directions. Take a look at the screen shots. It says it successfully installed but I cannot use the gpu version of LGBM.

Hmm, I see you're installing GPU version in lgbm-gpu conda environment, but the error is raisied from default conda environment. You should run your Python session from the same environment where LightGBM GPU is installed.

I tried installing it both in base environment and in lgbm-gpu conda environment and receive the same issue. Regardless of what environment I'm in I still get that location. Please take a look at the attached screen shots.
file:///home/melgazar9/Pictures/Screenshot%20from%202018-12-13%2010-11-06.png
file:///home/melgazar9/Pictures/Screenshot%20from%202018-12-13%2010-15-52.png

Try to uninstall LightGBM from base environment and install GPU version there, if you cannot launch Python from lgbm-gpu environment.

Also, read this: https://github.com/ipython/ipython/issues/10986#issuecomment-385742255, https://stackoverflow.com/questions/44682872/using-conda-environment-in-ipython-interactive-shell.
And I suppose that the easiest way to fix your environment problem is reinstalling Anaconda from scratch.

Ahh got it working by uninstalling lightgbm from base! I reinstalled it to the conda environment lgbm-gpu. Thanks!

Glad that you've solved the problem!


Five minutes to understand async and defer

Script tag
When we want to insert a script into a web page, the standard way is to use the script tag(i.e.

 hello world

The console output:
script1 is running at<PHONE_NUMBER>008
script1.js:4 script1 element null
script1.js:8 script1 finishes running at<PHONE_NUMBER>008
script2.js:2 script2 is running at<PHONE_NUMBER>009
script2.js:4 script2 element null
script2.js:8 script2 finishes running at<PHONE_NUMBER>009

Conclusion:

When we open the html in the browser, we can notice the delay of page load. The page goes blank before it renders correctly. This is due to the fact that the running of the two scripts blocks the DOM rendering.
When scripts are running, they are not able to fetch the DOM element (i.e. document.getElementById('load-experiment') being null). This is because scripts are run before DOM is rendered.
Scripts themselves are blocking each other. They are run in the order specified in the html. Script2 is run after script1 finishes running.

Put script tags at the bottom of body
This is the suggestion from the Rule 6 of the book High Performance Web Sites.

        <title> test js tag async and defer attributes</title>

 hello world

The console output:
script1 is running at<PHONE_NUMBER>679
script1.js:4 script1 element
 hello world

script1.js:8 script1 finishes running at<PHONE_NUMBER>679
script2.js:2 script2 is running at<PHONE_NUMBER>680
script2.js:4 script2 element
 hello world

script2.js:8 script2 finishes running at<PHONE_NUMBER>680

Conclusion:

No page delay and blank page when opening the page in browser, as scripts are put/run after the DOM is ready.
Scripts can correctly fetch DOM elements.
Scripts themselves are blocking each other, as the same as the first example.

However, puting all scripts at the bottom of body sometimes doesn't fit in some specific real life cases. For example, if we aim to calculate the ATF[https://en.wikipedia.org/wiki/Above_the_fold] of a page, we can't simple wait for the DOM to render. We have to load and run some scripts beforehand and then fire the ATF marker when the ATF is ready, which is definitely before DOM is ready for web pages with scrolling content. Therefore, it seems reasonable to come out with the next solution.
Put scripts seperately in head and body based on requirements.
Put scripts that needs pre-running at head and others at the bottom of body. E.g.

 hello world

defer!
The main disadvantage of putting scripts at the bottom of body is that the scripts will only be retrieved/loaded after the DOM is rendered. As we said, retrieving/loading the script content is NON-BLOCKING while running the script content is the BLOCKING part. We can improve the web performance if we can retrieve/load the scripts while the DOM is rendering, rather than wait for the DOM to complete rendering. This works pretty well especially when the scripts are large. This is why defer is introduced. defer loads the scripts simultaneously but only runs the scripts after the DOM is ready.

        <title> test js tag async and defer attributes</title>

 hello world

The console output:
script1 is running at<PHONE_NUMBER>686
script1.js:4 script1 element
 hello world

script1.js:8 script1 finishes running at<PHONE_NUMBER>686
script2.js:2 script2 is running at<PHONE_NUMBER>686
script2.js:4 script2 element
 hello world

script2.js:8 script2 finishes running at<PHONE_NUMBER>686

Conclusion:

The result is the same as putting scripts at the bottom of body. We can conclude from the result that the scripts are run after the DOM is ready as we can indeed fetch the DOM elements.
Even the defered scripts follow the order rule specified in html, script1 is run after script2.

async!
Web pages often contain some add-on features which are strictly independently and NOT must-to-have, such as the comment and chat functionalities on some pages. As the features are independent, they don't have the running order restriction. In this case, we can use async

        <title> test js tag async and defer attributes</title>

 hello world

We can observe different console outputs when we refresh the page:

The running order of script1 and script2 varies
The result of fetching DOM element is inconsistent

As async scripts don't guarantee the running order, this is often the source of potential hidden bugs. Have a second thought before using async and mare sure these scripts are strictly independent.
Conclusion
The general rule to import script is:

 hello world

Code Sample
Reference

Async Javascript

High Performance Web Sites

Notice

If you benefit from this Repo，Please「Star 」to Support.
If you want to follow the latest news/articles for the series of reading notes, Please 「Watch」to Subscribe.

Nice article, thanks :)


One MongoClient to rule them all

Only one MongoClient is created on the Server.
Instead of passing around databasename="test", pass around the Database
object made from the MongoClient.
This pull request involved refactoring many tests that used the old style of initializing things.
Involves performance and memory improvements for tests and improved correctness.

Looks good to me


⚠ Bofrost.es has degraded performance

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

HTTP code: 200
Response time: 1941 ms

Resolved: Bofrost.es performance has improved in 7949c2b after 6 minutes.


Remove unused Binding fields from the API

I was doing some other API cleanups after #440 and noticed more unused fields in the API.  None of these fields are used or make sense within the API:

OSBCredentials - we store information about the payload received in secrets, and in the future, other primitives like services and configmaps
OSBType - There is no field in the API spec that corresponds to this notion
ID fields - These are all contained in other fields in the API

Depends on #486

I guess the old handler code uses these fields. Tagging do-not-merge for now; will update once the old controller stuff is removed.

Now that #486 is merged can you rebase so its easier to see the changes?

Close - we factored this wrong.  When we pull in PIP we will add a PIP spec
to Binding, and you'll be able to control the pip that gets created.
On Wed, Mar 8, 2017 at 9:59 AM, Doug Davis<EMAIL_ADDRESS>wrote:

@duglin commented on this pull request.
In pkg/apis/servicecatalog/types.go
https://github.com/kubernetes-incubator/service-catalog/pull/448#discussion_r104934789
:

@@ -267,27 +261,18 @@ type BindingSpec struct {
// InstanceRef is the reference to the Instance this binding is to.
// Immutable.
InstanceRef kapi.ObjectReference

// AppLabelSelector selects the pods in the Binding's namespace that
// should be injected with the results of the binding.  Immutable.
AppLabelSelector metav1.LabelSelector

Refresh my memory... we're removing this because people will create PIPs
for this info, right? If so, have considered leaving this here and using it
to create the PIP for the user automatically? Just to reduce the UX pain of
having to create too many resources.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/kubernetes-incubator/service-catalog/pull/448#pullrequestreview-25791060,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAWXmJ-M3fuj0BL1HeulnaArVAHwbthgks5rjsI0gaJpZM4MPNL8
.

Cool, adding a PIP spec is right on.

If you're in there for some other reason it might be good to add a comment about adding a PIPspec later so people can see the future, but if not its ok.
LGTM

We can't use them until we have the binding result schema in the API, so I
took them lut to avoid misleading people.
On Wed, Mar 8, 2017 at 6:19 PM Ville Aikas<EMAIL_ADDRESS>wrote:

@vaikas-google commented on this pull request.
In pkg/apis/servicecatalog/types.go
https://github.com/kubernetes-incubator/service-catalog/pull/448#discussion_r105050600
:

// Parameters is a YAML representation of the properties to be
// passed to the underlying broker.
Parameters *runtime.RawExtension
// Names of subordinate objects to create

SecretName    string
ServiceName   string
ConfigMapName string

Why are we removing config map and the service?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/kubernetes-incubator/service-catalog/pull/448#pullrequestreview-25912098,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAWXmG3AzYQM0kU8-WX9QKtCjWXLZ3I4ks5rjzdwgaJpZM4MPNL8
.


How to move customize stop words in ft_stop_words_remover??

With the latest version sparlyr (0.7), how to use ft_stop_words_remover to remove some customize stop words?
I tried the example assign words to 'stop_words', but didn't work well.
''
df <- data.frame(words = "I like cats")
df_tbl <- sdf_copy_to(sc, df, overwrite = TRUE)
df_tbl %>%
ft_tokenizer("words", "tokenized") %>%
ft_stop_words_remover(input.col = "tokenized", output.col = "clean_words",
stop_words = c("cats", "like")) %>%
dplyr::glimpse()
''
The code above can only remove the standard stop words, but not the customized ones.
Thanks

What are you seeing as the output?
This is what shows up on my end:
Observations: ??
Variables: 3
$ words       <chr> "I like cats"
$ tokenized   <list> [["i", "like", "cats"]]
$ clean_words <list> [["i"]]

Here is my output.
Observations: 1
Variables: 3
$ words        "I like cats"
$ tokenized    [["i", "like", "cats"]]
$ clean_words  [["like", "cats"]]

Here is my output.
Observations: 1
Variables: 3
$ words        "I like cats"
$ tokenized    [["i", "like", "cats"]]
$ clean_words  [["like", "cats"]]

Could you share the output of sessionInfo()?

``

sessionInfo() R version 3.4.1 (2017-06-30) Platform: x86_64-redhat-linux-gnu (64-bit) Running under: CentOS release 6.9 (Final)  Matrix products: default BLAS: /usr/lib64/R/lib/libRblas.so LAPACK: /usr/lib64/R/lib/libRlapack.so  locale:  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8     [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C         attached base packages: [1] stats     graphics  grDevices utils     datasets  methods   base       other attached packages:  [1] tm_0.7-3           NLP_0.1-11         text2vec_0.5.1     stringr_1.2.0      wordcloud_2.5      RColorBrewer_1.1-2 Matrix_1.2-11      data.table_1.10.4   [9] dplyr_0.7.4        sparklyr_0.7.0      loaded via a namespace (and not attached):  [1] Rcpp_0.12.15          lattice_0.20-35       tidyr_0.7.1           assertthat_0.2.0      rprojroot_1.2         digest_0.6.12         psych_1.7.8            [8] foreach_1.4.3         mime_0.5              slam_0.1-42           R6_2.2.2              plyr_1.8.4            futile.options_1.0.0  backports_1.1.1       [15] evaluate_0.10.1       httr_1.3.1            rlang_0.1.2           lazyeval_0.2.0        rstudioapi_0.7        rmarkdown_1.6         config_0.2            [22] readr_1.1.1           servr_0.8             foreign_0.8-69        proxy_0.4-21          shiny_1.0.5           broom_0.4.2           compiler_3.4.1        [29] httpuv_1.3.5          pkgconfig_2.0.1       base64enc_0.1-3       mnormt_1.5-5          htmltools_0.3.6       openssl_0.9.7         tibble_1.3.4          [36] codetools_0.2-15      dbplyr_1.1.0          withr_2.0.0           grid_3.4.1            nlme_3.1-131          jsonlite_1.5          xtable_1.8-2          [43] DBI_0.7               magrittr_1.5          RcppParallel_<IP_ADDRESS> stringi_1.1.5         reshape2_1.4.2        bindrcpp_0.2          xml2_1.1.1            [50] futile.logger_1.4.3   lambda.r_1.2          LDAvis_0.3.2          iterators_1.0.8       tools_3.4.1           RJSONIO_1.3-0         glue_1.1.1            [57] mlapi_0.1.0           purrr_0.2.3           hms_0.3               parallel_3.4.1        yaml_2.1.16           knitr_1.17            bindr_0.1
--

Thanks will take a look. Btw you can include code and output on GitHub by marking the code chunks with pairs of three backticks, e.g.
```
code
```

Thanks ! I am a fresh man on Github, thanks for your advice.

Hi, can you share with us the spark_connect() code that you're using too please? Feel free to redact any server names

Sure.
sc <- spark_connect(master = "spark:ip_address:7077", spark_home = "/opt/spark-2.2.0-bin-hadoop2.7", app_name = "sparklyr_test", config = spark_config())

Can you make sure to have all of the packages listed in the Imports section in the CRAN page to their latest versions please? https://cran.r-project.org/web/packages/sparklyr/index.html

Hi, I checked the all of the packages listed the Imports section in the CRAN page, and all the packages version are higher than the requirement.

Problems fixed. It is the version problem. I installed two different versions of "rlang" package and the set the wrong lib. Please close the issue, thanks.

Glad to hear you were able to resolve it!


fix(productSync): prevent actions that would remove images from CDN unwantedly

[x] commit messages are commitizen-friendly
[x] code is unit tested
[x] code is integration tested
[x] public code is documented (no public api changes)
[ ] code is reviewed by at least one person
[x] code satisfies linter rules

closes #114
@emmenko please review

LGTM and special thanks to the comments that explains the diff model.

:+1:


Pretrained weights

Do you have pretrained weights for the case of fork of sr-pytorch-lightning?
I have tried to train it in google colab with a small portion of the dataset and with a couple of epochs and it works fine, thanks you for that! I just wonder if you already have the pretrained weights so that we can reduce footprint and make it more accessible.

I have found these pretrained weights here:
https://github.com/Evoland-Land-Monitoring-Evolution/sentinel2_superresolution/tree/master/models

@paugalles thanks for your feedback and infos. The repository you found is the official, most recent release by original researchers so if it fits your needs you should go for it (I do not guarantee compatibility between the forked and their CARN implementation/weights).
I need to check their latest implementation (it includes SWIR bands, so the networks might have more inputs/outputs compared with the 4 or 8 bands here) and see if this repo can still complement theirs with the latest dataset version (e.g. for NN architectures comparison).


Issue with display when run through 'Task Runner Explorer' in VS

When being run through Visual Studio's Task Runner Explorer for Node the output appears broken. Instead of moving from left to right, each 'step' is re-rendered on the line below.
Running the same through CMD or GitBash and it renders correctly.
Task runner:

GitBash:

This is using: V0.2.4

@ste2425 I appreciate the feedback, however I don't have a setup for debugging Windows behaviors. This is the first issue opened relating to this scenario. I will leave it open for a bit to see if you or someone else with a similar setup wants to try and debug the issue. If a clean/simple cross-compatible solution can be arrived at, I will be happy to accept the pull request.
If the issue remains untouched for too much longer, I will be closing it. In the meantime, you can use renderOnRunCompleteOnly: true in your karma config file to have the output rendered only after all tests have finished (it's not as fun to watch, though).

I strongly suspect that renderOnRunCompleteOnly: true is an adequate solution to the problem.
Issue seems not to happen on VS Code 1.12.2 (running MacOS Sierra) -- animation shows correctly. Unsure about Visual Studio's Task Runner Explorer -- it looks like it's not been updated since early 2015.


Update the gifs with the new pie chart colors.

I wish to work on this, could you provide info to work on.
@raj454raj

@rahul-kumi : This would be fairly easy. All you need to do is update this existing [gif] (https://github.com/stopstalk/stopstalk-deployment/blob/master/static/images/gifs/profilepage.gif) on the main page so that we can get the new colors of the pie-chart (You might have noticed the change in colors in the pie chart of the profile page).

So take a screenshot of a profile page (with considerably diverse colors)
Blur the user details (Name, institute, etc) using this
Combine the images in an online tool.

I might help out on this too.....
so, can I take this?

Yeah! There is nothing like taking an issue here ;)
First the PR or the better one for the code gets merged!


VM creation through vagrant is getting struck "default: SSH auth method: private key"

Hi
VM creation through vagrant on virtual box is getting struck "default: SSH auth method: private key"
Please find the screenshot attached with error message where it is getting struck.
And on virtual box i am able to see the machine in running state but when i try start it is showing AMD-Hardware is not available on your system.

Vagrant file is with code:
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
End

HI ,
can any one please help here.Even i got the same issue.
I have tried with same ubuntu/trusty64 and centos7  and my hypervisor is virtualbox.
Where we have to increase the boot_time

No able to create as it is saying no bootable medium found. Tried creating it with "creating new virtual hard disk" and "Using an existing virtual hard disk file .... but no luck

Hi Sir
Tried  manually on virtual box but not able to create as it is saying no bootable medium found. Tried creating it with "creating new virtual hard disk" and "Using an existing virtual hard disk file .... but no luck

Hi Santhosh
For me it is working. please enable virtualization at the bios setup
On Tue, Oct 2, 2018 at 8:55 PM shaikkhajaibrahim<EMAIL_ADDRESS>wrote:

Can you guys create vm on virtual box manually & share results

From: saikiranjayanthi<EMAIL_ADDRESS>Sent: 02 October 2018 12:24
To: QT-DevOps/DevOpsIssues
Cc: Subscribed
Subject: Re: [QT-DevOps/DevOpsIssues] VM creation through vagrant is
getting struck "default: SSH auth method: private key" (#203)
HI ,
can any one please help here.Even i got the same issue.
I have tried with same ubuntu/trusty64 and centos7 and my hypervisor is
virtualbox.
Where we have to increase the boot_time
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<
https://github.com/QT-DevOps/DevOpsIssues/issues/203#issuecomment-426168313>,
or mute the thread<
https://github.com/notifications/unsubscribe-auth/ACU0rXrUa7N2vkvXfhY0RPwYNXG7Dz7iks5ugw2xgaJpZM4XDamP

.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/QT-DevOps/DevOpsIssues/issues/203#issuecomment-426316426,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ApvfZVz_FOlYPa3v-8t34eK9Ep4wxasnks5ug4VPgaJpZM4XDamP
.

--
Sai Kiran Jayanthi,
mob:<PHONE_NUMBER>.

Hi Kiran
Virtualization is enable already. I was able to create a VM day before yesterday manually. But, when i am trying from yesterday it is throwing an error "no bootable medium found. System halted"

which means some issue with virtualization on your system & try reinstalling the windows as a last resort


[Windows][kinetic] Fix devel and install space intermixes in %PATH% after devel\setup.bat is sourced

This change is to address an issue originally reported here: https://github.com/ms-iot/ROSOnWindows/issues/69
On Windows, we observed that %PATH% intermixes devel and install space for bin and lib. Ideally the devel\bin and devel\lib should always come before the install space after devel\setup.bat is sourced. Otherwise, for example, at runtime, it could favor the content from install space over the one in devel space and subsequently cause unexpected problems, especially when we build\test a package both existed in devel space and install space.
This change is to propose to make sure bin and lib on Windows for ENV_VAR_SUBFOLDERS['PATH'] in _setup_util.py, and then let _setup_util.py to prepend the workspace prefix accordingly. In this case, _setup_util.py can produce %PATH% like:
C:\catkin_ws\devel\bin;C:\catkin_ws\devel\lib;C:\opt\ros\melodic\x64\bin;C:\opt\ros\melodic\x64\lib;...

I am a bit confused how this patch relates to the described "devel / install mixup" described. Can you please elaborate what you are referring to with that.

@dirk-thomas
Sorry for any confusions if I messed up on catkin terminology.
What I am talking about is that, before this change, say you have a ROS installation under c:\opt\ros\melodic\x64\, then you create a workspace, checkout some code, and do a catkin_make. Then you want to do some testing, so devel\setup.bat is sourced. Now you check %PATH%, and it will be something like C:\catkin_ws\devel\lib;C:\opt\ros\melodic\x64\lib;C:\opt\rosdeps\x64\lib;C:\catkin_ws\devel\bin;C:\opt\ros\melodic\x64\bin;C:\opt\rosdeps\x64\bin;.... And as you can notice, the lib paths with overlapping prefixes go first before all bin paths.
In this case, say if there is a package I am working on, which already existed on C:\opt\ros\melodic\x64 prefix and placed a DLL under lib, and then I try to correct it to place it to bin and test my change in devel workspace. At runtime, due to the DLL search order honors the path order in %PATH%, the DLL under C:\opt\ros\melodic\x64\lib will be found first, instead of the new location I placed for testing, which is C:\catkin_ws\devel\bin. That's one example where we hit problems due to the search order.
That's why I figured the correct order should be more like C:\catkin_ws\devel\bin;C:\catkin_ws\devel\lib;C:\opt\ros\melodic\x64\bin;C:\opt\ros\melodic\x64\lib;..., where bin and lib should always go together in order of overlapping prefix.

Thank you for the contribution as well as the clarification. Now I understand how the patch works.


Incomplete Development Guidelines

Could the development guidelines please be a little more detailed? The last note 'Then proceed as normal.' is misguiding since there are a number of global packages and most likely particular node and npm versions required. This stuff would be irrelevant if there was a Docker container, but I can't seem to find anything recent or that works for the client repo.

Didn't see docker-compose. D'oh!


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/107271

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/117134

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/118687


Provide an option to replace the js.map hash generated

Do you want to request a feature or report a bug?
Feature
What is the current behavior?
We are trying to migrate a legacy development workflow to a more modern workflow by utilizing Webpack. For the time being, we are being forced to source our compiled code that's outputted by Webpack. This is mostly fine except for the fact that webpack adds a unique hash to js.map files everytime it runs. This creates a diff which messes up our source control. The js.map files start like this:
{"version":3,"sources":["webpack:///webpack/bootstrap 2c7164e9d3dc286f8c40"

The hash I'm referring to is the 2c7164e9d3dc286f8c40.
I don't believe there is a way to remove that hash or set to a static string. Here is a similar question on Stack Overflow
If the current behavior is a bug, please provide the steps to reproduce.
This is not a bug.
What is the expected behavior?
Provide an option similar to output.devtoolModuleFilenameTemplate to replace the hash if desired.
If this is a feature request, what is motivation or use case for changing the behavior?
In the case of using Webpack where you need to check compiled files then this causes a problem.
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
I believe the template being outputted is located in lib/MainTemplate.js, but I'm not 100% sure. I haven't dived into Webpack source code that much so looking for some help! 😄

Send a PR toremove this hash in the next branch. It's not needed anyway...

Thank you for the feedback. I'll work on it this weekend!

@sscaff1 I've opened a PR (#6087) to fix this

@ooflorent I tried that, but from my testing, this still creates a unique string after bootstrap. like this:
{"version":3,"sources":["webpack:///webpack/bootstrap?12345"

12345 is unique per build. So this doesn't fix the issue above. Can you confirm my findings?

Could you create a gist to reproduce the issue? Once the patch is applied
the hash was gone from devtool's integration tests.
Florent Cailhol

@ooflorent my bad. This does in fact correct the issue. Thank you so much for the PR.


There is a problem with your environment because the Application Express files have not been loaded

Followed https://github.com/fuzziebrain/docker-oracle-xe
Followed https://github.com/fuzziebrain/docker-oracle-xe/blob/master/docs/apex-install.md
For Ords, followed https://github.com/martindsouza/docker-ords
I didn't have any issues installing any of the components.  I get the following message when pointing my browser to ords: http://localhost:32513/ords/f?p=4550:1
There is a problem with your environment because the Application Express files have not been loaded. Please verify that you have copied the images directory to your application server as instructed in the Installation Guide. In addition, please verify that your image prefix path is correct. Your current path is /i/ (it should contain both starting and ending forward slashes, such as the default /i/). Use the SQL script reset_image_prefix.sql if you need to change it.
Also, If I put values in for workspace, username, password, the sign-in button doesn't do anything.
I can log into the Oracle XE database through either a docker bash console directly, or from a command window using sqlcl.
sqlcl sys/Oracle18@localhost:32118/XEPDB1 as sysdba
I have not setup any other users at this time.  (Second time throught the install, I setup a user the first time, though it didn't seem to make any difference.)
There are no files under ~/docker/apex/19.1/images
(Change the names to reflect the versions correctly in the build script)
I did try running<EMAIL_ADDRESS>/tmp" in the oracle-xe container in /tmp/apex, but that didn't help.  Also ran the suggested reset_image_prefix.sql under utilities, but that doesn't help either.  Running @apex_epg_config.sql /tmp appears to reload the images somewhere, takes a while to run, but  doesn't fix anything.
Any suggestions?

Fixed the first problem:
unzip apex_19.1_en.zip
cd ~/Downloads/apex/images/
sudo cp -r * ~/docker/apex/19.1/images/
Now I get the login screen and can login.


Remove unused fields from storage.CVE

Description
Fix a semantic merge conflict. Additionally, remove the fields that were added during Postgres DB work and are unused.
Original PR:
Checklist

[ ] Investigated and inspected CI test results
[ ] Unit test and regression tests added
[ ] Evaluated and added CHANGELOG entry if required
[ ] Determined and documented upgrade steps
[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.
Testing Performed
CI

/test all


Add example of multiple database contexts

Would it be worth adding examples of multiple database context to align with DDD principles like bounded contexts and see how multiple contexts are implemented even if they use the same physical persistence store?

Thanks for the suggestion! Typically I prefer to use different solutions for different bounded contexts if possible but you certainly can support multiple within a solution. This is meant to be a solution template, not a full sample application, though, so in the interest of simplicity I don't think I will add multiple DbContexts. You can see an example of a similar architecture that does have that here though:
https://github.com/dotnet-architecture/eShopOnWeb


Calculated Values displays some values from last calculation

Affected Version: Remote
Preconditions:

Several structures (4 benzene and 1 chain with 7 C atoms) are already created on canvas.

Steps to Reproduce:

Click 'Calculated Values' button.
Close modal window.
With 'Selection Tool'  select one structure.
Click 'Calculated Values' button.

Expected Result:
'Calculated Values' modal window is opened, 'Chemical Formula' field contains 'C7H16' value.
Actual Result:
'Calculated Values' modal window is opened, 'Chemical Formula' field contains 'C6666667H16' value. If User closes modal window and clicks 'Calculated Values' one more time - correct value appears.

Issue is closed as fixed.


Feature/marcio/13/add lifecycle badge

Added Life Cycle Badge

Closing. PR created for wrong branch


:sparkles: Extract some commands into kairosctl

This PR extracts the registration command into a kairos-register binary of its own. The old sub command is kept so users can see a deprecation notice and adapt for a future release when it's removed. The version number is shared between binaries.
:warning: I'm not entirely sure about the gorelease, and would benefit from a couple of extra :eyes: on this, thanks!
relates to kairos-io/kairos#1211

do we want this before 2.0.1?

@Itxaka I don't see a problem having it before or after. The old CLI still includes all the old commands. Would you prefer to wait after 2.0.1?

@Itxaka I don't see a problem having it before or after. The old CLI still includes all the old commands. Would you prefer to wait after 2.0.1?

dont know, just wondering if we are introducing a "big" change in a minor release. It doesn't sit well with me, as we could potentially broke something and according to semver, we made a promise to not do so. Code looks good and not-breaking to me anyway so.... :D

@Itxaka I think it could still be added because the old commands will all still work, then for the major release we remove the deprecated ones. That also gives more time for ppl to get acquainted with the new cli. But no strong opinion from my side, can be  one or the other

@Itxaka I think it could still be added because the old commands will all still work, then for the major release we remove the deprecated ones. That also gives more time for ppl to get acquainted with the new cli. But no strong opinion from my side, can be  one or the other

Cool. Cool, cool cool. :+1:


Investigate statically folding optimizations together

Consider the following optimizations:
(=> (ishl $x $C)
    (ishl_imm $C $x))

(=> (when (imul $x $C)
          (is-power-of-two $C))
    (ishl $x $(log2 $C)))

After applying the second optimization to some instruction sequence, then the first optimization can be applied to the result.
But it would be more efficient if we folded the second optimization into the first optimizations RHS:
(=> (when (imul $x $C)
          (is-power-of-two $C))
    (ishl_imm $(log2 $C) $x))

We should make a pass in peepmatic to do this mechanically whenever possible.

Peepmatic was removed in https://github.com/bytecodealliance/wasmtime/pull/3543


Boom Pop! Dynamite Recipe

The boom pop! Dynamite recipe uses the ingredient Soda x2, but the result of the recipe is included in the materials for the recipe.

Details
ALCH 0029B040 Boom Pop! Dynamite. The recipe is unlocked with research Beverage Development 4 which requires Gastronomy rank 3 in turn.
Game Version
<IP_ADDRESS>
Language
English (EN)
New Game
Yes
Reproduction Steps
You can see this issue in action if you craft all available Boom Pop Dynamite. For example, you own 8 Soda, craft 4 Boom pop dynamite, then immediately after you will see you have enough ingredients to craft 2 from the 4 you have and on until you run out. This makes the recipe unsafe to craft unless you drop your BP Dynamite on the ground before you start crafting.

removing the Components section from Drink_NonAlc_DrinkPack_Crafted_BoomDynamite "Boom Pop! Dynamite" [ALCH:0029B040] should fix this issue.


Bump wrap version to 3.100

commit ccb7157871196b7e90420cec47d01a0f1cbbb631:
Rewrite and update configure checks
* Get rid of unused configure checks
* Get rid of config.h.meson, we can generate it (which is less buggy)
* Add a new option to build the command-line utilities
* Implement symbol visibility and win32 symbol exporting. This
  involved changing lame.h from the original sources, so a copy has
  been included here. This is required for building lame on Windows
  with MSVC.

commit 30aab475408151d15bf167fff49310db3b7e603a:
Also build the decoder code

commit 4fcc73d7488b8fa30c2d8564889f78c6302ee44d:
Fix build on Windows, and use lame_dep for tools
This way it's a good test for whether lame_dep works at all.

Not sure how to make a PR for a new branch, so I made this instead :)

Not sure how to make a PR for a new branch, so I made this instead :)

You can make a PR to master. Repository owners can always change the PR destination after creating the necessary branch.

@nirbheek could you please rebase/merge with the current branch to include LICENSE.build and updated readme.txt?

Done :)


Slider slides two items at once if arrowKeys is set to true

Slider slides two items at once if arrowKeys is set to true and after the user clicks one of the arrow buttons (prev or next).  If the slider loads and user starts with arrow key navigation it slides normally.
slider settings;
{
arrowKeys: true,
autoplay: false,
autoplayHoverPause: true,
container: "#cclt__events__event-list",
speed: 600
}
Tiny-slider version:   2.9.2
Chrome 78

+1

+1

Only Happens after using the Control keys. Then the arrowkeys move the slide two instead of one position per keypress (Chrome and Firefox).
you can see that behaviour also on the demo page:
http://ganlanyuan.github.io/tiny-slider/demo/#arrowKeys_wrapper


Alphabet Rangoli (python or cpp only)

You are given an integer, . Your task is to print an alphabet rangoli of size . (Rangoli is a form of Indian folk art based on creation of patterns.)
Different sizes of alphabet rangoli are shown below:
#size 3
----c----
--c-b-c--
c-b-a-b-c
--c-b-c--
----c----
#size 5
--------e--------
------e-d-e------
----e-d-c-d-e----
--e-d-c-b-c-d-e--
e-d-c-b-a-b-c-d-e
--e-d-c-b-c-d-e--
----e-d-c-d-e----
------e-d-e------
--------e--------
#size 10
------------------j------------------
----------------j-i-j----------------
--------------j-i-h-i-j--------------
------------j-i-h-g-h-i-j------------
----------j-i-h-g-f-g-h-i-j----------
--------j-i-h-g-f-e-f-g-h-i-j--------
------j-i-h-g-f-e-d-e-f-g-h-i-j------
----j-i-h-g-f-e-d-c-d-e-f-g-h-i-j----
--j-i-h-g-f-e-d-c-b-c-d-e-f-g-h-i-j--
j-i-h-g-f-e-d-c-b-a-b-c-d-e-f-g-h-i-j
--j-i-h-g-f-e-d-c-b-c-d-e-f-g-h-i-j--
----j-i-h-g-f-e-d-c-d-e-f-g-h-i-j----
------j-i-h-g-f-e-d-e-f-g-h-i-j------
--------j-i-h-g-f-e-f-g-h-i-j--------
----------j-i-h-g-f-g-h-i-j----------
------------j-i-h-g-h-i-j------------
--------------j-i-h-i-j--------------
----------------j-i-j----------------
------------------j------------------
The center of the rangoli has the first alphabet letter a, and the boundary has the  alphabet letter (in alphabetical order).
Function Description
Complete the rangoli function in the editor below.
rangoli has the following parameters:
int size: the size of the rangoli
Returns
string: a single string made up of each of the lines of the rangoli separated by a newline character (\n)
Input Format
Only one line of input containing , the size of the rangoli.
Constraints:
0<size<27

I can solve this issue most optimally can you assign me this?

I have solved this problem and created the PR please check it.

plz assign it to me

Can you assign it to me

Good morning ,
We are a team of 3 members from St Francis Institute of Technology (Mumbai , Maharashtra).
For our Resource open source project Lab (ROSPL) , we are interested to work on the given issue.
Kindly assign this issue to us .
Thank You.


Slave creation fails intermittently

Description:
Slave creation fails intermittently. This failure occurs when trying to install python modules in the salve. This needs to be investigated.
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
update-alternatives: using /usr/bin/python3.5 to provide /usr/bin/python3 (python3) in auto mode
update-alternatives: error: alternative path /usr/bin/python3.6 doesn't exist
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
/tmp/init.sh: 79: /tmp/init.sh: pip3: not found
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 15 51.6M   15 7932k    0     0  5783k      0  0:00:09  0:00:01  0:00:08 5781k
 60 51.6M   60 31.2M    0     0  13.2M      0  0:00:03  0:00:02  0:00:01 13.2M
100 51.6M  100 51.6M    0     0  16.4M      0  0:00:03  0:00:03 --:--:-- 16.4M
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  9 25.1M    9 2456k    0     0  2239k      0  0:00:11  0:00:01  0:00:10 2237k
100 25.1M  100 25.1M    0     0  12.6M      0  0:00:01  0:00:01 --:--:-- 12.6M
update-alternatives: error: alternative /usr/bin/python3.6 for python3 not registered; not setting
Oct 15, 2018 5:16:53 AM hudson.plugins.ec2.EC2Cloud
WARNING: init script failed: exit code=2

This is fixed now..


Added tests for search result count

No tests for this previously

Will reopen when I have time to get these working


How to inspect jest tests

I'm aware that in order to debug jest tests, you need to start jest with something like
node --inspect --inspect-port 9230 node_modules/.bin/jest --runInBand --watch
However, with this command you lose some of the mapping that razzle does for you. What is the recommended way to debug jest tests using razzle

"test:inspect": "node --inspect --inspect-port=9230 ../../node_modules/.bin/jest --watch --env=node --runInBand", actually works pretty good. I had expected some issues because of the setup razzle does for you. But since I keep jest settings in package.json, I was alright.


link to Adam's "Trigger a sequence" video from "Triggers" page

Signed-off-by: Meg McRoberts<EMAIL_ADDRESS>

Tiny typo: ilustrates

Fixed

When triggeredOn is used, the shipyard author is implicitly linking two sequences, tehrefore it probably wouldn't make sense to manually trigger the production sequence if it also has a triggeredOn block. Think of it like a Jenkins pipeline. If your production release pipeline triggers only when hardening is successful, that's fine. I can't imagine why you'd skip the UAT safeguards and instead manually trigger a production release.

One final change and it's good to go: If the delivery sequence fails because of a failed test task. Reword that to IF the delivery sequence fails.
If any task is a sequence fails, the sequence fails and thus it would match your fail selector.

I fixed the "If the delivery sequence fails..." sentence.  Are you okay with leaving the HTTP POST section alone for now?   I'm thinking that we have lots of problems with lots of the examples in what is now the "Define" section -- we can revisit everything as we try to put this together.