GDB - PTRACE_GETREGS: Input/output error (Qemu ORB Machine)

Describe the bug
I can't attach a process through gdb because it looks like the VM lacks CAP_SYS_PTRACE capabilities on qemu.
To Reproduce
Steps to reproduce the behavior:

Launch an orb virtual machine from an arm machine (mac m2) with amd (x86) virtualisation -> Rosetta.
Install gdb.
Create a C program and compile it.

int main(int ac, char **av) {
        return 0;
}

gcc main.c -o poc
chmod +x poc
./poc

Run gdb.

root@kali-amd:/home/qu35t/work# gdb

[...TRUNCATED DATA...]

(gdb) file poc
Reading symbols from poc...
(No debugging symbols found in poc)

(gdb) run
Starting program: /home/qu35t/work/poc
warning: linux_ptrace_test_ret_to_nx: Cannot PTRACE_GETREGS: Input/output error
warning: linux_ptrace_test_ret_to_nx: PC 0x1 is neither near return address 0x7ffffffc6000 nor is the return instruction 0x5555558faf61!
Couldn't get CS register: Input/output error.

The problem indicates that gdb cannot read the CS (code segment) register of the running process. This could be due to qemu's lack of privileges.
Expected behavior
gdb should correctly read the program and show me the output.
Notes
There is the same problem if I launch a docker container with --platform linux/amd64 (even with --privileged) and try to run my binary with gdb.

This is because none of the userspace x86 emulators for Linux (QEMU, Rosetta, and others) support ptrace enough for gdb to work. See #27 for a past discussion.
Closing because I doubt any of them will get this support in the foreseeable future.
The good news: QEMU and Rosetta are both supposed to have gdb debug servers that you can connect to as a remote debug target. Unfortunately Rosetta's doesn't seem to work from my testing in #27, but qemu's should work. That means you can install qemu-user-static (or the equivalent in your distro) and run qemu explicitly with -g <port>, then connect gdb to it. This should work even if the rest of your machine is using Rosetta.

This is because none of the userspace x86 emulators for Linux (QEMU, Rosetta, and others) support ptrace enough for gdb to work. See #27 for a past discussion.
Closing because I doubt any of them will get this support in the foreseeable future.
The good news: QEMU and Rosetta are both supposed to have gdb debug servers that you can connect to as a remote debug target. Unfortunately Rosetta's doesn't seem to work from my testing in #27, but qemu's should work. That means you can install qemu-user-static (or the equivalent in your distro) and run qemu explicitly with -g <port>, then connect gdb to it. This should work even if the rest of your machine is using Rosetta.

verified. it can work for me. one POC is above
# in orb vm
# run as root
# it will init qemu related
bash <(curl -s https://gist.githubusercontent.com/Yansongsongsong/88d23cedea901b2ce478fdabb38f8b39/raw/7ab538bc6eb1204c4b0a4d88035f5c2c7f019111/csapp-bomb-lab-linux-vm-init.sh)

# debug one x86 binary
cd /root/bomb
qemu-x86_64-static -g 1234 ./bomb

# in another tty
gdb ./bomb
(gdb) target remote :1234
(gdb) b *0x400ee4
Breakpoint 1 at 0x400ee4
(gdb) continue
Continuing.

Breakpoint 1, 0x0000000000400ee4 in phase_1 ()
(gdb) x/s 0x402400
0x402400:	"Border relations with Canada have never been better."
(gdb) quit

Added to the docs:  https://docs.orbstack.dev/machines/#debugging-with-gdb-lldb


Is there a way to hook into PTT warnings

PTT puts warnings (like unclosed tags) into the console. Is there a way to hook into those so I could display them to the user?

There are two possible solutions:

Rather than logging warnings, the library can throw an error. The errors can be caught by your app and handled. (by default we don't do this because it can end up making life harder for the users of the library and frankly there are a lot of people who don't know how to handle errors)

you can override (hack) console.warn with a custom function that can receive the message and decide what to do with it.

Probably the best solution is to provide an optional setting for whether to throw errors or show console messages (or neither).

Maybe a third solution is to save the error state in code somewhere. Like taggedText.errors

Maybe another solution is to pass a warnings handler function into options and the default warnings handler is to console.warn() like you do now, but if I've passed one use that instead?

You could also have methods like validateTags() which could return a result for each type of issue. I guess there are many more than 2 possible solutions!
These are all pretty easy to add. Here's what I'd propose:

An option for adding a callback/handler for any errors that receives an object with target, type, and description.
And an option for how to do warnings, either "off", "warn", "error" with default to "warn"

Sounds fine

@rizen
I've added this in version 3.3.0. You can provide a function that gets an object like { message:string, code:string, type:string }. There's also an option to supressConsole which disables console messages except for debugConsole messages.
Currently, there are only a handful of situations where you will receive one of these warnings, that is, any time when you would have gotten console.warn in the past. I am undecided on whether to expand to errors and wanted to get your opinion. It would require that I go through the codebase and reroute any code that normally would throw an error through this logger. Additionally, I'm not sure how best to handle all uncaught errors that might come up that not directly related to my code.
I hadn't given this topic a whole lot of thought in the past but there should probably be a rule like "if it only breaks the style, make it a warning not an error".  For example, this code currently throws but probably should warn and use the default value "left":
throw new Error(
        `Unsupported alignment type ${align}! Use one of : "left", "right", "center", "justify"`
      );

Crap. I forgot to add the target to the errorMessage object. I expect you'll want that so you can identify which text field has the error. I'll add that.

Note to self, fix warnings on percentage font size


How to run Nunit tests

Hello, I'm trying to follow the documentation to use Visual Designer or YAML to create a CI pipeline and filter NUnit tests. However, that's not on this page for .NET Framework. How can I filter NUnit tests for .NET Framework and not .NET Core. Thanks in advance :)

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

ID: 2a494f5a-6143-e567-6c0f-e2c817b1f1a9
Version Independent ID: 15819679-5914-25f6-34f8-91f1da16b0bf
Content: .NET - Azure Pipelines & TFS
Content Source: docs/pipelines/apps/aspnet/build-aspnet-4.md
Product: devops
GitHub Login: @andyjlewis
Microsoft Alias: alewis

You should find the following topics useful:
"Run unit tests with your builds" : https://docs.microsoft.com/azure/devops/pipelines/test/getting-started-with-continuous-testing?view=vsts
"Visual Studio Test task" : https://docs.microsoft.com/azure/devops/pipelines/tasks/test/vstest?view=vsts


File Operations backend to do

Test operations:

Failed operation
Canceled operation
Skipped operation
Partially skipped operation

Timestamp for all operations
Combine all operations into one list

IsActive remains true after operations are done
Operations sometimes get stuck and trying to stop them throws a non-recoverable exception. Seems to be caused by pulling the same item a second time, after one success

New pending operations do not start while completed operations still exist


Possible memory leak in foxx services (how to troubleshoot this?)

Hello, we are using multiple ArangoDB instances (3.4.8 serie) in a master / slaves setup and our master is restarting every ~14 days because it becomes unresponsive.
Systems graphs shows that the memory consumption is increasing until a plateau (with memory usage % depending on the --rocksdb.block-cache-size option value) on both masters and slaves. The slaves live like that for months without any problem, which seems to indicate that the memory is reallocated succesfully, but when they reach this state, the master becomes unresponsive after 2 or 3 days, and is restarted by our cluster orchestrator  (actually apache mesos) because its healthcheck fails, causing a downtime time of ~30s during the process restart.
Since the exact same workloads are executed on both master and slaves, with the exception of Foxx services, I guess that there is a memory leak somewhere here, and I wonder how we could identify or workaround these.
Do you think --javascript.v8-contexts-max-invocations or --javascript.v8-contexts-max-age could help in freeing this memory?
Many thanks in advance!

Hi @soualid,
Adjusting the settings --javascript.v8-contexts-max-invocations or --javascript.v8-contexts-max-age seems sensible, did you already give it a try?

Hello,
I just did, by setting --javascript.v8-contexts-max-invocations 10 since the default value of --javascript.v8-contexts-max-age (60 seconds) seems valid for our workload.
Actually, I think we never have a break of 60 seconds without any call to our master database, which makes me hope for better memory graphs on our master database by forcing garbage collection of V8 contexts every 10th invocations.
Since we do not have this problem on slave databases, the problem, which could be a memory leak, may be in foxx services or queues management since these are the only differences between master and slaves workload (same hardware, same datas, same read queries, same writes through asynchronous synchronisation).
I'll give you the result of this change in 5 to 7 days. Thanks!

Hi, can you also track the isolates memory usage by polling
https://www.arangodb.com/docs/stable/http/administration-and-monitoring.html?origin_team=T03HM2BGZ#statistics and storing these values to a file? (The swagger view in the webinterface (Support -> RestAPI -> Administration -> GET /_admin/statistics is a bit better in the visualisation) Interesting is server->V8Context - especialy the (not yet) documented memory array.

Actually I just disabled statistics on our master with the hope that it may fix the leak we are experiencing but I will re enable it during the next restart. I'll update this ticket with the informations I'll gather there. Thanks!

you don't have to. This call just gives you current now states, the V8 stats won't even be stored.

It seems that this endpoint is returning an error if statistics are disabled with startup options, even for those which are not stored, but I'll definitely have a closer looks on these stats as soon as I have a window to re-enable the stats on this master database.
Thanks!
curl -X GET "https://xxx.xxx.xxx/_db/xxx/_admin/statistics" -H  "accept: application/json" -H  "Authorization: bearer xxx" --silent | jq
{
  "error": true,
  "errorMessage": "statistics not enabled",
  "code": 404,
  "errorNum": 36
}

For info, from 3.4.9 and 3.5.1 onwards we have a startup option --server.statistics-history can be used to turn off storing the statistics in the database, even when --server.statistics is enabled. So this will allow to access the statistics API but not pay the price for storing the statistics in the database.
That doesn't help for the version you are currently using, but it may be an option in the future.

Quick update: usage of --javascript.v8-contexts-max-invocations seems to have solved the issue: the arangod process is using all its allocated memory for 2 days now without performance impact nor crash. But we'll be totally sure of that after a few more days in production. I'll close this ticket then. Many thanks for your insights.

