text:
feedback modules option to specify pre-processing of targets to use?

Hi,
Thanks for this nice package!
This issue is a precursor to hopefully a minor pull request.
Gist: I think feedback modules should provide the ability to specify which dimension/other pre-processing of the target they should use. This is similar functionality to "output_module", but for the targets instead of the outputs.
Long: I'm working with multi-dimensional targets for various losses in a ParallelCriterion. One of these is a class label. When I set up dp.Optimizer/Evaluator, I'd like to be able to specify in, say, a "dp.Confusion" feedback module setup which dimension  of the target it should work with. I'm pretty new to dp, Torch and Lua in general, but If I'm not mistaken, there doesn't seem to currently be a way to set this up.
I have made a minor mod of feedback/confusion.lua that works fine for selecting a specific dimension of target (through a new "target_dim" option in the constructor). I could create a PR (with similar patches for other feedback modules) if you think it would be useful. A more general solution might be to specify  a "target_module", itself an nn.Module(), through which to pass batch targets.

Yes please submit a PR!

repo: nicholas-leonard/dp


text:
Backport pt. II (finished?)

This is a mostly complete backport of the remaining portions of the app. At this point, future bugs would have to be found by using the app in the wild and fixing them on the fly.
No real structure to this one other than just trying to use the app on an older device and seeing what breaks.
Notable changes and decisions:

Introduction of Transitions-Everywhere library for some transition backporting

Transitions that aren't backward compatible (namely shared element transitions) have been gated off

More xml drawable separation between pre and post-21 (namely ripples, avds, and animated-selector)

In particular, some avds have paths that aren't backward compatible
animated-selector has no backporting, so separation consists entirely of just having a pre-21 selector that has no animations

Backward compatible CircularImageView implementation for avatars
Used real FloatingActionButtons where appropriate for pre-21 shadow/elevation support
Left styles mixing pre and post API 21 attributes because ultimately it doesn't care if they're mixed (despite lint making it appear otherwise). For me, this was cleaner since most of the new attributes were just supplementary and didn't actually change the UI's structure or behavior that much.

Notable issues:

Draggable FrameLayout doesn't work pre-21 if you don't use something that natively implements nested scrolling
Due to FrameLayout ordering, HomeActivity's toolbar is always on top pre-lollipop due to not being able to take advantage of elevations.
BottomSheet shown from trying to post something to DN doesn't animate nicely. Dunno what the right approach for this is.

I've tested this pretty thoroughly, and I think it's ready.

will this be merged?

Merge status?

I don't think it's going to happen. This was a fun exercise in using the support libraries and learning more about what goes into backporting APIs, but ultimately Lollipop is nearly 90% in my personal projects and only climbing, so I don't think this is worth pursuing :).

Cool beans!

Sorry for lack of comments here on this… think I was a little overwhelmed with this PR!
With the ecosystem getting nearer to minSdk=21 being realistic, I don't think that Plaid should have (and maintain) an 'official' backport branch. As such I don't think that this will be merged; BUT i'd like to be able to point people to this fork if they are interested in backward compat.
I'll update the README to be more explicit on the project's goals and link to @hzsweers' fork. I'll also remove my backport branch.
Sound good?

Sure! Though note that I'm not actively working on it or keeping it up to date

source: gharchive/pull-request

authors: SUPERCILEX ansumanshah hzsweers nickbutcher

repo: nickbutcher/plaid

license_type: permissive

license_source: github-api


text:
chg: [var] Added variables, re-order user-data and fixed time-out

ssh would timeout so I added a more lenient waiting time/handshake
in user-data password came before user, which is not logical IMHO
added variables for the username and password
added some more documentation in case of similar failures
added shutdown_command

My build with VMware WS 15.5 takes around 8minutes...
PACKER_LOG=1 packer build ubuntu-2004.json  8.78s user 7.87s system 3% cpu 8:18.39 total

Instead of increasing the number of handshake attempts, I just disabled that first SSH server which IMHO is a cleaner solution. See #2

Thanks for opening this. I just merged #2, which is a clearer solution to one of the problems address here but I feel like the rest are things people might wish to do in their own solutions — this repo is here as an example and I expect people to take what's here and do their own things with it.

authors: SteveClement mweimerskirch nickcharlton

license: MIT


text:
Profile Page

Implement a basic profile page with gallery of user's posts
Users must be able to view other users.
Use .htaccess and GET method for /user/index.php?profile=username -> /user/username

this would be useful, however if you are going to work on it please work on the other one first

source: gharchive/issue

repo: nickgatzos/instagram-clone-php


text:
Metro 2033 redux - text is black

As the title says, the text turns up in black blocks?
http://i.imgur.com/TM5byU8.jpg

This also occurs for Metro Last Light Redux. I'm on Ubuntu 14.10 64bit with a GTX 680.
Note that with the 346.22 drivers, Metro Redux (both games) have severe lighting issues (white light seems to pervade the world). I'm unsure if that has anything to do with this however, just informing you in case.
I've also tested the 340.65 drivers (no white light issue), and the GLXOSD text is still black. If there's anything you want me to test, or need output, guide me on it and I'll try to provide it for you. Keep up the good work :)

@myromance123: you are seeing this bug: https://devtalk.nvidia.com/default/topic/795600/linux/metro-redux-driver-346-xx-very-high-quality-glitch/
offtopic: Steam (in Beta) got FPS display and with corner selection today, it's not GLXOSD, missing hardware sensors and such, but it helps.

The benchmark mode has an included FPS counter, or did I misunderstand what you said?

You are correct that it has an FPS counter in the benchmark. However, for my purposes, said counter is small, and often blends in with the background. GLXOSD allows me to resize the fonts to mega size and appropriately position the counter, which is what I need when I record the benchmarks :)

Also happens for me in Middle Earth: Shadow of Mordor.

To further add, it now also happens for Company of Heroes 2. It's black boxes where the text should be. This is on the latest Nvidia 355.06 drivers on Ubuntu 15.04 64bit.

Might be a problem with lighting. Possible fix: call glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL) before rendering.

Just tried this, no change.

