Setting the initial segue (sw_front) dynamically

I've been trying some strategies for setting up the sw_front segue dynamically on start.
Currently I have set the 'menu' controller as both the front and rear, and I'm trying to immediately segue to the correct view controller. The reason being that when entering the reveal navigation the first view controller needs to be determined as it enters the Reveal Navigation.

As you can see along the bottom there is a double custom segue. So on initial load I need to segue to the correct controller and then subsequently the normal navigation. Can you provide any idea how I might do this?

I have a login screen and after that SWRevelViewController. So I want to change the the first screen (sw_front) after login depending upon some conditions. Will you please help?

Hello @vipinfalke  you can do that what you need to make changes in SWRevealViewController.h two methods and add your custom segue identifier in that also.
I have also want to do the same you want to do that is work for me and hope it will definitely work for you as well.
Have a happy coding.
#pragma mark - SWRevealViewControllerSegueSetController segue identifiers
NSString * const SWSegueRearIdentifier = @"sw_rear";
NSString * const SWSegueFrontIdentifier = @"sw_front";
NSString * const SWSegueRightIdentifier = @"sw_right";
NSString * const SWSegueCustomSegue = @"sw_custom";
And then change the following method according to your segue and set the frontviewcontroller

(void)perform
{
SWRevealControllerOperation operation = SWRevealControllerOperationNone;
NSString *identifier = self.identifier;
SWRevealViewController *rvc = self.sourceViewController;
UIViewController *dvc = self.destinationViewController;
if ( [identifier isEqualToString:SWSegueFrontIdentifier] )
operation = SWRevealControllerOperationReplaceFrontController;
else if ( [identifier isEqualToString:SWSegueRearIdentifier] )
operation = SWRevealControllerOperationReplaceRearController;
else if ( [identifier isEqualToString:SWSegueRightIdentifier] )
operation = SWRevealControllerOperationReplaceRightController;
else if ( operation != SWSegueCustomSegue )// your condition
[rvc _performTransitionOperation:operation withViewController:dvc animated:NO];
if ( operation != SWRevealControllerOperationNone )
[rvc _performTransitionOperation:operation withViewController:dvc animated:NO];

}

(void)loadStoryboardControllers
{
if ( self.storyboard && _rearViewController == nil )
{
//Try each segue separately so it doesn't break prematurely if either Rear or Right views are not used.
@try
{
[self performSegueWithIdentifier:SWSegueRearIdentifier sender:nil];
}
@catch(NSException *exception) {}
  @try
  {
      [self performSegueWithIdentifier:SWSegueFrontIdentifier sender:nil];
  }
  @catch(NSException *exception) {}

  @try
  {
      [self performSegueWithIdentifier:SWSegueRightIdentifier sender:nil];
  }
  @catch(NSException *exception) {}

  @try
  {
      [self performSegueWithIdentifier:SWSegueCustomSegue sender:nil];
  }
  @catch(NSException *exception) {}

}
}

Thank you @jogshardik for your response.. But I have already implemented it using some different way..

@vipinfalke Can you please add the way you used to get your use case working. I have the same use case. I would really appreciate.

@jogshardik , I think it is better to subclass SWRevealViewController to do this.
@chawlatarika5  , use setFontViewController:animated:


Font Request: Manrope

Font Name
Manrope
Link to font source
https://github.com/sharanda/manrope
Link to font license
https://github.com/sharanda/manrope/blob/master/OFL.txt

Manrope is part of the Google Fonts family and already exists as a Fontsource package.


Cannot generate swagger.json when JAX-RS annotated endpoints comes from superclass

Cannot generate swagger.json when JAX-RS annotated endpoints comes from superclass.
This issue related to maven plugin (0.16). In case I extend generic abstract class with JAX-RS endpoints and do add any endpoint to actual resource, then I'm receiving empty endpoint in swagger.json.

{
    "swagger": "2.0",
    "info": {
        "version": "0.1",
        "title": "web"
    },
    "host": "",
    "basePath": "/web/api",
    "schemes": [
        "http"
    ],
    "paths": {
        "/news": {
            "get": {
                "consumes": [
                ],
                "produces": [
                ],
                "parameters": [
                ],
                "responses": {
                    "204": {
                        "description": "No Content",
                        "headers": {
                        }
                    }
                }
            }
        },
        "/news/some": {
            "post": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "parameters": [
                ],
                "responses": {
                    "204": {
                        "description": "No Content",
                        "headers": {
                        }
                    }
                }
            }
        }
    },
    "definitions": {
    }
}

When I adding the endpoint to the actual resource implementation, its metadata exposed in swagger.json (like news/some at the above code snippet), but not the metadata of the endpoints from the parent abstract classes.
I will also try to debug the jaxrs-analyzer by myself.
Thanks!

This issue is caused by the ASM library (used to analyze a class) not scanning super classes by design - hence ProjectAnalyzer.analyseClass() only returns that class' method results.
A general fix approach is to add a new method visitSuperclass() to the class, something like:
private void analyzeClass(final String className, ClassResult classResult) {
    try {
        final ClassReader classReader = new ContextClassReader(className);
        final ClassVisitor visitor = new JAXRSClassVisitor(classResult);

        classReader.accept(visitor, ClassReader.EXPAND_FRAMES);
        visitSuperclass(classReader, classResult);
    } catch (IOException e) {
        LogProvider.error("The class " + className + " could not be loaded!");
        LogProvider.debug(e);
    }
}

private void visitSuperclass(ClassReader classReader, ClassResult classResult) {
    try {
        final ClassReader superClassReader = new ContextClassReader(classReader.getSuperName());
        final ClassVisitor visitor = new JAXRSClassVisitor(classResult);

        superClassReader.accept(visitor, ClassReader.EXPAND_FRAMES);
    } catch (IOException e) {
        LogProvider.error("The class " + classReader.getSuperName() + " could not be loaded!");
        LogProvider.debug(e);
    }
}

This could be improved to make analyseClass() generic and call it recursively (to pick up any superclasses with JAX-RS-annotated methods), but the above works as a quick solution attempt for this issue.


Invoke ttfautohint

Invoke ttfautohint as part of the build pipeline, if installed and requested.

@anthrotype is working on Python bindings for ttfautohint library.

This was done in https://github.com/googlei18n/fontmake/pull/104

Thanks James. Sorry I couldn't find the time to work on this as I had promised.

No problem at all! Totally understand being tight on time.


Fix invalid Target Temperature

There are at least two reports that show the adding current temperature to target temperature is not needed nor wanted.  I think that it is because of invalid interpretation of adjustment that you can set when heatpump is using heat curve. Then targetTemp is between -5 and +5 but it doesn't mean it is currentTemp+adjustment. Actually it is f(outsideTemp)+adjustment where f(t) is the heating curve. I think even if I use heat curve (which I do in the winter) I'd like to see the adjustment I set (from -5 to +5) instead of virtual number based on current water temperature.
fixes #9

fixes #9

I think it might not work when using weather compensation and target between -5C and 5C and current temperature like 27C. I see that Google Home displays both on the same scale and that will not work (current water temperature is outside the range). I believe for compensation adjustment we should use another characteristic, not TargetTemperature...
But I don't know which one, and I cannot test it in summer...

Hey @pjuszkiewcz
Thank you a lot for you contribution.
The problem is that some heat pumps are working using non-linear temperature adjustments (like mine), where you can only set temperature between -5 and +5. Basically moving the delta of heating/cooling power.
That's why there is check for this.zoneSensor, to make sure it works for both cases.
Can you tell me what is the this.zoneSensor value in your case?

HomeKit does not allow negative temps in the thermostat device, this this solution with reading current temp was devised.
Looking at another project, I think better way would be to take the minimum temp (so in my case -5) and then adjusting all readings by this. So in my case HomeKit could read (0 - 10) when setting temps and then normal temp reading for current temp.
If you wish to improve the PR on these comments, I am happy to merge!

I would recommend homeassistant then. I have switched recently from Homebridge and it is much better.


Tooltip C stack overflow

23x C stack overflow
[C]:: in function 'HealthBar_OnValueChanged'
[string ":OnValueChanged"]:1: in function <[string ":OnValueChanged"]:1>
[C]:: ?
[C]:: ?
[C]:: ?
[C]:: ?
[C]:: ?
[C]:: ?
[C]:: ?
[C]:: ?
[C]:: ?
[C]:: ?
...
[C]:: ?
[C]:: ?
[C]:: ?
[C]:: ?
[C]:: ?
[C]:: ?
[C]:: ?
[C]:: ?
[C]:: ?
[C]:: ?
Locals:
self = GameTooltipStatusBar {
0 =
Text =  {
}
}
value = 108535

