the plan

So my plan is this:
a developer will first install cargo-crev on his local machine.
The user interface through the text terminal is sometimes great, but sometimes not.
Then he will installs the cargo_crev_web server on his local machine.
Then he uses the browser to open it like:
http://<IP_ADDRESS>:8051/rust-creviews/
And he can see all his local crev data in the browser. Nice.
You can already try that.
He can use it also remotely. For example I have Win10 + WSL Linux. All rust things are in Linux, but the GUI VSCode is in Win10. I have the web server running on Linux and the browser in windows. Works like a charm.
The long-term goal:
I am now working on a GUI interface to write a new review inside the browser.
On the local machine the web-server could run cargo-lib commands. So cargo-crev would have a cross-platform universal front-end GUI interface in the browser. It opens a lot of possibilities.
The same server is now running on the web. There I cannot use any cargo-lib commands.
After the user writes the review I will create a yaml text that the developer can copy/paste in VIM when using $ cargo crev crate review {crate_name}. That will make it easier for many people to write reviews.
Work in progress:
https://bestia.dev/cargo_crev_web/review_new
@dpc, I have in plan also to ask you if is possible to run a crev command to create a review from a file. In that case the developer can download his yaml file from the web and add his review to his repo easily.
I would like to hear your thoughts about this.

Ping @kornelski .
You really want to use crev-lib, and not run cargo-crev as commands then. The exactly interface of cargo-crev CLI can still need to change a lot.

The same server is now running on the web. There I cannot use any cargo-lib commands.

I don't understand this one.
I think being able to easily, locally run this web UI locally is a great idea. Especially stuff like browsing stats and reviews can benefit a lot from a rich, clickable, interactive interface, and is constrained by the text output.
I don't know about the proof creation, but it doesn't hurt too. If the user is running it locally the UI could totally create signed proofs.

I have in plan also to ask you if is possible to run a crev command to create a review from a file.

There is already cargo crev repo import that is almost like it, and fine with adding any new command to help . I was thinking about cargo crev proof sign for signing arbitrary data with the given ID anyway.
But I think you would benefit a lot if you created this reviews programmatically via crev-lib. Then you could add some meta-information

Yeah, crev-lib is the way to go. It's quite easy to use:
https://gitlab.com/crates.rs/crates.rs/-/blob/master/creviews/src/lib.rs
https://gitlab.com/crates.rs/crates.rs/-/blob/master/front_end/templates/crev.rs.html

The same server is now running on the web. >There I cannot use any
cargo-lib commands.
I forgot to write that on the web I cannot use the  private key of the
developer. It is only on his local machine.

Yeah, crev-lib is the way to go. It's quite easy to use:

I will absolutely use it.
I just need some more time to explore some Rust basics to learn.
It's a lot to learn. I'm coming from C# and SQL world from Windows.
And I'm wasting so much time it's incredible.
I resist not loosing my mind only because Rust is a so amazing language.
And I am on a long vacation for 1 year. And there is this lock-down now in India and I am stuck in the guesthouse.
But my pain points:

the Rust compiler is super slow,  (I like to do a lot of iterations with small changes. I fear a faster laptop will not help much. The processor single thread speed did not increase much. But now they have a lot of cores.)
the Rust-analyzer auto-completion is working on/off (this should be my primary source of documentation to learn what a library can do. But it is only frustrating. I cannot count on it. Zero.)
the documentation docs.rs looks great, but I don't need a plain list of functions. This should come with auto-completion. I need clear examples in docs. My use-case is never there. Sure, I go to find them in GitHub. And the time passes by.
I cannot use the debugger in VSCode because I use VSCode in Win10 and remote connect to WSL1 Debian. My laptop is a MacAir2015 and for unknown reasons I cannot enable HyperV. So I cannot use VM, docker or WSL2. Ahhh, I need a new ultrabook, but nothing is really attractive under 1.500 eur. I want to spend around 750 eur. Just dreaming.

Sorry for that stream of complaints. I cannot talk about this to my neighbors in the guesthouse.
I will stop right now.

I didn't mention the super slow (horrific latency) and unreliable connection to internet over a mobile mifi router.
I am stopping it right now ;-)

It would be easy to make a GUI to copy an old review to a new version with the possibility of editing.
If I know the ID, I can filter and show all the versions that need a refreshed review for new version.

These are all important practical problems. I can give some opinions, but you should not shy away from just asking on user forums like https://users.rust-lang.org/ for advise. Especially the auto-completion should work reliably. It must be just some configuration error somewhere.
I personally use rust-analyzer LSP server in a weird text editor I use (kakoune) and it works OK. crev-lib is a bit on a heavy side, since it pulls in ssh and git and some crypto stuff, but it's not too bad, I think.
I use Linux everywhere.
I compile stuff on my desktop that I ssh to from. Compile times are not perfect, but also not terrible. If you setup something like sshfs than you potentially compile on desktop and seamlessly run on laptop too, but for a web-app it's usually OK just to run and connect to remotely.
It's just my preference, but I use debuggers only as a last resort, and dbg! and logging usually get me where I want to be much faster. And when I need a debugger I just do gdb remotely on a machine that I'm running stuff. gdb is really, really a good investement to learn. It might seem odd and scary, but it's just a couple of commands, works everywhere, can easilly be run remotely through ssh, and so on.


User Description for elias-silva added

This Pull Request resolves Issue #1
Description:
In this Pull Request we have done the following additions/edits for the code:
Add Elias Silva to PARTICIPANTS

Thank you for contributing!


Change tab via command

Coverage decreased (-0.5%) to 68.409% when pulling 4893657d56fffe92d5c9b37fa82995a0d2ebb3e8 on maggie-0.5 into 1806058a2a756db561563f0cf38d43e63fb64115 on v0.5.


Can addServer be automatically completed without configuration?

This is a great work.
I have switched from swagger UI to Rapidoc, but unfortunately, it does not work correctly as per the official example. I have to add .addServer('http://localhost:3000') to make Rapidoc work.
On the other hand, Swagger UI works fine and during tryouts, it connects according to the endpoint specified.
Is there a better way to handle this to avoid hard coding the URL setting?
Thank you.

Another way is to use rapidocOptions.serverUrl: 'http://localhost:3000' to specify the API endpoint. However, I don't want to have hardcoded URLs in my configuration file. Is there a way to specify a request URL to use as the serverUrl instead?

Another way is to use rapidocOptions.serverUrl: 'http://localhost:3000' to specify the API endpoint. However, I don't want to have hardcoded URLs in my configuration file. Is there a way to specify a request URL to use as the serverUrl instead?

Use "/" instead. This works for me.

@cheymos
Great, a simple and effective method.
@tsabolov
Should rapidocOptions.serverUrl : '/' be added as a default value to ensure rapidoc works out of the box?
Currently, not specifying a server url will cause a failure.

Should be fixed in https://github.com/tsabolov/nestjs-rapidoc/releases/tag/v1.0.8


Add package for Treehopper C++ API

This PR adds a package definition for Treehopper's C++ API. More information about Treehopper can be found at https://treehopper.io.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: jaydcarlson sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

Thanks for the PR!


feat: add light theme

Overview
Add light theme UI and let user choose which theme to use
What I've done

Remove all usages of Colors file directly
Add Theme switcher
Check all styles changes

How I tested

Switched themes
Tried to open most of app's UI

Screenshot

Which point I want you to review particularly

Suggestions for better code

Seems quite gooood for me 🎉

@issmail-basel
I’ve tested on preview env. 👍


enabled gui containers

surpassed by rebased https://github.com/judovana/benchmarks-in-nested-virtualisation-toolchain/pull/32


Development

What current issue(s) does this address?, or what feature is it adding?
It adds a command line arg to skip the confirmation step when using bootstrap.py. This comes handy when calling the script in a non-interactive fashion.
How did you solve this problem?
Add the -s or --skipconfirm arg to bootstrap.py, which sets require_confirm to False if it is passed in the command line. Also I moved the confirmation warning to the code block where require_confirm is True.
How did you make sure your solution works?
Tested at each code addition and did a final check by pulling and testing the code from my fork remote.
Did you add any tests?
No, the change is pretty straightforward and I used the existing arg parsing as an example.
Are there any special changes in the code that we should be aware of?
Apart from printing a confirmation warning only when a confirmation is required, no changes.
Did you run make lint and make test?
'make lint' outputs 'pycodestyle neo examples prompt.py'
'make test' seems to get stuck at downloading the fixtures
Are you making a PR to a feature branch or development rather than master?
The development branch. The master branch does not contain the require_confirm option yet.

Coverage decreased (-0.008%) to 75.642% when pulling b368cde9a416264c8f418a8a15f96ecbe3151f33 on JorritvandenBerg:development into 12ac09373dfb36f61f4f211b72e56f7c3c963a0c on CityOfZion:development.

@JorritvandenBerg downloading the test fixtures is a 1GB file, so it takes quite a while to do.  Either way, this looks good.  Thanks!

👍


com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server

i do as "https://github.com/Netflix/eureka/wiki/Building-Eureka-Client-and-Server" told to do,but when i start tomct server and get a exception "Cannot execute request on any known server".but that demo guide page tells not to edit eureka-server.properties.so why is that?

because your server is registering to other eureka server. you may config as below：
registerWithEureka: false


Add component node-problem-detector

This adds component node-problem-detector. For more information
refer to https://github.com/kubernetes/node-problem-detector.
closes: #39
Signed-off-by: knrt10<EMAIL_ADDRESS>TODO

[x] Add tests
[x] Add component to CI

Updated the PR, writing e2e test, to test the working of component

@surajssd the component has Prometheus exporter. I will test it and update the PR

@surajssd @invidian I have added a new knob service_monitor. I have tested the working of metrics, it works fine. So the use of components will be like this

User installs the component with service_monitor enabled then they can scrape metrics from prometheus

We can test that this metric can be scraped via e2e tests then.


fix: typo in readme

This one took a lot of time and effort hope you like it 😩
😂

