trying to implement the js-sdk for nextjs

Hey, so I am trying to implement pocketbase using the javascript sdk in next.js . I setup a boilerplate next.js application with pocketbase installed like in the example provided in the README. This is what my index.js looks like:
import PocketBase, { BaseAuthStore } from "pocketbase";

class NextAuthStore extends BaseAuthStore {
  constructor(req, res) {
    super();

    this.req = req;
    this.res = res;

    this.loadFromCookie(this.req?.headers?.cookie);
  }

  save(token, model) {
    super.save(token, model);

    this.res?.setHeader("set-cookie", this.exportToCookie());
  }

  clear() {
    super.clear();

    this.res?.setHeader("set-cookie", this.exportToCookie());
  }
}

export async function getServerSideProps({ req, res }) {
  const client = new PocketBase("http://<IP_ADDRESS>:8090");
  client.authStore = new NextAuthStore(req, res);

  // fetch example records...
  const result = await client.records.getList("example", 1, 30);

  return {
    props: {
      result: result,
    },
  };
}

export default function Home({ result }) {
  console.log(result);

  return
test
;
}

This causes the following error:
error - ReferenceError: AbortController is not defined

I know that you don't officially support any SSR frameworks as the README stated:
Unfortunately, there is no "one size fits all" solution because each framework handle SSR differently (and even in a single framework there is more than one way of doing things).
However I am wondering if there is a solution for this error? I tried reading up on AbortControllers, but there are no solutions I could find which wouldn't require me to fork this repo and start making changes, which I'm not technically inclined enough do so & make a pull request. At the moment I can't use the sdk and I am just communicating with the server through the API. Any thoughts or leads to try to fix this?
Once again, thank you for your time and keep up the great work!

@z89 Could you check what version of node you are using (node -v)?
AbortController should be already supported node15+. If you are using an older node, then you would have to either upgrade your node, or load a AbortController polyfill (I haven't use any, but here is the first one that came up in my search  - https://www.npmjs.com/package/abortcontroller-polyfill).

the latest nextjs version seems to be node v14.20.0. I tried upgrading it to v15 as well as the latest version but the original error still remains. I had a look at the abortcontroller-polyfill package, however I think I need access to fetch() to include the controller.signal  to abort the controller as shown here:
const controller = new AbortController();
const signal = controller.signal;
fetch('/some/url', {signal})
  .then(res => res.json())
  .then(data => {
    // do something with "data"
  }).catch(err => {
    if (err.name == 'AbortError') {
      return;
    }
  });
// controller.abort(); // can be called at any time

I not sure which of the pocketbase functions makes the fetch request to have to include the signal:
 const client = new PocketBase("http://<IP_ADDRESS>:8090");
client.authStore = new NextAuthStore(req, res);
const result = await client.records.getList("example", 1, 30);
I tried creating a new AbortController() and aborting it at various points, but to no avail, because the fetch function doesn't include the signal. I have been playing around with it for a bit, but can't change the original error at all. Thoughts?

nextjs doesn't come with node. Nextjs is a library/framework and it doesn't come with node. It requires it so that you can work with it (the same way as you have to install a specifyc language/runtime on your computer before installing a framework/library).
Anyway, nextjs should work jist fine with node 16+. Node14 is no longer actively maintained and its official support will end ~ at the beginning of 2023 (check https://endoflife.date/nodejs).
About the polyfill - you need to register it as global - global.AbortController = AbortController. But my recommendation is to upgrade your node (you can also use nvm if you want to be able to switch between node versions).


Please invite me to the GitHub Community Organization

Name
Samarth Saxena
Discord Username (if applicable)
Samarth#0225
Additional Context
One of my fellow mate from Discord server is the member here and I randomly click on your wonderful Open source Community server also I have started my journey in open source also and I'm contributing from last 2 months. I want to be part of this super community and explore more in open source through you guys.

Thanks EddieHub


Add clear replacement instructions for add_dock_widget()

📚 Documentation
The documentation for add_dock_widget() says:

The shortcut parameter is deprecated since version 0.4.8, please use the action and shortcut manager APIs. The new action manager and shortcut API allow user configuration and localisation.

There are no links to the "action and shortcut manager APIs", and no clear instructions for what I do to replace add_dock_widget(). There should be clear instructions here for what code users should replace calls to add_dock_widget() with.

Ah my bad, the deprecation is just for one parameter 🤦


HMI: Fix flexlayout drag handle issue or find way to specify detailed fixed layout

Increased drag handle size and removed dynamic resize on touch devices


Wrong fallbacks

No, these are intentional- the fallbacks are for the next possible translation in the case that a key is missing.
For example, pirate english has english (US) as a fallback, so that if pirate english is missing anything, english (US) will cover it.
However, english (US) does -not- fallback on pirate english, because it's completely out of place to give a pirate text.
This is intended for dialects of the same language, but if they are so far removed from each other that it's nonsensical, feel free to remove the fallback outright, otherwise, let me know and I'll close the PR.

I understand. You can close PR


Make the e2e tests less flaky

Is your feature request related to a problem? Please describe.
The e2e tests are quite flaky which reduces our confidence in the pipeline.
Describe the solution you'd like
We should check which tests exactly keep failing, and what we can do to improve it.  Or we could remove the failing tests, which I think we really really shouldn't.

And of course also update the e2e dependencies.

Additional info: 9 out of the last 9 failed e2e tests were because of change language should open language selector: Error: expect(received).toBeTruthy() Received: false.


cidata: modify user-data to mount rosetta before systemd-binfmt.service starts.

Explicitly set fs_passno to 0 in the mount entry for rosetta to ensure it is mounted earlier. The default value was 2, which delayed the mount.
Without this change, ubuntu with qemu-user-static records error in clout-init.log:

[FAILED] Failed to start systemd-binfmt.ser…- Set Up Additional Binary Formats.

$ sudo systemctl status systemd-binfmt.service
× systemd-binfmt.service - Set Up Additional Binary Formats
     Loaded: loaded (/usr/lib/systemd/system/systemd-binfmt.service; static)
     Active: failed (Result: exit-code) since Tue 2024-07-30 15:41:08 JST; 1min 34s ago
       Docs: man:systemd-binfmt.service(8)
             man:binfmt.d(5)
             https://docs.kernel.org/admin-guide/binfmt-misc.html
             https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
   Main PID: 285 (code=exited, status=1/FAILURE)
        CPU: 5ms

Jul 30 15:41:08 lima-docker systemd[1]: Starting systemd-binfmt.service - Set Up Additional Binary Formats...
Jul 30 15:41:08 lima-docker systemd-binfmt[285]: /usr/lib/binfmt.d/rosetta.conf:1: Failed to add binary format 'rosetta': No such file or directory
Jul 30 15:41:08 lima-docker systemd[1]: systemd-binfmt.service: Main process exited, code=exited, status=1/FAILURE
Jul 30 15:41:08 lima-docker systemd[1]: systemd-binfmt.service: Failed with result 'exit-code'.
Jul 30 15:41:08 lima-docker systemd[1]: Failed to start systemd-binfmt.service - Set Up Additional Binary Formats.

Even if an error occurs in systemd-binfmt.service, 05-rosetta-volume.sh will register rosetta with binfmt_misc if it is not already registered, so the final operation is not affected.

Thanks! 🙏🏻


Type 'any' is not a constructor function type.

Help.

my ionic is v3.3.0
can it work?

I was able to fix this in local by using correct import  path "drag-gesture.
import { PanGesture } from '../../gestures/drag-gesture';

It should be fixed in latest release - please upgrade.
Thanks !

thank's @Riron  @gunjank

Issue not resolved yet.
`[13:54:35]  typescript: ...de_modules/ionic-img-viewer/dist/es2015/src/image-viewer-transition-gesture.d.ts, line: 6
Type 'any' is not a constructor function type.
   L5:  import { DomController } from 'ionic-angular';
   L6:  export declare class ImageViewerTransitionGesture extends PanGesture {
   L7:      private component;

[13:54:35]  typescript: node_modules/ionic-img-viewer/dist/es2015/src/image-viewer.d.ts, line: 5
Type 'any' is not a constructor function type.
   L4:  import { ImageViewerComponent } from './image-viewer.component';
   L5:  export declare class ImageViewer extends OverlayProxy {
   L6:      private opts;

[13:54:35]  typescript: node_modules/ionic-img-viewer/dist/es2015/src/image-viewer.d.ts, line: 8
Cannot find name 'Overlay'.
   L7:      constructor(app: App, component: typeof ImageViewerComponent, opts: ImageViewerOptions, config: Config, deepLinker: DeepLinker);
   L8:      getImplementation(): Overlay;

`

Check your dependencies versions. If the problem persists open a new issue with your detailed versions.

I installed v1 which is working fine but latest version should work.

@Riron last version (2.9.0) still not working, I had to use v1.3.1 with Ionic.


Update outdated dependencies

Updated outdated dependencies listed in https://libraries.io/rubygems/fastlane#license
This does not update the dependencies of terminal-table and plist, since we first have to losen up the dependencies from the sub-tools: https://github.com/fastlane/fastlane/pull/6461

Closing this for now, since we want to solve this in a different way


Research SHIELD project for condition mapping

User Story

As an engineer on ReportStream, I need to understand how the SHIELD project is handling or planning to handle mapping codes (LOINC, et. al) to conditions so that I can come up with a solution for ReportStream and maximize reuse.
Description/Use Case

Information on the SHIELD project can be found here: https://aphlinformatics.atlassian.net/wiki/spaces/SC/overview?homepageId=986579060
It sounds like SHIELD will eventually have some mechanism for mapping codes to conditions. We should look to understand what their current and future capabilities are and see if we can reuse any of their work or help them along their path.
SHIELD may also have rhapsody configs/tables we should look at to see if they are doing any mapping there.
DM @arnejduranovic for SHIELD contact info.
Risks/Impacts/Considerations

Dev Notes

Acceptance Criteria

[ ] Contacted SHIELD for a representative that may provide us Rhapsody config
[x]  Develop questions to ask SHIELD contact
[x] Held meeting with SHIELD regarding code to condition mapping
[ ] Created (if does not exist already) or updated existing condition to code mapping proposal document in repo with findings.

Hey team! Please add your planning poker estimate with Zenhub @arnejduranovic @jack-h-wang @JessicaWNava @jimmyfagan @mkalish @thetaurean @TurkeyFried @victor-chaparro

https://cdc.sharepoint.com/teams/USDSatCDC/Shared Documents/Forms/AllItems.aspx?FolderCTID=0x0120004368ADED9C3BEA4B94E57C5781F119FF&id=%2Fteams%2FUSDSatCDC%2FShared Documents%2FPRIME ReportStream%2FDesign and Research%2FUniversal Pipeline&viewid=17db3ff6-95c5-4562-a1f3-12b5097b5947


refactor(lint-style): various small clean-ups

alphabetise imports
ensure errors are distinct
convert the list of style errors to an enum
use this to deduplicate and simplify printing errors and parsing exceptions

See individual commit messages for details. Each commit can be reviewed independently.

I'm not sure I agree with the first commit: if the script can produce an error, we should be able to except it

I see your point, but I would argue that the particular errors I'm removing should never land in mathlib anyway - so I don't see why excepting them would be useful! (If there's the need to make the build pass, commenting that linter is another option.)
(FWIW, the script currently doesn't implement excepting all errors, so the current logic is already different.)

I pushed a few more commits, refactoring the script further: in particular, parsing style-exceptions now truly recognises all possible errors, in fewer lines of code than before.

For the record: #13199 will make this PR obsolete. If you'd like to review this, reviewing the PRs split off #13199 might be more useful long-term.

Let me close this PR in favour of #13199 (and its pieces).


Room temperature below setpoint and thermostat has not been changed recently

Check if the room temperatures are at or above setpoint every sampling period
If below setpoint, check if the user increased the setpoint in the last X minutes (2x the sampling time)

If the user did not increase the setpoint recently, send out an urgent alert
If the user did, send a non-urgent notice 'Setpoint changed and temperature has not yet reached setpoint'. Stop checking for point (1)
Once back to setpoint, send another non-urgent notice.

Associated alert code: https://github.com/thegridelectric/gridworks-journalkeeper/blob/dev/alerts/setpoint_check.py


test: improve test coverage of torrent.go

Codecov Report

Merging #19 (7a8e317) into develop (64025b0) will increase coverage by 3.84%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop      #19      +/-   ##
===========================================
+ Coverage    90.38%   94.23%   +3.84%
===========================================
  Files            8        8
  Lines          208      208
===========================================
+ Hits           188      196       +8
+ Misses          10        6       -4
+ Partials        10        6       -4

Impacted Files
Coverage Δ

torrent.go
100.00% <100.00%> (+25.00%)
:arrow_up:

Continue to review full report at Codecov.

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


Relax pyarrow pin

Arrow 15 has been released and it woudl be good to be able to use it.
https://arrow.apache.org/blog/2024/01/21/15.0.0-release/

Hi @dhirschfeld! Thank you for contributing!  I should ask you to do two things before we can proceed:

please sign off your commits. To fix existing comits in this branch - use git rebase -i main
please update poetry.lock file as well using poetry lock command

please sign off your commits

In the linked docs it says:

you can sign your commit automatically with git commit -s

...but my commits are cryptographically signed, so do I still need the Signed-off-by: footer?

@kravets-levko - the commits should all be signed off now...

ping @kravets-levko - any objections?

...but my commits are cryptographically signed, so do I still need the Signed-off-by: footer?

Hey @dhirschfeld this is a bit tangential to your PR but in case your curious: the cryptographic signing and the Signed-off-by commit text actually serve different purposes. The "verified" badge verifies that it was your computer that generated the code. Whereas the Signed-off-by header is more about legal attribution. The "verified" header is nice to have but not required by this repository. The Signed-off-by is mandatory to protect the maintainers from legal challenges if someone attempts to commit code to this repository that they weren't authorized to open-source.

Note that this PR will also close https://github.com/databricks/databricks-sql-python/issues/390


intel_adsp_cavs25: west sign command output some unrecognized ASCII char.

Describe the bug
for intel_adsp_cavs25 platform, when doing west sign command, it reported some unrecognized ASCII char when parsing cse entry name "cavs0015.met", the output as below, there are some unrecognized char after "cavs0015.met".
please ignore data of entry.offset and length, I removed them due to private policy.
 partition_name: 'ADSP'
         header_version: 2
          entry_version: 1
             nb_entries: 3
             entry.name: 'ADSP.man'
           entry.offset:
           entry.length:
             entry.name: 'cavs0015.met▒'
           entry.offset:
           entry.length:
             entry.name: 'cavs0015'
           entry.offset:
           entry.length:

this will causing an error "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 899: invalid start byte" when using twister command, because twister needs to decode the output string of "west flash" command.
the raw data of "west flash" captured by twister at position 899 as below, cannot decode \xc0\x04 using utf-8.
entry.name: 'cavs0015.met\xc0\x04'\n

Debug Info
I found that in tgl.toml file, there is a cse entry as below, the strlen(name) is 12 bytes,
[[cse.entry]]
name = "cavs0015.met"
offset =
length =

but the cse entry definition in rimage source code is as below, the entry name is uint8 [12], it includes the empty char for string. so when rimage parsing entry name "cavs0015.met", it just overlay the empty char, then when we output this entry_name, it will output some other chars until meeting another empty char.
so when we define a cse entry name, the max strlen(name) should be 11 chars, not 12 chars.
struct CsePartitionDirEntry {
        uint8_t  entry_name[12];
        uint32_t offset;
        uint32_t length;
        uint32_t reserved;
}  __attribute__((packed));

Suggestions
Could we using another name for cse entry "cavs0015.met", less than 12 chars.
I tested this method, it worked well.
Environment (please complete the following information):

Zephyr Commit:  d51a67b7c098c

hi @andyross could you help take a look of this?

This is a bug against rimage, can you refile it there?  https://github.com/thesofproject/rimage
I don't know if it's OK to change the entry_name field or not.  That metadata isn't used by Zephyr, it's for parsing by a host audio driver.  I'd be afraid to touch it without coordination with SOF and the windows driver people, honestly.
FWIW, as I read it it's just a display bug.  There's nothing wrong with that 12-byte string, the bug is that rimage assume's that it's null-terminated in memory when the manifest format doesn't require it.
Also: a Zephyr bug I think you should file is that the binary garbage in the log string is the proximate cause of twister blowing up with a utf-8 decode exception.  Twister needs to be tolerant of tools that emit bad strings.

I read it it's just a display bug. There's nothing wrong with that 12-byte string

@andyross  yes, it is just a display bug and it is captured by twister just right.
we can add a handler in twister to catch this exception when decoding output of west flash command, but it would be better to fix it from rimage if we can't modify entry name arbitrarily, i.e, increase the bytes in entry definition structure, I will report this in
sof rimage project too.

reported an issue in rimage project https://github.com/thesofproject/rimage/issues/86


fix(super-tiny-compiler): Ds that should have been Us are now Us and …

…not Ds
fixes #1
YOU'RE WELCOME.

:tada:

Going the lord's work. JAMES BE THANKFUL.

ugh fine, thaaanks daaad... whatever.


add gzip support

pull in the NYT gzip wrapper

I would like to work this issue.

Thank you, please do.


(maint) Add Litmus smoke tests

This adds 2 new Github workflows that verify that Litmus executes using
the latest version of Bolt. Since Litmus relies on Bolt to work, this
verifies that any changes in Bolt won't break Litmus before we merge.
One action runs the test on Ubuntu using a remote target, the other runs
on Windows and verifies Litmus against localhost. Both simply run the
Litmus acceptance tests using the Bolt version that triggered the action
to run (so the PR branch).
!no-release-note

@sheenaajay Alright, this looks to be working and is well slower than our other tests. The rest of the Bolt team is out this week, but I'll talk about it with them on Monday and see if we can get this in!

CLA signed by all contributors.

Thanks alot @lucywyman . Slight change. Was looking in to to other modules and team suggested package module will be right candidate. Thank you.

@lucywyman Thanks alot for the quick action on adding litmus smoke tests. Much appreciated.


Horizontal scroll is not working on public tables

Steps to reproduce:

Open a table with a lot of columns on the new public dashboard. You can try with this one.
Try to scroll horizontally to view the columns that are hidden on the right.

Current behavior:

Scroll doesn't work.

Removed the label because individual table/vis views are not in the scope of new dashboard (they still have the styles/code from current). :)
Btw I think you mean vertical scroll (y-axis), right?

horizontal works for me but not the vertical (I assume there are more rows than visible?):

I mean the x-axis:

@viddo, but I think vertical scroll is not working either cause that table has several pages of rows...

This seems to be working after #2882.


compose: Remove private stream warning when membership has full overlap.

Currently if you type #private-stream-name in compose, it'll pop up a warning like
Warning: private-stream-name is a private stream.
We should suppress that warning if you're composing to a stream whose membership is a subset of #private-stream-name.

@zulipbot claim


doc: hardware: peripherals: canbus: fix sample code

Minor doc fix: Log message present in the sample code was not printed when the function returned a value of 0.

That cold be on purpose, because 0 is perfect. >= 0 is always true.

That cold be on purpose, because 0 is perfect. >= 0 is always true.

The Funktion API seems to suggest 0 or any positive value indicates success thou.

Nothing on 0, warning on >=0, and error on negative would be appropriate in my opinion.
I wonder where this sample code comes from 🤔

Nothing on 0, warning on >=0

These conditions would contradict one another I think.

Exactly. Noting on 0.
if(err < 0) {
LOG_ERR(...);
return err;
}
if (err > 0) {
LOG_WRN("sp error %d", err);
}


move protobufs to top-level api folder

User Story
The Automate team agreed, many moons ago, to move all the protobufs to a top level api folder; see https://github.com/chef/automate/blob/master/dev-docs/adr/adr-2019-01-14.md
This work has been done for some of the services, but is not yet complete.
The list of services whose apis still need to be moved includes:

compliance service
nodemanager-service

Definition of Done
Proto files for compliance and nodemanager moved to the api folder.

The nodemanager-service protobufs have already been move. I will be moving only the compliance-service protos.

thank you!!


Properly clear metadata and other structs when reusing ServerContext in callback API

Credit for test and issue identification to @hcaseyal

[trickle] No significant performance differences

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE                                        FILE SIZE
 ++++++++++++++ GROWING                          ++++++++++++++
  +0.0%     +24 [None]                           +5.18Ki  +0.1%
  +3.7%    +448 src/cpp/server/server_context.cc    +448  +3.7%
      +622%    +454 grpc::ServerContext::Setup          +454  +622%

  +0.1%    +472 TOTAL                            +5.62Ki  +0.1%

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE                                        FILE SIZE
 ++++++++++++++ GROWING                          ++++++++++++++
  +0.0%     +24 [None]                           +5.18Ki  +0.1%
  +3.7%    +448 src/cpp/server/server_context.cc    +448  +3.7%
      +622%    +454 grpc::ServerContext::Setup          +454  +622%

  +0.1%    +472 TOTAL                            +5.62Ki  +0.1%

[trickle] No significant performance differences

[trickle] No significant performance differences

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,019,028      Total (=)      2,019,028

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,179,738      Total (>)     11,179,727

 No significant differences in binary sizes

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE                                        FILE SIZE
 ++++++++++++++ GROWING                          ++++++++++++++
  +0.0%     +24 [None]                           +5.18Ki  +0.1%
  +3.7%    +448 src/cpp/server/server_context.cc    +448  +3.7%
      +622%    +454 grpc::ServerContext::Setup          +454  +622%

  +0.1%    +472 TOTAL                            +5.62Ki  +0.1%

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE                                        FILE SIZE
 ++++++++++++++ GROWING                          ++++++++++++++
  +0.0%     +24 [None]                           +5.18Ki  +0.1%
  +3.7%    +448 src/cpp/server/server_context.cc    +448  +3.7%
      +622%    +454 grpc::ServerContext::Setup          +454  +622%

  +0.1%    +472 TOTAL                            +5.62Ki  +0.1%

[trickle] No significant performance differences

[trickle] No significant performance differences

[trickle] No significant performance differences

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,019,028      Total (=)      2,019,028

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,179,735      Total (<)     11,179,738

 No significant differences in binary sizes

****************************************************************

libgrpc.so

     VM SIZE                                                                                FILE SIZE
 ++++++++++++++ GROWING                                                                              ++++++++++++++
  +0.6%     +96 src/core/lib/surface/server.cc                                                           +96  +0.6%
      [NEW]    +146 request_matcher_zombify_all_pending_calls((anonymous namespace)::request_matcher*) [    +146  [NEW]
       +37%     +82 init_call_elem                                                                           +82   +37%
      +3.8%     +14 [Unmapped]                                                                               +14  +3.8%

 -+-+-+-+-+-+-+ MIXED                                                                                +-+-+-+-+-+-+-
  -0.0%     -48 [None]                                                                                +104  +0.0%

  +0.0%     +48 TOTAL                                                                                +200  +0.0%

****************************************************************

libgrpc++.so

     VM SIZE                                        FILE SIZE
 ++++++++++++++ GROWING                          ++++++++++++++
  +0.0%     +24 [None]                           +5.18Ki  +0.1%
  +3.7%    +448 src/cpp/server/server_context.cc    +448  +3.7%
      +622%    +454 grpc::ServerContext::Setup          +454  +622%

  +0.1%    +472 TOTAL                            +5.62Ki  +0.1%

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,019,028      Total (=)      2,019,028

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,179,740      Total (>)     11,179,737

 No significant differences in binary sizes

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,019,028      Total (=)      2,019,028

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,179,731      Total (<)     11,179,737

 No significant differences in binary sizes

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE                                        FILE SIZE
 ++++++++++++++ GROWING                          ++++++++++++++
  [ = ]       0 [None]                           +7.48Ki  +0.1%
  +3.7%    +448 src/cpp/server/server_context.cc    +448  +3.7%
      +210%    +445 grpc::ServerContext::Clear          +445  +210%
      +2.2%      +3 [Unmapped]                            +3  +2.2%

  +0.1%    +448 TOTAL                            +7.91Ki  +0.1%

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE                                        FILE SIZE
 ++++++++++++++ GROWING                          ++++++++++++++
  [ = ]       0 [None]                           +7.48Ki  +0.1%
  +3.7%    +448 src/cpp/server/server_context.cc    +448  +3.7%
      +210%    +445 grpc::ServerContext::Clear          +445  +210%
      +2.2%      +3 [Unmapped]                            +3  +2.2%

  +0.1%    +448 TOTAL                            +7.91Ki  +0.1%

[trickle] No significant performance differences

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,019,380      Total (=)      2,019,380

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,180,294      Total (<)     11,180,303

 No significant differences in binary sizes

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,019,380      Total (=)      2,019,380

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,180,308      Total (>)     11,180,298

 No significant differences in binary sizes

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

Remaining failures unrelated

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE                                        FILE SIZE
 ++++++++++++++ GROWING                          ++++++++++++++
  [ = ]       0 [None]                           +7.48Ki  +0.1%
  +3.7%    +448 src/cpp/server/server_context.cc    +448  +3.7%
      +210%    +445 grpc::ServerContext::Clear          +445  +210%
      +2.2%      +3 [Unmapped]                            +3  +2.2%

  +0.1%    +448 TOTAL                            +7.91Ki  +0.1%

[trickle] No significant performance differences

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,019,404      Total (=)      2,019,404

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,180,297      Total (<)     11,180,303

 No significant differences in binary sizes

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences


[Bug] Underworld and login

2 small bugs found:
Even though my Underworld is unlocked it says "UW not unlocked yet"
and a smaller thing:
While logging into the tool, you cant switch from username to password field with TAB anymore.

Thanks for the report.
The underworld stuff is weird. Could you provide me with the helper.log file, that the helper creates? It might show some warnings about stuff not being parsed correctly.
Yeah, I am probably going to add the login tab stuff soon. It just seemed to be a bit more annoying to implement, than with the old framework, so I just skipped it for now

2024-03-10 21:11:24 | INFO  | sf_scrapbook_helper:54 | Starting up 2024-03-10 21:11:24 | DEBUG | sf_scrapbook_helper:73 | Setup window 2024-03-10 21:11:28 | WARN  | sf_api::gamestate:974 | Unable to parse combat log entry: ["72018721", "204", "1", "12", "1710099992", "0"] 2024-03-10 21:11:28 | WARN  | sf_api::gamestate:974 | Unable to parse combat log entry: ["71895527", "479", "1", "12", "1710094681", "0"] 2024-03-10 21:11:28 | WARN  | sf_api::gamestate:974 | Unable to parse combat log entry: ["71813506", "53", "1", "12", "1710090981", "0"] 2024-03-10 21:11:28 | INFO  | sf_scrapbook_helper::message:387 | Successfully logged in AccountIdent XXXX 2024-03-10 21:11:28 | DEBUG | sf_scrapbook_helper::backup:149 | XXXX fetch online backup: false 2024-03-10 21:11:28 | DEBUG | sf_scrapbook_helper::backup:29 | Restoring local backup
censored serverdetails just in case .. :)

So there are no relevant errors/warnings in the log. That means the only thing, that could go wrong is that it thinks your underworld is at total_level 0 and removes all the otherwise fine data because of that. I might need to change the way I check if the underworld exists then I suppose. Maybe check for total_level > 0 || buildings.iter().any(|a| a.level > 0) to make extra sure there is something in the underworld.
I will try that in the next release for you, but as I am unable to reproduce this, that might not be enough to fix the issue

Unfortunately i have the same bug with the underworld.

So there are no relevant errors/warnings in the log. That means the only thing, that could go wrong is that it thinks your underworld is at total_level 0 and removes all the otherwise fine data because of that. I might need to change the way I check if the underworld exists then I suppose. Maybe check for total_level > 0 || buildings.iter().any(|a| a.level > 0) to make extra sure there is something in the underworld.
I will try that in the next release for you, but as I am unable to reproduce this, that might not be enough to fix the issue

I'm also experiencing this problem. It might be related to the gates, as I haven't unlocked them yet.
2024-07-23 17:05:17 | INFO  | sf_scrapbook_helper:105 | Starting up
2024-07-23 17:05:34 | WARN  | sf_api::session:299 | Untested S&F Server version: 2007
2024-07-23 17:05:34 | WARN  | sf_api::gamestate:897 | Unable to parse combat log entry: ["83650158", "533", "1", "12", "1721749330", "0"] - Error parsing the server response because combat mt had an unexpected value of: 12
2024-07-23 17:05:34 | WARN  | sf_api::gamestate:1734 | Weird time stamp: 1 for hydra last defeat
2024-07-23 17:05:34 | WARN  | sf_api::gamestate:1419 | Update ignored soulsperhournextlevel -> ResponseVal { value: "330", sub_key: "" }
2024-07-23 17:05:34 | INFO  | sf_scrapbook_helper::message:509 | Successfully logged in character-0@14097802973391367298
2024-07-23 17:05:34 | WARN  | sf_scrapbook_helper::backup:143 | s12sfgameeu could not read in local backup: Nie można odnaleźć określonego pliku. (os error 2)
2024-07-23 17:05:34 | DEBUG | sf_scrapbook_helper::backup:163 | s12sfgameeu fetch online backup: false
2024-07-23 17:05:34 | DEBUG | sf_scrapbook_helper::backup:27 | Reset crawling progress
2024-07-23 17:05:34 | DEBUG | sf_scrapbook_helper::crawler:218 | Logging in SwsyXM1 on https://s12.sfgame.eu/
2024-07-23 17:05:34 | DEBUG | sf_scrapbook_helper::crawler:257 | Registering new crawler account SwsyXM1 on https://s12.sfgame.eu/
2024-07-23 17:05:35 | WARN  | sf_api::session:299 | Untested S&F Server version: 2007
2024-07-23 17:05:35 | WARN  | sf_api::gamestate:1419 | Update ignored tutorial_game_entry -> ResponseVal { value: "1", sub_key: "" }
2024-07-23 17:05:35 | DEBUG | sf_scrapbook_helper::crawler:273 | Registered SwsyXM1 successfull https://s12.sfgame.eu/


[EV-1204] WebSocket connections

Issue being fixed or implemented
Preliminary addition of WebSocket capability for DAPI.
What was done
WebSockets are now the primary connection mechanism. HTTP requests are a default fallback in the event of socket communication failure.
What has been tested
Nothing
What needs to be tested
Integration tests for the new WebSocket service and whether it's connecting correctly to DAPI

@antouhou do we still need it or we can close it?

@antouhou @shumkov I think we can close this here too?


refactor: merge universe setup into world pregen screen

Contains
Merging UniverseSetupScreen and WorldPreGenerationScreen incl.

merging .ui representations
merging .java classes
using UniverseWrapper for persisting state
binding UI widgets to persisted state

How to test

Start Terasology
Create World via Advanced Game Setup
Play around with world setup screen elements

Outstanding before merging
Based on #5118.

[X] merge UI elements
[X] merge widget bindings and screen logic
[X] use UniverseWrapper instead of local copies of target world and seed
[X] use universe seed and properly randomize seed on re-roll
[x] fix initial world generator dropdown binding
[ ] improve world generator dropdown bindings
[ ] improve world preview bindings
[x] remove worlds element in lower right screen section
[ ] update preview on changing seed field content
[ ] memorize modified (manually or via re-roll) seed field content (currently reset always to initial seed)

@skaldarnar with https://github.com/MovingBlocks/Terasology/pull/5122/commits/bb7fab6bdfb18cb0a63550b7a0ba2436260cf5db I run into the OOM issue again during preview generation:
java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
	at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
	at org.terasology.engine.rendering.nui.layers.mainMenu.preview.FacetLayerPreview.render(FacetLayerPreview.java:130)
	at org.terasology.engine.rendering.nui.layers.mainMenu.UniverseSetupScreen.lambda$updatePreview$7(UniverseSetupScreen.java:416)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.OutOfMemoryError: Java heap space

Without it I don't, but I don't get how the changes in that commit would result in running into this kind of a loop there :thinking: any ideas?

@skaldarnar with this latest commit I'm trying to create the Context already one screen earlier than before, put it into the core registry and consume it from there in UniverseSetupScreen via @In. However, the context is empty there, which is why one currently runs into an NPE...
Any idea, why it's not properly picked up from core registry there?

I'm not sure that @In is working for the Context :thinking: or whether that's the right mechanism to use for the context.
The dependency injection with @In works if a class requires an instance of a specific other class T, and the engine has exactly one instance t of that other class T it can pass in. If there are multiple or none instances of T, the injection cannot work properly.
With the context, I think we explicitly want to have multiple contexts, kinda stacking and dropping them when changing states.
I would try to pass the context explicitly in setEnvironment (and rename it to setContext) .

@skaldarnar from my side this would be ready for review


Android version

Do you have a similar component to Android?

Look here: https://github.com/Johan-dutoit/JVFloatSharp

Thank you!

I had planned to add one to this repository, but there's no longer a need as Google has shipped their own. I suggest using that.

I made the implementation on iOS for use in a Xamarin Forms project and it worked ok. I can not do the same on the Android project (with the library you refer me). You know how to solve this problem?
Thanks.


Node security check falls

During the node security check found one vulnerability.
(+) 1 vulnerabilities found
 Name     Installed   Patched   Path                                                                                More Info
 semver   2.2.1       >=4.3.2<EMAIL_ADDRESS>><EMAIL_ADDRESS>><EMAIL_ADDRESS>><EMAIL_ADDRESS> https://nodesecurity.io/advisories/31

I've opened the PR at the end of this chain, hopefully it will be merged shortly.
github/shahata/jsdelivr-cdn-data#7
Dependencies:
node v7.8.0
OS X 10.11.2
Step to reproduce:

Install nsp
run nsp check

I see that I am not the first who is trying to solve this issue with jsdelivr-cdn-data. I would suggest to give it a try, though.

@matrus2 - This will be resolved in #78 one way or another.

This is also an issue with the<EMAIL_ADDRESS>dependency, as it depends on an outdated, insecure version of mime.
┌────────────┬────────────────────────────────────────────────────────────────────┐
│            │ Regular Expression Denial of Service                               │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ Name       │ mime                                                               │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ CVSS       │ 7.5 (High)                                                         │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ Installed  │ 1.2.11                                                             │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ Vulnerable │ < 1.4.1 || > 2.0.0 < 2.0.3                                         │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ Patched    │ >= 1.4.1 < 2.0.0 || >= 2.0.3                                       │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ Path       │<EMAIL_ADDRESS>><EMAIL_ADDRESS>><EMAIL_ADDRESS>>        │
│            │<EMAIL_ADDRESS>                                                      │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ More Info  │ https://nodesecurity.io/advisories/535                             │
└────────────┴────────────────────────────────────────────────────────────────────┘

So here's the deal. We have been pinging the owners of those dependencies for months with no response. While i'm usually against doing this, we are going to have to fork or roll in the libs that aren't responding to move this forward.

For s3 it's probably best to just replace it with aws-sdk and rework the code a bit to support it.

Agreed. Everything in contrib has a major release coming anyway to drop Node 4 support, we could roll the required changes into that.

I've got zero bandwidth for the s3 thing until i'm finished working on the closure plugin, next week at the absolute earliest.
In the mean time, i'll continue to try and reach out to the maintainers of the libs having nsp issues.


Show error messages at the beginning if QR-Codes are corrupt

When I finished my evaluation an error message about an invalid QR-Code appeared and I had to start again. This error message should be at the beginning.

Could not be reproduced. Even at the moment of reporting, this should not have been possible except if the evaluation was closed by the tutor beforehand. Curious. Will be closed until someone encounters that bug again.


Add config-kafka-source-defaults ConfigMap for KEDA integration

As per title.

/cc @aavarghese @matzew

@pierDipi We have this file in https://github.com/knative-sandbox/eventing-kafka-broker/blob/main/control-plane/config/eventing-kafka-broker/100-source/config-kafka-source-defaults.yaml. Why do we need it here additionally?

Good catch, closing


⚠ Samsung has degraded performance

In 937b0dd, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2312 ms

Resolved: Samsung performance has improved in a39ac44.


Re-name the 'model' attribute

model is a bit of a weird name. Could we rename it to something like data or media or raw? We could always alias model for backwards compatibility.

Bump to keep fresh. We need to add a new GitHub tag (in addition to pinned) to keep issues like these fresh.


Poisoned with Windows 11, version 24H2 LAST NIGHT!

Microsoft PowerToys version
Release v0.86.0
Installation method
GitHub
Running as admin
Yes
Area(s) with issue?
File Explorer: Preview Pane
Steps to reproduce
Hello,
I was just involving last night with Windows 11, version 24H2,
https://support.microsoft.com/en-us/windows/inside-this-update-93c5c27c-f96e-43c2-a08e-5812d92f220d?OCID=WUSettings
Now, no way to be able to keep the ability to view .pdf in File Explorer.  I cannot view, using the way Portable Document Format.
It still turns on.
I had a stroke a year ago and I'm very confused about this GitHub.
I hope you'll be able to help.
Thanks,
GardenMum
✔ Expected Behavior
No response
❌ Actual Behavior
No response
Other Software
No response

/dup https://github.com/microsoft/PowerToys/issues/34952


[SPM] Update to latest stable swift-syntax release

A stable version of swift-syntax for Swift 5.8 has now been released. This PR updates Sourcery's Package.swift file to help fix the issues around SPM complaining about the source-unstable version when resolving dependencies.

thanks!

@krzysztofzablocki would it be possible to get a new 2.0.2 release tagged with this change?


Long hang (30 seconds plus) when starting a device

It might be similar to this issue https://github.com/natmlx/natdevice/issues/3.
I am on latest version of NAT. Unity version 2021.3.10f1. The device in question is a Logi 270 HD
Example code:
_output = new TextureOutput();
CurrentDevice.StartRunning(_output);

The texture will render gray until the 30 seconds has passed before rendering the cam.

Duplicate of #33 . Closing.


Integrate DNA 6.0

We can drop 3.0 proper after this! Woot!

We can drop 3.0 proper after this! Woot!


On Windows, first use of Identity DB after app creation fails

Repro:

On Windows in VS, do a File->New ASP.NET Core Web Application project, and choose "Web Application" (not "Empty")
Launch it (Ctrl+F5)
Click on "Register" and then try to register a new user.
Get error: A database operation failed while processing the request.

If you click the button and try again, it does work OK. This occurs on Windows whether you're using SQL Server (LocalDB) or SQLite.
This error does not occur on OS X when using SQLite - the user registration completes successfully. Even if this is by design on Windows, it should at least be consistent with OS X.

@barrytang @sayedihashimi @rowanmiller This isn't an identity issue. You need to run a migration to get the database created. Hence the big blue button.
Admittedly the current experience isn't great. In the past we created the database on first run, which had it's own issues. Ideas on how to improve this?

Have we considered just creating the database on project creation?

Yes, I think that is viable since it can be kicked of asynchronously. Obviously it would only help on the initial dev machine, but I think it's a good start.

What about command line users?

Not sure about the infrastructure capabilities for creating the project from the command line, but we could still rely on the current "click the big blue button" experience. Or we could invoke dotnet ef database update as part of project creation (if possible).

This error does not occur on OS X when using SQLite - the user registration completes successfully. Even if this is by design on Windows, it should at least be consistent with OS X.

It this because the yo templates still include the workaround? If no, why?


#543: $risk-assessment operation POC

First pass at operation. Still needs a bit of cleanup and some better error reporting. Issuing PR now for feedback and to ensure my grasp of the operation is sound.
Not currently explicitly checking the numerator score to determine gaps. Using the following:
Historic Gap Closed = Measure Score 1, Historic Stratifier true
Historic Gap Open = Measure Score 0, Historic Stratifier true
Net New = Measure Score 1, Net-New Stratifier true
Suspected Gap Closed = Measure Score 1, Suspected Stratifier true
Suspected Gap Open = Measure Score 0, Suspected Stratifier true

Can add explicit checking as needed.
The test...MeasureReport.json files have the returned MeasureReport resources from the tests. Currently only changing the MeasureReport.group element. Please advise if other elements need to be excluded/changed/updated. I added "suspected" population logic even though it is not covered in the POC just to have it there. Can comment-out/remove/throw or whatever is preferred.

Also, using Measure Score instead of Numerator is fine.  No need to change that.

One last thing, I'm not sure what the Measure Report should look like in the case of a Denominator Exclusion.  Will need to get feedback on that.  Maybe nothing changes; maybe there's something we need to do.   Probably out of scope for the POC.  Just FYI.

SDE "Evidence Status Date" has been added to the Measure in order to add the ra-evidenceStatusDate extension.  New Measure and Library resources can be found here: https://github.com/HL7/davinci-ra/tree/master/bundles/measure/ConditionCategoryPOC/ConditionCategoryPOC-files.

Change "reportType" to "type" and run this report if the type is "report" and throw a "not implemented exception"/OperationOutcome if the type is "response".

Return a Parameters with a Risk Adjustment Coding Gap Report Bundle (http://build.fhir.org/ig/HL7/davinci-ra/StructureDefinition-ra-measurereport-bundle.html) with Risk Adjustment Measure Report (http://build.fhir.org/ig/HL7/davinci-ra/StructureDefinition-ra-measurereport.html) entries, and evaluatedResource entries.
16:08
(like $care-gaps, here: https://github.com/DBCG/cqf-ruler/blob/de723e8c9504e1311579f2c1bcaaf07fdbafde71/plugin/cr/src/main/java/org/opencds/cqf/ruler/cr/r4/provider/CareGapsProvider.java#L361)

No need to make it a Composition or include Detected Issue at this point.

Applied most of those changes. Still need to package as a Risk Adjustment Coding Gap Report Bundle. Updated the operation to work on existing MeasureReport referencing subject.


Add File Based support for C

Platform: win32
---I‘d like to know how to run c in atom based on mingw. Really thanks.

Duplicate of #381


Custom alert partial or classes

Hello. Nice plugin, really love it.
Only issue I have at the moment - I want to use custom alert msg layout, but this partial (flash.htm) is called somewhere inside plugin and can't be rewritten by simply making some partial in my theme.
What is easy way to achieve this?
And as proposition - make it possible to change Alert layout as easy as it is to make new forms with this plugin :)

Hello @trow-eu
This feature will be available on version 1.4.4 (still not estimated release date)
At this point the current versions are:

1.4.2 - stable
1.4.3 - edge

Feel free to test current master branch ...


Example code 'mjpeg-stream.js' isn't working...

Hello,
I'm trying to run an example code 'mjpeg-stream.js', but I can't get images.
I checked this code, and I found variant buf's value is still 'null'.
I guess a Bebop Drone's image data was not transferred to variant 'data'.
mjpg.on("data", function(data) {
buf = data;                                     ->  The data was not transferred. I guess...
});
What should I do????
Somebody help me

The problem is same as on my Bebop2(Firmware ver. 3.3.0)
I think the problem is caused by this issue:
http://forum.developer.parrot.com/t/cannot-decode-video-after-upgrade-sdk-from-3-6-to-3-8-3/

Hi, everyone. For sure that is not the problem, as I am running firmware 3.3.0 as well. I just tested again to be certain, and it worked.
I suggest you look into your opencv installation, as that is required to use this example.
I am going to close this issue, please reopen if needed. Thanks!


feat: add support for the rich text editor

This PR adds support for the rich text editor.
Wrapped the container element in a .joplin-editable container to enable rich text editor support.
When CSS files were loaded as markdownIt assets they wern't available in the rich text editor. Loading files using joplin.window.loadNoteCssFile made the styles avaliable in both views.

fixes #4

Added a workaround to fix an issue where the line number list renders below the code block whenever the editor is reloaded.


can't fmt scal with \ud801,which actually is  ?

Description
orginal code in pekko-grpc
org.apache.pekko.grpc.scaladsl.headers.HeadersSpec
  "Status-Message.value()" should {
    "use percent-encoding" in {
      // test cases taken from https://github.com/grpc/grpc-java/blob/79e75bace40cea7e4be72e7dcd1f41c3ad6ee857/api/src/test/java/io/grpc/StatusTest.java#L65
      val inAndExpectedOut = Table(
        ("raw input", "expected encoded value"),
        ("my favorite character is i", "my favorite character is i"),
        ("my favorite character is \n", "my favorite character is %0A"),
        ("my favorite character is \u0000", "my favorite character is %00"),
        ("my favorite character is %", "my favorite character is %25"),
        ("my favorite character is 𐀁", "my favorite character is %F0%90%80%81"),
        // \ud801 is a high surrogate, a lone surrogate character is getting decoded as ? with UTF-8
        ("my favorite character is \ud801", "my favorite character is ?"),
        // \udc37 is a low surrogate, a lone surrogate character is getting decoded as ? with UTF-8
        ("my favorite character is \udc37", "my favorite character is ?"),
        // a pair of surrogate characters is fine
        ("my favorite character is " + 0xDBFF.toChar + 0xDFFF.toChar, "my favorite character is %F4%8F%BF%BF"))

      forAll(inAndExpectedOut) { (in, expected) =>
        new `Status-Message`(in).value() should equal(expected)
      }
    }
  }

when scalafmtAll

[error] org.scalafmt.sbt.ScalafmtSbtReporter$ScalafmtSbtError: scalafmt: /home/laglang/coding/pekko-grpc/runtime/src/test/scala/org/apache/pekko/grpc/scaladsl/headers/HeadersSpec.scala:39: error: invalid unicode surrogate pair
[error]         ("my favorite character is \ud801", "my favorite character is ?"),
[error]                                    ^ [/home/laglang/coding/pekko-grpc/runtime/src/test/scala/org/apache/pekko/grpc/scaladsl/headers/HeadersSpec.scala]
[error] (runtime / Test / scalafmt) org.scalafmt.sbt.ScalafmtSbtReporter$ScalafmtSbtError: scalafmt: /home/laglang/coding/pekko-grpc/runtime/src/test/scala/org/apache/pekko/grpc/scaladsl/headers/HeadersSpec.scala:39: error: invalid unicode surrogate pair
[error]         ("my favorite character is \ud801", "my favorite character is ?"),
[error]                                    ^ [/home/laglang/coding/pekko-grpc/runtime/src/test/scala/org/apache/pekko/grpc/scaladsl/headers/HeadersSpec.scala]
[error] Total time: 3 s, completed 2024年4月14日 下午2:38:01

Question
pekko-grpc can fix it by use ${0xD801.toChar}, I'm not sure if this is a bug in scalafmt, report it.
\ud801 actually is  ?

@laglangyue now that it's linked to scalameta, can you explain why your code uses high-surrogate and low-surrogate parts of a unicode character separately?
currently, the parser follows the unicode standard and parses all unicode characters completely; if it encounters an 32-bit integers which falls into unicode high-surrogate range, it will then read the next 32-bit integer (which must come from the low-surrogate range) and combine the two together. these two parts cannot be separate.

This is the test code of pekko-grpc, where headerSpec tests for special characters.
Users may fill in such characters, so we need to test them in Spec，grpc-java also do the test.
Now we have changed it to ${0xD801. toChar},
So pekko-grpc has solved this problem.
If it is confirmed that there will be not support, I think we can close the issue，because there are alternative solutions in the source code

what exactly can we support here? it's invalid Unicode. does the scala compiler support it?

when a string has \ud801, sbt scalafmtAll will cause exception, but sbt clean compile can execute successfully.
BTW I copy it to google search, it will be '?'.
so In my opinion, scalafmtAll can ignore it but not throw exception.
I don't understand how scalafmt works, I close the issue.

@laglangyue \ud801 is not a valid character, it cannot be stored in a char. there are plenty of discussions online about this.
and the ? that you see is not the value of that character but a message from the system telling you it doesn't know what that character is.


Reset splits either side of a divider to an even ratio on double click of the divider #2687

This feat was requested here https://github.com/zeit/hyper/issues/2687
Should be ready to merge

@albinekb I've addressed your feedback , thanks for the quick review 👍 💯 🥇

Thank you 🙌

@lesce Thank you so much for your work 🙏


WhatsUpWeb Support!!!

one image worth a thousand words...
please update headless chromium version and eventually think about enabling use with scrapy-selenium for the next futere will be usefull to have it!!
Great extension nonetheless

Browser Preview is using your local Chrome or Edge instance behind the scene, so please check your Chromium version.


cmake minor fixes

restore output binary naming for s3 (and QGC compatibility) eg nuttx_px4fmu-v2_default.px4 -> px4fmu-v2_default.px4
nuttx cmake improved dependencies (#7999)
snapdragon 'upload' dependencies fix (remove hardcoded paths)

https://logs.px4.io/plot_app?log=aec5707f-a46a-4055-ae61-0f8f479f2d10
arm - disarm
Software Version Shown: befda165

This is a much smaller (safe) subset of https://github.com/PX4/Firmware/pull/8043.


Add fields to get Street Address, State, Zip from Geocoder

These fields are used to to more efficiently divide work among regionally-specialized GP team members.
Request is to store the following in separate fields like City and Country are already:

Street address
State / Province
Zip / postal code

cc: @nicholassewitz

Can we add State to this as well please, if in the US.
N
On Mon, Dec 4, 2017 at 10:44 AM, Madeleine Boucher<EMAIL_ADDRESS>
wrote:

These fields are used to to more efficiently divide work among
regionally-specialized GP team members.
Geocoder should return Zip and Street Address, request is to store them in
separate fields like City and Country are already.
cc: @nicholassewitz https://github.com/nicholassewitz
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/artsy/bearden/issues/333, or mute the thread
https://github.com/notifications/unsubscribe-auth/AKaPgk4N0bWSdGvbGcsLWRWXDSa9B-8Fks5s9BN5gaJpZM4Q02z1
.

@nicholassewitz just updated to include state/province! we should get province for anywhere outside of the US, where possible, for consistency.

I just did a little research on what this would take and it's looking quite simple. There's a section of the geocoder README that details what bits we get back in a response:
https://github.com/alexreisner/geocoder#advanced-geocoding
So, what I'm thinking is that this will end up being a database migration to add columns to the locations table and then it would just be wiring up here in the geocoding job:
https://github.com/artsy/bearden/blob/master/app/jobs/geocode_location_job.rb#L26
Are we wanting this done for only US locations or should we divvy up this info from all geocoder responses?

Oh, the other thing to consider is what to do about the locations already geocoded - would we want to go back through them all again to update our data?

Ok, I've done a little more digging here and wanted to share. That geocoder doc I linked above mentioned a list of data points that are always available on a result. I took a US and UK address as examples and ran them like this:
artsy = "401 Broadway, 25th Floor, New York, NY 10013"
b_palace = "Westminster, London SW1A 1AA, UK"
places = [artsy, b_palace]
results = places.map { |address| Geocoder.search(address).first }
attrs = %i[address city coordinates country country_code latitude longitude postal_code state state_code]
print_attrs = ->(result) { attrs.each { |attr| puts "#{attr} => #{result.send(attr)}" } }
results.each { |result| print_attrs.call(result) }

# address => 401 Broadway, New York, NY 10013, USA
# city => New York
# coordinates => [40.7189608, -74.00279379999999]
# country => United States
# country_code => US
# latitude => 40.7189608
# longitude => -74.00279379999999
# postal_code => 10013
# state => New York
# state_code => NY

# address => London SW1A 1AA, UK
# city => Greater London
# coordinates => [51.501009, -0.1415876]
# country => United Kingdom
# country_code => GB
# latitude => 51.501009
# longitude => -0.1415876
# postal_code => SW1A 1AA
# state => England
# state_code => England

One thing you'll notice is that there really isn't anything I'd call a Street Address there. Like, for Artsy, I would have expected just "401 Broadway" in one of those fields, but alas. Then I noticed that ALL data can be found in a data hash:
results.each { |result| puts result.data.to_json }

{
  "address_components": [
    {
      "long_name": "401",
      "short_name": "401",
      "types": [
        "street_number"
      ]
    },
    {
      "long_name": "Broadway",
      "short_name": "Broadway",
      "types": [
        "route"
      ]
    },
    {
      "long_name": "Manhattan",
      "short_name": "Manhattan",
      "types": [
        "political",
        "sublocality",
        "sublocality_level_1"
      ]
    },
    {
      "long_name": "New York",
      "short_name": "New York",
      "types": [
        "locality",
        "political"
      ]
    },
    {
      "long_name": "New York County",
      "short_name": "New York County",
      "types": [
        "administrative_area_level_2",
        "political"
      ]
    },
    {
      "long_name": "New York",
      "short_name": "NY",
      "types": [
        "administrative_area_level_1",
        "political"
      ]
    },
    {
      "long_name": "United States",
      "short_name": "US",
      "types": [
        "country",
        "political"
      ]
    },
    {
      "long_name": "10013",
      "short_name": "10013",
      "types": [
        "postal_code"
      ]
    }
  ],
  "formatted_address": "401 Broadway, New York, NY 10013, USA",
  "geometry": {
    "bounds": {
      "northeast": {
        "lat": 40.7191736,
        "lng": -74.00250530000001
      },
      "southwest": {
        "lat": 40.718748,
        "lng": -74.0030823
      }
    },
    "location": {
      "lat": 40.7189608,
      "lng": -74.00279379999999
    },
    "location_type": "ROOFTOP",
    "viewport": {
      "northeast": {
        "lat": 40.72030978029149,
        "lng": -74.00144481970851
      },
      "southwest": {
        "lat": 40.7176118197085,
        "lng": -74.00414278029152
      }
    }
  },
  "partial_match": true,
  "place_id": "ChIJW5D4lI1ZwokRUKDFbb4uTIA",
  "types": [
    "premise"
  ]
}

{
  "address_components": [
    {
      "long_name": "SW1A 1AA",
      "short_name": "SW1A 1AA",
      "types": [
        "postal_code"
      ]
    },
    {
      "long_name": "London",
      "short_name": "London",
      "types": [
        "postal_town"
      ]
    },
    {
      "long_name": "Greater London",
      "short_name": "Greater London",
      "types": [
        "administrative_area_level_2",
        "political"
      ]
    },
    {
      "long_name": "England",
      "short_name": "England",
      "types": [
        "administrative_area_level_1",
        "political"
      ]
    },
    {
      "long_name": "United Kingdom",
      "short_name": "GB",
      "types": [
        "country",
        "political"
      ]
    }
  ],
  "formatted_address": "London SW1A 1AA, UK",
  "geometry": {
    "bounds": {
      "northeast": {
        "lat": 51.5037514,
        "lng": -0.1397412
      },
      "southwest": {
        "lat": 51.4995847,
        "lng": -0.1488254
      }
    },
    "location": {
      "lat": 51.501009,
      "lng": -0.1415876
    },
    "location_type": "APPROXIMATE",
    "viewport": {
      "northeast": {
        "lat": 51.5037514,
        "lng": -0.1397412
      },
      "southwest": {
        "lat": 51.4995847,
        "lng": -0.1488254
      }
    }
  },
  "place_id": "ChIJ1bidZScFdkgRqR6QyL-kxcA",
  "types": [
    "postal_code"
  ]
}

Unless I'm missing something, even in there, Google isn't returning a street address for us. Should I move forward with just adding state and postal code? And I'm still unclear if these additional fields should only apply to US addresses or all of them.
Finally, I forgot that we're storing the result, so rather than having to go back through and re-geocode already done records, I can simply write a rake task to dig into the stored results and fetch out whatever data is already there.


dagger functions/call/etc should fail if none present

@kpenfound noticed this fun one while migrating to new the source fields:
❯ dagger init --sdk=go --name=playground --source .
Initialized module playground in .
❯ ls
dagger.gen.go  dagger.json  go.mod  go.sum  main.go  querybuilder
❯ rm main.go
❯ dagger functions
Name             Description
container-echo   example usage: "dagger call container-echo --string-arg yo stdout"
grep-dir         example usage: "dagger call grep-dir --directory-arg . --pattern GrepDir"

Even though there's no code in main.go, we still get some default generated functions - I assume this is due to changes in the auto-generation code, to always apply.

cc @sipsma

I'll confirm this is the case to verify there's no deeper issue here, but yeah I believe this is happening because the engine gives the module's context to the go SDK, it sees no main.go and fills in the default one, then the engine asks that what objects+functions it has and this is the result.
I think a lawyer could probably make a compelling case that this almost correct behavior 😄 But it is undeniably weird and surprising.
I'd need to think about what the fix would be too. Right now the engine just always runs codegen on modules when loaded (relying on cache to save work), which keeps things simple and consistent. May need to add some kludge somewhere to conditionally not do that? But then that wouldn't handle the case where the dev hasn't run dagger develop (formerly dagger sync)... Unsure.

This is what came to mind:
❯ dagger init --sdk=go --name=playground --source .
Initialized module playground in .
❯ rm main.go
❯ echo GrepDir > wat.txt
❯ ls
querybuilder  dagger.gen.go  dagger.json  go.mod  go.sum  wat.txt
❯ dagger call grep-dir --directory-arg=. --pattern="GrepDir"
./dagger.gen.go:		case "GrepDir":
./dagger.gen.go:			return (*Playground).GrepDir(&parent, ctx, directoryArg, pattern)
./dagger.gen.go:						dag.Function("GrepDir",
./dagger.gen.go:							WithDescription("example usage: \"dagger call grep-dir --directory-arg . --pattern GrepDir\"").
./wat.txt:GrepDir


Allow one application to subscribe multiple times on same topic?

With the way the current publish/subscribe API is set up, it's not possible to have one application subscribing multiple times on the same topic.  I have the following example in mind:
My application hosts an "Order API".  Each time an order is created through the API, the order gets published on the "ordertopic".  For each incoming order, two parallel actions have to be executed.  In this case, I would like to subscribe twice on the "ordertopic", to handle each of the actions individually.  This is currently not possible.
As a workaround, I can of course create separate applications for that, but this would over-complicate the management, monitoring and operational side.  Is there an option to allow for example multiple "channels" (or whatever naming) within an application that subscribe on messages?
  GET http://localhost:<appPort>/dapr/subscribe

  [
      { "topic" : "ordertopic", "channel" : "action1" },
      { "topic" : "ordertopic", "channel" : "action2" }
  ]

Message delivery could be performed in this scenario on this URI:
  POST http://localhost:<appPort>/<topic>/<channel>

Interested to hear your view on this!
Thanks
Toon

In Pub/Sub, a given set of consumers within a group will only receive a message once, unless a failure has occurred or the message has been rejected.
A set of consumers with a different group ID/consumer ID (in this case, represented by the Dapr ID) will get the same message.
Usually what you ask for can be architected in two ways:

Since these are really two independent actions you want to take, they should be represented as different topics. You keep one app, but publish twice (ordertopic1, ordertopic2, or ordertopic.action1 and ordertopic.actions2).

You then have the advantages of confirming or rejecting a message on a per action (topic) basis.

Listen on ordertopic and execute in parallel in your app, confirming (acking) or rejecting the message based on completion of the two tasks, one of them or none at all, depending on your needs.

Hi,

Option 1 is not valid to me, because the publisher is not aware of what actions will be performed on the message.  Today it might be 1 action, in the future it might be 3 actions.  The publisher should not be aware of it.

Option 2 is kind of a workaround, which complicates things in your application.  What if one action fails and one is successful?  You don't want to start compensating, etc...

In such a scenario, I would always go for two independent subscribers.  That's what makes the pub/sub pattern so powerful.  Because in Dapr, a subscriber is represented by the Dapr App Id, this is not possible inside a single application.  Therefor my request to introduce the ability to have multiple subscribers within on app, as this is very common imo.

Can you show an example of how you would achieve that with any pub/sub system today?

Also, something we discussed and which I think might enable your scenario is allowing the /subscribe endpoint from your app to return a topic name to subscribe on, with an addition of multiple callback urls into your app.
Something like:
GET http://localhost:<appPort>/dapr/subscribe

  [
      { "topic" : "ordertopic", "handlers" : ["action1", "action2"] }
  ]

Have one application subscribing with "multiple threads" on the same topic, but on each a dedicated subscription is quite common.  I've done this often with Azure Service Bus.

I like the idea of multiple handles, if each handler gets its own dedicated subscription on the topic.  If one message is sent to the topic, the application gets invoked twice:

http://localhost:port/ordertopic/action1
http://localhost:port/ordertopic/action2

Ideally you can even (optionally) configure the URL per handler, because I fear that some folks don't like the "naming-convention" based and would prefer to control the URL's themselves.

Why not allow subscription as follows with each subscription being a dedicated client subscription?

Something like:
GET http://localhost:<appPort>/dapr/subscribe

  [
      { "topic" : "ordertopic", "handlers" : "action1" }
      { "topic" : "ordertopic", "handlers" : "action2" }
  ]


[Bake] - Incorrect namespace for MethodNotAllowedException

What Happened
\Cake\Datasource\Exception\MethodNotAllowedException is incorrect
Expected Behavior
Use @throws \Cake\Http\Exception\MethodNotAllowedException
Version and Platform (please complete the following information):

OS/Platform: Alpine/Docker
CakePHP: 4.2
MixerApi Version: 0.2.5

Duplicate of #40


Resuming / retraining the model

System Info
#574 Although resume_from_checkpoint is now working after @llohann-speranca solved the issue but now finetuning again with new data using train(resume_from_checkpoint) and then testing it makes it forget the old datas i.e. wont remember the things in old dataset.
Attaching the code  below:
import json
import os
import bitsandbytes as bnb
import pandas as pd
import torch
import torch.nn as nn
import transformers
from datasets import load_dataset
from peft import (
    LoraConfig,
    PeftConfig,
    PeftModel,
    get_peft_model,
    prepare_model_for_kbit_training,
)
from transformers import (
    AutoConfig,
    AutoModelForCausalLM,
    AutoTokenizer,
    BitsAndBytesConfig,
)

os.environ["CUDA_VISIBLE_DEVICES"] = "0"

MODEL_NAME = "tiiuae/falcon-7b"
bnb_config = BitsAndBytesConfig(
    load_in_4bit=True,
    bnb_4bit_use_double_quant=True,
    bnb_4bit_quant_type="nf4",
    bnb_4bit_compute_dtype=torch.bfloat16,
)
model = AutoModelForCausalLM.from_pretrained(
    MODEL_NAME,
    device_map="auto",
    trust_remote_code=True,
    quantization_config=bnb_config
)
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
tokenizer.pad_token = tokenizer.eos_token

def print_trainable_parameters(model):
    """
    Prints the number of trainable parameters in the model.
    """
    trainable_params = 0
    all_param = 0
    for _, param in model.named_parameters():
        all_param += param.numel()
        if param.requires_grad:
            trainable_params += param.numel()
    print(
        f"trainable params: {trainable_params} || all params: {all_param} || trainable%: {100 * trainable_params / all_param}"
    )

model.gradient_checkpointing_enable()
model = prepare_model_for_kbit_training(model)
config = LoraConfig(
    r=16,
    lora_alpha=32,
    target_modules=["query_key_value"],
    lora_dropout=0.05,
    bias="none",
    task_type="CAUSAL_LM"
)
model = get_peft_model(model, config)
print_trainable_parameters(model)

data = load_dataset("json", data_files="../localGPT/output.json")

def generate_prompt(data_point):
    return f"""
<human>: {data_point["question"]}
<assistant>: {data_point["answer"]}
""".strip()

def generate_and_tokenize_prompt(data_point):
    full_prompt = generate_prompt(data_point)
    tokenized_full_prompt = tokenizer(full_prompt, padding=True, truncation=True)
    return tokenized_full_prompt

data = data["train"].shuffle().map(generate_and_tokenize_prompt)

OUTPUT_DIR = "outputs"
training_args = transformers.TrainingArguments(
        per_device_train_batch_size=1,
        gradient_accumulation_steps=4,
        num_train_epochs=1,
        warmup_ratio=0.05,
        max_steps=80,
        learning_rate=2e-4,
        fp16=True,
        logging_steps=1,
        save_total_limit=3,
        output_dir=OUTPUT_DIR,
        optim="paged_adamw_8bit",
        lr_scheduler_type="cosine",
)

trainer = transformers.Trainer(
    model=model,
    train_dataset=data,
    args=training_args,
    data_collator=transformers.DataCollatorForLanguageModeling(tokenizer, mlm=False)
)

model.config.use_cache = False
trainer.train(resume_from_checkpoint=True)
trainer.save_model(os.path.join(OUTPUT_DIR, "checkpoint-2"))

PEFT_MODEL = OUTPUT_DIR+"/checkpoint-2"
config = PeftConfig.from_pretrained(PEFT_MODEL)
model = AutoModelForCausalLM.from_pretrained(
    config.base_model_name_or_path,
    return_dict=True,
    quantization_config=bnb_config,
    device_map="auto",
    trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained(config.base_model_name_or_path)
tokenizer.pad_token = tokenizer.eos_token
model = PeftModel.from_pretrained(model, PEFT_MODEL)
generation_config = model.generation_config
generation_config.max_new_tokens = 20
generation_config.temperature = 0
generation_config.top_p = 0.7
generation_config.num_return_sequences = 1
generation_config.pad_token_id = tokenizer.eos_token_id
generation_config.eos_token_id = tokenizer.eos_token_id

DEVICE = "cuda:0"

prompt = """
<human>:What is my cat's name?
<assistant>:
""".strip()

encoding = tokenizer(prompt, return_tensors="pt").to(DEVICE)
with torch.inference_mode():
    outputs = model.generate(
        input_ids=encoding.input_ids,
        attention_mask=encoding.attention_mask,
        generation_config=generation_config,
    )
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

Who can help?
@younesbelkada @pacman100
Information

[ ] The official example scripts
[X] My own modified scripts

Tasks

[ ] An officially supported task in the examples folder
[x] My own task or dataset (give details below)

Reproduction
I trained my model for my cats name in first iteration and saved it in checkpoint-1 then retrained it for my dogs name although now it knows my dogs name it forgets my cats name
Expected behavior
To remember my cats name

No after training it on a data set I save the model, I want to further finetune it with a new dataset but I want the old model to remember the old stuff or else what would be the point of saving it and train it again I can just train the base model again.
Sure I am attaching the code block's paste bin here :  https://pastebin.pl/view/4e77a13d

@younesbelkada any idea how to fix this?

Hey so @younesbelkada for example I train it with Prompt:"What's my cats name" and answer:"Tom" it will reply Tom to the same question. But after training it to the prompt:"What's my dogs name?", Answer:"Bob" . Then if I ask what's my dogs name it'll reply with bob. But if I ask what my cats name it'll reply with "Bob" or maybe sometimes repeat the question

@adityaaryan77 can you paste your error? One needs to read your entire convs and question to figure out what your issue is. The title also doesn't provide a description or mention of the specific issue either.

perhaps related: https://github.com/huggingface/peft/issues/685

original falcon qlora: https://gist.github.com/pacman100/1731b41f7a90a87b457e8c5415ff1c14

This may very well be correct behavior depending on your data and on your training.
If you train, both times, a single example text for the usual amount of steps then the model would likely reply with the currently trained name to any similar question. Essentially, you have induced catastrophic forgetting.
To diagnose this, it would help to output the logits, rank them, and output the top k token_ids. Then, over the course of fine-tuning, see how these logits change.


release new gem

Can you release 2.0.1 with the crop_first changes included?

Hi @typeoneerror,
released the 2.1.0 to follow the semver.


How to get URL file

After I select a file from Google Drive, DropBox, is there a way for me to get url for image?
Ex: Url Image: https://drive.google.com/file/d/10qJfAEHCPaVC9o-Xbz6K__0NRCWwMa9d/view
Many Thank

Hi @anhtu0101 , I'm afraid that currently not. When you select a remote file what happens is that this file will be cached locally so you can actually access its absolute path and work with it (eg. modify, upload it, etc.).
What you are looking for is a remote URI for that file. It's a bit out of what this package does and may lead to users expecting an absolute path and instead loading a remote, but it's a good suggestion. May consider it in a separate method in a future (eg. getRemotePath() which will only allow to select paths from clouds).

@miguelpruivo Thank you for your support, this is a great Packages...

Moved to #99.


[chore] optimize e2e folder struct

optimize e2e folder struct

hi personally, I think testsuite.yaml should not be placed in the data directory, just keep the status quo.

hi, is this the reason why move the testsuite.yaml ?

hi personally, I think testsuite.yaml should not be placed in the data directory, just keep the status quo.

got it. I will restore it.

 hi, is this the reason why move the testsuite.yaml ?

no, here are some of my personal thoughts, I think these are data configurations and the e2e tests are occasional errors. It can't be reproduced locally, and I'm looking into keeping a running log of the system in github ci.

@tomsun28 restore it, ptal


How can the taken photo/selected be displayed in the app?

I have installed the default react app and then added the code from this project, but when I try to reload it I get a "Cannot read property 'avatarSource' of null"

Hey @mihaivinaga here is my approach (i've simplified all the react classes).
I have three components.
A master component (CameraSample) and two sub components
https://gist.github.com/banderson623/da98e46f1946e8914a97.

Hello @banderson623 thank you for your response, I've tried your code but I think I am to dumb to figure out the missing parts :)
This is code:
'use strict';

var React = require('react-native');
var UIImagePickerManager = require('NativeModules').UIImagePickerManager;

var {
    AppRegistry,
    Text,
    View,
    TouchableHighlight,
    Image
    } = React;

var ImageSelector = React.createClass({

    options: {
        title: 'Select the Picture',
        // cancelButtonTitle: 'Cancel',
        // takePhotoButtonTitle: 'Take Photo...',
        chooseFromLibraryButtonTitle: 'Choose from Library...',
        quality: 0.2,
        allowsEditing: false,
        noData: false,
        storageOptions: {
            skipBackup: true,
            path: 'images'
        }
    },

    // this is called when a button is pressed.
    showCamera: function(){
        UIImagePickerManager.launchCamera(this.options, (didCancel, response) => {
            if (didCancel) {
                console.log('User cancelled image picker');
            }

            else {
                // Get the source and set the state
                const source = {uri: response.uri ,isStatic: true};

                // call back to the function handed to me by the parent component
                this.props.onSourceChange(source);
            }
        });
    },
    render: function () {
        return(
            <View>
                <TouchableHighlight onPress={this.showCamera}>
                    <Text>1234</Text>
                </TouchableHighlight>
            </View>
        )
    }
});

var CameraSample = React.createClass({
    getInitialState: function() {
        return {
            imageSource: null
        };
    },

    setImage: function(src){
        this.setState({
            imageSource: src
        })
    },

    render: function(){
        return (
            <View>
                <ImagePane source={this.state.imageSource}/>
                <ImageSelector onSourceChange={this.setImage}/>
            </View>
        );
    }
});

var ImagePane = React.createClass({

    render: function(){
        return (
            <View>
                <Image source={this.props.source}/>
            </View>
        );
    }
});

AppRegistry.registerComponent('AwesomeProject', () => CameraSample);

Cant get it to work. Do you have a full code example because I am really a rookie regarding react and I'm trying to figure it out while playing with it.
Thanks

To be honest, I am brand new to this as well, so i might be missing some pieces.
One thing to try is to put console.log statements all over so you can see what is going on, this helped me a bunch. Give that a shot and make sure that showCamera is being called, as is setImage.
Also it can be simplified into a single component if you want, so you don't need those prop callbacks.

Do you have a working example which you can paste here?

Hey @mihaivinaga here is the basic AwesomeProject with the addition of Marc's library and showing the image on iOS: https://github.com/banderson623/react-native-image-picker-example

@mihaivinaga A couple things might be happening.
When you upload your photo from the picker, this line contains the source of the image:
const source = {uri: response.uri ,isStatic: true};
(on a mac) the uri  will look like "file://Users/../../simulator/tmpdir/tmpdir/asdfasd.jpg"
So what to do? Add this line after you declar source:
console.log(response);

Check if this file actually exists after uploading
When you reload your simulator, it reloads in a different directory and usually breaks the image. I am currently facing this issue :/


Ops average

Pull Request Checklist:

This PR adds average_over_dims
[x] Tests for the changes have been added (for bug fixes / features)
[x] Documentation has been added / updated (for bug fixes / features)
[x] HISTORY.rst has been updated (with summary of main changes)
[x] I have added my relevant user information to AUTHORS.md

What kind of change does this PR introduce?:
Adds average_over_dims in clisops.core and clisops.ops and restructures the operations within clisops.ops to use a base operation.

I have removed the checkbox in the PR template to call bumpversion minor as we haven't really been using this as [art of our versioning/release procedure
Requires https://github.com/roocs/roocs-utils/pull/55

Does this PR introduce a breaking change?:
No just adds average_over_dims

Other information:
See discussion in PR #109 for resolving conflicts with average_shape @aulemahal please review this PR as well

@Zeitsperre Yes sorry - I mentioned that it requires https://github.com/roocs/roocs-utils/pull/55. This hasn't been merged yet as it will break the file naming in the current clisops master.
Once the averaging is in I'll release roocs-utils then clisops so that clisops isn't dependent on the master branch of roocs-utils any more.
Thanks for looking through - It would be great to have a review from @aulemahal (Couldn't request it through github!)

@agstephens @ellesmith88 Once this is merged, @aulemahal tells me will be able to integrate it into his branch to finalize the work there. So I guess the priority is finish #125 → finish #109 → release?

@agstephens I can go ahead and merge the roocs-utils branch needed for this then this PR, I think we're happy that this is finished?


Moves the location of the Zero width space

Moves zero width space to where the message is formed to avoid issues with rss force.

... 1 moment, this causes a different problem


Switch component doesn't toggle.

Description

Launch the app
Tap and hold on switcher
Move switcher forward and back still Holding it
-The switcher will stuck in undefined state and you can't to change it.(It will always white or green with no reaction on taps)

Reproduction
https://rnplay.org/apps/Jatmhg
Additional Information

React Native version: "react-native": "^0.35.0"
Platform: (try on) Android
Operating System: MacOS

Thanks for the report! This isn't super easy to reproduce but it is possible, I found it's easier when you move it back and forth but also rather than releasing the touch, you move your finger off of the screen.

@facebook-github-bot icebox

Ok I think I know what the issue is. I encountered the same problem so I started removing properties from my Switch Component. Once I removed thumbTintColor, it works perfectly fine

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with Canny! Check out its new home: https://react-native.canny.io/feature-requests/p/switch-component-doesnt-toggle

This is still happening on React-Native 0.45.1

Hello @hramos
This issue is still happening in React-native 0.48 . I also tried removing all the properties on switch as suggested by @JeffreyLeeSpokeo but issue still persists.

Same problem with react 0.47 and 0.49 this issue has to be reopen i tested in fresh new app and had the same issue

This is still prevalent in RN 0.49. This issue should remain open.

Looks like it got reopened as #15632

same here 0.42

Getting it in 0.55.4 as well - huge problem!

Yep, confirming it being broken in 0.55.4. Even without any properties it still stays in one state state and cannot be changed (not by clicking, not by dragging). They seem to ignore it, maybe creating new issue would draw some attention?


en_uk.json -> en_gb.json in 1.13+

For some reason, CI/CD only included a en_uk.json in 1.21.0 for MC versions 1.13+.
We want to fix that for the next release :)

Case is clear: crowdin.yml is wrongly configured!


DateField

Can I represent more dates in DateField then choose one? I need DatePicker here in terminal?

Hi, thanks for asking.  Do you mean:

Enter a range of dates? (e.g. 2001-01-01 to 2009-01-01)
Or ability to support multiple date formats
Or to have a visual day calendar with arrows for year/month?

Whatever It would be good when I can select a date from Now to some date

Having a fully tui DatePicker would definetly be cool and a good ticket for the backlog.  But for the 'here and now' you might have to just consider using 2 DateField instead?
Start Date: |_______________|
End Date  : |_______________|

No, the user has to select one date from that range, but I'll use multiple combo boxes first for months, second for days