Exporting to PNG or other raster format.

Hi,
Is there anyway to export this to a PNG or any other raster format?
I know i can create a printscreen, but i wanted to have a bigger resolution for a print.
Thanks in advance.

Hi @Kwoalaka and welcome to the Maputnik community. This has already been raised over in issue #180. Take a look at that issue and let us know if the suggested solution meets your requirements.
Also if you have time, please tell us what you use Maputnik for over in #164. Hearing stories helps to keep us motivated 😄

Hi Roangemug,
I noticed, i was looking for a easy exporting method like mapbox offers.
Is there anyway i can use the json file with mapertive or something?
Sorry, i'm a complete noob with this

Hey @Kwoalaka so we are working on a raster export option, and we're getting closer to a working solution. We are however we're still some way off a working version, probably a few weeks.
For some clarification. Maputnik is an editor for the mapbox-gl-js style spec,
you can export the JSON from the 'export modal' in the editor and use it anywhere you like. In issue #180 @pathmapper suggested some existing tools to export as a raster. pkd2512 print maps seems like the easiest way at the moment. If you're comfortable with node.js/npm here are the steps

Create a new directory and place your exported style in that directory
cd to that directory
Install http-server npm i http-server in that directory
run ./node_modules/.bin/http-server --cors
Go to http://prasantakrdutta.com/print-maps add a custom style with the url http://<IP_ADDRESS>:8081/PATH/TO/YOUR/STYLE.json, using either a mapbox access token or a random string if you're not using mapbox data sources
Your style will now appear in the select box on that page ready to export

Closing issue as duplicate of #180


Fibbonacci sum solution added

