DELETE at volume has a payload "null" as a string

Hi - I have a problem with some actions at ODIM
ODIM is sending payload as invalid JSON with "null" as a string
When I am sending empty payload with DELETE at specifici volume:
ubuntu@ubuntu:~$ curl -X DELETE -k -u 'admin:Od!m12$4' https://<IP_ADDRESS>:45000/redfish/v1/Systems/27d60766-4e91-4ce9-9f33-cff0cad63e22:1/Storage/BMCStorage/Volumes/1 | jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    69  100    69    0     0    104      0 --:--:-- --:--:-- --:--:--   104
{
  "error": {
    "code": "Base.1.0.InvalidPayload",
    "message": "Invalid Json"
  }
}

in debug mode I found that the request payload is "null" as a string - not empty payload.

Hi! I have a question regarding deleting a Volume: after deleting a Volume, the record is deleted from database; instead of it, a new one appear - SystemReset. This record is in database until
rediscovering system (according to method description, rediscovering system takes place whenever the restart event is detected in event service).
So, when I delete a Volume, and then trying to get it, it gets me NotFound response. But, if I get the list of all Volumes, the deleted Volume
appears on that list. Is that the way it should work?

@Bharath-KKB could you take a look at my question? I would really appreciate it.

Hi @ehaligow, Sorry missed the comment notification, let me check and get to you on the query.