Thanks! 😄

You got the #1 PR 🙌

😂


re-hooking travis on chimera-core main branch

Hey @tobozo,
Something went wrong with the build.
TravisCI finished with status errored, which means the build failed because of something unrelated to the tests, such as a problem with a dependency or the build process itself.
View build log
TravisBuddy Request Identifier: e9a33760-08db-11eb-9b15-83942378e0dd


:bug: Fish install broken

Problem Statement
Issue #234 states:

Describe the bug
All I know for sure is that after following the install instructions, I cannot execute okta-aws. I've been debugging and I already notice one huge bug, which is that the installer added
export PATH="$HOME/bin:$PATH"

to my config.fish. That syntax is valid in bash, but in fish it should probably be
set -x PATH $HOME/bin $PATH

Furthermore, it didn't even create a /bin folder in my $HOME directory.
To Reproduce
Steps to reproduce the behavior:
1. Install the fish shell

2. Execute

curl 'https://raw.githubusercontent.com/oktadeveloper/okta-aws-cli-assume-role/master/bin/install.sh' | bash

1. Check your `config.fish`

Solution

Don't use export (it's a Bash thing, not fish)

Don't create withokta function (there's a withokta script)

Resolves #234

@patrickf3139 this should resolve your issue. It works for a fresh install using fish for me. Please test it and post a code review on this for me.

Woohoo! It works! Thank you so much @AlainODea for the quick response and fix.

My only suggestion, if you want to be really fish-, is to install okta-aws and okta-sls into ~/.config/fish/functions as auto-loaded functions instead because

canonically, functions belong in the functions folder rather than config.fish
slight improvement to shell performance this way

But it's really not a big deal.

@patrickf3139 the fish functions directory is so much cleaner! Thank you for that feedback 👍

Please give this one last test to see that it works for you as well and then I'll merge it.

Wait sorry, you create the function files without the .fish extension which is necessary for autoloading I think.

Sorry about that, @patrickf3139. I've got it corrected now and re-tested with a clean config.fish.

Tested, works. Thank you Alain. Nice working with you!

Nice working with you as well :) I hope this tool is useful for you (hopefully a bit friendlier to deploy now).


On mobile, impossible to click on the elements of the dropdown menus.

On mobile, clicking on an element of the League and Time interval dropdown menus does not work. It clicks on the element behind because the menu gets closed.
Tested on Android 6.0.1, Chrome 56, Firefox 52
On the screenshot, i cannot select Hardcore Legacy, Legacy, Standard.
https://cloud.githubusercontent.com/assets/5748216/24043549/6a500170-0b17-11e7-9cd0-7e02f1e311c3.png

I just did a complete rework of the website to better support mobile devices :) I use native selects now. Can you confirm it works for you too?

It works perfectly on mobile now. However, a new issue appeared because of the mobile version on the desktop, the dropdown menu font is white on a white background
https://cloud.githubusercontent.com/assets/5748216/25332402/a496ca52-28e6-11e7-9639-ee8862e7bd02.jpg

Could you tell me which browser and OS you are using?

OS: Windows 10
Browsers on which the issue happens: Chrome 57, Firefox 42, Edge, Internet Explorer 11

I just updated the website and it seems to work on my side. Could you take a look and see if it fixed the issue on your side as well?


Registration: valid phone number verification doesn't work with a number exceeding 17 characters

To reproduce:

Hit register button, fill the first form with valid username and password
On the second form, don't fill mail field
Fill the phone number with 17 characters (without the country code)
Hit Submit

There is no "Registration Failed - This doesn't look like a valid phone number" modal. This modal will happen with 16 characters or less.
FI my country code was "GB".

Doesn't block the form neither when I use ,;,;,;,; as a phone number.


testnet to mainnet

Followed instructions to the create LND wallet. from https://magazine.odroid.com/article/thundroid-part-2-migrating-from-bitcoin-testnet-to-mainnet/
when i try to generate lnd seed i get - rpc error : code = unknown desc = wallet already exits
an yes i removed the macaroon files listed an it still happens.

So apparently im online but still cant create any wallet for mainnet thru lnd following guide.

update - finally got wallet created but lnd now fails after unlock.

sigh , lnd.service: Main process exited, code=exited, status=1/FAILURE

Can you provide the output of

sudo journalctl -u lnd -n 100
the lnd logfile?

Seems like bitcoind is not ready. What does bitcoin-cli getblockchaininfo say?

"chain": "main",
"blocks": 540215,
"headers": 540215,
"bestblockhash": "000000000000000000165179bd34a379d50dc21c31ee8d607956ba05373a9a07",
"difficulty":<PHONE_NUMBER>722.534,
"mediantime":<PHONE_NUMBER>,
"verificationprogress": 0.9999951691829885,
"initialblockdownload": false,
"chainwork": "0000000000000000000000000000000000000000030dda7986f720067c34acc0",
"size_on_disk":<PHONE_NUMBER>21,
"pruned": false,
"softforks": [
{
"id": "bip34",
"version": 2,
"reject": {
"status": true
}
},
{
"id": "bip66",
"version": 3,
"reject": {
"status": true
}
},
{
"id": "bip65",
"version": 4,
"reject": {
"status": true
}
}
],
"bip9_softforks": {
"csv": {
"status": "active",
"startTime":<PHONE_NUMBER>,
"timeout":<PHONE_NUMBER>,
"since": 419328
},
"segwit": {
"status": "active",
"startTime":<PHONE_NUMBER>,
"timeout":<PHONE_NUMBER>,
"since": 481824
}
},
"warnings": ""

thats the bitcoin-cli getblockchaininfo rundown, wasnt expecting such a fast response went out for breakfast . but im sitting around wifi now.

Hm, looks good. LND usually fails on startup when bitcoind is still on testnet or still syncing. Not sure what's the case here.
As you don't have funds committed yet, you might want to create over with the LND configuration, just pointing /home/bitcoin/.lnd at a different (empty) directory on the hdd and create the mainnet wallet from scratch. Usually not possible, but hard to diagnose the issue from afar.

so redo install from guide starting at LND? in a different folder?

lncli getinfo
[lncli] open /home/admin/.lnd/admin.macaroon: permission denied
Well i tired to getinfo as i was surprised that this came back, could it be the problem?

Well I'm officially exhausted of this lnd so... If any1 can get me to a solution (we're I can connect to the main net unlock my wallet an buy a sticker ) I've got 0.003btc I will send you thanks.

Update : starting to think however im instailling lnd its not finding or locating the bitcoin software which is apparently running under admin.
as a fresh install returned -
admin@TheBall00:~$ lncli getinfo
[lncli] rpc error: code = Unavailable desc = grpc: the connection is unavailable
admin@TheBall00:~$ sudo journalctl -f -u lnd
-- Logs begin at Thu 2018-09-06 16:01:41 EDT. --
Sep 06 16:35:33 TheBall00 lnd[1292]: 2018-09-06 16:35:33.760 [INF] RPCS: password RPC server listening on <IP_ADDRESS>:10009
Sep 06 16:35:33 TheBall00 lnd[1292]: 2018-09-06 16:35:33.760 [INF] RPCS: password gRPC proxy started at <IP_ADDRESS>:8080
Sep 06 16:35:33 TheBall00 lnd[1292]: 2018-09-06 16:35:33.760 [INF] LTND: Waiting for wallet encryption password. Use lncli create to create wallet, or lncli unlock to unlock already created wallet.
Sep 06 16:37:09 TheBall00 lnd[1292]: 2018-09-06 16:37:09.520 [INF] LNWL: Opened wallet
Sep 06 16:37:09 TheBall00 lnd[1292]: 2018-09-06 16:37:09.719 [INF] LTND: Primary chain is set to: bitcoin
Sep 06 16:37:09 TheBall00 lnd[1292]: 2018-09-06 16:37:09.719 [INF] LTND: Initializing bitcoind backed fee estimator
Sep 06 16:37:12 TheBall00 lnd[1292]: 2018-09-06 16:37:12.232 [INF] LNWL: Opened wallet
Sep 06 16:37:12 TheBall00 systemd[1]: lnd.service: Main process exited, code=exited, status=1/FAILURE
Sep 06 16:37:12 TheBall00 systemd[1]: lnd.service: Unit entered failed state.
Sep 06 16:37:12 TheBall00 systemd[1]: lnd.service: Failed with result 'exit-code'.
Sep 06 16:38:12 TheBall00 systemd[1]: lnd.service: Service hold-off time over, scheduling restart.
Sep 06 16:38:12 TheBall00 systemd[1]: Stopped LND Lightning Daemon.
i also noticed that if i check -  sudo tail -f /home/bitcoin/.bitcoin/debug.log
i get this
////
2018-09-04 21:34:51 Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2018-09-04 21:34:51 Using 8 threads for script verification
2018-09-04 21:34:51 scheduler thread start
2018-09-04 21:34:51 Binding RPC on address ::1 port 8332 failed.
2018-09-04 21:34:51 Binding RPC on address <IP_ADDRESS> port 8332 failed.
2018-09-04 21:34:51 Unable to bind any endpoint for RPC server
2018-09-04 21:34:51 Error: Unable to start HTTP server. See debug log for details.
2018-09-04 21:34:51 Shutdown: In progress...
2018-09-04 21:34:51 scheduler thread interrupt
2018-09-04 21:34:51 Shutdown: done
////
but checking - sudo tail -f /home/admin/.bitcoin/debug.log
returns
////
2018-09-06 20:22:07 connect() to [2a02:1810:4e20:4700:8c34:69d5:e471:6123]:8333 failed: Network is unreachable (101)
2018-09-06 20:23:01 connect() to [2601:c0:8001:cb90:15a3:7890:788f:40d5]:8333 failed: Network is unreachable (101)
2018-09-06 20:25:54 connect() to [240e:a4:b916:6f00:7285:c2ff:fe70:5a36]:8333 failed: Network is unreachable (101)
2018-09-06 20:28:08 Pre-allocating up to position 0xd00000 in rev01364.dat
2018-09-06 20:28:11 UpdateTip: new best=0000000000000000000dc6bf581b73bb6f915629e6aef46acf0cc959dec4c968 height=540240 version=0x20000000 log2_work=89.611856 tx=339854353 date='2018-09-06 20:27:09' progress=0.999999 cache=4.1MiB(35830txo) warning='2 of last 100 blocks have unexpected version'
2018-09-06 20:31:05 UpdateTip: new best=0000000000000000001d1fd9cada8b438c223d933bb5a0f412a62205dca4223a height=540241 version=0x20000000 log2_work=89.611901 tx=339856502 date='2018-09-06 20:30:06' progress=0.999999 cache=4.6MiB(40740txo) warning='2 of last 100 blocks have unexpected version'
2018-09-06 20:32:17 connect() to [2601:ce:4000:7412:3952:1ae:f421:b334]:8333 failed: Network is unreachable (101)
2018-09-06 20:35:38 UpdateTip: new best=000000000000000000265e9ecd8728c5f24eea700831ca4d74b2c8ea64af0aee height=540242 version=0x20000000 log2_work=89.611945 tx=339858212 date='2018-09-06 20:35:33' progress=1.000000 cache=5.0MiB(44711txo) warning='2 of last 100 blocks have unexpected version'
2018-09-06 20:37:04 connect() to <IP_ADDRESS>:8333 failed after select(): No route to host (113)
2018-09-06 20:46:10 connect() to <IP_ADDRESS>:8333 failed after select(): Connection refused (111)
///
ideas??? the 0.003btc bounty to help me get online is still in effect.

