Insights pod missing

Hopefully addresses the issues found in https://github.com/stolostron/backlog/issues/24061

/retest


AdQuality SDK

The extension now supports the IronSource Ad Quality SDK which can be used review which ads that are served to your users and report problematic content, ad network quality issues and measure how your ads perform.
The Ad Quality SDK will be initialized together with the IronSource SDK when calling ironsource.init().
Fixes #20

Additional features of the AdQuality SDK tracked here:
https://github.com/defold/extension-ironsource/issues?q=is%3Aissue+is%3Aopen+label%3Aadquality


Remove unnecessary deps

IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Description
Remove unnecessary deps
Alternative(s) considered
NA
Type
Choose one: Code health
Screenshots (if applicable)
Checklist

[x] I have read and acknowledged the Code of conduct.
[x] I have read the Contributing page.
[x] I have signed the Google Individual CLA, or I am covered by my company's Corporate CLA.
[x] I have discussed my proposed solution with code owners in the linked issue(s) and we have agreed upon the general approach.
[x] I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the style guide of this project.
[x] I have run ./gradlew check and ./gradlew connectedCheck to test my changes locally.
[x] I have built and run the demo app(s) to verify my change fixes the issue and/or does not break the demo app(s).

Thanks Jajoo


Add a call to action/contact form to most pages

Closes #57 and #11

This still requires wiring in. The ContactSnippet component is fully functional but the handleSubmit function needs to be updated to actually do something meaningful with the data, like send it somewhere.


merge from arlac77/npm-package-template-esm-only

package.json

chore(scripts): cover@#overwrite c8 -x 'tests/**/*.mjs' --temp-directory build/tmp ava && c8 report -r lcov -o build/coverage --temp-directory build/tmp
chore(engines<EMAIL_ADDRESS>

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@fece0c0). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #580   +/-   ##
=========================================
  Coverage          ?   75.94%
=========================================
  Files             ?        2
  Lines             ?      474
  Branches          ?        0
=========================================
  Hits              ?      360
  Misses            ?      114
  Partials          ?        0

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 fece0c0...5db6120. Read the comment docs.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-k8s-24-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 1796

Questions ?
Please refer to the Backport tool documentation


Fix build for current rust master

Ops were removed from the prelude, Sized is no longer implied for Self, and the fixed orphan check seems to have broken #[derive(RustcEncodable, RustcDecodable) somehow. Added op imports, sized bounds, and the old_orphan_check feature to fix these problems.

Closed by #153


};

pool mysql db: table.found_blocks

pooldb = {
host = "<IP_ADDRESS>";
port = 3306;
username = "root";
password = "xxx";
dbname = "bpool_local_db";
};
blk_makers = (
{
chain_type = "BTC";
enabled = true;
nodes = (
{
rpc_addr = "http://<IP_ADDRESS>:18332";
rpc_userpwd = "xxx:xxx";
}
);
rawgbt_topic = "RawGbt";
solved_share_topic = "SolvedShare";
auxpow_solved_share_topic = "AuxPowSolvedShare";
rsk_solved_share_topic = "RskSolvedShare";
job_topic = "BtcJob";
found_aux_block_table = "found_nmc_blocks";
},
{
chain_type = "ETH"; //blockchain short name
enabled = false; //enable worker
nodes = (
{
rpc_addr = "http://<IP_ADDRESS>:8545";
rpc_userpwd = "user:pass";
}
);
#solved share topic
solved_share_topic = "EthSolvedShare";
# The hard fork Constantinople of Ethereum mainnet
constantinople_height = 7280000;

},
{
chain_type = "SIA"; //blockchain short name
enabled = false; //enable worker
nodes = (
{
rpc_addr = "http://<IP_ADDRESS>:9980/miner/header";
rpc_userpwd = "user:pass";
}
);
#solved share topic
solved_share_topic = "SiaSolvedShare";
},
{
chain_type = "BTM"; //blockchain short name
enabled = false; //enable worker
nodes = (
{
rpc_addr = "http://<IP_ADDRESS>:9888/submit-work";
rpc_userpwd = "user:pass";
}
);
#solved share topic
solved_share_topic = "BytomSolvedShare";
}
);

job maker cfg

@since 2016-06
@copyright btc.com

job_workers = (
{
id = 1;
chain_type = "BTC";
enabled = true;
testnet = true; // is using testnet3

# payout address
# the private key of my2dxGb5jz43ktwGxg2doUaEb9WhZ9PQ7K is cQAiutBRMq4wwC9JHeANQLttogZ2EXw9AgnGXMq5S3SAMmbX2oLd
payout_address = "xxx";
# coinbase info with location ID (https://github.com/btccom/btcpool/issues/36)
coinbase_info = "region1/Project BTCPool/";

# block version, default is 0 means use the version which returned by bitcoind
# or you can specify the version you want to signal.
# more info: https://github.com/bitcoin/bips/blob/master/bip-0009.mediawiki
# Example:
#  0                     : use bitcoind block version,
#  536870912(0x20000000) : bip9 support (with empty version bits)
#  536870914(0x20000002) : bip141(segwit), bit 1
#
block_version = 0;

rawgbt_topic = "RawGbt";

auxpow_gw_topic = "AuxPowBlock"; // kafka topic of merge mining auxpow work
rsk_rawgw_topic = "RskRawGw"; // kafka topic of RSK merge mining
vcash_rawgw_topic = "VcashRawGw";

job_topic = "BtcJob";

job_interval = 20; // send stratum job interval (seconds)
max_job_delay = 20; // max job dealy (seconds)

# max non-empty gbt life cycle time (seconds)
gbt_life_time = 90;

# max empty gbt life cycle time seconds
# CAUTION: the value SHOULD >= 10. If non-empty job not come in 10 seconds,
#          jobmaker will always make a previous height job until its arrival
empty_gbt_life_time = 15;

# policy used to determine the pace of merge mining jobs to be sent.
# 0: merge mining `getwork` does not trigger job updates (RSK and Namecoin).
# 1: update job when the `notify` flag in RSK `getwork` is true or the block height in Namecoin `getwork` higher than before.
# 2: update job when the current block hash of a merge mining `getwork` is different from before (RSK and Namecoin).
merged_mining_notify = 1; # (1 is recommended and default)

zookeeper_lock_path = "/locks/jobmaker_btc";
file_last_job_time = "/work/btcpool/build/run_jobmaker/btc_lastjobtime.txt";

},
{
id = 1;
chain_type = "ETH";
chain_name = "FOUNDATION"; // CLASSIC (ETC Main Network) or FOUNDATION (ETH Main Network)
enabled = false;
rawgw_topic = "EthRawGw";
job_topic = "EthJob";

job_interval = 20; // send stratum job interval (seconds)
max_job_delay = 20; // max job dealy (seconds)
work_life_time = 60; // max getWork life cycle time (seconds)

zookeeper_lock_path = "/locks/jobmaker_eth";
file_last_job_time = "/work/btcpool/build/run_jobmaker/eth_lastjobtime.txt";

},
{
id = 1;
chain_type = "BTM";
enabled = false;
rawgw_topic = "BytomRawGw";
job_topic = "BytomJob";

job_interval = 20; // send stratum job interval (seconds)
max_job_delay = 20; // max job dealy (seconds)
work_life_time = 90; // max getWork life cycle time (seconds)

zookeeper_lock_path = "/locks/jobmaker_bytom";
file_last_job_time = "/work/btcpool/build/run_jobmaker/bytom_lastjobtime.txt";

},
{
id = 1;
chain_type = "SIA";
enabled = false;
rawgw_topic = "SiaRawGw";
job_topic = "SiaJob";

job_interval = 30; // send stratum job interval (seconds)
max_job_delay = 60; // max job dealy (seconds)
work_life_time = 90; // max getWork life cycle time (seconds)

zookeeper_lock_path = "/locks/jobmaker_sia";
file_last_job_time = "/work/btcpool/build/run_jobmaker/sia_lastjobtime.txt";

}
);
kafka = {
brokers = "<IP_ADDRESS>:9092"; # "<IP_ADDRESS>:9092,<IP_ADDRESS>:9092,..."
};
zookeeper = {
brokers = "<IP_ADDRESS>:2181"; # "<IP_ADDRESS>:2181,<IP_ADDRESS>:2181,..."
};

gbt maker cfg

@since 2016-06
@copyright btc.com

gbtmaker = {
rpc call interval seconds
rpcinterval = 5;
check zmq when startup
is_check_zmq = true;
rawgbt_topic = "RawGbt";
use RPC getblocktemplatelight, only for bch
lightgbt = false; # if unspecified, default false
};
bitcoind = {
bitcoind MUST with zmq options: -zmqpubhashblock, -zmqpubhashtx
'-zmqpubhashtx' will use to check zmq is working when startup gbtmaker
zmq_addr = "tcp://<IP_ADDRESS>:15101";
reconnect if no new messages are received after the following number of seconds
zmq_timeout = 1200;
rpc settings
rpc_addr    = "http://<IP_ADDRESS>:18332";
rpc_userpwd = "xxx:xxx";  # username:password
};
kafka = {
brokers = "<IP_ADDRESS>:9092"; # "<IP_ADDRESS>:9092,<IP_ADDRESS>:9092,..."
};

stratum server cfg

@since 2016-06
@copyright btc.com