Ok, thanks. You're not using foxx Queues, right?
can you share any insights, whether globals has remaining entries of values which are not garbage collected?

We are using foxx queues a lot. 🙂
What do you mean by globals? It doesn't seem to be something returned by the statistics endpoint, how could I get this information?
Again, it seems that --javascript.v8-contexts-max-invocations seems to fix our initial problem, since our master database is totally stable at its cap memory level for a few days now, I will be able to confirm this in something like a week (ie. if the master is stable for more than ~10 days after these change, it will definitely mean that the problem is solved by forcing the garbage collections of v8 contexts).
Anyway, if it has any value, here are the actual values returned by the statistics endpoint on this database:
{
  "time":<PHONE_NUMBER>.1003783,
  "enabled": true,
  "system": {
    "minorPageFaults": 380155324,
    "majorPageFaults": 0,
    "userTime": 177917.77,
    "systemTime": 210535.9,
    "numberOfThreads": 104,
    "residentSize":<PHONE_NUMBER>2,
    "residentSizePercent": 0.05958964204764984,
    "virtualSize":<PHONE_NUMBER>68
  },
  "client": {
    "httpConnections": 21,
    "connectionTime": {
      "sum": 0,
      "count": 0,
      "counts": [
        0,
        0,
        0,
        0
      ]
    },
    "totalTime": {
      "sum":<PHONE_NUMBER>520592,
      "count": 3744400,
      "counts": [
        394149,
        2086501,
        1063931,
        80243,
        45082,
        3970,
        70524
      ]
    },
    "requestTime": {
      "sum":<PHONE_NUMBER>0219154,
      "count": 3744400,
      "counts": [
        655589,
        1849117,
        1041339,
        85137,
        39031,
        3677,
        70510
      ]
    },
    "queueTime": {
      "sum": 0,
      "count": 0,
      "counts": [
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ]
    },
    "ioTime": {
      "sum": 12725.02254986763,
      "count": 3744400,
      "counts": [
        3439764,
        303087,
        1462,
        70,
        16,
        1,
        0
      ]
    },
    "bytesSent": {
      "sum":<PHONE_NUMBER>9,
      "count": 3744400,
      "counts": [
        73674,
        1432046,
        451466,
        739353,
        441729,
        606132
      ]
    },
    "bytesReceived": {
      "sum":<PHONE_NUMBER>,
      "count": 3744400,
      "counts": [
        714596,
        2902660,
        119377,
        6001,
        765,
        1001
      ]
    }
  },
  "http": {
    "requestsTotal": 3744528,
    "requestsAsync": 13,
    "requestsGet": 949200,
    "requestsHead": 1,
    "requestsPost": 459962,
    "requestsPut": 2335362,
    "requestsPatch": 3,
    "requestsDelete": 0,
    "requestsOptions": 0,
    "requestsOther": 0
  },
  "server": {
    "uptime":<PHONE_NUMBER>2969398,
    "physicalMemory":<PHONE_NUMBER>12,
    "v8Context": {
      "available": 8,
      "busy": 3,
      "dirty": 0,
      "free": 5,
      "max": 144,
      "memory": [
        {
          "contextId": 0,
          "tMax":<PHONE_NUMBER>.247152,
          "countOfTimes": 2,
          "heapMax": 31472720,
          "heapMin": 29920896
        },
        {
          "contextId": 3658,
          "tMax":<PHONE_NUMBER>.5856442,
          "countOfTimes": 1,
          "heapMax": 57966424,
          "heapMin": 56945888
        },
        {
          "contextId": 3662,
          "tMax":<PHONE_NUMBER>.6992137,
          "countOfTimes": 0,
          "heapMax": 62401424,
          "heapMin": 51567288
        },
        {
          "contextId": 3663,
          "tMax":<PHONE_NUMBER>.8641644,
          "countOfTimes": 10,
          "heapMax": 31498216,
          "heapMin": 0
        },
        {
          "contextId": 3666,
          "tMax":<PHONE_NUMBER>.8665195,
          "countOfTimes": 14,
          "heapMax": 35439112,
          "heapMin": 0
        },
        {
          "contextId": 3667,
          "tMax":<PHONE_NUMBER>.8686037,
          "countOfTimes": 14,
          "heapMax": 39266480,
          "heapMin": 0
        },
        {
          "contextId": 3664,
          "tMax":<PHONE_NUMBER>.880338,
          "countOfTimes": 10,
          "heapMax": 31761064,
          "heapMin": 0
        },
        {
          "contextId": 3665,
          "tMax":<PHONE_NUMBER>.8681386,
          "countOfTimes": 10,
          "heapMax": 31772328,
          "heapMin": 0
        }
      ]
    },
    "threads": {
      "scheduler-threads": 14,
      "in-progress": 11,
      "queued": 11,
      "current-fifo1": 0,
      "fifo1-size": 1048576,
      "current-fifo2": 0,
      "fifo2-size": 4096,
      "current-fifo3": 0,
      "fifo3-size": 4096
    }
  },
  "error": false,
  "code": 200
}

I'll update this ticket in a few days, with, I hope, the confirmation of these good news!

It's now 15 days since the last restart triggered by an OOM, I am happy to confirm that --javascript.v8-contexts-max-invocations was the last tuning we needed to obtain a super stable master databases! Thanks and keep up the good work, you're doing amazingly great!


Added iced_winit::application::Application::run_with_window_configurator

Defined a new WindowConfigurator trait in iced_winit to configure the WindowBuilder.
The SettingsWindowConfigurator struct just applies the Window settings.
The new iced_winit::application::run_with_window_configurator uses a WindowConfigurator instead of the Settings struct. Except for the name, this makes quite a nice API for run as it avoids the generic Settings struct.

I'm not completely sure which use cases we are solving with this code.
Generally, we prefer to tackle specific use cases directly in iced, instead of opening and exposing the internals directly.
I'll close this for now, but please feel free to start a discussion!


How to add user to  secondary user store in CarbonRemoteUserStoreManger

Steps

Configure Carbon Remote User Store Manager according to [1]
Add secondary user store to  the remote server (primary LDAP, secondary  JDBC)
Configure IDP

Issue
Need to provision users to to the secondary user store in  Carbon Remote User Store Manager.
But in the  UI its not allow user to provision  users to the secondary user store in CarbonRemoteUserStoreManger. What's the expected behavior?

Thank you for your contribution!
We are closing this issue since it has not been prioritized for a long time. Chances are that it has already been solved in more recent versions. If not, we will be re-evaluating this when it becomes a priority.


Simulate rotation out of imaging plane with the Rotator

Description
What is this PR

[ ] Bug fix
[x] Addition of a new feature
[ ] Other