diff --git a/src/glinject/syncopengl.hpp b/src/glinject/syncopengl.hpp
index 55e89d1..3bbcee3 100644
--- a/src/glinject/syncopengl.hpp
+++ b/src/glinject/syncopengl.hpp
@@ -251,3 +251,5 @@ SYNCHRONIZE_FUNCTION_VOID_RET(glGenTextures, (GLsizei n, GLuint *arrays), (n, ar
 GLOBALLY_SYNCHRONIZE_FUNCTION_VOID_RET(glBindBuffer,(GLuint target, GLuint buffer), (target,buffer))
 GLOBALLY_SYNCHRONIZE_FUNCTION_VOID_RET(glBindVertexArray, (GLuint array), (array))
 GLOBALLY_SYNCHRONIZE_FUNCTION_VOID_RET(glUseProgram,(GLuint program), (program))
+GLOBALLY_SYNCHRONIZE_FUNCTION_VOID_RET(glColor4f,(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha), (red, green, blue, alpha))
+GLOBALLY_SYNCHRONIZE_FUNCTION_VOID_RET(glTexEnvi,(GLenum target, GLenum pname, GLint param), (target, pname, param))
diff --git a/src/glxosd/OSDInstance.cpp b/src/glxosd/OSDInstance.cpp
index 952aac9..8d03bf4 100644
--- a/src/glxosd/OSDInstance.cpp
+++ b/src/glxosd/OSDInstance.cpp
@@ -239,6 +239,9 @@ void OSDInstance::render(unsigned int width, unsigned int height) {
 	rgl(GetIntegerv)(GL_ELEMENT_ARRAY_BUFFER_BINDING,
 			&elementArrayBufferBinding);

+    rgl(Color4f)(1,1,1,1);
+    rgl(TexEnvi)(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL);
+
 	renderText(width, height);

 	//Revert buffer states

I'm wondering if this could be an issue with GL3 core contexts. I see that GLXOSD renders using the fixed pipeline, which wouldn't work in a GL3 core context.

I'm wondering if this could be an issue with GL3 core contexts. I see that GLXOSD renders using the fixed pipeline, which wouldn't work in a GL3 core context.

In https://github.com/skeeto/opengl-demo , a GL3 core application, GLXOSD seems to work.

I see that GLXOSD renders using the fixed pipeline

It actually doesn't, I found the code code that sets up a shader.

I'll try searching for the cause this evening using VOGL later today now that I have Metro.

Thanks @nickguletskii ! I'm almost certain that it's due to the texture being corrupted or loaded incorrectly. I can get a color to show up if I change the fragment shader to return a solid color.
Fixed function states like GL_TEXTURE_ENV_MODE shouldn't make any difference, since we're rendering with shaders.

I had a problem with Kerbal Space Program where it would replace my textures with its own. They seem to have hard-coded texture ids. This, however, may not be the case here.

Found the problem. I will try to deploy a fix tomorrow. I wasn't resetting the sampler (glBindSampler).

You were correct, resetting sampler state fixed the bug for me.

diff --git a/src/glxosd/OSDInstance.cpp b/src/glxosd/OSDInstance.cpp
index c157a9c..a996245 100644
--- a/src/glxosd/OSDInstance.cpp
+++ b/src/glxosd/OSDInstance.cpp
@@ -223,7 +223,7 @@ void OSDInstance::render(unsigned int width, unsigned int height) {
 	//Memorise buffer states
 	GLint pixelUnpackBufferBinding = 0, arrayBufferBinding = 0, activeTexture =
 			0, textureBinding2D = 0, vertexArrayBinding = 0,
-			elementArrayBufferBinding = 0;
+			elementArrayBufferBinding = 0, sampler = 0;
 	rgl(GetIntegerv)(GL_PIXEL_UNPACK_BUFFER_BINDING,
 			&pixelUnpackBufferBinding);
 	rgl(GetIntegerv)(GL_ARRAY_BUFFER_BINDING, &arrayBufferBinding);
@@ -233,10 +233,14 @@ void OSDInstance::render(unsigned int width, unsigned int height) {
 	rgl(GetIntegerv)(GL_ELEMENT_ARRAY_BUFFER_BINDING,
 			&elementArrayBufferBinding);

+	rgl(GetIntegerv)(GL_SAMPLER_BINDING, &sampler);
+	rgl(BindSampler)(0, 0);
+
 	renderText(width, height);

 	//Revert buffer states
 	rgl(ActiveTexture)(activeTexture);
+	rgl(BindSampler)(0, sampler);
 	rgl(BindTexture)(GL_TEXTURE_2D, textureBinding2D);
 	rgl(BindVertexArray)(vertexArrayBinding);
 	rgl(BindBuffer)(GL_PIXEL_UNPACK_BUFFER, pixelUnpackBufferBinding);

Should be fixed in version 2.4.0.

I can confirm this fixes the issue in Shadow Of Mordor, Company of Heroes 2 and Metro Last Light Redux.
Tested on Ubuntu 15.04 64bit with a GTX 680 2GB on Nvidia 355.06 drivers.

authors: liamdawe licaon-kter myromance123 nickguletskii scrawl

repo: nickguletskii/GLXOSD

license: mit

license_source: bigquery


text:
Play/Edit mode toggle

Describe the solution you'd like
A Streamdeck button that switches between Edit and Play mode in the editor.

Built-in buttons are always nice, but you can achieve this functionality with Execute Menu command, with the Path: Edit/Play

authors: AdamBuchweitz LuukDomhof

repo: nicollasricas/unity-deck


text:
replace routing param names by more systematic names and change paths…

… to Synopsen

Vielen Dank für deine Arbeiten!
Finde deinen Vorschlag gut, nur eines verstehe ich nicht: Du schreibst, dass ein Pfad wie /notizbuecher/:konvolut/:fassung "wegen übergeordneten Modulen" nicht funktioniere (s. https://github.com/nie-ine/raeber-website/pull/2/files#diff-a0c876f886e7bc5dc740273209bd67e9R14). Könntest du das näher erläutern? Merci!

Mit dem bisherigen Vorgehen gibt es Pfade wie
/typoskripte/typoskripte-1979/item/2339-worte
/drucke/abgewandt-zugewandt/alemannische-gedichte/item/172-gfroerni
die unterschiedlich lang sind. Bisher ist das kein Problem, da "item" den Konvolutpfad und die Gedicht-ID klar trennt.
Ohne "item" lässt sich das Konvolut (sic)
/drucke/abgewandt-zugewandt/hochdeutsche-gedichte
nicht von einem Gedicht wie
/typoskripte/typoskripte-1979/2339-worte
unterscheiden, weil das 2. und 3. Pfadelement beides matcht.

Ich bin definitiv kein Experte für Routing in Angular, aber ist es nicht so, dass man sich das Routing-Objekt als Map vorstellen kann, welche die Korrespondenz zwischen Parameter (bspw. :fassung oder :konvolut) und Wert (bspw. 172-gfroerni oder hochdeutsche-gedichte) sicherstellt. Ist das der Fall, müssten wir meiner Meinung nach lediglich ein spezifisches Routing dann definieren, wenn es sich um einen Spezialfall wie bei abgewandt-zugewandt handelt, damit die URL richtig geparst werden kann.

Natürlich kann man einen Spezialfall für "abgewandt-zugewandt" definieren. Wenn der zuoberst gelistet ist, dann wird er abgefangen. Unübersichtlich wird es aber, wenn man das Routing auf verschiedene Module aufteilen muss.
Kennst du gerade eine Möglichkeit, für eine Variable im Routing eine Auswahl im Sinne einer Einschränkung zu machen?

Der Grund, wieso es nicht geklappt hat, ist wohl, weil die Fassungsansicht vor der Konvolutansicht geladen wird. Mit /drucke/abgewandt-zugewandt/hochdeutsche-gedichte matcht dann halt /drucke/:konvolut/:fassung zuerst. Man könnte aber die Module mit eigenem Routing im AppRoutingModule importieren und dort die Reihenfolge festlegen (keinen Import dann aber im AppModule). Um das sauber zu machen, muss aber neu aus dem Master geholt werden.

Ich habe jetzt ein paar Ergänzungen gemacht und das Problem mit Hilfe der Importreihenfolge gelöst.
Zum Testen empfehle ich das Klicken durch die Edition mit verschachtelten Konvoluten und flachen Konvoluten und auch durch einzelne Gedichte davon. Es sollte jetzt eigentlich immer die richtige Komponente geladen werden.

Hallo Reto
Vielen Dank für deine Arbeiten! Ich habe mir eine ähnliche Strategie überlegt, welche requests wie drucke/abgewandt-zugewandt/:konvolut in fassung-routing.module.ts abfängt, also die Definitionshierarchie des Routings ebenfalls ein wenig umstellt.

Bestens, hat alles geklappt!

authors: rfbaumgartner sschuepbach

repo: nie-ine/raeber-website


text:
NIE-85 Diplomatische Umschrift verschiebbar machen

Die diplomatische Umschrift ist jetzt verschiebbar mit Hilfe von jQuery (nach Absprache mit Sascha).
Zum Testen:

Zu einer Fassung navigieren, warten bis alle Daten geladen sind (vor allem in der Registerspalte)
Text anklicken und ziehen (Text sollte ausgewählt werden mit dem Cursor)
Button <-> klicken
Text anklicken und ziehen (Text sollte sich verschieben
Damit ein bisschen spielen

PS: der Branch hat irrtümlicherweise die Nummer NIE-82

noch eine kleine Ergänzung möchte ich machen

Hey, grossartig, funktioniert super!
Vielen Dank und LG,
Jan

Kann der Branch gelöscht werden?

authors: janCstoffregen rfbaumgartner


text:
Feature request: Publish the Alarmo command to MQTT command topic

Checklist

[x] I checked for similar existing requests (both open and closed) before posting.
[x] My request is generic, other users may benefit from it too.

Proposal
Currently, it does not look like Alarmo sends a payload on the command topic when it's state is changed through Home Assistant. I have subscribed to the command topic that I set, yet it doesn't update the MQTT command topic when you change states. Is this by design, am I missing something?
What does work: manually publishing commands to this topic successfully changes the state in Home Assistant.
It would be nice to have this as a feature that could be enabled/disabled. I would use it to sync with another alarm system that I have which also accepts commands on this same topic.
Additional info
None

As described here, the command topic is an input topic, and can be used for arming/disarming Alarmo externally (and not the other way around).
If you want to see when the state of Alarmo changes, you may want to use the state topic.
There is also an event topic, which you could use to see when the alarm is armed/disarmed (and in which mode).
Note that it is not really possible to keep 2 alarm systems in sync through MQTT.
Limitations:

if one alarm triggers, this doesn't cause the other alarm to trigger
if one fails to arm (due to a blocking sensor), this is not known by the other
code used for arming is not sent through MQTT (for security reasons)
delay times may be different

I strongly recommend a centralized approach, so a single alarm system which is in charge.
The MQTT topics of Alarmo are mostly intended for communication with a touchscreen or keypad, devices without internal stating behaviour.

authors: JOHLC nielsfaber

repo: nielsfaber/alarmo


text:
Filter by area not working for actions

Checklist

[X] I checked for similar existing issues (both open and closed) before posting.
[X] I am running the latest version.

Expected behavior
When clicking on an area, only actions assigned to that one should be shown.
Actual behavior
All actions are shown, whatever area is selected.
Notifications can be filtered as expected.
Steps to Reproduce

Create more than one area
Create at leat one action per area
Filter actions by area

Additional info:
The filter for actions are only executed after a filter for notifications is set too.

Additional info:
Selecting a filter for notifications also filters the actions.
The action filter selection seems to be ignored.

The filter selectors seem to behave a bit strange.
The actions are filtered, if both filters for actions AND notifications are activated, but actions will be filtered by the area selected for notifications.

Thanks for reporting this.
There was indeed a small typo (copy-paste error) which resulted in mixing of the filters for notifications/actions.
It will be solved in the next release.

The issue should be resolved by updating to v1.8.1.
Please check that after updating the correct version number is shown in the top right corner of the alarmo panel.
If the problem is solved for you after updating, please close the issue.

Filtering is working, just the highlighting of the selected area is a bit strange.
Initially it shows one area (master) highlighted, even if no filter is set.

I didn't pay attention to this earlier, but I see what you mean.
I made a fix for it (once again), I will let you know when it's out.

I'm sorry to be such a pain. 😁

I am happy with your bug reports!
In my house I only use a portion of Alarmo's features and when making changes I only perform manual tests for verification, so my development process has its flaws.
For me its actually very useful if people help me with testing and share their feedback.
Whether it's bugs or things you like to see changed, both are welcome.
As long as the issues list is not flooding, please keep them coming.
I can always choose not to pick them up, right 🤭


text:
Authorization error

Hi Nikhil,
I am getting this error TF command 'checkout' error: TF30063: You are not authorized to access.
Where can I give my PAT token?
Looking forward for your reply.

Hi Sandeep,
Can you check if you can access TFS from the browser inside the visual studio. You will find the browser in View->Other Windows->Web Browser. Use your TFS url in navigation bar to access the TFS. If you get unauthorized error here, then try login to TFS here. Also, make sure you have appropriate rights for the item you are trying to checkout. If the issue persists, try restarting system/visual studio.
Let me know if it helps.

for some reason, I am able to navigate to TFS url in regular chrome or FF browser but not from the visual studio->Other Windows-> Web Browser :(

You are not able to navigate to TFS url or getting some error? You can login from here if it possible to transverse to login page. Or you can try removing the connection and adding it again. Also, try clearing the TFS credentials in credential manager and then again try  with the visual studio web browser.

Just getting that error will try clearing credential manager tfs details and try logging again

The extension relied on the TF command. You can try executing the TF command manually by traversing to the path where TF.exe is then execute any TF command. For example - TF status <Local Path of any mapped workspace/folder/item>

I tried that but every time I had to set like this in powershell
PS C:> Set-Alias tfs "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\TF.exe"
and after that for every file status it's asking me credentials I know it's more related to TFS

Here are some links which have some solution for same issue -
https://www.codewrecks.com/post/old/2014/07/your-tfs-keeps-asking-you-for-credentials-even-with-active-directory/
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/559895b1-b4d9-4267-8487-0bc6e47ad4d7/team-explorer-and-tfexe-ignoring-my-saved-usernamepassword?forum=tfsgeneral
https://social.msdn.microsoft.com/Forums/vstudio/en-US/84b4749c-2838-4975-9b61-991cb90582b4/always-prompted-for-login-credentials?forum=tfsgeneral

Closing as related to TFS itself. Feel free to reopen / create separate discussion.

authors: nik-base sandeesaripalli

repo: nik-base/auto-tfs


text:
xdot graphiz viewer isn't recognized as window

https://github.com/jrfonseca/xdot.py
I can't attach the debug-windows log, because the window doesn't even show up in the debug-windows log
Accessibility Inspector.app refuses to capture accessibility info as well
The window is really obscure, it doesn't even show up in menubar:

This is happening for Obisdian as well.

authors: clintmiller nikitabobko

repo: nikitabobko/AeroSpace


text:
when use ./get, an error happen

Failed to get package version
Getting
-> Location: ubuntu-vivid-i386-libc6
-> ID:
-> Downloading package
Failed to download package from ubuntu-vivid-i386-libc6

I don't see why it should use ./tmp at all, can you post a ls -alih tmp/ in the libc-database directory?
I think the directory is the remainder of some old code, I will push a commit that removes it from the repository.

I believe this should be resolved, please re-open if not

emmm,it works perfectly.

repo: niklasb/libc-database


text:
Multi-column Layout rendering

Hi~
I encountered a  problem with rendering a DIV with  multi-column layout to canvas....
especially  when setting background-color for some text  and  these text exactly step cross  columns.
like picture below...
the first  is the original DIV
and the second is  the canvas from the above DIV
it doesn't  render correctly.....
thanks very  much

Is this still an issue with v1.0.0? If so, could you please share an example on jsfiddle.

authors: huliciou niklasvh


text:
Capture SVG

Hello,
Does html2canvas support capture SVG, if yes, how to do that? Could you give an example?
The example in tests\images didn't capture SVG.
Please help. Thanks a lot.

Any preview when 0.5 will come out @niklasvh ?

@IvoPereira You can follow the status of 0.5 in #421

I have Version 0.5 ans svg still doesnt render. Is there an example how to do it?

@nikolang did you include both html2canvas.js and html2canvas.svg.js? If so, can you provide a jsFiddle or jsbin to demonstrate your specific problem?

I got this working. The problem was that the SVG wasnt fully rendered when I did html2canvas.
But it seems there are still some issues with rendering. For example http://d3pie.org
This is what its supposed to look like:

This is what it looks like after html2canvas:

Whoa, that's pretty spooky. Just so this easier to track, can you open a separate issue with the same screenshots and a link to just a jsFiddle with the demo? This is getting too far away from the original issue, which was closed long ago. Thanks for reporting it!

I would love to do that but I dont know how to include the new html2canvas to jsfiddle. Is there any external Link I can use?

@nikolang You can use http://rawgit.com/niklasvh/html2canvas/master/dist/html2canvas.js .

Thanks. And the SVG-Version?

Similarly: http://rawgit.com/niklasvh/html2canvas/master/dist/html2canvas.svg.js .

Hi,
SVGs are rendered on my side, but appear black, as reported by someone below. Is there a way to count the "fill" property of the svg elements ?

@brainra, I'm using something like this to make the fill white:
// Create dummy canvas to get a white background
var destinationCanvas = document.createElement("canvas");
destinationCanvas.width = canvas.width;
destinationCanvas.height = canvas.height;

var destCtx = destinationCanvas.getContext('2d');

//create a rectangle with the desired color
destCtx.fillStyle = "#FFFFFF";
destCtx.fillRect(0,0,canvas.width,canvas.height);

//draw the original canvas onto the destination canvas
destCtx.drawImage(canvas, 0, 0);

var img = destinationCanvas.toDataURL("image/png");

Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElement provided is in the 'broken' state."
I am getting this error when there is svg element in HTML.
Also I have set allowTaint to true. Can someone please help me?

I think this should be reopened -- svg elements are rendering properly in every browser but Firefox.

NS_ERROR_NOT_AVAILABLE: this is a Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=700533 (AFAICT) there is a testpage that highlights the issue (linked from the bug) http://phrogz.net/SVG/svg_to_png.xhtml
A workaround / fix would be greatly appreciated. Or maybe someone could poke somebody @mozilla to get this fixed :)

Here is your solution:
http://stackoverflow.com/questions/18570765/using-html2canvas-with-highcharts

And here is another solution if you are using angular:
img svg-2-canvas-src="/assets/your.svg"
angular.module('APP')
.directive('svg2CanvasSrc', function() {
return {
restrict: 'A',
scope: false,
link: function($scope, $element, $attrs) {
            var svgSrc = $attrs['svg2CanvasSrc'];

            var image = new Image();

            image.onload = function() {
                image.onload = function() {};
                var canvas = document.createElement('canvas');
                canvas.width = image.width;
                canvas.height = image.height;
                var context = canvas.getContext('2d');
                context.drawImage(image, 0, 0);
                $element[0].src = canvas.toDataURL();
            };

            image.src = svgSrc;
        }
    };
});

@remiremi i used your code but result is same, svg is missing..
original - https://s29.postimg.org/5lkprhx93/with_SVG.png
result - https://s23.postimg.org/j1otj2por/without_SVG.png

@remiremi  ... what is the plugin name which i have attache when um using this script

Basically, setting an explicit width/height on the SVG just before calling html2canvas fixes most cases for me..
What i do is loop through the various SVG elements of interests, get their browser calculated width/height using .getBoundingClientRect() and set the width height property on the element, i noticed when SVG's have percentage and similar width/height set, it doesn't render, but with pixels, Booyah

Still having issues rendering multi-line span's and div's though

Hi guys,
I resolve this issue(lost svg with firefox) by change the source code a little.
Firstly, the SVG element must have height and width attribute, no matter with pixels or not.
then you should change the source code from:
self.image.src = "data:image/svg+xml," + (new XMLSerializer()).serializeToString(node);
to:
self.image.src = "data:image/svg+xml," + encodeURIComponent((new XMLSerializer()).serializeToString(node));
then enjoy it.

Does anyone have an idea of how I would call html2canvas on an SVG element in the DOM?
An example would be great!

+1 still an issue for capturing SVG element screenshot in firefox.

{
   profile: true,
   allowTaint: false
}

worked for me with these options

{
  profile: true,
  allowTaint: false,
  onrendered: function() {
    //...done()
  }
}

Hey, I was able to resolve this issue using this solution (without jQuery):
Solution

let targetElem = document.getElementById('body');
let nodesToRecover = [];
let nodesToRemove = [];
    let svgElem = targetElem.querySelector('svg')

    let parentNode = svgElem.parentNode;
        // let svg = parentNode.innerHTML;
        let svg = "<svg xmlns=\"http://www.w3.org/2000/svg\" id=\"svg-annotations\" style=\"opacity: 1;\" _ngcontent-c7=\"\">\n\t\t\t<defs><marker id=\"arrow-start\" refY=\"4.5\" markerWidth=\"9.9\" markerHeight=\"9\" orient=\"auto\"><path fill=\"black\" d=\"M 9.9 0 L 9.9 9 L 0 4.5 Z\" /></marker><marker id=\"arrow-end\" refX=\"9.9\" refY=\"4.5\" markerWidth=\"9.9\" markerHeight=\"9\" orient=\"auto\"><path fill=\"black\" d=\"M 0 0 L 0 9 L 9.9 4.5 Z\" /></marker></defs><g class=\"annotation-group\" id=\"measurement-36122\" style=\"opacity: 1;\"><g class=\"annotations\"><g class=\"annotation callout elbow editable \" transform=\"translate(758.541 408.978)\"><g class=\"annotation-connector\"><path class=\"connector\" fill=\"none\" stroke=\"black\" d=\"M 0 0 L 137 137 L 162 137\" /></g><g class=\"annotation-note\" transform=\"translate(162 137)\"><g class=\"annotation-note-content\" transform=\"translate(0 3)\"><rect class=\"annotation-note-bg\" fill=\"white\" fill-opacity=\"0\" x=\"0\" width=\"104.79\" height=\"41.36\" /><text class=\"annotation-note-label\" fill=\"black\" y=\"41.36\" dx=\"0\"><tspan x=\"0\" dy=\"0.8em\" /></text><text class=\"annotation-note-title\" font-weight=\"bold\" fill=\"black\"><tspan x=\"0\" dy=\"0.8em\">Face</tspan><tspan x=\"0\" dy=\"1.2em\">:5453831.5mm²</tspan></text></g><path class=\"note-line\" stroke=\"black\" d=\"M 0 0 L 104.79 0\" /><circle class=\"handle \" cursor=\"move\" fill=\"grey\" fill-opacity=\"0.1\" stroke=\"grey\" stroke-dasharray=\"5\" cx=\"0\" cy=\"0\" r=\"10\" /></g></g></g></g><g class=\"annotation-group\" id=\"measurement-59622\" style=\"opacity: 1;\"><g class=\"annotations\"><g class=\"annotation callout elbow editable \" transform=\"translate(889.656 387.507)\"><g class=\"annotation-connector\"><path class=\"connector\" fill=\"none\" stroke=\"black\" d=\"M 0 0 L 137 137 L 162 137\" /></g><g class=\"annotation-note\" transform=\"translate(162 137)\"><g class=\"annotation-note-content\" transform=\"translate(0 3)\"><rect class=\"annotation-note-bg\" fill=\"white\" fill-opacity=\"0\" x=\"0\" width=\"104.79\" height=\"41.36\" /><text class=\"annotation-note-label\" fill=\"black\" y=\"41.36\" dx=\"0\"><tspan x=\"0\" dy=\"0.8em\" /></text><text class=\"annotation-note-title\" font-weight=\"bold\" fill=\"black\"><tspan x=\"0\" dy=\"0.8em\">Face</tspan><tspan x=\"0\" dy=\"1.2em\">:5453831.5mm²</tspan></text></g><path class=\"note-line\" stroke=\"black\" d=\"M 0 0 L 104.79 0\" /><circle class=\"handle \" cursor=\"move\" fill=\"grey\" fill-opacity=\"0.1\" stroke=\"grey\" stroke-dasharray=\"5\" cx=\"0\" cy=\"0\" r=\"10\" /></g></g></g></g></svg>";

        this.canvas = document.createElement('canvas');
        this.canvas.setAttribute('id', '_canvas');

        canvg(this.canvas, svg, {renderCallback: function(){
            console.log(this);
        }});

        nodesToRecover.push({
            parent: parentNode,
            child: svgElem
        });
        parentNode.removeChild(svgElem);

        nodesToRemove.push({
            parent: parentNode,
            child: this.canvas
        });

        parentNode.appendChild(this.canvas);
        let data = this.canvas.toDataURL('image/png', 0.5);
        console.log(data);

I am doing this, but I a, getting only blank image in IE11. But, I can see the canvas on webpage. Can anyone please help me what I am doing wrong here?

Hello. I have a problem render svg if this svg have <image> tag. Sample svg
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <image href="https://mdn.mozillademos.org/files/6457/mdn_logo_only_color.png" height="200" width="200"/>
</svg>

Sample in jsfiddle http://jsfiddle.net/maestro888/fmjywksq/

I have found a simple fix.
Make sure your svg image has a width and height.
There are not enough arguments otherwise because an svg cant be measured like a image can.

This is true but not for IE11, unfortunately...

Glad you got it sorted out.
Just checked your JS Fiddle and it's displaying the image.
Regards,
Bernard T. A. Baker
On Wed, Mar 27, 2019 at 4:34 PM Alessandro Candini notifications@github.com
wrote:

I have found a simple fix.
Make sure your svg image has a width and height.
There are not enough arguments otherwise because an svg cant be measured
like a image can.
This is true but not for IE11, unfortunately...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/niklasvh/html2canvas/issues/95#issuecomment-477242192,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AM7ZzLPsl0WJS7gGI9npSsRxR33FCnN9ks5va52bgaJpZM4AD-Sb
.

I've found a solution with canvg, reported here on stack overflow: it works perfectly on IE11 !

Great
On Thu, 28 Mar 2019, 08:49 Alessandro Candini, notifications@github.com
wrote:

I've found a solution with canvg https://github.com/canvg/canvg,
reported here on stack overflow
https://stackoverflow.com/questions/34042440/using-html2canvas-to-render-a-highcharts-chart-to-pdf-doesnt-work-on-ie-and-fir:
it works perfectly on IE11 !
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/niklasvh/html2canvas/issues/95#issuecomment-477503221,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AM7ZzKNy1GOgQU9TVv7PGCi4fJvYSxDVks5vbIIOgaJpZM4AD-Sb
.

Hi @niklasvh Nice to see your html2canvas javascript library  ,Its a awesome library ,But Still Am facing the same issue for rendering the svg into canvas creation using npm version "1.0.0-alpha.12
" as well as "1.0.0-rc.1" version also in our anguar6 application, As per your response from the issue list, The issue  will come  svg doesn't contain the height and width , But in my case my Svg have 100% height and width and nested div contains svg tag also and nested existing canvas also , I can export my page as a png image but the image contains only the crashed svg icons and existing canvas also not rendering . And one more thing once export done my another page svg all are showing as crashed images. for your reference i attached my screen shot here please have a look once.

testpdf (1).pdf
Hi,
I am getting the axis but the rest of the area of chart is black. Any suggestion

Hi @niklasvh Nice to see your html2canvas javascript library ,Its a awesome library ,But Still Am facing the same issue for rendering the svg into canvas creation using npm version "1.0.0-alpha.12
" as well as "1.0.0-rc.1" version also in our anguar6 application, As per your response from the issue list, The issue will come svg doesn't contain the height and width , But in my case my Svg have 100% height and width and nested div contains svg tag also and nested existing canvas also , I can export my page as a png image but the image contains only the crashed svg icons and existing canvas also not rendering . And one more thing once export done my another page svg all are showing as crashed images. for your reference i attached my screen shot here please have a look once and let me know thanks.
html2canvas(this.screen.nativeElement,{useCORS: true}).then(canvas => {
this.canvas.nativeElement.src = canvas.toDataURL('image/png');
this.downloadLink.nativeElement.href = canvas.toDataURL('image/png');
this.downloadLink.nativeElement.download = 'screenshot.png';
this.downloadLink.nativeElement.click();
});

the same problem,Error finding the svg in the cloned document

Before using html2canvas i am temporarily setting height and width to the SVGs. This way i am able to capture the svg.
var selectedItem = document.querySelector(".chartWrapper");
var svgElements = selectedItem.querySelectorAll('svg');
for (let i = 0; i < svgElements.length; i++) {
selectedItem.getElementsByTagName("svg")[i].style.height = document.getElementsByTagName("svg")[i].getBoundingClientRect().height;
selectedItem.getElementsByTagName("svg")[i].style.width = document.getElementsByTagName("svg")[i].getBoundingClientRect().width;
}
html2canvas(selectedItem, {backgroundColor: '#000',allowTaint: true}).then(canvas => {
var myImage = canvas.toDataURL("image/png").replace("image/png", "image/octet-stream");
window.location.href = myImage;
})
for (let i = 0; i < svgCount; i++) {
selectedItem.getElementsByTagName("svg")[i].style.height = '100%';
selectedItem.getElementsByTagName("svg")[i].style.width = '100%';
}

// use html2canvas in react project
/**
 * svg to canvas
 * @param targetElem
 * @return {Promise<[]>} // return svg elements
 */
async function svgToCanvas(targetElem) {
  let nodesToRecover = [], nodesToRemove = [], svgElems = targetElem.querySelectorAll('svg');

  for (let i = 0; i < svgElems.length; i++) {
    let node = svgElems[i], parentNode = node.parentNode, svg = parentNode.innerHTML,
      canvas = document.createElement('canvas'),
      ctx = canvas.getContext('2d');
    canvas.setAttribute('data-cover', 'svg');
    const v = await Canvg.from(ctx, svg);
    v.start();
    // record svg elements
    nodesToRecover.push({
      parent: parentNode,
      child: node
    });
    parentNode.removeChild(node);
    //  record canvas elements
    nodesToRemove.push({
      parent: parentNode,
      child: canvas
    });

    parentNode.appendChild(canvas);
  }
  return nodesToRecover;
}

/**
 * recover canvas to svg
 * @param targetElem
 * @param svgElems // need to recover svg elements
 * @return *
 */
function recoverCanvasToSvg(targetElem, svgElems) {
  let canvasElems = targetElem.querySelectorAll("canvas[data-cover='svg']");
  if(!targetElem){
    throw new Error('must have targetElem param')
  }
  if(!isArray(svgElems) && svgElems.length !== canvasElems.length) {
    throw new Error('svgElems must be an Array, and it`s length equal to canvasElems`s length')
  }
  for(let i = 0; i < canvasElems.length; i++){
    let node = canvasElems[i], parentNode = node.parentNode;
    parentNode.removeChild(node);
    parentNode.appendChild(svgElems[i]?.child);
  }
}

The simplest way is to put an SVG tag in the div tag. Don't apply or write any CSS in the SVG tag. Instead, apply all the CSS properties to that div tag.
eg:
Instead of writing this <svg ... styles="top: 50%"/> ->
<svg.../>

authors: EslamAbdelnasser IvoPereira Raja03 Richard-biz angleneo bernardbaker brainra caneta ccemeraldeyes cobexer dev-amitkmishra iansawyerva jeremyk jpatel3 maestro888 niklasvh nikolang ris0 sasirekaK sohel-ahmed-ansari solutionstack sunildipun trongdau184 uragecz usmonster vijitverve vincent-pli wogaozhixu


text:
Gringotts 2.11.1-SNAPSHOT & QuickShop Reremake | 1.15 3.1.3.14 communication issue

Been using Gringotts for a while along with Vault & EssentialsX.  Had to find a new shop plugin and cam across QuickShop.
After setting up a shop and try to sell an item, the following message come across on the backend:
[15:43:33] [Server thread/WARN]: java.lang.NoSuchFieldError: accountHolderFactory
[15:43:33] [Server thread/WARN]: 	at net.milkbowl.vault.economy.plugins.Economy_Gringotts.getBalance(Economy_Gringotts.java:136)
[15:43:33] [Server thread/WARN]: 	at net.milkbowl.vault.economy.AbstractEconomy.getBalance(AbstractEconomy.java:20)
[15:43:33] [Server thread/WARN]: 	at org.maxgamer.quickshop.Economy.Economy_Vault.getBalance(Economy_Vault.java:241)
[15:43:33] [Server thread/WARN]: 	at org.maxgamer.quickshop.Economy.Economy.getBalance(Economy.java:85)
[15:43:33] [Server thread/WARN]: 	at org.maxgamer.quickshop.Listeners.PlayerListener.onClick(PlayerListener.java:177)
[15:43:33] [Server thread/WARN]: 	at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
[15:43:33] [Server thread/WARN]: 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[15:43:33] [Server thread/WARN]: 	at java.lang.reflect.Method.invoke(Unknown Source)
[15:43:33] [Server thread/WARN]: 	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:316)
[15:43:33] [Server thread/WARN]: 	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[15:43:33] [Server thread/WARN]: 	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:529)
[15:43:33] [Server thread/WARN]: 	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:514)
[15:43:33] [Server thread/WARN]: 	at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:442)
[15:43:33] [Server thread/WARN]: 	at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:409)
[15:43:33] [Server thread/WARN]: 	at net.minecraft.server.v1_15_R1.PlayerInteractManager.a(PlayerInteractManager.java:137)
[15:43:33] [Server thread/WARN]: 	at net.minecraft.server.v1_15_R1.PlayerConnection.a(PlayerConnection.java:1197)
[15:43:33] [Server thread/WARN]: 	at net.minecraft.server.v1_15_R1.PacketPlayInBlockDig.a(SourceFile:40)
[15:43:33] [Server thread/WARN]: 	at net.minecraft.server.v1_15_R1.PacketPlayInBlockDig.a(SourceFile:10)
[15:43:33] [Server thread/WARN]: 	at net.minecraft.server.v1_15_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19)
[15:43:33] [Server thread/WARN]: 	at net.minecraft.server.v1_15_R1.TickTask.run(SourceFile:18)
[15:43:33] [Server thread/WARN]: 	at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeTask(SourceFile:144)
[15:43:33] [Server thread/WARN]: 	at net.minecraft.server.v1_15_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23)
[15:43:33] [Server thread/WARN]: 	at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeNext(SourceFile:118)
[15:43:33] [Server thread/WARN]: 	at net.minecraft.server.v1_15_R1.MinecraftServer.aZ(MinecraftServer.java:917)
[15:43:33] [Server thread/WARN]: 	at net.minecraft.server.v1_15_R1.MinecraftServer.executeNext(MinecraftServer.java:910)
[15:43:33] [Server thread/WARN]: 	at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.awaitTasks(SourceFile:127)
[15:43:33] [Server thread/WARN]: 	at net.minecraft.server.v1_15_R1.MinecraftServer.sleepForTick(MinecraftServer.java:894)
[15:43:33] [Server thread/WARN]: 	at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:827)
[15:43:33] [Server thread/WARN]: 	at java.lang.Thread.run(Unknown Source)
[15:43:33] [Server thread/WARN]: This seems not QuickShop fault, you should contact with your economy plugin author. (Gringotts)
Any ideas

