making react ssr app work offline

I am using https://github.com/erikras/react-redux-universal-hot-example boilerplate for my react-app that uses server side rendering.
My question is how do I make it work offline?
All of the project links that are listed as using offline-plugin, none of those really load when I go offline.
The browser just says there is no internet connection. For ex: https://phenomic.io/ .
Is that not what it is supposed to do?
Also, how do I know if my resources are being loaded from CacheStorage. I see disk cache and memory cache in my network calls but those are there even if I am not using offline plugin. How do I know that the caching is actually working, being loaded from Cache Storage and network calls are not going through.
Also, For the app-shell, I do not have index.html or any html for that matter. As you can see in the boilerplate, is has Html.js inside of helpers folder and that is what generated the page and injects the route through server side rendering.
I see service worker enabled in my project and I see webpack resources listed in cache storages but my page does not load when offline. How do I fix this?
My code and project follow exactlly the same structure as in the boilerplate.

@simran-k loading https://phenomic.io/ in offline mode after first having it cached shows the resources being loaded from the service worker like it's supposed to - is this not what you are seeing?

@GGAlanSmithee : That is not what I see at all for phenomic.io. I am on Chrome and ubuntu system.
when online but after caching of assets:

when offline

My website is running on localhost and http but even the websites listed are not working offline for me as mentioned

What can you see regarding phenomic.io if you go to chrome://serviceworker-internals/ ?

This is what I see:

I can see our version id differs quite a lot, just to make sure there is no ghost haunting, try closing all phenomic tabs, delete the phenomic sw from chrome://serviceworker-internals/ and then reload phenomic.io first normally, then without internet connection

@GGAlanSmithee : Hey, What exactly is a version id and what it exactly does? Turns out the page does not display if I have my console open.loads if not. So, I was always using offline checkbox from console tool and it always failed that way.  But I am never really able to see "from service worker" as you do in your snapshot. Would you know why is this happening and what can I do to solve this?

@simran-k Sorry for the confusion, the version id is unrelated.
Using the offline tick works, and should work:
Please try doing exactly this:

Close any tab with phenomic.io
Remove current service worker from chrome://serviceworker-internals/
Open phenomic.io in a new tab
Close the tab
Open phenomic.io in a new tab
Reload the tab with network throttling = offline

Does this work as expected?

All of the project links that are listed as using offline-plugin, none of those really load when I go offline.

Interesting. What's none really load?

The browser just says there is no internet connection. For ex: https://phenomic.io/ .

It works for me just fine.

That is not what I see at all for phenomic.io. I am on Chrome and ubuntu system.
My website is running on localhost and http but even the websites listed are not working offline for me as mentioned. Also, yes, SW installed properly and is running

We cannot help you because something wrong is with your browser.

So, I was always using offline checkbox from console tool and it always failed that way.  But I am never really able to see "from service worker" as you do in your snapshot. Would you know why is this happening and what can I do to solve this?

Something wrong with your browser. Try Firefox maybe. Reinstall Chrome. Or maybe even tell us your Chrome version. Anyway, closing now. Feel free to chat here though.
@GGAlanSmithee thanks for handling this! 👌

Oh, why I'm closing this: Your browser isn't working properly so we won't be able to figure out what's its issue or offline-plugin's. Once your browser works properly and basic websites which are offline-capable start working, then we can open another issue and try to figure out offline-plugin's issues, if any.

Hi,
I have a similar Issue:
Service workers seams to be registered but on offline does not work. What could be the issue?
Maybe the "/" http://localhost:8888/ instead of http://localhost:8888
Screenshots

@primozs I don't remember actually. I saw such behavior couple of times, but cannot remember what went wrong. Is this happening only for your website or with all websites which use ServiceWorker (e.g. same as the author of this issue have)?

Hi, @NekR
https://phenomic.io/ works for me and there I actually noticed that when I set offline service worker list stays the same in DevTools. I don't think "/" is the problem since service workers from others also have it.
My webpack config is:
Result is the same without this custom settings
new OfflinePlugin({
      publicPath: '/',
      ServiceWorker: {
        publicPath: '/sw.js',
        events: true
      },
      AppCache: {
        events: true
      }
    })

Runtime I have like this:
Screenshots were made with NODE_ENV=production SERVER=dev pm2 start build/dist/server/start.js
// This code is being run only on the client. Could this be the issue?
if (process.env.NODE_ENV === 'production') {
  const OfflinePlugin = require('offline-plugin/runtime');

  OfflinePlugin.install({
    onInstalled: function() {
      store.dispatch({ type: 'SW_INSTALLED'});
    },

    onUpdateReady: function() {
      OfflinePlugin.applyUpdate();
    },

    onUpdated: function() {
      window.location.reload();
    }
  });
}

my final webpack config is
new OfflinePlugin({
      safeToUseOptionalCaches: true,
      externals: [
        'apple-touch-icon.png',
        'favicon-32x32.png',
        'favicon-16x16.png',
        'favicon.png',
        'safari-pinned-tab.svg',
        '*.ttf'
      ],
      publicPath: '/',
      caches: {
        main: [
          'app.*.css',
          'vendor.*.js',
          'app.*.js',
        ],
        additional: [
          ':externals:'
        ],
        optional: [
          ':rest:'
        ]
      },

      ServiceWorker: {
        publicPath: '/sw.js',
        events: true
      },
      AppCache: {
        events: true
      }
    })

I have deployed the app to http domain and for a while it was working offline. Now its not.
It seams It works a bit random. https://pisarna.naviter.com:8080/

@primozs if you will have a repro I'll be able to help you / debug the code. Or you meant that you are using phenomic? I recently built a fully SSR phenomic app with offline-plugin and everything was just fine.

@primozs okay, so you just posted a link, I wanted to say that I missed the comment and you deleted it. Turns out you posted it in a minute before my comment.
So.. what we are going to do with this?

@NekR Hi I dont have public repo but this is currently publicly debuggable https://pisarna.naviter.com:8080/

@primozs that will work just fine :-) I don't need a public repo to debug.

@NekR :) Thx for your eyes

Okay, so externals option doesn't support wildcard so  '*.ttf' rule fails. But you use externals only in additional section so it's weird that it prevents whole SW installation. Maybe that isn't the reason though.
@primozs  Can you try to remove that rule and deploy website again?

@NekR Yes I will try! Thx

@primozs let me know the results please. I'll need to fix it if that was the issue.

@NekR Hey, its not working. When I made the deploy the first time it was working for a short while. Not sure but is it possible that the problem is that I don't have index.html to cache? Maybe the problem is also how react router and code splitting on routes works? Offline was working only on the   initial route. When I set routes in externals then it was making redirects to home page and routes were not accessible.

Well, not caching any html pages is the issue. It of course cannot be accessible offline if it has no html to display.

@GGAlanSmithee hey, if you have time, do you have any ideas about how to write clear docs about SPA/AppShell/routes and ServiceWorker.navigateFallbackURL option? Because I'm kind of tired figuring out issues with "no accessible on routes"..

@primozs in your case you need something like this, assuming / is where your AppShell is located. If you don't have one you should create it. Otherwise you will need to specify all your routes in externals manually.
new OfflinePlugin({
  safeToUseOptionalCaches: true,
  externals: [
    'apple-touch-icon.png',
    'favicon-32x32.png',
    'favicon-16x16.png',
    'favicon.png',
    'safari-pinned-tab.svg',
    '/'
  ],
  publicPath: '/',
  caches: {
    main: [
      '/',
      'app.*.css',
      'vendor.*.js',
      'app.*.js',
    ],
    additional: [
      ':externals:'
    ],
    optional: [
      ':rest:'
    ]
  },

  ServiceWorker: {
    publicPath: '/sw.js',
    events: true,
    navigateFallbackURL: '/'
  },
  AppCache: {
    events: true
  }
})

@NekR

@GGAlanSmithee hey, if you have time, do you have any ideas about how to write clear docs about SPA/AppShell/routes and ServiceWorker.navigateFallbackURL option?

sure! I  will try to get time tomorrow to send a PR
@primozs

I have deployed the app to http domain and for a while it was working offline. Now its not.

just to make sure - you are using https, right?

@GGAlanSmithee thank you!
Yeah, it's https, I have a link to website. SW is being installed, it just doesn't serve html when offline and I missed that html isn't being cached.

@GGAlanSmithee Hi, Yes I am using https. I think when it was kind of working I had '/' in externals.
I will update the config like @NekR suggested. Thank you both!
Cheers


Provide runtime switch to use procfs or sched_getaffinity()

mOS has Linux and LWK partition on a node. When running apps on LWK we won't be able use /proc/self/status to determine the affinity mask of the rank. But in a different situation when running app on Linux partition of mOS we could use procfs instead of sched_getaffinity().
Currently the solution is to use a different build of GeoPM on mOS which uses '--disable-procfs'. But I wonder if a dynamic switch is more useful with a default behavior set to use sched_getaffinity ?

procfs option is no longer supported.


Difference between keras and tf.keras

I found tf.keras is quite different with keras, in keras, bug occur when you use normal function instead Lambda wrapper function, bug is "AttributeError: 'NoneType' object has no attribute '_inbound_nodes'", while in tf.keras, it is allowed use normal function and tf.keras.layers. funtion simultaneously.
keras seems use different data structure, create innode between layers.

Please read this https://github.com/keras-team/keras/releases/tag/2.4.0


Numbers of barcode Get wrong

Hi I have some issues whit the codebar-reader in live stream.
The  live stream reader throw me a wrong number.
Its there a way I can handle the live stream reader.
Sorry me English. Your Library is great!!

I have the same problem: I understand that it depends on my poor webcam, but a false positive is always a big problem... Isn't there anything we can do?

Hi, I have a clue of how this working:
first you need to know what type of code are you reading, for example in mi case the type code is an "ean reader"
here I let you al the codes that quagga works:

I recommend you only use one code type.
also you need a perfect Ilumination.
If you had more questions or doubts, ask me... i apologize again for my Englis

Yes, I tried every combination, but the results are always changing, for the same barcode, at least for me...

hello @eddyeHa
i have the same issue, are you able to solve the issue??