Why is this PR needed?
While working on finding the centre of rotation (see #30) I noticed that the rotating cells describe an ellipse and not a circle. This kind of artefact could be due to a mismatch between the plane of rotation and the imaging plane.
Therefore, to prove it I expand the Rotator class to create a new type of synthetic rotation movies.

You can notice in the max projection image that the trajectory of the cells is elliptical as expected.
Works also for rotations out of plane in another orientation:

And with shifted center of rotation:

This new feature could be described also as a "3D rotation".
I can now use the new Rotator to generate synthetic movies to build an improved derotation algorithm. It will come in a separate PR.
What does this PR do?
Further methods to Rotation class and related tests.
Renaming of classes:

basic_rotator -> line_scanning_microscope (sorry the diff shows as if it is a whole new class 😭)
test_finding_center_of_rotation_by_joining_two_pipelines -> test_finding_center_of_rotation

Moves functions to fit an ellipse to a dedicated module (fit_ellipse.py)
References
See #26 #27
How has this PR been tested?
Made parametrised tests
Is this a breaking change?
No
Checklist:

[x] The code has been tested locally
[x] Tests have been added to cover all new functionality
[x] The documentation has been updated to reflect any changes
[x] The code has been formatted with pre-commit

I could use some more information on the construction of the homography_matrix, why that specific form? From my understanding the current implementation adds a scaling factor in the second dimension based on cos(rotation_plane_angle), is that correct?

Yes it is correct. Your comment makes me wonder if it is an overkill to use affine_transform and a 3x3 matrix given that the transformation is only on one of the dimensions... 🤔


The Log Analytics workspace data export feature of Azure Monitor Logs allows for table selection

The text says

To export all data from your Log Analytics workspace to an Azure storage account or event hub, use the Log Analytics workspace data export feature of Azure Monitor Logs. See Log Analytics workspace data export in Azure Monitor.

However the doc at provided link says that a selection of tables can be exported.

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

ID: d91b9858-da65-bfc9-429f-d5e2922cf6c2
Version Independent ID: 193e6f08-8b12-54c5-9eba-2a003eeb0b70
Content: Log query scope in Azure Monitor Log Analytics - Azure Monitor
Content Source: articles/azure-monitor/logs/scope.md
Service: azure-monitor
Sub-service: logs
GitHub Login: @bwren
Microsoft Alias: bwren

@ciufudean  Thanks for the feedback! I have fixed the referenced change, and the change should reflect on the doc within 24 hours. We will now proceed to close this thread. If there are further questions regarding this matter, please revert and we will gladly continue the discussion.


Getting  E3002  Invalid Property Resources Tags

cfn-lint version: (cfn-lint --version)
current latest
Description of issue.
We started getting  E3002 Invalid Property Resources/.../Properties/Tags
for several resources.  These are resources that recently started supporting Tags, mainly IAM roles.  The error was not present last week when we were actually able to apply Tags to IAM roles that now started supporting tags.
We had to ignore rule check for E3002 for now to overcome this issue
Please provide as much information as possible:

Template linting issues:

Please provide a CloudFormation sample that generated the issue.
If present, please add links to the (official) documentation for clarification.
Validate if the issue still exists with the latest version of cfn-lint and/or the latest Spec files

Feature request:

Please provide argumentation about the missing feature. Context is key!

Cfn-lint uses the CloudFormation Resource Specifications as the base to do validation. These files are included as part of the application version. Please update to the latest version of cfn-lint or update the spec files manually (cfn-lint -u)

@kirubel checking with some internal folks to see what and why this may have changed.  We get the spec from internal resources and I think there were a few issues with the IAM tags in particular.  Are you see this issue with anything other than IAM?

Looks this is working across most areas I've tested it and isn't included in the CloudFormation spec.   I'll create a patch to patch the CloudFormation spec to cover for IAM Role and User.  Do you know what other types are failing?  I can get that cleaned up as well.

Sorry for getting back to you late.  I went back to check the error logs and it appears all the issues reported were related to IAM roles.  Thank you very much for your follow up and fix! Much appreciated!

Code is in for this and we it will be covered in the next release.

Awesome! Thank you!

Is there an update for this issue? I am still having a lint issue with fn::transform.


The answer is mixed English-Chinese

When I ask some questions, the answer is a mixture of English and Chinese, any solution to this problem?
For example:
I ask: let us play chess! I will take the first step. my move is e4.
ChatGLM-6B: Sure, let's play! Your move is e4, and I'll go with d4 as my first move. It's always good to start with a pawn升变, and d4 is a good choice because it升变后可以攻击对手的中车, which is a weakness in many players' plans.

As we claimed in README, the model is optimized for Chinese QA and dialogue. Most prompts we used for training was Chinese, which might cause the problem.
In our tokenizer, the id range of Chinese tokens is [83823, 145653). One temporary solution is to ban these tokens during sampling,  via the bad_words_ids argument of the  generate method.

thanks for your answer, I find another thing in the prompt design, it seems that you will add some prompts like 【问】and 【答】it is in Chinese so I think it might influence the result


[3pt]  - Display comments for a given item on the Comments pop-up - Student B

When the popup loads, the webapp retrieves data from the Involvement API to show the item comments.

This task does not include the counter of the comments.

https://github.com/businesskaniki/microflix/pull/33


ell: 0.62 -> 0.63

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for ell is: Embedded Linux Library
meta.homepage for ell is: https://git.kernel.org/pub/scm/libs/ell/ell.git
meta.changelog for ell is: https://git.kernel.org/pub/scm/libs/ell/ell.git/tree/ChangeLog?h=0.63
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.63 in filename of file in /nix/store/f4yy1cbsk3x4m8l5x7n9figm3pwcppan-ell-0.63

Rebuild report (if merged into master) (click to expand)

4805 total rebuild path(s)

4805 package rebuild(s)

First fifty rebuilds by attrpath
CHOWTapeModel
ChowKick
CuboCore.coreaction
CuboCore.corearchiver
CuboCore.corefm
CuboCore.coregarage
CuboCore.corehunt
CuboCore.coreimage
CuboCore.coreinfo
CuboCore.corekeyboard
CuboCore.corepad
CuboCore.corepaint
CuboCore.corepdf
CuboCore.corepins
CuboCore.corerenamer
CuboCore.coreshot
CuboCore.corestats
CuboCore.corestuff
CuboCore.coreterminal
CuboCore.coretime
CuboCore.coretoppings
CuboCore.coreuniverse
CuboCore.libcprime
EmptyEpsilon
MIDIVisualizer
MMA
OVMFFull
SDL2
SDL2_Pango
SDL2_gfx
SDL2_image
SDL2_image_2_0
SDL2_image_2_6
SDL2_mixer
SDL2_mixer_2_0
SDL2_net
SDL2_sound
SDL2_ttf
SDL_audiolib
SDL_compat
SDL_gpu
Sylk
_1oom
_20kly
_7kaa
_86Box
_90secondportraits
aaxtomp3
abbaye-des-morts
abracadabra

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/f4yy1cbsk3x4m8l5x7n9figm3pwcppan-ell-0.63 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A ell https://github.com/r-ryantm/nixpkgs/archive/a9e9d60d946eb7b72ae1456cfb9a702f986e0847.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/a9e9d60d946eb7b72ae1456cfb9a702f986e0847#ell

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/f4yy1cbsk3x4m8l5x7n9figm3pwcppan-ell-0.63
ls -la /nix/store/f4yy1cbsk3x4m8l5x7n9figm3pwcppan-ell-0.63/bin

Pre-merge build results
NixPkgs review skipped

Maintainer pings
cc @Mic92 @dtzWill @amaxine for testing.

@ofborg build bluez iwd ofono


[New] Animate images with image overlay

Description
This PR implements Animate images with image overlay in Scenes category.
URL to README: https://github.com/Esri/arcgis-maps-sdk-swift-samples/tree/Caleb/AnimateImagesWithImageOverlay/Shared/Samples/Animate images with image overlay
There is a bug where on-demand image data fails to load the first time the app is launched. If the local data isn't cleared, the image overlay will load the second time the app is launched.
Linked Issue(s)

swift/issues/3958

How To Test

Tap Start to start the animated images.
Adjust slider to change the image opacity.
Tap Speed to adjust the FPS speed.
Tap Stop to pause the animation.

Screenshots

The on-demand resources load correctly on the first load now! Thanks for doing that.

Please let me know if #208 and a fresh installation (delete and rebuild the app) fixes the not found issue.

I can't seem to see the sample on the list using Mac Catalyst but I do see it on the iPhone simulator. Are you getting the same behavior?

This is expected. ODR APIs don't work in Mac Catalyst, so I filtered out those samples with offline data dependency in MC target. It will be solved in this card.


Update SourceFileDependencyGraph deserialzation

This PR includes a few related improvements to reading SourceFileDependencyGraphs:

It switches to the copies of the Bitstream utilities moved to TSC (where they'll also be used to read .dia files for SPM)
swiftdeps files are now read in a single pass using a new BitstreamVisitor protocol exposed by TSC in the corresponding PR in that repo
SourceFileDependencyGraphs can now be read from swiftmodule files when the experimental cross-module dependencies are enabled. This isn't hooked up to anything yet, but it was a useful way to test the other changes

Most of the interesting changes to the Bitstream APIs are in the corresponding TSC PR here: https://github.com/apple/swift-tools-support-core/pull/145. This won't compile until those are merged and then synced to the vendored TSC in SPM

This should pass tests now, but I need to sync TSC changes to the vendor copy in SPM before merging
@swift-ci please test

The TSC changes have now been synced to SPM and full CI is passing here: https://github.com/apple/swift/pull/34531. I'm going to rerun tests here one more time just to double check nothing's wrong with the non-cmake build.
@swift-ci please test


enforceBoundary cropping wrong position

From this issue https://github.com/Foliotek/Croppie/issues/163
At one thing I got this problems on Safari when using enforceBoundary
then I update js file and change to using rawcanvas
I test many times the result of image position is not the same crop modal.

as an attached this is what I see when I cropping, after that the return result just show me only blank image but...... if I move image to left of boundary

this is result

Look like same problems
https://github.com/Foliotek/Croppie/issues/247

Agreed - duplicate of #247


Update README.md file after release of v. 1.0.3

After Maven Sync perform the following actions:

update README.md file (library version in download section)
create GitHub release.

Maven Sync is done, tasks are done and issue can be closed


Feature/First iteration on MC failsafe

Add failsafe tune
Fix LED blinking for Pixracer
Pass rc_loss_mode instead of simple bool flag
Add setting of failsafe PWM outputs in case of force_failsafe

Nice!

@kd0aij Can you test?

What is rc_loss_mode supposed to do? I guess this should fix the flight termination bug I mentioned in the RC loss PR... need to reference it from here.

what about #5388?

Rc_loss_mode is enum that's is not used right now, but it should define behavior of RC loss failsafe action. With current code it switches to "land" mode, and there is no way to force termination
I took a brief look at your PR and it does some of what I am missing right now regarding applying failsafe during termination. But it also does some stuff a bit brute force (e.g. applying lockdown from commander state machine)
I will incorporate your fixes into my PR, so it will be a complete solution (right now it drops output to minimum pwm upon termination)

Ok. I think that's what I am going to do then. I will write tests at least for code I am going to modify for SM Helper and navigator. Are there any existing tests?

@anton-matosov state machine tests here - https://github.com/PX4/Firmware/blob/master/src/modules/commander/commander_tests/state_machine_helper_test.cpp
Nothing really for navigator, unless you can fit it into a mission test. https://github.com/PX4/Firmware/tree/4453e4201b7a245cff52beeb38a293161aea4c48/integrationtests/python_src/px4_it/mavros

@anton-matosov what do you plan to change in the state machine helper? Because I'm reworking this at the moment and implemented a different way of how the failures are handled (more comprehensive), also adding unit tests.

@AndreasAntener I am planning to refactor RC and Datalink loss code to get rid of the copy-paste and migrate RC/Data loss mode switching to commander out from Navigator the same way offboard loss modes are handled.
Also I will extend loss mode to force termination mode. (that is what I need for FPV racers)

@AndreasAntener I am planning to refactor RC and Datalink loss code to get rid of the copy-paste and migrate RC/Data loss mode switching to commander out from Navigator the same way offboard loss modes are handled.
Also I will extend loss mode to force termination mode. (that is what I need for FPV racers)

@AndreasAntener are you done with your refactoring of the commander's SM?
Which fork/branch are you working in? (so I can merge in your changes and keep going)

@anton-matosov I think we should separate the refactoring from your functionality change (termination handling). I'll push a branch in a sec that contains the move from navigator, after I can build upon that again.

@anton-matosov added a PR for you (https://github.com/PX4/Firmware/pull/5884), please have a look. You integrate the changes from there into your branch and delete it, or whatever is easier for you

@AndreasAntener @LorenzMeier @kd0aij @tumbili @julianoes PR is ready for review

Thanks! I did a first pass and it overall looks good. A couple of questions:

What was the driver behind adding manual_lockdown in addition to the lockdown flag? Was it necessary to have both?
Do you require manual RC input in SITL? I saw you added it back?
Can you explain more about the build system changes? They look ok, but I'd like to understand the use case.

Please try to describe this in general when submitting a PR, since those are changes that need context. Thanks!

What was the driver behind adding manual_lockdown in addition to the lockdown flag? Was it necessary to have both?

If you have kill switch configured on RC, lockdown will be constantly reset to the killswitch position and it can't be used from other code.

Do you require manual RC input in SITL? I saw you added it back?

I was using manual RC for the RC loss testing and I made it off by default (configurable in CMakeLists). I will also need it for RC expo rates code testing in simulator.

Can you explain more about the build system changes? They look ok, but I'd like to understand the use case.

I have added wrapper for px4 that includes paths originally provided via the command line by cmake+sitl_run.sh. The original approach was not allowing easy debugging from IDE (I use CLion). With current approach you can simply chose simulator target you want to debug, e.g. px4_iris and simply hit debug button and it will build and start debug session with no need to configure bunch of run parameters.
I have also added IDE parameter to debuggers which is handled in a way of skipping launching px4 from sitl_run.sh that allows simple start/stop of px4 debugging from IDE without the need to restart viewer (I was using gazebo)

@LorenzMeier any updates?

@anton-matosov will review this weekend, thanks for your work.

Thanks @julianoes

@julianoes can you please take a look at the latest changes that address your comments?

@LorenzMeier @julianoes I have applied suggested changes. Please review again.

@anton-matosov Thanks, much appreciated! I'm going to try to get this in tomorrow.

Awesome! This is ready to go, one last question. @anton-matosov Great work!

Rebased and continuing here:
https://github.com/PX4/Firmware/pull/6177


IP not reachable

Description
after the latest update of my ccu3 to 3.61.5 the IP of my sonos is not reachable.

What node/command (topic)/state (payload)
node: Universal | My Sonos
command:  config.node
state: IP not reachable
In case of a bug: Are you able to reproduce the error
yes
Versions and Infrastructure
what system: redmatic on ccu3
node-red-contrib-sonos-plus version: 5.2.7
Node-RED version: 7.2.1
NodeJS version: ?

Hi.
How to you select the player on your config node: Via up address or serial?
Does your flow works if you untic the "check availabilt" box?
On Tue, Nov 16, 2021, 17:31 jfreak80 @.***> wrote:

Description after the latest update of my ccu3 to 3.61.5 the IP of my
sonos is not reachable.
What node/command (topic)/state (payload)
node:
command:
state:
In case of a bug: Are you able to reproduce the error Versions and
Infrastructure
what system:
node-red-contrib-sonos-plus version:
Node-RED version:
NodeJS version:
see:
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/hklages/node-red-contrib-sonos-plus/issues/179, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AEDZCH6DLDKFW2LTWXB4ISDUMIXH3ANCNFSM5ID4X7WQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Hi,
I set up the correct IP.
I get an timeout:

i am sorry. Just realized, that the sonos box is not working with the sonos app either. So the problem is not in your nice node!!!

OK- thanks for the feedback. I close the issue.


accept TypeDefinitionRegistry for underlying Schema

the ServiceDataFactory should return a TypeDefinitionRegistry instead of a GraphQLSchema because a user of Nadel will normally not have a full GraphQLSchema but a only a SDL.

will be done with #51


RequireJS + waypoints / jquery adapter causing error

Hi,
I just tried to setup jquery.waypoints.js with require.js and I get an error at this line:
https://github.com/imakewebthings/waypoints/blob/master/src/adapters/jquery.js#L11
window.jQuery is undefined at this place.
Setup is very simple:
requirejs setup:
requirejs.config({
    "paths": {
        "jquery": "//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min",
        "waypoints": "<pathtojs>/jquery.waypoints",
        "myModule": "<pathtojs>/myModule"
    }
});
require(["myModule"]);

mymodule setup:
define("myModule", ['jquery','waypoints'], function($) {
    'use strict';
    // some code that uses waypoints like $(".myDiv").waypoint(....);
});

The error occurs before the require function of myModule is executed.

Found the solution - I need to setup the dependency for waypoints in the requirejs config:
requirejs.config({
    "paths": {
        "jquery": "//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min",
        "waypoints": "<pathtojs>/jquery.waypoints",
        "myModule": "<pathtojs>/myModule"
    },
    shim: {
        waypoints: {
              deps: ['jquery']
        }
    }
});

Thanks a lot for this great plugin @imakewebthings

Ticket can be closed.

/close


Small error in docs

Hi, I made a PR with an editorial change, I think you got the old and new links mixed up.

Merged.


refactor: migrate to @stylistic rules from plugin

I chose to group the stylistic rules together during the migration to make keeping track of them easier.
The other plugin rules were also moved to make highlighting the unique parts of the shared config more immediately clear when reading the config file.
Refs: https://eslint.org/blog/2023/10/deprecating-formatting-rules/

Currently waiting for ESLint v8.53.0, scheduled to be released on Friday, November 3, 2023, to be available.


Fixed Issue in gilab link tooltip

Heading and description text overlays in tooltip when crosses a certain limit
Before-

Now-

Looking at the screenshots, I think we were supposed to truncate the text with ellipses instead of wrapping the sentences. Can you confirm what is the behaviour in Gitlab?


fixes

Fixes #15
It turned out the issue was caused by consul not properly reading the request body if the content length isn't set on most endpoints...
This also triggered a couple of issues with the code that are fixed in this PR.

Merging cause those fixes are quite important, feel free to comment afterward and I'll address.

🔥 thanks for the quick fix!


wireguard-only regression

SPR in only mode with vpn  appears to not be routing wireguard peers

lts-po writes
neeed to add a touch ./configs/base/.setup_doneto virtual_install // or have it already in same templates dir maybe

second error here ba0095d119549b0a6f9e59900fb7862bd56d88ea

this will be released in v0.3.6


java run erorr

When running the program in the figure, I found that the running result was wrong. The following is the result comparison of the same program running in idea

vscode is just an editor. It won't change results of Java code. You can try to copy those commands and run them in powershell or something else, and you'll get the same results. I don't think it's a flaw of vscode.

vscode is just an editor. It won't change results of Java code. You can try to copy those commands and run them in powershell or something else, and you'll get the same results. I don't think it's a flaw of vscode.

Thanks for your reply, it's exactly as you said


Alarm gone after swiping an app from recent apps

On my device(LeTv One/Android 6):

I scheduling new job
check active alarms via adb shell dumpsys alarm
see such intents:

Batch{7fae56f num=1 leuiTimeAlign=false start=1483824064305 end=1483824064305}:
    RTC_WAKEUP #0: Alarm{a95b27c type 0 when<PHONE_NUMBER>917 red.kometa.steelsunset}
      tag=*walarm*:red.kometa.steelsunset/com.evernote.android.job.v14.PlatformAlarmReceiver
      type=0 whenElapsed=+17173d9h41m15s838ms when=2064-01-14 22:06:16
      window=0 repeatInterval=0 count=0 flags=0x0
      operation=PendingIntent{edbf82e: PendingIntentRecord{cedbf73 red.kometa.steelsunset broadcastIntent key.isShadow:false}}
Batch{606f705 num=1 leuiTimeAlign=false start=1483841004908 end=1483841004908}:
    RTC_WAKEUP #0: Alarm{318e35a type 0 when<PHONE_NUMBER>519 red.kometa.steelsunset}
      tag=*walarm*:red.kometa.steelsunset/com.evernote.android.job.v14.PlatformAlarmReceiver
      type=0 whenElapsed=+17173d14h23m36s441ms when=2064-01-15 02:48:37
      window=0 repeatInterval=0 count=0 flags=0x0
      operation=PendingIntent{db939e0: PendingIntentRecord{ff45b9d red.kometa.steelsunset broadcastIntent key.isShadow:false}}

close app via swiping it from recent apps
check active alarms via adb shell dumpsys alarm
scheduled Intents are gone

The same situation with AlarmManager: stackoverflow
Some other apps from google play schedule their notifications without any problems. What's the trick? Is it expected behavior?

Note 2: even after force-stopping app via swiping it from recent apps this expression:
PendingIntent.getBroadcast(context, REQUEST_CODE, notificationIntent, PendingIntent.FLAG_NO_CREATE) != null
returns true

Can you post the full code how you created the PendingIntent? I'd like to try it myself.

Okay, I tried it myself again with following snippet and I couldn't reproduce what you mentioned.
Intent intent = new Intent(this, PlatformAlarmReceiver.class);

// will be null after force closing or swiping away
PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 4, intent, PendingIntent.FLAG_NO_CREATE);

pendingIntent = PendingIntent.getBroadcast(this, 4, intent, PendingIntent.FLAG_ONE_SHOT | PendingIntent.FLAG_UPDATE_CURRENT);
AlarmManager manager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
manager.set(AlarmManager.RTC, System.currentTimeMillis() + TimeUnit.HOURS.toMillis(30), pendingIntent);

I will provide sources and video demonstration within a few days.
There is some code in Kotlin:
    companion object {
        const val REQUEST_CODE = 3434
    }

    fun schedulePendingIntent(triggerTimeMillis: Long, pendingIntent: PendingIntent) {
        if (Build.VERSION.SDK_INT >= 23) { // https://stackoverflow.com/questions/34378707/alarm-manager-does-not-work-in-background-on-android-6-0
            logger.debug("setExactAndAllowWhileIdle")
            alarmManager.setExactAndAllowWhileIdle(AlarmManager.RTC_WAKEUP, triggerTimeMillis, pendingIntent)
        } else {
            if (Build.VERSION.SDK_INT >= 19) {
                logger.debug("setExact")
                alarmManager.setExact(AlarmManager.RTC_WAKEUP, triggerTimeMillis, pendingIntent)
            } else {
                logger.debug("set")
                alarmManager.set(AlarmManager.RTC_WAKEUP, triggerTimeMillis, pendingIntent)
            }
        }
    }

    fun checkAlarmScheduled(): Boolean {
        val notificationIntent = Intent(BringUserBackAppReminder.ACTION_FIRE_NOTIFICATION)
        return PendingIntent.getBroadcast(context, REQUEST_CODE, notificationIntent, PendingIntent.FLAG_NO_CREATE) != null
    }

    private fun getNotificationPendingIntent(): PendingIntent {
        val notificationIntent = Intent(BringUserBackAppReminder.ACTION_FIRE_NOTIFICATION)
        return PendingIntent.getBroadcast(context, REQUEST_CODE, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT)
    }

(sorry for the mistakes, English is not my native language)

Note 2: even after force-stopping app via swiping it from recent apps this expression:
PendingIntent.getBroadcast(context, REQUEST_CODE, notificationIntent, PendingIntent.FLAG_NO_CREATE) != null (explanation)
returns true

I can reproduce this bug on my device. I can't stream my phone screen on my pc and I can't make a clear  video demonstration.
Here is updated demo project: https://github.com/Try4W/AlarmManagerDemo
How to reproduce:
Listen to ACTION_POWER_CONNECTED action:
        <receiver android:name=".PowerConnectedBroadcastReceiver" >
            <intent-filter>
                <action android:name="android.intent.action.ACTION_POWER_CONNECTED"/>
            </intent-filter>
        </receiver>

In this demo I just print PendingIntent.getBroadcast(...) != null result in console:
public class PowerConnectedBroadcastReceiver extends BroadcastReceiver {

    private static final String TAG = "PowerConnectedBroRe";

    @Override
    public void onReceive(Context context, Intent intent) {
        AlarmHelper alarmManager = new AlarmHelper(context);
        Log.d(TAG, "PendingIntent.getBroadcast(...) != null: " + alarmManager.isAlarmScheduled());
    }
}

And there is the problem. If you swipe an app from recent apps and try to call alarmManager.isAlarmScheduled() after starting an application from 'apps menu' it will return FALSE.
If you will try to call the same method from PowerConnectedBroadcastReceiver(via connecting your phone to pc via USB) after swiping an app from recent apps it will return TRUE.
And if then you launch your application again, you will see that alarmManager.isAlarmScheduled() still returns TRUE even if there is no scheduled alarm in adb shell dumpsys alarm output.

I tried your test application and cannot reproduce what you've explained (Nexus 6P). My log
01-10 16:08:58.716 10548-10548/? D/TTTTT: PendingIntent.getBroadcast(...) != null: false // started app
01-10 16:09:23.749 10548-10548/? D/TTTTT: PendingIntent.getBroadcast(...) != null: true // scheduled alarm, swiped app away, reconnected device to PC
01-10 16:09:35.763 11194-11194/? D/TTTTT: PendingIntent.getBroadcast(...) != null: true // from the broadcast receiver
01-10 16:09:59.476 11194-11194/? D/TTTTT: PendingIntent.getBroadcast(...) != null: true // started app
01-10 16:10:02.262 11194-11194/? D/TTTTT: PendingIntent.getBroadcast(...) != null: false // canceled alarm, swiped app away, reconnected device to PC
01-10 16:10:12.268 11831-11831/al.demo.alarmmanagerdemo D/TTTTT: PendingIntent.getBroadcast(...) != null: false // from the broadcast receiver
01-10 16:10:22.544 11831-11831/al.demo.alarmmanagerdemo D/TTTTT: PendingIntent.getBroadcast(...) != null: false // started app

I describe the same behavior. It looks right, but you missing the problem:

If you will try to call the same method from PowerConnectedBroadcastReceiver(via connecting your phone to pc via USB) after swiping an app from recent apps it will return TRUE.
And if then you launch your application again, you will see that alarmManager.isAlarmScheduled() still returns TRUE even if there is no scheduled alarm in adb shell dumpsys alarm output.

PendingIntent.getBroadcast(...) != null shouldn't return true if you swipe away demo application('force close' it).
Can you reproduce the problem described in the first issue's message?
If so, try to list your alarms with adb shell dumpsys alarm after 'force stop' demo application.
If there is no Intent in the list, how can PendingIntent.getBroadcast(...) != null return true?

Ah, yes, I missed that. But after swiping the app away adb shell dumpsys alarm still returns the PendingIntent for me. So PendingIntent.getBroadcast() is consistent with the output.
But I'm not sure right now why the alarm isn't cleared after swiping the app away. However, force closing the app definitely clears the alarm.

Yeah, It looks like this problem is partly in my rom. LeTv One runs on EUI. But the same behavior is seen on different roms with their own 'optimizers'.
And some developers find a workaround for this issue.
I managed to get a response from the developers of Bookmate's android application. They use GCM for pushing notifications. But it doesn't work without an internet connection and moreover, can't be applied to your library.

Of course, that issue is specific to the AlarmManager. This library is using the JobScheduler and GcmNetworkManager if possible. The AlarmManager is only a fallback if the other two aren't available (exact jobs require the AlarmManager).

Closing because of inactivity. Feel free to reply nonetheless.

Did you consider using a Foreground Service to solve you issue?

I would like to comment and say this - I've tried to schedule a Service class using Android's AlarmManager but it failed miserably.
After switching for a Service to a BroadcastReceiver it did work. I'm not sure what's the specific reason but I want to think that maybe the service is running in the background and therefore AlarmManager doesn't start another instance of the service.
Here's my current, working, code -

        Intent serviceIntent = new Intent(this, <BroadcastReceiver>.class);
        PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 0, serviceIntent, 0);
        AlarmManager alarm = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
        alarm.setRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), 1000*60, pendingIntent);

