error in RSI indicator

I have problem with pandas ta
After run this statement
dp.ta.rsi(dp['close'],length=14)
error show this one
TypeError: rsi() got multiple values for argument 'length'
version of pandas ta is 0.2.23b
please help me to solve my problem
thanks

Hi peymanvh,
Check this snippet of code:
import pandas_ta as ta
import yfinance as yf
msft = yf.Ticker("MSFT")
hist = msft.history(period="1y")
ta.rsi(hist['Close'], length=14)

Is the problem occurs also with this code?
What happens if you delete the 'dp' at the beginning of your code?
dp.ta.rsi(dp['close'],length=14)

Hi peymanvh,
Check this snippet of code:
import pandas_ta as ta
import yfinance as yf
msft = yf.Ticker("MSFT")
hist = msft.history(period="1y")
ta.rsi(hist['Close'], length=14)

Is the problem occurs also with this code?
What happens if you delete the 'dp' at the beginning of your code?
dp.ta.rsi(dp['close'],length=14)

Hello @peymanvh,
Thanks for using Pandas TA. It appears that your Pandas DataFrame is called dp. There are two simple ways to get what you need. I would pick one way or the other, either the Conventional or DataFrame Extension style.
Conventional Use (Like TA Lib)
dp = # your DataFrame
rsi14 = ta.rsi(dp['close']) # By default, the length is 14
print(rsi14)

OR if you want to manually append RSI to your DataFrame
dp = # your DataFrame
dp['RSI14'] = ta.rsi(dp['close']) # By default, the length is 14
print(dp)

DataFrame Extension
The DataFrame Extension automatically uses the default series of the indicator, 'close' in this case.
dp = # your DataFrame
rsi14 = dp.ta.rsi()
print(rsi14)

OR if you want to manually append RSI to your DataFrame
dp = # your DataFrame
dp['RSI14'] = dp.ta.rsi()
print(dp)

OR if you want to automatically append RSI to your DataFrame
dp = # your DataFrame
dp.ta.rsi(append=True)
print(dp)

Also, use the length parameter if you need a length different from it's default value. For more information about an indicator, use help(ta.rsi).
Thanks @YuvalWein for also providing an example that will work.
Hope this helps and please let us know if this works for you.
Thanks,
KJ

Hello @peymanvh,
Thanks for using Pandas TA. It appears that your Pandas DataFrame is called dp. There are two simple ways to get what you need. I would pick one way or the other, either the Conventional or DataFrame Extension style.
Conventional Use (Like TA Lib)
dp = # your DataFrame
rsi14 = ta.rsi(dp['close']) # By default, the length is 14
print(rsi14)

OR if you want to manually append RSI to your DataFrame
dp = # your DataFrame
dp['RSI14'] = ta.rsi(dp['close']) # By default, the length is 14
print(dp)

DataFrame Extension
The DataFrame Extension automatically uses the default series of the indicator, 'close' in this case.
dp = # your DataFrame
rsi14 = dp.ta.rsi()
print(rsi14)

OR if you want to manually append RSI to your DataFrame
dp = # your DataFrame
dp['RSI14'] = dp.ta.rsi()
print(dp)

OR if you want to automatically append RSI to your DataFrame
dp = # your DataFrame
dp.ta.rsi(append=True)
print(dp)

Also, use the length parameter if you need a length different from it's default value. For more information about an indicator, use help(ta.rsi).
Thanks @YuvalWein for also providing an example that will work.
Hope this helps and please let us know if this works for you.
Thanks,
KJ

Hello @peymanvh,
Since you have not responded at all, I assume @YuvalWein and I have provided enough information to help you use the rsi indicator. If you do not respond within a couple of days, I will be closing this Issue.
Best Regards,
KJ

Hello @peymanvh,
Since you have not responded at all, I assume @YuvalWein and I have provided enough information to help you use the rsi indicator. If you do not respond within a couple of days, I will be closing this Issue.
Best Regards,
KJ

Hello Kelvin(twopirllc), I think you don't understand peymanvh's question:
he  has a  problem with pandas ta
After run this statement
dp.ta.rsi(dp['close'],length=14)
error show this one
TypeError: rsi() got multiple values for argument 'length'.
Obviously, he has already 100% followed your way to call up the function RSI.
But the problem is: it gets  error " multiple values for argument 'length'", he don't know why such error is occuring.
How to fix it?  That's his question.
But you answer him: how to call up pandas-ta function, obviously he knows it.
I also have the same question when I am calling up the function kama, it also occures a error:
kama() got multiple values for argument 'length'.
The below is my code:
data1['KAMA5']= data1.ta.kama(data1['closePrice'], length=5)
data1['KAMA10']=data1.ta.kama(data1['closePrice'], length=10)
could you please help to support how to fix this error?
Thank you very much.

Hello @Stone321284 ,

Upgrade to the developemnt version if you have not already.
Also, let's not piggyback on such an old issue... please fill out a seperate Issue

Kind Regards,
KJ


ModuleNotFoundError occurred during training