Hello @Blazio73,
Can you test this on the latest snapshot version of Gringotts?
https://github.com/nikosgram/Gringotts/releases/tag/2.11.2-SNAPSHOT-ref98c00
Please remember, do not use this version in your server, might cause issues.
Thank you.

repo: nikosgram/Gringotts


text:
[BUG] Redirecting to Homepage

🐛 Bug Report
Clicking the logo on the Navbar of each and every page should redirect us to the homepage.  Currently, it is doing nothing. Please fix this.

/assign

repo: nilisha-jais/Musicophilia


text:
update meta layers to kirkstone

poky: https://git.yoctoproject.org/poky/commit/?h=kirkstone-4.0.4&id=d64bef1c7d713b92a51228e5ade945835e5a94a4
meta-raspberrypi: https://git.yoctoproject.org/meta-raspberrypi/commit/?h=kirkstone&id=dacad9302a92b0b7edf8546cdcad1f8ef753e462
meta-openembedded: https://git.openembedded.org/meta-openembedded/commit/?h=kirkstone&id=744a4b6eda88b9a9ca1cf0df6e18be384d9054e3

new bitbake version is breaking meta-hackypi scripts

repo: nimarty/hackypi


text:
recycling in nimbleFunctions for dt and dt_nonstandard is broken