This will send a broadcast every minute.

@tsirolnik you're absolutely right.
This is because of Android Background limitation:
Background start not allowed: service Intent ...

More info here: https://stackoverflow.com/questions/45016174/android-o-and-background-limits-prevents-simple-alarm-notification

Say, I have a similar issue with AlarmManager.
On Pixel 4 (or emulator) with Android 10 (or 11), I schedule it, remove from recent tasks and then it never gets triggered.
How come? I reported about this to Google because to me it seems like a bug:
https://issuetracker.google.com/issues/149556385
But as opposed to what's written here, I don't directly open a service, but open a broadcast receiver instead.
I've read the entire post, and I still don't get how to fix it. Can anyone helpe?


added cool feature

Hello Project Owners,
I've added an awesome print statement, please take a look at it.

LGTM!


Opposite preditions

I am using ktrain 0.25.0.  My model performance (text classification using Bi-GRU) is excellent (about 95% accuracy), however my predictions are always opposite.  How can I get the predictions to align with original values?

Which texts_from* function did you use and what does the original training data look like (both text and labels)?

@amaiya
When I use "texts_from_df" (see attached ktrain_Classifier_biGRU_yelp_pandas.ipynb) it works fine.  But when I use "texts_from_array"  (see attached ktrain_Classifier_biGRU_yelp_series.ipynb) my predictions are opposite.
ktrain_Classifier_biGRU_yelp_pandas.zip
ktrain_Classifier_biGRU_yelp_series.zip