is using testnet3
testnet = true;
kafka = {
brokers = "<IP_ADDRESS>:9092"; # "<IP_ADDRESS>:9092,<IP_ADDRESS>:9092,..."
};
zookeeper = {
brokers = "<IP_ADDRESS>:2181"; # "<IP_ADDRESS>:2181,<IP_ADDRESS>:2181,..."
};
sserver = {
serverType
type = "BTC";
ip = "<IP_ADDRESS>";
port = 3333;
should be global unique, range: [1, 255]
If the id is 0, try to automatically assign one from zookeeper.
id = 0;
The lock path used when automatically assigning an id
zookeeper_lock_path = "/locks/sserver_btc";
write last mining notify job send time to file, for monitor
file_last_notify_time = "./sserver_lastnotifytime.txt";
the connection will be closed if the miner does not send any message
to the sserver within the specified seconds.
tcp_read_timeout = 600;
how many seconds between two share submit
share_avg_seconds = 10;
the lifetime of a job
It should not be too short, otherwise the valid share will be rejected due to job not found.
max_job_lifetime = 300;
the job interval
sserver will push latest job if there are no new jobs for this interval
mining_notify_interval = 30;
default difficulty (hex)
default_difficulty = "4096";
max difficulty (hex)
max_difficulty = "17179869184";
min difficulty (hex)
min_difficulty = "4096";
Adjust difficulty once every N second
diff_adjust_period = 900;
When exiting, the connection will be closed gradually within the specified time.
Set to 0 to disable this feature.
shutdown_grace_period = 3600;
nicehash = {
# Set to true if you want to force minimal difficulty for whole sserver
forced = false;
# Fallback value when ZooKeeper is not available
min_difficulty = "10000";

# Read NiceHash minimal difficulty from this ZooKeeper node
min_difficulty_zookeeper_path = "/nicehash/sha256/min_difficulty"

};

version_mask, uint32_t
2(0x00000002) : allow client change bit 1
16(0x00000010) : allow client change bit 4
536862720(0x1fffe000) : allow client change bit 13 to 28

version_mask = 0;
version_mask = 16;
version_mask = 536862720; // recommended, BIP9 security
...

version_mask = 536862720;
it could be 4 ~ 8
it should be 4 if you want proxy stratum jobs with poolwatcher(proxy).cfg
extra_nonce2_size = 8;
Send ShareBitcoinBytesV1 to share_topic to keep compatibility with legacy statshttpd/sharelogger.
use_share_v1 = false;
topics
job_topic = "BtcJob";
share_topic = "BtcShare";
solved_share_topic = "BtcSolvedShare";
auxpow_solved_share_topic = "AuxSolvedShare"; # auxpow (eg. Namecoin) solved share topic
rsk_solved_share_topic = "RskSolvedShare";
common_events_topic = "BtcCommonEvents";
########################## dev options #########################
if enable simulator, all share will be accepted. for testing
enable_simulator = false;
if enable it, all share will make block and submit. for testing
enable_submit_invalid_block = false;
if enable, difficulty sent to miners is always dev_fixed_difficulty. for development
enable_dev_mode = false;
difficulty to send to miners. for development
dev_fixed_difficulty = 0.005;
###################### end of dev options ######################
};
users = {

https://example.com/get_user_id_list?last_id=0
{"err_no":0,"err_msg":null,"data":{"jack":1,"terry":2}}

There is a demo: https://github.com/btccom/btcpool/issues/16#issuecomment-278245381

list_id_api_url = "http://<IP_ADDRESS>/apidemo.php";
Make the user name case insensitive
case_insensitive = true;
Enable single user mode.
In this mode, all sub-accounts connected to the sserver will become the worker name prefix for a specified user.
Example, a worker "user2.11x20" will become "user1.user2.11x20".
#single_user_mode = false;
#single_user_name = "user1";
#single_user_puid = 1;
};
prometheus = {
whether prometheus exporter is enabled
enabled = true
address for prometheus exporter to bind
address = "<IP_ADDRESS>"
port for prometheus exporter to bind
port = 9100
path of the prometheus exporter url
path = "/metrics"
};
log = {
hide "client connect" log with the prefix
#hide_ip_prefix = "100.122.";
};
management = {
enabled = true; # default: true
kafka_brokers = "<IP_ADDRESS>:9092"; # "<IP_ADDRESS>:9092,<IP_ADDRESS>:9092,..."
controller_topic = "BtcManController";
processor_topic = "BtcManProcessor";
auto_switch_chain = false;
};

错误日志和配置以上，用的是0.16.3的钱包编译的，搜索了以往的答案，并没有解决这个问题，请开发者解答一下，谢谢！

这是打开模拟器以后用ccminer工作的日志

爆块后，如果还没有收到下一个块的任务，当前任务就会一直stale。仅针对爆块sserver。


Added Stellaris astral planes

Just simply adds astral planes to the config, confirmed to work by me.

Thanks! Sorry for being late, didn't see the PR


Readme improvements

Some auto MD cleanup by tidy-markdown
Break out the config section into a subsection for each configuration method and expand upon those sections. This makes the setup of your AWS creds make a lot more sense.

A few minor things, then :+1:


How to use hover in Style component?

Like title says I want to know if I can use hover in Style component? If so can you tell me how I can do that.

Hi alphiii,
There's an example in the readme, see https://github.com/FormidableLabs/radium.
I did run into one situation when working with radium, where the :hover was applied to all children as well.  As a workaround, you can create another  element with the scopeselecter = "component:hover".  Hope that helps.

