#642 - Language code for Denmark is 'da'

Ticket: https://github.com/datafaker-net/datafaker/issues/642

Codecov Report

Merging #643 (615ff87) into main (5b06228) will decrease coverage by 0.04%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main     #643      +/-   ##
============================================
- Coverage     92.73%   92.69%   -0.04%
+ Complexity     2622     2621       -1
============================================
  Files           281      281
  Lines          5396     5396
  Branches        589      589
============================================
- Hits           5004     5002       -2
- Misses          241      242       +1
- Partials        151      152       +1

Impacted Files
Coverage Δ

...ker/idnumbers/pt/br/IdNumberGeneratorPtBrUtil.java
92.59% <0.00%> (-3.71%)
:arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Cheers, looks good!


Create shaheershah313.html

Hi there i received a notification that ur repository is not oarticipating
in hacjtober fest.. Is there any other way?
On Wed, Oct 14, 2020, 9:38 AM Sulthan Nizarudin<EMAIL_ADDRESS>wrote:

Merged #202 https://github.com/SpooderManEXE/Learn-Coding/pull/202 into
master.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/SpooderManEXE/Learn-Coding/pull/202#event-3874590345,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARLPKFQFXHO6G7B427LKDSLSKUP3LANCNFSM4SO64ZOQ
.


Restore ability to build Nix from a git checkout

nixUnstable used to build Nix from a git checkout, allowing overrideAttrs to be used on it to build Nix from custom git checkouts. Recently nixUnstable has been remapped to just "nixStable" though, which does not get the source from a git checkout. Attempting to use a git checkout on the current nixUnstable fails due to it not using the right builder.
Either nixUnstable should be restored to pulling from a git checkout, or the "common" function in nix/default.nix should be exposed in some way.
https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/package-management/nix/default.nix#L138

You can still override source I believe:
nix-build -E 'with import <nixpkgs> {}; nixUnstable.overrideAttrs (o: {
  src = fetchFromGitHub {
    owner = "NixOS";
    repo = "nix";
    rev = "a6c0b773b72d4e30690e01f1f1dcffc28f2d9ea1";
    sha256 = "0i8wcblcjw3291ba6ki4llw3fgm8ylp9q52kajkyr58dih537346";
  };
  fromGit = true;
})'

That override should work but due to how the "common" attributes are constructed the "fromGit" change will have no effect. The result is the derivation missing hte "nativeBuildInputs" required.
There is still an override that works, requires adding those dependencies in manually:
nixUnstable = super.nixUnstable.overrideAttrs (oldAttrs: rec
  {
    rev = "48662d151bdf4a38670897beacea9d1bd750376a";

    src = self.fetchgit
    {
      rev = "48662d151bdf4a38670897beacea9d1bd750376a";
      url = "https://github.com/NixOS/nix.git";
      sha256 = "0avrdd5k138s2zlrwabxd60dz8jzhil0z29sdqs1g1cm5yxx83cp";
    };

    nativeBuildInputs = with self; [ autoreconfHook autoconf-archive bison flex libxml2 libxslt docbook5 docbook5_xsl pkgconfig boost ];
});

Still, the nix derivation should support overriding "fromGit" as expected.


Confluence -> 6.3.1

Tried and tested this, works fine here.

Hello and thank you for the update! For an update you need to adjust three files, please take a look at a recent pull request: https://github.com/blacklabelops/confluence/pull/23

Ah, I see. Like so?

Perfect!


Jupyter kernel cannot be started from anaconda base environment

Environment data

VS Code version: 1.29.1
Extension version (available under the Extensions sidebar): Python extension 2018.11.0
OS and version: Windows 10
Python version (& distribution if applicable, e.g. Anaconda): Python 3.7.0 & Anaconda 5.3.0
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Relevant/affected Python packages and their versions: notebook 5.6.0

Expected behaviour
run cell on base anaconda environment

Actual behaviour
i use base conda environment

when i run cell, vscode start jupyter server

then this warning pop up

it launch jupyter from tensor environment (conda environment that i created). i want it to run on base environment (default anaconda environment).
Logs
Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

Here's another thing.
when i run cell on offline mode, this error happens.

Is it bug or how vscode is designed to just run cell on online mode?

The first error is by design. Your base environment doesn't have ipykernel installed so it can't use it to start the correct kernel. Therefore it switches over to the environment that does have ipykernel installed.
The second problem I believe is a jupyter specific error. Jupyter is not supporting connecting to it without an internet connection.

Ideally the user would be informed that this specific package is the cause of failure so that they could install it.


fix gptj HCCL issue occured in DDP

What does this PR do?

Fixes # (issue)
Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[ ] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests?

Internal Error: Received signal - Aborted
terminate called after throwing an instance of 'c10::Error'
what():  Getting size for given data type is not supported: 0
Exception raised from getHCCLDataSize at /npu-stack/pytorch-integration/python_packages/habana_frameworks/torch/distributed/hccl/ProcessGroupHCCL.cpp:128 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits, std::allocator >) + 0xae (0x7f766b47f64e in /usr/local/lib/python3.10/dist-packages/torch/lib/libc10.so)
frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) + 0xf3 (0x7f766b4451f1 in /usr/local/lib/python3.10/dist-packages/torch/lib/libc10.so)
frame #2:  + 0x5877c (0x7f760649677c in /usr/local/lib/python3.10/dist-packages/habana_frameworks/torch/distributed/_hccl_C.so)
frame #3: habana_helpers::JobThread::threadFunction() + 0x11d (0x7f7604ffb3dd in /usr/local/lib/python3.10/dist-packages/habana_frameworks/torch/lib/libhabana_pytorch_plugin.so)
frame #4:  + 0xdc2b3 (0x7f76b6e312b3 in /lib/x86_64-linux-gnu/libstdc++.so.6)
frame #5:  + 0x94b43 (0x7f76b702eb43 in /lib/x86_64-linux-gnu/libc.so.6)
frame #6: clone + 0x44 (0x7f76b70bfbb4 in /lib/x86_64-linux-gnu/libc.so.6)
caused by torch.bool type in attn.bias, should change to torch.uint8

https://github.com/huggingface/transformers/blob/v4.28.1/src/transformers/models/gptj/modeling_gptj.py#L89 this line causes HCCL fail. same change in gpt2

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

@regisss please help review this

LGTM thank you! Regis is away until the 8th but I can merge if you'd like the fix to be on main already. Have you run tests to make sure this implementation is fine? It appears there is no existing test for gptj (or I missed it, in tests/utils.py).

I run DDP finetune in GPTJ and text generation case, it all works. previously it crash in DDP finetune


Alexa Helper

Hi,
This is a great app, unfortunately I am having a couple of issues and am in need of some assistance.  I have installed both the Helper and Scenario but the latter keeps disappearing from my SmartApps. When this happens is it disconnects from the Alexa and I have to create it again, repeatedly. I can't seem to keep it longer than 30 mins or so. I have also noticed that if reviewing my SmartApps on another mobile device (iOS), this app often does not show at all on the secondary device (even while functioning correctly with Alexa). I have also had an issue with the Alexa Switch, where when I used Alexa to change the volume on a Sonos device it would show, then instantly go back to the volume before the change. Even manual changes in device would result in the same issue. I was able to resolve this by going back to the previous version (Virtual Dimmer 1.1.0). Any assistance or information on something I may be doing incorrectly would be greatly appreciated, as when it is working for me it is awesome!
Best regards,
Gene

Updated:
I figured out the Alexa Helper issue, however I am still using the Virtual Dimmer to avoid the volume issue. Also, will this app support EcoBee3 or the Denon control device for volume in the future?


Infrastructure: improve cert-manager configuration

Description
This PR improves the cert-manager installation documentation, leveraging the respective Helm chart for easier configuration.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.

[x] Installing the Helm chart in the CrownLabs cluster

/rebase

/merge


[Blog] Incorporate new partner number in post & calculator & spreadsheet

Is there anything remaining to do on this? Unless there's a newer number than 48%, I think we did it.

I'm closing this as I think it's done. Feel free to re-open if I'm mistaken.


Ensure that app compile dir is added to code

It refers to #75 and should fix not importing app modules to the gradualizer_db.
Gradualizer can load deps automatically when the application starts. The paths are taken from :code, and it turns out that the app compile path could be missing there. Thus now we ensure that that app path is not missing.

Thank you for all your work. This one commit makes the warnings to be reduced to a minimum that is bearable.
I have started using Gradient as part of my QA chain.


Surrogate dashes need to be constructed from nbhy

xml2rfc generates surrogate dashes formed by sequences of hyphens.  These are then preferred as line breaking points by HTML renderers such as browsers, breaking e.g. an en-dash by half.
By constructing the surrogate dashes from nbhy characters (except for the last), this confusing effect could be avoided.
(A better solution is to use dashes for dashes, but there has been some resistance to this.)

I agree that it makes more sense to leave dashes as s in HTML and PDF.


⚠ Processors has degraded performance

In f16a921, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 1330 ms

Resolved: Processors performance has improved in 26cc4c2.


Automatic Docker Build

It would be nice if Docker Hub would be able to build a new Docker image for every push to the master branch.
I tried forking jgraph/drawio to richardbrinkman/drawio and then instructing Docker hub to automatically build an image. This unfortunately does not work since the Dockerfile resides in the /etc/docker directory. It should be copied first to the root before the build can find the various directories like src and etc that are copied to the image build process.
Is it possible to:

Move /etc/docker/Dockerfile to the root of the project
Create a Docker Hub account (jgraph) that automatically build a public image jgraph/drawio.

https://github.com/fjudith/docker-draw.io is the recommended docker image of draw.io, it's better maintained than the internal one.


