text:
Any chance of seeing the raw markup for sample pages?

Hi,
Thanks very much for the theme. We have most of it working but are struggling with a constant problem of actually seeing the raw markup you use to get some of the pages,
e.g. the page
https://mmistakes.github.io/minimal-mistakes/markup/markup-image-alignment/
is great but it would be even better to see the actual markup you use to get it looking like it is. We keep trying various formatting markup to see if we can get things right but its quite difficult to get right. Seeing the 'raw code' so to speak would make life a lot easier as we can see the input rather than just the output.
Perhaps we have missed the raw markdown for the above page, if we have, we apologise as we looked for it in lots of places.
Any guidance here much appreciated,
Rob

Check the gh-pages branch. The raw Markdown files for all posts, pages, and collections are there along with the rest of the source for the demo site.

Thanks for this, we weren't aware of this branch and where to look for it.
We've looked at that specific page and can see the format we want to use and how to use it
![image-right]({{ site.url }}{{ site.baseurl }}/images/image-alignment-300x200.jpg){: .align-right}

And now...

Thats clear now and we were using it the right way, the issue now is we can't get this format to work.
We can see the site.url and site.baseurl being expanded to the right URL, so the HTTP URL call is correct, but what we see in the HTML page is
![image-right](http://127.0.0.1:4000/images/congestion_zone_300x300.png){: .align-right}

We can go directly to the PNG image referenced in a web browser using that URL so we know the image is there.
It appears that something is not converting the
![image-right](http://127.0.0.1:4000/images/congestion_zone_300x300.png){: .align-right}

to whatever it needs to be.
We will be hosting this ourselves and its currently running on a Mac under El Capitan, so we changed gem "github-pages" to gem "jekyll" in our Gemfile and rebuilt and then rebuilt it again as we worked through the dependencies as in #305, so we worked through those issues.
Searching through the issues archives doesn't show anything similar to the problem that we have, we are assuming (famous last words) that we are missing a fundamental gem (is that the right phrase) for converting
![image-right](http://127.0.0.1:4000/images/congestion_zone_300x300.png){: .align-right}

to the right html code.
We thought that Kramdown was the missing 'filter', but after doing
sudo gem install kramdown
bundle exec jekyll build
bundle exec jekyll serve

We get the same result.
We've now run out of ideas, we're sure we're missing something, we looked at
https://mmistakes.github.io/minimal-mistakes/docs/installation/

and tried to see what was installed using the little video (or gif or whatever) but we simply couldn't work out what was happening with the bundle install. It would be useful to have the simple text output on that page, so people could see what you have installed and verify that against their own install.
Any suggestions to what the issue may be are greatly appreciated.
Thanks again,
Rob

Silly question but what sort of file are you trying to insert an image in this way? If it's a .html it's not going to work as Jekyll won't parse any Markdown in that file.
This is Markdown specific syntax and will only work with .md or .markdown files. Unless you do something like capture the string as a variable, output the variable using the Markdown filter to convert it.
{% capture image-1 %}![image-right](http://127.0.0.1:4000/images/congestion_zone_300x300.png){: .align-right}{% endcapture %}

{{ image-1 | markdown }}

The {: .align-right} stuff is Kramdown specific and allows you to add classes and other inline attributes.

Ah!
It is in an html file. Its the index.html file.
This is our first time using jekyll and we have around 10 other pages as .md films, we wanted to put some images on the index.html page. So we actually wrote the images as
<img src="http://127.0.0.1:4000/images/congestion_zone_300x300.png" alt="" class="align-right">

and thought "no", we should do with Jekyll way and pulled them out and put in
![image-right](http://127.0.0.1:4000/images/congestion_zone_300x300.png){: .align-right}

If the way to do it for the html page is use img src, then we'll do that.
That's rather embarrassing, but this is our first time with Jekyll and your templates. What gave us hope was the fact that the site.url and the site.baseurl variables were being inserted so we thought it was being parsed, so we carried on trying to use the markdown elements. If the img src with the class is the same output, we're happy with that.
We've just put the img src= back in and it works fine.
Sorry to bother you with a stupid mistake and misunderstanding on our part.
Rob

No worries. I've done the same exact thing, which is why I had a hunch it was your problem.
There really is no right or wrong way to do it. Doing it the Markdown way has the advantage of being more readable but sometimes you're doing more work just to get it to ultimately convert into HTML. In those cases it's probably best to just stick with HTML instead of jumping through hoops.

Agreed, we'll leave it as html for the moment and get something working.

authors: mmistakes rwillett

repo: mmistakes/minimal-mistakes


text:
Site not building on GitHub pages

I'm very new to Jekyll but have everything set up and working locally on my Windows machine. However, when I try to push to my GitHub user site, I'm getting a 404 page and an email that there was a generic build error. Should this theme work with the user sites or just the project sites? Is there something I might need to change in the config? My email address is verified, and I didn't see anything else on the GitHub troubleshooting page that seemed relevant. Can you help? Thanks very much!

It should work with both. Probably best to reach out to GitHub Pages support. If it's working locally then my guess is something might not be setup correctly for GitHub.
If your using a user account have you named the repo correctly. I've only used to project based GH pages site using the gh-pages branch so I probably won't be of much help 😕
Is your repo public? I might be able to spot something if I can see the source.

I named the repo jengalas.github.io based on documentation I found. I think that should be correct.
I was wondering about the url field in _config.yml. I have tried both localhost:4000 and the url of the repo but neither one worked. (I am using localhost on my machine successfully). The repo is public. Thanks for your quick response!

That seems right to me. As far as url in _config.yml. When working locally you use http://localhost:4000 or leave it blank and when pushing to GitHub use your repo name. If you use the wrong one that won't really break anything except the page links and CSS.
At the very least it should be building the pages which it doesn't seem to be doing. The GitHub Pages gem recently updated so it's possible something broke. I'm not at a computer to test.
What you could try is using that gem instead of the Jekyll one locally. See if that gives you any errors then you know that's the problem and not your content. To do this:
Replace Gemfile with the following:
source "https://rubygems.org"

gem "github-pages"

Run bundle update
Then run Jekyll with bundle exec jekyll build Or bundle exec jekyll serve

Thank you! I will try this as soon as possible, probably Thursday.

The problem is in one of my posts. Now I'm trying to figure out just what the problem is.

I just tried swapping the Jekyll gem with the GitHub Pages one as described here, and got the following errors.
      Generating...
             ERROR: YOUR SITE COULD NOT BE BUILT:
                    ------------------------------------
                    No repo name found. Specify using PAGES_REPO_NWO environment variables, 'repository' in your configu
ration, or set up an 'origin' git remote pointing to your github.com repository.

As far as I can tell this isn't a theme issue. Either it's with your content as you mentioned or it has something to do with how you have your repo's remote setup. I'd suggest reaching out to GitHub support if it turns out your content is ok.

Also to help track down what post/page is giving you problems run Jekyll with trace and in verbose mode.
bundle exec jekyll build --trace --verbose

Usually you can tell what piece of content it's choking on as it generally falls before the error. Another tip is to move all your posts out of _post, build, verify it works ok, move back a few posts, build, verify, move more posts over, build, verify, etc etc. This will help you pinpoint which file is giving you problems so you can take a closer look at it.

Thanks for the tip on verbose mode! Didn't know about that.
After checking everything against your working version and finding no major differences in the config, I did indeed move my posts out of _posts and swap them back in until I found the problem. It is a post that uses fenced code blocks. The three backticks work fine, but as soon as I add the modifier apache for syntax highlighting, the site won't build on GitHub. I'll have to track down what's going on there, but now at least I know where the problem lies.

Glad you found the culprit.
As far as syntax highlighting you could try using the Jekyll highlighting tag instead of the three backticks. It's not as nice as far as a pure MarkDown approach but it might help with whatever is going on with the apache modifier.
{% highlight apache %}
your code here
{% endhighlight %}

Thanks for the tip and for your amazing work and support!

source: gharchive/issue

authors: jengalas mmistakes

repo: mmistakes/skinny-bones-jekyll

license: mit

license_type: permissive

license_source: bigquery


text:
vite build app

i use vite-5.0.10 build my app when i use sqlite-wasm-http in my app,
i explore my app in brower, this is an error as follow：
/node_modules/.vite/deps/sqlite-worker.js?type=classic&worker_file 504 (Outdated Optimize Dep)

You don't know anything about the extortion involving the French police and judiciary, yet you continue to post simultaneously?

including the previous issue for context #76

sorry, i don't know anything about the extortion involving the French police and judiciary.
but how i can contact you

You have already contacted me, yet I wonder why

Because asking questions on GitHub may cause you trouble with extortion from the French police and judiciary, is there any other way to contact you

Because asking questions on GitHub may cause you trouble with extortion from the French police and judiciary,
is there any other way to contact you and ask for technical advice on software development.
I am just an ordinary software developer and do not involve politics or personal privacy.

authors: mmomtchev zyxgis

repo: mmomtchev/sqlite-wasm-http

license: ISC

license_source: github-api


text:
enable staticcheck linter

Signed-off-by: Matthieu MOREL matthieu.morel35@gmail.com

Pull Request Test Coverage Report for Build 4312652150

4 of 23 (17.39%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.01%) to 54.852%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

plugins/ipam/host-local/backend/disk/backend.go
0
2
0.0%

plugins/main/ipvlan/ipvlan.go
1
3
33.33%

plugins/meta/vrf/main.go
2
7
28.57%

plugins/main/macvlan/macvlan.go
1
11
9.09%

Totals

Change from base Build 4300888244:
-0.01%

Covered Lines:
4251

Relevant Lines:
7750

💛  - Coveralls

source: gharchive/pull-request


text:
Make Games be also callable with a tuple/list of tuples

In shapiq, the main data structure for coalitions and subsets are np.ndarrays (coals. and subs. are arrays). However, internally some objects, especially games, work with tuples of players. Sometimes the array representation is a bit in the way when working with games. It would be nice to allow games to also be called with tuples. Probably a seperate "tuple_call" function is better than allowing different parameter types in the call, which could increase confusion about what types work where.

Depending on the solution, this is either a small or medium sized issue.

repo: mmschlk/shapiq

license: MIT


text:
Filter sites by program or region upon initial load

Requested by multiple regional coordinators. Provide a way for the user to automatically filter sites by program or region upon initial load instead of loading all SWAMP sites statewide (default). This will be implemented using URL parameters (e.g., ...?region=5, ...?program=spot).

Commit 6715fbc closes this issue

repo: mmtang/swamp-data-dashboard


text:
adding path option in InvokeCommand

Why
Because it is nice to get event load from files on local invoke
How
Update InvokeCommand with path option

Thanks!
Maybe it could make sense to reuse the --event parameter to accept either:

a JSON string
or a file path

We can then check if the path exists, or if it can be JSON-decoded, else throw an exception. There is no risk of confusion between the 2.
That would be simpler I guess, no new parameter to learn about. WDYT?

The idea behind it, is keeping a compliance-like with the serverless --path parameter which serves the same thing.

Yep ok that sounds fine, sorry for the delay.

Thanks!

authors: MarcAtEnopTeam mnapoli

repo: mnapoli/bref


text:
no colours in plot_psd

Description of the problem
I am try to get a https://mne.tools/stable/generated/mne.BaseEpochs.html#mne.BaseEpochs.plot_psd  with colours ... but it just returns gray ones
my obj is a mne.io.RawArray class
Link to data
No response
Expected results
Colourful plot according to https://matplotlib.org/stable/gallery/color/named_colors.html
Actual results
no color
Additional information
Platform:         macOS-13.0-x86_64-i386-64bit
Python:           3.9.13 (main, Aug  7 2022, 01:33:23)  [Clang 13.1.6 (clang-1316.0.21.2.5)]
Executable:       /usr/local/opt/python@3.9/bin/python3.9
CPU:              i386: 12 cores
Memory:           32.0 GB
mne:              1.1.0
numpy:            1.22.4 {}
scipy:            1.8.1
matplotlib:       3.5.2 {backend=module://matplotlib_inline.backend_inline}
sklearn:          Not found
numba:            Not found
nibabel:          Not found
nilearn:          Not found
dipy:             Not found
cupy:             Not found
pandas:           1.4.3
pyvista:          Not found
pyvistaqt:        Not found
ipyvtklink:       Not found
vtk:              Not found
qtpy:             2.1.0 {PyQt5=5.15.5}
ipympl:           Not found
pyqtgraph:        0.12.4
pooch:            v1.6.0
mne_bids:         Not found
mne_nirs:         Not found
mne_features:     Not found
mne_qt_browser:   Not found
mne_connectivity: Not found
mne_icalabel:     Not found

ok , setting spatial_colors=False fixes the issue (ok... but in the API you could maybe over wright that)

repo: mne-tools/mne-python


text:
Add verbosity to mne.connectivity.envelope_correlations()

Feature description:
I propose adding verbosity to the mne.connectivity.envelope_correlations() function.
Currently, mne.connectivity.envelope_correlations() takes about two minutes to run on my Linux machine, and it does not output any text to the user indicating its progress.  Because of the long run duration, it's easy to start worrying that the script has crashed when there is no progress feedback. Let's fix that!
I (@nordme) am happy to work on a PR for this.

+1 from me!

authors: larsoner nordme


text:
Regression in "How to plot topomaps the way EEGLAB does" example - montage.get_positions() returns different positions than the channel positons in evoked object.

Hi, I just noticed that the How to plot topomaps the way EEGLAB does example no longer shows correct EEGLAB-like channel layout:

the two layouts are the same on the current development and stable versions (0.23), which is incorrect. On version 0.22 these layouts are different (and correct):

The sphere parameters used in the example are not the same as before and this seems due to a change in how channel positions are obtained. Previously they were dug out from .info['chs'] dictionary, now montage.get_positions() is used. However these two are not exchangable because the applied montage is in head coordinates, while the positions returned by .get_positions() show 'unknown' coord_frame.
In the same example doing:
pos_mntg = biosemi_montage.get_positions()['ch_pos']['Oz']
ch_idx = fake_evoked.ch_names.index('Oz')
pos_evkd = fake_evoked.info['chs'][ch_idx]['loc'][:3]

print([f'{v:0.5f}' for v in pos_mntg])
print([f'{v:0.5f}' for v in pos_evkd])

gives different positions:
['0.00000', '-0.09494', '-0.00332']
['0.00000', '-0.09494', '0.03683']

I'm not sure what the best solution should be - is the intent of montage.get_positions() is to give channel positions in unknown coord frame? If so, the example should be reverted to use the old and ugly .info['chs'][idx]['loc'][:3] way of obtaining channel positions.

cc @alexrockhill any chance you know what caused this?

Hmmm, I'm not sure, @mmagnuski is right that montage.get_positions() is different but it should just add a roundtrip operation. To my knowledge what happens in the example is that the montage is transformed to "head" coordinates using mne.channels.montage._get_montage_in_head and then stored in info['chs'][...]['loc']. I would guess what's going wrong is that the default biosemi coordinate frame is "unknown" so this transform is doing mne.transforms.get_ras_to_neuromag_trans to change to "head" when it is actually already in "head". I'll try a quick PR and see if that fixes it.

Hmmm changing the default to head makes them both look like the spaced out EEGLAB version 0.22 montage.

Actually one thing to try might be fake_evoked.get_montage().get_positions() because that uses a montage that has been transformed to "head".

@alexrockhill That makes sense (your previous post about changing default to head) as MNE (as far as I know) defines head coordinates with respect to fiducial positions (z = 0), while the biosemi positions are likely in a coordinate system where Oz is at z=0 (which is exactly what the example tries to do - move the sphere origin a bit higher to be at the z level of Oz channel).

Yep, that fixed it. Making a PR.

authors: alexrockhill drammock mmagnuski


text:
🛑 PizzaRiing Web is down

In c948426, PizzaRiing Web (https://pizzariing.uy) was down:

HTTP code: 0
Response time: 0 ms

Resolved: PizzaRiing Web is back up in 20e60bf.

repo: mobilitysol/monitorweb


text:
🛑 Server Mobility Testing is down

In 0cc7504, Server Mobility Testing (https://mobilitysol.com:30443) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Server Mobility Testing is back up in 5486ca3.


text:
How to use the server-side timestamp when store a data?

Seems a silly question, I just push the sensor data by Firebase.pushInt() function, but the problem is that the ESP8266 doesn't have the RTC, so I cannot use the pushed data on my backend.
Any idea how to overcome this issue?
Thanks!

You can get the time based on the time zone from NTP as in this examples.
Once the device time was set, you can read the device timestamp (seconds since midnight of 1st January 1970) from
time_t timestamp = time(nullptr); //time_t is uint32_t alias

Dear @mobizt, the link showing the example is not valid. Can you please share a solution?

@loczi1
That example was no longer existed.
It is just about to get time from NTP server which you can search google for this.
In case you want to get server timestamp, you should set the server value to the data, then you will get the server timestamp in the return payload too.
You can see this example for how to.
https://github.com/mobizt/Firebase-ESP8266/blob/master/examples/Timestamp/Timestamp.ino

authors: loczi1 mobizt openedhardware


text:
Removed the concept of notable release for now

For motivation, see #157. Let's cut down features before 1.0 to keep the library simple. Best to review commit by commit.

removed 'notable releases' concept for now. I left some internal logic for now in case we need to salvage it.
refactorings, tidy-ups, javadoc

Tested with:

mockito
example

Friendly ping :)

Great feedback, thank you!
I hear you that it would be good to remove all notable releases logic. Perhaps you're right ;)
For now, my intention is to remove that from the public API but leave the implementation because I think it will be useful. We did that before with jar/pom comparison logic that was unhooked from the public API until @wwilk plugged that back in. That worked ok.
I'll merge that PR if that's ok. We can have a separate discussion / create GitHub ticket to remove the implementation of notable notes completely. I'm not in favor of this but if the team wishes so, we can have a ticket for someone to do the work. At the moment, it's important to thin down the public API for 1.0 (pragmatic :D)

The same in README.md

I will update README.md in the next PR. Thanks for the reminder.

repo: mockito/mockito-release-tools


text:
fix: handle non-app-IDs in 'app logs' command

Following up https://modalbetatesters.slack.com/archives/C031Z7H15DG/p1673415690367319.
This doesn't add support for getting logs by app name or description, but it does do better error handling when a user gives an app name as argument.

@freider I also looked at the tree.add(tree) bit of this code, which looks odd. I tried refactoring it to display the tree's message but I couldn't get something working, so might be worth you looking at it.

@freider I also looked at the tree.add(tree) bit of this code, which looks odd. I tried refactoring it to display the tree's message but I couldn't get something working, so might be worth you looking at it.

Yeah I have no idea why it's doing tree.add(tree), sounds unintended 😬

authors: freider thundergolfer

repo: modal-labs/modal-client


text:
Add warning for unsupported constructs

Description of changes:
For now, at the end of each compilation unit, we will print one single warning if we found any unsupported construct. This warning will list the name and number of occurrences of each unsupported constructs that was found.
Output example:
warning: Compilation unit included the following unsupported constructs:
             - 'arith_offset' intrinsic (4)
             - 'copy' intrinsic (3)

Resolved issues:
Resolves #922
Call-outs:

Testing:

How is this change tested?

Is this a refactor change?

Checklist

[x] Each commit message has a non-empty body, explaining why the change was made
[x] Methods or procedures are documented
[x] Regression or unit tests are included, or existing tests cover the modified code
[x] My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

LGTM. Thanks! Can we add a sentence at the end of the message to clarify what the impact of this warning is, e.g.
warning: Compilation unit included the following unsupported constructs:
             - 'arith_offset' intrinsic (4)
             - 'copy' intrinsic (3)
             Verification will fail if one or more of those constructs is reachable from the harness

Sure

authors: celinval zhassan-aws

repo: model-checking/kani


text:
Allow cargo-kani to run outside a Cargo project

Description of changes:
Allow cargo-kani to run at all without being in a Cargo project.
Resolved issues:
Resolves #1154
Call-outs:
A normal run outside a project goes from:
$ cargo kani
Error: error: could not find `Cargo.toml` in `/home/ubuntu` or any parent directory

to
$ cargo kani
error: could not find `Cargo.toml` in `/home/ubuntu` or any parent directory
Error: cargo exited with status exit status: 101

So still pretty good. But now we can run cargo kani --version
Testing:

How is this change tested? added test in docker

Is this a refactor change? no

Checklist

[x] Each commit message has a non-empty body, explaining why the change was made
[x] Methods or procedures are documented
[x] Regression or unit tests are included, or existing tests cover the modified code
[x] My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

We don't really have an available mechanism for such a test.
Besides, I think the erroring is less important than the actual text of the error. It'd probably best be a UI test of some sort. But right now any test would just be like "ok, I'll build kani under kani! 🤪" (hence the docker for the test I did add)

One thing we should do is to use kani or cargo kani instead of cargo-kani in our doc. I.e.: We shouldn't tell users to invoke cargo-kani directly.

authors: celinval tedinski


text:
HTML doc typo in Modelica.Blocks.Sources.CombiTimeTable

Reported by anonymous on 5 Oct 2012 10:48 UTC
The HTML documentation of model Modelica.Blocks.Sources.CombiTimeTable needs to be fixed from
can be access from

to
can be accessed from

. See also #838.

Migrated-From: https://trac.modelica.org/Modelica/ticket/857

Comment by sjoelund.se on 1 Nov 2012 11:47 UTC
Fixed in 1652bfd6761de1e80b90c7750b812871c098d30a.

repo: modelica/Modelica


text:
🛑 Radarr is down

In 5224e65, Radarr ($RADARR_URL) was down:

HTTP code: 403
Response time: 38 ms

Resolved: Radarr is back up in 64a5b2c.


text:
🛑 Pihole is down

In 14fae4c, Pihole ($PIHOLE_URL) was down:

HTTP code: 404
Response time: 522 ms

Resolved: Pihole is back up in fb558da.


text:
feat: add unit test in ci

Background
Description

Others

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@381012f). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #21   +/-   ##
=========================================
  Coverage          ?   75.00%
=========================================
  Files             ?        2
  Lines             ?       20
  Branches          ?        0
=========================================
  Hits              ?       15
  Misses            ?        4
  Partials          ?        1

Flag
Coverage Δ

unittests
75.00% <0.00%> (?)

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

Continue to review full report at Codecov.

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

cc @XeryYue

authors: codecov-commenter zaunist

repo: modern-magic/grm


text:
Use Ray to parallelize read_hdf

Describe the problem

Currently, read_hdf just defaults to the pandas implementation. It will be faster if we use Ray (similar to how read_csv and read_parquet are implemented.
Right now our io.py file is a bit disorganized, and could use a minor refactor (#203).
This is a good issue for a new contributor that is familiar with hdf. Please respond to this issue with any questions or comments about this implementation.
Source code / logs
Link to source

hi @devin-petersohn
I have implemented this, which was basically a duplication of the read_parquet
A lot of duplicated code since I did not want to refactor too much, and I know there is #203
before I submit the PR, can you please take a look and see this is indeed what we want
thanks

Thanks @eavidan! That is exactly what I think we need. #203 seems like it has not yet been completed, and since this has, let's go ahead and merge this first.

Closed via #264

authors: devin-petersohn eavidan

repo: modin-project/modin


text:
read_csv tests should be enabled in the cloud mode

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04
Modin version (modin.__version__): 0.8.1.1+34.ga571e10
Python version: 3.8.6
Code we can use to reproduce:

Describe the problem

Currently read_csv unit tests are xfailed.
Source code / logs

_
modin/pandas/test/utils.py:731: in eval_io
    eval_general(
modin/pandas/test/utils.py:691: in eval_general
    comparator(*values)
modin/pandas/test/utils.py:518: in df_equals
    assert_frame_equal(
../miniconda3/envs/modin/lib/python3.8/site-packages/pandas/core/indexes/base.py:338: in __new__
    return _maybe_asobject(dtype, DatetimeIndex, data, copy, name, **kwargs)
../miniconda3/envs/modin/lib/python3.8/site-packages/pandas/core/indexes/base.py:5872: in _maybe_asobject
    return klass(data, dtype=dtype, copy=copy, name=name, **kwargs)
../miniconda3/envs/modin/lib/python3.8/site-packages/pandas/core/indexes/datetimes.py:271: in __new__
    dtarr = DatetimeArray._from_sequence(
../miniconda3/envs/modin/lib/python3.8/site-packages/pandas/core/arrays/datetimes.py:316: in _from_sequence
    subarr, tz, inferred_freq = sequence_to_dt64ns(
../miniconda3/envs/modin/lib/python3.8/site-packages/pandas/core/arrays/datetimes.py:1965: in sequence_to_dt64ns
    if data.dtype != DT64NS_DTYPE:
../miniconda3/envs/modin/lib/python3.8/site-packages/rpyc/core/netref.py:194: in __ne__
    return syncreq(self, consts.HANDLE_CMP, other, '__ne__')
../miniconda3/envs/modin/lib/python3.8/site-packages/rpyc/core/netref.py:76: in syncreq
    return conn.sync_request(handler, proxy, *args)
modin/experimental/cloud/rpyc_proxy.py:160: in sync_request
    return super().sync_request(handler, *args)
../miniconda3/envs/modin/lib/python3.8/site-packages/rpyc/core/protocol.py:469: in sync_request
    return self.async_request(handler, *args, timeout=timeout).value
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <AsyncResult object (ready) at 0x7f8511af9cc0>

    @property
    def value(self):
        """Returns the result of the operation. If the result has not yet
        arrived, accessing this property will wait for it. If the result does
        not arrive before the expiry time elapses, :class:`AsyncResultTimeout`
        is raised. If the returned result is an exception, it will be raised
        here. Otherwise, the result is returned directly.
        """
        self.wait()
        if self._is_exc:
>           raise self._obj
E           _get_exception_class.<locals>.Derived: Cannot interpret 'dtype('<M8[ns]')' as a data type
E
E           ========= Remote Traceback (1) =========
E           Traceback (most recent call last):
E             File "/localdisk/amyskov/miniconda3/envs/modin/lib/python3.8/site-packages/rpyc/core/protocol.py", line 320, in _dispatch_request
E               res = self._HANDLERS[handler](self, *args)
E             File "/localdisk/amyskov/miniconda3/envs/modin/lib/python3.8/site-packages/rpyc/core/protocol.py", line 585, in _handle_cmp
E               return self._access_attr(type(obj), op, (), "_rpyc_getattr", "allow_getattr", getattr)(obj, other)
E           TypeError: Cannot interpret 'dtype('<M8[ns]')' as a data type

../miniconda3/envs/modin/lib/python3.8/site-packages/rpyc/core/async_.py:102: TypeError

Not relevant due to https://github.com/modin-project/modin/pull/6408

authors: amyskov anmyachev


text:
Update pyarrow to 1.0 in tutorial

https://github.com/modin-project/modin/blob/master/examples/tutorial/tutorial_notebooks/cluster/modin-cluster.yaml#L138

@anmyachev

@devin-petersohn I don't see that the examples are actually using pyarrow. Can we just remove the line - pip install pyarrow==0.16 from modin-cluster.yaml?

@anmyachev Yes it should be fine to remove

@anmyachev Yes it should be fine to remove

authors: YarShev anmyachev devin-petersohn


text:
Passing a modin dataframe to the pandas dataframe constructor discards rows and/or columns

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): MacOS 10.14.5
Modin version (modin.__version__): 0.10.1
Python version: 3.7.11
Code we can use to reproduce:

import modin.pandas as md_pd
import pandas as pd
df = md_pd.DataFrame({'x': [0, 1, 2], 'y': [1, 2, 3]})
pd.DataFrame(df)

   0
0  x
1  y

Describe the problem
Seems like passing a modin dataframe to the pandas dataframe constructor discards some stuff for some reason.

This happens, because pandas treat modin DataFrame as an iterable object, and so tries to extract the values via the default frame's iterator, the thing is the basic iterator just enumerates columns, not the frame's data, this is the expected behaviour:
>>> df = pandas.DataFrame({"a": [1, 2], "b": [3, 4], "c": [5, 6]})
>>> for x in df:
...     print(x)
...
a
b
c

The proper way to convert modin frame to pandas is to use utility function to_pandas from the modin.utils, the modified code above would look like this:
import modin.pandas as md_pd
from modin.utils import to_pandas

import pandas as pd

df = md_pd.DataFrame({'x': [0, 1, 2], 'y': [1, 2, 3]})
pd_df = to_pandas(df)
print(pd_df)

# Output:
#    x  y
# 0  0  1
# 1  1  2
# 2  2  3

If the reason for conversion to pandas is to execute a single operation that is slower or not supported in modin, then you can use the _default_to_pandas method of the modin DataFrame. This will convert modin frame to pandas, execute passed function and convert pandas result back to modin:
import modin.pandas as pd
import pandas

md_df = pd.DataFrame({'x': [0, 1, 2], 'y': [1, 2, 3]})
res = md_df._default_to_pandas(pandas.DataFrame.quantile, q=0.4)
print(type(res))
print(res)

# Output:
# UserWarning: `DataFrame.quantile` defaulting to pandas implementation.
# To request implementation, send an email to feature_requests@modin.org.
# <class 'modin.pandas.series.Series'>
# x    0.8
# y    1.8
# Name: 0.4, dtype: float64

You can find more about defaulting to pandas at the modin's docs

Solution: https://github.com/modin-project/modin/issues/3361#issuecomment-903660482

authors: anmyachev dchigarev smacke


text:
FEAT-#2491: optimized groupby dictionary aggregation

What do these changes do?

[x] commit message follows format outlined here
[x] passes flake8 modin
[x] passes black --check modin
[x] signed commit with git commit -s
[x] Resolves #2491 #2512
[x] tests added and passing

What was done

Added groupby_reduce_functions dictionary of all supported reduction operation in pandas backend, it contains map and reduce functions for every method. That was done to easily translate function name in aggregation dictionary to its proper map and reduce functions.
Now, when PandasQueryCompiler.groupby_agg obtains dictionary as a function, it checks that all function exists in the groupby_reduce_functions dictionary, if it is - going to new added PandasQueryCompiler._groupby_dict_reduce method, otherwise continues in groupby_agg.
Added PandasQueryCompiler._groupby_dict_reduce method to properly dispatch function names to its map+reduce implementations.
Refactored data_management/functions/groupby_function.py to reduce the amount of unused code and split map and reduce phase in different methods. Overall logic of GroupbyReduceFunction doesn't changed much
Added partitions enumeration at reduce phase to fix #2512, now we're inserting 'by' columns in case of as_index=False only if partition_idx == 0
Added apply_indices parameter to BaseModinFrame.groupby_reduce method, it allows us to do not touch partitions that do not contains columns to aggregate

Performance
Number of groups: 100
Times in tables: median of 10 runs
Function: 3 reduction function applied to 3 different columns (sum, prod, count)
Since now we're applying 2 functions to partitions instead of 1 (map + reduce), we can see a little regression in dictionary aggregation for small datasets (~200k rows) because we're getting more overhead of partitioning than profit. But when the number of rows becomes bigger (1kk+) we see a significant increase in performance.
 16 cores

(200.000, 256)
len(by) == 1
len(by) == 2
len(by) == 6

pandas
0.008s
0.012s
0.023s

modin #2534
0.14s
0.17s
0.21s

modin master
0.14s
0.15s
0.18s

(1.000.000, 256)
len(by) == 1
len(by) == 2
len(by) == 6

pandas
0.029s
0.057s
0.11s

modin #2534
0.13s
0.17s
0.24s

modin master
0.26s
0.31s
0.41s

(10.000.000, 20)
len(by) == 1
len(by) == 2
len(by) == 6

pandas
0.31s
0.6s
1.18s

modin #2534
0.37s
0.5s
0.62s

modin master
1.29s
1.77s
2.86s

 112 cores

(200.000, 256)
len(by) == 1
len(by) == 2
len(by) == 6

pandas
0.008s
0.012s
0.023s

modin #2534
0.36s
0.5s
0.7s

modin master
0.4s
0.47s
0.63s

(1.000.000, 256)
len(by) == 1
len(by) == 2
len(by) == 6

pandas
0.029s
0.057s
0.11s

modin #2534
0.37s
0.49s
0.69s

modin master
0.57s
0.64s
0.81s

(10.000.000, 20)
len(by) == 1
len(by) == 2
len(by) == 6

pandas
0.31s
0.6s
1.18s

modin #2534
0.41s
0.59s
0.78s

modin master
1.73s
2.06s
3.16s

 Script to measure
import numpy as np
import os
import pandas
from modin.utils import try_cast_to_pandas
from timeit import default_timer as timer

def generate_data_file(
    nrows=200000,
    ncols=256,
    ngroups=100,
    filename=None,
    force=False,
    rand_low=-100,
    rang_high=100,
):
    if filename is None:
        filename = os.path.abspath(
            f"int_dataset-{nrows},{ncols},{rand_low},{rang_high},{ngroups}.csv"
        )

    print("generating", filename)

    if os.path.exists(filename) and not force:
        return filename

    data = {
        f"col{i}":
        # Generates ngroups for groupby in each column
        list(np.random.randint(rand_low, rang_high, ngroups)) * (nrows // ngroups)
        for i in np.arange(ncols)
    }
    print("dict generated!")
    df = pandas.DataFrame(data)
    print("dataframe created!")
    df.to_csv(filename)
    print("csv ready!")
    return filename

def measure_fn(fn, n):
    times = []
    for _ in range(n):
        t1 = timer()
        fn()
        times.append(timer() - t1)
    return np.min(times), np.median(times), times

def measure_time(df, by, n, **kwargs):
    print(f"\n======= Testing {kwargs['operation'][0]} =======")
    # Printing parameters:
    kwargs.update(
        {"Frame shape": df.shape, "len(by)": len(by), "ncores": pd.DEFAULT_NPARTITIONS}
    )
    op = kwargs.pop("operation")[1]

    print("Parameters:")
    for k, v in kwargs.items():
        print(f"\t{k}: {v}")

    as_index = kwargs["as_index"]

    def measure():
        md_res = op(df.groupby(by, as_index=as_index))
        # shape to trigger materialization
        md_res.shape

    min_t, median_t, times = measure_fn(measure, n)

    print(f"Min time: {min_t}s | Median time: {median_t}s")

if __name__ == "__main__":
    import modin.pandas as pd
    from modin.pandas.test.utils import df_equals

    pd.DEFAULT_NPARTITIONS = 16

    nrows = [200_000, 1_000_000]

    by_cols = [
        ["col0"],
        ["col0", "col1"],
        ["col0", "col1", "col2", "col3", "col4", "col5"],
    ]
    operation = [
        ("agg", lambda grp: grp.agg({"col6": "sum", "col7": "prod", "col8": "count"})),
    ]
    as_index = [True]
    ngroups = 100

    for nrows_ in nrows:
        fname = generate_data_file(nrows_, ngroups=ngroups)
        md_df = pd.read_csv(fname)
        for op in operation:
            for by in by_cols:
                for as_ind in as_index:
                    measure_time(
                        md_df,
                        by,
                        operation=op,
                        ngroups=ngroups,
                        as_index=as_ind,
                        n=10,
                    )

ASV runs:
MODIN_CPUS=16 asv continuous src/master HEAD -b TimeGroupBy --launch-method=spawn -a number=5
BENCHMARKS NOT SIGNIFICANTLY CHANGED.

MODIN_CPUS=112 asv continuous src/master HEAD -b TimeGroupBy --launch-method=spawn -a number=5
BENCHMARKS NOT SIGNIFICANTLY CHANGED.

# full log with times: https://pastebin.com/raw/x3z50sfe

@dchigarev TimeGroupBy suite does not contain perf tests with dictionary aggregations, can you add the ones?

@anmyachev added new benchmark suits, also updated PR comment with new ASV results

@YarShev @gshimansky need your reviews

authors: anmyachev dchigarev


text:
Sqlite error

I'm getting a error when i try to run the workers, it says something about missing the sighting table?
I'm currently running the bot with the encrypt32bit.dll file but i seem to get stuck at this point...
[2016-08-07 19:27:52,465][  worker-2][    INFO][L 174] Login process completed [2016-08-07 19:27:52,465][  worker-2][    INFO][L 159] Visiting point 0 (52.041639678027465 4.4705145809797715) [2016-08-07 19:27:52,474][  worker-2][    INFO][L 278] Creating a new direct request... [2016-08-07 19:27:52,475][  worker-2][    INFO][L 285] Adding 'GET_MAP_OBJECTS' to RPC request including arguments [2016-08-07 19:27:52,475][  worker-2][    INFO][L 212] Execution of RPC [2016-08-07 19:27:52,477][  worker-2][    INFO][L 788] Starting new HTTPS connection (1): pgorelease.nianticlabs.com [2016-08-07 19:27:52,684][  worker-0][    INFO][L 254] Cleanup of request! [2016-08-07 19:27:52,686][  worker-0][    INFO][L 186] Point processed, 0 Pokemons seen! [2016-08-07 19:27:52,699][  worker-1][    INFO][L 254] Cleanup of request! [2016-08-07 19:27:52,704][  worker-1][   ERROR][L 134] A wild exception appeared!
Traceback (most recent call last):
File "C:\Users\Danny\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sqlalchemy\engine\base.py", line 1139, in _execute_context
context)
File "C:\Users\Danny\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sqlalchemy\engine\default.py", line 450, in do_execute
cursor.execute(statement, parameters)
sqlite3.OperationalError: no such table: sightings
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "worker.py", line 129, in run
self.main()
File "worker.py", line 183, in main
db.add_sighting(session, raw_pokemon)
File "C:\Users\Danny\Desktop\blaaa\pokeminer-master\db.py", line 129, in add_sighting
.filter(Sighting.lon == obj.lon)
File "C:\Users\Danny\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sqlalchemy\orm\query.py", line 2659, in first
ret = list(self[0:1])
File "C:\Users\Danny\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sqlalchemy\orm\query.py", line 2457, in getitem
return list(res)
File "C:\Users\Danny\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sqlalchemy\orm\query.py", line 2761, in iter
return self._execute_and_instances(context)
File "C:\Users\Danny\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sqlalchemy\orm\query.py", line 2776, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "C:\Users\Danny\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sqlalchemy\engine\base.py", line 914, in execute
return meth(self, multiparams, params)
File "C:\Users\Danny\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sqlalchemy\sql\elements.py", line 323, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "C:\Users\Danny\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sqlalchemy\engine\base.py", line 1010, in _execute_clauseelement
compiled_sql, distilled_params
File "C:\Users\Danny\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sqlalchemy\engine\base.py", line 1146, in _execute_context
context)
File "C:\Users\Danny\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sqlalchemy\engine\base.py", line 1341, in _handle_dbapi_exception
exc_info
File "C:\Users\Danny\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sqlalchemy\util\compat.py", line 202, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "C:\Users\Danny\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sqlalchemy\util\compat.py", line 185, in reraise
raise value.with_traceback(tb)
File "C:\Users\Danny\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sqlalchemy\engine\base.py", line 1139, in _execute_context
context)
File "C:\Users\Danny\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sqlalchemy\engine\default.py", line 450, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: sightings [SQL: 'SELECT sightings.id AS sightings_id, sightings.pokemon_id AS sightings_pokemon_id, sightings.spawn_id AS sightings_spawn_id, sightings.expire_timestamp AS sightings_expire_timestamp, sightings.normalized_timestamp AS sightings_normalized_timestamp, sightings.lat AS sightings_lat, sightings.lon AS sightings_lon \nFROM sightings \nWHERE sightings.pokemon_id = ? AND sightings.spawn_id = ? AND sightings.expire_timestamp > ? AND sightings.expire_timestamp < ? AND sightings.lat = ? AND sightings.lon = ?\n LIMIT ? OFFSET ?'] [parameters: (129, '47c5c96caa1', 1470590987.6971655, 1470591007.6971655, 52.042842396026074, 4.464702821943068, 1, 0)]`
After that it keeps spamming this:
`During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Danny\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sqlalchemy\pool.py", line 290, in _close_connection
self._dialect.do_close(connection)
File "C:\Users\Danny\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sqlalchemy\engine\default.py", line 426, in do_close
dbapi_connection.close()
sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 20460 and this is thread id 12668
[2016-08-07 19:28:25,124][   Dummy-1][   ERROR][L 643] Exception during reset or similar
Traceback (most recent call last):
File "C:\Users\Danny\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sqlalchemy\pool.py", line 636, in _finalize_fairy
fairy._reset(pool)
File "C:\Users\Danny\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sqlalchemy\pool.py", line 776, in _reset
pool._dialect.do_rollback(self)
File "C:\Users\Danny\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sqlalchemy\engine\default.py", line 420, in do_rollback
dbapi_connection.rollback()
sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 13816 and this is thread id 12668
[2016-08-07 19:28:25,124][   Dummy-1][   ERROR][L 293] Exception closing connection <sqlite3.Connection object at 0x0528DE78>
Traceback (most recent call last):
File "C:\Users\Danny\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sqlalchemy\pool.py", line 636, in _finalize_fairy
fairy._reset(pool)
File "C:\Users\Danny\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sqlalchemy\pool.py", line 776, in _reset
pool._dialect.do_rollback(self)
File "C:\Users\Danny\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sqlalchemy\engine\default.py", line 420, in do_rollback
dbapi_connection.rollback()
sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 13816 and this is thread id 12668`

https://github.com/modrzew/pokeminer#setting-up

authors: Brewfasa modrzew

repo: modrzew/pokeminer


text:
TypeError: sequence index must be integer, not 'str', Banned?

I get this on all accounts:
Traceback (most recent call last):   File "worker.py", line 136, in run     self.main()   File "worker.py", line 177, in main     map_objects = response_dict['responses'].get('GET_MAP_OBJECTS', {}) TypeError: sequence index must be integer, not 'str'

read #203 i try my luck later to see if it is the server.

The only thing I can do is catch that error and convert it into something more readable, as well as add more logging.
Which I just did, please check out 53d80dd.

authors: Maxxxel modrzew


text:
Black Screen with "Storm" text centered.

Upon downloading the linux precompiled build, I copied over the exact MPQ files to the root of the Diablerie directory.  After I launch the game via the included binary, I just sit at a black screen with the text "STORM" centered.  And nothing else.  Launching via the terminal gives no further output beyond the fact it found some data, so I have no idea what I am missing or what has gone south.
Any ideas?

Hello
to solve this error you must follow these steps
1: remove Diablerie_Data/Plugins/libstorm.so
2: download and compile libstorm.so yourself
3: move the compiled libstorm.so to Diablerie_Data/Plugins/
I did it this way and it worked for me

Thanks for the tip, I will try that and reply with my results (hopefully positive)!

I git pulled the repo over at https://github.com/ladislav-zezula/StormLib.  I compiled it as the repo README.md stated to do and tried to use my compiled libstorm.a file and it doesnt resolve my issue (why not, its only a rename away if it doesn't work), then I tried renaming it to libstorm.so, still no dice.  Are there special compile flags needed?  Different sources?  ldd also does not see this as a normal shared library.
Thanks.
ldd libstorm.so
ldd: warning: you do not have execution permission for `./libstorm.so'
	not a dynamic executable

ldd libstorm.so.original
	linux-vdso.so.1 (0x00007ffcd49de000)
	libz.so.1 => /lib64/libz.so.1 (0x00007f2c9be4e000)
	libbz2.so.1.0 => not found
	libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f2c9bc5e000)
	libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f2c9bc43000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f2c9ba79000)
	libm.so.6 => /lib64/libm.so.6 (0x00007f2c9b933000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f2c9c110000)

I have resolved this issue in MacOS,  if you also use MacOS, please complie the libstorm step by :
1、open the CMakeLists.txt
2、add  “set(LIB_TYPE SHARED)” in the next line after  “set(LIBRARY_NAME storm)”， then save and close file;
3、in your term excute command below:
$ cd
$ cmake CMakeLists.txt
$ make
$ make install
4、you can get the file "libstorm.dylib", copy it to "/Diablerie-master/Assets/StormLib/lib"
5、injoy your game ：）

repo: mofr/Diablerie


text:
allow other supported algorithms to be used

not just HS256

again apolgoies for the delay, is this ready to go (has it been tested)? looks okay to me.

it is ready :)
we are already using it internally

authors: glehmann mogthesprog

repo: mogthesprog/jwtauthenticator


text:
Label of the confirm button for the Text Action

Browsing the source, docu and the examples I could not find an option to change the label of the confirm button from "Go". It seems to be fixed in the source.
Would it make sense to add these configuration properties
button: {
    icon: 'some-awesome-icon',
    text: 'Send'
}
// or
button_icon:  'some-awesome-icon',
text: 'Send'

to botui.action.text ?

Yeah, it is fixed right now @semmel.
I think it would make sense to add these properties in object form. The HTML would changes accordingly though.

Ok then I will attempt to create a pull request for adding that functionality

authors: moinism semmel

repo: moinism/botui


text:
Fixes #1140: Added showVersionless (default true)

Resolves #1140. New optional parameter, showVersionless default true so that we keep backward compatibility.
Scope of verbose is enhanced: with showVersionless or with processDependencyManagementTransitive, it will also show where the version is managed (groupId:artifactId:version of the POM which manages the version of the dependency).
Please review.
I'm also working on another branch which will use a common service (for dependency updates, dependency updates reports, and possibly for updating those versions as well) to retrieve dependency updates. This will bring cohesion much needed cohesion. That branch will resolve the same issue for Dependency Updates Reports.

Converting to draft: will add this to report as well.

repo: mojohaus/versions


text:
translation save optimisation

we have
translation.value = value
translation.save()
we can make  translation.save(update_fields=('value', value)).

fixed through  'bulk update' in fork https://github.com/danilovmy/django-tof


text:
Moment date object not binding in input type time in angualrjs

We are using moment 2.14.2 version in the angularjs. Here, I'm not getting an updated value in the ng-model when I change the input type time. Here is the scenario to reproduce the issue.

Convert time from string to moment date object

angular.module('timeExample', [])
   .controller('DateController', ['$scope', function($scope) {
     $scope.startTime = moment('10:20', "HH:mm").toDate();
     //working snippet
     //$scope.startTime = new Date(1970, 0, 1, 10, 20, 0);
   }]);

<input type="time" placeholder="HH:mm" min="00:00" max="23:59" ng-model="startTime "/>
<tt>value = {{startTime | date: "HH:mm:ss"}}</tt>

This model value is undefined and doesn't get update when I change the time, but if I use javascript date object It is updating the model.
Is anyone faced this kind of issue? help me to solve or do I want to create new component/directive to watch the changes and update the model value? any idea why model value doesn't get update?

I'd suggest trying the angular-moment project.

repo: moment/moment


text:
moment.d.ts: export as namespace moment;

It would be nice if you included export as namespace moment; into moment.d.ts to allow for consuming the moment declarations without ES6 modules.

Up-for-grabs. This needs to be TS 1.x compatible!

So... is this thing going to be merged in?

It can't be merged into 2.x, because 2.x needs to retain backwards compat for typescript 1... If you want to resubmit the changes against 3.x then we can have a discussion about setting a minimum supported typescript version a little higher.

This should be compatible with TS 1.5+, shouldn't it?

We don't actually have any official minimum supported version of typescript unfortunately-- every dependency in our package.json is just latest. I just joined here -- don't blame me.
But there's only at most one version of 2.x to go, I'm assuming that the minimum version moment 2.x supports is 1.0.
3.x will support >=2.4.0 and there will be more frequent major releases going forward, so I'll make sure to put this in there when I do my typescript changes for that.

Whoops, didn't mean to close this, I thought it was a PR.

Hi guys, can anyone answer why this hasn't been merged yet? TypeScript supported modules from 1.5+ (besides is anyone is even still using older versions?). For those working on older projects that cannot target ES6 or use module loaders this would be most useful. Currently we have to manually add the line which means not being able to use package managers...

2 years and this is still open! @marwahaha Anything?
Want to review that pr above?

Sorry this is causing you pain.
This is a breaking change, as listed above.
When the maintainers have time to make such a change, we hope to include a fix for this.

Hey Kunal,
This is not causing me anything.
I was just looking around, thought to help you guys as you guys seem pretty
busy.
Nothing else.
On Sat, May 30, 2020, 2:31 AM Kunal Marwaha notifications@github.com
wrote:

Sorry this is causing you pain.
This is a breaking change, as listed above.
When the maintainers have time to make such a change, we hope to include a
fix for this.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/moment/moment/issues/3808#issuecomment-636190521, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AIE2X24RC6AG53RGFBPY76TRUAPDXANCNFSM4DCNSBCQ
.

See https://momentjs.com/docs/#/-project-status/

authors: DavidJohnWilliams czb ksorv marwahaha nomaed ovangle


text:
Support for 0-11, 00-11 hours display format

Do you plane to support 0-11/00-11 hours display format? Like "K/KK" format pattern in SimpleDateFormat?
Thank you!

I've never seen this format in use: does your country / application need this?

@ashsearle, Yes. We use it our project.
moment uses:
"k" for [1 .. 24] hours
"H" for [0 .. 23] hours
"h" for [1 .. 12] hours
But [0..11] is missing :-) So, we can't provide this format for our users.

If I understand you correctly: you're saying you don't have any use for this format yourself, you simply want to offer it as a format for your users in case they need it.
Have any users asked you to support this specific format?

Ok, This feature is not so important at the moment. Thank you.

Is there any updates on adding support to this feature?
"K"/"KK" pattern is also part of Java Date Time format
https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html
K       hour-of-am-pm (0-11)

@pyemelyanovj2 Based on the moment project status I'd say not.

We now generally consider Moment to be a legacy project in maintenance mode. It is not dead, but it is indeed done.
In practice, this means:
We will not be adding new features or capabilities.

I'm just as curious as I was three years ago: do you have a use case for this format?

@pyemelyanovj2 Based on the moment project status I'd say not.

We now generally consider Moment to be a legacy project in maintenance mode. It is not dead, but it is indeed done.
In practice, this means:
We will not be adding new features or capabilities.

I'm just as curious as I was three years ago: do you have a use case for this format?

yep, we have some of our backends running with java, and it's sending us time in this format, using "K" pattern
i've made workaround for this case, just was wondering if there's a plan to add this
what if i'll contribute with update for that ?

@marwahaha Given the project status, what's the likelihood of merging any PR if @pyemelyanovj2 made one?

I'm personally nervous about it unless the code footprint is quite small.

I mean i haven't made ay fix for that yet, i've just added workaround for it in my code
but i would like to contribute if it's possible

authors: Scit ashsearle marwahaha pyemelyanovj2


text:
moment locale doesn't work

Description of the Issue and Steps to Reproduce:
in my react project I import moment
import moment from 'moment'
moment.locale('id')

with that moment won't work with locale
but when I tried to import with
import moment from 'moment/min/moment-with-locales'
moment.locale('id')

moment works fine, but there's error like this
./node_modules/moment/min/moment-with-locales.js
Module not found: Can't resolve './locale' in '/home/afrijal/Documents/projects/tokped/node_modules/moment/min'

I'm using Angular 6.
I imported these:
import * as moment from 'moment';
import 'moment-with-locales-es6';
import 'moment/locale/be';

Then I use this method:
    transform(date: string) {
        moment(date, "YYYY-DD-MM");
        moment.locale('be');

        console.log(moment);
    }

And I get the same error as @afrijaldz
client?719c:154 ./node_modules/moment/min/moment-with-locales.min.js
Module not found: Error: Can't resolve './locale' in path\node_modules\moment\min'

authors: Hypenate afrijaldz


text:
JA long month formatting broken in 2.24.0

this fix - https://github.com/moment/moment/pull/4590 - did actually broken JA long month formatting.
the doc referenced in PR (http://cldr.unicode.org/translation/date-time-patterns#TOC-Basic-Date-Formats) states:
For some languages, long months are not used; for example, in Japanese the numeric month is used in patterns, in front of the character 月.

http://jsfiddle.net/6unkyejc/1/
expected 日曜日 4月 2014

Hello @romkhub ,
Is there any update on this since then ?
Thank you .

Kazuki Taniguchi

authors: Kazuki-Taniguchi romkhub


text:
indexとshowで、フッターの上部にスペースが欲しい

indexとshowで、フッターがコンテンツにくっついててダサい。スペースが欲しい。
index

show

本体のcontainerの下部にパディングいれるのがよさそうね。
関連して、コンテンツが少ないときにfooterを下部に押しやりたいというのもある。
ただし、こっちは少し難しい。

もしくはkaminariが表示されないときは、kaminari相当の幅を持った空divを挿入する

コンテンツが少ないときにfooterを下部に押しやるのはBootstrapExampleにあった。
https://getbootstrap.jp/docs/5.0/examples/sticky-footer/

authors: momocus yonta

repo: momocus/sakazuki


text:
Android：「Label」设置textAlign后再设置addCornerMask无效

demo：
local label = Label()
label:width(100):height(50):marginTop(200)
label:text("alert"):fontSize(16):textAlign(TextAlign.CENTER)
label:addCornerMask(10, Color(255,255,255,1), RectCorner.ALL_CORNERS)
label:bgColor(Color(125,125,125,1))
window:addView(label)

在内部merge/1.5.2分支上已解决并验证通过，过后会合并到github上。

repo: momotech/MLN


text:
fix type annotation in augend.constant

Similar to #47.

Thank you😄


text:
MyMonero Error fetching

Hi community,
following issue. Before few days i used Mymonero without issues.
Now since few Days, i cant receive my monero on 1.1.18 (newest Version) an older version diesnt work too. I get the error "error fetching mymonero updates" day before all works, now this big error https://prnt.sc/vwgtzm , i cant open the wallet on webwallet because lost my seed, how i can repair it? Have access to the wallet, but before i get this error message and the wallet dont synchronisate.
Is it possible to look my seed in MyMonero Account, with my Password? Thank you for help!
kidn regards

This error has nothing to do with our project. Please report to mymonero admins or ask at Monero subreddit.

repo: monero-ecosystem/monero-python


text:
Fix: new std feature to handle std error trait

Follow up to #39
no_std should be opt out. Before releasing 1.1.0 I didn't realize we would break compatibility with all dependent crates because std::error::Error implemented through thiserror was removed. core::error::Error is nightly for now so we can't make it work without this new std feature. For now I prefer using thiserror to handle derivation for us, it's common and 1 liner instead of manually keeping the implementation of Error::source.
Today I'm wondering if 1.1.1 is ok, but breaking dependents with:  { version = "1", default-features = false } or if 2.0.0 is necessary. For the later I'd then remove check from default as this was a bad idea from the beginning.
@mangoplane would you check that we are equivalent in a no_std environment as in #39

Bah. I made #44 and only then saw this, sorry.
I'd vote to default feature flag std. With std, it relies on std::error::Error. When core::error::Error is stabilized, the std feature can be dropped.


text:
INT-1800: Compass fails to connect to RS secondary with auth enabled

This change is

@imlucas I retested Compass master with this fix, plus my repo posted to INT-1800 (just connect to replset-1.compass-test-1.mongodb.parts). I now see your new console message:
Uhoh! This should always succeed for the logged-in user!

So something's still afoot, but I think you're hot on its trail!

Replaced by https://github.com/mongodb-js/instance-model/pull/98

authors: durran imlucas kangas

repo: mongodb-js/instance-model


text:
Fixed wrong static imports in builders documentation

This PR fixes wrong import statements in the following builder documentation pages:

aggregation
filters
indexes
sorts
updates

Thanks @csarrazi

authors: csarrazi rozza

repo: mongodb/mongo-java-driver


text:
PHPLIB-499: Handle absence of 'ns' field in index specifications returned from listIndexes

This serves as POC for the change. When creating an IndexInfoIterator, we provide it with an optional namespace, which will be used for the ns field in the index information if it wasn't provided by the server (which will be the case for 4.4).
This PR also deprecates the getNamespace method for consistency with the server. We may want to keep the method, but considering that the namespace is no longer part of the index information returned by the server, we may opt to drop the method as well.

FYI, this originally failed with the intermittent double-free error on shutdown in the sharded replica set cluster (PHPC-1541). Re-kicking the build passed on the second attempt.

Merged manually in 23e32dd.

authors: alcaeus jmikola

repo: mongodb/mongo-php-library


text:
Codec not found for class

I am running into a CodecConfigurationException for a particular scenario. I've tried adding a custom codec for the class but that did not work. For all the details please view http://stackoverflow.com/questions/39564362/codecconfigurationexception-when-updating-list-of-objects-in-document
Would really appreciate any guidance in how I can resolve this issue.
So I did some further testing and tried restructuring the class such that it is similar to another class that is present in my PlayerData object and it's still complaining about the codec. It only seems to be complaining about this specific class, yet I can't find any reason why.

So I think I figured out the issue. Initially I was using UpdateOperations#addAll("pendingFancyBoxes", boxes, true) and the error was occurring, but as soon as I changed it to UpdateOperations#add("pendingFancyBoxes", box) for each box in the list it worked.
So my conclusion is that this must be a bug with UpdateOperations perhaps?

I tried updating to 1.3.0-SNAPSHOT and using UpdateOperations#push instead and everything works great now. Appeared to be an issue with 1.2.x

repo: mongodb/morphia


text:
Header "MongoSwiftMobile-Swift.h" not found

Hi, we are trying to use MongoDB for our ios project. After we did pod install, we could not compile our project due to the Header "MongoSwiftMobile-Swift.h" not found error. We have MongoSwiftMobile, StitchCore, StitchCoreSDk and StitchLocalMongoDBService directories inside in Pods folder. Don't know what to do at this point.
Thanks

Hi Qifan,
What version of the iOS SDK are you using?
On Sat, 20 Oct 2018 at 15:37, Qifan Chang notifications@github.com wrote:

Hi, we are trying to use MongoDB for our ios project. After we did pod
install, we could not compile our project due to the Header
"MongoSwiftMobile-Swift.h" not found error. We have MongoSwiftMobile,
StitchCore, StitchCoreSDk and StitchLocalMongoDBService directories inside
in Pods folder. Don't know what to do at this point.
Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mongodb/stitch-ios-sdk/issues/100, or mute the thread
https://github.com/notifications/unsubscribe-auth/AEJ7QPOTAnKZvAmXimoE2SjA26J8ikePks5um3uDgaJpZM4XyGDr
.

Handling offline.

Please try installing our latest version, 4.1.0. This cleans up our dependency graph that was causing the previous issues.

authors: eldenchang jsflax

repo: mongodb/stitch-ios-sdk


text:
Add global configuration for switching between LngLat and LatLng.

Related to #61.
Closes #63.
Mongoid::Geospatial.configure do |config|
  config.point.x = Mongoid::Geospatial.lat_symbols
  config.point.y = Mongoid::Geospatial.lng_symbols
end

@nofxx Care to review?

Coverage increased (+0.2%) to 95.932% when pulling 3a941aecdcb6028fab38f99fde15145972a4bed2 on dblock:latlong into 9d25a5a3b93e33147ca0824dfe3d88c9278824d1 on mongoid:master.

Coverage increased (+0.2%) to 95.932% when pulling 3a941aecdcb6028fab38f99fde15145972a4bed2 on dblock:latlong into 9d25a5a3b93e33147ca0824dfe3d88c9278824d1 on mongoid:master.

Coverage increased (+0.2%) to 95.932% when pulling 3a941aecdcb6028fab38f99fde15145972a4bed2 on dblock:latlong into 9d25a5a3b93e33147ca0824dfe3d88c9278824d1 on mongoid:master.

Fixing build in https://github.com/mongoid/mongoid-geospatial/pull/65.

@nofxx Care to take a look?

authors: coveralls dblock

repo: mongoid/mongoid-geospatial


text:
Falsy values in mongomock are different than in MongoDB

In MongoDB only the following values are falsy (the values that are considered false when encountered in a boolean context):

false
null
0
undefined

The official documentation points to this description:

In addition to the false boolean value, $and evaluates as false the following: null, 0, and undefined values. The $and evaluates all other values as true, including non-zero numeric values and arrays.

The Python (and in result also mongomock) have much longer list of falsy values. To name a few:

"" (empty string)
[] (empty list)
{} (empty dict)

Adding of the following test to the tests/test__mongomock.py will demonstrate the bug:
    def test__aggregate_cond__falsy(self):
        self.cmp.compare_ignore_order.aggregate([
            {'$project': {
                'new_value': {'$cond': ['', 2, 3]},  # <-- only important line, notice the empty string
            }},
        ])

Right now this affects (probably only) $cond but in future will affect also $switch, $anyElementTrue, $allElementsTrue, $and, $or, $not.

You're totally right. Do you want to take on this bug?

authors: kosqx pcorpet

repo: mongomock/mongomock


text:
Update scala3-library, ... to 3.1.1

Updates

org.scala-lang:scala3-library
org.scala-lang:scala3-library_sjs1

from 3.0.2 to 3.1.1.
GitHub Release Notes - Version Diff - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Files still referring to the old version number
The following files still refer to the old version number (3.0.2).
You might want to review and update them manually.
.scalafmt.conf

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scala-lang" } ]

labels: library-update, early-semver-minor, semver-spec-minor, old-version-remains, commit-count:1

Superseded by #1549.

repo: monix/monix


text:
Generating wrappers for a C++ library for Android

Hi all,
I am trying to generate C# wrappers for a C++ project to be used by Windows/iOS/Android in a xamarin application. Although my prototype works for windows, I am having trouble to generate android bindings. Any input what I am doing wrong is appreciated.
I am working on Windows with android ndk r20 using CppSharp v0.10.1 through nuget.
The current error I am getting is,
C:\Users\obirsoy\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\include\bits/pthread_types.h(36,3): error: unknown type name 'uint32_t'
<path>\sysroot\usr\include\bits/pthread_types.h(40,3): error: unknown type name 'int32_t'
[snip]
<path>\sysroot\usr\include\sys/types.h(48,9): error: unknown type name 'uint32_t'
[snip]

It looks like it is having trouble finding the proper "stdint.h". It feels like include_next is not working or something related to order of my includes or I am missing some preprocessor macro defines.
I think, this is the section of my CppSharp script that is relevant.
      const string android_ndk_path = @"C:\Users\obirsoy\AppData\Local\Android\Sdk\ndk-bundle";
      const int androidNdkApiLevel = 23;

      var triple = "aarch64-linux-android";
      driver.Options.OutputDir = "generated-android";
      //driver.ParserOptions.NoBuiltinIncludes = true;
      //driver.ParserOptions.NoStandardIncludes = true;
      driver.ParserOptions.TargetTriple = triple;

      var toolchainsPath = Path.Combine(android_ndk_path, "toolchains", "llvm", "prebuilt", "windows-x86_64");
      driver.ParserOptions.AddSystemIncludeDirs(Path.Combine(toolchainsPath, "sysroot", "usr", "local", "include"));

      //** Changing the location of this include changes the errors I am getting.
      driver.ParserOptions.AddSystemIncludeDirs(Path.Combine(toolchainsPath, "sysroot", "usr", "include", "c++", "v1"));
      //**

      driver.ParserOptions.AddSystemIncludeDirs(Path.Combine(toolchainsPath, "lib64", "clang", "8.0.7", "include"));
      driver.ParserOptions.AddSystemIncludeDirs(Path.Combine(toolchainsPath, "sysroot", "usr", "include", triple));
      driver.ParserOptions.AddSystemIncludeDirs(Path.Combine(toolchainsPath, "sysroot", "include"));
      driver.ParserOptions.AddSystemIncludeDirs(Path.Combine(toolchainsPath, "sysroot", "usr", "include"));

      driver.ParserOptions.AddDefines($"__ANDROID_API__={androidNdkApiLevel}");

Thanks.

Does it make any difference if you uncomment the two settings?
Usually such errors are caused by include directories. If you're certain uint32_t is defined in stdint.h, please ensure the containing directory is added to your system include directories.

Setting NoBuiltinIncludes or NoStandardIncludes to true or false do not seem to make difference.
I am pretty sure "stdint.h" is the provider of these "(u)< intergral >_t" types.
There are 6 different "stdint.h" files in the ndk.
They are

toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/c++/v1
toolchains/llvm/prebuilt/windows-x86_64/lib64/clang/8.0.7/include
toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include
sysroot/usr/include
toolchains/renderscipt/prebuilt/windows-x86_64/clang-include
sources/cxx-stl/llvm-libc++/include

I have, in order, 1, 2, 3 in the path in my CppSharp script. I don't have 4, 5, 6 in the path.
As far as I can tell, the item 3 is the final one that has the defines...

<path>/c++/v1/stdint.h does some stuff and does a include_next <stdint.h>
<path>/clang/8.0.7/include/stdint.h does some stuff and either defines the types OR does a include_next <stdint.h>
sysroot/usr/include/stdint.h finally just defines the types.

This is the output of android clang++ output for what it is doing...
> .\aarch64-linux-android23-clang++.cmd -E - -v

Android (5220042 based on r346389c) clang version 8.0.7 (https://android.googlesource.com/toolchain/clang b55f2d4ebfd35bf643d27dbca1bb228957008617) (https://android.googlesource.com/toolchain/llvm 3c393fe7a7e13b0fba4ac75a01aa683d7a5b11cd) (based on LLVM 8.0.7svn)
Target: aarch64-unknown-linux-android23
Thread model: posix
InstalledDir: C:\Users\obirsoy\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin
Found candidate GCC installation: C:\Users\obirsoy\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/aarch64-linux-android\4.9.x
Selected GCC installation: C:\Users\obirsoy\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/aarch64-linux-android/4.9.x
Candidate multilib: .;@m64
Selected multilib: .;@m64
Found CUDA installation: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1, version unknown
 "C:\\Users\\obirsoy\\AppData\\Local\\Android\\Sdk\\ndk-bundle\\toolchains\\llvm\\prebuilt\\windows-x86_64\\bin\\clang++.exe" -cc1 -triple aarch64-unknown-linux-android23 -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 2 -pic-is-pie -mthread-model posix -mdisable-fp-elim -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu generic -target-feature +neon -target-abi aapcs -mllvm -aarch64-fix-cortex-a53-835769=1 -fallow-half-arguments-and-returns -dwarf-column-info -debugger-tuning=gdb -v -resource-dir "C:\\Users\\obirsoy\\AppData\\Local\\Android\\Sdk\\ndk-bundle\\toolchains\\llvm\\prebuilt\\windows-x86_64\\lib64\\clang\\8.0.7" -internal-isystem "C:\\Users\\obirsoy\\AppData\\Local\\Android\\Sdk\\ndk-bundle\\toolchains\\llvm\\prebuilt\\windows-x86_64\\bin/../sysroot/usr/local/include" -internal-isystem "C:\\Users\\obirsoy\\AppData\\Local\\Android\\Sdk\\ndk-bundle\\toolchains\\llvm\\prebuilt\\windows-x86_64\\lib64\\clang\\8.0.7\\include" -internal-externc-isystem "C:\\Users\\obirsoy\\AppData\\Local\\Android\\Sdk\\ndk-bundle\\toolchains\\llvm\\prebuilt\\windows-x86_64\\bin/../sysroot/usr/include/aarch64-linux-android" -internal-externc-isystem "C:\\Users\\obirsoy\\AppData\\Local\\Android\\Sdk\\ndk-bundle\\toolchains\\llvm\\prebuilt\\windows-x86_64\\bin/../sysroot/include" -internal-externc-isystem "C:\\Users\\obirsoy\\AppData\\Local\\Android\\Sdk\\ndk-bundle\\toolchains\\llvm\\prebuilt\\windows-x86_64\\bin/../sysroot/usr/include" -fdebug-compilation-dir "C:\\Users\\obirsoy\\AppData\\Local\\Android\\Sdk\\ndk-bundle\\toolchains\\llvm\\prebuilt\\windows-x86_64\\bin" -ferror-limit 19 -fmessage-length 190 -fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o - -x c -
clang -cc1 version 8.0.7 based upon LLVM 8.0.7svn default target x86_64-w64-windows-gnu
ignoring nonexistent directory "C:\Users\obirsoy\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin/../sysroot/include"
#include "..." search starts here:
#include <...> search starts here:
 C:\Users\obirsoy\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin/../sysroot/usr/local/include
 C:\Users\obirsoy\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.7\include
 C:\Users\obirsoy\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin/../sysroot/usr/include/aarch64-linux-android
 C:\Users\obirsoy\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin/../sysroot/usr/include
End of search list.

Note that there is no c++/v1 path on the list. But if I don't include c++/v1 path, I fail with include <string> or include <vector> much earlier than my original post.

Hope you've figured it out and got the manual setup to work.
Long-term I think the proper way to go would be hooking into Clang Android toolchain lookup code or write a managed toolchain driver for Android that knows how to set it up automatically.
Please let us know if you'd be willing to sponsor that feature and we could add it to CppSharp, otherwise closing this for now.

So CppSharp does not support android or ios at the moment?

@ryancheung It supports all targets supported by LLVM/Clang.
You just need to setup the driver manually as explained above, we have some plans to make the setup automatic in the future, but might take some time until we get to it.

@tritao Thanks for reply. I just hadn't found any docs for mobile platforms.

authors: birsoyo ddobrev ryancheung tritao

repo: mono/CppSharp


text:
Large images shows blank after resizing

From @amerella on September 7, 2018 9:34
When resizing a large image (> 6MB, 14034px by 9921px), the process goes through with no errors, but the image itself doesn't show upon save, only the white background canvas. The pixels cannot be read in the SKCodec, and similarly if I try and create an SKBitmap instead of an image, I get error 'Unable to allocate pixels for the bitmap'.
The code works fine with smaller images.
Is there a limit on how large a file size can be processed?
    using (SKMemoryStream sourceStream = new SKMemoryStream(imageData))
    {
        using (SKCodec codec = SKCodec.Create(sourceStream))
        {
            sourceStream.Seek(0);

            using (SKImage image = SKImage.FromEncodedData(SKData.Create(sourceStream)))
            {
                int newHeight = image.Height;
                int newWidth = image.Width;

                if (maxHeight > 0 && newHeight > maxHeight)
                {
                    double scale = (double)maxHeight / newHeight;
                    newHeight = maxHeight;
                    newWidth = (int)Math.Floor(newWidth * scale);
                }

                if (maxWidth > 0 && newWidth > maxWidth)
                {
                    double scale = (double)maxWidth / newWidth;
                    newWidth = maxWidth;
                    newHeight = (int)Math.Floor(newHeight * scale);
                }

                var info = codec.Info.ColorSpace.IsSrgb ? new SKImageInfo(newWidth, newHeight) : new SKImageInfo(newWidth, newHeight, SKImageInfo.PlatformColorType, SKAlphaType.Premul, SKColorSpace.CreateSrgb());
                using (SKSurface surface = SKSurface.Create(info))
                {
                    using (SKPaint paint = new SKPaint())
                    {
                        // High quality without antialiasing
                        paint.IsAntialias = true;
                        paint.FilterQuality = SKFilterQuality.High;

                        // Draw the bitmap to fill the surface
                        surface.Canvas.Clear(SKColors.White);
                        var rect = new SKRect(0, 0, newWidth, newHeight);
                        surface.Canvas.DrawImage(image, rect, paint);
                        surface.Canvas.Flush();

                        using (SKImage newImage = surface.Snapshot())
                        {
                            using (SKData newImageData = newImage.Encode(convertToJpeg ? SKEncodedImageFormat.Jpeg : (codec.EncodedFormat == SKEncodedImageFormat.Gif ? SKEncodedImageFormat.Png : codec.EncodedFormat),
                                codec.EncodedFormat == SKEncodedImageFormat.Gif || codec.EncodedFormat == SKEncodedImageFormat.Png || !downsampleJpeg ? 100 : 85))
                            {
                                return newImageData.ToArray();
                            }
                        }
                    }
                }
            }
        }
    }
}

Copied from original issue: mono/SkiaSharp.Extended#49

I belive this issue is actually a skia one: https://groups.google.com/forum/#!topic/skia-discuss/886WuVcQUGo
Unfortunately, there is nothing SkiaSharp can do until the actual library supports this.

Now that I think about it, I remember this question from somewhere else... Do you have a link so we can connect the dots?

Hi @mattleibow 👋
are there any updates or workarounds for this issue, what's the best approach to render large images with Skia(Sharp) without downsampling?

Most probably the same issue: https://github.com/mono/SkiaSharp/issues/1249

Hi,
The referenced issue seems different: Skia(Sharp?) drops images that are larger than 32K - hard-coded in the library.
However, this issue (which I am hitting as well) seems to surface on much smaller sized images.
Case in point:

Windows 10 Pro (1909 18363.778)
WPF + SkiaSharp (1.68.2.1\lib\net45\SkiaSharp.dll)
JPG with DSLR size 5286x3555 (roughly 11MB)
Decode results in:
// Error reading file: .JPG ; System.Exception: Unable to allocate pixels for the bitmap.
// at SkiaSharp.SKBitmap..ctor(SKImageInfo info, Int32 rowBytes)
// at SkiaSharp.SKBitmap.Decode(SKCodec codec, SKImageInfo bitmapInfo)
// at SkiaSharp.SKBitmap.Decode(SKCodec codec)
// at SkiaSharp.SKBitmap.Decode(SKStream stream)

Note that opening the same image in a Chromium-browser on the same machine works well (i.e. not a Skia issue?).
I am not sure if there is some contiguous memory allocation issue of sorts in the C# layer.

@perumaal do you have an example image?

I realize I am stressing the system quite a bit here:

Manage 10 SKBitmap instances in memory.
Each SKBitmap is 4Kx4K (~64MB).
The Nth one (depending on the system) fails.

I don't expect Skia(Sharp) or any platform to withstand this pressure without some level of disk-based caching strategy.
Perhaps the only remaining issue is that the error is non-intuitive. (i.e. the error that arises results in folks coming to this page perhaps).

Yes that really should throw an OutOfMemory exception.
Also, I am not sure if SkiaSharp adds native memory pressure, so the GC knows about it.
https://docs.microsoft.com/en-us/dotnet/api/system.gc.addmemorypressure?redirectedfrom=MSDN&view=netcore-3.1#System_GC_AddMemoryPressure_System_Int64_

authors: Ziriax mattleibow nor0x perumaal

repo: mono/SkiaSharp


text:
Build using .NET 6.0.300 public

Description of Change
Only install publicly released bits.

/azp run


text:
Improve performance of hex string parsing in SKColor

Description of Change
Improve performance of hex string parsing in SKColor using spans when available and with fewer allocated strings when spans are not supported.
Benchmark

ParseOld is the current implementation for parsing hex strings to SKColor.
ParseImproved is the improved parsing logic for platforms/frameworks that don't support spans
ParseSpan is the new parsing logic using spans to avoid allocating strings

|        Method |                  Job |              Runtime |          Mean |      Error |     StdDev | Ratio | RatioSD |  Gen 0 | Allocated |
|-------------- |--------------------- |--------------------- |--------------:|-----------:|-----------:|------:|--------:|-------:|----------:|
|      ParseOld |             .NET 6.0 |             .NET 6.0 | 1,663.7469 ns | 32.9390 ns | 43.9727 ns |  1.00 |    0.00 | 1.8501 |   3,872 B |
| ParseImproved |             .NET 6.0 |             .NET 6.0 |   833.2502 ns | 16.1750 ns | 15.1301 ns |  0.50 |    0.02 | 0.5655 |   1,184 B |
|     ParseSpan |             .NET 6.0 |             .NET 6.0 |   507.7845 ns |  3.4736 ns |  3.2492 ns |  0.31 |    0.01 |      - |         - |
|               |                      |                      |               |            |            |       |         |        |           |
|      ParseOld |        .NET Core 3.1 |        .NET Core 3.1 | 1,981.3356 ns | 18.0860 ns | 16.0328 ns |  1.00 |    0.00 | 1.8501 |   3,872 B |
| ParseImproved |        .NET Core 3.1 |        .NET Core 3.1 | 1,172.5769 ns | 23.1321 ns | 31.6635 ns |  0.60 |    0.02 | 0.5646 |   1,184 B |
|     ParseSpan |        .NET Core 3.1 |        .NET Core 3.1 |   786.5793 ns |  2.1876 ns |  1.8267 ns |  0.40 |    0.00 |      - |         - |
|               |                      |                      |               |            |            |       |         |        |           |
|      ParseOld | .NET Framework 4.7.2 | .NET Framework 4.7.2 | 4,420.4635 ns | 26.6690 ns | 24.9462 ns | 1.000 |    0.00 | 2.1973 |   4,622 B |
| ParseImproved | .NET Framework 4.7.2 | .NET Framework 4.7.2 | 3,542.1632 ns | 23.6055 ns | 22.0806 ns | 0.801 |    0.01 | 0.6943 |   1,460 B |

Existing tests for parsing hex strings cover the changes of this PR.
API Changes
None.
Behavioral Changes
None.
Required skia PR
None.
PR Checklist

[x] Has tests (if omitted, state reason in description)
[x] Rebased on top of main at time of PR
[ ] Merged related skia PRs
[x] Changes adhere to coding standard
[ ] Updated documentation

I see some parsing tests are failing: https://dev.azure.com/xamarin/public/_build/results?buildId=88527&view=ms.vss-test-web.build-test-results-tab

I see some parsing tests are failing: https://dev.azure.com/xamarin/public/_build/results?buildId=88527&view=ms.vss-test-web.build-test-results-tab

This should be fixed now

authors: jwikberg mattleibow


text:
Vehicles page

The purpose of this PR is to update the vehicle configuration.
Closes #100

@citlaligm & @stephendb - What are ya'lls thoughts about the name in the tab being Scenario Vehicles? I think simply using Vehicles sounds more precise.

@katiemacaulay I agree, I initially changed it because on the codebase we refer to all vehicles as instances of the Scenario vehicle but I do agree that from the user's perspective Vehicles is clearer. Changing it to Vehicles.
I have implemented the changes, you requested. Sorry I didn't understand the second person instruction for the whole document the first time.
This should be ready for a second look.

authors: citlaligm katiemacaulay

repo: monoDriveIO/documentation


text:
🛑 monobank India is down

In 921b9d1, monobank India (https://monobank.in) was down:

HTTP code: 500
Response time: 437 ms

Resolved: monobank India is back up in 349ee65 after 17 minutes.

repo: monobankcom/upptime


text:
Improve background CSS

The present CSS style is very basic. Give it a makeover to make it more appealing.
Do not forget to collect your static files using collect static before you submit your PR

Im on it

@harry-hov  Additionally provide adequate amount of screenshots of the interface while you make your PR

Sure

assigned @harry-hov

Work on it even more to give it better and better look @harry-hov . Good work as of now!

Thank you 😄
I'll do my best

sir i also wish to be added to improve background using the html/css.

Please assign me to this issue

Already @harry-hov  is working on it . @rahulotwani  @dipanshu231099

authors: dipanshu231099 harry-hov monsij rahulotwani

repo: monsij/StudentPortal


text:
props.search is cleared when click on the scroll slider

Hello Team,
First thank you for your work ! Here is a description of what we think is a bug.

Goal. We want to highlight a fragment of text from the option label based on the props.search (the query string entered by the user.) .

In order to do that, we implemented the behavior by using  :custom-label and slot as description in vueJs documentation http://monterail.github.io/vue-multiselect/#sub-custom-option-template

Unfortunately....when we click on the slider from the scroller, the query string what we received is blank, because when we click on the slider, the input field is cleared...!?

On your site, the same behavior can be seen at: http://monterail.github.io/vue-multiselect/#sub-custom-option-template, If you enter 'e' into the input field, you get a list and a scroll bar is displayed...and when we click on it,,,, the input field is cleared...without any reason....!?

It is a big issue for us..because when you click on the scroller, all previously highlighted text becomes un-highlighted....

Please...do you have a quick work-around ? we are using the beta 2.0.0-beta.15
Here is the call of the component:
         <multiselect v-model="value"
            :name="name"
            :id="id"
            :placeholder="placeholder | i18n"
            :options="options"
            label="Name"
            track-by="Code"
            group-label="Type"
            group-values="locations"
            :show-labels="false"
            :internal-search="false"
            :allow-empty="false"
            :datarule="datarule"
            @open="dropdownOpened"
            @close="dropdownClosed"
            @select="selectionMade"
            @search-change="findLocations"
            :custom-label="buildLocationLabel">
                <template slot="option" scope="props">

{{ props.option.Path }}

                </template>
                {{'No results' | i18n}}
        </multiselect>

Here is the controller (partial)
        /**
         * Returns the text to display as label at the UI level (Entry field).
         * This callback function is binded to <multiselect :custom-label...>
         *
         * @param location A Location object.
         *
         * @see OJ API for more information about the 'Location' structure.
         *
         */
        buildLocationLabel: function(location) {
            return location.Path;
        },

        /**
         * Returns an HTML highlighted text. The function uses an RegEx expression
         * to seek a specific string 'search' inside the 'text'. Any occurrence of
         * the 'search' inside 'text' will be highlighted. Function is not case sensitive.
         *
         * @param text A text to be highlighted, usually an option text.
         * @param search The text to highlight inside the 'text' parameter.
         *
         * @returns A highlighted text to display, usually as options text.
         *
         */
        highlightKey: function(text, search) {
            if (search.length >= 3) {
                 var regEx = new RegExp('(' + search + ')', 'gi');
                 text = text.replace(regEx, '$1');
            }

            return text;
        },

Location is an object like :
Location[0]: {"Code":"CitAuNoYular726","Name":"Yulara","Path":"Yulara, Northern Territory, Australia","Type":"city"}

Group by to obtain a tree  in order to use   group-label="Type" and  group-values="locations"
        /**
         * Returns a array grouped by 'Type'. Each 'Type' is an entry point that have a set of 'locations'
         *
         * @param A 'array' usually returns by OJ API.
         * @param A 'property' name that will be used to group the 'array' parameter.
         *
         * @return A grouped array based on 'property'.
         */
        groupBy: function(array, property) {

            return array.reduce( function (result, item) {

                // do not use flat-arrow in this case 'cause item won't be found
                let bucket = result.find( function (item) { return item[property] === this}, item[property]);

                if (bucket === undefined) {
                    bucket = {Type: item[property], locations: []};
                    result.push(bucket);
                }

                bucket.locations.push(item);

                return result;
            }, []);
        },

Adding @mousedown.prevent onto the
 of the dropdown will solve this. I created a pull request for the same: https://github.com/monterail/vue-multiselect/pull/346

This won't work for IE11!
IE11 is either ignoring preventDefault() action or doesn't "count" scrollbars as the resource inside multiselect component.
@shentao could it be re-tested || re-opened, please?

authors: Callion Jorelia dmungin

repo: monterail/vue-multiselect


text:
Skeleton-Esnext-Aspnetcore shows incorrect configuration

mistakenly included the fix in https://github.com/monterey-framework/monterey/commit/d9d31648d66bd56349994049a14fd4cd5344e48e

authors: JeroenVinke adriatic

repo: monterey-framework/monterey


text:
[Death on the Reik] Wine/brandy

can't create wine/ brandy cargo properly.
I can't choose quality for wine or brandy cargo. From: Zedkerd#1828foundry: 11.315wfrp4e: 7.0.3wfrp4e-archives1: 4.0.2wfrp4e-archives2: 4.0.2wfrp4e-core: 4.0.2wfrp4e-dotr: 4.0.2wfrp4e-eis: 4.0.1wfrp4e-horned-rat: 4.0.2wfrp4e-pbtt: 4.0.2wfrp4e-rnhd: 4.0.1wfrp4e-starter-set: 4.0.0wfrp4e-up-in-arms: 4.0.1wfrp4e-wom: 4.0.1Active Modules: ATL, combat-carousel, combat-utility-belt, dice-so-nice, forien-ammo-swapper, forien-armoury, foundryvtt-simple-calendar, item-piles, lib-wrapper, monks-scene-navigation, quick-insert, SDRA04, sequencer, smalltime, socketlib, SoundBoard, soundfxlibrary, times-up, token-action-hud-core, token-action-hud-wfrp4e, visual-active-effects, warpgate, wfrp4e-actor-sheet-print, wfrp4e-gm-toolkit, wfrp4e-laws-pet-shoppe

Same as #2184 ?

authors: Jagusti moo-man


text:
Bug: Snorlax Manager cannot clean up role after wake-up

Info
Version: Helm release 0.4.0
What happened?
Looks like it lacks some permissions to clean up the snorlax proxy after it wakes up the deployment(s):
2024-06-03T09:31:05Z    ERROR    Failed to delete Snorlax proxy    {"controller": "sleepschedule", "controllerGroup": "snorlax.moonbeam.nyc", "controllerKind": "SleepSchedule", "SleepSchedule": {"name":"snorlax-sleep-schedule","namespace":"<NAMESPACE>"}, "namespace": "<NAMESPACE>", "name": "snorlax-sleep-schedule", "reconcileID": "7ba1cc3a-66d2-4a9d-8791-996223dbb6b9", "error": "roles.rbac.authorization.k8s.io \"snorlax-snorlax-sleep-schedule\" is forbidden: User \"system:serviceaccount:snorlax:snorlax-controller-manager\" cannot delete resource \"roles\" in API group \"rbac.authorization.k8s.io\" in the namespace \"<NAMESPACE>\""}

How to reproduce/What did I do?

Deploy an snorlax sleep schedule with it's sleep time being now, and wait for it to reconcile and go to sleep
Wake it up with an request
Wait for deployments to become ready
-> Error message

Consequences
Snorlax doesn't work anymore (fails reconcile due to the error), sleepschedule has to be force deleted and ingress is dirty (still points to snorlax proxy).

Hey @kehralexander 👋 I've responded in your PR. Thanks again!

The fix is fixed in the latest release, thanks again @kehralexander!

authors: azlyth kehralexander

repo: moonbeam-nyc/snorlax