The following error occurs when running the dist_train_semi.sh script.
Traceback (most recent call last):
File "tools/train_semi.py", line 15, in
from mmaction.apis import train_model
File "/home/ljp/video-semisup/mmaction/apis/init.py", line 1, in
from .inference import inference_recognizer, init_recognizer
File "/home/ljp/video-semisup/mmaction/apis/inference.py", line 13, in
from mmaction.models import build_recognizer
File "/home/ljp/video-semisup/mmaction/models/init.py", line 21, in
from .recognizers import (AudioRecognizer, BaseRecognizer, Recognizer2D,
File "/home/ljp/video-semisup/mmaction/models/recognizers/init.py", line 14, in
from .recognizer3d_semi_appsup_tempsup_simclr_crossclip import Semi_AppSup_TempSup_SimCLR_Crossclip_Recognizer3D
ModuleNotFoundError: No module named 'mmaction.models.recognizers.recognizer3d_semi_appsup_tempsup_simclr_crossclip'

Please pull again and check if the bug is fixed. I tried to clean the code but still need several rounds. Please let me know if you have any other issues.


Media-Selection param types

Refactor to collection (current comma seperated list).
Dont forget to update documentation: https://github.com/sulu-cmf/docs/blob/master/developer-documentation/500-assets/media-selection.md

@wachterjohannes I guess this is already fixed, there are no comma separated list in the documentation

@danrot sorry but that is not fixed you can read under https://github.com/sulu-cmf/docs/blob/master/developer-documentation/500-assets/media-selection.md#params that the types are comma-seperated

seems to be no problem until now so i will close this issue


Bad format string error if environment variable contains a %

Describe the problem
If you use a TTY::Command and have a % in one of your environment variables, you will get a malformed format string error.
Steps to reproduce the problem
require 'tty-command'
cmd = TTY::Command.new
cmd.run("true", env: { "foo": "%16" })

Actual behaviour
Traceback (most recent call last):
        7: from /tmp/test.rb:3:in `<main>'
        6: from /Users/sam/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/tty-command-0.9.0/lib/tty/command.rb:104:in `run'
        5: from /Users/sam/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/tty-command-0.9.0/lib/tty/command.rb:185:in `execute_command'
        4: from /Users/sam/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/tty-command-0.9.0/lib/tty/command/process_runner.rb:41:in `run!'
        3: from /Users/sam/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/tty-command-0.9.0/lib/tty/command/printers/pretty.rb:20:in `print_command_start'
        2: from /Users/sam/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/tty-command-0.9.0/lib/tty/command/cmd.rb:121:in `to_command'
        1: from /Users/sam/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/tty-command-0.9.0/lib/tty/command/cmd.rb:87:in `evars'
/Users/sam/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/tty-command-0.9.0/lib/tty/command/cmd.rb:87:in `%': malformed format string - %" (ArgumentError)

Expected behaviour
The command to return successfully with no error.
Describe your environment

OS version: Mac OSX Catalina
Ruby version: Ruby 2.6.4
TTY version: 0.9.0

Thanks so much for the quick turnaround on this. 🙏


HTTP 500 Internal error when trying to use PubSub

Hi Guys,
I'm trying to get PubSub working in PHP, have followed the Google PHP client library instructions, including creating an OAuth Service Account (and downloading the p12 and or json key).
When I try to make PubSub calls I get HTTP 500 Internal error response.
When I do the same calls via API Explorer it all works fine...
I assume it's not an Auth problem, as when I remove the auth code, I get Auth related errors, but I don't get them normally... I've also tried both p12 and json file methods of auth, both same results...
 How can I get this to work?
Code below with sensitive text modified:
<?php

set_include_path(get_include_path() . PATH_SEPARATOR . '<path_to_google-api-php-client>/src');

session_start();

/************************************************
  Make an API request authenticated with a service
  account.
 ************************************************/
require_once '<path_to_google-api-php-client>/src/Google/autoload.php';

$client_id = '<myclientid>.apps.googleusercontent.com'; //Client ID
$service_account_name =<EMAIL_ADDRESS>//Email Address
$key_file_location = '<path_to_p12_keyfile>.p12'; //key.p12
$json_key_file_location = '<path_to_json_keyfile>.json'; // key.json

if ($client_id == '<>'
    || !strlen($service_account_name)
    || !strlen($key_file_location)) {
  echo missingServiceAccountDetailsWarning();
}

$client = new Google_Client();
$client->setApplicationName("Dan_Test_Pub_Sub_Client_App");

if (isset($_SESSION['service_token'])) {
  $client->setAccessToken($_SESSION['service_token']);
  echo 'set access token from existing session service_token
';
}

$cred = $client->loadServiceAccountJson($json_key_file_location, array('https://www.googleapis.com/auth/pubsub', 'https://www.googleapis.com/auth/cloud-platform'));

/*
$key = file_get_contents($key_file_location);
$cred = new Google_Auth_AssertionCredentials(
    $service_account_name,
    array('https://www.googleapis.com/auth/pubsub', 'https://www.googleapis.com/auth/cloud-platform'),
    $key
);
*/
$client->setAssertionCredentials($cred);
if ($client->getAuth()->isAccessTokenExpired()) {
  $client->getAuth()->refreshTokenWithAssertion($cred);
  echo 'access token expired, to refresh token
';
}

$_SESSION['service_token'] = $client->getAccessToken();
echo 'set SESSION service token from getAccessToken
';
//var_dump($client->getAccessToken());

$pubsubService = new Google_Service_Pubsub($client);

try {

$resp = $pubsubService->projects_topics->listProjectsTopics('projects/dan-test-pub-sub');
//$resp = $pubsubService->projects_subscriptions->listProjectsSubscriptions('projects/dan-test-pub-sub');

  } catch (Google_Service_Exception $e) {
    print "Error code :" . $e->getCode() . "\n";
    // Error message is formatted as "Error calling <REQUEST METHOD> <REQUEST URL>: () <MESSAGE OR REASON>".
    print "Error message: " . $e->getMessage() . "\n";
  } catch (Google_Exception $e) {
    // Other error.
    print "An error occurred: (" . $e->getCode() . ") " . $e->getMessage() . "\n";
  }

?>

Can you try it through the Api explorer: https://developers.google.com/apis-explorer/#p/ - make the same calls, then we can compare the output and see if the client library is doing something wrong (in which case this is the right place for a bug) or the API has a problem (it which case filing an issue with the cloud pub/sub team is best).

I recommend that you use https://github.com/googlecloudplatform/google-cloud-php

I tried to reproduce it but failed. The code is as follows:
<?php

require_once __DIR__ . '/vendor/autoload.php';

$client = new Google_Client();
$client->setApplicationName('PubsubSTest');
$client->useApplicationDefaultCredentials();
$client->setScopes(array(
    'https://www.googleapis.com/auth/cloud-platform'
));

$pubsub = new Google_Service_Pubsub($client);

$resp = $pubsub->projects_topics->listProjectsTopics('projects/tmatsuo-test');

var_dump($resp);

@danbyrne I'm closing this, but feel free to re-open with a repro. Thanks!


[RFC] Built in react client

To see an example possible client usage check out this code
Using genql with generic react fetching libraries like react-query and swr is not optimal:

the useQuery and useSwr functions use genetics to get the result types, this way typescripts loses auto completion for the request fields when you use an inline function (because of a cyclic generic inference, I thought my vscode was buggy but it behaves this way by design)
there is no clear way to make mutations like in apollo, where you can defer the mutation execution (when a button is clicked for example)
there is currently no way to handle subscription using hooks, (like useSubscription from urql does)

This is why I want to build a native react client based on swr, the exported functions will be similar to the apollo ones, but caching, polling, etc will be handles by swr
The exported functions will be

useQuery, tiny wrapper around useSwr
useMutation, does not cache results, can be deferred unit an execute function
useSubscription, similar to useSubscription from urql, gets a reducer argument that aggregates subsequent subscription results into an accumulator

This client will be generated when you add a --react flag, it will require an swr peer dependency

Let me know if you have other ideas for the client

Another great addition would be usePaginatedQuery
Given that i completely control the queries i can make assumptions about types, this means that certain hooks can take only a certain query: in this case a query that returns a relay connection with a pageInfo field
This way the hook contains the pagination logic and is still type safe
It would look something like

const Page = () => {
    const { items, nextPage } = usePaginatedQuery(
        { itemsPerPage: 10 },
        ({ first, after }) => {
            return {
                users: [
                    {
                        first,
                        after,
                    },
                    {
                        edges: {
                            ...everything,
                        },
                        pageInfo: {
                            ...everything,
                        },
                    },
                ],
            }
        },
    )

    return (
        <div>
            {items.map((x) => x.name)}
            <button onClick={nextPage}>more</button>
        </div>
    )
}

the useQuery and useSwr functions use genetics to get the result types, this way typescripts loses auto completion for the request fields when you use an inline function (because of a cyclic generic inference, I thought my vscode was buggy but it behaves this way by design)

IMO this is not a big issue since it can just be avoided by declaring a function not inline, and it's what I naturally do when I follow React Query docs, e.g.
import { useQuery } from "react-query";
import QueryCacheKey from "@/constants/queryCacheKeys";
import useSdk from "@/api/sdk";

export default function useItem(id?: string) {
  const sdk = useSdk();

  const getItem = (key: string, id?: string) => {
    return sdk.query({
      item: [
        {
          id,
        },
        {
          id: true,
          name: true,
          description: true,
          code: true,
          created_at: true,
          updated_at: true,
          property_values: [
            {},
            {
              item_property_id: true,
              text: true,
              number: true,
            },
          ],
        },
      ],
    });
  };

  return useQuery([QueryCacheKey.Item, id], getItem, { enabled: !!id });
}

export type ItemResult = ReturnType<typeof useItem>["data"];

there is no clear way to make mutations like in apollo, where you can defer the mutation execution (when a button is clicked for example)

What do you mean here by "defer the mutation execution"?

there is currently no way to handle subscription using hooks, (like useSubscription from urql does)

I think that subscriptions need more thinking than normal queries. For example, if you have a paginated query, how do you make it realtime with subscription? When using Apollo I used to just swap useQuery with useSubcription, but this is less than ideal, as if just one item updates, the entire page is fetched. And it's also not very clear what happens if something updates out of the range that you are subscribing to.
For my apps, I tend to use subscriptions as a notifier (e.g. I listen to item updates ordered by created_at with limit 1). When I receive the notification, I can decide to either invalidate the cache for my paginated query, or just update the piece of cache that is affected using subscription data. In this scenario I don't really need to cache the subscription itself, I just use it as an event notifier to know when something changes in realtime.

What do you mean here by "defer the mutation execution"?

There is an example here
https://github.com/remorses/genql/blob/ab0ac332c991722b8fab8a866cab9461e77fb4ee/example-usage/pages/builtin-client/mutation.tsx#L12

For example, if you have a paginated query, how do you make it realtime with subscription?

There is an example of useSubscription here
https://github.com/remorses/genql/blob/ab0ac332c991722b8fab8a866cab9461e77fb4ee/example-usage/pages/builtin-client/subscription.tsx#L19
Above i don't pass any reducer function, but you could get so it works just like a last update notifier
If you instead pass a reducer that accumulates the subscription results you could get a stream of notification for example
    const { data, loading, error } = useSubscription(
        {
            onNewMessage: {
              message: true,
           }
        },
       (acc: string[], item) => [...acc, item.message],
    )

I think this is pretty extensible, do you have any other ideas for useSubscription?
I am still trying these concepts on my application to test all the different use cases, i am open to changes

There is an example here
https://github.com/remorses/genql/blob/ab0ac332c991722b8fab8a866cab9461e77fb4ee/example-usage/pages/builtin-client/mutation.tsx#L12

I think I'm not getting it. What problem is this trying to solve that something like React Query has? The syntax looks almost identical to me

There is an example of useSubscription here
https://github.com/remorses/genql/blob/ab0ac332c991722b8fab8a866cab9461e77fb4ee/example-usage/pages/builtin-client/subscription.tsx#L19
Above i don't pass any reducer function, but you could get so it works just like a last update notifier
If you instead pass a reducer that accumulates the subscription results you could get a stream of notification for example
    const { data, loading, error } = useSubscription(
        {
            onNewMessage: {
              message: true,
           }
        },
       (acc: string[], item) => [...acc, item.message],
    )

I think this is pretty extensible, do you have any other ideas for useSubscription?
I am still trying these concepts on my application to test all the different use cases, i am open to changes

How do you update the cache when you receive new data? Are you planning to expose swr mutate function?

Why do you consider general purpose libraries instead of a more specialized one like urql?
swr and react-query are awesome, but they aren't build around graphql.
The main advantage I see picking urql is that the cache is built around the graphql schema, so you have a lot of optimizations and features for free. Also it's very flexible and extendable with its exchange system.

Sorry for the double post but we have now a common type standardized around client consumption : https://github.com/dotansimha/graphql-typed-document-node
I think the best course of action would be to end with a TypedDocumentNode, this is what tql is doing and it seems to work great! So we can build the query using genql syntax but defer the execution to any client compatible with TypedDocumentNode!

^ I'm also interested in this - we're looking for a typesafe query client that can generate TypedDocumentNode so it can be used with any client


[lint/regtool/topgen/ralgen] Introduce --nowarn verbosity level

The regtool and topgen tools output several warnings that can
potentially clutter up the logs when called through other scripts like
ralgen and csr_assert_gen.
In particular, this causes issues when these scripts are called as part
of the fusesoc lint flows, since these warnings make it into the fusesoc
build log. It is not possible for the lint log parser script to tell
where these warnings came from, and causes the lint runs to block on
these warnings during CI.
The workaround in this commit introduces a '--nowarn' verbosity level
in both topgen and the regtool. This switch is set when called from
within other scripts such as csr_assert_gen or ralgen.
Signed-off-by: Michael Schaffner<EMAIL_ADDRESS>

Hopefully this won't be needed, now that #5026 is merged.


Alert users who input building size of 7 or less units to the City's services

User's who try to sign up a building with 7 or less units will be alerted that they qualify for City provided service and directed to the City's website.

City get's data from spreadsheets that they update every two weeks. Not able to get unit data on our site. Add to information section that if building is 7 units or less, they already qualify for City Provided services. Need website links


[TKW] Fix types and shapes for accumulate on non IV

Currently broken on igemm because ExtractSlice used in iGEMM semantic needs to follow upstream. We need to implement an extract/indexing op for semantic required in local thread reduction


xSchedule lights stuttering

I am having an issue where my lights are kind of stuttering.  They will play fine for a few seconds then pause then continue and so on.  If I restart the Colorlight plugin it seems to resolve it for a while.  It may be fine the rest of the night but I have to restart it pretty much every night sometimes more than once.  In talking with a couple of other people we had a question about the P5 matrix setup in xLights.  Mine was setup to work with a Pi during my COVID show and when I moved back to xSchedule I set it up based on the video I found about the plugin and it worked.  My P5 Matrix however is still setup with the address of the Pi as it was never mentioned in the video aside from using the absolute addressing.  What address should the P5 controller be setup as on the controllers tab?  Here is how I am currently configured:

Try to v5, I make the code an async method to avoid lagging


Uncaught Error: Cannot call function 'getPosition' on missing remote object 1202Error: Cannot ca...

[Enter steps to reproduce:]

...
...

Atom: 1.32.0 x64
Electron: 2.0.9
OS: Mac OS X 10.14
Thrown From: Atom Core
Stack Trace
Uncaught Error: Cannot call function 'getPosition' on missing remote object 1202
Error: Cannot call function 'getPosition' on missing remote object 1202
at throwRPCError (/Applications/Atom.app/Contents/Resources/electron.asar/browser/rpc-server.js:143:17)
at EventEmitter. (/Applications/Atom.app/Contents/Resources/electron.asar/browser/rpc-server.js:354:7)
at emitMany (events.js:147:13)
at EventEmitter.emit (events.js:224:7)
at WebContents. (/Applications/Atom.app/Contents/Resources/electron.asar/browser/api/web-contents.js:295:13)
at emitTwo (events.js:126:13)
at WebContents.emit (events.js:214:7)
At /Applications/Atom.app/Contents/Resources/electron.asar/renderer/api/remote.js:221

Error: Cannot call function 'getPosition' on missing remote object 1202
Error: Cannot call function 'getPosition' on missing remote object 1202
    at throwRPCError (/Applications/Atom.app/Contents/Resources/electron.asar/browser/rpc-server.js:143:17)
    at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/electron.asar/browser/rpc-server.js:354:7)
    at emitMany (events.js:147:13)
    at EventEmitter.emit (events.js:224:7)
    at WebContents.<anonymous> (/Applications/Atom.app/Contents/Resources/electron.asar/browser/api/web-contents.js:295:13)
    at emitTwo (events.js:126:13)
    at WebContents.emit (events.js:214:7)

    at Object.exception (/Applications/Atom.app/Contents/Resources/electron.asar/renderer/api/remote.js:221:30)
    at metaToValue (/Applications/Atom.app/Contents/Resources/electron.asar/renderer/api/remote.js:225:28)
    at Object.remoteMemberFunction (/Applications/Atom.app/Contents/Resources/electron.asar/renderer/api/remote.js:125:16)
    at AtomEnvironment.getWindowDimensions (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:637436)
    at AtomEnvironment.storeWindowDimensions (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:637851)
    at WindowEventHandler.handleWindowBlur (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:282309)

Commands
     -5:22.4.0 editor:newline (input.hidden-input)
     -5:21.6.0 core:paste (input.hidden-input)
     -5:21.3.0 core:save (input.hidden-input)
     -5:17.1.0 remote-ftp:upload-selected (li.file.entry.list-item.selected)
  9x -1:52.4.0 core:backspace (input.hidden-input)
     -1:37 core:move-up (input.hidden-input)
  2x -1:36 core:move-down (input.hidden-input)
  2x -1:35.4.0 core:backspace (input.hidden-input)
     -1:34.5.0 core:save (input.hidden-input)
     -1:34 emmet:insert-formatted-line-break-only (input.hidden-input)
     -1:34 editor:newline (input.hidden-input)
     -1:33.5.0 core:save (input.hidden-input)
     -1:30.9.0 emmet:insert-formatted-line-break-only (input.hidden-input)
     -1:30.9.0 editor:newline (input.hidden-input)
     -1:30.5.0 core:save (input.hidden-input)
     -1:22.2.0 remote-ftp:upload-selected (li.file.entry.list-item.selected)