Related Issue
i want to add solution of fibbonacci sum problem #388
fixes #388
[Cite any related issue(s) this pull request addresses. If none, simply state "None”]
Description
i added solution to fibonacci sum problem
Type of PR

[ ] Bug fix
[x] Feature enhancement
[ ] Documentation update
[ ] Other (specify): _______________

Screenshots / Videos (if applicable)
https://github.com/CodeHarborHub/codeharborhub/assets/127659443/d829e0d4-677c-4b82-98c8-ca548bea9a9a
Checklist

[x] I have performed a self-review of my code.
[x] I have read and followed the Contribution Guidelines.
[x] I have tested the changes thoroughly before submitting this pull request.
[x] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[x] I have commented my code, particularly in hard-to-understand areas.

Additional Context
[Include any additional information or context that might be helpful for reviewers.]
Resources for Guidance
Here are some resources that may be helpful as you contribute to CodeHarborHub:

Code Harbor Hub Community Features
Docusaurus Documentation
React.js Documentation
Markdown Guide
MDX Documentation
Mermaid Documentation

Resources for DSA Features on Our Site:

Tabs: Switch Languages
Line Numbering
Math Equations

hey @Ajay-Dhangar , i have updated as per your suggestion.


Breaks 5e Vehicle Inputs

Editing item attributes (quantity, weight, hp, etc) from inside the 5e vehicle sheet throws ReferenceError: math is not defined and fails to change the value.

Could you verify the that the dependency "Math.js" is also enabled?

I had made the mistake of using Find The Culprit to troubleshoot the issue. Enabling Math.js causes it to no longer throw any error, but the value still fails to change - pressing enter does nothing inside the text box.


Add optional 'stop' and 'descriptor' kwargs to search method.

This would enable users to search like:
catalog.search({'plan_name': 'relative_scan'}, stop={'exit_status': 'success'})

and search on descriptors as well, something that @CJ-Wright has been rightly requesting for some time.

I think the main blocker on this is thinking through how and whether we can implement it in other layouts beside mongo normalized.

I second this as I am currently eliminating data after I retrieve it in my hokey and slow flow control.


[TESTING/WIP] Check CI for emsdk update in proxy-wasm-cpp-sdk PR#172

Test https://github.com/proxy-wasm/proxy-wasm-cpp-sdk/pull/172
Works locally:
$ bazelisk test -c opt //test/extensions/...
...
Executed 690 out of 690 tests: 690 tests pass.

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

2 failures, both look transient:

Timeout error downloading https://github.com/ncopa/su-exec
2 test timeouts in ./bazelw swift-tests

/retest

One more timeout in swift-tests. Try once more.
/retest


images not rendered between  tags in html mode

When rendering in html mode, if I have the following construct the image is not rendered:
![cuteCat](https://i.redd.it/qh713wbo4r8y.jpg)

My current workaround is to replace  with <c!> before the render, then restoring by converting <c!> back to  afterwards.  However, this seems more of a "hacky" work-around rather than the "expected" functionality.

I found one more quirk.  If someone places html header code in html mode, the links are no longer rendered either.  For example:

test:

![cuteCat](https://i.redd.it/qh713wbo4r8y.jpg)

remove the line
test:
 and it renders the image correctly again.

Add empty line after html block tags. That's specified in CommonMark spec. Not a bug.

It does seem to solve it, though it still requires an extra pre-processing step.  Shouldn't that perhaps only be enforced in "CommonMark strict" mode?  I'm processing a more generic html/markdown combo from a public blog site, so "strict"-type processing is not really in the cards for this data set.
Regardless, this definitely helps a lot for now, so thanks for that! :)

IMHO that's not right place for such suggestions. We implement spec and don't discuss format itself. You can ask such questions at commonmark forum or try customized alternatives like https://github.com/npm/marky-markdown (search in npm for plugins).

I have same issue .
How to solve it?


Should clients reject responses with sets with duplicate elements?

If a client receives a response, that, upon deserialization, results in data for a set shape that contains duplicate values, should a client reject it?
Servers do reject requests:
https://github.com/awslabs/smithy/blob/c8ce65a2bcc0264f3aeeb9db096564e0491a8786/smithy-aws-protocol-tests/model/restJson1/malformedRequests/malformed-set.smithy#L15-L36

No. Clients rejecting responses is lossy (it prevents you from knowing about state changes that actually happened).

Under what circumstances should clients reject responses? Only upon deserialization errors (like malformed JSON)? I'm thinking if having httpMalformedResponseTests would be a useful feature..

Yes, in general a client should do everything in its power to render a response from the server. Malformed JSON (or a non-JSON response) are the only cases I can think of where you should reject a response.

We deprecated sets and treating them exactly like @uniqueItems. They'll be removed in IDL v2. In that sense, it's a constraint trait, clients shouldn't evaluate constraint traits (for the most part), so clients shouldn't care if there are duplicates in responses.

Malformed JSON (or a non-JSON response) are the only cases I can think of where you should reject a response.

I think there's another category of warranted response rejections by the client: number conversions. Technically not malformed JSON. But it's best for the client to reject a number that doesn't fit in the Smithy modeled type than to attempt an e.g. double to single-precision float conversion, or a floating point into an integral type conversion, when the receiver type cannot fit the value. Not rejecting could lead to very hard to identify logic bugs.
I think an httpMalformedResponseTests suite would thus be useful just for this case.
I identified this category of errors when trying to pass httpMalformedRequestTests in the server, but also made the change for clients in smithy-rs in https://github.com/awslabs/smithy-rs/pull/1274.


separate from state-machine (#1)

separate from state-machine

readme

readme badges

lint, travis

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@feb6f0f). Click here to learn what that means.
The diff coverage is 98.12%.

@@            Coverage Diff            @@
##             master       #2   +/-   ##
=========================================
  Coverage          ?   98.12%
=========================================
  Files             ?        9
  Lines             ?      374
  Branches          ?       34
=========================================
  Hits              ?      367
  Misses            ?        7
  Partials          ?        0

Impacted Files
Coverage Δ

src/utils.ts
100% <100%> (ø)

src/transitions.ts
100% <100%> (ø)

src/interface.ts
100% <100%> (ø)

src/string-lines.ts
100% <100%> (ø)

src/puml-writer.spec.ts
100% <100%> (ø)

src/transition.ts
90.47% <90.47%> (ø)

src/puml.ts
94.11% <94.11%> (ø)

src/direction-map.ts
96.36% <96.36%> (ø)

src/puml-writer.ts
98.71% <98.71%> (ø)

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 feb6f0f...f4d8780. Read the comment docs.


chore(hail mary): Update package-lock.json via npm-audit-fix

SUMMARY

Just thought this was worth a shot to see if it can pass CI. This removes our dependency warnings from:
(37 moderate, 33 high, 14 critical)
to
(31 moderate, 28 high, 1 critical)
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

Good luck, CI.
ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

It seems this is mostly blocked by typescript problems... this might be fixable, which would be fantastic from a security perspective.

Rekindling this effort, now that storybook is in. This will probably break a whole slew of things, but I'll try to patch what I spot...
Here's the good news, if we can pull this off:

/testenv up

@mistercrunch @michael-s-molina this finally passed CI! With this, vm2 is the only critical dependency, but removing it is a breaking change (killing JS tooltips) so we'll have to punt that to 5.0.
This will need testing, so I'm spinning up a test environment. I'm most worried about things that use Airbnb dependencies (data-ui, visx, vx) since those are not well maintained, and their use is not well tested. Legacy charts that use them may be quietly broken by this PR. Let me know if you want to join in on the testing effort, and we can coordinate a bit.

Now I'm curious to pull this branch and run npm audit, this is great progress! Now if we can fix https://github.com/apache/superset/pull/26944 on the Python side we'll be golden

Hmm... I thought ephemerals were working again... 😞

If we're willing to kill off some charts that have no replacement due to package vulnerabilities, we can take that route, but it sure seems like it'd need official consensus, and that ship has sailed for 4.0.

Yep, that would have been a great 4.0 proposal 😢 I do think we should do that in 5.0 though given the security implications.

Impacted things to test:

Sparkline cell (Timeseries Table)
Histogram
...and more?

Results:
Histogram seems to work (even if it is giving me the finger)

Sparkline seems to work, too!

I think the data-ui problem I was thinking of was part of the React 17 upgrade effort, and this PR doesn't break it. I'll merge this if/when CI passes.


refactor(linter): use get_inner_expression in const-comparisons

#7628
#7627  👈 (View in Graphite)
main

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


Feat: new tab styles

Describe the changes you have made in this PR
I have extracted the tab changes from @HARI-124 (from https://github.com/getAlby/lightning-browser-extension/pull/2322) and made some minor styling improvements.
Link this PR to an issue [optional]
Fixes #1566
Type of change

feat: New feature (non-breaking change which adds functionality)

Screenshots of the changes [optional]

How has this been tested?
Manually
Checklist

[x] My code follows the style guidelines of this project and performed a self-review of my own code
[x] New and existing tests pass locally with my changes
[x] I checked if I need to make corresponding changes to the documentation (and made those changes if needed)

@reneaaron bump 🙂


Upgrade to Hystrix 1.5.5

https://github.com/Netflix/Hystrix/releases/tag/v1.5.5

Since we're currently at 1.5.3 https://github.com/Netflix/Hystrix/releases/tag/v1.5.4


Cloud access  use cases

This issue is to collect the use case scenarios that may exist and a subset that we plan to support:

[ ] authenticated with AWS credentials

[ ] access public data from any regions
[ ] access public data from their region
[ ] access data requiring authentication

[ ] anonymous, not having AWS credentials

[ ] access public data from any regions
[ ] access public data from their region
[ ] access data requiring authentication

users can be on AWS (e.g. with a jupyterhub), or they can be on their computer (inc. non-cloud servers).

Same take from @trjaffe
Use cases:
* User on Fornax
* User on AWS in US east
* User on AWS in US west
* User on university compute cluster, laptop, whatever.

And all of the above with

Data free to any region
Data free only w/in same region

Do I understand correctly that a user who is logged in to our Fornax JupyterHub platform and authenticated through our system (not AWS) inherits the credentials of the Fornax account?  Or are they anonymous unless they have their own?  Or is this a design decision we need to make about Fornax?


Decouple singleton // Instance based classes

Moving towards removing ThirdwebManager dependency for SDKs that want to wrap thirdweb. Also will make it easier to port .NET SDK into Unity SDK later.
Removes old Authenticate and uses thirdweb auth backend based one only.
Removes Nethereum.SIWE, Nethereum.SIWE.Core, Nethereum.GnosisSafe
External and Common APIs affected:

Pay is no longer static, goes through SDK.Pay.*
Blocks is no longer static, goes through SDK.Blocks.*
Raw Transaction constructor (not through Contract.Prepare) now takes in sdk.
Most other raw constructors take in sdk or partial.

Most internal APIs changed, ThirdwebManager Instances all removed except for WalletConnect ScriptableObject Load.
Some utils take in an extra parameter now, some uncommon utils removed.
Adds a couple basic tests for raw sdk initialization, will need to move some of the defaults logic out of ThirdwebManager to make it more user-friendly.

PR-Codex overview
The focus of this PR is to refactor wallet and pay functionality, update SDK usage, and improve IPFS gateway handling.
Detailed summary

Moved ThirdwebPay to a new namespace and added constructor with SDK parameter
Updated SDK usage in various classes
Improved IPFS gateway handling in StorageTests

The following files were skipped due to too many changes: Assets/Thirdweb/Core/Scripts/Pay/ThirdwebPay.GetBuyWithFiatCurrencies.cs, Assets/Thirdweb/Core/Scripts/Pay/ThirdwebPay.GetBuyWithFiatStatus.cs, Assets/Thirdweb/Examples/Scripts/Prefabs/Prefab_BuyWithCrypto.cs, Assets/Thirdweb/Core/Scripts/Pay/ThirdwebPay.GetBuyWithFiatQuote.cs, Assets/Thirdweb/Core/Scripts/Pay/ThirdwebPay.GetBuyWithCryptoStatus.cs, Assets/Thirdweb/Core/Scripts/Pay/ThirdwebPay.BuyWithCrypto.cs, Assets/Thirdweb/Core/Scripts/Pay/ThirdwebPay.GetBuyHistory.cs, Assets/Thirdweb/Core/Scripts/Pay/ThirdwebPay.GetBuyWithCryptoQuote.cs, Assets/Thirdweb/Core/Scripts/WalletsUI/WalletConnectUI.cs, Assets/Thirdweb/Examples/Scripts/Prefabs/Prefab_BuyWithFiat.cs, Assets/Thirdweb/Core/Scripts/EIP712.cs, Assets/Thirdweb/Core/Scripts/Blocks.cs, Assets/Thirdweb/Examples/Scripts/Prefabs/Prefab_Miscellaneous.cs, Assets/Thirdweb/Core/Scripts/ThirdwebSDK.cs, Assets/Thirdweb/Core/Scripts/ThirdwebSession.cs, Assets/Tests/WalletTests.cs, Assets/Thirdweb/Core/Scripts/Utils.cs, Assets/Thirdweb/Core/Scripts/TransactionManager.cs, Assets/Thirdweb/Core/Scripts/AccountAbstraction/Core/BundlerClient.cs, Assets/Tests/ThirdwebSDKTests.cs, Assets/Thirdweb/Core/Scripts/Pack.cs, Assets/Thirdweb/Core/Scripts/Storage/Storage.cs, Assets/Thirdweb/Core/Scripts/Contract.cs, Assets/Thirdweb/Core/Scripts/Transaction.cs, Assets/Thirdweb/Core/Scripts/ERC20.cs, Assets/Thirdweb/Core/Scripts/ERC721.cs, Assets/Thirdweb/Core/Scripts/AccountAbstraction/Core/SmartWallet.cs, Assets/Thirdweb/Core/Scripts/Marketplace.cs, Assets/Thirdweb/Core/Scripts/ERC1155.cs, Assets/Thirdweb/Core/Scripts/Wallet.cs

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

/codex do you even know what this pr is about


Debug output can be conditional

Host.setup_debug allows to customize its behavior:

debug_windows allows new windows to be inspectable
debug_output allows Sciter debug messages

By default, new windows are inspectable (depending on Window(debug=) constructor) and debug output is always enabled.
If you need to disable the debug output, either call frame.setup_debug(debug_output=False) or override Host.on_debug_output.

cc @AlecHaring


Testing CDK version to 1.110.0

Codecov Report

Merging #286 (3226c03) into master (5659a9b) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 3226c03 differs from pull request most recent head 2c4e164. Consider uploading reports for the commit 2c4e164 to get more accurate results

@@           Coverage Diff           @@
##           master     #286   +/-   ##
=======================================
  Coverage   97.29%   97.29%
=======================================
  Files           3        3
  Lines          74       74
  Branches       15       15
=======================================
  Hits           72       72
  Misses          2        2

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 fe3283c...2c4e164. Read the comment docs.


Storage: add keyspaceID to DMFile

What problem does this PR solve?
Issue Number: ref #8351
Problem Summary:
What is changed and how it works?
I will modify struct EncryptionPath into the following:
/// 1. In OP, we use tikv proxy, all encryption info are stored in one file called file.dict.
/// Every update of file.dict will sync the whole file.
/// So when the file is too large, the update cost increases.
/// To keep the file size as small as possible, we reuse the encryption info among a group of related files.(e.g. the files of a DMFile)
/// For security reason, the same `iv` is not allowed to encrypt two different files,
/// so we combine the `iv` fetched from file.dict with the hash value of the file name to calculate the real `iv` for every file.
/// 2. In cloud, we use cse proxy, all encryption info are stored in page storage.
/// Each keyspace has only a encryption info.
/// We will use full_path and file_name to generate `iv`.
struct EncryptionPath
{
    EncryptionPath(const String & full_path_, const String & file_name_)
        : full_path{full_path_}
        , file_name{file_name_}
    {}

    EncryptionPath(const String & full_path_, const String & file_name_, UInt32 keyspace_id_)
        : full_path{full_path_}
        , file_name{file_name_}
        , keyspace_id{keyspace_id_}
    {}

    // If it is a file, full_path is the full path of the file.
    // If it is a directory, full_path is the full path of the directory.
    const String full_path;
    const String file_name;
    // The id of the keyspace which the file belongs to.
    const UInt32 keyspace_id = 0;
};

so we need to store keyspaceID in DMFile.
Check List
Tests

[ ] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

/build

/run-all-tests

/run-all-tests

Should we store KeyspaceID in DMFile?

DMFile can only belong to a keyspace, so it is ok to store KeyspaceID.
We need KeyspaceID to get the encryption key.

A DmFile can be mapped to a region by range, a region is currently tagged with keyspace id, so why don't we just use the keyspace in Region?

A DmFile can be mapped to a region by range, a region is currently tagged with keyspace id, so why don't we just use the keyspace in Region?

Store a uint32 keyspaceID is not a big deal, we just need a simple way to get keyspaceID in DMFile's member functions like
EncryptionPath DMFile::encryptionDataPath(const FileNameBase & file_name_base) const
{
    return EncryptionPath(encryptionBasePath(), file_name_base + details::DATA_FILE_SUFFIX);
}```

/run-unit-test

/run-all-tests

/run-integration-test


Login Page

Description
Add url to registration page if individual on login page has never registered on the platform

[ ] add question 'reset or create password' to login page
[ ] add question: "If you have never registration and wish to apply" - reroute applicant to registration page
[ ] Funding organization could add instructions for login and 2FA guidance to this page

The plan is to merge the login and registration forms. Users just enter their e-mail address and Hypha creates accounts as needed (if that feature is active).
Organisations can already add any text they like to the login form.
Do not understand the "reset or create password" question. Does not "Forget your password" link takes care of that.


Missing O_EXEC and O_SEARCH for some platforms

As written in the title. On some platforms, O_ACCMODE isn't limited just to O_RDONLY | O_WRONLY | O_RDWR, but has also other options, such as O_EXEC and O_SEARCH. The constants for these are currently missing from all platforms (except O_SEARCH on netbsd).
Looking through O_ACCMODE-s which are not 3, it seems these are musl and solaris. Surprisingly, netbsd does have O_ACCMODE = 3.
Solaris definitely has both O_EXEC and O_SEARCH, musl seems to have only O_SEARCH.

Note that no constants are ever left out on purpose, so PRs are always welcome to fill out more!

This solves Solaris.
As for musl, there's this: http://git.musl-libc.org/cgit/musl/commit/?id=fd427c4eaeed4d1099acc7b6188e41c6cfa5bca5 , so I'm not sure what's the best approach; add the constants for now, with some warning this might break someday?
For netbsd I've checked, and it's true, O_SEARCH really isn't part of O_ACCMODE.

Yes libc changes from time to time, but in general there's typically a migration path forward for us, so it's fine to add if it's there today.

Yeah, at their code this constant is platform dependant, currently the same for all platforms but the threat is that it might become really platform dependant. Anyway, added, so this should close it.

Was this resolved by #567?

I believe so!


Build and publish binaries from GitHub Actions

Publishing to Google Play is WIP: https://play.google.com/apps/testing/dev.kwiesmueller.cypher.sheet
Need to automate builds still.


fleek init --force (doesn't seem to work/exist)

When running certain init command we may receive a message like
source: cowardly refusing to overwrite config file without --force flag
However the --force switch does not seem to exist, nor does it make any difference using the flag.
I assume when we use the flag with init, it should not warn us and should overwrite the config files?
Thanks

thanks for the report. I'll investigate.

A few days ago I tried fleeks and hit a bug (https://github.com/ublue-os/fleek/issues/147#issuecomment-1514885045) I tried again today and came to this:
grahamc@scruffy:~/ > nix run github:ublue-os/fleek -- init
 [*]  Initialize fleek
 [i]  Writing configuration files
 [i]  Bling Level: default
 [i]  Enter User Details for Git Configuration:
Name Graham Christensen
Use detected email<EMAIL_ADDRESS>Yes
Choose Git SSH Key id_ed25519.pub
  ERROR
  ERROR
          Error: Creating configuration files
          source: cowardly refusing to overwrite config file without --force flag
  ERROR

...so I tried again:
grahamc@scruffy:~/ > nix run github:ublue-os/fleek -- init --force
 [*]  Initialize fleek
 [i]  Writing configuration files
 [i]  Bling Level: default
 [i]  Enter User Details for Git Configuration:
Name Graham Christensen
Use detected email<EMAIL_ADDRESS>Yes
Choose Git SSH Key id_ed25519.pub
  ERROR
  ERROR
          Error: Creating configuration files
          source: cowardly refusing to overwrite config file without --force flag
  ERROR

I'll take a look at the --force code in init and see where I've missed the flag. Thanks for the updated report!

In the meantime, what should I delete to start fresh? :)

fixed by https://github.com/ublue-os/fleek/pull/173

In the meantime, what should I delete to start fresh? :)

~/.fleek.yml
and
~/.local/share/fleek


Merging of args of tasks

Testing #19044:
Not sure if I undertstood the mergin of args correctly
{
    "version": "0.1.0",
    "showOutput": "always",

    "tasks": [
        {
            "taskName": "list",
            "command": "ls",
            "args": [ "-X"],
            "linux": {
                "command": "ls",
                "args": [ "-l"],
                "isShellCommand": true
            }
        }
    ],
    "_runner": "terminal"
}

Shouldn't this (on linux) run ls -X -l ?
It seems only ls -l is used

Actually it should execute ls -X -l. Will look into it to understand what goes wrong here. I merge the args since I always merged them if the command was global. So I wanted to keep the same behavior.

I tested it and the arguments are merged. I added a test case as well.


use numpy fromstring rather than manual struct unpacking

Seems cleaner and presumably should  be faster

@caryan, this will create a copy of the floating point payload with the string slice, which effectively doubles the runtime memory requirements.

@tarballs-are-good  that was deliberate because I wasn't clear on  memory ownership. If it's safe we can use np.frombuffer.

@tarballs-are-good update on this?

fromstring is not appropriate here for large wavefunctions, because of the additional memory requirements. We might consider using fromstring on a buffered streaming input, but I suggest we close it, and create an issue.

I finally caught up to what @tarballs-are-good meant with the string slice.  We can avoid that by using frombuffer with an offset and then a single np.copy

@caryan @tarballs-are-good any update on this? If not I'd like to close old pull requests

It's been 7 months. @tarballs-are-good does this look good? https://github.com/rigetticomputing/pyquil/pull/75/commits/a7aa646ffc9da88ffc1b605dfb165df3b9e7b4a4

Closing due to inactivity. Although this would have been much more readable, I'm nervous about changing it for changes sake


Performance blocks being repeated

Description of issue
It seems that performance times are no longer being correctly grouped by time of day bracket (morning, afternoon, evening). This is the case for the Kim Chi event.
Expected behaviour
Performances are grouped by singular morning, afternoon, evening sections.
Steps to reproduce
Go check out Kim Chi on master.
OS / Browser / Device model
Tested on ios but I imagine this happens on all devices.

Ahhhhh. I did not get that. If this is covered by #199 feel free to close this.

Yeh I think it is the same issue, so closing


Continers & Environment Variables

I'm looking for a way to access environment variables very early in the application main entry point; so I may detect a value which informs the code about the environment configuration of the container (in this case a docker container) the application will then use this to load/reference the configuration json file setup kestrel accordingly; my question is how can I obtain environment variables & load configuration inside of the program main ?  and are there any examples?

	public class Program
	{
		public static void Main(string[] args)
		{
			var config = new ConfigurationBuilder()
				.AddEnvironmentVariables()
				.Build();

			var host = new WebHostBuilder()
				.UseKestrel()
				.UseConfiguration(config)
				.UseContentRoot(Directory.GetCurrentDirectory())
				.UseStartup<Startup>()
				.ConfigureServices(x => x.AddSingleton<IConfiguration>(config))
				.Build();

			host.Run();
		}
	}

IConfiguration will be available to inject into your startup constructor. Let me know how that goes (I'm also using docker with environment variables)

@herecydev many thanks; a little different question, but related at what point can you access the IHostingEnvironment is this available from inside main( ) ? or is it specifically used/injected by WebHostBuilder() ? as its my understanding that it can be used for other types of projects not just Web ?

It's created in the WebHostBuilder and available as a service after .Build() is called. So you can consume it after that point. I don't scenarios for hosting have been thought in any great amount. To be honest, I'm not sure what you would really need from it if you were in a console application. Do you want to give an example of what you need and I can probably better answer your question.

We periodically close 'discussion' issues that have not been updated in a long period of time.
We apologize if this causes any inconvenience. We ask that if you are still encountering an issue, please log a new issue with updated information and we will investigate.


Multiple server scheduling

I'm playing around with running multiple servers, to support events where I need more than one split.  I haven't even started looking at how to support different pre-booked entry lists (which I suspect can't be done with a shared data folder), but for now, just being able to have two pickup mode servers running the same race would be useful ... for example, I've got about 30 people want to run Cadwell Park next week, which only has 18 slots.
It'd be nice to just set up and schedule the custom race on my "master", and have it automatically scheduled on the secondary server, so both fire up the same config in unlocked pickup mode, and when the first one fills up people can just join the second one.  Which almost works ... if I restart (or start) the secondary after the race has been set up on the master.  But of course if the secondary is already running, the schedule never gets set up.
I had a quick look at go-fsnotify, and it looks like it wouldn't be too hard to have a "is secondary?" option in the main server config, and if set, and store is set to json, have any secondary servers monitor for changes to the json custom_races store, and basically just re-run rm.InitScheduledRaces() if anything changes.  Only wrinkle would be figuring out how to not trigger if the change was made by the same instance.
Anyway ... I'm having a play with it, but wanted to find out if this was something you'd be interested in merging?  I suspect I'm going to run across other multi-server issues, and am prepared to put whatever work needs doing into solving them.

Note that this would also solve one of my "API" issues.  If my custom provisioning, running on a separate web app (our league registration / signup site), which runs on the same physical server, can just write out the JSON race config, and ASM automatically "sees" the changes and sets up scheduling ... that would be peachy keen.
Although I'd still have to solve that issue of detecting if the file was changed by the same instance.

I went ahead an implemented something.  Uses fsnotify, but I added "debouncing", so it doesn't get screwed up by a flurry of events ... most file writes wind up firing a bunch of events ("create, chmod, write, create" is a typical sequence from a text editor, or "create, create" from ASM itself), so the debouncing just waits until there hasn't been an event for 500 milliseconds or whatever (kind of like debouncing keyboard input so you don't trigger an expensive function on every key stroke, you wait till they've finished typing).
I'm still working on the best way to know when the file write is coming from itself ... had hoped I could use the mutex maintained by the JSON store, but Go has no way of determining the state of a lock, unfortunately.
But it's working.  I have 3 ASM servers on my league server, and can now use the web UI on one of them to schedule a race, and it get automagically added to the schedule queue on all 3.

This sounds like an interesting idea. I'd be interested to see what the code looks like for sure.
I'm not sure whether fsnotify is a good fit here, it would be better if there was some synchronisation between multiple server manager instances - but I don't know what that would look like. Multi-server is such a vast topic, it's difficult to figure out where to begin with approaching it really.

Yeah, huge topic.  I've spent a lot of time thinking about it.  That's part of what my API suggestion was about ... if we had a basic API for getting and setting configs, that'd make multiple server sync easier, if one was considered the 'master' and handled all the UI, all it would need on top of that would be a basic config listing all the servers and their ports in one file.  And would allow for (say) regional splits, with secondaries on different physical servers.
But absent an API, as it is such a vast topic, I've started trying to figure out the simplest approach I can to solve the basic issues that I need fixed.  File monitoring may not be the most elegant way, but it gets the job done, within the existing "best practice" for running multiple servers (the shared JSON folder), without any of the servers needing to be aware of each other's existence.
And it's a very small amount of code, which is functionally black boxed from the user.    So it's a kind of short term band aid.
Anyway ... I'll do a PR in the next day or so, once I've done some more testing, and you can decide.  No problem if you don't like it, it was only a couple of hours work, no big loss.


python-wheel: upgrade to 0.43.0

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

[X] The toolchain has been rebuilt successfully (or no changes were made to it)
[X] The toolchain/worker package manifests are up-to-date
[X] Any updated packages successfully build (or no packages were changed)
[X] Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
[X] Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
[X] All package sources are available
[X] cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
[X] LICENSE-MAP files are up-to-date (./SPECS/LICENSES-AND-NOTICES/data/licenses.json, ./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md, ./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON)
[X] All source files have up-to-date hashes in the *.signatures.json files
[X] sudo make go-tidy-all and sudo make go-test-coverage pass
[X] Documentation has been updated to match any changes to the build system
[X] If you are adding/removing a .spec file that has multiple-versions supported, please add @microsoft/cbl-mariner-multi-package-reviewers team as reviewer (Eg. golang has 2 versions 1.18, 1.21+)
[ ] Ready to merge

Summary

[What does the PR accomplish, why was it needed?
python-wheel: upgrade to 0.43.0
Change Log

Upgrade python-wheel to 0.43.0

Does this affect the toolchain?

YES
Test Methodology

Local build
Pipeline build id: 567338
Delta build id: 567474
Full build id: 567492

New runs after PR comments:
Buddy build: 568918


Make sidebar responsive and collapsible

Reason/Context
Please try answering few of those questions

Why we need this improvement?
To make the site readable in mobile view,

Description
Please try answering few of those questions

What changes have to be introduced?
Add responsiveness to the sidebar by making it collapsable

@Bhavik-ag We also need to add a bit of responsiveness in regards to the side-by-side code panels i guess. What do you think ?

@kaushik-rishi @Bhavik-ag Can I work upon this?

@Shurtu-gal :wave: I was thinking of working on this issue.
Irrespective of it, we need to wait till the issue get's accepted i think.
We can work together on this as well if need be.

Anything that improves stuff or fixes something that's broken dont need to get accepted 🙂 Feel free to jump straight into it 💪

@Shurtu-gal wave I was thinking of working on this issue. Irrespective of it, we need to wait till the issue get's accepted i think. We can work together on this as well if need be.
It could also be that @Bhavik-ag has already thought of working on it.

Sure, thing. 😸

Hey,you all may improve it for the desktop view also and may add bullet indentation and search feature.
May take inspiration from https://www.asyncapi.com/docs


Haskell support added, Bugs fixed in the case of Azure_OpenAI

In the case of Azure_OpenAI - Some bugs are fixed
Added support of Haskell language
Added support of Haskell language in text_splitter module of Langchain. PR for the same - https://github.com/langchain-ai/langchain/pull/16191

@Nisarg1112 Great work, thanks a lot! Will wait for the merged PR in langchain and merged this then! :)

Hey @Nisarg1112 I just checked your PR on langchain. Would recommend to remove all the trailing comma. Maybe your linter has a different setting, but to get things merged asap best practise is to keep the linter rules from the base repo 🙂

Hey, @fynnfluegge Sorry I missed these comments!
Sure it makes sense to remove trailing commas.
Right now it's already approved actually.
Also, Thanks for merging my PR!


Reload specific models

Why do all models in the directory need to be loaded when only 1 is the base and certain sensitivities will be used. My concern is that this can be time and space consuming, especially if there are lots of models run. We are already past 15, and imagine if we were at 50 or so.
I suppose we can have a set of models that are only being used in the directory, but is it worth it to load only the necessary models?

With the smart loading (reload models question) that it now asks, it doesn't reload all the models each time. But, yes, it is storing all the output, meaning that the .RData file is getting pretty big. Chris's department....

I understand the smart reload and that is really cool. What I was thinking
that we should be using the names of the model runs rather than an index.
The reason is that my models folder has many more model runs than yours.
For example I have 15.01_xxxxx 15.09_xxxx that are investigations of the CV
on the age-1 index. So, I have to sort out which models everyone else has
in their folder.  The other issue is if someone like me or Nathan wants to
build the file with a new model, but we haven't before (this is what I'm
struggling with this weekend).  We would have to download all the models
from somewhere, which can be lots of Mb's, read in all of the models, etc.
It seems to be a time-saver to read in only what is necessary. Finally,
when next year comes, and we archive only the base model, and maybe the
sensitivities, the next person can easily build the document with only hte
pertinent models, instead of archiving ever model run that we tried,
whether or not it is even reasonable.
If we use model names, we can have as many as we wish, and reload whichever
we need to reload.  Everyone can do whatever they want with their model
folders. And, it will be more obvious to us this year and the people next
year which model was the base model.  It is amazing what I can forget in 10
months time.
On Sun, Jan 31, 2016 at 12:25 PM, andrew-edwards<EMAIL_ADDRESS>wrote:

With the smart loading (reload models question) that it now asks, it
doesn't reload all the models each time. But, yes, it is storing all the
output, meaning that the .RData file is getting pretty big. Chris's
department....
—
Reply to this email directly or view it on GitHub
https://github.com/cgrandin/hake-assessment/issues/22#issuecomment-177601311
.

Sounds sensible. Yes, it is a bit risky at the moment requiring that everyone has exactly the same set of models in their local directory. We just have the ones from the Google Drive, but yes you will have more, but will not necessarily need us to have the also. And you still want to be able to run the knitr on such models because it will build the document for you, so you can see the effect of  a model (but we don't all need to see it).
I'll leave it to Chris, but am guessing that the best way would be to have a separate file that just lists the models we want to look at (oh, and a description of them would be very handy) and all.r then loads just those in. Once a model is no longer needed it's name and description could maybe just be commented (rather than deleted) from such file, with a short explanation of why it's no longer needed. Though I'm guessing one problem with that might be that everytime the file changes, all the models may need to be reloaded (since the previous model 3 might now be model 4), so maybe model names are needed somewhere in the code rather than just model indices. Just thinking out loud.

The way I think this should work, is that you only have the models which are relevant to the document in the models folder. So that's about 5 - 10 models. Once you've placed them in the folder, note which one is the base model, and change base.model.ind in all.r to represent that. Then, reload the project, which will load all the models (this will only take a few moments), set up the base model, do the forecasting, and create model-partest.RData. You shouldn't be changing the base model that  much, but if you want to, it's not that big a deal. There's no need to keep dozens of models in the models directory, I keep another directory called extra-models just to hold the ones not used in the document. We can talk more in the call in a bit...

The models are now referenced by name :)

Nice work!
On Mon, Feb 1, 2016 at 1:02 PM, cgrandin<EMAIL_ADDRESS>wrote:

The models are now referenced by name :)
—
Reply to this email directly or view it on GitHub
https://github.com/cgrandin/hake-assessment/issues/22#issuecomment-178188095
.


Multi-Dimensional Interpolation

At present, we support interpolating tabular data defined on 1 and 2 dimensional grids. We should add support for N-dimensional grids.
This should probably be done as two new separate classes for 3-d and N-d grids. I'd imagine that there is a cleaner/more efficient algorithm for the 3d case that would merit a standalone implementation, and that we could get out the door quicker. @jdsikes1 , this aligns with your current work so you get this one.

@jdsikes1 , while making some improvements to the 1 and 2D interpolators, I went ahead and implemented the 3D interpolator class in #23. Implementation is based on the paper below.
http://www.cds.caltech.edu/~marsden/bib/2005/08-LeMa2005/LeMa2005.pdf
May be of use to you in the N-d case.

I'm planning to add Kriging and Radial Basis Functions from my old dissertation branch sometime in the next month-ish.

N-dimensional splines complete in C++.

Second derivatives implemented and (mostly) verified for Radial Basis Functions and Kriging.

@wgledbe I'll go ahead and 4-d splines to hold us over until N-d are ready.

Don't hold your breath.
Kriging and RBF are solid, but the current approach to ND splines may not be scalable.
Spline reference: http://www.cds.caltech.edu/~marsden/bib/2005/08-LeMa2005/LeMa2005.pdf

4-D Spline tables implemented and merged. Usage is pretty much the same as the 3-D case.


Add a command line text editor

📝 A text editor that runs on the command line
Linux systems typically have vim installed by default. Some others also have emacs or nano. But the only text editors in Windows (Notepad and Wordpad) are all GUI applications. There are no text editors that run in the console in 64-bit Windows. In many 32-bit Windows there are edlin and edit. This is very useful for remotely accessing Windows from SSH or a similar tool

If you'd like to see this feature implemented, add a 👍 reaction to this post.

I think we would rather have you install what your favorite editor is.  With the upcoming Window Package Manager, you can do this quickly.
winget install vim
winget install emacs


Column comments containing '' don't parse.

Describe the bug
Parsing fails where column comments contain a pair of single quotes, ''. This is used for column comments in snowflake to allow a single ' to appear in the definition.
To Reproduce
Parse the statement:
CREATE TABLE table (column_1 int comment 'This comment isn''t right')

Expected behavior
A standard parsing output:
Expected:
[{
  'alter': {},
  'checks': [],
  'clone': None,
  'columns': [{'check': None,
               'comment': "'This comment isn't right'",
               'default': None,
               'name': 'column_1',
               'nullable': True,
               'references': None,
               'size': None,
               'type': 'int',
               'unique': False}],
  'index': [],
  'partitioned_by': [],
  'primary_key': [],
  'primary_key_enforced': None,
  'schema': None,
  'table_name': 'table',
  'tablespace': None
}]

Screenshots
Instead, we get the output []
Version
Latest
Additional context
I know this is snowflake syntax. Perhaps it is also true for other dialects, I'm not sure.

@PBalsdon hi! Thanks for creating the issue, I added support for this https://github.com/xnuinside/simple-ddl-parser/pull/210/ & test. It will be released in version 0.31.1 together with your PR.

@PBalsdon 0.31.1 was released https://pypi.org/project/simple-ddl-parser/


Service resource not found

With Chef 12.5 I get this error:
Chef::Exceptions::ResourceNotFound: resource template[/var/awslogs/etc/config/archive_to_s3.conf] is configured to notify resource service[awslogs] with action restart, but service[awslogs] cannot be found in the resource collection.

Based on this issue I think this is likely a new error that start in this version of the Chef client. From notes by the backslasher (a community member I've found really knows their stuff), the solution is to define the service resource directly in the custom resource.
It's a simple fix and I've tested it in the situation I encountered. I'll submit a PR in a minute. Thanks!
Adam

Hi @operatingops, sorry for the late review. I couldn't reproduce this error, but your explanation makes sense, your PR LGTM!

No worries @amalucelli, you're way faster than most OSS projects - thanks for the merge!


How to add a new coin to peatio with microkube

Hi,
what are the files that need to be edited to add a new coin to peatio (running in the microkube framework)?
I have peatio local repo already, just want to know which files to change for a new coin.
Thanks!

You can either add coins manually from the admin panel (www.app.local/admin when running locally), or edit the templates/config/peatio/seed/currencies.yml.erb template. You will also need to add the coins to the wallets and market files.

Thanks, that is fine, but how can one make sure that deposits arrive in the wallets? Is there an example / howto for adding new coins to microkube/peatio?

With the ethereum geth node, you have to let it fully sync before you will see deposits in the user wallet on the site. You must spin up the cryptonode service with rake service:cryptonodes[start]. The syncing could take anywhere from 2-4 days depending on your host hardware and internet connection.

Thanks very much, yes, the geth node will eventually come up
Is there some documentation how to set up bitcoind, dashd, etc. with microkube?
It would be really nice of the developers to come around and make the entrance hurdle less high than it currently is

Trust me, its been a struggle getting this exchange stood up. It is especially hard if you're not experienced with docker. It really does take a decent time investment just to understand how everything works together. I understand the frustration, which is why I've been active on the microkube repo trying to help answer questions. A good place to find answers is actually the telegram channel for peatio, but even then it might take awhile for someone to respond. The community is more knowledgable on peatio 1.9 (and workbench), while very few have moved on to peatio 2.0.xx (and microkube).
It seems the community around this project likes to act very much like gatekeepers, which isn't fun for noobies like us. Double that with the fact that anyone from the rubykube organization has incentive not to help devs like us, as they are trying to funnel business to their paid enterprise consulting and development services. But this is free software after all, so we can't have any expectation of support.
That being said, I think i'm comfortable enough now where I understand most of the configuration and customization available in microkube.
Adding Bitcoind
Adding any new blockchain to peatio/microkube will require us to run a full node. There are many dockerized full nodes on dockerhub, most notably: https://hub.docker.com/r/kylemanna/bitcoind
The first thing you will have to do in microkube is add a new cryptonode service to `cryptonodes.yaml.erb'
version: '3.6'

services:
  geth:
    image: ethereum/client-go:stable
    restart: always
    command: |
      --syncmode=full
      --rinkeby
      --rpc
      --rpcaddr=<IP_ADDRESS>
      --rpcport=8545
      --port=30303
      --rpcapi="db,personal,eth,net,web3"
      --rpccorsdomain="*"
      --rpcvhosts="*"
    volumes:
      - ../data/geth:/root/.ethereum/
    expose:
      - "8545"
      - "30303"
    labels:
      traefik.enable: true
      traefik.frontend.rule: 'Host: eth.<%= @config['app']['domain'] %>'
      traefik.port: 8545
  bitcoind:
    image: kylemanna/bitcoind:latest
    restart: always
    command: |
      -printtoconsole
      -testnet=1
      -rest
      -rpcallowip=<IP_ADDRESS>/0
      -rpcpassword=changeme
      -rpcport=18333
      -rpcuser=testuser
      -server
    volumes:
      - ../data/bitcoin:/root/.bitcoin/
    expose:
      - "18333"
    labels:
      traefik.enable: true
      traefik.frontend.rule: 'Host: btc.<%= @config['app']['domain'] %>'
      traefik.port: 18333

By the way, the above is untested, just as an example. It might take some fiddling to get this right. The best way is to try getting the container running and check its logs by using the docker logs command.
Note: I am still unsure at this point whether you use bitcoind or bitcoin as the service name used when referenced by peatios backend implementation. You might have to play with this.
Once you have a working bitcoind node, the next thing to do is to tell peatio about it. First shut down everything as the peatio database only gets seeded with the new configuration when you use the rake commands to render the config files. This configuration for adding new blockchains is in the seed file named blockchains.yml.erb.
- key:               eth-rinkeby
  name:              Ethereum Rinkeby
  client:            ethereum               # API client name.
  server:            http://geth:8545       # Public Ethereum node endpoint. IMPORTANT: full syncmode.
  height:            2500000                # Initial block number from which sync will be started.
  min_confirmations: 6                      # Minimal confirmations needed for withdraw and deposit confirmation.
  explorer:
    address:         https://rinkeby.etherscan.io/address/#{address}
    transaction:     https://rinkeby.etherscan.io/tx/#{txid}
  status:            active

- key:               eth-mainet
  name:              Ethereum Mainet
  client:            ethereum               # API client name.
  server:            http://geth:8545       # Public Ethereum node endpoint. IMPORTANT: full syncmode.
  height:            5000000                # Initial block number from which sync will be started.
  min_confirmations: 6                      # Minimal confirmations needed for withdraw and deposit confirmation.
  explorer:
    address:         https://etherscan.io/address/#{address}
    transaction:     https://etherscan.io/tx/#{txid}
  status:            disabled

- key:               btc-testnet
  name:              Bitcoin Testnet
  client:            bitcoin                   # API client name.
  server:            http://bitcoin:18333       # Public Ethereum node endpoint. IMPORTANT: full syncmode.
  height:            1516996                # Initial block number from which sync will be started.
  min_confirmations: 6                      # Minimal confirmations needed for withdraw and deposit confirmation.
  explorer:
    address:         https://live.blockcypher.com/btc-testnet/address/#{address}
    transaction:     https://live.blockcypher.com/btc-testnet/tx/#{txid}
  status:            enabled

From there you will also have to edit the currencies.yml.erb, markets.yml.erb, and wallets.yml.erb to add bitcoin. Use the other existing entries as reference, and use the proper bitcoin client URI's and blockchain key's for it to work properly. When you spin everything back up of course you will have to wait for full sync. You can also verify that the currencies, blockchains, wallets, and markets have been properly added in the UI through the admin panel at www.app.local/admin. You will need to sign in as the seeded admin user to see this panel.
There are many more settings I didn't mention above but this should put you on the right path. I also believe that peatio 1.9 workbench might help you with configurations as far as the bitcoin node goes.
Hope this helps!
Matt

Matt - thanks, very good info indeed, I am making progress a little bit. Have you managed to integrate any monero-like coins using cryptonote variants?

Unfortunately no, as my current project is focussed on ERC20 token variants. I'm sure the rubykube community would appreciate a pull request if you figure it out though!

Unfortunately no, as my current project is focussed on ERC20 token variants. I'm sure the rubykube community would appreciate a pull request if you figure it out though!

Can you figure it out, how integrate ERC20. I add but deposit addresses are not generating. I use main net with full sync mode node.

Docker image doesn't work with wallets, start a bitcoind on your localhost and bind them with docker gateway address on  docker network inspect microkube_default

@msembinelli is the best, others spit half bake info

Is there a tutorial to do the complete setup of wallets in openware version?
I would like to learn about this and make a tutorial, since in the openware documentation this is not available, and this is the main point of the process. Help me create a tutorial to make this easier.

Trust me, its been a struggle getting this exchange stood up. It is especially hard if you're not experienced with docker. It really does take a decent time investment just to understand how everything works together. I understand the frustration, which is why I've been active on the microkube repo trying to help answer questions. A good place to find answers is actually the telegram channel for peatio, but even then it might take awhile for someone to respond. The community is more knowledgable on peatio 1.9 (and workbench), while very few have moved on to peatio 2.0.xx (and microkube).
It seems the community around this project likes to act very much like gatekeepers, which isn't fun for noobies like us. Double that with the fact that anyone from the rubykube organization has incentive not to help devs like us, as they are trying to funnel business to their paid enterprise consulting and development services. But this is free software after all, so we can't have any expectation of support.
That being said, I think i'm comfortable enough now where I understand most of the configuration and customization available in microkube.
Adding Bitcoind
Adding any new blockchain to peatio/microkube will require us to run a full node. There are many dockerized full nodes on dockerhub, most notably: https://hub.docker.com/r/kylemanna/bitcoind
The first thing you will have to do in microkube is add a new cryptonode service to cryptonodes.yaml.erb
version: '3.6'

services:
  geth:
    image: ethereum/client-go:stable
    restart: always
    command: |
      --syncmode=full
      --rinkeby
      --rpc
      --rpcaddr=<IP_ADDRESS>
      --rpcport=8545
      --port=30303
      --rpcapi="db,personal,eth,net,web3"
      --rpccorsdomain="*"
      --rpcvhosts="*"
    volumes:
      - ../data/geth:/root/.ethereum/
    expose:
      - "8545"
      - "30303"
    labels:
      traefik.enable: true
      traefik.frontend.rule: 'Host: eth.<%= @config['app']['domain'] %>'
      traefik.port: 8545
  bitcoind:
    image: kylemanna/bitcoind:latest
    restart: always
    command: |
      -printtoconsole
      -testnet=1
      -rest
      -rpcallowip=<IP_ADDRESS>/0
      -rpcpassword=changeme
      -rpcport=18333
      -rpcuser=testuser
      -server
    volumes:
      - ../data/bitcoin:/root/.bitcoin/
    expose:
      - "18333"
    labels:
      traefik.enable: true
      traefik.frontend.rule: 'Host: btc.<%= @config['app']['domain'] %>'
      traefik.port: 18333

By the way, the above is untested, just as an example. It might take some fiddling to get this right. The best way is to try getting the container running and check its logs by using the docker logs command.
Note: I am still unsure at this point whether you use bitcoind or bitcoin as the service name used when referenced by peatios backend implementation. You might have to play with this.
Once you have a working bitcoind node, the next thing to do is to tell peatio about it. First shut down everything as the peatio database only gets seeded with the new configuration when you use the rake commands to render the config files. This configuration for adding new blockchains is in the seed file named blockchains.yml.erb.
- key:               eth-rinkeby
  name:              Ethereum Rinkeby
  client:            ethereum               # API client name.
  server:            http://geth:8545       # Public Ethereum node endpoint. IMPORTANT: full syncmode.
  height:            2500000                # Initial block number from which sync will be started.
  min_confirmations: 6                      # Minimal confirmations needed for withdraw and deposit confirmation.
  explorer:
    address:         https://rinkeby.etherscan.io/address/#{address}
    transaction:     https://rinkeby.etherscan.io/tx/#{txid}
  status:            active

- key:               eth-mainet
  name:              Ethereum Mainet
  client:            ethereum               # API client name.
  server:            http://geth:8545       # Public Ethereum node endpoint. IMPORTANT: full syncmode.
  height:            5000000                # Initial block number from which sync will be started.
  min_confirmations: 6                      # Minimal confirmations needed for withdraw and deposit confirmation.
  explorer:
    address:         https://etherscan.io/address/#{address}
    transaction:     https://etherscan.io/tx/#{txid}
  status:            disabled

- key:               btc-testnet
  name:              Bitcoin Testnet
  client:            bitcoin                   # API client name.
  server:            http://bitcoin:18333       # Public Ethereum node endpoint. IMPORTANT: full syncmode.
  height:            1516996                # Initial block number from which sync will be started.
  min_confirmations: 6                      # Minimal confirmations needed for withdraw and deposit confirmation.
  explorer:
    address:         https://live.blockcypher.com/btc-testnet/address/#{address}
    transaction:     https://live.blockcypher.com/btc-testnet/tx/#{txid}
  status:            enabled

From there you will also have to edit the currencies.yml.erb, markets.yml.erb, and wallets.yml.erb to add bitcoin. Use the other existing entries as reference, and use the proper bitcoin client URI's and blockchain key's for it to work properly. When you spin everything back up of course you will have to wait for full sync. You can also verify that the currencies, blockchains, wallets, and markets have been properly added in the UI through the admin panel at www.app.local/admin. You will need to sign in as the seeded admin user to see this panel.
There are many more settings I didn't mention above but this should put you on the right path. I also believe that peatio 1.9 workbench might help you with configurations as far as the bitcoin node goes.
EDIT: by default, running rake service:all[start] will NOT start the cryptonodes service, which is where you add new full nodes for various blockchain/coin support. You will have to also run rake service:cryptonodes[start]. Additionally, you will also need to start the blockchain daemons rake service:daemons[start]. This starts the service that will connect to the bitcoin node and will start processing blocks looking for deposits and withdrawals starting at the block height specified in the blockchains.yml.erb file. This will also take time, but you can monitor the process with the docker logs command on the blockchain daemon service,
Hope this helps!
Matt

I ran the exchange successfully. Firstly i had problem with generating deposit address for users but managed to solve it.
Now the problem is when it send some funds to the generated address, it does not credit the account. I am guessing that my walletnotify flag is not working...
I am running my bitcoind in host operating system, my walletnotify flag is something like,
walletnotify=docker exec opendax_rabbitmq_1 rabbitmqadmin publish routing_key=peatio.deposit.coin payload='{"txid":"%s", "currency":"btc"}'
When i run docker exec opendax_rabbitmq_1 rabbitmqadmin publish routing_key=peatio.deposit.coin payload='{"txid":"%s", "currency":"btc"}' manually, i get
Message published but NOT routed.
Can anyone help me with this?

I am having this same issue

Now the problem is when it send some funds to the generated address, it does not credit the account. I am guessing that my walletnotify flag is not working...

@asadhayat1068 did you figure it out?

@interbiznw yes i am getting balance in my wallet now, but don't know how.
And when i send more coins, its not coming to my exchange wallet.

@champmine I am no longer working with peatio so I'm not sure. If you got eth working I'm sure you're 90% of the way there.

Matt, what are you working with now?

Did you guys manage to get orderflow into the system?

@champmine I am no longer working with peatio so I'm not sure. If you got eth working I'm sure you're 90% of the way there.

How was your experience/feedback w/ peatio? I find peatio a nice "learning" env. nonetheless not too fit for prod - what do you think, and more importantly what's more "prod ready" than this?

Anyone have any luck with NEO, ADA, and IOTA?


I need a feature（can set layer name in ldtk or in unity)

I need a feature（can set layer name in ldtk and Convert to Unity   or   set layer name directly  in unity)
The Layer will now be reset when rebuilding the project.
Please forgive me for my poor English。

This sounds like a neat idea, to be able to transfer tags data from LDtk over to layers/entities.
I will explore some options when I get around to it and evaluate the best solution and explain it here.
In LDtk, there are tag options for entities, but not layers (I think), but I'll see what would be a good solution for entities, intgrid layers, and tile layers. 🙂

To answer your question in the short term, there is an option to change what the default generated tilemap is.

Steps to make a custom prefab are here: https://github.com/Cammin/LDtkUnity/wiki/Tilemap-Grid-Prefab
Your custom prefab would have the Tag/LayerMask changes :)
However this would affect all layers, so it may not be the exact solution you are looking for, but I'm planning to implement a feature where a Grid prefab can be set for every layer instead of all of them.