vim_configurable fails to start due to Ruby relocation error

Issue description
$ vim
vim: relocation error: /nix/store/x932mdkafx2c4dzqznj7cwa6974lywr0-ruby-2.4.4/lib/libruby.so.2.4: symbol rb_obj_is_proc, version  not defined in file  with link time reference

Steps to reproduce
$ nix-shell -p vim_configurable
$ vim

Technical details

system: "x86_64-linux"
host os: Linux 4.14.38, NixOS, 18.03.132507.5f2da7f837e (Impala)
multi-user?: yes
sandbox: no
version: nix-env (Nix) 2.0
channels(vaibhavsagar): "nixpkgs-18.03.131807.489a14add9a"
channels(root): "nixos-18.03.132507.5f2da7f837e"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs

Strangely, this doesn't seem to be an issue on another laptop I'm using:

system: "x86_64-linux"
host os: Linux 4.14.42, NixOS, 18.03.132507.5f2da7f837e (Impala)
multi-user?: yes
sandbox: no
version: nix-env (Nix) 2.0.2
channels(vaibhavsagar): ""
channels(root): "nixos-18.03.132507.5f2da7f837e"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs

Seemingly fixed by removing it from my configuration.nix, nixos-rebuild switching, doing a sudo nix-collect-garbage -d, and then adding it back in and rebuilding. Not sure how this broke in the first place.


[Bug] CUSTOM_MODELS Does not work when I upgraded to v2.11.3

Bug Description
When I upgraded to v2.11.3 from v2.9.x
I found that CUSTOM_MODELS does not work, it worked on v2.9.x.
My configuration is

CUSTOM_MODELS=-all,+gpt-3.5-turbo-0125,+gpt-4-0125-preview

Steps to Reproduce

Set the environment in docker-compose.yml
Chech the model list on client.

Expected Behavior
Its supposed to show 2 models which I listed in configuration file. However, it listed all models on client.
Screenshots
Configuration:

Client model list:

Deployment Method

[X] Docker
[ ] Vercel
[ ] Server

Desktop OS
No response
Desktop Browser
No response
Desktop Browser Version
No response
Smartphone Device
No response
Smartphone OS
No response
Smartphone Browser
No response
Smartphone Browser Version
No response
Additional Logs
No response

try to open in InPrivate mode. Check whether it works.

I tried different broswer, it still doesn't work. Addtional, not only i can see the model list, but also can use it if the api key have permission.

Is it possible to use Claude 3 as a custom model?

Likely related issue, even after adding the ANTHROPIC_API_KEY the Calude-3 models don't show up in model the list.
Using: docker

Likely related issue, even after adding the ANTHROPIC_API_KEY the Calude-3 models don't show up in model the list.

how did you start the container,docker run or docker compose? Have you recreate the container after changing config?
Add ANTHROPIC_API_KEY and CUSTOM_MODELS(if you using), recreate(not restart) container, then refresh in browser.

Sorry, after adding the CUSTOM_MODELS environment variable, yes those custom models come through.
Although, I'm still not clear on how to add Anthropic's Claude-3 Haiku for instance to NextChat. I have the model open come in the GUI, however, I must be doing something wrong.
Could you provide a sample docker-compose.yml or docker run command that would add a Claude-3 model?
P.S. I was running NextChat with docker compose

I got it resolved.
Make sure to add of the following 3 environment variables to be able to use use Claude-3 (any model).

CUSTOM_MODELS
ANTHROPIC_API_KEY
ANTHROPIC_API_VERSION
ANTHROPIC_URL

Sample for anyone having issues, until the update arrived with better built in support for Claude-3

CUSTOM_MODELS="+claude-3-haiku-20240307"
ANTHROPIC_API_KEY="{your-api-key}"
ANTHROPIC_API_VERSION="2023-06-01" (currently the latest version)
ANTHROPIC_URL="https://api.anthropic.com/v1/messages"

Weird. It didn't work for me till I added the ANTHROPIC_API_VERSION.
I already had the ANTHROPIC_API_KEY, ANTHROPIC_URL and CUSTOM_MODELS, but without ANTHROPIC_API_VERSION it would fallback to GPT-3

This bug has beed fixed in v2.12.2


Encountered this error

Traceback (most recent call last):
  File "depth_fast.py", line 82, in <module>
    ftrain.fit_one_cycle(main_model, 1)
  File "/home/pranay/anaconda3/lib/python3.6/site-packages/fastai/train.py", line 22, in fit_one_cycle
    learn.fit(cyc_len, max_lr, wd=wd, callbacks=callbacks)
  File "/home/pranay/anaconda3/lib/python3.6/site-packages/fastai/basic_train.py", line 191, in fit
    callbacks=self.callbacks+callbacks)
  File "/home/pranay/anaconda3/lib/python3.6/site-packages/fastai/basic_train.py", line 92, in fit
    for xb,yb in progress_bar(data.train_dl, parent=pbar):
ValueError: too many values to unpack (expected 2)

This is unrelated to fastprogress, as it's most likely a problem with data.train_dl. Closing this here, but you can open an issue on fastai. Please include a reproducible example of the bug or we can't help and fix it.


how the fuck run

why is there dockerfile that does nothing
why is there docker-compose which also does nothing
why does run.sh just keep crashing over and over again
why does nothing work

Dockerfile is for backup, you can ignore that
Docker-compose is only if you wanna host like the postgres and the mysql and all the backup scripts and adminer and everything else, would not recommend
Run.sh is to run Nv7 Status, would not recommend unless you wanna run every Nv7haven app at once
To run:

Host a postgres DB with port 5432 (I would recommend using Docker for this)
Set MYSQL_HOST (dumb name) path variable to the address of the DB (you can use localhost or <IP_ADDRESS>)
Navigate into run/eod and do go run .

Tell me if it works

why do you have all of these projects in a single repo
On Sun, 15 Jan 2023, 18:49 Nv7, @.***> wrote:

Dockerfile is for backup, you can ignore that
Docker-compose is only if you wanna host like the postgres and the mysql
and all the backup scripts and adminer and everything else, would not
recommend
Run.sh is to run Nv7 Status, would not recommend unless you wanna run
every Nv7haven app at once
To run:

Host a postgres DB with port 5432 (I would recommend using Docker
for this)
Set MYSQL_HOST (dumb name) path variable to the address of the DB
(you can use localhost or <IP_ADDRESS>)
Navigate into run/eod and do go run .

Tell me if it works
—
Reply to this email directly, view it on GitHub
https://github.com/Nv7-GitHub/Nv7Haven/issues/133#issuecomment-1383223542,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AM4SXMCMWBGWOUZLSKGZBGLWSRBEFANCNFSM6AAAAAAT32O4FM
.
You are receiving this because you authored the thread.Message ID:
@.***>

How do you set the database up? I get errors such as no role named postgres
or no database named eod

Never mind, had to use initdb -U postgres -D data, pg_ctl -D data start and
then createdb -U postgres eod

also command stats write error pq: relation "command_stats" does not exist when keyboardinterrupt
what are relations and how do i set them up in the postgres database

Did you run the schema script? A relation just means table, and it looks like you're missing all of them

why do you have all of these projects in a single repo
…
On Sun, 15 Jan 2023, 18:49 Nv7, @.> wrote: Dockerfile is for backup, you can ignore that Docker-compose is only if you wanna host like the postgres and the mysql and all the backup scripts and adminer and everything else, would not recommend Run.sh is to run Nv7 Status, would not recommend unless you wanna run every Nv7haven app at once To run: 1. Host a postgres DB with port 5432 (I would recommend using Docker for this) 2. Set MYSQL_HOST (dumb name) path variable to the address of the DB (you can use localhost or <IP_ADDRESS>) 3. Navigate into run/eod and do go run . Tell me if it works — Reply to this email directly, view it on GitHub <#133 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM4SXMCMWBGWOUZLSKGZBGLWSRBEFANCNFSM6AAAAAAT32O4FM . You are receiving this because you authored the thread.Message ID: @.>

They all used to be compiled into one executable but a few months ago I split it up but kept the repo. Monorepo is used by tons of large companies and projects anyways

Where is the schema file

Its in the discord, char* was talking about it earlier

Why don't you add it to the repo

docker run -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=mypassword -e POSTGRES_DB=eod -e POSTGRES_HOST_AUTH_METHOD=trust -v /workspace/Nv7Haven/run/eod/data:/var/lib/postgresql/data postgres makes the data folder owned by 999 so I need sudo to do anything like ls or rm

Why don't you add it to the repo

I would have to update it every time schema changes (too lazy)

docker run -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=mypassword -e POSTGRES_DB=eod -e POSTGRES_HOST_AUTH_METHOD=trust -v /workspace/Nv7Haven/run/eod/data:/var/lib/postgresql/data postgres makes the data folder owned by 999 so I need sudo to do anything like ls or rm

You don't need to bind it with the data folder, just connect port 5432 to localhost

but like i want to save the data separately
On Tue, 17 Jan 2023, 22:09 Nv7, @.***> wrote:

docker run -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=mypassword -e
POSTGRES_DB=eod -e POSTGRES_HOST_AUTH_METHOD=trust -v
/workspace/Nv7Haven/run/eod/data:/var/lib/postgresql/data postgres makes
the data folder owned by 999 so I need sudo to do anything like ls or rm
You don't need to bind it with the data folder, just connect port 5432 to
localhost
—
Reply to this email directly, view it on GitHub
https://github.com/Nv7-GitHub/Nv7Haven/issues/133#issuecomment-1386148561,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AM4SXMCRY2LJTPQ6CM7PPDDWS4KC7ANCNFSM6AAAAAAT32O4FM
.
You are receiving this because you authored the thread.Message ID:
@.***>

Then you can mount a docker volume or save it to some other folder but the data folder is used for data within other Nv7haven apps and in the future perhaps eod
Did you get running it working?


Adding servcie for MongoDB in Mesos using marathon framework

Rancher Version: v.1.1.4
Docker Version: 1.11
OS and where are the hosts located? AWS Ubuntu 14.04
three EC2 Instances with three mesos-master containers and three mesos-slaves containers created via Rancher
Rancher Environment Type: (Cattle/Kubernetes/Swarm/Mesos) Mesos
Steps to Reproduce:
Created 3 hosts using RancherUI envorment type Mesos.
Install Marathon on Mesos through Rancher UI and able to access marathon dashboard :8080
Adding mongoDB using marathon UI with below json
{
"id": "/todo-with-mongo-marathon",
"instances": 1,
"container": {
"type": "DOCKER",
"docker": {
"image": "mongo:3.1",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 27017,
"hostPort": 0,
"servicePort": 53376,
"protocol": "tcp"
}
]
}
},
"healthChecks": [{
"protocol": "HTTP",
"portIndex": 0
}],
"ports": [0],
"cpus": 0.25,
"mem": 256.0
}
Results:
Mongo Service stays in deploying sate forever, mongo conatiner logs says - "waiting for connections on port 27017"
and automatically restarts service after few minuites.
No stdout and stderr files are generated for todo-with-mongo-marathon service.
Expected:
MongoDB should get created and should be accessible through other services

You're using a TCP health check on the MongoDB port which (AFAIK) going to work.  Change this for a TCP health check and it should get marked as healthy.

@Poogles is correct. You should try either a TCP or MESOS_TCP health check. You can also use a command check and check with mongodb's cli. @priyankaghadage Please try that and reopen if you're still running into issues.


Cookies API

Hello Everyone,
I am a newbie to Electron (Atom-shell), Was figuring out the api provided in ATOM shell. While doing mock up codes. I was unable to find any api to retrieve cookies and delete specific cookies for domain.
Am i missing something, can someone put me in a right direction.
Mac : ~/Library/Application Support/<appName>/Cookies i deleted all were gone.
windows : appData/<appName>/cookies

deletion will delete everything But is there any api to collect all Cookies and manage selective domains to delete them? or can we enable https://developer.chrome.com/extensions/cookies api
BTW, I just love the architecture and way atom is working embedding CEF and Node
Cheers!!!!!

do we have any estimated plan on embedding this?

Having cookies would be nice. The current workaround is to use electron-cookies, which implements cookies on top of localStorage.

Also possibly duplicate of https://github.com/atom/electron/issues/1142 (closed)

Thanks, Will do some mock test codes..

Is it possible, how can we do a bulk flush of data for example, getAll, removeAll, if don't know the cookie name used or loading third party websites?

@kamesh-a
You can pass an empty details to WebContents.session.cookies.get for getAll function. And once you get each cookies, you can delete it iteratively by using WebContents.session.cookies.remove API.
electron-sample-apps has provided a cookies demo.

Great thanks @hokein sample snippet worked.
var win = require('remote').getCurrentWindow();
win.webContents.session.cookies.get({}, function(error, cookies) {
if (error) throw error;
for (var i = cookies.length - 1; i >= 0; i--) {
removeCookie(cookies[i])
};
});
function removeCookie(cookie) {
var url = "http" + (cookie.secure ? "s" : "") + "://" + cookie.domain +cookie.path;
win.webContents.session.cookies.remove({
"url": url,
"name": cookie.name
},
function(error) {
if (error) throw error;
console.log('cookie delete : ', cookie);
});
}

Is it possible or allowed to persist http-only session cookies using the "persist:" flag (in webview)?
I tried the same with github and gmail. That works. Next time I load the electron app, it loads my accounts.
But I am embedding a custom web application within a web-view that uses http-only session cookies. And even with the persist flag, the session is not loaded.  Something like this in the response headers.
Set-Cookie:session=xxxxxx-xxxx-xxxx-xxxx-xxxxxxxx; HttpOnly; Path=/
When I use Chrome with the custom web app, it reuses existing session - probably storing the session cookies in some way.
I did a workaround to store the cookies post login and the pass the session cookies using "...cookies.set(...)". That works, but just wondering if there is a way do avoid this kind of coding.
(I am new to electron)

What does the sample code look like to store cookies post login @anupshinde ? Thanks!


Console.log() from page.evaluate() not working

Hello,
I'm trying to console.log() in a page.evaluate() function and it's not working...
Any solutions ?
Thank you !

It is working but it's not outputting to node environment console. Have a look at page.on('console', callback). Here is an example from docs:
page.on('console', msg => {
  for (let i = 0; i < msg.args.length; ++i)
    console.log(`${i}: ${msg.args[i]}`);
});
page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));

Hi @Nicolas-vrcc,
Take a look here: https://github.com/GoogleChrome/puppeteer#debugging-tips
You can just:
page.on('console', msg => console.log('PAGE LOG:', msg.text()));

await page.evaluate(() => console.log(`url is ${location.href}`));

everything that is run inside the page.evaluate function is done in the context of the browser page.  The script is running in the browser not in node.js so if you log it will show in the browsers console which if you are running headless you will not see.  You also can't set a node breakpoint inside the function.

you can capture it page.on('console' even in headless

@Everettss  thanks for the example, but It does not seem to work with evaluateHandle though. And neither for evaluate method in my case. Could you please explain the current case how page.on carries .log call ? Or better to read the source code for page.on ?

Page.on('console', (msg) => {}) actually fired, but the example will not work because msg.args is undefined. Inside the callback, just console.log(msg) we will see what is inside.
Actually msg is of type ConsoleMessage, which provide 3 methods args(), text(), type()
We should call these 3 methods inside the callback instead of just access them as properties.
https://pptr.dev/#?product=Puppeteer&version=v1.7.0&show=api-class-consolemessage

Just one more thing, the page.on('console', callback) should be registered before any console.log statement can be called

谢谢 @c094728  解答，如果还有问题，戳右边链接。https://guozh.net/puppeteer-page-evaluate-consolelog-not-working/

For anyone looking at this issue now, in the latest version, you'll need to do this instead:
for (let i = 0; i < msg._args.length; ++i)
    console.log(`${i}: ${msg._args[i]}`);

args has been replaced with _args

page.on('console', msg => {
for (let i = 0; i < msg._args.length; ++i)
    console.log(`${i}: ${msg._args[i]}`);
});

as referred,  @Ed-Ed @Everettss  above code does work!
Thank you guys

For the full message logs this worked for me:
page.on("console", msg => console.log("PAGE LOG:", msg));

this does not trigger for console.log() within the site which is loaded. It only triggers when using page.evaluate()

Slight improvement to @ezy's solution.  How retarded it is

in 2023 Sep, I have to use   page.on('console', (msg) => console[msg.type()]('PAGE LOG:', msg.text()));

I'm also having this problem seems to have stopped working after 21.1.1


Shrink history when logging in addition to when plotting

This patches correctly truncates convergence history so that it only contains valid values. Previously, history was only truncated when plotting (and not when logging).

Current coverage is 86.27% (diff: 100%)

Merging #97 into master will increase coverage by 0.02%

@@             master        #97   diff @@
==========================================
  Files            18         18
  Lines          1367       1384    +17
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           1179       1194    +15
- Misses          188        190     +2
  Partials          0          0

Powered by Codecov. Last update 83227bd...c131f04

Thank you, totally missed it.


Add tests for setup config settings

Write tests for crc config set, crc config get, crc config view. The settings should be reflected in the behavior of crc setup and crc start.
For instance, after crc config set skip-check-crc-network true one should see
"skip-check-crc-network": "true"

in ~/.crc/crc.json file. Hence, crc config view should display this property as set to true and crc config get skip-check-crc-network should return the same. Consequently, crc setup should skip the relevant check and crc start should not perform the check either.
Ideally, this will work for all configurable properties (see output of crc config --help).

Make sure the check fails once without the network existing... and
when skipped it should not error out of the command.
On Mon, May 6, 2019 at 5:20 PM jakub sliacan<EMAIL_ADDRESS>wrote:

Write tests for crc config set, crc config get, crc config view. The settings should be reflected in the behavior of crc setup and crc start.
For instance, after crc config set skip-check-crc-network true one should see
"skip-check-crc-network": "true"
in ~/.crc/crc.json file. Hence, crc config view should display this property as set to true and crc config get skip-check-crc-network should return the same. Consequently, crc setup should skip the relevant check and crc start should not perform the check either.
Ideally, this will work for all configurable properties (see output of crc config --help).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

--
Gerard Braad | http://gbraad.nl
[ Doing Open Source Matters ]

Fixed by #121


Getting body undefined during call external url

Hello Team,
I have created a middle ware to call external api in express.
Problem
My problem is that when i am calling url2 then i am getting body, but at the time of url1 calling i am getting undefined.
While when i am hitting these url's in browser then both showing data.
Please Help.
JS
app.get('/trainStatus2/:trainNo', function(req, res) {
function getDaysOfRunString(days){
return days;
}
let url = "";
let url2 = "";
    Request.get(url, (error, response, body) => {
            if(error) {
                return console.dir(error);
            }
        console.log(body);
    });

});

Thanks
Harsh

+1


Prepare workload driver suite for initial model training

We may need a script to run a workload driver suite based on CPE-operator tool introduced in https://github.com/sunya-ch/energy-measurement-data/tree/main/tool.
Currently, it contains only coremark, tpcc, and stressng manifests.
However, you may add any manifests for any benchmark operated by the ripsaw (benchmark operator) such as sysbench, iperf3 or by built-in k8s job controller.
The script needs to

[ ] deploy CPE operator if not exists
[ ] deploy cpe_v1_none_operator.yaml for operating  coremark
[ ] deploy ripsaw.yaml for operating stressng
[ ] deploy cpe_v1_cockroachoperator_helm.yaml for operating  tpcc
[ ] deploy all workloads at the same time or deploy each workload one by one.

Signed-off-by: Sunyanan Choochotkaew<EMAIL_ADDRESS>

For the upcoming release v0.6, we are going to use only stressng on CPE for the model training defined by @marceloamaral.

This should cover the issue https://github.com/sustainable-computing-io/kepler-model-server/issues/83.

Done by https://github.com/sustainable-computing-io/kepler-model-server/pull/161


JSONDecodeError: Expecting value

I'm trying to execute a POST call 'api/card/card-id/query/csv' with the following payload:
payload={
'dataset_query': {
'database': 2,
'native': {
'query': ' SELECT "public"."TransactionEngine_transaction"."txn_id" AS "txn_id", "public"."TransactionEngine_transaction"."actor_id" AS "actor_id", "public"."TransactionEngine_transaction"."amount" AS "amount", "public"."TransactionEngine_transaction"."approval_status_id" AS "approval_status_id", "public"."TransactionEngine_transaction"."approved_amount" AS "approved_amount", "public"."TransactionEngine_transaction"."approved_currency_amount" AS "approved_currency_amount", "public"."TransactionEngine_transaction"."approved_date" AS "approved_date", "public"."TransactionEngine_transaction"."attached_on" AS "attached_on", "public"."TransactionEngine_transaction"."auth_code" AS "auth_code", "public"."TransactionEngine_transaction"."card_id" AS "card_id", "public"."TransactionEngine_transaction"."category_id" AS "category_id", "public"."TransactionEngine_transaction"."channel" AS "channel", "public"."TransactionEngine_transaction"."city_id" AS "city_id", "public"."TransactionEngine_transaction"."comments" AS "comments", "public"."TransactionEngine_transaction"."conversion_id" AS "conversion_id", "public"."TransactionEngine_transaction"."country_id" AS "country_id", "public"."TransactionEngine_transaction"."created_on" AS "created_on", "public"."TransactionEngine_transaction"."curr_merchant_balance" AS "curr_merchant_balance", "public"."TransactionEngine_transaction"."currency" AS "currency", "public"."TransactionEngine_transaction"."currency_amount" AS "currency_amount", "public"."TransactionEngine_transaction"."currency_link_id" AS "currency_link_id", "public"."TransactionEngine_transaction"."description" AS "description", "public"."TransactionEngine_transaction"."end_date" AS "end_date", "public"."TransactionEngine_transaction"."exchangeable_parent_id" AS "exchangeable_parent_id", "public"."TransactionEngine_transaction"."exported_to" AS "exported_to", "public"."TransactionEngine_transaction"."imported" AS "imported", "public"."TransactionEngine_transaction"."is_deleted" AS "is_deleted", "public"."TransactionEngine_transaction"."is_fee" AS "is_fee", "public"."TransactionEngine_transaction"."iso_field" AS "iso_field", "public"."TransactionEngine_transaction"."limit_string" AS "limit_string", "public"."TransactionEngine_transaction"."local_txn_id" AS "local_txn_id", "public"."TransactionEngine_transaction"."mcc" AS "mcc", "public"."TransactionEngine_transaction"."merchant_id" AS "merchant_id", "public"."TransactionEngine_transaction"."merchant_txn_id" AS "merchant_txn_id", "public"."TransactionEngine_transaction"."metadata" AS "metadata", "public"."TransactionEngine_transaction"."org_id" AS "org_id", "public"."TransactionEngine_transaction"."org_wallet_id" AS "org_wallet_id", "public"."TransactionEngine_transaction"."parent_id" AS "parent_id", "public"."TransactionEngine_transaction"."payee_merchant" AS "payee_merchant", "public"."TransactionEngine_transaction"."points" AS "points", "public"."TransactionEngine_transaction"."policy_json" AS "policy_json", "public"."TransactionEngine_transaction"."pre_merchant_balance" AS "pre_merchant_balance", "public"."TransactionEngine_transaction"."prev_wallet" AS "prev_wallet", "public"."TransactionEngine_transaction"."reimbursed" AS "reimbursed", "public"."TransactionEngine_transaction"."remarks" AS "remarks", "public"."TransactionEngine_transaction"."report_id" AS "report_id", "public"."TransactionEngine_transaction"."rrn" AS "rrn", "public"."TransactionEngine_transaction"."source_id" AS "source_id", "public"."TransactionEngine_transaction"."stan" AS "stan", "public"."TransactionEngine_transaction"."start_date" AS "start_date", "public"."TransactionEngine_transaction"."status" AS "status", "public"."TransactionEngine_transaction"."txn_date" AS "txn_date", "public"."TransactionEngine_transaction"."txn_type_id" AS "txn_type_id", "public"."TransactionEngine_transaction"."updated_on" AS "updated_on", "public"."TransactionEngine_transaction"."user_id" AS "user_id", "public"."TransactionEngine_transaction"."wallet_id" AS "wallet_id" FROM "public"."TransactionEngine_transaction" WHERE CAST("public"."TransactionEngine_transaction"."approved_date" AS date) = CAST(? AS date);'},
'type': 'native',
'parameters':[]}}
The above call throws the following error:
raise JSONDecodeError("Expecting value", s, err.value) from None
JSONDecodeError: Expecting value
My goal is to download the table (card) as a csv/json file

should track why server gives "None". Can you simulate above with using curl?


Update block-legacy-authentication.md

Correcting incorrect information on how to apply filtering in the sign ins to detect legacy authentication.

@KoenZomers : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off


Running node-w3c-validator throw error

This is following error message
⠴ node-w3c-validator - processing ...undefined:1
{"messages":[{"type":"error","url":"file:/vagrant/var/export/ernaehrung_rezepte.html","lastLine":37,"lastColumn":36,"firstColumn":21,"message":"Bad value “” for attribute “action” on element “form”: Must be non-empty.","extract":"          <form action=\"\">\n     ","hiliteStart":10,"hiliteLength":16},{"type":"error","url":"file:/vagrant/var/export/ernaehrung_rezepte.html","lastLine":39,"lastColumn":68,"firstColumn":29,"message":"Any “input” descendant of a “label” element with a “for” attribute must have an ID value that matches that “for” attribute.","extract":"          <input type=\"text\" name=\"chargennummer\">\n     ","hiliteStart":10,"hiliteLength":40},{"type":"error","url":"file:/vagrant/var/export/ernaehrung_rezepte.html","lastLine":50,"lastColumn":40,"firstColumn":25,"message":"Bad value “” for attribute “action” on element “form”: Must be non-empty.","extract":"          <form action=\"\">\n     ","hiliteStart":10,"hiliteLength":16},{"type":"er

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at renderHtml (/vagrant/node_modules/node-w3c-validator/lib/render-html.js:56:22)
    at /vagrant/node_modules/node-w3c-validator/lib/validator.js:162:14
    at ChildProcess.exithandler (child_process.js:282:5)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

@forethoughtde Hi!
can you attach your "ernaehrung_rezepte.html" file? for several tests

@dutchenkoOleg There were two problems;  The first one was form element had an empty action and no method attribute and the second problem was non-exist value used in for attribute in label.

@forethoughtde I tested node-w3c-validator with this markup
<form id="test-1" action="">

</form>

<form id="test-2" action>
    Lorem ipsum
</form>

<form id="test-3" action>

        <input type="checkbox">

</form>

<form id="test-4" method="get">

        <input type="checkbox">

    Lorem ipsum

        <input type="checkbox">

</form>

and had no same error in process as yours.
Can you share part of your markup, in which you suppose problems?
Also, can you provide information:

your DOCTYPE,
charset of the testing document
and options that you used for configuration node-w3c-validator

Closed for now.
@forethoughtde feel free to re-open issue if still need


docs: Update kvstore documentation with potential circular dependency.

Current documentation does not inform about potential circular dependency between Cilium and kvstore.
This commit explains how this dependency can happen and also gives two potential ways of resolving it.
Also, bump Etcd version requirement to 3.4.0+, as previous minor releases are no longer supported.
Fixes https://github.com/cilium/cilium/issues/25632

I don't think there is any significant advantage/disadvantage between these two options.


Azure Functions Support In WSO2 APIM

Describe your problem(s)

Azure Functions Support In WSO2 APIM will be vital for users who use Azure platform.
Describe your solution

How will you implement it

Optional Fields
Related Issues:

Suggested Labels:

Suggested Assignees:

SF ID: 001E000001Lj7ek


[ENHANCEMENT] Support specify robot argumentfile for robot run

Is your enhancement request related to a problem? Please describe.
Currently, if I pick some test cases and then click the run button, it is like invoking the robot command directly only with the selected test cases. However, in most cases, we need to specify the robot command line argument such as log level, --splitlog etc,. It is very necessary for real test case debugging.
Describe the solution you'd like
Please help add an option on the vscode GUI so that I can specify an argumentfile path which I can put into all my necessary arguments.
Additional context
The equivalent argument is:
-A, --argumentfile
(https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#argument-files) from.

Hi biehl, your extension is really nice for me. I really like it. Thanks for your great work. If you could spare time to add this FR, that will be super helpful and practical which I could involve this extension to our production environment. Thanks so mucn.

There is support for adding extra arguments with the robotcode.robot.args setting, like this

or add something like this to you settings.json in the project:
"robotcode.robot.args": [
    "-A",
    "argfile.txt"
]


fix typo

while to whole

closing as it will be part of https://github.com/apache/cassandra/pull/2062


Cannot get image from camera on iPhone 5, iOS 7.2.1, Safari 7.0

Hello,
When taking a picture using iPhone 5 Camera, (iOS 7.2.1, Safari 7.0), the callback to onSelect() return without a file object on the scope. At least 5 different users with 100% repro on that issue.
Moreover, looks like the errorFiles are also empty.
I am using "angular": "~1.4.3", "ng-file-upload": "~12.0.4",
The bug doesn't repro on iPhone 5S.
Anyone else encountered the issue?
See code snippet below:
 <div
      ngf-select="onSelect()"
      ngf-before-model-change="onModelChange()"

      ng-model="file"
      name="file"
      ngf-pattern="'image/*'"
      ngf-accept="'image/*'"
      ngf-min-height="100"
      ngf-max-size="1MB"
      ngf-validate-after-resize="true"
      ngf-model-invalid="errorFiles"

      ngf-resize-if="$width > 1500 || $height > 1500"
      ngf-resize="{width: 1500, height: 1500}"

      ngf-fix-orientation="true">

Could be safari bug.

I noticed this as well.

Hello Guys, i have the same issue. I tried it with iOS 9.3 simulator on your demo-site. The camera option isnt displayed. I really need that option though. Any fixes or workarounds here to enable the camera option ?

+1


Relative paths to PS scripts on Windows machines

I'm having some issues loading a ps1 file using a relative path on a Windows machine.
When I try to add a ps1 using a direct path, such as this, everything works great:
ps.addCommand("C:/dev/powershell-electron-demo/Get-Drives", [{ ComputerName: computer }]);
But then when I try a relative path, such as this, I get an error about it not being found:
ps.addCommand("./Get-Drives", [{ ComputerName: computer }]);
I'm 100% positive my Get-Drives.ps1 is in my root folder, the same folder with my index.html and renderer.js. Everything works great with a direct path. I've tried every combination of forward slash, back slash, double slash, single periods, double periods, etc. Any ideas?

Is your script saved in the .ps1 format?  If yes can you try this more basic syntax:
 ps.addCommand(`./Get-Drives.ps1 -ComputerName ${computerName}`);

and if that doesnt work can you please share your version of node, npm, node-powershell, and Windows PowerShell?

Yes, my script is saved as Get-Drives.ps1
I tried your command and no luck. Also tried it with single quotes and double quotes.
I am using node 8.9.4, npm 5.6.0, node-powershell 3.3.0, electron 1.8.2-beta.4 and Windows 7 SP1 64bit.
Could I possibly need to add the .ps1 file to my package.json or something? Or format the file location string into a path object for PS?
I saw an earlier issue was resolved by using Shell.executionStringBuilder, but I have not been able to find out anything about this. Think its relevant?

Go to Start > Run > powershell.exe
type in:
$PSVersionTable.PSVersion

what does it say?

Here is the output for the PSVersion:
Major  Minor  Build  Revision

3      0      -1     -1
I am brand new to Powershell so I will need to do some research on the versions and on the Windows Management Framework.

Is the error about node-powershell not found?  Are you importing node-powershell into your render.js?  Could you try the CJS syntax:
const powershell = require('node-powershell');

Even better can you share your render.js in its entirety or put the project on github?

Hello, apologies for the delayed response.
I have put my whole example project (called AWMT-electron) onto GitHub.
https://github.com/AdamCankaya/AWMT-electron
It is a simple webpage with a text link to a JS function that launches a PS script called releaseIP that just calls "ipconfig /release".
On renderer.js, lines 11 and 12, you will see my issue. If I use the command on line 11, a direct path to the releaseIP.ps1 file, everything works fine. However, if I comment out line 11, and then run line 12, which tries to call "./releaseIP" then it fails. It gives an error about releaseIP not being found.

You need to add your node_modules folder to a .gitignore file so the modules do not get copied to github
Your package.json for a node project should have been initialized and should have dependencies listed.  Installing your modules with the -S flag automagically does this.

//for example:
{
  "name": "awm-app",
  "version": "1.0.0",
  "main": "main.js",
  "scripts": {
    "start": "electron ."
  },
  "dependencies": {
    "electron": "^1.8.2",
    "jquery": "^3.3.1",
    "node-powershell": "^3.3.1"
  }
}

3.Note how this package.json also uses symantic versioning (1.0 is invalid 1.0.0 is valid)
4.Note how this package.json includes a start script so I can start electron
All that stuff aside, this worked for me first try with the command on line 12 not commented-out.
To recap:
in git bash I did:
git clone https://github.com/AdamCankaya/AWMT-electron

then
 cd AWMT-electron/AWMT-app/
npm install jquery -S
npm install node-powershell -S
npm install electron -S

in visual studio code (or any text editor) I changed line 3 of package.json:
"version": "1.0.0",

and then also in a text editor in package.json I added to line 5:
"scripts": {
    "start": "electron ."
  },

and then back to my command line
npm start

and it worked the first try.  I had to ipconfig /renew just to make this comment.  I have no idea why it wouldn't work for you.

Thanks for the tips about my project setup. I will make the changes and try to duplicate your way of starting everything up. I'll report back soon.

Just wanted to report that I am having the same problem with relative paths on Windows. I too am using this within an electron project. Absolute paths work fine.
Node: v8.8.3
electron: v2.0.0
Powershell: v5.1.1
Windows 10

I have the same problem.
I have following folder structure:
https://github.com/dhuber666/Powershell-SAS-Tool
Look at the src/components/scriptsComponents Folder. Here is the .js file that starts the .ps1 file located in src/PowershellScripts
What is the correct path to start  this script AddMailboxPermissions.ps1 from the js file src/components/scriptsComponents/AddMailboxPermissions.js  ?
I tried several paths but I always get the error that it couldn't find the ps1 file.

I see you are using Electron and Webpack.  Are you sure your issue is the same as this guy's?  (His issue seemed to be setting up a basic project) or was your issue more like #49  where you make your electron build and powershell.exe cannot see the script you packed up in your asar?  Does it work in dev mode before you do your build?
If this is your issue like I told that guy you will want to copy your powershell scripts over to your production build  with a post install script.

Hi,
nope it just works when I give it the direct path like it is in the script right now:
const scriptPath = require("path").resolve('src/PowershellScripts', './AddMailboxPermissions.ps1')
But this ofc give me the full path starting at my C: etc. I need the project path. So when I build it and I put it on a network drive (so my colleagues can use it) the ps1 scripts still get loaded.
I read through the issue but I don't know why I have to copy the ps1 scripts with a gulp task.
The ps1 scripts are also in my build folder C:\Users\Huberdo\Projekte\Powershell-SAS-App\Client\builds\basic-electron-react-boilerplate-win32-x64\resources\app\src\PowershellScripts
But then the path isn't correct anymore. So I need a way that it's using the relative path. I'm not so familiar with node's path and path's in general.
I think I just need to find the right path function to get this task done. So it's always something like that:
../../PowershellScripts/AddMailboxPermissions.ps1

The paths are relative to the execution point not the Javascript file.  You would need to specify the path from the point of execution:
ps.addCommand('./path/to/my/files/AddMailboxPermissions.ps1')

even if the javascript is in that same folder.
Note that I cannot tell your point of execution as you have no typical electron startup script in your package.json.
Also note that powershell.exe cannot see inside an asar so for a production electron build of your electron app you would need a way to provide the program with the scripts.  This is a different issue from executing the script in dev mode where your project files are not compressed into an asar.
If you have more questions please specify what scripts from your package.json you are running when this doesn't work for you because different scripts will have different answers.

I have this kind of setup because I used a boilerplate from github that includes electron and react with webserver.
It's so depressing. I have the finished app working when I run it with npm run dev but when I build it, it's not working.
The closest I have gotten so far is using this:
const p1 = require('path').resolve();
const scriptPath = require('path').join(p1, 'src/PowershellScripts/AddMailboxPermissions.ps1');

This is working fine in the dev environment. But when I build it and run it I get the following error in the app:

C:\Users\Huberdo\Projekte\Powershell-SAS-App\Client\builds\basic-electron-react-boilerplate-win32-x64\src\PowershellScr ipts\GetRemoteMac.ps1 couldn't be found

But the path should be C:\Users\Huberdo\Projekte\Powershell-SAS-App\Client\builds\basic-electron-react-boilerplate-win32-x64\resources\app\src\PowershellScripts\GetRemoteMac.ps1
So I'm so confused right now why it resolves this path in the error message and not the correct one. If it would It would be working.

Webpack and React needlessly complicate such a project in my opinion.  I usually start off with https://github.com/electron/electron-quick-start
That said, your problem is universal to electron.  The electron build process does more than just copy all your files and folders over.  It also compresses it into a structure that windows cannot easily see inside of.  For that reason you need a post build script that creates a folder to hold the scripts and copies the scripts from your original source into this new folder.
You can see in my example project's package.json I have 2 scripts:
 "package-win": "electron-packager . --overwrite --asar=true --platform=win32 --arch=x64 --icon=build/adgw.ico --prune=true --out=release-builds --version-string.CompanyName='ben' --version-string.FileDescription='ADGroupWrangler' --version-string.ProductName='adgroupwrangler'",
    "post-package-win": "gulp"

First I: node package-win
then I: node post-package-win
The second script copies over my powershell with a gulp task.

Thanks again.
I will take a closer look again tomorrow and see what I can do about it. Where should I copy the powershell scripts then and which path should I take?

Closed due to lack of response


adding google api and google serp api

first, i want to say thank you so much. this is an amazing project!
i added google api and google serp option to front and back end along with .env and updated docker-compose file

Hey @foreztgump thank you for this, great addition! Can you please pull latest changes and adjust? We've merged a PR that actually adds the Tavily search API. We'd love to add Serp + Google as well. Let us know if you have any questions!
Related PR: https://github.com/assafelovic/gpt-researcher/pull/208

re-adjusted accordingly and also adjust missing api key handling so that the error is more visible in the logs

if you don't mind, I would like to add pdf scraping capability to web_scrape, specifically if arxiv.org/ links are in the list to scrape.

@foreztgump pdf scraping would be amazing. Lmk when ready to review

Ready for review. If there anything that you need me to add or change, please let me know. I saw permchain on there. Are you moving toward perrmchain?

@foreztgump added a small comment, looking very good!

@foreztgump to your question about permchain, we're planning to add several examples of how to leverage GPT Researcher with autonomous frameworks. Next will be autogen. If you're interested in leading it let us know! Love your contribution, thank you! Also please see recent pull, we've just merged another search engine as an option, so please merge it here as well.

all fixed. On your last comment, yes it would be better. I made the adjustment on that as well as the emoji. I'm not sure how it got changed there. Autogen with this would be awesome!! and I wish we have 72 hours a day. I will do my best to contribute.

Thank you @foreztgump for all your great contribution, looking forward to more! Let us know if you'd like to take a stab at autogen (if so open a starting PR), if not we'd be happy to open one. Looking forward!


Add Support for Flow's new component syntax

🔍 Search Terms
"syntax", "flow", "component", "tsx"
✅ Viability Checklist

[X] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[X] This wouldn't change the runtime behavior of existing JavaScript code
[X] This could be implemented without emitting different JS based on the types of the expressions
[X] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[X] This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
[X] This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals

⭐ Suggestion
First of all, I'd like to apologize; this request doesn't satisfy the last three viability checks. But I couldn't submit this if I didn't mark them. That said, if someone from the typescript team could at least read this proposal, I would be extremely grateful.
Recently, flow has added a new syntax to write components and hooks. For react devs, that's huge, and as someone who uses (and loves) typescript, I'd love to have something like this on TSX files too.
I understand that there are a few limitations on what can be done in typescript; for example, I don't expect typescript to check the rules of hooks and other react-specific things. I know that things like Solid and Stencil also use JSX.
To be completely blunt: I WANT SUGAR. Most influencers covering this new feature mentioned that it's extremely unlikely that Typescript will implement it. But I decided to try anyway, even if just to understand the reason.
In a more practical sense, here's what I would expect to see in a realist scenario:

The changes would only affect TSX files.
component blocks would be transpiled into function components.
hook blocks would be transpiled into functions.
Render types are nice. If I'm correct there's some arcane way of doing the same in typescript, but getting something more explicit wouldn't hurt.

📃 Motivating Example
Here's the post that explains what I'm talking about: https://medium.com/flow-type/announcing-component-syntax-b6c5285660d0
💻 Use Cases

What do you want to use this for? Pure and refined Syntax Sugar.
What shortcomings exist with current approaches? For components, there are 5-6 ways to deal with props currently, but the new component syntax has the potential to unify how things are done, reducing friction for new developers in large code bases. I recommend checking this video: https://youtu.be/HOFIefkepMA?si=i45CFr72m2GCaH5l
What workarounds are you using in the meantime? It's not impossible to write another tool that will take this syntax and output typescript, but that would be yet another tool in an already bloated web dev ecosystem.

I don't see the appeal either, but couldn't one react the same way to JSX itself? It's also a special syntax for react that has to be transpiled.

Over time, JSX has proven to quite useful for a variety of scenarios.  The React transform requires nothing more than a createElement-like function, and for other use cases there are many other popular transforms.  It's been used in React, React-like, other not-at-all-like React VDOM-based systems, and systems that emit HTML strings, raw DOM elements, and others.  Everyone wanted a reasonable template-ish syntax for making HTML-likes in Javascript, and JSX filled that need well.
By contrast, these changes are much more React-specific.  component enforces a very specific signature.  hook goes down the rabbit-hole of "the rules of hooks" as defined by React.

The component syntax's advantage does not lie in its sugar; it's more about giving code semantics and allowing stricter type checks like return type is ReactNode, parameters are readonly, etc. This benefit can trickle down to other linters like eslint-plugin-react where they can enforce proper hook calls, etc. (totally understand if TypeScript doesn't want to take on this kind of checking)

In all seriousness though, it doesn't seem that problematic to parse component as an alias for function in TSX files only under jsx: preserve (which would leave component in the emitted JSX file) or noEmit, and otherwise skip all the Meta-specific rules that Flow infers on it.
As far as I understand, their component-to-function compiler doesn't need any type annotations to do the right thing.

The biggest advantage IMO is the nicer handling of props.
currently:
function MyComponent({ text = "Hello!", onClick }: { text: string, onClick: () => void }) {
  return
{text}
;
}

what the component syntax would allow:
component MyComponent(text: string = "Hello!", onClick: () => void) {
  return
{text}
;
}

I would like to able to add a plugin to my tsconfig to have this functionality.


Welcoming contact field

Fixes #-1.
Changes proposed in this pull request:
-Helps people (like me) contribute in good faith
-Implies nothing on part of contributors
@hyakumori/maintainer

Thank you @comradekingu for your contribution. I'm not really sure why you would delete the "Code of conduct page", and I must say that I don't want to start a discussion about code of conducts. I have read too many and by adopting one that looks more or less welcoming I thought this makes everyone happy: https://www.contributor-covenant.org/faq ;-)
I also must say that I created this .github repository to get all the check-boxes of Github's community profile turn green and have the administrative part settled in a central place: https://github.com/hyakumori/.github/community
But apart from that I wanted to point out that this Hyakumori organization actually just maintains a fork of SMASH, and our goal is to make improvements available upstream: https://github.com/geopaparazzi/smash
So the proposed headline Welcome to the SMASH community is not correct in the context of this organisation.

@dkastl
Somehow I clicked around and got here. However difficult or unlikely, I think that reflects the value presented.
The green lights are clearly aliens. It helps them find places to land where they refuel on authoritarian anti-human energy-wastage.


Do you think you'd be able to support showing the difference between payloads, references, variants etc?|

akatz - I'm still of the opinion that one node = one file on disk. But any supplementary info could be viewed on the node or in the side panel like we chatted about before

colour coding node types

If a sublayer is over/define, it would be good to color/label the node differently #4


No kernel for grammar Python found

Prerequisites

[x] Have you checked the solutions in our troubleshooting guide for common problems ?
[x] Have you checked that your issue isn't already filed ?

Description
Hi, i'm sorry to bother the community but i've looked at other posts with the same issue i'm having and i've tried alot of solutions and it's not working, any help would be appreciated, thank you, sorry.
'No kernel for grammar Python found
Check that the language for this file is set in Atom, that you have a Jupyter kernel installed for it, and that you have configured the language mapping in Hydrogen preferences.
To detect your current Python install you will need to run:
python -m pip install ipykernel
python -m ipykernel install --user'
Is there something i'm missing?
Steps to Reproduce

Install hydrogen
python -m pip install ipykernel
python -m ipykernel install --user
installed packages checked below
updated the kernel
tried to run my code

Versions

OS version:
Windows 10 Home 1909

atom --version

Atom    : 1.52.0
Electron: 6.1.12
Chrome  : 76.0.3809.146
Node    : 12.4.0

apm --version

apm  2.5.2
npm  6.14.8
node 12.4.0 x64
atom 1.52.0
python
git
visual studio

Hydrogen version:

[2.14.6]
Plugins
Have you installed and activated any of the Hydrogen plugins below ?

[x] hydrogen-python
[x] Hydrogen Launcher
[x] Data Explorer

Logs
[Please post any error logs and the output of the developer tools as described in our Debugging Guide.]
Expected behavior
I would like it to run my code
Screenshots

Additional context
I'd also like to use hydrogen for my c# code and maybe others

@O-Developer Have you confirmed that Atom is installed in the same environment where your Jupyter kernels are?

@O-Developer Have you confirmed that Atom is installed in the same environment where your Jupyter kernels are?

I've managed to get c# to run, however there are some glitches with running my code (like not taking input) but python isnt working at all and is giving the above error.
I tried to install globally (without virtual enviroment)
How do i check it's installed in the same enviroment??
Sorry,
Thank you

I tried to install globally (without virtual enviroment)

Then it looks like you have it installed in the same environment since you are not using virtual envs. Do the kernels work if you connect to them from Jupyter Notebook?

I tried to install globally (without virtual enviroment)

Then it looks like you have it installed in the same environment since you are not using virtual envs. Do the kernels work if you connect to them from Jupyter Notebook?

Im sorry for the really late replies. Yes the kernels do work when i connect to them from Jupyter notebook


Vega-lite 2

Hello,
We are investigating the use of your library into the Scijava Jupyter Kernel and so I was wondering if you are planning to upgrade Vegas to the upcoming Vega-lite 2?
Thank you

Once released, certainly so. We'll want to target 'application/vnd.vega.v2+json' and 'application/vnd.vegalite.v2+json' as in https://github.com/altair-viz/altair/pull/216/files#diff-17a20b3d62216a8cb5fc9108399964ecR20

Awesome.
But do you mean Vega 3? I thought Vega-lite 2 was based on Vega 3.

Ah yeah. Today we'll support the vega.v2 and vegalite.v1 mimetypes in Jupyter frontends, and after their next release we'll support the new versions.

By the way, you might be aware but in case you don't know, Vega and Vega-lite renderers will be shipped by default in the next JLab release: https://github.com/altair-viz/jupyter_vega/issues/35 (and in the Notebook in a near future).


Applozic SDK release - version 3.7.3

code committed with Commit version
https://github.com/AppLozic/Applozic-iOS-SDK/commit/afd0a1a7881d0e76683a1ada44869eaf162b2fd5


Properly copy registers on circuit copy

Summary
Fixes #4177.
Details and comments
On QuantumCircuit.copy the registers were passed via reference and not copied. Hence changing the copied object led to changes in the original circuit.

@kdk Added 👍


error Application startup failed. Exiting. when running!

Hi there. I implemented codes example but I get this error when uvicorn runs:
  File "/home/ali/Documents/first_fastapi/venv/lib/python3.9/site-packages/starlette/routing.py", line 540, in lifespan
    async for item in self.lifespan_context(app):
  File "/home/ali/Documents/first_fastapi/venv/lib/python3.9/site-packages/starlette/routing.py", line 481, in default_lifespan
    await self.startup()
  File "/home/ali/Documents/first_fastapi/venv/lib/python3.9/site-packages/starlette/routing.py", line 516, in startup
    await handler()
  File "/home/ali/Documents/first_fastapi/venv/lib/python3.9/site-packages/fastapi_mqtt/fastmqtt.py", line 276, in startup
    await self.connection()
  File "/home/ali/Documents/first_fastapi/venv/lib/python3.9/site-packages/fastapi_mqtt/fastmqtt.py", line 128, in connection
    await self.client.connect(self.client._host,self.client._port,self.client._ssl,self.client._keepalive,version)
  File "/home/ali/Documents/first_fastapi/venv/lib/python3.9/site-packages/gmqtt/client.py", line 225, in connect
    self._connection = await self._create_connection(
  File "/home/ali/Documents/first_fastapi/venv/lib/python3.9/site-packages/gmqtt/client.py", line 241, in _create_connection
    connection = await MQTTConnection.create_connection(host, port, ssl, clean_session, keepalive)
  File "/home/ali/Documents/first_fastapi/venv/lib/python3.9/site-packages/gmqtt/mqtt/connection.py", line 27, in create_connection
    transport, protocol = await loop.create_connection(MQTTProtocol, host, port, ssl=ssl)
  File "uvloop/loop.pyx", line 2024, in create_connection
  File "uvloop/loop.pyx", line 2001, in uvloop.loop.Loop.create_connection
ConnectionRefusedError: [Errno 111] Connection refused

ERROR:    Application startup failed. Exiting.

Hi, Can you provide a code example?

I came across the same error today

same here. Looks like with the changes in asyncio, the call to loop doesn't seem to work anymore

how do you guys run applications, could you please provide code examples?

I am experiencing an application startup error as well. Using the code in the example folder and running with:
uvicorn app:app --reload
I have tried specifying different hosts and ports when running and in the MQTTConfig. Any updates on this?

I have the same bug using code from here. I'm using wsl2 with debian 11, python 3.10.3, fastapi 0.75.2 and running it with command uvicorn main:app

Has this issue been resolved?  I've noticed it with all example code provided in the documentation.
run using unvicorn and same startup method as @Gipssik

Well I don't how you run the application but I will provide the way in which I run the application and perfectly works
```docker run -it -p 1883:1883 eclipse-mosquitto  mosquitto -c /mosquitto-no-auth.conf``
Then I use the code example from the README.md file.
with uvicorn uvicorn app:app --port 8002 --reload I run the fastapi app
once I publish the topic /mqtt I can receive the message from broker to the app.

I will try to check locally again, I know that #25 error happens with gunicorn, but with uvicorn but should not be having issues. please confirm your connection, but with paho-mqtt you can check?

With latest versions, the example apps should work out-of-the-box.
Using a fresh clone and install:
git clone https://github.com/sabuhish/fastapi-mqtt.git
cd fastapi-mqtt
poetry install
poetry shell
uvicorn examples.app:app --port 8000

I'm closing this issue, as completed. Please feel free to re-open it if facing this issue again (and provide details about the used environment 🙏)


DPS calculator in equipment interface

Calculate max hit, accuracy, special attack max hit & accuracy, and DPS.
based on Bitterkoekje's spreadsheet

Seems like a reasonable MVP for this would be DPS vs whatever monster you're fighting, then another iteration would be a panel to select any monster.

I have started writing this at https://github.com/mironec/runelite/tree/plugin/dps-calculator. The problem would be scraping the wiki for all monster data and presumably creating a runelite API for that. I have just thrown this together quickly in a day or two (one godclass), but maybe people can pick it up if they like it.

I'd prefer for this to be a new panel rather than something added in the equipment interface. I feel it'd be much quicker to use dropdowns to select your gear rather than having to take gear out of the bank/buy it when you may be comparing dozens of options.

Ive built this into a web tool with all the data processing for the DPS within a REST API, once ive finished the bugs on the tool ill migrate it into a runelite plugin (should only take a day or two)
Any feedback would be greatly appreciated: https://osrs-genie.com [osrs-genie com]

Ive built this into a web tool with all the data processing for the DPS within a REST API, once ive finished the bugs on the tool ill migrate it into a runelite plugin (should only take a day or two)
Any feedback would be greatly appreciated: https://osrs-genie.com [osrs-genie com]

It looks great, only thing I don't like is how long the lazily-loaded images take to load in. Perhaps you could add a spinner or something. :)

There's an updated version of bitterkoekje's spreadsheet, btw. it's now maintained by koekenpan:
link

There's an updated version of bitterkoekje's spreadsheet, btw. it's now maintained by koekenpan:
link

Oh awesome ill go through and update any formula thats been missed!

Ive built this into a web tool with all the data processing for the DPS within a REST API, once ive finished the bugs on the tool ill migrate it into a runelite plugin (should only take a day or two)
Any feedback would be greatly appreciated: https://osrs-genie.com [osrs-genie com]

It looks great, only thing I don't like is how long the lazily-loaded images take to load in. Perhaps you could add a spinner or something. :) Also could add specs for their respective weapon as well as support PVP by using the 2nd set

Yeah i agree the original iconset dump is all PNG files so will be moving to webp and improving the UX today to resolve this :)

A DPS calculator was added the plugin hub in runelite/plugin-hub#1397


Allow deletion of bounced, declined and cancelled referees

Context
As a...candidate
I need to..delete previous references requests
So that...so that I feel in control of what’s shown

The summary card on the decoupled references review page needs delete request link for the cancelled, declined and bounced references.
Changes proposed in this pull request
cancelled

Before
After

declined

Before
After

failed

Before
After

Link to Trello card
https://trello.com/c/PlcJ384z/2242-💔-dev-delete-a-cancelled-failed-declined-request
Guidance for review
There is a subtle difference between the behaviour for this and the delete actions for the feedback_provided and not_requested_yet states. The provided and not requested states show 'Delete referee' link that goes to the  confirm_destroy view. These states show a  'Delete request' link and show the confirm_delete_request view.
Things to check

[x] This code does not rely on migrations in the same Pull Request
[x] If this code includes a migration adding or changing columns, it also backfills existing records for consistency
[x] API release notes have been updated if necessary
[x] New environment variables have been added to the Azure config

@davidgisbey Button says ‘Yes I’m sure - delete this reference_request’ (underscore in reference_request)

Good spot. Have fixed.


ci(action): Adding secret and variable display action

Adding a workflow for secret and variable display when merging a pull request into the main branch.

Lgtm!


Push Docker Image to Hub

Useful for the Server application once it works
https://github.com/marketplace/actions/build-and-push-docker-images

Is the requirement meant to make a docker image and push it to docker hub ?


Fixes the tick class to be appropriate

Checks toggleChildren and if true, .ams_group is added which means the tick mark will be an mdash. If false, it will be a checkmark, .ams_group is not set.

Looks good :)
Thank you for your PRs


Doubled feed in the dashboard and activity

Gitea version (or commit ref): 1.2.0-rc2 (fc0c6f48c7c7d3a476974a27cc9de79fa08a79e0)
Git version: <IP_ADDRESS>
Operating system: Red Hat Enterprise Linux Server release 7.3 (Maipo)
Database (use [x]):

[ ] PostgreSQL
[x] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[ ] Yes (provide example URL)
[x] No
[ ] Not relevant

Log gist:
xorm.log.txt

Description
i still get double entries in the dashboard activity on some of my repos.
INSERT INTO action is made twice for the same user_id.
related: #2455
...
Screenshots

@schast can you provide steps to reproduce that? I can not seem to get such cases

the duplicate entries only appear if the default git hook (post-receive) is set.
#!/usr/bin/env bash
"/opt/gitea/current/gitea" hook --config='/opt/gitea/current/custom/conf/app.ini' post-receive

Can you do  rewrite hooks in admin panel to see if that helps

No, rewriting hooks doesn't help.
it only helps if you remove the complete hook and leave it empty (disabled).

how do you remove it? from gitea UI (in repository settings)?

yes, under git-hooks in gitea ui repository settings.

There should be only custom hooks you need not gitea hook. Just delete it and you should be fine


Sep 28 - How to become a blockchain developer

Event Information

Category
Details

Reactor Topic
Emerging Technologies

Monthly Topic (if applicable)
Skill Up September

Weekly Topic (if applicable)
Blockchain

Stream Date
September 28, 2020

Stream Time
4pm PT

Stream Duration
60 minutes

Title
How to Become a Blockchain Developer

Description
You’ve heard that blockchain is one of the most exciting emerging technologies today and maybe you’d like to have a bigger role in its effect on the world. Join Microsoft Senior Program Manager Meaghan Lewis and Yorke Rhodes, Director of Digital Transformation and founding blockchain team member at Microsoft, as they look at a day in the life of a blockchain developer. Learn what blockchain developers do and which skills they need to succeed. You’ll explore the different types of blockchain work available and the industries where you can make the biggest impact. Bring your curiosity and your questions!

Speaker
@meaghanlewis + @yorkerhodes3

Moderator
TBD

SharePoint ID
7966

Additional Resources:

Event Checklist
10 Weeks Prior

[x] Reactor Content Team (RCT) or Speaker opens a new issue for an upcoming stream filling in the Event Information table. Both RCT and Speaker are marked as assignees.
[x] RCT and Speaker discuss details of the event in the comments of this issue. RCT adds a confirmed-event label and global-twitch-event tag to the issue and adds event to the Global Live Streams project. Issue will appear in the Upcoming Streams column
[x] Speaker adds a ready-for-marketing-edit label so the RCT can review title and description

8 Weeks Prior

[x] RCT does a review of title and description
[x] RCT moves the issue to the Ready for SharePoint column
[ ] RCT informs the Reactor Marketing Team of the new event information
[ ] RCT provides speaker with assets (e.g. slides, overlays) and the survey data for the event
[ ] RCT moves the issue to the Stream Preparation In Progress column

2 Weeks Prior (Done in /microsoft/Reactors)

[ ] Speaker opens a PR with the new content for the stream on the customer-facing Reactor repository and adds the content-development and global-twitch-event tag to the PR.
[ ] Speaker adds to the same PR a modification to the Streaming README to include their stream information.
[ ] Speaker adds the RCT assigned to the issue as the reviewer when it is ready for review/merge
[ ] RCT reviews, approves, and merges the changes

1 Week Prior

[ ] Speaker and Moderator test setup for streaming (instructions coming soon)
[ ] RCT checks in with the speaker and moves the issue to the Ready to Stream column

During and After Stream

[ ] Speaker and Moderator run the stream
[ ] RCT submits recording to be uploaded to the Reactor YouTube and to be made available on LearnTV
[ ] RCT moves issue to the Stream Complete column

@caleteeter would you also be interested in being interviewed for this stream? Or perhaps can recommend anyone else that would be interested?
The title/description will be updated slightly later on, but the main idea here is to chat with a blockchain software engineer about their experiences and skills.

@meaghanlewis sure, happy to do it.  I also wanted to loop @yorkerhodes3 in on this to contribute in terms of the interview and/or sessions.  He has been a founding member of the blockchain team here at Microsoft.  He mentioned he would be game for this as well.

Thanks @caleteeter!
@yorkerhodes3 would be great to interview you for this if you're game! Let me know.

Connected with @yorkerhodes3 offline and he agreed to co-present with me. 😄

@meaghanlewis The edited abstract is below:
How to Become a Blockchain Developer
You’ve heard that blockchain is one of the most exciting emerging technologies today and maybe you’d like to have a bigger role in its effect on the world. Join Microsoft Senior Program Manager Meaghan Lewis and Yorke Rhodes, Director of Digital Transformation and founding blockchain team member at Microsoft, as they look at a day in the life of a blockchain developer. Learn what blockchain developers do and which skills they need to succeed. You’ll explore the different types of blockchain work available and the industries where you can make the biggest impact. Bring your curiosity and your questions!

Your edit looks fantastic @KimberlyBolton1 😄

Awesome! @mebaumb Abstract is final and move to Ready for Sharepoint.

This has been published in SharePoint (7/14)

@mebaumb could you please send out a cal invite reminder for this stream for Yorke and I for 3:45-5pm? Thanks!

Sent! I am so sorry that I missed doing that somehow!

This is on Youtube, closing issue!


 At least one of those (https://github.com/mbr/tinyrpc/issues/27) is affecting pyethapp already.
This is a big liability for pyethapp because in the best case we'd end up having to monkey patch parts of tinyrpc's functionality with a fixed version, but in the worst case we might have to fork tinyrpc and maintain it ourselves.
Given that, I propose we look into alternative RPC libraries that are mature and have an active development community and pick one of them to use instead of tinyrpc.

I've spent some time looking at alternative json-rpc libraries, wrt the features we need and whether or not they're actively maintained. This is what I found:
Features of tinyrpc we depend on:

batch requests/responses
sub dispatchers (for "personal_", "web3_", etc methods)
gevent integration
wsgi transport

Other json-rpc libs
https://github.com/mbr/tinyrpc/network
No activity in two years. Lots of forks, but most with just one or two fixes, none of them emerged as the new official repo for tinyrpc. IMHO, a dead project
https://github.com/mivade/microrpc
Same as above
https://github.com/tcalmant/jsonrpclib
Doesn't seem to integrate with gevent.
https://github.com/gerold-penz/python-jsonrpc
No gevent integration
https://github.com/byaka/flaskJSONRPCServer =
Not a mature project, also seems to have been abandoned. Never had more than
one contributor, anyway
https://github.com/megous/libxr
Last commit from 2013, nothing more recent on forks either
https://github.com/pavlov99/json-rpc
Has had some activity recently, relatively mature and with a sizeable number
of contributors. However, doesn't have sub dispatchers, nor wsgi transport.

Given that, and the fact that tinyrpc has a pretty small/straightforward codebase, I believe the best alternative is to fork it and change our setup.py to use our fork. We'd still submit our fixes upstream, and if the maintainer ever reappears and cuts a new release with our fixes, we can change back to the upstream version

Just wanted to let you know that tinyrpc has a maintainer again.
So please let me know of any issues and lets resolve them.
I hope to produce a new release of tinyrpc in the next couple of weeks.


Optimize power consumption in situations with intermittent/bad connectivity

Hi,
many people, also me, are struggeling with a high battery usage of K-9 (in my case at the end of the day 36% left, and in total 20% battery usage claimed by K-9). But there was no real solution.
During time I think it's a problem with syncing with a bad or no internet connection. If my phone has a good cell connection or often WLAN, the consumption by K-9 is really low. And if the connection is bad (only EDGE, or sometimes nothing) it increases dramatically (dum-dum-dum).
So I would suggest lower timeouts for syncing and detection of a bad connection. An option I would love (maybe as workaround) would be to disable syncing with a bad connection (EDGE or GPRS).
Greetings & keep up the good work,
Flip

I've been watching the reported consumption, now.  Previously I've shut off all radios in "Airplane Mode", before I knew K-9 was the culprit.  That did NOT help.
So, it seems thus is the case, as the OP reports.
When I'm in signal/WiFi, K-9 plays nice, current-wise.  Otherwise, not so much.
For the interim, instead of shutting down the radios, when I know I won't have (good) connectivity, I'm killing the K-9 process. :-(


Add static assets after generate:page

Is your feature request related to a problem? Please describe.
It would be nice to have the ability to add static assets on the generate:page hook. So there can be files created in the static assets folder using modules for further static optimization.
Describe the solution you'd like
Currently they are being saved here: https://github.com/nuxt/nuxt.js/blob/9681a8937d0c973bc685b757faa686023a4536fc/packages/generator/src/generator.js#L344
It would be nice if they are being saved after the generate:page hook:
https://github.com/nuxt/nuxt.js/blob/9681a8937d0c973bc685b757faa686023a4536fc/packages/generator/src/generator.js#L400
And being included in the page object:
https://github.com/nuxt/nuxt.js/blob/9681a8937d0c973bc685b757faa686023a4536fc/packages/generator/src/generator.js#L392
Describe alternatives you've considered
Manually resolving the static asset path and saving the files. But this seems redudant.

Well I can think of many possibilities regarding optimization of assets per page. Which isn't possible in SSR mode due the performance impact. For instance we can "purge" the critical CSS using uncss (which really purges every unused style declaration). It would be nice in this case to save the rejected CSS into a file which will be loaded after TTI.

Well I can think of many possibilities regarding optimization of assets per page. Which isn't possible in SSR mode due the performance impact. For instance we can "purge" the critical CSS using uncss (which really purges every unused style declaration). It would be nice in this case to save the rejected CSS into a file which will be loaded after TTI.

We are approaching the Nuxt 2 EOL date (June 30, 2024) - see this article for more information. I'm closing this issue as it's marked as a Nuxt 2 related enhancement and it's not a critical issue.
That doesn't mean it might not be relevant for Nuxt 3. If it is, please feel free to open a new issue (or just comment, and I can reopen it). 🙏
Thank you for your understanding and for your contribution to Nuxt! 🎉


output certs

I have issues
Using the module with other providers is a bit awkward without the client cert and client key.

https://www.terraform.io/docs/providers/helm/
https://www.terraform.io/docs/providers/kubernetes/index.html

Unless I am just missing something.
I'm submitting a...

[ ] bug report
[x] feature request
[x] support request
[ ] kudos, thank you, warm fuzzy

What is the current behavior?
I create an EKS cluster with the module but then want to use the helm and k8s providers. terarform-aws-eks does not output the client key and client cert.
Are you able to fix this problem and submit a PR? Link here if you have already.
Yes, but would like to make sure I am just not using it incorrectly

Hi @tomdavidson!
There is no key because EKS uses the aws-iam-authenticator app. There is only the certificate-authority-data which is provided as an output already: https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/outputs.tf#L12
So, in my experience, the process is something like this:

Create an EKS cluster
Merge the kubeconfig into your own
Then you can use kubectl like normal

Then you can use those 2 providers.

You need Kubernetes client >= 1.10 to use the aws-iam-authenticator.
The official Terraform kubernetes provider is ancient and can't use EKS clusters via IAM auth.
I don't know how the helm provider works but a recent standalone helm can work with EKS via IAM auth.
This module does not create classic certificate based auth

Today saw the release of 1.3.0 of the Kubernetes provider containing the 1.10 library. In theory this means that you can now use the kube config output by this module to configure the provider. I haven't had time to test this yet myself.

Thank you for helping me understand better.