Don't loop through all ref frames when multiref disabled

AWCY no change
Closes #1212

@tdaede, I will review but can you also review this patch please since you are more familiar with use of ref frames for inter mode?

Coverage increased (+0.009%) to 71.119% when pulling df8d4bb4508f1a7dde7cbae7021c7287d8500078 on shssoichiro:ref-frames-wo-multiref into 57088e126978cfd47e6973bf0e649676353f1446 on xiph:master.

AWCY no change
Closes #1212

There is a change in AWCY. Encoding time has reduced! Thanks!
(I checked AWCY, then found you already cited it in the beginning)

@tdaede, btw, can you let me know what index [0] is used at:
https://github.com/xiph/rav1e/blob/57088e126978cfd47e6973bf0e649676353f1446/src/rdo.rs#L811 ?
Is it because, when ref_frames_set[] is created, NONE_FRAME is always added (line 770) so always the first entry, i.e. [0] is the current ref frame ?Would this be also true for multi-ref, i.e. compound reference mode?
@shssoichiro, basically I also wanted to check whether ref frame loop, https://github.com/xiph/rav1e/blob/57088e126978cfd47e6973bf0e649676353f1446/src/rdo.rs#L788, iterates only once!

@shssoichiro, basically I also wanted to check whether ref frame loop,
https://github.com/xiph/rav1e/blob/57088e126978cfd47e6973bf0e649676353f1446/src/rdo.rs#L788
, iterates only once!

Good find, I missed this one because I was only looking at places where we used INTER_REFS_PER_FRAME. We should be able to optimize this as well!
P.S. What I found, or at least this is my understanding of how our ref frames work and correct me if I'm wrong, when multiref is disabled, we actually still check two ref frames: the last frame and the "golden frame", whatever that is. 🙂 But 2 is still faster than 7.

I just checked in master, at speed 5 (multi-ref off for speed > 1)  that the frame ref loop in rdo_mode_decision iterate more than once.
First for LAST_FRAME, and 2nd LAST2_FRAME.
So, can possibly be another bug.
@tdaede  ^

@shssoichiro, basically I also wanted to check whether ref frame loop,
https://github.com/xiph/rav1e/blob/57088e126978cfd47e6973bf0e649676353f1446/src/rdo.rs#L788
, iterates only once!

Good find, I missed this one because I was only looking at places where we used INTER_REFS_PER_FRAME. We should be able to optimize this as well!
P.S. What I found, or at least this is my understanding of how our ref frames work and correct me if I'm wrong, when multiref is disabled, we actually still check two ref frames: the last frame and the "golden frame", whatever that is. 🙂 But 2 is still faster than 7.

My understanding is that if multi-ref is off, only one ref frame should be used? Bcz LAST + GOLDEN is apparently compound mode?
@tdaede ^

All right, found evidence that our multi-ref = false does not work. It still uses multi ref, though not a compound mode.
Below is bitstream analyzer view for frame 4, awcy run by @shssoichiro (thanks!), and it shows both LAST_FRAM and LAST2_FRAME!
AWCY of master at default speed 5 with --low-latency

@tdaede, btw, can you let me know what index [0] is used at:
https://github.com/xiph/rav1e/blob/57088e126978cfd47e6973bf0e649676353f1446/src/rdo.rs#L811

ref_frames[0] is actually LAST_FRAME.

My main concern here is that this limits multiref-off to only frame references 0 and 1. This is pretty non-intuitive (and are those the only references we actually want to use for multiref off?)

Those are effectively the only ones we use, but we loop through all 7 ref slots to accomplish it at the moment. The ref_frames array would be filled with something like [1, 0, 0, 0, 0, 0, 0]. So, the output is equivalent from only looking at the first two items, and this is purely a performance optimization.

Yeah I agree it's correct right now, but I want to make sure it stays correct if we change which reference frames we use in the future. Is there someplace we can hit an assert if we attempt to use a reference frame greater than 1 in this case?
Alternately, in new_inter_frame() we actually compute which reference frames we use, the assert could go there. Or the list of reference frames to loop through could be created there.

In case you missed, I filed the related bug https://github.com/xiph/rav1e/issues/1675

Hmm, the definition of 'multiref' now confuses me.
https://aomediacodec.github.io/av1-spec/#ref-frames-semantics, it says:
SINGLE_REFERENCE indicates that the inter block uses only a single reference frame to generate motion compensated prediction.
COMPOUND_REFERENCE indicates that the inter block uses compound mode.
Then, I don't think we meant SINGLE_REFERENCE by our 'multiref', right?
Also, the def of SINGLE_REFERENCE does not seem that inter mode cannot use multiple ref frames from slots. I read it that just one ref_frame for one inter mode?

Yeah, our "multiref" setting is a bit underdefined. I think right now it controls whether you use compound modes... but even without compound (SINGLE) you can use multiple references in one frame, just not more than one per block. It probably should be renamed at minimum.

Yeah, our "multiref" setting is a bit underdefined. I think right now it controls whether you use compound modes... but even without compound (SINGLE) you can use multiple references in one frame, just not more than one per block. It probably should be renamed at minimum.

If that's the case (i.e. single vs compound reference), we probably need rename it. Otherwise, if multiref was part of our encoder options (not part of av1 spec), then need change code, so that only LAST_FRAME is used as ref frame!?

Aha, we did define it:
  /// Whether P-frames can use multiple references.
  pub(crate) multiref: bool,

So really we should change our code so we only use LAST_FRAME.

Aha, we did define it:
  /// Whether P-frames can use multiple references.
  pub(crate) multiref: bool,

So really we should change our code so we only use LAST_FRAME.

Yes, indeed.

I went ahead and changed it to only look at LAST_FRAME, it passes tests but I'm going to run it through AWCY to verify as well.

My main concern here is that this limits multiref-off to only frame references 0 and 1. This is pretty non-intuitive (and are those the only references we actually want to use for multiref off?)

I think this issue is resolved now?

I went ahead and changed it to only look at LAST_FRAME, it passes tests but I'm going to run it through AWCY to verify as well.

It seems you haven't started awcy run for 2nd commit, so I started it here under your name.
awcy,

Ah, I did. Results here and it looks like there's a pretty big quality difference from moving to single ref. But encoding speed also improves by 30%+.

Ah, I did. Results here and it looks like there's a pretty big quality difference from moving to single ref. But encoding speed also improves by 30%+.