Here's how it looks so far, sitting next to the layers in LDtk.

This should help out with many customizable options related to the prefab itself, like specifying different tags, layerMask, material/shader, physics material, or anything else.

It works great! Thank you so much!

I pushed the update with this feature. Hopefully, there are no bugs :)
https://github.com/Cammin/LDtkUnity/blob/master/CHANGELOG.md


truncating DB-Views

I'm trying to set up the fixtureFactories plugin on an existing project with existing database.
When I first start a unittest I get the error "Base table or view not found: 1146 Table 'database.tablename' doesn't exist"
I found the following to be the cause:
The error occurs when the DB procedure "TruncateDirtyTables" is executed.
The truncated table is not a table but a view.
The view has been entered in the "test_suite_light_dirty_tables" table.

The issue will also happen at the migrator level. Therefore the present package should offer a solution to list tables views excluded.

This issue is solved at the migrator level.
Moving it back to the test suite light.


chore(deps): updates dependencies

deps and dev deps updated
closes #87

Codecov Report

Merging #88 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master    #88   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           1      1
  Lines          46     46
  Branches        6      6
=====================================
  Hits           46     46

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 5873a06...c7cf3db. Read the comment docs.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


feat(autoware): increase initialize duration

Description

In the AWF project on Autoware Evaluator, scenarios on the large maps are failing during initialization. As you can see in the latest test of the catalog, the number of the SimulationError:AutowareError is very high. The errors occur mostly because of Simulation error [AutowareError]: Simulator waited for the Autoware state to transition to WaitingForEngage, but time is up. .
These AutowareError labeled failings occur for scenarios in a specific map that is larger than others and some of them are tested locally and they work successfully.
In today's ODD WG meeting, we think increasing the initialize_duration parameter may solve the high number of AutowareError labeled failings.
Tests performed