There is an incorrect number of arguments when trying to recycle with either dt distribution. ddexp and dinvgamma seem fine.
For dt case, our C++ expects 4 args for some reason, but there are only three - 'x', 'df', and 'log'.
For dt_nonstandard, our C++ expects 4 args but 5 are provided.
Fully scalar use of these seems fine, not unexpectedly given the error below is specifically for dt_RecyclingRule().
@perrydv I think you may know without a deep dive where to look to clear this up. So I'll wait to see what you have to say.
a = nimbleFunction(
    run = function(x = double(1), mu = double(0)) {
        out = dt_nonstandard(x, 1, mu, 1)
        out2 = dt(x, 1)
        return(out2)
        returnType(double(1))
    })
ca <-  compileNimble(a)

P_15_rcFun_R_GlobalEnv18.cpp: In function ‘NimArr<1, double> rcFun_R_GlobalEnv18(NimArr<1, double>&, double)’:
P_15_rcFun_R_GlobalEnv18.cpp:25:117: error: no matching function for call to ‘dt_nonstandard_RR_impl<Eigen::Matrix<double, -1, -1> >::dt_nonstandard_RecyclingRule(EigenMapStrd&, int, double&, int, bool)’
 Eig_out = dt_nonstandard_RR_impl<MatrixXd>::dt_nonstandard_RecyclingRule(Eig_ARG1_x_Interm_30, 1, ARG2_mu_, 1, false);
                                                                                ^
In file included from /accounts/gen/vis/paciorek/R/x86_64-pc-linux-gnu-library/3.6/nimble/include/nimble/EigenTypedefs.h:33:0,
                 from P_15_rcFun_R_GlobalEnv18.cpp:6:
/accounts/gen/vis/paciorek/R/x86_64-pc-linux-gnu-library/3.6/nimble/include/nimble/nimbleEigen.h:1393:36: note: candidate: template<class Derived1, class Derived2, class Derived3, class Derived4> static Eigen::CwiseNullaryOp<dt_nonstandardRecyclingRuleClass<long int, Derived1, Derived2, Derived3, Derived4>, DerivedReturn> dt_nonstandard_RR_impl<DerivedReturn>::dt_nonstandard_RecyclingRule(const Derived1&, const Derived2&, const Derived3&, const Derived4&) [with Derived1 = Derived1; Derived2 = Derived2; Derived3 = Derived3; Derived4 = Derived4; DerivedReturn = Eigen::Matrix<double, -1, -1>]
 MAKE_RECYCLING_RULE_CLASS3_1scalar(dt_nonstandard, double)
                                    ^
/accounts/gen/vis/paciorek/R/x86_64-pc-linux-gnu-library/3.6/nimble/include/nimble/nimbleEigen.h:1312:5: note: in definition of macro ‘MAKE_RECYCLING_RULE_CLASS3_1scalar’
     FUNNAME ## _RecyclingRule(const Derived1 &A1, const Derived2 &A2, const Derived3 &A3, const Derived4 &A4) { \
     ^~~~~~~
/accounts/gen/vis/paciorek/R/x86_64-pc-linux-gnu-library/3.6/nimble/include/nimble/nimbleEigen.h:1393:36: note:   template argument deduction/substitution failed:
 MAKE_RECYCLING_RULE_CLASS3_1scalar(dt_nonstandard, double)
                                    ^
/accounts/gen/vis/paciorek/R/x86_64-pc-linux-gnu-library/3.6/nimble/include/nimble/nimbleEigen.h:1312:5: note: in definition of macro ‘MAKE_RECYCLING_RULE_CLASS3_1scalar’
     FUNNAME ## _RecyclingRule(const Derived1 &A1, const Derived2 &A2, const Derived3 &A3, const Derived4 &A4) { \
     ^~~~~~~