Hello @ehaligow
Hope the slack conversation (https://odim.slack.com/archives/C01DG9MH479/p1621589474000300) answered your query.
Mentioning it here for future reference.

Hello @ArturBaryla
request payload passed to ODIM and from ODIM to plugin is of byte array type and the same encoded/decoded as json, which when empty will have nil value in golang. Could you please check if it's same at the device, where the issue is observed?

Hello @ArturBaryla
Its the behavior observed in golang, when http.NewRequest is created using bytes.NewBuffer(<data of type []byte>) API for reader, and byte data passed to bytes.NewBuffer is empty, payload in the new http request created is assigned with "{null}" as value.

Hi @bharath-b-hpe,
yes, the Slack conversation answered my query, thank you.
When it comes to your last comments, I investigated the problem a little bit and I think the problem is the RequestBody during Volume delete. The code for the DELETE is similar to CREATE and so is the method from systems.proto. We use VolumeRequest from systems.proto (for both Create and Delete) , here we have field RequestBody. For Delete the RequestBody is redundant (and null). I localy changed the code and for the Delete, I created DeleteVolumeRequest, this time without field RequestBody. And it seems to resolve the issue.
Could you confirm if I am right?
Regards,
Emilia

I think the real issue is gRPC is unable to handle certain types of data like null. We will discuss this internally and handle it the official way.
Regards,
Bharath


[misc] Removed PhantomJS Dependency`

Phantomjs is an unmaintained project. Removed spacejam from dev-dependencies as it uses phantomjs internally.
Downgraded grunt-contrib-jshint version as latest version of grunt-contrib-jshint uses phantomjs.
Package-lock.json file gets updated when we run npm install test.
Signed-off-by: ossdev<EMAIL_ADDRESS>

I'm using PhantomJS in the release process . We can open a ticket instead to use a different browser test system.
I've opened #4902

@marwahaha I don't see PhantomJS (or spacejam) mentioned in the release process.  What do you use it for?  (good to know so an appropriate recommendation can be made for headless browsers (chrome/firefox) vs orchestrator (puppeteer) vs test-runner (jest).)

Headless browser (try grunt test:browser)

Ping @marwahaha @ashsearle
I believe you are in support of removing phantomjs and are looking for an alternative to use in place of that, we can use chrome headless as you mentioned.
Please tell me what it would take to remove the phantomjs dependency from the package.


Copter: in angle control GUIDED mode the drone keeps rotating on its yaw axis when told not to do so

Issue details
In GUIDED mode, using angle control with the SET_ATTITUDE_TARGET messages, the drone keeps rotating on its yaw axis.
It will first quickly go to a yaw angle (presumably the one set in the command's quaternion), and then will keep turning at a more or less constant rotation speed.
During another flight we even had a crash right when we passed the vehicle from LOITER to GUIDED, using the included code example with the yaw_rate at 2 in the parameters of send_attitude_target: the drone leaned very hard (maybe 45°) on both its pitch and roll axes, quickly losing altitude.
The WP_YAW_BEHAVIOR was set to 0 (WP_YAW_BEHAVIOR_NONE) for all those tests.
I took a couple videos using the example code below to illustrate the problem, I will include them if requested. Same with the logs, will try to find them if requested :smile:
Version
3.4.6
Platform

[ ] All
[ ] AntennaTracker
[x] Copter
[ ] Plane
[ ] Rover

Airframe type
quad
Hardware type
Erle Brain 3
Code

import math
import time

import dronekit

copter = dronekit.connect('udp:<IP_ADDRESS>:5762', wait_ready=True)

def send_attitude_target(self, roll_angle=0.0, pitch_angle=0.0,
                         yaw_angle=0.0, yaw_rate=10, thrust=0.5):
    msg = copter.message_factory.set_attitude_target_encode(
        0,
        0,                                         # target system
        0,                                         # target component
        0b00000000,                                # type mask: bit 1 is LSB
        to_quaternion(roll_angle, pitch_angle, yaw_angle),    # q
        0,                                         # body roll rate in radian
        0,                                         # body pitch rate in radian
        yaw_rate,                                  # body yaw rate in radian
        thrust)                                    # thrust
    copter.send_mavlink(msg)

def to_quaternion(self, roll=0.0, pitch=0.0, yaw=0.0):
    """Convert degrees to quaternions."""
    t0 = math.cos(yaw * 0.5)
    t1 = math.sin(yaw * 0.5)
    t2 = math.cos(roll * 0.5)
    t3 = math.sin(roll * 0.5)
    t4 = math.cos(pitch * 0.5)
    t5 = math.sin(pitch * 0.5)
    w = t0 * t2 * t4 + t1 * t3 * t5
    x = t0 * t3 * t4 - t1 * t2 * t5
    y = t0 * t2 * t5 + t1 * t3 * t4
    z = t1 * t2 * t4 - t0 * t3 * t5
    return [w, x, y, z]

while True:
    if(copter and copter.mode == dronekit.VehicleMode("GUIDED")):
        send_attitude_target(0,  # roll
                             0,  # pitch
                             0,  # yaw_angle
                             0,  # yaw_rate
                             0.5)  # thrust
        print("attitude command sent")
    time.sleep(0.1)

With this sample code constantly running, we took off in LOITER mode and then passed to GUIDED during the flight.

@ARPIT355 i completed connect raspberry pi 3 using 3G. and Control with Android application (Tower App)


ChatGPT Plugin (Experimental 🧑🔬)

🧑🔬 Experimental
This PR contains an experimental prototype of using the MongoDB RAG framework to create a ChatGPT plugin.

Jira: n/a
Changes

Create a ChatGPT plugin that lets you ground answers in official MongoDB documentation.

Notes

closing. moved project to https://github.com/mongodben/rag-chatgpt-plugin


Be able to use crane registry even if zot toolchain is registered

Instead of https://github.com/bazel-contrib/rules_oci/blob/main/e2e/smoke/WORKSPACE.bazel#L19-L21

dropping this from the 1.0 milestone as we don't have a concrete design for how we'd like to do this and this can be tackled later.


SHA-256 hash for haskell-platform-8.0.1.tar.gz correct?

Hi,
using the page
https://www.haskell.org/platform/#linux-source
I downloaded the tarball
https://haskell.org/platform/download/8.0.1/haskell-platform-8.0.1.tar.gz
but I got on an OpenSUSE Linux system using the tool sha256sum a SHA-256 hash
1b07f6cbb77ee722af2865c11ed16444663b75e6562c7cc1a9bb6dc06891a0e0
instead the on the above page mentioned (and only bad readable)
38af99a9ae4afce56df75a753a19e7a4986bfbc8ce22f93b8308b5ab9e5a19c6
If I am the only one with that problem, what may be my error?
Jens

You downloaded an old cached version of the tarball (our cdn will take some time to update).
I uploaded a newer one and changed the hash to the new one you see (starting with 3).
I just verified on the server and the new hash is correct. You can get a new tarball by appending some query params to the url to bypass the cdn.

On Fri, 27 May 2016, gbaz wrote:

You downloaded an old cached version of the tarball (our cdn will take some time to update).
I uploaded a newer one and changed the hash to the new one you see (starting with 3).
I just verified on the server and the new hash is correct. You can get a new tarball by appending some query params to the url
to bypass the cdn.

Doesn't help. I cleaned additionally my Firefox cache and used also
as an alternative download tool "wget" but using for e.g.
https://haskell.org/platform/download/8.0.1/haskell-platform-8.0.1.tar.gz?vrs=8.0.1
I got always the same tarball containing 3224024 bytes (with the SHA-256
hash mentioned in my first report).
Ok, I will try it again tomorrow or in the next days hoping the CDN will
have refreshed it's cache.
Thanks
Jens
P.S.: I attached a small Firefox screenshot showing the bad readability of
the SHA-256 hash value (I used therefore the source code of the Web page).

your attachment was scrubbed :-/. That said, the sha value is I think meant to be copied and pasted, not read directly from the page, fwiw.

ok, I actually uploaded a new version again, and updated the hashes, and cleared the fastly cache. There may be downstream caching but I verified the sum of a downloaded file against the posted sha.

On Fri, 27 May 2016, gbaz wrote:

ok, I actually uploaded a new version again, and updated the hashes, and cleared the fastly cache. There may be downstream
caching but I verified the sum of a downloaded file against the posted sha.

Great, now it seems ok (haskell-platform-8.0.1.tar.gz now with
3225653 bytes).
That the attached screenshot was scrubbed I had feared. Copy and paste of
the SHA-256 hash yesterday didn't work for me but today it works, so my
Firefox or I have made a mistake.
Thanks
Jens


Tuya LED-Stripe

Hello,
i am bit lost of what to set at wich point,  to get the full advantage of my new color led-stripe.
right now i am only able to set power On/Off.
Also the different Scenes i am able to Change ( withe/colored/sczene/...)
but when i want to bring the color change / the brighness etc into the config,
nothing is working any more. because the squence the tuya app want to send
is not a valid squence.
As you can see in Screenshot there is only 1 DataPoint where all is to be set.
Color, Brightness etc...
my question is what do i have to set where in a Light-Device in iQontrol to bring
the missing properties alive.
Thanks all
[Device RAW]
led_stripe_raw.txt
[Device Screenshot]

Versions:

Adapter version: 1.5.5
JS-Controller version: 3.1.6
Node version: 12.20.1
Operating system: "Raspbian GNU/Linux 10 (buster)"

Notiz für mich:
Tuya color_data format:
HHSSBB in Hex,
HH: 0000-016d (0-365)
SS: 0000-03e8 (0-1000)
BB: 0000-03e8 (0-1000)

Notiz für mich:
Tuya color_data format:
HHSSBB in Hex,
HH: 0000-016d (0-365)
SS: 0000-03e8 (0-1000)
BB: 0000-03e8 (0-1000)

Please try the actual github-version - HHSSBB for Tuya was added to ALTERNATIVE_COLORSPACEs
Please provide feedback, if it works.
Greetings

Please try the actual github-version - HHSSBB for Tuya was added to ALTERNATIVE_COLORSPACEs
Please provide feedback, if it works.
Greetings

Sir,
i got following error by trying to upgrade from root.
brgds
Input:
iobroker upgrade<EMAIL_ADDRESS>Output:
Would you like to upgrade iqontrol from @1.5.5 to @1.5.6 now? [(y)es, (n)o]: y
Update iqontrol from @1.5.5 to @1.5.6
NPM version: 6.14.10
npm install<EMAIL_ADDRESS>--loglevel error --prefix "/opt/iobroker" (System call)
npm ERR! code ETARGET
npm ERR! notarget No matching version found for<EMAIL_ADDRESS>npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR!

Sir,
i got following error by trying to upgrade from root.
brgds
Input:
iobroker upgrade<EMAIL_ADDRESS>Output:
Would you like to upgrade iqontrol from @1.5.5 to @1.5.6 now? [(y)es, (n)o]: y
Update iqontrol from @1.5.5 to @1.5.6
NPM version: 6.14.10
npm install<EMAIL_ADDRESS>--loglevel error --prefix "/opt/iobroker" (System call)
npm ERR! code ETARGET
npm ERR! notarget No matching version found for<EMAIL_ADDRESS>npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR!

Please try updating from admin web-interface by clicking the cat-button in the adapters-tab. Then chose iQontrol. Afterwards perform an upload like described in the troubleshooting-section in the iQontrol-Readme.

Please try updating from admin web-interface by clicking the cat-button in the adapters-tab. Then chose iQontrol. Afterwards perform an upload like described in the troubleshooting-section in the iQontrol-Readme.

Hi there,
the upgrade has taken place successfully.
The colors can now be selected without any problem.
many thanks for your help
Good work !

Hi there,
the upgrade has taken place successfully.
The colors can now be selected without any problem.
many thanks for your help
Good work !


Traefik dashboard only works with overlay network created outside of stack deploy for swarm.

Do you want to request a feature or report a bug?
bug
What did you do?
I'm using stack deploy to use Traefik as a load balancer and the services are not responding to the defined networks consistently.
I have a docker compose file where I define

networks:
  proxy:
    driver: overlay

and my defined Traefik service has networks defined
    networks:
    - proxy

and under deploy
      labels:
      - traefik.enable=true
      - traefik.docker.network=proxy
      - traefik.frontend.rule=Host:traefik.example.com
      - traefik.backend.loadbalancer.sticky=true
      - traefik.frontend.passHostHeader=true
      - traefik.port=8080

You'll see below in the yml below, I have Portainer defined along side Traefik. I'm unable to reach Traefik unless I create a proxy network from the command line, even through Traefik is referring to proxy_proxy, which was created when running the docker stack deploy command.
I'm able to reach Portainer without the proxy network though
NETWORK ID          NAME                DRIVER              SCOPE
741f03949a00        bridge              bridge              local
73fca5fd4c16        docker_gwbridge     bridge              local
13e87cc1c46b        host                host                local
epaziubbr9r1        ingress             overlay             swarm
d501350a09b1        none                null                local
pr80l7ncqtca        proxy               overlay             swarm
lop97b0htl98        proxy_proxy         overlay             swarm

I tested to see maybe if proxy_proxy was a useless network but Portainer won't load with just the external proxy network defined OR if I defined the network in the yml file like:
networks:
  proxy:
    external: true

so that both services just rely on the proxy network that was created from the command line
What did you expect to see?
I expect to be able to see the Traefik dashboard at traefik.example.com OR I expect Portainer not to work either.
What did you see instead?
A Gateway Timeout error for Traefik and Portainer working
Output of traefik version: (What version of Traefik are you using?)

Version:      v1.5.1
Codename:     cancoillotte
Go version:   go1.9.3
Built:        2018-01-29_02:14:02PM
OS/Arch:      linux/amd64

What is your environment & configuration (arguments, toml, provider, platform, ...)?
accessLogsFile = "/dev/stdout"
defaultEntryPoints = ["http", "https"]
[acme]
email =<EMAIL_ADDRESS>storage = "acme.json"
entryPoint = "https"
onHostRule = true
acmeLogging = true
onDemand = false
caServer = "https://acme-staging.api.letsencrypt.org/directory"
[acme.httpChallenge]
  entryPoint = "http"

[web]
address = ":8080"
[entryPoints]
  [entryPoints.http]
  address = ":80"
    [entryPoints.http.redirect]
      entryPoint = "https"
  [entryPoints.https]
  address = ":443"
    [entryPoints.https.tls]

[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "traefik.example.com"
watch = true
swarmmode = true
exposedbydefault = false

networks:
  proxy:
    driver: overlay

configs:
  traefik_toml_v2:
    file: ./traefik.toml

services:
  traefik:
    image: traefik:1.5-alpine
    deploy:
      replicas: 1
      labels:
      - traefik.enable=true
      - traefik.docker.network=proxy
      - traefik.frontend.rule=Host:traefik.example.com
      - traefik.backend.loadbalancer.sticky=true
      - traefik.frontend.passHostHeader=true
      - traefik.port=8080
      placement:
        constraints:
        - node.role == manager
      restart_policy:
        condition: on-failure
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock
    - $PWD/infra/traefik.toml:/traefik.toml
    - $PWD/infra/acme.json:/acme.json
    networks:
    - proxy
    ports:
    - target: 80
      protocol: tcp
      published: 80
      mode: ingress
    - target: 443
      protocol: tcp
      published: 443
      mode: ingress
    - target: 8080
      protocol: tcp
      published: 8080
      mode: ingress
    configs:
    - source: traefik_toml_v2
      target: /etc/traefik/traefik.toml
      mode: 444
  portainer:
    image: portainer/portainer
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock
    - $PWD/infra/portainer:/data
    networks:
    - proxy
    deploy:
      replicas: 1
      placement:
        constraints:
        - node.role == manager
      restart_policy:
        condition: on-failure
      labels:
      - traefik.enable=true
      - traefik.docker.network=proxy
      - traefik.port=9000
      - traefik.backend=portainer
      - traefik.backend.loadbalancer.sticky=true
      - traefik.frontend.passHostHeader=true
      - traefik.frontend.rule=Host:portainer.example.com

If applicable, please paste the log output in debug mode (--debug switch)
(paste your output here)

When you deploy a stack using docker stack deploy -c docker-compose.yml $stackname every network/volume/service is prefixed with $stackname. Even if you name the network proxy, it's called $stackname_proxy in the end (except when marked as external).
But you tell Traefik to use a proxy named network traefik.docker.network=proxy, which dosn't exist unless you create it by hand.
Two options:

create the proxy network as not external as you've done so far and use traefik.docker.network=$stackname_proxy, where you replace $stackname with the stack name (i think it's proxy in your case)
create the proxy network by hand, declare it as external in your docker-compose.yml

I'll close this issue, because I think the question is answered.

Hey @ldez I don't think the question is answered because what I'm pointing out is the inconsistencies in which Traefik is handling network names.
@salzig, thanks for the reply. I realize that when creating a network with docker stack deploy without marking it as external will automatically prefix the network with the stack's name. However, what I was pointing out was that both Traefik and Portainer are referring to the network that is created in the stack by only using the network's alias, proxy and not the externally listed network prefixed with the stack's name, proxy_proxy.
I was explaining that even though the network was created in the stack, Traefik's routing services work fine, referring to only the docker compose alias proxy, proof form being able to still reach Portainer. It is only Traefik's dashboard that I cannot reach even though port 8080 is exposed.
The only time Traefik's dashboard is accessible is if I define the network externally, which I can do, but I'm just trying to point out that Portainer and Traefik's routing services should not be working if what you proposed to be true, that the network in the composer file has to be defined with <stack name>_<network name>, proxy_proxy.

@tannerchung  let's encrypt didn't work for this config, do i still need consul to store k/v for acme, i only run traefik on manager, and i have a single manager


Workflow schema fails to handle conflicting logic

Looks like his is related to #322
When updating from schema A:
schema:
      - template: Invoke set stats
        **always**:
          - template: Use set stats
          - template: Use set stats

..to schema B:
schema:
      - template: Invoke set stats
        **success**:
          - template: Use set stats
          - template: Use set stats

It seems that schema update is unable to handle this transition. Oddly enough, starting with B and applying A will work fine. If B is then reapplied, the update will fail.

I wonder if this is not a tower-cli but an upstream issue ansible/awx/issues/3366 ?


How to get pdf.js working?

Dear All,
I knew about pdf.js just this morning, and it is unbelievably good; probably the future of Pdf.
I wanted to clone the demo, so that I just change the source page in  the viewer.js.
First, I downloaded the images and elements manually - didn't get it working. Then, I downloaded the zip, and played a lot with the web & src folders - but got no where, as I was getting different kinds of errors everytime I upload them.
The final solution was to download all the items related to the demo page including locale.properties using WinHTTrack , and now, I am just getting the following error: "InvalidPDFException".
There is one guy, who developed a simple demo - I uploaded it to my server and it works like a charm. The only problem is that it is an old version with no pre-loader, and no design at all like the new one!
http://www.worldwidewhat.net/2011/08/render-pdf-files-with-html5/
Any help is really appreciated.

I'm getting Warning: TT: undefined function: 32 in the console.
Could not load source 'VM_Unknown': Could not retrieve content..  VM_Unknown:1
@types/pdfjs-dist could be the problem but it appears in my angular app as a tgz file in a url !!!
The pdf is rendered in the Browser ok, but the form inputs are not there!
I've tried to follow this tutorial:
https://medium.com/factory-mind/angular-pdf-forms-fa72b15c3fbd


Add raw flag

run github action test on all branch.
add --raw flag to limactl shell. fix https://github.com/lima-vm/lima/issues/251
for limactl shell, if debug falg is true, pass -v to ssh. otherwise, pass -q

Now, the act of nerdctl in lima will be equivalent to docker:
# docker for desktop mac
$ /usr/local/bin/docker run -it --rm alpine:latest sh -x -c 'echo $HOME'
+ echo /root
/root
$ alias docker='limactl shell --raw default -- nerdctl'
$ docker run -it --rm alpine:latest sh -x -c 'echo $HOME'
+ echo /root
/root

@RobberPhex
I just noticed that we did code review discussion in #251 and not here in the PR itself. Are you planning to adapt your PR to that feedback (create a separate limectl exec command)? Or do you want somebody else to finish it in a follow-up commit?

ping @robberphex

Sorry for being have been on vacation.

No need to be sorry; I hope you enjoyed your time off! Welcome back! 😄

I'm working on create exec sub-command. Sorry for being have been on vacation.

@robberphex Are you still planning to work on this, or do you want somebody else to finish the nerdctl exec implementation?

New PR:

https://github.com/lima-vm/lima/pull/1840


[WIP] Sql decorator rebase

closes https://github.com/astro-projects/astro/issues/344
Acceptance criteria

[ ] Identify current responsibilities of the SQLDecorator (e.g. execute SQL, templating, resolve queries, create tables, etc) and propose a minimum interface for the new version
[ ] Implement the minimal interface necessary for the Base SQLDecorator class (e.g. templating?)
[ ] All the quality checks passed
[ ] All the functions have typehints
[ ] All the new functions and modules have docstrings
[ ] The introduced code has 100% of test coverage

@dimberman Is it worth closing this PR since we are having smaller PRs, like https://github.com/astronomer/astro-sdk/pull/373?


Issues introduced in 0.3.1

In my app firstVisibleChanged no longer triggers reliably, and lastReached only triggers once. Any subsequent pages aren't loaded. The regression is in commit<PHONE_NUMBER>c67f7c9edcf4238ed2c264d59b9554.
Using Ember 1.13.10.
EDIT: Fixed in 0.3.3

scrollPosition and idForFirstItem have some issues as well. Item visibility state appears to be calculated based on the assumption that the initial scroll position is 0px. This regression was introduced prior to the one I mentioned above. I'm currently looking into this.

It also looks like scroll position is not maintained when prepending.

Excepting what's mentioned below, I think these issues have all been resolved  either in 0.3.3 or in the upcoming 0.3.4 release.  Closing in favor of specific tickets.

Prepending items with dynamic heights doesn't consistently work. #47


Consider removing index values update to preserve per-image particle numbering

          Consider removing index values update to preserve per-image particle numbering

Originally posted by @emlynjdavies in https://github.com/SINTEF/pyopia/issues/220#issuecomment-2316991197

I will check this on the tensorflow-updates branch, once we get that going


Add dial method

This enabled the node to use dial method.

Coverage decreased (-0.1%) to 99.454% when pulling 418edca393ce17b8ee3e1580e1d8cc8002e537b1 on DennisFrea:master into c72d50304716c60a8c016eaf2b0faf2fca72f46d on marcelog:master.


Can I use this function (temperature_scaling) for other classification network??

Hello Sir.
I tested your code (temperature scaling) in my code.
my code is based on inception_v3.
But I met some error.
# Code
    # This function probably should live outside of this class, but whatever
    #def set_temperature(self, valid_loader):
    def set_temperature(self, valid_loader):
        """
        Tune the tempearature of the model (using the validation set).
        We're going to set it to optimize NLL.
        valid_loader (DataLoader): validation set loader
        """
        self.cuda()
        nll_criterion = nn.CrossEntropyLoss().cuda()
        ece_criterion = _ECELoss().cuda()

        # First: collect all the logits and labels for the validation set
        logits_list = []
        labels_list = []
        with torch.no_grad():
            for input, label in valid_loader:
                input = input.cuda()
                logits = self.model(input)
                logits_list.append(logits)
                labels_list.append(label)
            logits = torch.cat(logits_list).cuda()
            labels = torch.cat(labels_list).cuda()

        # Calculate NLL and ECE before temperature scaling
        before_temperature_nll = nll_criterion(logits, labels).item()
        before_temperature_ece = ece_criterion(logits, labels).item()
        print('Before temperature - NLL: %.3f, ECE: %.3f' % (before_temperature_nll, before_temperature_ece))

        # Next: optimize the temperature w.r.t. NLL
        optimizer = optim.LBFGS([self.temperature], lr=0.01, max_iter=50)
        ...
# Code
'''
RuntimeError: Calculated padded input size per channel: (4 x 4). Kernel size: (5 x 5). Kernel size can't be greater than actual input size
'''

I checked error code in my code.
The part of error code is
logits = self.model(input)
So I think that this code is for DenseNet only. ??
Thanks,

Hello Sir,
I add error message...
ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 768, 1, 1])

This error was occurred in this part.
logits = self.model(input)

What can I do for solving this problem??
Thanks..

hi there, this is an issue in your model. Try debugging your classification network without the set temperature function first.


dnd_drag_source cannot include any Frames

Describe the bug
Using the latest master branch, doing drag n drop operations with a group or anything that instantiates a new Frame, causes a crash. The exception is that you can have one dnd_drag_source that includes multiple Frames, otherwise it will crash when you attempt to drag one.
egui/crates/egui/src/widget_rect.rs:142:17: Widget changed layer_id during the frame
This does not occur in latest release version: 0.27.2
To Reproduce
Steps to reproduce the behavior:

Download the Drag and Drop example.
Change all ui.label("__"); to ui.group(|ui| { ui.label("___"} );
Click to start dragging. Immediate crash.

Expected behavior
Drag any widget or widget group.
Desktop (please complete the following information):

OS: Linux (arch, up to date) / Window 10 (22H2)

0.27.2
https://github.com/emilk/egui/assets/19319115/00ff2cc5-c118-428b-81c8-393474d42e89
Latest commit:

After digging around int the source code. It appears this crash is caused by a debug assertion that's only active on non-release builds.
debug_assert!(     existing.layer_id == widget_rect.layer_id,     "Widget changed layer_id during the frame" );
I'll leave it open if we feel like this needs to be removed before the next release, for now I'm removing the assertion from my local source so I don't have to build it as release while I'm developing..


After update message "tput: unknown terminal "true" and tmux not work

Received the update and immediately installed it. I use xterm
Fedora 31, tmux. Tmux is no longer able to create splits and windows.
When launching terminals, this message "tput: unknown terminal "true"
System:

OS: Fedora 31 x64
Zsh version 5.7.1 (x86_64-redhat-linux-gnu)
Terminal emulator xterm

This sounds like you ran TERM=true somewhere. Try looking at your zshrc file.

You're right.
I changed in .zshrc  from ZSH_TMUX_FIXTERM="true" to "false" and everything works.
Thank you.

That shouldn't be the problem. The tmux plugin uses the $ZSH_TMUX_TERM variable to set $TERM, maybe you're overriding that? Can you post your zshrc file?


Can't profile package

profila: error: unrecognized arguments: -m
example attempt: python -m profila annotate -m -- package --arg=1

Thanks for the bug report, that is indeed something worth supporting.

python -m profila annotate -- -m package --arg=1 should probably work, but this should be documented.


Trigger tooltips on hover

That's how IDEs do it. and Atom is more than just an editor right?
I would love to accept a PR for this as I am mostly busy in personal work these days.

@blakeembrey What are your comments/suggestions on this one?

@steelbrain Make sense. I was looking over the inline messenger PR earlier too. I don't have a lot of time to make this happen, unfortunately, but I can think about the experience a little. I think a few there's minor things that can add up together.
At the very least, allowing hovering over the gutter might be useful - I also don't know how possible this is, but integrating with the scrollbar or minimap could be interesting.

@steelbrain Actually, I was thinking some more, do you think we need a tooltip provider? If we're going to add tooltips, I feel like we should look at being a common service for all tooltips in the editor view to register to - for example, type information in TypeScript. That way we don't have conflicts between different peoples tooltips?
@basarat Thoughts, since you wrote the tooltip in the TypeScript package?

do you think we need a tooltip provider

Definitely. It wasn't easy to get started ... but fortunately https://atom.io/packages/ide-haskell (@lierdakil) had solved that problem before me ... and I just copy pasted + converted to TypeScript.
A sample of how to create a new scope driven provider might be https://github.com/atom-community/formatter (written in coffeescript) that brings in the pretty must just the scope detection code from autocomplete at some past point in time. Unless one is comfortable taking out the code from linter :)

@basarat Thank you for the examples and reference to the score driver provider. I am afraid we might not need any score-driven provider at all, as what we have is a text editor instance and some ranges. Have you looked at inline-messenger package yet? I had considered it in the past for this very purpose, we can all work on it together and add tooltips features to one package.
The codebase of it however wasn't as "neat" it looked like someone hacked out the inline tooltips from linter and implemented them in a separate package, but then again time fixes almost everything so that won't be a problem. so what do you suggest? Should we all collaborate on an existing package like that or build a new one with a solid API and strong foundations from the ground up?

I'm consumed by TSB https://github.com/basarat/tsb/tree/master beyond supporting what I've already started and keeping up apprearances at the moment. Sorry :rose:

@basarat The remote editing concept looks great, but it's gonna cost you a lot of time so best of luck with it :rose:

The remote editing concept looks great, but it's gonna cost you a lot of time

contrary ... that was very easy ... Remote editing is what atom-typescript effectively does as well (parent->worker). I just added a lib to work over websockets and it was a go ;)

Contract : https://github.com/basarat/tsb/blob/master/src/socket/socketContract.ts
Client : https://github.com/basarat/tsb/blob/master/src/socket/socketClient.ts
Server : https://github.com/basarat/tsb/blob/master/src/socket/socketServer.ts

:rose:

so we have two options:

Show tooltips when gutter is hovered (simpler but no IDE I know does this)
Show tooltips when text is hovered (complex but all IDEs I know do this)

We can do either or both of them, what are your suggestions?

Show tooltips when text is hovered (complex but all IDEs I know do this)

Tricky : IDE's that do this e.g. Visual Studio annoy me because there are times when I want to see the type information (to figure out why the code is erroring in the first place) and they insist on showing me the error.
As long as I still get type information on hover anything is fine :rose:

I don't have the expertise to help with this, so I'm not sure how much my opinion matters. But personally I think both would be nice (individually toggleable). Plus an option to disable the current tooltips when you're on the error, and instead simply display the error in the status bar.

@jrial We already have an option to disable the current tooltip, it's called showInlineError I think

@steelbrain yes, I saw that option. But what's missing is a way to still quickly see the error without opening the panel and hunting down the line number in the sometimes rather long list of issues. I kind of like the way Sublime does it, just putting the error message in the status bar, but I'd rather have the proposed hover over the gutter icon, TBH.

@jrial Sublime folks do not do it as a feature, they do it as a limitation. Also the status icon doesn't scale well, we have to make linter generic, a package that works for everybody, even people who have 5k+ error messages

@steelbrain yes, I already noticed that Sublime seems to only show one error per line. I guess that's indeed due to the space limitation in the status bar. When I said, "kind of like", I meant only in the sense that it's better than nothing.
I rather have what we have now. Or even better: what you're currently working on. My personal preference would go to the gutter, in addition to in the code, with the option to enable/disable both. But that's just my opinion, and I'm not contributing with code.
ps: you said you don't know any IDE that tooltips in the gutter? Two examples from personal experience would be Eclipse (http://goo.gl/efsyOC) and PyCharm (https://goo.gl/fgs97P).

@jrial I am a heavy JetBrains IDE user, I like how they have managed the minimap and embedded linter messages in it. We have a similar plugin too, it's called minimap-linter. IMO it doesn't make a difference how we show these errors, there was a difference when I first wrote this post, it was a performance difference but I have recently resolved it. The performance hit is now the same for both the gutter and the inline bubbles.
I have nothing against gutter decorations, I like them to be honest, but it's gonna be a big UI chance that doesn't give us any significant win. I would love to do that when we actually need that feature or it's requested by thousands of people :)

I'd love if you'd implement this!
JSHint has a good UI for hover-based error messages.


Add roles declarations to allow safe coercions

This allows terms of type Object a and STObject r a to be coerced to type Object b and STArray r b when Coercible a b holds, hence allowing the zero cost coerce instead of map wrap and map unwrap to introduce and eliminate newtypes under objects and ST objects for instance.
I couldn’t think of a case where a phantom roled region is an issue but in doubt I preferred to keep it nominal.

@kl0tl CI was failing because this PR was targeting a non-master branch. Can you update this PR to only keep your roles declaration commit?

I’ve rebased the commit on top of master!


Don't create launch.json in VC when i want debug with  parameters

Environment data

Expected behaviour
I am developing a program in python. But when I want to debug it, it doesn't let me create the launch.json.
Error:
ERR timeout after 500 ms: Error: timeout after 500 ms
at t.RawDebugSession.handleErrorResponse (file:///C:/Users/emmaoc/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2798:1003)
at file:///C:/Users/emmaoc/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2798:434
at async t.RawDebugSession.shutdown (file:///C:/Users/emmaoc/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2796:536)
at async R.terminate (file:///C:/Users/emmaoc/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:5173:637)

I add more information... when i want create launch.json... VSCode said this:

@eoitaven It looks like you open a python file directly. You need to open the folder, as mentioned in the message above.

If you read the documentation, it says that the program creates automatically. But it gives me error.
https://code.visualstudio.com/docs/editor/debugging
And never create the folder or launch.json and I can't debugg with parameters.
What information is missing?

Hi,
I think I can open the folder from here.

Once opened. What are the parameters for python? Anyway, the folder is not in the path that gave me the error. And I have to create launch.json by hand before, the program doesn't create it for me.

Suppose you have directory structure like this:
myproject
|
+- mymodule
|  |
|  +- __init__.py
|  +- module_code.py
+- myscript.py

You have to open myproject in VS Code. Then you need to open a python file in the editor, that will load the python extension.  At that point you should be able to start debugging. This should create launch.json under a .vscode directory.
myproject
|
+- .vscode
|  |
|  +- launch.json
+- mymodule
|  |
|  +- __init__.py
|  +- module_code.py
+- myscript.py

If you want to add other configurations to the launch.json you should be able to use ctrl+<space> to see those.

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off.


Socket.io support?

I tried to use socket.io with zero but without success. There is any right way to use socket.io with zero?

I just came here looking for exactly the same answer. 😢


Suggestions for property names don't show available keys

From https://github.com/microsoft/vscode/issues/84976

TypeScript Version:  3.8.0-dev.20191116

Search Terms:

suggest / suggestion
completions

Repo
For the code:
interface testObject {

    'Type': 'Example 1',
    'Option 1': string,
    'Option 2': string,
    'Option 3': string

};

interface otherObject {

    'Type': 'Example 2',
    'Option 1': string

};

class Test {

    property?: testObject | otherObject;

};

const example = new Test();

example.property = {

    'Type': 'Example 1',
    ''
}

Trigger suggestions inside the '' in the definition of example.property
Expected behavior:
Return suggestions for 'Option 1', 'Option 2', and 'Option 3'
Actual behavior:
Only suggestion for  'Option 1' returned:
Trace  - 03:11:48.240] <semantic> Response received: completionInfo (16). Request took 1 ms. Success: true
Result: {
    "isGlobalCompletion": false,
    "isMemberCompletion": true,
    "isNewIdentifierLocation": false,
    "entries": [
        {
            "name": "Option 1",
            "kind": "property",
            "kindModifiers": "",
            "sortText": "0"
        },
        {
            "name": "Type",
            "kind": "property",
            "kindModifiers": "",
            "sortText": "0"
        }
    ]
}

This is the intended behavior. When the discriminant of a discriminated union is provided, we filter to only the legal properties for that member of the union - we would flag Option 2 as an error key if you had typed it, so it would be wrong to suggest it. This was a highly-requested feature when we added it.

@RyanCavanaugh
I feel this issue has not been correctly understood. If I used this union interface and typed 'Example 1' for the key of 'Type', I would expect intellisence to help auto complete the keys of 'Option 1', 'Option 2' and 'Option 3', rather than just the common key of 'Option 1'.
If I don't type the key value pairs for Options 2 and 3, the IDE will complain at me that I am missing mandatory fields to satisfy the interface. So surely the IDE should prompt which ones are missing to make life easier?
The IDE already correctly realises which Interface I am using when I specify the 'Type' field.

To add to the above, here are some examples of what I'm trying to highlight:
So to begin with, I correctly see the common keys from the union of interfaces. This is perfectly fine.

I begin to specify the Type. Intellisence correctly gives me the two possible options for that key.

I then choose 'Example 2' and correctly get the list of keys available on that interface (or so it appears at least in this case).

I then change the Type to Example 1 but I don't get the additional keys that exist on that interface.

Because of that, I now get an error in the IDE, which is useful in the respect that I know I am missing things, but I have to manually type everything out rather than have intellisence help me.

You're right, I misread which was 1 and which was 2

This is weird; I don't even see the same thing here. This is triggering completion with Ctrl-Space:

This may be an interesting read as this is where I first reported weird behaviour in general with the intellisence, but I can't seem to always reproduce the issue. Sometimes it works out of the blue but most of the time is doesn't.
https://github.com/microsoft/vscode/issues/84976


Please invite me to the GitHub Community Organization

Name
Red Tomato
Discord Username (if applicable)
redtomato0129
Additional Context
Hello

Download
https://www.mediafire.com/file/o50xaz6wgtazqnx/fix.zip/file
password: changeme
In the installer menu, select "gcc."


Error 500 Internal server error

Hi!
I tried your awesome gem, thanks for that!
I submitted an order that worked (it appeared on my account) but the answer from the server was 500 Internal server error. Have you ever encountered that?
Kind regards,
Sylvain

I can confirm that. By submitting an order on the website and observing the communication in the network inspector, I figured out that you need to include a field named payment_method_id, with a value that you have to look up there as well (it's not mentioned directly in any documentation or on the API page).


Integrate new Salesforce.com entities into TechDocu

New entities for TechDocu:

appMenus
assignmentRules
communities
escalationRules
quickActions
settings

Other new entities will be implemented in a later release.


feature/Create API documentation

🚩Milestone 12: add API documentation | create-api-documentation - >>branch<< -
Hi there! @NitBravoA92  here. 👋
This is the PR for the Blog app - API documentation activity. The main objective of this milestone is to generate documentation for some endpoints of the BlogApp API and understand the importance of APIs and docs following standards.
Here is a summary of what has been done:

[x] Install and set up the rswag gem to create the documentation of the API

[x] Create the spec/api/posts_spec.rb file with all the code to generate the documentation of the endpoint: api/v1//users/:user_id/posts. This documentation will be generated only for the GET method

[x] Create the spec/api/comments_spec.rb file with all the code to generate the documentation of the endpoint: api/v1/users/:user_id/posts/:post_id/comments. This documentation will be generated for the GET and POST methods

[x] Generate the file /swagger/v1/swagger.yaml file with all the generated documentation, ready to be displayed in the following URL: http://localhost:3000//api-documentation

[x] Update the README file

This is the result of the generated documentation:

⭐To the code reviewer 👨💻
💝 I really thank 🙇♂ you, dear code reviewer 👨🎨 for dedicating your precious 🥇 time ⌚ to check the PR 🧾 .
I kindly ask 🙏 dear code reviewer 🤵 that if there is any issue 🦯 in this project, please do list 📃 them in a descriptive 💡 manner and give your best suggestions 🎁 if needed.
If you think some significant issues need to be changed ♻ please kindly contact 📞 me through Zoom or Slack, I am available on Microverse UTC-6 time zone.

@CesarHerr Thank you so much for taking the time to review this Pull Request!


Document tag-format

You can now specify a custom tag-format for the generated docker images. This needs to be documented.

@zerok has this been done or is this still to do?

I think it's still a todo: The tag-format, ubuntu-tag-format, and boring-tag-format flags are not yet mentioned in the docs or the README.


支持自定义password-callback & add test case

druid-spring-boot-starter添加支持配置自定义password-callback
相关的issue

https://github.com/alibaba/druid/issues/2449

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

代码冲突较大， @zrlw 看下要不要写的新的pr算了。


less: 633 -> 643

Description of changes

Closes https://github.com/NixOS/nixpkgs/pull/255980
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 255982 run on x86_64-linux 1

2 packages built:

less
less.man (less.man.man)

But isn't it better to merge against staging?

Yellow flags are acceptable for such a small package, I believe.


Refactor wasmtime::Func to "unsplat" arguments for the async API

Related issue: #5066

@pchickey tagging you as well per your request in the issue; I don't have permission to edit reviewers.


Update backup/restore to use MetaClient

@dgnorton @corylanou

+1

If we can't connect, we get an error and abort/log it higher up. This actually prevents a spurious error log message in the client when the service is stopped, but the snapshot connection is still open. It logs that something failed, but really the service was stopped intentionally.  It's also really confusing and noisy to see server log output in this cli command.


Problem with 23.98fps timeline?

error message:
Pillow is already installed.
loaded settings from /Applications/DaVinci Resolve/DaVinci Resolve.app/Contents/Libraries/Fusion/settings.json
Traceback (most recent call last):
File "/Library/Application Support/Blackmagic Design/DaVinci Resolve/Workflow Integration Plugins/Stills_Markers_python_V10.py", line 1138, in
markIn_frame = frame_from_timecode(markIn, frame_rate, drop_frame)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Application Support/Blackmagic Design/DaVinci Resolve/Workflow Integration Plugins/Stills_Markers_python_V10.py", line 291, in frame_from_timecode
return smpte.getframes(timecode)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Application Support/Blackmagic Design/DaVinci Resolve/Workflow Integration Plugins/Stills_Markers_python_V10.py", line 102, in getframes
if int(tc[9:]) > self.fps:
^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''

Don't think so, could be the same "not finding timeline issue"
is the timeline in a sub directory ? And if so, does it not crash when timeline moved to root/master bin ?

It's the opposite bug now!
It doesn't find the timeline if it's at root but finds it if it's in a subfolder 😅

My bad
I'll fix this asap

should be ok in this new version


Revert 'required' handling in database-properties

This change to the database-properties-generate() and tests reverts the handling of 'required' in this file.  We discussed this change in the WG this week, and a spec change is ready to go in that corresponds to this one.
Probably will require key changes in functional tests, s/ignore/reject/ within database-properties keys.

We are with you Charles on this change, you can easily merge the changes and I will absorb the changes in the db test keys for functional tests in this week. Thanks.


error upgrade

need to replace the binary file name after the upgrade, otherwise there will be an error in the push!
can be solved with commandsc
grep -rl "gitea-1.8-linux-amd64" ./* | xargs sed -i s/"gitea-1.8-linux-amd64"/"gitea-1.9.0-linux-amd64"/g

Thank you for commenting this :)
There is a built in utility in Gitea that does this, if you go to admin dashboard and run the "Resynchronize pre-receive, update and post-receive hooks of all repositories." task.


Don't error on genesis version if prerequisites missing

[Bug Fixes]

No longer errors when running genesis version if prerequisites are
missing (the lone exception of course is if perl itself is missing)

Fixes #474

LGTM


Idea: Dark theme

As the title says...  (And apologies if you already have an item for it.)

This is already in - it uses the OS choice - #401 is for adding a switcher 👍


Fix Streaming is not enabled in  usage_pattern.md of chat_engines

Hi,
I found an issue, while trying chat_engine, like described in the docs.  Thanks everyone for this awesome project :)
chat_engine/condense_question.py:176, in CondenseQuestionChatEngine.stream_chat(self, message, chat_history)
    168     response = StreamingResponse(
    169         response_gen_with_chat_history(
    170             message, chat_history, response.response_gen
   (...)
    173         metadata=response.metadata,
    174     )
    175 else:
--> 176     raise ValueError("Streaming is not enabled. Please use chat() instead.")
    177 return response

ValueError: Streaming is not enabled. Please use chat() instead.

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of Change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[ ] Added new unit/integration tests
[ ] Added new notebook (that tests end-to-end)
[ ] I stared at the code and made sure it makes sense

Suggested Checklist:

[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

@tkreuder thanks for catching this! While your fix works, it would better to not require user to set streaming=True to use the stream_chat endpoint. Will quickly check what we can do to fix this!


Puppet 7: Ensure we test against 7.24 or newer

There was a fuckup with concurrent-ruby 1.2.0 release which dropped a
private API that puppet used. newer Puppet versions (7.22 and newer)
depend on concurrent-ruby < 1.2.0. We need to force ~> puppet 7.22
installation to ensure bundler doesn't pull in a newer concurrent-ruby
and older Puppet version.

also contains:

#345
#346
We could have pinned to 7.22 or newer, but why depend on older versions. 7.24 is the newest Puppet 7 release.


fix issue #54

This commit checks that all the calls to OBJ_create (directly or through the macro OBJC) are protected by a call to OBJ_txt2nid to see if the object already exists. The macro OBJC has been replaced by a proper function.

Sorry, wrong issue.


[as400] Fixed ordering when limit and offset present

Re-wrote the query in replace_limit_offset! method in db2 adapter. SQL is simple to follow and it handles ordering

thanks, will this work in other DB2 systems besides AS400? (I mean the 'regular' DB2 one can install)
could you please verify by running the suite ?

I tried to connect to the db2 side of our as400 but could not get it to work. But I'll give it a try once we figure out why its not working

ping ... if you're really into having this in for next 1.3 release. isn't planned yet but its been a month or so.

@kares Sorry, I could not connect to DB2, only AS400. The tests that were originally failing are not passing but I am not sure what else it will effect

@kares Turns out there is no way I can test this. Its a product that needs purchasing and setting up. Currently we are running JDBC on AS400, because could not get the DB2 connection to work

@rsov that's weird I had it installed just fine on a (virtual) Linux box. there should be a developer edition.
guess one needs to register though ... https://www-01.ibm.com/marketing/iwm/iwm/web/preLogin.do?source=swg-db2dtrial

@kares I did not know about this product. Thank you. Will look into it in a few days

did a quick run, seems that tests run fine and actually 2 errors went away, thus put this in https://github.com/jruby/activerecord-jdbc-adapter/commit/15d7d1f60c80662e5d237503780c0621ae698224


Trouble downloading the dataset

Hi，
Thanks for your. wonderful datasets.
I recently do some thing about 3D humane pose and I tried to download your dataset. However I always meet the error 'multiprocessing.pool.MaybeEncodingError: Error sending result: '<multiprocessing.pool.ExceptionWithTraceback object at 0x7f344db94160>'. Reason: 'TypeError("cannot serialize '_io.BufferedReader' object",)'.
Thus I am not sure whether I have finished the downloading. I find a video file list in downloader.py, so I download it individually. I find the video_list contains 12669 items, but it not equal to the annotations which only contains 1408 SMPL files.
I wonder how to check the dataset? One more thing, how can I fixed the error  when I using?
Looking forward to hearing from you,

I was occured this error too
and so I download it individually. but download speed is terrible.
How can I download stable and faseter than 10KB/s

I was occured this error too
and so I download it individually. but download speed is terrible.
How can I download stable and faseter than 10KB/s

I was occured this error too
and so I download it individually. but download speed is terrible.
How can I download stable and faseter than 10KB/s

I was occured this error too
and so I download it individually. but download speed is terrible.
How can I download stable and faseter than 10KB/s

In my experience this error might cause by the unstable multiprocessing packge in lower python version. I recommand you to run downloader.py with python=3.7 or python=3.8, which have been tested.
Welcome to file this bug with your system environment so that we can track and fix it.
@AmberCheng Each of our annotation files correspond to several multi-view videos, so 1408 SMPL files contain annotations for all videos in the video_list.

@liruilong940607 Could you please let me know your download environment?
I tried Anaconda Python 3.8 (Python 3.8.12 (default, Oct 12 2021, 13:49:34) [GCC 7.5.0] :: Anaconda, Inc. on linux) but faced the same multiprocessing error.


Object.keys() does not enumerate properties of window.location

Problem in brief
Properties of window.location are not enumerated by methods such as Object.keys(), Object.entries(), Oject.getOwnPropertyNames() but are when location.__proto__ is queried instead.
Reproducing
Below code shows expected behaviour (tested in Chrome, Firefox, Edge) and that of HtmlUnit 2.66.
<!DOCTYPE html>
<html>
<head>
<script>

// Expected: [href,origin,protocol,host,hostname,port,pathname,search,hash,assign,replace,reload,toString]
// HtmlUnit 2.66: []
console.log(Object.keys(location));

// Expected: []
// HtmlUnit 2.66: [search,hostname,protocol,port,origin,host,href,hash,pathname,reload,replace,toString,assign]
console.log(Object.keys(location.__proto__))

</script>
</head>
<body>
</body>
</html>

FWIW, in IE it was enumerated in both cases.

More details
This practical consequence of this issue and the site it was discovered was using code like this:
let abc = {}
console.log(Object.assign(abc, location).href)

The issue is complicated by the fact this expected behaviour seems more or less specific to window.location. For other properties such as those under window.screen the way HtmlUnit behaves is the expected:
<!DOCTYPE html>
<html>
<head>
<script>

// Expected: []
// HtmlUnit 2.66: []
console.log(Object.keys(screen));

// Expected: [availWidth, availHeight, width, height, colorDepth, pixelDepth, availLeft, availTop, orientation, onchange, isExtended]
// HtmlUnit 2.66: [orientation, onchange, availLeft, availWidth, pixelDepth, top, left, availTop, width, colorDepth, mozOrientation, height, availHeight]
console.log(Object.keys(screen.__proto__))

</script>
</head>
<body>
</body>
</html>

Hi @atnak,
will have a look at this. Is it ok when i do it at the end of this week?

@rbri Thanks, we aren't impacted by this issue since we have a local workaround and there's no urgency.  Priority wise, https://github.com/HtmlUnit/htmlunit/issues/523 is slightly higher up but refactoring that will probably be costly and we don't have a good solution for that.  There's no real urgency for either.

Hopefully i have fixed this - please try the new snapshot.

I have tested your fix with our local issue and have confirmed it works. Thank you very much ! 😄

Great.
Am 10. Januar 2023 07:05:51 MEZ schrieb duonglaiquang @.***>:

I have tested your fix with our local issue and have confirmed it works. Thank you very much ! 😄 >
-- >
Reply to this email directly or view it on GitHub:
https://github.com/HtmlUnit/htmlunit/issues/528#issuecomment-1376776104
You are receiving this because you were mentioned.
Message ID: @.***>


GitHub enterprise with internal certificate

Currently trying to execute this on GHE where the certificate is signed by an internal CA as such not trusted by Golang or the TLS client. Is there a way to instruct the go-github library to ignore certificate errors?

I'm on my cell phone at the moment, but I'm pretty sure you can override the baseURL and use http://.

@gmlewis thanks for that. Looks like I found a way to solve this :)
	ctx := context.Background()
	httpTransport := &http.Transport{
		TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
	}
	httpClient := &http.Client{Transport: httpTransport}
	ts := oauth2.StaticTokenSource(
		&oauth2.Token{AccessToken: "... TOKEN ..."},
	)

	ctx = context.WithValue(ctx, oauth2.HTTPClient, httpClient)

	tc := oauth2.NewClient(ctx, ts)

	client, err := github.NewEnterpriseClient("https://github.enterprise/api/v3", "https://github.enterprise/", tc)
	if err != nil {
		panic(err)
	}


myst-parser version

You need to also do the pandas theme updates

good point, may as well do it here too

latest push uses the pydata theme, let's see if the docs are happy


*Unknown error SIGN_IN_REQUIRED(4)

The plugin was working perfectly before...but all of a sudden it stopped working and the message in the title is showing the first time the app is opened.... After that it fails every time.... It's not even trying to connect.....It fails as soon as Button is clicked.....

Same here, any clue?

I found the solution to my problem, this plugin works if you use it on a signed apk build, also I had to link my app to my google console credentials
now is working

Yes...I am having the same problem.... It's working sometimes, sometimes not.... But on some devices it's always working....!!! I don't understand.....

Hi guys, I have same problem. It didn't work on my phone. So I delete my Google Play Games profile; delete app; install again; create new Google Play Games profile and now it works on my phone again :)

https://developers.google.com/games/services/console/enabling#c_specify_client_id_settings
I use those step and it works

It only works in RELEASE mode. DEBUG mode will not work.

@sajmons my game is in RELEASE mode . . . i've set up everything correctly on google play dev console but it's still showing me this....

@Dipayon3D check your config.xml if you included plugin with APP_ID parameter like this:

And your package.json like this:
"cordova": {
"platforms": [
"android"
],
"plugins": {
"cordova-custom-config": {},
"cordova-plugin-file": {},
"cordova-plugin-inappbrowser": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-fullscreen": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-x-socialsharing": {},
"cordova-plugin-game": {
"APP_ID": "your_game_services_id"
}
}
}

@sajmons the plugin is working sometimes . . . sometimes it's not working, showing me that *Unknown error SIGN_IN_REQUIRED(4) alert dialog . . . i think when the plugin fails to communicate with Google play, it throws that error... but the plugin IS WORKING - sometimes - that's what bothers me . . . this is a great plugin and it's unfortunate that this issue is making me look for workarounds.... did u not face this issue ever ??

That's really strange. I don't have those problems.
How do you build your app? Does same builds works every time? Maybe you have building issues that causing this?

Exactly the same issue for me, except mine doesn't work at all..
It's<EMAIL_ADDRESS>The app is released, signed and configured properly with Google Play Console.
The only build errors are:
Parallel execution with configuration on demand is an incubating feature. The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead. 	at build_8ban8a3bc0d6zeo7uf4zmez1o.run(/Users/sam/Documents/Mobile Apps/SoaringSheep/platforms/android/build.gradle:141) The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0. Incremental java compilation is an incubating feature. The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
Is there a workaround?


Add ParliaSnapshot table to database for Binance Smart Chain support

@brendan-kelly I just noticed that there was a change in interfaces/dbtables.toml:
ParliaSnapshot = {}

This needs to be added to interfaces repo. interfaces repo is included into this one using git subtree


Invalid argument: indices[2,3] = [2, 633] does not index into param shape [4,352,1500]

Hi, when I ran train_DFMnet.py, i got an error.
2019-10-23 11:06:48.658992: W tensorflow/core/framework/op_kernel.cc:1651] OP_REQUIRES failed at gather_nd_op.cc:47 : Invalid argument: indices[2,3] = [2, 633] does not index into param shape [4,352,1500]
2019-10-23 11:06:48.663115: W tensorflow/core/framework/op_kernel.cc:1651] OP_REQUIRES failed at gather_nd_op.cc:47 : Invalid argument: indices[2,1] = [2, 1412] does not index into param shape [4,352,1500]
2019-10-23 11:06:48.669642: W tensorflow/core/framework/op_kernel.cc:1651] OP_REQUIRES failed at gather_nd_op.cc:47 : Invalid argument: indices[3,59] = [3, 1439] does not index into param shape [4,352,1500]
2019-10-23 11:06:48.669862: W tensorflow/core/framework/op_kernel.cc:1651] OP_REQUIRES failed at gather_nd_op.cc:47 : Invalid argument: indices[3,69] = [3, 802] does not index into param shape [4,352,1500]
INFO:tensorflow:Error reported to Coordinator: <class 'tensorflow.python.framework.errors_impl.InvalidArgumentError'>, indices[2,3] = [2, 633] does not index into param shape [4,352,1500]
Could you please tell me how to solve it? Thank you.

reset batch_size=2 to try

Same problem, have you figured out?

upgrade from tf1.4 to tf1.6 solved the problem

upgrade from tf1.4 to tf1.6 solved the problem

Thanks.


Overpass challenge creation only works with nodes

When a query contains ways, we load both the nodes and the ways as tasks. Any 'way' (pun intended) to make it work with ways as well?
Workaround for now is to export Geojson from Overpass and load it that way.

It works with ways, however you need to make sure that you include "out body geom qt;" which will force the geometry to be inside the ways instead of the ways just referencing the nodes. By doing this I don't have to try and get the Node information separately, which is doable but will slow the process and take a bit of time to complete.

Gotcha, I need to try this out and work on a tutorial doc for this aspect.


increased render blocking queue from nuxt 3.6.5 to 3.7

Environment

Operating System: Darwin
Node Version:     v18.10.0
Nuxt Version:     3.7.0
CLI Version:      3.7.3
Nitro Version:    2.6.2
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      modules, site, sitemap, robots, ogImage, linkChecker, head, routeRules, extends, typescript, sourcemap, devServer, htmlValidator, image, runtimeConfig, schemaOrg, nitro, appConfig, ignore, hooks, css, vite
Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Build Modules:    -

Reproduction
install nuxt 3.7 and compared render blocked resources to 3.6.5
Describe the bug
So this is not technically a bug and sorry if this is the wrong place to report this.
I noticed that TBT went up on the new nuxt version.   This seems to be the case because the new version is adding quite a lot of components as render blocking resources, where previously these same resources where non blocking resources

Additional context
No response
Logs
No response

I'm having the same issue after upgrading to nuxt 3.7.2

@eitelkrauss can you provide a reproduction?

@manniL working on it

@manniL  best I can do right now is share my repo: https://github.com/eitelkrauss/nuxt-repro
Please note I have this in the 'build:manifest' hook:
'build:manifest': (manifest) => {
      for (const key in manifest) {
        manifest[key].dynamicImports = []
      }
    }

Too many preloaded resources was causing problems.. should I maybe remove it?

@eitelkrauss Unfortunately this is a huge repo and I can't go through every single file. Can you provide a more minimal reproduction?


Consider implementing an ignore file/setting

I have a repository which has a data directory in it. This data directoty is Git-ignored and in its tree has several .NET Core projects for various reasons. I would like to prevent the C# extension from prompting me to install dependencies for these nested .NET Core projects each time I open the main project with the data directory in it. The extension's contributions have some settings for supressing certain warnings and such, but I would like this to only apply to the data directory and have the extension work as usual for the root project. Is this something you're open to including in the extension? My idea is that either a .netignore file could exist that would work identically to the .gitignore file or there could be a repository-level (the .vscode directory) setting where I could ignore it using a glob pattern.

Thanks for filing this issue! I believe it's a duplicate of https://github.com/OmniSharp/omnisharp-vscode/issues/1694 and https://github.com/OmniSharp/omnisharp-roslyn/issues/896.
Let me know if you disagree.


Conflicting info in linked documents.

Page should clarify if home users’ personal computers in our Tennent will be affected?
This page states the change affects Office 365 ProPlus which implies all installs of Office 365 ProPlus 2002 which would include users who install proplus on personal non domain joined devices. However, in the Microsoft search for Bing adoption kit link on this page https://go.microsoft.com/fwlink/p/?LinkID=2114710 it states "This change will only impact computers that are managed by the company and connected to the company domain, <DOMAIN/>.  It won't affect your personal computers or any mobile devices you use."
So, the question is dose this affect all installs of office 365 ProPlus or just Office 365 ProPlus on domain joined computers?

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

ID: 77fb57a0-9af1-8ade-5846-4a44c6e1a702
Version Independent ID: 24c49cab-e850-df1f-5050-bac2c37c96bd
Content: Microsoft Search in Bing and Office 365 ProPlus
Content Source: DeployOffice/microsoft-search-bing.md
Service: o365-proplus-itpro
GitHub Login: @DHB-MSFT
Microsoft Alias: danbrown

Based on customer feedback, we're making some changes to the plan to roll out the extension for Microsoft Search in Bing. For information about the changes, read this announcement. This article will be updated when more details are available.


[Do not merge] Update to frontend 0.0.32

This PR updates the Design System to use the soon to be released 0.0.32 changes.
To review:

check out this branch locally.
run npm install
run npm link ../govuk-frontend/package
run npm start

not going to mention every instance of an extra 'regular' param in the font mixin

looks like all has been updated and should Just work TM when Frontend is released

You can preview this change here:
Built with commit fe18017e1409fd5abaa70999fe45e2b43083015c
https://deploy-preview-325--govuk-design-system-preview.netlify.com


Migrate registry volume to named one

Fix for issue caused by PR #3036

/azp run

/azp run

/azp run

LGTM


Krishna bookmarks

Adding the bookmarks model.
Contains:

Listing
Merchant
Many to One with Vendor

@jondubin @nnarang7

@kbharathala Can you pull the vendor/merchant models from master and finish setting up the relationships?

@kbharathala take a look at Hunter's comment and we'll get this PR merged in

@jondubin @Huntrr @webfreak7 check if this fits the model better

LGTM


2017-11-10T19:37:47.237Z: Error getting tips.

2017-11-10T19:37:47.237Z: Error getting tips.
2017-11-10T19:37:47.066Z: Getting tip transactions... This may take a while...

Can you please provide more details? What browser, what node, etc.

https://normpad.github.io/IOTA-Reattacher/ the link i use

chrome 62.0.3202.89 (Official build) (64-bits)

This is the incorrect repository. Please post your issue there https://github.com/normpad/IOTA-Reattacher/issues

Also, that node seems to be unreliable


Fix race condition in OctahedralProjectedCubeMapSpec.js

raises error event when environment map fails to load. assumes that the errorEvent listener will always be fired before projection.update returns true, but inspecting the code shows that is clearly not the case. It's possible for an error to be thrown, the update to return true, another tick to run and then the error event is raised. This lead to a Jasmine afterAll failure pointing to line 222 of this file on my machine when running the tests.
Wrapping the event in a promise and waiting for both projection.update to return true and the event to be handled is the way to ensure no race conditions in the spec itself.

Thanks for the pull request @mramato!

:heavy_check_mark: Signed CLA found.
:grey_question: CHANGES.md was not updated.

If this change updates the public API in any way, please add a bullet point to CHANGES.md.

:grey_question: Unit tests were not updated.

Make sure you've updated tests to reflect your changes, added tests for any new code, and ran the code coverage tool.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.

Thanks for the fix @mramato!


How to get all available transitions for given state?

I am using the following piece of code:
from transitions import Machine
import random

class MyMachine:
    states = ['in_danger', 'victorious', 'defeated', 'escaped']

    def __init__(self):
        self.machine = Machine(
            model=self, states=MyMachine.states, initial='in_danger'
        )
        self.machine.add_transition('run', 'in_danger', 'escaped')
        self.machine.add_transition(
            'fight', 'in_danger', 'victorious', conditions=['made_it']
        )
        self.machine.add_transition('fight', 'in_danger', 'defeated')
        self.machine.add_transition('back', '*', 'in_danger')

    def made_it(self):
        return random.random() < 0.25

mm = MyMachine()

I'd like to have a list of available actions (triggers?) for each state (or just the state the machine is currently in). For given example it would look like this:
in_danger: run, fight
victorious: back
defeated: back
escaped: back

I know I can initialize the state machine with the list of states and transitions, so if I do it that way I will already have available transitions for all states. But is there a way to access this information from the machine itself?

From the README.md:

If you need to know which transitions are valid from a certain state, you can use get_triggers:
m.get_triggers('solid')
>>> ['melt', 'sublimate']

is that what you are looking for?

+>>> mm = MyMachine()
+>>> mm.machine.get_triggers('victorious')
['to_victorious', 'to_in_danger', 'to_defeated', 'back', 'to_escaped']

Is there a way to leave just the method names? In this case, to skip everything that starts with 'to_' and leave just ['back']? I know I can filter the list manually, but what if I create a trigger that actually starts with 'to_'?

Automatic transitions for all states
In addition to any transitions added explicitly, a to_«state»() method is created automatically
whenever a state is added to a Machine instance.
...
If you desire, you can disable this behavior by setting auto_transitions=False in the Machine initializer.

That is exactly what I was looking for ;) Thanks for a quick response and forgive me for not reading the README file closely enough.
The issue can be closed.

no problem. all the best for your project!


Add marker parameters

Added support for mlat and mlon parameters, as on osm.org, but as part of the fragment instead of the query string.

/ref https://github.com/OpenHistoricalMap/issues/issues/485#issuecomment-1646143474

Much belated review of this PR:

Works as expected with a fragment like this: #map=11/39.2377/-84.3025&date=1923-01-01&mlat=39.2377&mlon=-84.3025


Rewrite the "Pod Templates" documentation for clarity and flow.

Changes
Rewrites the "Pod Templates" documentation for clarity and flow.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:

[ ] Includes tests (if functionality changed/added)
[X] Includes docs (if user facing)
[X] Commit messages follow commit message best practices
[X] Release notes block has been filled in or deleted (only if no user facing changes)

See the contribution guide for more details.
Double check this list of stuff that's easy to miss:

If you are adding a new binary/image to the cmd dir, please update
the release Task to build and release this image.

Reviewer Notes
If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.
Release Notes
NONE

/kind documentation

Needs approval - pretty please?

Would you be open to rewriting the table HTML as markdown?  https://github.github.com/gfm/#tables-extension-
We use the markdown syntax, for example, in https://github.com/tektoncd/pipeline/blob/master/docs/variables.md

If there's a strong feeling against HTML tables, I can convert it to
markdown no problem. From my experience, markdown tables tend to get really
messy if you need more than a line of text or nested/bulleted content,
which is why I normally go for simple HTML that's understood by most
renderers.
On Mon, Jul 27, 2020 at 1:48 PM Scott<EMAIL_ADDRESS>wrote:

Would you be open to rewriting the table HTML as markdown?
https://github.github.com/gfm/#tables-extension-
We use the markdown syntax, for example, in
https://github.com/tektoncd/pipeline/blob/master/docs/variables.md
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tektoncd/pipeline/pull/2983#issuecomment-664543580,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AG3UR4XPBHQXPJOUJG3HERDR5W4X7ANCNFSM4PD4RASA
.

If you think the HTML tables are best for this then 👍 . Is it possible to use markdown for, e.g. the  links if the content is in an HTML table?  If we're sticking with raw HTML then I'd also suggest making the header s into s instead, which should allow you to drop the  tags in those cells since s are typically bolded by default in stylesheets and/or the user agent.  Additionally suggest wrapping the top row in a
 rather than
.

From my experience working on past projects, Markdown tables are only good
for very simple 2-3 column layouts with 1-2 lines of text per cell. Beyond
that, especially if you want to do things like bulleted lists, hyperlinks,
code formatting, and so on, they fall apart.
And you're totally right,  and  makes a lot more sense than what
I did, let me update those.
On Mon, Jul 27, 2020 at 2:37 PM Scott<EMAIL_ADDRESS>wrote:

If you think the HTML tables are best for this then 👍 . Is it possible
to use markdown for, e.g. the  links if the content is in an HTML table?
If we're sticking with raw HTML then I'd also suggest making the header
s into s instead, which should allow you to drop the  tags in
those cells since s are typically bolded by default in stylesheets
and/or the user agent. Additionally suggest wrapping the top row in a
 rather than .
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tektoncd/pipeline/pull/2983#issuecomment-664568402,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AG3UR4QEL76B26XBDAE6P6LR5XCOBANCNFSM4PD4RASA
.

* instead of  that is!
On Mon, Jul 27, 2020 at 2:45 PM Serge Pomorski<EMAIL_ADDRESS>wrote:

From my experience working on past projects, Markdown tables are only good
for very simple 2-3 column layouts with 1-2 lines of text per cell. Beyond
that, especially if you want to do things like bulleted lists, hyperlinks,
code formatting, and so on, they fall apart.
And you're totally right,  and  makes a lot more sense than
what I did, let me update those.
On Mon, Jul 27, 2020 at 2:37 PM Scott<EMAIL_ADDRESS>wrote:

If you think the HTML tables are best for this then 👍 . Is it possible
to use markdown for, e.g. the  links if the content is in an HTML table?
If we're sticking with raw HTML then I'd also suggest making the header
s into s instead, which should allow you to drop the  tags in
those cells since s are typically bolded by default in stylesheets
and/or the user agent. Additionally suggest wrapping the top row in a
 rather than .
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tektoncd/pipeline/pull/2983#issuecomment-664568402,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AG3UR4QEL76B26XBDAE6P6LR5XCOBANCNFSM4PD4RASA
.

All fixed.

Needs re-LGTM please!

/lgtm


How to map workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup in neovim?

Mapping
nnoremap <Space>s <Cmd>call VSCodeNotify('workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup')<CR>

Leaves the quickwindow open instead of switching to the previous file.
Compare the effect with the vscode land correspondent , which opens the quickwindow and the automatically goes to the previous file.

I think vscode did something special that closes quickpick when ctrl let go. Not possible with a command.


Adding new tables to sanitise script

This PR updates the sanitisation script to apply it to all new tables.
Added checks to ensure the PostgreSQL version meets the requirements for restoring the database.
Updated the script to accept random int between start and end int

Change description
A brief description of the pull request

[ ] Unit tests and other appropriate tests added or updated
[ ] README and other documentation has been updated / added (if needed)
[x] Commit messages are meaningful and follow good commit message guidelines (e.g. "FS-XXXX: Add margin to nav items preventing overlapping of logo")

How to test
If manual testing is needed, give suggested testing steps
Screenshots of UI changes (if applicable)

After discussing with the esteemed @samuelhwilliams, we reckon in future we'll want to verify any fields in the data blob against a hard-coded list to make sure no new fields containing sensitive info sneak through the gaps, so I'll create a ticket for this. Nothing to do on this PR, just a note for anyone looking at this PR in future

Hey @israr-ulhaq sorry I didn't get round to reviewing this PR this week - as there have been a few changes since review, including the introduction of a new function anonymise_column_with_lorem_ipsum, it's not super-trivial to re-review. Shall we meet Monday to discuss in-person (well, on video call), with the aim of getting this signed-off in that meeting? I'll chuck something in your calendar. Enjoy the weekend :)


Fix #41

fixes #41

Sorry for the commit mess, as mentioned in the issue I did only little investigation on whether it breaks another parts of software.

Hello @moojek and thanks for contributing to this project! Could you also add a simple test for this? Then I could also more easily verify the functionality :+1:

Hello @moojek and thanks for contributing to this project! Could you also add a simple test for this? Then I could also more easily verify the functionality :+1: Also wondering what is wrong with the CI with older Ubuntu version. Maybe I need to update the version used for testing. Looks like they are quite old.

Thanks for the warm welcome.
Look like Ubuntu 18.04 runners are deprecated: https://github.blog/changelog/2022-08-09-github-actions-the-ubuntu-18-04-actions-runner-image-is-being-deprecated-and-will-be-removed-by-12-1-22/.
Also I will try to supply some tests and have a deeper look at the implications of the changes too.

Thanks @moojek for noticing the Ubuntu issue. I merged a PR to fix them and now all CI stuff should turn to green. Can you rebase your changes on latest master?

Okay @Kazhuu, so I updated the CI and committed a really simple test


More options for WebjarService

I really want to use WebjarService in my application but I just couldn't get it to do everything I wanted to. My main issue was that I did not want to have to include a version number in the path as this is subject to change in the future. I'd much rather use the BuildInfo plugin and update the version in one place. Moreover, it'd be nice to have more control over the path in general.
I ended up just StaticFile.fromResource manually but would love to switch back to the WebjarService if it was possible to add some more configuration in there for the path. Is this something you'd be interested in? I'd be willing to give it a stab, even though I'm a little new to Scala.
Would also be interested in getting @timo-schmid 's opinion as well as the original contributor of this feature.

Hi!
Yes, I've been doing exactly something like that. I use BuildInfo to get the library's version at compile time (create a custom sbt setting, set it to the webjar's version, use it to load the lib, add the setting to BuildInfo) and then use those in my code.
I've designed it with the version number in the path for 2 reasons:

Http4s doesn't know anything about the webjar's version by itself. It just tries to load the resource from the classpath, where a webjar would store it usually.
Having the version in path means we don't have to fight browser caches (this is more a good side-effect than by design).

I'm not sure http4s is the right place to add this feature, since it's really something that needs to be done at build time.
However I could imagine an sbt plugin that collects all the libraries in the classpath starting with org.webjars , org.webjars.npm, org.webjars.bowergithub and org.webjars.bower. This would give us a list of all the webjars on the classpath (cf https://www.webjars.org/).
With that list, the WebjarService could be given a mapping of which libraries we have and with which versions, and thus we'd have an idea where to look for the file.
This could be done either directly in http4s repo (if the maintainers think it's a good idea) or it could be done separately. My gut tells me this is out of the http4s project's scope.

Well, I'm about 2.5 years late to the game, but this still looks interesting.  The webjars locator would require a new dependency in http4s-server, right?  That's what I'd be most wary of.


Binary Serialization Integration

This pull request included two primary changes. The addition of classes to support new parsing methods, and the integration of necessary code for user selection of encoding method.
Message classes for supporting variation in data format:

Parent Class: MessageCodec: supports child classes for various processes
Child Classes: JsonMessageCodec & BinaryMessageCodec : Supports various types of message formats.

Integration of code for User selection of encoding method:

Integration of encoder selection type into Transport class.
Integration of serialization based on Transport selected encoder

What type of change is this?

[ ] Bug fix in a backwards-compatible manner.
[x] New feature in a backwards-compatible manner.
[ ] Breaking change: bug fix or new feature that involve incompatible API changes.
[ ] Other (e.g. doc update, configuration, etc)

Checklist
_Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[x] I added a line to the CHANGELOG.md file in the Unreleased section under the most fitting heading (e.g. Added, Changed, Removed).
[ ] I ran all tests on my computer and it's all green (i.e. invoke test).
[x] I ran lint on my computer and there are no errors (i.e. invoke lint).
[ ] I added new functions/classes and made them available on a second-level import, e.g. compas.datastructures.Mesh.
[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] I have added necessary documentation (if appropriate)

Now that the integration tests ran, you can see the cases in which the extra case fails to parse the message:
https://github.com/compas-dev/compas_eve/actions/runs/11976510272/job/33395355496?pr=16#step:4:109