Non-Core Packages
atom-beautify 0.33.4
busy-signal 1.4.3
color-picker 2.3.0
emmet 2.4.3
file-icons 2.1.25
highlight-selected 0.14.0
intentions 1.1.5
japanese-menu 1.14.0
linter 2.2.0
linter-ui-default 1.7.1
minimap 4.29.9
multiline-tab 0.2.1
php-cs-fixer 4.1.1
php-integrator-autocomplete-plus 1.6.2
pigments 0.40.2
project-manager 3.3.6
remote-ftp 2.2.0
sass-autocompile 0.13.5
split-diff 1.5.3
sync-settings 0.8.6
touchbar 0.12.0

Thanks for contributing!
We noticed that this looks like a duplicate of https://github.com/atom/atom/issues/16630 so you can subscribe there for updates if you'd like (we believe that this will be fixed in a future Electron upgrade).

Because we treat our issues list as the Atom team's backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn't an exact duplicate but is closely related.
For information on how to use GitHub's search feature to find out if something is a duplicate before filing, see the How Can I Contribute? section of the Atom CONTRIBUTING guide.

Thanks for letting me know! I will check the other thread.


Release new version of stac-pydantic

With STAC 1.0 support (#85) nearly closed out, we should prepare to release a new version.
@geospatial-jeff can you make the stac-utils pypi user a co-maintainer of the stac-pydantic pypi repo? That way we can publish similar to stactools, pystac etc.
I can set up the GitHub actions to publish on new GitHub releases, and then make the release once everything is in for STAC 1.0.

@lossyrob sent the invite to stac-utils pypi user.

@geospatial-jeff accepted!
Would this next release be 2.0.0?

Released: https://pypi.org/project/stac-pydantic/2.0.0/


Refresh page on allowlist change

Task/Issue URL: https://app.asana.com/0/1205648422731273/1205860198172204/f
Description
We're making BrowserTabViewModel observe user allowlist state, so that there is no need to explicitly trigger page refresh after toggling protections.
Steps to test this PR
Page is refreshed after toggling protections and submiting broken site report

[ ] Go to the broken site report screen
[ ] Toggle protections
[ ] Submit report
[ ] Verify that

page was reloaded
shield icon in the address bar correctly reflects protections state
protections toggle in options menu correctly reflects protections state

Page is refreshed after toggling protections and exiting broken site report

[ ] Go to the broken site report screen
[ ] Toggle protections
[ ] Navigate back to the browser screen (without submitting report)
[ ] Verify that

page was reloaded
shield icon in the address bar correctly reflects protections state
protections toggle in options menu correctly reflects protections state

Page is refreshed after toggling protections from options menu

[ ] Use the "(Enable|Disable) Privacy Protections" menu action to toggle protections
[ ] Verify that behavior didn't change with this PR

page was reloaded
shield icon in the address bar correctly reflects protections state
protections toggle in options menu correctly reflects protections state

Page is refreshed after toggling protections from Privacy Dashboard

[ ] Go to the Privacy Dashboard
[ ] Toggle protections -> Privacy Dashboard will close automatically
[ ] Verify that behavior didn't change with this PR

page was reloaded
shield icon in the address bar correctly reflects protections state
protections toggle in options menu correctly reflects protections state

No UI changes

Current dependencies on/for this PR:

develop

PR #3774

PR #3803   👈
PR #3775

This stack of pull requests is managed by Graphite.


Helm charts with multiple dependencies of same type don't deploy

Bug Report

What did you do?
Use the Operator SDK to create a Helm based operator using a chart with multiple aliased dependencies of the same image/type.
e.g.
apiVersion: v1
description: This is a test.
name: test
version: 1.0.0
dependencies:
- name: redis
  version: ~15.6.7
  repository: "@bitnami"
  tags:
    - cache
    - redis
  alias: cache
- name: redis
  version: ~15.6.7
  repository: "@bitnami"
  tags:
    - events
    - redis
  alias: events
- name: redis
  repository: "@bitnami"
  version: ~15.6.7
  tags:
    - dbs
    - redis
  alias: redis

What did you expect to see?
I expected to see three instances of the redis deployed.
e.g.
db-cache-master-0                               1/1     Running   0          28d
db-cache-replicas-0                             0/1     Pending   0          33d
db-events-master-0                              1/1     Running   0          28d
db-events-replicas-0                            0/1     Pending   0          33d
db-redis-master-0                               1/1     Running   0          28d
db-redis-replicas-0                             0/1     Pending   0          33d

What did you see instead? Under which circumstances?
After creating the custom resource only the last defined dependency in the chart file was deployed/created.
db-redis-master-0                           1/1     Running    0          19m
db-redis-replicas-0                         0/1     Pending    0          19m

Environment
Operator type:

/language helm
Kubernetes cluster type:

Vanilla
$ operator-sdk version

operator-sdk version: "v1.13.1", commit: "1659ab58a073999463e6dcdf18bdc359a315e091", kubernetes version: "1.21", go version: "go1.16.8", GOOS: "linux", GOARCH: "amd64"
$ go version (if language is Go)

$ kubectl version

Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.5", GitCommit:"5c99e2ac2ff9a3c549d9ca665e7bc05a3e18f07e", GitTreeState:"clean", BuildDate:"2021-12-16T08:38:33Z", GoVersion:"go1.16.12", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.2", GitCommit:"092fbfbf53427de67cac1e9fa54aaa09a28371d7", GitTreeState:"clean", BuildDate:"2021-06-16T12:53:14Z", GoVersion:"go1.16.5", Compiler:"gc", Platform:"linux/amd64"}
Possible Solution

Additional context

cc: @fabianvf @varshaprasad96


Facing Difficulty to Run the Project via Command Line in java

Configuration is been successfully done and need to run the Project via Command Line and encountering issues such as:

[ERROR] Error executing Maven.
[ERROR] The specified user settings file does not exist: /home/shaik/Desktop/Waseem/Untitled

Hi,
To build application please use command: mvn clean package.
I added start.cmd file with program execution example.
Kind regards, Valentyn


Add my image to AboutUs.md

Codecov Report

Merging #17 (eaefe10) into master (0cb59e7) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #17   +/-   ##
=========================================
  Coverage     72.15%   72.15%
  Complexity      399      399
=========================================
  Files            70       70
  Lines          1232     1232
  Branches        125      125
=========================================
  Hits            889      889
  Misses          311      311
  Partials         32       32

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0cb59e7...eaefe10. Read the comment docs.


timeout test poc

I had a discussion with @molnard so I tried 3 different options:

TimeOut parameter on Fact
[Fact(TimeOut = 10000)]
https://github.com/xunit/xunit/issues/2222
"
It does not work unfortunately, it only seems like it.
When timeout is reached it simply completes the task, reporting the failure.
But the code is running on the background until it finishes, or until all tests in that assembly are finished and the process is killed.
"

ComplatesIn
I am not 100% sure that the every started task will be interrupted.

CancellationToken
This idea comes from David. 100% sure is working.

The PR is great just create it to the main repository, here: https://github.com/zkSNACKs/WalletWasabi

TimeOut parameter on Fact
[Fact(TimeOut = 10000)]
XUnit "Timeout" parameter on Fact attribute does not work with synchronous test/code xunit/xunit#2222
"
It does not work unfortunately, it only seems like it.
When timeout is reached it simply completes the task, reporting the failure.
But the code is running on the background until it finishes, or until all tests in that assembly are finished and the process is killed.
"
ComplatesIn
I am not 100% sure that the every started task will be interrupted.

Let's find a way to test it - just for curiosity. How about adding log lines to test output console inside the task and see if it is still writing something to the console after the interruption?

CancellationToken
This idea comes from David. 100% sure is working.

Can you create the PR in the main repo with this solution? Concentrate on the while loops mentioned here https://github.com/zkSNACKs/WalletWasabi/issues/8763#issue-1314937286

Yeap, I do it.


[POAE7-2774] HashTable implementation of float and double

What changes were proposed in this pull request?

Add float and double type support for AggregationHashTable.
Add related test cases.

Why are the changes needed?
Implementation.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
UTs.
Which label does this PR belong to?

need to add some tests in CiderNewHashTableTest ?

need to add some tests in CiderNewHashTableTest ?

Added


apriltag: 3.4.1-1 in 'humble/distribution.yaml' [bloom]

Increasing version of package(s) in repository apriltag to 3.4.1-1:

upstream repository: https://github.com/AprilRobotics/apriltag.git
release repository: https://github.com/ros2-gbp/apriltag-release.git
distro file: humble/distribution.yaml
bloom version: 0.12.0
previous version for package: 3.4.0-1

Superseded by the 3.4.2 release in https://github.com/ros/rosdistro/pull/41160.


[CANNOLI-14] Add switches to force loading from Interleaved FASTQ/Parquet.

Resolves #14. On top of #13.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/cannoli-prb/1/
Test FAILed.

Merged build finished. Test FAILed.

Coverage increased (+19.6%) to 29.646% when pulling fde44f186b95787f94b225fd707408db9b6c1a49 on fnothaft:issues/14-force-load-format into 822cd632c56225462300e5e2461ee0306bce14fd on bigdatagenomics:master.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/cannoli-prb/12/
Test PASSed.

Thank you, @fnothaft!


[WIP] Migration of 1.x to 2.x (preview) of existing WPF library

Currently migrating an existing component on a specific branch, see https://github.com/wildgums/orc.filterbuilder/tree/feature/netcore30
Will post the progress here, it might help iron the last bits out / maybe help others hitting the same bumps.

Upgrade to 2.0.0-preview.7 in global.json
Add netcoreapp3.0 (note that you don't have to include the frameworkreference, it will be done by msbuild sdk extras)
Make sure to enable this in the project settings:

true

This works fine for non-xaml related libraries (outputting a netcoreapp3.0 library). Hitting this error:
2>C:\Source\Orc.FilterBuilder\src\Orc.FilterBuilder.Xaml\Orc.FilterBuilder.Xaml.csproj : error NU1105: Unable to find project information for 'C:\Source\Orc.FilterBuilder\src\Orc.FilterBuilder\Orc.FilterBuilder.csproj'. Inside Visual Studio, this may be because the project is unloaded or not part of current solution. Otherwise the project file may be invalid or missing targets required for restore.
2>Done building project "Orc.FilterBuilder.Xaml.csproj" -- FAILED.

Do you have a repro? Can you remove the bin\obj directories and make sure to run msbuild /restore to make sure it restores the new bits?

It's a separate branch on the repository (feature/netcore30), but I am updating my sdk's first, could be that. Will try to keep this thread up-to-date while I am investigating.

Keep in mind that for a pure WPF library, you shouldn't need the extras anymore (though it should still work as it delegates to the built-in SDK).
It should also fall back to existing current behavior if the nightly SDK isn't there, but it may not be setting ExtrasEnableWpfProjectSetup

Note: make sure to update the SDK, it was not working for me until I updated to the latest (one before was 1 week old):

Looks like most of it is working, last one left, but still investigating:
2>C:\Source\Orc.FilterBuilder\src\Orc.FilterBuilder.Xaml\Views\EditFilterView.xaml(54,10): error MC3074: The tag 'Interaction.Behaviors' does not exist in XML namespace 'http://schemas.microsoft.com/expression/2010/interactivity'. Line 54 Position 10.

This is because a dependency explicitly specifies it for a target framework, will probably need to reference it manually for now.

@onovotny Question: can you safely use UseWpf on a multi-targeting lib targeting other stuff (xamarin, uap) or should I protect like this:
  <!-- .NET 4.6 -->
  <PropertyGroup Condition="'$(TargetFramework)' == 'net46'">
    <UseWpf>true</UseWpf>
  </PropertyGroup>
  <ItemGroup Condition="'$(TargetFramework)' == 'net46'">
    <PackageReference Include="Expression.Blend.Sdk.WPF" Version="1.0.1" />
    <Reference Include="System.Windows.Forms" />
  </ItemGroup>

Looks like Orc.FilterBuilder is compiling as .NET Core 3.0 lib with the example app also being a .NET Core 3.0 app :-)
Fantastic work @onovotny , thanks for all the effort you are putting into this library.