Hello everyone!
i used the below order-
decoder: {
readers: [
'code_128_reader',
'ean_8_reader',
'upc_reader',
'upc_e_reader'
]
This is the order i used and it recognizes all the mentioned code with less false positives. but if i add a new barcode type then its having problem.
note: try to work with single type of barcode.


Correction for raw affiliation Université de Reims Champagne-Ardenne, CIRLEP, Reims, France

Correction needed for raw affiliation Université de Reims Champagne-Ardenne, CIRLEP, Reims, France
raw_affiliation_name: Université de Reims Champagne-Ardenne, CIRLEP, Reims, France
new_rors: 03hypw319;04j8jrf09
previous_rors: 03hypw319
works_examples: W4404435659;W4404435670;W4404435710;W4404435677;W4404435680
contact: 319eb1b88b78832f740d20177bd123e9:a82688a8c5e3c02814634bd3 @ univ-reims.fr

This issue was accepted and ingested by the OpenAlex team on 2024-12-19. The new affiliations should be visible within the next 7 days.


feat: Add custom shell flag option for command execution

proposal
Ability to alter the flag that is passed to the $SHELL command.

For example, if the -c flag could be altered to -e, one could use jsc (JavaScriptCore) to execute JavaScript code without adding jsc -e to every line.
# List available globals in 'jsc' and preview their properties
# 'jsc' only comes by default on macOS
SHELL=/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Helpers/jsc \
  FZF_SHELL_FLAG="-e" \
  fzf \
  --bind 'start:reload:print(Object.getOwnPropertyNames(globalThis).join("\n"))' \
  --bind 'enter:become:print((![]+[])[+[]]+([][[]]+[])[+[]]+([][[]]+[])[+!![]])' \
  --preview 'const f = globalThis[{}]; if (f) { print(`{} Static Properties\n${Object.getOwnPropertyNames(f).sort().join("\n")}`); if (f.prototype) print(`\n{} Prototype Properties\n${Object.getOwnPropertyNames(f.prototype).sort().join("\n")}`)}'

Another example using bun and --print.
# [bun] https://github.com/oven-sh/bun
# brew install oven-sh/bun/bun
# [gh] https://github.com/cli/cli
# Show starred repos and preview the date of the first commit in a Korean time format
user_name=gh api graphql -f query='{viewer{login}}' --jq '..|.login? // empty'
gh api users/${user_name}/starred \
  --jq '.[] | select(.visibility == "public") | .full_name' |
  SHELL="$(which bun)" FZF_SHELL_FLAG="--print" \
    fzf --prompt "Starred [${user_name}]" \
	--preview '((repo)=>fetch(`https://api.github.com/repos/${repo}/commits?per_page=1`).then((i)=>fetch(i.headers.get("link")?.match(/http[^>]+/g)?.at(-1)).then((t)=>t.json().then((S)=>`First commit: ${repo}\n${new Intl.DateTimeFormat("ko-Kr",{timeStyle:"full",dateStyle:"full"}).format(new Date(S[0].commit.author.date))}`))))({})'

Pro:

Enables the execution of commands without requiring the flag and command to be prepended on every
line, which also diminishes the need for one round of quoting.

Con:

It may lead to confusion and inconsistencies if not used carefully and documented clearly.

Issues

[ ] Writing tests
[ ] Windows (not tested at all)
[ ] Better documention

Thanks, but I'm not sure about this. Correct me if I'm wrong, but we can achieve the same thing by setting $SHELL to a simple wrapper script that handles the flags, which I think is not bad.
fzf2() (
  export SHELL=/tmp/fzfsh
  if ! [[ -r $SHELL ]]; then
    echo '#!/bin/sh' > "$SHELL"
    echo 'shift; echo "$@"' >> "$SHELL"
    chmod +x "$SHELL"
  fi
  command fzf "$@"
)

fzf2 --preview 'run this command: {}'

Having this option may save a few lines of code in some cases, but I'm afraid it will be a niche feature that few will use.

The Windows situation is a bit messy now, and adding support for this might make it more complicated.
https://github.com/junegunn/fzf/blob/e86b81bbf5c55344f4e29060b71eb1ab563296fe/src/util/util_windows.go#L41-L63

simple wrapper script that handles the flags

Your wrapper script is a simple and effective solution. No need for a new feature that few would utilize.

that few would utilize

Technically, this was just my guess, so I can't be 100% sure. But if I recall correctly, there hasn't been a feature request for this in the past years. But if you still like the idea, we can keep this PR open for a while and see what others think.
IMO, if we're really going to add this, it should be easier to use than 1. setting two environment variables, 2. or creating a wrapper script. Something like fzf --with-shell "$SHELL -c" maybe? Hmm, then we would have another problem of splitting the arguments without the help from a shell. (e.g. fzf --with-shell 'custom-shell --title "hello fzf" -c')

I can't reopen the PR as the repo was deleted, but I will file an issue report.


[Enhancement] Integrate Prometheus and Grafana for monitoring in playground

Closes #94

Add monitoring information to the README
Add Prometheus and Grafana settings to docker-compose
Add a basic Prometheus configuration file
Add a basic Grafana configuration, provision data source to Prometheus, and provision a dashboard to Gravitino Playground
Add port checks in playground.sh

Fixes

Change - 18888:8888 to - "18888:8888" in the README for correct port mapping format.
Change docker-compose ps to docker-compose ps -a to view all containers (including stopped ones).

Note: Please ignore the high JVM Non-Heap Memory Usage and JVM Direct Memory Usage caused by my WSL2 environment.

@orenccl
Very coooool !!!!
Thank you for your contribution.

cool

At the first commit, gravitino-playground.json is a bit large(109KB).
This file is a preset for the Gravitino dashboard.
In the second commit, I reduced this file by minifying it, bringing the size down to 53KB (less than 50% of the original size).
Why this file is so large

I included almost every metric provided by Gravitino so others don't have to create panels themselves.
The preset dashboard provided on the official website is even 378KB.  [Node Exporter Full with Node Name | Grafana Labs]
Therefore, I think 53KB is reasonable given the level of detail in the dashboard.

Below is current look:

Hope 53KB is fine.
If not, I can reduce it further by removing rarely used metrics, like this.

Alternatively, I can split it into three different dashboards; each one will be smaller, but the total size will remain the same.

@xunliu  I’d love to hear your perspective.

Here’s an example of minified JSON for those who may not be familiar with it.

Credit: https://devutils.com/guide/json-formattervalidator-7/

Hi @xunliu
The home path has been configured to go directly to the Grafana dashboard.


Geotiff image slows down Openlayers and other layer is no longer refreshed

When displaying a small geotiff file (an RGB image from a screenshot of Google maps, geo-referenced using QGIS), the image does not appear fully on the map (top part is missing), the browser starts to use 100% CPU, and when one zooms out, the OSM layer is no longer refreshed properly.
To Reproduce
$ unzip slowlayer.zip
$ cd slowlayer
$ npm install
$ npx http-server --cors "*" tiffs &
$ npm start

Then point your browser to localhost:3000.
The image should be a rectangle, but the top part is missing and it is displayed as a pentagon.
Zoom out - observe that OSM no longer loads new tiles.
The problem occurs both on Firefox and Chrome.
slowlayer.zip

That is a cache size issue similar to #13670

Also small tiles such as these do not render well with WebGL as is there is no interpolation across tile edges so when you zoom in the numerous edges become very noticeeable

Ah, I had wondered why that is.  Thanks for the explanation!


Tracking for next Shadow Rift NC

Three new properties:
shadowRiftTotalTurns - fights and NCs in the Shadow Rift that count as turns (monsters & lodestone)
shadowRiftLastNC - the turn of the last encounter that counts as an NC (Labyrinth and bosses)
encountersUntilSRChoice - how many turns until the next NC
Info in This forum post by Malibu Stacey citing info from canonnfire40.

Further study of my logs indicate two misunderstandings:

Shadow boss increments turn in zone - AFTER saving current turn as last NC.
That advances turn towards next NC.
Therefore, it was not the lodestone which did that.

I opened a new PR to fix this.
I'm considering just approving it, so that our users don't get upset and file a bug report on this PR. :)


Feature/pluggable backends

Hello Johannes,
I contacted you a few weeks ago about offering some of our internal enhancements and improvements back to the project. I have finally found some time to sit down and start to break the changes down into smaller parts. We took things a fair way down the road internally before I started this process of trying to give our improvements back and I very much regret not reaching out sooner!
Essentially our main use cases have been to use gofakes3 to act as a sort of mock in a testing context, where I destroy the fake S3 at the end of every test. In our internal fork, I simply wrote a shim for the BoltDB stuff which left most of the gofakes3 code in-tact. The way I made the changes in our internal fork was all-or-nothing though, not really appropriate for a PR as it would've broken the existing BoltDB use case. We have since had a second use case emerge internally: we want to point gofakes3 at an existing filesystem and just have it serve that. This PR attempts to make the storage backend interchangeable, so we can all have everything we want! 😄
I have a stack more improvements to contribute, like multipart upload support and prefix handling too, as well as a few other changes around error reporting that could get us closer to passing some of the s3 test suite. I didn't want to twist any of that together with this though because this PR is already quite large. I have tried my best to remain faithful to the existing code, but this is a fairly significant structural change and I hope I have been sufficiently respectful to the project!
I have added the stuff in error.go as an interim measure; the more S3-faithful error structure looks a bit different, but I needed a signal for "Not found" so as not to break the existing code.
I have also snuck in a fix for a date format bug in the Go AWS SDK that bit me a while ago. I reported it to the maintainer and it has been fixed in v1 of the SDK, but not yet in v2.
Thank you again for gofakes3, it has been incredibly helpful to us and really helped get our project out of a tight squeeze with a major, under-tested component.

Oh, wow! I didn't expect this to be merged so quickly. Thank you!!

How about you become a Collaborator on this?

Sure, if you're happy for me to do that! I'm very happy to help out. I've got a few more PRs that I'm preparing from our internal fork, are you happy for me to submit them for review over the next few days?

Sure! Let's improve this project!


Remove rustup script

Rust has been installed to the m1 runners using homebrew. The goal with this PR is to remove the security vulnerabilities that  curl'ing the rustup scripts has.

thanks, watching this.


MINOR: [C++] Fix MSVC compiler error

Downcast explicitly from double to long.
This fixes a regression introduced in ARROW-16521.

CI passed on my fork, will merge.


Ruby Sass is deprecated

Got this after $ bundle install :
Ruby Sass is deprecated and will be unmaintained as of 26 March 2019.

* If you use Sass as a command-line tool, we recommend using Dart Sass, the new
  primary implementation: https://sass-lang.com/install

* If you use Sass as a plug-in for a Ruby web framework, we recommend using the
  sassc gem: https://github.com/sass/sassc-ruby#readme

* For more details, please refer to the Sass blog:
  http://sass.logdown.com/posts/7081811

My guess is editting the gem configfile and replacing 'sass' with 'sassc' will do the job but not so sure about eventual conflicts it may bring.
Can anyone with more experiepnce/knowledge about this project tell what is necesary to update the sass gem?

@eupiteco did you try locally what you suggest, and did it work out?
@Anxh3l0 what do you think? For the new design would you use Sass and would @eupiteco's fix work?

The solution seems to be pretty straight forward, as seen here http://sass.logdown.com/posts/7081811. The problem is I did not found where is the config file for the Ruby packagers :sweat_smile:, can someone guide me through the files?