P_15_rcFun_R_GlobalEnv18.cpp:25:117: note:   candidate expects 4 arguments, 5 provided
 Eig_out = dt_nonstandard_RR_impl<MatrixXd>::dt_nonstandard_RecyclingRule(Eig_ARG1_x_Interm_30, 1, ARG2_mu_, 1, false);
                                                                                ^
P_15_rcFun_R_GlobalEnv18.cpp:29:81: error: no matching function for call to ‘dt_RR_impl<Eigen::Matrix<double, -1, -1> >::dt_RecyclingRule(EigenMapStrd&, int, bool)’
 Eig_out2 = dt_RR_impl<MatrixXd>::dt_RecyclingRule(Eig_ARG1_x_Interm_31, 1, false);
                                                                                ^
In file included from /accounts/gen/vis/paciorek/R/x86_64-pc-linux-gnu-library/3.6/nimble/include/nimble/EigenTypedefs.h:33:0,
                 from P_15_rcFun_R_GlobalEnv18.cpp:6:
/accounts/gen/vis/paciorek/R/x86_64-pc-linux-gnu-library/3.6/nimble/include/nimble/nimbleEigen.h:1394:36: note: candidate: template<class Derived1, class Derived2, class Derived3, class Derived4> static Eigen::CwiseNullaryOp<dtRecyclingRuleClass<long int, Derived1, Derived2, Derived3, Derived4>, DerivedReturn> dt_RR_impl<DerivedReturn>::dt_RecyclingRule(const Derived1&, const Derived2&, const Derived3&, const Derived4&) [with Derived1 = Derived1; Derived2 = Derived2; Derived3 = Derived3; Derived4 = Derived4; DerivedReturn = Eigen::Matrix<double, -1, -1>]
 MAKE_RECYCLING_RULE_CLASS3_1scalar(dt, double)
                                    ^
/accounts/gen/vis/paciorek/R/x86_64-pc-linux-gnu-library/3.6/nimble/include/nimble/nimbleEigen.h:1312:5: note: in definition of macro ‘MAKE_RECYCLING_RULE_CLASS3_1scalar’
     FUNNAME ## _RecyclingRule(const Derived1 &A1, const Derived2 &A2, const Derived3 &A3, const Derived4 &A4) { \
     ^~~~~~~
/accounts/gen/vis/paciorek/R/x86_64-pc-linux-gnu-library/3.6/nimble/include/nimble/nimbleEigen.h:1394:36: note:   template argument deduction/substitution failed:
 MAKE_RECYCLING_RULE_CLASS3_1scalar(dt, double)
                                    ^
/accounts/gen/vis/paciorek/R/x86_64-pc-linux-gnu-library/3.6/nimble/include/nimble/nimbleEigen.h:1312:5: note: in definition of macro ‘MAKE_RECYCLING_RULE_CLASS3_1scalar’
     FUNNAME ## _RecyclingRule(const Derived1 &A1, const Derived2 &A2, const Derived3 &A3, const Derived4 &A4) { \
     ^~~~~~~
P_15_rcFun_R_GlobalEnv18.cpp:29:81: note:   candidate expects 4 arguments, 3 provided
 Eig_out2 = dt_RR_impl<MatrixXd>::dt_RecyclingRule(Eig_ARG1_x_Interm_31, 1, false);