I would condition UseWpf on the TFM's you want as the WindowsDesktop SDK sets default globs which may conflict.

You also don't need to include System.Windows.Forms on .NET 4.6, just set UseWindowsForms to true as well.

Thanks for the tip, will do that instead. I think that initially came from before I was using the extras.

While converting another project, I was able to build using VS 2017 preview, but not using VS 2017. Trying to install the x86 SDK side-by-side with the X64 one to see if that solves the issue.

Found something in the release notes:

.NET Core Tools for Visual Studio
Starting with this release, the .NET Core tools for Visual Studio will now default to using only the latest stable version of a .NET Core SDK that is installed on your machine for GA releases of Visual Studio. For future previews, the tools will use only preview .NET Core SDKs.


libglib2: drop 0.26

Motivation for this change
Follow-up on https://github.com/NixOS/nixpkgs/pull/44137
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ ] NixOS
[ ] macOS
[x] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

cc @dtzWill

@grahamcofborg build libgit2-glib subsurface gnome-builder stagit haskellPackages.hlibgit2 gitg gitAndTools.grv pythonPackages.pygit2

Need to check if https://github.com/NixOS/nixpkgs/issues/51416 still applies


Work around iiasa/ixmp#425

@Jihoon reports that when calling apply_spec() with a spec that adds unit "" (dimensionless), one runs into iiasa/ixmp#425 (i.e. only when connecting via ixmp JDBCBackend to a Oracle remote database).
For example, this is triggered by message_data.model.transport via entries in its set.yaml config file:
https://github.com/iiasa/message_data/blob/5f572d2a50f69aa90663d2c1aa97d4895ef32b94/data/transport/set.yaml#L130-L135
unit:
  add:
    "": dimensionless
    km: kilometre
    ...

Since the ixmp bug is in the Java code, it is unlikely to get fixed, and message-ix-models must work around it. The workaround will be for apply_spec() to detect when a unit is "" and skip adding it.

@Jihoon also notes that the workaround could be done in the ixmp Python code itself.

I find there is another trigger from message_ix_models.model.disutility.
https://github.com/iiasa/message-ix-models/blob/490fa9cbd3a46bc84a4ca91f4eb777b635de300c/message_ix_models/model/disutility.py#L68

Reopening as @volker-krey indicates the fix does not work as intended. A traceback is below.
https://github.com/iiasa/message-ix-models/blob/fbf406c6e84ff23dd4206d979350547ff1923e96/message_ix_models/model/build.py#L23-L26
… str(e) is probably leading to something like at.ac.iiasa.ixmp.exceptions.at.ac.iiasa.ixmp.exceptions.IxException: at.ac.iiasa.ixmp.exceptions.IxException: Error assigning an unit-key-id mapping in the database!, so some part of this string should be checked. The Java code obscures the OracleDatabaseException class.
It is not possible to write tests for this code/workaround, because we do not have a way of starting a temporary Oracle database server on test runners.
Traceback (most recent call last):
  File "Platform.java", line 678, in at.ac.iiasa.ixmp.Platform.addUnitToDB
  File "DbDAO.java", line 1332, in at.ac.iiasa.ixmp.database.DbDAO.addUnitToDB
  File "HikariProxyPreparedStatement.java", line -1, in com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeUpdate
  File "ProxyPreparedStatement.java", line 61, in com.zaxxer.hikari.pool.ProxyPreparedStatement.executeUpdate
  File "OraclePreparedStatementWrapper.java", line 1061, in oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate
  File "OraclePreparedStatement.java", line 3710, in oracle.jdbc.driver.OraclePreparedStatement.executeUpdate
  File "OraclePreparedStatement.java", line 3730, in oracle.jdbc.driver.OraclePreparedStatement.executeLargeUpdate
  File "T4CPreparedStatement.java", line 1384, in oracle.jdbc.driver.T4CPreparedStatement.executeInternal
  File "OraclePreparedStatement.java", line 3640, in oracle.jdbc.driver.OraclePreparedStatement.executeInternal
  File "OracleStatement.java", line 1136, in oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout
  File "T4CPreparedStatement.java", line 928, in oracle.jdbc.driver.T4CPreparedStatement.executeForRows
  File "T4CPreparedStatement.java", line 86, in oracle.jdbc.driver.T4CPreparedStatement.doOall8
  File "T4CPreparedStatement.java", line 253, in oracle.jdbc.driver.T4CPreparedStatement.doOall8
  File "T4C8Oall.java", line 610, in oracle.jdbc.driver.T4C8Oall.doOALL
  File "T4CTTIfun.java", line 255, in oracle.jdbc.driver.T4CTTIfun.doRPC
  File "T4CTTIfun.java", line 537, in oracle.jdbc.driver.T4CTTIfun.receive
  File "T4C8Oall.java", line 1052, in oracle.jdbc.driver.T4C8Oall.processError
  File "T4CTTIoer11.java", line 446, in oracle.jdbc.driver.T4CTTIoer11.processError
  File "T4CTTIoer11.java", line 498, in oracle.jdbc.driver.T4CTTIoer11.processError
oracle.jdbc.oracle.jdbc.OracleDatabaseException: Error : 1400, Position : 72, Sql = INSERT INTO ix_unit (id,name, cre_user, cre_date, scheme) VALUES (:1 , :2 , :3 , CURRENT_TIMESTAMP, :4 ), OriginalSql = INSERT INTO ix_unit (id,name, cre_user, cre_date, scheme) VALUES (?, ?, ?, CURRENT_TIMESTAMP, ?), Error Msg = ORA-01400: cannot insert NULL into ("IXMP_DEV"."IX_UNIT"."NAME")

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "Platform.java", line 678, in at.ac.iiasa.ixmp.Platform.addUnitToDB
  File "DbDAO.java", line 1332, in at.ac.iiasa.ixmp.database.DbDAO.addUnitToDB
  File "HikariProxyPreparedStatement.java", line -1, in com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeUpdate
  File "ProxyPreparedStatement.java", line 61, in com.zaxxer.hikari.pool.ProxyPreparedStatement.executeUpdate
  File "OraclePreparedStatementWrapper.java", line 1061, in oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate
  File "OraclePreparedStatement.java", line 3710, in oracle.jdbc.driver.OraclePreparedStatement.executeUpdate
  File "OraclePreparedStatement.java", line 3730, in oracle.jdbc.driver.OraclePreparedStatement.executeLargeUpdate
  File "T4CPreparedStatement.java", line 1384, in oracle.jdbc.driver.T4CPreparedStatement.executeInternal
  File "OraclePreparedStatement.java", line 3640, in oracle.jdbc.driver.OraclePreparedStatement.executeInternal
  File "OracleStatement.java", line 1136, in oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout
  File "T4CPreparedStatement.java", line 928, in oracle.jdbc.driver.T4CPreparedStatement.executeForRows
  File "T4CPreparedStatement.java", line 86, in oracle.jdbc.driver.T4CPreparedStatement.doOall8
  File "T4CPreparedStatement.java", line 253, in oracle.jdbc.driver.T4CPreparedStatement.doOall8
  File "T4C8Oall.java", line 610, in oracle.jdbc.driver.T4C8Oall.doOALL
  File "T4CTTIfun.java", line 255, in oracle.jdbc.driver.T4CTTIfun.doRPC
  File "T4CTTIfun.java", line 537, in oracle.jdbc.driver.T4CTTIfun.receive
  File "T4C8Oall.java", line 1052, in oracle.jdbc.driver.T4C8Oall.processError
  File "T4CTTIoer11.java", line 446, in oracle.jdbc.driver.T4CTTIoer11.processError
  File "T4CTTIoer11.java", line 494, in oracle.jdbc.driver.T4CTTIoer11.processError
java.sql.java.sql.SQLIntegrityConstraintViolationException: java.sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot insert NULL into ("IXMP_DEV"."IX_UNIT"."NAME")

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "Platform.java", line 678, in at.ac.iiasa.ixmp.Platform.addUnitToDB
  File "DbDAO.java", line 1336, in at.ac.iiasa.ixmp.database.DbDAO.addUnitToDB
  File "DbDAO.java", line 1088, in at.ac.iiasa.ixmp.database.DbDAO.loggedIxException
Exception: Java Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\krey\anaconda3\envs\message_env\Scripts\mix-models-script.py", line 33, in <module>
    sys.exit(load_entry_point('message-ix-models', 'console_scripts', 'mix-models')())
  File "C:\Users\krey\anaconda3\envs\message_env\lib\site-packages\click\core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "C:\Users\krey\anaconda3\envs\message_env\lib\site-packages\click\core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "C:\Users\krey\anaconda3\envs\message_env\lib\site-packages\click\core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Users\krey\anaconda3\envs\message_env\lib\site-packages\click\core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Users\krey\anaconda3\envs\message_env\lib\site-packages\click\core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Users\krey\anaconda3\envs\message_env\lib\site-packages\click\core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "C:\Users\krey\anaconda3\envs\message_env\lib\site-packages\click\decorators.py", line 38, in new_func
    return f(get_current_context().obj, *args, **kwargs)
  File "c:\users\krey\documents\git\message_data\message_data\model\transport\cli.py", line 122, in build_cmd
    build.main(context, scenario, **options)
  File "c:\users\krey\documents\git\message_data\message_data\model\transport\build.py", line 120, in main
    build.apply_spec(scenario, spec, partial(add_data, context=context), **options)
  File "c:\users\krey\documents\git\message-ix-models\message_ix_models\model\build.py", line 142, in apply_spec
    _add_unit(scenario.platform, unit.id, str(unit.name))
  File "c:\users\krey\documents\git\message-ix-models\message_ix_models\model\build.py", line 21, in _add_unit
    mp.add_unit(unit, comment)
  File "C:\Users\krey\anaconda3\envs\message_env\lib\site-packages\ixmp\core\platform.py", line 259, in add_unit
    self._backend.set_unit(unit, comment)
  File "C:\Users\krey\anaconda3\envs\message_env\lib\site-packages\ixmp\backend\jdbc.py", line 462, in set_unit
    self.jobj.addUnitToDB(name, comment)
at.ac.iiasa.ixmp.exceptions.at.ac.iiasa.ixmp.exceptions.IxException: at.ac.iiasa.ixmp.exceptions.IxException: Error assigning an unit-key-id mapping in the database!

I find there is another trigger from message_ix_models.model.disutility.
https://github.com/iiasa/message-ix-models/blob/490fa9cbd3a46bc84a4ca91f4eb777b635de300c/message_ix_models/model/disutility.py#L68