Not applicable.
Effects on system behavior

Not applicable.
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[ ] I've confirmed the contribution guidelines.
[ ] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[x] The PR follows the pull request guidelines.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

Hi @mitsudome-r @Igata-ctrl, I can not merge the PR because of Only those with [write access](https://docs.github.com/articles/what-are-the-different-access-permissions) to this repository can merge pull requests.. If you have write access, could you merge it?


Typo

[Enter feedback here]
I believe the reference to 'Get-AutomationConnection' should be 'Get-AzAutomationConnection'

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

ID: 23c183d0-5012-e2e1-5562-69135b3f6509
Version Independent ID: 7f36ff87-e24a-7442-8d42-f621f5391814
Content: Create modular runbooks in Azure Automation
Content Source: articles/automation/automation-child-runbooks.md
Service: automation
Sub-service: process-automation
GitHub Login: @MGoedtel
Microsoft Alias: magoedte

@iancohn Thanks again for bringing this to our notice and helping us improve our Azure documentation. I have raised a PR to update doc. Once the PR is reviewed and approved , changes would go live.
At this point it appears that there's no further edits or updates needed to the documentation, other than what has been listed above. We will go ahead and close this issue for now, however if you have any further feedback on the document please tag us in your reply and will be happy to reopen the thread and continue the conversation. Thank you


Crash when displaying a message

First, nice lib' :-)
I try to display a simple message as a notification on El Capitan (the same code as your README), the message stay on screen for approximately 5 seconds and disappear before this mysterious error message:
Traceback (most recent call last)
seriously.nim(125)       seriously
seriously.nim(112)       displayNotification
asyncdispatch.nim(1683)  waitFor
asyncdispatch.nim(292)   read
Error: unhandled exception: Future still in progress.
  show's lead up to read of failed Future:
    Traceback (most recent call last)
    seriously.nim(125)       seriously
    seriously.nim(112)       displayNotification
    asyncdispatch.nim(1681)  waitFor
    asyncdispatch.nim(1087)  poll
    asyncdispatch.nim(410)   processTimers
    asyncdispatch.nim(225)   complete
    asyncdispatch.nim(353)   cb
    asyncdispatch.nim(225)   complete
    asyncdispatch.nim(1291)  cb
    asyncdispatch.nim        showIter
    asyncdispatch.nim(297)   read [Exception]

Do you have an idea why the simple program crashed?
Thanks a lot!

Looks like a bug caused by a recent change to the asyncdispatch module in Nim's stdlib.

https://github.com/nim-lang/Nim/issues/4333

That's right - I'll follow this issue.

Should work now with latest devel :)

