Make df.apply_concat_apply work with df.Index objects (Closes #517)

We were using pd.concat inside apply_concat_apply to "concat" after the first "apply". But pd.concat does not work for pd.Index objects. So we use this little funtion to do the concats now.
def concat(args):
    if isinstance(args[0], pd.Index):
        concat = lambda a: reduce(lambda b, c: b.append(c), a)
    else:
        concat = pd.concat
    return concat(args)

(Closes #517)

There is actually another bug here. Series.index.count is broken.

import numpy as np
import pandas as pd
import dask.dataframe as dd
import dask
from dask.async import get_sync
dask.set_options(get=get_sync)
from ipdb import set_trace
arr = np.random.randn(100, 2)
df = pd.DataFrame(arr, columns=['a', 'b'])
i = dd.from_pandas(df, 2).index
res = i.count()
res.compute()

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-12-105f5a9575ad> in <module>()
----> 1 res.compute()

/home/blake/github/dask/dask/dataframe/core.pyc in compute(self, **kwargs)
     82
     83     def compute(self, **kwargs):
---> 84         return compute(self, **kwargs)[0]
     85
     86     def _visualize(self, optimize_graph=False):

/home/blake/github/dask/dask/dataframe/core.pyc in compute(*args, **kwargs)
     56     dsk = merge(*[arg.dask for arg in args])
     57     keys = [arg._keys() for arg in args]
---> 58     results = get(dsk, keys, **kwargs)
     59
     60     return list(map(_concat, results))

/home/blake/github/dask/dask/dataframe/core.pyc in get(dsk, keys, get, **kwargs)
   1160     dsk2 = optimize(dsk, keys, **kwargs)
   1161     get = get or _globals['get'] or threaded.get
-> 1162     return get(dsk2, keys, **kwargs)  # use synchronous scheduler for now
   1163
   1164

/home/blake/github/dask/dask/async.pyc in get_sync(dsk, keys, **kwargs)
    519     queue = Queue()
    520     return get_async(apply_sync, 1, dsk, keys, queue=queue,
--> 521                      raise_on_exception=True, **kwargs)
    522
    523

/home/blake/github/dask/dask/async.pyc in get_async(apply_async, num_workers, dsk, result, cache, queue, get_id, raise_on_exception, rerun_exceptions_locally, callbacks, **kwargs)
    462     # Seed initial tasks into the thread pool
    463     while state['ready'] and len(state['running']) < num_workers:
--> 464         fire_task()
    465
    466     # Main loop, wait on tasks to finish, insert new ones

/home/blake/github/dask/dask/async.pyc in fire_task()
    458         # Submit
    459         apply_async(execute_task, args=[key, dsk[key], data, queue,
--> 460                                         get_id, raise_on_exception])
    461
    462     # Seed initial tasks into the thread pool

/home/blake/github/dask/dask/async.pyc in apply_sync(func, args, kwds)
    512 def apply_sync(func, args=(), kwds={}):
    513     """ A naive synchronous version of apply_async """
--> 514     return func(*args, **kwds)
    515
    516

/home/blake/github/dask/dask/async.pyc in execute_task(key, task, data, queue, get_id, raise_on_exception)
    260     """
    261     try:
--> 262         result = _execute_task(task, data)
    263         id = get_id()
    264         result = key, result, None, id

/home/blake/github/dask/dask/async.pyc in _execute_task(arg, cache, dsk)
    243         func, args = arg[0], arg[1:]
    244         args2 = [_execute_task(a, cache) for a in args]
--> 245         return func(*args2)
    246     elif not ishashable(arg):
    247         return arg

/home/blake/github/dask/dask/dataframe/core.pyc in empty_safe(func, arg)
    866         return ('empty', func(arg))
    867     else:
--> 868         return func(arg)
    869
    870

TypeError: unbound method count() must be called with Series instance as first argument (got Int64Index instance instead)

One solution is to rely more heavily on _partition_type
class Series(...):
    _partition_type = pd.Series
class Index(...):
    _partition_type = pd.Index

Then the implementation for count can use self._partition_type.count rather than pd.Series.count.

@mrocklin pandas does not actually have an Index.count so I don't think we should.
Their series implementation basically does:
def nunique(self):
    uniq = self.unique()
    n = len(uniq)
    if there are any nulls in uniq:
        n -= 1
    return n

So it avoids count. I think we should do something like this.

Actually using len like I suggested is bad because it forces computation of the dataframe. I'm not sure why pandas does not provide Index.count, maybe its a bug. I'll add it here anyway.

Pandas bug.

I ended up adding Index.count I don't see any reason it shouldn't be there. And it makes working with dask.dataframe easier. In general I don't mind relaxing our standards for mimicking the upstream API's.
Ready for review.

+1

Rebased and merged.


see if we can show ens address when moving ERC1155 tokens instead of ID

seems like this is possible with https://etherscan.io/address/0xD4416b13d2b3a9aBae7AcD5D6C2BbDBE25686401#readContract
namehash("firstwrappedname.eth") => 0xc44eec7fb870ae46d4ef4392d33fbbbdc164e7817a86289a1fe30e5f4d98ae85
wrapper.names(0xc44eec7fb870ae46d4ef4392d33fbbbdc164e7817a86289a1fe30e5f4d98ae85) = 0x106669727374777261707065646e616d650365746800
0x10 = 16 =><PHONE_NUMBER>777261707065646e616d65 = firstwrappedname
0x03 = 3 => 657468 = eth
0x00 = 0


NavigationDetails on SubjectDeatil/Gradeviews etc

[ ] subejctdetail
[ ] subjectdetail -> grades
[ ] grades -> grade
[ ] settings -> subject .....

@DragonCat4012 , Can you please explain the issue? I am willing to contribute.

This refers to an issue of force unwrapping subjects or Tests on multiple occasions, i don´t think in the navigation itself there are any at this moment.
Things like the optional Subject in the examView (Examscreen.swift) would be better as non-optionals since force unwrapping isnt really a good way to deal with this

Hi @DragonCat4012 , understood the problem here. Could you please assign this to me. Thank you.

Hi @DragonCat4012 , created a pull request for this issue https://github.com/AKORA-Studios/Calq/pull/96
Please review. Thank you.


Fix: go.mod version changed back to 1.18

Description:
Error installing gitleaks from source in amazon linux ec2 instance
There was a go version error in go.mod file "Maximum version supported by tidy is 1.18" but in go.mod it's 1.19.

Checklist:

[x] Does your PR pass tests?
[ ] Have you written new tests for your changes?
[x] Have you lint your code locally prior to submission?

I recommend closing this issue, see https://endoflife.date/go


Code format: keyboard focus lost

Format button takes focus; instead keep insertion point in place
(Imported from Bitbucket #25 reported by phy on 2010-06-22)

(Changed status from new to resolved.)
(phy on 2010-07-01)


[AAP-7709] Add notifications list

This PR adds the Job Notifications page (add/edit pages have not yet been built)
Jira issue: https://issues.redhat.com/browse/AAP-7709
Before:

After:

Lets make the side bar label, and the List page title the same.

The edit and copy buttons show be pinned to always show on the list item.  This is convention on other lists in controller.

The status on the list item should be a label rather than just an icon and text.
https://tower-mockups.testing.ansible.com/patternfly/notifications/notifications/

Lets add some unit tests and some e2e tests.

The status on the list item should be a label rather than just an icon and text. https://tower-mockups.testing.ansible.com/patternfly/notifications/notifications/

@AlexSCorey I am using the standard StatusCell component in ITableColumn- this keeps it consistent with all other status cells across the platform


Cannot find GB/UK postcodes

After changing the countryside to 'GB' I just get the returned JSON of 'Success: false'. This occurs when I change the vendor config files and when I also do:
$zipcode->setCountry('GB');
After method injecting it into my controller.
Searching for the same zipcode on Geonames, I see that it does in fact exist, but the class is not finding it.

Here it was falling back to zipopotamus...
Anyway, you must configure your username to use Geonames. Using 'demo' it will allow you to make one or two searches, at most.
Take a look at the docs again, have just made some changes to the source and docs and now you can configure it also via config.php, but you were already able to do this before:
ZipCode::setCountry('GB');

ZipCode::setQueryParameter('geonames_username', 'yourusername');

ZipCode::find('L23YL');


FileWatcher stops watching a file that still exists

Sometimes when I save some edits on a file (using :w in vim) in order to see the corresponding doc file updated, the watcher tells me suddenly that
ℹ [LiveUpdater]: Reacting to change in file 'XXX.jl'...
[ Info: [FileWatcher]: file 'XXX.jl' does not exist  (anymore); removing it from list of watched files.

and I have to restart LiveServer...
In case it's relevant, I am using Literate.jl to generate the corresponding XXX.md file for the docs so maybe that's an issue?
I also guess one solution would be to disallow the file watcher to think files have disappeared? (I rarely delete files while editing docs.)

Hmm that's odd, I'll need a bit more info to try to  work out what's going on but the proposal to avoid checking whether files have disappeared is not going to work because basically there's a check  isfile(filepath) and if that returns false and you still carry on, bad things will happen.
A  few questions to try to  clarify  what's going on:

in the liveserver+literate docs, which folder structure do  you use?
do you only get this from time to time or does  it happen systematically
have you tried using another editor to see if you get the same issue?

What's weird is  that the issue that you're getting means  that, at some point, julia does isfile("path/to/XXX.jl") and that returns false which triggers the warning you're seeing. I'm not aware of  anything in LS itself that could cause this. So  I'm inclined to think it may  be specific to  vim or your make.jl file is doing something strange (?).

I'm sorry I'm not sure I can build a MWE for you but I'll try to give you more info.
I use LiveServer to edit the docs of AIBECS.jl.
The structure looks like
docs
├── generate.jl
├── live.jl
├── make.jl
└── src
    └── examples
        ├── example1.jl
        ├── example2.jl
        └── ....

I ususally run
julia --project=docs --color=yes -L docs/live.jl

from the root of the package directory.
And the live.jl file looks something like
using LiveServer

sw = LiveServer.SimpleWatcher()

# source files to check for updates to avoid infinite loop
EXAMPLEDIR = joinpath(@__DIR__, "src", "examples")
EXAMPLES_jl = [f for f in readdir(EXAMPLEDIR) if endswith(f, ".jl")]
SOURCES = [
    abspath(joinpath(@__DIR__, "make.jl"))
    abspath(joinpath(@__DIR__, "src", "index.md"))
    [abspath(joinpath(EXAMPLEDIR, example)) for example in EXAMPLES_jl]
]

append!(sw.watchedfiles, LiveServer.WatchedFile.(SOURCES))

function callback(x)
    # only trigger for source files to avoid infinite loop
    if x in SOURCES
        include(abspath(joinpath(@__DIR__, "make.jl")))
        LiveServer.file_changed_callback(x)
    end
end

callback(abspath(joinpath(@__DIR__, "make.jl"))) # make sure files exist
LiveServer.set_callback!(sw, callback)

LiveServer.serve(sw; dir = abspath(joinpath(@__DIR__, "build")), verbose=true)

The issue is not systematic. Sometimes everything is fine for multiple hours of editing. Sometimes it happens on the first change. So pretty random.
I have not tried another editor yet. (Sorry!) But considering how many people use vim, I would assume other people would have had the same problem if the editor was the issue, right?
 (But I cannot guarantee that the issue will happen considering how randomly it happens.)

Could you try to  modify your callback  to add these lines and tell me whether it helped? at  the moment you don't purge the watchedfiles and this may ultimately be what causes issue.
(Re: VIM, yes I  was just doing guess work, likely that's not the issue)

OK I will try and report back when I find the time!
FWIW, note that my live.jl dates from when around the time you added the Literate.jl part, so I may have to update my scripts and folder structure. I am in the process of (slowly) rewriting docs so this is the right time for me to setup the whole Documenter/LiveServer/Literate thing properly.

does #89 and what you've done around it fix this issue?

I think so! I fixed it on my side with the same setup as the example and it works now. (Although the issue was sporadic so I will never be 100% certain!)
Closing this now... Thanks heaps!


Controller rules in React Native don't work

As far as I can tell, the  rules for react native don't do anything, they are not setting any errors.
Also the CodeSandbox link for the rules here: https://react-hook-form.com/api/usecontroller/controller/
doesn't work and has a 500 error. https://codesandbox.io/s/controller-rules-ipynf

Please use the latest version and the CSB is working


intrinsic "type"

currently there's a ton of hidden functionality in mypy that's not obvious when looking at the definitions in typeshed. an intrinsic type would make it far less confusing. that's how typescript does it (though they use a keyword)
type Uppercase<S extends string> = intrinsic

for example isinstance, which doesn't even use a typeguard, so its return type is misleading and makes the user wonder where the narrowing comes from:
def isinstance(
    __obj: object, __class_or_tuple: type | types.UnionType | tuple[type | types.UnionType | tuple[Any, ...], ...]
) -> bool: ...

Also, should it be Intrinsic or intrinsic I think the upper case would be more consistent.


Behavior of Managed Client and topic subscription

Hi,
I ran into a problem with the managed client.
Following the scenario:
1 Broker
1 Managed client
Managed client did one subscription to a topic ex. "Topic1".
Broker publishes a message to "Topic1" which was subscribed from the managed client.
Managed client gets the message on "Topic1".
At this point everything works fine.
Managed client does a second subscription to another topic ex. "Topic2".
Managed client receives the same message which was already received to "Topic1".
On every new subscription we get new messages for the previous subscriptions with the same content.
Managed Client: Subscriptions -> "Topic1", "Topic2", "Topic3"
Managed Client: New subscription -> "Topic4"
Managed Client: Received messages for "Topic1" & "Topic2" & "Topic3" (Broker and client did not publish a massage to these topics at that moment.)
Why did I receive messages on all topics when we do a new subscription to another topic?
Is this a behavior of the managed client?
I also tried this with a none managed client which does not show this behavior.
I thank you in advance for your help.

Hi,
yes this is correct (at the moment) because the managed client will send all subscriptions at the same time (which will lead to a receive of all matching retained messages). So you better subscribe to all topics at once.
But this is on the list for the next versions.
Best regards
Christian

Dear chkr1011,
thank you for your fast response.
When can we expect a release of the next version which do not have this behavior in the managed client?
Best regards

This issue has already been fixed with PR https://github.com/chkr1011/MQTTnet/pull/776 so IMO this issue can be closed as fixed.

@cstichlberger Thank you for the udpate. Yes, this should be fixed already.


[Build] Failed, node-sass error ???

Reference
https://travis-ci.org/sj-js/boxman/jobs/539616722#L1318

try this.
https://github.com/travis-ci/travis-ci/issues/9561#issuecomment-488997608


assert nullable type information by filled/blank function calls

[x] Added or updated tests

Resolves #1290
Changes
The blank and filled helpers have been added to the stubs file with new assertions from the PHPStan 1.9.0 release. With the new assertions PHPStan can infer whether a variable is !null from the return type of blank and filled.
Breaking changes
None

@canvural Are the tests ok? The blank/filled call narrows the type to be non-null in some cases for the execution branches. I found no similar test case that checked the inferred type after a function call instead of checking for a return type.

We've closed the master branch. Please open a new pull request and target the 2.x branch if you wish to re-open this pull request.


Twinkle SIP client

Project description
Twinkle is a SIP-based VoIP client
Metadata

homepage URL: http://twinkle.dolezel.info/
source URL: https://github.com/LubosD/twinkle
license: gpl2
platforms: linux

I've noticed that this package was removed

@globin: why did you remove twinkle in 538aed6dea201f3f4cee8cbfb4c2b5d075051962?

From the history probably because I removed the broken libzrtpcpp package, also it depended on qt3 which will be removed. If someone wants to repackage it cleanly feel free, but it didn't seem anyone cared about the package for the last half a year,

PR https://github.com/NixOS/nixpkgs/pull/74767

Added


correct link to the user guide

What this PR does / why we need it:
point to the correct user documentation
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Release note:

point to the correct user documentation

/merge


Update readme for SvelteKit

Current dependencies on/for this PR:

main

PR #462   👈

This comment was auto-generated by Graphite.


Added quick start guide to README

I added a quick start guide to README file and I put the notes section at the end of the file.

Looks good to me, nice to see the keyboard commands documented.

@brianjohannes can merge this when happy


Selecting parent node checkbox without selecting child checkboxes

It would be nice to be able to select parent node checkbox without selecting child checkboxes; ie Every checkbox is independent. It also means that selecting all child checkboxes does not automatically select parent checkbox. This should ideally be configurable in TreeviewConfig. Let me know if you want me to contribute this feature.

Just realized that issue #43 is referring to the same feature though the title is not misleading ! Closing this ask.

Could you give me the reason why you want checkbox should be independent. A example of real case is good. Thanks.


Style guide suggestion

Hi @valdrinkoshi,
I would like to use and follow this style guide/best practices for developing a ng app: https://github.com/johnpapa/angular-styleguide
Why do you think? it is famous (up to date) style guide for teams working on ng apps.
if you ok with that, we just have to update the .jshintrc file to match this style guide: https://github.com/johnpapa/angular-styleguide#js-hint

Also, if you agree on this style, I will "migrate" the controller to this new styleguide so the jshint:all won't failed. The --force options can be temporary used to avoid issues.

Closing this issue since it's been merged.


Sway does not start with Vulkan renderer on AMD GPU

Describe the bug
After following instructions from https://nixos.wiki/wiki/Sway, the Sway DE starts just as expected. However, when you attempt to start it with WLR_RENDERER=vulkan it fails due to:
$ WLR_RENDERER=vulkan sway
00:00:00.027 [wlr] [render/vulkan/vulkan.c:185] Could not create instance: ERROR_LAYER_NOT_PRESENT (-6)
00:00:00.027 [wlr] [render/vulkan/renderer.c:1794] creating vulkan instance for renderer failed
00:00:00.027 [wlr] [render/wlr_renderer.c:271] Failed to create a Vulkan renderer
00:00:00.027 [wlr] [render/wlr_renderer.c:333] Could not initialize renderer
00:00:00.027 [sway/server.c:79] Failed to create renderer

This is with amdgpu/mesa driver on a AMD RX 6800 XT. amdvlk is not installed since this prevents Halo Infinite from launching:
# https://wiki.archlinux.org/title/AMDGPU
{ config, pkgs, lib, ... }: {
  boot.initrd.kernelModules = [ "amdgpu" ]; # Fonts fix
  services.xserver.videoDrivers = [ "amdgpu" ]; # Wayland

  hardware.opengl = {
    # Mesa
    enable = true;

    # Vulkan
    driSupport = true;
    driSupport32Bit = true; # Steam support

    extraPackages = with pkgs; [
      # Vulkan
      #amdvlk # Outdated

      # HIP
      #rocm-opencl-icd
      #rocm-opencl-runtime

      # VAAPI
      vaapiVdpau
      libvdpau-va-gl
    ];
  };

  # HIP
  #systemd.tmpfiles.rules = [
  #	"L+    /opt/rocm/hip   -    -    -     -    ${pkgs.hip}"
  #];
}

Steps To Reproduce
Steps to reproduce the behavior:

Follow: https://nixos.wiki/wiki/Sway,
Run: $ WLR_RENDERER=vulkan sway

Expected behavior
I was able to use WLR_RENDERER=vulkan with my previous NVIDIA GPU.
Notify maintainers
@primeos
@Synthetica9
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.2.13, NixOS, 23.05 (Stoat), 23.05.19700101.dirty`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - channels(root): `"home-manager, nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Not sure if related but I've also discovered that starting Sway with default renderer (gles2) triggers this warning:
$ sway
amdgpu: amdgpu_cs_ctx_create2 failed. (-13)
00:00:00.030 [wlr] [types/wlr_drm_lease_v1.c:715] No DRM backend supplied, failed to create wlr_drm_lease_v1_manager

I can run Steam, games and my Brave browser without issues even though the warning is present.

I've verified that I'm able to use WLR_RENDERER=vulkan with Hyprland Wayland compositor.
Is something missing in the packaging process of Sway in that case?

I'd suspect version mismatch like in https://github.com/NixOS/nixpkgs/issues/228586#issuecomment-1527030148

@vcunat Hardware acceleration through MESA works if Sway is launched with GLES2 api. Are Vulkan and GLES2 relying on different subconponents of MESA in that case (since I'm not using amdvlk)?

I don't know the details of this, I'm afraid.

Try adding:
environment.systemPackages = [ pkgs.vulkan-validation-layers ];

Thanks @azuwis
Now there's a different error:
$ sway
2023-06-04 16:12:35 - [main.c:582] wl_display_roundtrip failed
Segmentation fault (core dumped)

Here's the full log from: $ sway -d |& tee log.txt

Let's close until proven otherwise.


Access blocked: drive for Google Drive’s request is invalid

I try to sign in after installing drive on my Ubuntu terminal to get an authorization code. However, I get the error that
Access blocked: drive for Google Drive’s request is invalid
You can’t sign in because drive for Google Drive sent an invalid request.

same issue.

Same

I have to say that the repository is kinda not maintained anymore by looking at the activity.

I have to say that the repository is kinda not maintained anymore by looking at the activity.

I honestly believe that your best bet it to migrate to rclone.

@hightowe Thanks for pointing out at rclone. Never heard about it before.

Do you guys have a guide on how to migrate to rclone without much hassle?


[BUG] Invalid function name

This function name is wrong. In browser console:
Uncaught TypeError: alice.fromWif is not a function
    at HTMLButtonElement.setWifButton.onclick (main.js:198)
setWifButton.onclick @ main.js:198

Hello @zh , this demo is a bit outdated, but haven't.  There may be other changes in the API.

Hello @zh , this demo is a bit outdated, but haven't.  There may be other changes in the API.


Fix PDH title, use Windows Performance Counters instead of PDH

What does this PR do?
The PDH check was titled WMI Check, this changes it to the proper name. It also changes it to Windows Performance Counters instead of pdh, so that we get a better name for it. While we can't easily change the name of the check, changing the title isn't so hard.
Motivation
What inspired you to submit this pull request?
Review checklist

[ ] PR has a meaningful title or PR has the no-changelog label attached
[ ] Feature or bugfix has tests
[ ] Git history is clean
[ ] If PR impacts documentation, docs team has been notified or an issue has been opened on the documentation repo

Additional Notes
Anything else we should know when reviewing?

You should also update the public title parameter in the manifest: https://github.com/DataDog/integrations-core/pull/1999/files#diff-6c479598fb0dc286f8951fc487f1a32bR11

@l0k0ms I'll be working on this in a few stages, I'll do that as well


Adjust spelling of "returns" in docs for DisjunctionMaxQuery

Hi! I just noticed this while browsing the docs, and it was easy enough to send a PR - please let me know if the original spelling was intended and I'm happy to abandon the PR

Thank you!


Missing lines in the output when using with PowerShell

Environment
Windows build number: Microsoft Windows NT 10.0.18363.0
Windows Terminal version (if applicable):  0.11.1191.0

Any other software?

Powershell:
Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      18362  752

CPython, version irrelevant. Doesn't even have to be Python,
it's just what I happened to use in the repro steps below.

Steps to reproduce

Create the following Python program:for i in range(30):
    print('*' * 20)
    print('-' * 20)

Open Windows PowerShell tab.
Run this program: python hello.py
Run this program again: python hello.py
Scroll up using mouse wheel.

Expected behavior
PS C:\temp> python hello.py
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
PS C:\temp> python hello.py
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
PS C:\temp>

Actual behavior
PS C:\temp> python hello.py
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
PS C:\temp> python hello.py
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
********************
--------------------
PS C:\temp>

This happens on Terminal Preview + PowerShell, but not on Terminal Preview + cmd or on standard Windows terminal + PowerShell.
It's not just a rendering glitch. When the output is copied to the clipboard, it still misses a line.
When trying it with a window of a different height, a different line is missing.

I see similar results running the PowerShell equivalent of the Python script.
1..30 | foreach { write "$_ $("*"*20)";Write ("-"*20)}

The first time I run the command I can scroll up and see results as expected. But when I run it a second time and scroll up to the first results I'm missing a line.  When running in PowerShell 7 it is even worse as sometimes I'm missing half the of the previous output. But that may be a quirk when running Clear-Host.
I get similar results with a shorter number of iterations like 15.
I also tested with a command like Get-Process. I ran the command, then copied and pasted the results into the PowerShell ISE to make it easy to see line numbers. I had 300 lines. Then I ran Get-Process again and scrolled up to the previous result to again copy and paste. Now I only get 299 lines. This is in line with the other testing.

This sounds weirdly like this old PSReadline issue where it was telling us to “scroll the screen” instead of “insert a new line” before it displayed the prompt ...
If you just hold down Enter at your powershell prompt, does it stop putting your prompt into the scrollback at some point?
https://github.com/PowerShell/PSReadLine/issues/724

@DHowett-MSFT , if I keep pressing Enter in a fresh PowerShell tab, the prompt appears every time. But the output buffer stops growing once it occupies exactly one screen and the prompt is at the very bottom. So there is never a scroll bar. Few more presses make the initial PowerShell message disappear. Past this point, every time I press Enter, nothing on screen changes but for a small redraw flicker. I don't know if it's because one of the old lines disappears, or because the new prompt doesn't appear.

So, alright, this one is a somewhat sad story.

Past this point, every time I press Enter, nothing on screen changes but for a small redraw flicker.

Yep. PowerShell that comes with Windows ships with a version of PSReadline that's frozen in time. It was built somewhere between 2.0.0-beta2 and 2.0.0-beta3. Unfortunately, that means it doesn't have the fix for PowerShell/PSReadline#724.
NOTE: it's hard to tell, because Get-Module PSReadline will not tell you the beta number! It will report 2.0.0 every time.
Because it doesn't have the fix for PSReadline 724, when it prints a new line at the bottom of the screen, it tells the whole console to "shift your contents up by one line". This means that the console window Terminal is talking to needs to redraw 100% of the content on the screen, because it doesn't currently support the "scroll" operation (that's another can of worms :smile:).
It moves to the top line, and overwrites it with the line below it . . . and then does that until it gets to the bottom line, which it erases.
The top line is destroyed instead of being placed into the scrollback.
If PSReadline just emitted a newline character, the topmost line would be pushed up into the scrollback, and the new bottom line would be naturally created blank with the appropriate attributes.
This is fixed in PowerShell 6+ and 7.
Because the inbox Windows PowerShell is stuck at 5.1, with an outdated version of PSReadline, this may never get fixed -- but there isn't too much that Terminal can do about it. It happens in VSCode and WSL as well, for the same reason.
@zadjii-msft: is this something that we could shim? Now that we've cracked that cask of ale open, I want to drink from it all the time :wink:
Or, if we supported ConPTY passing through scroll events, ... this might magically start working again.
For now, resolving External.

@DHowett-MSFT , if old PowerShell and Windows are to blame, why doesn't this happen when old PowerShell is used in the standard Windows terminal instead of Terminal Preview?

in case anybody else got here and was a little confused by the "this may never get fixed" statement made earlier, @DHowett-MSFT is talking about Powershell 5.1. You can still install Powershell 7, but note that it will co-exist alongside Powershell 5.1. So you will have to set Windows Terminal to use Powershell 7 by default if you don't want to worry about the missing lines issue ever again.


Add setting for Forum Bot ID and Editing Forum ID in config.php

The implementation for the Request an Edit feature used a hard-coded number for the forum and the user to post the thread as. These should be put into config.php.

Done in fa8a3a595647142ef1eb2668976e2769af733b7e and c247cf916e6d46fa8d712057c7334835d2954a2d


Render verse numbers as exponent/superscript-style

  switch (digit) {
    case "0":
      return "⁰"
    case "1":
      return "¹"
    case "2":
      return "²"
    case "3":
      return "³"
    case "4":
      return "⁴"
    case "5":
      return "⁵"
    case "6":
      return "⁶"
    case "7":
      return "⁷"
    case "8":
      return "⁸"
    case "9":
      return "⁹"
      ```

Hey, just wanted to let you know, I did create a pull request for this issue.


unifi ap?

ap-lr
ap-ac-lr
can use this mod?

If I'm not mistaken those acronyms are for Access Points, not Cloud Gateways. The mod is installable only on appliances running UnifiOS with Network app, as stated in the readme, whatever AP you have in front.

If I'm not mistaken those acronyms are for Access Points, not Cloud Gateways. The mod is installable only on appliances running UnifiOS with Network app, as stated in the readme, whatever AP you have in front.

because unifi ap,
WiFi client ipv6 isn't working, ipv4 OK。
LAN client Ipv4/6 is OK。

Can't test any of that, as I'm using a UDR (also acts as the only WiFi AP in my appartment), and Unifi switches for wired clients. IPv6 seemed to work for smartphones (except sometimes Android who has it's own issues, not related to the UDR AP). In addition, I'm not (at all) knowledgeable about wireless, so I can't help.

Can't test any of that, as I'm using a UDR (also acts as the only WiFi AP in my appartment), and Unifi switches for wired clients. IPv6 seemed to work for smartphones (except sometimes Android who has it's own issues, not related to the UDR AP). In addition, I'm not (at all) knowledgeable about wireless, so I can't help.

only continue to seek help in the community, otherwise ，only give up unifi ap.

As it's not directly related to the dhcpv6-mod repo, and as I can't do much about it, I'm closing this issue. Feel free to reopen if needed.


[Refactor] Made notification system

Signed-off-by: Yash Kamboj<EMAIL_ADDRESS>Description
Made notification system

This PR fixes #
Notes for Reviewers
Signed commits

[ ] Yes, I signed my commits.

Please add refactor and ui labels.

Merge conflict.


No module named jupyter_client.kernelspec

Dear jupyter-notebook users,
I'd like to install jupyternotebook on ubuntu 16.04 on VMware, and the I want to input C kernel which I followed the instructions step by step:
pip install jupyter-c-kernel
install_c_kernel
jupyter-notebook
on the second step the following error appears:
Traceback (most recent call last):   File "/home/wanglei/.local/bin/install_c_kernel", line 8, in <module>     from jupyter_client.kernelspec import KernelSpecManager ImportError: No module named jupyter_client.kernelspec
Has anyone solved this problem?

same, use docker instead

same，i use in Linux Deepin,and i can't  solve the problem

same，i use in Linux Deepin,and i can't solve the problem

oh,i made it,i installed the anaconda under the root,and then run all commends as root,and the problems be solved.

Is this problem solved? I'm still having the same issue.


refactor: make next4 compliant

This PR changes the following:

Update dependencies to use the latest next4 version
Changes random business/bridgename name generation to comply with new validation (it previously used Math.random() which returns an illegal period character)
Changes default uri values to comply with new validation

Thanks for submitting this pull request! A maintainer will review this in the next few days and explicitly select labels so you know what's going on.
If no reviewer appears after a week, a reminder will be sent out.

A collaborator has approved this PR. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait.
Thank you for your contribution!

Your pull request has been merged but was not assigned a bounty tier. A maintainer will assign a bounty tier to this pull request in the next few days.

Your pull request has been merged and marked as tier 4. It will earn you $20 USD.


Fixing complex cltype byte serialization for deploys

BYTE_ARRAY
LIST
MAP
OPTION
TUPLE_1
TUPLE_2
TUPLE_3

Removing FixedList type as per error fix in documentation

Relates to #204
@i-mills This fixes the issue with transferring erc20 tokens when calling StoredContractByHash. Please, merge this into your branch after successfully merging into dev.
Thanks!


Fix tree table data selection

RHCLOUD-36122
Fixed tree table data selection so parent nodes are returned in the selected array as well

Preview: https://react-data-view-pr-data-view-127.surge.sh


TypeError: bcrypt.hashSync is not a function

I'm getting this error and I cannot understand what's wrong.
I've tried also to work with the async version, but I'm getting the same error.
    at Object.hashIt (hash.ts:4:19)
    at store (UserController.ts:29:26)
    at async dispatch (middleware.ts:41:7)
    at async dispatch (middleware.ts:41:7)
    at async dispatch (middleware.ts:41:7)
    at async Application.#handleRequest (application.ts:252:9)``

Hi,
Could you provide a example your code that causes this issue so I can take a look please?
Unfortunately those logs don't provide me with enough information to be able to help.
Thanks,
James

Hi,
I've pushed this repository https://github.com/rzulian/deno-mongo
You can replicate the problem with a post localhost:8000/user
`body:
{
"username": "name",
"email"<EMAIL_ADDRESS>"password": "test"
}

Perfect thanks, could you clarify what you're using to run the application too (including flags) please?
I'll have a look a little later on.

I'm using these flags deno run --allow-net --allow-write --allow-read --allow-env --allow-plugin --unstable main.ts

I just cloned your repo, removed all the DB actions so I don't have to run mongo and left the "POST" method. I added a console.log after const pwd = await bcrypt.hash(value.password); to log out pwd and it does it succesfully.
I'm not sure what the issue is that you're having but I don't think it's something to do with this bcrypt module.
Have you updated deno to the latest version (deno upgrade) and reloading your cached modules (deno cache reload main.ts)?
Hopefully that should sort you out but if it doesn't you might find some better help in the Deno discord

I've reloaded the cached modules deno cache --reload main.ts and now everything is working fine 👍 .
I'm sure I did it before I submitted the issue :(
I'm sorry that I've wasted your time. Thanks for your support!

Glad to hear it's working now. It's all good, I didn't spend too long on it, don't worry! 😁


[PkgEval] HDFS may have a testing issue on Julia 0.3 (2015-04-04)

PackageEvaluator.jl is a script that runs nightly. It attempts to load all Julia packages and run their tests (if available) on both the stable version of Julia (0.3) and the nightly build of the unstable version (0.4). The results of this script are used to generate a package listing enhanced with testing results.
On Julia 0.3

On 2015-04-02 the testing status was No tests, but package loads.
On 2015-04-04 the testing status changed to Package doesn't load.

No tests, but package loads. means that PackageEvaluator did not find tests for your package. However, trying to load your package with using worked.
Package doesn't load. means that PackageEvaluator did not find tests for your package. Additionally, trying to load your package with using failed.
This issue was filed because your testing status became worse. No additional issues will be filed if your package remains in this state, and no issue will be filed if it improves. If you'd like to opt-out of these status-change messages, reply to this message saying you'd like to and @IainNZ will add an exception. If you'd like to discuss PackageEvaluator.jl please file an issue at the repository. For example, your package may be untestable on the test machine due to a dependency - an exception can be added.
Test log:
>>> 'Pkg.add("HDFS")' log
INFO: Cloning cache of HDFS from git://github.com/JuliaParallel/HDFS.jl.git
INFO: Installing HDFS v0.1.0
INFO: Package database updated

>>> 'using HDFS' log
Julia Version 0.3.6
Commit 0c24dca (2015-02-17 22:12 UTC)
Platform Info:
  System: Linux (x86_64-unknown-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Nehalem)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3
/home/vagrant/testpkg/v0.3/HDFS

ERROR: could not load module libhdfs: libhdfs: cannot open shared object file: No such file or directory
 in dlopen at c.jl:19
 in include at ./boot.jl:245
 in include_from_node1 at ./loading.jl:128
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:51
 in include at ./boot.jl:245
 in include_from_node1 at loading.jl:128
 in process_options at ./client.jl:285
 in _start at ./client.jl:354
while loading /home/vagrant/testpkg/v0.3/HDFS/src/HDFS.jl, in expression starting on line 35
while loading /vagrant/releaseAL/PKGEVAL_HDFS_using.jl, in expression starting on line 4

>>> test log
no tests to run
>>> end of log

HDFS.jl now requires libhdfs.so and JVM shared objects during package load. Looks like JVM is already available in PackageEvaluator.jl.
So, libhdfs.so is the only requirement which can be got from a Hadoop binary download. But I'm not sure if we should have the runtests.jl download it each time, or whether we can have it included in PackageEvaluator. I also have another Hadoop related package coming up which may require a similar treatment.
@IainNZ What do you suggest? Otherwise, can we add an exception for HDFS.jl?

How big is the download? If its not bad, then should just be a matter of adding a line or two
https://github.com/IainNZ/PackageEvaluator.jl/blob/master/scripts/setup.sh
right?

It's around 200MB. And yes, it just needs a wget and untar.

Is there any chance you could try it out in the Vagrant VM and estimate how long that adds (I'm guessing not long) and whether the tests run in the memory constraints of the VM?

@IainNZ The VM memory allocated does seem to be small, but it may be fine for some simple tests. I don't think it will add too much time to the tests. Will give it a try.

@IainNZ It seems that the instructions to install the Oracle JVM https://github.com/IainNZ/PackageEvaluator.jl/blob/b6ca87ced5c94d8636ea9b64078edc40ee5e4e0e/scripts/setup.sh#L79 do not work anymore.
Do you see that in your setup too?
Any objections to using OpenJDK 7 instead with apt-get install openjdk-7-jdk?

@IainNZ The basic tests seem to work fine in the VM. The modified setup.sh I used is here: https://gist.github.com/tanmaykm/c3e080421a2ffdf1ea59

Oh wow, that must have been a recent change, it was working a couple of days ago. Do you know if JavaCall etc work with OpenJDK 7 (@aviks ?).
That setup script is kinda long, maybe the PR could put that in a separate file

Yes, that can go as a separate script.
@aviks, JavaCall tests failed here, but fixing that still results in NullPointerException error further down.

@tanmaykm I just updated pkg.julialang with fresh results, JavaCall and Taro seem to be working fine, so I'm not sure why it didn't work for you.

Strange, I did not find java installed in the VM when I built it, and issuing the apt-get commands threw an error. Let me try it again.

Did you do vagrant up releasesetup?

I actually ran runvagrant.sh, slightly modified to run only on release.
It's at /home/tanmaykm/test/PackageEvaluator.jl on julia.mit.edu.
It's still running, but I can already see the error: ==> release: E: Unable to locate package oracle-java7-installer in release.out.txt

@tanmaykm : you need to run
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update

before the apt-get install oracle-java... line will work. Those above invocations probably go in the base image.

I am now running the unmodified setup.sh. I suppose this was already being done?

Ah! I see that python-software-properties is not being installed in the latest setup.sh.
@IainNZ Are the files on github the latest?

Yes. I'm not making any claim about setup.sh working on a given machine, its just designed to work on a clean install of Ubuntu 12.04, which it definitely does.

(i.e. python-software-properties doesn't seem to be needed on that image)

Ah ok... But when a new vagrant box is being setup, doesn't setup.sh run on a clean Ubuntu 12.04 anyway? Then maybe the difference is due to recent changes in the base ubuntu/precise64 image?
I could get java installed by including python-software-properties as @aviks suggested. I'll fetch ubuntu/precise64 afresh and try. And if it still requires python-software-properties, will add that to the changes in the PR. Does that sound good @IainNZ ?


Add ability to retrieve all rules

What is the goal of this PR?
Since Rule was refactored in Grakn 2.0 to no longer be a subtype of Concept, we lost the ability to retrieve all rules using match $x sub rule; get;.
So, to allow the user to retrieve all rules, we now add getRules to the LogicManager, enabling use of tx().logic().getRules().
What are the changes implemented in this PR?
Add getRules to LogicManager

plz do comments then feel free to merge

plz do comments then feel free to merge


Eugen/cherry pick superfluid test scaffolding updates

Closes: #XXX
Description

For contributor use:

[ ] Targeted PR against correct branch (see CONTRIBUTING.md)
[ ] Updated relevant documentation (docs/) or specification (x/<module>/spec/)
[ ] Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
[ ] Re-reviewed Files changed in the Github PR explorer

Codecov Report

Merging #1052 (a594d4e) into main (bff6f64) will increase coverage by 0.04%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1052      +/-   ##
==========================================
+ Coverage   20.60%   20.64%   +0.04%
==========================================
  Files         193      193
  Lines       25237    25239       +2
==========================================
+ Hits         5199     5210      +11
+ Misses      19084    19074      -10
- Partials      954      955       +1

Impacted Files
Coverage Δ

x/superfluid/keeper/stake.go
53.48% <0.00%> (-0.63%)
:arrow_down:

x/superfluid/keeper/hooks.go
72.22% <0.00%> (+5.55%)
:arrow_up:

x/superfluid/keeper/epoch.go
67.92% <0.00%> (+5.66%)
:arrow_up:

x/superfluid/keeper/superfluid_asset.go
84.61% <0.00%> (+53.84%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b27b5b2...a594d4e. Read the comment docs.

Small change for code sanity requested, otherwise LGTM!

Your suggestion is merged and checked the test pass


page shown in the guide does not include column like "Family" and there is no button as "clear all sizes"

[Enter feedback here]

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

ID: 9303c1e0-f02e-609e-9030-e0f2ddaff7de
Version Independent ID: 8248d55a-ed01-c0a2-29ab-f0e419b45026
Content: Quickstart - Create Intel SGX VM in the Azure Portal
Content Source: articles/confidential-computing/quick-create-portal.md
Service: virtual-machines
Sub-service: workloads
GitHub Login: @stempesta
Microsoft Alias: stempesta

there is no filter named family as described in the document

Also when i search for a word in the page, chrome finds 2 results but it doesn't jump to the search result. Search function does not work on your web page

What is described in the document as "Family" should actually be type. you need to search for type instead

not "Family"

@yozsoy Thank you for the feedback!  I'm going through your screenshots and the documentation and will get back to you shortly.

@yozsoy Sorry for the confusion and thank you again for bringing this to our attention.  The current steps are as you described and I'll get a PR out to update this:

Click on + Add filter
For Filter type, select Type
Then select Confidential compute from the next dropdown


Feature Request: Access to documents; Score function

Hi Michael,
thank you for the great crate. It works great for me.
There are two small things that would make it even better.
I am mostly using the SearchEngine (following your search example in the readme):

access to the underlying hashmap aka document (maybe even the other parts of the struct), alternatively a get() trait to return all documents.
a score function which returns the score instead of the top K results (eg the search() function).

For the second idea, I oftentimes use the following code, which feels a bit clunky:
use bm25::{Document, Language, SearchEngineBuilder, SearchResult};

let corpus = [
    "The rabbit munched the orange carrot.",
    "The snake hugged the green lizard.",
    "The hedgehog impaled the orange orange.",
    "The squirrel buried the brown nut.",
];

let search_engine = SearchEngineBuilder::<u32>::with_corpus(Language::English, corpus)
    .build();

let mut res: Vec<f32> = vec![0.0; corpus.len()];
let search_results = search_engine.search("orange", corpus.len());

for sr in search_results {
  let id: usize = sr.document.id as usize;
  res[id] = sr.score;
}
// res now holds the scores for each document; 0 if no match is found

Hi @DavZim, thanks for using the crate, and for your feedback!
I hadn't thought of exposing the scoring in the search engine: the aim was to provide an interface that hides these details. Your suggestion raises a gap in the API of this crate: it exposes embedding and searching, but not scoring. I've not yet come across a use-case where I've needed direct access to a scoring function, so I'm interested in what your use-case is. To help me put together an API that makes the most sense, Is this something you're willing to share?

Hi Michael,
Sure, one of these use cases is hybrid search. Search through a corpus of text using both bm25 as well as vector cosine similarity using embeddings.

Hi David,
That's interesting - so you're wanting to implement hybrid search yourself, rather than creating sparse embeddings and deferring the IDF and re-ranking to a vector database, e.g., Qdrant?
For your hybrid search implementation, why do you need scores for all documents (if I've understood your request correctly?). Could you not just do a top-k search in both the sparse and dense spaces and then combine the results with RRF?

Hi David,
Thanks for sharing more context - that makes sense. I could imagine an alternative solution in this context is to take the top k results from each sub-query, then combine with RRF or similar, and finally take the top n results from the combined set (where k >> n).
In either case, I'm currently in the process of some quite significant changes that I hope will make this easier for you. I'll update you here when it's ready :)

Hi David,
I've just released v1.0.0, which aligns closer with what I hoped the crate would be when I first started writing it. Included in this release is the new Scorer type that lets you (1) score individual document embeddings by their id; and (2) get all matches to a query embedding (i.e., all documents with a non-zero score). You can think of it like an in-memory sparse vector database with a BM25 query API. It also doesn't store the document text: if you're using the scorer directly, you're likely already storing the document text elsewhere so this saves some memory. Also, if you're using the SearchEngine, I've added an iter function that returns an iterator over all documents.
I hope that these additions help with your use-case!
See the release notes for the full list of changes.


Update changelog to reflact federate resource changes

I realised that I did not update the CHANGELOG per PR, that I was supposed to do and @marun did the job of reflecting the updates in the release notes in the last 3 releases he made. Hearty thanks @marun for doing that.
Also not sure if its worth updating the details now; but raising this anyways to keep the CHANGELOG in sync with the release notes.

@irfanurrehman I think the point of the changelog is more to help in creating release notes, so fyi I don't think there is a need for updating for already released version.  The process of creating the release notes is manual for now - it requires comparing the changelog with the commits since the previous release and then judicious editing for cohesiveness and clarity.
/lgtm


Support for dynamic size types

Brief feature description
At the moment it is impossible to send types in a zero copy manner which have a size that is only known at runtime. The current approach is to use a std::vector or similar container and copy/serialize the content into an untyped message via the untyped publisher.
I propose to adjust our containers cxx::vector, cxx::string and maybe later cxx::(forward)list so that they support dynamic size instead of only compile time size.
Detailed information
The cxx containers should be extended so that a custom allocator can be attached which allocates memory inside of the shared memory.

The extension should be done in a manner so that the capacity template parameter still works, e.g. cxx::vector<int, 10> bla; should create a vector with a stack allocator of size 10.
The allocator should not effect function developers which are using such containers as input parameters. This would be bad: void myFunction(cxx::vector<int, SpecificAllocator> & v); we want void myFunction(cxx::vector<int> &v) without providing the allocator type.
Since the containers are zero copy containers the capacity has to be reserved first before filling them, otherwise intransparent copies occur due to resizing allocated memory which cannot be done in a contiguous way.cxx::vector<int, SomeAllocator> myVec;
myVec.reserve(10); // only after reserve the container can be filled with elements, can be called only once
myVec.emplace_back(1234);

see also previous discussion in #594
Usage example
struct MyData {
  MyData(Allocator & allocator)
    : vecData(allocator), text(allocator) {}

  int data;
  cxx::vector<int, Allocator> vecData;
  cxx::string<Allocator> text;
};

auto sample = publisher.loan();
sample.value()->vecData.reserve(1234); // reserve 1234 elements in vector, can be called only once
sample.value()->vecData.emplace_back(4249);

sample.value()->text.reserve(12);
sample.value()->text.assign("hello world");
sample.publish();

Tasks

[ ] Write design document
[ ] Implement allocator which does not need to be configured, (see mempool config of roudi)
[ ] Write example to demonstrate C++ use case with cxx::vector and cxx::string
[ ] Write example to demonstrate in C++ a C use case

struct MySample {
  void * data;
  int dataLength;
};

// use instead
struct MySample {
  cxx::vector<uint8_t> data;
};

Further Information

See #488 containers with a size of zero.

@Indra5196 @rex-schilasky this is maybe interesting for you. Especially the Usage example, would you be happy with such an API or do you see some problems?

Nice feature & ideas!
Few questions that popped up regarding 74f6d10:

What happens if the user is using the ShmAllocator but has no shared memory mapped to virtual address space?
I assume the ShmAllocator would be part of iceoryx_posh and not iceoryx_hoofs, correct?

The allocator should not effect function developers .. without providing the allocator type

Can you elaborate on how you want to solve it?

You can also answer them later in the design PR or maybe it's also a good idea to put this onto the agenda of tomorrow's iceoryx developer meetup.
@ZhenshengLee might also be interesting for you.

@mossmaurice I am currently in the middle of writing the design document and still working on this whole concept. I would suggest that we handle those questions in the upcoming design document PR. I hope that it will pop up at the end of the week.

@elfenpiff in general it sounds very promising that iceoryx can handle dynamic size types. Would that fix the issue 'fixed-size types only' for the ROS2 cyclonedds/iceoryx setup ?
For eCAL the current iceoryx write logic is very primitive and looks like this
ecal/core/src/readwrite/ecal_writer_iceoryx.cpp
size_t CDataWriterSHM::Send(const SWriterData& data_)
  {
    if (!m_publisher) return 0;
    size_t ret(0);

    uint32_t payload_size(static_cast<uint32_t>(data_.len));
    uint32_t payload_alignment(static_cast<uint32_t>(alignof(void*)));
    uint32_t header_size(static_cast<uint32_t>(sizeof(data_)));
    uint32_t header_alignment(static_cast<uint32_t>(alignof(SWriterData)));

    m_publisher->loan(payload_size, payload_alignment, header_size, header_alignment)
      .and_then([&](auto& userPayload) {
        // loan successful
        // copy payload header
        std::memcpy(iox::mepoo::ChunkHeader::fromUserPayload(userPayload)->userHeader(), &data_, sizeof(SWriterData));
        // copy payload data
        std::memcpy(static_cast<char*>(userPayload), data_.buf, data_.len);
        // publish all
        m_publisher->publish(userPayload);
        ret = data_.len;
      }).or_else([&](auto& error) {
        // loan failed
        std::stringstream ss;
        ss << "CDataWriterSHM::Send(): Loan of iceoryx chunk failed ! Error code: " << static_cast<uint64_t>(error);
        Logging::Log(log_level_fatal, ss.str());
      });

    return ret;
  }

where SWriterData contains the header and the payload information
ecal/core/src/readwrite/ecal_writer_base.h
struct SWriterData
    {
      const void*  buf;
      size_t       len;
      long long    id;
      long long    clock;
      size_t       hash;
      long long    time;
    };

so the SWriterData struct is the interface from eCAL to the writers (UDP/SHM). I have two questions ..

Is this approach in general iceoryx like from performance perspective ?
Will this feature give some improvement here ?

@elfenpiff thank you for your explanation. Yes the payload memcpy hurts mostly. To use a cxx::vector<uint8_t> inside the SWriterData struct would be perfect for sure. Currently we can not do so because this would impact many eCAL communication layer (all based on that struct) and finally the user API that is providing this address. But we keep this in mind.

Nice feature & ideas!
Few questions that popped up regarding 74f6d10:
@ZhenshengLee might also be interesting for you.

@mossmaurice long time no see!
As my repo ros2_shm_msgs finished recently, I got stars and the feedback from https://github.com/eProsima/Fast-DDS/discussions/2773#discussioncomment-3078085

pre-defining data of various sizes (1m~8m) would cause a huge waste for my application,

So, this feature will give a chance to resolve this.

Some unrelated experiments I did on passing a std::vector as a void pointer.


Reduced FPS

Thanks for much for doing this. I tried out the CoreML version of this and noticed that FPS for prediction is lower than what it used to be with bare bone MPS [using your Forge project]. Would you know why that might be the case ?

I think they are about the same now. What sort of FPS are you getting and on what device?

I am getting around 4.5 FPS on  iPhone 7. You Forge example was giving ~9 FPS on iPhone 6s. So definitely it has taken a hit.

Averaging ~7 FPS and ~0.13 seconds/prediction on iphone 7 running iOS 11, using the CoreML project from this repository without modifications


The implemented DSN in this repo seems different from the one mentioned in the essay

Can you give me some explanation for better understanding of the DSN function defined in this repo?

Thank you for your question. The DSN implementation was one of the main challenges I encountered while implementing EGAT. You can refer to testlib.py, where I explored several approaches to implement DSN. The final implementation is the most efficient solution I could find.


Failed to execute 'fetch' on 'Window'

Describe the bug
When trying to upload a file using uppload v1.1.0 it fails
Error:
Failed to execute 'fetch' on 'Window': The provided value is not of type '(sequence<sequence> or record<ByteString, ByteString>
To view error look in console log or close modal window. Modal wrongly says file was uploaded.
To Reproduce
Set endpoint on an Angular v2-7 app and try and upload
Example:
Go to https://stackblitz.com/edit/uppload-angular-aq3awx and upload a file.
You will then see exception:
Failed to execute 'fetch' on 'Window': The provided value is not of type '(sequence<sequence> or record<ByteString, ByteString>
Expected behavior
File would be uploaded to endpoint. Endpoint is never touched

You are right, this needs a fix.

Hello!
What would be the workaround for this issue?
I am struggling already for a few hours....

This is super high priority in my list of work to do, but the current workaround would probably be to create a custom function, uploadFunction, which takes the uploaded image as a parameter and sends it to your server using axios or window.fetch.
You can pass your custom upload function in the constructor.

Thank you very much for this super fast response!
So I had this which gave the above error
				endpoint: {
					method: 'POST',
					url: '/file-upload.php'
				},

And when I use this I get another error in a red messagebox:
Error: SyntaxError: Unexpected end of JSON input.
				uploadFunction: (file, metadata) => {
					return new Promise((resolve, reject) => {
						fetch('/file-upload.php', {
							method: 'POST',
							body: file
						})
							.then(response => response.json())
							.then(json => {
								let url = json.url;
								resolve(url);
							})
							.catch(error => reject(error));
					});
				}

The PHP function I use is working with another application that uses dropzone:
<?php

header('Access-Control-Allow-Origin: *');

// from http://www.startutorial.com/articles/view/how-to-build-a-file-upload-form-using-dropzonejs-and-php

$ds = DIRECTORY_SEPARATOR;
$storeFolder = 'uploads';

if (!empty($_FILES)) {
	$tempFile = $_FILES['file']['tmp_name'];
	$targetPath = dirname(__FILE__) . $ds . $storeFolder . $ds;
	$targetFile = $targetPath . $_FILES['file']['name'];
	move_uploaded_file($tempFile, $targetFile);
}
?>

Looks like the error is that your PHP server is not responding with any JSON.
I'd suggest you change the if block with:
if (!empty($_FILES)) {
	$tempFile = $_FILES['file']['tmp_name'];
	$targetPath = dirname(__FILE__) . $ds . $storeFolder . $ds;
	$targetFile = $targetPath . $_FILES['file']['name'];
	move_uploaded_file($tempFile, $targetFile);
        echo json_parse(array("url" => $targetFile));
}

Tried that but same problem...

Now I made a new upload function based on axios.
No error messages, it says uploaded! But no file is in the uploads folder...
uploadFunction: file => {
	return new Promise((resolve, reject) => {
		var formData = new FormData();
		formData.append('image', file);
		axios
			.post('/file-upload.php', formData, {
				headers: {
					'Content-Type': 'multipart/form-data'
				}
			})
			.then(response => {
				console.log(response);
				resolve(response);
			})
			.catch(error => reject(error));

			// fetch('/file-upload.php', {
			// 	method: 'POST',
			// 	body: file
			// })
			// .then(response => response.json())
			// .then(json => {
			// 	let url = json.url;
			// 	resolve(url);
			// })
	});
}

It seems that there is no data to be uploaded?
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAPc0lEQ…gqmyqx7tN1jOFxo9y3uZyJcSmHqRCVfYD0WZlF2eLB/wL6ZbyWE3VoVwAAAABJRU5ErkJggg==
Home.vue?76f2:123
{data: "", status: 200, statusText: "OK", headers: {…}, config: {…}, …}
config: (...)
data: ""
headers: (...)
request: (...)
status: (...)
statusText: (...)

Home.vue?76f2:152 File uploaded!
{…}
config: Object
data: ""
headers: Object
access-control-allow-origin: (...)
connection: (...)
content-length: (...)
content-type: (...)
date: (...)
host: (...)
x-powered-by: (...)
__ob__: Observer {value: {…}, dep: Dep, vmCount: 0}
...
__proto__: Object
request: (...)
status: 200
statusText: "OK"
__ob__: Observer {value: {…}, dep: Dep, vmCount: 0}

....

Hello!
What would be the workaround for this issue?
I am struggling already for a few hours....

I'm waiting since 19/3 of this year :-P

What are you trying to do?
What I'm trying it's to have my own function to upload with PHP but it seems not send values of image only the "Request Payload" in php file.
Gives me the JSON error to. I need to save in my server and return that url address to be used in input text box.

Implemented vue-dropzone to check whether my .php script works - flawless...
4 minutes work to get a working dropzone...
Does it make sense to fallback to an earlier version?
BTW; the given example does no real uploading of a file...

It seems that there is no data to be uploaded?
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAPc0lEQ…gqmyqx7tN1jOFxo9y3uZyJcSmHqRCVfYD0WZlF2eLB/wL6ZbyWE3VoVwAAAABJRU5ErkJggg==
Home.vue?76f2:123
{data: "", status: 200, statusText: "OK", headers: {…}, config: {…}, …}
config: (...)
data: ""
headers: (...)
request: (...)
status: (...)
statusText: (...)

Home.vue?76f2:152 File uploaded!
{…}
config: Object
data: ""
headers: Object
access-control-allow-origin: (...)
connection: (...)
content-length: (...)
content-type: (...)
date: (...)
host: (...)
x-powered-by: (...)
__ob__: Observer {value: {…}, dep: Dep, vmCount: 0}
...
__proto__: Object
request: (...)
status: 200
statusText: "OK"
__ob__: Observer {value: {…}, dep: Dep, vmCount: 0}

....

As you can see here, it's because the data is sent in base 64 encoded format. You can either change it to a file using new File() in the JavaScript or convert the string to a file on the PHP side.

Implemented vue-dropzone to check whether my .php script works - flawless...
4 minutes work to get a working dropzone...
Does it make sense to fallback to an earlier version?
BTW; the given example does no real uploading of a file...

I understand this, and I hope that Uppload soon will also have a much simpler onboarding process for new developers and would plug-and-play more easily. There is work to be done, but this is only something I'm working on in my free time. 😉

I'll add the help-wanted tag, so if there are any developers who want to work on this, I'll be happy to code review, but I can only get into the fix (or a new version, as planned) in a few weeks time.

I just got dropzone for testing the PHP.
Uppload is really great, especially with the preview and crop functions.
I understand what you are saying; I hope you can find some time to figure out what is wrong because I have the impression that more devs are waiting for this. It could be very easy to solve because the problems reproduce easily. And if you test with a working backend a fix might be found soon....

Converting the string to a file; would that be the solution?
How should I do that?

I just got dropzone for testing the PHP.
Uppload is really great, especially with the preview and crop functions.
I understand what you are saying; I hope you can find some time to figure out what is wrong because I have the impression that more devs are waiting for this. It could be very easy to solve because the problems reproduce easily. And if you test with a working backend a fix might be found soon....

Have you got any demo of that script working with crop? Thanks in advance :-)

Just released 1.1.1 that fixes this.

Great, thanks!
Where can I find the fix?
npm install uppload and npm install uppload-vue are not updated to 1.1.1

@focussing Can you retry?

It installs :)
So basically this issue is rightfully closed.
But it does not fix my problems though....

@focussing I think you should change
formData.append('image', file);

to:
formData.append('file', file);

Because you check for 'file' in PHP and not 'image'

@thlassche You are absolutely right. My mistake.
However that is not where the real problem lies. Still no file is uploaded.
I tested that also with text files, pdf etc.
The example provided works, but there is no file uploaded, just a promise is returned.
Another thing 1:
From what I understand is that there is an conversion to Base64 (probably caused by the crop functionality?).
I think that should be hidden from the user. It is an internal affair of the module.
Also the code examples provided in the docs and the docs themselves do not mention anything about Base64.
Another thing 2:
From the upload promise the URL is returned; from what I notice from the error message the "endpoint" property gives, it should be JSON encoded. Can't find anything about that also (the suggestion mentioned above regarding json_parse does not work).
I would suggest:

Make the upload function really work; that is the core function of this module.
For all file types.
If you use the php function as described here http://www.startutorial.com/articles/view/how-to-build-a-file-upload-form-using-dropzonejs-and-php it should work without issues. That is working in my Vue-cli3 project even with local files.

For image files use the cropping functionality if set by a (new) property. Keep a possible base64 conversion hidden/internal.

I really think uppload could be great to use and I am looking forward to using it. However last friday I lost quite an amount of time trying to get it working, and when it didn't I had to turn back to dropzone for now (sorry!).

Any demo? Thanks in advance :-)

Sorry, it's not working so cannot provide demo.

Sorry, it's not working so cannot provide demo.

I'm just trying to create an upload with Uppload.js to just simple save the generated image in my server folder. Any Ideia for that?
It would be perfect to have something like to declare only once to be used in multiple file uploaders. For example to use in a form with multiples files uploads with Bootstrap (<button to upload)
Demo: https://jsfiddle.net/BUUdesign/be8yLkup/
Thanks a lot :-D

I haven't been able to upload anything using uppload.
For all uploaders I have been using I use the following php script.

<?php

header('Access-Control-Allow-Origin: *');

// from http://www.startutorial.com/articles/view/how-to-build-a-file-upload-form-using-dropzonejs-and-php

$ds = DIRECTORY_SEPARATOR;
$storeFolder = 'uploads';

if (!empty($_FILES)) {
	$tempFile = $_FILES['file']['tmp_name'];
	$targetPath = dirname(__FILE__) . $ds . $storeFolder . $ds;
	$targetFile = $targetPath . $_FILES['file']['name'];
	move_uploaded_file($tempFile, $targetFile);
}
?>

You needs add header
fetch(' URL ... ',
{
method: "POST",
headers: new Headers({
Accept: 'application/json',
'Content-Type': 'multipart/form-data'
}),
body:  formData
}


Fix template sync set to Nomcompliant when context cancel

Bug: If the template-sync is shutting down and it's in the middle of a reconcile request, it can set the policy to noncompliant with this
Ref: https://issues.redhat.com/browse/ACM-10402

@yiraeChristineKim , this conflicts with this PR:
https://github.com/stolostron/governance-policy-framework-addon/pull/327
Could we use mine instead since it includes the other commits blocked from syncing?


Include skip_permissions_hardening in D8 generated settings

What happened (or feature request):
@mglaman points out that in D8 we can do this in settings.local.php to avoid the horrible-Drupal "I set sites/default to read-only just to frustrate you":
$settings['skip_permissions_hardening'] = TRUE;

We should add that to our generated settings for D8.
What you expected to happen:
How to reproduce this:
Version: Please include the output of ddev version, docker version and the project's .ddev/config.yaml.
Anything else do we need to know:
Related source links or issues:
Please use a complexity rating of 1-5 (5 is high) for a feature request. (High complexity implies more PR planning)

Added to v0.18.0, and solves so much user abuse and is so easy to do, we should just get it done.

Works for me! Seems like an easy one line change and I can review/approve the PR when ready.

Edited to add expected behavior for D6/D7/D8: On ddev start we'll make the dir and the file writeable.


Onboard Netzgrafik-Editor

[x] Document project status on project list
[x] Plan meeting with maintainers to discuss onboarding and clear expectations, and plan next steps
[x] Add project representative to Technical Committee

[x] Add to invitation for weekly meeting
[x] Add to official list of members

[ ] Move repositories to OpenRail Association organization on GitHub

[ ] License review (see https://github.com/OpenRailAssociation/compliance-assistant)
[ ] Move the repos
[ ] Set up teams/people/collaborators with access to the repos

[ ] Review repos and make sure that they have necessary files (CONTRIBUTING.md, CODE_OF_CONDUCT.md, MAINTAINERS.md, etc.; see [project templates(https://github.com/OpenRailAssociation/technical-committee/tree/main/project-templates))
[ ] Add project to web site

Current status: NGE has some issues with large blob files for the documentation. @aiadrian will contact me to discuss options, once he has prepared it.


text fields

With this simple render function on a react component:
  render: function() {
    return (
      <div>
        <TextField
          hintText="Hint Text"
          floatingLabelText="Floating Label Text" />
      </div>
    );
  }

I got a lot of error on the console:

Warning: React.createElement: type should not be null or undefined. It should be a string (for DOM elements) or a ReactClass (for composite components).
Warning: Only functions or strings can be mounted as React components.
Uncaught TypeError: Cannot read property '_mockedReactClassConstructor' of undefined
Uncaught Error: Invariant Violation: replaceState(...): Can only update a mounted or mounting component.

Is this library ready for production use or do we need to go back to bootstrap??

I resolved this issue upgrading to 0.6. Now, how would I make password text fields?
It would be nice to have better docs/examples for this!!!

Well, this is getting really frustrating. How would I get to a textfield value?
normally you do: this.refs.username.getDOMNode().value inside a React component, but that doesn't work wity material-ui. I'm about to give up and go back to bootstrap. This is the least usable component I've ever found!

Resolved on 0.6... Thks!

@jvillasante Glad you were able to figure it out.


feat: Lit integration

Hey there,
This PR comes along with those two:

https://github.com/TanStack/virtual/pull/718 (Virtual)
https://github.com/TanStack/ranger/pull/91 (Ranger)

And hopefully for the rest of the stack :)
Anyway,
Iv'e set up the scaffolds for creating and integration for Lit, currently with a basic + sorting examples.
I'll add more examples later.
The core idea is using a Reactive Controller to create a reactive Table instance.
Examples Added

Basic
Row Sorting
Row Filtering
Row selection

Wow, I was actually getting ready to reach out after seeing the other lit TanStack PRs. I'm focused on getting Angular Table shipped in the next couple days first, but then will focus on this PR. That PR or the qwik one might be a good guide for this one to follow to make sure we don't forget anything.

Aweseome @KevinVandy, I also added a filters example 👍

@kadoshms I spent some time this weekend merging in all the new angular table changes from main, then setting up what I think are all of the correct build configs. And then created the docs templates for what will be needed. The adapter and table-state docs pages need to be filled-in and rewritten by someone who actually knows Lit, so help on that would be appreciated.

Great, so I'll use the Angular template as a base for Lit docs and add those to the MR.

@kadoshms How do we get the styles/css to work in these Lit examples?
I wrote the Lit adapter docs and think that they are good. I'm not all the way clear on Lit state vs properties and our best state recommendations, but can work on the lit table-state docs a bit later.
Otherwise, this might be surprising close to shipping already. Let me know if you're able to continue to help this week.

@KevinVandy - I'll set up the styles (just need to tweak the examples a bit to work properly with the shadow DOM).
As regarding for state - I'll make sure it's all properly documented and working as expected (was AFK the last couple of days)

@KevinVandy I updated the docs and added some styling to basic example using twind :)

@kadoshms Great, now I see the basic styles working that are coded in those style tags down below.
Would you be able to add any discussion between getTable and useLitTable and the naming conventions expected in Lit? Just want to make sure the current state of this PR is sure of what it should be.
Considering merging tomorrow, though, we can always use more examples - now or later
I opened a tanstack.com pr in tandem: https://github.com/TanStack/tanstack.com/pull/230

@KevinVandy I am not sure there is enough out there to come up with a convention, but thinking of the almost vanilla nature of lit, maybe something like getTableInstance or getTableInstanceWithOptions would be even more appropriate, as ultimately this function does that - creates the instance if not exist, updates the options and returns it.
WDYT?

Added another example for Column Resizing. Any other example that you think I should add at this phase?

Lol. We don't need to get too complicated with the name. If anything, might I suggest LitTableController.createTable

Naming is always fun 😄
Actually I liked this pattern, changed that to TableController.table it's actually kind of neat.

hey, this is cool! curious if it was based on my code here? it looks the same, except for some things shuffled around :)  https://codesandbox.io/p/sandbox/dry-fog-42qisy?file=%252Fsrc%252FTableController.ts

@WickyNilliams no actually, but good to hear more people are lit by Lit 😉

I was just curious. Convergent evolution at work!
Happy to see this land. I had planned on contributing myself, but never got around to it. So I'm glad you did. Thanks!


Fixed #299 Improve Retry behavior

Retry new replication session if previous session ends with error see ReplicationInternal.java
Apply same retry logic in a replication session. see RemoteRequestRetry.java

Adding ACTIVE, and isolate IDLE to OK and ERROR are great step. Adding new states and trigger could effect other part of codes. Can we track this by new issue ticket?

I just added: https://github.com/couchbase/couchbase-lite-java-core/issues/369


FIX: Modulemap was not detected when importing SPM packages to ObjC

Fixes #126

/integration-test


iphone 6s yalu crash

beta7 was strong all night, today random reboots while jailbroken seems while on twitter, no new tweaks at all, trying to rejailbreak with yalu just keeps saying failed try again, then crashes to reboot. went from working first time clicking go to crashing everytime.

worked after 5 attempts, may wanna delete this, not sure if it was worth me bringing up or not im aware this is still beta, sorry if any time was wasted lol

Same for me. Yesterday stable and today randomly freezes and reboots right after.

what are you using to record logs?

IPhone 6 by the way.
When go to "Storage- & iCloud Usage"
then also freezing and rebooting right after.

beta7 was strong all night, today random reboots while jailbroken seems while on twitter, no new tweaks at all, trying to rejailbreak with yalu just keeps saying failed try again, then crashes to reboot. went from working first time clicking go to crashing everytime
iphone 5s 32gb A1453

Could be related to what I reported for issue #343 (https://github.com/kpwn/yalu102/issues/343)

looks like a watchdog kill, it should have nothing to do with yalu unless you see a panic


Update es.yml

A fix for ES lang

Thank you, we're no longer merging languages and existing translations are bound to be removed in the future. See this discussion for more information: https://discuss.flarum.org/d/19971


getSession({ headers})) fails if JWT is in Bearer even with valid cookie

Is this suited for github?

[X] Yes, this is suited for github

To Reproduce
Use the JWT plugin and pass the "Bearer JWT" Authorization header.
This will cause getSession to fail, I assume because it doesn't support JWT bearers. I'm using Bearer JWT for my Neon Postgres Proxy API, but I also need to use getSession in that proxy. My current hack is to check cookies for auth-token and omit the authorization header if it is present. However, for my Capacitor app I pass the normal Bearer token (not JWT) for all requests.
IMO the ideal solution would be to authorize JWT's in getSession, but a second best fix would be to attempt to authenticate based on the Authorization Bearer header, and if that fails fallback to the cookie
Current vs. Expected behavior
getSession should still work if there is a valid cookie but an invalid authorization header.
What version of Better Auth are you using?
1.2.2
Provide environment information
Next.js 15 Pages Router
Capacitor

Which area(s) are affected? (Select all that apply)
Backend
Auth config (if applicable)
import { betterAuth } from "better-auth"
import { jwt, bearer } from "better-auth/plugins"
import { NeonHTTPDialect } from "kysely-neon"

export const auth = betterAuth({
    database: {
        dialect: new NeonHTTPDialect({
            connectionString: process.env.DATABASE_URL!,
        }),
        type: "postgres"
    },
    emailAndPassword: { enabled: true },
    plugins: [
        jwt({
            jwks: {
                keyPairConfig: {
                    alg: "ES256"
                }
            }
        }),
        bearer()
    ],
    trustedOrigins: [
        "http://localhost:3000",
    ]
})

Additional context
No response

This is my hack atm
 const headers = new Headers()
    request.headers.entries().forEach(([key, value]) => {
        if (key == "authorization" && request.headers.get("cookie")?.includes("auth-token")) return
        headers.set(key, value)
    })

    const session = await auth.api.getSession({ headers })


[QUESTION] Csv not generated

Issue Template
Please use this template!
Initial Check

If the issue is a request please specify that it is a request in the title (Example: [REQUEST] more features). If this is a question regarding 'twint' please specify that it's a question in the title (Example: [QUESTION] What is x?). Please only submit issues related to 'twint'. Thanks.

Make sure you've checked the following:

[x] Python version is 3.6;
[X] Updated Twint with pip3 install --user --upgrade -e git+https://github.com/twintproject/twint.git@origin/master#egg=twint;
[X] I have searched the issues and there are no duplicates of this issue/question/request.

Command Ran

Please provide the exact command ran including the username/search/code so I may reproduce the issue.

import os
import twint

os.environ['TWINT_DEBUG'] = 'debug'

c = twint.Config()

c.Search = 'bushfire'
c.Limit = 10
c.Store_csv = True
c.Output = 'bushfire.csv'

twint.run.Search(c)
print('complete')

Description of Issue

Please use as much detail as possible.

No csv file is generated, (or at least I am not able to find it anywhere)
Environment Details

Using Windows, Linux? What OS version? Running this in Anaconda? Jupyter Notebook? Terminal?

Windows 10, PyCharm

Apparently it's a bug with https://github.com/twintproject/twint/pull/917 so closing this.


kevm_pyk: add error logs

unblocks: https://github.com/runtimeverification/foundry/issues/10

make tests/foundry/foundry.k.check CHECK=cp to update the expected file.


Add prediction workflow based on BERTMap

Add code for generating mappings using BERTMap, and updated predictions.tsv

After some refactoring, I was able to get it to run locally from beginning to end. It doesn't appear to make any new predictions on the second run.
The research question to go with this method is: is it worth using more complicated methods? How often does a BERT-based method find something we couldn't using lexical matching?
I suggest going through and exhaustively curating all of the new predictions that have been made that are novel. It looks like there are less than 100. Then, I would suggest relaxing the confidence cutoff and curating additional predictions as well. A question for you @buzgalbraith - how knowledgable are you about chemistry? There is a lot of nuance in the mappings for ChEBI and MeSH. Maybe it's best to focus on the other ontologies if you don't have some domain knowledge.
Then, it makes sense to run a benchmarking, since I'm guessing that a lot of the predictions that are being produced are already covered by the predictions that have been made with simpler lexical matching / ones that have already been curated.
Summary questions:

What percentage of the predictions produced by this method are correct/incorrect?
What percentage of the predictions produced by this method are also produced by lexical matching?

Hi @cthoyt, @buzgalbraith works with me on this project where we are evaluating language-model-based and graph-based predictions to create mappings. Part of the plan is to curate new predictions made with various approaches and compare against predictions we've made in the past using Gilda. But the principled way to do these curations is to add them to Biomapping's predictions and then curate them through the UI, hence the structure of this PR. I am happy to discuss about research ideas but beyond that, want to make clear that decisions about how and what to do are not at your sole discretion.

Upon further reflection, we will not pursue contributing this code into this repo so closing the PR.


Single build.gradle file missing ASF license header

Description

Related issue and scope

[ ] I opened an issue to propose and discuss this change (#????)

My changes affect the following components

[ ] API
[ ] Controller
[ ] Message Bus (e.g., Kafka)
[ ] Loadbalancer
[ ] Invoker
[ ] Intrinsic actions (e.g., sequences, conductors)
[ ] Data stores (e.g., CouchDB)
[ ] Tests
[ ] Deployment
[ ] CLI
[ ] General tooling
[ ] Documentation
[X] Compliance

Types of changes

[ ] Bug fix (generally a non-breaking change which closes an issue).
[ ] Enhancement or new feature (adds new functionality).
[ ] Breaking change (a bug fix or enhancement which changes existing behavior).

Checklist:

[ ] I signed an Apache CLA.
[ ] I reviewed the style guides and followed the recommendations (Travis CI will check :).
[ ] I added tests to cover my changes.
[ ] My changes require further changes to the documentation.
[ ] I updated the documentation where necessary.

Codecov Report

Merging #3708 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3708      +/-   ##
==========================================
- Coverage   75.01%   74.99%   -0.02%
==========================================
  Files         126      126
  Lines        6023     6023
  Branches      385      385
==========================================
- Hits         4518     4517       -1
- Misses       1505     1506       +1

Impacted Files
Coverage Δ

...rc/main/scala/whisk/common/ForcableSemaphore.scala
84.61% <0%> (-3.85%)
:arrow_down:

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 b392330...ebd2be6. Read the comment docs.


Component library and folder structure setup

Closes #48.

Is there a reason we deleted the entire Components directory? Where will the reusable components go?

it will go under resources/components, now there's no components therefore git did not commit the folder, will be added back once we have written re-usable components