Per discussion with @volker-krey, the issue here is not only the adding of the unit, but also that the existing message_ix_models.model.disutility code creates parameter values (e.g. for input, output) which are dimensionless. Because the ixmp bug prevents dimensionless unit ("") being added to the Platform, these parameter values also cannot be added to Scenarios on the Platform.
The code is theoretically correct, in the sense that (dis)utility in economics is dimensionless, but it looks like we will have to step away from this and introduce non-dimensionless units in order to work around the bug. I will open a PR.


HTTP BASIC AUTHENTICATION SECURITY CONCERN

Hi. I've started using this gem to generate coupons and its so easy and works like a charm.
The only Issue is I have is using basic authentication to authorize the person who creates the coupons.
I've read in the following links that http basic authentication is not that safe.
http://security.stackexchange.com/questions/988/is-basic-auth-secure-if-done-over-https
http://stackoverflow.com/questions/3323245/is-basic-access-authentication-secure
I was thinking is there a way where I can use my devise authentication to give access to admin(person who creates the coupons) so that it would become much secure.
I'm not even sure if that works or is a viable option. Its just a thought I have.
If we can use devise authentication and serves the purpose of security then how do we do it?
Thanks.

I've solved this in my use of the gem, perhaps my solution can help you.
I don't use Devise, so your mileage may vary slightly.
Essentially, you want to allow the Coupon engine to know about your app’s controller(s). This certainly crosses an otherwise clear boundary, but it's the only way I could get it working.
At least it's a simple fix: Here's what I did:

Make the engine ApplicationController inherit from highest-level ::ApplicationController (my app controller). This will allow the engine to access my app’s current_user and similar helpers, as you'll see in the next step. See this commit in my fork

Update /initializers/coupons.rb:
  config.authorizer = proc do |controller|
    # You most likely want to skip authentication on AJAX requests to the /apply endpoint,
    # so you can let the user “check” their coupon, and possibly update price in the UI, before proceeding
    unless controller.action_name == 'apply' && controller.request.xhr?
      # Not sure if this exact approach would work for Devise, but you hopefully get the idea:
      # Do the authentication here, and send the user on their way
      controller.before_filter :authenticate_user!
    end
  end

Finally, you'll most likely have to use the “special” helper main_app to send the correct *_path|url in any redirects you do from your authentication logic. Click for details in the Rails API
As an example, here's my authenticate_user! method:
  def authenticate_user!
    store_location!

    if !session[:access_token]
      session[:access_token] = nil
      redirect_to main_app.signin_path # Need to use `main_app` to accommodate Engines
    end
  end

Again, this is not for Devise — I use a homegrown solution, due to my users being authenticated via OAuth, and I don't save any user info/credentials in my app.
Hope this can at least steer you in the right direction!

Thanks. Will give it a try.

You could also use a constraints declaration in your routes:
mount Coupons::Engine => '/', as: 'coupons_engine', constraints: WhitelistConstraint.new

Docs: http://guides.rubyonrails.org/routing.html#advanced-constraints

@cabgfx , thanks, your solution works great for me with minor changes.
Shouldn't inherit from the application controller of my app.
Just duplicated the coupons/application_controller.rb file and added this lines for pundit authorization & Devise
`  before_action :authenticate_user!
after_action :verify_authorized
rescue_from Pundit::NotAuthorizedError, with: :user_not_authorized
private
def user_not_authorized
# raise Pundit::NotAuthorizedError, "must be logged in" unless user
flash[:alert] = "You are not authorized to perform this action."
redirect_to(request.referrer || root_path)
end
`

@kranthi1027 , Did you solve this with devise?
I could do authentication with devise with @cabgfx advise of editing gem's application controller and add this line:
before_action :authenticate_user!
But I also would need to authorize user as an admin..

OK Cool. I keep the application_controller as is without changes and set the following
  config.authorizer = proc do |controller|
    # You most likely want to skip authentication on AJAX requests to the /apply endpoint,
    # so you can let the user “check” their coupon, and possibly update price in the UI, before proceeding
    unless controller.action_name == 'apply' && controller.request.xhr?
      unless controller.current_user.admin?
        controller.flash[:alert] = "You are not authorized to perform this action."
        controller.redirect_to(controller.request.referrer || "/")
      end
    end
  end


Require pyspark minimal version is v3.2.0 to cut duplicates codes

Since pyspark v3.2.0, it has contained CachedAccessor, _register_accessor, _register_accessor
janitor requires pyspark minimal version is v3.1.2 at present.
Compared to v3.1.2, v3.2.0 is a minor version.
https://github.com/pyjanitor-devs/pyjanitor/blob/4867b20273e99cb2f4c32278123d5c23c2ccaa67/janitor/spark/backend.py#L9-L37
Note: The pyspark in the setup.py file requires v3.2.1 but ci (environment-dev.yml) requires v3.1.2.

@Zeroto521 with PySpark 3.2.0 we'd be able to directly register our code on pyspark dataframes?

@Zeroto521 with PySpark 3.2.0 we'd be able to directly register our code on pyspark dataframes?

Yes, it could easily import 'register_dataframe_accessor' from pyspark since 3.2.0 version.
But pyjanitor still keeps 'register_dataframe_method'.

That's such a cool find. Thank you so much, @Zeroto521 :heart:

@Zeroto521 I can't remember, but have we added you to the core dev team, btw?

No. But I'm happy to become the core maintainer of pyjanitor project.

Cool stuff! I'm going to add you onto the dev team. Could you ping me at http://www.shortwhale.com/ericmjl? I'll also add you onto the Discord chat that we use. (It's very low volume, btw, and it's more for social chat than dev chat.)

Could you ping me at http://www.shortwhale.com/ericmjl?

Done.

I'll also add you onto the Discord chat that we use. (It's very low volume, btw, and it's more for social chat than dev chat.)

The Discord service is blocked in China. So I'm not very frequently use it.


Textarea with default value simply broken

I have a super simple test page that doesn't behave even close to what I'd expect.
<!DOCTYPE html>
<head>
    <title>
        Test page
    </title>
</head>
<body>
    <wired-textarea rows=10 value="some test"></wired-textarea>
    <script<EMAIL_ADDRESS>
This creates the very strange looking

with the following markup
<textarea id="textarea" autocomplete="undefined" inputmode="undefined" placeholder="undefined" rows="10" minlength="undefined" maxlength="undefined"></textarea>

that has a couple of issues.

It's not rendered correctly in regards to the number of rows
It displays the text undefined for the placeholder
It removes the value specified for the content

PS: Side note, there's usually no value attribute for textarea, as it uses the contents of the HTML element instead.

https://stackblitz.com/ example please?
You can even fork one of mine to get started: https://stackblitz.com/edit/lit-element-wired-elements

oops closed too soon. Wanted to confirm before closing

As for value attribute. I realize textarea uses innerHtml to initialize the value but it's always been a very spotty interface. It doesn't get updated at all and is only used to initialize the value.
There was no reason why wired-textarea had to behave exactly the same. It doesn't in many other ways as well. e.g, it auto grows in size.

Here's a working example with the fix: https://wiredjs.github.io/wired-elements/examples/textarea.html


Socket.io-servicebus reborn!