Hi since I got this error too, I tried to fix it and I think this has to be outside of GameTooltip:HookScript('OnTooltipSetUnit', function(self, ...)
if (cfg.healthbar.reactionColoring or cfg.healthbar.customColor.apply) then
GameTooltipStatusBar:HookScript('OnValueChanged', function()
SetHealthBarColor(unit)
end)
end

The problem with moving it outside of the OnTooltipSetUnit hook is that it no longer has access to unit. However it might work add this:
 if (cfg.healthbar.reactionColoring or cfg.healthbar.customColor.apply) then
-    GameTooltipStatusBar:HookScript('OnValueChanged', function()
+    GameTooltipStatusBar:HookScript('OnValueChanged', function(self)
+        local unit = GetRealUnit(self)
         SetHealthBarColor(unit)
     end)
 end

Does this reliably happen or is there an easy way to verify?

Nope that doesnt work, however that does
if (cfg.healthbar.reactionColoring or cfg.healthbar.customColor.apply) then
	GameTooltipStatusBar:HookScript('OnValueChanged', function(self)
		SetHealthBarColor(self.unit)
	end)
end

No error so far for me after 1 hour playing.
This error usually appears in the first 5 minutes of playing and you have to reload to  get rid of it for another 5 minutes.

self.unit is nil (just checked with print(self.unit), which is actually fine for SetHealthBarColor(), but not really want we want. This will however do what we want and return the correct unit:
if (cfg.healthbar.reactionColoring or cfg.healthbar.customColor.apply) then
    GameTooltipStatusBar:HookScript('OnValueChanged', function()
        local unit = GetRealUnit(GameTooltip)
        SetHealthBarColor(unit)
    end)
end

btw: how can I add the "+" and "-" lines in comments?

Just use filetype diff instead of lua for your fenced code block.
```lua
 function foo() {
-    return 'bar'
+    return 'baz'
 }
```

Hopefully https://github.com/renstrom/NeavUI/commit/546d706993b9da97b48f34fbd61888e36ad77a49 should solve it.


On data structures and DIDL Lite for music services

Hi everyone
At this point I have commented quite a few places about what you need, to create a data structure (and the DIDL metadata necessary to be able to play it) for a music service, so I thought it would be better to gather this in one place, so maybe we can clear some things up.
Here is an example from two different music services of both the XML sent to the Sonos unit to add a track to the queue and the information that you receive from the music service server when you ask for the track:
<!-- Wimp -->

<!-- ### Sent to the player when adding a track -->
<!-- BODY -->
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  <s:Body>
    <u:AddURIToQueue xmlns:u="urn:schemas-upnp-org:service:AVTransport:1">
      <InstanceID>0</InstanceID>
      <EnqueuedURI>x-sonos-http:trackid_22757082.mp4?sid=20&flags=32</EnqueuedURI>
      <EnqueuedURIMetaData>DIDL_REPLACEMENT_0</EnqueuedURIMetaData>
      <DesiredFirstTrackNumberEnqueued>0</DesiredFirstTrackNumberEnqueued>
      <EnqueueAsNext>0</EnqueueAsNext>
    </u:AddURIToQueue>
  </s:Body>
</s:Envelope>

<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/">
  <item id="00030020trackid_22757082" parentID="0004002calbumid_22757081" restricted="true">
    <dc:title>Chord Left</dc:title>
    <upnp:class>object.item.audioItem.musicTrack</upnp:class>
    <desc id="cdudn" nameSpace="urn:schemas-rinconnetworks-com:metadata-1-0/">SA_RINCON5127_42????35</desc>
  </item>
</DIDL-Lite>
</Dummy_tag_to_create_valid_xml_on_external_inner_xml>

<!-- ### Received from the music service server -->
<?xml version="1.0" ?>
<ns0:mediaMetadata xmlns:ns0="http://www.sonos.com/Services/1.1">
  <ns0:id>trackid_33177374</ns0:id>
  <ns0:itemType>track</ns0:itemType>
  <ns0:mimeType>audio/aac</ns0:mimeType>
  <ns0:title>Chord Left (Live)</ns0:title>
  <ns0:trackMetadata>
    <ns0:artistId>artistid_3694795</ns0:artistId>
    <ns0:artist>Agnes Obel</ns0:artist>
    <ns0:composerId>artistid_3694795</ns0:composerId>
    <ns0:composer>Agnes Obel</ns0:composer>
    <ns0:albumId>albumid_33177358</ns0:albumId>
    <ns0:album>Aventine (Deluxe Version)</ns0:album>
    <ns0:albumArtistId>artistid_3694795</ns0:albumArtistId>
    <ns0:albumArtist>Agnes Obel</ns0:albumArtist>
    <ns0:duration>151</ns0:duration>
    <ns0:albumArtURI>http://varnish01.music.aspiro.com/sca/imscale?h=90&w=90&img=/content/sg23/vd00/music/prod/ci/12-08-2014/pias/20140802042614138/5414939772573/resources/5414939772573_T18341328660054.jpg</ns0:albumArtURI>
    <ns0:canPlay>true</ns0:canPlay>
    <ns0:canSkip>true</ns0:canSkip>
    <ns0:canAddToFavorites>true</ns0:canAddToFavorites>
  </ns0:trackMetadata>
</ns0:mediaMetadata>

<!-- YouSee -->

<!-- ### Sent to the player when adding a track -->
<!-- BODY -->
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  <s:Body>
    <u:AddURIToQueue xmlns:u="urn:schemas-upnp-org:service:AVTransport:1">
      <InstanceID>0</InstanceID>
      <EnqueuedURI>x-sonos-mms:AnyArtistTrack%3a109048891?sid=50&flags=32</EnqueuedURI>
      <EnqueuedURIMetaData>DIDL_REPLACEMENT_0</EnqueuedURIMetaData>
      <DesiredFirstTrackNumberEnqueued>0</DesiredFirstTrackNumberEnqueued>
      <EnqueueAsNext>0</EnqueueAsNext>
    </u:AddURIToQueue>
  </s:Body>
</s:Envelope>

<!-- DIDL_0 -->
<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/">
  <item id="10030020AnyArtistTrack%3a109048891" parentID="100f006cFavoriteArtistTracksContainer%3a651391" restricted="true">
    <dc:title>Superwoman (Radio Edit)</dc:title>
    <upnp:class>object.item.audioItem.musicTrack</upnp:class>
    <desc id="cdudn"<EMAIL_ADDRESS>  </item>
</DIDL-Lite>

<!-- ### Received from the music service server -->
<ns0:mediaMetadata xmlns:ns0="http://www.sonos.com/Services/1.1">
  <ns0:trackMetadata>
    <ns0:album>Running Hits 1</ns0:album>
    <ns0:albumArtURI>http://artwork.cdn.247e.com/covers/109048960/256x256/stretch</ns0:albumArtURI>
    <ns0:albumArtist>Alicia Keys</ns0:albumArtist>
    <ns0:albumArtistId>AnyArtist:651391</ns0:albumArtistId>
    <ns0:albumId>AnyArtistAlbum:109048960</ns0:albumId>
    <ns0:artist>Alicia Keys</ns0:artist>
    <ns0:artistId>AnyArtist:651391</ns0:artistId>
    <ns0:canPlay>true</ns0:canPlay>
    <ns0:canSkip>true</ns0:canSkip>
    <ns0:duration>248</ns0:duration>
    <ns0:genre>Dance/elektronisk</ns0:genre>
    <ns0:genreId>Genre:Dance/elektronisk</ns0:genreId>
  </ns0:trackMetadata>
  <ns0:id>AnyArtistTrack:109048891</ns0:id>
  <ns0:itemType>track</ns0:itemType>
  <ns0:mimeType>audio/aac</ns0:mimeType>
  <ns0:title>Superwoman (Radio Edit)</ns0:title>
</ns0:mediaMetadata>

From this, there is a few things to notice:

While we still need to send DIDL to the Sonos unit, what we get from the music service server is not. The name space is http://www.sonos.com/Services/1.1, which I guess, if we are unlucky, could mean that this is Sonos own spec and maybe you can only get you hands on it, if you are a music service.
In the DIDL metadata, note that the content of the desc tag is not longer constant, in fact it includes my username for the service (I have added a few ??? to the Wimp one, as the username there is my phone number). Also note, that this information is not contained in the XML we get back. This means (as far as I can tell) that a pure from-XML method will not be possible, which is the reason that the from_xml method on the music service structures takes the music service instance as an argument, so that it can ask the plugin for this information.
The XML from the music service server also (I guess because it is not in fact an DIDL structure) does not contain a DIDL class, only an itemType. This means that the usual way of figuring out which music service structure should be used by looking at the class (and hence collapsing several types with the same class into one) will not work. I can of course see that class with Wireshark, if I add the item to the queue, but since not all elements can be added to the queue, there are some elements that I do not know the DIDL class for (Note, that you can stil browse them, for that you need only to send the ID to the music service server). But of course, one might also argue, that if it is only turned into a DIDL class to add it to the queue, that the question is, if it really makes sense to talk about a DIDL class for items that cannot be enqueued and that of course re-raises the question about whether the music service structure should have their own hierarchy. The only hope with regards to detecting the DIDL class that I can think if, is if it can be inferred somehow, see below.
The XML from the music service does contains an ID, but it is not the complete ID used when sending the item to the Sonos unit - a 8 digit prefix is added. Initially I though this was just an indication of the class, but as you can see, they do not match for these two tracks, which have the same DIDL class. It could also be a kind code to permission e.g. the canPlay, canBrowse fields in the music service XML (or a combination of the two), but so far, I have been unable to detect a pattern. The prefixes I have been able to gather so far are the following:

# Wimp
ID_PREFIX = {
    MSTrack: '00030020',
    MSAlbum: '0004002c',
    MSArtist: '10050024',
    MSAlbumList: '000d006c',
    MSPlaylist: '0006006c',
    MSArtistTracklist: '100f006c',
    MSFavorites: None,  # This one is unknown
    MSCollection: None  # This one is unknown
}
ID_PREFIX = {
    MSTrack: '00030020',
    MSAlbum: '0004006c',
    MSArtist: '10050024',
    MSAlbumList: '000d006c',
    MSPlaylist: '0006006c',
    MSArtistTracklist: '100f006c',
    MSContainer: '1008006c',
    MSTracklist: '000e006c',
}

and so this constitutes the second reason that we need to give the from_xml the plugin instance, it needs to ask the plugin what the prefix is.
Another related problem is, that as far as I remember (I'm really not sure here), we also do not have all the information that we need to re-add the item, when we get information about a music service item back from Sonos unit (like e.g. when asking for the queue #234):
<?xml version="1.0" ?>
<ns0:item id="Q:0/21" parentID="Q:0" restricted="true" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:ns0="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:ns1="urn:schemas-upnp-org:metadata-1-0/upnp/">
  <ns0:res duration="0:04:09" protocolInfo="sonos.com-http:*:audio/mp4:*">x-sonos-http:trackid_32823104.mp4?sid=20&flags=32</ns0:res>
  <ns1:albumArtURI>/getaa?s=1&u=x-sonos-http%3atrackid_32823104.mp4%3fsid%3d20%26flags%3d32</ns1:albumArtURI>
  <dc:title>I Want You</dc:title>
  <ns1:class>object.item.audioItem.musicTrack</ns1:class>
  <dc:creator>Tina Dickow</dc:creator>
  <ns1:album>Whispers</ns1:album>
</ns0:item>

(We are missing the content for the desc field, which includes my music service user name and the ID prefix). This essentially mean that, if it should be possibly to re-add queue items, then it will be necessary to provide the SoCo instance with a complete list of relevant plugin instances (that the queue elements come from), in order for it to be able to qualify them properly.
All right. I very much look forward to peoples insights here as there is still quite a bit of manual work left for creating a new MS plugin and I really hope there is a shortcut somewhere. Of course, if @lawrenceakka manages to find the Sonos music service plugin spec (I could not), then just ignore everything I just wrote ;)
Regards (from shoulder-burping and diaper-changing land)
Kenneth
EDITED: 2014-10-21 Clarify a few things.

This discussion is no longer relevant. Closing it.


OrgAuth: Account Controller should return void

From @rustd on June 12, 2015 22:17
Since https://github.com/aspnet/Mvc/issues/2409 is fixed. We should change the AccountController for SSO/ MultiOrg to return void
Copied from original issue: aspnet/Templates#104

This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a temporary error. The following address(es) deferred:
<EMAIL_ADDRESS>Domain tonydrake.com has exceeded the max emails per hour (101/100 (101%)) allowed.  Message will be reattempted later
------- This is a copy of the message, including all the headers. ------
Received: from github-smtp2-ext1.iad.github.net ([<IP_ADDRESS>]:41427 helo=github-smtp2a-ext-cp1-prd.iad.github.net)
by web240.dnchosting.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
(Exim 4.89)
(envelope-from<EMAIL_ADDRESS>id 1e77C1-003ZYw-B7
for<EMAIL_ADDRESS>Tue, 24 Oct 2017 16:57:02 -0500
Date: Tue, 24 Oct 2017 14:56:19 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com;
s=pf2014; t=1508882179;
bh=7aIpzyzUWCsuZsbYPkvEH1gLbzMIc1dZPERxM6Cfl7g=;
h=From:Reply-To:To:Cc:Subject:List-ID:List-Archive:List-Post:
List-Unsubscribe:From;
b=OF7mB2ZqQ3zlwPKfWpamfR3Oi/QHkkm/vJy9aNHiNw1SPh6X5iAP2Dr5ZVaV+YgtW
retmeyM8ttD/6lYmeaug9psaNZ7aczIuMVxUGVQ5GubtK3xubgdkQpb4Rra5fo97Mn
tH1DvmjuF3ftRisoTQqFw1G1maPRlNI7qEJcCAF8=
From: Eilon Lipton<EMAIL_ADDRESS>Reply-To: aspnet/templating<EMAIL_ADDRESS>To: aspnet/templating<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Message-ID<EMAIL_ADDRESS>Subject: [aspnet/templating] OrgAuth: Account Controller should return void
(#126)
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_59efb703aa80b_5b1c3fb9c8624f283186a0";
charset=UTF-8
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: Eilon
X-GitHub-Recipient: tonydrake
X-GitHub-Reason: subscribed
List-ID: aspnet/templating <templating.aspnet.github.com>
List-Archive: https://github.com/aspnet/templating
List-Post<EMAIL_ADDRESS>List-Unsubscribe<EMAIL_ADDRESS>https://github.com/notifications/unsubscribe/ABtKPvdxdEdCQpAB66-9bR-bwUCMpEDdks5svl0DgaJpZM4QFJix
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address<EMAIL_ADDRESS>X-Spam-Status: No, score=2.8
X-Spam-Score: 28
X-Spam-Bar: ++
X-Ham-Report: Spam detection software, running on the system "spamd2.dnchosting.com", has
identified this incoming email as possible spam.  The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email.  If you have any questions, see
the administrator of that system for details.
Content preview:  From @rustd on June 12, 2015 22:17 Since https://github.com/aspnet/Mvc/issues/2409
is fixed. We should change the AccountController for SSO/ MultiOrg to return
void Copied from original issue: aspnet/Templates#104 [...]
Content analysis details:   (2.8 points, 10.0 required)
pts rule name              description

2.8 HTML_IMAGE_ONLY_28     BODY: HTML: images with 2400-2800 bytes of words
0.0 HTML_MESSAGE           BODY: HTML included in message
0.0 T_DKIM_INVALID         DKIM-Signature header exists but is not valid
X-Spam-Flag: NO
----==_mimepart_59efb703aa80b_5b1c3fb9c8624f283186a0
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
From @rustd on June 12, 2015 22:17
Since https://github.com/aspnet/Mvc/issues/2409 is fixed. We should change the AccountController for SSO/ MultiOrg to return void
Copied from original issue: aspnet/Templates#104
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/aspnet/templating/issues/126
----==_mimepart_59efb703aa80b_5b1c3fb9c8624f283186a0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
From @rustd on June 12, 2015 22:17
Since aspnet/Mvc#2409 is fixed. We should change the AccountController for SSO/ MultiOrg to return void
Copied from original issue: aspnet/Templates#104
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.

----==_mimepart_59efb703aa80b_5b1c3fb9c8624f283186a0--

@javiercn - thoughts on this?

Our account controller returns action results to signal the middleware what to do. Using action results makes it easier to unit test and its the recommended pattern. Updating from an MVC5 app will already require you to significantly change the auth code, so I don't think we should neither do this nor that there is value here.
I'm closing it.


fix/issue-136: Properly wrap Prince pdf command in quotes for Windows users

For Windows users using PowerShell, which is now the default shell application on Windows, the Prince command needs to have the part of its path that includes spaces wrapped in double quotes. The following is the format that works (in PowerShell as well as in the older Command Prompt application), and is what's being done in this PR:
✅
$ C:\"Program Files (x86)"\Prince\engine\bin\prince.exe --version

FYI, these variations, wrapping the whole path in double quotes or wrapping the one part of the path in single quotes, have been tested and do not work:
🚫
$ "C:\Program Files (x86)\Prince\engine\bin\prince.exe" --version

$ C:\'Program Files (x86)'\Prince\engine\bin\prince.exe --version

This PR fixes issue #136, which was brought to our attention by Quire user @sophielamb. Thanks Sophie!

Thanks @hbalenda, merging in


Fix es settings that ended up in Splunk

It seems that the following addition of splunk https://github.com/helm/charts/pull/7064/files broke the es settings. This moves them to the correct place.
What this PR does / why we need it:
Fix the es settings that got moved into splunk
Which issue this PR fixes
https://github.com/helm/charts/issues/7675
https://github.com/helm/charts/issues/7632
Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[X] DCO signed
[X] Chart Version bumped
[ X] Variables are documented in the README.md

@wideklev Is this PR still required after the merge into master of #8166?


Update kernel preloads  to use JS modules

VS Code would like to switch kernel preload scripts to use JS modules instead of being global scripts: https://github.com/microsoft/vscode/pull/132088
This better aligns kernel preloads with renderer script and lets us define a much cleaner and clearer API for extension authors.
The kernel preload api is still proposed but Jupyter is using it to load several scripts. We'd like to get Jupyter migrated over so that we can remove our support for global scripts and also test out this updated proposal
If you need to preload a global script that was not written with module support in mind (such as requirejs), try either:

Have the preload module inject a script tag for the global script into the notebook webview
Manually export any globals you need onto the window object

We believe we need this done before we can implement this.
https://github.com/microsoft/vscode/issues/132557

You should be able to migrate over today using one of the approaches I suggested. Let me know if they don't work though
microsoft/vscode#132557 is related but is about a bug that also exists today with the old, non-module based controller preloads

This has been completed


Echo RecSys

All extra files and folders created by Echo team are placed in services/backend/src/echo_space folder.
Our controller is put within  services/backend/src/recommendation_system/recommendation_flow/controllers/ExampleController.py in the class ExampleController.
There are multiple files and notebooks under echo_space that will not be called during live testing. They were used to create features and output beforehand to be used for the live testing.

Done! Sorry for the delay!

now 231 files changed? something weird happened

hmmm wait let me check

Fixed!

so I've revert the change on examplecontroller and generator. I'm not quite sure what you meant by the sql files?


[question] What library to use for conditional imports on web now?

dart.library.js_interop and dart.library.js_interop_unsafe don't seem correct as they don't suggest that the code is running on the web.
Sure I can still rely on dart.library.html for now, but what if I want my code to continue working in a world where that no longer exists? Can some arbitrary target be introduced for web compilation?

dart.library.js_interop is the right thing.
You should do feature detection to detect web vs node for instance.

Hmm, then I think we'd need some other constant to go along with --server-mode (or a successor) to enable tree shaking. An implementation of something for the web vs node (or similar) could be completely different.

Closing this as the question was answered. Will pursue the target-platform based tree shaking in discussions surrounding the new form of the platform package.
Thanks Kevin! :D


Instructions for re-creating Air 2C stream services need to be written

Stream services won't be automatically created during the Ops server publishing so a pdf document needs to be written with instructions on how to create the stream services necessary for the AirC2 demo.
This pdf should be placed in the OPSServerReleases\2016_Q4\DemoAndScripts\DemoAndScripts
Note that the geoevent stream service "entries" will exist in the Ops Server geoevent configuration, but the underlying stream service won't exist in ArcGIS Server so you will also need to instruct the user on how to delete the existing stream service references in Geoevent manager.

Assigning back to @elinz to decide if this is enough.
http://solutions.arcgis.com/defense/templates/air-c2-cop/get-started/setup-simulator/

@joebayles @adgiles That page doesn't show you how to create stream services. I did find stream service creation mentioned here http://solutions.arcgis.com/defense/templates/air-c2-cop/get-started/setup-outputs/
For Ops Server release was there suppose to be any simulators? I don't find any of the .csv's mentioned in your referenced topic http://solutions.arcgis.com/defense/templates/air-c2-cop/get-started/setup-simulator/ on the Ops Server.
FYI.  Not all gee service names mentioned in these doc pages match the names on Ops Server.
The doc needs to be written in context to the Ops Server. i.e. I've set up an Ops Server based on this release and now what are the things I need to do to get AirC2 works on the Ops Server.

@joebayles @adgiles I did find the .csv's. thanks.

@joebayles @adgiles The instruction doc can be placed in the 2016_Q4\DemoAndScripts\Military\AirC2 folder I created. I will send the full path in an email.

@joebayles @adgiles This doc is being written by @pHill5136

Merged all the additional setup instructions into a single .pdf file and copied to the DemoAndScripts\Military\AirC2 folder in the final release. Closing issue.


API POST request

I cannot for the love of god figure out how to do a post request to a rails api from react.
Know how? I made a little form on the Form.js component. check it out if you ever got time! @capturethemoon

I’m not terribly familiar with React on Rails, but I can research this issue and look into it this week!

On Nov 4, 2018, at 2:36 AM, John Cordero<EMAIL_ADDRESS>wrote:
I cannot for the love of god figure out how to do a post request to a rails api from react.
Know how? I made a little form on the Form.js component. check it out if you ever got time! @capturethemoon
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

awesome man. I tried so many times with online tutorials but i keep getting a strong parameter warning.
NoMethodError (undefined method `song_url' for #<Api::V1::SongsController:0x000000043fe310>
Did you mean?  song_params):

app/controllers/api/v1/songs_controller.rb:21:in `create'
Started POST "/api/v1/songs" for <IP_ADDRESS> at 2018-11-04 05:55:55 +0000
Processing by Api::V1::SongsController#create as */*
  Parameters: {"song_params"=>{"name"=>"fdsafas2", "length"=>"2", "album_id"=>"2"}}
Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)

ActionController::ParameterMissing (param is missing or the value is empty: song):

will reopen later. closing!


NullReferenceException in Commit

Hi,
I am testing a scenario where I want to push a notification to another document when a new comment has been created.
https://github.com/SebastianStehle/ydotnet/blob/main/Demo/Callback.cs#L50
But I get a NullReferenceException in the commit method and the following error:
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: BorrowMutError', yffi\src\lib.rs:466:10
stack backtrace:
   0: rust_begin_unwind
             at /rustc/d5c2e9c342b358556da91d61ed4133f6f50fc0c3/library\std\src/panicking.rs:593:5
   1: core::panicking::panic_fmt
             at /rustc/d5c2e9c342b358556da91d61ed4133f6f50fc0c3/library\core\src/panicking.rs:67:14
   2: core::result::unwrap_failed
             at /rustc/d5c2e9c342b358556da91d61ed4133f6f50fc0c3/library\core\src/result.rs:1651:5
   3: core::result::Result<T,E>::unwrap
             at /rustc/d5c2e9c342b358556da91d61ed4133f6f50fc0c3\library\core\src/result.rs:1076:23
   4: ydoc_observe_updates_v1
             at D:\_other\y-crdt\yffi\src\lib.rs:460:20

Have you seen this before? I have no idea about rust and cannot narrow it down yet.

Sorry, it was my failure.


SW-5584 Removed document based endpoints for images and values

#2125  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @tommylau523 and the rest of your teammates on  Graphite

Merge activity

Jul 1, 4:56 PM EDT: @tommylau523 started a stack merge that includes this pull request via Graphite.


Add HomePod Mini to Music Assistant

What version of Music Assistant has the issue?
2022.8.1
The problem
Please can integration be added for HomeKit integration and Music assistant so we can cast to our home pods?
media_player.bedroom Is what my HomePod mini is listed as but cannot see it under music devices in Music Assistant.
How to reproduce
Search for HomePod Mini = does not show up
Relevant log output
No response
Additional information
No response
What version of Home Assistant Core are your running
2022.8.1
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Raspberry Pi

This a feature request so moving to discussions...


attempting to fix build pipeline

The last invoke release of the library did not kick off any pipelines in Travis CI and after re-upping our account I discovered the pipeline had some errors in the build. This PR fixes those errors.

I believe Loretta is looking into which teams should be owning these libraries. Once we figure that out I can work with them to write up some tickets for this.


Is Microsoft.AspNetCore.Diagnostics.HealthChecks still referenced by ASP.NET Core apps?

I am not sure that information in Prerequisites section is correct. I am refering to this bit:

The Microsoft.AspNetCore.Diagnostics.HealthChecks package is referenced implicitly for ASP.NET Core apps. To perform health checks using Entity Framework Core, add a package reference to the

Microsoft.AspNetCore.Diagnostics.HealthChecks package looks stuck on .net 2.2

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

ID: c0cbb094-29e9-740a-9fd6-db372641d753
Version Independent ID: 52d8efc9-a336-71d9-6d90-98173cbf6bf4
Content: Health checks in ASP.NET Core
Content Source: aspnetcore/host-and-deploy/health-checks.md
Product: aspnet-core
Technology: aspnetcore-hostdeploy
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

@IvanAlekseev ... The statement is still true. Framework assemblies aren't referenced as individual packages any longer. You won't see them in nuget.org with the latest package version any longer. If you look in the Microsoft.AspNetCore.App framework package in a 5.0 app's framework assemblies in VS, you'll see it in there at 5.0. Here's an example for a 5.0 test app that I use to test Razor Pages apps ...


Reporting via FDSC does not work

Reporting a spam or rude/abusive post via FDSC does not work.
I accidentally closed the tab when analyzing the requests, but this request failed:
curl 'https://metasmoke.erwaysoftware.com/api/w/post/report' -H 'Host: metasmoke.erwaysoftware.com' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:53.0) Gecko/20100101 Firefox/53.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://ai.stackexchange.com/questions/74/what-is-the-difference-between-strong-ai-and-weak-ai/3447' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Origin: https://ai.stackexchange.com' -H 'Connection: keep-alive' --data 'post_link=&key=070f26ebb71c5e6cfca7893fe1139460cf23f30d686566f5707a4acfd50c&token=8261acd787360f76daf073662020428c50aa7384aec04d66722e36a0fbe01be8'

Metasmoke is complaining about the post_link being empty:

NameError in ApiController#report_post
undefined local variable or method `post_link' for #ApiController:0x007fc845a3e570 Did you mean? posts_url

  def report_post
    # We don't create any posts here, just send them on to Smokey to do all the processing
    ActionCable.server.broadcast 'smokedetector_messages', report: { user: @user.username, post_link: params[post_link] }

    render plain: 'OK', status: 201
  end

Rails.root: /var/railsapps/metasmoke/releases/20170606234804

ugh, another rubocop fix. I’m kicking myself for using regexes now.


Re-enable touchpoints and update form

FRONTEND PULL REQUEST
Related Issue
Resolves #4309
Changes Proposed

Change the content of the form to make it clearer it is not for support help

Additional Information

Added a wiki page on how to update touchpoints
Thank you to @fzhao99 for all his help with this 😸

Testing

Go to dev4 and ensure you see the updated touchpoints form in-app and can submit feedback

Screenshots / Demos
Form

Feedback submitted

LGTM! Pretty sure I know the answer to this, but is there the ability to adjust spacing? I'd just want to move the "Provide feedback  on SimpleReport" header down more to be closer to the question below. The header as it is right now is a bit too high up, creating clutter and distracting from the important message above about reaching out to support fo rhelp

LGTM! Pretty sure I know the answer to this, but is there the ability to adjust spacing? I'd just want to move the "Provide feedback on SimpleReport" header down more to be closer to the question below. The header as it is right now is a bit too high up, creating clutter and distracting from the important message above about reaching out to support fo rhelp

Hi Kenny! I was playing around with the form a bit. I think I can do that. How much spacing did you want for the top? I can also make the "Please provide feedback on SimpleReport" an <h3> to make it more visually distinct as well as add some spacing to the top of it. :)


Generate links to spec sections

One last fix for the compliance report.
Just realized that the target argument to duvet extract is also used as the reference/link in the comments that are generated from the compliance report, which should be used as is so that the comment will be treated as an effective citation. I guess for ergonomics, we should probably pass the spec link to duvet extract, instead of the local path of the spec txt. Am I missing anything? @camshaft
But then the action will need to fetch the spec page on every run. We could commit the extracted specs instead, if you prefer otherwise. @seanmonstar

Right now, links in the generated report are still somewhat broken. Submitted some fix for the problems, waiting for an additional approval. Also, we might want this feature called implication type from the newer version of duvet to generate a more accurate report.
So more work needs to be done to kinda finalize the report stuff. Just let me know when you decide to proceed with migrating to the newer version duvet. @seanmonstar

Whenever you want to migrate, it looks like it's a good call for the project! 🙏


Invoke tippecanoe correctly

Currently using tippecanoe -o output.mbtiles -aC -r1 -z10, (--cluster-densest-as-needed --drop-rate=1 --maximum-zoom=10), which says to generate up to z10 and cluster if the tiles are too big, but doesn't actually say to include all the features at our max zoom level. Either the zoom level should increase until there are no clusters, or the chosen zoom level should include all the features without clustering.
This seems to be sporadically clustering or not as the weekly data oscillates, but it's definitely happening.

Some numbers from the gigantic Manhattan tiles:
Tile 11/603/769 (full detail) has 6526 features and is 274 kB compressed.
Tile 10/301/384 (clustered) has 10420 features and is 489 kB compressed.


fix(.circleci): fix get falco version for image build

What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
/area build
What this PR does / why we need it:
Avoids to use redirection to get the FALCO_VERSION env var.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

NONE

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign leodido
You can assign the PR to them by writing /assign @leodido in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: d78b038e2d7371e5c1f4a34eadfe109115147783

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: fntlnz
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [fntlnz]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: fntlnz, Kaizhe
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [fntlnz]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/milestone 0.21.0


Document the default per-workload dropout value

Add technical documentation for default behavior in both rulesets.

The default dropout values are in the workloads/<workload_name>//models.py files. I believe only cifar10, resnet and conformer have dropout values defined there but we should double check.


Accordion: "aria-hidden" is redundant. Use only hiddden attribute

See: http://html5doctor.com/on-html-belts-and-aria-braces/

See also: https://www.w3.org/TR/html-aria/#sec-strong-native-semantics


TimePicker does not work properly at all

Any mouse click becomes a missclick. Whereever I try to click.
I recorded it and stored onto youtube

Thanks for reporting this. I'm not able to replicate the issue. I tested this with several combinations but still no luck.
Can you replicate this issue with the following code: http://gijgo.com/Temp/8f3a5995-990a-4306-bcf6-b1b64c5d46f5.html?
Do you have any javascript errors in the console?
Do you have any customizations of our code for the timepicker?

We fixed that in the new development version that is going to be released as 1.9.4 later today.


Create wireframes / figma sketches

Main page/profile
login
sign up
setup
Create meal page
Meal page
Meal and macro log


io: fix gcc5 build

builder for ‘/nix/store/7d87nbh6ac3lpc80mama6v5i0k5fr891-io-2013.12.04.drv’ failed with exit code 2
error: build of ‘/nix/store/7d87nbh6ac3lpc80mama6v5i0k5fr891-io-2013.12.04.drv’ failed
The invocation of "nix-build -A io /home/travis/.nox/nixpkgs" failed
=== The build failed due to running out of memory:
[  444.589545] Out of memory: Kill process 8813 (io_static) score 932 or sacrifice child
[  444.597522] Killed process 8813 (io_static) total-vm:15172616kB, anon-rss:7116312kB, file-rss:864kB
=== Please disregard the result of this Travis build.

At least the build progressed beyond the point of the hydra failure ...


[CSM-460] Expose Daedalus backend IP:PORT via walletAddress flag

Required by Bittrex.
Issue here: https://issues.serokell.io/issue/CSM-460

@flyingleafe

I was concerned that maybe --wallet-port non-default argument is used in some script already, which could make it a breaking change, but I searched through 3 repositories (cardano-sl, daedalus, iohk-ops) and didn't find any uses. So that should be alright.

yes, luckily we were using only default options for walletPort in our use cases - so there was no need for anything custom


registerNativeSymbol warning

On Windows:
R CMD build nimble  # to build tar.gz
R CMD INSTALL --build --merge-multiarch nimble_0.6.tar.gz # to build zip file
The 2nd command issues the following warnings and many more like them:
Warning: failed to assign RegisteredNativeSymbol for getAvailableNames to getAvailableNames since getAvailableNames is already defined in the 'nimble' namespace
Warning: failed to assign RegisteredNativeSymbol for getMVElement to getMVElement since getMVElement is already defined in the 'nimble' namespace
These warnings also manifest when the package is loaded:

library(nimble)

Attaching package: ‘nimble’
The following object is masked from ‘package:stats’:
simulate

There were 27 warnings (use warnings() to see them)

warnings()
Warning messages:
1: failed to assign RegisteredNativeSymbol for getAvailableNames to getAvailableNames since getAvailableNames is already defined in the ‘nimble’ namespace
2: failed to assign RegisteredNativeSymbol for getMVElement to getMVElement since getMVElement is already defined in the ‘nimble’ namespace
3: failed to assign RegisteredNativeSymbol for setMVElement to setMVElement since setMVElement is already defined in the ‘nimble’ namespace
4: failed to assign RegisteredNativeSymbol for resizeManyModelVarAccessor to resizeManyModelVarAccessor since resizeManyModelVarAccessor is already defined in the ‘nimble’ namespace
5: failed to assign RegisteredNativeSymbol for resizeManyModelValuesAccessor to resizeManyModelValuesAccessor since resizeManyModelValuesAccessor is already defined in the ‘nimble’ namespace
6: failed to assign RegisteredNativeSymbol for getModelObjectPtr to getModelObjectPtr since getModelObjectPtr is already defined in the ‘nimble’ namespace
7: failed to assign RegisteredNativeSymbol for getNRow to getNRow since getNRow is already defined in the ‘nimble’ namespace
8: failed to assign RegisteredNativeSymbol for addBlankModelValueRows to addBlankModelValueRows since addBlankModelValueRows is already defined in the ‘nimble’ namespace
9: failed to assign RegisteredNativeSymbol for copyModelValuesElements to copyModelValuesElements since copyModelValuesElements is already defined in the ‘nimble’ namespace
10: failed to assign RegisteredNativeSymbol for C_dwish_chol to C_dwish_chol since C_dwish_chol is already defined in the ‘nimble’ namespace
11: failed to assign RegisteredNativeSymbol for C_rwish_chol to C_rwish_chol since C_rwish_chol is already defined in the ‘nimble’ namespace
12: failed to assign RegisteredNativeSymbol for C_ddirch to C_ddirch since C_ddirch is already defined in the ‘nimble’ namespace
13: failed to assign RegisteredNativeSymbol for C_rdirch to C_rdirch since C_rdirch is already defined in the ‘nimble’ namespace
14: failed to assign RegisteredNativeSymbol for C_dmulti to C_dmulti since C_dmulti is already defined in the ‘nimble’ namespace
15: failed to assign RegisteredNativeSymbol for C_rmulti to C_rmulti since C_rmulti is already defined in the ‘nimble’ namespace
16: failed to assign RegisteredNativeSymbol for C_dcat to C_dcat since C_dcat is already defined in the ‘nimble’ namespace
17: failed to assign RegisteredNativeSymbol for C_rcat to C_rcat since C_rcat is already defined in the ‘nimble’ namespace
18: failed to assign RegisteredNativeSymbol for C_dt_nonstandard to C_dt_nonstandard since C_dt_nonstandard is already defined in the ‘nimble’ namespace
19: failed to assign RegisteredNativeSymbol for C_rt_nonstandard to C_rt_nonstandard since C_rt_nonstandard is already defined in the ‘nimble’ namespace
20: failed to assign RegisteredNativeSymbol for C_dmnorm_chol to C_dmnorm_chol since C_dmnorm_chol is already defined in the ‘nimble’ namespace
21: failed to assign RegisteredNativeSymbol for C_rmnorm_chol to C_rmnorm_chol since C_rmnorm_chol is already defined in the ‘nimble’ namespace
22: failed to assign RegisteredNativeSymbol for C_dinterval to C_dinterval since C_dinterval is already defined in the ‘nimble’ namespace
23: failed to assign RegisteredNativeSymbol for C_rinterval to C_rinterval since C_rinterval is already defined in the ‘nimble’ namespace
24: failed to assign RegisteredNativeSymbol for makeNumericList to makeNumericList since makeNumericList is already defined in the ‘nimble’ namespace
25: failed to assign RegisteredNativeSymbol for R_setPtrVectorOfPtrs to R_setPtrVectorOfPtrs since R_setPtrVectorOfPtrs is already defined in the ‘nimble’ namespace
26: failed to assign RegisteredNativeSymbol for R_setOnePtrVectorOfPtrs to R_setOnePtrVectorOfPtrs since R_setOnePtrVectorOfPtrs is already defined in the ‘nimble’ namespace
27: failed to assign RegisteredNativeSymbol for R_setDoublePtrFromSinglePtr to R_setDoublePtrFromSinglePtr since R_setDoublePtrFromSinglePtr is already defined in the ‘nimble’ namespace

======================================

I have this fixed on branch installation-issues.  I'll close this issue since we have a lot around installation topics now.
The problem was that configure.win needed to write .NimbleUseRegistration = TRUE into config.R.  In registration.R this avoids creating new values for the R variables that hold symbols from R_init_nimble in src/nimble.cpp.  I think whatever early need we had for this dual system is gone and doubt we ever need .NimbleUseRegistration=FALSE, but let's defer removing it for the immediate moment.  Also the symbols are often not fully used in .Call()s where they could be.


textLength should not be kebap-cased

textLenght is a valid attribute on svg:tspan and svg:text: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/textLength
Unfortunately, textLength gets kebap-cased to text-length because it matches the CAMEL_PROPS regex.
Comparing with the SVG attribute reference, the following attributes are likely affected:

clipPathUnits
glyphRef
markerHeight, markerUnit, markerWidth
textLength
xChannelSelector

Can confirm, clipPathUnits gets rendered as clip-pathunits.

Hmm - it looks like the regex that is handling clipPathUnits is missing /g, so it only replaces the first uppercase character:
https://github.com/developit/preact-compat/blob/6029c6e25f6d1c6461d5cc24a9c8bdc781f6ab87/src/index.js#L123

@ikoruk this bit me today. With the g flag it gets converted to kebab which isn't the solution as far as I can tell with.  Is there a way to denylist certain attributes, or svg attributes as a whole?  I'm not super familiar with the internals.

There is an unnerved PR here https://github.com/developit/preact-compat/pull/491


vcpkg provides arm64-windows in my list of triplets but then doesn't actually build arm64-windows.

When I check the triplets that are available on my machine, I see this:
PS E:\Dev\git\client-native-host\external\vcpkg> .\vcpkg.exe help triplets
Available architecture triplets
VCPKG built-in triplets:
  arm-uwp
  arm64-windows
  x64-linux
  x64-osx
  x64-uwp
  x64-windows-static
  x64-windows
  x86-windows

But when I try to install something using arm64-windows, I see this:
E:\Dev\git\client-native-host\external\vcpkg> .\vcpkg.exe install zlib:arm64-windows
Computing installation plan...
The following packages will be built and installed:
    zlib[core]:arm64-windows
Detecting compiler hash for triplet arm64-windows...
Unsupported toolchain combination. Target was: arm64 but supported ones were:
x86,amd64,x86_amd64,amd64_x86

I'm currently on commit ec6fe06e8
I'm building on 64-bit Windows 10 Pro 20H2 19042.804 with an Intel Core i7-6700 CPU.

It turns out the problem was that I didn't have Visual Studio ARM compiler features installed.  I was confused because the error seemed to indicate that it was a vcpkg config problem, not a missing Visual Studio feature problem.  Either way, I'm unblocked now.  It would be good if vcpkg could provide a more helpful error message in this case, even asking the question "Are the correct compilers for this archtecture installed?" or something.

@DSMitten, I tried latest source, it has more useful message now.
PS F:\vcpkg\clean> ./vcpkg install zlib:arm64-windows
Computing installation plan...
The following packages will be built and installed:
    zlib[core]:arm64-windows -> 1.2.11#9
Detecting compiler hash for triplet arm64-windows...
Error: Unsupported toolchain combination.
Target was arm64 but the chosen Visual Studio instance supports:
    x86, amd64, x86_amd64, amd64_x86
Vcpkg selected C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise as the Visual Studio instance.
Detected instances:
    C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise

See https://github.com/microsoft/vcpkg/blob/master/docs/users/triplets.md#VCPKG_VISUAL_STUDIO_PATH for more information.
Note: Updating vcpkg by rerunning bootstrap-vcpkg may resolve this failure.

That's a much more helpful message. Thanks for following up!


WIP: [DUOS-347][risk=low] Filter DARs by DAC

WIP
Not ready for review yet.
Addresses
See https://broadinstitute.atlassian.net/browse/DUOS-347
Requires (in order):

https://github.com/DataBiosphere/consent/pull/370
https://github.com/DataBiosphere/consent/pull/372
https://github.com/DataBiosphere/consent/pull/373
https://github.com/DataBiosphere/consent/pull/374
https://github.com/DataBiosphere/consent/pull/375

Changes

Extract new service class for Data Access Requests
Code cleanup.

Coverage decreased (-2.9%) to 56.709% when pulling e4a669c08094040e5e296fae5af7b96255e6bc01 on DUOS-347-dar-manage into 37eed6d820f38e190a26830cd5735ce398518d3b on DUOS-347-dar-pending-cases.

Will re-open as a new PR


Examples code updated with changes as requested (default values removed, use of variables restricted to only least, local values used wherever applicable, provider with lowest and one latest version defined, test/plan/apply verified)

Description

Release required?

[ ] No release
[ ] Patch release (x.x.X)
[ ] Minor release (x.X.x)
[ ] Major release (X.x.x)

Release notes content

Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
/run pipeline

Checklist for reviewers

[ ] If relevant, a test for the change is included or updated with this PR.
[ ] If relevant, documentation for the change is included or updated with this PR.

For mergers

Use a conventional commit message to set the release level. Follow the guidelines.
Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
Use the Squash and merge option.

@ocofaigh , i have closed that pull request 521 and created this new one with same changes and also had checked running the tests locally, screenshot is attached here below. Thank you for your help. I will be now working on other modules.

/run pipeline

ation = "us" # Supp

@ocofaigh yes i did it. can you please check now, or let me know how i can run the pipeline locally.

Since you made cross_region_location a required variable in the advanced example, you will now need to explictially pass a value for it in the tests that runs it (TestRunAdvancedExample and TestRunUpgradeExample).
The problem is both of those tests are using the shared setupOptions function to set variables, so if you were to pass the variable in that function, it would break other tests.
I think the easiest thing to do here is to actually remove to variable cross_region_location from the example, and just hard code it here to:
cross_region_location = "us" # Supported values are 'us', 'eu', and 'ap'

@ocofaigh done. hard coded the value for cross region replication.

/run pipeline

@marifse You must not have your local dev set up correct as pre-commit hooks are failing in pipeline with:
Terraform validate with tflint..........................................................Failed
- hook id: terraform_tflint
- exit code: 2

Command 'tflint --init' successfully done:

TFLint in examples/advanced/:
1 issue(s) found:

Warning: [Fixable] variable "cross_region_location" is declared but not used (terraform_unused_declarations)

  on variables.tf line 35:
  35: variable "cross_region_location" {

Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.5.0/docs/rules/terraform_unused_declarations.md

sorry my bad i did not run the test after removing the value, have run the test and removed the variable. Can you please check. And also help me how can i run the pipeline locally instead of running it on pull request by commenting /run pipeline.
Thanks, appreciated your help

@marifse tests can be run following the steps at https://terraform-ibm-modules.github.io/documentation/#/tests?id=running-the-tests
PR looks good now, can you please resolve conflicts?

@marifse tests can be run following the steps at https://terraform-ibm-modules.github.io/documentation/#/tests?id=running-the-tests
PR looks good now, can you please resolve conflicts?

@ocofaigh can you pease check now.

@marifse tests can be run following the steps at https://terraform-ibm-modules.github.io/documentation/#/tests?id=running-the-tests
PR looks good now, can you please resolve conflicts?

@ocofaigh can you pease check now.

/run pipeline

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

GitHub release
v7.3.1

Your semantic-release bot :package::rocket:


Parse issue when using composite key with a AWSDateTime format

Note: If your question is regarding the AWS Amplify Console service, please log it in the
official AWS Amplify Console forum

** Which Category is your question related to? **
Graphql query
** What AWS Services are you utilizing? **
AppSync with Amplify CLI
** Provide additional details e.g. code snippets **
With the request below, the amplify api return this error :
"Variable 'updatedAt' has an invalid value. Unable to parse 2019 as a valid DateTime Object."
But it seems to me that i proceed in the same way as in the graphql transform's documentation.
In the exemple given, the createdDate is also an AWSDateTime and the query is
statusCreatedAt: { beginsWith: { status: IN_TRANSIT, createdAt: "2019" }})
let res = await API.graphql(graphqlOperation(quesries.getFilesByOwnerIdOByTypeUpdatedAtDesc,
              {
              ownerId: ownerId,
              typeUpdatedAt: {beginsWith: {type:'FAC', updatedAt:"2019" }},
              limit: 10,
              nextToken: nextToken
            }
            ));

Transform Schema :
type File
	@model
	@key(name: "ByOwnerIdOByUpdatedAtAsc", fields: ["ownerId", "updatedAt"], queryField: "getFilesByOwnerIdOByUpdatedAtAsc")
	@key(name: "ByOwnerIdOByTypeUpdatedAtDesc", fields: ["ownerId", "type", "updatedAt"], queryField: "getFilesByOwnerIdOByTypeUpdatedAtDesc")
  	@auth(
    	rules: [
      		{allow: owner, ownerField: "ownerId", identityField: "sub"},
    	])
	{
	id: ID!
	ownerId: String
	createdAt: AWSDateTime
	updatedAt: AWSDateTime
	S3Object: S3Object
	name: String!
	size: Int
    visibility: Visibility
	type: String
}

@mlafo thanks for reporting this issue, I was able to reproduce this problem. The problem is that ModelFileByOwnerIdOByTypeUpdatedAtDescCompositeKeyInput is generated looks like this:
input ModelFileByOwnerIdOByTypeUpdatedAtDescCompositeKeyInput {
  updatedAt: AWSDateTime
  type: String
}

To support the lexicographical comparison for the date part of the value updateAt should be a String.

Tanks @attilah
I guess we have to modify the generated schema while waiting for the problem to be fixed ?

@mlafo digging deeper into the root cause I found out that if you move the definition of type above createdAt, updatedAt, we'll actually map that to string correctly, so it is a short term fix for your case.
type File
    @model
    @key(name: "ByOwnerIdOByUpdatedAtAsc", fields: ["ownerId", "updatedAt"], queryField: "getFilesByOwnerIdOByUpdatedAtAsc")
    @key(name: "ByOwnerIdOByTypeUpdatedAtDesc", fields: ["ownerId", "type", "updatedAt"], queryField: "getFilesByOwnerIdOByTypeUpdatedAtDesc")
    @auth(
        rules: [
            {allow: owner, ownerField: "ownerId", identityField: "sub"},
        ])
{
    id: ID!
    ownerId: String
    S3Object: S3Object
    name: String!
    size: Int
    visibility: Visibility
    type: String
    createdAt: AWSDateTime
    updatedAt: AWSDateTime
}

@attilah
It works !
I would never imagine this kind af workaround.


Add simple preliminary FAQ

Adds a simple FAQ section to README.md to facilitate the clarification of important questions.

This is the second part of the solution to issue #23.


Parsing of the schema into the Edit Form

@jbaird123, @richard0000 (@jeannekitchens), now that the fields in the "Edit Term" form align to the Output Explainer and, as a result, to terms in RDF Schema, I have two questions about the parsing of the data from the schema being mapped into the form.
Q1: In our next demo, we will be able to see the Edit Form fields of the form automatically populated directly from the RDF (json-ld) source file. Is this correct?
Q2: I understand that handling PESC (XML) and HR Open (JSON) are yet to be done and the focus now is on using the schemas already in RDF (e.g., schema.org, Credential Engine, ASN) to flesh out the basics up through the actual mapping. However, when we do get to JSON and XML, the work just completed on the Edit Form will be identical and that what we will see in the Raw pane of the form will be the RDF (JSON-LD) translation of the XML and JSON input files based on JSON Schema and XML Schema.  Is this correct?

@stuartasutton
For Q1: I think we need more clarification on the question but maybe you can let me know which parts need to change and how on the next image (which is the current status of the edit form):

For Q2: Correct.
@jbaird123 FYI.

@richard0000, my first question asks whether the next demo can demonstrate the automatic population of the fields on load. For example, in the form, the "Source URI" field would not still have a text prompt but would have been auto-populated with [[credreg:codedNotation]]. The "Property URI" field would have been auto-populated with [[desm:codedNotation]]. The "Property Label" field would have been auto-populated with "Coded Notation".  The same would be the case with the "Range" and, if there had been one, for "Vocabulary".
So the question is: Are the fields auto-populated based on the RDFS in the JSON-LD input file?  I have been assuming that they are correct given the auto-population of the range; but am uncertain because of other the fields not being auto-populated when the could have been.  So, I just want a verification that what I am saying here is correct.

@stuartasutton The fields are auto-populated indeed. The ones that are not:

Source URI: I'm not sure what to write in it since, for the case of codedNotation, by example, "credreg:codedNotation" doesn't exist in the node with id: "ceterms:codedNotation" and id: "rdfs:Class":

    {
      "@type": "rdf:Property",
      "@id": "ceterms:codedNotation",
      "rdfs:label": {
        "en-US": "Coded Notation"
      },
      "rdfs:comment": {
        "en-US": "Set of alpha-numeric symbols that uniquely identifies an item and supports its discovery and use."
      },
      "dct:description": {
        "en-US": "Examples include the alpha-numeric code \"CCSS.MATH.CONTENT.HSA.CED.A.2\" identifying a node in the U.S. Common Core State Standards on creating equations in algebra, or, the code \"8021\" in the U.S. Standard Industrial Classification (SIC) for identifying the occupational context for \"Offices and Clinics of Dentists\"."
      },
      "vs:term_status": "vs:stable",
      "meta:changeHistory": "http://credreg.net/ctdl/termhistory/ceterms/codedNotation/json",
      "schema:domainIncludes": [
        "ceterms:ApprenticeshipCertificate",
        "ceterms:AssessmentComponent",
        "ceterms:AssessmentProfile",
        "ceterms:AssociateDegree",
        "ceterms:BachelorDegree",
        "ceterms:Badge",
        "ceterms:BasicComponent",
        "ceterms:Certificate",
        "ceterms:CertificateOfCompletion",
        "ceterms:Certification",
        "ceterms:CocurricularComponent",
        "ceterms:CompetencyComponent",
        "ceterms:CourseComponent",
        "ceterms:Credential",
        "ceterms:CredentialAlignmentObject",
        "ceterms:CredentialComponent",
        "ceterms:Degree",
        "ceterms:DigitalBadge",
        "ceterms:Diploma",
        "ceterms:DoctoralDegree",
        "ceterms:ExtracurricularComponent",
        "ceterms:FinancialAlignmentObject",
        "ceterms:GeneralEducationDevelopment",
        "ceterms:JobComponent",
        "ceterms:JourneymanCertificate",
        "ceterms:LearningOpportunityProfile",
        "ceterms:License",
        "ceterms:MasterCertificate",
        "ceterms:MasterDegree",
        "ceterms:MicroCredential",
        "ceterms:OpenBadge",
        "ceterms:ProfessionalDoctorate",
        "ceterms:QualityAssuranceCredential",
        "ceterms:ResearchDoctorate",
        "ceterms:SecondarySchoolDiploma",
        "ceterms:SelectionComponent",
        "ceterms:TransferValueProfile",
        "ceterms:WorkExperienceComponent"
      ],
      "schema:rangeIncludes": [
        "xsd:string"
      ]
    }

vocabulary: In the first state, I assumed we don't have vocabulary related, so we show the user that he/she can upload one and link it to the term.
If you give me instructions on how to get or generate those inputs, I can add it to the automatic population like the other attributes.

Ah, I see the problem. Credential Engine (the source) does not use the prefix credreg. It uses ceterms. So the "Source URI" for this property is ceterms:codedNotation--or in full,  https://purl.org/ctdl/terms/codedNotation. In the value for "Source URI", always use the prefix provided in the data or the full URI.
I am not sure what you mean by:

and id: "rdfs:Class"

The rdfs:Classes of concern to a property in RDF is with its domain and range. You have captured the both already.

Ok, @stuartasutton so then the answer for Q1 is also: correct. 😄

Sorry, didn't complete my comments. You are correct, there is no "Vocabulary" with the ceterms:codedNotation. I want to go over when the range of a property is a vocabulary at our bi-weekly meeting on Monday (October 5).

@richard0000, in the image above, it is not correct.  You have ceterms:codedNotation as the "Property URI" when it is the "Source URI". The "Property URI" would be the URI in the DESM namespace--i.e., `desm:codedNotation'.

@stuartasutton ok. How the Porperty URI would be generated? Do you think a formula like the next one would work?:
("desm:" + <term-uri-in-the-uploaded-spec>)

Close, with one caution. In the imaginary URI--https://desmsolutions.org/terms/d2l/asn/name--arriving at desm:name means more than just the namespace (https://desmsolutions.org) but includes any path right up to the token "name".

By the way, you's also see use of the hash like this: https://desmsolutions.org/terms/d2l/asn#name.  The result is the same.


Add pdf question

Hi Muaz,
Now Canvas-Designer only can add image, I want to add other, such as PDF. Do you any advice? I am looking forward to your reply.

You can use javascript libraries (search-on-google) to convert PDF into images, and then import single or multiple images (DataURIs or Blobs) into the tool using image-tool methods (reuse button-click event to pass DataURI instead of selecting from system).
(pdf-based) JS libraries may generate Canvas object. You can use canvas.toDataURL() to get images.

Ok, thank you, Muaz, I will try it.

Hi guys, Did you manage to allow for import and export to pdf? I am just looking at it myself and be interested to hear if you made any progress. By the way Muaz-khan loving all your webrtc projects, awesome :) Jon

Hi, thankyou so much for the reply.
Great I have just been looking at JavaScript or node js libraries,
interesting about php ones.
And then what do you use to convert them back after annotation in canvas
may I ask?
Any code example would be much appreciated.
Thankyou very much!
Jon
On Wed, 18 Jul 2018 at 02:10, qian_hai_zhen<EMAIL_ADDRESS>wrote:

I use php libraries imagick convert pdf to png，and use canvas.toDataURL()
put them to canvas.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/muaz-khan/Canvas-Designer/issues/38#issuecomment-405776641,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AknpyVAcac2laLoPfcK13HwyceALjOt4ks5uHorwgaJpZM4RE8Rc
.

--
Regards
Jon
Jon Hunter
Chief Technical Officer
E<EMAIL_ADDRESS>w: www.atap2chat.com

First install the php library on your server, and use the follow code convert:

and you can see the results on server as follow:

second  on canvas, you can get these image according to path, as follow:
https://uploadt.dz101.com/uploadfiles/weiXinO2OpdfCourseware/2018/07/18/pdf749891531878335/1.png

third  import the image by url as follow:

Hi,
Thankyou so much great documentation and code really appreciate it.
One last question, any recommendation for converting back to pdf and saving
after drawing on canvas?
Thankyou so much!
Jon
On Wed, 18 Jul 2018 at 02:53, qian_hai_zhen<EMAIL_ADDRESS>wrote:

First install the php library on your server, and use the follow code
convert:
[image: _20180718094058]
https://user-images.githubusercontent.com/15684202/42854509-bdbbe0a4-8a6e-11e8-8ef0-8427572bd417.png
and you can see the results on server as follow:
[image: 222]
https://user-images.githubusercontent.com/15684202/42854587-0ceabdda-8a6f-11e8-9bb8-595b73f98228.png
second on canvas, you can get these image according to path, as follow:
https://uploadt.dz101.com/uploadfiles/weiXinO2OpdfCourseware/2018/07/18/pdf749891531878335/1.png
[image: 333]
https://user-images.githubusercontent.com/15684202/42854706-b87a64ca-8a6f-11e8-834f-64d79dcad262.png
third import the image by url as follow:
[image: 444]
https://user-images.githubusercontent.com/15684202/42854796-2d91fbe2-8a70-11e8-96a7-a278656918e6.png
[image: 666]
https://user-images.githubusercontent.com/15684202/42854799-2fd205b4-8a70-11e8-8b9a-43516f008bed.png
[image: 777]
https://user-images.githubusercontent.com/15684202/42854853-5ad5384e-8a70-11e8-9fd5-b47916ab77a7.png
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/muaz-khan/Canvas-Designer/issues/38#issuecomment-405783221,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AknpydHWnnzueW0lcViKGzcHzJg7wFvJks5uHpUCgaJpZM4RE8Rc
.

--
Regards
Jon
Jon Hunter
Chief Technical Officer
E<EMAIL_ADDRESS>w: www.atap2chat.com

@sanpangzi hi i saw you comment . Now is your canvas support upload pdf function and sync in to other users and can draw on presentation? Please help me

Please help me :(


Projections availability card updates

[x]  Update title to "Projected <Micronutrient> availability to 2050
[x] Update y access to "<Micronutrient> availability in mg/capita/day
[x] Add a horizontal line to indicate the threshold value (as displayed fetched from the 'summary' endpoint in the projection summary card
[x] Hover values to round to 3.s.f
[x] Make series fill solid to match legend colours

[x]  Only display the columns relating to the chosen micronutrient (e.g. for Calcium - Country, Year, Scenario, Ca, Ca Diff)
[x]  Update title header to read "Projected <Micronutrient> availability to 2050" rather than "Multinutrient availability"
[x]  Update description text to read "The data shows the projected <Micronutrient> availability per capita per day
[x]  Update column title for chosen MN to e.g. "Ca availability"
[x]  Update 'Diff' column title to "Difference from previous year"
[ ]  Add a % sign to values in the diff column

The reason why the fill and legend were not matching is due to the fill transparency, so overlapping data affects the colour displayed.
Removing the fill solves this problem.
@pautva Can you suggest a palette of 3 colours for line display which are not purple/cyan, which would compliment the UI? Ive placeholder RGB for now

@bgsandan Which attribute is needed for the horizontal threshold returned from the summary?
Options:

referenceVal
target

That will be target :+1:

@Fuhji, some colour suggestions for the line chart:

A lighter brand colour (#9B51E0) for SSP2 - middle of the road scenario
A brighter danger colour (#FF3E7A) for SSP3  - negative pathway
Happy green (#6FCF97) for SSP1  - sustainable development

It could look like this:

@Fuhji, some colour suggestions for the line chart:

A lighter brand colour (#9B51E0) for SSP2 - middle of the road scenario
A brighter danger colour (#FF3E7A) for SSP3  - negative pathway
Happy green (#6FCF97) for SSP1  - sustainable development

It could look like this:

@pautva colours look great, although i dont think we can assign a colour based on pathway positive/negative. In which case any issues with just assigning colours to SSP as shown above?

Yes, I think we can assign colours based just on SSP. From what I understand, SSP1 will always be "Sustainable development", SSP2 - "Middle-of-the-road" and SSP3 "Negative future pathway". So the colours for them shouldn't change.


Version bump to 0.2.2

Includes:

Set ntp.sync_clock to true for users of ntp cookbook ( Issue: #14 )
Use grep to parse kadmin get_principal output ( Issue: #15 )

Lgtm


0.4.2 crashing on start

0.4.2 is crashing for me
Error while setting up tibber_data platform for sensor Traceback (most recent call last):   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform     await asyncio.shield(task)   File "/config/custom_components/tibber_data/sensor.py", line 52, in async_setup_platform     for ( TypeError: 'NoneType' object is not iterable
the error happens when iterating over "chargers_entity_descritpions". Maybe a typo here but I tested changing to chargers_entity_descriptions and error was still there.
Could it be because I have no chargers? Seems the code will return an empty list if no chargers...

Fixed by https://github.com/Danielhiversen/home_assistant_tibber_data/commit/98b1a97c96a579671a7cf8634dc3e817b1274a41


Rename udata to destination

https://github.com/an-dr/microlog/blob/7fe4de33ae9d82a650541d7b166fc76974f83848/src/ulog.c#L33

Resolved with https://github.com/an-dr/microlog/commit/12cebc398bc7d017cd9d4cbbb22fb9c070426e6d


Invalid/unclosed FOR loops yield no errors

If a mistake is made within FOR loop syntax, due to either a missing or incorrect END-FOR command, no errors are produced when calling createReport.
Examples

A small reproducible example consisting of the code and .docx template you used.

Each of these examples yields the same screenshot .docx result and explanation below.
Example 1:
Before
{for person in people}{$person}{end-for persons}
After

Example 2:
Before
{for person in people}{$person}{end-for}
After

Example 3:
Before
{for person in people}
After

Screenshot and explanation

A screenshot of the result you get and an explanation as to why this result is unexpected.

No errors are thrown nor any in-document errors appear with failFast: true. Anything in the document after the broken loop will not appear (e.g. the After text).
In the examples above, it would be useful to:

Get an error message on an incomplete FOR statement (like an IncompleteConditionalStatementError for IF without an END-IF)
Be able to close a FOR loop without needing to name its target. An invalid END-FOR that closes an unknown loop would still error though to avoid subtle bugs (e.g. example 1 working and the invalid variable name persons being ignored).

Compiler and toolchain

Information about your compiler toolchain version (e.g. Angular, Webpack, etc.): Directly testing with ESM/Node script:
import * as fs from 'node:fs/promises';
import * as docx from 'docx-templates';

try {
  const result = await docx.createReport({
    template: await fs.readFile(new URL('./input.docx', import.meta.url)),
    cmdDelimiter: ['{', '}'],
    failFast: false,
    data: {
      people: ["Jane", "Sally", "Tom"],
    }
  })
  await fs.writeFile(new URL('./output.docx', import.meta.url), result)
  console.log("Wrote out output.docx fine")
} catch (errs) {
  console.error(errs)
}

Runtime

Information about your runtime environment (which browser, Electron, or NodeJS version): NodeJS v20.4.0, using docx-templates master from Git

Good find, and thanks for the clear writeup. This is a duplicate of #180 but with better context and documentation.
I think the easiest solution for this would be to throw an error if the 'tree walking' of the document concludes without encountering an END-FOR. I'll take a look to see how difficult this is going to be... Let me know if you have any ideas!

I think I have it. See af8ab375357fc3e943aa5915715381ab9ef788e9.
Being able to close a FOR loop without naming its target is too complicated for now. I also think that 'naming' the FOR loop that you are terminating helps readability, but that is very subjective.

Thanks for looking at this @jjhbw, really appreciate your efforts 👍
I tried out the latest master, which includes that commit, and it seems there's a regression. A document like:
This is {if true}working

produces two errors now:
[
  [Error: Incomplete IF/END-IF statement. Make sure each IF-statement has a corresponding END-IF command.],
  [Error: Unterminated FOR-loop ('FOR __if_0'). Make sure each FOR loop has a corresponding END-FOR command.]
]

This bit of the code https://github.com/guigrpa/docx-templates/blob/af8ab375357fc3e943aa5915715381ab9ef788e9/src/processTemplate.ts#L770-L780 seems to be pushing IF commands into the ctx.loops array, which causes the error to be thrown.

Released fix in https://github.com/guigrpa/docx-templates/releases/tag/v4.11.3

Looks good to me, thanks @jjhbw - really appreciate your work 👍


Multpile ticket portals

Allow user to create multiple ticket portals in order to have topic related portals

I honestly have absolutely no idea how to do that without degrading the user experience. Could you provide some command syntax examples maybe?

Well, I would say more or less the same way as tickets are currently managed
Current commands on which a new [portal ID] appear:

tickets portal summon [portal ID]
tickets portal set-text [portal ID] <message>
tickets portal set-category [portal ID] <category>
tickets portal set-channel [portal ID] <channel>
tickets portal set-role [portal ID] <role or "none">
tickets portal set-hint [portal ID] <message or "none">
tickets portal set-format [portal ID] <format or "none">
tickets topic add [portal ID] [emote] <name>

New commands:

tickets topic move [topic ID] [portal ID] [portal ID] move a topic from a portal to another
tickets topic list list all the tickets
tickets portal list [portal] list all the portals or all the tickets in a specified portal


Incompatibility with freebsd sed?

There seem to be some issues using dehydrated under FreeBSD atm, need to investigate further...

These issues are likely similar on OpenBSD too. At a cursory glance, things like using \s with grep and/or sed instead of [[:space:]] seem to be the primary gnuisms.
I hacked my copy of dehydrated to work by forcing it to use gsed, gawk and ggrep; if making the script POSIX-compliant is too much work, then making it so that it checks for and explicitly uses those commands on non-Linux platforms is a good idea.

I made #761 which works for me; more testing needed though.

Could this be why after upgrading from 0.6.5 (which works) to 0.6.6 I'm getting this error:
# INFO: Using main config file /usr/local/etc/dehydrated/config
+ Fetching account URL...
ERROR: Problem connecting to server (head for ; curl returned with 3)
ERROR: Problem connecting to server (post for ; curl returned with 3)

... and it bails out here without doing anything.
The 0.6.5 version does not start out with "Fetching account URL...", so I'm not even sure what that is trying to do here with 0.6.6.  Have I missed a step in upgrading?  Is there a workaround?
This is running on FreeBSD 12.1-RELEASE-p10 FreeBSD 12.1-RELEASE-p10 GENERIC  amd64

@morganwdavis could you check if you are still getting errors with the current master branch?

Version 0.6.6 confirmed working again on FreeBSD 12.1.
MD5 (dehydrated.sh) = 44d2ff6866cc31dddeef935f099f6690
Thank you, Lukas, and contributors.

Closing as this should be fixed by now.


fix(types): correctly type kind prop in FileUploader, FileUploaderButton

The file uploader button is based on Button, which now supports more variants like "danger-tertiary" and "danger-ghost."
- "primary" | "secondary" | "tertiary" | "ghost" | "danger"
+ "primary" | "secondary" | "tertiary" | "ghost" | "danger" | "danger-tertiary" | "danger-ghost"

Fixed in v0.79.0


 Fix.

Thanks, looks good, merged.


add ability to get images within collection using pagination

This code works except for a bug on the neurovault side involving a trailing slash.  See NeuroVault/NeuroVault#547

The extra trailing slash is added in request method. That's just a convenience to skip the trailing slash from all method invocations.
When the slash is added to a url collections/42/images/?limit=100&offset=200 it becomes collections/42/images/?limit=100&offset=200/, so the resulting offset value is "200/" and not "200". I guess when the NeuroVault API receives the invalid offset parameter it treats it like missing and resorts the default "0". That's why the value of next in response is collections/42/images/?limit=100&offset=100.
I replaced the manual query string construction with passing the offset and limit as a dict to requests. That fixed the offset problem.


Update to webpack 3

small optimisation. 50ko less on the non gzip app.min.js
I tried to separate the vendor dependencies (react, antd, ...) but the overall file was bigger. No luck there.

Heroku deployment is failing with error Your lockfile needs to be updated, but yarn was run with --frozen-lockfile.


[python] Support Enumeration in Python API

Issue and/or context: #866
Changes:
Reads are done in C++. Writes are done through TileDB-Py (https://github.com/TileDB-Inc/TileDB-Py/pull/1790).
Notes for Reviewer:
Depends on https://github.com/single-cell-data/TileDB-SOMA/pull/1519.

[sc-30316]

This PR is now at a point where it can be evaluated for feedback.

@nguyenv those are tests I created -- I'll help take a look

Codecov Report
Patch has no changes to coverable lines.

:exclamation: Current head 57124fd differs from pull request most recent head 63c368e. Consider uploading reports for the commit 63c368e to get more accurate results

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:loudspeaker: Thoughts on this report? Let us know!.

This has the same interop fail as #1519 which I am debugging. Otherwise looks good.


Switch from Travis -> Github actions.

Signed-off-by: Chris Lalancette<EMAIL_ADDRESS>

(we'll also have to port this to the versioned branches)

@Mergifyio backport rolling


Updated command to restart Forseti in v2.23.1

Updated command to restart Forseti in v2.23.1

Verified on GCP instance and checked the database.


There is any way to get playlist cover?

Sorry, I have read the documentation, I have done tries, and I didn't found anything about the cover image or better said I didn't found anything in the json that return spotipy.

Perfect I am a IDIOT I found the answer to my problem.


Bugfix: No rows in results generates invalid MERGE statement

Bugfix: Running sp_generate_merge on a table where there are no rows, or with a @from filter which returns no rows, created invalid SQL.
The appropriate solution depends on @delete_if_not_matched:
+ If delete_if_not_matched = 1, and we found no matches, we should delete the content of the destination table
+ If delete_if_not_matched = 0, and we found no matches, then we have no work to do and should just abort without doing any work
Also updated the output to reflect the type of operation performed

I encountered an issue when trying to generate a MERGE for the AW Production.ProductPhoto table, i.e.
USE AdventureWorks2014
EXEC [sp_generate_merge] @table_name = 'ProductPhoto',  @schema = 'Production'

Error message:
Msg 102, Level 15, State 1, Line 4
Incorrect syntax near ')'.

Interestingly, a DELETE was scripted for this table, although it contained 101 rows:
DELETE FROM [Production].[ProductPhoto]
;
GO
DECLARE @mergeError int
 , @mergeCount int
SELECT @mergeError = @@ERROR, @mergeCount = @@ROWCOUNT
IF @mergeError != 0
 BEGIN
 PRINT 'ERROR OCCURRED IN DELETE FOR [Production].[ProductPhoto]. Rows affected: ' + CAST(@mergeCount AS VARCHAR(100)); -- SQL should always return zero rows affected
 END
ELSE
 BEGIN
 PRINT '[Production].[ProductPhoto] rows affected by DELETE: ' + CAST(@mergeCount AS VARCHAR(100));
 END
GO

Needs some additional error handling before it can be merged, so closing this for now; have replaced it with issue #31


Tweak and clean up four kubeadm files

Performed actions below:

remove redundant blank lines
tweak long lines
make bullet indentations consistent
fix a few typos and add backtick symbols

@windsonsea
The test cases failed due to Netlify build timeout failures.
please re-push the commit. Try the following steps to trigger the build again:
git reset
git commit --amend --no-edit
git push --force-with-lease

Thanks @windsonsea for this PR.
/lgtm

/kind cleanup
/approve


Flake8 rule 'E999' reported an invalid point

Flake8 reported an invalid point for the rule E999, with the messge SyntaxError: invalid syntax.

Debug information:
Atom version: 1.28.2
Flake8 version: 3.5.0 (mccabe: 0.6.1, pycodestyle: 2.3.1, pyflakes: 1.6.0) CPython 3.6.5 on Linux

Are you able to reproduce this consistently? If so, can you share the file that does so?
You're on a new enough version of flake8 that you aren't hitting the original bug that was fixed in v3.2.1 of flake8.

@Arcanemagus, actually I ain't see this error now. The file was empty, with single line -
#!/usr/bin/python3.6

I was getting this too on MacOS 10.13.6, and it turned out that besides the flake8 that pip installed in my python 3.7 virtualenv, I had previously brew installed a flake8 that ran under python 2.7.  The flake8 in my virtualenv was earlier in my PATH, and is what which flake8 reported, but astonishingly, /usr/local/bin/flake8 (the brew version, later in my PATH) was running instead.  I finally figured this out with flake8 --bug-report which made it clear that the python version was 2.7.0.  The fix was to brew uninstall flake8 and start a new shell.

@dgentry That sounds like you didn't launch Atom from within the venv 😉.

Actually using emacs!
On Sun, Sep 2, 2018 at 1:14 PM Landon Abney<EMAIL_ADDRESS>wrote:

@dgentry https://github.com/dgentry That sounds like you didn't launch
Atom from within the venv 😉.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/AtomLinter/linter-flake8/issues/626#issuecomment-417956833,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA1bHoDFeeNWDTsSGEj7YEHvrNzoLelbks5uXDw5gaJpZM4VygSP
.

I got the same err. Here is my info:
flake8 --version
3.6.0 (mccabe: 0.6.1, pycodestyle: 2.4.0, pyflakes: 2.0.0) CPython 3.5.2 on Linux

Are you able to reproduce this consistently? If so, can you share the file that does so?

Without a file to reproduce this I can't begin to track down whether this is a bug in flake8 (extremely likely), or a bug in our parsing of their output (possible, but unlikely).


encoded ampersands in query params in react-router v3

opening it because my previous issue (#6896) was closed without asking any questions.
I created very simple reproduce of that error.
There is code of that example: https://codesandbox.io/s/patient-field-cfg0i.
And there is a that demo app with issue:
https://cfg0i.csb.app/?keyWithoutAmpersand=value&query=max & sam
Open browser console and check location.query object where you can see exactly that problem which was fixed in #343.

Sorry, it was problem on my side eventually, i just must use url decoding for that case :(


Not being able to read variables from .env

Version
3.9.3
Environment info
 System:
    OS: macOS 10.14.5
    CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
  Binaries:
    Node: 8.16.0 - /usr/local/opt/node@8/bin/node
    Yarn: Not Found
    npm: 6.4.1 - /usr/local/opt/node@8/bin/npm
  Browsers:
    Chrome: 76.0.3809.100
    Firefox: 68.0
    Safari: 12.1.1
  npmPackages:
    babel-helper-vue-jsx-merge-props: ^2.0.3 => 2.0.3
    babel-plugin-jsx-vue-functional:  2.1.0
    babel-plugin-transform-vue-jsx: ^3.5.0 => 3.7.0
    babel-preset-vue:  1.2.1
    babel-preset-vue-app:  1.3.2
    eslint-plugin-vue: ^4.0.0 => 4.7.1
    jest-serializer-vue: ^0.3.0 => 0.3.0
    vue: ^2.5.2 => 2.6.10
    vue-apexcharts: ^1.4.0 => 1.4.0
    vue-eslint-parser:  2.0.3
    vue-hot-reload-api:  2.3.3
    vue-jest: ^1.0.2 => 1.4.0
    vue-loader: ^13.3.0 => 13.7.3
    vue-router: ^3.0.1 => 3.0.7
    vue-style-loader: ^3.0.1 => 3.1.2
    vue-template-compiler: ^2.5.2 => 2.6.10
    vue-template-es2015-compiler:  1.9.1
  npmGlobalPackages:
    @vue/cli: 3.9.3

Steps to reproduce
In the root folder, I've created .env and added the following variable:
VUE_APP_SECRET=secret
In the main.js, i tried reading the variable by:
console.log(process.env.VUE_APP_SECRET) // I thought this would work but not.
console.log(process.env.SECRET) // tried this as well but still no luck.
before new Vue(.....) but all i'm getting are undefined. What am I missing?
What is expected?
displaying 'secret' in the console
What is actually happening?
Getting undefined

Alternative options to use config/dev.env.js file and keep all the variables and values there... but I'm not sure if this is a good practice because these config files are tracked in the git repository. Should I add these file to .gitignore?
Thanks.

Thanks for submitting this issue! Due to our limited time, we ask you to include a reproduction link to a minimal full reproduction of your problem (for example in a GitHub repository) so we can find what is causing the issue. Thank you for your understanding!

Easy to reproduce, create a Vue app with the cli (my current version is 3.11.0)

In main.js add console.log(process.env); // Result {NODE_ENV: "development", BASE_URL: "/"}
Add .env file to the root of the project
add any value the the env file ex. MY_VAR="should be here"
restart the the live reload session
Open the Chrome devtools js console and the output from the previous console.log does NOT contain the MY_VAR in the object as expected

Here is a basic reproduction of the issue: https://github.com/GiantZOC/vue-cli-environment-reproduction
I created a new project with vue-cli, added a .env file and then tried to output the value in the console with main.js.

@GiantZOC See https://cli.vuejs.org/guide/mode-and-env.html#environment-variables

Note that only variables that start with VUE_APP_ will be statically embedded into the client bundle with webpack.DefinePlugin.

Does that mean there's no way for us to access .env file during development? It would be annoying to keep building the bundle and testing

What do you mean by "no way to access .env file"? You can access environment variables during development, they just need to start with VUE_APP_ if meant to be used on the client-side. (Those do not have a VUE_APP_ prefix can still be accessed in the config file)

The reasoning for this design: https://github.com/facebook/create-react-app/issues/865#issuecomment-252199527

@pluus I just realized that the project you referenced in the original issue was not scaffolded by vue create. If you are using vue init webpack project-name for scaffolding, please refer to https://github.com/vuejs-templates/webpack for documentation.

Thanks I will give it a shot!


feat(dist): add concat and uglify npm scripts

This PR adds a dist directory and NPM scripts for concat and uglify tasks.

@SyntaxStacks please review

@SyntaxStacks this PR or #7 will need to be rebased depending on which of these is merged first. I have added new NPM script here, and migrated ci.sh commands to NPM scripts in #7, competing for the same lines

:+1:


Less ambitious typescript target?

hi,
i notice the built .js files have lines like:
import { svgNamespace, isSVGImageElement, isSVGStyleElement } from './dom.js';

i'm finding that browserify barfs on these, and i have to incorporate babelify, etc. in order to use this library. i assume this is controlled by the tsconfig.js file, which specifies "target": "ES2020",. would it be possible to choose a less ambitious target? it would greatly simplify things for me, and probably others (it did take me quite a while to figure out how to use babelify).
with thanks

Do you mean import statements? These are part of ES6 (ES2015), i.e. 5 years old. They are much easier to tree-shake than CommonJS, so I would be hesitant to switch to CommonJS. Given you already figured out how to setup Babelify now, is the problem solved for you?

yeah ok. it's strange to me that browserify doesn't cope with these statements, given they're as old as you say. but if that's the situation ...

browserify is a bit of a dated tool, I think they refused to add support for ESM because they were focused on allowing bundling of CommonJS NodeJS modules, not modern ES browser modules. Webpack, Rollup, Parcel etc all should have no problem with it :)

yeah, i appreciate i'm not using what the cool kids are using. the error i get is:
ParseError: 'import' and 'export' may appear only with 'sourceType: module'

i assume there's not a little tweak that will get it over the line with browserify?
with thanks


manage_plugins_dir doesn't seem to do anything

I've set the manage_plugins_dir to false, and still the module keeps rewriting the perms on my /etc/sensu/plugins
Am I being crazy, or does this parameter not actually do anything?

What version of the module are you using?
Whether or not the directory is managed is controlled by $_manage_plugins_dir (https://github.com/sensu/sensu-puppet/blob/master/manifests/package.pp#L114) which is ultimate controlled by the logic here: https://github.com/sensu/sensu-puppet/blob/master/manifests/init.pp#L392.
I don't see anything in the code that would change the dir perms if you set manage_plugins_dir to false, are you sure it's this module (maybe it's defined elsewhere?) and are you sure manage_plugins_dir = false is being assigned in this module?

Never mind, I was being silly. Jetlag fail.


LiteDB.LiteException: 'Cannot insert duplicate key in unique index '_id'

How come that i get a LiteDB.LiteException: 'Cannot insert duplicate key in unique index '_id'. The duplicate value is '0'.' with the following code?
It looks like the AutoId doesn't work in this scenario, or am i missing something?
    public class Test {
        public int id { get; set; }
        public string text { get; set; }
    }

    static class Program
    {
        static void Main()
        {
            using (var db = new LiteDatabase("database.db")) {
                LiteCollection<object> collection = db.GetCollection<object>("testCollection");

                collection.Insert(new Test { text = "aaa" });
                collection.Insert(new Test { text = "bbb" });
            }
        }
    }

@JohnnyDeeee why are you using db.GetCollection<object>()? that will have no way of knowing which fields you have, since the typeof(T) is how litedb is able to determine appropriate fields.
Use db.GetCollection<Test>() and it will work

@lilasquared This is part from a bigger piece of code that can insert/retrieve any sort of Type (i call them records), so it needs to be dynamic

An you use generics? You need to be able to specify and id property, otherwise you might need to use the lower level BsonDocument for all of your “records”

As you can see in the example, i have provided an ID property.
Imagine having Test and Test2, they can both be given to the function as a parameter.
The problem is the ID doesn't get set for any of them..

Yes your types have an ID property but object does not. LiteDb uses the type given to the getcollection function to know what properties should be used. In your case you have passed object. As I said look into use generics or the dynamic keyword for this

Ah yes ofcourse, that makes sense..
I have been using the object type as a generic 😅.
Thanks !

Happy to help!