In comparing the notebooks, I think this may be a bug in your preprocessing code when one-hot-encoding the labels.  The notebooks don't show the values of the arrays just prior to invoking texts_from_array, but you can verify the bug yourself.
When you use LabelEncoder, I believe the integers are assigned to labels in alphabetical order (Negative=0, Positive=1).  However, when you do something like target_names = np.array(df.target.unique()).tolist(), the targets are not necessarily in alphabetical order.  The problem is that you're supplying target_names to texts_from_array.  The texts_from_df invocation doesn't suffer from this problem because you're not using target_names in the same way.
To avoid such problems, you might try removing this preprocessing that you're doing yourself because ktrain can now handle this itself.  For instance, note that both texts_from_df and texts_from_array no longer require that you one-hot-encode the labels yourself, as shown in this notebook.  For instance, see the doc string for texts_from_array:
def texts_from_array(x_train, y_train, x_test=None, y_test=None,
                   class_names = [],
                   max_features=MAX_FEATURES, maxlen=MAXLEN,
                   val_pct=0.1, ngram_range=1, preprocess_mode='standard',
                   lang=None, # auto-detected
                   random_state=None,
                   verbose=1):
    """
    Loads and preprocesses text data from arrays.
    texts_from_array can handle data for both text classification
    and text regression.  If class_names is empty, a regression task is assumed.
    Args:
        x_train(list): list of training texts
        y_train(list): labels in one of the following forms:
        x_test(list): list of training texts
        y_test(list): labels in one of the following forms:
                       1. list of integers representing classes (class_names is required)
                       2. list of strings representing classes (class_names is not needed and ignored.)
                       3. a one or multi hot encoded array representing classes (class_names is required)
                       4. numerical values for text regresssion (class_names should be left empty)
        class_names (list): list of strings representing class labels
                            shape should be (num_examples,1) or (num_examples,)

I'll close this issue, but feel free to reply to this thread, if there are further questions or problems.

Thanks a lot for your guidance @amaiya
It is so great to see the number of enhancements you put into the library, I was upgrading the code from version 0.3.0 and you made it a lot easier to use.
Hopefully TensorFlow 2.4.0 will be released in the next few week, so we can get original "learner.lr_find" functionality back


change makefile to  to support customizing hub name when deploying hub

Signed-off-by: xuezhaojun<EMAIL_ADDRESS>

/assign @qiujian16

/ok-to-test

The issues solved by another pr


Allow cloning of form elements

It can be tedious creating a new form that has multiple questions.
It would be nice to be able to add a new question to a form by cloning a previous question.
For example, you might have a section of 10 questions, where each question has a collection of radio buttons to indicate satisfaction level. Currently, after creating the first question in the form, the user then has to start from scratch to build the second question. This means re-adding all those radio buttons and their associated values. We should instead provide the ability to copy/clone the existing question to create the next one.

Done :)


Fix: Typograpy and brand colors

ui/ux of core should be assigned to this.
Additionally @MIbrahim-Nasir should be assigned as mentor to guide juniors.


Only one login per device/browser?

Is it possible to force logout from all other devices/browsers on log in?
I would need this to prevent people from sharing their credentials with others, so once a login is performed on one device/browser all others should be logged out.
Thank you in advance.

Do this after login
$auth->logOutEverywhereElse();
Link

Do this after login
$auth->logOutEverywhereElse();
Link

I've tried this but nothing happens to other devices, they are still logged in (they don't get logged out after refreshing the page).
I've also changed the 5th argument of the class instantiation to 10s in an attempt to sync everything quicker.
Could be I am doing something wrong also 😇

Do this after login
$auth->logOutEverywhereElse();
Link

I've tried this but nothing happens to other devices, they are still logged in (they don't get logged out after refreshing the page). I've also changed the 5th argument of the class instantiation to 10s in an attempt to sync everything quicker.
Could be I am doing something wrong also 😇

Is there any error or warning?
I got headers already sent error.
Fatal error: Uncaught Delight\Auth\HeadersAlreadySentError in /composer_modules/vendor/delight-im/auth/src/Auth.php:549
The catched warning:
Warning: session_regenerate_id(): Cannot regenerate session id - headers already sent in /composer_modules/vendor/delight-im/cookie/src/Session.php on line 66

Update2: The example is works after a few minutes

Note: Global logouts take effect in the local session immediately, as expected. In other sessions (e.g. on other devices), the changes may need up to five minutes to take effect, though. This increases performance and usually poses no problem. If you want to change this behavior, nevertheless, simply decrease (or perhaps increase) the value that you pass to the Auth constructor as the argument named $sessionResyncInterval.

https://github.com/delight-im/PHP-Auth/tree/79cc24931811f01a207cf0eb36b71cb84c71390b#logout


git-diff for Atom not working

https://stackoverflow.com/questions/45065401/git-diff-for-atom-not-working
###Atom version 1.18.0
I have a brand new install of Atom and installed git-diff. Created a new reducers.js file which was added to a commit, then wrote some code, the code isn't displaying as new:

I'm expecting a Green highlight line on the right side with the line numbers, however nothing is showing up?

@leongaban did you find any solution for this ?


Server starts at port 8080 no matter the value in docker compose

Hi, tried setting up paperless-gpt along my paperless-ngx instance, but can't get it to work and the log tells me it's always starting to listen at port 8080, but that's occupied already.
Server started on port :8080
No matter the value I set in my docker compose, the outcome is the same.

Hi @DM2602,
can you post your docker-compose.yaml?

  paperless-gpt:
    image: icereed/paperless-gpt:latest
    environment:
      PAPERLESS_BASE_URL: 'http://<IP_ADDRESS>:8010'
      PAPERLESS_API_TOKEN: 'TOKENHERE'
      GIN_MODE: release
      LLM_PROVIDER: 'openai' # or 'ollama'
      LLM_MODEL: 'gpt-4o'     # or 'llama2'
      OPENAI_API_KEY: 'TOKENHERE' # Required if using OpenAI
      LLM_LANGUAGE: 'German' # Optional, default is 'English'
      OLLAMA_HOST: 'http://host.docker.internal:11434' # If using Ollama
    volumes:
      - ./prompts:/app/prompts # Mount the prompts directory
    ports:
      - '8040:8030'
    depends_on:
      - webserver

Hi DM2602,
I’m sorry you’re running into issues with setting up paperless-gpt alongside your paperless-ngx instance. Let’s get this sorted out!
Problem Recap

Error: paperless-gpt is trying to listen on port 8080, which is already in use.
Current Port Mapping:ports:
  - '8040:8030'

This maps host port 8040 to container port 8030, but the app inside the container is actually using port 8080.

Solution
To resolve the port conflict, you need to map a host port to the correct container port (8080) that paperless-gpt is using.

Update the Port Mapping:
Modify your docker-compose.yaml to map host port 8040 to container port 8080:
ports:
  - '8040:8080'  # HOST_PORT:CONTAINER_PORT

Revised docker-compose.yaml:
Here’s the updated configuration for your paperless-gpt service:
paperless-gpt:
  image: icereed/paperless-gpt:latest
  environment:
    PAPERLESS_BASE_URL: 'http://<IP_ADDRESS>:8010'
    PAPERLESS_API_TOKEN: 'TOKENHERE'
    GIN_MODE: release
    LLM_PROVIDER: 'openai' # or 'ollama'
    LLM_MODEL: 'gpt-4o'     # or 'llama2'
    OPENAI_API_KEY: 'TOKENHERE' # Required if using OpenAI
    LLM_LANGUAGE: 'German' # Optional, default is 'English'
    OLLAMA_HOST: 'http://host.docker.internal:11434' # If using Ollama
  volumes:
    - ./prompts:/app/prompts
  ports:
    - '8040:8080'  # Updated port mapping
  depends_on:
    - webserver

Apply the Changes:
Restart your Docker Compose services to apply the new configuration:
docker-compose up -d

Access the Service:
After restarting, you should be able to access paperless-gpt via http://<your-host-ip>:8040.

Quick Verification

Check Port Mapping:
Run docker ps to ensure the ports are correctly mapped:
docker ps

Look for something like:
<IP_ADDRESS>:8040->8080/tcp

Ensure Port Availability:
Make sure that host port 8040 isn’t being used by another service.

I hope this helps! Let me know if you need any more assistance or if something doesn’t work as expected.
Best regards,
Icereed


Can't start game with ender IO in mod folder

What happens:
crashes instantly
What you expected to happen:
start the game normally
Steps to reproduce:
1.Put ender io and ender core in mods folder
2.start the game
3.crashes instanly
...

Affected Versions (Do not use "latest"):

EnderIO:EnderIO-1.7.10-<IP_ADDRESS>9_beta
EnderCore: EnderCore-1.7.10-<IP_ADDRESS>_beta
Minecraft: 1.7.10
Forge: Forge<IP_ADDRESS>8-1.7.10
SpongeForge? no
Optifine? no
Single Player

Your most recent log file where the issue was present:
[https://pastebin.com/L5u2H2jd]

the crop config is for 1.10+ delete the configs and let it regen.


Ubuntu revert all changes made in bash session

I've upgraded to WSL 2 following the instruction provided. Since than, any changes I apply to files on subsystem are GONE!
I tried converting ubuntu 18 to v2. No errors. But does not fix the issue either.
I tried both reset and repair Ubuntu installation. Did not help.
I've installed 20.04 LTS and removed 18.04 LTS. SAME ISSUE. I ended up loosing all my data also... aghghghg
I am lost. Is this a known issue? How do I fix this...

I should be specific about the file that is being reverted - /etc/hosts. I added an entry.
Also forgot to mention, session gets closed prematurely without any trace...
'bash' command does not launch ubuntu.
I think my whole subsystem is in a real bad shape. But I don't know best way to reset it now...

I should be specific about the file that is being reverted - /etc/hosts. I added an entry.
Also forgot to mention, session gets closed prematurely without any trace...
'bash' command does not launch ubuntu.
I think my whole subsystem is in a real bad shape. But I don't know best way to reset it now...

Hello,
I have been interested in WSL2 recently. I think I can help you with some issues.
File Recovery on WSL
I know a way to access files through the NTFS file system. Open Windows Explorer and enter the following expression:
\\wsl$

 Picture 1. Entering \\wsl$ in the windows explorer

Picture 2. Selecting the Linux distribution to recover the file

Picture 3. Copying files/projects to be recovered to the NTFS file system

This way, you can access the project files you are working on. You can use VS Code Studio and Git when working with WSL to avoid data loss.
You can check the WSL version assigned to each of the Linux distributions you have installed by opening the PowerShell command line and entering the command (only available in Windows Build 18362 or higher): (Resource: Set your distribution version to WSL 1 or WSL2)
wsl --list --verbose

To set a distribution to be backed by either version of WSL please run: (Resource: Set your distribution version to WSL 1 or WSL2)

wsl --set-version <distribution name> <versionNumber>

# Use Case: https://github.com/microsoft/WSL/discussions/5645#discussioncomment-135169

I think the Ubuntu 18.04 user directory will not be deleted during the system upgrade (Ubuntu 18.04 > Ubuntu 20.04 / WSL 1 > WSL 2). You can change the default WSL distribution:
# Convert an existing WSL1 distro to WSL2 from PowerShell
wsl --set-version Ubuntu 2

Bash Session Records
You can view the .bash_history log in your user directory to see the last commands used on the command line. .bash_history is a text file that can be opened in notepad.

Picture 4. .bash_history command history log

Uninstall WSL
WSL distributions installed from the store can be uninstalled like any other Windows app, by right-clicking on the app tile and clicking Uninstall, or via PowerShell using the Remove-AppxPackage cmdlet. Reource: How do I uninstall a WSL Distribution?
Open command prompt with administrator rights and run the following command:
lxrun /uninstall /full

Reinstall WSL
You can follow the manual steps in the document during the reinstallation phase. When you run PowerShell during the setup again, it should have administrator permissions.

Hello,
I have been interested in WSL2 recently. I think I can help you with some issues.
File Recovery on WSL
I know a way to access files through the NTFS file system. Open Windows Explorer and enter the following expression:
\\wsl$

 Picture 1. Entering \\wsl$ in the windows explorer

Picture 2. Selecting the Linux distribution to recover the file

Picture 3. Copying files/projects to be recovered to the NTFS file system

This way, you can access the project files you are working on. You can use VS Code Studio and Git when working with WSL to avoid data loss.
You can check the WSL version assigned to each of the Linux distributions you have installed by opening the PowerShell command line and entering the command (only available in Windows Build 18362 or higher): (Resource: Set your distribution version to WSL 1 or WSL2)
wsl --list --verbose

To set a distribution to be backed by either version of WSL please run: (Resource: Set your distribution version to WSL 1 or WSL2)

wsl --set-version <distribution name> <versionNumber>

# Use Case: https://github.com/microsoft/WSL/discussions/5645#discussioncomment-135169

I think the Ubuntu 18.04 user directory will not be deleted during the system upgrade (Ubuntu 18.04 > Ubuntu 20.04 / WSL 1 > WSL 2). You can change the default WSL distribution:
# Convert an existing WSL1 distro to WSL2 from PowerShell
wsl --set-version Ubuntu 2

Bash Session Records
You can view the .bash_history log in your user directory to see the last commands used on the command line. .bash_history is a text file that can be opened in notepad.

Picture 4. .bash_history command history log

Uninstall WSL
WSL distributions installed from the store can be uninstalled like any other Windows app, by right-clicking on the app tile and clicking Uninstall, or via PowerShell using the Remove-AppxPackage cmdlet. Reource: How do I uninstall a WSL Distribution?
Open command prompt with administrator rights and run the following command:
lxrun /uninstall /full

Reinstall WSL
You can follow the manual steps in the document during the reinstallation phase. When you run PowerShell during the setup again, it should have administrator permissions.


Time Requirements?

I am working on rolling my own AMI to use with the provided EC2 cloud plugin.
During my runs, I am seeing the following error during provisioning:
Apr 11:24:25 ntpdate[1449]: adjust time server <IP_ADDRESS> offset 0.438031 sec"
11:24:25.461 [info] [ API ] <0.317.0> NTP time diffs are: [-0.002511,0.438031], max distance is 0.440542
11:24:25.462 [info] [ API ] <0.317.0> NTP check result: {'EXIT',
                                                         {{ntp_check_failed,
                                                           0.440542},
                                                          [{mzb_api_provision,
                                                            ntp_check,3,
                                                            [{file,
                                                              "/opt/mzb/server/_build/default/deps/mzbench_api/src/mzb_api_provision.erl"},
                                                             {line,104}]},
                                                           {mzb_api_provision,
                                                            provision_nodes,2,
                                                            [{file,
                                                              "/opt/mzb/server/_build/default/deps/mzbench_api/src/mzb_api_provision.erl"},
                                                             {line,26}]},
                                                           {mzb_api_bench,
                                                            handle_stage,3,
                                                            [{file,
                                                              "/opt/mzb/server/_build/default/deps/mzbench_api/src/mzb_api_bench.erl"},
                                                             {line,180}]},
                                                           {mzb_pipeline,
                                                            '-handle_cast/2-fun-0-',
                                                            6,
                                                            [{file,
                                                              "/opt/mzb/server/_build/default/deps/mzbench_api/src/mzb_pipeline.erl"},
                                                             {line,165}]}]}}

What recommendations do you have for getting system time to be within (default) tolerance?

Default tolerance is 0.1 second, it is set by ntp_max_timediff parameter at server config.
We don't have any strict requirements for time difference, if you don't measure difference between different hosts timestamps -- it is not a problem, this difference will appear in bench logs only. This error shouldn't cause a bench to fail.
Let me know if you have more questions.
Glad to hear from you!

@parsifal-47 Thanks for the speedy reply!
I will relax the constraints for now and give it another try.


perf: increase threads in global pool

Keeps one thread available for the system.

probably needs stress testing with making a bunch of rpc requests, since rpc spawns a lot of blocking threads.

running cryo went well with the additional thread in the pool (changes in this PR), no errors nor contention:
collection summary
──────────────────
- total duration: 433.511 seconds
- total chunks: 1,000
    - chunks errored:       0 / 1,000 (0.0%)
    - chunks skipped:       0 / 1,000 (0.0%)
    - chunks collected: 1,000 / 1,000 (100.0%)
- blocks collected: 1,000,000
    - blocks per second:    2,306.7
    - blocks per minute:  138,404.7
    - blocks per hour:  8,304,283.6
    - blocks per day: 199,302,806.3
- rows written: 1,000,000


Send HTTP 404 when a sheet doesn't exist

I wanted to check if a few cheat sheets exist on cht.sh or not. The right way to do this would be via HTTP status codes, so I fired up a few HEAD requests. But cht.sh always returns 200 - even when sheets don't exist.
❯ curl --head http://cht.sh/kdialog

HTTP/1.1 200 OK
Server: nginx/1.13.12
Date: Wed, 20 May 2020 16:38:39 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 107
Connection: keep-alive
Strict-Transport-Security: max-age=63072000; includeSubdomains
X-Frame-Options: DENY
X-Content-Type-Options: nosniff

❯ curl http://cht.sh/kdialog

Unknown topic.
Do you mean one of these topics maybe?

    * dig 60
    * git-log 57
    * killall 57

From the headers, it's hard to see if the cheatsheet exists on the repo or not.
Content-Length could be an indicator.
But I think the right thing would be to return 404 along with the message?

Yes, it is a bug, I confirm it

Also for this situation:
https://cht.sh/rust/flush+stdout/1

$ http https://cht.sh/rust/flush+stdout/1
HTTP/1.1 200 OK
Connection: keep-alive
...
X-Frame-Options: DENY

/*
 * 404 NOT FOUND
 *
 * Unknown cheat sheet. Please try to reformulate your query.
 * Query format:
 */

 /LANG/QUESTION

But this is also a different issue


nwg-launchers: 0.5.0 -> 0.6.3

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/nwg-piotr/nwg-launchers/releases.
meta.description for nwg-launchers is: "GTK-based launchers: application grid, button bar, dmenu for sway and other window managers"
meta.homepage for nwg-launchers is: "https://github.com/nwg-piotr/nwg-launchers"
meta.changelog for nwg-launchers is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
/nix/store/9g540q0swhi2ib9kgkki12a597axvrd1-nwg-launchers-0.6.3/bin/.nwgbar-wrapped passed the binary check.
/nix/store/9g540q0swhi2ib9kgkki12a597axvrd1-nwg-launchers-0.6.3/bin/nwgdmenu passed the binary check.
/nix/store/9g540q0swhi2ib9kgkki12a597axvrd1-nwg-launchers-0.6.3/bin/nwggrid-server passed the binary check.
/nix/store/9g540q0swhi2ib9kgkki12a597axvrd1-nwg-launchers-0.6.3/bin/nwggrid passed the binary check.
/nix/store/9g540q0swhi2ib9kgkki12a597axvrd1-nwg-launchers-0.6.3/bin/nwgbar passed the binary check.
5 of 5 passed binary check by having a zero exit code.
0 of 5 passed binary check by having the new version present in output.
found 0.6.3 with grep in /nix/store/9g540q0swhi2ib9kgkki12a597axvrd1-nwg-launchers-0.6.3
found 0.6.3 in filename of file in /nix/store/9g540q0swhi2ib9kgkki12a597axvrd1-nwg-launchers-0.6.3

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
0 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
0 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
nwg-launchers

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/9g540q0swhi2ib9kgkki12a597axvrd1-nwg-launchers-0.6.3 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A nwg-launchers https://github.com/r-ryantm/nixpkgs/archive/6c879fc18514d627e9b779d74c639987668e94a2.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/9g540q0swhi2ib9kgkki12a597axvrd1-nwg-launchers-0.6.3
ls -la /nix/store/9g540q0swhi2ib9kgkki12a597axvrd1-nwg-launchers-0.6.3/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

nwg-launchers

Maintainer pings
cc @bbigras for testing.

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

1 package built:

nwg-launchers


Only partially working on Ubuntu 14.04 with docker 1.13.0

Hi, I get the Unable to connect to unix:///var/run/docker.sock, is Docker daemon running?
My user is in the docker group:
uid=1000(xxx) gid=1000(xxx) groups=1000(xxx),4(adm), [...],124(sambashare),999(docker)
and the socket is accessible by group docker:
srw-rw---- 1 root docker 0 Jan 23 16:57 /var/run/docker.sock
I can pull/start/stop containers from the commandline as that user.
I can start/stop containers via SimpleDockerUI (!) but still get
the error message on the welcome screen and not a verified connection
in the settings tab. Running under sudo gives same result.
This is on Ubuntu 14.04 with docker 1.13.0 and SimpleDockerUI_0.5.4_amd64.deb
Happy to try a few things :-) Yours, Steffen

Thanks for reporting,
I just updated myself to Docker 1.13.0 and I'm getting the same issue (worked for 1.12.x).
Probably an incompatibility in the Docker Remote API for 1.13, will ping you once I have the fix.


'might' is not Vietnamese

One small issue is that 'might' is included in Vietnamese database.

Thanks for report. Fixed: https://github.com/monodyle/typings-app/commit/b59067e9b3cc7caf42baf013cfa3b446e354a7ca


Fails without warning or error if w3m is missing

If it doesn't find w3m executable it just stays "frozen". There should be a warning if the system dependencies (mpv and w3m) are missing and then exit.
Great proyect by the way.

Done in 1.4.2 update.


Doesn't work with React wrapper methods

Wrapping a function component with React.forwardRef or React.memo causes it to get ignored.
Example:
const Button = React.forwardRef((props, ref) => {
    const rest = // get rest of props not handled
    return (<button ref={ref} {...rest}>{props.label}</button>);
});

Button.propTypes = {
    label: PropTypes.string,
};

export default Button;

Can also be chained, e.g React.memo(React.forwardRef(() => ...))

I got around this with
const Button = (props, ref) => {
//...
}

const forwarding = React.forwardRef(Button);

Button.propTypes = {
    //...
};

export default forwarding;

forwardRef/memo don't support propTypes since a new object with a render method is returned.

Great catch 👍  It's a priority stuff for me, will work on a fix.

Published<EMAIL_ADDRESS>please check and provide feedback 🐱

It works! Thanks.


Updates to Front End and App

The app now builds and renders.  Updates to the following:
Components
ViewCustomers
ManageProducts
Profile
Some export expressions in various components were modified to appease webpack
Reducers
allProducts
index
singleProduct
singleUser
Global Components
package.json

Added css-loader and style-loader
Added eslint

Public Components
Index.html now correctly locates CSS files

Additional changes this morning:

Added authentication check to all admin routes
Updated signup and login components to redirect appropriately
Fixed some import/export issues with reducers


PG db fails to start

$ kubectl logs -f <pg-pod-name>
pg: pg_ctl: another server might be running; trying to start server anyway
pg: waiting for server to start....LOG:  database system was interrupted; last known up at 2017-10-30 05:56:04 UTC
pg: FATAL:  the database system is starting up
pg: .FATAL:  the database system is starting up
pg: FATAL:  the database system is starting up
pg: FATAL:  the database system is starting up
pg: .FATAL:  the database system is starting up
pg: .FATAL:  the database system is starting up
pg: FATAL:  the database system is starting up
pg: FATAL:  the database system is starting up
pg: .FATAL:  the database system is starting up
pg: .FATAL:  the database system is starting up
pg: .FATAL:  the database system is starting up
pg: .FATAL:  the database system is starting up
pg: FATAL:  the database system is starting up
pg: FATAL:  the database system is starting up
pg: .FATAL:  the database system is starting up
pg: .FATAL:  the database system is starting up
pg: .FATAL:  the database system is starting up
pg: .LOG:  database system was not properly shut down; automatic recovery in progress
pg: LOG:  invalid record length at 5/43CB66B8
pg: LOG:  redo is not required
pg: FATAL:  the database system is starting up
pg: FATAL:  the database system is starting up
pg: FATAL:  the database system is starting up
pg: .LOG:  MultiXact member wraparound protections are now enabled
pg: LOG:  database system is ready to accept connections
pg: LOG:  autovacuum launcher started
pg:  done
pg: server started
pg: ALTER ROLE
pg: LOG:  received fast shutdown request
pg: LOG:  aborting any active transactions
pg: LOG:  autovacuum launcher shutting down
pg: waiting for server to shut down....FATAL:  terminating connection due to administrator command
pg: FATAL:  terminating connection due to administrator command
pg: LOG:  shutting down
pg: LOG:  database system is shut down
pg:  done
pg: server stopped
pg:
pg: PostgreSQL init process complete; ready for start up.
pg:
pg: LOG:  database system was shut down at 2017-10-30 05:57:50 UTC
pg: LOG:  MultiXact member wraparound protections are now enabled
pg: LOG:  database system is ready to accept connections
pg: LOG:  autovacuum launcher started

This issue was moved to kubedb/project#30


feat(STONEINTG-953): copy test and custom labels/annotations

Copy custom.appstudio.openshift.io prefixed labels and annotations from build pipelineRuns to Snapshots
Copy all labels and annotations prefixed with test.appstudio.openshift.io/ and custom.appstudio.openshift.io/ from the Snapshot to integration pipelineRuns

Maintainers will complete the following section

[ ] Commit messages are descriptive enough (hints)
[ ] Code coverage from testing does not decrease and new code is covered (check the PR coverage on codecov)
[ ] Controllers diagrams are updated when PR changes controllers code  (if applicable)

Codecov Report
Attention: Patch coverage is 63.63636% with 4 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@717975e). Learn more about missing BASE report.

Files
Patch %
Lines

gitops/snapshot.go
0.00%
4 Missing :warning:

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #795   +/-   ##
=======================================
  Coverage        ?   71.77%
=======================================
  Files           ?       43
  Lines           ?     4014
  Branches        ?        0
=======================================
  Hits            ?     2881
  Misses          ?      849
  Partials        ?      284

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

lgtm, just trying to understand better, are we not propagating other labels/annotations from snapshot to Integration test plrs just because it is not needed by the plr? I need a rewatch from your relevant demo from biweekly

We are currently propagating all build, PaC, test and custom labels from build pipelines to Snapshots and to Integration test PLRs. Copying over all possible labels could cause issues in the future, so we decided to limit to the relevant ones.


Error when deleting User

Expected behaviour
When deleting a user I expect to be redirected back to the user management screen.
Actual behaviour
After confirming deletion I receive the following error screen:
**Warning: unlink(data/files/) [function.unlink]: Is a directory in /home/content/37/4265637/html/kanboard/app/Core/ObjectStorage/FileStorage.php on line 133
**
**Warning: Cannot modify header information - headers already sent by (output started at /home/content/37/4265637/html/kanboard/app/Core/ObjectStorage/FileStorage.php:133) in /home/content/37/4265637/html/kanboard/app/Core/Http/Response.php on line 96
**
Steps to reproduce

Navigate to User Management
Click Actions gear and select Remove
Click Yes on the confirmation prompt.

Configuration
Copy and paste the configuration section from the Kanboard settings page or fill these fields:
Kanboard version: 1.0.28
Database type and version: mysql\5.5.43-37.2-log
PHP version: 5.3.24
OS: Linux 2.6.32-604.30.3.lve1.3.63.el6.nfsfixes.x86_64
Browser: Chrome\49.0.2623.112 m, Firefox\33.1.1
Sign up for free

I tracked this down to app/Core/ObjectStorage/FileStorage.php
It looks like when avatar deletion is being called instead of passing in data/files/avatars/user_id it's only getting data/files. Unlink then fails because it's a directory.

This issue is now solved in master. Thanks.


fix(prettier): print_method

Current dependencies on/for this PR:

main

PR #1453   👈

This stack of pull requests is managed by Graphite.


Fixes incorrect placement of console.log

If one reads the source code for @xstate/fsm, one can see that the service.subscribe() method immediately calls the listener with the current state. Thus, in the example, the console.log would be called immediately after registering the listener. The start method, on the other hand, merely returns the service and would log nothing out. Thus, I moved the log comment up to just below the subscription.
I have made a small example showing this behavior in a sandbox: https://codesandbox.io/s/jovial-dirac-fe4fn. Without even starting the service, you can see that the unlit state has been logged to the console.

Good catch, although I think that the listener should be called when the service is started, never before. I'll see about fixing that nuance instead.

I think that makes sense. I've been writing an interpreter from scratch for educational purposes and referencing this source code. I made a modification in my interpreter where I fire all the listeners on calling start instead.
In this case, it would be removing line 181 listener(state), and then making line 187:
{
  //...
  start: () => (
    (started = true),
    listeners.forEach(listener => listener(state)),
    service
  ),
  //...
}

My concern was if there was a good reason I hadn't understood that we should fire them when subscribed, or if start should not have any other side effect like that. Sounds like this is more of a bug and not a feature.


[FEATURE]: LLM Insights Dashboard

Would be nice to have a cute little dashboard to see what tinyllama comes up with.
Just an addon to the project for demonstration purposes

Is this issue open, i am willing to work?

Is this issue open, i am willing to work?

Oops!
This issue was already resolved in #37 but if you want to help us in improving the current dashboard, we can extend this as a separate issue.


Publish go module for golang bindings

Publish the go module so that a semantic version can be assigned to the published module (current state of the world is that go.mod and go.sum will just reference the relevant commit hash... which definitely works, but it would be nicer to have a semantic version available).
Requires someone with write permissions to the repo to do this. Should be pretty straightforward, following: https://go.dev/blog/publishing-go-modules

@isabelle-dr or @bdferris-v2 to find someone to help with this :)

@isabelle-dr @bdferris-v2 Publishing the Go module requires permissions to tag and push tags for this repo.
If you think it makes sense for me to have these permissions, I'm happy to help do that. Someone with existing write permissions can also publish this module by running:
git tag golang/gtfs/v1.0.0
git push origin golang/gtfs/v1.0.0
GOPROXY=proxy.golang.org go list -m<EMAIL_ADDRESS>
One should note the prefix of gtfs/ per the golang reference documentation about packages that belong to a subdirectory within a larger repo: https://go.dev/ref/mod#vcs-version

If a module is defined in a subdirectory within the repository, that is, the module subdirectory portion of the module path is not empty, then each tag name must be prefixed with the module subdirectory, followed by a slash. For example, the module golang.org/x/tools/gopls is defined in the gopls subdirectory of the repository with root path golang.org/x/tools. The version v0.4.0 of that module must have the tag named gopls/v0.4.0 in that repository.

Let me take a shot at publishing.  I'll leave it up @isabelle-dr on the permissions question.

@isabelle-dr If Brian is going to add the tag, he has the correct permissions to push it to the repo. Is this what you wanted me to check?

@isabelle-dr Yes, you have those permissions just by being part of the Data Quality team, which has maintain rights on this repo.

A few questions here:

What should the semantic version be?  I know versioning has been ad-hoc across the different language bindings.  I was wondering if anyone had a strong opinion here.
Just confirming that the tag will need to be golang/gtfs/vX.Y.Z because our go module is in a repo subdirectory, per discussion at https://github.com/golang/go/wiki/Modules#faqs--multi-module-repositories.  Does that match your understanding?

Hello,
If I understand correctly, this is the first time we will publish a module for golang bindings.
v0 is used for "initial unstable version", whereas v1 is used for "the first stable version" (source).
So, maybe v1.0.0?

What should the semantic version be? I know versioning has been ad-hoc across the different language bindings. I was wondering if anyone had a strong opinion here.

I would advocate for v1.0.0 for the semantic version.

Just confirming that the tag will need to be golang/gtfs/vX.Y.Z because our go module is in a repo subdirectory, per discussion at https://github.com/golang/go/wiki/Modules#faqs--multi-module-repositories. Does that match your understanding?

Yup! That matches my understanding and what I had written up previously here: https://github.com/MobilityData/gtfs-realtime-bindings/issues/116#issuecomment-1385851197

Apologies I forgot about that comment.
For semantic version, would it be worthwhile pushing a v0 test release first to verify everything is working correctly before tagging a v1.0.0 release?

@bdferris-v2 No worries - and I think pushing a v0 test release first is a good idea!

Question: do we need to create an account for this like I did for Pypi? If so, I'll be able to do it once I get back from my errands, in roughly 2h from now, so 13:30 EST.

To my understanding, no account is required for publishing go packages.
One can actually see the go package already here: https://pkg.go.dev/github.com/MobilityData/gtfs-realtime-bindings/golang/gtfs. The versioning is just using a commit hash versioned v0 for now (which should change once an appropriate version tagged is pushed and the package updates are pushed).
Some more information here: https://proxy.golang.org/

As of about 30 seconds ago, we now have a tagged version v0.0.1
I've verified that
GOPROXY=proxy.golang.org go list -m<EMAIL_ADDRESS>
seems to spit out something reasonable.

Publishing of v0.0.1 seems successful.  I'm going add a documentation update in #119 and then tag that as the v1.0.0 release.

Publishing of v1.0.0 is now complete.  I'm going to take the liberty of marking this bug as complete?  Thanks for all your work on this @jameslinjl !


Update Teaching “index”

Automatically generated by Netlify CMS

👷 Deploy Preview for ross-cms processing.

Name
Link

🔨 Latest commit
d762fd82c0107c117fe5f69ff8dd5ed80fe6a56b

🔍 Latest deploy log
https://app.netlify.com/sites/ross-cms/deploys/65daac530a411000087c7da4


Teach fetch to handle multipart/form-data as fetch body

We currently are pretty good at handling JSON body, but we don't really do as well with multipart/form-data. This seems like a really useful thing to have. Ideally, it's still just JSON as input, and an extra param for request type (enum of application/json and multipart/form-data).

Fixed in #1949.