cat lnd rundown
///
[Install]
WantedBy=multi-user.target
admin@TheBall00:~$ cat /etc/systemd/system/lnd.service
Thundroid: systemd unit for lnd
/etc/systemd/system/lnd.service
[Unit]
Description=LND Lightning Daemon
Wants=bitcoind.service
After=bitcoind.service
[Service]
ExecStart=/usr/local/bin/lnd
PIDFile=/home/bitcoin/.lnd/lnd.pid
User=bitcoin
Group=bitcoin
LimitNOFILE=128000
Type=simple
KillMode=process
TimeoutSec=180
Restart=always
RestartSec=60
[Install]
WantedBy=multi-user.target
////
bitcoind rundown
///
Thundroid: systemd unit for bitcoind
/etc/systemd/system/bitcoind.service
[Unit]
Description=Bitcoin daemon
After=network.target
[Service]
ExecStart=/usr/local/bin/bitcoind -daemon -conf=/home/admin/.bitcoin/bitcoin.conf -pid=/run/bitcoind/bitcoind.pid
Creates /run/bitcoind owned by bitcoin
RuntimeDirectory=bitcoind
User=admin
Group=bitcoin
Type=forking
PIDFile=/run/bitcoind/bitcoind.pid
Restart=on-failure
Hardening measures
####################
Provide a private /tmp and /var/tmp.
PrivateTmp=true
Mount /usr, /boot/ and /etc read-only for the process.
ProtectSystem=full
Disallow the process and all of its children to gain
new privileges through execve().
NoNewPrivileges=true
Use a new /dev namespace only populated with API pseudo devices
such as /dev/null, /dev/zero and /dev/random.
PrivateDevices=true
Deny the creation of writable and executable memory mappings.
MemoryDenyWriteExecute=true
[Install]
WantedBy=multi-user.target
///
So its like i said admin is controlling bitcoind, so how do i correct this?

now that i think about it, when i reindexed . I was probably under admin. idk if that helps the fix. I have about 1-2hrs of wifi time left today. If so if i dont respond it will be first thing in the morning

While your LND is running as user "bitcoin", the bitcoind runs as admin. Without additional settings, they cannot talk to each other.
I'd go over the whole first part of the Thundroid guide and check every step. In essence, you need to change the "User=admin" to "User=bitcoin" in the bitcoind.serviceand make sure that you set up the sym link /home/bitcoin/.bitcoin to point to the external hdd as described in the guide.
https://github.com/Stadicus/guides/blob/master/thundroid/README.md

well now a new problem since i went back an reinstalll - bitcoind i get this
///
sudo systemctl status bitcoind
● bitcoind.service - Bitcoin daemon
Loaded: loaded (/etc/systemd/system/bitcoind.service; enabled; vendor preset: enabled)
Active: inactive (dead) (Result: exit-code) since Fri 2018-09-07 09:44:38 EDT; 15min ago
Main PID: 1002 (code=exited, status=1/FAILURE)
Sep 07 09:44:38 TheBall00 systemd[1]: bitcoind.service: Unit entered failed state.
Sep 07 09:44:38 TheBall00 systemd[1]: bitcoind.service: Failed with result 'exit-code'.
Sep 07 09:44:38 TheBall00 systemd[1]: bitcoind.service: Service hold-off time over, scheduling restart.
Sep 07 09:44:38 TheBall00 systemd[1]: Stopped Bitcoin daemon.
Sep 07 09:44:38 TheBall00 systemd[1]: bitcoind.service: Start request repeated too quickly.
Sep 07 09:44:38 TheBall00 systemd[1]: Failed to start Bitcoin daemon.
Sep 07 09:53:19 TheBall00 systemd[1]: [/etc/systemd/system/bitcoind.service:36] Unknown lvalue 'MemoryDenyWriteExecute' in section 'Service'
Sep 07 09:57:47 TheBall00 systemd[1]: [/etc/systemd/system/bitcoind.service:36] Unknown lvalue 'MemoryDenyWriteExecute' in section 'Service'
admin@TheBall00:~$ bitcoin-cli getblockchaininfo
error: couldn't connect to server: unknown (code -1)
(make sure server is running and you are connecting to the correct RPC port)
///

now that its reindexing again... i noticed that since the fresh install bitcoin service is stopped maybe idk
///
admin@TheBall00:~$ systemctl status bitcoind.service
● bitcoind.service - Bitcoin daemon
Loaded: loaded (/etc/systemd/system/bitcoind.service; enabled; vendor preset: enabled)
Active: inactive (dead) (Result: exit-code) since Fri 2018-09-07 10:06:28 EDT; 38min ago
Main PID: 1259 (code=exited, status=1/FAILURE)

[/etc/systemd/system/bitcoind.service:36] Unknown lvalue 'MemoryDenyWriteExecute' in section 'Service'