```                                                                                ^

@paciorek I just filed a PR to fix this.

authors: paciorek perrydv

repo: nimble-dev/nimble


text:
[#224] Rename CoroutineTemplate to template

#224
What happened 👀

Rename CoroutineTemplate folder to template (main folder)
Rename CoroutineTemplateApplication to TemplateApplication (application class)
Rename co.nimblehq.coroutine to co.nimblehq.template(package)
Rename "Coroutine Template" to "Template" (strings.xml)
Rename CoroutineTemplate to template inside workflows, documentation, ...

Proof Of Work 📹

CI is still working as expected ✅
App is still buildable ✅
Script is still working correctly ✅

Hi, @Tuubz I wonder why the title of the PR tag #224, but the commits tag #227 🤔

@chornerman Oh damn, I messed that one up badly 🙈 Thank you

authors: Tuubz chornerman

repo: nimblehq/android-templates


text:
Add publish wiki workflow usage in README

What happened 👀
Add publish wiki workflow usage in README.
Insight 📝
N/A
Proof Of Work 📹

@hoangmirs publish_wiki usage 🤓

@blyscuit Could you please switch the default branch to develop?

@luongvo I cannot, I gave the permission to Engineering Leads.

authors: blyscuit luongvo

repo: nimblehq/azure-pipelines


text:
[#29] As the application, I have the generated infrastructure tested

Resolves https://github.com/nimblehq/infrastructure-templates/issues/29
What happened 👀

Remove @oclif/test and change to use the common way with Jest.
Move all test files to the same folder with the source code
Add jest configurations to run tests.
Refactor some code to run the test easier and make the code readable.
Remove redundant files and folders
Add some custom matchers in test/matchers/file.ts to check the generated project easier.
Move all xxxContent outside the function and export them to use in the test.

Insight 📝

I planned to follow react-templates to write tests, but that seems harder to maintain.
I change to write the unit tests for each generated add-on instead.
So from now, when adding a new add-on, you just need to check the files and folders that you added and the added content in separated test files with helpers e.g. toHaveFile(s), toHaveDirectorie(s), toHaveContentInFile

Proof Of Work 📹
100% codes are covered

Nice change!!! There is definitely a lot to get inspired for the react-template!!!! 😍

authors: hoangmirs malparty

repo: nimblehq/infrastructure-templates


text:
Не работает: всегда открывает комментарии к одной и той же статье Хабра

Например, пробуем
https://nin-jin.github.io/habrcomment/#article=751264/
В результате открываются комментарии к "Моё разочарование в софте"
https://habr.com/post/423889

Хабр прикрыл апи, так что пришлось захардкодить выдачу одной статьи.

Забавное решение

repo: nin-jin/habrcomment


text:
[RESOLVED] Interface eth0(): High error rate (>2 for 5m)

Problem started at 15:39:29 on 2023.04.21
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Operational data: errors in: 2, errors out: 0
Original problem ID: 19831
Event details in Zabbix: http://192.168.232.99/tr_events.php?triggerid=23483&eventid=19831

Problem has been resolved in 9m 0s at 15:48:29 on 2023.04.21
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Original problem ID: 19831


text:
RGB effect for Laser color

Describe the feature you'd like to see added
with the new Laser color swap in the tweaks version i think a fun neat option would be a Rainbow/RGB toggle that goes through all colors while playing, this isnt needed as a fix but would be a fun option

Implemented in c87823788558d5f:
https://user-images.githubusercontent.com/33870163/176194951-da536285-feaa-4e2f-b949-6263e1e1659e.mp4
I had the same idea when I was implementing the color override option, actually :p
Let me know if that works for you.

Gamer moment

Can confirm that this looks great! Only issue I noticed is that there are these teeny tiny breaks in the laser, I think maybe 2 or 3, but they're pretty hard to notice.

Only issue I noticed is that there are these teeny tiny breaks in the laser

That's an issue with the vanilla game, sadly. I'm just reusing QLOC's original RGB laser implementation, which has its flaws :/

Only issue I noticed is that there are these teeny tiny breaks in the laser

That's an issue with the vanilla game, sadly. I'm just reusing QLOC's original RGB laser implementation, which has its flaws :/
Edit: To elaborate a bit more, there are three functions related to drawing the laser line: EspDrawLaserLine, which has hardcoded colors + alpha, EspDrawLaserLine2 which accepts Red, Blue, Green and Alpha (although the Alpha one doesn't seem to work at all), and EspDrawLaserLine3 which seems to be unused/not working(?).
The game normally uses EspDrawLaserLine for the laser sights. When you set a custom RGB value, either by using re4_tweaks or the game's vanilla config.ini, the game instead uses EspDrawLaserLine2. The problems is in this EspDrawLaserLine2 function. I'm not sure if QLOC actually coded this one from scratch or reused it from somewhere else, but not only it looks different from the original EspDrawLaserLine, it is also slightly broken due to the alpha value being ignored. Would be nice if we could make EspDrawLaserLine use custom RGBA values instead, but I haven't had any luck with that. Maybe @emoose could figure something out? Meh.

Thanks for the insight! I did learn a bit of this when trying to tweak the laser using the ini file before RE4 Tweaks. I just wanted to mention something: you said you're resuing QLOC's original RGB laser implementation. Did they rewrite it or something? If I fallback to using the original laser or if I edit the ini myself and don't use the RE4 Tweaks option, I don't see the breaks in the laser.

Hmm, could you share your custom config.ini laser values that don't have seams in the laser? They seem to happen here regardless of what I use.

Hmm, could you share your custom config.ini laser values that don't have seams in the laser? They seem to happen here regardless of what I use.

laserR 175
laserG 0
laserB 255
laserA 255
These are the settings I use, and I play at 4K with no anti-aliasing enabled. But I have something more wild to report: the issue is fixed when playing in Fullscreen or RE4Tweak's Borderless Window mode. For some reason the breaks in the laser only appear when using standard window mode. For me it's not a big deal because I always play in Borderless, but I thought it was weird nonetheless.

We're talking about this type of thing, right?

This image is from the vanilla game + the settings you posted.  Seems to happen here regardless of my settings.

Yup, that's exactly what I'm talking about. This is really weird because I even tested it in multiple locations too, doesn't break for me unless in regular window mode. I'll try and get back to you if I think of anything else.

authors: LethalPlacebo RiasatSalminSami Scoovy nipkownix

license: Zlib


text:
AllowMatildaQuickturn: allows quickturning chara when wielding Matilda

As requested at #193
Figured out how qingsheng's patch worked, pretty neat method, wasn't too difficult to replicate it in the DLL.
Looks like Matilda can quickturn fine now, but note that this won't have an effect when using MouseTurning.
To test, make use MouseTurning is disabled, equip Matilda, then point camera in some direction and press aim button, normally game would start aiming in original direction you were pointing, but this should rotate char to match camera direction instead.
Tested with the usual EXEs, seems to work fine.
Many thanks to @qingsheng8848 for the patch & @Scoovy for letting us know about it!

Cool. Scoovy hasn't answered you yet, but I believe everything looks fine, so I'll merge it.
Thank you!

authors: emoose nipkownix


text:
bug_report.yaml: update links for HDProject 1.1

Included a link to the BIO4.sfv that came with 1.1, since I'm not sure whether that SFV is included in the update-only release.
E: ugh it got made as a draft PR again, should be fixed I think

Thank you, I was about to do that as well :p


text:
Pass custom configuration into DerivativesDataSink entity parser

Closes #776.
Changes proposed:

Convert DerivativesDataSink._config_entities and DerivativesDataSink._file_patterns into a bids.layout.Config object, then feed this Config into parse_file_entities (along with the default bids and derivatives ones) in order to extract custom entities from the source_file.

@tsalo Do you need help working through test failures?

I didn't even realize crucial tests were failing, but it's pretty clear what went wrong. I will definitely have questions about the cleanest version of the code, but I can figure out the failing tests at least.

The first set of failures came from feeding the pybids Config the entity names, rather than the entity dictionary. Once I fixed that, there was a second round of failures that I think stemmed from a mismatch between how the run entity is defined in niworkflows and in pybids. I think the issue is that, because DerivativesDataSink never used the entity definitions from the custom config file (i.e., the niworkflows one), all of the tests are geared toward the entity definitions from pybids. I ended up changing the entity definition in the niworkflows config file, but I don't know if the change (a leading zero) was important. If it is, then I think the tests need to be updated instead.
I'm not sure what's causing the current round of failures though.

Try this patch:
diff --git a/niworkflows/reports/tests/test_core.py b/niworkflows/reports/tests/test_core.py
index 7d45b4fb..bf474e2c 100644
--- a/niworkflows/reports/tests/test_core.py
+++ b/niworkflows/reports/tests/test_core.py
@@ -32,6 +32,7 @@ from yaml import safe_load as load
 import matplotlib.pyplot as plt
 from bids.layout.writing import build_path
 from bids.layout import BIDSLayout
+from bids.layout.utils import PaddedInt

 import pytest

@@ -152,11 +153,11 @@ def test_report2(bids_sessions):
             [
                 (None, "faketask"),
                 (None, "faketask2"),
-                (1, "faketaskwithruns"),
-                (1, "mixedgamblestask"),
-                (2, "faketaskwithruns"),
-                (2, "mixedgamblestask"),
-                (3, "mixedgamblestask"),
+                (PaddedInt("01"), "faketaskwithruns"),
+                (PaddedInt("01"), "mixedgamblestask"),
+                (PaddedInt("02"), "faketaskwithruns"),
+                (PaddedInt("02"), "mixedgamblestask"),
+                (PaddedInt("03"), "mixedgamblestask"),
             ],
         ),
         ([""], [], []),

(If this isn't something you regularly do, you can do it just by running patch pasting the above, and finishing with ctrl-d.)

Just to explain, to preserve zero-padding when generating filenames, we had to add a special class to pybids that would remember its zero-padding when str(run) was called. The function in the test is failing because it sorts lexically and "02" < "1".

Thanks!
Zero-padding is so annoying. I say we get rid of it in BIDS 2.0.

Lexical sorting is pretty popular. I think that's an uphill battle.

@tsalo Could you have a look at the latest commit and see if it outrages you beyond reason? I think it should fix these tests once and for all.

It seems like a wonderful solution to me!

Codecov Report
Base: 63.31% // Head: 63.36% // Increases project coverage by +0.05% :tada:

Coverage data is based on head (f08e74e) compared to base (bf9821d).
Patch coverage: 100.00% of modified lines in pull request are covered.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@               Coverage Diff               @@
##           maint/1.7.x     #777      +/-   ##
===============================================
+ Coverage        63.31%   63.36%   +0.05%
===============================================
  Files               49       49
  Lines             5950     5959       +9
  Branches          1168     1169       +1
===============================================
+ Hits              3767     3776       +9
  Misses            2001     2001
  Partials           182      182

Flag
Coverage Δ

reportlettests
?

unittests
50.63% <100.00%> (+0.07%)
:arrow_up:

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

Impacted Files
Coverage Δ

niworkflows/interfaces/bids.py
96.51% <100.00%> (+0.02%)
:arrow_up:

niworkflows/reports/core.py
76.60% <100.00%> (+0.99%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

authors: codecov-commenter effigies tsalo

repo: nipreps/niworkflows


text:
Remove code duplicate

Remove code duplicate from StackedHorizontalProgressBar.java class

@nisrulz can you please create a develop branch. I done a fix for this by creating an init() function in the class. I need to create a PR to develop branch like you mentioned, but it does not exist yet.

@mayojava yes. Let me do that.

@nisrulz link to PR https://github.com/nisrulz/stackedhorizontalprogressbar/pull/3

authors: mayojava nisrulz

repo: nisrulz/stackedhorizontalprogressbar


text:
Support requests are mixed in with bugs

@thiagokokada I got pinged in #nix:nixos.org today by someone asking for help with nde and after I answered their question another person popped up in the room almost immediately also trying to use this project.
A lot of the issues we get are sort of repetitive. Do you think we should make a matrix room and stick it in the README? I'm not really convinced either way:
 + maybe people will help each other more casually, then we don't get as many emails and don't have to write as many responses.
 - questions will get repeatedly brought up, and unlike here, will have to be answered many times since matrix does not really have the nice searchable discussion UX GitHub does.
Thoughts?

Sure.
I mean, I am not the most active person in Matrix and will probably not be very active there. But I also think it is better than folks posting messages in random channels/issues.

It's better than issue clutter. But since you're seeing repetetive questions... why not make an FAQ?

I agree for both a FAQ and some sort of chatting room. Some sort of nix-community Matrix room might be good.

Do you think this issue should be closed by now? I think it's mostly fixed, and when https://github.com/nix-community/nix-doom-emacs/pull/266 is merged, we should also be able to refer to the documentation for a lot of questions

Do you think this issue should be closed by now? I think it's mostly fixed, and when #266 is merged, we should also be able to refer to the documentation for a lot of questions

Let's leave this open until #266 is merged. Also I will probably will go and close all support related issues and redirect its creators to the Matrix chat too.

#266 seems to have been merged last week.
Is #doom-emacs:nixos.org now the place to ask for help? Is creating an FAQ now the other task to be completed for this issue?

#266 also brought an FAQ along, see /docs.

Is #doom-emacs:nixos.org now the place to ask for help?

the seems like a lot; vaguely depends on whether you think you have an issue issue or a "I'm sure there's this really easy way to do this" issue where you're just optimizing for minimal effort -- that also overlaps with the FAQ.
I don't think it's worth trying to codify that. There's a few options to choose from as you wish, I think.

I suppose this should be closed, then?

sure! ❤

authors: Lord-Valen MonAaraj akaihola ckiee ribosomerocker thiagokokada

repo: nix-community/nix-doom-emacs


text:
nixbox 18.09 not on Vagrant Cloud

see here: https://app.vagrantup.com/nixos

I ran into this as well, after using the instructions in the README, specifically: vagrant init nixos/nixos-18.09-x86_64 then vagrant up.
The solution, for now, seems to be to downgrade to one that is available: nixos/nixos-18.03-x86_64

The main reason is that Hashicorp has stopped offering CI builders and other CIs don't support VirtualBox. On top of that I don't have VirtualBox installed on my system anymore.

Does anyone know of a CI that offers support for VirtualBox?

@zimbatm I have VirtualBox installed on my system, and I wouldn't mind supporting this effort for future versions of NixOS as well.
Let me know what's involved in publishing these images to the https://app.vagrantup.com/nixos repo.

Thanks for the offer @gurjeet. The best way forward would be to generate the images using Nix instead. Once that is done it will be possible to push them using the CI directly.
The image would include the vagrant.nix nixos module and output a vmdk file, which is then wrapped in a .tar.gz with the metadata packed with it. The package format is described over here: https://www.vagrantup.com/docs/boxes/format.html

I just made a PR, hopefully it will be a bit clearer: https://github.com/nix-community/nixos-generators/pull/22
If that works, then we can deprecate this project and then create a new one to periodically publish the Vagrant boxes

@zimbatm I'm new to NixOS in general, and haven't used nix-generators before. How should I test your patch to that repo.
I am on macOS 10.13.6, and have nix(-darwin) installed. I have cloned the nixis-generators repo, and in that directory executing./nixos-generate --list shows vagrant as one of the formats.
The next step is to provide a configuration.nix to specify the NixOS derivation I need. I don't see a suitable one on my macOS. Can you please suggest which one I should use.

Yes that's a good start.
The principle for testing would be to run ./nixos-generate -f vagrant, get the .box image and try to start it with vagrant somehow (I think vagrant import is needed to import the box). This will fail because the format is probably wrong.
Once you have that test phase working, download one of the original .box files, unpack it with tar and look at the differences. The metadata file needs to be completed, the .ova file name needs to be fixed I guess. Then open formats/vagrant.nix and fix the build instructions to match that.
If that's too much low-level for you, ping me on IRC and I can walk you through it a bit more.

@zimbatm serait-il possible d'enlever le postprocessor "vagrant-cloud" des fichiers json puisqu'apparemment cela ne sert plus à rien ? Si ok je peux pousser un tel changement.

sounds good @PierreR

fixed in dfc1beca4bef917756f2c9f2a7a7a4abdfbcfa47

@zimbatm you also want to remove the vagrant box post-processors ? It was useful for me to create a vagrant box compatible with virtualbox.
FWIW I don't use this post-processors with vmware because AFAIK there is no good free vagrant plugin for vmware.

The project is about creating vagrant boxes and adds all the cruft necessary for that to work like the vagrant users, a bunch of system packages... If all you want is to generate a VM image then it's probably better to use the nixos-generators project.

The project is about creating vagrant boxes

I was just trying to point it out that dfc1bec is removing the creation of such a box

woops, reverted. I don't see the vagrant-cloud post-processor

The command you suggested fails with the following error. I had a look at the patch before running the command, and the contents of formats/vagrant.nix seem to imply that the nixos-generate command needs to be executed on a Linux system.
$ ./nixos-generate -f vagrant
error: assertion failed at /nix/store/v6aja9ar864688529ayznix8mvv3ih10-nixpkgs-19.09pre184256.5b7e3718ee3/nixpkgs/pkgs/os-specific/linux/kernel/generic.nix:56:1
(use '--show-trace' to show detailed location information)

Oh right, the project doesn't cross-compile right now, it has to be executed on a linux machine

Does anyone want to try out https://github.com/nix-community/nixos-generators/pull/50 ? You will have to also checkout nixpkgs to the associated PR and then build the .box file

@zimbatm, I'd like to try that PR, but it's not clear to me how to do it. Is it enough to clone your nixos-generators fork?

Clone https://github.com/nix-community/nixos-generators/pull/50 and https://github.com/NixOS/nixpkgs/pull/76071
Then in the nixos-generators, override the configuration.nix to
{ config, lib, pkgs, modulesPath, ... }:
{
  documentation.man.enable = false;
  documentation.nixos.enable = false;
  sound.enable = false;
}

Finally run ./nixos-generators -I nixpkgs=../path/to/nixpkgs-clone -f vagrant-virtualbox`.
At the end if should give you a vbox file that you can import into virtualbox and try out.

I'm getting this error
./nixos-generate -I nixpkgs=../nixpkgs/ -f vagrant-virtualbox
error: attribute 'vagrantVirtualbox' in selection path 'config.system.build.vagrantVirtualbox' not found

thanks, fixed in https://github.com/NixOS/nixpkgs/pull/76071/commits/686125dbf9e1b5e933d3e74a7843bd9b1939d272
You will need a Linux remote builder to produce a compatible image. Do you know how to set that up?

Do you mean I can only run the command on Linux? I could do it in a VM, if that's possible.

You can run the command on macOS if you have a Linux remote builder machine setup. You will have to add ./nixos-generate -I nixpkgs=../nixpkgs/ -f vagrant-virtualbox --system linux-x86_64.
Or run it in a VM that works too.

I tried building inside a NixOS VM managed with VirtualBox and I got this error:
WARNING: Image format was not specified for 'nixos.raw' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.
qemu-system-x86_64: cannot set up guest memory 'pc.ram': Cannot allocate memory
builder for '/nix/store/jpnka8baajbkkazqpqd40v7sxzy0g65s-nixos-ova-20.03.git.686125d-x86_64-linux.drv' failed with exit code 1
cannot build derivation '/nix/store/q76pbx6gfmhv976kw1gppy9nrxyar0xk-virtualbox-vagrant.box.drv': 1 dependencies couldn't be built
error: build of '/nix/store/q76pbx6gfmhv976kw1gppy9nrxyar0xk-virtualbox-vagrant.box.drv' failed

I think that's because the VM is managed by VirtualBox.
Next, I tried on a DigitalOcean instance running Ubuntu. I got this error:
error: a 'x86_64-linux' with features {kvm} is required to build '/nix/store/jpnka8baajbkkazqpqd40v7sxzy0g65s-nixos-ova-20.03.git.686125d-x86_64-linux.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, nixos-test}