I would have thought there’s some more info in the Gemfile or Rakefile, but can’t find any.
Quickly searched for the relation to Jekyll and found this issue recommending sassc-ruby: https://github.com/jekyll/jekyll-sass-converter/issues/74
@eupiteco is that a good pointer maybe? :)

Found  it: our gemfile required the github-pages gem, witch required jekyll-sass-converter wich finally required sass. Good new is that eht sass/sassc issue is already solved within jekyll-sass-conveter. I just ran bundle install with no warnings nor problems.
That said, I am closing this issue. :tada:

I think I understand the significance of this. Muito obrigado @eupiteco. 👍 🎉


Don't ignore axis values of 0 when mapping axis events

Hopefully fixes #63972, but since I can't reproduce the issue, I cannot confirm that it does.

Superseded by #64531.


Unable to upload multiple files for filefields with attrs={'multiple': True}

I am only getting 1 file back from form.cleaned_data for filefields with attrs={'multiple': True} when I upload multiple files. I believe this is a duplicate of #98 and #58 but those solutions does not work out at all. Is it alright if this issue can be fixed?

i have the same problem !

uhm... I also have the same problem. Did you find a solution after 2 years


feat: added face type, subscription description on the profile card d…

…ynamically. Added oading state on login.  Optimization on composable components and minor bug fixes here and there.

typo 87 jadi 88


Emit Reset Events

Emitting a reset event when user calls analytics.reset(). This allows for external code to hook into the reset events and do further logic.

[X] I've included a changeset (psst. run yarn changeset. Read about changesets here).

Looks good. Seems like the event emitter is kind of an afterthought -- in node, the contract is very well defined and every event gets emitted on: https://github.com/segmentio/analytics-next/blob/03e6383ac6cc2411226887cbb8851ddbd03ae32d/packages/node/src/app/dispatch-emit.ts#L35

Yeah, agreed. The browser version emits separately in each of the track/identify/etc. calls with different parameters passed as extra context.


Insertion speed of new dataset elements

What is your issue?
In https://github.com/pydata/xarray/pull/7221 I showed that a major contributor the slowdown in inserting a new element was the cost associated with an internal only debugging assert statement.
The benchmarks results 7221 and 7222 are pretty useful to look at.
Thank you for encouraging the creation of a "benchmark" so that we can monitor the performance of element insertion.
Unfortunately, that was the only "free" lunch I got.
A few other minor improvements can be obtained with:
https://github.com/pydata/xarray/pull/7222
However, it seems to me that the fundamental reason this is "slow" is because element insertion is not so much "insertion" as it is:

Dataset Merge
Dataset Replacement of the internal methods.

This is really solidified in the https://github.com/pydata/xarray/blob/main/xarray/core/dataset.py#L4918
In my benchmarks, I found that in the limit of large datasets, list comprehensions of 1000 elements or more were often used to "search" for variables that were "indexed" https://github.com/pydata/xarray/blob/ca57e5cd984e626487636628b1d34dca85cc2e7c/xarray/core/merge.py#L267
I think a few speedsups can be obtained by avoiding these kinds of "searches" and list comprehensions. However, I think that the dataset would have to provide this kind of information to the merge_core routine, instead of the merge_core routine recreating it all the time.
Ultimately, I think you trade off "memory footprint" (due to the potential increase of datastructures you keep around) of a dataset, and "speed".
Anyway, I just wanted to share where I got.

I have thought a little about this as well and went and looked in my old code. Creating a data_vars dict with the data and then at the end creating the dataset seems to be the way to go:

import numpy as np
import xarray as xr
from time import perf_counter

# %% Inputs
names = np.core.defchararray.add("long_variable_name", np.arange(0, 100).astype(str))
time = np.array([0, 1])
coords = dict(time=time)
value = np.array(["0", "b"], dtype=str)

# %% Insert to Dataset with DataArray:
time_start = perf_counter()

ds = xr.Dataset(coords=coords)
for v in names:
    ds[v] = xr.DataArray(data=value, coords=coords)

time_end = perf_counter()
time_elapsed = time_end - time_start
print("Insert to Dataset with DataArray:", time_elapsed)

# %% Insert to Dataset with Variable:
time_start = perf_counter()

ds = xr.Dataset(coords=coords)
for v in names:
    ds[v] = xr.Variable("time", value)

time_end = perf_counter()
time_elapsed = time_end - time_start
print("Insert to Dataset with Variable:", time_elapsed)

# %% Insert to Dataset with tuple:
time_start = perf_counter()

ds = xr.Dataset(coords=coords)
for v in names:
    ds[v] = ("time", value)

time_end = perf_counter()
time_elapsed = time_end - time_start
print("Insert to Dataset with tuple:", time_elapsed)

# %% Dict of DataArray then create Dataset:
time_start = perf_counter()

data_vars = dict()
for v in names:
    data_vars[v] = xr.DataArray(data=value, coords=coords)
ds = xr.Dataset(data_vars=data_vars, coords=coords)

time_end = perf_counter()
time_elapsed = time_end - time_start
print("Dict of DataArrays then create Dataset:", time_elapsed)

# %% Dict of Variables then create Dataset:
time_start = perf_counter()

data_vars = dict()
for v in names:
    data_vars[v] = xr.Variable("time", value)
ds = xr.Dataset(data_vars=data_vars, coords=coords)

time_end = perf_counter()
time_elapsed = time_end - time_start
print("Dict of Variables then create Dataset:", time_elapsed)

# %% Dict of tuples then create Dataset:
time_start = perf_counter()

data_vars = dict()
for v in names:
    data_vars[v] = ("time", value)
ds = xr.Dataset(data_vars=data_vars, coords=coords)

time_end = perf_counter()
time_elapsed = time_end - time_start
print("Dict of tuples then create Dataset:", time_elapsed)

Insert to Dataset with DataArray: 0.3787728999996034
Insert to Dataset with Variable: 0.3083788999997523
Insert to Dataset with tuple: 0.30018929999960164
Dict of DataArrays then create Dataset: 0.07277609999982815
Dict of Variables then create Dataset: 0.005166500000086671
Dict of tuples then create Dataset: 0.003186699999787379  # Winner! :)

Ok, I don't think I have the right tools to really get to the bottom of this. The spyder profiler just seems to slowdown code too much. Any other tools to recommend?

xref: https://github.com/pandas-dev/pandas/pull/49393


Areas of the world fail to render at all

Log: https://mclo.gs/ptkEh8c

Try removing MoreCulling and/or DashLoader.


Gradient doesn't work with background-color

Following code doesn't work:
const HeroBlockWithBgImage = styled(HeroBlock)`
	background-image: url('/static/images/oil-rig.png');
	background-size: 50%;
	background-repeat: no-repeat;
	background-position: 100%;
	background-color: linear-gradient(to right, #000055 0%, #003099 100%);
`;

But the following works:
const HeroBlockWithBgImage = styled(HeroBlock)`
	background-image: url('/static/images/oil-rig.png');
	background-size: 50%;
	background-repeat: no-repeat;
	background-position: 100%;
	background: linear-gradient(to right, #000055 0%, #003099 100%);
`;

But that completely hides by background image ...

Gradients can't be used as background colors.

I couldn't fix either, so I tricked by created a div named overlay and set it over the wrapper, and manipulated its opacity
export const Wrapper = styled.div`
    width: 100vw;
    height: 100vh;
    background-image:url(${BKHero});
    background-position:top;
    background-size:cover;
    .overlay  {
        width:100vw;
        height:100vh;
        background:rgba(333, 444, 331, 0.4);
    }
`


Configure Datasource

Do i need to configure data sources in the gateway for AAS, like i have to in Power BI?

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

ID: 2b6e437d-7325-8f97-7d23-27f82cb1113b
Version Independent ID: 02e16c34-93d2-fe96-c724-33b2b62f0393
Content: On-premises data gateway for Azure Analysis Services
Content Source: articles/analysis-services/analysis-services-gateway.md
Service: azure-analysis-services
GitHub Login: @Minewiskan
Microsoft Alias: owend

@abbgrade You don't require on-premise data gateway to connect Power BI.

Reference: Connect with Power BI
Hope this helps.

@CHEEKATLAPRADEEP-MSFT I need it, if the Azure SQL is in a VNet.

@abbgrade Yes, if you have Azure SQL is deployed in a Vnet, it requires on-premise data gateway.
We will now proceed to close this thread. If there are further questions regarding this matter, please comment and we will gladly continue the discussion.


Refactor auction code

The entire change is a bit larger but each separate commit in this PR should be easy to understand. These are mostly low-hanging fruits and there are many more things we could do hrere (seperately ticketed in Jira).
I haven't tested the forms manually, so marking this PR as WIP for now.

@yuki24 feel free to merge at your discretion considering the approved code reviews -- no need to wait!


samples/tests: skip samples/tests disable MPU for s32ze series