Great - thanks a lot 👍


Hostvirtual delete_zone and record_name fixes

Fix 'delete_zone` params that were set incorrectly
Fix name parsing, so that getting records returns only name, without domain included.

Thanks, changes look good to me.

Sorry for the delay. I've merged changes into trunk. Thanks.

No problem. Thanks for merging!


user/group check exit with proper critical code

Resolves #167
Also sets the framework for replacing magic numbers in exit codes for all the checks using consts.
const (
	statusCodeOK = iota
	statusCodeWarning
	statusCodeCritical
	statusCodeUnknown
)

Codecov Report

Merging #171 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #171   +/-   ##
=======================================
  Coverage   85.06%   85.06%
=======================================
  Files          21       21
  Lines         743      743
=======================================
  Hits          632      632
  Misses        110      110
  Partials        1        1

Impacted Files
Coverage Δ

lib/app/nagiosfoundation/resultmessage.go
100% <ø> (ø)
:arrow_up:

lib/app/nagiosfoundation/check_user_group.go
87.01% <100%> (ø)
: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 3a8c788...050c987. Read the comment docs.


Show recent package releases and top results on the home page

Add a two column layout to the home page of the site. The left hand side shows a list of popular repositories over the last 30 days, right hand side shows most recent package version updates.

Also adding this comment from @christianklotz here:

Anyone arriving to the website without knowing exactly what to expect or what to search for it would be great to display the recent/trending/top packages straight away. It would help me thinking about what to search for.

These are maybe totally separate enhancement requests, but I would love to be able to 1) browse packages somehow. Maybe by name or update date? And/Or 2) browse by category. (Here I'm imagining you define the categories manually and then just show search results for common terms in that category, maybe?) Would also be cool to 3) show a total number of packages indexed on the homepage.

browse by category. (Here I'm imagining you define the categories manually and then just show search results for common terms in that category, maybe?)

Yes, I really want to do this. I think I'm going to make the categories/tags part of what I'm planning here so that I don't have to maintain the categories, and so other tools can also use that data. I think there's also potentially possibilities around human curated lists of packages too.

show a total number of packages indexed on the homepage.

💯


Fixed Rank and Stiefel

In order to keep me reminded to do stuff: This starts to transfer two manifolds (maybe a third), that I started with students and a colleague in Manopt.jl:

fixed rank matrices
(complex and real valued) Stiefel

the possibly third is the generalized Stiefel, which should easily (I hope) be includable into Stiefel.

I think I transferrred / implemented all functions I could find in papers or on manopt. Feel free to already criticise any slow implementations – Documentation is also nearly done – but testing is still missing.

If anybody has an idea for the inverse retractions (both polar and QR) for Stiefel any ideas are welcome. I can only get one thing – lapack errors – when trying to do tests and I can't directly see why.

Ha. Found it, adapted the utils and all old tests are also back up running.
Missing:

[ ]  FixedRank Tests
[ ] Complex Stiefel Test
[ ] Check Documentation
[ ] Document parameters of test_manifold.

I just fixed the problem with MatrixEquations by getting back to the lyap-approach.

Since I would like to first do the type-change for Real/Complex. Can we open an issue for further retractions/exponential map/metrics for fixed rank so I can keep that in mind and finish that after the type changes? Then I would just finish a proper code coverage here and merge then.

Sure, additional functionality can go into another PR.

I will collect the suggestions in an Issue after this is merged, then.

So I still have to increase code coverage; any idea why the inital codecov might have been gone? Can that be fixed to have a code coverage change back?

Well, well. The idea of fixing this within this year might have to be posponed. My idea of “shortly” fixing the remaining tests this morning got directly stuck in the first test, since I might have misunderstood the projection operation and I can't get it to work for now.

RE codecov, I didn't see how it got messed up, but I would just use it as a helper to identify missing tests rather than as a hard rule that coverage goes up. On one of my projects, codecov never shows certain code as being tested, even though it provably is. 🤷♂

While I just fixed something (that I might have misread before), retractions are now tested also when exp/log are not (previously they were inside). However that breaks Grassmann retraction tests for now, so I am left to fix retractions for Grassmann/fixesRank/Stiefel and projection for fixedRank.

[ ] Power manifold retractions fail (a little hard to debug, since they also have randomness within)
[ ] Stiefel project onto tangent does not yet work nor is it tested.
I till update this list to keep track of remaining things as soon as the codecoverage has done its job.

All projections work, I adapted the new Literature/Footnote approach. So if the code coverage is fine I would like to merge this.

Well well well, upgrading ManifoldsBase caused side effects that I did not have in mind. I implemented a few mor injectivity_radius – that I could find – and adapted the tests accordingly.


[Addition]:

Hotspot b58 Addresses
112SReSgiRZpj4DiahX3vUPZ66SoGfc816KWRB8RAmU2GEkqny8v
Discord Handle
13SjqFVjtwejCAo4uwg5SsyZ9xGVJDoXD5TzNLkaW4X9BrCcu77
Reason(s)
this man deliberately ruining reward and when i did a checking no one in my neigbourhood know something about helium so this man is location spoofing more then 300 meters and stealing al my rewards

no one in my neighbourhood knows about helium and legit 50 meters away there is a hotspot that is ruining my rewards but i asked the owner and there is no miner

This seems to be a legitimate Hotspot.


add a new component to enable code highlighting

After I reset --hard my original branch, the PR was closed automatically by GitHub. I have to create a new one. Now there is no file updated in docs/build/* and *-lock.json was removed, too.

After I reset --hard my original branch, the PR was closed automatically by GitHub. I have to create a new one. Now there is no file updated in docs/build/* and *-lock.json was removed, too.

No worries - this should be good to merge. Thanks for contributing! 🎉

No worries - this should be good to merge. Thanks for contributing! 🎉


Settings: Hide Buy Stack

Add option in settings that hides the "Buy Stack" for everyone

In a similar vein can you separate the "purchase stack" and "purchase" Icons a little more?
I thought they were one icon at first and have accidently hit the [buy stack] instead of [buy single] more than once.

Fixed in 2.5.8


setDefaults?

Cant seem to find this method?
setDefaults
http://stackoverflow.com/questions/18754020/bootstrap-3-with-jquery-validation-plugin
All over the web this is referenced but I cannot find a version of the code that has this occurrence.
Any ideas?
Maybe that is a different open source project?
How do I Add custom CSS to show an alert-danger?
        $.validator.setDefaults({
            highlight: function(element) {
                console.log($(element));
                $(element).closest('.form-group').addClass('has-error').addClass('alert').addClass('alert-danger');
            },
            unhighlight: function(element) {
                console.log($(element));
                $(element).closest('.form-group').removeClass('has-error').removeClass('alert').removeClass('alert-danger');
            }
        });

You would think that if this supported bootstrap you would use standard classes?  Confused.

That's a different plugin. See here: http://jqueryvalidation.org/

Any help on possibly setting custom "standard bootstrap classes" to the messages using your project?

Still confused why you dont add the danger classes as well as show the elements if they are hidden.
Basically I tried setting something like this:
<div class="help-block with-errors alert alert-danger">

But the blank div shows the red box when there is no error.
So I need to know how to configure JS events with your plugin to inject a standard bootstrap class when an error is found during validation.

You don't need to add the alert classes to the help-block. This plugin will add a has-error class to the .form-group when an input is invalid, which how Bootstrap handles form states.
See http://getbootstrap.com/css/#forms-control-validation

I guess this plugin's docs could be made more clear to point out that having a form-group class on the parent container of your inputs is required.

I have everything working fine after playing with it and putting in form-group without reading the docs.
The problem with the has-error class in my case is that the div floats over a dark background and not a white background.
So setting the alert-danger is my one route I need to take.
Should I just fork the project and swap out that class for my needs?  Seems like I should be able to override the CSS class like http://jqueryvalidation.org/ does.
OK you are right, it is standard, but we need some control over which class is added or removed I guess in my case


servoj usage example

Hi,
After reading 3.6.32 CDRFLEx.servoj section in API manual I have more questions than answers, such as:

Do I need some preparation(change some mode or something similar) before calling servoj?
How do I execute a trajectory using servoj?
How frequent can I call servoj?
How do I wait for the whole trajectory execution to finish? Is mwait used for that?

Could you please provide a more detailed example of servoj command usage?
The documentation currently has only these lines:
float q0[6] = { 0, 0, 90, 0, 90, 0 };
float jvel[6]={10, 10, 10, 10, 10, 10};
float jacc[6]= {10, 10, 10, 10, 10, 10};
drfl.servoj(q0, jvel, jacc, -10000);

At they do not help at all.

+1
Even the programming manual example isn't quite clear on usage.


Feature/correct history location

without the exec it's forked by sh and sending a term to the sh parent does not send a term to the running java process. This corrects that so it can be properly supervised by systemd, runit, daemontools, etc.

@tglman please could you test it's ok with all the rest?

@bougyman Thanks for the PR, may you do it against "develop" branch? We use master only for releasing. Thanks.


Fix selinux_enabled function

Prior to this fix the selinux_enabled function would always return true, even if selinux was set to disabled or permissive.
fixed #303

Looks generally good, just two nits:

need to run cargo fmt
Can you add some basic text into each commit message and also add a "topic prefix"?  (xref https://cbea.ms/git-commit/ and we try to keep somewhat "Linux kernel style") here too

So the second commit for example:

install: Make --disable-selinux always override host state
If the user explicitly disables SELinux, we should always honor that and not
care about the host state.

or so?

thanks for the reviews!


Translation of comment method

What should happen with “CXString clang_TextComment_getText(CXComment Comment);”

I think this was about adding additional structs like "TextComment" for this function so that we have nicer method names. I do not think that this is necessary.


load oculus rift touch controller models into scene

Having the actual rift touch models would make it a lot easier for users to learn to use them. presently i'm not able to get the gltfLoader to work, because webpack is causing a problem with locating the file. i'll placing the file in the server path instead of the public folder

fixed


Add system ordering

Codecov Report

Merging #17 (9210218) into main (bad02be) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##              main       #17    +/-   ##
==========================================
  Coverage   100.00%   100.00%
==========================================
  Files           22        24     +2
  Lines         2046      2184   +138
==========================================
+ Hits          2046      2184   +138

Impacted Files
Coverage Δ

src/app.rs
100.00% <ø> (ø)

src/lib.rs
100.00% <ø> (ø)

src/storages/archetypes.rs
100.00% <ø> (ø)

src/storages/components.rs
100.00% <ø> (ø)

src/storages/entities.rs
100.00% <ø> (ø)

src/system_checks.rs
100.00% <ø> (ø)

src/systems.rs
100.00% <ø> (ø)

src/testing.rs
100.00% <ø> (ø)

src/utils.rs
100.00% <ø> (ø)

src/actions.rs
100.00% <100.00%> (ø)

... and 15 more

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 bad02be...9210218. Read the comment docs.


Distance scoring rule

[ ] Documentation
[ ] Tests
[ ] Implementation
[ ] Changelog
[ ] Release

Two things about the distance scoring rule are unclear to me:

The probability is a constant (β). Why is that? Does it mean that you can’t use the rule to compare confidence intervals that have different confidence (probability)?
The probability is not taken into account when outcome (x) is inside the interval. Why is that? Intuitively, I would think that the probability should matter in those cases, too.

Asked Spencer. Answer:

Regarding (1), if I recall correctly, when I wrote this I recall being unconvinced that the standard approach to doing interval predictions (the linear method) actually supported comparisons across different betas properly. I recall trying to improve that for the distance scoring method, but I cannot promise it works in an ideal way. But my memories on this are somewhat hazy.
Regarding (2), when beta gets bigger you want the forecaster to be incentivized to use larger intervals (a 99th percentile interval should be larger than a 50th percentile one). If I recall correctly, the way I incentivize this is to have the penalties for being wrong (having the true value fall outside your interval) go up when beta increases. Another way to achieve a similar goal would probably to have the reward for being “right” go up as beta increases with the penalties held constant. It may be I went with the first method due to wanting to have a consistent max score independent of beta, but I’m not sure.

I also asked him about c:

There is this variable c that “determines the units with which we measure distance”. It is not obvious to me what this means. For now, I have just set c = 1. Do you have an example that could make this easier to understand?

Answer:

Think about it like this: if we’re predicting distance (say, the length of a tennis court) are we predicting in feet or meters or miles? c just accomplishes a unit conversion in essence, I think. So if the user inputs in feet you can have c convert to meters before being scored.

More generally, it encompasses the idea of what you need for something to be a “good guess”. If in miles being off by 0.5 miles is probably a good guess. If in feet then being off by 0.5 miles is probably a terrible guess.

I think I’ll leave out c as it is not obvious to me that it is useful in this case.


WIP - Update to .NET 6

PR to update content from as mixture of .NET Core 3.1 and what-not to .NET 6 All the Things.
This is the new course structure I am going to target

From
To
Session

9:00 AM
9:30 AM
Overview (30 minutes)

9:30 PM
10:00 AM
Maximize Code Reuse With .NET Standard (30 minutes)

10:00 AM
12:00 PM
Web Development (2 hours)

12:00 PM
1:00 PM
Lunch

1:00 PM
2:00 PM
Client Development (2 hours)

2:00 PM
3:00 PM
.NET Containers (1 hour)

3:00 PM
3:30 PM
Afternoon Break

3:30 PM
4:00 PM
Porting From .NET Framework (30 minutes)

4:00 PM
4:15 PM
Docs and Resources

4:15 PM
5:00 PM
Q&A / Additional Lab Time

Progress

[x] Overview
[ ] .NET Standard
[ ] Web Development
[ ] Client Development
[ ] .NET Containers
[ ] Porting From .NET Framework

@jongalloway can you review the overview content?
https://github.com/isaacrlevin/dotnetcore-workshop/tree/dotnet-6/1. Overview


fix only scan node with limit and no predicate can reduce to 1 instance (#31342)

bp #31342

run buildall

run buildall


[US]-19-jiangnanfei.md

It'll be great if you could combine these two commits into one.
It'll be even better if you could divide them into multiple commits to describe your work in details.

@2002-Goatsucker If you are going to merge this branch as it was, the best practice is don't keep the unclean history, and simply create a merge-commit.


backward speed slower than pytorch conv2d

as mentioned in #11
code in following
import torch
import time
from torch import nn
from torch.autograd import Variable
from pyinn.modules import Conv2dDepthwise

in_feat = 32
out_feat = 64
batch_size = 256
stride = (2,1)
kernel_size = (7,3)

x = Variable(torch.randn(batch_size, in_feat, 40, 400)).cuda()
t = Variable(torch.randn(batch_size)).cuda()

print(kernel_size, stride)
layers = [nn.BatchNorm2d(in_feat),
          nn.Conv2d(in_feat,
                    in_feat,
                    kernel_size=kernel_size,
                    stride=stride,
                    padding=0,
                    groups=in_feat,
                    bias=False),

          nn.BatchNorm2d(in_feat),
          nn.Conv2d(in_feat,
                    out_feat,
                    kernel_size=(1,1),
                    stride=(1,1),
                    bias=False
                    ),

          nn.BatchNorm2d(out_feat),
          nn.ReLU()]

torch_conv = nn.Sequential(*layers)
torch_conv = torch_conv.cuda()

layers = [nn.BatchNorm2d(in_feat),
          Conv2dDepthwise(in_feat,
                          kernel_size=kernel_size,
                          stride=stride,
                          padding=0,
                          bias=False),

          nn.BatchNorm2d(in_feat),
          nn.Conv2d(in_feat,
                    out_feat,
                    kernel_size=(1,1),
                    stride=(1,1),
                    bias=False
                    ),

          nn.BatchNorm2d(out_feat),
          nn.ReLU()]

pyinn_conv = nn.Sequential(*layers)
pyinn_conv = pyinn_conv.cuda()

print('forward1')
t_start = time.time()
for i in range(10):
    y1 = torch_conv(x)
    torch.cuda.synchronize()

pytorch_forward_t = time.time()-t_start

y1 = y1.sum(1).sum(1).sum(1)
loss1 = nn.MSELoss()(y1, t)
print('backward1')
t_start = time.time()
loss1.backward()
pytorch_backward_t = time.time() - t_start

print('forward2')
t_start = time.time()
for i in range(10):
    y2 = pyinn_conv(x)
    torch.cuda.synchronize()
pyinn_forward_t = time.time()-t_start

y2 = y2.sum(1).sum(1).sum(1)
loss2 = nn.MSELoss()(y2, t)
print('backward2')
t_start = time.time()
loss2.backward()
pyinn_backward_t = time.time() - t_start

print('batch size: {}, kernel size: {}, stride size: {}, '
      'pytorch forward time: {:.4f}s '
      'pyinn forward time: {:.4f}s '
      'pytorch backward time: {:.4f}s '
      'pyinn backward time: {:.4f}s'.format(
    batch_size, kernel_size, stride,
    pytorch_forward_t, pyinn_forward_t,
    pytorch_backward_t, pyinn_backward_t
))
print(pytorch_forward_t/pyinn_forward_t,
      pytorch_backward_t/pyinn_backward_t)

batch size: 256, kernel size: (7, 3), stride size: (2, 1), pytorch forward time: 2.4811s pyinn forward time: 1.5070s pytorch backward time: 0.0037s pyinn backward time: 0.1597s
1.646389619890211 0.022934876056741653

reopened #11


added header and footer links and amended focus style

What is the context of this PR?
Added links to header and footer
How to review
Choose the census household schema and try the links in the header and footer.
Also check focus style on footer links.

https://www.ons.gov.uk/census/help/cookiesandprivacy and https://www.ons.gov.uk/census/help/termsandconditions and https://www.ons.gov.uk/census/help are 404s??

Passed QA


No validation of javascript or HTML injection

Description
Text fields are not checking for stripping out HTML or JavaScript. I was able to put in several values that were saved without any errors or stripping. I am not sure if it is being encoded/decoded, but this is usually considered an attack vector. I cannot see what is stored on the backend right now, but that should be checked to see what impact it has on the editor instance, and also what impact it would have to the display version of the application.
Expected behavior
JavaScript and HTML should not be accepted or should be stripped before saving to the database.
Steps To Reproduce

Go to /Application
Advance to the Socials stage
Enter JavaScript value into the Github field. Ex: javascript:alert('Yolo!');
Enter HTML into the Twitter field. Ex:<iframe src="https://twitter.com/StCyrThoughts">This should be fun</iframe>
Press 'Next' button to advance
No validation is done, values appear to be saved

Screenshots

This is now closed as the repository is archived.
This has already been addressed in the new repository.


score-card-issue

Hey @Abhisheksahu04 ,
Is this pr incomplete ?

No the code is running fine in localhost
On Fri, 22 Sept, 2023, 02:13 Ankit Kiran, @.***> wrote:

Hey @Abhisheksahu04 https://github.com/Abhisheksahu04 ,
Is this pr incomplete ?
[image: Screenshot 2023-09-22 at 2 11 30 AM]
https://user-images.githubusercontent.com/95562947/269752356-316a0f53-41fb-4248-ad2f-ab1fd7a675ef.png
—
Reply to this email directly, view it on GitHub
https://github.com/Webwiznitr/VRIDDHI/pull/7#issuecomment-1730272180,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A5PPTEMVQTREYQWVZN4ZI6LX3SRGPANCNFSM6AAAAAA43XSL2Q
.
You are receiving this because you were mentioned.Message ID:
@.***>


Automatic database reconnect

Describe the feature
GORM should try to reconnect to a database when connection is lost (e.g. Network error, DB restart)

After the DB restarts, the gorm application usually isnt able to recover and get back to normal operations.
That should be solved.
To reproduce the behaviour that I want to avoid - working with Postgres, I get:

start your DB
run you gorm app
use your gorm app
shutdown DB
try using gorm app
see it failing with db connection error: "FATAL: terminating connection due to administrator command (SQLSTATE 57P01)"
restart DB
Try using App
See it still getting the same error

Expecation would be that the application reconnects to the DB and continue to work without a restart.
Motivation
GORM applications without DB connection do not work very well.

Related Issues
Multiple issues have been created with that, but all have been closed, but without mentioning a reason or a workaround:
https://github.com/go-gorm/gorm/issues?q=reconnect
There are also some chat messages about it:  https://gitter.im/jinzhu/gorm?at=5a59df94ba39a53f1a0e36f2 - but it's not clear to me why gorm doesn't come out of the box with that reconnect behaviour - are there important downsides to configure it by default to reconnect automatically?

I'd be happy to try find a solution for that thing or add some documentation with a workaround if I get some guidance for more experienced gorm developers about how to do it best... maybe there is a reason why it has not been implemented before, or maybe I am overseeing something that makes it not a useful feature.

I need this feature

any updates?

I just started googling this topic and landed on this stale issue.
Any hint to prebuilt solutions would be of much help (if there are any)

I need this feature too.

Is there any solution now?

I am unable to replicate this in a Gin API application, i.e. it recovers automatically with a subsequent request.
has this feature been implemented?

gorm automatically reconnects for me. I'm using gorm version v1.25.12.

I am running into the same issue on v1.25.12 with mysql v1.8.1.
Code is set up to connect using an existing sql connection.
Previously I had gorm v1.24.2 with mysql 1.4.4 and it would reconnect automatically but now once it fails it will never reconnect.
{"time":"2024-11-05T10:39:56.01449173+09:00","level":"ERROR","prefix":"-","file":"gormlogger.go","line":"44","message":"failed to initialize database, got error %v[dial tcp [::1]:3307: connect: connection refused]"}
{"time":"2024-11-05T10:40:04.352576548+09:00","level":"ERROR","prefix":"-","file":"gormlogger.go","line":"44","message":"failed to initialize database, got error %v[sql: database is closed]"}
{"time":"2024-11-05T10:40:12.343878406+09:00","level":"ERROR","prefix":"-","file":"gormlogger.go","line":"44","message":"failed to initialize database, got error %v[sql: database is closed]"}

gorm automatically reconnects for me. I'm using gorm version v1.25.12. It would be helpful if @jinzhu can confirm this

Reference in

Yes, Go manages the connection pool and will handle reconnections after a failure.

@jinzhu Thank you.

@jinzhu I believe the reconnection feature is broken when using an existing database connection.
The issue seems to be caused by this change released with v1.25.
When using gorm.Open with a dsn, this is not an issue because a new connection would be created, however when using an existing database connection, the closed connection is reused which would fail.
I don't think this is the intended behaviour?

@jinzhu I believe the reconnection feature is broken when using an existing database connection.
The issue seems to be caused by this change released with v1.25.
When using gorm.Open with a dsn, this is not an issue because a new connection would be created, however when using an existing database connection, the closed connection is reused which would fail.
I don't think this is the intended behaviour?

This doesn’t make any difference, GORM handles it the same way internally.