I'm afraid there are going to be many rounds to trial.
For the first issue, I think giving more RAM to the VirtualBox VM should solve it.
The second issue is because the Nix relies on KVM to build the image. Most hosting providers don't allow nested virtualization. I know Google Cloud or Azure do propose that option.

I published a version of the image over here: https://app.vagrantup.com/nixos/boxes/nixos-20.03-test
Virtualbox seems to be broken on NixOS at the moment so I am not able to test it unfortunately.

I get this error when running vagrant up on Windows 10 and latest VirtualBox.
Everything works with 18.03 image.
Vagrantfile: https://gist.github.com/filalex77/dc3305055a3990494778177f7059effe#file-vagrantfile

> vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'nixos/nixos-20.03-test'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'nixos/nixos-20.03-test' version '0.0.1' is up to date...
==> default: Setting the name of the VM: holochain-vagrant_default_1586268793281_37112
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default:
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default:
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 6.0.14
    default: VirtualBox Version: 6.1
==> default: Mounting shared folders...
    default: /vagrant => C:/Users/brightone/holochain-vagrant
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

mkdir -p /vagrant

Stdout from the command:

Stderr from the command:

From what I can tell, the command mkdir -p /vagrant failed. I would log into the VM and see if that directory exists. I don't know what it means, if it does though.

The directory doesn't actually exist, yes. In vagrant ssh, sudo asks for root password, which I do not have...

That's strange. It shouldn't ask for your password, because it should normally log in with an SSH key. What does vagrant ssh-config show?

What does vagrant ssh-config show?

> vagrant ssh-config
Host default
  HostName 127.0.0.1
  User vagrant
  Port 2222
  UserKnownHostsFile /dev/null
  StrictHostKeyChecking no
  PasswordAuthentication no
  IdentityFile C:/Users/brightone/holochain-vagrant/.vagrant/machines/default/virtualbox/private_key
  IdentitiesOnly yes
  LogLevel FATAL

Strange. I tried your Vagrantfile now and I got the same error about mkdir -p /vagrant. From what I can tell, it's running the command without sudo and failing with permission denied.
Also, I realized I misunderstood what you said about sudo.
The user should have passwordless sudo, but the machine wasn't built that way. I think your only option at this point is to build your own machine with the tools in this repo. I did it in the past and it was straightforward.

The nixos/nixos-20.03-test on Vagrant Cloud didn’t work for me. I got this error message during vagrant up phase:
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "d5e91f69-bba7-4b13-a7b6-d7796e21e052", "--type", "headless"]

Stderr: VBoxManage: error: Implementation of the USB 2.0 controller not found!
VBoxManage: error: Because the USB 2.0 controller state is part of the saved VM state, the VM cannot be started. To fix this problem, either install the 'Oracle VM VirtualBox Extension Pack' or disable USB 2.0 support in the VM settings.
VBoxManage: error: Note! This error could also mean that an incompatible version of the 'Oracle VM VirtualBox Extension Pack' is installed (VERR_NOT_FOUND)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole

and the machine is powered off. Fortunately current master branch works (I built it with Packer myself).

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/building-openstack-images-and-development-vms-from-a-macos-host/9522/1

Crossposting from the PR on nixpkgs: https://github.com/NixOS/nixpkgs/pull/76071#issuecomment-711420610
The VBoxManage step failure can be worked around by letting vagrant create the VM, error out with that message, and then using the UUID in VBoxManage modifyvm [the uuid] --usb off. Booting should get further.
The problem with mkdir -p /vagrant failing has to do with the /etc/sudoers generated by the expression for the VM:
Defaults:root,%wheel env_keep+=LOCALE_ARCHIVE
Defaults:root,%wheel env_keep+=NIX_PATH
Defaults:root,%wheel env_keep+=TERMINFO_DIRS
Defaults env_keep+=SSH_AUTH_SOCK
Defaults lecture = never
root   ALL=(ALL) SETENV: ALL
%wheel ALL=(ALL) NOPASSWD: ALL, SETENV: ALL

# Don't edit this file. Set the NixOS options ‘security.sudo.configFile’
# or ‘security.sudo.extraRules’ instead.

# Keep SSH_AUTH_SOCK so that pam_ssh_agent_auth.so can do its magic.
Defaults env_keep+=SSH_AUTH_SOCK

# "root" is allowed to do anything.
root        ALL=(ALL:ALL) SETENV: ALL

# extraRules
%wheel	ALL=(ALL:ALL)	SETENV: ALL

# Keep terminfo database for root and %wheel.
Defaults:root,%wheel env_keep+=TERMINFO_DIRS
Defaults:root,%wheel env_keep+=TERMINFO

The sudoers format is powerful and I may not be interpreting it correctly, but I think the line %wheel ALL=(ALL) NOPASSWD: ALL, SETENV: ALL is being superseded by %wheel	ALL=(ALL:ALL)	SETENV: ALL later in the file.
Fortunately there is now an option, security.sudo.wheelNeedsPassword = false;, that covers that.

authors: BrianHicks FranklinYu LucianU MaCXyLo PierreR filalex77 gurjeet joseph-long nixos-discourse zimbatm

repo: nix-community/nixbox


text:
Fails to build @cloudflare/wrangler@beta (due to NPM workspaces?)

NPM now has a "workspace" concept, where multiple packages reside in the same repository, and share the same package-lock.json. Wrangler2 (the rewrite that is known by NPM as @cloudflare/wrangler@beta, hosted in a different repository from the stable version) fails to build, and.. maybe it's because it's using a workspace?
Here's a couple of attempts to build wrangler2 using npmlock2nix:
$ nix build .#theSubDir
error: [npmlock2nix] A valid dependency consists of at least the resolved and integrity field. Missing one or both of them for `@ampproject/remapping`. The object I got looks like this: {"requires":{"@jridgewell/trace-mapping":"^0.2.2","sourcemap-codec":"1.4.8"},"version":"2.0.2"}
(use '--show-trace' to show detailed location information)

$ nix build .#hybrid
error: [npmlock2nix] A valid dependency consists of at least the resolved and integrity field. Missing one or both of them for `@ampproject/remapping`. The object I got looks like this: {"requires":{"@jridgewell/trace-mapping":"^0.2.2","sourcemap-codec":"1.4.8"},"version":"2.0.2"}
(use '--show-trace' to show detailed location information)

$ nix build .#theRoot
error: [npmlock2nix] A valid dependency consists of at least the resolved and integrity field. Missing one or both of them for `@ampproject/remapping`. The object I got looks like this: {"requires":{"@jridgewell/trace-mapping":"^0.2.2","sourcemap-codec":"1.4.8"},"version":"2.0.2"}
(use '--show-trace' to show detailed location information)

flake.nix:
{
  description = "Wrangler2";

  inputs = {
    nixpkgs.url = github:nixos/nixpkgs;
    flake-utils.url = github:numtide/flake-utils;
    npmlock2nix = {
      url = github:nix-community/npmlock2nix;
      flake = false;
    };
    wrangler2 = {
      # this is tag wrangler@0.0.17, which is rejected by Nix likely due to the at sign
      url = "github:cloudflare/wrangler2/3789b164ec5f56e59545bb7059e20e8543e0d95b";
      flake = false;
    };
  };

  outputs = { self, nixpkgs, flake-utils, ... }@inputs:
    flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = import nixpkgs {
          system = "x86_64-linux";
        };
        npmlock2nix = import inputs.npmlock2nix.outPath {
          pkgs = pkgs;
        };
      in
      {

        packages.theRoot = npmlock2nix.build {
          src = inputs.wrangler2.outPath;
          buildCommands = [ "cd packages/wrangler && npm run build" ];
          installPhase = "cp -r dist $out";
        };

        packages.hybrid = npmlock2nix.build {
          src = inputs.wrangler2.outPath;
          packageJson = "${inputs.wrangler2.outPath}/packages/wrangler/package.json";
          packageLockJson = "${inputs.wrangler2.outPath}/package-lock.json";
          buildCommands = [ "cd packages/wrangler && npm run build" ];
          installPhase = "cp -r dist $out";
        };

        packages.theSubDir = npmlock2nix.build {
          src = "${inputs.wrangler2.outPath}/packages/wrangler";
          packageJson = "${inputs.wrangler2.outPath}/packages/wrangler/package.json";
          packageLockJson = "${inputs.wrangler2.outPath}/package-lock.json";
          buildCommands = [ "npm run build" ];
          installPhase = "cp -r dist $out";
        };
      }
    );
}

Oh the "integrity" field issue might be due to changes in npm? See https://github.com/svanderburg/node2nix/issues/238#issuecomment-942838431