On SoC series s32ze, Zephyr application cannot run with MPU disabled, skipping relevant samples/tests
PS D:\upstream\zephyr> west twister -p s32z270dc2_rtu0_r52 -W --short-build-path -T .\tests\subsys\llext\ -T .\samples\subsys\llext\
Renaming output directory to D:\upstream\zephyr\twister-out.9
INFO    - Using Ninja..
INFO    - Zephyr version: zephyr-v3.5.0-1015-g2b3c7d0a4d89
INFO    - Using 'zephyr' toolchain.
INFO    - Building initial testsuite list...
INFO    - Writing JSON report D:\upstream\zephyr\twister-out\testplan.json
Junction created for D:\upstream\zephyr\twister-out\twister_links\test_0 <<===>> D:\upstream\zephyr\twister-out\s32z270dc2_rtu0_r52\tests\subsys\llext\llext.simple.arm
Junction created for D:\upstream\zephyr\twister-out\twister_links\test_1 <<===>> D:\upstream\zephyr\twister-out\s32z270dc2_rtu0_r52\samples\subsys\llext\shell_loader\sample.llext.shell
INFO    - Adding tasks to the queue...
INFO    - Added initial list of jobs to queue
INFO    - Total complete: ←[32m   2/   2←[39m  100%  skipped: ←[33m   2←[39m, failed: ←[39m   0←[39m, error: ←[39m   0←[39m
INFO    - 2 test scenarios (2 test instances) selected, 2 configurations skipped (0 by static filter, 2 at runtime).
INFO    - 0 of 2 test configurations passed (0.00%), 0 failed, 0 errored, 2 skipped with 0 warnings in 20.01 seconds
INFO    - In total 0 test cases were executed, 2 skipped on 1 out of total 636 platforms (0.16%)
INFO    - 0 test configurations executed on platforms, 0 test configurations were only built.
INFO    - Saving reports...
INFO    - Writing JSON report D:\upstream\zephyr\twister-out\twister.json
INFO    - Writing xunit report D:\upstream\zephyr\twister-out\twister.xml...
INFO    - Writing xunit report D:\upstream\zephyr\twister-out\twister_report.xml...
INFO    - Run completed

The CI build fails due to this https://github.com/zephyrproject-rtos/zephyr/pull/64995, when that one got merged, and rebase this PR, the CI should green


Sql Failover group deployment timed out after 2 hours

SQL Failover group should have timeout for 2 days for seeding to complete. However, with Microsoft.Azure.Management.Resources.ResourceManagementClient (2.18.14-preview) it timed out for 2 hours returning failure code "The resource provision operation did not complete within the allowed timeout period.” The background deployment actually still deploying and completes. Seems there is not a explicit way to set the timeout in client side but fixed for 2 hours.
Error we got
Failed resources: Microsoft.Sql/servers/failoverGroups
i12ppuoo19/i12ppuoo19-fg has state Failed. Message: {
"error": {
"code": "ResourceDeploymentFailure",
"message": "The resource provision operation did not complete within the allowed timeout period. Please see
https://aka.ms/arm-deploy for usage details."
}
}

Close issue by retry on client side


[error] scala.reflect.macros.TypecheckException: package com.mypackage. is not a value

I have a query to be written in Quill which has groupBy with 2 columns and find 2 different counts, for every group. i.e. 1) count(*), 2) sum((case when (NAME = 'value1') then 1 else 0 end)), So I wrote a piece of code like this.
`i.groupBy(i => (i.column1, i.column2))

   .map {
     case ((a, b), table) =>
       val totalCount = table.size
      val value1Count = table.filter(_.name == value1).size
      (  totalCount, value1Count)
   }   `

value1 is a Scala singleton object fully qualified as com.mypackage.Value1
When I compile the above code I get the error
exception during macro expansion:
[error] scala.reflect.macros.TypecheckException: package com.mypackage. is not a value
I am not really sure if this is the way to get the second count. Can someone please help ??

I just ran into this today using an Enumeratum Enum in a filter. I'm using the Quill-Enumeratum addon supplied by Enumeratum too.


Prompts the bubble to stay where it was last clicked

Hello, I hope to get your technical support. The requirement is as follows: after clicking, the prompt bubble will display in the current position and will not disappear

You can use showingTooltipIndicators to show specific tooltips.
I've done it following linechart sample 5 and scatterchart sample 2
with custom touch behavior (tap to show, tap again to hide).
List<int> showIndexes = []
final lineBarsData = [LineChartBarData(
  showingIndicators: showIndexes,
  ...
)]

LineChartData(
  showingTooltipIndicators: showIndexes
                    .map((index) => ShowingTooltipIndicators([
                          LineBarSpot(
                              lineBarsData[0], 0, lineBarsData[0].spots[index])
                        ]))
                    .toList(),
  lineTouchData: LineTouchData(
    ...
    handleBuiltInTouches: false,
    touchCallback: (FlTouchEvent event, LineTouchResponse? touchResponse) {
      if (touchResponse == null || touchResponse.lineBarSpots == null) return;
      if (event is FlTapUpEvent) {
          touchedIndex = touchResponse.lineBarSpots!.first.spotIndex
          setState(() {
            if (showIndexes.contains(touchedIndex)) {
              showIndexes.clear();
            } else {
              showIndexes = [touchedIndex];
            }
          });
      }
    })
)

the code is modified from my project's code but you should get the idea.

hope that helps.

@macropusgiganteus is correct!

@imaNNeo Please tell me BarChart supports this? Prompts the bubble to stay where it was last clicked

@imaNNeo Please tell me BarChart supports this? Prompts the bubble to stay where it was last clicked

We have a snipped which is for LineChart, but you can use the exact approach for BarChart too:
source code
https://user-images.githubusercontent.com/7009300/156784816-53f95dd9-f387-4600-8a92-d05b1aeea3da.mov


ConstructUsing in Show me the code not appear in intellisense

In Project tutorial Show me the code example (https://topshelf.readthedocs.org/en/latest/configuration/quickstart.html),
//3
s.ConstructUsing doesn't appear in intellisense, which is confusing, especially it's a tutorial on project site itself.
How can I make the intellisense work?

Does HostFactory.Run or x.Service<> show up in Intellisense? The first thing to check would be that Topshelf NuGet package is installed and that using Topshelf; is included at the top of your file.

And that you aren't using the .NET Client library (in other words, using the full runtime).

HostFactory.Run and x.Service<> do show up in intellisense.
I created fresh console app, installed Topshelf via nuget, and included using Topshelf.
The only thing that doesn't show up is s.* methods.
Despite it doesn't show up, the project compiled. And once it's compiled, the s.* methods all show up. If type myself, it doesn't show up.
The target framework is .net framework 4.

If it compiles, then the code is all there and I guess it's a VS issue. Are you using any add-ons like Resharper?


Feature Request: Support on/off devices as sensors for rooms

Request:
Ability to add other devices such as on/off devices as 'sensors' in an occupancy room
Reason:
I want to be able to 'lock' a room as being occupied so that it won't turn off.
Use Case:
Multiple, but one such example is my workshop where I restore old Macs.  I've got it setup to turn off after X mins of inactivity, but sometimes I'll deliberately want it to not turn off when a device like the ultrasonic cleaner is on, or if I'm leaving a machine running to see if a repair has worked.
Considered Work Arounds:
Cancelling timers, but the problem is that as soon as motion is detected again it resumes countdown.  Also I want to be able to see at a glance that I left that room 'locked on' so an On/Off device would be ideal for that.
If you have any other potential ways of working this I'm all ears.

Use Masquerade plugin to make a sensor device from your relay device.

Ideally I'd rather not use masquerade.  I've already got about 30 of them for various other items like motion sensors, and it's becoming rather cumbersome to manage.  However if that's the only way.. ¯_(ツ)_/¯

I really don't see any upside to complicating the plugin more when that's the sort of thing that Masquerade was designed for.  Put them all in a folder of their own and ignore them.


Update document synchronizer context version directly in no change sc…

…enario
instead of relying on an "empty" edit to do so. This empty edit is actually two edits that get messaged over as didChange notifications to the language server(s). In the WTE hosting CSS case, there are two language servers, thus four notifications sent out. Additionally, this causes one of the css language servers to send back publishDiagnostics also. All this happens for CSS when just typing a char in markup.
This change is kinda ugly, please accept this as a draft PR to simply provide the impetus for us to investigate removing the empty edit.

Thanks @ToddGrun. I investigated a little(both locally and in liveshare) and it seems to be working fine as far as I can tell. Can you go ahead and clean it up so we can get this merged? Basically use an event handler instead of putting the entire synchronizer instance in its property bag.


Llamas to group members

When i try send lama to group_members:
Traceback (most recent call last):
File "d:\python27\lib\runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "d:\python27\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "D:\Python27\Scripts\dAbot.exe_main.py", line 9, in
File "d:\python27\lib\site-packages\dAbot\dAbot.py", line 812, in main
run()
File "d:\python27\lib\site-packages\retrying.py", line 49, in wrapped_f
return Retrying(*dargs, **dkw).call(f, *args, **kw)
File "d:\python27\lib\site-packages\retrying.py", line 206, in call
return attempt.get(self._wrap_exception)
File "d:\python27\lib\site-packages\retrying.py", line 247, in get
six.reraise(self.value[0], self.value[1], self.value[2])
File "d:\python27\lib\site-packages\retrying.py", line 200, in call
attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
File "d:\python27\lib\site-packages\dAbot\dAbot.py", line 710, in run
for m in get_group_members(args[''], args['--reversed']):
File "d:\python27\lib\site-packages\dAbot\dAbot.py", line 459, in get_group_members
end_offset     = int(re.search(regex['group_last_offset'], html).group(1))
AttributeError: 'NoneType' object has no attribute 'group'
Press any key to exit...

Which group is that? Try another one, it may work.


Provide C++ version of the client

Currently the power client is CLI python script and can't be used in diverse environments such as mobile or embedded devices. This task it to create C++ version of the client that can easily be ported to such environments. Also this will then enable to integrate power client to the loadgen (#226).
Estimate time of implementation: 2 weeks.

@psyhtest   - This may be an alternative approach to ensure that we can make the client less burdensome on CPU utilization if it eats into performance during the power measurement runs.

I will recommend we keep this on lower priority to other issues that needs to be resolved.  Need to balance the contributions across various submitters.


Fix for issue #30

From the commit message:
Introduce StopStrategies#stopAfterDelay(long, TimeUnit).

For consistency with the AttemptTimeLimiters and WaitStrategies classes,
StopStrategies now also accepts (long, TimeUnit) pairs. The original method has
been deprecated in favor of its new overload.

The unit test for the now-deprecated method was fixed and a unit test for the
new method was added.

Other than that all I can say is that I tried to stay as close as possible to the existing coding style. Let me know if you feel further changes are required.

That looks great. Thanks!


Bot crashing/switching lobbies immediately once it is it's turn.

Commonly my bot gets into a lobby (public) the second it becomes it's turn it crashes instantly and moves to a different lobby. This doesn't happen every single time, I have seen it work through the loop file text but most of the time it is instantly kicked (not by players)

bro it's because of the word u chose


Webpack plugin inserts raw CSS into JS code

With the latest Fluent UI (9.8.0) and Griffel (1.5.2) versions, we noticed that extracted CSS is now being inserted into the bottom of our JS script. As a result, the JS fails to run since it contains invalid code (ie: parser error on the . from the first CSS selector).
This is blocking us moving to the latest Fluent version.

Hi  @NotWoods, thank you for reporting. Can you please provide repro steps for the issue? We have not observed this with other partners, I would like to understand how is your case different.

I debugged it in the repo, it's a problem with tooling there. @NotWoods I will share details with you.


Mica Blur with my configurations seems to be broken.

Hey I have the current configuration and Mica Blue only works for the header bar, which is the default behavior for MicaForEveryone.

I noticed the change in the readme.


external-snapshotter Address CVE-2024-45338

Issue #, if available:
This PR addresses https://github.com/advisories/GHSA-w32m-9786-jp63 for the CSI external snapshotter images.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve

/lgtm


Are you working on search function?

Are you working on something like .all(), but then .search() for searching.

Not at the moment but pull requests are welcome 😀

@ddofborg actually yes now, it will be added in the version 2 release. https://github.com/tizz98/py-front/pull/38
Will close this issue. Keep an eye on the 2.0 release!


gpt Table.GetPartitionSize() returning incorrect size

The Size field in gpt.Partition is in bytes, but gpt.Table.GetPartitionSize() is multiplying the  gpt.Partition.Size by the sector size (see https://github.com/diskfs/go-diskfs/blob/master/partition/mbr/table.go#L181)
This caused disk.CreateFilesystem() to fail on a 4GiB gpt partition because it said the size was > max FAT32 filesystem size.

Correct link to offending line: https://github.com/diskfs/go-diskfs/blob/master/partition/gpt/table.go#L521

Hmm... here it is in bytes (and everywhere else that consumes it), but in gpt.Table.GetPartitionSize() it is multiplying the already-bytes-denominated field by the sector size, making it, e.g. 512*size-in-bytes (or whatever the sector size is)? Is that right?
I assume you came across this in a practical example. Do you mind pasting it here? We can use that code as part of tests, and I would like it documented here in the issue. PR is a one-line fix, but need the test first of course.
The other question is, if this is an error, why does this test pass?

Drat. I figured it out. It tests against added partitions that do not have sizes, so it always is 0. First thing is to fix this test.

See #11, and thanks for finding this, @queuem !


Replace boost string_view with std string_view if macro is set.

Closes #1133
The solution uses a naive approach of expecting the user knows whether compiler implements std::string_view (not using/defining any compatibility check macros)  and also ignoring the <experimental/string_view> version.

LOL is that it?! I did most of the heavy lifting and didn't seem to cross the finish line...


nixos/tests/mpv: adapt to the new mpv wrapper

Description of changes
The test fails because wrapMpv has been removed in https://github.com/NixOS/nixpkgs/pull/304349.
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Would you mind adding the following to allow Ofborg to execute this test?
diff --git c/pkgs/applications/video/mpv/default.nix i/pkgs/applications/video/mpv/default.nix
index b5672d7afa46..4600cfb48cb6 100644
--- c/pkgs/applications/video/mpv/default.nix
+++ i/pkgs/applications/video/mpv/default.nix
@@ -50,6 +50,7 @@
   meson,
   mujs,
   ninja,
+  nixosTests,
   nv-codec-headers-11,
   openalSoft,
   pipewire,
@@ -60,6 +61,7 @@
   speex,
   stdenv,
   swift,
+  testers,
   vapoursynth,
   vulkan-headers,
   vulkan-loader,
@@ -351,6 +353,18 @@ stdenv'.mkDerivation (finalAttrs: {

     wrapper = callPackage ./wrapper.nix { };
     scripts = callPackage ./scripts { };
+
+    tests = {
+      inherit (nixosTests) mpv;
+
+      version = testers.testVersion {
+        package = finalAttrs.finalPackage;
+      };
+      pkg-config = testers.hasPkgConfigModules {
+        package = finalAttrs.finalPackage;
+        moduleNames = [ "mpv" ];
+      };
+    };
   };


Nil Pointer Dereference on Reply

How have you installed gord

[ ] go get
[ ] Github Releases
[ ] git clone & go build .
[x] Arch User Repository (the AUR)

What happened

When pressing "r" with a message selected (to reply to it), gord crashes with a nil pointer dereference. Only happens when "ShowBottomBar" is set to false.
Error output

`panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xb41b04]
goroutine 1 [running]:
github.com/cainy-a/gord/tview.(*Application).Run.func1(0xc0005ce630)
/home/runner/work/gord/gord/tview/application.go:165 +0x87
panic(0xc34600, 0x15e04b0)
/opt/hostedtoolcache/go/1.16.5/x64/src/runtime/panic.go:965 +0x1b9
github.com/cainy-a/gord/ui/components.(*BottomBar).InsertItemAtStart(0x0, 0xc000562100, 0x1d)
/home/runner/work/gord/gord/ui/components/bottombar.go:76 +0x44
github.com/cainy-a/gord/ui.NewWindow.func6(0xc0005c8c60, 0xc0000d0020, 0xc000088000)
/home/runner/work/gord/gord/ui/window.go:263 +0x116b
github.com/cainy-a/gord/ui.NewChatView.func4(0xc0000d0020, 0xc000878ea0)
/home/runner/work/gord/gord/ui/chatview.go:186 +0x2a9
github.com/cainy-a/gord/tview.(*Box).WrapInputHandler.func1(0xc0000d0020, 0xc0000a0ea0, 0xc0000d0020)
/home/runner/work/gord/gord/tview/box.go:221 +0x84
github.com/cainy-a/gord/tview.(*Application).Run(0xc0005ce630, 0x0, 0x0)
/home/runner/work/gord/gord/tview/application.go:277 +0x944
main.main()
/home/runner/work/gord/gord/main.go:74 +0x4a5`
How do you reproduce this bug

Attempt to reply to a message in a DM or guild channel with the "ShowBottomBar" config value set to false.
System information

Key
Value

OS
Arch Linux

Architecture
x86_64

Terminal
Kitty, alacritty, konsole

Updated issue, only happens when "ShowBottomBar" is set to false.

Updated issue, only happens when "ShowBottomBar" is set to false.

OOOOH I know what'll be causing it - when code in window.go asks window.bottomBar to add and remove an item indicating that you are replying it will hit a null if there's no bottom bar.
I'll get this fixed ASAP (probs this evening I'm working on ChatView rn)

I wonder if I should just display nothing for replying, set a border colour like edits, or perhaps try to add it to the composer's title like I do for slowmode if there's no bottomBar?

If it's possible, I'd like a little bar above the input bar that displays what you're replying to and hides otherwise. I feel like it used to be like that, but it might be some other app I'm thinking about.

Like how replies are displayed in the chatview

Ooh that makes a lot more sense. Yes that would be good. I could also use that for slowmode instead of abusing the composer title.

gord try not to have a null pointer dereference crash CHALLENGE (HARD)

lmao that does appear to be what I keep having issues with. I really should test more for that!

Beautiful, great job!

Thanks! :)


unable to display the map

Hey guys,
When I install geoip-map-attack everything works fine except the world map display.
Can you help Me Please.
Thanks

Hi! You need to create a MapBox Account and then put de map code into the code.

For Development Purposes is there a way to convert the MapBox Dependencies to Google Map Static Tiles instead. The API token is free for private projects.

I can't get the map to display as well. blank. I configured the API key and maps style, still blank.

In index.html change this
mapbox js and css versions from 2.3.0 to 3.3.1(latest) and it will load your world-map

i changed mapbox js and css versions from 2.3.0 to 3.3.1(latest) but still not loading the map. Can some one help?


Added a bit more information on the cheatsheet

Had to hunt for info on the cheatsheet, and I thought it useful to have it's own section.

Great, thanks!


adding high precision stopwatch possibilities

This adds a non-breaking API change.
the default StopWatch is now an alias for ChronoMeter<>, or ChronoMeter<std::chrono::steady_clock>
It is also possible to use PrecisionStopWatch, which is an alias for ChronoMeter<std:chrono::high_precision_clock>

Looks like there might be a problem with this change in Research:
libtool: compile:  /usr/local/probe/bin/g++ -DPACKAGE_NAME=\"nm\" -DPACKAGE_TARNAME=\"nm\" -DPACKAGE_VERSION=\"0.1\" "-DPACKAGE_STRING=\"nm 0.1\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"nm\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DBUILD_VERSION=\"0.1.1\" -DHAVE_IOSTREAM=1 -I. -I. -I./libfork -I./libheartbeat -I./libnetwork -I./liblrdpi -I./libsyslog -I./libcapture -I./libcommand -I./libprocess -I./liblua -I./libelasticsearch -I./libtools -I./libsystem -I./libmachineid -I/usr/local/probe/include -include /usr/include/fenv.h -Werror -Wall -DINSTALL_PREFIX=\"/home/jgress/wk/Research\" -DSPLIT_QUEUES -Wl,--no-as-needed -L/usr/local/probe/lib -L/usr/local/probe/lib64 -Wl,-rpath -Wl,/usr/local/probe/lib64 -Wl,-rpath -Wl,/usr/local/probe/lib -Ofast -m64 -std=c++14 -MT libcapture/libcapture_libcapture_la-PacketCaptureReceiver.lo -MD -MP -MF libcapture/.deps/libcapture_libcapture_la-PacketCaptureReceiver.Tpo -c libcapture/PacketCaptureReceiver.cpp  -fPIC -DPIC -o libcapture/.libs/libcapture_libcapture_la-PacketCaptureReceiver.o
In file included from ProbeLogger.cpp:16:0:
./libsyslog/SyslogReporter.h:28:7: error: using typedef-name ‘using StopWatch = class ChronoMeter<>’ after ‘class’
 class StopWatch;
       ^
In file included from ./liblua/LuaChangeSubscriber.h:10:0,
                 from ./liblua/LuaExecuter.h:8,
                 from ./liblrdpi/RuleEngine.h:13,
                 from ProbeLogger.cpp:15:
/usr/local/probe/include/StopWatch.h:78:32: note: ‘using StopWatch = class ChronoMeter<>’ has a previous declaration here
 using StopWatch = ChronoMeter<>;
                                ^

@john-gress thanks John. I'll put up a PR for Research to remove the offending line and also make sure there are not other offending lines of the same issue.

@john-gress please see Research PR that takes care of this: https://github.schq.secious.com/Logrhythm/Research/pull/1708

👍

I have one question in the PR.
I pulled this down  and the Research PR and works well. 👍


Release on Android for mobile and tablets

Is your feature request related to a problem? Please describe.
I want to play Netrunner in transit or when sitting (e.g. on a couch 😉 ).
Describe the solution you'd like
I want Netrunner to work on tablets and mobiles. Android is enough for a start.
Additional context
Jnet lives in a browser, so it can be used on mobile. However, the GUI is microscopic by default, there's a reliance on reading small text and hitting small buttons, which are nearby. Also drag-and-drop doesn't work reliably - it zooms or pans the browser content. Let's learn from that. Let's test for these problems:

how hard is it to read the game state?
how hard is it to express an interaction?
how hard is it to make a GUI mistake?

I expect the current "pass paid window" controls to be too small.

In Google Play Console, I need to give a title to the app.
And the APK needs a "bundle identifier", which comes in a reverse domain name notation, like io.dagguh.netrunner, so we gotta commit to a name: #103

We got the name in #103, moving this forward...

Done! The internal test track and beta  tracks got released.

Testing on an Android phone revealed that we gotta prioritize #104, #66, #112, #113


MqttCommunicationClosedGracefullyException thrown when connecting via TLS

After configuring the broker with certificates and also using the MqttClientOptionsBuilderTlsParameters when setting up the connection to the broker from the Azure Function trigger, we immediately get the MqttCommunicationClosedGracefullyException after deploying the Function to the Azure resource.
This issue exists solely when running on Azure, for local debugging of the Function, it works just fine.
Are there any ideas as to why this happens?

We found that by setting the Application setting "WEBSITE_LOAD_USER_PROFILE" to "1" for the Function in the Azure Portal, we finally got it working.


Don't log an ERROR for skipped scheduled executions

If a flow is scheduled with concurrentOption=skip, it's perfectly normal that triggering of a schedule is skipped. This PR changes such ERROR lines in the server log to INFO level.
On a general level, in my opinion ERROR level should be only used for platform errors, ie. when Azkaban fails to do something that it promises to be able to do. If this rule holds, it will be easier to monitor that Azkaban is working correctly by checking that server logs don't contain errors.
Before:
2018/10/23 13:41:14.337 +0300 INFO [ExecuteFlowAction] Invoking flow test-project.test-flow
2018/10/23 13:41:14.338 +0300 ERROR [TriggerManager] Failed to do action Execute flow test-flow from project test-project for Trigger Id: 0, Description: Trigger from triggerLoader with trigger condition of ThresholdChecker.eval() and expire condition of EndTimeCheck_1.eval(), Execute flow test-flow from project test-project
java.lang.RuntimeException: azkaban.executor.ExecutorManagerException: Flow is already running. Skipping execution.
	at azkaban.trigger.builtin.ExecuteFlowAction.doAction(ExecuteFlowAction.java:232)
	at azkaban.trigger.TriggerManager$TriggerScannerThread.onTriggerTrigger(TriggerManager.java:363)
	at azkaban.trigger.TriggerManager$TriggerScannerThread.checkAllTriggers(TriggerManager.java:343)
	at azkaban.trigger.TriggerManager$TriggerScannerThread.run(TriggerManager.java:297)
Caused by: azkaban.executor.ExecutorManagerException: Flow is already running. Skipping execution.
	at azkaban.trigger.builtin.ExecuteFlowAction.doAction(ExecuteFlowAction.java:229)
	... 3 more

After:
2018/10/23 13:41:51.778 +0300 INFO [ExecuteFlowAction] Invoking flow test-project.test-flow
2018/10/23 13:41:51.779 +0300 INFO [TriggerManager] Skipped action [Execute flow test-flow from project test-project] for [Trigger Id: 0, Description: Trigger from triggerLoader with trigger condition of ThresholdChecker.eval() and expire condition of EndTimeCheck_1.eval(), Execute flow test-flow from project test-project] because: Flow is already running. Skipping execution.

Pull Request Test Coverage Report for Build 4148

0 of 9 (0.0%)  changed or added relevant lines in 2 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage remained the same at 36.169%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

azkaban-common/src/main/java/azkaban/trigger/builtin/ExecuteFlowAction.java
0
3
0.0%

azkaban-common/src/main/java/azkaban/trigger/TriggerManager.java
0
6
0.0%

Files with Coverage Reduction
New Missed Lines
%

azkaban-common/src/main/java/azkaban/trigger/builtin/ExecuteFlowAction.java
1
49.0%

Totals

Change from base Build 4147:
0.0%

Covered Lines:
10539

Relevant Lines:
29138

💛  - Coveralls


Add Drupal to ch6-related-technologies.md

How about to add Drupal there?
It is universal content management framework with configurable abstract entities (content, users, config entities, customers, product, orders, … anything what you specify). In version 8 it has been rewritten on top of Symfony and has universal web services API (REST in core, other in contrib), so it can be used as a decoupled system.
For Drupal there is project Drupal Commerce what is modules ecosystem for e-commerce use cases. There is also project Drupal Commerce Kickstart what is Drupal distrubution with "typical e-shop" configured and ready for use or customize.

Sounds good for me. Please feel free to add it to ch6 and create a pull request - I'll merge it to the book!


spot: 0.3.1 -> 0.3.3

Description of changes

Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Spot 0.3.3: https://github.com/xou816/spot/commit/eb347ae9e914bb39bc274d7601ac23a463420522
nixpkgs-update didn't auto-update this package due to https://github.com/ryantm/nixpkgs-update/issues/302.

Looks and sounds good to me! Thanks for the update.


Submitting it to flathub.org

I'm submitting it to flathub.org to give it more exposure: https://github.com/flathub/flathub/pull/3869. Hope you like it.

Nice!


Docstrings added

Not sure what to do always, see "TODO"

Codecov Report

Merging #33 (000fabb) into master (bca883b) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #33   +/-   ##
=======================================
  Coverage   89.89%   89.89%
=======================================
  Files          11       11
  Lines         198      198
=======================================
  Hits          178      178
  Misses         20       20

Flag
Coverage Δ

unittests
89.89% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkmodel/compartment.py
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


TiKV /debug/pprof/profile should recognize go tool pprof

Feature Request
Is your feature request related to a problem? Please describe:
If I use go tool pprof -http=:8080 http://status_server/debug/pprof/profile\?seconds=10, parsing profile: unrecognized profile format will occur. That's because TiKV doesn't recognize pprof's request and return an svg format flamegraph.
Describe the feature you'd like:
Now it takes two step to use go tool pprof to perf TiKV.

Download perf protobuf through curl curl -H "Content-Type: application/protobuf"  http://status_server/debug/pprof/profile\?seconds=50 > some.pb

Use pprof to decode this protobuf go tool pprof -http=:8080 some.pb.

We can reduce this procedure to single step by recognizing pprof's request.
Describe alternatives you've considered:
The request of pprof can be detected with User-Agent: Go-http-client. Though this will influence all go client.

Mostly, for TiDB, we will fetch the PB file at first then use go tool pprof to see it. So I think the current way is fine.

Ok. If it's acceptable. That's fine :rocket:


Update sites.json

New blog

Thanks very much!
Just a couple of things before I merge this, it looks like your blog covers several topics as well as iOS development. Is there a category feed for just the iOS posts?
Also, I see that some of the iOS posts are in Italian. I'd definitely be interested in adding language specific sections but I think they would need to be categorised as there is already a large amount of content coming through these feeds.
Please feel free to modify this change to include English language iOS related posts in the iOS Development section and feel free to make a new category section for iOS related posts in Italian.
Thanks!
Dave

I have now added language support for the iOS Dev Directory and you should find a language hierarchy above the old categories section. If you'd like to add a category feed for your English posts to the English Language section and create a new Italian Language section with your relevant iOS posts in Italian that would be fantastic. I'll close this PR in favour of that one.
Thanks!


Nick: Watch<PHONE_NUMBER>0

Nick requests the watch of the watch_number<PHONE_NUMBER>0. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

Approved by Ryan M in Charcoal HQ


Use the notebook controller to run cells

For #5636

Codecov Report

Merging #5642 (d91bd44) into main (217bda3) will decrease coverage by 0%.
The diff coverage is 44%.

:exclamation: Current head d91bd44 differs from pull request most recent head 9a7cc23. Consider uploading reports for the commit 9a7cc23 to get more accurate results

@@          Coverage Diff          @@
##            main   #5642   +/-   ##
=====================================
- Coverage     69%     69%   -1%
=====================================
  Files        402     402
  Lines      26815   26818    +3
  Branches    3910    3910
=====================================
- Hits       18645   18596   -49
- Misses      6555    6601   +46
- Partials    1615    1621    +6

Impacted Files
Coverage Δ

src/client/datascience/notebook/notebookEditor.ts
39% <28%> (+<1%)
:arrow_up:

...ent/datascience/notebook/notebookEditorProvider.ts
83% <100%> (+<1%)
:arrow_up:

...cience/data-viewing/jupyterVariableDataProvider.ts
12% <0%> (-66%)
:arrow_down:

...data-viewing/jupyterVariableDataProviderFactory.ts
60% <0%> (-40%)
:arrow_down:

src/client/datascience/data-viewing/dataViewer.ts
40% <0%> (-33%)
:arrow_down:

...ient/datascience/data-viewing/dataViewerFactory.ts
51% <0%> (-29%)
:arrow_down:

...ascience/data-viewing/dataViewerMessageListener.ts
50% <0%> (-17%)
:arrow_down:

src/client/common/process/pythonDaemonPool.ts
75% <0%> (-5%)
:arrow_down:

src/client/datascience/jupyter/kernelVariables.ts
71% <0%> (-5%)
:arrow_down:

...datascience/notebookStorage/nativeEditorStorage.ts
73% <0%> (-3%)
:arrow_down:

... and 17 more


nullify _listener after file drop

Fix for issue
https://github.com/tim-evans/ember-file-upload/issues/31

This actually looks good!


(Bug) Endless spinner in profile Save

This PR closes #167246391, by:

Updating isValidUsername function ad its tests (empty string is no longer valid)
Splitting error handling in Profile Edition page. If user-entered value is invalid, it immediately fails before checking against Gun.

The code is looking good and the username and endless savings seems to be fixed.
There is an issue with how disabled state for save button is handled. It shouldn't be disabled while validating, this should be silent and button be disabled only when confirmed that the profile is invalid to avoid having that button switching on and off.
Also to do this we need to have a validation before save since otherwise will be a risk of saving invalida data.

Fixed. Thanks for the catch!
Now the button won't swap from enabled to disabled status constantly.
Also tested an edge case, where an invalid character is set before validation ends and triggers the save call.
It validates the fields and raises the errors properly.


Service Requests

I notice that the app does not include access to ServiceNow Service Requests.  While we use Open Incidents, We start the process as a service request.  Is it possible to add access to this data as well?
Thank you,

Hi @JimDionisio,
Can you provide more context? Which "app" are you referring to?
Thanks,
The DOCS team

Hi @JimDionisio ,
Sorry, hit RETURN too quickly.  Please submit a new ticket with more context.  Are you referring to a particular doc article? If this is not feedback about a document, you can submit product feedback or feature ideas by going to https://ideas.powerbi.com. You can also engage with the Power BI engineering team at https://community.powerbi.com.


IDEA: spelling checker module

This is a proposal for a spelling (and potentially grammer) checker module. There are for example some Transformer spelling and grammer modules available on Huggingface (didn't verify the accuracy etc). e.g. this.
Some ideas on the module characteristics:

The module can be used for the concepts in the nearText filter, and for question in the ask filter. So the module can only be used in combination with a module that enables free text in a filter (at the moment the nearText or ask filter).
The spellCheck filter should have at least an option to enable/disable checking, and an option to force an autocorrection.
The result will appear in an _additional GraphQL field.

Design decisions to make:

Where to place the spellChecker filter: inside the nearText (or ask) argument, or outside. Now I placed it outside the nearText filter. I'm not sure if placing it in a filter can be achieved architecture/design wise because it means that the filter that is enabled by a module will be extended by this spelling checker module. Placing this new filter outside the nearText filter makes sense imo, because it can apply not only to nearText, but also to ask and potentially other text filters in the future.

Important questions for this design:

This designs assumes that there is at most one filter which contains text. Currently, for example, the ask and nearText filter cannot be used simultaneously. Would there be a potential case in the future that two text-containing filters could be used in one query?
I didn't consider any certainty levels. If models output a certainty per checked text, then we could also enable a minimalCertainty the spelling checker filter. When the model is above this value, then force the autocorrection, and below not.

Proposed GraphQL design, example:
{
    Get (
        nearText: {
            concepts: ["Whta did the monkye do?", "Elon Musk"]
        }
        spellCheck: {
            check: True,
            forceAutocorrect: True
        }
    ) {
        Document {
            title
            _additional {
                spellCheck: {
                    didYouMean          # or a more normal name like `correctText`
                    numberOfCorrections
                    changes {
                        original
                        didYouMean
                    }
                }
            }
        }
    }
}

{
    "data": {
        "Get": {
            "Document": [
                {
                    "title": "...",
                    "_additional": {
                        "spellCheck": {
                            "didYouMean": ["What did the monkey do?", "Elon Musk"],
                            "numberOfCorrections": 2,
                            "changes": [{
                                "original": "Whta",
                                "didYouMean": "What"
                            }, {
                                "original": "monkye",
                                "didYouMean": "monkey"
                            }]
                        }
                    }
                }
            ]
        }
    }
}

Moreover, we could also use this spelling checker module to check unstructured text data on import time. For example: configure per class and property the data schema

Whether to use spelling checker and force an autocorrection
Looking far ahead: Perhaps in the clients, build a kind of human-in-the-loop process that stops the import if a spelling/grammar mistake is found, and ask the human (in the command line), to correct this or not. Kind of how you do a spelling check in Word, where you accept or reject a change.

What do you think about

The placement of the filter and result in GraphQL
The chosen field words (didYouMean is perhaps too informal, curious to your opinion)
Is this achievable architectural/back-end wise?

@etiennedi @bobvanluijt

@laura-ham Could you please define a problem statement of what this is trying to solve? It is hard for me form on opinion on the proposed solution without understanding what it tries to solve. Thanks.

@etiennedi Of course. I believe the scenario that this feature can solve is the following. If a user is performing a semantic search, but made a typo in the nearText filter, perhaps an answer cannot be found because one or more important words with a typo can't be found in the semantic index. This can potentially be solved directly by

Weaviate suggesting a search with correct spelling (like Google Search does) and/or
Autocorrect the query so that results are shown based on the corrected query.
This improves the general UX of a search platform imo.

@bobvanluijt can you help? You may have more context to add here.

Thanks for elaborating, I have some comments on the module architecture parts and also some questions:
Architecture
Let me start with the modules. At the moment a module owns an entire near<Foo> part in the API and Weaviate itself doesn't know much about it. The contract between module and Weaviate is that Weaviate must end up with a vector and is agnostic where that vector came from.
This means if we had a new spellCheck alongside near<Foo> this would introduce two problems: 1.) spellCheck alone cannot fulfill the input-to-vector contract alone and 2.) even if it could, Weaviate would now have two vectors from two modules and wouldn't know what to do with it.
So, from the above, I would say that the existing modules definitely need to be aware of this spellchecking feature and "co-operate" with it. This makes me think that it would be better if the spellcheck options would be within ask and within nearText.
Basically I think of it this way:

ENABLE_MODULES=text2vec-contextionary,spellchecker will tell weaviate that a spellchecker module is present, but the module itself is headless, it's only APIs would be internal. This could be similar to how qna- depends on a t2v- model internally.
Whenever the spellchecker module is active and loaded, each text2vec-* module can decide what it wants to do with it. E.g. it could offer a nearText.spellcheck.enabled: bool and nearText.spellcheck.forceAutoCorrect:bool field. It is therefore in the responsibility of the module to call the spellchecker API. (Respectively for qna)
This would also allow us to make a "should spell-checking be included" decision on a per module basis. For example, in img2vec we probably wouldn't need it, but if we had a textnimg2vec model in the future it might decide to make use of that, etc.
The downside is that we have to implement the spell-check functionality and API in each module, but I think that's a very small price to pay for a clean seperation.

API

Based on ⬆ , I'm for integrating spellCheck into near<Foo>
As for the return values: It would be good to see what such a model actually returns to see what would make sense to return and how. I think we could solve the issue of spell-checking multiple inputs (if we ever need to) by making _additional.spellcheck an array instead of a single object. And then each object could have a field location which could contain something like nearText.concepts[1] or something like that.

General Viability and Questions.

Overall, I think this is something that would definitely benefit from a POC outside of Weaviate. To test how the spell-check models perform and to see how much value is actually added. To be honest, I'm also not 100% convinced that having this in Weaviate adds values. Anything that can be done with this inside Weaviate could also be done at the application level (frontend or glue code) while giving the user maximum control over the spellchecking process and giving them full power over the results, etc. Especially as this is quite far from Weaviate's core capabilities (the only real overlap in my opinion is that it would use an ML model to do the checking), I'm a bit torn if this is really added value or feature bloat.
In line with ⬆ it might make sense to validate if users in general perceive this as value added or if this just caters to one extremely specific case.
One thing that might be tricky is the quality of the spell check model and that of the t2v-model. What if the t2v model is very capable of understanding a domain-specific word, but the spell-checker is not and "corrects" it? etc. Or in general if the vocabulary simply isn't in sync.
Similar to ⬆ t2v can be multi-lingual are there matching spellchecking models?

My $0.02.

To be honest, I'm also not 100% convinced that having this in Weaviate adds values.

I have to disagree, I think that the fact that this comes out of the box might tremendously help in certain use cases.

This means if we had a new spellCheck alongside near this would introduce two problems

I appreciate the problem this introduces. Having that said I could imagine that we have future cases where we want modules to interact with the input variable.

@bobvanluijt can you help? You may have more context to add here.

Not really, I agree with your points @laura-ham

I appreciate the problem this introduces. Having that said I could imagine that we have future cases where we want modules to interact with the input variable.

In this particular case I'd argue that within the near<Foo> object also leads to the better UX, because the setting is closer to what it controls. If it's at root level the user wouldn't know that it affects nearText, but not where. Or maybe we want it to be able to affect where filters as well, then it would be cleaner if each can be configured separately. (Because maybe a filter is an ID and should not be checked, but nearText should, etc.).
So in my opinion the UX aspect and the Module API system are aligned on this.

Awesome

@etiennedi thanks for your elaborate comment and ideas!
Given the info about the architecture of modules & Weaviate, I totally agree with placing the Spelling checker inside the Text filters, as you propose. GraphQL wise, a query will look like this then (I removed changes in the _additional field, because the result will be an array of checked items):
{
    Get (
        nearText: {
            concepts: ["Whta did the monkye do?", "Elon Musk"]
            spellCheck: {
                check: True,
                forceAutocorrect: True
            }
        }
    ) {
        Document {
            title
            _additional {
                spellCheck: {
                    originalText
                    didYouMean          # or a more normal name like `correctText`
                    corrected               # boolean - whether an autocorrect was applied
                    location                 # e.g. "nearText.concepts[1]"
                    numberOfCorrections
                    changes {
                        original
                        didYouMean
                    }
                }
            }
        }
    }
}

{
    "data": {
        "Get": {
            "Document": [
                {
                    "title": "...",
                    "_additional": {
                        "spellCheck": [{
                            "originalText": "Whta did the monkye do?",
                            "didYouMean": "What did the monkey do?",
                            "numberOfCorrections": 2,
                            "changes": [{
                                "original": "Whta",
                                "didYouMean": "What"
                            }, {
                                "original": "monkye",
                                "didYouMean": "monkey"
                            }],
                            "location": "nearText.concepts[0]"
                        }]
                    }
                }
            ]
        }
    }
}

Looks good!
I just realized I didn't comment on the naming of didYouMean yet. I kinda like it, it's very straight-forward and everyone should understand what it means. So in spellCheck.didYouMean I think this is perfect. Looking at changes[].didYouMean, I'm wondering if maybe .corrected would be better here, since it would also be more inline with numberOfCorrections (as opposed to numberOfDidYouMeans). So I think I'm in favor of calling the overall thing (at spellCheck.didYouMean didYouMean, but call the individual changes changes[]corrected. What do you think?
Planning wise (cc @bobvanluijt) should we move this to POC stage? I.e. build a POC outside of Weaviate to see what models we need to use, what the models actually return, if that reflects our architecture etc? That should also decouple using this feature from the timeline of building the actual module. I.e. if we need this internally at point X, we can use the POC until the module is complete at point Y.

Planning wise should we move this to POC stage?

Yes please

So I think I'm in favor of calling the overall thing (at spellCheck.didYouMean didYouMean, but call the individual changes changes[]corrected. What do you think?

Yes good point, I agree.
Updated snippet:
{
    Get (
        nearText: {
            concepts: ["Whta did the monkye do?", "Elon Musk"]
            spellCheck: {
                check: True,
                forceAutocorrect: True
            }
        }
    ) {
        Document {
            title
            _additional {
                spellCheck: {
                    originalText
                    didYouMean          # or a more normal name like `correctText`
                    corrected               # boolean - whether an autocorrect was applied
                    location                 # e.g. "nearText.concepts[1]"
                    numberOfCorrections
                    changes {
                        original
                        corrected
                    }
                }
            }
        }
    }
}

{
    "data": {
        "Get": {
            "Document": [
                {
                    "title": "...",
                    "_additional": {
                        "spellCheck": [{
                            "originalText": "Whta did the monkye do?",
                            "didYouMean": "What did the monkey do?",
                            "numberOfCorrections": 2,
                            "changes": [{
                                "original": "Whta",
                                "corrected": "What"
                            }, {
                                "original": "monkye",
                                "corrected": "monkey"
                            }],
                            "location": "nearText.concepts[0]"
                        }]
                    }
                }
            ]
        }
    }
}

This one might work well, I just gave it a try :)
https://github.com/barrust/pyspellchecker
PS:
The script we use for C11y training could be used to create additional dictionaries as well


Kadira is blocking

I'm using meteor 0.9.3 and I noticed that on the server I receive the following message:
Meteor._wrapAsync has been renamed to Meteor.wrapAsync undefined
Kadira: completed instrumenting the app
On chrome I noticed the message on the bottom right: Waiting for engine.kadira.io
This should an easy bug fix.

Bump :)  Meteor._wrapAsync has been renamed to Meteor.wrapAsync


[i18n] main components and pages in vietnamese

期待する見せ方・挙動 / Expected behavior
Support vietnamese for main content.
refs: https://docs.google.com/spreadsheets/d/1aksSfWIXE_L3rFYFjHz9xtVhh0n7ealMQ0eEz8GGPlw/edit#gid=0
⛏ 変更内容 / Details of Changes
add vietnamese translation for main component and pages.

update components/DataSelector.vue
update components/DataTable.vue
update components/DataView.vue
update components/MetroBarChart.vue
update components/PageHeader.vue
update components/PrinterButton.vue
update components/SideNavigation.vue
update components/SvgCard.vue
update components/TimeBarChart.vue
update components/TimeStackedBarChart.vue
update components/WhatsNew.vue
update nuxt.config.ts
update pages/flow.vue
update pages/index.vue
update pages/parent.vue
update pages/worker.vue

📸 スクリーンショット / Screenshots

Language selector

homepage

parent

worker

fix conflict

Thank you for contributing!
And sorry for this belated reaction.
Now we are migrating to new translation environments. We will apply Vietnamese language after that.

Thank you for contributing!
And sorry for this belated reaction.
Now we are migrating a new Transifex-based i18n system. After that, we will apply Vietnameese language.
Please wait a few more days.


MongoDB ODM Profiler

Hi,
It would be nice if mongodb odm has a complete profiler(queries, time, etc), As long I see there is only a simple logger available.

I think this is outside the scope of this project. The corresponding Symfony Bundle has a light-weight "profiler" that records queries and displays them in the developer toolbar. I recommend the Monitoring documentation at MongoDB and using a more professional tool to do this.


Release 1.0

It would be good to release the 1.0 since the project was promoted to Incubating tho conditionally on the 1.0 release.
https://forums.swift.org/t/sswg-package-maturity-review-2021/51308
SwiftPrometheus

adopted by various real projects and very responsive maintainer
@ktoso fills role of secondary maintainer, in addition to the primary author @MrLotU
Recommendation:

conditional on stable release (pending) and 2nd maintainer (done), promote to Incubating

Do you need help with making this happen @MrLotU ?
Last time we chatted we just wanted to double check some APIs afair?
We can always cut more releases; it's not like staying in these "alpha" really changes all that much -- we're trying to not break anyone and the project is being used in production right now anyway :-)

AFAICS we're missing those three tickets: https://github.com/MrLotU/SwiftPrometheus/milestone/1
let me know if you'd need/want help on any of those :)

This was the initial plan, indeed. However more recently I've been thinking about those 3 stories specifically and realised I'm not a huge fan of steering the library the way it'd require.
I'm more and more considering just "wont-fix"-ing them, and releasing a 1.0 in it's current state (Alpha 15).
Open to suggestions & comments though 😄


debiancentos: add_livemigration_user: don't add the ssh key for admin_user

admin_user was up until now only used with the debian branch and didn't exist on the Yocto (main) branch.
On the debiancentos branch, the add_livemigration_user role sets the ssh key for the livemigration_user but also for the admin_user.

It is not necessary to copy the key for admin_user as only livemigration_user performs live migrations.
Inventories for Yocto Seapath don't define this user, so it complicated compatibility with the branch merge.

Removing this key copy for admin_user would improve compatibility with existing Yocto Seapath

To me, the admin_user setup should be set outside the add_livemigration_user role.

Corrected by #643


listen to --with-iconv-dir= on OS X

About
Among the issues touched by this are #972, #1119, #1231 and #1345 - not claiming they are fixed...
Environment
Here's where I started debugging/installing and prepared this contribution from.
OS X:
% sw_vers
ProductName:       Mac OS X
ProductVersion: 10.10.5
BuildVersion:   14F27

Xcode:
% xcodebuild -version
Xcode 7.1
Build version 7B91b
% xcode-select -v
xcode-select version 2339.

Macports:
Spot that I started on the non-universal variants.
% port version
Version: 2.3.4
% port installed zlib lzma libiconv
The following ports are currently installed:
  libiconv @1.14_0
  libiconv @1.14_0+universal (active)
  lzma @4.65_0+universal (active)
  zlib @1.2.8_0
  zlib @1.2.8_0+universal (active)

Install guide
@flavorjones you asked for additions to OS X install guide.
export ARCHFLAGS="-arch x86_64" as diagnosed by @oliver-whiteman can help with:
Undefined symbols for architecture i386:
  "_crc32", referenced from:
      _xmlCreateZMemBuff in libxml2.a(xmlIO.o)
      _xmlZMemBuffAppend in libxml2.a(xmlIO.o)
<snip>

A better solution is to install the universal variants
sudo port install zlib +universal
sudo port install libiconv +universal
sudo port install lzma +universal

Sadly, this isn't the whole story as @oliver-whiteman found.
checking for main() in -llzma... yes
checking for xmlParseDoc() in libxml/parser.h... no
checking for xmlParseDoc() in -lxml2... no
checking for xmlParseDoc() in -llibxml2... no
-----
libxml2 is missing.  Please locate mkmf.log to investigate how it is failing.

As @rsanchezsaez mentioned this will affect all users of Macports with zlib and libiconv ports installed, where they are not the universal variants. The option of moving /opt/local sideways did not fill me with joy and mkmf.log shows this inability to find iconv_open and hence this PR.
merge
So if this is merged the guide should reflect the requirement of:
sudo port install zlib +universal
sudo port install libiconv +universal
sudo port install lzma +universal
bundle config build.nokogiri --with-xml2-include=/opt/local/include/libxml2 --with-xml2-lib=/opt/local/lib --with-xslt-dir=/opt/local --with-iconv-dir=/opt/local

or
As has been pointed out, installation of libxml2 and libxslt macports/brew and the use the --use-system-libraries or NOKOGIRI_USE_SYSTEM_LIBRARIES=1
Making note that the universal variants are installed.
sudo port install libxml2 +universal
sudo port install libxslt +universal
bundle config build.nokogiri --use-system-libraries --with-xml2-config=/opt/local/bin/xml2-config --with-xslt-config=/opt/local/bin/xslt-config

Does this change anything?  Nokogiri itself does not require or link with iconv, but libxml2 does, so if you are using libxml2 built outside of Nokogiri there should be no need to mess with iconv.

...sigh... have_func on ruby <= 1.9.3 only accepts 2 args.

The consequence of 36f1c82 is that OS X installs will still be in the same state for older rubies - though I have no knowledge of which was distributed in each version of OS X.

I think that #1218, which was merged into master just before this PR came in, may address this problem in a different way.
Can you try building from source (master branch) and let me know if you still see this problem?

1.6.7.rc4 just shipped, which it might be interesting to try to see if it affected any of the behavior you're describing.

Ok, this took me a while to remember, but I think that this can be closed.
I successfully built using:

bundle config build.nokogiri --use-system-libraries
bundle config build.nokogiri --with-opt-dir=/opt/local (macports prefix)

Macports has the universal variants of the following:
% port installed libxml2 libxslt zlib libiconv lzma
The following ports are currently installed:
  libiconv @1.14_0
  libiconv @1.14_0+universal (active)
  libxml2 @2.9.2_2
  libxml2 @2.9.2_2+universal (active)
  libxslt @1.1.28_1
  libxslt @1.1.28_1+universal (active)
  lzma @4.65_0+universal (active)
  zlib @1.2.8_0
  zlib @1.2.8_0+universal (active)


Avoid urls to old API versions

Signed-off-by: Tomas Aliaga<EMAIL_ADDRESS>

It looks like the build is failing because of an issue with (possibly) bad data returned by OSM. I don't think there's anything we can do about it at this stage, should we go ahead and merge anyway?

Let me see if I can make it less flaky trying to use some other points of the globe. Otherwise we'll have to skip the test overall.


test: Fix panic on tests that don't schedule to nodes

Fixes #
Description
Fix a panic on testing that failed to schedule pods to a Machine/Node combination. We should return back a nil Machine if we fail to schedule and pass that back up so that we don't do any binding of that pod to the Machine/Node.
How was this change tested?
make presubmit
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

5 of 8 (62.5%)  changed or added relevant lines in 1 file are covered.
9 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.02%) to 81.797%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/test/expectations/expectations.go
5
8
62.5%

Files with Coverage Reduction
New Missed Lines
%

pkg/scheduling/requirements.go
2
98.5%

pkg/controllers/node/controller.go
7
70.59%

Totals

Change from base Build<PHONE_NUMBER>:
-0.02%

Covered Lines:
6817

Relevant Lines:
8334

💛  - Coveralls


Update maximum limit of guests on table to 8 in Lyche reservation system

[x] Due to corona, the maximum guest limit of a table is 8, not 12.

[x] Update the info in the text box that appears if the booking is not possible (due to more than 8 guests)

Fixed by #705


no serial

Removed all serialize and unserialize methods per Magento QA
Removed Affirm Compatibility Tool

@nandadubey good catch . I've updated those files also.


Localization in route paths

What problem is this solving
We're creating a multilang website, so we have two routes, pointing to the exact same component but the path is localized:

/klantenservice
/customer-service

So I would define it as (auto generated from some function)
const routes  = [
  {
    path: '/klantenservice',
    component: CustomerService,
    name: 'customer-service__nl',
  },
  {
    path: '/customer-service',
    component: CustomerService,
    name: 'customer-service__en',
  },
]

Of course I can create some "helper" function to automatically add the __en depending on the current language.
But if you are able to overwrite the router.push() function or change the internal route handling, that would be great in this case.
Proposed solution
An API to overwrite the router.push() functionality or route handling or something like that.
Describe alternatives you've considered
Using a "helper" function to act as a router push, but it feels kinda off.

AFAIK the router already has the APIs for this:

https://vue-i18n.intlify.dev/
https://github.com/intlify/routing
https://github.com/nuxt-modules/i18n

BTW you can already overwrite router.push = function customPush(...) {}

I've used vue-i18n and for newer project I've made my own solution that is light and simpler to use.
I need to know how to implement the lang prefix in vue router as it is, not to use vue-i18n library :/


[Flaky Test] tests/micro/zephyr/test_zephyr_aot_exec.py::test_aot_executor

Thanks for participating in the TVM community! We use https://discuss.tvm.ai for any general usage questions and discussions. The issue tracker is used for actionable items such as feature proposals discussion, roadmaps, and bug tracking. You are always welcomed to post on the forum first :smile_cat:
These tests were found to be flaky (intermittently failing on main or failed in a PR with unrelated changes). As per [the docs](https://github.com/apache/tvm/blob/main/docs/contribute/ci.rst#handling-flaky-failures, these failures will be disabled in a PR that references this issue until the test owners can fix the source of the flakiness.
Test(s)

tests/micro/zephyr/test_zephyr_aot_exec.py::test_aot_executor[mps2_an521]

Jenkins Links

https://ci.tlcpack.ai/blue/organizations/jenkins/tvm/detail/main/3602/pipeline/374

cc @alanmacd

This test shouldn't be running on mps2_an521, will update it to skip.

PR is merged now!


It doesn't support other languages such as Japanese,Chinese,and so on.

It doesn't support other languages such as Japanese,Chinese,and so on.

You mean when screenshotting? Or the website language itself?

the screenshotting,such as this one:
https://webshot.deam.io/www.hostloc.com

@zhezhe168 It's a known problem with AWS lambda apparently, I don't know how to fix it for zeit, since we have no control over how they bundle files for AWS lambda internally.