Here's an example of the workaround that I used (the two Style components):
render(){
return (

{this.props.panel.title}

      {this.props.panel.listItems.map((listItem, i) =>
{listItem}
)}

{this.props.panel.textContents}


React: Locale modal - Select geographic area link is not identified by the screen reader.

Detailed description
In FF with JAWS, voiceover
Issue:
Select geographic area link present before the "Location and language" search field. This link is not identified by the screen reader hence the user does not know its presence Note: working fine in web component
Expected:
Screen reader should identify the link.
Additional information

@Praveen-sr @RobertaJHahn Confirmed with Ram that this is working and not a bug.


Unconditional dependency on futures breaks things on Python 3 as of futures 3.2.0

The futures package should no longer be installed on Python 3 at all.
This is detailed in the current version of the README: https://github.com/agronholm/pythonfutures/blob/master/README.rst
Please see my bug report here that adds to the discussion: https://github.com/agronholm/pythonfutures/pull/71#issuecomment-372037732

Marrow mailer uses the futures package. If they stop requiring it I can remove it from here as well. See https://github.com/marrow/mailer#52-futures-manager.

The requirement is already conditional on the Python version: https://github.com/marrow/mailer/blob/develop/setup.py#L70

As you can see, installing marrow-mailer on Python 3.6 does not install the futures backport:
$ pip install marrow-mailer
Collecting marrow-mailer
  Downloading marrow.mailer-4.0.2-py2.py3-none-any.whl (132kB)
    100% |████████████████████████████████| 133kB 873kB/s
Collecting marrow.util<2.0 (from marrow-mailer)
  Downloading marrow.util-1.2.3.tar.gz
Installing collected packages: marrow.util, marrow-mailer
  Running setup.py install for marrow.util ... done
Successfully installed marrow-mailer marrow.util-1.2.3

The problem is not marrow-mailer, it is this library which requires it unconditionally. I don't understand why though, since this library doesn't even import concurrent.futures.

Marrow-Mailer requires futures itself and on Python 2 only.

If they stop requiring it I can remove it from here as well.
@miguelgrinberg, why did you add the explicit requirement in Flask-MarrowMailer at all if it's already required by Marrow-Mailer itself and (as @agronholm says) it's not used in Flask-MarrowMailer's code?

Sorry, I misunderstood the problem. I agree futures should not be required. For Python 2 I included it to avoid people copying the documentation and examples and not getting the package installed, but yeah, Python 3 does not need it. Sorry about the confusion.

Fixed in 0.3.0.

Thank you for the quick fix and release! v0.3.0 solves the issue for me. Much appreciated!


import abseil::optional

Based on abseil version bf7fc99, the same version as the other imported abseil libraries.
Will eventually merge to master; right now into the branch abseil-mirror for easy review.

I've essentially done this (plus brought in the optional_test.cc and the CMakeLists.txt on the upstream branch) in #1112. Let's continue there.


Agents review feedbacks

[x] In the delete confirmation popup, the text will be "Please, confirm the name of the Agent <agent_name> before delete it", where <agent_name> is the name of the agent to be deleted.
[x] Display a success or error notification after editing an agent,
[x] While trying to delete multiple agents, the link "Delete Agents" will be in red color, so the user can notice it
[x] When the list is in multiple delete mode, add a Cancel link near Delete Agents link, to restore the list to its original status and clear the delete selection

@YanetABUC Delete Agents link needs to be disable if not Agent is selected to be delete, only after we select one or more Agents to be delete then the link  Delete Agents is enabled

@YanetABUC Delete Agents link needs to be disable if not Agent is selected to be delete, only after we select one or more Agents to be delete then the link  Delete Agents is enabled

@YanetABUC Delete Agents link needs to be disable if not Agent is selected to be delete, only after we select one or more Agents to be delete then the link Delete Agents is enabled

@gorums I'll create a new ticket with this request

@YanetABUC Delete Agents link needs to be disable if not Agent is selected to be delete, only after we select one or more Agents to be delete then the link Delete Agents is enabled

@gorums I'll create a new ticket with this request


Module build failed: SyntaxError: Unexpected token (11:49)

So I'm getting an unexpected token error when utilising list-style:
<Flexbox margin="0" padding="0" style={{ list-style: 'none' border: '1px solid black' }}>
What's the issue here?
See attached image for full error breakdown.

You are using list-style as a key for a JavaScript object. Use 'list-style' or listStyle instead. That's a syntax error in JS and has nothing to do with flexbox-react 😄

@nachoaIvarez Thanks for the info. No errors are being generated now :)
The only issue I am having is that my list is not rendering from items stacked one on top of another (column), to a display flex (row) with no bullet points. The bullet points of
 still remain, only the black border renders correctly.
<Flexbox element="nav" margin="0" padding="0" style={{ 'list-style': 'none', border: '1px solid black' }}>

<Link to="/">
This
</Link>

<Link activeClassName="active" to="/firebase">
That
</Link>

As the opening tag should render as:

the list should be displayed horizontally, but is not. What am I overlooking?

Take a look at flexDirection

@nachoaIvarez Not to worry, I got it working now.
I needed to lose the
tag, and specify<Flexbox element="ul"...>` instead.
Many thanks for your time

No problem!


reduce allocations

master
BenchmarkTracing/silent-12         	  200000	      7755 ns/op	    1816 B/op	      24 allocs/op
BenchmarkTracing/full-12           	  200000	      8880 ns/op	    3944 B/op	      45 allocs/op

first iteration
BenchmarkTracing/silent-4         	  100000	     10448 ns/op	    1840 B/op	      18 allocs/op
BenchmarkTracing/full-4           	  100000	     12139 ns/op	    3969 B/op	      39 allocs/op

second iteration
BenchmarkTracing/silent-12         	  200000	      7755 ns/op	    1816 B/op	      24 allocs/op
BenchmarkTracing/full-12           	  200000	      8880 ns/op	    3944 B/op	      45 allocs/op

[ ] try to use sync.Pool for checkpoints


⚠ Slack has degraded performance

In ab30d16, Slack (https://status.slack.com/api/v2.0.0/current) experienced degraded performance:

HTTP code: 200
Response time: 183 ms

Resolved: Slack performance has improved in f0e337d after 37 minutes.


Cannot get worker pod's log

What is your question?
I cannot worker pod's log on the webserver.
it just show me the below error. how configurations of values.yaml should I check?
helm chart version : 8.1.0, airflow images tag : 2.0.2
Thank you in advance
*** Unable to fetch logs from worker pod tutorialprintdate.c8182c57094b4fe182e3d7c41b298099 ***
(404)
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'Audit-Id': '7fa1fdff-c693-4d96-8e0b-a7cf032b884e', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Tue, 18 May 2021 11:13:03 GMT', 'Content-Length': '268'})
HTTP response body: b'{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"pods \"tutorialprintdate.c8182c57094b4fe182e3d7c41b298099\" not found","reason":"NotFound","details":{"name":"tutorialprintdate.c8182c57094b4fe182e3d7c41b298099","kind":"pods"},"code":404}\n'

Hi @socar-grab
Are you using Kubernetes or Celery executor?
If you are using Kubernetes executer once the task is finished the pod will be terminated and the logs will be gone.
You have two choice:

Writing a log to Kubernetes persistent volume
Write logs to remote server like S3, CloudWatch logs, Elasticsearch...

How to persist Airflow logs?
We are using AWS I can give more help on that ecosystem.

Hi @socar-grab
Are you using Kubernetes or Celery executor?
If you are using Kubernetes executer once the task is finished the pod will be terminated and the logs will be gone.
You have two choice:

Writing a log to Kubernetes persistent volume
Write logs to remote server like S3, CloudWatch logs, Elasticsearch...

How to persist Airflow logs?
We are using AWS I can give more help on that ecosystem.

Thank you! I solved.

Hello @socar-grab , how did you solve this issue?


triangle storage 64bit vs 32bit musings

So I threw an obj file with 16m vectors/faces at PBR for fun, and thus I spent today's hack time getting more familiar with golang's memory profiling.
There's a large amount of GC (space) overhead as it builds things, but lets put that aside for now since fixing the GC usage still doesn't allow loading the file and I can PR those fixes without discussion.
surface.Triangle takes up quite a bit of memory: 11 vectors + material + bounds. In my test file normals and textures don't even exist for these particular triangles.
I considered turning Triangle.Normals/Textures into pointers (which would slow down processing), or maybe something like a SimpleTriangle and fiddling with interfaces where normals/textures actually exist... but I noticed in every obj file I've looked at all of the numbers are float32 safe.
Do you know if this is true in a broader case? It makes sense for a lot of the internal numbers to be 64bit, especially the samples which can be large averaged numbers, but it might be a huge savings (and potential performance boost as it should reduce memory bandwidth) to use 32bits for the underlying data where possible.
Sadly, it's not an easy change. for shiggles I started switching out 64's for 32's but there's a lot of it, and preserving 64 where it should be 64 might require adding a vec64 structure since vec is nice and cleanly reused everywhere :)
Also, sadly, it looks pretty fiddly in go to make 32 vs 64 a compile time option :( Haven't read through all the possibilities yet.
At any rate, wondering if you've had any thoughts along these lines? I can see via the googles that it's a big area of discussion, though some notes about GPU acceleration being better at 32bit.
thanks!

That's a super neat thought; in another program I'd say 32 vs 64 is a minor YAGNI optimization but since we're talking about trillions of operations on millions of triangles, halving their space might lead to a significant speedup.
There's no getting around the loss in precision, but I wonder if that loss would be visually apparent. It might be worth doing an absolutely rough first cut of find-replacing all the float64s to 32s, just to see what happens.


suggest how to make a screensaver

per your readme,

I can monitor stdin's tty to get idle time but I haven't figured out the best fork-into-the-background or daemonization scheme to come back and get access to the right tty device.

I suggest, If you use a pty to create a shell, like ttyrec or script, or like python pexpect interact method,

https://github.com/mjording/ttyrec
https://www.man7.org/linux/man-pages/man1/script.1.html
https://pexpect.readthedocs.io/en/stable/api/pexpect.html#pexpect.spawn.interact

you just pipe stdin/stdout/err back and forth, but can also measure a timeout, for a screensaver. See chapter 19, "Pseudo Terminals" of Richard Steven's Advanced Unix Programming book for any explanation

Thanks for the tip, I appreciate it! I had to step away to prepare for interviews but I'll be back soon to check this out and get something going


Add contributing document

This is a first draft of a CONTRIBUTING.md as proposed originally in #429. You can preview what it looks like here: https://github.com/jcbhmr/features/blob/add-contributing/CONTRIBUTING.md
I have a few questions:

What is the CLA process? Should that be added in this document? Is it the Microsoft CLA? Some other special one?
What should go in the short security section? Is what I have there OK? I stole it right from https://github.com/devcontainers/spec/blob/main/SECURITY.md

Closes #429

@microsoft-github-policy-service agree

Beautiful, thank you so much for putting this up! ✨
I agree having a CONTRIBUTING.md would be helpful.
@bamurtaugh / @Chuxel before I jump on to reviewing this PR, would appreciate your insights. Do we have a design on how we should structure this file? or any other guidelines would be helpful.

This is a first draft of a CONTRIBUTING.md. You can preview what it looks like here: https://github.com/jcbhmr/features/blob/add-contributing/CONTRIBUTING.md
It doesn't contain answers to every question in #429. Let me know if I should include more blurbs, sections, or other references to answer these questions. I think the current draft includes the most important information?
Additional questions:

Should any more details about the CLA process be added to the document?
What should go in the short security section? Is what I have there OK? I stole it right from https://github.com/devcontainers/spec/blob/main/SECURITY.md

Closes #429

This is a first draft of a CONTRIBUTING.md. You can preview what it looks like here: https://github.com/jcbhmr/features/blob/add-contributing/CONTRIBUTING.md
It doesn't contain answers to every question in #429. Let me know if I should include more blurbs, sections, or other references to answer these questions. I think the current draft includes the most important information?
Additional questions:

Should any more details about the CLA process be added to the document?
What should go in the short security section? Is what I have there OK? I stole it right from https://github.com/devcontainers/spec/blob/main/SECURITY.md

Closes #429


METRON-397: Add a stellar function to interact with the HBase enrichment table

We currently can only do simple HBase enrichment and threat intel via specialized adapters. With the advent of stellar and the incorporation as an Enrichment adapter, it would be nice to be able to :

Retrieve the map of values stored in HBase given an enrichment type and indicator
Determine existence of a given enrichment type and indicator

To that end, two Stellar functions were added:

ENRICHMENT_GET
ENRICHMENT_EXISTS

This PR relies upon METRON-396, so the PR commit will become much more readable after it is committed.

What is an AccessTracker?  There's no docs and on first pass I don't understand how that relates to  what you have described in METRON-397.

Maybe I am missing them, but I don't see unit tests for the functionality.

The AccessTracker allows us to track which keys in the hbase table are accessed.  This is so that pruning an be done based on most current usage.  It is used in the exisiting HBase Enrichment/ThreatIntel bolt, so it's being continued to be used here.  There are two access trackers currently setup, one is a noop, which is the default.  The other one is to capture the key being accessed in a bloom filter and write the filter out to HBase periodically.  The threatintel_bulk_pruner.sh uses this table for pruning infrequently used rows.

@nickwallen This is tested as part of the enrichment integration tests, but I will add a unit test for the specific function as well.

Putting exactly this sort of description as javadoc for every class that you create would be very much appreciated.
I feel I spend too much effort tracing through Metron code and guessing as to what it is doing.  Effort that would be avoided with a few well-placed comments and javadocs.
We need to minimize barriers for contributors. Its very difficult for others to contribute if we don't spend significant effort to document and comment that code that we are creating.   I think in general this is one thing that we need to significantly improve upon on with Metron.

@nickwallen Thanks for the feedback.  I'm going to disagree heartily that we should spend much time constructing javadocs for an API that is extremely fluid and changing.  To put it frankly, we are in a state of extreme code churn as we grow the platform and those kinds of docs tend to go stale very quickly.  I would rather see more focus on external documentation on the portions of the stack which are stable.
At this point in our maturity, we expect a certain ability to grok code by reading it with the judicious help of the integration tests, unit tests and a debugger.  This is precisely why I spent so much time constructing an integration test harness, so we could trace code to better understand it.
TL;DR: Your position around javadocs and general code documentation is not committer consensus and may not (is not IMO) the best approach for this position in our maturity.

+1.  Ran unit and integration tests and everything looks good.


selenium.common.exceptions.UnexpectedAlertPresentException: Alert Text: None

Hi!
firstly let me say you thanks. This is a good solution to me.
Since last month my script do not work, some errors are shown and I not sure if here is an issue.
Here go the logging information from geckodriver and from python execution.
Thanks in advance.
Python script logging info:
File "/usr/local/lib/python3.9/dist-packages/yt_videos_list/logic.py", line 134, in load_page
wait.until(EC.element_to_be_clickable((By.XPATH, channel_heading_xpath)))
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/support/wait.py", line 71, in until
value = method(self._driver)
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/support/expected_conditions.py", line 297, in call
element = visibility_of_element_located(self.locator)(driver)
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/support/expected_conditions.py", line 128, in call
return _element_if_visible(_find_element(driver, self.locator))
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/support/expected_conditions.py", line 415, in _find_element
raise e
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/support/expected_conditions.py", line 411, in _find_element
return driver.find_element(*by)
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py", line 976, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/errorhandler.py", line 241, in check_response
raise exception_class(message, screen, stacktrace, alert_text)
selenium.common.exceptions.UnexpectedAlertPresentException: Alert Text: None
Message: Dismissed user prompt dialog: This site is asking you to sign in.
geckodriver logging info:
1643352442766	geckodriver	INFO	Listening on <IP_ADDRESS>:38755
1643352442786	mozrunner::runner	INFO	Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofilea68MXZ"
*** You are running in headless mode.
[GFX1-]: glxtest: Unable to open a connection to the X server
[GFX1-]: glxtest: libEGL initialize failed
[GFX1-]: No GPUs detected via PCI
1643352446042	Marionette	INFO	Marionette enabled
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at /tmp/rust_mozprofilea68MXZ/search.json.mozlz4", (void 0)))
1643352452123	Marionette	INFO	Listening on port 43291
1643352452302	RemoteAgent	WARN	TLS certificate errors will be ignored for this session
1643352456889	Marionette	WARN	Ignoring event 'pageshow' because document has an invalid readyState of 'uninitialized'.
1643352460748	Marionette	INFO	Stopped listening on port 43291
JavaScript error: resource:///modules/Interactions.jsm, line 209: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIUserIdleService.removeIdleObserver]

HI,
I'm not sure but there is an attempt to sign in that I suppose that it is not resolved...
See attached image.
Thanks again.

Hi!
Thanks for filing this issue! I noticed a similar problem with the program clicking the wrong button after being redirected to the cookie consent page a while back, and added a change to address the issue in commit 62464aa9cf803c8f8b45bbffcb748f691595bf1c. However, in my case the program was clicking a button to select the display language (English, Spanish, etc.) and the program would time out on the cookie consent page itself (it did not even get past the "Submit" part). The change made above fixed that issue, but the problem you're facing seems slightly different.
In any case, it might be worth it to try running the program with the updated code locally (this change was made after the last release, so it will be available in release 0.6.4) to see if the change addresses your problem too. After you clone/fork the repo and have it locally, try running
cd yt-vidoes-list/python
pip3 install .           # should install changes from local code instead of using code from release 0.6.3

then try rerunning the program again. If this fixes the problem, then everything should be okay (these changes will eventually be available with the PyPI package in release 0.6.4), but if this does not fix the problem, you could try checking out the links I found below (included below the first horizontal line divide).
Another simple workaround could be to set the cookie_consent argument to True during initialization, and see if this fixes the error:
from yt_videos_list import ListCreator
lc = ListCreator(driver='firefox', cookie_consent=True, scroll_pause_time=0.8)
lc.create_list_for(url='https://www.youtube.com/channel/UC8butISFwT-Wl7EV0hUK0BQ')

This technically does not address the error you're seeing since the program will just accepts cookies instead of blocking them (which is the default behavior), but this might be good enough to unblock you temporarily until we figure out a proper fix.

I haven't seen the specific error or stack trace that you included, so I looked up potential causes and solutions and found a couple other posts that faced a similar issue. You might have already seen these, but I'll include them here just in case so that if you missed any of them, or if someone else is facing a similar issue, they can also see the posts and use them as a starting point for debugging:

Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWindowsRegKey.open]. How to resolve this error please

slightly different cause of error here: nsIWindowsRegKey.open instead of nsIUserIdleService.removeIdleObserver
suggests doing a clean reinstall by deleting the Firefox program folder before (re)installing a fresh copy of the current Firefox release
warns about losing personal data if Firefox profile folder is removed (post seems to suggest deleting just the program folder, and not the profile folder) - check out post for more info

0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLFormElement.submit]

also slightly different cause of error here: nsIDOMHTMLFormElement.submit instead of nsIUserIdleService.removeIdleObserver
suggests checking for a pop-up blocker and addressing the pop-up
code in the post is in Java, but a potential way to handle something like this in python would be to run something like the following (taken from here)

### if the pop-up is a new window ###
driver.switch_to.window(driver.window_handles[1])
driver.close() # closes currently active window
driver.switch_to.window(driver.window_handles[0]) # switch back to main window

### if the pop-up is more like a text box overlaid on top of the page ###
driver.switch_to.alert.accept()

# this ***might*** address the following part of your stack trace #
selenium.common.exceptions.UnexpectedAlertPresentException: Alert Text: None
Message: Dismissed user prompt dialog: This site is asking you to sign in.

GeckoDriver is unable to execute AutoIT script

cause of error is actually a match here: nsIUserIdleService.removeIdleObserver
however, the poster seems to be trying to run AutoIT, which is a Windows specific scripting language, and did not post any follow-up information, so the thread is kind of limited

Another post I found, but probably not as relevant here:

Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://bolototoolbar/content/soapclient.js :: anonymous :: line 89" data: no]

different cause of error here as well: nsIXMLHttpRequest.send instead of nsIUserIdleService.removeIdleObserver
thread does not really have much debugging info, but links to 0x80004005 (NS ERROR FAILURE) and other firefox errors, which does have some useful debugging tips

Searching for nsIUserIdleService.removeIdleObserver did not return many relevant posts, but here are the results from different places:

DuckDuckGo (seems to have the closest matches)
Bing (similar to results above)
Google

If none of the above works, it might be worth debugging more and looking at the full stack trace - the code right now includes just the error message and hides the full stack trace for the original error, so you see
===>ERROR!<===\

There was a problem running the selenium webdriver!

Try running the program again with headless=False if you are currently running the program with headless=True

For further debugging, this was the exact error message (might also be blank):
Alert Text: None
Message: Dismissed user prompt dialog: This site is asking you to sign in.

# the following was NOT in your attached image, but I think it shows up in the terminal console #

File "/usr/local/lib/python3.9/dist-packages/yt_videos_list/logic.py", line 134, in load_page
wait.until(EC.element_to_be_clickable((By.XPATH, channel_heading_xpath)))
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/support/wait.py", line 71, in until
value = method(self._driver)
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/support/expected_conditions.py", line 297, in call
element = visibility_of_element_located(self.locator)(driver)
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/support/expected_conditions.py", line 128, in call
return _element_if_visible(_find_element(driver, self.locator))
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/support/expected_conditions.py", line 415, in _find_element
raise e
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/support/expected_conditions.py", line 411, in _find_element
return driver.find_element(*by)
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py", line 976, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/errorhandler.py", line 241, in check_response
raise exception_class(message, screen, stacktrace, alert_text)
selenium.common.exceptions.UnexpectedAlertPresentException: Alert Text: None
Message: Dismissed user prompt dialog: This site is asking you to sign in.

You did already include part of the stack trace under the "Python script logging info" part of your post (the last part in the code snippet above), but based on how I wrote the error handling, the stack trace (currently) shows only the most recent error that causes the program to crash, instead of the whole chain of errors (if there were multiple errors). For example, if there was an error that caused another error, and that error caused another error, I think the program only shows the last of the 3 errors, instead of all 3 errors.
Hopefully something here helps you debug the problem here, but in case nothing works, I'll add a change to see the full stack trace soon. I didn't know how to properly raise an exception from the original exception when I initially wrote the error handling logic, but I'll push up a change that fixes this soon and post an update here when I do.

Hi slow-but-steady,
thanks for your time and great response.
I test the new commit but sadly the error is there, and the other workaround does not solve the problem, I always use cookie_consent to True.
I will wait to the next release in order to check it. As alternative path I will try to use a fresh container to try it again...At this moment all the work is done by a raspberry pi.
I use your lib in my home in order to download the urls of youtube channels and users in order to block them with a squid proxy (Squid-in-the-middle SSL Bump). At this moment there are more that 100000 urls blocked ....my daughters will be happy if it does not work, ha,ha,ha...
Again thanks for your work and for share it!
Only for info, here is the error after change, I think that is the same:
=======> NOTE <=======
You are using yt_videos_list package version >= 0.6.0 (currently 0.6.3).
There are some formatting changes to the output files as of release 0.6.0 that may potentially interfere with your workflow, so please review https://github.com/slow-but-steady/yt-videos-list/releases/tag/v0.6.0 to see if you need to do anything.
There are also some changes to the return value from the create_list_from() method in release 0.6.1 that may also potentially interfere with your workflow, so please review https://github.com/slow-but-steady/yt-videos-list/releases/tag/v0.6.1 to see if you need to do anything.
Thanks!
Redirected to consent.youtube.com!
Accepting consent for all cookies since program running with cookie_consent=True ...
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/yt_videos_list/logic.py", line 131, in load_page
wait.until(EC.element_to_be_clickable((By.XPATH, channel_heading_xpath)))
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/support/wait.py", line 71, in until
value = method(self._driver)
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/support/expected_conditions.py", line 297, in call
element = visibility_of_element_located(self.locator)(driver)
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/support/expected_conditions.py", line 128, in call
return _element_if_visible(_find_element(driver, self.locator))
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/support/expected_conditions.py", line 415, in _find_element
raise e
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/support/expected_conditions.py", line 411, in _find_element
return driver.find_element(*by)
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py", line 976, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/errorhandler.py", line 241, in check_response
raise exception_class(message, screen, stacktrace, alert_text)
selenium.common.exceptions.UnexpectedAlertPresentException: Alert Text: None
Message: Dismissed user prompt dialog: This site is asking you to sign in.
===>ERROR!<===
There was a problem running the selenium webdriver!
Try running the program again with headless=False if you are currently running the program with headless=True.
For further debugging, this was the exact error message (might also be blank):
Alert Text: None
Message: Dismissed user prompt dialog: This site is asking you to sign in.


React HOC gives 'some incompatible instantiation of P' when resulting component has props

Flow try
When the resulting component doesn't have any custom props, it works, but if I add some, when spreading all props it breaks for some reason. What am I doing wrong?
type InjectedProps = {
	foo: number;
}

type HOCProps = {
	bar: string
}

function enhanceWithFoo<P: {}>(
	WrappedComponent: React.ComponentType<InjectedProps & P>
): React.ComponentType<HOCProps & P> {
 	return class HOC extends React.Component<HOCProps & P> {
  		render() {
  			return (<WrappedComponent  {...this.props} foo={3} />);
		}
	}
}

28:   			return (<WrappedComponent  {...this.props} foo={3} />);
                 ^ props of React element `WrappedComponent`. This type is incompatible with
23: function enhanceWithFoo<P: {}>(    ^ some incompatible instantiation of `P`

It works in v62+


storyshots example not working only leads to error

 Issue by radosch
Monday Mar 20, 2017 at 12:53 GMT
Originally opened as https://github.com/storybooks/storyshots/issues/88

FAIL  ./Storyshots.test.js Test suite failed to run
Cannot find module '../../package' from 'node.js'

  at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:169:17)
  at Object.<anonymous> (node_modules/babel-core/lib/api/node.js:60:16)

anyone has a clue / hint if this is a failure of implementation or a bug?
thnx a lot!

 Comment by eric-burel
Tuesday Apr 11, 2017 at 10:38 GMT

Don't forget to add json as a valid module extension in your jest config:
    "moduleFileExtensions": [       "js", "jsx", "ts", "tsx", "json"     ],
Indeed you can see in babel-core code that it loads the root package.json file.


Bug: Copyright year should be updated

Describe the bug
In the footer of this site, we can see that the year is 2022

which needs to be updated
and also it should be automated to change automatically when the year changes
Steps to reproduce

Go to https://hot.opensauced.pizza/
Scroll till the end
Notice that the year beside the copyright symbol needs to be updated

Affected services
hot.opensauced.pizza
Platforms
Desktop, Mobile, Tablet, TV
Browsers
Chrome, Firefox, Safari, Edge, Opera
Environment
No response
Additional context
No response
Code of Conduct

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

Contributing Docs

[X] I agree to follow this project's Contribution Docs

.take

Thanks for letting me contribute 🚀


How does prune work in detail?

Given the following config:
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization
metadata:
  name: foobar-dev
spec:
  interval: 5m0s
  path: ./dev
  prune: true

The directory structure in the repo looks like the following:
cool-repo-name
  |- dev/
  |- not-applied-by-fluxcd/

So the Kustomization controller is configured to watch for file inside the dev directory. Also it should prune manifests when they are not there anymore.
What happens, when I move some manifests from the dev directory to the not-applied-by-fluxcd directory? Will FluxCD delete these manifests from the cluster?

I think no, because the ./dev folder have no kustomization now. So the generate step will fail as below:
NAME        READY   STATUS                                                                                AGE
demo-jane   False   kustomization path not found: stat /tmp/demo-jane457362222/test: no such file or directory   34s


Trim the spaces before persisting to a state file

Hi @MikeMcMahon, looks good to me! Before I merge could I just ask that you bump the minor version (so it would become v0.2.0) in the version file and update the ChangeLog to reflect your changes?

I've updated the README as well, i meant to unwind that commit and can back it out.  We have actually patched all of the afflicted clusters :)


[fix] http transport deadlock

Fixed dead lock, when try to receive message after http transport closed

related #2431


[0.11.1] Do not require non-aggregators to subscribe to attestation subnets

ethereum/eth2.0-specs#1685

we already do this, no code change


ISPN-6353 REST service fails to start during remote query server inte…

…gration tests

define rest and memcachedCache to avoid being created based on the default config (which would fail due to classloading of InfinispanIndexManager)
remove module attribute from cache definitions that do not need it

Jira: https://issues.jboss.org/browse/ISPN-6353

Integrated, thanks Adrian!


Where do the targets for CornerNet_Loss() come from?

I'm working on a project that tries to implement CornerNet_Squeeze, and was wondering how the CornerNet_Loss function knows what the targets are. I tried searching to see where it is called, but it is only called in the initialization of CornerNet_Squeeze.
I can tell that the targets is a list of 7 elements from looking at forward(self, outs, targets). Is there a place where targets is initialized?

Hello,
Have you found the answer to this questions?


remove the date from FStar_Version.ml

this causes the entire dependency graph to be invalidated, and then ocamlbuild doesn't buy us any time

the commit hash is a similar business though?

pretty similar, although across a single development cycle the commit hash doesn't change

from slack: it's weird that FStar_Version is at the leaf of the dependency graph. I suspect it's called from Fstar_Util instead of being called from Fstar_Fstar

https://github.com/FStarLang/FStar/commit/e43fa6af


Issues when trying to build locally

Trying the local setup locally (Ubuntu 23.10) following: https://github.com/emscripten-forge/recipes?tab=readme-ov-file#local-builds
First issue encountered after running this command:
./emsdk/setup_emsdk.sh 3.1.45 ~/emsdk

Running CMake: ['cmake', '-G', 'Unix Makefiles', '-DCMAKE_BUILD_TYPE=Release', '-DPYTHON_EXECUTABLE=/home/jtp/micromamba/envs/emscripten-forge/bin/python3', '-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14', '-DZSTD_FROM_INTERNET=ON', '/home/jtp/emsdk/ccache/git-emscripten_64bit/src']
[Errno 2] No such file or directory: 'cmake'
Could not run CMake, perhaps it has not been installed?
Installing this package requires CMake. Get it via your system package manager (e.g. sudo apt-get install cmake), or from http://www.cmake.org/
error: installation failed!

So I installed cmake in the emscripten-forge environment with:
micromamba install cmake

Deleting ~/emsdk and re-running ./emsdk/setup_emsdk.sh 3.1.45 ~/emsdk.
Second issue now is (at the emsdk building ... phase):
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
CMake invocation failed due to exception!
Working directory: /home/jtp/emsdk/ccache/git-emscripten_64bit/build_emscripten_64
Command '['cmake', '-G', 'Unix Makefiles', '-DCMAKE_BUILD_TYPE=Release', '-DPYTHON_EXECUTABLE=/home/jtp/micromamba/envs/emscripten-forge/bin/python3', '-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14', '-DZSTD_FROM_INTERNET=ON', '/home/jtp/emsdk/ccache/git-emscripten_64bit/src']' returned non-zero exit status 1.
error: installation failed!

Logging this in an issue here so it's easier to find.
Maybe I made a mistake in one of the previous steps. I'll try to start over to double check.

I believe cmake and make need to be installed


Tezos (XTZ) SDK added

Tezos (XTZ) SDK and its coin-tester app are added.
Checklist:

README.md includes:

[ O ] The details of signing data and transaction data, this includes parameters.
[ X ] Official docs or white paper.
[ O ] Website or api can query assets and broadcast transaction.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Hi @ellingtonsu, thank you for your support on the coin integration. I've tested your code and it works well till the signTransaction.

Hi @ellingtonsu, thank you for your support on the coin integration. I've tested your code and it works well till the signTransaction.

Hi, @skchang0710, did you reveal source account first? Any manager operation (including transaction operation) can be submitted before revealing the public key of the account by sending reveal operation.

The other effort should be done before this PR approved, It is about the SDK convention - We don't apply internet request in this SDK to avoid exclusive methods on different platform.
So the recommendation is moving the "isRevealNeeded" method from coin-xtz to coin-tester.

Hi @ellingtonsu, thank you for your support on the coin integration. I've tested your code and it works well till the signTransaction.

Hi, @skchang0710, did you reveal source account first? Any manager operation (including transaction operation) can be submitted before revealing the public key of the account by sending reveal operation.

Yes, it is my mistake. I try to generate the other address to copy but forgot to set it back to the revealed one.
It passed now, I will test the other methods, thank you.

Hi @ellingtonsu, thank you for your support on the coin integration. I've tested your code and it works well till the signTransaction.

Hi, @skchang0710, did you reveal source account first? Any manager operation (including transaction operation) can be submitted before revealing the public key of the account by sending reveal operation.

Yes, it is my mistake. I try to generate the other address to copy but forgot to set it back to the revealed one. It passed now, I will test the other methods, thank you.

All operations have been signed and sent on chain properly.
There are only three arguments need to be clarified.

fee : The fee calculation should be demonstrated in the code, either in "coin-sdk" or in "coin-tester".
gas_limit : What is it and where is it from. (API ?)
storage_limit : What is it and where is it from. (API ?)

The other effort should be done before this PR approved, It is about the SDK convention - We don't apply internet request in this SDK to avoid exclusive methods on different platform.
So the recommendation is moving the "isRevealNeeded" method from coin-xtz to coin-tester.

OK. The "isRevealNeed" method has been moved from coin-xtz to coin-tester in commit 4b53f3e

All operations have been signed and sent on chain properly. There are only three arguments need to be clarified.

fee : The fee calculation should be demonstrated in the code, either in "coin-sdk" or in "coin-tester".
gas_limit : What is it and where is it from. (API ?)
storage_limit : What is it and where is it from. (API ?)

The description of fee, gas_limit, and storage_limit is introduced in chain documentation (Section 1.3 and Section 5.4).
The estimate has been implemented in commit 699d1d3.

Since the XTZ SDK works as the transaction generated by it can be sent on chain successfully. The remaining confusion is how to fetch reasonable fees and other default values. Please add descriptions or demonstrate it in the coin-tester.

Since the XTZ SDK works as the transaction generated by it can be sent on chain successfully. The remaining confusion is how to fetch reasonable fees and other default values. Please add descriptions or demonstrate it in the coin-tester.

In taquito 12.0.0, it is possible to estimate with configured wallet and does not require the private key except for reveal operation. It is safe to use default estimate for reveal operation that is immutable with fixed cost. A mockCoolWallet can be and has been implemented in coin-tester for dry-run estmation in commit 8343ef9.


fix typo in blogpost title

Provide a description of what has been changed
Checklist

[x] Commits are signed with Developer Certificate of Origin (DCO)

Fixes #

Thanks for cleaning up the mess I created!

🤣


sound: g_bbuf_size should be determined after codec is determined

Fixes #910, if both client and server support more than one codecs,
g_bbuf_size might be set to wrong value.
There might be a better fix but this certainly fixes the issue.

+1

The diff is simple enough, let's merge.


GRSciColl search: code and country

We noticed people typing "Finland" into collection and institution search.
I took a look at the search SQL and it doesn't look particularly trivial to add to the generic '?q=' query (although it could be achieved if preferable).
I suggest instead adding options to search by code and by country in the UI similar to the management console which I expect would satisfy many entry needs.

Given that we have a new GrSciColl site coming up within the next month, I suggest closing this issue. Just let me know if you disagree


Move required 3rd party libraries into setup.py requirements

We don't look for several required third party libraries until runtime.  That means that people can successfully install and then get errors when they try to run.  We should handle requirement dependencies at install time.  See #384

3rd party lib imports in gcalcli.py
try:
    from dateutil.tz import tzlocal
    from dateutil.parser import parse
    import httplib2
    from six import next
    from six.moves import input, range, zip, map, cPickle as pickle
    from apiclient.discovery import build
    from apiclient.errors import HttpError
    from oauth2client.file import Storage
    from oauth2client.client import OAuth2WebServerFlow
    from oauth2client import tools
except ImportError as exc:  # pragma: no cover
    print("ERROR: Missing module - %s" % exc.args[0])
    sys.exit(1)

So, packagewise, that boils down to
dateutil
httplib2
six
apiclient
oauth2client

Current setup.py has:
      install_requires=[
          'python-dateutil',
          'google-api-python-client>=1.4',
          'httplib2',
          'oauth2client',
          'parsedatetime',
          'six'
      ]

So it looks to me like this is actually already done.


Parentheses on constructor annotation

Question: Why the scalameta parser ignores parentheses appended to constructor annotations?
Use case: In a playframework-2.6 application, I'd like to expand some controllers which use dependency injection, i.e.
@someMacro class FooController @Inject() (cc: ControllerContexts) extends AbstractController(cc) { ??? }
                                   // ^ those parentheses are indispensable

However, it will be expanded into:
class FooController @Inject (cc: ControllerContexts) extends AbstractController(cc) { ??? }
                        // ^ parentheses are GONE

and this results in a compilation error.
Cause: In https://github.com/scalameta/scalameta/blob/master/scalameta/parsers/shared/src/main/scala/scala/meta/internal/parsers/ScalametaParser.scala#L3367-L3370 , parentheses are removed if allowArgss is false, and it is actually false when parsing constructor annotations: https://github.com/scalameta/scalameta/blob/master/scalameta/parsers/shared/src/main/scala/scala/meta/internal/parsers/ScalametaParser.scala#L2714
Can I remove those lines? If not, I wonder why.
Thanks

Are you using inline/meta macro annotations? If so, the problem is probably in LogicalTrees https://github.com/scalameta/scalameta/blob/master/scalahost/core/src/main/scala/scala/meta/internal/scalahost/converters/LogicalTrees.scala
LogicalTrees may be going away soon soon (see  https://github.com/scalameta/paradise/issues/194 and #808) in favor of a more robust approach that makes it easier to preserve all details in the original source

Indeed I use inline/meta macro, but the cause is really in LogicalTrees? I just read the source now, but got no idea about where the parentheses is removed.

Inline/meta macro annotations don't use the scala.meta parser, they use LogicalTrees to convert between scala-reflect trees and scala.meta trees. The motivation behind https://github.com/scalameta/paradise/issues/194 to get rid of the inherent complexity of LogicalTrees. I spent a significant amount of time making sure the converter preserves all syntactic details in the original source and we have a large test suite to check this. However, despite our efforts, the converter is still incomplete.
Is this a blocker? You can try to add a test case here and see if you can track down the cause. However, note that LogicalTrees may be going away in the next few weeks in favor of using the scala.meta parser directly.

Thanks for comprehensive explanation. I've try that test (syntactic("class Foo @Inject() (cc: ControllerContexts) extends AbstractController(cc)")). It passes when allowArgss == false (as in this repository), and actually, it fails when allowArgss == true. My suggestion was completely wrong, sorry about that.
I decided to use some work-around implementations and wait for you to move to scalameta's parser from LogicalTrees.
Thanks again.


When I try to make request and have no SWT, the app warns me, the button seems inactive, but if I press it, the app looks like it's processing my request

Location
swarmdev.city, #pioneer hashtag
Expected behavior
If the button is not active, it should not take the user any further.
Actual behavior
If I push the  button even though it seems "inactive", the app moves on and says "Your request is being processed"
Steps to reproduce the problem

make a new account with no SWT in it
place a request on #pioneer
push the inactive button

Operating system / hardware

Windows desktop computer
Android phone

@matrixator i will close this issue, because it is part of boardwalk, and we are still building it, so this issue will be solved in the coming sprints.


Set default FIWARE Service Path to '/' in cp command

Proposed changes
This PR sets default FIWARE Service Path to '/' for NGSIv2 host in cp command.
Types of changes
What types of changes does your code introduce to the project: Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Update only documentation, not any source code.

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of
them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before
merging your code.

[X] I have read the CONTRIBUTING doc
[X] I have signed the CLA
[X] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged and published in downstream modules

Further comments
N/A

Coverage remained the same at 100.0% when pulling d338633b7f0862db66a2653f1d38c8b4386e1ca3 on fisuda:improve/cp_cmd into 3a6260c92df457a24533dd7d844c1990b8a8c15b on lets-fiware:main.


Can't use bicep; "permission denied"

This is autogenerated. Please review and update as needed.
Getting an error executing az bicep commands and az deployment when using bicep files. Appears correct permissions have not been applied to the bicep executable(s).
Command Name
az bicep version
Errors:
The command failed with an unexpected error. Here is the traceback:
[Errno 13] Permission denied: '/root/.azure/bin/bicep'
Traceback (most recent call last):
  File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 657, in execute
    raise ex
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 720, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 691, in _run_job
    result = cmd_copy(params)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
    return self.handler(*args, **kwargs)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/resource/custom.py", line 3566, in show_bicep_cli_version
    print(run_bicep_command(["--version"], auto_install=False))
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/resource/_bicep.py", line 69, in run_bicep_command
    installed_version = _get_bicep_installed_version(installation_path)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/resource/_bicep.py", line 181, in _get_bicep_installed_version
    installed_version_output = _run_command(bicep_executable_path, ["--version"])
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/resource/_bicep.py", line 215, in _run_command
    process = subprocess.run([rf"{bicep_installation_path}"] + args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/opt/az/lib/python3.6/subprocess.py", line 423, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/opt/az/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/opt/az/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: '/root/.azure/bin/bicep'

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az bicep version

Expected Behavior
These commands should execute without issues. Bicep should be installed/added to system and have necessary permissions for execution applied without user intervention.
Environment Summary
Linux-<IP_ADDRESS>-microsoft-standard-WSL2-x86_64-with-debian-10.10, Debian GNU/Linux 10 (buster)
Python 3.6.10
Installer: DEB

azure-cli 2.28.0

Additional Context

Additionally, the following happens if I attempt to fix the problem on my own:
root@5f528e7a8067:/workspaces/durable-functions-producer-consumer# sudo chmod +x /root/.azure/bin/bicep
root@5f528e7a8067:/workspaces/durable-functions-producer-consumer# az bicep version
The command failed with an unexpected error. Here is the traceback:
[Errno 8] Exec format error: '/root/.azure/bin/bicep'

must've  been something in the dev container environment. I blew the whole thing away, re-built, and things are working now 🤷🏻♂


Fix infinite loop on unknown elements in VO's.

Fixes #73

Fix will be verified on monday, when I am back on my workstation. Thx so far for your quick response


feat: solana solidity javascript client

Very much a work in progress.
Features:

[x] Upload a BPF program
[x] Interact with an existing on-chain program
[x] Call a constructor of a solidity contract
[x] Call a function of solidity contract, eth abi encoding its arguments and eth abi decode the return values or BPF error return
[x] Call a function as an RPC call, so off-chain
[x] Properly decode errors (Retrieve the compute units used, any logs written using print(), and retrieve error)
[x] Events
[x] Documentation
[x] Tests
[x] Example

Just a note to say that Solang uses a new mechanism for return data: https://github.com/hyperledger-labs/solang/pull/485

This requires latest solana
It's possible to retrieve revert errors
It's possible to do rpc call with simulateTransaction()
Typescript code should be much simpler
See tests in PR for how this works

Events will be implemented soonish too (PRs are in review)

Perfect. On it..
On Sat, Sep 18, 2021 at 1:27 PM Sean Young @.***> wrote:

Just a note to say that Solang uses a new mechanism for return data:
hyperledger-labs/solang#485
https://github.com/hyperledger-labs/solang/pull/485

This requires latest solana
It's possible to retrieve revert errors
It's possible to do rpc call with simulateTransaction()
Typescript code should be much simpler
See tests in PR for how this works

Events will be implemented soonish too (PRs are in review)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/solana-labs/solana-solidity.js/pull/2#issuecomment-922255361,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AON72DOWU2QMB2SAFVG2ZH3UCRSSVANCNFSM5DDQPZ7Q
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Btw, am getting the following error in the latest version:
'+solana' is not a recognized feature for this target (ignoring feature)
'+solana' is not a recognized feature for this target (ignoring feature)
'+solana' is not a recognized feature for this target (ignoring feature)
LLVM ERROR: unable to allocate function return #1
Abort trap: 6

... compiled with:
cargo build --release

Btw, am getting the following error in the latest version:
'+solana' is not a recognized feature for this target (ignoring feature)
'+solana' is not a recognized feature for this target (ignoring feature)
'+solana' is not a recognized feature for this target (ignoring feature)
LLVM ERROR: unable to allocate function return #1
Abort trap: 6

... compiled with:
cargo build --release

This looks like you're not using the special solana flavoured llvm. You need to build with that llvm in your path. Can either:

Download llvm from the last release https://github.com/hyperledger-labs/solang/releases/tag/v0.1.8, extract and add to your path
Follow the instructions to build it from source: https://solang.readthedocs.io/en/latest/installing.html#building-llvm-from-source
Use the latest docker images https://hub.docker.com/repository/docker/hyperledgerlabs/solang/tags (or extract /usr/bin/solang from it)
Use the solang built from the last CI (use the one  from the main branch) https://github.com/hyperledger-labs/solang/actions

Let me know if I can help in any way

Awesome. Now getting this error:
Transaction simulation failed: Error processing Instruction 0: Program failed to complete
    Program 5kaYt1S1Juo2vcCtufmsw21eaThz4sUEqJz75GURyXia invoke [1]
    Program 5kaYt1S1Juo2vcCtufmsw21eaThz4sUEqJz75GURyXia consumed 733 of 200000 compute units
    Program failed to complete: ELF error: Unresolved symbol (sol_set_return_data) at instruction #3171 (ELF file offset 0x6230)
    Program 5kaYt1S1Juo2vcCtufmsw21eaThz4sUEqJz75GURyXia failed: Program failed to complete

Will explore it more tomorrow..

@vbstreetz this means your solang is working, however you need to use the latest master branch on solana. You could use the edge docker image:
docker run --rm -it -p 8899:8899 -p 8900:8900 solanalabs/solana:edge

that worked. thanks! btw https://github.com/hyperledger-labs/solang/pull/495

@vbstreetz thank you for the PR.
Events are also supported now. See https://github.com/solana-labs/solana/pull/19764

awesome. added support for:

subscribing to events via callbacks
errors (including parsing compute units used)

dry run / simulation as well. format is contract.simulate.method(...)

will now add some unit tests, mostly on the logs parsing...

Hey there. Managed to check out the above?

@vbstreetz you have made a lot of progress!
So I've taken a first look. There is a lot of good stuff. I do have some questions:

deploy can revert. This needs code and test
I'm not sure the interface for calling functions works. The arguments to
a function could be an arrray or struct:
contract.functions.get_max([1,2,3]);
Will the code think that the last argument is the pubkeys/seeds etc object?
print log message cannot be retrieved:

contract hello {
    constructor {
        print("Hello, World!");
    }
}

This needs some code and test.

Gotcha. On it..

The latest solang adds a new value field to the transaction, see https://github.com/hyperledger-labs/solang/pull/502

Awesome. Fixed issue 2 and also added support for subscribing to Program log:s: https://github.com/vbstreetz/solana-solidity.js/blob/master/examples/print/tests/print.spec.ts#L16

Awesome. Pushed a new version at https://www.npmjs.com/package/solana-solidity. Btw, say more about deploy can revert. This needs code and test. I think deployment retry attempt logic should be left to the consumer of the lib or?

Awesome. Pushed a new version at https://www.npmjs.com/package/solana-solidity. Btw, say more about deploy can revert. This needs code and test. I think deployment retry attempt logic should be left to the consumer of the lib or?

Yes, a revert should bubble up to the consumer of the lib.

Gotcha. On it..

@vbstreetz I've tried to use the library this morning. Some observations:

The example in Readme.md does not compile
How do I run the tests? There is nothing in package.json about tests and when I try to run them I get:

$ ./node_modules/.bin/tsc && ./node_modules/.bin/mocha $(find . -name \*.spec.ts)
/home/sean/git/solana-solidity.js/examples/erc20/tests/erc20.spec.ts:1
import expect from 'expect';
^^^^^^

SyntaxError: Cannot use import statement outside a module

Please can we have a working npm test. I can have solang in my path and solana running, that's not a problem.
In the function call, pubkeys should be spit into accounts and writable_accounts.  Contract.deploy() also needs an accounts and writable_accounts. Both also need a value field.

Btw, pushed an update for catching deployment errors here https://github.com/vbstreetz/solana-solidity.js/commit/259408bba88cc14cd7480c799760624c2b3d966b.

To run test please use the make targets , for example, to run all tests:
make test-all-examples

To test a specific example:
make test-example o=errors

To run unit tests:
make test-unit

Added support for:

accounts and writableAccounts https://github.com/vbstreetz/solana-solidity.js/commit/c426cd4200b3730ac72792c053acdb1246433cf3
value https://github.com/vbstreetz/solana-solidity.js/commit/bddddb76e1aadc0cbddd62bce7d7ceaf6d58cbb0

@vbstreetz I'm re-writing the solang tests using this library. I'm not done yet but it looks great so far!
Two issues:

The Makefile is totally broken on Linux
We will probably publish the package under @solana/solidity.js so your package will have to be unpublished, I'm afraid.

Hey! Awesome. Let me unpublish it. I could also transfer ownership. I'll
also test the Makefile issue on a vps..
On Sun, 3 Oct 2021, 10:59 Sean Young, @.***> wrote:

@vbstreetz https://github.com/vbstreetz I'm re-writing the solang tests
using this library. I'm not done yet but it looks great so far!
Two issues:

The Makefile is totally broken on Linux
We will probably publish the package under @solana/solidity.js so
your package will have to be unpublished, I'm afraid.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/solana-labs/solana-solidity.js/pull/2#issuecomment-932884201,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AON72DNUDU7NVHQHFBV6E5DUFAEO5ANCNFSM5DDQPZ7Q
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Ok fixed the Makefile issue + warnings https://github.com/vbstreetz/solana-solidity.js/commit/f363b041bb1c357b93d9d1f1a95bb49071526e0a.

@vbstreetz I have to comment out the first line of the makefile on Linux:
$ make
Makefile:1: *** Recursive variable 'o' references itself (eventually).  Stop.

With that commented out, the makefile and the tests work fine.
The other issue I have is that when I use the library, I have strict typescript mode enabled. With this enabled I issues with various things. The library should work in strict mode - please could you enable strict mode and fix the issues. (just add "strict": true, to tsconfig.json. Thank you.

Gotcha. On it.
Btw two questions:

Are we able to estimate the space needed for a contract account?
And getting some compile errors on this.

@vbstreetz thanks for the latest changes, good improvements.
The space needed for a contract is known by the compiler but it's not saved to the abi file. I think we need an extend abi file which includes all the abis, names of the contracts, and how much space they need. This is not implemented yet - still have to decide on a format. So this can be added later.

The library does not work with @solana/web3.js version 1.29.2. This is needed for the ed25519 program to ed25519 signature verifications, also the library should just work with the latest @solana/web3.js.
errors.spec.ts has typescript errors in it. I think to solve this TxError has to be exported (index.ts needs export * from './logs'; )

Gotcha. Fixed the TxError issue. Although, I see no errors after upgrading to the latest @solana/web3.js..

@vbstreetz thanks for the latest changes, good improvements.
The space needed for a contract is known by the compiler but it's not saved to the abi file. I think we need an extend abi file which includes all the abis, names of the contracts, and how much space they need. This is not implemented yet - still have to decide on a format. So this can be added later.

The library does not work with @solana/web3.js version 1.29.2. This is needed for the ed25519 program to ed25519 signature verifications, also the library should just work with the latest @solana/web3.js.
errors.spec.ts has typescript errors in it. I think to solve this TxError has to be exported (index.ts needs export * from './logs'; )

Mind sharing the error you're experiencing with the latest solana/web3.js?

Unless it was probably just a type's mismatch issue...

Mind sharing the error you're experiencing with the latest solana/web3.js?

Sorry that was my bad! No problem there.
However, the event interface is not so great unfortunately.

Solidity programs often have a quite a few different events. We want to be able to listen to any event a program generates. Also you want the address/account that generated the event (from the program log)
There is no way to get events from simulate
There is no way to get  print logs from simulate

Print logs from token.simulate.func() is pretty important.

Gotcha. I guess we change the api to something like?
try {
   const {result, logs, computeUnitsUsed, events} = await contract.functions.method(...);
} catch (err) {
  console.log(err.message);
  console.log(err.logs);
  console.log(err.computeUnitsUsed);
}

@vbstreetz I can't see how the code matches your comment. contract.function.method({simulate: true}) still returns the return values, not an object with the results, logs, events, computeUnitsUsed.
Also we still have the problem that the event subscription is only for one event type, not any.
Lastely it should be possible to set the commitment level in the api.

Oh, i wanted to confirm if we should change to that 🙂. On it..
On Tue, 5 Oct 2021, 17:05 Sean Young, @.***> wrote:

@vbstreetz https://github.com/vbstreetz I can't see how the code
matches your comment. contract.function.method({simulate: true}) still
returns the return values, not an object with the results, logs, events,
computeUnitsUsed.
Also we still have the problem that the event subscription is only for one
event type, not any.
Lastely it should be possible to set the commitment level in the api.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/solana-labs/solana-solidity.js/pull/2#issuecomment-934446316,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AON72DLVW5KZRYNA2GV56DTUFMA37ANCNFSM5DDQPZ7Q
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

ah sorry for the misunderstanding :slightly_smiling_face:

Hey! I've implemented the above including contracts deployment and API:
const {program, logs, computeUnitsUsed} = await program.deployContract({
    name: '...',
    abi: '...',
    storageSize: 8192 * 8,
    constructorArgs: [],
  });

Also made the space param mandatory.

There is no test for createProgramAddress either; not this works properly.

I actually removed that util func since it wasn't being used. Added some tests for the other utils.

* ContractDeployResult is missing events
  I think you meant ContractCallResult? Anyways, fixed.

Events can be emitted during deploy, so yes I meant ContractDeployResult.

* contract.functions.method({ simulate: true }) does not return events
  Fixed.

Thanks, looks good.

* if a contract fails before a return value is set (e.g. it runs out of contract space)
  then the error is overwritten with "return data or log not set"
  Please share an example on this...

I've created a pr with a test case. https://github.com/vbstreetz/solana-solidity.js/pull/1
Essentially you want any error which occurs before return  data is set to be caught and not to be overriden by "no return data set".

* the event listener callback function should receive an event type with:
  Made the listener to only subscribe to the [current program logs](https://github.com/vbstreetz/solana-solidity.js/blob/937c28d67193cdd7d00ebf22e95c0e3148e315ae/src/logs.ts#L190-L192). Please say more about what you meant by `decoded fields` and `topics`. Did you mean filtering similar to ethers.js API https://docs.ethers.io/v5/concepts/events/?

What I means that:
export type EventCallback = (...args: any) => void;

should become
export type EventCallback = (event: ethers.utils.LogDescription) => void;

also:
  public addEventListener(
    abi: ethers.utils.Interface,
    eventName: string,
    callback: EventCallback
  ): number {

should become:
  public addEventListener(
    abi: ethers.utils.Interface,
    callback: EventCallback
  ): number {

createProgramAddress() should be used to create a new address and seed for creating contracts at runtime. I've included a test in https://github.com/vbstreetz/solana-solidity.js/pull/1 which needs fixing up.
Thanks for all the great work! These are all the issues I'm aware of.

Hey. Am getting this error in that create_contract example https://github.com/hyperledger-labs/solang/blob/09842bccd534775725a1223615aba1811fa765bb/stdlib/solana.c#L135. Am assuming the tx here needs 2 transactions? with the first one creating the pda? please help.

Hey. Am getting this error in that create_contract example https://github.com/hyperledger-labs/solang/blob/09842bccd534775725a1223615aba1811fa765bb/stdlib/solana.c#L135. Am assuming the tx here needs 2 transactions? with the first one creating the pda account? please help.

It needs only one transaction, but it needs both the seed and the program derived address. The program derived address must be the first account in the transaction.
This test is exactly the same as the one in the solang integration tests. See here how to set it up to run correctly: https://github.com/hyperledger-labs/solang/blob/main/integration/solana/create_contract.spec.ts

Cool. Managed to fix, for some reason, order of the keys array matters..

@vbstreetz we would like to build upon your work and improve it, so I'm merging this PR.
However, and I can't stress this enough, there are review comments here which still need addressing for the grant to be completed.

@seanyoung awesome! please point out any specific reviews I may have missed to attend to. maybe we can open a project board to better track the reviews. btw, @jordansexton will be conducting yet another review soon based on our call yesterday.


fix incorrect role labels for migrated issues and comments

Fix #22797.
Reason
If a comment was migrated from other platforms, this comment may have an original author and its poster is always not the original author. When the roleDescriptor func get the poster's role descriptor for a comment, it does not check if the comment has an original author. So the migrated comments' original authors might be marked as incorrect roles.

CI failure is related, otherwise LGTM.

ping lg-tm bot


Store Dynasty names in an extra file

Dynasty names for all relevant countries should be saved in a file that the Vic2 to HoI4 converter can then read and use in some special cases.

I'd suggest the format of the output file, to be called EU4dynasties.txt, to be the following:
Tag;Monarchy;Dynasty last;Monarch last
As in, for example:
SWE;y;Bonde;Karl VIII
VEN;n;Bonaparte;Michele Steno

This means: SWE (Sweden) was, at conversion's time, a monarchy ruled by Karl VIII Bonde, whereas VEN (Venice) was not a monarchy, their last ruled was Michele Steno, but that the most recent monarch was of the dynasty named Bonaparte.


Implementing multi-instance  and hierarchical multi-instance learning

Hello all,
I have written two papers about solving multi-instance learning problems with neural network formalism.
Simple mil
and an extension to two multi-instance problems one embedded into the other multi=mil.
I have implemented everything in my library, but as you can expect it is loosing its breath. Would it be possible to implement such functionality in mxnet, such that it can run gpu?
Thank you very much for the answer.
Tomas

Do you mean you implemented it in some other framework and you want to move it to mxnet?
Or do you mean you did it in mxnet and you want to merge it into mxnet master branch?
We well come all contributions. Please open a pull request and we can help you merge it.

It is implemented outside mxnet and I would like to move to it, if possible.

Ok. Then what do you mean by "I have written two papers about solving multi-instance learning problems with mxnet."?
Anyway we welcome the interest. Are you having any difficulties?

Sorry, I have made a mistake and I have corrected that.
The problem I face is with implementation of aggregation operators like mean and max. I have all instances from all bags stored in one matrix. Then on basis of "meta" information I average all instances from each bag. This operation leads to matrix with the same number of features but with number of samples equal to the number of bags. That said, I cannot used mean over one dimension  of the tensor, each bag gas different number of instances. Does mxnet support this operator?

This is supported by v0.9rc1 branch
On Oct 13, 2016 4:50 PM, "pevnak"<EMAIL_ADDRESS>wrote:

Sorry, I have made a mistake and I have corrected that.
The problem I face is with implementation of aggregation operators like
mean and max. I have all instances from all bags stored in one matrix. Then
on basis of "meta" information I average all instances from each bag. This
operation leads to matrix with the same number of features but with number
of samples equal to the number of bags. That said, I cannot used mean over
one dimension of the tensor, each bag gas different number of instances.
Does mxnet support this operator?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/dmlc/mxnet/issues/3515#issuecomment-253536085, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAiudLrEOx41k64v4eE5hS_Z6WkOo1o-ks5qzkUzgaJpZM4KVkx1
.

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!


Documentation of use?

Hey, I'm struggeling to get the NPM package to work? It links to this, but the examples does not use the npm package at all? Can you please elaborate on it?
https://www.npmjs.com/package/h264-live-player

I don't think it really works like a normal lib.  Plus since node added the package-lock.json its even more of an issue...
But I kind of got it to work:

Install browserify if you don't have already (npm install --global browserify)
Install the it with npm npm install h264-live-player
cd node_modules/h264-live-player/
npm install
mkdir dist
npm run dist
copy dist/http-live-player.js to your app, its the complete client side javascript.
remove the h264-live-player module.
Use the server-*.js files as a starting point for implementing your own server.  also the the stuff in the /lib on github.

Hope this helps.  I used this in my Jake Bot project [https://github.com/jbecwar/jake_bot] and I'm pretty happy with it so far :+1:
-James


Add removeDisplayNone option + tests

This adds an options parameter and some tests for a removeDisplayNone option
which specifies if the Emogrifier parser will remove elements with the style
"display: none".

When writing responsive email templates, "display: none" is used often to hide
certain sections of the template for desktop email clients and show them in
phone clients.
I can see how it'd be nice to clean up elements that will not be displayed in
some cases, so I made it an option.

Ping … could you please rebase, re-push and then comment on this PR? Thanks!

@oliverklee Based on the recent pull request (#156) that added a couple of additional options, don't you think that this PR should be modified to follow the same pattern as the new options that have been added? Here is what I would recommend:

Change setOptions method to disableRemoveDisplayNone and set the value of the property directly. See: https://github.com/jjriv/emogrifier/blob/master/Classes/Emogrifier.php#L325
Update the Options section of the README.md file to cover the new option

Yes, absolutely.
(And we should flip the option to "keepDisplayNone" so true does not mean "no display: none" and false does not mean "keep remove: none". This will make the code easier to understand.)

Closing this pull and opening a new one based off the new master with the suggested changes.


Fixes Secure Storage Web Bug on containsKey and implements a containsKey option in the example app that could be integration tested.
Updates files that are required for linux etc. that were not in the repo for Linux. (confirmed not to be in .gitignore)

This fixes the containsKey issue and puts in a containsKey option in the example app on the ... of each key which is obviously redundant because it exists, but this allows an integration test to be written against that option.
Note that android, ios and several others still don't implement containsKey properly.

Flutter pub upgrade only upgrades mokito when run.  Which doesn't change the version of charcode that you're referencing above. It' still at 1.2.0.  Only thing I can't think of other than below is you're using a flutter beta version instead of stable?
This might be caused by the publish_to because you have a dependancy to a library version that doesn't yet exist on pub.dev.  (Google has issues with this, becuase if you update a dependancy to relative, you can't publish, but you can't test without it being published, so you have to change publish_to to none and then relative path it, and then change it back after you're done testing before committing which causes issues)


fix error of RangeFrom in for-loop

fix issue-1542 @matklad

test position fixed @matklad

bors r+
Thanks @bravomikekilo !

github bors seems get some problem. @matklad

bors r+


Issue with MIMIC III Windows install

I've been trying to follow the method presented here. https://mimic.physionet.org/tutorials/install-mimic-locally-windows/. When I try to create tables with the command \i postgres_create_tables.sql, it gives me a syntax error. Screenshot attached. Please guide regarding the same. Thanks!

Have you looked at the contents of your postgres_create_tables.sql file? It looks like you've somehow replaced the SQL content with HTML.

Yes, this will happen if you right click and save the file on the github
website, rather than clicking on the file, then clicking "raw".

It looks like you've somehow replaced the SQL content with HTML.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/MIT-LCP/mimic-website/issues/45#issuecomment-224154424,
or mute the thread
https://github.com/notifications/unsubscribe/ABOSdD4MFq1HM7RpKSda1LXilI5L4EM5ks5qJNyWgaJpZM4Ivf7d
.

@amanthind105, please try again using a fresh copy of postgres_create_tables.sql from the MIMIC Code Repository:
https://raw.githubusercontent.com/MIT-LCP/mimic-code/master/buildmimic/postgres/postgres_create_tables.sql
I'll close this issue for now, but please reopen it if you still have problems.

I meant to thank you guys earlier. That's exactly what was wrong.


Run active record tests on ruby 3.0+

Overview
This PR adds a new multiverse suite active_record_pg that runs the active record tests with postgres instead of mysql like the active_record suite uses. Mysql2 gem is difficult to get working on ruby 3.0+, so we moved to Postgres for all ruby 3.0+ active record tests.
Changes

Run jruby tests on Rails 5.0, 5.2, 6.0, 6.1
Add Postgres service to the multiverse CI actions
Add activerecord-jdbcmysql-adapter and activerecord-jdbcsqlite-adapter to active record suite
Refine Postgresql tests to support Rails 7.0+

Related Github Issue
#902
Reviewer Checklist

[ ] Perform code review
[ ] Add performance label
[ ] Perform appropriate level of performance testing
[ ] Confirm all checks passed
[ ] Add version label prior to acceptance

Note: An earlier suggestion included reducing the duplication of files between the active_record and active_record_pg suites. Unfortunately, sharing a single test file raised errors with finding the database primary keys that I wasn't able to resolve. I'm happy to revisit this as a team if we'd like to continue efforts to reduce duplication.


CXF-8750: only add trailing slash if necessary when locating webjars …

…resources for Swagger UI in OSGi environment

Thanks @awrb , minor comments, LGTM otherwise!

Thanks for the review @reta, I addressed the comments. I closed the previous PR (#981) too.

Thank you, @awrb !

Hm ... the change introduced flakyness into osgi/itests [1], [2] [3], also seeing it flipping locally, looking into it right now:
[1] https://ci-builds.apache.org/job/CXF/job/pipeline/job/3.5.x-fixes/270/
[2] https://ci-builds.apache.org/job/CXF/job/pipeline/job/3.5.x-fixes/269/
[3] https://ci-builds.apache.org/job/CXF/job/pipeline/job/3.5.x-fixes/267/

Oops.. it never failed for me locally before. I have run the tests in osgi/itests several times now (via mvn clean test or install), but it always passes, so I cannot reproduce this.
The pipeline reports
No message body writer has been found for class org.apache.cxf.osgi.itests.jaxrs.Book
and indeed there is no XML provider in set up for JAXRSServerFactoryBean. Should XML work OOTB without a provider? If you were using JSON, you would have to add JacksonJsonProvider, so I would expect the same for XML.
Can you look at #983 to see if it helps?

Thanks @awrb, it seems to be a client-side issue (not the server side).

Should XML work OOTB without a provider?

Yes, JAXB should be there


Revert "Bump sbt-slamdata to 0.5.5"

This reverts commit 8f9f4fc19c777c36e39310f4117e16dbe520176a.
sbt-slamdata's handling of publishTo is applied to root as desired yet not other projects. This leads to faulty publishing. Reinstate once addressed.

Oh, that makes a ton of sense!  Good call on the subprojects.  Will merge as soon as green.


Document all supported query selectors.

For convenience.
These are all covered in the linked Cloudant documentation, but the Cloudant docs don't provide a simple listing of all the available query selectors in one place – instead they've managed to scatter this information across several meters of documentation. This is great if you already know what you're looking for, or you're keen on reading the documentation from cover-to-cover, but is a nuisance for quickly discovering which selectors are even available.

One could also consider breaking the list of selectors out into a separate item rather than nesting it inside another list.

This is great, thank you!


Fix bug in charsetOrUtf8

The new test would fail with the current implementation.
See https://github.com/twitter/finagle/commit/e6e455c32db620c5ecbd1105ee3e29b57c373aff for more details.

Codecov Report

Merging #1104 into master will increase coverage by 0.07%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1104      +/-   ##
==========================================
+ Coverage   80.66%   80.73%   +0.07%
==========================================
  Files          54       54
  Lines        1029     1028       -1
  Branches       59       47      -12
==========================================
  Hits          830      830
+ Misses        199      198       -1

Impacted Files
Coverage Δ

...ore/src/main/scala/io/finch/internal/package.scala
100% <100%> (+2.56%)
:arrow_up:

core/src/main/scala/io/finch/Endpoint.scala
72.57% <0%> (ø)
:arrow_up:

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 2710d69...852bb45. Read the comment docs.