How to work on standalone files (not in a swift package)?

When I edit a single swift file inside vscode, I got the following error:

What version of Swift are you running? With 5.8 on macOS it seems to work fine and the last time I checked it was working on Ubuntu 2204.

@adam-fowler
Apple Swift version 5.7.2 (swiftlang-<IP_ADDRESS>.5 clang-14<IP_ADDRESS>)
Target: arm64-apple-macosx13.0

Not reproducible for me with Swift 5.8 from Xcode 14.3.0 and Swift extension v1.2.0 either. I think this can be closed as outdated.

Xcode is also okay for me. The error was reported from VSCode.

Xcode is also okay for me. The error was reported from VSCode.

I understand that, I only mentioned Xcode as a distribution mechanism for Swift 5.8. I did verify that the issue is not reproducible in VS Code with that specific Swift version. Can you confirm that this is the case with that version for you too?

If it still reproduces, could you share any sourcekit-lsp crash reports in the Console app?

If it still reproduces, could you share any sourcekit-lsp crash reports in the Console app?

@ahoppen Here's the crash report in the console:：
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               sourcekit-lsp [75326]
Path:                  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/sourcekit-lsp
Identifier:            sourcekit-lsp
Version:               ???
Code Type:             ARM-64 (Native)
Parent Process:        Code Helper (Plugin) [75149]
Responsible:           Electron [25960]
User ID:               501

Date/Time:             2023-04-11 18:45:56.2013 +0800
OS Version:            macOS 13.2 (22D49)
Report Version:        12
Anonymous UUID:        6944BC15-890C-D809-E667-FD2105AB133D

Sleep/Wake UUID:       EB19E2D4-EFBD-4929-AE61-84C020F6D4A8

Time Awake Since Boot: 640000 seconds
Time Since Wake:       119866 seconds

System Integrity Protection: enabled

Crashed Thread:        1  Dispatch queue: swift-language-server-queue

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000001, 0x0000000101a7f14c

Termination Reason:    Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process:   exc handler [75326]

Thread 0:
0   libsystem_kernel.dylib        	       0x184f996ec __semwait_signal_nocancel + 8
1   libsystem_c.dylib             	       0x184ebbc4c nanosleep$NOCANCEL + 216
2   libsystem_c.dylib             	       0x184ebbb18 sleep$NOCANCEL + 52
3   libdispatch.dylib             	       0x184e5dbb0 _dispatch_queue_cleanup2 + 212
4   libsystem_pthread.dylib       	       0x184fcf9ec _pthread_tsd_cleanup + 620
5   libsystem_pthread.dylib       	       0x184fd2760 _pthread_exit + 84
6   libsystem_pthread.dylib       	       0x184fcf71c pthread_exit + 88
7   libdispatch.dylib             	       0x184e5908c dispatch_main + 128
8   sourcekit-lsp                 	       0x100e35cd0 0x100e30000 + 23760
9   sourcekit-lsp                 	       0x100e37e64 0x100e30000 + 32356
10  sourcekit-lsp                 	       0x101ad408c 0x100e30000 + 13254796
11  sourcekit-lsp                 	       0x100e33bf8 0x100e30000 + 15352
12  dyld                          	       0x184ca7e50 start + 2544

Thread 1 Crashed::  Dispatch queue: swift-language-server-queue
0   sourcekit-lsp                 	       0x101a7f14c 0x100e30000 + 12906828
1   sourcekit-lsp                 	       0x101a7c110 0x100e30000 + 12894480
2   sourcekit-lsp                 	       0x101a7c110 0x100e30000 + 12894480
3   sourcekit-lsp                 	       0x101a7d4e4 0x100e30000 + 12899556
4   sourcekit-lsp                 	       0x101a7e8f8 0x100e30000 + 12904696
5   sourcekit-lsp                 	       0x101a8bd10 0x100e30000 + 12958992
6   sourcekit-lsp                 	       0x1010317e4 0x100e30000 + 2103268
7   sourcekit-lsp                 	       0x101a8b860 0x100e30000 + 12957792
8   sourcekit-lsp                 	       0x101a8c278 0x100e30000 + 12960376
9   sourcekit-lsp                 	       0x101a9fdc8 0x100e30000 + 13041096
10  sourcekit-lsp                 	       0x101a4c43c 0x100e30000 + 12698684
11  libdispatch.dylib             	       0x184e489dc _dispatch_call_block_and_release + 32
12  libdispatch.dylib             	       0x184e4a504 _dispatch_client_callout + 20
13  libdispatch.dylib             	       0x184e51bbc _dispatch_lane_serial_drain + 672
14  libdispatch.dylib             	       0x184e52708 _dispatch_lane_invoke + 384
15  libdispatch.dylib             	       0x184e5d34c _dispatch_workloop_worker_thread + 652
16  libsystem_pthread.dylib       	       0x184fce100 _pthread_wqthread + 288
17  libsystem_pthread.dylib       	       0x184fcce20 start_wqthread + 8

Thread 2:
0   libsystem_pthread.dylib       	       0x184fcce18 start_wqthread + 0

Thread 3:
0   libsystem_pthread.dylib       	       0x184fcce18 start_wqthread + 0

Thread 4:
0   libsystem_kernel.dylib        	       0x184f99724 __sigsuspend_nocancel + 8
1   libdispatch.dylib             	       0x184e5dcb0 _dispatch_sigsuspend + 48
2   libdispatch.dylib             	       0x184e5dc80 _dispatch_sig_thread + 60

Thread 5:
0   libsystem_pthread.dylib       	       0x184fcce18 start_wqthread + 0

Thread 1 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0xe000000000000000   x2: 0x0000000000000000   x3: 0xe000000000000000
    x4: 0x000000000000004f   x5: 0x0000000000000004   x6: 0x0000000000000002   x7: 0x00000001e15f2048
    x8: 0x0000000000000000   x9: 0x0000000000000000  x10: 0x0000000000000000  x11: 0x000000000000001f
   x12: 0x0000000000000016  x13: 0x000000011c712fc0  x14: 0x01000001e05745b1  x15: 0x00000001e05745b0
   x16: 0x000000019317c504  x17: 0xf948000185052114  x18: 0x0000000000000000  x19: 0xe000000000000000
   x20: 0x0000000000000000  x21: 0x0000000000000000  x22: 0xe000000000000000  x23: 0x000000016f053660
   x24: 0x0000000100e39e68  x25: 0x0000000101d715b8  x26: 0x0000000100f171a8  x27: 0x0000000100f171a0
   x28: 0x00000000000001a3   fp: 0x000000016f0535e0   lr: 0x0000000101a7c110
    sp: 0x000000016f0535a0   pc: 0x0000000101a7f14c cpsr: 0x00001000
   far: 0x00000001411c6f95  esr: 0xf2000001 (Breakpoint) brk 1

Binary Images:
       0x184f91000 -        0x184fcafeb libsystem_kernel.dylib (*) <6b682e21-fd96-3a5a-8260-fce367258252> /usr/lib/system/libsystem_kernel.dylib
       0x184e91000 -        0x184f11ffb libsystem_c.dylib (*) <14cd841b-0c7b-34a2-a342-cc6796ef9259> /usr/lib/system/libsystem_c.dylib
       0x184e46000 -        0x184e8dfff libdispatch.dylib (*) <4d52c3a5-32e6-37a2-9d6c-23c612038354> /usr/lib/system/libdispatch.dylib
       0x184fcb000 -        0x184fd7ffb libsystem_pthread.dylib (*) <9f3b729a-ed04-3e65-adac-d75ad06ebbdc> /usr/lib/system/libsystem_pthread.dylib
       0x100e30000 -        0x101d5ffff sourcekit-lsp (*) <7e13587e-8baf-36e4-af6d-06d67bc58c5f> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/sourcekit-lsp
       0x184ca2000 -        0x184d2cba3 dyld (*) <fe8a9d9e-f65d-34ca-942c-175b99c0601b> /usr/lib/dyld

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 10
    thread_create: 1
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=943.3M resident=0K(0%) swapped_out_or_unallocated=943.3M(100%)
Writable regions: Total=1.1G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.1G(100%)

                                VIRTUAL   REGION
REGION TYPE                        SIZE    COUNT (non-coalesced)
===========                     =======  =======
Activity Tracing                   256K        1
Dispatch continuations            64.0M        1
Kernel Alloc Once                   32K        1
MALLOC                           136.1M       30
MALLOC guard page                   96K        5
MALLOC_MEDIUM (reserved)         960.0M        8         reserved VM address space (unallocated)
STACK GUARD                       56.1M        6
Stack                             10.6M        6
VM_ALLOCATE                         16K        1
__AUTH                             461K      102
__AUTH_CONST                      8023K      230
__DATA                            3400K      219
__DATA_CONST                      9828K      232
__DATA_DIRTY                       445K       84
__FONT_DATA                        2352        1
__LINKEDIT                       769.5M        3
__OBJC_CONST                       643K       81
__OBJC_RO                         65.5M        1
__OBJC_RW                         1988K        1
__TEXT                           173.8M      242
dyld private memory                256K        1
mapped file                       29.3M        3
shared memory                      624K        7
===========                     =======  =======
TOTAL                              2.2G     1266
TOTAL, minus reserved VM space     1.3G     1266

-----------
Full Report
-----------

{"app_name":"sourcekit-lsp","timestamp":"2023-04-11 18:45:57.00 +0800","app_version":"","slice_uuid":"7e13587e-8baf-36e4-af6d-06d67bc58c5f","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 13.2 (22D49)","roots_installed":0,"incident_id":"1B045DD5-6228-4D68-8189-0370C3160A92","name":"sourcekit-lsp"}
{
  "uptime" : 640000,
  "procRole" : "Unspecified",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookAir10,1",
  "coalitionID" : 2341,
  "osVersion" : {
    "train" : "macOS 13.2",
    "build" : "22D49",
    "releaseType" : "User"
  },
  "captureTime" : "2023-04-11 18:45:56.2013 +0800",
  "incident" : "1B045DD5-6228-4D68-8189-0370C3160A92",
  "pid" : 75326,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2023-04-11 18:45:55.9385 +0800",
  "procStartAbsTime" :<PHONE_NUMBER>6582,
  "procExitAbsTime" :<PHONE_NUMBER>5386,
  "procName" : "sourcekit-lsp",
  "procPath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/bin\/sourcekit-lsp",
  "parentProc" : "Code Helper (Plugin)",
  "parentPid" : 75149,
  "coalitionName" : "com.microsoft.VSCode",
  "crashReporterKey" : "6944BC15-890C-D809-E667-FD2105AB133D",
  "responsiblePid" : 25960,
  "responsibleProc" : "Electron",
  "wakeTime" : 119866,
  "sleepWakeUUID" : "EB19E2D4-EFBD-4929-AE61-84C020F6D4A8",
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000001, 0x0000000101a7f14c","rawCodes":[1,4322750796],"type":"EXC_BREAKPOINT","signal":"SIGTRAP"},
  "termination" : {"flags":0,"code":5,"namespace":"SIGNAL","indicator":"Trace\/BPT trap: 5","byProc":"exc handler","byPid":75326},
  "os_fault" : {"process":"sourcekit-lsp"},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":1,"thread_set_state":0,"task_for_pid":10},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 1,
  "threads" : [{"id":8280250,"frames":[{"imageOffset":34540,"symbol":"__semwait_signal_nocancel","symbolLocation":8,"imageIndex":0},{"imageOffset":175180,"symbol":"nanosleep$NOCANCEL","symbolLocation":216,"imageIndex":1},{"imageOffset":174872,"symbol":"sleep$NOCANCEL","symbolLocation":52,"imageIndex":1},{"imageOffset":97200,"symbol":"_dispatch_queue_cleanup2","symbolLocation":212,"imageIndex":2},{"imageOffset":18924,"symbol":"_pthread_tsd_cleanup","symbolLocation":620,"imageIndex":3},{"imageOffset":30560,"symbol":"_pthread_exit","symbolLocation":84,"imageIndex":3},{"imageOffset":18204,"symbol":"pthread_exit","symbolLocation":88,"imageIndex":3},{"imageOffset":77964,"symbol":"dispatch_main","symbolLocation":128,"imageIndex":2},{"imageOffset":23760,"imageIndex":4},{"imageOffset":32356,"imageIndex":4},{"imageOffset":13254796,"imageIndex":4},{"imageOffset":15352,"imageIndex":4},{"imageOffset":24144,"symbol":"start","symbolLocation":2544,"imageIndex":5}]},{"triggered":true,"id":8280251,"threadState":{"x":[{"value":0},{"value":16140901064495857664},{"value":0},{"value":16140901064495857664},{"value":79},{"value":4},{"value":2},{"value":8076075080,"symbolLocation":0,"symbol":"type metadata for String"},{"value":0},{"value":0},{"value":0},{"value":31},{"value":22},{"value":4772147136},{"value":72057602096711089,"symbolLocation":72057594037927937,"symbol":"OBJC_CLASS_$___NSCFString"},{"value":8058783152,"symbolLocation":0,"symbol":"OBJC_CLASS_$___NSCFString"},{"value":6762775812,"symbolLocation":0,"symbol":"swift_bridgeObjectRelease"},{"value":17962607120293896468,"symbolLocation":17962607113767223296,"symbol":"-[__NSCFString release]"},{"value":0},{"value":16140901064495857664},{"value":0},{"value":0},{"value":16140901064495857664},{"value":6157579872},{"value":4309884520},{"value":4325840312},{"value":4310790568},{"value":4310790560},{"value":419}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4322738448},"cpsr":{"value":4096},"fp":{"value":6157579744},"sp":{"value":6157579680},"esr":{"value":4060086273,"description":"(Breakpoint) brk 1"},"pc":{"value":4322750796,"matchesCrashFrame":1},"far":{"value":5387349909}},"queue":"swift-language-server-queue","frames":[{"imageOffset":12906828,"imageIndex":4},{"imageOffset":12894480,"imageIndex":4},{"imageOffset":12894480,"imageIndex":4},{"imageOffset":12899556,"imageIndex":4},{"imageOffset":12904696,"imageIndex":4},{"imageOffset":12958992,"imageIndex":4},{"imageOffset":2103268,"imageIndex":4},{"imageOffset":12957792,"imageIndex":4},{"imageOffset":12960376,"imageIndex":4},{"imageOffset":13041096,"imageIndex":4},{"imageOffset":12698684,"imageIndex":4},{"imageOffset":10716,"symbol":"_dispatch_call_block_and_release","symbolLocation":32,"imageIndex":2},{"imageOffset":17668,"symbol":"_dispatch_client_callout","symbolLocation":20,"imageIndex":2},{"imageOffset":48060,"symbol":"_dispatch_lane_serial_drain","symbolLocation":672,"imageIndex":2},{"imageOffset":50952,"symbol":"_dispatch_lane_invoke","symbolLocation":384,"imageIndex":2},{"imageOffset":95052,"symbol":"_dispatch_workloop_worker_thread","symbolLocation":652,"imageIndex":2},{"imageOffset":12544,"symbol":"_pthread_wqthread","symbolLocation":288,"imageIndex":3},{"imageOffset":7712,"symbol":"start_wqthread","symbolLocation":8,"imageIndex":3}]},{"id":8280252,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":3}]},{"id":8280253,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":3}]},{"id":8280270,"frames":[{"imageOffset":34596,"symbol":"__sigsuspend_nocancel","symbolLocation":8,"imageIndex":0},{"imageOffset":97456,"symbol":"_dispatch_sigsuspend","symbolLocation":48,"imageIndex":2},{"imageOffset":97408,"symbol":"_dispatch_sig_thread","symbolLocation":60,"imageIndex":2}]},{"id":8280271,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":3}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" :<PHONE_NUMBER>,
    "size" : 237548,
    "uuid" : "6b682e21-fd96-3a5a-8260-fce367258252",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" :<PHONE_NUMBER>,
    "size" : 528380,
    "uuid" : "14cd841b-0c7b-34a2-a342-cc6796ef9259",
    "path" : "\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" :<PHONE_NUMBER>,
    "size" : 294912,
    "uuid" : "4d52c3a5-32e6-37a2-9d6c-23c612038354",
    "path" : "\/usr\/lib\/system\/libdispatch.dylib",
    "name" : "libdispatch.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" :<PHONE_NUMBER>,
    "size" : 53244,
    "uuid" : "9f3b729a-ed04-3e65-adac-d75ad06ebbdc",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" :<PHONE_NUMBER>,
    "size" : 15925248,
    "uuid" : "7e13587e-8baf-36e4-af6d-06d67bc58c5f",
    "path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/bin\/sourcekit-lsp",
    "name" : "sourcekit-lsp"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" :<PHONE_NUMBER>,
    "size" : 568228,
    "uuid" : "fe8a9d9e-f65d-34ca-942c-175b99c0601b",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  }
],
  "sharedCache" : {
  "base" :<PHONE_NUMBER>,
  "size" :<PHONE_NUMBER>,
  "uuid" : "3366b98c-6b8a-3546-8233-dc167320439f"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=943.3M resident=0K(0%) swapped_out_or_unallocated=943.3M(100%)\nWritable regions: Total=1.1G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.1G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nActivity Tracing                   256K        1 \nDispatch continuations            64.0M        1 \nKernel Alloc Once                   32K        1 \nMALLOC                           136.1M       30 \nMALLOC guard page                   96K        5 \nMALLOC_MEDIUM (reserved)         960.0M        8         reserved VM address space (unallocated)\nSTACK GUARD                       56.1M        6 \nStack                             10.6M        6 \nVM_ALLOCATE                         16K        1 \n__AUTH                             461K      102 \n__AUTH_CONST                      8023K      230 \n__DATA                            3400K      219 \n__DATA_CONST                      9828K      232 \n__DATA_DIRTY                       445K       84 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       769.5M        3 \n__OBJC_CONST                       643K       81 \n__OBJC_RO                         65.5M        1 \n__OBJC_RW                         1988K        1 \n__TEXT                           173.8M      242 \ndyld private memory                256K        1 \nmapped file                       29.3M        3 \nshared memory                      624K        7 \n===========                     =======  ======= \nTOTAL                              2.2G     1266 \nTOTAL, minus reserved VM space     1.3G     1266 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "swift-language-server-queue"
  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "5f72dc58705eff005a46b3a9",
      "factorPackIds" : {

      },
      "deploymentId" : 240000015
    },
    {
      "rolloutId" : "6112d17137f5d11121dcd4e2",
      "factorPackIds" : {

      },
      "deploymentId" : 240000250
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "c28e4ee6-1b08-4f90-8e05-2809e78310a3",
      "experimentId" : "6317d2003d24842ff850182a",
      "deploymentId" : 400000013
    }
  ]
}
}

@MaxDesiatov  I don't know what happened, but indeed when I reopened the project in VSCode this morning, there was no crush anymore.

I see what’s going wrong. You are hitting https://github.com/apple/sourcekit-lsp/issues/635. This should be fixed with Swift 5.8, which is included in Xcode 14.3. If you are still able to reproduce the problem with that version of SourceKit-LSP, please re-open the issue.


Remove estuary storage/publisher

Removes support for estuary as a storage provider or a downloader.
TODO: Check if we want to default any requests for estuary to ipfs equivalent (e.g. estuary publisher -> ipfs publisher) until we can deprecate entirely without breaking specs.

We will still technically support estuary as a publisher after this change, but as a URL publisher instead, correct? Just need a story for sharing API keys with compute nodes which I believe is the intention of https://github.com/bacalhau-project/bacalhau/pull/2692?

I think we should actually go one step further and remove StorageSourceEstuary from the publisher mapped provider, so that a job submission with Estuary will not get scheduled to any node. Yes, this will require people to change their job descriptions which is something we now need people to do anyway as Estuary is permanently gone, but it doesn't make past job specs invalid which would happen if we removed it wholesale.

remove StorageSourceEstuary from the publisher mapped provider, so that a job submission with Estuary will not get scheduled to any node

Yes that makes a lot of sense, as long as we can still parse a jobspec, that that'll be enough. Does suggest we'll need to have a think about how we handle disappearing plugins in future.


one octanct of waterman butterfly includes a rendering error

I use openjdk 22 2024-03-19 on a linux machine, with  javafx-sdk-22.0.1 and the recent map-projections release.
All implemented waterman butterfly projections produce rendering errors as marked in the attached image, where a part of the map is repeated with a small offset.

Oh, thank you for catching that!  There was a 2√3 in the code where there should have been a √3/2.  The most recent release should fix this.


"Connection closed unexpectedly" in nodemailer v0.7.1 sending from gmail to yahoo

I will need to send at most 20 messages per day through nodemailer (using gmail). I am using code like this:
    function thatGetsCalledInAnArrayDotForEach (participant) {
      var smtpTransport = nodemailer.createTransport("SMTP", {
        service: "Gmail",
        auth: {
          XOAuth2: {
            user: "my institutional gmail",
            clientId: "blahblahblah.apps.googleusercontent.com",
            clientSecret: "gobbldygook",
            refreshToken: "somenoncense"
          }
        }
      });
      var mailOptions = {
        from: "my institutional gmail",
        to: participant.email,
        subject: "My subject",
        generateTextFromHTML: true,
        html: 'My message containing html ' + participant.someField + " s'more text"
      };
      smtpTransport.sendMail(mailOptions, function(error, response) {
        if (error) {
          console.log("error sending a message", mailOptions, error, response);
        } else {
          console.log(response);
        }
        smtpTransport.close(); //should i do close here? the
      });
    }

Right now I'm sending 8, and the 6th (but none of the others?!) is failing with:
error sending a message { from: 'my institutional gmail',
  to<EMAIL_ADDRESS>  subject: 'My subject',
  generateTextFromHTML: true,
  html: 'My message containing html',
  transport:
   { options:
      { service: 'Gmail',
        auth: [Object],
        maxConnections: 5,
        transport: 'SMTP',
        host: 'smtp.gmail.com',
        secureConnection: true,
        port: 465,
        requiresAuth: true,
        domains: [Object],
        maxMessages: Infinity },
     transportType: 'SMTP',
     dkimOptions: false,
     transport: { options: [Object], pool: [Object] },
     version: '0.3.35',
     sendMail: [Function] },
  text: 'My message containing html' } { [Error: Connection closed unexpectedly] stage: 'mail' } undefined

Anyone have any suggestion or way I can get more details about the error?

If sending fails in the mail stage then you could just try again until it succeeds. You could also set debug option to true for the  to see the SMTP transaction log which should give a better understanding of why it fails:
nodemailer.createTransport("SMTP", {
        service: "Gmail",
        debug: true,
        ....

Closing as v0.7 is not supported anymore


Run Performance Counters from core.

It is quite usual to just check Performance Counters, so it is a resource waste to run an external program to get them (since they are already external programs).
So, in order to improve the performance, I'd like to create a new Command type that allows to get a Performance Counter in an easy way.
Let's see an example. To get the CPU it should be enough with launching an special command like:
!perfcounter> processor(_total)\% processor time -- warn:80 critical:90 schema:foo.bar

So, whenever the command starts with "!perfcounter>", it should start an special command in order to process the performance counter and use it in a normalized way.
Please, if you like the idea but you prefer a better syntax, just tellme in this issue. I'm already implementing it.
Thank you.

I've decided to use this format instead:
!perfcounter> processor(_total)\% processor time; warn=80; critical=90; schema=foo.bar

because it is easier to be parsed.
What do you think?

Hi,
I think that is a really great idea!
CPU tends to be very "flappy", so i was thinking about having a background
thread collection CPU and other performance counters from client-config and
maybe create some other custom defenitions.
I was thinking on having CPU , Memory and Disk as something predefined like
a getting started kit :)
I think your idea about having a syntax that starts with "!perfcounter" is
a good idea.
Some counters are direct and some you would like to have a last 30 secconds
average on (CPU and Memory) to avoid flapping.
Thank you!
On Mon, Aug 24, 2015 at 3:32 PM, Miguel Ángel García <
<EMAIL_ADDRESS>wrote:

It is quite usual to just check Performance Counters, so it is a resource
waste to run an external program to get them (since they are already
external programs).
So, in order to improve the performance, I'd like to create a new Command
type that allows to get a Performance Counter in an easy way.
Let's see an example. To get the CPU it should be enough with launching an
special command like:
!perfcounter> processor(_total)% processor time -- warn:80 critical:90 schema:foo.bar
So, whenever the command starts with "!perfcounter>", it should start an
special command in order to process the performance counter and use it in a
normalized way.
Please, if you like the idea but you prefer a better syntax, just tellme
in this issue. I'm already implementing it.
Thank you.
—
Reply to this email directly or view it on GitHub
https://github.com/carllindelof/sensu-client/issues/2.

Yes, that is better!
On Mon, Aug 24, 2015 at 3:59 PM, Miguel Ángel García <
<EMAIL_ADDRESS>wrote:

I've decided to use this format instead:
!perfcounter> processor(_total)% processor time; warn=80; critical=90; schema=foo.bar
because it is easier to be parsed.
What do you think?
—
Reply to this email directly or view it on GitHub
https://github.com/carllindelof/sensu-client/issues/2#issuecomment-134214048
.

Between you and me...
The BEST idea would be to use a different "type" instead of "standard" and move the arguments to the client json... But this can have disgusting effects in server, so I prefer to maintain it this way.

I agree,
:)
On Mon, Aug 24, 2015 at 4:04 PM, Miguel Ángel García <
<EMAIL_ADDRESS>wrote:

Between you and me...
The BEST idea would be to use a different "type" instead of "standard" and
move the arguments to the client json... But this can have disgusting
effects in server, so I prefer to maintain it this way.
—
Reply to this email directly or view it on GitHub
https://github.com/carllindelof/sensu-client/issues/2#issuecomment-134216137
.

In linux, it is possible to query the cpu counter (getting tick counts), so rather than sampling, you get a full measurement of how much CPU was used over the interval between two checks. One problem with sampling is that your CPU can go up because of the sampling (maybe because other checks run at the same time). If you can work out how to maintain a counter, then the averaging can be determined by how often you run the query. It also gives you a true idea of the amount of CPU that has been used over that period.


Trends enabled causes odd drawing of Graph panel

I'm submitting a ...

[x] Bug report
[ ] Feature request
[ ] Question / Support request

For bug report please include this information:

What Grafana version are you using?

Version 4.3.2

What Zabbix version are you using?

3.0.9

What zabbix plugin version are you using?

3.4.0

What OS are you running grafana on?

CentOS Linux release 7.3.1611

What did you do?

Enabled Trends on the grafana-zabbix datasource (using default values for After,Range, and Cache TTL

What was the expected result?

The graph panel to display values in 'correct' manner.

What happened instead?

The graph panel draws values in an odd manner.

Without Trends Enabled:

With Trends Enabled:

I searched current and past issues, but was not able to locate any issues similar to this one.
Once I figure out how to do the following, I will update this issue.

The raw query and response for the network request (check this in chrome dev tools network tab, here you can see metric requests and other request, please include the request body and request response)

Seems, the root cause is the same as for #202

@alexanderzobnin Ugh...sorry I missed that issue.  I'll do the tweaks mentioned on #202
Thanks for your time and thanks for your work on this Grafana Plugin/Datasource!!


install problem log

python3 -m venv python3 && . python3/bin/activate && pip3 install -r requirements.txt

Error: Command '['/home/neon/node_modules/facenet/python3/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>venv: python3 -m venv python3 && . python3/bin/activate && pip3 install -r requirements.txt

It happened to me as well. And after I reinstalled python3.6, problem seems gone.

yeah! after reinstall python3.It can be run well,thank you!

I'm having the same problem with installation of node-facenet

10942 verbose node v8.11.1
10943 verbose npm  v5.6.0
10944 error code ELIFECYCLE
10945 error errno 1
10946 error<EMAIL_ADDRESS>postinstall: npm run venv && npm run postinstall:facenet && npm run postinstall:models
10946 error Exit status 1
10947 error Failed at the<EMAIL_ADDRESS>postinstall script.
10947 error This is probably not a problem with npm. There is likely additional logging output above.
10948 verbose exit [ 1, true ]
slobodan@deus:~/testface$ python --version
Python 3.6.2 :: Anaconda custom (64-bit)


Add Pagination class for search pages

Check the tests

Codecov Report

Merging #12 into master will increase coverage by 1.77%.
The diff coverage is 97.61%.

Impacted Files
Coverage Δ

lib/src/pagination/pagination.dart
97.61% <97.61%> (ø)


Necessity of key validation

Sodiumoxide supports from_slice, deserialize for SecretKey type and PublicKey type. I utilized it to reconstruct keys from data read from secure Keystore or decoded from messages.
However, I'm worrying about breaking the invariant of the key type because keys are not just arbitrary byte arrays. I want to check the validity of the byte representations before invoking the method like sign and verify, how can I reach this goal?

Let me quote from the curve25519 paper
“Free key validation. Typical elliptic-curve-Diffie-Hellman functions can
be broken if users do not validate public keys; see, e.g., [14, Section
4.1] and [3].
A hash of the shared secret Curve25519(a, Curve25519(b, 9
in this paper has size above 2
structures can be broken much more quickly by non-generic algorithms, but
E(Fp2) does not have those structures. See Section 3 of this paper for more
detailed comments on the security of the Curve25519 function.
. Elliptic curves with certain special algebraic
The time for key validation is quite noticeable and usually not reported. In
contrast, every 32-byte string is accepted as a Curve25519 public key.
“
In curve25519 all 32-byte strings are valid secret keys (scalars) and all
32-byte strings are valid public keys. That being said, if you want you can
verify that the scalar isn’t zero, since a zero scalar will lead to a zero
public key.
On Tue, 25 Feb 2020 at 07:22, Seonpyo Kim<EMAIL_ADDRESS>wrote:

Sodiumoxide supports from_slice, deserialize for SecretKey type and
PublicKey type. I utilized it to reconstruct keys from data read from
secure Keystore or decoded from messages.
However, I'm worrying about breaking the invariant of the key type because
keys are not just arbitrary byte arrays. I want to check the validity of
the byte representations before invoking the method like sign and verify,
how can I reach this goal?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sodiumoxide/sodiumoxide/issues/414?email_source=notifications&email_token=AAJ5KBIKKR3LED2T7E7CQC3RES2KLA5CNFSM4K26J6IKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IP6WSHA,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJ5KBNCLDYWAQQRRW6GZILRES2KLANCNFSM4K26J6IA
.

Ok, I understood. I should have specified I'm working on the signature scheme. I read the code and the Ed25519 paper. I misunderstood the secret key information possess the multiplier applied to the generator so I was worrying the case where a secret key is 256-bit but not a field element.
However, the secret key derives the multiplier in itself so I don't have to validate it; I understood all 32-bytes strings are valid. Thank you for the help!


Slow Inference on arm64 machines

Describe the bug: A clear and concise description of what the bug is.
marqo is taking a lot of time to index and search
To Reproduce: Steps to reproduce the behavior:
On an arm64 machine, use docker to run marqo, and then try to index and search
Expected behavior: A clear and concise description of what you expected to happen.
Operations should be fast
Desktop (please complete the following information):
OS: macOS Monterey v12.5
Machine: M1 MacBookPro, 2020

This can be fixed by following these steps to run marqo locally:

Run marqo-os

 docker run --name marqo-os --platform linux/amd64 -id -p 9200:9200 -p 9600:9600 -e "discovery.type=single-node" marqoai/marqo-os:0.0.2

Clone the marqo repo and cd into the directory
Run the following commands

brew install cmake;
brew install protobuf;
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs/ | sh;
pip install -e .

cd into src/marqo/tensor_search and run:

export OPENSEARCH_URL="https://localhost:9200" &&
    export PYTHONPATH="${PYTHONPATH}:<your path here>/marqo/src" &&
    uvicorn api:app --host <IP_ADDRESS> --port 8882 --reload

Note: Insert the absolute path to the marqo repo

The latest marqo docker image supports arm64. Follow these instructions in the README.


implement fl_executor.c "transient" mode

Runs an execution in memory, nothing going to or coming from disk.
Will probably be used by the task[mast]er when deciding on task allocation...
Useful fro spec'ing too... Maybe should have been the way to test the instructions right from the beginning.

Mostly done.


Updating date and removing old IPs

We have decommissioned a lot of older agents. Removing old IPs from the list and updating date stamp

@vkonev,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@vkonev : Thanks for your contribution to the Azure documentation! The author, @CFreemanwa, has been notified to review your proposed change.

#sign-off

Charles has left Microsoft, and I'm covering for App Insights for the moment.


Add bfloat8_b support for creation ops and use ttnn.fill for supported dtypes

a. currently, creation ops rely on tt::numpy and host operation and it doesn't support bfloat8_b, but supports ROW_MAJOR and int dtypes
b. due to this, any other eltwise composite ops/backward ops using creation ops are not supporting bf8_b
c. so we'll re-implement full_like creation ops so that it uses device op ttnn.fill for supported criteria ( i.e. TILE layout and bf16/bf8_b/fp32 dtypes) and rely on current implementation for other cases

merged https://github.com/tenstorrent/tt-metal/pull/14346


DOC: tweaked docstring for take_codon_positions

[CHANGED] gc type bhint should be Optional[int, str]
[CHANGED] remove type info from docstring since app_help()
shows the signature which includes that info.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 91.627%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
29645

Relevant Lines:
32354

💛  - Coveralls


We can add the link to the website in readme.md This will be easy for new comers to get interacted with project

Describe the bug
Not a Bug  but an update
We can add the link of website ( github page ) in the read me file
To Reproduce
Steps to reproduce the behavior:

Add the link in readme file

Expected behavior
A clear and concise description of what you expected to happen.
This will help new comers to get interacted with the website in a better way
I will like to work on this issue as a part of gssoc please let me know we can do this update or not !

@rohank2502 How will you add the link? Like in the form of badge or what? Can you show me the preview?

@rohank2502 How will you add the link? Like in the form of badge or what? Can you show me the preview?

We can do both !! Which will look nice ? What you think ?

What to do please take a look here

Hi @rohank2502 you can add whichever suits the site just make sure it should attractive and eye caching.

hichever suits the site just make sure it should attractive and eye caching.
i will suggest you to do it as soon as possible because it would be good for the project.

For Sure WIll get back to you with a PR today


Unavailable on NPM

Hi,
It would be great if this was available on NPM.
Thanks

It's now available on npm and yarn.
https://www.npmjs.com/package/jquery-validation-unobtrusive-bootstrap


Selective Escaping in HTML mode

In order to limit the performance penalty, one pays in html mode, it is possible to have finer control over that is escaped. Certain parameters can be specified as safe or raw which will bypass escaping.

Hey @sirinath.
You can use $unsafe{} instead of ${} to do this. However, I'd advice against it, since it shouldn't make a huge difference in performance (as long as those texts are not huge, see below), and there's always the chance to shoot yourself in the foot with it :-)
In case you have large text parts you want to render, you could consider wrapping them in gg.jte.Content and render them normally with ${}. We use this quite a bit for localization keys, which might include HTML attributes that shouldn't be escaped but parameters should be.

@sirinath did this answer your question? Can we close this?

Thanks!


Need the ability to pull private images

The API requires private=true to pull only a user's images without all the digital ocean images.  Can you add a method or ability to limit the image list?

@pkimbrel - Fixed with 4d8d78f (v0.2.1)


Optimize imports

@votemike removing that import will completely break doctrine, it's needed for the annotations. If you clear your symfony cache and test this you'll see everything's borked.

Another reason that comments shouldn't be used as code.
I will fix.


move_base_flex: 0.2.0-0 in 'lunar/distribution.yaml' [bloom]

Increasing version of package(s) in repository move_base_flex to 0.2.0-0:

upstream repository: https://github.com/magazino/move_base_flex.git
release repository: https://github.com/uos-gbp/move_base_flex-release.git
distro file: lunar/distribution.yaml
bloom version: 0.6.6
previous version for package: 0.1.0-0

mbf_abstract_core
* Update copyright and 3-clause-BSD license

mbf_abstract_nav
* Update copyright and 3-clause-BSD license
* Concurrency for planners, controllers and recovery behaviors
* New class structure, allowing multiple executoin instances
* Fixes minor bugs

mbf_costmap_core
* Concurrency for planners, controllers and recovery behaviors

mbf_costmap_nav
* Update copyright and 3-clause-BSD license
* Concurrency for planners, controllers and recovery behaviors

mbf_msgs
* Concurrency for planners, controllers and recovery behaviors
* Adds concurrency slots to actions

mbf_simple_nav
* Update copyright and 3-clause-BSD license
* Concurrency for planners, controllers and recovery behaviors

mbf_utility
* Update copyright and 3-clause-BSD license

move_base_flex
* Update copyright and 3-clause-BSD license of the Move Base Flex stack
* Concurrency for planners, controllers and recovery behaviors
* New class structure, allowing multiple executoin instances
* Fixes minor bugs

Holding for Lunar sync

@spuetz FYI: this fails to build on Debian Stretch: http://build.ros.org/job/Lbin_ds_dS64__mbf_abstract_nav__debian_stretch_amd64__binary/10/


Switch off DirectWrite and subpixel font scaling

Trying the atom-shell branch I have investigated that it is quite usable except font rendering. I have solved my problem (Linux box, no retina) by switching off subpixel scaling. So I propose to switch to Atom defaults but unsure if it's acceptable for core team MacOS users.
By the way, could we provide a config behavior to tune font rendering? Seems that behavior files are read on early stage of bootstrap process.

What was unusable about the font rendering? On ubuntu I didn't notice anything unusual. @joshuafcole What's been your experience?

I could certainly put a screenshot here. Fonts look, well, weired in comparison with other applications..
I belive it is not the only my issue. This is because Atom guys switched off subpixel scaling in 0.126. You could follow the git blame link above to dig into font-setting history

Atom has enabled DirectWrite option for now as it is based on Chromium 40. Should I update the PR together with atom-shell? LT seems to work nice on the lastest.

@kolya-ay Is this still necessary for you now on the latest version of master? atom-shell has been merged and I'd like to delete that branch if possible.

@kolya-ay Comment if you're still interested in making these changes (but on the latest version of master instead).

@kenny-evitt The problem has disappeared after my workstation upgrade. I suspect the culprit was my old videocard. Anyway Atom has enabled subpixel font scaling in recent commits so LT could safely do it too

@kolya-ay Thanks for following-up.


Adding Hue support?

Has anyone asked you about adding support for Phillips Hue system?  I've been looking for an app that does this that works with the Hue lights.

I would welcome that since I have Hue at home as well. But I don't have time for the app in the near future, I would welcome a pull request.

Any chance that you have time for it now? The one app to do something similar on Android doesn't work anymore. I've even tried contacting him. But no luck. It would be genius for all the smart tv's and media boxes that come with android now. A lot of people around the web really want something like it.

No time, I would welcome a pull request.


Use node to 18 + other package updates

Closes plumage
Summary of changes included in this PR
Updating packages and node version
(Sorry James, Steff here. Updating the PR description in case we need to look back at it, so it more accurately depicts what happened here)

Use node18
Major version bumps:

typescript
react, react-dom
vite
@ducky/eslint-config-base
@typescript-eslint/parser
@typescript-eslint/eslint-plugin
eslint
eslint-plugin-no-only-tests
eslint-plugin-prettier
firebase
fs-extra
prettier
rimraf
svgo

Reviewer checklist:

Tests for

accessibility
rendered HTML (spec)

Storybook stories for all variants
JSDoc documentation for component
Update Example app (React, ...)

Preliminary review (still have to do a functional test, have only checked the code so far and installed packages)

I'm seeing critical vulnerabilities in /packages/component-library as well as major versions that can still be updated. Do you know why this directory has a lock file and the others don't?
When I run rush purge and then rush install, it says

<EMAIL_ADDRESS>is deprecated
<EMAIL_ADDRESS>is deprecated
@rush-temp/plumage<EMAIL_ADDRESS>requires a peer of @typescript-eslint/eslint-plugin@<5 && ^4.0.0 but version 6.10.0 was<EMAIL_ADDRESS>8.9 MB/18.2 MB
Are these the packages you were referring to in standup that still need to be updated? Could you add them to this follow-up task so we know what work needs doing and can better estimate: https://app.asana.com/0/0/1206111363807676/f

Thanks v. much. Helpful review!

Yes. Puppeteer and stencil both need updating in the follow up.
I've downgraded @typescript-eslint/eslint-plugin to ^4.0.0
All other comments addressed with changes.

Preliminary review (still have to do a functional test, have only checked the code so far and installed packages)

I'm seeing critical vulnerabilities in /packages/component-library as well as major versions that can still be updated. Do you know why this directory has a lock file and the others don't?
When I run rush purge and then rush install, it says

<EMAIL_ADDRESS>is deprecated
<EMAIL_ADDRESS>is deprecated
@rush-temp/plumage<EMAIL_ADDRESS>requires a peer of @typescript-eslint/eslint-plugin@<5 && ^4.0.0 but version 6.10.0 was<EMAIL_ADDRESS>8.9 MB/18.2 MB
Are these the packages you were referring to in standup that still need to be updated? Could you add them to this follow-up task so we know what work needs doing and can better estimate: https://app.asana.com/0/0/1206111363807676/f

Thanks v. much. Helpful review!

Yes. Puppeteer and stencil both need updating in the follow up.
I've downgraded @typescript-eslint/eslint-plugin to ^4.0.0
All other comments addressed with changes.

I'm seeing critical vulnerabilities in /packages/component-library as well as major versions that can still be updated. Do you know why this directory has a lock file and the others don't?

Oh. Right. committed by mistake. It shouldn't be there. Should be generated in the build process.


error in train.py - bool object is not subscriptable

I came across this bug from gym: https://github.com/openai/gym/pull/2752
When time limit is triggered, the output is a bool instead of a dict like {'player_0': False, 'player_1': False}
This produces the following error randomly. It appears sooner or later during the training.
~/.conda/envs/lux_ai_s2/lib/python3.7/site-packages/gym/wrappers/time_limit.py in step(self, action)
     16             self._elapsed_steps is not None
     17         ), "Cannot call env.step() before calling reset()"
---> 18         observation, reward, done, info = self.env.step(action)
     19         self._elapsed_steps += 1
     20         if self._elapsed_steps >= self._max_episode_steps:

/tmp/ipykernel_13436/3060603165.py in step(self, action)
     57         obs, _, done, info = self.env.step(action)
     58         obs = obs[agent]
---> 59         done = done[agent]
     60 #         if type(done) == type({}): done = done[agent]
     61 #         elif type(done) == type(True): done = {agent: done, opp_agent: False}

TypeError: 'bool' object is not subscriptable

I sugest this patch to avoid that:
if type(done) == type({}): done = done[agent]
elif type(done) == type(True): done = {agent: done, opp_agent: False}

most likely due to being on a old version. Update to v2.1.9 and it should be fixed


Unable to use getClasses on sourceFile

Describe the bug
Unable to use getClasses on sourceFile
Version: 18.0.0

Unable to use getClasses on sourceFile
To Reproduce

codeTSObject._astModel.getClasses()
Node.js:1429 Uncaught Error: Debug Failure. False expression.
    at Object.setTextPos (typescript.js:7930)
    at addSyntheticNodes (typescript.js:114093)
    at createSyntaxList (typescript.js:114115)
    at processNodes (typescript.js:114078)
    at visitNodes (typescript.js:15784)
    at Object.forEachChild (typescript.js:16016)
    at SourceFileObject.NodeObject.forEachChild (typescript.js:114055)
    at createChildren (typescript.js:114087)
    at SourceFileObject.NodeObject.getChildren (typescript.js:114032)
    at SourceFile.Node.getCompilerChildren (Node.js:1364)

// reproduce the problem here

Expected behavior

@kyyash I can't reproduce this. You'll need to provide some code that reproduces the problem.

Please reopen when posting reproduction steps.


Clearing Editor content with cursor in editor causes weird selection behavior when typing

I saved the DraftJS demo page and made this modification to RichEditorExample:
  handleBeforeInput(chars) {
    if (chars === 'z') {
      const editorState = EditorState.createEmpty();
      this.onChange(editorState);
      return true;
    }
    return false;
  }

  render() {
    // ...
    return (
        <Editor
            handleBeforeInput={this.handleBeforeInput}
        />
    );
  }

The idea is that when I press z, the editor content should be completely cleared and I should be able to keep typing normally. Here's what happens instead in Chrome:

What I did here was type abc, then I hit z to clear the editor. Notice that something weird is happening already - the cursor flies off to the right. Then I typed abc again, selected all the text, deleted it, then typed abc again. In this last instance, after the a was typed, the cursor flipped back to being at position 0. If I log the onChange function, it gets correctly set to 1 with text a, but then an editOnSelect is fired afterwards, inside which getDraftEditorSelection() is different from editorState.
Safari has problems as well, but they manifest differently.
My workaround is to explicitly forceSelection to 0 after creating a new editor state.

Have you tried doing return false instead of true in there ?

That won't serve the example because then the default behavior will take over. This is a simpler / contrived demonstration of the problem I'm actually having.

@gdehmlow you neeed to create a new empty state with an empty selction modifier applied to it

What is the "empty selection modifier"?

You don't want to make a new EditorState using createEmpty(). I've looking at some issues that talk about this. If you ever have any other metadata attached that references plugins or anything, you'll lose all of that. You should push an empty ContentState like the following.

Also, that weight behavior will still happen, even if you do it that way. I had opened #410 which addressed this. Also made a 39 second video showing the exact behavior and describing it.
The video:
https://youtu.be/f9BeAssCLR0

I don't think the editor should behave this way, but I figure out a way for it to work, you want to import Modifier, also SelectionState, and ContentState on top of the standard stuff. Refer to the snippet below.

Then, you'll need to set up a selectionState that spans from the beginning of the first block in the editor to the end of the last block; as well as setting hasFocus to true as we are using merge and it will screw up the focus otherwise. I included a console.log that turns the object into JSON for debugging.  You want to use Modifier.removeRange() which will return a new ContentState with the removed text (empty). Then do an EditorState.push() and update the state. Here is a snippet below. If you do this, the caret won't go to the right, and the typing behavior will be consistent.

That was long winded as hell, and totally unintuitive. Hacking around in this stuff to figure that out is annoying. pushing a ContentState created from ContentState.createFromText('') like another issue resolution said would be a lot more succinct, but that isn't working.

Oops, meant to post that in my issue. Oh well, it's relevant and will fix your issue. Or should.

What about doing…
const editorState = EditorState.push(
  this.state.editorState,
  EditorState.moveFocusToEnd(ContentState.createFromText(''))
);

Does that work? I haven't tried it but I believe it should. Related to #73.

Yeah that pretty much fixes my issue. Definitely a dupe of #73 so I'll close this.

I posted a response to this on #410.


CesiumRasterOverlay material has error, undefined preview connection

The CesiumRasterOverlay material has a node for an Input Texture that has its input type set to Function Input Texture 2D. Without a valid preview texture wired to this node, it will complain and fail to compile with the error [SM5] Missing Preview connection for function input 'Texture'.
I was able to get rid of this error by wiring in a Texture Object set to the transparent1x1 texture, but I'm not sure if it's the correct input there. Wanted to bring up the error in case you know of the best texture to place there for preview.

I'm not entirely clear why this hasn't been an issue until now, but transparent1x1 is a good default texture to use.

By the way, CesiumRasterOverlay is only used by deprecated materials at this point. The new Material Layers system doesn't use it.


Add option to skip output log in junit and polarion reports

We need the option to lower the amount of lines in xml files, so this patch adds the ability to skip the standard output and just keep failures if they appear.
The default is kept on showing the standard output.
Pull Request Checklist

[x] implement the feature
[x] modify the json schema

Test failures irrelevant --> merging.

Seems we haven't mentioned the newly added option in the release notes: Proposing in #3093.


TypeError: setCurrentIndex(self, index: int): argument 1 has unexpected type 'float'

Tree view mode crashes on connect with the following stack trace:
Traceback (most recent call last):   File "/<...>/SimpleFOCStudio/src/gui/configtool/deviceTreeview.py", line 395, in commandResponseReceived     self.setModCenter(self.device.modulationCentered)   File "/<...>/SimpleFOCStudio/src/gui/configtool/deviceTreeview.py", line 470, in setModCenter     self.selectModCenter.setCurrentIndex(value) TypeError: setCurrentIndex(self, index: int): argument 1 has unexpected type 'float' Traceback (most recent call last):   File "/<...>/SimpleFOCStudio/src/gui/configtool/deviceTreeview.py", line 395, in commandResponseReceived     self.setModCenter(self.device.modulationCentered)   File "/<...>/SimpleFOCStudio/src/gui/configtool/deviceTreeview.py", line 470, in setModCenter     self.selectModCenter.setCurrentIndex(value) TypeError: setCurrentIndex(self, index: int): argument 1 has unexpected type 'float'
SimpleFOCStudio: commit 0e4306ff056c73ff683de766502d56f3ee200bc5
PyQt5                         5.15.9
pyqtgraph                     0.13.1
pyserial                      3.5
numpy                         1.22.0
Form View works without crashes
Upgrading pyqtgraph to 0.13.2 doesn't fix the crash

Hi @piranha32
I am not able to reproduce the bug that you reported but since seems to be related unexpected type 'float' i added a conversion to force value  to be an integer. Could you verify that this solution solves your issue?
deviceTreeview.py", line 470 from  --->  self.selectModCenter.setCurrentIndex(value)
deviceTreeview.py", line 470 to     --->  self.selectModCenter.setCurrentIndex(int(value))
Hope it solves your issue.

Conversion fixed the crash


Target class should be able to query for historial properties

What is the expected enhancement?
In BackendV1 one is able to query for historical properties by passing a date time object into backend.properties(datetime=...).  This is very useful.  Now that we are moving to the Target class, it is necessary to have this class be able to do something similar.

I believe @nonhermitian is referring to the target property which does not currently have a datetime parameter
When a datetime is passed in, the returned properties are not cached (here)- so even though target depends on the backend properties, the following would not work
backend.properties(datetime = ...)
print(backend.target)

But implementing this enhancement would be pretty straightforward

In the meantime you probably can do this out of band with something like:
import datetime
from qiskit.transpiler.target import Target
from qiskit_ibm_provider import IBMProvider
from qiskit_ibm_provider.utils.backend_converter import  convert_to_target
provider = IBMProvider()

backend = provider.get_backend("ibm_washington")
old_properties = backend.properties(datetime=datetime.datetime(2022, 12, 31))
old_target = convert_to_target(backend.configuration(), old_properties, backend.defaults())

@kt474 - I have 2 questions:

Should I do this both for backend.target and for backend.defaults() as in #77?
I am not sure how to test the results to make sure we are indeed retrieving historical data?


Coregistration error

Dear @sevimcengiz
I'm working on metabolite maps of brain tumors. I have ensured that all prerequisites and dependencies are met, including MacOS Big Sur 11.7.6, FSL version 6.0, MATLAB R2020b, and successful execution of check_fsl_usage_from_matlab.m. Furthermore, I've followed the guidelines provided in your tutorial and used the example dataset.
However, I encountered an error following the coregistration step, which has halted our progress.

Oryx
Not enough input arguments.

Error in Mask_FOV_run_Pinfo (line 43)
switch RFOV_dir
Error in Oryx/CoregistrationButtonPushed (line 975)
[app.Pinfo] =
Mask_FOV_run_Pinfo(app.Pinfo,MRIFOVMask_file,app.RFOV_dir);
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 386)
Error while evaluating Button PrivateButtonPushedFcn.
Any help will be appreciated,
Santiago

Hi Santiago,Thanks for reaching out.I have faced this issue and working on it. I’ll update the github code in a few days. Pls, open the notification so you can easily see the update.I can also inform you via e-mail.Thanks again. Sevim CengizOn Jan 11, 2024, at 5:34 PM, Santiago Cepeda @.***> wrote:
Dear @sevimcengiz
I'm working on metabolite maps of brain tumors. I have ensured that all prerequisites and dependencies are met, including MacOS Big Sur 11.7.6, FSL version 6.0, MATLAB R2020b, and successful execution of check_fsl_usage_from_matlab.m. Furthermore, I've followed the guidelines provided in your tutorial and used the example dataset.
However, I encountered an error following the coregistration step, which has halted our progress.
Oryx
Not enough input arguments.
Error in Mask_FOV_run_Pinfo (line 43)
switch RFOV_dir
Error in Oryx/CoregistrationButtonPushed (line 975)
[app.Pinfo] =
Mask_FOV_run_Pinfo(app.Pinfo,MRIFOVMask_file,app.RFOV_dir);
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 386)
Error while evaluating Button PrivateButtonPushedFcn.
Any help will be appreciated,
Santiago
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

Thanks @sevimcengiz  for your reply, I tried to contact you via your @icloud mail account earlier, so I thought you had not received my emails.
Regards,
Santiago


first stab at statementRemoverMutator #3913

This is a preview. Works for me because the code I am using it with is really small and primitive.
I would like to get some feedback on which statements to remove, and which ones not to remove.
And ofc on the general direction.
I intend to work on the project with which I use stryker, and update the mutator in an as-needed basis, and also incorporate feedback here.

I would love this mutator. Stryker.NET also has it, but they call it the block statement mutator if I'm not mistaken.
It has an additional feature, which I would love. Statements are not removed when there are other mutants generated anywhere in the statement. I view that as a requirement for this mutator because it would otherwise generate many mutants of low quality.
@richardwerkman @rouke-broersma could

No we have both. We call them removal mutators. Statement and block: https://stryker-mutator.io/docs/stryker-net/mutations/#removal-mutators-statement-block

It has an additional feature, which I would love. Statements are not removed when there are other mutants generated anywhere in the statement. I view that as a requirement for this mutator because it would otherwise generate many mutants of low quality.

As I understand there is no info in the mutator itself to decide on it. Ofc. it is an option to modify the calling code.
I consider that feature as an optimization. First I concentrate to get the functionality together.

No we have both. We call them removal mutators. Statement and block

@rouke-broersma do you have a way to make sure these mutants are generated when there are no other mutants generated in the (block)statement?

Not sure on the specifics of the implementation, @richardwerkman ?

The specifics of the implementation are: we don't have an implementation... I wanted to add that but so far without success. For now, we place these mutations all the time. Despite it generating some unwanted mutants.
I had some ideas like filtering the mutants after generating them. Or keeping track of context and passing a value to mutators that helps identify if a mutant has been placed in this scope already.

I've created an issue at stryker-net for this: https://github.com/stryker-mutator/stryker-net/issues/2367

I added my experiment for functioncall remover mutator here as well #3920

I have updated the snapshots, fixed eslint problems (not mine), and a couple of tests (one was not mine). Now npm run all runs okay.
There are some errors in npm run e2e. I have no idea what causes them or how to fix them.
This is the point when I consider this pull request ready.
If anything else is needed for acceptance, I need guidance.

Any news with this PR?
If anything should be fixed to make it acceptable, please let me know.

Anything I can do to get this pull request accepted?

Anything I can do to get this pull request accepted?

I've opened issue #4463. We should tackle it during hacktober. I think that should be implemented before we can merge this PR.


Generate HTML documentation from docstring comments #8

Added Documentation with Sphinx

Hi @gdevakumar, thanks for creating the html docs. I've cherry picked your commit to the main branch.


Timesheet - 1/5/2021 - Jesus Avina

Task 1
Audit Team Meeting 3
Proof of Work

Google Meeting

Time Spent
1 hour

Task 2
Timesheets
Proof of Work

Check issues

Time Spent
.5 hours

Total Time Spent
1.5 hours
Account Number
f37aaaa15fe0cec8e7cf1809cc884610122c5d8886486b6c2492555229442a46

Approved

Approved


"workers" not found

https://github.com/trixoniisama/auto-boost-algorithm/blob/9b4ffc977312726aeeaedb68dc2f378964897ee2/auto-boost_2.0.py#L48
Isn't it better to change this to 0 instead of {WORKERS}?

Fixed with auto-boost algorithm 2.5. The change could be backported to 2.0 though.


Custom RNN code (of BasicLSTM) doesn't run

The code (https://github.com/titu1994/tf-eager-examples/blob/master/notebooks/06_02_custom_rnn.ipynb) throws an error at line 12
11     dummy_x = tf.zeros((1, 28, 28))
12     model._set_inputs(dummy_x)
With
"TypeError: in converted code:"
<ipython-input-56-ba0b7a127e85>:9 call  *
    h = self.lstm(inputs)
/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/engine/base_layer.py:849 __call__
    outputs = call_fn(cast_inputs, *args, **kwargs)
<ipython-input-11-33a9ad1ef197>:24 call  *
    h_state = tf.zeros((inputs.shape[0], self.units))
/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/ops/array_ops.py:2347 zeros
    shape = ops.convert_to_tensor(shape, dtype=dtypes.int32)
/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/framework/ops.py:1184 convert_to_tensor
    return convert_to_tensor_v2(value, dtype, preferred_dtype, name)
/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/framework/ops.py:1242 convert_to_tensor_v2
    as_ref=False)
/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/framework/ops.py:1297 internal_convert_to_tensor
    ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/framework/constant_op.py:286 _constant_tensor_conversion_function
    return constant(v, dtype=dtype, name=name)
/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/framework/constant_op.py:227 constant
    allow_broadcast=True)
/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/framework/constant_op.py:265 _constant_impl
    allow_broadcast=allow_broadcast))
/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/framework/tensor_util.py:450 make_tensor_proto
    nparray = np.array(values, dtype=np_dt)

**TypeError: __int__ returned non-int (type NoneType)**

FWIW, I'm using TensorFlow 1.15.0 with eager execution enabled
Could someone help what's the issue?

The _set_inputs workaround is no longer needed in TF 1.15 and 2.x. You can remove that line safely, I think.


More diagnostic information needed when recording syncing fails

Related to #6562, it would be great if the test proxy could output more diagnostic information - at least for CIs, if not local dev loops - about what is being sync and any failures that occur. Looking at the failed run, I was not able to tell what had happened. Someone more familiar with the implementation was able to help, but to scale we need more self-diagnosable information available in the CI.

Related to #6562, it would be great if the test proxy could output more diagnostic information - at least for CIs, if not local dev loops - about what is being sync and any failures that occur. Looking at the failed run, I was not able to tell what had happened. Someone more familiar with the implementation was able to help, but to scale we need more self-diagnosable information available in the CI.

It definitely outputs it. I'm betting that my ordering of exceptions is off, and that's why you're not getting the initial GitProcessException that shows the actual error that you're expecting.
One recommendation for the .NET CI is that it should upload the output of the proxy that we kick as part of the framework. Given the lack of proxy logging I don't really know where to begin to figure out what actually happened here.

Should it just write to stdout or even stderr? I find that tends to be the easiest to diagnose. For example, I saw a couple of git --version commands and outputs. Didn't help for this, but clearly helpful for however needs to know when diagnosing issues.

Should it just write to stdout or even stderr? I find that tends to be the easiest to diagnose. For example, I saw a couple of git --version commands and outputs. Didn't help for this, but clearly helpful for however needs to know when diagnosing issues.

Yeah I think this is the problem right here We're collecting the stderr -> but we're not outputting it onto StdErr pipe -> so the .NET framework isn't seeing that output -> you aren't seeing it in CI.

Addressed on the .NET Test Framework side in https://github.com/Azure/azure-sdk-for-net/pull/37994


Clone desired capabilities before calling DesiredCapabilities#toArray()

Close #642
DesiredCapabilities#toArray() is a mutable operation which can lead to undesirable side effect. Cloning the instance before calling it will prevent this.
Exemple of side effect :
<?php

use Facebook\WebDriver\Chrome\ChromeOptions;
use Facebook\WebDriver\Remote\DesiredCapabilities;

require __DIR__.'/vendor/autoload.php';

$capabilities = new DesiredCapabilities();
$capabilities->setCapability(ChromeOptions::CAPABILITY, new ChromeOptions());
$options = $capabilities->getCapability(ChromeOptions::CAPABILITY); // Instance of Facebook\WebDriver\Chrome\ChromeOptions
$capabilities->toArray();
$options = $capabilities->getCapability(ChromeOptions::CAPABILITY); // Oh no it's an array

True, toArray() should not work this way... This is unexpected and is something which should be taken care of in next major version.
I amended some TODO notices in the code so that we don't forget on this.
Thanks, I will merge it and tag 1.7.1 after CI builds are done.

@OndraM We can already turn toArray() into an immutable operation easily :
    /**
     * @return array
     */
    public function toArray()
    {
        $capabilities = $this->capabilities;

        if (isset($capabilities[ChromeOptions::CAPABILITY]) &&
            $capabilities[ChromeOptions::CAPABILITY] instanceof ChromeOptions
        ) {
            $capabilities[ChromeOptions::CAPABILITY] =
                $capabilities[ChromeOptions::CAPABILITY]->toArray();
        }

        if (isset($capabilities[FirefoxDriver::PROFILE]) &&
            $capabilities[FirefoxDriver::PROFILE] instanceof FirefoxProfile
        ) {
            $capabilities[FirefoxDriver::PROFILE] =
                $capabilities[FirefoxDriver::PROFILE]->encode();
        }

        return $capabilities;
    }

I don't know if that can be considered as a BC.

@Lctrs Right, but I'm afraid of the BC - the library is not generally type-safe and someone could rely on this mutable behavior.
This is also reason I in the end removed the clone and just check if ChromeOptions is already an array or not, and act accordingly. This is not the best from code point of view, but it should handle both of the cases that may now occur and does not introduce any change in previous behavior.

When will this be released - it's broken for me now

@boboldehampsink Quite soon, I'm on in right now. But in the meantime you can use dev-community depencency.


open existing db

Thanks for using ReActiveAndroid but before you post an issue, please consider the following points:

[1.4.3]

I need to create a DB every day. How can I do it?
And how can I open DB created in past days?
THanks

Seems like they dont support this lib anymore...

@minhnxx Hello. It's not true. The question is not clear, so I can't understand what he wants to do.


MeshMap: Generate MeshMap for a UniformBZMesh

Generate MeshMap for a given UniformBZMesh with spglib

Implemented in #30


[FEATURE] Support additional request parameters for OpenID Connect

Is your feature request related to a problem?
OpenSearch dashboard currently supports configuration parameters stated here - https://opensearch.org/docs/1.2/security-plugin/configuration/openid-connect/#configuration-parameters
We also require a new configuration parameter that supports setting additional request parameters to the OpenID request.
For example, our internal OpenID provider expects us to pass additional request parameter "acr_values" with a particular value.
Do you have any additional context?
This is currently supported in AWS ALB OpenID connect feature as shown in below screenshot

@HarshadRanganathan Thank you for filing this feature request. We would gladly accept a PR.

I will start looking into this as it is the first on the TODO list

@HarshadRanganathan  Can you please clarify if these additional parameters would be:
1 - Fixed and shared for all users, specified  and configured by the admin in the Dashboards's configuration file.
or
2-  If it is something that the each user would specify/type in the UI before logging in?
I believe it is the scenario 1, but would like to be confirm

Fixed and shared for all users, specified and configured by the admin in the Dashboards's configuration file.

Yes - it will be scenario 1 stated above

Hi @HarshadRanganathan  I'm working on these changes would like to check if my current solution does attend requirements
The opensearch_dashboards.yml config file will accept any number of parameters added under "opensearch_security.openid.additional_parameter"  for instance:
`
opensearch_security.auth.type: "openid"
opensearch_security.openid.connect_url: "http://localhost:8080/auth/realms/master/.well-known/openid-configuration"
opensearch_security.openid.client_id: "clientid"
opensearch_security.openid.client_secret: "secret"
opensearch_security.openid.additional_parameters.ping: "pong"
opensearch_security.openid.additional_parameters.fruit: "strawberry"
`
These parameters are added to the get request that is sent to the identity provider so the request would look like this
I believe  the identity provider expects the additional parameters to be sent on the get request, but was not able to confirm this (In case it expects it somewhere else like in the headers)

That looks like a solid design @samuelcostae I think the documentation should be updated so users can discovery this feature - can you create a documentation issue and PR for the documentation website?

That looks like a solid design @samuelcostae I think the documentation should be updated so users can discovery this feature - can you create a documentation issue and PR for the documentation website?

Issue for doc update https://github.com/opensearch-project/documentation-website/issues/5598 and PR pushed


Add "Let us C by Yashavant Kanetkar" in Computer Books

Let us C is one the best books for a programming beginner. A person who has zero knowledge about programming must start with this book.

@abhinav0git can you please assign it to me under hacktober-accepted label


Bytes and Bits Conversion Type

Initial Checks

[X] I have searched Google & GitHub for similar requests and couldn't find anything
[X] I have read and followed the docs and still think this feature is missing

Description
This is very similar to https://github.com/pydantic/pydantic/issues/971 except it would be a nice feature to the ByteSize class if it could also handle bits.
Conversions between bytes to bits where 1 byte is equal to 8 bits and so forth for the range of units (e.g. kb, mb, etc.)
Affected Components

[ ] Compatibility between releases
[ ] Data validation/parsing
[ ] Data serialization - .model_dump() and .model_dump_json()
[ ] JSON Schema
[ ] Dataclasses
[ ] Model Config
[X] Field Types - adding or changing a particular data type
[ ] Function validation decorator
[ ] Generic Models
[ ] Other Model behaviour - model_construct(), pickling, private attributes, ORM mode
[ ] Plugins and integration with other tools - mypy, FastAPI, python-devtools, Hypothesis, VS Code, PyCharm, etc.

@alexyao2015,
This seems like a great feature request. PRs welcome!

@sydney-runkle Hello, it's ready for review Pull Request #8507

Closed by https://github.com/pydantic/pydantic/pull/8507


[Event Request] Codeunit 99000774 - Calculate Routing Line

Please add a new Publisher in Codeunit 99000774 - Function CreateCapNeed:

Please add Paramter "NextCapNeedLineNo" as VAR

Sorry, i missed to add "Direction option "Forward,Backward" as a parameter.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

@AlexanderYakunin
Publisher is available, but Parameter "VAR NextCapNeedLineNo: Integer;" is missing. Could you please reopen this issue and fix this?

@AlexanderYakunin: Could you please reopen this issue and fix this?!
In Codeunit "Calculate Planning Route Line", 'OnAfterCreatePlanningCapNeed' the Parameter is VAR!
Thanks!

opened new issue: https://github.com/microsoft/ALAppExtensions/issues/6140


[Offline Areas] Download GeoJson sources from a Project setting

Right now, GeoJson sources need to be uploaded to a user's device directly. Instead we should store a basemaps array of objects with a single footprintsUrl field that specifies a source file to use for tilesets for a particular basemap.

Merged into #481 as part of issue consolidation and cleanup.


AssumeUTXO: Block clock changes

It's become clear that loading assumeUTXO snapshot impacts the block clock (during IBD). Thus there is need to define and describe:

how block clock is affected WHILE the snapshot is being loaded
IF block clock should reflect/describe the progress snapshot loading given it is expected to take a non-trivial amount of time and the user cannot be expected to stay on the screen that shows progress inside of the loading user flow
IF we choose to do the above, we should go through the logic and design changes first before touching code (comment)

Perhaps one solution can be to avoid tackling this altogether and show the progress in the assumeUTXO section or some other element on the landing screen.
This is an off-shoot of #79.

Just seeing this. I posted a super simple design in the other issue. But, I did not consider the technical reality of this. My design simply treats the snapshot verification as a parallel process, which may not be the case. Let's find out.

Adding an example from my recent personal experience. Loading Sjors' signet snapshot, the only UI feedback (unintentional) is that my block clock shot to 54% quite suddenly ( I do not remember if it showed progress).


matchcoin (this app would do good to have its own crypto and distribution)

Like the title says - matching should have its own currency because matching amounts has its own value.  It might also good to have a cutoff point (e.g.) this can only be matched up to a certain amount.

Need more details of how a separate coin is going to work with a charity based currency.  It needs to be somewhat centrailzed, and I'm thinking that instead of mining, it uses the web app to take note of certain matches to increase or decrease the value.

I'm having a problem understanding how the values would change over time.  e.g. Someone new matches for a radio benefit -- and then pledge $3000 then a new matchcoin should be created.  But as a currency value it might not change such as if someone decides to stop pledging a match.  It seems the value of a matchcoin would go up as new coins are created.  But in fact if someone takes a way a match it could still go up because the value of a match is a bit ghostly.

So I'm thinking that when a match is paid - you are given new matchcoins that have a base value.  But as you pay the value of your coin goes up.  But how does this coincide with the total value of everyone else's value?

maybe match coin needs a separate bank that assesses its own assets.  So for example, someone has been matching for years and has lots of coins.  As for the match they may have paid out millions of dollars, but the value of the matchcoin might still be 0.  So what inherently gives the matchcoin real value.  What actually gives the matchcoin value because it is ghostly.  The mechanism for giving coins will perhaps have to have an adjusted value as time goes on.  The value of assets change and more needs to be known about the charity based currency amount -- which this app would have to look at for what its worth where CBC is valued different based on different products.

It may go without saying that giving out a coin for instance 1 coin per 1 charity based currency coin might be standard.  But then as time goes on perhaps the value of those can multiply because the simple act of giving to charity creates more value as time goes on.

Also it seems that charity based currency, and urban development and basic necessity insurance would help provide a baseline that would also help value a match coin

I think both matches and tickets should be moderated which will help decipher a positive valuation

perhaps matchoin goes up in value for everyone with it the more matches reach the total amount matched to date.

The wallet should have a private key for initiating transfers with the rest of the system.  Optionally it can be stored on the server for ease of use or backup.
But it needs to verify with the ledger on the server that this currency is contained in that account

Right now the mint is time based "1 coin per second" which is interesting because this way "time is money."  And the wallet for the bank is encrypted and shares a secret to succed with the mint wallet.  I was thinking the ledger might be better stored in DB rather than the current print to screen.  Either way its going to at least need a file if not a DB.

So, I was thinking about how to make this distributed, and here is some of the ruby code that would be neccessary to do that.
https://reintech.io/blog/working-with-network-protocols-in-ruby

also, each coin should have a UUID, so the wallet has verification of a unique coin that has been deposited.

see https://www.rubydoc.info/gems/uuid/2.3.8/UUID
for uuid gen

added UUID, a ledger, and ledger entries.  Waiting to commit to get that new idea integrated

Okay, so the value baseline would be time, but as others contribute match through a charity based currency - that would create more value.
e..g years have gone by and there are millions of matchcoin.  But as different programs get matched that bank coin is deposited in wallets across the world.  perhaps it becomes worth more, or less charity based currency.

Right now I'm trying to work out the details of how money is "owned" and how that money that is owned is transacted.

Currently the keys are stored in mongo, but they are in cleartext.  They need to be ciphered in and out of the database, and then deciphered upon being transferred to a new owner.  Also, the wallet needs to be password encrypted, and contain the secret hash to open the wallet's coin keys.
Also, it would be good to do a time based printing.  Currently doing one coin takes longer than a second, because the keys are being created too.
As for distributing this I need to think about this.   It would be good to have some work -- right now I think it's the website that earns wallet's coin amounts.  But I think it would be better to stop using mysql and use Mongo for the whole system.

Also, all the debug printing should be moved to using a logger with level debug.

I'm thinking it might be good to have a client that is a bit like a punch card.  So the time you spent "doing something" is kept track of and you earn coins that way.  I think with match it might be good to have something where you can calculate how much something took in terms of time, and also the money that it represents.

The coin keys, and the wallet keys are now stored in the FS via mongodb.  Next we need to add passwords and hashing to wallets.  Also, indexes need to be added.

I'm thinking we could distribute this kind of coin by having someone make the key pair and send it to a tier and in return they are given a stake in the mint.  But with this wallets would be insecure

Currently there is an issue with creating change.  What can be done is if a specific is amount we make sure there is enough in the wallet, and then break up the 1 matchcoin amount into seperate serial numbers, with seperate keys.
What does it do to take a private / public key and then hash it and store it on the ledger? This proves the ownership of a coin, or digital money that can be stored privately or publicly.  Public would be necessary to be distributed.

I think its imperative that private keys of a coin could be analyzed by a server, and then after that analysis, the keys could be changed -- and the amount could be also verified with a hash on the blockchain.

this coin needs a way to make change which is simply done with the following
Ask user what amount is needed, issue the amount needed after crediting from the wallet, and return the portion needed in one set of keys.  WIth the change as another set of keys.
SO there would be two sets of keys.  One for the amount, and one for the left over.  With the left over being returned to the wallet, and the amount to be paid, transferred.
In other words we could Collect a bunch of 1 coins and create new face value coin with the bunch, and make new coins from the old keys.  Depending on the security the old keys may need to be burned e.g. the bank and the mint can re-use the old keys, but client wallets coin keys would have to be deleted.

to secure the keys with the matchcoin we could encrypt the serial number and verify it is UNIQUE to the blockchain.

So, now that we have merkle roots it would be good to keep coins based on the blockchain.  So in a transfer it would go as follows:

Sender authorizes coins to be sent to wallet address that is known on the blockchain.  This is done by using the sender wallet private key to sign a blockchain entry for a credit to send money to the receiver.
Receiver verifies that the sender sent authorized the coin with the publicly viewable sender public key.  The receiver verifies they own the wallet by signing the block chain with the wallet's private key.  The node doing the computation verifieds that the receiver has signed ownership over the new coin through the wallet's public viewable key.  This updates the balances, and now the money has been transferred.


Disable touch events in one direction

Is it possible to disable touch event when trying to slide to the right, but not to the left?

Would that comment help?

Yeah, maybe. But i cant get it to work like i want it to.
goToSlide = (index) => {         let oldTabIndex = this.props.registerTab;         if(index < oldTabIndex){             this.props.changeRegisterTab(index)         }         else {             this.props.changeRegisterTab(oldTabIndex)         }     }
changeRegisterTab updates the redux store, and the store gets the right tabIndex, but it still slides to the next and prev slide.
This is my component
<SwipeableViews                 children={ FormInputs }                 slideStyle={ slideStyle }                 containerStyle={{ height: "100%" }}                 resistance={ true }                 className="list"                 index={ this.props.registerTab }                 onChangeIndex={ this.goToSlide }

Ah, its because of the async callback from setState(). I got it to work with setTimeout
goToSlide = (index) => {
        let oldTabIndex = this.props.registerTab;
        this.props.changeRegisterTab(index)

        setTimeout(() => {
            if(index < oldTabIndex){
                this.props.changeRegisterTab(oldTabIndex)
            }
        }, 1)
    }
`

@jarandmi Right, that point is quite tricky. The component isn't fully controllable.
It keeps an internal state for performances concern.
So you gonna need to render it twice in order to get a proper rejection of the navigation.
As far as I know, the dispatch action of redux is synchronously calling the render method.
So you shouldn't have any race condition here.
I'm closing the issue. Hopefully, that's gonna help others.


(WIP) Add Sampler V2

Summary
This is a follow-up of #11227 and it will rebase onto main once #11227 is merged.
This PR introduces BaseSamplerV2 and a reference implementation StatevectorSampler (tentative name) to realize the following RFCS

https://github.com/Qiskit/RFCs/pull/58
https://github.com/Qiskit/RFCs/pull/59
https://github.com/Qiskit/RFCs/pull/60

TODOs

[ ] wait for #11227 to be merged
[ ] update BackendSampler?
[ ] unit tests
[ ] documentation

Note: I might do a force push for the time being.
Details and comments

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

575 of 896 (64.17%)  changed or added relevant lines in 21 files are covered.
30 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.3%) to 85.596%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

qiskit/primitives/containers/base_task.py
10
11
90.91%

qiskit/primitives/containers/data_bin.py
31
32
96.88%

qiskit/primitives/statevector_estimator.py
75
76
98.68%

qiskit/primitives/containers/estimator_task.py
41
43
95.35%

qiskit/primitives/containers/object_array.py
29
31
93.55%

qiskit/primitives/containers/options.py
10
12
83.33%

qiskit/primitives/base/base_estimator.py
24
27
88.89%

qiskit/primitives/containers/primitive_result.py
17
20
85.0%

qiskit/primitives/base/base_primitive.py
21
25
84.0%

qiskit/primitives/containers/shape.py
44
49
89.8%

Files with Coverage Reduction
New Missed Lines
%

crates/qasm2/src/lex.rs
6
91.41%

crates/qasm2/src/parse.rs
24
96.2%

Totals

Change from base Build<PHONE_NUMBER>:
-0.3%

Covered Lines:
66379

Relevant Lines:
77549

💛  - Coveralls

This PR will be updated or a new PR will be made based on #11524 and #11529

#11566 supersedes


Fixes to PUT table configuration API

Handle table not found gracefully and correctly return in case of bad input.
Testing: UT

Codecov Report

Merging #1215 into master will increase coverage by 0.02%.
The diff coverage is 30.76%.

@@            Coverage Diff             @@
##           master    #1215      +/-   ##
==========================================
+ Coverage      67%   67.03%   +0.02%
==========================================
  Files         768      768
  Lines       36843    36849       +6
  Branches     4734     4737       +3
==========================================
+ Hits        24688    24700      +12
+ Misses      10515    10510       -5
+ Partials     1640     1639       -1

Impacted Files
Coverage Δ

...ntroller/helix/core/PinotHelixResourceManager.java
55.02% <0%> (-0.07%)
:arrow_down:

...i/restlet/resources/PinotTableRestletResource.java
49.06% <44.44%> (-0.3%)
:arrow_down:

...not/common/segment/fetcher/HttpSegmentFetcher.java
28.57% <0%> (-19.05%)
:arrow_down:

...m/linkedin/pinot/common/utils/FileUploadUtils.java
45.58% <0%> (-7.36%)
:arrow_down:

...rEqualitiesToInClauseFilterQueryTreeOptimizer.java
90.9% <0%> (-1.3%)
:arrow_down:

...ot/core/query/pruner/ColumnValueSegmentPruner.java
84.48% <0%> (ø)
:arrow_up:

...inot/transport/netty/NettyTCPClientConnection.java
86.02% <0%> (ø)
:arrow_up:

...filter/SortedInvertedIndexBasedFilterOperator.java
79.72% <0%> (+1.35%)
:arrow_up:

...linkedin/pinot/common/metrics/AbstractMetrics.java
77.06% <0%> (+1.83%)
:arrow_up:

...regation/function/customobject/QuantileDigest.java
55.79% <0%> (+2.57%)
:arrow_up:

... and 2 more

Continue to review full report at Codecov.

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


draw_nodes() overlaps samples if at different times

E.g.
ts = msprime.sim_ancestry([msprime.SampleSet(1, time=0, ploidy=1), msprime.SampleSet(1, time=1, ploidy=1)])
d3arg = tskit_arg_visualizer.D3ARG.from_ts(ts=ts)
d3arg.draw_node(node=2)

Which produces an ARG with nodes 0 and 1 overlapping:

This doesn't happen with the simple .draw(), so I reckon the fix should be simple:
d3arg = tskit_arg_visualizer.D3ARG.from_ts(ts=ts)
d3arg.draw()

draw() and draw_node() have different rules for which node(s) get fixed positions. draw() fixes the the sample locations to separate them, whereas draw_node() fixes the focal node in the center (in this case node 2). The rest of the nodes slide freely, even if they are samples, which allows for this overlapping. First pass idea would fixing the positions of any tips - above and below the focal node - to separate things rather than fixing the focal node itself. This will require calculating a somewhat optimal tip ordering based on node distances on the Python side of things (the crux). Shouldn't need to modify any JavaScript code.

To clarify, the reason why the tips don't overlap when they are at the same time is because the force simulations repels them away from each other. This force is two weak to push them apart when there is a separation in timing of the tips.


Fixed a bug in normalformgenerator

The failures in the Jenkins are not due to the issue in the generator. But the fix should resolve the failures in some cases.

I got the following bug in smallgeometrytests if there is no kernel_cache (i.e., removing all cache*.cachetxt in init_kernel_cache).
test 1/32
  tC0_tA0_tB0_colMaj0_m81_n71_k58_lda67_ldb81_ldc83_ws1000000_f32
Found device gfx900 @{[64 CUs]  [1600 MHz]}.  Use/modify a CLHint to change.
Entering new descent.
{0.05 <<< @t=2.723e-05[s] <<< 0.1}   {0 <<< @i=0 <<< 100000}
geometry : tC0_tA0_tB0_colMaj0_m81_n71_k58_lda67_ldb81_ldc83_ws1000000_f32
allotted time : 0.1
Warmstart requested [@ rank 0]  #trials to find viable hp in graph : 7 (0.362938 [ms])
No kernel cache match found, returning random valid.
Time in get_default : 0.00107182 [s]
[1, 0.00s]      "MIC8_PAD2_PLU0_LIW1_MIW0_WOS0_VEW1", "MIC6_PAD2_PLU1_LIW0_MIW0_WOS2_VEW1", "UNR32_GAL2_PUN1_ICE1_IWI1_SZT0_MAD0_NAW16_UFO0_MAC32_SKW11_AFI1_MIA1"
compiling WSB. /tmp/AMD_1115_19/t_1115_21.cl:51:21: error: use of undeclared identifier 'TINT'
TINTB micro_id = (TINT)(get_local_id(0));
^
1 error generated.
Failed in 0.010 [s]
terminate called after throwing an instance of 'MIOpenGEMM::miog_error'
what():


Develop

Thanks for the pull request! Before a real human comes by, please make sure your PR has all of the below criteria checked

[ ] Give a description on what the PR is for.
[ ] Make sure your PR is based on the DEVELOP branch
[x] Don't send big changes all at once. Split up big PRs into multiple smaller PRs that are easier to manage and review

Please make sure you also read contribution guide and followed all of the steps.
Thanks!

Thanks for the pull request! Before a real human comes by, please make sure your PR has all of the below criteria checked

[ ] Give a description on what the PR is for.
[ ] Make sure your PR is based on the DEVELOP branch
[x] Don't send big changes all at once. Split up big PRs into multiple smaller PRs that are easier to manage and review

Please make sure you also read contribution guide and followed all of the steps.
Thanks!


docs: project portal and portal administration

Description
This is the fist draft of project portal documnentaion
Checklist

[ ] My code follows the style guidelines of this project
[ ] Documentation and comments is added where needed.
[ ] My code is covered by tests.
[ ] UX has reviewed relevant UI contributions.

Definition of Done

[x] PR title and description are to the point and understandable
[x] I have performed a self-review of my own code

@kjetilhau tenker du bør ta en liten titt på denne og si hva du tenker ;)


Svelte integration

Discussed in https://github.com/scalar/scalar/discussions/1569

Originally posted by baseplate-admin April 30, 2024
Hi, it seems that there's no integration for svelte. Do you guys plan on adding svelte support?

Hi, any update on this?

Not yet, but it’s great to see interest here. :)


Documenting basic config for a service to use the all-in-one template

When trying out the template with a simple example service, I needed to use the following config to get the service reporting spans to the server:

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: example-app
spec:
replicas: 3
template:
metadata:
labels:
app: example-app
spec:
containers:
- name: example-app
image: <YOUR IMAGE/VERSION>
ports:
- name: web
containerPort: 8080
env:
- name: JAEGER_SERVICE_NAME
value:
- name: JAEGER_AGENT_HOST
value: jaeger-all-in-one-agent
- name: JAEGER_SAMPLER_TYPE
value: const
- name: JAEGER_SAMPLER_PARAM
value: "1"

This example uses the Jaeger TracerResolver, but the tracer could be directly configured using the same information - the main issue was setting the UDP sender's host name to jaeger-all-in-one-agent.
Wonder where best to record this info - should we add it to the README?

+1 we could add a section in the readme how to configure HTTP/UDP senders when using this templates

I think the appropriate place for this would be the main README.md, under the Development setup  section. Before starting the next section, we could have something like:

As the Jaeger Agent is deployed with the other components, your application needs to tell the Jaeger Client where to find the agent (jaeger-all-in-one-agent). Refer to your client's documentation for the appropriate mechanism, but most clients allow this to be set via the environment variable JAEGER_AGENT_HOST.

cc @PikBot


📝 [WIP]: How to run docs

Resolves #635

Use ssh or https for cloning?

ssh

https://github.com/wenche/design-system/pull/3

I think this is sufficient for now at least for the React component part?

Yes, I think so too


Properly concatenate $path, even if it's "0"

Can be reproduced in ownCloud 8.1 / master (https://github.com/owncloud/client/issues/3351#issuecomment-112736279):

Create a folder "0"
Create a file "0/test.txt"
Do a propfind with depth1 on "0"

It will try and retrieve the properties of "0/test.txt".
But the code before this PR was discarding $path because "0" evaluates to false...
About the fix:

did not use empty($path) because it turns out that empty("0") is true...
did not use strlen($path) > 0 because isset($path[0]) is faster performance-wise

I did not find a good place to quickly add a unit test and also had trouble running them (see https://github.com/fruux/sabre-dav/issues/676)

did not use strlen($path) > 0 because isset($path[0]) is faster performance-wise

What about !=='' ?

Could work too. I'll only change it if @evert doesn't like the first approach.

Never thought of this =(
I slightly prefer @icewind1991's approach, because it makes it seem a bit less like an array, and makes it very clear it's a string.

makes it very clear it's a string.

agree. the "fastest" way should only be used when we are sure that we are on a hot path and loosing time by the comparison.

I first thought that if someone does a PROPFIND with Depth:Infinity and has 1000+ files, it might loop a lot. But the perf loss might still be negligible.
I made the change as @icewind1991 suggested.


IRGen: adjust for SVN r348827

CodeGenOptions.h was moved from Frontend to Basic.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

CC: @bob-wilson

LGTM


Flaky property: decode

[info] decode should
[error]   x be consistent with utf8Decode (540 ms)
[error]    Falsified after 67 passed tests.
[error]    > ARG_0: "\u0008"
[error]    > ARG_0_ORIGINAL: "魂Ⲷਬ纅ᗀ赕Ὴᔱ鑰跎㎯쾼ዦ㷭"
[error]    > ARG_1: 1
[error]    > ARG_1_ORIGINAL: 1
[error]    > '' != ' (DecodeSpec.scala:24)

I can't reproduce this one on master. Either with the original arg or the shrinked one.

A similar one:
https://travis-ci.org/http4s/http4s/jobs/594364117#L1592-L1600
[error]   x be consistent with utf8Decode (829 ms)
[error]    Falsified after 14 passed tests.
[error]    > ARG_0: ""
[error]    > ARG_0_ORIGINAL: "펚䁿"
[error]    > ARG_1: 1
[error]    > ARG_1_ORIGINAL: 865421835
[error]    The seed is ILn6J8gn85TLhAI6j7RT2BVwVh6HIgAGvNrkACjXSKI=
[error]
[error]    > '' != '' (DecodeSpec.scala:24)

Another one:
info] decode should
[error]   x be consistent with utf8Decode (646 ms)
[error]    Falsified after 81 passed tests.
[error]    > ARG_0: ""
[error]    > ARG_0_ORIGINAL: "䲈『⻮桊ꯆᶣ嶶卖鴙빭읂湳홌뢤낷"
[error]    > ARG_1: 1
[error]    The seed is s6KX2mZeFKDUS9bNr8pJLzffh8PYfeoCtn0xrhtVtnJ=
[error]
[error]    > '' != '' (DecodeSpec.scala:24)