Yes it's true! Thanks to @matt-gibbs and the folks at @azure, we now have the keys to socket.io-servicebus in our hands!
The repo and the npm package have been transferred over to azure-contrib so we can take it forward.
With power comes responsibility, but also accountability :-). All folks who want to see Socket.io-servicebus move forward, we need your help (that's the accountability part)
We need a few folks to help us coordinate this project, and we need committers to do the real hard work.
Who is down?

woo! :+1:


Test build

What is the Purpose?
Briefly describe what the PR addresses
What was the approach?
Briefly describe the approach used to address the issue
Are there any concerns to addressed further before or after merging this PR?
State some additional info if any. For instance running install or setting some environment variable(s)
Mentions?
Mention persons you'd like to review this PR
Issue(s) affected?
List of issues addressed by this PR.

Test build from forked repo


SCM View Looks Different Right/Left

Testing #138102
Is it by design that the SCM looks slightly different?

Right:

Left:

Maybe related to #136803 where Tree View in References had different background


[Bug]: sp_columns_100: Returned type character varying does not match expected type "varchar"

What happened?
I am running BABEL_2_2_1__PG_14_5 on Fedora 36.
Executing the following T-SQL (extracted from mssql-jdbc):
DROP TABLE IF EXISTS test1;
CREATE TABLE test1 (id INT, name VARCHAR(42));

DECLARE @mssqljdbc_temp_sp_columns_result TABLE(
    TABLE_QUALIFIER SYSNAME,
    TABLE_OWNER SYSNAME,
    TABLE_NAME SYSNAME,
    COLUMN_NAME SYSNAME,
    DATA_TYPE SMALLINT,
    TYPE_NAME SYSNAME,
    PRECISION INT,
    LENGTH INT,
    SCALE SMALLINT,
    RADIX SMALLINT,
    NULLABLE SMALLINT,
    REMARKS VARCHAR(254),
    COLUMN_DEF NVARCHAR(4000),
    SQL_DATA_TYPE SMALLINT,
    SQL_DATETIME_SUB SMALLINT,
    CHAR_OCTET_LENGTH INT,
    ORDINAL_POSITION INT,
    IS_NULLABLE VARCHAR(254),
    SS_IS_SPARSE SMALLINT,
    SS_IS_COLUMN_SET SMALLINT,
    SS_IS_COMPUTED SMALLINT,
    SS_IS_IDENTITY SMALLINT,
    SS_UDT_CATALOG_NAME NVARCHAR(128),
    SS_UDT_SCHEMA_NAME NVARCHAR(128),
    SS_UDT_ASSEMBLY_TYPE_NAME NVARCHAR(max),
    SS_XML_SCHEMACOLLECTION_CATALOG_NAME NVARCHAR(128),
    SS_XML_SCHEMACOLLECTION_SCHEMA_NAME NVARCHAR(128),
    SS_XML_SCHEMACOLLECTION_NAME NVARCHAR(128),
    SS_DATA_TYPE TINYINT
);

INSERT INTO @mssqljdbc_temp_sp_columns_result EXEC sp_columns_100 'test1';

SELECT * FROM @mssqljdbc_temp_sp_columns_result;

Gives the following error:
2023-01-03 22:28:24.217 GMT [57679] ERROR:  structure of query does not match function result type
2023-01-03 22:28:24.217 GMT [57679] DETAIL:  Returned type character varying does not match expected type "varchar"(254) in column 12.
2023-01-03 22:28:24.217 GMT [57679] CONTEXT:  PL/tsql function sp_columns_100(nvarchar,nvarchar,nvarchar,nvarchar,integer,integer,smallint) line 3 at SQL statement
	SQL statement "INSERT INTO "@mssqljdbc_temp_sp_columns_result" EXEC sp_columns_100 'test1';"
	PL/tsql function inline_code_block line 36 at SQL statement
	TDS Protocol: Message Type: SQL BATCH, Phase: TDS_REQUEST_PHASE_PROCESS. Writing Done Token
2023-01-03 22:28:24.217 GMT [57679] LOG:  Unmapped error found. Code: 67141764, Message: structure of query does not match function result type, File: attmap.c, Line: 119, Context: TDS

The problematic column number 12 here is REMARKS VARCHAR(254). If its definition in @mssqljdbc_temp_sp_columns_result is changed to REMARKS VARCHAR(MAX), then the error message is the following:
2023-01-03 22:28:39.121 GMT [57679] ERROR:  structure of query does not match function result type
2023-01-03 22:28:39.121 GMT [57679] DETAIL:  Returned type character varying does not match expected type "varchar" in column 12.

The initial T-SQL script passes correctly (and returns correct results) if I redefine the sp_columns_100 (add casts to required data types) by executing the following (connecting into postgres session on 5432 port):
CREATE OR REPLACE PROCEDURE sys.sp_columns_100 (
    "@table_name" sys.nvarchar(384),
    "@table_owner" sys.nvarchar(384) = '',
    "@table_qualifier" sys.nvarchar(384) = '',
    "@column_name" sys.nvarchar(384) = '',
    "@namescope" int = 0,
    "@odbcver" int = 2,
    "@fusepattern" smallint = 1)
AS $$
BEGIN
	select out_table_qualifier as TABLE_QUALIFIER,
			out_table_owner as TABLE_OWNER,
			out_table_name as TABLE_NAME,
			out_column_name as COLUMN_NAME,
			out_data_type as DATA_TYPE,
			out_type_name as TYPE_NAME,
			out_precision as PRECISION,
			out_length as LENGTH,
			out_scale as SCALE,
			out_radix as RADIX,
			out_nullable as NULLABLE,
			cast(out_remarks as varchar(254)) as REMARKS,
			cast(out_column_def as nvarchar(4000)) as COLUMN_DEF,
			out_sql_data_type as SQL_DATA_TYPE,
			out_sql_datetime_sub as SQL_DATETIME_SUB,
			out_char_octet_length as CHAR_OCTET_LENGTH,
			out_ordinal_position as ORDINAL_POSITION,
			cast(out_is_nullable as varchar(254)) as IS_NULLABLE,
			out_ss_is_sparse as SS_IS_SPARSE,
			out_ss_is_column_set as SS_IS_COLUMN_SET,
			out_ss_is_computed as SS_IS_COMPUTED,
			out_ss_is_identity as SS_IS_IDENTITY,
			cast(out_ss_udt_catalog_name as nvarchar(128)) as SS_UDT_CATALOG_NAME,
			cast(out_ss_udt_schema_name as nvarchar(128)) as SS_UDT_SCHEMA_NAME,
			cast(out_ss_udt_assembly_type_name as nvarchar(max)) as SS_UDT_ASSEMBLY_TYPE_NAME,
			cast(out_ss_xml_schemacollection_catalog_name as nvarchar(128)) as SS_XML_SCHEMACOLLECTION_CATALOG_NAME,
			cast(out_ss_xml_schemacollection_schema_name as nvarchar(128)) as SS_XML_SCHEMACOLLECTION_SCHEMA_NAME,
			cast(out_ss_xml_schemacollection_name as nvarchar(128)) as SS_XML_SCHEMACOLLECTION_NAME,
			cast((
			CASE
				WHEN out_ss_is_identity = 1 AND out_sql_data_type = -6 THEN 48 -- Tinyint Identity
				WHEN out_ss_is_identity = 1 AND out_sql_data_type = 5 THEN 52 -- Smallint Identity
				WHEN out_ss_is_identity = 1 AND out_sql_data_type = 4 THEN 56 -- Int Identity
				WHEN out_ss_is_identity = 1 AND out_sql_data_type = -5 THEN 63 -- Bigint Identity
				WHEN out_ss_is_identity = 1 AND out_sql_data_type = 3 THEN 55 -- Decimal Identity
				WHEN out_ss_is_identity = 1 AND out_sql_data_type = 2 THEN 63 -- Numeric Identity
				ELSE out_ss_data_type
			END
			) as tinyint) as SS_DATA_TYPE
	from sys.sp_columns_100_internal(sys.babelfish_truncate_identifier(@table_name),
		sys.babelfish_truncate_identifier(@table_owner),
		sys.babelfish_truncate_identifier(@table_qualifier),
		sys.babelfish_truncate_identifier(@column_name), @NameScope, @ODBCVer, @fusepattern)
END
$$
LANGUAGE 'pltsql';
GRANT ALL on PROCEDURE sys.sp_columns_100 TO PUBLIC;

Note 1: the scripts above were run after a fresh initdb using SQuirreL SQL editor with mssql-jdbc 8.2.2 and postgresql-42.4.0 drivers.
Note 2: this problem is also reproducible by calling JDBC method getColumns on mssql-jdbc driver.
Version
BABEL_1_X_DEV (Default)
Extension
babelfishpg_tsql (Default)
Which flavor of Linux are you using when you see the bug?
Fedora
Relevant log output
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct.

Apparently this was fixed some time ago in PR #2017 , closing the issue.


adjustBackground() is called even if there is no background image defined (Login Component)

Hi,
the function adjustBackground() of the Login Component is called even if there is no background image defined. This results in a JavaScript error Uncaught TypeError: Cannot read property 'getDOMNode' of undefined.
The problem is that the adjustBackgroundis bound to the window's resize event without checking whether this.props.background is truthy.
It's not a critical error, but I think it would be good to resolve this just to keep the log free from errors. If you have not already solved this issue, I can submit a PR.

Hi @Thylossus thanks for reporting this. I believe we haven't solved that one yet. So, feel free to send a pull request.

Solved by #52


Distortion effect based on WaveShaperNode

Currently generating the distortion curve based on a algorithm discussed in this StackOverflow thread
Currently distortion amount values seem to make audible difference between 0-2000.
Perhaps we should accept a more commonly accepted value range (0-127?) and scale from there to the 0-2000?
Currently the unit test is a bit light. Let me know if you have any ideas for a good test to add.

Nice! How about scaling 0-2000 to a value between 0 and 1?

Good call!

This is great, thank you @JoshuaStorm! I tweaked / added some documentation, feel free to edit it further if you see areas where it could be improved.
I like the example, but people may not be familiar with the clean sound of a saw oscillator. I wonder if the example might work better with a soundfile and some kind of wet/dry control, like a slider that maps to distortion amount.


Delete record is failing

Test app: http://dev0009449.esri.com/solutions-components/solutions-components/demos/crowdsource-manager.html?id=59004e6e375745abb0914328679901da
Service url: https://arcgis4localgov2.maps.arcgis.com/home/item.html?id=ea9f4de9b42843f1857b443fbaf483f2&view=service
The service has editing enabled with add, delete and update permission

Reproducible steps:

Launch the app
Select a record from the table and click Delete button, warning message shows up, then click delete again
Notice that the record does not get deleted
In the console TypeError: Cannot use 'in' operator to search for 'geometry' in 167 shows up.

@chris-fox
you mentioned in #324 that we should filter layers out of the layer picker that don't have editing enabled and don't have at least the Update capability on the service. We can delete records in Manager now and feature service can have only delete capability with no add or update capabilities, in this scenario, we won't allow users to only delete? This is a fringe case scenario but wanted to hear your thoughts.
Right now we are not letting users to delete even though the service has only delete capability

@azizaparveen, thanks. At this point I would lean towards keeping it as is and only showing layers that have at least update available. If they also have delete then we can support delete. If they only have delete then I think we should continue to not show the layer as an option in the map. We can wait on user feedback to decide later if we want to expand this.


Got rid of old and unused build resources.

Got rid of some unused build resources:

Windows Squirrel startup event handling (old auto update system that we no longer use)
winreg dependency (used to edit Windows Registry keys as part of Windows Squirrel update)
travis.yml logic that is supposed to deploy our artifacts to GitHub, but was never used
Old Squirrel installer graphics

Pull Request Test Coverage Report for Build 1678

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 58.29%

Totals

Change from base Build 1672:
0.0%

Covered Lines:
5020

Relevant Lines:
7749

💛  - Coveralls


Error(s) in loading state_dict for PoseResNet:

When I test model:
Error(s) in loading state_dict for PoseResNet:
Missing key(s) ... ...
Unexpected key(s) ... ...
What should I do to solve this problem?

HE DONT  GIVE THE PRE-TRAINED WEIGHTS


Server sided or client sided?

Ok
So when I have 4 people on my server, other people can't play. A.K.A, spamming "connecting"
it doesnt stay there, it says connecting, then it'll look like the server crashed, connecting again, repeat
How to fix this

ok i had the fix
since everyone in my server has the same ip
there was a config (ipperplayer 4)
i had to increase that.

what ? xD

idk


Emergency option and autofill issues

Great theme but few issues

Emergency option when pressing power button is transparent but shutdown and restart is black as expected.

Autofill is not readable because of black font on black background.

Screenshot

Pls fix. I am on nexus 6p android 8.1 using version 7 of the app.
I dont have any other themes installed.

Open up adb and type this in:
adb shell settings put global emergency_affordance_needed 0

Closing for inactivity

@MSF-Jarvis @MSFJarvis We need to re-do Pajeet fix

Eh I'd rather still ask people to remove the button but I'll re-add the fix tomorrow and we'll see if there's any regressions. Good night :)

@MSF-Jarvis The reason I said that is because P has a default un-removable button that exhibits the same issue (Screenshot). So to be futureproof it's best we find a workaround before P's final release. So yeah we have plenty of time


Migrate "The Promise of Business Blockchain Technologies" from EdX to Markdown

As part of our effort to create a second revision of the LFS171x EdX course, migrate the chapter "The Promise of Business Blockchain Technologies" to a markdown file located at ./LFS171x/docs/the-promise-of-business-blockchain-technologies.md in the import-edx-content branch.

Started working on this section...

Completed draft.  Feedback welcome.

Hi, Vince ( @atc-vince ). I could not find a Pull Request for the changes you made. I see a number of commits, but they do not have the appropriate DCO sign-off. Can you tell me how you got these changes committed to the branch? I am afraid we are going to have to undo them so that we can get the appropriate DCO sign-offs.

Hi Tracy (@tkuhrt), I wasn’t aware of the workflow process at the time when the commits were made. I tried to revert the commits, but the write access to the file had been already been deactivated. I’m good with starting over, and was waiting on guidance on how to properly “wipe the slate”.

Hi, Vince (@atc-vince). We did wipe the commits yesterday; however, we did maintain a copy of the work that you have already done so that we could have you re-submit the file. I was going to put together a gist with information on doing just that. I will send that your way hopefully by the end of today. I appreciate your help with this, and I am sorry for the confusion/frustration that this may have caused. I am glad that you are still willing to work on this. Look for more information soon.

Hi Tracy (@tkuhrt) thanks for clearing the commits. I have a copy of the file so no need to resend. I’ll work on it (properly!) tonight. ;-)
Additionally, I can also assist with updating the documentation so that new WG Members can avoid repeating this scenario in the future. Apologies as well for the inconvenience.

Hi, Vince (@atc-vince). Glad to hear. I have created a Gist on how to contribute to the education repo. I would love your feedback on this Gist so that we can improve it for others who want to contribute.
Thanks alot for your help on this work.

Hi Tracy (@tkuhrt) thanks for the gist. Will run through it and provide feedback (if any).


FFAdd chain gadget for Snarky

This was opened against the wrong project repo.
Superseeded by https://github.com/MinaProtocol/mina/issues/12953


is 5.1.2-beta.4 really 5.1.1-beta.4?

In
https://github.com/zino-hofmann/graphql-flutter/blob/main/packages/graphql/CHANGELOG.md latest version is 5.1.2-beta.4 but in https://pub.dev/packages/graphql_flutter/versions#prerelease 5.1.1-beta.4 is listed.
Which is right?

Please note graphql and graphql_flutter are two different project!

https://pub.dev/packages/graphql


MySQL connection failed during installation

Hi i just figured it out how to install it and during the installation-wizard after i entered the Database Credentials i am getting an strange Error. See attached picture:

Any thoughts on that?
Thanks ahead :)

At the beginning of the setup-tour i also had this Error: Notice: unserialize(): Error at offset 0 of 1 bytes in /var/www/clients/client2/web36/web/core/classes/System/Config.php on line 32

which file to change the db name,db username and pass for myqsql database???

which file to change the db name,db username and pass for myqsql database???

app/config/global.config

Hi this wasn't my original Question @vityabond.
Do you have any thoughts on how to solve this Problem?
Thanks

Hi this wasn't my original Question @vityabond.
Do you have any thoughts on how to solve this Problem?
Thanks

You need disable strict mode in mysql (mariadb) config

At the beginning of the setup-tour i also had this Error: Notice: unserialize(): Error at offset 0 of 1 bytes in /var/www/clients/client2/web36/web/core/classes/System/Config.php on line 32

upload empty file to app/config/global.config

Thanks for the replies. I have disabled the strict mode but now i am getting this error:

I searched the app/config/global.config and is already there. Should i replace it with an empty file?

reinstall please


Support for memory system refactor in bsg_manycore

Partially Working Support for memory system refactor in bsg_manycore (#488)

Added new machine parameters
Added new DRAMSIM3 Package macro
Added clean targets

DMA Tests currently fail

Update: test_high_mem and test_dma currently fail. This feels like a south-side cache-DMA mapping issue


sort-of failed Windows installer creation

I've just been trying to create a Windows installer using electron-winstaller, but it's failing due to the use of - in exercism-gui.
On Windows 7, I downloaded the exercism-gui-win32-x64-v0.1.0-beta.1.zip and unpacked it.  In this directory I ran npm install --save electron-winstaller and added in the following build.js script to the root dir:
var electronInstaller = require('electron-winstaller');

resultPromise = electronInstaller.createWindowsInstaller({
  appDirectory: 'C:\\Users\\robertph\\Downloads\\exercism-gui-win32-x64-v0.1.0-beta.1\\exercism-gui-win32-x64',
  outputDirectory: 'C:\\Users\\robertph\\Downloads\\exercism-gui-win32-x64-v0.1.0-beta.1\\dist',
  authors: 'exercism',
});

resultPromise.then(() => console.log("It worked!"), (e) => console.log(`No dice: ${e}`));

then in the root dir ran node .\build.js getting the following error output:
No dice: Error: Failed with exit code:<PHONE_NUMBER>
Output:

System.AggregateException: One or more errors occurred. ---> System.Exception: Failed to compile WiX template, command invoked was: 'candle.exe -nologo -ext WixNetFxExtension -out "C:\Users\robertph\Downloads\exercism-gui-win32-x64-v0.1.0-beta.1\dist\Setup.wixobj" "C:\Users\robertph\Downloads\exercism-gui-win32-x64-v0.1.0-beta.1\dist\Setup.wxs"'

Output was:
Setup.wxs
C:\Users\robertph\Downloads\exercism-gui-win32-x64-v0.1.0-beta.1\dist\Setup.wxs(20) : error CNDL0014 : The Component/@Id attribute's value, 'exercism-gui.exe', is not a legal identifier.  Identifiers may contain ASCII characters A-Z, a-z, digits, underscores (_), or periods (.).  Every identifier must begin with either a letter or an underscore.
C:\Users\robertph\Downloads\exercism-gui-win32-x64-v0.1.0-beta.1\dist\Setup.wxs(21) : error CNDL0014 : The File/@Id attribute's value, 'exercism-gui.exe', is not a legal identifier.  Identifiers may contain ASCII characters A-Z, a-z, digits, underscores (_), or periods (.).  Every identifier must begin with either a letter or an underscore.
C:\Users\robertph\Downloads\exercism-gui-win32-x64-v0.1.0-beta.1\dist\Setup.wxs(34) : error CNDL0014 : The ComponentRef/@Id attribute's value, 'exercism-gui.exe', is not a legal identifier.  Identifiers may contain ASCII characters A-Z, a-z, digits, underscores (_), or periods (.).  Every identifier must begin with either a letter or an underscore.
   at Squirrel.Update.Program.<createMsiPackage>d__20.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at Squirrel.Update.Program.Releasify(String package, String targetDir, String packagesDir, String bootstrapperExe, String backgroundGif, String signingOpts, String baseUrl, String setupIcon, Boolean generateMsi)
   at Squirrel.Update.Program.executeCommandLine(String[] args)
   at Squirrel.Update.Program.main(String[] args)
   at Squirrel.Update.Program.Main(String[] args)
---> (Inner Exception #0) System.Exception: Failed to compile WiX template, command invoked was: 'candle.exe -nologo -ext WixNetFxExtension -out "C:\Users\robertph\Downloads\exercism-gui-win32-x64-v0.1.0-beta.1\dist\Setup.wixobj" "C:\Users\robertph\Downloads\exercism-gui-win32-x64-v0.1.0-beta.1\dist\Setup.wxs"'

Output was:
Setup.wxs
C:\Users\robertph\Downloads\exercism-gui-win32-x64-v0.1.0-beta.1\dist\Setup.wxs(20) : error CNDL0014 : The Component/@Id attribute's value, 'exercism-gui.exe', is not a legal identifier.  Identifiers may contain ASCII characters A-Z, a-z, digits, underscores (_), or periods (.).  Every identifier must begin with either a letter or an underscore.
C:\Users\robertph\Downloads\exercism-gui-win32-x64-v0.1.0-beta.1\dist\Setup.wxs(21) : error CNDL0014 : The File/@Id attribute's value, 'exercism-gui.exe', is not a legal identifier.  Identifiers may contain ASCII characters A-Z, a-z, digits, underscores (_), or periods (.).  Every identifier must begin with either a letter or an underscore.
C:\Users\robertph\Downloads\exercism-gui-win32-x64-v0.1.0-beta.1\dist\Setup.wxs(34) : error CNDL0014 : The ComponentRef/@Id attribute's value, 'exercism-gui.exe', is not a legal identifier.  Identifiers may contain ASCII characters A-Z, a-z, digits, underscores (_), or periods (.).  Every identifier must begin with either a letter or an underscore.
   at Squirrel.Update.Program.<createMsiPackage>d__20.MoveNext()<---

The specific error is 'exercism-gui.exe', is not a legal identifier, I tried changing exercism-gui to exercism_gui in a few places, including in the Setup.wxs file that is created, where I believe the illegal identifier is, but as it is overwritten each time this has no effect.  I don't know where exercism-gui would need to be changed for this to take effect. I've not run the ember build command from this dir as I've run into various difficulties getting the electron program set up on windows, which I'll open separate issues for.
A Setup.exe is created in the dist directory that when double-clicked runs the exercism-gui app, & installs a bunch of files in my AppData directory, but not the actual app.
If I get the time, I'll try a few more experiments. Hope this is some help.

I've been able to run the ember build command, after changing the name of the app in package.json file, to exercism_gui.  With this change the build.js script runs successfully, creating a Setup.exe & Setup.msi, though this breaks something else as when I run the installers, they open the app and install in a default location, but the app is empty. You can find the installers in my fork

Thank you for taking a look at this!
electron-winstaller seems cool but I think is best to have one single library that can produce installers for all platforms (so we have less moving parts).
I briefly looked at  electron-builder which outputs installers for Mac/Windows and packages for most major Linux package formats. Did you have a change to check it out? (take a look at #6 for my comments on installer)
Sorry it took me quite a while to respond

That makes sense, I'll have a try building on windows with electron-builder, see what happens.

Awesome! I'll probably play with electron-builder during the weekend too, I'll keep you posted. Please send a PR if you have some progress or ping me if you need help


Use client IP for history table pt. II

Use built-in request attribute to fetch user IP address
Test-deploy on this branch

 2.0 add logs in history table for BoxMutation


Mattermost Desktop App 3.4.1 on Windows 10 64-bit VERIFIED

Version
OS
Issues
Tester
Date

3.4.1
Windows 10 64-bit
None Observed
@tonyD-2016
2016-12-05

I confirm (by marking "x" in the [ ] below):

[X] This is not a troubleshooting question. Troubleshooting questions go here: http://www.mattermost.org/troubleshoot/.
[X] This doesn't reproduce on web browsers (such as in Chrome). If it does, issue reports go to the Mattermost Server repository.
[X] I have read contributing guidelines.

Summary

Steps to reproduce

Expected behavior
Observed behavior

Possible fixes

Thanks @tonyD-2016!
Added you as a verified tester


Disable permission request for files and media

What
Hi,
Is there any way for us to disable the request for permission for files and media?
Thank you.

Im closing this because im cleaning out the issues. If this is still a problem please comment.


There ist no option to charge the home battery at minimum if I use time zones

Describe the bug
I´m switched my energy contract from tibber to octopus energy.de. I configured my contract with time zones:
tariffs:
grid:
type: fixed
price: 0.294 # EUR/kWh (default)
zones:
- days: Mo-So
hours: 0-5
price: 0.15 # EUR/kWh
currency: EUR
Now I haven't anymore the option to charge the battery at low prices.
Steps to reproduce

Tap at battery settings
No charging the battery at a price level is possibles

...
Configuration details
tariffs:

  grid:
    type: fixed
    price: 0.294 # EUR/kWh (default)
    zones:
      - days: Mo-So
        hours: 0-5

Log details
no log

What type of operating system are you running?
Linux
Nightly build

[X] I have verified that the issue is reproducible with the latest nightly build

Version
0.130.13

Hi @jekruege, this is not enough information for us to understand the problem. You config seems incomplete. Pleaes update your description an we'll reopen once we have enough information to debug.

I have not that configuration window ("Netzladen") any more with my new configuration with price zones (nach dem Wechsel meines Lieferanten [von Tibber mit dynamischen Preisen zu Oktopus mit Preiszonen]):

Please share a more complete and formatted configuration. In the above example you've only one zone with no price. Not sure if this is really your configuration (which would be incomplete). In the text above you've pasted another snipped which has text but is not formatted. Please update your issue description, otherwise it's hard to help.

Sorry, I'm not really fit with linux and I didn't find a way to get the yaml file out of the system ....
Do you have a clue for me?


[Instrumentation] Cannot build web project using webpack due to reference to nodejs core package (path)

What happened?
Steps to Reproduce
After upgrading to 0.46.0 try to build a web project using webpack.
Expected Result
Build success.
Actual Result
ERROR in<EMAIL_ADDRESS>16:0-33
Module not found: Error: Can't resolve 'path' in '/home/runner/work/PROJECT/node_modules/@opentelemetry/instrumentation/build/esm'

Additional Details
OpenTelemetry Setup Code
import { OTLPMetricExporter } from '@opentelemetry/exporter-metrics-otlp-http';
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http';
import { registerInstrumentations } from '@opentelemetry/instrumentation';
import { DocumentLoadInstrumentation } from '@opentelemetry/instrumentation-document-load';
import { FetchInstrumentation } from '@opentelemetry/instrumentation-fetch';
import { Resource } from '@opentelemetry/resources';
import { ConsoleMetricExporter, MeterProvider, PeriodicExportingMetricReader } from '@opentelemetry/sdk-metrics';
import {
  BatchSpanProcessor,
  ConsoleSpanExporter,
  SimpleSpanProcessor,
  TraceIdRatioBasedSampler,
  WebTracerProvider,
} from '@opentelemetry/sdk-trace-web';
import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions';

...

registerInstrumentations({
    instrumentations: [documentLoadInstrumentation, fetchInstrumentation],
    tracerProvider: provider,
  });

package.json
"@opentelemetry/exporter-metrics-otlp-http": "^0.46.0",
"@opentelemetry/exporter-trace-otlp-http": "^0.46.0",
"@opentelemetry/instrumentation": "^0.46.0",
"@opentelemetry/instrumentation-document-load": "^0.34.0",
"@opentelemetry/instrumentation-fetch": "^0.46.0",
"@opentelemetry/instrumentation-user-interaction": "^0.34.0",
"@opentelemetry/instrumentation-xml-http-request": "^0.46.0",
"@opentelemetry/sdk-metrics": "^1.19.0",
"@opentelemetry/sdk-trace-web": "^1.19.0",

Relevant log output
ERROR in<EMAIL_ADDRESS>16:0-33
Module not found: Error: Can't resolve 'path' in '/home/runner/work/PROJECT/node_modules/@opentelemetry/instrumentation/build/esm'

I have the same issue on vite 4.5.1
"@opentelemetry/api": "^1.7.0",
"@opentelemetry/context-zone": "^1.19.0",
"@opentelemetry/exporter-zipkin": "^1.19.0",
"@opentelemetry/instrumentation-fetch": "^0.46.0",
"@opentelemetry/sdk-trace-web": "^1.19.0",

Looks like some files ended up in the wrong place in a recent PR. I'm looking into it.


Asynchronous code is unreliable when using the Deno kernel

I am using the Deno kernel with the Jupyter Extension for vscode. I have noticed that asynchronous responses are not correctly displayed and I often have to execute the cell multiple times before seeing a response. This is especially problematic when calling mutating APIs where it is not possible to execute them more than once.
Instead of seeing the response I either see a stale response (from a previous invocation) or Promise { <pending> }
Reproduce

Install Deno by following the descriptions here:

deno jupyter --unstable --install

Select Deno as Kernel

Execute the following notebook. After each execution try incrementing /todos/1 to /todos/2, /todos/3, and see how the response does not always update reliably.

fetch('https://jsonplaceholder.typicode.com/todos/1')
      .then(response => response.json())
      .then(json => console.log(json))

Thanks for filing this issue and sorry you are running into this.
Unfortunately this is an issue with the Deno kernel.
I can replicate the exact same behaviour in Jupyter Lab (i.e. outside VS Code)
Please file an issue against Deno kernel repo.


Determine "accuracy" of users

Now that the new sentiment model is done, we can use this information to find out how good the predictions of the users that we follow are. We could consider multiple timeframes such as: 4h, 1d, 1w or even 1m. We can scrape the tweets with the price at the moment of the tweet + sentiment (newly generated). Then we can see if the mentioned ticker changed over time since the tweet.

I think this will be better as a separate repo, also updating the scraper code and maybe publishing that here too

Interesting but too hard, how do we know the prices etc. after someone tweeting. How useful would this information be in the end?


Create README.md

you should be able to fix that linting issue by adding
cpg_workflows>=1.1.4
to requirements-dev.txt in the project root, and changing the vep/main.py
from cpg_utils.workflows.batch import get_batch
to
from cpg_workflows.batch import get_batch


grid_map: 1.5.1-0 in 'jade/distribution.yaml' [bloom]

Increasing version of package(s) in repository grid_map to 1.5.1-0:

upstream repository: https://github.com/ethz-asl/grid_map.git
release repository: https://github.com/ethz-asl/grid_map-release.git
distro file: jade/distribution.yaml
bloom version: 0.5.26
previous version for package: 1.5.0-0

grid_map

No changes

grid_map_core

No changes

grid_map_costmap_2d

No changes

grid_map_cv

No changes

grid_map_demos

No changes

grid_map_filters

No changes

grid_map_loader

No changes

grid_map_msgs

No changes

grid_map_octomap

No changes

grid_map_pcl

No changes

grid_map_ros
* Added backwards compatibility for costmap_2d conversion in grid_map_ros (#111 <https://github.com/ethz-asl/grid_map/issues/111>).
* Contributors: Peter Fankhauser

grid_map_rviz_plugin

No changes

grid_map_visualization

No changes

I just want to make sure that you are aware that this will likely be the last release into Jade before it is being EOLed (see https://discourse.ros.org/t/jade-eol-announcement/2240).

Ok, thanks for the notice, I guess that's fine.


Upsert a list  return exception

Describe the bug
when upsert  a list of data, if some data has primary id , and some data has no primary id, it will report error.
if all has id or all has no id, it return ok.
 var list = myAlbums
          .expand((element) => element.stickers)
          .map((e) {
        if (e.id != null) {
          return {
            "id": e.id,
            "user_id": supabase.auth.currentUser!.id,
            "sticker_id": e.sticker.id,
            "count": 8,
          };
        }
        return {
          "user_id": supabase.auth.currentUser!.id,
          "sticker_id": e.sticker.id,
          "count": 8,
        };
      }).toList();
      await supabase.from("user_sticker").upsert(list);

table definition
id | bigint | number |
sticker_id | text | string |
count | smallint | number |
user_id | uuid | string
error print
PostgrestException(message: null value in column "id" of relation "user_sticker" violates not-null constraint, code: 23502, details: Bad Request, hint: null)
Expected behavior
It should be return OK
Version (please complete the following information):
├── supabase_flutter 2.3.4
│   ├── supabase 2.0.8
│   │   ├── gotrue 2.5.1
│   │   ├── postgrest 2.1.1
│   │   ├── realtime_client 2.0.1
│   │   ├── storage_client 2.0.1
Additional context
Add any other context about the problem here.

This is working as intended as primary keys are required to perform upsert.

well. the list of data that has no primary keys works well. That misled me. OK, I will do my work for two part, divide my list to 2 lists. and One insert , another one update, thanks for your reply


Error in building

Seeing the error below:
Original error:
/github/workspace/blog/node_modules/cwebp-bin/vendor/cwebp: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

  WorkerError: Processing /github/workspace/blog/content/authors/avatars/team.png failed

  Original error:
  /github/workspace/blog/node_modules/cwebp-bin/vendor/cwebp: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

I've verified that team.png file exists in the repo, but based on the last error, I'm suspecting it might have to do with the fact that my node_modules directory isn't checked in. Is this really needed? Any way around this?

I'm seeing the same error, it is failing and saying that a png doesn't exist when it clearly does


Add CSS modules support + reset userProfile reducer

Implementing css modules support for styling following https://github.com/kristerkari/react-native-css-modules.
Plus adding reset userProfile reducer (probs should have been a separate PR, but lazy me :( )

@Ne0Strix, sorry, i have got some time this week to spend for this project so I hope you're alright with me merging it in :)
Let's revisit it if you think we should change/add anything


Can't dispatch patch release workflow

Just like https://github.com/silverstripe/gha-ci/issues/145, gha-action-ci is failing to dispatch the patch release workflow.
In this case it's just the permission that's missing: https://github.com/silverstripe/gha-ci/actions/runs/10276180947/job/28436179485 returns a 403
PRs

https://github.com/silverstripe/gha-action-ci/pull/14
https://github.com/silverstripe/gha-action-ci/pull/16
https://github.com/silverstripe/module-standardiser/pull/69
https://github.com/silverstripe/gha-action-ci/pull/15
https://github.com/silverstripe/gha-auto-tag/pull/23
https://github.com/silverstripe/gha-ci/pull/147
https://github.com/silverstripe/gha-dispatch-ci/pull/19
https://github.com/silverstripe/gha-generate-matrix/pull/102
https://github.com/silverstripe/gha-issue/pull/15
https://github.com/silverstripe/gha-keepalive/pull/17
https://github.com/silverstripe/gha-merge-up/pull/43
https://github.com/silverstripe/gha-pull-request/pull/17
https://github.com/silverstripe/gha-run-tests/pull/36
https://github.com/silverstripe/gha-tag-release/pull/28
https://github.com/silverstripe/gha-trigger-ci/pull/11
https://github.com/silverstripe/gha-update-js/pull/31

Assigning back to Guy to confirm things work

All merged and everything seems to be working as expected now.


Add first_or_initialize and first! to RecordSet

A couple AR like finder methods. How do you guys feel about this? If :+1: then I'll add some specs

I'm down!

Cool! Also, is there currently a method equivalent to this one in the code base? I didn't see one ...

@ridiculous the closest thing would be:
Merchant[1]['facebook']['4213578641d']

but I get the impression people don't find the hash-like interface particularly intuitive, so I'm definitely open to what you're proposing.
Would love to merge this—would you have a chance to add some specs?

Oh cool, didn't know you could do that! I kinda like that, is that documented?
I'll add some specs this week.

It's mentioned here, but I don't emphasize it in the README as my impression is that people don't find it terribly intuitive.
Looking forward to merging this one in!!

@ridiculous any chance you could throw some specs on this?

Adding em now! Sorry for the delay. Did you want me to add .by_key as well?

Is there a reason the Gemfile.lock isn't checked in?

Specs added :tada:

Thank you! (Sorry to go dark!)


Spawning from a URI is not supported because it can't be supported in the AOT compiled runtime modes.

Spawning from a URI is not supported because it can't be supported in the AOT compiled runtime modes.
Originally posted by @zanderso in https://github.com/flutter/flutter/issues/99955#issuecomment-1067145927

Hi @kiradea,
When opening an issue, please try to provide all or some of the information requested in the issue template.  Pasting the same comment as an issue provides no information regarding your proposal.

Issue Template
If you are looking for support, please check out our documentation
or consider asking a question on Stack Overflow:
- https://flutter.dev/
- https://api.flutter.dev/
- https://stackoverflow.com/questions/tagged/flutter?sort=frequent

If you have found a bug or if our documentation doesn't have an answer
to what you're looking for, then fill our the template below. Please read
our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports

Steps to Reproduce

Please tell us exactly how to reproduce the problem you are running into.

Please attach a small application (ideally just one main.dart file) that
reproduces the problem. You could use https://gist.github.com/ for this.

If the problem is with your application's rendering, then please attach
a screenshot and explain what the problem is.

1. ...
2. ...
3. ...

Please tell us which target platform(s) the problem occurs (Android / iOS / Web / macOS / Linux / Windows)
Which target OS version, for Web, browser, is the test system running?
Does the problem occur on emulator/simulator as well as on physical devices?

Target Platform:
Target OS version/browser:
Devices:

Run your application with `flutter run --verbose` and attach all the
log output below between the lines with the backticks. If there is an
exception, please see if the error message includes enough information
to explain how to solve the issue.

Run `flutter analyze` and attach any output of that command below.
If there are any analysis errors, try resolving them before filing this issue.

Finally, paste the output of running `flutter doctor -v` here.

Closing this issue, since no information has been provided. In case you have any further info for us please update the issue description with the requested details in the issue template and leave a comment on this issue and we will reopen it right away.
Thank you.


Fixing an issue with the hookData referencing an undefined page

I'm using gulp-mocha-phantomjs in combination with the mocha-phantomjs-istanbul plugin to be able to report code coverage. The problem is the plugin reporting the code coverage is relying on the page property of the hookData to be set. The current code creates the hookData before the page variable has been set. I'm just reversing these two blocks of code so that the page variable can be set before the hookData is created.

This is working for me (I'm using the same plugins). Thanks @nickp10!

Doh simple mistake. We should add a test for it too...

Hey @nathanboktae, could you publish a patch release for this? :heart:

Sorry for the delay folks - 1.0.1 is published with this fix.


Python Track Courses to be Completed

##TODO
Courses left to complete the Treehouse Python Track

[ ] Python Basics
[ ] Python Collection
[ ] Object Oriented Python

:tada: :smile_cat: