decryption failed or bad  record mac error connecting with psycopg3

From @volfco:

The driver connects but I get the following exception:

OperationalError('consuming input failed: decryption failed or bad
record mac')
Traceback (most recent call last):
File
"/home/colum/PycharmProjects/ao3_archiver/venv/lib/python3.10/site-packages/celery/app/trace.py",
line 451, in trace_task
R = retval = fun(*args, **kwargs)
File
"/home/colum/PycharmProjects/ao3_archiver/venv/lib/python3.10/site-packages/celery/app/trace.py",
line 734, in protected_call
return self.run(*args, **kwargs)
File "/home/colum/PycharmProjects/ao3_archiver/main.py", line 156,
in download_work
rs = cur.execute("SELECT ao3id FROM works WHERE ao3id = %s AND
ao3modified = %s",
File
"/home/colum/PycharmProjects/ao3_archiver/venv/lib/python3.10/site-packages/psycopg/cursor.py",
line 555, in execute
raise ex.with_traceback(None)
psycopg.OperationalError: consuming input failed: decryption failed or
bad record mac

This seems to be specific to the python psycopg3 package. I'm unable to replicate it using Intellij DB Connection, which makes me think there's some incompatibility between the client and what you guys are doing.

Bit more context. This happens in a celery worker, as the traceroute indicates.
[2022-05-28 10:41:56,554: ERROR/ForkPoolWorker-20] Task main.download_work[8f1d0540-6a5b-4feb-986c-85074dba5aa4] raised unexpected: OperationalError('consuming input failed: sslv3 alert bad record mac')
Traceback (most recent call last):
  File "/home/colum/PycharmProjects/ao3_archiver/venv/lib/python3.10/site-packages/celery/app/trace.py", line 451, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/home/colum/PycharmProjects/ao3_archiver/venv/lib/python3.10/site-packages/celery/app/trace.py", line 734, in __protected_call__
    return self.run(*args, **kwargs)
  File "/home/colum/PycharmProjects/ao3_archiver/main.py", line 156, in download_work
    cur.execute("SELECT ao3id FROM works WHERE ao3id = {} AND ao3modified = {}".format(ao3id, ao3modified))
  File "/home/colum/PycharmProjects/ao3_archiver/venv/lib/python3.10/site-packages/psycopg/cursor.py", line 555, in execute
    raise ex.with_traceback(None)
psycopg.OperationalError: consuming input failed: sslv3 alert bad record mac
[2022-05-28 10:41:56,555: ERROR/ForkPoolWorker-3] Task main.download_work[536cf923-ff6b-4706-b465-407866b9fc26] raised unexpected: OperationalError('consuming input failed: EOF detected')
Traceback (most recent call last):
  File "/home/colum/PycharmProjects/ao3_archiver/venv/lib/python3.10/site-packages/celery/app/trace.py", line 451, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/home/colum/PycharmProjects/ao3_archiver/venv/lib/python3.10/site-packages/celery/app/trace.py", line 734, in __protected_call__
    return self.run(*args, **kwargs)
  File "/home/colum/PycharmProjects/ao3_archiver/main.py", line 156, in download_work
    cur.execute("SELECT ao3id FROM works WHERE ao3id = {} AND ao3modified = {}".format(ao3id, ao3modified))
  File "/home/colum/PycharmProjects/ao3_archiver/venv/lib/python3.10/site-packages/psycopg/cursor.py", line 555, in execute
    raise ex.with_traceback(None)
psycopg.OperationalError: consuming input failed: EOF detected

Both these errors happen at the exact same time, but I'm unable to reproduce it when I'm not trying to send multiple queries concurrently.

This appears to be psycopg3 being weird, and nothing specific to Neon's implementation.

I think this is the same issue as discussed here: https://stackoverflow.com/questions/53619971/ssl-error-bad-record-mac-managing-multiple-connections-with-postgresql-and-py. In a nutshell, you cannot share the same connection across different processes. I don't know how celery works, so I'm afraid I don't know what the proper way of doing that would be.

Yeah. It seems to be an issue with the driver and not you guys.
I sometimes forget about Python's weirdness after writing a lot of Rust.


Combine with SearchableSpinner

Hey there! I would like to ask you if its possible to override the behavior of the spinner, exactly the way it acts when I click on it? I want to replace the dropdown view with SearchableListDialog from SearchableSpinner (link below).
I have my own CustomSearchableSpinner and CustomSearchableListDialog which I've made by copying the code from its repo and creating my own classes with its code.
https://goo.gl/dEydUw - SearchableSpinner repo
https://goo.gl/dYjny8 - my repo

Hi you can try to check this library: https://github.com/Chivorns/SmartMaterialSpinner.
Hope it can help what you need


How is the initial pose defined of the object ?

Rotation and translation are relative to a certain initial pose，so，how is the initial pose defined?

same question as https://github.com/yuxng/YCB_Video_toolbox/issues/11...

As per https://github.com/j96w/DenseFusion/issues/88 the canonical frame is the mesh frame.


Using multiple long-read input files, settings for Nanopore data and gzipped FASTQ input

Dear developers,
I am testing this tool on a large genome and have Nanopore data in several archives. I have a couple of questions:

Is it possible to specify more than one sequence input file or should I simply concatenate them? Currently, the program complaints if I provide more than one "ont" line in the aligned file.

My input reads are 25% between 5-10kbp; 65% 10-20kbp and 10% >20kbp. What insert sizes would you recommend to use?

I am only using reads with Nanopore QVAL>10 here. Any particular recommendation for kmer sizes?

When starting the program it reports "MULTI LINE FASTA" as input, although the data format is actually gzipped FASTQ input. Do I need to convert my fastq to fasta or does the program parse the fastq correctly and as expected?

Thanks for your tool and grateful for feedback!

Hi Andreas,
Is it possible to specify more than one sequence input file or should I simply concatenate them? Currently, the program complaints if I provide more than one "ont" line in the aligned file.
Fast-sg use a configuration file where you can specify each sequence input. An example of the configuration file is available here configuration. Prefix (second column) should be unique for each sequence input.
My input reads are 25% between 5-10kbp; 65% 10-20kbp and 10% >20kbp. What insert sizes would you recommend to use?
I recommend a spectrum of insert sizes in the range 0.5-40kb.
i.e 500,1000,2000,3000,4000,5000,6000,7000,8000,10000,15000,20000,30000,40000
I am only using reads with Nanopore QVAL>10 here. Any particular recommendation for kmer sizes?
if read identity is good (>90%), then a k-mer of 40 is recommended. Fast-SG use unique k-mers as anchors to map the long-reads, but the longer the k-mer the lower the number of long-read mapped.
When starting the program it reports "MULTI LINE FASTA" as input, although the data format is actually gzipped FASTQ input. Do I need to convert my fastq to fasta or does the program parse the fastq correctly and as expected?
No, Fast-sg employs the kseq library which supports fastq/fasta files compressed. Additionally, sequence qualities are ignored during the mapping stage.
Best,
Alex

Hi again!
A quick followup: I have generated different sets of synthetic mate pairs using k-mers of 40, 32 and 24 bp and use Scaffmatch as the downstream tool. Is there any benefit of combining these these sets, for example running scaffmatch with the 40+32 kmer sets at once?

Hi Andreas,
I have not tested the aggregation of k-mers, but might be redundant. However, if the mapping rate of the 40-mer is much lower than the 32-mer, I think you can win some additional joins by combining them.
In another thing, I have a working version of Wengan that can handle genomes larger than 4Gb. I did a test on wheat data (16Gb) and worked well. Send me a DM if you want to try it in your genome.
Best,
Alex


feat: add buffers

@Conni2461 Hey, can you check out this PR?
I actually was playing around w/ buffers this morning.
Can you tell me what you think of this?

It works great.
Just two little remarks.
Do you want only visible buffers to be listed because you are filtering for loaded buffers? Because neither fzf nor vim-clap do that.
If you have single and multi-digit buffer numbers, the aligning does not fit exactly.

If I merge this, would you be interested in adding the two features that you've mentioned? We can add an opt for not filtering out the buffers that aren't visible and we can do some text aligning as well.
I'd be happy to help you w/ those PRs if you need anything with it at all.

@Conni2461 feel free to submit PR w/ improvements.


Add Reconciler for corev1.Service

For eventing-istio we need to reconcile services. Instead of generating this reconciler on our own, we could use one from pkg.
This PR adds a reconciler for a kubernetes corev1 Service.
Changes

:gift: Add Reconciler for corev1.Service

/assign @pierDipi

/cc @pierDipi


Possible discrepency of DSD-PBEP86-D3 functional energy due to P86 correlation from libxc

It was found that DSD-PBEP86-D3 energy is somehow flawed. This is probably due to the P86 correlation from libxc. The following code reproduces P86 correlation energy of H2O molecule in cc-pVDZ with differenet backends libxc and xcfun.
from pyscf import gto, scf, dft, mp
ni_libxc = dft.numint.NumInt()
ni_xcfun = dft.numint.NumInt()
ni_xcfun.libxc = dft.xcfun

mol = gto.Mole(atom="N 0. 0. 0.; H .9 0. 0.; H 0. 1. 0.; H 0. 0. 1.1", basis="cc-pVDZ", verbose=0).build()
mf = dft.RKS(mol, xc="0.69*HF + 0.31*PBE, 0.44*P86").run()
dm = mf.make_rdm1()
ao = mf._numint.eval_ao(mol, mf.grids.coords, deriv=1)
rho = mf._numint.eval_rho(mol, ao, dm, xctype="GGA")

exc_libxc = ni_libxc.eval_xc(", P86", rho)[0]
exc_xcfun = ni_xcfun.eval_xc(", P86", rho)[0]
ep86_libxc = (rho[0] * exc_libxc * mf.grids.weights).sum();
ep86_xcfun = (rho[0] * exc_xcfun * mf.grids.weights).sum()
print(ep86_libxc)  # -0.35002424588085046
print(ep86_xcfun)  # -0.3500966288622522
print((ep86_libxc - ep86_xcfun) * 627.5 * 4.16)  # 0.19 kJ/mole

With matplotlib's plt.hist(exc_libxc - exc_xcfun), one can see many enrgy grids have diference at 1e-5 magnitude. For functional such as LYP, the error is as small as 1e-14 sometimes, which is close to machinary precision. So I guess something flaws for P86.
Further details of the DSD-PBEP86-D3 values will be presented in the coming comments.
At this stage, I'm not going to raise an issue to other softwares. Give me some time to figure out what's wrong. Suggestions are welcomed!

A code to reproduce DSD-PBEP86-D3 is to be done in conventional SCF way, so not using dh module here.
def get_energy_bDH(mol, xc_scf, c_pt2, c_os, c_ss, libxc, d3_eng):
    mf = dft.KS(mol, xc=xc_scf)
    mf.conv_tol_grad = 1e-10
    mf.grids.atom_grid = (99, 590)
    mf._numint.libxc = libxc
    mf.run()
    if not mf.converged:
        raise ValueError("SCF not converged.")
    eng_scf = mf.e_tot
    # handle SS/OS partition
    mf_pt2 = mp.MP2(mf).run()
    t2 = mf_pt2.t2
    nocc = t2.shape[0]
    e = mf.mo_energy
    d2 = (+ e[:nocc, None, None, None] + e[None, :nocc, None, None]
          - e[None, None, nocc:, None] - e[None, None, None, nocc:])
    eng_os = np.einsum("ijab, ijab, ijab ->", t2, t2, d2)
    eng_ss = eng_os - np.einsum("ijab, ijba, ijab ->", t2, t2, d2)
    eng_pt2 = c_pt2 * (c_os * eng_os + c_ss * eng_ss)
    return eng_scf + d3_eng + eng_pt2, eng_scf + d3_eng, eng_pt2

# libxc:      -56.39727349708301
print(get_energy_bDH(mol, "0.69*HF + 0.31*PBE, 0.44*P86", 1, 0.52, 0.22, dft.libxc, -0.0004626305459352599)[0])
# xcfun:      -56.39730652290776
print(get_energy_bDH(mol, "0.69*HF + 0.31*PBE, 0.44*P86", 1, 0.52, 0.22, dft.xcfun, -0.0004626305459352599)[0])
# Gaussian:   -56.397301565299
# QChem:      -56.39730178

Input card for Gaussian:
#p DSDPBEP86(Full)/cc-pVDZ Int(Grid=99590) NoSymm

NH3 DSD-PBEP86-D3(BJ) Single Point Energy

0 1
N  0.  0.  0.
H  0.9 0.  0.
H  0.  1.  0.
H  0.  0.  1.1

! Dispersion Correction: -0.0004626305    a.u.
! SCF Done Energy      : -56.3001820336   a.u.
! PT2 Corrected Energy : -56.397301565299 a.u.

Input card for QChem:
$molecule
0 1
N  0.  0.  0.
H  0.9 0.  0.
H  0.  1.  0.
H  0.  0.  1.1
$end

$rem
JOBTYPE   sp
EXCHANGE  DSD-PBEP86-D3
BASIS     cc-pVDZ
SCF_CONVERGENCE 8
XC_GRID<PHONE_NUMBER>90
$end

https://gitlab.com/libxc/libxc/-/merge_requests/311
https://gitlab.com/libxc/libxc/-/merge_requests/566
Are these two PRs from libxc related to this issue?


Add missing feature in map_reduce()

The argument scope, for example, is very useful to add extra elements in the scope of the map and reduce functions.

I only updated a rest file. How could it fail a check?

My bad your commit was pretty clear. I think I got confused between "finalize the mapreduce implementation" and "the finalize option of mapreduce is missing" :-)
I've rebased your branch and clarified the point above.


Add pagination to projects page

[ ] Add pagination similar to blog page
[ ] Add a few more example/test projects to increase page count

I would love to do this task, Please assign it to me @Knochenmark

@alammoiz assigned you. I think the styling of the pagination is currently slightly broken, maybe due to some version updates. Don't bother too much, as long as it looks like in the blog page you'll be fine.

@alammoiz assigned you. I think the styling of the pagination is currently slightly broken, maybe due to some version updates. Don't bother too much, as long as it looks like in the blog page you'll be fine.

Here is my PR
https://github.com/Knochenmark/gatsby-starter-level-2/pull/138


[Android] Not continue show banner when dismiss "one" notification banner show.

When openning an issue, please include following information for better support

What version of RN and react-native-fcm are you running? => 10.0.3
What device are you using? (e.g iOS9 emulator, Android 6 device)? => Android 7.0
Is your app running in foreground, background or not running? => when app is all state.

I don't know why when i dismiss a banner notification, another notification only show small icon on left status bar. Does it is android feature or some thing i missing? Thanks.

the small icon and the banner are the same notification. they just show up in two places.

@evollu what if i want it always show banner, how can i do it? Thanks.

you mean keep it on the top and don't disappear?

@evollu sorry if i'm not describe well. I mean:

banner show => i dismiss it (using finger, claw banner on top to dismiss it.) => Then, after that, all notification becoming not showing banner anymore, only small icon showup on tray (left-top of status bar). Does it is feature of Android or maybe i missing setup something? After all, thanks for your effort and quick response. :) Love it.

Try FCM's native example to see if you see the same behavior. It could be caused by custom OS.
are you sending remote or local notification?

i use remote notification.
I will try your suggest.
Thanks.

or try android emulator


Maybe this should get refactored to use GraalVM and be the graalphp implamentation

Hi there is at present an effort to implement graalphp i think it would be nice to have you involved if you are not aware about graalvm at present https://www.youtube.com/watch?v=8AYESZIaacg what do you think?

https://github.com/oracle/graal/issues/361

@dim-s arm support is there!
and no we need only a AST parser and a interpreter thats it
compiler gc and ecosystem comes from the graalvm compiler

https://www.graalvm.org/docs/release-notes/19_3/
there is graalvm arm64

@dim-s https://github.com/direktspeed/graalphp/issues/3 as pointed out there @abertschi
will do the main implamentation over the next 7 month as a thesis for TH Zurich i would say we both prepare to jump into that after he has finished his thesis so we can expand on that fast. What do you think=?

Now Java VM already provides GC. It's probably possible to write a translator from the current AST to AST of GraalVM. It’s still not clear how to integrate the Memory classes into the Graal VM (https://github.com/jphp-group/jphp/blob/master/jphp-runtime/src/php/runtime/Memory.java).  These classes are the main element of the jphp runtime and many extensions use them.
We need to figure out how to implement support for Java VM and Grail VM without breaking backward compatibility.

will do the main implamentation over the next 7 month as a thesis for TH Zurich i would say we both prepare to jump into that after he has finished his thesis so we can expand on that fast. What do you think=?

I will be happy for your help in the development of the project.

@dim-s jump into https://github.com/direktspeed/trufflephp/blob/master/language/src/main/java/kis/phpparser/truffle/PHPNodes.java
:dancing_men:

@frank-dspeed Have you compared performance with the latest version of php (7.4+)?

its is far from beeing complet it is only for your education the frind from ETH Zurich will do a far more complet implamentation but good new is we do not need the memory managment stuff :)

and other frameworks like JRUBY also did the transfer to graal without problems overall its a matter of time but because performance there is a .pdf in the repo root open it it got benchmarks in it do not fear the chineese lang

@dim-s https://github.com/abertschi/graalphp is out of thesis phase and reaches in the "benchmark game" up to 854% compared to the standard php implementation


Making Session Management More Usable

Right now, this library initializes its own session stuff as req.session. This is a problem for many people, as most node libraries initialize their own session stuff under the same name -- this causes issues.
What I'd like to do is migrate all Stormpath session stuff to req.stormpathSession, this way there will be no chance of conflict for non-auth related sessions.
I've got about 99% of this code ready to ship, but the CSURF library doesn't currently support anything other than req.session, which is a blocker for this.
I've opened a ticket on the CSURF library page: https://github.com/expressjs/csurf/issues/66
If the author gives me the go ahead, I'll submit a PR to their project, and then once released, push the changes into this library.

My PR is finished for the CSURF library, it can be found here: https://github.com/expressjs/csurf/pull/67
Once this is merged in and released, I'll update our csurf dependencies here, and cut a new release with the above fixes included.

All merged, cut, and released!


Have the API return null instead of a placeholder when an image is missing

What I'm trying to achieve
There's no reason the backend server should decide how to handle a missing image and what image would fit as a placeholder if a placeholder is needed.
Describe a proposed solution
Have the GraphQL API return null when no image is present instead of falling back to a placeholder image.

Can I take this up? This will be my first time in GraphQL so hopefully you can be patient with me. =)

Absolutely, feel free to take it. Let us know if you need any help. Good luck 👍

For starters which API's are currently returning placeholder images?

Thumbnail fields return placeholders.
An example:
{
  products(first: 10) {
    edges {
      node {
        id
        name
        thumbnail {
          url
        }
      }
    }
  }
}

@bogdal
I've been looking into the code base for a while and I think this is the place where you'd like the changes to be made: https://github.com/mirumee/saleor/blob/master/saleor/graphql/product/types/products.py#L515
Because there's a chance that we might get nothing back from this:
https://github.com/mirumee/saleor/blob/master/saleor/product/models.py#L341
Please let me know if I'm on the right track and apologies for taking so long with this.

The issue is already fixed - see PR #4812.


Tests

This looks great but it's hard to know that it's reliable without a test suite. Possible to write some automated tests? Thanks!

I agree :)
We run millions of pages per day through prerender so it's reliable, but test coverage and code cleanup would go a long way for improving the project. I don't have the time right now but would love to do this sometime in the future.
I'll leave this issue open.


add toggle for drawing player combat levels in player indicators plugin

Add the option to either draw a player's combat level next to their name or draw the player's combat only.
Addresses issue #6567, without the ability to see which players you can attack in the wilderness since I believe that would be rejected.

It would be a bit strange to draw the combat level as (123) instead of 123 if the player name drawing was disabled. Could that be handled in this PR?

Resolved suggested changes.

I dont think so @Adam-


add pvlib to conda-forge

conda-forge is "A community led collection of recipes, build infrastructure and distributions for the conda package manager."
https://conda-forge.github.io
The main advantage, from my perspective, is that it automates the process of building and uploading new conda packages for each release. It also enforces and automates some build quality control that I'm only manually doing halfheartedly.

https://www.continuum.io/blog/developer-blog/community-conda-forge

I started a "staged recipe": conda-forge/staged-recipes#616

We're now on conda forge and you can install the package using conda install pvlib-python -c conda-forge or similar.
https://github.com/conda-forge/pvlib-python-feedstock
Note that the package name is pvlib-python, which is different from our own anaconda channel's pvlib. This happened by accident and we need to standardize it. Does anyone care? I prefer the sorter pvlib.
More on why conda-forge is probably a good idea: http://wesmckinney.com/blog/conda-forge-centos-moment/

Should have closed this awhile ago. Added a note in 6a43bcd


vscode-extensions.matklad.rust-analyzer: fix build

Motivation for this change
Fix #89286
Things done

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

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

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

Included in #89649


The filename, directory name, or volume label syntax is incorrect.

Hi I have a fairly simple project configuration. When using:
- name: use this action, test solution dir
  uses: zyborg/dotnet-tests-report@v1
  if: always()
  with:
    report_name: my_project_tests
    report_title: My Project Tests
    github_token: ${{ secrets.GITHUB_TOKEN }}

it appends for some reason the WorkSpace path twice.

Duplicate of #11

I just published a new release that tries an alternate approach to computing the directory path -- can you give it a try and see if it fixes the issue for you?


Layout: gutter sizes are prohibitive and cause overflow

Expected behavior
The layout grid is fluid and adjusts well to all screen sizes
Actual behavior
At particular screen sizes, and partially dependent on the content of a given column, the layout overflows the screen.
Steps to reproduce the issue

Visit the layout story
Place the Actions panel on the right
Drag the panel to be wider, narrowing the area with the layout
Observe the layout eventually stops shrinking and overflows its portion of the screen

Screenshots or code

Pharos version
11.0.0
Your environment

OS: macOS
Browser: Chrome, Firefox, likely all
Version: Likely all

Additional information
We likely want to use either smaller or fluid gutter sizes on smaller screens. Because real estate becomes precious, even a 20px gutter in a 4-column layout on a 360px screen will steal (20px * 3) / (360px) = 1/6th of the screen.

Some inspiration from Brad Frost.

We likely need to revisit this and re-develop a holistic point of view on how we handle layout systemically on the platform.

Design (product & labs) have investigated the referenced gridless design systems recommended by Brad Frost. We agree that this approach would eliminate the current issues we are experiencing with grids.
Design will need to create a new series of objects for the UI toolkit that will replace the current grid system. We are observing that Figma's new capabilities (e.g. setting min/max of frames; and wrapping of items within a frame) will support this work.


Email/password is wrong.

At about 2:30PM on Sunday May 22nd my integration stopped working.  I have since tried to restart home assistant multiple times with no luck.  I have now deleted the integration and am trying to readd it.  However, when I enter my email address and password during the configuration I get "Email/password is wrong."  I had just logged into the Duke website with that username/password so I know it is good.  I went ahead and reset my duke password and tried with the new password combination.  I still get "Email/password is wrong".  Below is the error log from before I removed the integration.  Any assistance would be greatly appreciated.  Thank you.
This error originated from a custom integration.
Logger: homeassistant.config_entries
Source: custom_components/duke_energy_gateway/init.py:54
Integration: Duke Energy Gateway (documentation, issues)
First occurred: 7:17:01 AM (1 occurrences)
Last logged: 7:17:01 AM
Error setting up entry (redacted) for duke_energy_gateway
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pyduke_energy/client.py", line 425, in _async_request
resp.raise_for_status()
File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1004, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 500, message='Internal Server Error', url=URL('https://cust-api.duke-energy.com/gep/v2/auth/oauth2/token')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/duke_energy_gateway/init.py", line 54, in async_setup_entry
selected_meter, selected_gateway = await client.select_default_meter()
File "/usr/local/lib/python3.9/site-packages/pyduke_energy/client.py", line 159, in select_default_meter
account_list = await self.get_account_list()
File "/usr/local/lib/python3.9/site-packages/pyduke_energy/client.py", line 99, in get_account_list
headers = await self._get_oauth_headers()
File "/usr/local/lib/python3.9/site-packages/pyduke_energy/client.py", line 343, in _get_oauth_headers
await self._oauth_login()
File "/usr/local/lib/python3.9/site-packages/pyduke_energy/client.py", line 327, in _oauth_login
resp = await self._async_request(
File "/usr/local/lib/python3.9/site-packages/pyduke_energy/client.py", line 435, in _async_request
raise RequestError(
pyduke_energy.errors.RequestError: Request failed with unexpected error [https://cust-api.duke-energy.com/gep/v2/auth/oauth2/token]: (ClientResponseError) 500, message='Internal Server Error', url=URL('https://cust-api.duke-energy.com/gep/v2/auth/oauth2/token')

I just pushed version 1.0.1 of the HACS integration and it has fixed the issue for me. You can update it via the HACS UI.
If it doesn't show an update, you can force a check using this button


fix(opensearch): Sorted the global search results in descending order

Type of Change

[x] Bugfix
[ ] New feature
[x] Enhancement
[ ] Refactoring
[ ] Dependency updates
[ ] Documentation
[ ] CI/CD

Description

When searching using global search, the results are not sorted. Sorted the results now in newest to oldest order.
Additional Changes

[ ] This PR modifies the API contract
[ ] This PR modifies the database schema
[ ] This PR modifies application configuration/environment variables

Motivation and Context

Enhance search experience by listing the results in newest to oldest order.
How did you test it?

Hit the /search API

curl --location 'http://localhost:8080/analytics/v1/search' \
--header 'Accept: */*' \
--header 'Accept-Language: en-US,en;q=0.9' \
--header 'Connection: keep-alive' \
--header 'Content-Type: application/json' \
--header 'Origin: http://localhost:9000' \
--header 'Referer: http://localhost:9000/' \
--header 'Sec-Fetch-Dest: empty' \
--header 'Sec-Fetch-Mode: cors' \
--header 'Sec-Fetch-Site: same-site' \
--header 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36' \
--header 'api-key: hyperswitch' \
--header 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiYjc2ZDVmZjMtNGI1ZS00OTMyLTk1ZDItNmE3MTEyZWZiNTNlIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzIxODE1MjkwIiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTcyMzc4ODI2OSwib3JnX2lkIjoib3JnX3VFNk1LbExxalU5MWlGUEVGck1rIiwicHJvZmlsZV9pZCI6bnVsbH0.AFuIb8uXW92J7V_0-nbPCHLDnl-l4CxSjBYIZNoW5KE' \
--header 'sec-ch-ua: "Not/A)Brand";v="8", "Chromium";v="126", "Google Chrome";v="126"' \
--header 'sec-ch-ua-mobile: ?0' \
--header 'sec-ch-ua-platform: "macOS"' \
--data-raw '{
    "query": "usd",
    "filters": {
        "customer_email" : [
<EMAIL_ADDRESS>        ]

    },
    "timeRange": {
        "startTime": "2024-08-14T00:30:00Z",
        "endTime": "2024-08-14T18:45:00Z"
    }
}'

Results should now appear sorted in descending order

Checklist

[x] I formatted the code cargo +nightly fmt --all
[x] I addressed lints thrown by cargo clippy
[x] I reviewed the submitted code
[ ] I added unit tests for my changes where possible

Can you please add a screenshot of the resultant data from search API


Rotate matrix by 90 degree

Have you read the Contributing Guidelines on Pull Requests?
Yes
Description
Code in both C++ and Python is written by me
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests
#346

Please review sir @HarshCasper @iamrajiv @ankitaggarwal23 @atarax665 @gat786 @nidh-ish


⚠ Bofrost.be has degraded performance

In 8ecdfef, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 2105 ms

Resolved: Bofrost.be performance has improved in 0ccac57 after 1 hour, 6 minutes.


Request to expose __to_local() to HIP kernels

This is a follow-on to this HCC bug report. A quick summary: when a customer attempted to use inline assembly to write a ds_read_b32 instruction in a HIP program, the compilation would fail because the pointer to shared memory region is 64-bits, but the input to the ds_read_b32 instruction is 32-bits.
@scchan recommended using the __to_local() operator around the input pointer, and this worked. However, this requires defining the __to_local() operator somewhere in the program.
Would it be possible to make this operator available to HIP kernels in the general case, so that users don't need to know the magic __attribute__((address_space(3)) definition? e.g. if the local address space changes from address_space(3) in a future compiler revision, user programs would break if they have to define it themselves to use the __to_local() fix mentioned in that bug report.
Thanks!

Closing the ticket since _to_local() is not part of master branch.


add a pkg-config file and install the shared lib and its headers

As libchdr is gaining popularity within the libretro community, it would be nice to be able to install it to the system and use it as a shared lib.
This installs the library, its headers and a pkg-config file as well as sets a version.
You may want to set the version to something other than 0.0 if you go along with this. Also, not sure how many headers are needed but the few libretro cores I've looked at only imported chd.h.

And the first core I try to build with vanilla libchdr has modifications...
Is that something that would make sense to backport? https://github.com/libretro/beetle-psx-libretro/commit/ee40afa0ca01f5d501277c64ec9cafcf19539c70

From the perspective of a user, yes. Precaching is something useful for every disc-based system, especially on devices plagued by low read speeds with enough memory to allow it. That said, I don't know if there are any concerns with integrating that into the base version.

@Sanaki I'm open to such enhancements as far as it does not break CHD compatibility with MAME.
The one @alucryd is mentioning is worth integrating if tested and well working.
Feel free to submit PR, I feel it would easy libretro (and others) integration to have a standard CHD read library instead of various libchdr forks I've seen floating around.

Thanks for the feedback, I opened a second PR for the precache stuff. https://github.com/rtissera/libchdr/pull/22

If you can continue hunting down various downstream forks and fixes I would be grateful.
I know flyinghead fixed some alignment issues on 64-bit platforms I merged.
I have seen some weird hacks into libretro-common repository which basically kind of rewrote libchdr with custom I/O interface, but since libretro-common repository seems copied/paste in each repo instead of being used as submodule it's hard to track....

Sure thing. I plan on having a look at all the cores I maintain in the Arch Linux repositories. Would be great if you could tag a stable release at some point, packaging git heads is somewhat frowned upon over at Arch Linux.

Sure, I will think about moving on stable release soon.
Good luck with the cores...
On Thu, Jun 4, 2020 at 2:13 PM Maxime Gauduin<EMAIL_ADDRESS>wrote:

Sure thing. I plan on having a look at all the cores I maintain in the
Arch Linux repositories. Would be great if you could tag a stable release
at some point, packaging git heads is somewhat frowned upon over at Arch
Linux.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/rtissera/libchdr/pull/21#issuecomment-638809780, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAW4WBP55LCZSNZZUJ5WZ43RU6FYHANCNFSM4NQ5PMLQ
.


feat: less mem per entry in the string table

What does this PR do?
This uses a Box<str> instead of String, saving 1 usize per entry. When it's serialized to pprof proto, it gets encoded directly without allocating a temporary String.
Motivation
I'm working on reducing memory and CPU overhead of profiles and noticed this pretty cheap reduction in memory.
Additional Notes
This currently is waiting on a PR in prost to expose the needed function to directly encode AsRef<str> instead of &String. This part enables future optimizations like using a memory arena for string table data.
PROF-9125
How to test the change?
Test the same as usual, public API should be the same.
For Reviewers

[ ] If this PR touches code that signs or publishes builds or packages, or handles credentials of any kind, I've requested a review from @DataDog/security-design-and-guidance.
[x] This PR doesn't touch any of that.

Nice! :D


Shareable resources

An ability for users to publicly share their:

Gardens
Sequences
Regimens?
???

How it could work
In a sequence header or on a garden details panel, add a SHARE button. Clicking the button could open a popup with a toggle switch to turn on sharing. Once sharing is turned on, the popup shows two sharing options:

Share via link - this provides a unique link to send to others (in a support email) or post somewhere, such as the forum. Maybe something in the format: my.farm.bot/app/sequences/shared/83jv7d3kiy0

If another (logged in) user clicks this link, the app would open to the sequences page, with the shared sequence loaded in the editor. There could be some banner up in the sequence header indicating that the sequence is a shared sequence, and all editing would be disabled. There could be a button to SAVE A COPY which would save a copy of the shared sequence to the account for modification/use.
If a logged out user clicked the link, a lightweight version of the app could be loaded to display the sequence with no editing allowed, and no other controls/page elements/nav. Maybe just a button to LOGIN TO SAVE A COPY

Embed - this would provide an iframe (or oEmbed?) embed code that could be pasted into documentation, blog posts, the forum, etc. The embed content would be a lightweight version of the app to display the shared resource, without editing/nav capabilities. Maybe add a button to OPEN IN APP.

Dependencies
An obvious problem with saving a copy of someone else's sequence is that the sequence will likely have dependencies (tools, plants, groups, subsequences) that the new account doesn't have. While a saved sequence without dependencies might not be that useful, I think the amount of work and potential consequences of saving with dependencies is too much.

Saving with dependencies could become a total mess - it could create a ton of subsequences or plants that the user didn't have visibility to prior to saving the top-level resource.
Users sharing their sequences might not want subsequences and their whole garden to be revealed by sharing the top-level resource. I suppose there could be an extra control put in place on the resource author's end, but that sounds messy and could still expose users to unintended amounts of data leaking if they forgot sharing was on and later modified the sequence, or they didn't wholly understand what dependencies were at stake.

A middle-ground idea is to make a copy of the sequence without dependencies, but display the original author's dependency names to be used as a blueprint for the new user to "re-wire" the sequence with their own dependencies in order to fully save it. Something like:

What are other thoughts, concerns, potential gotchyas?

(Opps- accidentally pressed close button)
@roryaronson I think you've addressed the big concerns. The sub-resources will be tricky to manage in a way that is intuitive to end users and some resources will be easier to share than others.


run VSD the same way as searchstims: not multi-label

training should "prompt" network with class and output should be present / absent

documenting alternatives in #52 but I think using just softmax actually could be okay based on this paper:
https://arxiv.org/pdf/1612.03663.pdf
they specifically use Pascal VOC (so I can cite it)

done, closing


Source maps does not work

Please provide us with the following information:

OS?  Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
OSX El Captain, Windows 7
Versions. Please run ng --version. If there's nothing outputted, please run
in a Terminal: node --version and paste the result here:

latest master

Repro steps. Was this an app that wasn't created using the CLI? What change did you
do on your code? etc.

https://github.com/mmrath/cli-proxy-test.git
Keep break points in app.component.ts from chrome. Chrome does not stop on the right place.

The log given by the failure. Normally this include a stack trace and some
more information.
Mention any other details that might be useful.

Thanks! We'll be in touch soon.

@TheLarkInn should your sourcemap solution have fixed this scenario?

This is a chrome issue I believe @mmrath can you do me a favor and try this in Chrome Canary just to make sure it's the issue I believe it is.

@TheLarkInn I tried it in Chrome Canary, the behaviour is same. It still does not work.

This could be related to https://github.com/webpack/webpack/issues/2145

Yup that was the issue I was looking for. I will be speaking with a few folks from Chrome next week (in the context of that issue and other stuff). I'll make sure to keep track of this and update accordingly.

I can confirm this, having the same issue.
It only debugs if i add a debugger; in my code ;)

@TheLarkInn Does not look like this issue is resolved. I have seen the commit #1659 . I took the latest master and created a new project added material2. Now ng serve is failing.
If I change to  'cheap-module-source-map' from 'source-map', ng serve is OK, but debugging does not work.
Sample repo to reproduce is at https://github.com/mmrath/test-cli-source-map.git
ng serve throws the following error with latest master. I see the same error even on osx
TypeError: Cannot read property 'substr' of undefined
at Function. (C:\Projects\angular-cli\node_modules\webpack-sources\node_modules\source-map\lib\source-node.js:95:30)
at Array.forEach (native)
at SourceMapConsumer_eachMapping [as eachMapping] (C:\Projects\angular-cli\node_modules\webpack-sources\node_modules\source-map\lib\source-map-consumer.js:155:14)
at Function.SourceNode_fromStringWithSourceMap [as fromStringWithSourceMap] (C:\Projects\angular-cli\node_modules\webpack-sources\node_modules\source-map\lib\source-node.js:80:24)
at SourceMapSource.node (C:\Projects\angular-cli\node_modules\webpack-sources\lib\SourceMapSource.js:42:20)
at ReplaceSource.node (C:\Projects\angular-cli\node_modules\webpack-sources\lib\ReplaceSource.js:66:29)
at CachedSource.node (C:\Projects\angular-cli\node_modules\webpack-sources\lib\CachedSource.js:12:23)
at C:\Projects\angular-cli\node_modules\webpack-sources\lib\ConcatSource.js:40:49
at Array.map (native)
at ConcatSource.node (C:\Projects\angular-cli\node_modules\webpack-sources\lib\ConcatSource.js:39:60)
at C:\Projects\angular-cli\node_modules\webpack-sources\lib\ConcatSource.js:40:49
at Array.map (native)
at ConcatSource.node (C:\Projects\angular-cli\node_modules\webpack-sources\lib\ConcatSource.js:39:60)
at C:\Projects\angular-cli\node_modules\webpack-sources\lib\ConcatSource.js:40:49
at Array.map (native)
at ConcatSource.node (C:\Projects\angular-cli\node_modules\webpack-sources\lib\ConcatSource.js:39:60)
at C:\Projects\angular-cli\node_modules\webpack-sources\lib\ConcatSource.js:40:49
at Array.map (native)
at ConcatSource.node (C:\Projects\angular-cli\node_modules\webpack-sources\lib\ConcatSource.js:39:60)
at ConcatSource.proto.sourceAndMap (C:\Projects\angular-cli\node_modules\webpack-sources\lib\SourceAndMapMixin.js:28:18)
at CachedSource.sourceAndMap (C:\Projects\angular-cli\node_modules\webpack-sources\lib\CachedSource.js:51:28)
at Compilation. (C:\Projects\angular-cli\node_modules\webpack\lib\SourceMapDevToolPlugin.js:57:32)

Source maps are working after your commit @TheLarkInn  at least at my place.

@masaanli any chance you can try the repo I mentioned in the previous comments. It would be good to if it is just me. I tried in on both my windows and Mac

Reopening to investigate.

@mmrath I have got the same
Cannot read property 'substr' of undefined
error with your repository, and it is appears with material2
Without material2, "ng serve" works properly.
Also, not all of material2 modules trigger this error. If you import just some of them project will compile.
Also, source maps are wrong with ng2-bootstrap v1.0.24
But @ng-bootstrap/ng-bootstrap 1.0.0-alpha.2 works well.

May be this is an issue with precompiled source maps in some material2 and ng2-bootstrap modules.
Or with the way of handling these maps by angular cli

@mmrath it took me a while to get back to this, apologies. I tried with the latest angular-cli@webpack and<EMAIL_ADDRESS>and I got no errors.
I think this was due to buggy source maps on these libs before. For instance, a while ago all the sourcemaps the CLI generated were themselves broken. In this case, the best we can do is to ignore them since it broken sourcemaps there is no way to accurately debug the source.

I don't know whether it has the same cause but source maps are not working in my project either. I'm using<EMAIL_ADDRESS>and<EMAIL_ADDRESS>

@dancancro there was a regression in beta.18 with sourcemaps, upgrading to beta.19-3 should fix it.

Thank you. It looks like that fixed it.

This error is occurring in  "angular-cli": "1.0.0-beta.21"

@doliver3 can you tell me how you repro'd it?

I also have this problem running angular-cli 1.0.0-beta.24. It only occurs when running ng serve or ng build in a Docker container, though.

For docker users. Are your node_modules being shared from the host machine? there may be an issue with how docker follows the sym-links in your mounted directories. Look into installing node_modules with --no-bin-links


Logout button for Forms authenticated users

Hi @MohammadYounes. I'm implementing a logout button for the users who are logged in using Forms Auth; the Windows Auth users can't really "log out" unless they close their browser. In addition, the Windows users would never have a Forms account in this app.
In this scenario, I'm detecting the user's authentication mode in IdentityModels.cs and storing it as a custom claim. Then, in the _LoginPartial.cshtml, I plan to read that value and show/hide the logout button.
Is this a good approach? Would it make sense to show a logout button for Windows auth users?
Thanks.

You may keep it and redirect the user to a view with a message like: You must close your browser to complete the sign out process. However, closing a browser tab won't do it, the user must close the browser process completely.
I think it is possible to force the browser to clear the credentials cache by refusing the stored ones several times, I have seen this in Microsoft solutions - such as TFS, where they provide an option to sign in as a different user.
See this project http://signinas.codeplex.com for a "Sign In As A Different User" implementation.

Thanks, @MohammadYounes. I'll look at that. It'll be good to have a true "sign-out" for all users.
For now, I'm thinking of showing a the message you suggested in a Bootstrap modal for Windows users when they click logout.

@arc95 You should invoke logout action to clear the cookies, the problem with windows users is the browser cache that will log them back in again.

@MohammadYounes There's also this solution for forcing logout of Windows users: http://www.morgantechspace.com/2013/08/how-to-force-sign-in-as-different-user.html
For now, I'll have them log out manually via closing of the browser. Version 2.0 of the app can get more fancy :)


Cannot reconnect to session (clean_session = false) after having subscribed to shared subscription

Environment

VerneMQ Version: 1.4.1
OS: Debian Stretch host (running docker-vernemq container)
Erlang/OTP version (if building from source):

Expected behavior
I have a service that subscribes to a shared subscription (for the day I need to scale it out horizontally), and all messages on this topic are QoS 1. I have a persistent client expiration of 1d and max offline messages of 50000000. If this client disconnects and then reconnects with clean_session = false and the same client id, then the expectation is that all queued messages are released to it once it reconnects.
Actual behaviour
The client cannot successfully reconnect. The session looks and remains as followed from a vmq-admin session show output:
+----------------+---------+----------+-------------+---------+----------------+
|   client_id    |is_online|mountpoint|  peer_host  |peer_port|      user      |
+----------------+---------+----------+-------------+---------+----------------+
|SWW6011011006458|  true   |          |  redacted   |  39996  |SWW6011011006458|
|SWW6011011006550|  true   |          |  redacted   |  23944  |SWW6011011006550|
|SWW6011011000801|  true   |          |  redacted   |  14492  |SWW6011011000801|
|SWW6011011006209|  true   |          |  redacted   |  29784  |SWW6011011006209|
|SWW6011011006519|  true   |          |  redacted   |  59083  |SWW6011011006519|
|SWW6011011000606|  true   |          |  redacted   |  12845  |SWW6011011000606|
|SWW6011011006268|  true   |          |  redacted   |  58662  |SWW6011011006268|
|SWW6011011006203|  true   |          |  redacted   |  14195  |SWW6011011006203|
|SWW6011011006499|  true   |          |  redacted   |  1720   |SWW6011011006499|
|device-service-0|  false  |          |    null     |  null   |      null      |

Notice that it stays in a "null" state. The client is never able to reconnect while vernemq remains in this state.
In order to resolve the situation, I must run:
vmq-admin session disconnect client-id=device-service-0 --cleanup

The session has to be completely cleaned up from the broker(s) (I have 2 by the way), which then lets the client successfully reconnect...albeit all queued messages are lost of course.
Does 1.5.0 resolve this by chance? Thanks in advance!

Hi, thanks for opening this issue. Could you start a trace for the client on the node where the client will connect using vmq-admin trace client client-id=device-service-0 before connecting and see how it looks when it connects? Also, what is the error from the client perspective?

Great - it would also be good to know if you there are any errors in the logs which might be related.

I will share it all, sure. When I examined the logs there was nothing of interest in them related to the failed attempts to connect. I am using default logging as the docker container has setup; I will also attempt more verbose logging.

Closing this for now - we can reopen if more information becomes available.

yes, I can't reproduce this:
$ mosquitto_sub -t '$share/world/blah' -d -q 1  -V mqttv311 -c -i client
Client client sending CONNECT
Client client received CONNACK
Client client sending SUBSCRIBE (Mid: 1, Topic: $share/world/blah, QoS: 1)
Client client received SUBACK
Subscribed (mid: 1): 1
^C
$ mosquitto_sub -t '$share/world/blah' -d -q 1  -V mqttv311 -c -i client
Client client sending CONNECT
Client client received CONNACK
Client client sending SUBSCRIBE (Mid: 1, Topic: $share/world/blah, QoS: 1)
Client client received SUBACK
Subscribed (mid: 1): 1
^C

I haven't tested on 1.4.1, this was current master.

I cannot reproduce it on 1.4.1 either. There must be something else going on in your setup or I'm missing something,


HBASE-24138 log more details about balancer decisions for StochasticLoadBalancer

Based on logs needed when troubleshooting some balancer decisions.
when the log level on StochasticLoadBalancer is set to DEBUG messages look like this:
2020-04-08 09:57:39,515 DEBUG [Time-limited test] balancer.StochasticLoadBalancer$RegionCountSkewCostFunction(1196): RegionCountSkewCostFunction sees a total of 3 servers and 9 regions.
2020-04-08 09:57:39,527 DEBUG [Time-limited test] balancer.StochasticLoadBalancer(348): We need to load balance cluster; total cost=10005.833333333334, sum multiplier=10602.0; min cost/multiplier which needs balance is 0.05

when it is TRACE it looks like:
2020-04-08 10:49:48,416 DEBUG [Time-limited test] balancer.StochasticLoadBalancer$RegionCountSkewCostFunction(1196): RegionCountSkewCostFunction sees a total of 3 servers and 9 regions.
2020-04-08 10:49:48,417 TRACE [Time-limited test] balancer.StochasticLoadBalancer$RegionCountSkewCostFunction(1200): RegionCountSkewCostFunction sees server 'server11855,19031,-1' has 3 regions
2020-04-08 10:49:48,418 TRACE [Time-limited test] balancer.StochasticLoadBalancer$RegionCountSkewCostFunction(1200): RegionCountSkewCostFunction sees server 'server15849,14000,-1' has 3 regions
2020-04-08 10:49:48,418 TRACE [Time-limited test] balancer.StochasticLoadBalancer$RegionCountSkewCostFunction(1200): RegionCountSkewCostFunction sees server 'server87321,54683,-1' has 3 regions
2020-04-08 10:49:48,446 TRACE [Time-limited test] balancer.StochasticLoadBalancer(338): PrimaryRegionCountSkewCostFunction not needed
2020-04-08 10:49:48,447 TRACE [Time-limited test] balancer.StochasticLoadBalancer(338): RegionReplicaHostCostFunction not needed
2020-04-08 10:49:48,450 TRACE [Time-limited test] balancer.StochasticLoadBalancer(338): RegionReplicaRackCostFunction not needed
2020-04-08 10:49:48,451 DEBUG [Time-limited test] balancer.StochasticLoadBalancer(348): We need to load balance cluster; total cost=10005.833333333334, sum multiplier=10602.0; min cost/multiplier which needs balance is 0.05
2020-04-08 10:49:48,452 TRACE [Time-limited test] balancer.StochasticLoadBalancer(353): Balance decision detailed function costs=RegionCountSkewCostFunction : (500.0, 0.0); PrimaryRegionCountSkewCostFunction : (500.0, 0.0); MoveCostFunction : (7.0, 0.0); ServerLocalityCostFunction : (25.0, 0.0); RackLocalityCostFunction : (15.0, 0.0); TableSkewCostFunction : (35.0, 0.16666666666666666); RegionReplicaHostCostFunction : (100000.0, 0.0); RegionReplicaRackCostFunction : (10000.0, 0.0); ReadRequestCostFunction : (10000.0, 1.0); CPRequestCostFunction : (5.0, 0.0); WriteRequestCostFunction : (5.0, 0.0); MemStoreSizeCostFunction : (5.0, 0.0); StoreFileCostFunction : (5.0, 0.0);

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
1m 46s
Docker mode activated.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
6m 47s
the patch passed

+1 :green_heart:
compile
1m  9s
the patch passed

+1 :green_heart:
javac
1m  9s
the patch passed

+1 :green_heart:
shadedjars
5m 47s
patch has no errors when building our shaded downstream artifacts.

-0 :warning:
javadoc
0m 40s
hbase-server in the patch failed.


Progress bar for wget operation

I think that this is a good idea to add to the window (or in the popped-up new window) a progress bar with information about downloading process. This feature can replace MessageBox in main.py:
 wx.MessageBox("Update download successfully", 'Info', wx.OK | wx.ICON_INFORMATION)

@Hubciosz - a high priority in next version


Try using \overload Doxygen tag

To resolve this:
expression.hpp:
11-13:  \note Due to a limitation of Doxygen, each of the
value(), left(), right(), and
operator overloads listed here is a stand-in for three member
Did you try \overload?  That sometimes helps.

This did not help.


[data-broker] add environment variable to logger endpoint port

Environment variable SERVICE_PORT has been added.
Tested in v0.5.0-alpha.1


[Bug] Collaborative Editing not working

Before you submit this issue, have you checked the following

[X] Is this really a problem?
[X] I have searched the Github Issues for similar issues, but did not find anything.

Affected packages and versions
0.2.8
Reproduction link
sheets-vue3-mini-demo.zip
the minimum reproduction use version 0.2.8, base on vue3 demo, follow this guide, finally appear the below question
Expected behavior
I hope your team could optimize the official document or provide a demo, thanks
Actual behavior

System information
System:
OS: Windows 10 10.0.19045
CPU: (8) x64 Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
Memory: 8.84 GB / 15.91 GB
Binaries:
Node: 20.9.0 - C:\Program Files\nodejs\node.EXE
pnpm: 9.7.1 - C:\Program Files\nodejs\pnpm.CMD
Browsers:
Edge: Spartan (44.19041.1266.0), Chromium (120.0.2210.144)
Internet Explorer: 11.0.19041.1566

@jikkai I have provide the minimal reproduction on Reproduction link（sheets-vue3-mini-demo.zip），what other info you need？

@qp91abc1234  Please check if you have missed the override configuration item. Refer to https://univer.ai/guides/sheet/features/collaboration#register .
const univer = new Univer({
+  override: [
+    [IAuthzIoService, null]
+    [IUndoRedoService, null],
+  ],
});

If you have other questions, you can try to check it against the start-kit demo.

@hexf00 ，wow，thanks~


support relational operators on strings

The following code fails but should succeed,
Asteroid Version 1.1.4
(c) University of Rhode Island
Type "asteroid -h" for help
Press CTRL-D to exit
ast> "ab" < "cd"
error: unsupported type in <
ast>

is now supported as of 2.0


No binding on ipv4

Hi,
though I use the parameter --address=<IP_ADDRESS> on Linux Ubuntu 16.04 64-bit it does not bind to ipv4. When I use netstat to show the ports opened it only shows tcp6 for the assigned port. And I cannot access it using the ipv4 address.
What could be the issue and how can I solve it? Help ist appreciated.
Thank you very much.

Since you closed it I hope it's resolved.

It is, thanks for asking. Great help your program. Thank you very much.
Greetings Alex
2017-03-27 22:43 GMT+02:00 Alex Sergeyev<EMAIL_ADDRESS>
Since you closed it I hope it's resolved.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/joewalnes/websocketd/issues/252#issuecomment-289580048,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMa1_ujD2rRJsLAx5igDeAjZBA7uhVN6ks5rqB-HgaJpZM4Mqr0t
.


Release mp9 3.0.0 beta.4

@LuudSlagter , I applied the changes regarding MP-1555 in a separate branch and made PR. The other comments I changed directly in this branch.


Changes in mailchimp API?

New to both the mailchimp API as well as python-mailchimp, but I did some investigation on an issue I am having that leads me to think that perhaps something has changed in the API that python-mailchimp wraps.
To start, I was getting an error trying to fetch the email addresses out of one of my mailchimp lists using one of the examples:
data = client.lists.members.all('<my-list-id>', fields="members.email_address,members.id", get_all=True)
with the following traceback:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/.../mailchimp3/entities/listmembers.py", line 96, in all
    return self._iterate(url=self._build_path(list_id, 'members'), **queryparams)
  File "/.../mailchimp3/baseapi.py", line 46, in _iterate
    total = result['total_items']
KeyError: 'total_items'

This seemed plenty weird, so I read into the API (see: Read>Get information about members in a list  and then decided to add "total_items":
res = client.lists.members.all('<my-list-id>', fields="members.email_address,members.id,total_items", get_all=True)
This resolved the KeyError, but the behavior is still not as to be expected; with a list containing more than 100 members, the returned result only returns the last page of numbers. I believe the issue lies with merge_two_dicts in helpers.py. The response JSON data is of the form: {'total_items': N, 'members': [{'email_address': '<address@domain>', 'id': '<hash-string>'}, ]}. The merge_two_dicts function does shallow copy that will simply overwrite the 'members' key instead of append the lists. In other terms, this is the expected behavior of dict.update:
>>> a = {'key': [1, 2, 3]}
>>> a.update({'key': [4, 5, 6]})
>>> print(a)
{'key': [4, 5, 6]}

Is this is due to a change in the API, or am I missing something else? If due to an API change, I haven't yet learned enough of mailchimp's documentation to be sure how to adjust to python-mailchimp without potentially causing other troubles. I'll be looking into it and feedback on this would be great.

Hello @SavinaRoja
Thanks for pointing out that oversight, never did actually test the all using specific fields, I will update all of the all() methods to add that key if it is not in there so that the iterate does not fail, as for the helpers issue with the merge_dict, I will need to look into that a bit later and see what we can do to get it working. Neither of these is an issue with the API itself, they are just things that got missed when we updated to implement the remaining endpoints and add the .all() methods. If you have any suggestions, please let us know so that we can take a look, or if you have any other errors.

This might serve for the dictionary merging. I replaced merge_two_dictionaries with this exact code and the results were good.
def merge_two(x, y):
    """
    Merges two dictionaries, x and y. Same as `x.update(y)` except in the case where the values of
    x[key] and y[key] are both lists, in which case it joins the list values.

    Returns a copy of x, z, updated by y, where:
      z[key] = x[key] + y[key]
    """
    z = x.copy()
    for key, value in y.items():
        if isinstance(value, list) and isinstance(z.get(key, None), list):
            z[key] += value
        else:
            z[key] = value
    return z

The only issue was that there is a duplicate (redundant) call in the iteration in BaseApi._iterate. I adjusted it to the following and got results that looked good.
def _iterate(self, url, **kwargs):
        """
        ...
        """
        result = self._mc_client._get(url=url, offset=0, count=100, **kwargs)
        total = result['total_items']
        if total > 100:
            for offset in range(1, int(total / 100) +1):  #changed start value for range; only change
                result = merge_two_dicts(result, self._mc_client._get(
                    url=url,
                    offset=int(offset*100),
                    count=100,
                    **kwargs
                ))
            return result
        else:
            return result

Merged, closing issue


Sorting arrays for diff could be smarter

Currently arrays are being sorted by their stringified value, while this is better than comparing unsorted arrays in many situations it is still rather naff.
One solution for this would be to allow a key to be defined in the config that can be used when sorting arrays of objects.
E.g.
{
  "id": 1234,
  "name": "John Smith",
  "friends": [
    {
      "id": 7635,
      "name": "Sally Stephens"
    },
    {
      "id": 6320,
      "name": "Michael Travis"
    }
  ]
}

The id property here would be an ideal way to sort these objects so allowing the user to specify a sort key (or a sort key list that is priority based) would allow for sorting to be smarter.
If no keys are specified we could also look for common keys (such as id).

Released in 4.6.0.


email/password should be a valid login combination just like username/password is.

@syedsaqibali @aganhuyag  I use email/password for authentication and I haven't needed to do anything special. As @jpadilla mentioned above, the django documentation states that you use the USERNAME_FIELD on a subclass of AbstractUser to specify your own identifier field.. Set that to 'email' and thats all you should need to do

Well, my workaround is to have the user enter data into a field named username_or_email. Then I check that entry to see if it contains a "@". If it does, then I look that email address up in the User table and get the username. Otherwise, I take what they gave me as the username. Then I login with the (possibly derived) username and password.

@syedsaqibali interesting.. which version of django do you use? are you allowing users to use either email OR a custom username? in my current app Im building I actually use email as the identifier but I also automatically generate a unique username based on their first + last name so you can do pretty url's eg. myapp.com/people/barrackobama

@ericonkanen Django version 1.7.1
Yes. I am allowing my users to login with their email OR their username. I think its more elegant that way.
I also have the same requirements in my app as you to make the URL pretty and readable. However. I wouldn't advise at all the way you are doing it. If their name has special or non-English characters, you will run into all kinds of problem. What I did instead was to create a new model called "Profile" which looks like this:

from autoslug import AutoSlugField

class Profile(models.Model):
    user = models.OneToOneField(User)
    slug = AutoSlugField(
        populate_from='username',
        always_update=True,
        unique=True,
    )

To get the AutoSlugField package I did:

$ pip install django-autoslug-field

Now, to make my URLs pretty, I use Profile.slug. It's guaranteed to be a reasonable length and safe to use in a URL. Try it! Also, using my own Profile class instead of Django's User model allows me to more easily add custom fields to this model.

@syedsaqibali interesting, I'll check that out!.. I do have some filters on it, e.g. first and last names can only be alphanumeric (letters/numbers), and if there is a name collision, it appends a number to the end... e.g. /people/bobsmith.39 (got that idea from graph.facebook.com/)

Closing this for lack of activity. Will reopen if there are concrete actions for a next step.

@jpadilla As per your suggestion of making a Customize Serializer, i've implemented the same as below which works absolutely fine:
This works for 'username_or_email' and 'password' fields where the user can enter its username or email and get the JSONWebToken for correct credentials.
class CustomJWTSerializer(JSONWebTokenSerializer):
username_field = 'username_or_email'
def validate(self, attrs):

    password = attrs.get("password")
    user_obj = User.objects.filter(email=attrs.get("username_or_email")).first() or User.objects.filter(username=attrs.get("username_or_email")).first()
        if customer_obj is not None:
            credentials = {
                'username':user_obj.username,
                'password': password
            }
            if all(credentials.values()):
                user = authenticate(**credentials)
                if user:
                    if not user.is_active:
                        msg = _('User account is disabled.')
                        raise serializers.ValidationError(msg)

                    payload = jwt_payload_handler(user)

                    return {
                        'token': jwt_encode_handler(payload),
                        'user': user
                    }
                else:
                    msg = _('Unable to log in with provided credentials.')
                    raise serializers.ValidationError(msg)

            else:
                msg = _('Must include "{username_field}" and "password".')
                msg = msg.format(username_field=self.username_field)
                raise serializers.ValidationError(msg)

        else:
            msg = _('Account with this username or email does not exists')
            raise serializers.ValidationError(msg)

    return super(CustomJWTSerializer, self).validate(attrs)


code - app footer component

#4
todo

[x] code - app_footer

@input 📦 window_bar_v0.0.2 from #5
@input 📦 buttons_v0.0.4 from #1
[x] add robot character img
[x] add pattern img
[x] add footer into and button
@output 📦 app_footer_v0.0.1 from comment

tasks - 2023.06.03

code - app_footer - 1h37min

add robot character img
add pattern img
add footer into and button
create - worklog comment, and task- 9min
@output 📦 app_footer_v0.0.1

worklog
worklog-149

feedback

proposal

feedback 2023.06.08
"footer.pdf" is missing the "pdf program icon" in the left corner before name
you decided to leave whitespace and the robot in the footer is alone
if the hexagons work next to the robot on small screen responsiveness, cool.
regarding code
Problem with theme, a theme must either be provided in demo.js to the entire app and the components receive it as protocol messages (e.g. for theme updates at runtime) or maybe as opts form the parent component.
If there is a "default theme", it needs to be co-located inside each components folder.
So const my_theme = require('my_theme') where my_theme is hard coded but a distinct component used by many does not work well.
Think of it like this - we will in the near future try to re-use components when we implement wizardamigos and when we implement datdot, which have totally different theme requirements, so it would be wasteful to pull in a random theme that was just used once in a particular project.
theme needs to be passed as parameter and protocol message for updates.
a component who has some invariants, e.g. a "logo component" where we actually hard code a specific color or image into the component.
Another example would be to code a "traffic light", so you might just hard code the red/green colors, because when you don't use those colors it hardly gets recognized as a "traffic light".

Next I think some things could probably be coded directly into the HTML markup, e.g.:
// Adding Robot Image
const robot_image_wrapper = shadow.querySelector('.robot_img_2')
const robot_image = document.createElement('img')
robot_image.src = img_robot_2
robot_image_wrapper.append(robot_image)

// Adding Pattern Image
const pattern_image_wrapper = shadow.querySelector('.pattern_img')
const pattern_image = document.createElement('img')
pattern_image.src = pattern_img_1
pattern_image_wrapper.append(pattern_image)

that code can probably be removed and instead you just update your template snippet
shadow.innerHTML = `

 INTERESTED IN JOINING DAT ECOSYSTEM CHAT NETWORKING?

 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vitae porta aliquet sit amet ornare sagittis, ultricies sed. Viverra sit felis ullamcorper pharetra mattis amet, vel.

           <apply_button></apply_button>

`

// the following is the pattern we usually use, but what you do is more or less the same
// so you can also keep your three liner :-)
const join_programe = sm_text_button({text:'JOIN OUR GROWTH PROGRAME'})
shadow.querySelector('apply_button').replaceWith(join_programe)

Otherwise, the code looks great :-)
your formatting is still not standardjs + snake_case thought, but i can live with it.
standardjs would be 2 space indentation and  get_theme () { instead of get_theme(){
and also instead of el.attachShadow ( { mode : 'closed' } ) it would be
el.attachShadow({ mode : 'closed' }) and const listen = (props) => { instead of const listen = (props) =>{ or in case of one parameter you can even do const listen = props => { and a few other details, but overall the code looks decent.

Since we haven't managed to make the whole DAt garden post growth program, we should for now adjust the footer to say:
Interested in learning more about the Dat Ecosystem?
Join our chat and discuss tech, society, funding and your project development with the community. But you can also subscribe to the newsletter updates!
Join the newsletter

tasks - 2023.12.20

update - app_footer_v0.0.1

updated content and hyperlink - 5min
create and update tasks - 8min
@output 📦 app_footer_v0.0.2

worklog
worklog-188

feedback

proposal

tasks - 2023.12.28

update - app_footer_v0.0.2 - 13min

update the content text
update the link to mailbox
@output 📦 app_footer_v0.0.3

update - app_footer_v0.0.3

create a filled image of robot - 23min
update the robot fill in the footer - 18min
create and update tasks - 9min
@output 📦 app_footer_v0.0.4

worklog
worklog-190

feedback

proposal


Question: Is it possible to present clickable links in table reports?

Many times I want to be able to display a hyperlink in an output table report, allowing users to breakout to another site. I have tried restlying an output in HTML format, and also in markdown format, but neither formats into a link, and just shows the raw output. Is it possible to present clickable links in tables?
Additionally, I find when using neodash in neo4j desktop, I am unable to click through on any links, but when in the browser links clickthrough properly. Is there some config option I can set to enable this functionality in desktop?
Thanks,
Matt

Thank you for submitting this issue, can you please give us some example data? From our side the Table chart can render hyperlinks and they are clickable.

Thanks for getting back to me.
I was trying to format in markdown an output - but I realise now that the links work if formatted as plain text.
Thanks!


Fix lz4 library incompatibility in kafka-indexing-service extension

The druid-kafka-indexing-service extension contains the following two libraries:

kafka-clients <IP_ADDRESS>
lz4 1.3.0

The kafka-clients lib itself has a dependency on the lz4 lib version 1.2.0.
This doesn't lead to a version conflict as long as the Kafka topic consumed from contains message-batches that are either uncompressed or use a different compression scheme.
If the kafka topic contains messages that have been lz4 compressed by the kafka-producer, then the kafka-indexing-service fails with the following exception which is due to the version conflict:
java.lang.NoSuchMethodError: net.jpountz.util.Utils.checkRange([BII)V
    at org.apache.kafka.common.record.KafkaLZ4BlockInputStream.read(KafkaLZ4BlockInputStream.java:177)

Possible options for a bugfix might be

in the kafka-indexing-service extension POM, downgrade lz4 library version
in the kafka-indexing-service extension POM, upgrade kafka-clients library to <IP_ADDRESS> which is built against lz4 version 1.3.0
I haven't checked if the kafka-client v 0.10 would be backwards compatible with with kafka server 0.9

The kafka documentation states implicitly that it is not recommended to use a kafka-client v0.10 with a kafka 0.9 cluster.

@sascha-coenen, thanks for the report.
We chose to use kafka-clients 0.9 because it was reported that newer clients don't work with older brokers (see https://groups.google.com/d/msg/confluent-platform/jdv10HahRd8/l-5twegkIAAJ), and we didn't want to require 0.10 brokers just yet.
If downgrading the lz4 version in the extension pom works (s.t. main Druid still uses 1.3.0, but the extension uses 1.2.0 in its own classloader) then that seems like an ideal solution.
Any chance you could check that and confirm if it works or not?

@gianm the extension has the "default" libraries take priority over extension libraries. In this case it wouldn't help because it should pull the class definition from the application classloader rather than the extension one. You'd have to replace replace the application's version to get the change to stick properly.

Is there a way to force druid to use kafka-clients-<IP_ADDRESS> ?
For the new indexing service or for Tranquility.

@dpoldrugo recompiling the kafka-indexing-service extension should work.

Ok, thank you Gian.

@gianm @drcrallen I tested two options which both seem to work:

Upgrade Kafka client to 0.10 - downside is that users will have to upgrade their brokers as the 0.10 client is not compatible with 0.9 brokers. Upside? Bug fixes? Kafka Stream client support?

Force Maven to use lz4 1.2.0 for the extension AND introduce a mechanism to remove lz4 1.3.0 from the classpath passed to the peon. This could be done by running a regex on druid.indexer.runner.classpath in ForkingTaskRunnerConfig. We could a) either have it be done manually (add another property like druid.indexer.runner.classpathExclusions) or b) we could do it automatically if the task type is a Kafka task. Downside to a) is that it's another config that users who want lz4 would have to know to do, and b) it's a little black magicky but maybe acceptable.

Thoughts?

If we really want to fix it, I think we should have a better classloader isolation story at the peon level. See https://github.com/druid-io/druid/issues/2502 and https://github.com/druid-io/druid/issues/2476 for more related items.
I haven't looked at the kafka client in depth, but how difficult would it be to support multiple versions of the kafka client, either in the same extension or multiple extensions?

@drcrallen hmm same extension - probably non-trivial and would require additional classloading work; different extensions - easy but ugly if you just cloned the extension, harder if you want to have a single copy of the source and use Maven configs to build two versions (since the API is not exactly the same between 0.9 and 0.10). I don't really love the idea of maintaining two versions just to support lz4 compression.
My main consideration in whether to move to 0.10 is how big of a nuisance broker updates would be for users. It can be done as a no-downtime rolling update so it's mainly the inconvenience of it I suppose. Again, it kinda feels like too much to ask for no benefit except for lz4 working (the other compression formats gzip and snappy work fine).

Related to #3426.
@gianm @drcrallen any thoughts about whether we should move to the 0.10 Kafka client? It would make this a non-issue and would bring us up to the latest version of Kafka but would require a Kafka broker migration by users.

@dclim How about not supporting lz4 in anything less than 0.10, and moving to kafka 0.10 when druid also goes to 0.10?

@dclim The kafka migration process is described there: http://docs.confluent.io/3.0.0/upgrade.html
A rolling upgrade seems possible.

Fixed by #4115


Support for fire alarms and such?

Hey there! Love this homebridge integration, it’s made my ring alarm much more useful with automation! Anyways, I just got one of those Z-Wave fire alarms from First Alert and it ties into my ring alarm. Do you have any plans to add in support for them, or have any idea how easy it might be to do so? Would be awesome to be able to turn on all the lights and turn off the HVAC in the event of an alarm. Thanks for making and sharing this awesome plugin! Your hard work is much appreciated!

@ajcutshall did you get a chance to test this out with a "real" fire event?

I'm going to assume this is good to go.  @ajcutshall let me know if you test it out and run into any issues.

Hey @dgreif, sorry for not getting back to you for such a long time.  As it turns out, E-Cigs will set the fire alarm off. When the alarm went off, HomeKit notified me as expected and also turned on every light, as I have configured! I just hope the fire department isn’t too peeved.

@ajcutshall thanks for letting me know, really glad to hear it worked!

@ajcutshall which smoke sensor did you use?


SLF4J 2

See related issue in mock-slf4j-impl project.
Do same for this one.

https://github.com/ocarlsen/slf4j-log-level/pull/5


Putting 'all' modules into wreck slot eats all items

I haven't tested how much this generalizes. However:
If you use [put, all, modules x] into a beacons [wreck] slot then it will consume all of them even though a beacon can only hold 2 modules.

Interesting - how did you stumble upon this bug?

The TAS helper tool by pellet12 auto-generated the step

I was able to solve #160, but I don't really understand this one. For some reason "get_insertable_count" thinks that it is able to insert 100 into the module inventory.

The bug has been reported to factorio.
I will update here when I get update there.
It seems that problem extends to module inventories of assemblers too, so I expect it to wrong for all module inventories.

It seems the factorio team wont fix this issue.
Which obviously leaves us with some problems.
For this specific issue we can just use the return value of insert to remove items from the character.

Unfortunate, but fair enough.


Switch Geocoding API from Google to Mapbox

https://www.mapbox.com/help/define-geocoding/

do you have your heart set on using Mapbox for geocoding?  Esri's is 💯 , supports suggestions and Point of Interest search and allows up to 1 million unauthenticated requests a month.
we already wrote a plugin for Leaflet, but i've been looking for an excuse to make something that has no map dependencies whatsoever too...

Thanks for the tip, John! I‘ll have to check out Esri.

Comparing the two APIs, we currently have:
var geocoder = new google.maps.Geocoder();
geocoder.geocode({'address': address}, function(results, status) { ... }
The Mapbox call would look like the following:
var client = new MapboxClient('YOUR_ACCESS_TOKEN');
client.geocodeForward('Chester, NJ', function(err, data, res) {
// data is the geocoding result as parsed JSON
// res is the http response, including: status, headers and entity properties
});
Thus it would appear to be a relatively straightforward substitution.

Awesome, George!
FOLA’s access token for Mapbox is available as a global variable called MAP_ACCESS_TOKEN.
var client = new MapboxClient(MAP_ACCESS_TOKEN);

After the switch, we can remove the Google Maps <script> element from these two files, which will save bandwidth and processing time…
https://github.com/foodoasisla/site/blob/master/_layouts/location-details.html
https://github.com/foodoasisla/site/blob/master/_layouts/location-list.html
<script src="https://maps.googleapis.com/maps/api/js?…"></script>

While we were working on the Add a location page, @LearningNerd found a way to do geolocation using the Mapbox API, without loading any additional third-party JavaScript!
You can see some example code here…
https://github.com/foodoasisla/site/blob/master/assets/js/github-backend.js
It looks like this…
var addressForGeocoding = '220 S Spring Street, Los Angeles';

var MAP_ACCESS_TOKEN = 'pk.eyJ1IjoiZm9vZG9hc2lzbGEiLCJhIjoiY2l0ZjdudnN4MDhpYzJvbXlpb3IyOHg2OSJ9.POBdqXF5EIsGwfEzCm8Y3Q';

var MAPBOX_URL = 'https://api.mapbox.com/geocoding/v5/mapbox.places/' + encodeURIComponent(addressForGeocoding) + '.json?limit=1&access_token=' + MAP_ACCESS_TOKEN;

get(MAPBOX_URL)
.then(JSON.parse).then(function (mapboxResponse){

  longitude = mapboxResponse.features[0].center[0];
  latitude  = mapboxResponse.features[0].center[1];

}).catch(logAndDisplayError);


Proposal: Allow specifying a default gateway for bridge networking

First of all, sorry this PR got so little attention in so much time :-(
Regarding the design itself, I'm mostly -1: I think that whatever specifics you need on your bridge (such as a particular gateway) can be more easily solved by managing the bridge interface outside of Docker and specifying it with -b.
@LK4D4 @crosbymichael thoughts?

This is good, i think we should do this.  +1

@eolamey At first I'm glad that you using --fixed-cidr :) I tried to merge it for very long time.
Design is okay for me, not a big deal.
ping @tiborvass for moving to code-review or questions

@lebauce Sorry for the crazy delay here: I'm pushing this to 2-code-review, are you please available to rebase your PR?

@icecrime Sure !

Thanks! LGTM :-)
Ping @aboch @mavenugo for info.

@eolamey Trying to understand the use-case better. Can you show some examples of such configuration ?
As I understand, you are carving /24 (out of a bigger /20) for each of the host and using that /24 in the --fixed-cidr range so that the containers are launched from that /24 range.

And Assigning a default-gateway ip from the /20 ?
Also, since you are trying to make these containers directly reachable (within the private network), I assume the physical port (eth0) is added to the docker0 bridge ?
And this eth0 is assigned an ip from the /20 range ?

@lebauce Seems like you need add some API docs too.

@mavenugo The use-case is being able to have the container being assigned routable IP addresses by the docker daemon, instead of host-private ones with NAT.
Our docker hosts have an interface (say, eth0), in a VLAN. This interface is indeed added to the docker0 bridge, which gets an IP address from the /20 subnet related to this VLAN. The goal is for each container to also get an IP address on the same subnet, which is routable in our infrastructure. In order to avoid having to centrally manage IP assignment, as you said, we carve a /24 out of that /20 and "give" it to the docker host. docker will use the docker host's netmask for the container interface, which is perfect.
The gateway for that subnet (and/or VLAN) is not the docker host, which is why we need to add the --default-gateway to the docker daemon.
@LK4D4 As the default gateway option is being added to the docker daemon, as opposed the container API, could you please pinpoint which part of the API documentation needs to updated?

@eolamey Hmm, sorry, I missed that it's daemon option.

@eolamey Sorry for more questions. You said "docker will use docker host's netmask for the container interface". What did you mean by that? Are you saying that the container interfaces will be configured with a /20 netmask event though the --fixed-cidr option says docker to use a /24 subnet?

@eolamey Also if you are really talking about a /24 docker host IP that you want to make the container use as a default gw then the best way to do is to:

Remove the docker host IP from the docker host interface (maybe a vlan interface in your case)
Add that interface to docker0 bridge
Start docker daemon with --bip=<docker_host_ip>/<mask>

This would ensure that you still get the same IP address that you wanted as the default gw without needing to make any code changes. Also one should remove all IP address from an interface when they are adding them to a bridge so I hope you are not adding an interface with an IP address into the bridge.
Let me know if this makes sense.

@eolamey Thanks for the explanation. This makes it clear.
Another obvious question is regarding ipv6 fix for the exact same scenario.
@icecrime @LK4D4 @crosbymichael : Since this fix addresses only the ipv4 case, is it reasonable to ask if this PR should address the ipv6 case as well ?

Yes, it should. The PR was submitted before IPv6 was even introduced: @lebauce, now that everyone agrees that your contribution is indeed good to move to code review, can you please take on the IPv6 changes?

@mrjana The container interface will be indeed configured with a /20 netmask, which is good since it's the proper netmask to use for the subnet. The fixed-cidr only indicates which IP range to use, but doesn't impact the netmask.
However, we don't want to use the docker host's IP address as the default gateway for containers, which is why we can't use --bip and therefore need the new option.
Finally, sorry if I wasn't clear, but the docker host's IP address is setup on the docker0 bridge, not on the eth0 (or whatever interface we use).

@icecrime @LK4D4 @crosbymichael I see IPv6 was added (as requested), so I think this can be reviewed
(@lebauce, correct me if you weren't ready yet)

@lebauce Sorry, it needs rebase again, and I promise we'll try to be reactive on review afterwards :-(

@icecrime Rebased, ready for review :)

Thanks! Code LGTM (some duplication for IPv4 and IPv6 can be avoided, but I'm fine merging it nevertheless).

LGTM moving to docs review

Docs LGTM

@icecrime I moved the common code to the "requestDefaultGateway" method. Thanks for pointing out the code duplication

Cool thanks!


TF lite converter weight bitpacking

Ideally we would like the TF lite converter to store the binary weights in a packed way so that the tflite model file stays small.
Another option might be that we write a tool ourselves that takes a converted .tflite model and does another pass on it, transforming the weights appropriately.

this is resolved in https://github.com/larq/compute-engine/commit/ef372f10cdb0edf6884c28cd873d2f3775470e2b


{1.5beta3} c-archive and header file

This may just be a misunderstanding of how this is supposed to work - if so I'd appreciate some guidance.
What version of Go are you using (go version)?
go version go1.5beta3 darwin/amd64
What operating system and processor architecture are you using?
Mac OS X 10.10.4 Intel Core i7
What did you do?
I'm trying to build a C archive to link to a C++ app.  I read the release notes and the Go Execution Modes doc.  The second document states:

The only callable symbols will be those functions marked as exported (by any package), as described in the cgo documentation.

I wrote a small test:
package main

import "log"

//export Foo
func Foo() {
	log.Println("Foo")
}

func main() {
	// unused
}

go build -buildmode=c-archive
What did you expect to see?
I expected it to create foo.a and a header file with Foo exported.
What did you see instead?
  Otherwise cgo is not invoked and the //export comment is ignored.

Thanks Ian!  Misunderstanding on my part - I didn't realize cgo was involved at all in this - I thought your new stuff was just borrowing the export syntax - so I didn't dig into the cgo docs.
I see you added the documentation label - that's great.
Would it be feasible to recognize that no user code is being exported and produce a warning to point them in the right direction?  If the developer is using -buildmode=c-archive they are likely expecting something of theirs to be exported.

I can't think of a simple way to check for no functions being exported, and I'm not sure it's worth coming up with a complex way.  The fact that it doesn't work will be obvious.


Create documentation

[ ] Create readme with description of app
[ ] Test application for basic usage

Helpfull app to create readme file
https://readme.so/editor


Added documentation missing entry for error 12009

Added documentation missing entry for error 12009 in Errors from displayDialogAsync section. This will resolve bug 2544119 in DevOps.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/develop/dialog-api-in-office-add-ins.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

This article also needs to be changed. Please add the new 12009 to the table that current ends with 12007. It's a bit more than halfway down the page.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/develop/dialog-api-in-office-add-ins.md
:white_check_mark:Succeeded

docs/reference/javascript-api-for-office-error-codes.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/develop/dialog-api-in-office-add-ins.md
:white_check_mark:Succeeded

docs/reference/javascript-api-for-office-error-codes.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Political action committees Information requests

Who is your user?
Collective's engaging in Political activity.
What are they trying to achieve?
The collection of required FEC data employer occupation addresses etc and campaign finance limits for political action committees
How are they currently doing this?
Not sure

Here are the regulations required by the FEC
https://www.fec.gov/resources/cms-content/documents/policy-guidance/nongui.pdf
https://www.fec.gov/help-candidates-and-committees/registering-pac/understanding-nonconnected-pacs/


Redundant Code for Parsing Equations

The current code used to parse equations from a presentation could be replaced by an application of the Catlab functor tooling.

All of this code has been replaced by the "free diagram" tooling introduced in PR #10 .


[shuffle] mv.U8 sends number, not string, in encoded payload

Motivation
mv.U8(5) would send a JSON payload with a string. Change this to be a number.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
cargo test -p shuffle

/land


training time and downsampled images?

Hi, I was wondering if the training time of datasets shown in the paper is based on downsampled images, e.g. Mill 19 Building dataset with 4K images downsampled to 1K so that it then probably takes 29:49(h) per cluster? If it were to be 4Kx3K images without downsampling, one image may contain 12M rays. If we'd further assume we train one submodule(single NeRF) with 40 images, this would be about 500M rays, so just one epoch of training all 500M rays would use up all the "default" total iterations 512M (~ 500K iterations x batchsize of 1024). Will one epoch, in this case, be enough? I have a custom dataset, seems like it takes like 30 days to train one submodule with 4K images.

In the paper we trained on the full images and evaluated using images that were downsampled by a factor of 4 (the codebase should use those settings by default)


fix: execute after scenario methods in skipped tests

Coverage: 91.123% (+0.008%) from 91.114% when pulling 6c4e63f93bdcd23f95c98c20b9abc5ad7553f081 on fix/after_scenario_skipped_tests into 927b8a4f2c6828b542691993a4b28a40aeb2830b on master.


Fail to install pysal

I tried to install pysal (default 2.2.0)  on python 3.8.2 and other 3.7 version. And it failed and returned some errors during installation. I used pip install pysal.
Collecting rtree
  Using cached Rtree-0.9.4.tar.gz (62 kB)
    ERROR: Command errored out with exit status 1:
     command: /apps/opt/anaconda3/envs/sm7/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-gvuopj6t/rtree/setup.py'"'"'; __file__='"'"'/tmp/pip-install-gvuopj6t/rtree/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-gvuopj6t/rtree/pip-egg-info
         cwd: /tmp/pip-install-gvuopj6t/rtree/
    Complete output (15 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-gvuopj6t/rtree/setup.py", line 3, in <module>
        import rtree
      File "/tmp/pip-install-gvuopj6t/rtree/rtree/__init__.py", line 1, in <module>
        from .index import Rtree
      File "/tmp/pip-install-gvuopj6t/rtree/rtree/index.py", line 6, in <module>
        from . import core
      File "/tmp/pip-install-gvuopj6t/rtree/rtree/core.py", line 143, in <module>
        rt.Error_GetLastErrorNum.restype = ctypes.c_int
      File "/apps/opt/anaconda3/envs/sm7/lib/python3.8/ctypes/__init__.py", line 386, in __getattr__
        func = self.__getitem__(name)
      File "/apps/opt/anaconda3/envs/sm7/lib/python3.8/ctypes/__init__.py", line 391, in __getitem__
        func = self._FuncPtr((name_or_ordinal, self))
    AttributeError: /apps/opt/anaconda3/envs/sm7/bin/python: undefined symbol: Error_GetLastErrorNum
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

I tried installing rtree using pip install befoer installing pysal. The installation of pysal ran. But when I imported pysal in python, it failed. I was able to sucessfully install other version 1.14.4 and 2.0.0. I also have the same issue with 2.1.0

For the spatial stack in python, it is often better to stick with Conda for installing packages as one can hit the kind of errors you just hit when using pip.

i tried to install using "conda install --channel conda-forge pysal". It finished running "Collecting package metadata (repodata.json): done". Then it ran for a long time with "Solving environment: " without giving any results. I am not sure what i have done wrong.

@KarenChen9999 any update on this? I cannot reproduce locally, but sometimes the conda solver can time-out. Coming back later sometimes is a solution.

Getting this error too. Anyone with a workaround? I have to use pip not conda for my package management.

@zoj613 can you provide some information on your operating system and version of conda: conda --version

I dont use conda. I use pip and pyenv for virtualenvs on a Manjaro18 64bit. Anyway I got around the error by installing libpysal instead of the full package since i only wanted to use the weights module


Expiry of scheduler key

In register_death, the scheduler key is set to expire in 60s:
p.expire(self.scheduler_key, 60)

In a production application where the scheduler must gracefully handle restarts, this becomes problematic. No new scheduler can start until 60 seconds has passed. It would be nice to be able to adjust this parameter to allow for faster restart.

I haven't run into this problem, and I am doing graceful restarts in production. In addition to setting that expiration, it also sets the "death" key in the hash, and this condition will allow the new scheduler to start up when that "death" key is present:
https://github.com/ui/rq-scheduler/blob/46b29da/rq_scheduler/scheduler.py#L32-L34
I'm not sure what the purpose is of keeping it around for 60 seconds, but it doesn't seem to cause a problem.


Add detection for byte order marks (BOM) in AMP docs

Add detection for byte order marks (BOM) in AMP docs.
For background see:
https://github.com/ampproject/amphtml/issues/11031
https://github.com/ampproject/amphtml/issues/11053

As per commit Implemented BOM check #27


Update jackson-core, jackson-databind to 2.11.1

Updates

com.fasterxml.jackson.core:jackson-core
com.fasterxml.jackson.core:jackson-databind

from 2.10.4 to 2.11.1.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.fasterxml.jackson.core" } ]

labels: library-update, semver-minor

Codecov Report

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

@@           Coverage Diff           @@
##           master     #189   +/-   ##
=======================================
  Coverage   90.98%   90.98%
=======================================
  Files           8        8
  Lines         122      122
  Branches        6        6
=======================================
  Hits          111      111
  Misses         11       11

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 bb4f024...2a11544. Read the comment docs.