Are you using the correct Raspbian distribution (Raspbian Stretch Lite)?
$ cat /etc/*-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"

this is on the odroid install.
// cat /etc/*-release // returns
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.5 LTS"
NAME="Ubuntu"
VERSION="16.04.5 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.5 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

Not sure why this does not work. I'd recommend to delete everything in the file bitcoind.service after "Hardining measures", it's not that important.

Will try this in a day or 2, had to evacuate damn cat5 hurricane coming.  also post ur btc donation link so i can send you something for helping me get this far. thxs

You've got stamina, that much is sure... :-) If you want to send a tip, how about donating some to Venezuela via https://opennode.co? Works on-chain, or (challenge!) Lightning.

Done. https://www.smartbit.com.au/tx/452fd57190c763c2dcd18b3361e2855686eb2797d1671c9ec42e8da3059c4756
hopefully , ill be bk in 2 days.
update; i removed everything after hardening , still says service failed last active 4days ago basically the day i started over the install under user bitcoin.  but bitcoind is running an reindexin , according to the log an its also connecting to alot of peers.

back after the hurricane , bitcoind service still hasnt started since we made those changes
says
"/etc/systemd/system/bitcoind.sercive:36] Unknown lvalue 'memorydenywriteexecute' in section 'service'
Warning:bitcoind.service changed on disk. Run'systemctl dameon-reload' to reload units.

Yes, once you modify a systemd unit file, you need to reload it with sudo systemctl daemon-reload. Then restart it.

I'm really at the end of my knowledge.  At this stage, I can only encourage you to start over and follow the guide meticulously step-by-step, learn (google) all involved commands and concepts and possible error messages.

Sigh...this was my 3rd time restarting an re-indexing. An this is especially frustrating seeing how i didn't delete anything an testnet was working fine i just wanted to go to mainnet. Thank you for your all of your time this obviously isn't something that is for me Ive been trying for months.

Sorry to hear that. I will enhance the guide with an additional "troubleshooting" section in the near future, but maybe it would be a worthwile excersize to try to run your own node using Satoshi Portal's docker images?
https://github.com/SatoshiPortal/dockers/tree/master/rpi

i honestly dont think it will help me out at this point, i bought the odroid an equipment an internet thinking your guide was easy enough for me to understand. an simply couldn't get my lightning wallet to unlock i didnt think it would lead to such user difficultly. logs dont even really say what the problems are its very frustrating..not to mention the program is running an not the service i just dont understand how.

I finally got it running LN wallet catching up to current block height, thanks for everything. U need a website or something frfr.

Whoohoo! What was the secret ingredient?
Frfr?

frfr-for real for real. Something with how my drive was mounted there was a "period" . on the end of a file name. i caught it just reading thru the guide here. previous guide i used of urs was on a blog site must have been old or miscopied.


Create skeleton ansible-cli python script for review; include options or shell_init

@clintoncwolfe - Let me know what ya think.  It's includes some skeleton for generate as well as some functionality for shell_init.

I added click 5.1 to the omnibus build.  On my machine, with the ansible DK installed and my env vars set (using the bash shell-init), I now have:
[clinton@and-cheese ~]$ /opt/ansible-dk/embedded/bin/pip listawscli (1.9.5)
boto (2.36.0)
botocore (1.3.5)
click (5.1)
colorama (0.3.3)
docutils (0.12)
jmespath (0.9.0)
pip (7.1.2)
pyasn1 (0.1.9)
python-dateutil (2.4.2)
rsa (3.2.3)
setuptools (18.5)
six (1.10.0)
[clinton@and-cheese ~]$ ls /opt/ansible-dk/embedded/lib/python2.7/site-packages/click-5.1-py2.7.egg-info
PKG-INFO		dependency_links.txt	top_level.txt
SOURCES.txt		installed-files.txt

@clintoncwolfe I made the recommended changes.  I'm currently on MacOS Yosemite, but I can develop in Ubuntu 14.04 LTS.

I'm not quite familiar with omnibus.  Is there any documentation or things I can take a look at to become more familiar with it?

@clintoncwolfe I'm starting up an ubuntu 14.04 box up to work with the omnibus

You can learn about omnibus here - https://github.com/chef/omnibus - basically, you:

make sure you have a ruby installed, 2.1 or later I suspect
clone the repo
cd omnibus-ansible-dk
bundle install (cross fingers)
bundle exec omnibus build ansible-dk
The first time, it will fail, wanting to write to odd places under /var and /opt/ansible-dk (I think it's pretty sloppy in this regard).  Make the directories, and have them writable by you.  Then it "should" work -though a build will likely take 15-30 minutes.  If all goes well, you'll have a dmg file in pkg/ .

For ubuntu 14.04, we've made a test kitchen file that does the whole thing - sets up omnibus, then runs the build.  It by default uses vagrant+virtualbox locally, but if you know some test kitchen, you can replace that with an AWS config.
Or, skip all that, and just use these "nightlies" we made today:
https://bintray.com/omniti-labs/ansible-dk/ansible-dk/view
If you install that DMG, it will unpack a bunch of stuff to /opt/ansible-dk, and link /usr/local/bin/ansible-dk to the existing bash version of the CLI.  Then you can 'eval "$(ansible-dk shell-init bash)"' to get your paths set, and should be able to develop against the "captive" python and click.

Hey, don't mean to let this languish - do you still consider this a "request for review" PR, or do you feel it's ready to merge?

Will need similar change to PATH as #45

Closing this PR, integration of this work is continuing on #56


Refactor MarshalCopy to use unsafe block and avoid unnecessary memory allocation

Refactored MarshalCopy to eliminate the redundant use of Marshal.AllocHGlobal and Marshal.FreeHGlobal. The new implementation leverages an unsafe block with a fixed pointer to directly access the destination memory, improving performance by avoiding extra memory allocations. This simplifies the code and ensures safer and more efficient memory handling without the need for manual heap allocation.

thanks for doing this change


CORS not working on url's other than API and WEB

Hi @barryvdh ,
I have used the package on my laravel application. I have implemented on API and web for example "http://myip/api/auth" or such. However, when I am trying to access the files residing at "http://myip/scorm" which is not part of the API guard or WEB guard i kept getting the CORS resources disallowed for iframe... I am using NGINX. The resource is being called inside an Iframe in a react app. I would really appreciate any help in this regard.
FYI...i have tried implementing add_header inside nginx too..
Regards,
HP

I'm closing this due to inactivity. If this issue is still relevant on the latest version (2.0.1 at the moment), please open a new issue with detailed information.


Error in writing date to part5_daysummary_MM

I have encountered a bug in writing dates to the part5_daysummary_MM... csv file.
Here, it can be seen that first day is repeated twice with different information:

However, upon viewing the part5_daysummary_WW... csv file, it can be seen that the same data is written, but the first date is now correct (Tues instead of Wed):

Also, from part4_nightsummary... csv it can be seen that Tues night has the same sleep / wake times as the first line in part5_daysummary_MM:

@vincentvanhees I'll have a go at fixing this, but if you have a chance to have a look at it, let me know and I'll send the data to you.

I can have a look later today or tomorrow. These are things I worked on earlier this year, so I think it is a part of the code I still have fresh in memory. @m-patterson If you could send me the example files that would be great. Thanks


How to evaluate a model fine-tuned with prefix?

I use evaluate.py to evaluate the prefix fine-tuned llama, model output is very strange, such as ". 5. 1 and 5 of the 3 and 5. 5,<PHONE_NUMBER>0000000000000000000000000000000. " How can I solve this problem?

Hi,
For prefix, the performance is not good as other adapters based on our experiment results.  And you can use the following command for fine-tuning may improve the performance.
CUDA_VISIBLE_DEVICES=0 python finetune.py   --base_model 'yahma/llama-13b-hf'   --data_path 'math_10k.json'   --output_dir './trained_models/llama-13b-prefix-math-vt10/'   --batch_size 8  --micro_batch_size 4   --num_epochs 5   --learning_rate 3e-2   --cutoff_len 256   --val_set_size 120 --eval_step 10 --save_step 10  --adapter_name prefix-tuning --num_virtual_tokens 10 --load_8bit --use_gradient_checkpointing

Hi, For prefix, the performance is not good as other adapters based on our experiment results. And you can use the following command for fine-tuning may improve the performance.
CUDA_VISIBLE_DEVICES=0 python finetune.py --base_model 'yahma/llama-13b-hf' --data_path 'math_10k.json' --output_dir './trained_models/llama-13b-prefix-math-vt10/' --batch_size 8 --micro_batch_size 4 --num_epochs 5 --learning_rate 3e-2 --cutoff_len 256 --val_set_size 120 --eval_step 10 --save_step 10 --adapter_name prefix-tuning --num_virtual_tokens 10 --load_8bit --use_gradient_checkpointing

Hi,
I just used the above line for prefix tuning (only changed 'yahma/llama-13b-hf' to 'yahma/llama-7b-hf', and removed "--load_8bit"), but got the following error, may I know how to resolve it?
Traceback (most recent call last):
  File "/home/xxx/repo/llm/LLM-Adapters/finetune.py", line 347, in <module>
    fire.Fire(train)
  File "/home/xxx/tools/anaconda3/envs/llm/lib/python3.9/site-packages/fire/core.py", line 141, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "/home/xxx/tools/anaconda3/envs/llm/lib/python3.9/site-packages/fire/core.py", line 475, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
  File "/home/xxx/tools/anaconda3/envs/llm/lib/python3.9/site-packages/fire/core.py", line 691, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
  File "/home/xxx/repo/llm/LLM-Adapters/finetune.py", line 314, in train
    trainer.train(resume_from_checkpoint=resume_from_checkpoint)
  File "/home/xxx/tools/anaconda3/envs/llm/lib/python3.9/site-packages/transformers/trainer.py", line 1542, in train
    return inner_training_loop(
  File "/home/xxx/tools/anaconda3/envs/llm/lib/python3.9/site-packages/transformers/trainer.py", line 1872, in _inner_training_loop
    tr_loss_step = self.training_step(model, inputs)
  File "/home/xxx/tools/anaconda3/envs/llm/lib/python3.9/site-packages/transformers/trainer.py", line 2773, in training_step
    loss = self.compute_loss(model, inputs)
  File "/home/xxx/tools/anaconda3/envs/llm/lib/python3.9/site-packages/transformers/trainer.py", line 2796, in compute_loss
    outputs = model(**inputs)
  File "/home/xxx/tools/anaconda3/envs/llm/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/xxx/tools/anaconda3/envs/llm/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/xxx/tools/anaconda3/envs/llm/lib/python3.9/site-packages/accelerate/utils/operations.py", line 687, in forward
    return model_forward(*args, **kwargs)
  File "/home/xxx/tools/anaconda3/envs/llm/lib/python3.9/site-packages/accelerate/utils/operations.py", line 675, in __call__
    return convert_to_fp32(self.model_forward(*args, **kwargs))
  File "/home/xxx/tools/anaconda3/envs/llm/lib/python3.9/site-packages/torch/amp/autocast_mode.py", line 16, in decorate_autocast
    return func(*args, **kwargs)
  File "/home/xxx/repo/llm/LLM-Adapters/peft/src/peft/peft_model.py", line 568, in forward
    return self.base_model(input_ids=input_ids, past_key_values=past_key_values, **kwargs)
  File "/home/xxx/tools/anaconda3/envs/llm/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/xxx/tools/anaconda3/envs/llm/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/xxx/tools/anaconda3/envs/llm/lib/python3.9/site-packages/transformers/models/llama/modeling_llama.py", line 1183, in forward
    outputs = self.model(
  File "/home/xxx/tools/anaconda3/envs/llm/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/xxx/tools/anaconda3/envs/llm/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/xxx/tools/anaconda3/envs/llm/lib/python3.9/site-packages/transformers/models/llama/modeling_llama.py", line 1035, in forward
    attention_mask = _prepare_4d_causal_attention_mask_for_sdpa(
  File "/home/xxx/tools/anaconda3/envs/llm/lib/python3.9/site-packages/transformers/modeling_attn_mask_utils.py", line 398, in _prepare_4d_causal_attention_mask_for_sdpa
    expanded_4d_mask = attn_mask_converter.to_4d(
  File "/home/xxx/tools/anaconda3/envs/llm/lib/python3.9/site-packages/transformers/modeling_attn_mask_utils.py", line 137, in to_4d
    expanded_attn_mask = causal_4d_mask.masked_fill(expanded_attn_mask.bool(), torch.finfo(dtype).min)
RuntimeError: The size of tensor a (266) must match the size of tensor b (256) at non-singleton dimension 3

Take a look at the discussion here. This might fix it.

@muliyangm Have you solved this problem? I tried this method, but it still throws an error; the dimensions of the error tensor have just become smaller. How did you modify the code?

@muliyangm Have you solved this problem? I tried this method, but it still throws an error; the dimensions of the error tensor have just become smaller. How did you modify the code?

If I remember correctly, it can be solved by tweaking the version of pip transformers (like using the 4.30 one).

@muliyangm Have you solved this problem? I tried this method, but it still throws an error; the dimensions of the error tensor have just become smaller. How did you modify the code?

If I remember correctly, it can be solved by tweaking the version of pip transformers (like using the 4.30 one).

That worked! Thanks a LOT.


IPersistent APIs

@pwielders @sebaszm ,I have made the changes based on the review comments, Pls check.


Added support for docker

Now you can run the library with build run if you have docker installed.

Many thanks for this.


Include quotes in placeholder on event subscriber snippet

When tabbing through the Event Subscriber snippet OnSomeEvent was between quotes.
Upon executing vscode suggestions (Default Ctrl + Space), it would not suggest anything.
I changed the placeholder to include quotes, the suggestions in vscode works.

Thanks for the contribution


[Feature request] Tag database

I have a huge archive of photos and I want to tag them. Is it possible to create a tag database? So it will assist you while you are trying to tag a photo and will show some already existing tags. This will also make possible to create a tag cloud to help a new user search

Yes, there're several improvements planned for tags: https://github.com/electerious/Lychee/issues/505 https://github.com/electerious/Lychee/issues/409 https://github.com/electerious/Lychee/issues/397


Order is not uniform across the diagram

Hi!
While drawing sankey diagrams, I often want to have coloring depending on type, and keep those colors all the way through the diagram. While this feature exists, it does not seem to be compatible with the order parameter.
Here's a minimal example of what I mean:
links = [{"source": "A", "target": "1", "value": 5, "type": "A"},
         {"source": "B", "target": "1", "value": 10, "type": "B"},
         {"source": "C", "target": "1", "value": 15, "type": "C"},
         {"source": "1", "target": "2", "value": 5, "type": "A"},
         {"source": "1", "target": "2", "value": 10, "type": "B"},
         {"source": "1", "target": "2", "value": 15, "type": "C"}]

w = SankeyWidget(links=links)
w

This works well, but if I want to change the ordering of, say, A and B, I can write this:
links = [{"source": "A", "target": "1", "value": 5, "type": "A"},
         {"source": "B", "target": "1", "value": 10, "type": "B"},
         {"source": "C", "target": "1", "value": 15, "type": "C"},
         {"source": "1", "target": "2", "value": 5, "type": "A"},
         {"source": "1", "target": "2", "value": 10, "type": "B"},
         {"source": "1", "target": "2", "value": 15, "type": "C"}]

order = [
         ["B", "A", "C"],
         ["1"],
         ["2"]
]

w = SankeyWidget(links=links, order=order)
w

While this works, the ordering is only defined for the first layer, and the next one (between "1" and "2") is not impacted by the order parameter, making the diagram harder to read. I can't find a way to keep the ordering consistent in subsequent layers, am I missing something? I tried changing the ordering of the links structure, thinking first entries get drawn first (ie switching lines 4 and 5), but unfortunately this is not the case.
Is there any solution?

Hi,
I found the "align_link_types" parameter but it keeps things messy:

I would have expected A to stay in the middle. This leads to chaotic diagrams quickly when there's more data.


[Compat Req] Dragon Drops

https://www.curseforge.com/minecraft/mc-mods/dragon-drops

no point, already difficult to obtain


Add: mapAccumS, mapAccumWhile

These are two combinators I found quite useful. Naming and placement are just suggestions.

LGTM, thanks!


Display tags under/alongside each project

Tags (Topics, technology, and events) aren't listed on the Projects page or the page for that project. This makes it harder for people to identify the kinds of projects that might interest them.
[ ] Technology, topics, and events listed for each project on Projects page
[ ] Technology, topics, and events listed for each project on that project's individual page

 Redesign project/user tags system


VIH-6716 support nuget config

JIRA link (if applicable)
VIH-6716
Change description
Support nuget config for projects with third-party feeds
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[x] No

Levi Butler  14 minutes ago
are there any other existing apps we should test before merging this to master?
Shaed:house_with_garden:  13 minutes ago
video web pipeline shares the same as: service web, admin web, user api and test api
the key change here was to carry on as per usual if they project didn’t have user nuget config enabled.
Had it failing and now passing once i set the defaults. I would say it’s pretty safe
Levi Butler  12 minutes ago
lovely :slightly_smiling_face:
 --logger:console
did this provide additional logging in the end? :slightly_smiling_face: also checking setting this doesnt overwrite the trx logger?


replace fbjs in flowable/types/ws

This PR is a continuation of https://github.com/rsocket/rsocket-js/pull/133. In this PR, fbjs is removed from:

rsocket-examples
rsocket-flowable
rsocket-types
rsocket-websocket-client

@SerCeMan can you resolve the failing DCO check?

@SerCeMan can you resolve the failing DCO check?

Done 👍

Looks like commit has to be signed to have this PR merged

Looks like the commit has to be signed to have this PR merged (https://docs.github.com/en/github/authenticating-to-github/managing-commit-signature-verification/about-commit-signature-verification

Just pushed again, DCO seems to be happy 👍

DCO seems happy now but GH is still saying the merge is blocked?

DCO seems happy now, but GH is still saying the merge is blocked? @SerCeMan I believe you should also be on the admin list for the repo now as well, what do you see as author of the PR and admin?

Ah, thanks, I get it now! I thought it would only require a signature for the DCO bot, but it also requires a GPG signature. I signed the commit and now it's 🍏 !

I'll merge the PR now since it looked good to @viglucci and @OlegDokuka.


Problem: no unit tests

Solution: added a first unit test.
This checks that the login page contains a button linking to github. Will
add a few more tests to get a feeling for how nice this setup is (or not).
It adds a second testing framework py.test which I am not that familiar
with compared to nose. The advantage of using is that we can piggyback
on the mocking and ideas of jupyterhub testing instead of having to roll
our own from scratch.

I think this creates a nice base to build more unit tests on. Which means we have no more excuses for not writing tests :sweat: and then we have the frontend tests as well. 100% test coverage here we come ...
Ready to be merged.


Library rewrite

GitHub Issue: #

Proposed Changes

What is the current behavior?

What is the new behavior?

Checklist
Please check if your PR fulfills the following requirements:

[ ] Documentation has been added/updated
[ ] Automated Unit / Integration tests for the changes have been added/updated
[ ] Contains NO breaking changes
[ ] Updated the Changelog
[ ] Associated with an issue

Other information

Don't forget to change the pool from Container to Windows 1809


Condition instance validation message on child condition having name

Alternative to #97 that avoids hard-coding DTDL class or property names in the ParserGenerator.

If this change had broken a tutorial, the PR would have failed validation, so they must be fine.  Regarding tests, I suggested in #97 that you modify that PR to just be tests on top of this PR.


[BUG] Harvester LB is not correctly syncing with VMI

Describe the bug

To Reproduce
Steps to reproduce the behavior:

create vm vm1, start vm
Create ippoo and lb lb1, lb1 select vm1, wait all ok
Stop vm1

The lb1 is still active

The lb1 has the backend server address, but vm1 is indeed gone.

$kubectl get lb lb1 -oyaml
apiVersion: loadbalancer.harvesterhci.io/v1beta1
kind: LoadBalancer
metadata:
  annotations:
    loadbalancer.harvesterhci.io/namespace: default
    loadbalancer.harvesterhci.io/network: ""
    loadbalancer.harvesterhci.io/project: c-m-f4kgwhds/p-fsmsq
  creationTimestamp: "2024-03-07T12:54:47Z"
  finalizers:
  - wrangler.cattle.io/harvester-lb-controller
  generation: 4
  name: lb1
  namespace: default
  resourceVersion: "1305316"
  uid: 8e739158-56c5-4ca4-b0d9-994ed8033a0c
spec:
  backendServerSelector:
    harvesterhci.io/vmName:
    - vm1
  healthCheck: {}
  ipPool: pool1
  ipam: pool
  listeners:
  - backendPort: 80
    name: listener1
    port: 8088
    protocol: TCP
  workloadType: vm
status:
  address: <IP_ADDRESS>
  allocatedAddress:
    gateway: <IP_ADDRESS>
    ip: <IP_ADDRESS>
    ipPool: pool1
    mask: <IP_ADDRESS>
  backendServers:
  - <IP_ADDRESS>
  conditions:
  - lastUpdateTime: "2024-03-07T12:54:48Z"
    status: "True"
    type: Ready

Expected behavior

vm status is correctly synced to lb.
Support bundle

Environment

Harvester ISO version:  Harvester v1.2.1; harvester-load-balancer:v0.2.1
Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630):

Additional context
Add any other context about the problem here.
Observed when debugging: #5033
Note:
Harvester v1.2.1 and v1.3.0, with different kubevirt version, the error messages are diffrent. note: #5137

After open debug, we get:

time="2024-03-07T13:21:22Z" level=error msg="error syncing 'default/lb1': handler harvester-lb-controller: update lb default/lb1 status failed, error: admission webhook "validator.harvester-system.harvester-load-balancer-webhook" denied the request: Internal error occurred: update loadbalancer default/lb1 failed: no virtual machine instance matched, requeuing"

With current enhancement,
the LB can be a place-holder, if no backend servers are detected, it will move to "Not Ready" status.

Test plan:
Create one LB which has a selector, but the target VM is never created, or VM is ever there but stopped/removed, the LB can detect those correctly:
When IP pool has no free IPs/DHCP fail to allocate IP for this LB, LB is Not Ready
When no backend server, LB is Not Ready
When all backend servers are down, LB is Not Ready
When none of the backed servers is health checked as active, LB is Not Ready
When an active backend server is up, LB changes to Ready.
Refer: https://github.com/harvester/load-balancer-harvester/pull/31#issue-2387926834


Recording - Group Channel/ iOS - React to a message

Click ‘Create’ to create new group channel
Under ‘Choose member’, add users & select ‘OK’
Click on ‘Channel Name’ box to input channel name
Name channel ‘Study Crew’
Click ‘Create’
Click on ‘Study Crew’ to enter conversation

Drew: Big announcement: just got my grades back and aced the final!
Emily: Congratulations Drew!
Nadia: So proud of you!

Amelia reacts to Drew’s message with clapping emoji

@justinbaldwin reviewed, good for publishing


bug: $ionicLoading.hide() doesn't work before redirection

Type: bug
Platform: all
Hello,
For my promises I use $ionicLoading. In some case after my promise are resolved I hide the loading and then redirect the user in another view.
Sometimes the loading stay and block the app. Here is the code :
$ionicLoading.show({'template': 'Chargement...'});

saveVisit().then(function(visitId) {
	$ionicLoading.hide();
	$location.path("showVisit/" + $stateParams['searchId'] + "/" + visitId);
});

Greetings @abellion!
My sensors indicate that you need to update your issue through our custom issue form. We are now requiring all issues to be submitted this way, to ensure that we have all of the information necessary to fix them as quickly as possible.
Click Here To Update Your Issue
I will have no choice but to close this issue if it is not resubmitted through the form. Please fill out the rest of the form, so that I may use my friendly robot powers to assist you.
Thank you!

Maybe you didn't get a promise?
Try:
...
saveVisit().then(function(visitId) {
$ionicLoading.hide();
window.setTimeout(function() { // or $timeout
    $location.path("showVisit/" + $stateParams['searchId'] + "/" + visitId);
 },10);

},function(error){
$ionicLoading.hide();
console.log(error); // => show the error
});

@r1ckyrockz, yes it's working but it's not clean !

With Ionic 1.1.0 the bug is solved :)


Feature popup window

Project requirements
We have implemented the following interactions:

[ ] When the user clicks (or taps) the button to check project details, the popup with details about the project appears.

[ ] When the user clicks (or taps) the close (X) button, the popup disappears.

[ ] Refactor the project section:

Used a JavaScript array to store all of the information for all projects.
Stored the following pieces of data in a JavaScript object, at a minimum: name, description, featured image, technologies, link to live version, link to source.
Updated the main page so that the projects section is created dynamically using the information stored in that JavaScript object. Remember, all of the HTML in that section is created when the page loads.

[ ] Implemented popups for both mobile and desktop screen sizes.

Thank you so much for your advice @Owusu-Desmond, I already fixed the changes you asked me for.


Encountered errors with a multi-dataset zipformer streaming model

I tried to run sherpa-online with the following multi-dateset zipformer streaming model: https://huggingface.co/marcoyang/icefall-libri-giga-pruned-transducer-stateless7-streaming-2023-04-04 and ran into the following errors:
./build/bin/sherpa-online --use-gpu=false \
        --decoding-method=modified_beam_search \
        --num-active-paths=1 \
        --use-endpoint=false \
        --nn-model=./models/icefall-libri-giga-pruned-transducer-stateless7-streaming-2023-04-04/exp/cpu_jit.pt \
        --tokens=./models/icefall-libri-giga-pruned-transducer-stateless7-streaming-2023-04-04/data/lang_bpe_500/tokens.txt \
          ./models/icefall-asr-librispeech-pruned-transducer-stateless7-streaming-2022-12-29/test_wavs/1221-135766-0001.wav
[I] ../sherpa/csrc/parse-options.cc:495:int sherpa::ParseOptions::Read(int, const char* const*) 2023-06-13 00:08:16.276 ./build/bin/sherpa-online --use-gpu=false --decoding-metho
d=modified_beam_search --num-active-paths=1 --use-endpoint=false --nn-model=./models/icefall-libri-giga-pruned-transducer-stateless7-streaming-2023-04-04/exp/cpu_jit.pt --tokens=
./models/icefall-libri-giga-pruned-transducer-stateless7-streaming-2023-04-04/data/lang_bpe_500/tokens.txt ./models/icefall-asr-librispeech-pruned-transducer-stateless7-streaming
-2022-12-29/test_wavs/1221-135766-0001.wav

[I] ../sherpa/cpp_api/bin/online-recognizer.cc:142:int32_t main(int32_t, char**) 2023-06-13 00:08:16.276 decoding method: modified_beam_search
[I] ../sherpa/cpp_api/online-recognizer.cc:424:void sherpa::OnlineRecognizer::OnlineRecognizerImpl::WarmUp() 2023-06-13 00:08:17.318 WarmUp begins
terminate called after throwing an instance of 'c10::Error'
  what():  Expected at most 3 argument(s) for operator 'forward', but received 4 argument(s). Declaration: forward(__torch__.zipformer.Zipformer self, Tensor x, Tensor x_lens) ->
 ((Tensor, Tensor))
Exception raised from checkAndNormalizeInputs at ../aten/src/ATen/core/function_schema_inl.h:340 (most recent call first):

I then tried another zipformer model from https://k2-fsa.github.io/sherpa/cpp/pretrained_models/online_transducer.html#icefall-asr-librispeech-streaming-zipformer-2023-05-17, which works fine.
Is it true taht sherpa does not support some zipfromer streaming architectures? If yes, can someone shed some light on how we may support them? I am interested in helping out with some guidance from the community. Thanks a lot!

Is it true taht sherpa does not support some zipfromer streaming architectures? I

No, it is not true.

The exported model in https://huggingface.co/marcoyang/icefall-libri-giga-pruned-transducer-stateless7-streaming-2023-04-04 uses an old version of icefall. If you reexport it with the latest icefall, then everything should work fine.
Will update the exported model in
https://huggingface.co/marcoyang/icefall-libri-giga-pruned-transducer-stateless7-streaming-2023-04-04

I verified that things work fine with sherpa after I re-exported the model with the latest icefall using the following command:
./pruned_transducer_stateless7_streaming_multi/export.py \
  --exp-dir ./icefall-libri-giga-pruned-transducer-stateless7-streaming-2023-04-04/exp \
  --bpe-model ./icefall-libri-giga-pruned-transducer-stateless7-streaming-2023-04-04/data/lang_bpe_500/bpe.model \
  --epoch 20 \
  --jit True \
  --avg 1 \
  --use-averaged-model False

Is it true taht sherpa does not support some zipfromer streaming architectures? I

No, it is not true.
The exported model in https://huggingface.co/marcoyang/icefall-libri-giga-pruned-transducer-stateless7-streaming-2023-04-04 uses an old version of icefall. If you re-export it with the latest icefall, then everything should work fine.
Will update the exported model in https://huggingface.co/marcoyang/icefall-libri-giga-pruned-transducer-stateless7-streaming-2023-04-04

Just updated the model
https://huggingface.co/marcoyang/icefall-libri-giga-pruned-transducer-stateless7-streaming-2023-04-04/discussions/1


yum install httpie - not working?

Help?
`# yum install httpie
CentOS-8 - AppStream                                                                                718 kB/s | 6.4 MB     00:09
CentOS-8 - Base                                                                                1.4 MB/s | 5.0 MB     00:03
CentOS-8 - Extras                                                                                2.3 kB/s | 2.1 kB     00:00
Extra Packages for Enterprise Linux 8 - x86_64                                                                               865 kB/s | 5.6 MB     00:06
No match for argument: httpie
`

same

HTTPie for CentOS is usually available in the EPEL repo:
dnf install epel-release
dnf install httpie

If the HTTPie package hasn’t been updated for the latest CentOS (as it currently seems to be the case with CentOS 8), you can still install HTTPie using pip:
pip install httpie

@jakubroztocil I want to update it in the docs.

installed using pip36 in my case works

Hi, @jakubroztocil is this problem fixed yet? I am unable to use httpie on RHEL 8.
sudo yum install httpie

No match for argument: httpie
Error: Unable to find a match: httpie

Hi,
Same issue here on CentOS 8, can't install httpie using yum.
It should be mentioned in the docs!

This worked for me:
sudo pip3 install httpie

in my case (CentOS 7)
yum install httpie
# No package httpie available.

dnf
# -bash: dnf: command not found

pip
# -bash: pip: command not found

yum install epel-release
yum update
yum install httpie
# [...]
# Complete!

http --version
# 0.9.4

The documentation has been updated to reflect all commands needed. To summarize:
yum install epel-release
yum install httpie


Cannot export plots

I am trying to understand how the exporting system works. I run the following cell in the Jupyter notebook:
import holoviews as hv
import numpy as np

hv.notebook_extension()
hv.archive.auto()

hv_im = hv.Image(np.random.randn(100, 100))
hv_im

I see a nice random image and the message:

Automatic capture is now enabled. [2017-05-15 17:07:55]

I then run
hv.archive.contents()
hv.archive.export()
hv.archive.last_export_status()

and nothing happens. I just get the message

Image.svg : image/svg+xml
Image.hvz : application/zip
Export name: '{notebook}'
Directory    '/Users/mtepper/'
If no output appears, please check holoviews.archive.last_export_status()

No directory nor files are created.
Sorry for the very basic question!

Thanks for reporting this!
What you stated should work so I'll have to test. What version of notebook are you using?

I'm running 4.3.0 (everything installed via anaconda on a macbook pro).

I'm assigning this to 1.7.1 to make sure I have a look at this soon. I'll reassign if it turns out to be a lot of work (e.g latest jupyter notebook has broken the javascript).

Something related to this issue led me here. But regarding this particular issue: For me it seems to work (notebook 4.4.1 and holoviews 1.7). I get a folder containing Image.hvz, Image.svg, index.html and index.ipynb.
My actual problem is somewhat different, though... I couldn't find any related topic anywhere, so I just ask here if you don't mind. I create a DynamicMap (for an RGB image) with two variables and accordingly two sliders. I.e. the variables change the RGB values of every pixel. Once the I chose the value of the variables via the sliders, I would like to use/be able to store the RGB values for further analysis. Is there any possiblity? If so, I would be happy to post my code so somebody could look at it.

@fvivian

For me it seems to work (notebook 4.4.1 and holoviews 1.7). I get a folder containing Image.hvz, Image.svg, index.html and index.ipynb.

That is useful to know, thanks!
As for your issue, I recommend you chat with us on our gitter channel so you can tell us more about your problem. Then we can help you out straight away or file a new issue if there is a bug we need to fix.

I'm having the exact same problem:
import holoviews as hv
import numpy as np
hv.__version__
1.7.0

hv.notebook_extension()
hv.archive.auto()

hv_im = hv.Image(np.random.randn(100, 100))
hv_im

hv.archive.contents()
hv.archive.export()
hv.archive.last_export_status()

Image.svg : image/svg+xml
Image.hvz : application/zip
Export name: 'Untitled1'
Directory    '/Users/agonzales/Dropbox/random_notebooks/aclum_mapping'

If no output appears, please check holoviews.archive.last_export_status()
Status of the last call to holoviews.archive.export is unknown.
(Re-execute this method once kernel status is idle.)

Server Information:

You are using Jupyter notebook.

The version of the notebook server is 5.0.0 and is running on:
Python 3.5.3 | packaged by conda-forge | (default, May 12 2017, 15:35:12)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)]

Current Kernel Information:

DEPRECATED: IPython.core.usage.default_gui_banner is deprecated and will be removed
Python 3.5.3 | packaged by conda-forge | (default, May 12 2017, 15:35:12)
Type "copyright", "credits" or "license" for more information.

IPython 5.1.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

@marianotepper
Using Python 2.7 and notebook 4.3.1 seems to work for me:

I got the same results after downgrading to 4.3.0. From this line:

Export name: '{notebook}'

It seems that the JavaScript failed to get the notebook name on your system. What browser are you using? I'll now test with Python 3.6 and then I'll try with the configuration described by @xysmas.

It turned out to be a Python 3 specific issue. The fix will make its way onto master as soon as the PR referenced above (#1471) is merged.

The PR mentioned above has been merged. @marianotepper @xysmas if either of you encounter this issue on current master, please tell me so I can reopen the issue.

Will let you know if I encounter any problems. Thanks!

Thank you!  I will test it out when I get a chance and report back if there are any issues.


Deeponet multi-output fix

Closes #9

Other than the doctests, the failing test cases were because the compiler because Tuple{Array{Float32, 4}, ...} would not be a subtype of Tuple{Union{Array{Float32, 3}, Array{Float32, 4}}
return type
Tuple{Array{Float32, 4}, @NamedTuple{branch::@NamedTuple{layer_1::@NamedTuple{}, layer_2::@NamedTuple{}, layer_3::@NamedTuple{}}, trunk::@NamedTuple{layer_1::@NamedTuple{}, layer_2::@NamedTuple{}, layer_3::@NamedTuple{}}, additional::@NamedTuple{}}}
does not match inferred return type
Tuple{Union{Array{Float32, 3}, Array{Float32, 4}}, @NamedTuple{branch::@NamedTuple{layer_1::@NamedTuple{}, layer_2::@NamedTuple{}, layer_3::@NamedTuple{}}, trunk::@NamedTuple{layer_1::@NamedTuple{}, layer_2::@NamedTuple{}, layer_3::@NamedTuple{}}, additional::@NamedTuple{}}}

The tests pass if I comment out the @inferred and @jet cases.

Tuple{Union{Array{Float32, 3}, Array{Float32, 4}}, @NamedTuple{branch::@NamedTuple{layer_1::@NamedTuple{}, layer_2::@NamedTuple{}, layer_3::@NamedTuple{}}, trunk::@NamedTuple{layer_1::@NamedTuple{}, layer_2::@NamedTuple{}, layer_3::@NamedTuple{}}, additional::@NamedTuple{}}}

This is bad. You are returning a 3D array / 4D array based on the input sizes (which won't be type inferred). Avoid doing the dropdims

You are returning a 3D array / 4D array based on the input sizes (which won't be type inferred). Avoid doing the dropdims

Not sure how this might be an issue because the scalar tests also have the same dropdims calling
@inline function __project(b::AbstractArray{T1, 2}, t::AbstractArray{T2, 3},
        additional::Nothing) where {T1, T2}
    # b : p x nb
    # t : p x N x nb
    b_ = reshape(b, size(b, 1), 1, size(b, 2)) # p x 1 x nb
    return dropdims(sum(b_ .* t; dims=1); dims=1) # N x nb
end

still pass the test, and Scalar II and Vector tests calling

@inline function __project(b::AbstractArray{T1, 3}, t::AbstractArray{T2, 3},
        additional::Nothing) where {T1, T2}
    # b : p x u x nb
    # t : p x N x nb
    if size(b, 2) == 1 || size(t, 2) == 1
        return sum(b .* t; dims=1) # 1 x N x nb
    else
        return __batched_mul(batched_adjoint(b), t) # u x N x b
    end
end

fail.

Only doc tests fail for now.

Rebase with the latest changes to main.

set your git config to rebase on pull instead of merge, else the commit history gets royally messed up.


Axis.X ticks are seldom shown

For 1440 X values (60 minutes * 24 hours) in the graph the X ticks are not drawn at all unless the width of the graph is at least 1332 pixels. Even then there's just one tick at 18:00 (6p.m.). Increasing graph width does not help, there's still only one tick at 18:00.
I would expect ticks at say 6:00, 12:00 and 18:00 regardless of graph width.

@joysfera That's a fair point.
Want to provide an example? Then we can go about working on a fix for this, which can use the example as a test.

 I'll get back to these graphs in a month, hopefully.


What is the query optimization logic of BucketMergeTree?

What is the query optimization logic of BucketMergeTree?
 I execute the explain sql to describe query plan.
CREATE TABLE test.test_bucket
(
    `did` String,
    `pt_d` Date,
    `oper_id` String
)

This sql just gather exchange without any Merging step. It reduces the time of MergingStep to improve performance.
explain SELECT did AS did2, count(*) FROM test.test_bucket GROUP BY did2;
┌─explain────────────────────────────────────────────────────────
│ Projection Est. ? rows
│ │     Expressions: count():=`expr#count()`, did2:=did
│ └─ Gather Exchange Est. ? rows
│    └─ Aggregating Est. ? rows
│       │     Group by: {did}
│       │     Aggregates: expr#count():=AggNull(count)()
│       └─ TableScan test.test_bucket Est. ? rows
│                Outputs: [did]

But if change did to cithHash64(did), threre are more  MergingAggregated and Repartition Exchange steps.
explain SELECT cityHash64(did) AS did2, count(*) FROM test.test_bucket GROUP BY did2;
┌─explain──────────────────────────────────────────────────────────────────
│ Projection Est. ? rows
│ │     Expressions: count():=`expr#count()`, did2:=`expr#cityHash64(did)`
│ └─ Gather Exchange Est. ? rows
│    └─ MergingAggregated Est. ? rows
│       └─ Repartition Exchange Est. ? rows
│          │     Partition by: {expr#cityHash64(did)}
│          └─ TableScan test.test_bucket Est. ? rows
│                   Outputs: [did]
│                   Expressions: expr#cityHash64(did):=cityHash64(did)
│                   Group by: {expr#cityHash64(did)}
│                   Aggregates: expr#count():=AggNull(count)()

Why this sql can't avoid MergingAggregated and Repartition Exchange steps?
What is the query optimization logic of BucketMergeTree to use bucket optimizer?

CREATE TABLE test.test_bucket
(
did String,
pt_d Date,
oper_id String
)

Could we have the full CREATE TABLE statement? This would include the ENGINE, PARTITION BY, CLUSTER BY clauses.
Also by BucketMergeTree do you mean bucket table?


Feature : Rating Apis

CRUD APIs for Consumer Ratings in IUDX Catalogue Server
External Dependencies are :

ElasticSearch
RMQ
PSQL (Immudb)

Can one of the admins verify this patch?


non-TLS HTTP requests fail

Opening a fresh issue, based on comments in #63:
On CicruitPython (since PR#4049), non-TLS HTTP requests fail:
import sys
import time
import socketpool
# import ssl
import wifi
import secrets
import adafruit_requests as requests
from secrets import secrets

wifi.radio.connect(secrets["ssid"], secrets["password"])
print("RSSI", wifi.radio.ap_info.rssi)

socket = socketpool.SocketPool(wifi.radio)
# http = requests.Session(socket, ssl.create_default_context())  # this doesn't work now for HTTP
http = requests.Session(socket)

URL = "http://wifitest.adafruit.com/testwifi/index.html"  # doesn't work
# URL = "http://httpbin.org/get"  #  doesn't work
# URL = "https://httpbin.org/get"  # works

while True:
    print("-" * 40)
    try:
        response = http.get(URL)
    except (OSError) as e:
        sys.print_exception(e)
    except (RuntimeError) as e:
        sys.print_exception(e)
    try:
        print(response.status_code, response.reason)
        trash = response.text
        trash = None
        response.close()
    except (NameError) as e:
        sys.print_exception(e)
    time.sleep(5)

results in:
        Traceback (most recent call last):
          File "code.py", line 26, in <module>
          File "code.py", line 24, in <module>
          File "/lib/adafruit_requests.py", line 597, in get
          File "/lib/adafruit_requests.py", line 560, in request
          File "/lib/adafruit_requests.py", line 429, in _get_socket
        RuntimeError: Sending request failed

It's not entirely clear to me if this is an issue with Requests or socketpool.

Now, using the build artifact from https://github.com/adafruit/circuitpython/pull/4138, the behavior is OutOfRetries, indicating that something is going wrong prior to getting the first good byte back from the socket (the "H" from "HTTP/1.1").
@Neradoc had a working manual example of HTTP without Requests on Discord, so comparing that to Requests and putting in a ton of print-debugs, looks like the issue is that Socket recv_into() returns an extra null byte at the end. So this code from Requests:
                else:
                    result = bytearray(1)
                    socket.recv_into(result)
                if result == b"H":

result is:
bytearray(b'\x00')

but adjusting it to:
                else:
                    result = bytearray(2)
                    socket.recv_into(result)

result is:
bytearray(b'H\x00')

Still not sure where the null byte comes from, and threfore what the best resolution is.

While poking around, also noticed that this block:
https://github.com/adafruit/Adafruit_CircuitPython_Requests/blob/7b1fc6fd9269318bda3996476b4ecf9fc8f37881/adafruit_requests.py#L431
            try:
                sock = self._socket_pool.socket(
                    addr_info[0], addr_info[1], addr_info[2]
                )
            except OSError:
                continue

I think has an extra parameter (there used to be three including proto, now just family and type). Doesn't seem to do any harm.
socketpool_socket_obj_t* common_hal_socketpool_socket(socketpool_socketpool_obj_t* self,     socketpool_socketpool_addressfamily_t family, socketpool_socketpool_sock_t type);

The null byte comes from the buffer being initialized with nulls and not being overwritten because recv_into reads one less byte than it should. I believe https://github.com/adafruit/circuitpython/pull/4148 fixes that.


the inference speed is much slower than  original TensorFlow  code

hi，I ran your sample code and then tested the inference time，but I find that the inference speed is much slower than  original TensorFlow  code on my computer。

hi，I ran your sample code and then tested the inference time，but I find that the inference speed is much slower than original TensorFlow code on my computer。

Hello,
Yes, this is expected because grouped convolutions in PyTorch are slow (the core devs are working on making them faster). See pytorch/pytorch#18631.

hi,  since the speed is too slow, is that can be modified the implementation from
"     self._depthwise_conv = Conv2dSamePadding(
in_channels=oup, out_channels=oup, groups=oup,  # groups makes it depthwise
kernel_size=k, stride=s, bias=False)"
to
"
self._depthwise_conv_in = Conv2dSamePadding(
in_channels=oup, out_channels=1, groups=1,  # groups makes it depthwise
kernel_size=1, stride=1, bias=False)
self._depthwise_conv = Conv2dSamePadding(
in_channels=1, out_channels=oup, groups=1,  # groups makes it depthwise
kernel_size=k, stride=s, bias=False)
"
thanks

Now with #44 you can export to ONNX. That may help in terms of inference speed, as it actually compiles a graph.

@semchan I set groups=1, and the size of the weight file changed from ～30m to ～900m. It is unacceptable.
@lukemelas The TensorRT engine file form onnx still slow than the engine file from tf model, it cost ~10ms in my task and tf model cost ~5ms. It seems the onnx graph will affect the build method of TensorRT engine file.

@xiaochus i also find pytorch model so slow. i want to speed up.
dou you have tf  model of gpu,??  official tf model is tpu, i can not use it

@qiaoyaya2011 The official tf code ,in which you can set a parameter '--use_tpu=False' ,then it will use your GPU or CPU

@freedom521jin  thanks , I will try it later today, please keep in touch

Maybe this implementation is wrong and/or there are some memory transfers across devices?

I met the same problem

https://github.com/pytorch/pytorch/issues/18631#issuecomment-798815648 might be improved with last cudnn
anyone checked if that's true?

but why is the difference when both torch and tf use cudnn?


Fixed issue with empty scope being passed throwing exception

Provide a narrative description of what you are trying to accomplish:

[X] Are you fixing a bug?

[X] Detail how the bug is invoked currently.
[X] Detail the original, incorrect behavior.
[X] Detail the new, expected behavior.
[X] Base your feature on the master branch, and submit against that branch.
[ ] Add a regression test that demonstrates the bug, and proves the fix.
[ ] Add a CHANGELOG.md entry for the fix.

When sending post request for authorisation with blank scope following error occurs:
TypeError: trim() expects parameter 1 to be string, null given in file /vendor/zendframework/zend-expressive-authentication-oauth2/src/Repository/Pdo/AbstractRepository.php on line 44
This pull request checks to see if the scope being passed is blank, returns an empty string and returns authorisation.

@sheridans thanks for your contribution. I just added a unit test for this PR. Thanks again!


Temp PR to test the fix for smart banner on iOS - Issue #8791

Since the iOS Smart banner can't be shown while running the site locally, creating this PR so that my fix can be verified on staging.
Reference: #8791 (comment)
@AndrewGable

@AndrewGable do we plan to do a quick test on staging for my proposal and revert it back after testing?

No, please comment in the issue, thanks!


Project status?

Hello!
This is a great library! I needed a way to generate pdf documents without all the system dependencies burden. You have done an amazing job with the welcoming license.
But I see the project hasn't been touched for years so I just wanted to check with you its status before I commit into using it.
Cheers,

Before using this library you have to bear in mind that it only supports the default 14 PDF fonts (it doesn't support TrueType or open type fonts) so you can only use the characters included in those fonts. Also it doesn't support transparency for PNG images (it just converts them into JPEG images internally). If you are ok with these shortcomings you'll find that this library is really easy to use and though I'm not working on new features for it, I try to give support and answer users questions as soon as I can


Fix 'modify task' sql error by casting correct type

When trying to 'modify task' and the SQL function 'create_update_task' was being called, it was throwing a sql error as two of the types were mismatched. Add cast to make these types match as expected. (Fixes #731)

Hi @krotstan! Just curious: was there a database update to go with this as well?

No database update needed.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, April 18, 2019 4:26 PM, Daniel B<EMAIL_ADDRESS>wrote:

Hi @krotstan! Just curious: was there a database update to go with this as well?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


Delete unused article

Addresses #31058
Addresses #28161

@Rick-Anderson @tdykstra @wadepickett ... Would one of you please force-merge this? This is merely an article filename/URL change for an article that's going live this morning. There's no need for a redirect on this.


No network

Both the Internet download of the game data as well as connecting to another server do not work.
The game data download reports "no DNS"
When I install the game data manually - which should be documented as well that you need to put it into
~/snap/openra/1327/.config/openra/
The lobby is empty.
Using "Direct IP" reports that it cannot connect to the local server in the same network.
How can I enable networking in the snap?

This sounds like a host issue, not openra-specific. Please try other snaps to see if they also cannot access the network. Also check that non-snapped applications can access the network.  Also try rebooting your host.
The output of snap connections openra might reveal issues with the snap interface connections which will indicate snapd has gone wonky.

Is this still an issue? I'm closing the report for now, but please reopen if you're still having trouble.


Highlight differences

It can be hard to see what the difference is between a wrong mention and its suggested correction. The bot should put transposed, inserted and replaced characters in bold in the suggested correction. In order to show the difference for deletes, it could also put affected characters in bold in the wrong username.

Implemented in commit b396d2e.


Gather some DevRel best practices (and we could create a longer list)

Closed by https://www.notion.so/meilisearch/DevRel-good-practices-4a43628c49cc4c2bbf4a0ff4562fad41 (private link)


Framework name change

Hi,
as a Portuguese developer the name of your framework is to say the least... funny...
in Portuguese Pila stands for Dick/Cock in English ;)
you can look at it at http://www.youswear.com/index.asp?word=pila#.Vz8jvZMrJE4

That's for PT-PT, on PT-BR it doesn't mean that. Except if you use "Pica".

Name Changed to Tari-PHP


Global config options / defaults

I brought this up in #18 but I think I failed to explain myself clearly (or else have misunderstood the replies), and it's more appropriate as it's own issue.
I think it would be very useful to be able to set global options / defaults.
I have many different template configs for different JSON structures I want to transform, but I want to never ignore null or undefined attributes.  Currently I believe I have to set {ignoreEmpty: false} in every template config, at every level. It would be great to be able to do something like:
json2json.defaults.ignoreEmpty = false;

or
json2json.setDefaults({ignoreEmpty: false});

so that whenever I call new json2json.ObjectTemplate(config) the resulting config will use those defaults at every level.
I would be happy to create a PR for this feature if you agree it would be useful.  (Currently I think the only real application is for the ignoreEmpty option, but maybe it's best to implement a general solution like above for flexibility and in case more relevant config options are included in the future.)

@mikejpeters this seems to make sense. Did you work on an implementation?

@mikejpeters @lpww this is merged and will be in v0.2.6


last method to test in the lib/contentful.js module

What's this PR do?
Adds a test for the mapCampaignIds method.
How should this be reviewed?

clone Gambit
Run:

npm install
npm run all-tests
👀

Checklist

[ x] Documentation added for new features/changed endpoints.
[ x] Tested on localhost.

Codecov Report

Merging #905 into develop will increase coverage by 0.56%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop     #905      +/-   ##
===========================================
+ Coverage    21.46%   22.02%   +0.56%
===========================================
  Files           24       24
  Lines         1146     1144       -2
===========================================
+ Hits           246      252       +6
+ Misses         900      892       -8

Impacted Files
Coverage Δ

lib/contentful.js
98.48% <100%> (+5.94%)
: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 65960f3...858647a. Read the comment docs.


Creating expectations with mock responses and http web hooks

This feature gives possibility to create optionally one or more web hooks for specific expectation along with prepared http response, nodejs expectation configuration example:
var httpMockResponse = {
    'httpRequest': httpRequestExpectation,
    'httpResponse': {
        'statusCode': requestConfig.http_response_code,
        'body': JSON.stringify(responseBody),
    },
    'httpWebHook': {
       'httpWebHookConfig': 'endpoints': [
           {
                'host': 'localhost',
                'port': '4567',
                'path': '/',
                'payload': JSON.stringify('{"name":"test_value"}'),
                'executionDelay': 5000,
                'executionDelayTimeUnit': 'MILLISECONDS'
           }
        ]
    }
}

mockServerClient("localhost", SERVER_PORT).mockAnyResponse(httpMockResponse);

Hi @jamesdbloom, please let me know if this feature is useful and let me know if it needs some other changes except tests) (can add them if this feature makes sense to for project)

This functionality, as I understand, already exists using the forward action.  The forward action allows a request to be forwarded to another endpoint.
In addition #120 contains a description of the dynamic method callbacks that allow local methods (i.e. closure) to be executed to generate the response.  If a local method / closure is called then the code executed in the closure could both return the response and call your webhook endpoint.
I'm not keen on merging this PR as it doesn't feel like it is consistent with the core feature set of MockServer.  Can you please explain the use cases when this would be useful?

This feature is a bit different than http forward, since it sends to specific endpoint defined in configuration payload that is different from original request payload that was passed. This is completelly configuration driven and allows sending custom responses for a given requests within configured delay. Let me briefly describe a use case which I completed in this feature:

Mock server received async request
Reuest should be processed within certain time (executionDelay)
After request is processed (for example payment settled, which usually takes some hours to be processed))
Notify with via web hook (specific endpoint from configuration) with information (payload) whether original request was processed successfully or not.

Thanks,
Valeriy