Wow, 35% loss! I briefly check the bitstream analys for bluesky then somehow keyframes are different, spending less bits. Maybe this is caused by temporal RDO (not sure temporal rdo is active with default speed 5 though)?
Also, did you see that the redkayak is least affected? Only 1% change... :) (Can't explain why....)

Lookahead RDO is active at all speed levels for determining MVs and block importances. So this would affect the intra blocks chosen. redkayak I can only guess the type of motion in that video didn't benefit much from multiple ref frames?

A change to use only 1 reference should update new_inter_frame() as well, so that all 7 slots are filled with the reference frame you use. That's why I'd really like some sort of check to make sure that matches what reference frames we are searching.
I guess the AWCY results show we actually want 3 modes - backward references only (what multiref disabled ends up doing right now), forward and backward references (default) and multiref disabled (one ref). It doesn't necessarily need to be an enum, we could replace the current code that checks for multiref to just check for reordering instead (to switch between backward references and forward/back), then don't actually disable multiref for low latency mode and make that a separate option.

I went ahead with the three-tier implementation, and added a check into new_inter_frame to make sure multiref=false is always filled with the same ref frame. I (somewhat arbitrarily) set multiref enabled at speed <= 7, since with the new change, there is both a sizeable speed and quality difference on most videos from having it turned on.

Do you have AWCY runs to link to this change?

I will queue some up.

With low-latency=false: No change
With low-latency=true and multiref=true: Maybe will complete eventually, AWCY is being wonky
With low-latency=true and multiref=false: ~4% BD-Rate loss, ~40% speedup

Looks like we have a target for a speed level update.

multiref disabled (one ref)

Yes, I agree that checking and adding asserts are always help us our work easier.
Btw, I think I should have pointed out this earlier, I don't think the regression as much as 30% comes from the addition of forward ref to backward ref. Instead, I suspected other possible bugs, whether existing or there might be some missed places that this patch should address?

Oh, now it is 4% loss if mutiref is disabled. "With low-latency=true and multiref=false: ~4% BD-Rate loss, ~40% speedup"
Then it seems to me that everything is correct.

Also, I see that "With low-latency=true and multiref=true:" now gives no change in bdrate and almost no change in enc time, so looks correct as well.


Inline styles

Are you open to moving styles to inline?  This makes it easier for consumers to install, without needing to also import another css file.

Happy to help out, btw...

I don't think inline styles are a very inspired choice in the js land currently. So I'm going to keep the styles in css for now. Either importing the styles in js or using composes from css modules should work just fine.


support internationalization in jobs error messages

Not sure if internationalization in the backend is implemented. My use case is the container smart state analysis that returns errors that are then displayed at configuration => tasks.

fyi @roliveri @martinpovolny

@martinpovolny thanks, will follow. I think we can close this one for now


Generated test always fails if an implicit routing header references a field in a sub-sub(-sub)*message

Given: https://github.com/googleapis/gapic-showcase/blob/0b27eb4aa1930f018c49fa5dba4812809149068d/schema/google/showcase/v1beta1/compliance.proto#L72
The generator will generate
 header_params = {
              "info.f_string" => request.info.f_string,
              "info.f_child.f_string" => request.info.f_child.f_string,
              "info.f_bool" => request.info.f_bool
            }

but our mock for request is only 1-level deep, we do not mock subfields info if those are messages.
This leads to test failing with
NoMethodError: undefined method `f_string' for nil:NilClass

Expected behaviour: test passes.

https://github.com/googleapis/gapic-generator-ruby/pull/661 related


Remove Plugin

Hi guys,
Need to free up some space and want to remove some unused plug ins. Cant find any guides for that, any help?

https://docs.npmjs.com/getting-started/uninstalling-local-packages
Ok this answers that


401 Unauthorized errora from beta component using rest_of_world region

Hey folks,
I'm getting the following error when Home Assistant starts, but not every time. I haven't yet determined how to reproduce it reliably:
Logger: bimmer_connected.account
Source: /usr/local/lib/python3.9/site-packages/bimmer_connected/account.py:231
First occurred: 9:42:11 AM (1 occurrences)
Last logged: 9:42:11 AM
401 Client Error: Unauthorized for url: https://cocoapi.bmwgroup.com/eadrax-vcs/v1/vehicles?apptimezone=660.0&appDateTime=1637408530.215427&tireGuardMode=ENABLED

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/bimmer_connected/account.py", line 229, in send_request
    response.raise_for_status()
  File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 953, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://cocoapi.bmwgroup.com/eadrax-vcs/v1/vehicles?apptimezone=660.0&appDateTime=1637408530.215427&tireGuardMode=ENABLED

For completeness:
2021-11-29 03:49:37 DEBUG (SyncWorker_5) [bimmer_connected.account] Request to: https://cocoapi.bmwgroup.com/eadrax-vcs/v1/vehicles
2021-11-29 03:49:39 DEBUG (SyncWorker_5) [bimmer_connected.account] Request to: https://cocoapi.bmwgroup.com/eadrax-vcs/v1/vehicles
2021-11-29 03:49:40 ERROR (SyncWorker_5) [bimmer_connected.account] 401 Client Error: Unauthorized for url: https://cocoapi.bmwgroup.com/eadrax-vcs/v1/vehicles?apptimezone=660.0&appDateTime=1638078579.165597&tireGuardMode=ENABLED
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://cocoapi.bmwgroup.com/eadrax-vcs/v1/vehicles?apptimezone=660.0&appDateTime=1638078579.165597&tireGuardMode=ENABLED
2021-11-29 03:49:40 ERROR (SyncWorker_5) [custom_components.bmw_connected_drive] Could not connect to the BMW Connected Drive portal. The vehicle state could not be updated
2021-11-29 03:49:40 ERROR (SyncWorker_5) [custom_components.bmw_connected_drive] 401 Client Error: Unauthorized for url: https://cocoapi.bmwgroup.com/eadrax-vcs/v1/vehicles?apptimezone=660.0&appDateTime=1638078579.165597&tireGuardMode=ENABLED
  File "/config/custom_components/bmw_connected_drive/__init__.py", line 319, in update
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://cocoapi.bmwgroup.com/eadrax-vcs/v1/vehicles?apptimezone=660.0&appDateTime=1638078579.165597&tireGuardMode=ENABLED
2021-11-29 03:54:37 DEBUG (SyncWorker_6) [custom_components.bmw_connected_drive] Updating vehicle state for account<EMAIL_ADDRESS>notifying 12 listeners
2021-11-29 03:54:41 DEBUG (SyncWorker_6) [bimmer_connected.account] Request to: https://cocoapi.bmwgroup.com/eadrax-vcs/v1/vehicles
2021-11-29 03:54:43 DEBUG (SyncWorker_6) [bimmer_connected.account] Request to: https://cocoapi.bmwgroup.com/eadrax-vcs/v1/vehicles

Closing as it was fixed within the library/custom component and is included in the HA 2021.12 beta, so it will be released in HA on Dec. 11th.


tanggu or tangga

Should society Ig21, which is currently mapped to "Tangu [tang1355]" be mapped to "Tangga [tang1348]".
See https://github.com/glottolog/glottolog/issues/554

Looks like it should be tang1348 , the ethnographies mention Boeng island, which means it's Tangga not Tangu (spoken in the Lakes Plains region of New Guinea).
Agree @xrotwang and @kirbykat ?

Agree - the "island vs. inland New Guinea" distinction seems convincing.

That sounds reasonable to me too. It looks like this is the first change to this glottocode, which probably means no one caught it until now.

ok, done!


Remove target invocation exceptions from Startup invocation

This change takes advatage of the new DoNotWrapExceptions binding flag to avoid throwing a TargetInvocationException when invoking Configure/ConfigureServices and ConfigureContainer

PS: This is a better version of https://github.com/aspnet/AspNetCore/pull/7230
cc @pranavkm @rynowak (awareness of this feature, we may want to use it in more places)

MVC uses ObjectMethodExecutor which creates a delegate. Presumably that would not benefit from this.


Issue from website page Flutter Documentation

From URL: https://flutter.io/docs/

This issue doesn't contain any information what went wrong.
Please create a new issue with information about how to reproduce. Thanks!


Improve naming of methods to add arguments to git calls

Old name
Intention
Problem
New name

AddDynamicArguments
add untrusted arguments
what's the meaning of "dynamic"?
AddUntrustedArguments

AddArguments
add trusted arguments
from the name, it is unclear if you can/should pass untrusted arguments
AddTrustedArguments

With this, we can ensure that all commands use the correct method to prevent security issues:
String literals should be added using AddTrustedArguments, the rest using AddUntrustedArguments.
The only remaining question is what is better: The old name for AddTrustedArguments as it is significantly shorter and hence stands out more in comparison to AddUntrustedArguments, or the new name which clarifies its purpose better?

To answer the question in the table:

what's the meaning of "dynamic"?

dynamic means the argument is constructed dynamically.

from the name, it is unclear if you can/should pass untrusted arguments

It's clear that it only accepts literal string or CmdArg.
Even after this PR's change, AddTrustedArguments could be still misleading, and even worse, it's dangerous to accept AddTrustedArguments(CmdArg(userInputDynamicInput)), then Remote-Code-Execution occurs. The Trusted word in the function name will make reviewers ignore the danger of userInputDynamicInput

ps: In mind mind at that  time, I was trying to name the argument type by CmdArgTrusted, then AddArguments(CmdArgTrusted(userDynamicInput)) could be more clear to reviewers.
Although I didn't take  it at that time (due to the long-name), however now,  maybe it seems good to have CmdArgTrusted, it's definitely clearer than AddTrustedArguments.

My plan was

#22678

Now here it is.

replaced by #22678


Support batch fetch rows by key prefix

Search before asking

[X] I had searched in the issues and found no similar issues.

Motivation
Improve performance so it can replace some cases using HBase.
Solution
No response
Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

Hi @segment11,
Thanks for your feedback, Kvrocks currently supports the scan command to iterate keys with prefix. Could you help to add more context if it's NOT exactly what you want?
Reference: https://redis.io/commands/scan/

I actually want a time series database on rocksdb, and it has replica that can failover.
Take HBase as example, query n rows scan by rowkey，it is just read some hfiles(sstable) because the rowkeys are ordered.

Currently, the scan keys in Kvrocks are also ordered indeed, so it should be the same with HBase rows scan.


MagicUI Hotfix

version that makes container types actually work

Need to make another quick change tomorrow, realized I'm over optimizing probably


[Event Dashboard] The header elements are not matched to Events page mockup

Environment: Windows 10 x64, Google Chrome 113.0.5672.127
Reproducible: always
Build found: last commit from https://github.com/ita-social-projects/GreenCityClient/tree/dev
E.g. "commit 147fa44"
Steps to reproduce

Go to https://www.greencity.social/#/greenCity
Open the 'Event' dashboard
Open the mockup: https://www.figma.com/file/092AhCGadc1Hq8nAysxmYB/ITA-Greencity-УБС?type=design&node-id=30511-114493
Check that the header is matched to header in mockup

Actual result
The header elements are not matched to Events page mockup
Expected result
The header elements are displayed according to Events page mockup

cannot reproduce


Guzzle Http strips off part of the base URL

Does anyone know why Guzzle strips off /local/restful/web/app_dev.php part from the full base URL which is http://localhost/local/restful/web/app_dev.php? I have to give /local/restful/web/app_dev.php/api/v1/user.json in my Gherkin line to make the test pass which is a patchy solution and breaks other developers' tests.
Any workaround?
_My settings:_
Base URL: http://localhost/local/restful/web/app_dev.php
Api URL: http://localhost/local/restful/web/app_dev.php/api/v1/user.json

_ERROR_
When I send a "POST" request to "/api/v1/user.json"
  Client error response
  [status code] 404
  [reason phrase] Not Found
  [url] http://localhost/api/v1/user.json (Guzzle\Http\Exception\ClientErrorResponseException)

_Gherkin_
When I send a "POST" request to "/api/v1/user.json"

_FeatureContext_
class FeatureContext extends MinkContext implements KernelAwareContext
{
    public function __construct()
    {
        //Output is: http://localhost/local/restful/web/app_dev.php
        //echo $base_url;

        $this->client = new Client('http://localhost/local/restful/web/app_dev.php');
    }

    /**
     * @When /^I send a "([^"]*)" request to "([^"]*)"$/
     */
    public function iSendARequestTo($method, $uri)
    {
        $request = $this->client->createRequest($method, $uri);
        $this->response = $this->client->send($request);
    }
}

there are actually 2 things to consider:

your base url should end in /
your relative url should not start with /


Vulnerability roundup 94: gitlab-13.0.14: 1 advisory [6.5]

search, files

[ ] CVE-2020-13339 CVSSv3=6.5 (nixos-20.09, nixos-unstable)

Scanned versions: nixos-20.09: 0b8799ecaaf; nixos-unstable: 420f89ceb26.
Cc @fpletz
Cc @globin
Cc @krav
Cc @talyz

See also: #99769

See #99116

20.09 is at 13.6.0
master is at 13.6.0
Nothing to do here.
Closing.


0.7.2rc1

Small release, huge new possibilities thanks to the @sfam IFTTT Maker channel support!
Highlights:

IFTTT Maker Channel support (@sfam)
aREST sensor support (@fabaff)
Package installation fixes (@rmkraus, @balloob)
Bug fixes and improvements for Nest, MQTT, Aruba, ActionTec, SqueezeBox
Command line options to skip pip and log rotation (@andythigpen)

FYI- Tried to pull this down (from version 0.7.1) and got the following traceback:

(homeassistant) pi@carlo-pi ~ $ pip3 install --upgrade git+git://github.com/balloob/home-assistant.git@dev
Collecting git+git://github.com/balloob/home-assistant.git@dev
  Cloning git://github.com/balloob/home-assistant.git (to dev) to /tmp/pip-bmfos3z7-build
    Complete output from command python setup.py egg_info:
    running egg_info
    creating pip-egg-info/homeassistant.egg-info
    writing requirements to pip-egg-info/homeassistant.egg-info/requires.txt
    writing dependency_links to pip-egg-info/homeassistant.egg-info/dependency_links.txt
    writing entry points to pip-egg-info/homeassistant.egg-info/entry_points.txt
    writing top-level names to pip-egg-info/homeassistant.egg-info/top_level.txt
    writing pip-egg-info/homeassistant.egg-info/PKG-INFO
    writing manifest file 'pip-egg-info/homeassistant.egg-info/SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found

    error: package directory 'homeassistant/external' does not exist

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-bmfos3z7-build

You're on top of things ;-) Should be fixed now.

Just ran a new test.  Looks better - Upgraded fine but looks like the WINK Module is missing some requirements.
15-09-09 15:33:33 INFO (Thread-2) [homeassistant.loader] Loaded light.wink from homeassistant.components.light.wink
15-09-09 15:33:33 ERROR (Thread-2) [homeassistant.core] BusHandler:Exception doing job
Traceback (most recent call last):
  File "/home/pi/.pyenv/versions/homeassistant/lib/python3.4/site-packages/homeassistant/util/package.py", line 41, in check_package_exists
    req = pkg_resources.Requirement.parse(package)
  File "/home/pi/.pyenv/versions/homeassistant/lib/python3.4/site-packages/pkg_resources.py", line 2606, in parse
    reqs = list(parse_requirements(s))
  File "/home/pi/.pyenv/versions/homeassistant/lib/python3.4/site-packages/pkg_resources.py", line 2544, in parse_requirements
    line, p, specs = scan_list(VERSION,LINE_END,line,p,(1,2),"version spec")
  File "/home/pi/.pyenv/versions/homeassistant/lib/python3.4/site-packages/pkg_resources.py", line 2512, in scan_list
    raise ValueError("Expected "+item_name+" in",line,"at",line[p:])
ValueError: ('Expected version spec in', 'https://github.com/balloob/python-wink/archive/c2b700e8ca866159566ecf5e644d9c297f69f257.zip', 'at', '://github.com/balloob/python-wink/archive/c2b700e8ca866159566ecf5e644d9c297f69f257.zip')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/.pyenv/versions/homeassistant/lib/python3.4/site-packages/homeassistant/core.py", line 784, in job_handler
    func(arg)
  File "/home/pi/.pyenv/versions/homeassistant/lib/python3.4/site-packages/homeassistant/components/discovery.py", line 55, in discovery_event_listener
    callback(event.data[ATTR_SERVICE], event.data[ATTR_DISCOVERED])
  File "/home/pi/.pyenv/versions/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 109, in _entity_discovered
    self._setup_platform(self.discovery_platforms[service], {}, info)
  File "/home/pi/.pyenv/versions/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 127, in _setup_platform
    self.hass, self.config, self.domain, platform_type)
  File "/home/pi/.pyenv/versions/homeassistant/lib/python3.4/site-packages/homeassistant/bootstrap.py", line 142, in prepare_setup_platform
    if not _handle_requirements(hass, platform, platform_path):
  File "/home/pi/.pyenv/versions/homeassistant/lib/python3.4/site-packages/homeassistant/bootstrap.py", line 69, in _handle_requirements
    if not pkg_util.install_package(req, target=hass.config.path('lib')):
  File "/home/pi/.pyenv/versions/homeassistant/lib/python3.4/site-packages/homeassistant/util/package.py", line 26, in install_package
    if check_package_exists(package, target):
  File "/home/pi/.pyenv/versions/homeassistant/lib/python3.4/site-packages/homeassistant/util/package.py", line 44, in check_package_exists
    req = pkg_resources.Requirement.parse(urlparse(package).fragment)
  File "/home/pi/.pyenv/versions/homeassistant/lib/python3.4/site-packages/pkg_resources.py", line 2611, in parse
    raise ValueError("No requirements found", s)
ValueError: ('No requirements found', '')
15-09-09 15:33:35 INFO (MainThread) [requests.packages.urllib3.connectionpool] Starting new HTTPS connection (1): winkapi.quirky.com
15-09-09 15:33:40 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=wink>
15-09-09 15:33:40 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=group.living_room, new_state=<state group.living_room=unknown; entity_id=('light.couch_front', 'light.couch_back', 'light.couch_lamp'), friendly_name=Living Room, auto=False @ 15:33:40 09-09-2015>>
15-09-09 15:33:40 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=group.kitchen_fan, new_state=<state group.kitchen_fan=unknown; entity_id=('light.kitchen', 'light.kitchen_2', 'light.kitchen_3'), friendly_name=Kitchen Fan, auto=False @ 15:33:40 09-09-2015>>

    if check_package_exists(package, target):
  File "/home/pi/.pyenv/versions/homeassistant/lib/python3.4/site-packages/homeassistant/util/package.py", line 44, in check_package_exists
    req = pkg_resources.Requirement.parse(urlparse(package).fragment)
  File "/home/pi/.pyenv/versions/homeassistant/lib/python3.4/site-packages/pkg_resources.py", line 2611, in parse
    raise ValueError("No requirements found", s)
ValueError: ('No requirements found', '')

Just pushed a fix, try now please.

Upgrade successful.  No errors or warnings during install or execution.
Thanks for the fast response.


HandshakeException: Handshake error in client (OS Error: CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(handshake.cc:363))

while running http request i am getting this error.
my code is
import 'dart:async';
import 'dart:convert';

import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;

Future<Post> fetchPost() async {
  final response =
      await http.get('https://jsonplaceholder.typicode.com/posts/1');

  if (response.statusCode == 200) {
    // If the call to the server was successful, parse the JSON
    return Post.fromJson(json.decode(response.body));
  } else {
    // If that call was not successful, throw an error.
    throw Exception('Failed to load post');
  }
}

class Post {
  final int userId;
  final int id;
  final String title;
  final String body;

  Post({this.userId, this.id, this.title, this.body});

  factory Post.fromJson(Map<String, dynamic> json) {
    return Post(
      userId: json['userId'],
      id: json['id'],
      title: json['title'],
      body: json['body'],
    );
  }
}

class Http extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Fetch Data Example',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: Text('Fetch Data Example'),
        ),
        body: Center(
          child: FutureBuilder<Post>(
            future: fetchPost(),
            builder: (context, snapshot) {
              if (snapshot.hasData) {
                return Text(snapshot.data.title);
              } else if (snapshot.hasError) {
                return Text("${snapshot.error}");
              }

              // By default, show a loading spinner
              return CircularProgressIndicator();
            },
          ),
        ),
      ),
    );
  }
}

Please add the output of flutter doctor -v
and the full error output.
Is this related to self-signed certificates?

flutter doctor - v  gives me this
[√] Flutter (Channel beta, v0.9.4, on Microsoft Windows [Version 10.0.17134.345], locale en-IN)
• Flutter version 0.9.4 at C:\Dev\flutter
• Framework revision f37c235c32 (3 weeks ago), 2018-09-25 17:45:40 -0400
• Engine revision 74625aed32
• Dart version 2.1.0-dev.5.0.flutter-a2eb050044
[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at C:\Users\Dev\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
• All Android licenses accepted.
[√] Android Studio (version 3.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 27.1.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
[√] IntelliJ IDEA Community Edition (version 2018.2)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.2.4
• Flutter plugin version 29.0.4
• Dart plugin version 182.4505.50
[√] VS Code, 64-bit edition (version 1.23.1)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 2.14.0
[√] Connected devices (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator)
• No issues found!

Thanks for the update!

flutter doctor --android-licenses is not working for me

how  to  ignore the certificate

I found an error in SSL certificate, issue was resolved when the certificate was corrected.
You can find detail about certificate here https://digicert.com/help

Another method is
Future<http.Response> getApplicationsAPICall(CurrencyRequestModel post) async {
bool trustSelfSigned = true;
HttpClient httpClient = new HttpClient()
..badCertificateCallback =
((X509Certificate cert, String host, int port) => trustSelfSigned);
IOClient ioClient = new IOClient(httpClient);
//final response = await http.post('$url', // Previous Code
final response = await ioClient.post('$url',
headers: {
HttpHeaders.contentTypeHeader: 'application/json',
//HttpHeaders.authorizationHeader: '',
  },
  body: currencyRequestToJson(post)
  );

return response;
}

Make sure your device connect the same wifi with your computer.

I'm having the same error as mentioned above and the command
flutter doctor --android-licenses

did not worked for me. Actually I get an warning:
Warning: File C:\Users\04860826108\.android\repositories.cfg could not be loaded.

I'm trying to @ramanroy911's method, I don't know from where classes as 'HttpHeaders', 'X509Certificate', 'HttpClient' and 'CurrencyRequestModel' are imported.

// API Side
import 'package:http/http.dart' as http;
import 'dart:async';
import 'dart:io';
import 'package:http/io_client.dart';
// Model Side
import 'dart:convert';
String url = 'URL';
Future<http.Response> getApplicationsAPICall(CurrencyRequestModel post) async {
bool trustSelfSigned = true;
HttpClient httpClient = new HttpClient()
..badCertificateCallback =
((X509Certificate cert, String host, int port) => trustSelfSigned);
IOClient ioClient = new IOClient(httpClient);
final response = await ioClient.post('$url',
headers: {
HttpHeaders.contentTypeHeader: 'application/json',
//HttpHeaders.authorizationHeader: '',
  },
  body: currencyRequestToJson(post)
  );

return response;
}
String currencyRequestToJson(CurrencyRequestModel data) {
final dyn = data.toJson();
return json.encode(dyn);
}
CurrencyCommonResponseModel currencyResponseFromJson(String str) {
final jsonData = json.decode(str);
return CurrencyCommonResponseModel.fromJson(jsonData);
}
// Request Model
class CurrencyRequestModel {
String token;
CurrencyRequestModel({
this.token,
});
Map<String, dynamic> toJson() => {
"token": token,
};
}
class CurrencyCommonResponseModel {
int code;
String message;
final List data;
CurrencyCommonResponseModel({
this.code,
this.message,
this.data,
});
factory CurrencyCommonResponseModel.fromJson(Map<String, dynamic> json) {
var list = json['data'] as List;
List dataList =
list.map((i) => CurrencyResponseModel.fromJson(i)).toList();
return new CurrencyCommonResponseModel(
  code: json["code"] as int,
  message: json["message"] as String,
  data: dataList,
);

}
}
class CurrencyResponseModel {
int id;
String name;
String code;
CurrencyResponseModel({
this.id,
this.name,
this.code,
});
factory CurrencyResponseModel.fromJson(Map<String, dynamic> json) {
return new CurrencyResponseModel(
id: json["id"] as int,
name: json["name"] as String,
code: json["code"] as String,
);
}
}
Above is the complete example, CurrencyRequestModel is the data response type from API

thanks @ramanroy911 !

@ramanroy911 can i know where to put this code?? I'm new to this.

// API Side
import 'package:http/http.dart' as http;
import 'dart:async';
import 'dart:io';
import 'package:http/io_client.dart';
// Model Side
import 'dart:convert';
String url = 'URL';
Future<http.Response> getApplicationsAPICall(CurrencyRequestModel post) async {
bool trustSelfSigned = true;
HttpClient httpClient = new HttpClient()
..badCertificateCallback =
((X509Certificate cert, String host, int port) => trustSelfSigned);
IOClient ioClient = new IOClient(httpClient);
final response = await ioClient.post('$url',
headers: {
HttpHeaders.contentTypeHeader: 'application/json',
//HttpHeaders.authorizationHeader: '',
  },
  body: currencyRequestToJson(post)
  );

return response;
}
String currencyRequestToJson(CurrencyRequestModel data) {
final dyn = data.toJson();
return json.encode(dyn);
}
CurrencyCommonResponseModel currencyResponseFromJson(String str) {
final jsonData = json.decode(str);
return CurrencyCommonResponseModel.fromJson(jsonData);
}
// Request Model
class CurrencyRequestModel {
String token;
CurrencyRequestModel({
this.token,
});
Map<String, dynamic> toJson() => {
"token": token,
};
}
class CurrencyCommonResponseModel {
int code;
String message;
final List data;
CurrencyCommonResponseModel({
this.code,
this.message,
this.data,
});
factory CurrencyCommonResponseModel.fromJson(Map<String, dynamic> json) {
var list = json['data'] as List;
List dataList =
list.map((i) => CurrencyResponseModel.fromJson(i)).toList();
return new CurrencyCommonResponseModel(
  code: json["code"] as int,
  message: json["message"] as String,
  data: dataList,
);

}
}
class CurrencyResponseModel {
int id;
String name;
String code;
CurrencyResponseModel({
this.id,
this.name,
this.code,
});
factory CurrencyResponseModel.fromJson(Map<String, dynamic> json) {
return new CurrencyResponseModel(
id: json["id"] as int,
name: json["name"] as String,
code: json["code"] as String,
);
}
}
Above is the complete example, CurrencyRequestModel is the data response type from API
But we found an issue in server SSL certificate when that was corrected then we can use
//final response = await http.post('$url', // Previous Code
Find the issue in SSL from here https://digicert.com/help

All the headings have already been mentioned like // API Side, // Model Side etc
Do some research on flutter architecture

@jitenders859 @zoechi @ramanroy911 @shenglijin @acebeing
I have this problem too.
import 'dart:io';

main() async {
  HttpClient client = new HttpClient();
  var request = await client.getUrl(Uri.parse('https://shop.io.mi-img.com/app/shop/img?id=shop_88f929c5731967cbc8339cfae1f5f0ec.jpeg'));
//  var request = await client.getUrl(Uri.parse('https://www.baidu.com/'));
  var response = await request.close();
  print(response.headers);
  client.close(force: true);
}

I found that if the link is www.baidu.com, it will not report an error. What is the reason and how can I solve it?

It was happening to me because I was using Genymotion combined with NAT, once I switched over to Bridge networking, it was ok again.

This happened to me all of a sudden without any clue. My flutter app was up and running for a while and suddenly this happens. I set a validity to 9999 so this shouldn't happening. Does anyone have a similar issue?

I tried digicert and it doesn't contain any error.

this code worked well for me
`
HttpClient client = new HttpClient();
client.badCertificateCallback = ((X509Certificate cert, String host, int port) => true);
String url<EMAIL_ADDRESS>Map map = {
"email" : "email" ,
"password" : "password"
};
HttpClientRequest request = await client.postUrl(Uri.parse(url));
request.headers.set('content-type', 'application/json');
request.add(utf8.encode(json.encode(map)));
HttpClientResponse response = await request.close();
String reply = await response.transform(utf8.decoder).join();
print(reply);
`

this code worked very well for me
`HttpClient client = new HttpClient();
client.badCertificateCallback = ((X509Certificate cert, String host, int port) => true);
String url<EMAIL_ADDRESS>Map map = {
"email" : "email" ,
"password" : "password"
};
HttpClientRequest request = await client.postUrl(Uri.parse(url));
request.headers.set('content-type', 'application/json');
request.add(utf8.encode(json.encode(map)));
HttpClientResponse response = await request.close();
String reply = await response.transform(utf8.decoder).join();
print(reply);`

bool trustSelfSigned = true;
HttpClient httpClient = new HttpClient()
..badCertificateCallback =
((X509Certificate cert, String host, int port) => trustSelfSigned);
IOClient ioClient = new IOClient(httpClient);
final response = await ioClient.post('$url',
headers: {
HttpHeaders.contentTypeHeader: 'application/json',
//HttpHeaders.authorizationHeader: '',
  },
  body: currencyRequestToJson(post)
  );

return response;

Thank-you, it worked.


Does Xamarin support WorkManager now?

This is just a quick inquiry. How do I use WorkManager with Xamarin?
Is this something being worked on?

Yes. I finished the bindings and am working on nuget package. I hope it will be released soon.

WorkManager is still in preview from Google.  We are working on bindings for it in the meantime.

Theres a rc01 (release candidate) hope we could test your bindings with that version.

Any update on WorkManager support, now that Android have pushed a stable release, identical to the release candidate, on the 5th of March?

https://www.nuget.org/packages/Xamarin.Android.Arch.Work.Runtime
Just published, should work for you now :)

I added that NuGet package to my project, but I don't appear to have any access to the Xamarin.Android.Arch namespace?

@sdobart How did you do? I cannot find the Worker class, can you help please?

@elisabeth-mitton You need to change your Android project's target SDK to version 28 (9.0 Pie), and then install the NuGet Package "Xamarin.Android.Arch.Work.Runtime".

I am targeting SDK 28 and have the nuget installed yet getting the type or namespace AndroidX could not be found.  Any help please? @moljac

Can anyone comment if the Xamarin WorkManager bindings support "ListenableWorker"?
I know it supports "Worker", but that requires that all of the work be done synchronously. In order to do any asynchronous work the worker needs to sub-class "ListenableWorker" directly.
The "ListenableWorker" is supposed to have an abstract "startWork()" function, but I'm not seeing it in the class definition from the "Xamarin.Android.Arch.Work.Runtime" NuGet package.
https://developer.android.com/reference/androidx/work/ListenableWorker.html#startWork()

Can anyone comment if the Xamarin WorkManager bindings support "ListenableWorker"?
I know it supports "Worker", but that requires that all of the work be done synchronously. In order to do any asynchronous work the worker needs to sub-class "ListenableWorker" directly.
The "ListenableWorker" is supposed to have an abstract "startWork()" function, but I'm not seeing it in the class definition from the "Xamarin.Android.Arch.Work.Runtime" NuGet package.
https://developer.android.com/reference/androidx/work/ListenableWorker.html#startWork()

I was under the impression that Xamarin WorkManager's "Worker" was asynchronous.
https://devblogs.microsoft.com/xamarin/getting-started-workmanager/

@SteveFarmerJr The doWork() entry point is called from a background thread, but the execution itself is synchronous - there's no way to eg. start some asynchronous operation, giving the doWork() thread back to the pool and then resume on a different background thread when the operation is complete.
It's not a show stopper, you can call .Wait() which blocks the doWork() thread, it just makes it more difficult to work with existing async/await or IObservable C# code.

While I have not tested that it actually works, I can confirm the bindings do exist for ListenableWorker, and I am able to inherit from it.

@sdobart: Indeed, we can create a worker that will inherit from ListenableWorker, but @jalbertSyncroTech is correct, the startMethod is currently not available.
@moljac: Could you implement it? :)

@toussam Open a new issue please!

Could you implement it?

Maybe implememntation is not necessary. Maybe the method was not surfaced for some reason.
And mention me. I did part of the bindings.

Done! Thank you for your quick reply @moljac. ~
Wishing you a great weekend!


Lcg/fix el

@jdmundrawala @chef/release-engineers okay this one should really fix the el7 bug

works on my machine :+1:


Implement CSRF middleware

Q
A

Is bugfix?
❌

New feature?
✔

Breaks BC?
❌

Tests pass?
-

Fixed issues
#77

Reviewed it in depth today. While double-submit approach with cookies works most of the time, I'd like to avoid it and stick to cookie-less synchronizer approach instead.
That is how it should work:

Adding token to HTML of all forms and adding meta tag to the page should be done transparently. The middleware will wrap all other middlewares:
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
    // validate request token
    $response = $handler->handle($request);
    // generate tokens
    // add tokens to response HTML if content type is HTML
    return $response;
}

@rustamwin do you have time to correct the pull request?

@rob006 you have commented recently on Html helper regarding CSRF tokens and HTML modification. I'd like to hear your opinion on the approach above.

I'm not sure if I understand, but if you're suggesting of parsing generated HTML and adding input fields with CSRF token, then it sounds quite expensive and error prone. Wouldn't be easier to create some CsrfTokenProvider  and pass it as argument to Form?

@rustamwin do you have time to correct the pull request?

I think yes. I'll do it tomorrow

@rob006 it's not that expensive. Yii 1 used similar approach without significant performance hit.
Yii 2 switched to replacing named placeholders because parsing was, indeed, error prone.
Since we don't have globally accessible repository such as Yii::$app we can't hide passing CsrfTokenProvider around. It would potentially complicate setting things up.

@samdark I think that injecting input to forms is far more complicated than finding <title> or <body> tag. But even if we handle it, I don't feel that injecting input fields to HTML should be CsrfMiddleware responsibility (validating input and generating form are two completely different things).

I am currently viewing it as complete self-contained universal CSRF protection middleware. The main pro is that you don't have to configure anything.
CsrfTokenProvider would certainly work and it will be more reliable but you have to pass provider instance around.

CsrfTokenProvider would certainly work and it will be more reliable but you have to pass provider instance around and call getToken() explicitly in forms and in meta-tag.

FWIW If this means we'd have to manually render the CSRF hidden field in forms - I'd find this very acceptable. IMO Yii 2 often tried to do things "magically" - which may work well in 98% of the cases. But it can give you real headaches in the remaining 2% of complex scenarios.
I think it's better keep things clear and obvious even if it means that you need 1 more line to type and loose some automatism.

@samdark it could be much simpler if we replace static helpers for generating HTML with instantiable components with reference to View object. Then CsrfTokenProvider will need to be passed only to View and all HTML generators will be able to use it ($this->view->getCsrfTokenProvider()).

Likely yes.

What about this line:
$request->withAttribute('csrf_token', TokenMasker::mask($token))

then in controllers will able to use it and send to view

@rustamwin great idea.

@samdark everything is ok now?

No. See https://github.com/yiisoft/yii-web/pull/103#issuecomment-521243212. The approach described doesn't use cookies at all.

But did you say https://github.com/yiisoft/yii-web/pull/103#discussion_r312799238

I did before re-checking everything in detail again.

So, token should be stored only session?

Yes.

Done

Merged. Thank you very much!


Added Weather Application Project

Description
Uploaded the Project Files for Weather Application
Approach
I structured the website using HTML to organize content into clear sections. CSS was employed to style and layout elements for a pleasing aesthetic. JavaScript used to call the API to fetch the Weather Data.
Website Snippet

You can also checkout our Idea-Arca, the project idea bank for any languages, for open-source contributions.
Happy Contributing season!
Keep up the good work!


Replaces 'master' with 'main'

Replaced the Azure Pipeline trigger from master to main.

whoops! missed this PR – I noticed on slack you mentioned other master references. I'm pretty sure they are all from the  upstream and not really relevant to our fork. In fact this Azure pipeline is for a CI on the upstream as well and likely not an issue either way!


Use buildAndSignTransactionNew in quitStakePool

Wallet uses buildAndSignTransactionNew when quitting a stake pool.
Issue Number
ADP-2267

Closed in favor of https://github.com/input-output-hk/cardano-wallet/pull/3719


Connector management - remove technical user link from connectors

Summary
Remove connection between technical users and conenctors.

[ ] remove db connection (attribute and logic)
[ ] check backend code and ensure to cleanup the code/validations previously implemented (e.g. for connector deletion, connector details, etc.)

Connected Tickets:

https://github.com/eclipse-tractusx/portal-backend/issues/546
https://github.com/eclipse-tractusx/portal-backend/issues/547

CLOSED _ WONT DO


Bug: Physical plan does not support logical expression InSubquery(InSubquery {})

Describe the bug
When running TPCDS Q45 in with DuckDB in-memory acceleration, observe the following error:
Status { code: Internal, message: "Failed to execute query: This feature is not implemented: Physical plan does not support logical expression InSubquery(InSubquery { expr: Column(Column { relation: Some(Bare { table: \"item\" }), name: \"i_item_id\" }), subquery: <subquery>, negated: false })", metadata: MetadataMap { headers: {"content-type": "application/grpc", "date": "Wed, 11 Sep 2024 06:36:10 GMT", "content-length": "0"} }, source: None }

TPCDS queries as seen in datafusion-benchmarks
To Reproduce
Steps to reproduce the behavior:

Configure a connector with a TPCDS data source using DuckDB in-memory acceleration
Run TPCDS Q45
See error

Expected behavior
The query should complete successfully.
Testing Validation

[ ] Q45 in-memory DuckDB

Spicepod
version: v1beta1
kind: Spicepod
name: tpcds1.duckdb
datasets:
  - from: duckdb:call_center
    name: call_center
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory
  - from: duckdb:catalog_page
    name: catalog_page
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory
  - from: duckdb:catalog_returns
    name: catalog_returns
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory
  - from: duckdb:catalog_sales
    name: catalog_sales
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory
  - from: duckdb:customer
    name: customer
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory
  - from: duckdb:customer_address
    name: customer_address
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory
  - from: duckdb:customer_demographics
    name: customer_demographics
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory
  - from: duckdb:date_dim
    name: date_dim
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory
  - from: duckdb:household_demographics
    name: household_demographics
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory
  - from: duckdb:income_band
    name: income_band
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory
  - from: duckdb:inventory
    name: inventory
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory
  - from: duckdb:item
    name: item
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory
  - from: duckdb:promotion
    name: promotion
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory
  - from: duckdb:reason
    name: reason
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory
  - from: duckdb:ship_mode
    name: ship_mode
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory
  - from: duckdb:store
    name: store
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory
  - from: duckdb:store_returns
    name: store_returns
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory
  - from: duckdb:store_sales
    name: store_sales
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory
  - from: duckdb:time_dim
    name: time_dim
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory
  - from: duckdb:warehouse
    name: warehouse
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory
  - from: duckdb:web_page
    name: web_page
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory
  - from: duckdb:web_returns
    name: web_returns
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory
  - from: duckdb:web_sales
    name: web_sales
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory
  - from: duckdb:web_site
    name: web_site
    params:
      duckdb_open: tpcds1.duckdb
    acceleration:
      enabled: true
      engine: duckdb
      mode: memory

Fixed


How can I configure HTTP client error statuses for Datadog Trace on Android like in the Java library?

Question
I am trying to configure the HTTP client error statuses for Datadog Trace on Android, similar to how it's done in the Java library using the environment variable DD_HTTP_CLIENT_ERROR_STATUSES (e.g., 400-403,405,410-499). By default, the Java library reports 4xx errors as client errors for tracing, but I am unable to achieve the same behavior in the Android SDK.
I need to configure this because I have custom HTTP status codes that need to be considered as errors for tracing, and the default 4xx range doesn't cover them.
I have tried the following approaches, but none of them have worked:

Using setAdditionalConfiguration and setEventMapper in the Configuration.
Implementing the tracedRequestListener interface within DatadogInterceptor.

Could you please provide guidance on how to configure HTTP client error statuses for the Datadog Trace feature on Android?
Thank you!

Hello @ducnv3012!
It is not possible to achieve what you want with the current version of Android SDK. I've opened an internal ticket to add such functionality.
How critical is it for you?

@0xnm
Thank you for your response and for opening an internal ticket to address this functionality.
This feature is not critical for me at the moment. However, having it would make it easier to customize and manage request status codes effectively.
I appreciate your support and look forward to any updates regarding this functionality.
Thank you!


In gRPC client, ctx.log().whenComplete().thenAccept() callback not invoked when ConcurrencyLimitingClient decorator is used

I am on 1.16.2 and using gRPC client with the below decorator structure:
// Decorator 1: circuit break decorator
clientBuilder.decorator(CircuitBreakerClient.newDecorator(...))

// Decorator 2: concurrency limit decorator
val concurrencyLimit: ConcurrencyLimit = ...
val concurrencyLimitingDecorator = ConcurrencyLimitingClient.newDecorator(concurrencyLimit)
clientBuilder.decorator(concurrencyLimitingDecorator)

// Decorator 3: add a callback to `RequestLogAccess`
clientBuilder.decorator((delegate, ctx, req) => {
   // I expect this callback to always be invoked when an exception is thrown from decorator 1 or 2.
   // Please let me know if this expectation is reasonable.
   ctx.log().whenComplete().thenAccept(reqLog => { /* A callback */ })
   delegate.execute(ctx, req)
}

Observed problems

When the circuit break decorator rejects a request (by throwing a FailFast exception), the callback registered in decorator 3 is not invoked.
When the concurrency limit decorator rejects a request (e.g. by throwing a TooManyPendingAcquisitionsException exception), the callback registered in decorator 3 is not invoked.

My current workaround
I add another decorator (decorator 2.5) before decorator 3 as shown below. This way, the callback in decorator 3 is invoked when decorator 1 or 2 throws an exception.
// Decorator 1: circuit breaking decorator
// ... same as above

// Decorator 2: concurrency limit decorator
// ... same as above

// Decorator 2.5: Complete `RequestLogAccess` upon exception
clientBuilder.decorator((delegate, ctx, req) => {
  val resp = delegate.execute(ctx, req)
  resp.mapError(t => {
    // Copied from `ClientUtil.fail(ClientRequestContext ctx, Throwable cause)`
    val request: HttpRequest = ctx.request
    if (request != null) request.abort(t)
    val logBuilder: RequestLogBuilder = ctx.logBuilder
    logBuilder.endRequest(t)
    logBuilder.endResponse(t)
    t
  })
})

// Decorator 3
// ... same as above

Questions

Are these Observed problems really problems?
Do I misunderstand the semantics of ctx.log().whenComplete().thenAccept(...) callback?
How sane is my workaround? Is there any better workaround to achieve what I want?

Thanks!

Similar issue: https://github.com/line/armeria/issues/4826

Are these Observed problems really problems?

Yes, it's a problem.

Do I misunderstand the semantics of ctx.log().whenComplete().thenAccept(...) callback?

the callback must be called in all situations. You get it right.

How sane is my workaround? Is there any better workaround to achieve what I want?

I believe it's a good workaround. 👍

Within armeria internally, we try to ensure that both log and responses are completed.
e.g.)
https://github.com/line/armeria/blob/62349aba927cde2a8bf8936051b7346e7002a2d9/core/src/main/java/com/linecorp/armeria/client/HttpClientDelegate.java#L231-L239
However, this isn't necessarily true for ConcurrencyLimitingClient, which is the point I think needs fixing

code path 1: https://github.com/line/armeria/blob/62349aba927cde2a8bf8936051b7346e7002a2d9/core/src/main/java/com/linecorp/armeria/client/limit/AbstractConcurrencyLimitingClient.java#L109
code path 2: https://github.com/line/armeria/blob/62349aba927cde2a8bf8936051b7346e7002a2d9/core/src/main/java/com/linecorp/armeria/client/limit/AbstractConcurrencyLimitingClient.java#L123-L125

How sane is my workaround? Is there any better workaround to achieve what I want?

A lot of armeria decorators assume that log and HttpResponse are both completed, so we should also do the same in decorators like ConcurrencyLimitingClient. I agree with the direction of closing the ClientRequestContext#log when HttpResponse is completed with an exception.

Thanks @jrhee17 @minwoox for your comments! We are on the same page. I will proceed with the Decorator 2.5 workaround for now. Looking forward to the fix :)

This seems fixed by #4834. @jrhee17 Am I right?

I think so 😄   Thanks for checking 🙇


$watchCollection for ngModel

Maybe it's worth to change $watch to $watchCollection at this line:
https://github.com/machineboy2045/angular-selectize/blob/master/dist/selectize.js#L113
This way selectize will be picking up changes made to the model externally. I needed that functionality and it solved my problem.

Hi, thanks for merging my PR, I'm not sure but I think you need to bump the version a little bit, because bower doesn't seem to pickup the new file when installing.
Thanks again for the awesome work you did!


Fail the Dryrun when keyword not found (embedded arguments, argument as keyword name)

Hii @pekkaklarck  , thanks for the framework support. I got a small issue in the usage of embedded arguments. I request to please help me out.
In python file:
class Temp:
    def __init__(self):
        self.valid_methods = ['call_func1', 'call_func2']

    @keyword('${function_name}', types=[str])
    def process_call(self, function_name, *args, **kwargs):
         if function_name not in self.valid_methods:
                raise KeywordError(f"Keyword '{function_name}' not found.")
        print(function_name)

In robot file:
*** Settings ***
Library            Temp.py
*** Test Cases ***
[Demo1]
    Call_func1            123      123
[Demo2]
    blahblah

When I execute normally, Demo2 gets failed. But when I use the dryrun option, even though "blahblah" keyword is not to be expected as a keyword, Demo2 is pass.
I want the list of valid_methods to be treated as valid methods along with parameter check in the dryrun, so that "blahblah" usage is detected as wrong usage and fails the dryrun.

Is there any easy way to extract all keywords used in robot file and validate with the self.valid_methods list ?
That would be really helpful in case of dry run.

Keywords aren't run in the dry-run mode so that's why your explicit check isn't executed. If you know the keyword names beforehand, as it seems, you can construct the keyword name so that only the specified keyword will match:
@keyword('${name:call_func1|call_func2}')
def _(name, *args):
    print(name, 'called with', args)

The problem with the above is that if the you use the keyword in different case like Call_func1 instead of call_func1, you'll get a warning about that. That could be avoided by making the match case-insensitive by prefixing the pattern with a (?i) group, but at the moment Robot doesn't allow any regexp extensions like that. That limitation could be lifted, though, and I'll submit a separate issue about it.
If you have further questions, please use our Slack or Forum. This issue tracker is for bug reports and enhancement requests.

@pekkaklarck thanks for that!. It was helpful


feature/migrate-to-aiohttp-2

Coverage remained the same at 93.914% when pulling b6769648b1557dff439370e02ca3f17c38c70608 on feature/migrate-to-aiohttp-2 into cee47789f9f834182fa2d260bcfc9431557e4606 on develop.


Fix(web-twig): Use embed in DocsSection to fix falling tests with unclosed block

Description

Additional context

Issue reference

Before submitting the PR, please make sure you do the following

[x] Read the Contributing Guidelines.
[x] Follow the PR Title/Commit Message Convention.
[x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
[x] Ideally, include relevant tests that fail without this PR but pass with it.

coverage: 96.46% (+25.5%) from 70.949% when pulling 91c6675f34c1ea1991f8bb5f84da498d1e7efc8f on fix/docs-section-content into 2094a04e0a1d7d254f2df3260da7f0667f0e2a87 on main.

Thanks for fixing that 👏


feat: initialize Map.controls

Thank you for opening a Pull Request!

Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

[x] Make sure to open a GitHub issue as a bug/feature request before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
[x] Ensure the tests and linter pass
[x] Code coverage does not decrease (if any source code was changed)
[x] Appropriate docs were updated (if necessary)

Fixes #152  🦕

This patch implements Map.controls so users can effectively test control positioning: https://developers.google.com/maps/documentation/javascript/controls?hl=en#ControlPositioning

I submitted the changes to package-lock.json from my npm i step of the contribution guidelines. Let me know if I should back out that commit as I'm unsure of your process of updating dep locks.

@liveFreeOrCode Please see the CLA check details https://github.com/googlemaps/js-jest-mocks/pull/173/checks?check_run_id=4791078505

@liveFreeOrCode Please see the CLA check details https://github.com/googlemaps/js-jest-mocks/pull/173/checks?check_run_id=4791078505

Done, you can re-run the check, assuming it's immediate - which it seems to be as I can see my CLA in my profile.


Creating JwtSecurityToken vs using OpenID connect for Web API

I currently create JwtSecurityToken and return the token to the user after request to /account/login. I use jwt bearer middleware that handles token verification upon each request. Everything works fine. I don't use OpenID Connect nor OAuth2.
Does it also mean I use my own protocol?
Now, what would be the advantage over this approach if I used OpenID Connect (through IdentityServer or OpenIddict)?
I'm still new to these protocols and I'm only familiar with JWT (format) itself.
From my basic understanding OAuth2 or OpenID Connect is used when I want to expose my API to third parties, but what if I need to  secure my private API and I don't want anything else except my programs (native,mobile,web) to have access to it. Would those protocols still help?
I was reading one advantage is Single sign-on (SSO) but if JWT itself can be shared across domains etc. wouldn't it mean I can achieve the same without OpenID?
Please note that I know JWT is format and OpenID Connect is extended OAuth2 protocol standard that use JWT. And IdentityServer, OpenIddict are implementations of these protocols.

So, can I summarise what you're doing to see if I understand it?

You use a token for authentication that you issue yourself somehow.
That token just happens to be in the JWT format.
That token is then sent in calls to your API. (Is this from within a web application only? The same one that processes logins?)

What are you actually wanting to do? You can use OIDC to authenticate and then use the issued tokens for access a private API, that's fine. The advantage of that is you don't end up writing custom code for issuance, and you could use the same flow if you decide to write a mobile app, for instance. But you don't have to go that route, just like you don't have to use JWT, it's just standard formats and standard flows tend to have a lot of support in frameworks, so you can avoid spending time reinventing them.

@blowdart Yes you're correct. In the simplest my authentication looks like that now:

I issue tokens using JwtSecurityToken, basically something like that: https://jonhilton.net/2017/10/11/secure-your-asp.net-core-2.0-api-part-1---issuing-a-jwt/
I don't want consent screen or anything like that, that is most often used if I want it to be used by a third party.
Will using OIDC (standard flow) save me time writing client-side logic for dealing with authentication? Is it a good fit if I'm planning to use the API internally only?

So this veers into opinion now, so in my opinion
Yes, it will save you a bunch of time writing client side code, but that's offset by the time taken to implement the server side pieces needed via OpenIddict or Identity Server, which would become your login endpoint.
Your auth logic wouldn't change.

Essentially, you're implementing your own ROPC-like flow (ROPC = resource owner password credentials), which is the simplest OAuth2 flow (but also the only one not suitable for third-party client authorization). I say "ROPC-like" because it doesn't use standard-compliant parameters and doesn't take things like client authentication into account.
Whether you go with your custom thing or with an OIDC server that will do it for you, the client part will be roughly the same, as it only consists in sending a HTTP request with the username/password and extracting the access token from the response in both cases.

Well, implementing the ROPC flow is super easy and only requires a few lines of code (at least, with OpenIddict): http://kevinchalet.com/2017/01/30/implementing-simple-token-authentication-in-aspnet-core-with-openiddict/
If you're afraid of OpenIddict and IdSrv being "too heavy" for your scenario, here's the equivalent of what's done in the blog post using ASOS, the OIDC server handler being OpenIddict, which only requires a few lines of code and can be done in a totally stateless way (i.e with no backing DB):
private static readonly SecurityKey Key = new SymmetricSecurityKey(
    Encoding.UTF8.GetBytes("your HMAC key, hopefully generated using a crypto-secure RNG"));

public void ConfigureServices(IServiceCollection services)
{
    services.AddAuthentication()
        .AddOpenIdConnectServer(options =>
        {
            options.TokenEndpointPath = "/token";
            options.AllowInsecureHttp = true;

            options.SigningCredentials.AddKey(Key);
            options.AccessTokenHandler = new JwtSecurityTokenHandler
            {
                OutboundClaimTypeMap = new Dictionary<string, string>()
            };

            options.Provider.OnValidateTokenRequest = context =>
            {
                if (!context.Request.IsPasswordGrantType())
                {
                    context.Reject(OpenIdConnectConstants.Errors.UnsupportedGrantType);
                }
                else
                {
                    // Don't enforce client authentication.
                    context.Skip();
                }
                return Task.CompletedTask;
            };

            options.Provider.OnHandleTokenRequest = context =>
            {
                // Implement context.Request.Username/context.Request.Password validation here.
                // Using password derivation and time-constant comparer is STRONGLY recommended.
                if (context.Request.Username == "bob" && context.Request.Password == "bob")
                {
                    var identity = new ClaimsIdentity(context.Scheme.Name);
                    identity.AddClaim(new Claim(OpenIdConnectConstants.Claims.Subject, "Bob"));

                    var ticket = new AuthenticationTicket(
                        new ClaimsPrincipal(identity),
                        new AuthenticationProperties(), context.Scheme.Name);
                    ticket.SetResources("resource_server");

                    context.Validate(ticket);
                }
                else
                {
                    context.Reject(OpenIdConnectConstants.Errors.InvalidGrant);
                }

                return Task.CompletedTask;
            };
        })

        .AddJwtBearer(options =>
        {
            options.TokenValidationParameters.ValidAudience = "resource_server";
            options.TokenValidationParameters.ValidIssuer = "http://localhost:54540/";
            options.TokenValidationParameters.IssuerSigningKey = Key;
        });

    services.AddMvc();
}

@Necronux What is your conclusion?
Have you implemented OpenIddict or Identity Server?
I have a similar application, I only have authentication for SPA and Mobile

@marcrib I still generate JWT tokens myself(I have only 1 type of token that is access token, no refresh tokens), I only have one desktop application now that needs to communicate with the API. I didn't see any reason to use OpenIddict/IdentityServer. My API is used only internally (not by third parties). Nobody can really precise why should you use OpenIddict or identity server especially when all you need is just a simple auth for your private API.
I think you should ask yourself what problems do you try to solve using OpenID Connect and how will it be better than issuing it yourself.
Just like @PinpointTownes mentioned it is pretty much like ROPC( resource owner password credentials) flow in OAuth. So I think if you only need this, and don't need other grant types/flows it shouldn't make any difference except different standardized requests and responses.
JWT is just a token format, it's main purpose is to share claims or informations about a user.
OID uses JWT too, but it defines flows(ways of obtaining the tokens) for different set of problems when you don't really want to authenticate with username and password. It also gives you more types of tokens other than access token, like id token and refresh token. (see https://stackoverflow.com/questions/39438363/jwt-why-do-i-need-a-refresh-token and https://stackoverflow.com/questions/3487991/why-does-oauth-v2-have-both-access-and-refresh-tokens )
I think @PinpointTownes knows best when to use what so I think you might get better explanation from him.

@Necronux  thanks
check https://github.com/aspnet/Announcements/issues/307
"Authorization Server"


[ISSUE 1846] Resolve indent issue with class method named in

Description

[x] Source branch in your fork has meaningful name (not main)

Fixes Issue:
#1846 Originally, if a class method was named in, it would get reformatted one level too far. This was caused by a previous hack for the in and of keywords, which would be tokenized as OPERATORs.
The fix was to tokenize in and of as OPERATORs only if the previous token was a WORD or STRING. This was how I differentiated between in/of as a keyword or as a class method name. Note: these changes resolve the issue for the of keyword as well.
I added unit tests to test in/of in cases in which they are keywords and when they are class method names.
CURRENT DISCUSSION:

I'm under the impression that when I add unit tests to /test/data/*/test.js, corresponding tests are automatically generated for the Python implementation. Is this correct?
If so, I found that my unit tests did not fail for the Python implementation before I made any changes to that implementation. However, I created a .js file myself, ran ./tools/python-dev js-beautify on my file, and found that the issue was actually reproducible in the Python implementation.
How can I add unit tests for the Python implementation to incur a test failure before making changes to the Python implementation?

Before Merge Checklist
These items can be completed after PR is created.
(Check any items that are not applicable (NA) for this PR)

[x] JavaScript implementation
[x] Python implementation (NA if HTML beautifier)
[x] Added Tests to data file(s)
[NA] Added command-line option(s) (NA if
[NA] README.md documents new feature/option(s)

Hi, just checking back in, is there any more work to be done with this issue on my end?


Wrong units

Mega, giga, etc prefix are incorrect here. https://en.wikipedia.org/wiki/Binary_prefix

+1 for supporting decimal and binary.


Add required_approving_review_count #89 (required go-github update)

Update go-github to latest (0.18.2) for google/go-github#880
Add new required_approving_review_count property
Correct concomitant breaking changes

Opened under my acceptance test user lol. Reopening


inject a templateEngine param to the template adapter

Add a template system to the defaults, with default value handlebars to go along with the default templateAdapter: 'rendr-handlebars'.
This would allow us to directly control the version of Handlebars or of the template system that we are using from the Rendr app, instead of being coupled to what's inside the template adapter module.
This needs another PR in rendr-handlebars to be merged: https://github.com/rendrjs/rendr-handlebars/pull/52
Thoughts?

Coverage remained the same at 84.22% when pulling b160cbc59c741f2ba2fb0c7fbff7db0cb588a983 on ingiulio:injectTemplateSystemToTemplateAdapter into 5ada76ac4d284008e966037c7e0d86b83190f326 on rendrjs:master.

@rendrjs/maintainers Would like to have your input on both PRs (satellite PR – https://github.com/rendrjs/rendr-handlebars/issues/52) Thank you.

:+1:

@ingiulio another idea is to pass templateEngine as second argument, to make it backwards compatible solution and allow template adapter to decide on accepting external template engine or using bundled solution.
Example:
this.templateAdapter = require(templateAdapterModule)(templateAdapterOptions, templateEngine);

@alexindigo I like that idea a lot. I'll change this as you suggested.

Coverage increased (+0.28%) to 84.5% when pulling 79d7918621411ca7145607b015111180e8e85e4c on ingiulio:injectTemplateSystemToTemplateAdapter into 5ada76ac4d284008e966037c7e0d86b83190f326 on rendrjs:master.

Coverage increased (+0.28%) to 84.5% when pulling 8eb46e1a61caf48fef63839e07c4109ebc1296ed on ingiulio:injectTemplateSystemToTemplateAdapter into 5ada76ac4d284008e966037c7e0d86b83190f326 on rendrjs:master.

:+1:

Coverage increased (+0.28%) to 84.5% when pulling 3d9de1a3b45144a15c62bc9b661dfc75f1209215 on ingiulio:injectTemplateSystemToTemplateAdapter into 5ada76ac4d284008e966037c7e0d86b83190f326 on rendrjs:master.

LGTM.  There's a merge conflict now -- care to rebase?

@spikebrehm you're alive?! haha. :)
I agree about the rebase - once we get this PR in I'll do a final test run through and then release 1.0.4 today :dancers:

@spikebrehm @saponifi3d PR updated. Thank you.

Coverage remained the same at 84.5% when pulling 84a7ddd29b23bc1d0b47dc6703943c2bd88bb4ef on ingiulio:injectTemplateSystemToTemplateAdapter into e312db824ddfef0eda364b201c9774eb663b727a on rendrjs:master.

@saponifi3d just a reminder: this one will need https://github.com/rendrjs/rendr-handlebars/pull/52 merged too


Update 1-front-controller.md

Some changes

I think for the time being it is explained enough by the paragraph above. Maybe I'll add sections about how to set up on different environments and then add more info there. Thanks for the PR anyways


feat(delivery): managed delivery controller and storage

Replacing the old "intent" things with a new Delivery based api and model. Any feedback on naming or API structure would be great.
Per @ajordens suggestion I've slipped a lot of the apis under the /applications path.
This is a first stab at defining a managed delivery config.
Assumptions:

each application can have more than one config
you can CRUD them
you need permissions to do things

Please take a look at the objects and tell me what you think. Some things have been left as maps because I'm not sure how we should define them.
An example of a delivery config:
{
	"application": "emburnstest",
	"lastModifiedBy"<EMAIL_ADDRESS>	"artifacts": [
		{
			"packageName": "spin-package",
			"packageType": "deb",
			"bakeConfig": {
				"baseOs": "xenial",
				"baseLevel": "release",
				"vmType": "hvm",
				"storeType": "ebs"
			},
			"environments": [{
				"name": "test",
				"deployWith": {
					"pipelineId": "my-pipeline-id",
					"pipelineConfig": {}
				},
				"constraints": [
					"pls deploy all the time"
				],
				"order": 1
			}]
		}
	],
	"environments": [
		{
			"name": "test",
			"infrastructure": [
				{
					"type": "cluster"
				}
			]
		}
	]
}

I'm going to follow Cam's suggestion and take a lot of the typing out of here. We will type in Keel.


Vote - Select: No results are displayed

the JSON contains no results either:
{
  "MainTitle": "Colours",
  "TitleFr": "",
  "TitleDe": "",
  "NumberOfVotes": 2,
  "Results": [
    {
      "Title": "Colours"
    }
  ]
}

If I remember correctly, there's a threshold of votes under which the system is designed NOT to display results, because voting would be automatically public.
2 votes would qualify: if I control one vote, I can tell what the other person voted.
Can you reproduce this with more than 2 votes ?

same for 3 votes - also, going by that reasoning we shouldn't even be able to close an election with 2 votes, no?


Questions about inferencing

Sorry to bother you ~ I want to know how to obtain the noise Ht during the inference phase? As far as I understand, during the inference phase, we only have the erroneous current point cloud and the template point cloud. Thank you!

Hi,
At Lines 91-100 in test.py, I have given the noise Ht: "H_t = H_noise @ H_t"
Please check.


add option to set trace level

This allows the user to configure the verbosity of trace of messages exchanged between client and the server.
The user can set this in User Settings (press ctrl/cmd+,) and then searching for solidity related configuration.

Thank you @chioni16


Asciidoc include:: generates link instead content

// review.adoc:
include::project.004.adoc[]
$echo $OSTYPE
darwin14 #OSX Yosemite
$ asciidoctor  review.adoc  #works properly

Also curious about this. Should this be possible at all?


Ordinal Net

Hi! Thanks for the nice work! If I understand it correctly, the released code only contains the CVAE part of the ICCV paper? Could I find the Ordinal Net somewhere?

Hi @zhipeng-fan,
Sorry for the late reply. Yes, the code only contains the CVAE implementation. The Ordinal Net detections are provided in the Google Drive data, but there is no Ordinal Net code. @pavanteja295 wrote most of it, he might know more it.


DEPRECIATION NOTICE

Click to expand!
Issue Type
Others
Have you reproduced the bug with TF nightly?
Yes
Source
source
Tensorflow Version
Any
Custom Code
No
OS Platform and Distribution
No response
Mobile device
No response
Python version
No response
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current Behaviour?
WARNING! C++ is deprecated, use Rust instead

Standalone code to reproduce the issue
..

Relevant log output
No response

guy is a misunderstood genius


⚠ Bofrost.fr has degraded performance

In b6bf18f, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1766 ms

Resolved: Bofrost.fr performance has improved in 6ff09a0.


featuretools for time series data?

Hi all,
I was wondering, is it make sense to use featuretools for time series data?
For example:
        Time,                             DayOfWeek, Target
0	2014-01-01 01:41:50	1                   0
1	2014-01-01 02:06:50	2                   0
2	2014-01-01 02:31:50	3                   0
3	2014-01-01 02:56:50	4                   0
4	2014-01-01 03:21:50	5                   1

Hi @unnir,
It's definitely makes sense to use Featuretools for timeseries data! Here's example code to get you started.
data = pd.DataFrame({'Time': ['2014-01-01 01:41:50',
                            '2014-01-01 02:06:50',
                            '2014-01-01 02:31:50',
                            '2014-01-01 02:56:50',
                            '2014-01-01 03:21:50'],
                    'Target': [0, 0, 0, 0, 1]})
data['index'] = data.index
es = ft.EntitySet('My EntitySet')
es.entity_from_dataframe(entity_id='main_data_table',
                         index='index',
                         dataframe=data,
                         time_index='Time')

from featuretools.primitives import Minute, Hour, Day, Month, Year, Weekday
fm, features = ft.dfs(entityset=es,
                      target_entity='main_data_table',
                      trans_primitives=[Minute, Hour, Day, Month, Year, Weekday])

If there were more data associated with this, it would be important to get cutoff_times set up before calling DFS. That would ensure that only valid data (as organized by time!) is being used to generate features.
I'm going to close this issue for now. If you have more questions about getting set up feel free to continue to ask on gitter.

Wow, thank you for your answer!


New version: ActionModels v0.4.4

Registering package: ActionModels
Repository: https://github.com/ilabcode/ActionModels.jl
Created by: @PTWaade
Version: v0.4.4
Commit: 84533b4681d65345a9651316ef7a74ffbee1d638
Reviewed by: @PTWaade
Reference: https://github.com/ilabcode/ActionModels.jl/commit/84533b4681d65345a9651316ef7a74ffbee1d638#commitcomment-139247774
Description: A Julia package for behavioural modeling

[merge approved]


Add hakman as a reviewer

I'd like to help out with NPD as a reviewer.

[x] Member for at least 3 months
[x] Primary reviewer for at least 5 PRs to the codebase (reviews)
[x] Reviewed or merged at least 20 substantial PRs to the codebase (reviews + contributions and testing).
[x] Knowledgeable about the codebase

/cc @vteratipally @Random-Liu

/test pull-npd-e2e-node

Please let me know if there's any objection to merging this PR.
/assign @andyxning @wangzhen127 @xueweiz @vteratipally.
/cc @dims

/approve
/lgtm

Thank you for your contribution.
/cc @Random-Liu
/lgtm
/approve

Thanks @Random-Liu! 😄


Rename files to camel case

Resolves https://github.com/springload/react-accessible-accordion/issues/89 (mixed file naming styles).

Coverage remained the same at 100.0% when pulling a270818929f20c2c5cfeb7093c30f2c65f17ee77 on chore/rename-files into 9cb766da11166c293ecf2c775db0545637531823 on master.

Yeah it was somewhat arbitrary whether I went with camel or kebab - it was mostly just about consistency. My personal opinion though: given that React components are always camel case and most files in a react project are component definitions, then why would I choose a naming schema which doesn't match that? It makes sense to me from a practical standpoint too, which is that it's easy to cmd + t (or whatever is your IDE's equivalent) to the components I want if I simply have to type the name of the component. No additional cognitive overhead required to map that to the kebab-case equivalent.


Use typescript (?)

Shall we use typescript? Pros and cons please ...

Talking to others it sounds like typescript is a good idea. So we shall do it.

@olayway we haven't yet switched to this have we? I think the plan is to do so and probably requires some minor setup. If so can we note the commits and/or updates?

@olayway could we do a quick look (1h or so) to get a sense of how much work this is and the pros/cons? I note that eg. pliny uses typescript and seems to be direction of travel for many projects.

@rufuspollock this is still not working in the template due to the jsx field being overridden by Next. Contentlayer does have an example repo with Next + TS, but they are not using MDX, but MD, so jsx set to preserve doesn't cause any problem as esbuild-mdx doesn't parse any JSX, only MD.


Fix for #416, compilation warnings for implicit-falltrough on gcc7.1

After checking external/rapidjson/internal/regex.h, I've decided to copy same pragmas instead of relying on the inclusion of regex.h because regex.h pops back the pragmas at the end of the file (although not for gcc), and thus it would be better to change these pragmas per-file basis.
It passes all the tests with gcc7.1.1 on my machine and a simple test code generates no warnings on clang4.0
However whole project fails to build on clang4.0 giving an unrelated error. I will check it as well and send a pull request if I can.
And a suggestion: maybe we can define a macro like CEREAL_FALLTHROUGH that expands to C++17 counterpart if it is defined and to nothing otherwise.

Ignore this patch for now, as it seems that this one fixes the problem for gcc7.1 but gives an error for previous versions since implicit-fallthrough is not available on them. I'll fix it and send an another patch.