another example in the wild: portiaui/package-lock.json
{
  "name": "portia-ui",
  "version": "2.0.0-alpha",
  "lockfileVersion": 1,
  "requires": true,
  "dependencies": {

    "npm": {

      "dependencies": {

        "async-some": {
          "version": "1.0.2",
          "integrity": "sha1-TYqBYg1ZWHkbW5j4AtMgd3bpVQk=",
          "dev": true,
          "requires": {
            "dezalgo": "^1.0.2"
          }
        },

error: [npmlock2nix] A valid dependency consists of at least the resolved and integrity field. Missing one or both of them for `async-some`. The object I got looks like this: {"dev":true,"integrity":"sha1-TYqBYg1ZWHkbW5j4AtMgd3bpVQk=","requires":{"dezalgo":"^1.0.2"},"version":"1.0.2"}


text:
学内発表用資料作成

Todo

プレゼンについて
[ ] プレゼン作成
[ ] 発表原稿作成
[ ] 発表練習
資料について
[ ] 使用言語について
[ ] 開発の流れ
[ ] 使用技術
[ ] 学び

使用言語の資料はPythonについての記述以外完成
あとは内容が薄いのを修正

学内発表は終了しました。次は本番発表です。
すみわけのためにこちらのIssueはクローズします。


text:
Fixup schema init

@JonathanShaw Jon, this was the problem.

that makes a lot of sense actually

authors: JonathanShaw jrixon

repo: nla/amberdb


text:
Wordnet's all_lemma_names returns inconsistent types

Depending on the language, Wordnet's all_lemma_names() returns inconsistent types
>>> from nltk.corpus import wordnet as wn
>>> type(wn.all_lemma_names(lang='eng'))
<class 'dict_keyiterator'>
>>> type(wn.all_lemma_names(lang='cat'))
<class 'list'>

Patched in #2294 =)

repo: nltk/nltk


text:
The file “feed” couldn’t be opened.

Hi team,
I am facing some issue with opening one url. The url is https://www.diabetes-m.com/feed/ and it calls xml data. Unfortunately after parsing with your library, and error returns "The file “feed” couldn’t be opened".
I was wondering is there is something wrong with the xml or it could be something else?
I really appreciate your help!

@plami I had the same problem and it was caused by the library fetching the data synchronously via the Data(contentsOf: sanitizedSchemeUrl)  method. I created a PR with a fix (https://github.com/nmdias/FeedKit/pull/163) so maybe you can try and use that branch locally if it doesn't get merged.

authors: armartinez plami

repo: nmdias/FeedKit


text:
Not Able to Check Multiple Items in a Feed

Hello! In my app, I want to display the first 10 different items in a feed in a UICollectionView. I can only access the first item in a feed shown in your documentation. How would I be able to gather the first 10 items and add them to an array?

Hi @theindiandev1065,
The example show in the documentation...
let item = feed.items?.first

...accesses an array of items. You can iterate over these:
feed?.items?.forEach({ (item) in
    print(item.title)
})

Or access them Individually:
self.feed?.items?[0].title // first
self.feed?.items?[1].title // second
// ... and so on

Thanks!


text:
_yosys.py: handle unparseable versions

Do not use yosys binaries with unparseable version numbers. This ensures
that nmigen always knows what version of yosys it is generating RTLIL
for.
The effect of this change is that if the version number of the system
yosys is unparsable, nmigen will attempt to fallback to the builtin
Yosys.
Issue #409.

This is my first github code review - let me know if you'd prefer me to squash these 3 changes into one.

I've squashed it through GitHub's UI. Thanks for the patch!

authors: alanvgreen whitequark

repo: nmigen/nmigen


text:
Missing native functions

Hi,
Lotv introduced lots of new native Blizzard functions that are missing from entity.name.function.native.galaxy. You can find them all here: http://hastebin.com/elenaxozeq.java
I could list them all here but I bet you have a script to convert natives.galaxy anyway :-)

Along with native functions, I'm also aware that I'm missing libNtve_gf_... functions along with Blizzard functions implemented in HoTS. Do you know which mpq file has these functions?
Thanks.

Yes, they are here: http://hastebin.com/elenaxozeq.java
Here is nvtelib: http://hastebin.com/pevuyetuki.coffee
and the header: http://hastebin.com/egufunuvad.cs

I actually managed to find the libLibty, libHots, and libVoid builtins in the SC2Data, will be adding snippets and grammar matching shortly.

Yeah, you mean these 3:
http://hastebin.com/gabakebevo.cs
http://hastebin.com/keqarusibu.cs
http://hastebin.com/edogexapuj.cs
But the most important one if you are adding all that crap is libVCMI: http://hastebin.com/adisepefoj.md
Which is VoidCampaignMissionLibrary.
There's also VCST: http://hastebin.com/ejawanepir.md
and VCUI: http://hastebin.com/futakulado.md

Seriously, just add natives.galaxy stuff and forget the rest please. It's way too much overhead and will only cause CPU and memory usage in Atom to spike.

Updated to lotv natives.galaxy and added library functions from:

NativeLib_h.galaxy
LibertyLib_h.galaxy
SwarmLib_h.galaxy
VoidLib_h.galaxy.

I'm only going to keep the builtin functions from these four libraries (and AI.galaxy) because I agree with you that the campaign libraries have a lot of overhead and not much use. These four libraries however do have useful functions that I use regularly and are very small compared to natives.galaxy. FYI I also updated my script I've been using to parse Blizzard functions.
If the constants and functions updated are satisfactory, I'll proceed to close the missing constants and functions issues.
Thanks!

But surely CampaignLib_h.galaxy from libertystory.sc2campaign is useful?
Problem is that LibVCMI from Void superceeds it.
In any case they are both more useful than LibertyLib, SwarmLib and VoidLib combined.

Constants seem to be missing from core.sc2mod/base.sc2data/triggerlibs/gamedata/
I think the most useful ones there are Unit.galaxy and GameData.galaxy, but obviously that all depends on your project.

Based on browsing the the libVCMI from http://hastebin.com/adisepefoj.md, it seems like while some of the functions seem like useful general purpose functions, many are also campaign specific functions. Most of the constants are campaign specific and likely have little use outside of it.
The functions from Liberty, Swarm, and Void libs are general purpose functions. I use some of these in one of my own projects, hence I believe these are useful and should be included.

What I am trying to illustrate is that that's your opinion. I, and I am sure others as well depending on their Arcade project, find CampaignLib/LibVCMI more useful than Void/Liberty/Hots libs.
It's your project, and to be honest I do not care what is included after natives.galaxy and libnvte.
What I am saying is that objectively, either:

none of it should be included except core.sc2mod (natives.galaxy / libnvte).
all of it should be included
Again, though, and I must stress this:
I dont actually care.

Yeah I agree that the usefulness of the library functions depends on the project. However I disagree with either including everything or being as minimalist as possible. I think a mix of things should be added, although I do acknowledge this is inevitably based on my personal development preferences.
I added constants from GameData.galaxy. Aside from that, I am going to keep functions from Liberty, Swarm, and Void libraries (and the native libs).
Closing the issue since natives functions have been updated.
Thanks!

authors: nmosfet vhaarr

repo: nmosfet/language-galaxy


text:
simplify

I just created an approach to massively simplify your PR. I am not a fan of the Transport class, we should definitely not copy the mistakes we did when implementing this.

I fd up, but the idea should be clear :) seams like I misconfigured the consumption tests

repo: nmshd/runtime


text:
coveralls: Remove explicit dependencies and make coveralls optional

Signed-off-by: Edward Haas edwardh@redhat.com

ci test please

authors: EdDev tyll

repo: nmstate/nmstate


text:
Android build warnings

Android build issues a lot of warnings.
In file included from ././../api/capi/src/nntrainer_util.cpp:14:
In file included from ./../api/capi/include/nntrainer_internal.h:30:
In file included from ./../nntrainer/models/neuralnet.h:34:
./../nntrainer/layers/activation_layer.h:51:7: warning: 'initialize' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
  int initialize(Manager &manager);
      ^
./../nntrainer/layers/layer_internal.h:543:15: note: overridden virtual function is here
  virtual int initialize(Manager &manager) = 0;
              ^
In file included from ././../api/capi/src/nntrainer_util.cpp:14:
In file included from ./../api/capi/include/nntrainer_internal.h:30:
In file included from ./../nntrainer/models/neuralnet.h:34:
./../nntrainer/layers/activation_layer.h:57:8: warning: 'read' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
  void read(std::ifstream &file){/* noop */};
       ^
./../nntrainer/layers/layer_internal.h:174:16: note: overridden virtual function is here
  virtual void read(std::ifstream &file);
               ^
In file included from ././../api/capi/src/nntrainer_util.cpp:14:
In file included from ./../api/capi/include/nntrainer_internal.h:30:
In file included from ./../nntrainer/models/neuralnet.h:34:
./../nntrainer/layers/activation_layer.h:63:8: warning: 'save' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
  void save(std::ofstream &file){/* noop */};
       ^
./../nntrainer/layers/layer_internal.h:181:16: note: overridden virtual function is here
  virtual void save(std::ofstream &file);

...

:octocat: cibot: Thank you for posting issue #924. The person in charge will reply soon.

Confirming that #964 resolves this issue

authors: kparichay taos-ci zhoonit

repo: nnstreamer/nntrainer


text:
[Wait for #1507] [Dataset] DataBuffer Handling

[Pending commit: #1507]

[Dataset] DataBuffer Handling

This patch adds DataBuffer handling in case of the producer throws.

**Self evaluation:**
1. Build test: [X]Passed [ ]Failed [ ]Skipped
2. Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Jihoon Lee <jhoon.it.lee@samsung.com>

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #1508. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://nnstreamer.mooo.com/.

authors: taos-ci zhoonit


text:
[model] Add epoch complete callback

Called the end of an epoch
Users can do what they need at the end of each epoch. e.g. get RunStats.

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #2205. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.

authors: songgot taos-ci


text:
PR #5

[Template] PR Description
In general, github system automatically copies your commit message for your convenience.
Please remove unused part of the template after writing your own PR description with this template.
$ git commit -s filename1 filename2 ... [enter]

Summarize changes in around 50 characters or less

More detailed explanatory text, if necessary. Wrap it to about 72
characters or so. In some contexts, the first line is treated as the
subject of the commit and the rest of the text as the body. The
blank line separating the summary from the body is critical;
various tools like `log`, `shortlog` and `rebase` can get confused
if you run the two together.

Further paragraphs come after blank lines.

**Changes proposed in this PR:**
- Bullet points are okay, too
- Typically a hyphen or asterisk is used for the bullet, preceded
  by a single space, with blank lines in between, but conventions vary here.

Resolves: #123
See also: #456, #789

**Self evaluation:**
1. Build test: [ ]Passed [ ]Failed [*]Skipped
2. Run test: [ ]Passed [ ]Failed [* ]Skipped

**How to evaluate:**
1. Describe how to evaluate in order to be reproduced by reviewer(s).

Add signed-off message automatically by running **$git commit -s ...** command.

$ git push origin <your_branch_name>

:memo: Version: 1.20180820. Thank you for submitting PR #329. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://invain.mooo.com/.

To contributor, We have used 'Signed-off-by:' notation by default to handle the license issues, that result from contributors. Note that 'Is there a Signed-off-by line?' is important because lawyers tell us we must have to it to cleanly maintain the open-source license issues even though it has nothing to do with the code itself.

INFO: You can read if there are misspelled characters at our misspelling check report. Please read http://invain.mooo.com/TAOS-CI/ci/repo-workers/pr-checker/201810251000380.36237192153931-329-cbb7a2905766cb20109c486a7853a74dd3f21d37/report/misspelling_result.txt.

:octocat: cibot: @bson1012, One of the format checkers is failed. If you want to get a hint to fix this issue, please go to https://github.com/nnsuite/TAOS-CI/wiki/.

https://hacktoberfest.digitalocean.com/stats/bson1012
You has completed the Hacktoberfest challenge!
Progress (5/5)

authors: bson1012 leemgs taos-ci

repo: nnsuite/TAOS-CI


text:
support for append + test

Hi,
I needed the append function.  I've added it on my branch and included tests.  Please review and consider for addition to the mainline.
I'm not sure if there was a reason why there was no append function up to now.  If there is a problem with doing it this way, please let me know.
Thanks,
Emmet

Hi @kallax this looks good, and I'd like to merge it. Two comments. First, you might consider creating a separate test for append, rather than making an existing test large. Second, can you submit this pull request at http://github.com/ceph/go-ceph, we've moved development over to that repository.

Closing this. This respository has moved to ceph/go-ceph.

authors: kallax noahdesu

repo: noahdesu/go-ceph


text:
Allow option for using system tar

Some of our machines barf all over modes when the node implementation is used.
We've successfully used https://github.com/jbalogh/freight/tree/tar for a bit. Probably safe as an option --with-system-tar or whatever.

@SlexAxton do you know what's happened to @jbalogh's fork? Did this get merged in or did the project move?

^ https://github.com/jbalogh/freight-server/tree/tar

Ah. We moved to npm enterprise, so he probably deleted it. I'll see if I can't trace something back, it's not a huge change.

authors: SlexAxton darcyclarke vladikoff

repo: node-freight/freight


text:
JSON Editor is not available due to  .red-ui-typedInput-container.width =60% !important  On Chrome 88.0.4324.15

What are the steps to reproduce?

add an inject node;
edit node inject properties
add field of type JSON to msg

What happens?

edit button from the right of the value file is not visible

What do you expect to happen?

edit button from the right to be visible and accessible

Please tell us about your environment:

[x] Node-RED version: 1.2. 9
[x] Node.js version: 12.13.0
[x] npm version: 6.12.0
[x] Platform/OS: Windows10
[x] Browser: Chorme 88.0.4324.15

Possible solution

in CSS  .red-ui-typedInput-container remove !important flag

pictures:
Before removing flag;

After  removing flag:

Hi,
the 60% !important style is not coming from the core of Node-RED.
Looking at your screenshot, I can see its coming from a <style> tag - which suggests a node you have installed has incorrectly set this style without scoping it to just their node.
If you click on the <style> link in the red box you've highlighted, you should be able to identify which node it is based on what content is around the style tag.

Yes I found it. 10x

Can you let me know which node it was? Are you going to follow up with them?

:D No, I'm a shame about that :D. It was one of my nodes locally,  some older attempt of main to create a node. And I had this instance not used for quite a long time and after updating the node-red I saw that and to be honest, I also saw that is in a

authors: SergiuToporjinschi knolleary

repo: node-red/node-red