text:
Rendering a path over the Pacific ocean

I am working an a mapping project that map flight paths around the globe.  I have hit a issue where that paths that cross the international dateline do not render as one would expect.  My first effort resulted in the path wrapping around the world e.g.

I then solved that issue by splitting my geojson line-string at the international dateline.  This fixes the wrapping issue e.g.

As you can see the whole world is displayed.  I believe this is due to the extents on the path layers have an extent of [ -179.90000000000373, 33.94333, 179.90000000000373, 53.905 ].
I then did some reading on render maps over the 180 and to be honest got more confused than I was originally.  Though I did think I was onto something when I read the proj4 documentation http://proj4.org/parameters.html#lon-wrap-over-longitude-wrapping which includes the settings +lon_0     .  This let you control the "Central meridian".  Setting this to -180 the produces the following:

Although a mess the route path is centred nicely.  But, as you can see the land boundaries now wrapped :-(
I am hoping I am missing something obvious as what I am trying to achieve doesn't see that tricky.  The end product would be something like this:

I hope that explains enough for someone to point me in the right direction.  To help I have also created a Gist to replicate the issues I  am having. https://gist.github.com/rheh/ceb91287001b97c9f0495083412b4ed6
Code in render.js file
Thanks in Advance
Ray

But, as you can see the land boundaries now wrapped :-(

Do avoid them being wrapped and resulting in the unwanted lines across the map, you'll need to clip them. In this case not at the dateline, but in the middle of the atlantic. I would recommend looking into whether you can achieve this using the ogr2ogr -clipsrc command. http://www.gdal.org/ogr2ogr.html

@springmeyer thanks for the suggestion.  Amazing what a good nights sleep does.  You suggestion prompted me to look at a projection that is more suitable.  Such as http://epsg.io/3832 which does indeed use the lon_0 trick
<?xml version="1.0" encoding="utf-8"?> <Map srs="+proj=merc +lon_0=150 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs"> 	<Layer srs="+proj=merc +lon_0=150 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs"> 	</Layer> </Map>
Thus, I'm now rendering something close

For future reference this link helps to tackle the 180 / Pacific issue https://gis.stackexchange.com/questions/138735/appropriate-map-projection-for-the-pacific-ocean/138745
In my opinion this ticket can be closed, unless you guys can think of any action points help others in the future?

Looks great - awesome work @rheh! Before closing the only think I can think of would be adding a testcase to mapnik core for this usage: it could include a bit of public sample data a mapnik XML. This would ensure that this usecase never breaks in the future as mapnik development happens, and you could link to it from here so interested developers could see an working example. See https://github.com/mapnik/mapnik/wiki/A-perfect-testcase for how to do this.

No response on the testcase idea, so closing.

q

authors: 1jpaulo rheh springmeyer

repo: mapnik/node-mapnik


text:
Changing mapTypeId

Hey,
I am trying to change the map type dynamically.
When I run, for example,
map.setMapTypeId(plugin.google.maps.MapTypeId.ROADMAP);
after already initializing the map with HYBRID, nothing changes.
Is there a way to force the map to reload all tiles without having to recreate the entire map and re-add any custom markers?
Thanks in advance

I came back a few hours later and it seems to be working... I literally didn't change anything. I was also having issues with the setCenter function.

source: gharchive/issue

repo: mapsplugin/cordova-plugin-googlemaps

license_type: permissive

license_source: bigquery


text:
Application rejected on Apple Store caused by Google Maps

Hey everybody!
I previously have submitted my app to the Apple Store (a month ago) and it was approved, but I want to submit a new release and the app is rejected because of:
Your app's location feature is still not integrated with the built-in mapping functionality, which limits users to a third-party maps app.

My app is an ionic 2 one, with the following plugins for geolocation:
com.googlemaps.ios 2.1.1 "Google Maps SDK for iOS"
cordova-plugin-geolocation 2.4.2 "Geolocation"
cordova-plugin-googlemaps 1.4.0 "phonegap-googlemaps-plugin"

The process of the app is pretty simple, one view for signin/signup, and when the user is registered, the application launch a google maps with a bottom navigation bar. I see some resources about google maps issues, but they said it is fix on the version 1.13..., but I'm using the 2.1.1 version, so I need help!
Thank you (for the plugin ;)) and for your support
Adrien

As far as I know, Google Maps SDK and this plugin do not use limited features of iOS.
Any comments more than "Your app's location feature is still not integrated with the built-in mapping functionality, which limits users to a third-party maps app."
It's too less information.

Thank you for your reply,
Here is the full Apple comment, which does not give more information:
4. Design: Preamble
Design Preamble

Your app's location feature is still not integrated with the built-in mapping functionality, which limits users to a third-party maps app.

Please see the attached screenshot for details. (<- the attachment is just a screenshot of my app)

Next Steps

To resolve this issue, please revise your app to give users the option to launch the native Apple Maps app.

Thanks

Please see the attached screenshot for details. (<- the attachment is just a screenshot of my app)

Please attach also this one.

I have similar page with google maps and I'm planning to push it on app store soon, I'd like to hear more of this issue.
Thanks for any update @anouvel

http://stackoverflow.com/questions/36167212/my-application-was-rejected-due-to-google-maps

they say: "to give users the option to launch the native Apple Maps..."

After making phone call, reviewer said that using only GMSMapView is the reason for rejection and MKMapView should be given as an option to show coordinates. I used only GMSMapView in my app and they rejected it just for that! There is no written rule for this rejection. It is totally ridiculous.

http://stackoverflow.com/a/41771669/697856
Wow, if it's true, it's really ridiculous.

I discussed with my expert friends. They suggested you should try to submit your application again, because the result of Apple validation is really depends on the person who inspected your app.

Hi!
In fact that's what I did yesterday morning, "just to try", and they reply me a few hours ago, they rejected it at the beginning, I wrote them a message to explain what is my application, and why I can't / want to use the native Apple maps, and they just accept it, so it's okay for my release.
Thank you a lot @wf9a5m75, and @msio777 good luck!

Sounds great! 👍

thanks man @anouvel I appreciate your help 👍


text:
fixing scoping issue for redrawing the request bounding box on drag

closes #95

I don't know why these Circle tests are failing. Looks like a mistake to me.

source: gharchive/pull-request

authors: binx migurski

repo: mapzen/data-pages

license: mit


text:
Search for "toulou" suggests first result "Toulouse" in French Guyana but expected in France

Hello,
Working with the geocoder I spotted what I think is an error in the datas.
When you try to search "toulou" and expect to find Toulouse in France, the first result is acutally "Toulouse, France" but in French Guyana (South America). There are coordinates and it would be ok for me if the city would exist but when you search online for it, it does not seem to exists at all, so I think it's an error :/
Here is my query :
https://search.mapzen.com/v1/search?text=toulou&layers=locality&boundary.country=FRA&resultsSize=10&api_key=search-GmnWoUR

And when you search for "toulouse" you have the correct place in France :

Can you tell me if this is an error in datas or if this result is as expected ?
Thanks !

cc @dianashk

Hi, I just come back to up the issue :)
I know you're busy sorry but do you have any idea about this ?
Thanks !

Hi @kazes,
Thanks for reporting this. I work on the Pelias team that runs the Mapzen Search service you're querying. This is definitely a bug in our data, there's certainly no Toulouse in French Guiana. The data comes from the Geonames project, which has a lot of good data but also many issues.
I've deleted this record from our database, so Mapzen Search now returns correct results

I've also deleted it from Geonames, although I have no idea how long that will take to propagate into their published dataset that we import. In any case, we'll also be sure to write a filter to remove this record when we do future builds, so this issue shouldn't come up any more. If it does, or if anything else strange happens, please let us know!
Thanks,
Julian

Hi Julian, thanks very much.
I'm happy to contribute to find errors to fix :) No worries for the time to propagate as long as it's fixed that's perfect.
Cheers !

I've just tested it and I can confirm it works fine now. I'm closing this issue :)

authors: kazes louh orangejulius

repo: mapzen/leaflet-geocoder


text:
Memoize wrapper is deprecated in Django 1.8

/home/paurullan/.virtualenvs/professionals/lib/python3.4/
  site-packages/crispy_forms/utils.py:25:
RemovedInDjango19Warning:
memoize wrapper is deprecated and will be removed in Django 1.9.
 Use django.utils.lru_cache instead.
  default_field_template = memoize(default_field_template, {}, 1)

Hello,
@maraujop I remarked the code (commit c790055fa7e6810703599bc0124507133b8a55fc) is now wrapping lru_cache as memoize. Maybe its a matter of taste but I made a similar commit 9f5d132828bfc2bf38f3f5aae84e664e27f888ef that doesn't need to wrapping code. What do you think of it?

:+1: for fixing this warning

:+1: for this warning fix.
/lib/python2.7/site-packages/crispy_forms/templatetags/crispy_forms_filters.py:20: RemovedInDjango19Warning: memoize wrapper is deprecated and will be removed in Django 1.9. Use django.utils.lru_cache instead.
  uni_formset_template = memoize(uni_formset_template, {}, 1)

/lib/python2.7/site-packages/crispy_forms/templatetags/crispy_forms_filters.py:25: RemovedInDjango19Warning: memoize wrapper is deprecated and will be removed in Django 1.9. Use django.utils.lru_cache instead.
  uni_form_template = memoize(uni_form_template, {}, 1)

/lib/python2.7/site-packages/crispy_forms/templatetags/crispy_forms_tags.py:197: RemovedInDjango19Warning: memoize wrapper is deprecated and will be removed in Django 1.9. Use django.utils.lru_cache instead.
  whole_uni_formset_template = memoize(whole_uni_formset_template, {}, 1)

lib/python2.7/site-packages/crispy_forms/templatetags/crispy_forms_tags.py:202: RemovedInDjango19Warning: memoize wrapper is deprecated and will be removed in Django 1.9. Use django.utils.lru_cache instead.
  whole_uni_form_template = memoize(whole_uni_form_template, {}, 1)

This seems to be fixed in trunk. How about a release? :smile:

+1
Thanks!

+1

+1

+1

+1

+1

+1

+1

+1

I'm closing this in favour of #452. Please follow along there.

This shows up in so many places (dev server, test runner), is there anyway to hide the error messages?

Did you check #452? Did you upgrade?

Upgrade to 1.5!
No dia 23 de Ago de 2015 18:40, "Carlton Gibson" notifications@github.com
escreveu:

Did you check #452
https://github.com/maraujop/django-crispy-forms/pull/452? Did you
upgrade?
—
Reply to this email directly or view it on GitHub
https://github.com/maraujop/django-crispy-forms/issues/423#issuecomment-133881422
.

It's 1.5.1 now.

Don't know how I missed that, apologies and thanks for the reply!

authors: Kobold adamcharnock andrewblaney arocks carltongibson davidfischer-ch gtrman hadalin ikedumancas joaonvfigueiredo karimone paurullan proft rasmusbrandt rh0dium thecardcheat

repo: maraujop/django-crispy-forms


text:
Improve travis configuration

testing PHP 7
remove testing against Symfony 2.4/2.5
add testing against newer versions of symfony
switch to the faster container-based infrastructure on Travis
persist the composer cache between builds

Thanks man, you rock!

authors: StudioMaX marcaube

repo: marcaube/ObHighchartsBundle


text:
Installing for Firefox

Hi,
Thanks so much for open sourcing yslow! I am trying to figure out how to install the firefox 'flavor' after cloning the repo.
I run make firefox, and it generates the package (firefox directory is created with .rdf file). But inside firefox I choose to Install add on from file, and I cannot get it to install.
Thanks for any help.
Dave

I suggest following Mozilla's article on building Firefox extensions. If you build rather than packaging you basically need to symlink the build directory from your FF profile extension directory: https://developer.mozilla.org/en/Building_an_Extension#Test
If you make the actual package, the .xpi file must be served as "application/x-xpinstall": https://developer.mozilla.org/en/Building_an_Extension#Package

authors: bitwise marcelduran

repo: marcelduran/yslow


text:
Drag and drop does not work on touch devices !

Hi,
I am just wondering if drag and drop feature would not work on chrome on devices such as Smartphones and tablets ?
We faced this issue recently that drag and drop does not work on tablets/smartphones. Just wondering if it is a limitation ?
Thanks
Kuldeep

The README says
Touch devices are not supported, because they do not implement the HTML5 drag & drop standard. However, you can use a shim to make it work on touch devices as well.


text:
code executing in webgui

Fixes #144

still a bit to go. I've added the config settings and some sample. Not really sure how to get the url, type of object etc to continue from here.
Any help @marcellourbani ?

@uxkjaer
Thanks a lot for the contribution
There are a few things who don't work for me though:

boolean parameters don't work, there should be a 3 option dropdown going like:

SAPGUI(default)
webgui in  browser
webgui in vscode

no need for a case statement. Transaction  SADT_START_WB_URI used by  showInGui does any object type
the code to handle the browser goes in function runInSapGui, in sapgui.ts around line 44
I will bump version  when I publish the next release

Should look more or less like this:

Thank you
Marcello

The SADT_START_WB_URI transaction only loads the program, it doesn't execute it. My intention was to execute the program directly so we don't have to "run" it in the webgui.
What do you think?

Oh yes, you're right!
I think we need a new command to open&run to provide what you're after.
I also think the code above should stay more or less as it is, is the command  which should be different for running.
Sorry I got confused, the fact is we are talking about 2 different features:

use the webgui in place of sapgui
run instead of open

So please also add a new command for this. Changes are pretty trivial:

new command constant, say executeImmediately
@command entry in its main method
matching command in package.json

Would also consider calling this execute and renaming the old command from execute to openingui or similar, but might break stuff

i've implemented the code to execute and then changed the existing to openingui. I can't really figure out how to define the command in the command pallette. Do i need to add it to the package.json file. I just see other commands in there that aren't present either.
I do have one issue for executing on class. the file.object.name contains both the classname and method. I can't figure out where that is added. When I debug the AbapObjectBase it looks correct. Do you have an idea?

They're defined in package.json:

and in structure AbapFsCommands

Yup, that's sorted now. Last issue is that of the class name having the method on it as well.

You can get the object from the url. Plenty of examples around

Yeah it's just that all other objects works with the name. But I'll change it to the url.

@uxkjaer
I planned to go through this on the weekend but was too lazy :(
Merged, but plan to do a couple minor changes before releasing it, probably early this week
Marcello

Sounds great. Let me know if there is anything I can help with.

@uxkjaer I'm working on it, found a few issues and a few things I'd like to change even if not strictly issues (i.e. I restored the previous F5 binding for backwards compatibility).
I will probably push my WIP so you can have a look

authors: marcellourbani uxkjaer

license: MIT

license_source: github-api


text:
Foreign key fields are represented as 'string', instead of 'field'.

http://django-rest-swagger.readthedocs.org/en/latest/examples.html#basic-example-with-a-viewset shows an example field, manufacturer = models.ForeignKey('Manufacturer'), whose type is shown to be field in the Swagger UI.
In v0.3.4, Foreign keys are shown to be of type string. This also applies to ManyToManyField. The type is shown as array[string] instead of array[field].

v.0.3.7 / Django 1.8
still the same:
standard ForeignKey fields are represented as "string" (i guess it should be "integer" or something else, but not "string").

v.0.3.7 / Django 1.9.7
I'm seeing the same, my fk fields are represented as "string"

Yes, this is how the PrimaryKeyRelatedFields render.
v2 / DRF 3.4 is now rendering schema, but at this point, everything is loosely typed as a string.

is there any plans to stop being loosely typed as string? or will this be the default behaviour?

authors: angvp jvazquez marcgibbons savvaoff steven-mercatante

repo: marcgibbons/django-rest-swagger


text:
🛑 bot.marci4.de is down

In ba0bbc2, bot.marci4.de (https://bot.marci4.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: bot.marci4.de is back up in cbc8719.


text:
Fix detecting response content-type and parsing json

Close #24

Codecov Report

Merging #25 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master    #25   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           9      9
  Lines         105    108    +3
  Branches       10     11    +1
=====================================
+ Hits          105    108    +3

Impacted Files
Coverage Δ

src/client/client.ts
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

authors: codecov-io marcin-piela

repo: marcin-piela/react-fetching-library


text:
🛑 Video Call is down

In 6a09b2d, Video Call (https://jitsi01.diversolatam.com/test) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Video Call is back up in 2a008ee.

repo: marcoadasilvaa/health


text:
🛑 Video Call is down

In e9dc677, Video Call (https://jitsi01.diversolatam.com/test) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Video Call is back up in 9072ca8.


text:
Apple Pay

Hi, I would like to know if support for Apple Pay is implemented or can be added?
https://webkit.org/blog/8182/introducing-the-payment-request-api-for-apple-pay/
Thank you!

Hi @interpegasus ,
I've added the support for onmerchantvalidation handler.
The examples folder now contains an advanced example using Apple Pay.
Please note that given I do not have a server implementation, in my example the merchant cannot be validated.
I'm going to close this issue given that version 3.1.0 now support Apple Pay.
Please let me know if you find any bug.

authors: interpegasus marcolanaro

repo: marcolanaro/react-payment-request-api


text:
Homebridge_OPTS=-I

Hi
I would like to install the below plugin, but I have to start homebridge in the insecure mode
https://www.npmjs.com/package/homebridge-alexa
but i cannot find the file homebridge in the folder /etc/default?
I search the homebridge.services?

I don't know which file you are searching? You can easily start an insecure Homebridge via production-insecure setting in the .env file.

authors: DocUltra marcoraddatz

repo: marcoraddatz/homebridge-docker


text:
Design Model adicionado. Close #83

Criação do Design Model
Alteração de Boundary para Controller
Alteração de Control para Service
Adicionada as ligações de Interface Realization nos Casos de Uso

Tudo okay.

repo: marcosdosea/MaisMarinha


text:
TypeError: '(slice(None, None, None), slice(None, None, None))' is an invalid key

I'm facing mentioned issue. I initially thought the issue is due to version of python I was using i.e python3, but I tried to used it with python2, the same error pops up.

clf = RandomForestClassifier(n_estimators=50, max_depth=5, random_state=0, n_jobs=3)
clf.fit(X_train,y_train)
predict_fn_rf = lambda x : clf.predict_proba(X_test).astype(float)
explainer = lime.lime_tabular.LimeTabularExplainer(X_train[:,:])

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-21-c2cd4dda4439> in <module>()
----> 1 explainer = lime.lime_tabular.LimeTabularExplainer(X_train[:,:])

/home/crisp/cnn/local/lib/python2.7/site-packages/pandas/core/frame.pyc in __getitem__(self, key)
   2925             if self.columns.nlevels > 1:
   2926                 return self._getitem_multilevel(key)
-> 2927             indexer = self.columns.get_loc(key)
   2928             if is_integer(indexer):
   2929                 indexer = [indexer]

/home/crisp/cnn/local/lib/python2.7/site-packages/pandas/core/indexes/base.pyc in get_loc(self, key, method, tolerance)
   2654                                  'backfill or nearest lookups')
   2655             try:
-> 2656                 return self._engine.get_loc(key)
   2657             except KeyError:
   2658                 return self._engine.get_loc(self._maybe_cast_indexer(key))

pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_loc()

pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_loc()

TypeError: '(slice(None, None, None), slice(None, None, None))' is an invalid key](url)

I'm having the same issue. How did you solve this? @dhariyalbhaskar

I'm also having this issue. Any ideas?

@WetzlerkAI I had the same problem. I fixed it by converting the dataframe to a numpy array and changing my variable assignments accordingly. Fist bump to @naanunaane!

X_train is a Pandas DataFrame. In Pandas you can use X_train.iloc[:,:] and that fixes the issue, but I think it is the same as X_train without any indexing. If you would like to get the Numpy array from a Pandas DataFrame you can use X_train.values . In this case you again can use your type of indexing like X_train.values[:,:]
I think it does not depend on Python version.

Use like  data_frame_name.iloc[:,1:4]

You have to always use "iloc" to slice a pandas array
eg:
X[:-1]                          #not gonna work
X.iloc[:-1]                    #gonna work

@doperogue is right, use iloc
X_train.iloc[: , :]

Current best practice would be to use df.to_numpy() instead of df.values[:.:].
Source:
1.https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_numpy.html#pandas.DataFrame.to_numpy
2. https://stackoverflow.com/questions/31789160/convert-select-columns-in-pandas-dataframe-to-numpy-array

authors: WetzlerkAI ameyxd andorend criminact dhariyalbhaskar doperogue naanunaane shashwatgithub sorinmuchi

repo: marcotcr/lime


text:
SVM explain_instance predict_proba sklearn alternative

Hi guys,
First, thank you for your amazing job.
I would like to know if you can recommand a way to explain prediction on text data without using predict_proba.
Indeed, SVC and OneClassSVM are scikit-learn models than can be used to perform classification.
But both doesn't implement predict_proba method.

Not a native speaker, please forgive me If I did english mistakes.

Yes, you can just use the predict fn as long as you wrap it so that it is a 2d np array (even if the second dimension has length 1). You can do it like the following, and use new_predict when getting explanations:
new_predict = lambda x: model.predict(x).reshape(-1, 1)


text:
total probability is greater than  1. and weights are not adding to the class probability values.

Hi everyone,
I am getting an issue with Lime Text Explainer.
I am testing lime on Multilabel classification model . I know that the probabilities  will not converge to 1. But how to interpret the results.
below is the o/p i am getting.

Sorry, I think I don't understand the question. If your model is multilabel and you are explaining one particular label, interpret the results as positive / negative towards that label.

authors: marcotcr raammishra


text:
Update 📑 Pages “2022-04-14-25-41”

Automatically generated by Netlify CMS

👷 Deploy Preview for clinquant-fudge-b89c1f processing.

Name
Link

🔨 Latest commit
0ae30c004f8e41741ab99be8fc96fe5207f24d5f

🔍 Latest deploy log
https://app.netlify.com/sites/clinquant-fudge-b89c1f/deploys/626a9d6f706eb1000a405e7e


text:
Elixir implementation

Hi @marekweb :)
I’ve reimplemented your lib for the elixir lang : https://github.com/gorghoa/ex_opaque_id
Is it ok for you that I publish it on hex.pm (the official package repository for elixir lang)?
Note : While pending your approval, this repo is private, I’ve invited you to join.
best regards!
Rodrigue

Hi @gorghoa, nice, that's great. Sounds good to me, go ahead.

authors: gorghoa marekweb

repo: marekweb/opaque-id


text:
插入代码的问题

很喜欢这个编辑器，已经集成到我的博客了，希望作者能一直更下去
看到作者刚刚回家过年了，先把issue提了吧，Orz....
插入多行代码后，不会显示在一个代码块里，而是每行代码显示在一个单独的代码块，下面上图：

这个? 你的代码是从别处复制过来的么？ 能把复制的代码贴一份看看么？ 我无论是按回车键手动输入多行代码，还是粘贴多行代码，都是正常的呢

我知道了，是预览的时候有问题，我看下。。。

不看不知道，一看吓一跳，原来这个问题一直以来都有，太粗心了自己都没发现。。。

@SadCreeper 更新一下试试看

更新了还是不行呢？
而且我的编辑器里的代码块样式和你的不一样... 你那个明显要好看一些，而且是一整块，我这个每行都有一个框.. 不知道如何DEBUG

你审查元素看一下，肯定是有外部样式给pre或code标签加了边框，而且字体也被影响到了，你看一下是哪个样式污染到他了。
另外你审查元素看看预览页面的html，是不是类似下面的结构：

function foo () {

console.log('Hello World!')

}

按理说更新之后,
不应该是每一行都有了的，只会包裹整个代码块，类似于下面这种：

  function foo () {
  console.log('Hello World!')
  }

对了，你这个博客文章，外网能访问到么？ 我想去瞧一瞧

@SadCreeper 想到一个点，你也是用了braft-convert这个包吧？ 这个包我忘记更新了，我去更新一下...Orz

找到原因了，是我使用的框架（Laravel）默认集成了 bootstrap，然后被 bootstrap 的样式污染了，我把 bootstrap 去掉了就OK了，我也太粗心了Orz...
给你点个赞，加油

着实没想到样式污染还能产生这种BUG，又长知识了哈哈

那预览页面的代码展示也正常了么？
如果使用了braft-convert的话，现在也可以更新一下了，已经发布1.1.0版本

预览的还是有问题，现在跟你的demo同步了，我在你的demo官网上试了一下，发现也是有多个
你看下呢：

恩，我的demo还是旧的。你更新一下braft-convert,再重新发布一下文章看看

搞定了，你的包更新到 1.4.2 就OK了，辛苦辛苦^ ^

😂啊？ 1.4.2解决的是IE11的一个问题，和插入代码的没关系啊

那就奇怪了，莫非是我上次更新之后没更新成？或者有缓存之类的没清理么
至少现在是没有那个问题了，然后 braft-convert 我也没手动装过
但是现在出现了一个新问题，创建文章之后没什么问题：

然后编辑文章的时候，我的做法是把数据库里保存的 htmlContent 取出来放到 initialConten 里，然后出现了问题，代码的格式乱了：

对于draft-js来说，要做到html和raw百分百转换几乎是不可能的，现在这个问题就是因为这个转化差异导致的，就好像把一个照片PS之后，丢掉psd源文件，就很难PS回去了一样。
我估计要花多点时间来研究一下怎么保证代码块的重复编辑性了。
最靠谱的办法还是使用raw来保存文章数据 ，或者raw和html各保存一份，编辑的时候用raw，保证万无一失。

有眉目了，中午之前应该能出一个版

可以可以，我刚想试试保存 raw，那就先等你下一版了

已发布1.4.3，更新一下试试

兄弟你速度可以的，这下OK了，很完美

好的，那这个我先close掉了，这块儿再有问题的话，就再提一个新的issue吧，另外自定义弹窗内容不更新的，你也现在也可以看看，应该是解决掉了的。

authors: SadCreeper margox

repo: margox/braft-editor


text:
所有的下拉弹窗组件都没办法使用

比如字号选择，点击之后没有弹出下拉框，没办法选择字号

是不是别得地方设置的事件监听把编辑器里面的事件给阻止掉了？

我遇到的是把 editor 放在 modal 中 build 出來的時候會無法顯示下拉選單


text:
Browserify a project using acorn doesn't work

require('acorn')

$ ./node_modules/.bin/browserify test.js
Error: Cannot find module './state' from '/home/timothy_gu/jade/acorn-globals/node_modules/acorn/dist'
    at /home/timothy_gu/jade/acorn-globals/node_modules/browserify/node_modules/resolve/lib/async.js:55:21
    at load (/home/timothy_gu/jade/acorn-globals/node_modules/browserify/node_modules/resolve/lib/async.js:69:43)
    at onex (/home/timothy_gu/jade/acorn-globals/node_modules/browserify/node_modules/resolve/lib/async.js:92:31)
    at /home/timothy_gu/jade/acorn-globals/node_modules/browserify/node_modules/resolve/lib/async.js:22:47
    at FSReqWrap.oncomplete (fs.js:77:15)

This directly causes ForbesLindesay/acorn-globals#5 and Jade Travis CI errors: https://travis-ci.org/jadejs/jade/jobs/56260858#L114-L141

Now I think of it this might be a bug in Browserify. See substack/node-browserify#1151. The suggestion to use --standalone or derequire in substack/node-browserify#374 might be useful to this project though although I'm not sure how that would work.

@TimothyGu

The suggestion to use --standalone

It already does.

It'd be because dist/acorn.js still has calls to require and browserify is interpreting those as being the root level require since it has no scope tracking so can't tell it's being overridden.

@sebmck That's what I thought. Is there an easy way to fix this? Would derequire work?

@TimothyGu Yeah that'd work. Although there's likely already a browserify option built-in.

This can be fixed by #237, although it should hopefully be rendered un-necessary by a future version of browserify.

Solved via #243

authors: ForbesLindesay TimothyGu marijnh sebmck

repo: marijnh/acorn


text:
Unable to add nested elements

My apologies if I've misread the docs, but I would expect crel('p', {}, ['strong', {}, 'hello']) to return
hello
 similar to prosemirror's toDOM spec. Instead I get RangeError: Unsupported child node: [object Object].

That's not how the library works. You want [crel("strong", "hello")], not the arguments as an array.

I figured that part out, but the docs and my prior use of Prosemirror seemed to imply the above could work as well. Thank you for clarifying. Would you be open to a Read Me PR if I can think of a decent one?

The readme states that for array arguments, each element is added separately. I don't think that implies that you can do what you're doing above.

That was actually the part that made me think that crel would operate on arrays like nested arguments, but I appreciate that it was my misunderstanding. I very much enjoy this sublimely lightweight, useful tool.

authors: etherbob marijnh

repo: marijnh/crelt


text:
Ctrl+shift+P keyboard shortcut conflicts with Firefox "open private window"

Describe the bug
I'm just starting out with marimo, and it's looking pretty nice so far! However, I noticed that the keyboard shortcut for "create cell below" is ctrl+shift+P, which in Firefox opens a private/incognito window. So I am unable to use this shortcut, even though it's something I would like to do often. I couldn't see a way to customize the shortcuts.
As a workaround, I usually go to a cell below the current one and create a new above it using ctrl+shift+O.
Environment
{
  "marimo": "0.3.3",
  "OS": "Linux",
  "OS Version": "5.15.0-100-generic",
  "Processor": "x86_64",
  "Python Version": "3.8.10",
  "Binaries": {
    "Chrome": "123.0.6312.58",
    "Node": "--"
  },
  "Requirements": {
    "black": "24.3.0",
    "click": "8.1.7",
    "jedi": "0.19.1",
    "pygments": "2.17.2",
    "pymdown-extensions": "10.7.1",
    "starlette": "0.37.2",
    "tomlkit": "0.12.4",
    "uvicorn": "0.29.0"
  }
}

We've been meaning to add shortcut customization. If your workaround is too much trouble, we could special case this shortcut on firefox (would you have a preferred key combination?)

using ctrl+shift+O.

Well, it does not work for me… Ctrl+Shift+O opens the bookmark window here.

would you have a preferred key combination?

I have no preference. Jupyter uses Esc, A/B, Enter, but that's a totally different logic.
There are only 4 compatible letters for Ctrl+Shift+❓: F, L, U, Y. So overriding might be inevitable.
Useful links:

Keyboard shortcuts - Perform common Firefox tasks quickly | Firefox Help
Keybindings - Visual Studio Code for the Web

authors: YDX-2147483647 akshayka mgunyho

repo: marimo-team/marimo


text:
Evaluate lighter strategies for binary size impact

Evaluate other strategies for binary size calculation, such as checking the generated products.
Goal is to understand and later decide how each strategy stands in terms of cost (performance hit) versus accuracy of result.

@marinofelipe to check how debug/release built products stacks against the current heavy archive strategy.
The API could be tweaked to allow a derived data path to be passed for a lighter binary size calculation.

repo: marinofelipe/swift-package-info


text:
Migration: Check if the label on dataset level is needed

Migrated from https://github.com/Joelius300/ChartJSBlazor/issues/46:
From https://github.com/Joelius300/ChartJSBlazor/issues/40#issuecomment-519690615:
We need to investigate whether the label on dataset basis is valid for all kind of charts.
For pie and doughnut, it has no effect: https://jsfiddle.net/g1anoety/ without the datalabels plugin enabled. (I would remove this for all charts where it's not yet needed and add it again if it's needed after we managed to get https://github.com/Joelius300/ChartJSBlazor/issues/34 done).
Following https://www.chartjs.org/docs/latest/charts/:

line: Needed, check https://jsfiddle.net/ukwsn6c2/.
bar: Needed, check https://jsfiddle.net/ukwsn6c2/1/.
radar: Needed, check https://jsfiddle.net/ukwsn6c2/2/.
doughnut and pie: Not needed, check https://jsfiddle.net/g1anoety/.
polar area: Not needed, check https://jsfiddle.net/ukwsn6c2/3/. (We need to remove this!)
bubble: Needed, check https://jsfiddle.net/ukwsn6c2/4/.
scatter: Needed, check https://jsfiddle.net/ukwsn6c2/5/.

I have asked the guys from Chart.Js to check this as well and tell us, what's the idea behind this: https://github.com/chartjs/Chart.js/issues/6452.

Thanks for the investigation. This will be respected in #96.

Please see https://github.com/chartjs/Chart.js/issues/6452#issuecomment-636513726. I guess, this is deprecated now? That's how I understood it at least.

I was actually quite confused by what happened in that issue. How come it's about title now? I thought this is only about the dataset label which isn't deprecated right?

You're right. I will ask them again.

No you don't have to.

Ok :)

I see you already posted something, I guess it won't hurt 😅


text:
Possible to run fileMigrator.Up() without dump?

Hi, is it possible to run the file migrator without dumping the entire schema? currently when I run fileMigrator.Up() it outputs the schema to migrations/schema.sql which takes a really long time
code I'm using
	db, err := pop.Connect("development")
	if err != nil {
		log.Panic(err)
	}
	fm, err := pop.NewFileMigrator("./migrations", db)
	if err != nil {
		log.Panic(err)
	}
	err = fm.Up()
	if err != nil {
		log.Panic(err)
	}

The https://github.com/markbates/pop (v3.x) repo has been moved to https://github.com/gobuffalo/pop (v4.x). The markbates/pop repo has been put into READ-ONLY mode and will no longer be updated. You may continue to use this repository, but be aware no more updates will be made on it.
If this is issues is still relevant, please open a new issue on the repository.
For more information on this move see https://github.com/markbates/pop/issues/164
Thank you so much and I apologize in advance for any trouble this may cause you.

authors: markbates miguelmota

repo: markbates/pop


text:
Question: Why is int char code used instead of a char?

Hey @puzrin thanks for an excellent parser!
I've been trying to understand why we use integer character codes instead of characters of type String in the code.
For example this line:
if (state.src.charCodeAt(pos++) !== 0x3E/* > */) { return false; }

wouldn't it be more concise and readable to compare the character directly, i.e.
if (state.src[pos++] !== '>') { return false; }

I'm sure there's a good reason, just couldn't understand what it is by myself. Would be great if you could shed some light on this.
Thanks in advance!

That's for speed optimizations. I'd suggest to read https://mrale.ph/ first. Because how js jit works is completely different from what you can imagine :).

repo: markdown-it/markdown-it


text:
NODE_ENV=production npm run build && rm -rf dist is unstable

Given the following script, I cannot run build && rm -rf dist && build
Per @patrick-steele-idem , it has to do with .cache directory and speeding up production builds.  (as a separate issue: invisible / hidden files are probably bad form! ... maybe ./dist-cache instead?)
Assuming marko create ... is the preferred and documented way of onboarding new people to using marko, I propose the following:

add a command npm run clean or npm run build-clean ... as-is, it's really nasty for someone new to marko to run npm run build && rm -rf dist && npm run build and assume marko is buggy / broken because no files are generated / built

default npm run build to avoid/skip/clear the cache directory or make it clear that marko-starter build --use-cache / --skip-cache / --cache=./.cache has caching going on.

From talking with Patrick it feels like the builds are expected to be done on prod machines, and only once.  For my general development practices, I often run "prod" builds on my local machine to verify file sizes, make a final test run before building/pushing, etc.
$ cat repro.sh
rm -rf ./try-to-repro
marko create try-to-repro
cd try-to-repro
yarn install > /dev/null
NODE_ENV=production npm run build > /dev/null
find ./dist/ -type f | xargs -n1 -I{} bash -c 'echo -n "{} " ; gzip -c {} | wc -c'
rm -rf ./dist
perl -p -i -e 's/Click.me/Do it/g' ./components/click-count/index.marko
perl -p -i -e 's/count:0/count:9/g' ./components/click-count/index.marko
NODE_ENV=production npm run build > /dev/null 2> /dev/null
find ./dist/ -type f | xargs -n1 -I{} bash -c 'echo -n "{} " ; gzip -c {} | wc -c'

I noticed the same thing. Removing dist/ folder and rebuilding would not rebundle the js files and assets. To mitigate this .cache folder needs to be removed as well.

The new @marko/serve command which is built on top of webpack and is also the default when using @marko/create no longer has these issues.

authors: DylanPiercey SystemR ramses0

repo: marko-js/cli


text:
Move duplicated code into common file

No point duplicating the code, and if I fix a bug in future I may forget to do it in both scripts.

All related commits linked to this issue. Consider it done.


text:
Index on workspace change

Hey!
I have a new problem, when I'm in vim and install php package with composer i must to restart vim, or restart language server with CocRestart for index package, but the problem is that every time everything is over indexing... It would be nice if this were resolved and some one added caching system. Thanks!
Again sorry for my very bad English... :D

Yes, that's on the plan
The ability of this project to provide prompts depends on vscode-intelephense
But the project closes the source code
I'm trying to fit this

The new version will be cached

authors: marlonfan mihaelartz

repo: marlonfan/coc-phpls


text:
lookup reference field creationView

reference field should lookup reference if a default value is provided

@pelim: can you elaborate? I don't understand the issue. :)

Closing as no more feedback. Feel free to reopen if you still encounter the issue. :)

authors: jpetitcolas pelim

repo: marmelab/ng-admin


text:
testing

testing

/help

testing

repo: marosset/hyperlight


text:
No AP-Mode-Access

Checklist

[X] I have installed the latest release (or BETA) version of the integration and home assistant.
[X] I have prepared DEBUG log output (for technical issues) | In most of the cases of a technical error/issue I would have the need to ask for DEBUG log output of the integration. There is a short tutorial/guide 'How to provide DEBUG log' here
[X] I am aware that rotating the tibber pulse reading head anti clockwise can improve data quality | See this user comment and the next comment as well
[X] I confirm it's really an issue | In the case that you want to understand the functionality of a certain feature/sensor Please be so kind and make use if the discussion feature of this repo (and do not create an issue) - TIA

Add a description
I tried to set the bridge to AP-Mode for at least 5 times, both discribed ways doesn't work - no green light, no AP-WLAN available.
Bridge-Model T3H01, delivered in 12.2023. What can I do?
Thanks in advance!
Add your DEBUG log output
No response

Contact Tibber support


text:
Unclear Section - Tutorial: GROMOS Polymer Melts

Unclear what the "-DEQ_polyply" flag is, as mentioned at the end of section 4.

it's a GROMACS define statement; you have to include it at the top of the MDP file to activate the polyply-specific bonded interactions required for relaxation.
define = -Deq_polyply

also see https://manual.gromacs.org/documentation/current/user-guide/mdp-options.html

Thank you.
I am new to GROMACS, so there must be other issues with my mdp files. Do you have examples for me to compare against?

authors: fgrunewald saabirpetker


text:
Navbar pri mobile view

Horny navbar je trocha rozbity ked stranku otvorim v mobile.
Screen z mobilu:

Emulovany mobile view v browseri na pc:

#41

@przno môžeš potvrdiť, že je to už v poriadku?

Na 480 x 320px displayi na 3 prehliadacoch tam nevidim prvy riadok. Napr. "V čase volieb budem mimo Slovenska" mam rozdelene na 2 riadky, co nie je problem, ale z prveho vidim iba spodnych 10% textu, cize neprecitam. Je pod hlavickou.

U mna OK

u Teba to je na akom displayi? Ale ak sa povie, ze stare sumky nepodporujeme, tak ok. Ale ak podporujeme, tak ak by som nevedel, co je v hornom riadku, tak netusim a mozem sa zle rozhodnut.

aha, mohol som napisat - galaxy s3, 720 x 1280px.

Na Android 4.1 zariadeni s 480 x 320px stale vidim z horneho informacneho riadku ( napr "Adresa Vášho trvalého pobytu" ) v Opere 2px a Vstavanom prehliadaci 5px. Ak neratam fajky pismen pod riadkom. Google ok, az vela.

@roman3x v aktualnom mastri by to uz malo byt ok, vies to overit?

Ano, uz to je pekne vo vsetkych 3. :+1:

repo: marsher/volby-zo-zahranicia


text:
GitHub actions

added automated teststeps to be performed when pushing to branches
added automated test steps to be performed on pull to dev and master
added coverage reports to be published to https://codecov.io/

Codecov Report

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

@@          Coverage Diff           @@
##             dev       #4   +/-   ##
======================================
  Coverage       ?   11.65%
======================================
  Files          ?       13
  Lines          ?      309
  Branches       ?       37
======================================
  Hits           ?       36
  Misses         ?      273
  Partials       ?        0

Flag
Coverage Δ

#unittests
11.65% <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 867d0ae...9375f8f. Read the comment docs.

Added github actions to workflow

authors: codecov-commenter martgra


text:
[FEATURE REQUEST] Tolgee translation enhancements

Automatic (pre-) translation is not available (for Dutch language). Please enable this feature to ease the translators' process.
If an untranslated text is similar to another text that is already translated, then Tolgee should offer this as a suggestion
I get the impression that any translator is allowed to declare a translation as Reviewed. Also, any translator appears to be able to change any translation at will, be it a new translation or one that has already been reviewed. In order to prevent chaos and anarchy, we need some hierarchy and levels of edit rights.
Tolgee is lacking the following necessary features: e.g. chat, glossary, notifications, easy filtering on 'new' / 'altered' / 'has comment' / 'not translated' / 'not reviewed'

When I open Tolgee - WingetUI - Dutch, it opens Dutch AND English language. The latter I cannot edit. But having these two languages opened severely hampers Tolgee's filter functionality. This default where Dutch AND English langueages are opened cannot be changed by me. Annoyance!

How about something like Crowdin?
Ex: https://crowdin.com/project/playnite
It has many of the features OP mentioned.

When I open Tolgee - WingetUI - Dutch, it opens Dutch AND English language. The latter I cannot edit. But having these two languages opened severely hampers Tolgee's filter functionality. This default where Dutch AND English langueages are opened cannot be changed by me. Annoyance!

about that, you can go to the top-right corner and disable it:

This is a feature I like about Tolgee, since it allow you to translate/see different languages easily:

How about something like Crowdin?
Ex: https://crowdin.com/project/playnite
It has many of the features OP mentioned.

I am familiar with Crowdin and Weblate. And indeed, I was quite suprised to see that WingetUI has opted for this new environment that obviously is not as mature. (I didn't want to shake the tree.)

you can go to the top-right corner and disable it
Yes, I had noticed the option to remove the English language and I have created my own bookmark.
I was hoping that the default including English could be adjusted.

Oooh, I forgot to mention Transifex, another well established translation environment.
Warning: Ego boosting ahead ;-)
My contributions on Crowdin:

paint.net
VidCoder
Bitwarden (previously)

On Transifex:

Handbrake
KeepassXC
Scribus

On Weblate:

Gramps
KeePassDX
Snipaste
Vivaldi

Hi @Stephan-P,
the only reason I chose Tolgee was for its pricing. Tolgee is an open-source project, and i'm sure they'll want to hear you out on https://github.com/tolgee/tolgee-platform. It hasn't given me any issues since I started localising.
However, Crowdin looks promising, i'll check it out

I'll move this to a discussion, since i feel like this is not an issue/feature request

authors: Stephan-P marticliment ppvnf

repo: marticliment/WingetUI


text:
No booting with ENC28J60

Hi, could anyone make it boot whith the ENC28J60 connected? I follow the instructions to the connection but my ESP don't boot any more unless I disconnected the GPIO15 and connected it to GND. My connection schema is the following and I'm using the transistor for decoupling GPIO15.
NodeMCU/Wemos  ESP8266      ENC28J60
    D6     GPIO12 <---> MISO
    D7     GPIO13 <---> MOSI
    D5     GPIO14 <---> SCLK
    D8     GPIO15 <---> CS
    D1     GPIO5  <---> INT
           Q3/V33 <---> 3.3V
           GND    <---> GND

Thanks!
Victor

If you try to pull GPIO15 low with the decoupling transistor directly at the pin - let's say with additional 3,3kOhm?

If you try to pull GPIO15 low with the decoupling transistor directly at the pin - let's say with additional 3,3kOhm?

Thank you very much @martin-ger. I could solve the problem booting putting an additional pull down resistor.


text:
2312517_2310886_2311614_2311548_2312365

Policy Overview
This pull request introduces two algorithms, Genetic Algorithm (GA) and Stock Filled Ratio Heuristic, designed to optimize material waste reduction and computational efficiency for the 2D Irregular Cutting Stock Problem.

Workflow of the Algorithms
Genetic Algorithm (GA):

Utilizes evolutionary techniques such as crossover and mutation to optimize material placement.
Scored solutions with a fitness function that balances maximizing filled ratio and minimizing trim loss.
While powerful, it suffers from premature convergence and high computational costs.

Stock Filled Ratio Heuristic:

Employs a deterministic approach to prioritize larger items and efficiently pack remaining space with smaller items.
Focuses on minimizing trim loss while ensuring faster execution for small to medium datasets.

Results
Based on the dataset of seed 42 used for testing, the following results were obtained in comparison with Greedy and Random policies:

Policy
Filled Ratio
Trim Loss
Runtime (s)

Genetic Algorithm
0.23
0.4141
~224.00

Stock Filled Heuristic
0.27
0.3036
45.19

Greedy
0.23
0.4508
12.83

Random
0.44
0.6861
10.93

Conclusion
The Stock Filled Ratio Heuristic demonstrates efficient and effective performance in reducing trim loss and improving material utilization, with reasonable computational cost. The Genetic Algorithm, while less efficient in runtime, provides insight into the potential of metaheuristic approaches but requires further refinement to overcome premature convergence and excessive runtime.
Kindly review and provide feedback!

Please revise the PR in Dec 16. Otherwise, your group will get 0 score for code.

Student ID : 2312365
Name:  Nguyễn Lê Nguyên
I'm sorry for annoying you. I have deleted my previous pull request and
recreated a  new one, where I added a folder named
"s_2312517_2310886_2311614_2311548_2312365" and a file name
"Policy2312517_2310886_2311614_2311548_2312365.py". Please help me check my
latest submission and tell me if it is still invalid. Than you so much.
Vào 18:31, T.2, 16 Th12, 2024 Duc Quang Nguyen @.***>
đã viết:

Please revise the PR in Dec 16. Otherwise, your group will get 0 score for
code.
—
Reply to this email directly, view it on GitHub
https://github.com/martinakaduc/MM241-Assignment/pull/94#issuecomment-2545370887,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BH7NAQISAXDCESEY2TI72ZL2F22Y7AVCNFSM6AAAAABTTRCURGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBVGM3TAOBYG4
.
You are receiving this because you authored the thread.Message ID:
@.***>


text:
Add comments support

Comments stating with # are not highlighted differently. Also, vim plugins that use the syntax file to discover the comment marker and allow the user to use a mapping to quickly comment out lines, do not work and revert to their defaults (e.g. /* */ style comments).

Invalid

repo: martinda/Jenkinsfile-vim-syntax


text:
Recipe app

Link to project
[ ] Number of members: 2

@martinkarugaba
@mryeminthu

Hi Team,
Good job so far, indeed you have spent time on this project!
There are some issues that you still need to work on to go to the next project but you are almost there!
Highlights

Good use of Kanban board ✔

Required Changes ♻
Check the comments under the review.

[ ] I can see you have your description except the last one which I encourage you to add but the number of points is yet to be added, the point should serve as the expected number of time the student should work on it, kindly add it for each task.

[ ] I noticed that some tasks are not shown at all in your project division such as recipe list, I will encourage you to use the pointed ones in the image below as the descriptive heading of each card and use the tasks under them as the detailed description so that it would entail all tasks.

Optional suggestions
Every comment with the [OPTIONAL] prefix is not crucial enough to stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.

As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

Hi @martinkarugaba 👋🏼👋🏼👋🏼,

Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉
Highlights✅✅✅

[x] The required cards have been added as requested by the previous reviewer👍🏼.

Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

authors: Ibizugbe Olamarx martinkarugaba


text:
move registry and event-queue state into re-frame.core

This is part of an attempt to consolidate state into re-frame.core so that other re-frame namespaces can be used in a more library-like manner. The goal is not to make this easy to use for regular re-frame users or even the default but rather step by step reduce how state is spread out across the codebase. Later on this should simplify the implementation of "multiple re-frame instances" and similar scenarios (e.g. devcards or using re-frame's eventloop/fx/cofx stuff with non-reagent projects).
There are a few critical pieces of state as far as I can see:

re-frame.registrar/registry for cofx event fx and sub
re-frame.router/event-queue FSM for processing events
re-frame.db/app-db (not addressed in this PR but followup #2)
re-frame.subs/query->reaction (not addressed in this PR but followup #2)

The change done here moves the state from the re-frame.registry and re-frame.router namespaces into re-frame.core and parameterizes the public API accordingly. re-frame.db/app-db and re-frame.subs/query->reaction are still used directly as before. (This change is more an exploration of the general approach so skipped that bit for now.)
Tests are passing but I'm not sure if the test suite is particularly expansive in the aspects affected by this change.
Other Notes

I made a protocolized version of the registry because it seemed appropriate, it's not really important to the overall change though
Created a new re-frame.registry namespace to replace re-frame.registrar (mostly to have the old ns around for comparison)
A potential continuation of this could be a custom type ReFrame or similar that is a composite of the individual pieces of state but there's probably not a lot of immediate benefit to such change.

Let's use #2 to further discuss and develop these changes.

repo: martinklepsch/re-frame


text:
Update to ember-cli 2.4.1

Updated ember-cli to version 2.4.1 and also ran ember init (only applying changes where they made sense). Finally added an ember-try scenario for ember 2.4.1.

@martndemus Alright, I've addressed all of your comments. :smile: Not sure how I missed the testem stuff...

Thanks, looks good now!
@homu r+

:pushpin: Commit b227d83 has been approved by martndemus

:zap: Test exempted - status

authors: Panman8201 homu martndemus

repo: martndemus/ember-cli-font-awesome

license: unlicense


text:
Add an $uptime property

As requested by Kjetil Asdal on the openHAB forum.

:+1: nice idea !


text:
The closed popover opens again without automatically returning to the top

打开弹窗滑动至底部，关闭弹窗，再次打开时，没有自动回到顶部

没有复现


text:
"您的链接不是私密链接”

RT，这现象大概有一周了，点继续前往可以登上去但是加载不出图片，请问是什么原因

证书没有安装

证书没有安装

安装哪个证书？

ca.cer
conf/ca/pixiv.net.crt

证书没有安装

安装哪个证书？

ca.cer
conf/ca/pixiv.net.crt

ca.cer

最近有点事把这茬忘了。。我记得去年第一次用的时候安装过了所以不明所以，重新把证书添加到受信机构就恢复了

authors: Sicmatr1x lzfy mashirozx

repo: mashirozx/Pixiv-Nginx

license: WTFPL


text:
Programatically trigger tab change

In  a situation where by I have two tabs on a particular page, I want to be able to reload the page and switch back programmatically to the tab that I was on before.

For all who come here with the same problem: you can keep your tab id in the URL-hash or save to local storage and set selectedTabKey prop when initialize the component
Something like this
<Tabs
  items={...}
  onChange={/*Save tabId here*/}
  selectedTabKey={/*Set selected tabId*/}
/>

authors: TravelPaddy maslianok

repo: maslianok/react-responsive-tabs


text:
we add create acc redir

Codecov Report
Patch and project coverage have no change.

Comparison is base (07c9528) 41.54% compared to head (b0ff091) 41.54%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #325   +/-   ##
=======================================
  Coverage   41.54%   41.54%
=======================================
  Files          15       15
  Lines        1047     1047
=======================================
  Hits          435      435
  Misses        569      569
  Partials       43       43

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

authors: codecov-commenter pivilartisant

repo: massalabs/thyra-plugin-wallet


text:
🛑 Iran 1 - VIP 1 is down

In a0db219, Iran 1 - VIP 1 ($VIP1) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Iran 1 - VIP 1 is back up in 9cfe710 after 7 minutes.


text:
🛑 Iran 1 - VIP 1 is down

In 20876d4, Iran 1 - VIP 1 ($VIP1) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Iran 1 - VIP 1 is back up in eb83c8a after 56 minutes.


text:
🛑 RESTREAM-IR-13-Afranet-3 is down

In 2e5f2ce, RESTREAM-IR-13-Afranet-3 ($IR_13) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RESTREAM-IR-13-Afranet-3 is back up in 0e52466.


text:
🛑 RESTREAM-IR-13-Afranet-3 is down

In 03a1fa2, RESTREAM-IR-13-Afranet-3 ($IR_13) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RESTREAM-IR-13-Afranet-3 is back up in 6bd8827.


text:
🛑 RESTREAM-IR-12-ZirSakht-3 is down

In 3c6c66a, RESTREAM-IR-12-ZirSakht-3 ($IR_12) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RESTREAM-IR-12-ZirSakht-3 is back up in 626bcd7.


text:
🛑 Iran 10 - Zirsakht 3 is down

In d5c0479, Iran 10 - Zirsakht 3 ($IR_10) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Iran 10 - Zirsakht 3 is back up in e328d45.


text:
🛑 Iran 3 - ParsOnline 1 is down

In a779276, Iran 3 - ParsOnline 1 ($IR_3) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Iran 3 - ParsOnline 1 is back up in 744ec41.


text:
What happens on multiple instances?

Just for example, I'm running 3 Meteor instances and deifining a server hooks:
Postings.after.remove(function() {

});

Will this hook fire 3 times (on all 3 instances) or only on one?

It will be executed on the instance that received the request.

authors: dmitrijs-balcers dnish


text:
Automatic benchmarks

Create proper benchmarks so we can compare performance between versions as we move forward. It would be awesome to be able to integrate it into the build process somehow.

One of the library I manage as a leader nanoutils has performance tests. They can be integrated for your needs.
The only one issue is what info do you want to get and how you want to represent it
nanoutils has TIMES.md where a table shows the difference between two libraries.

Cool, I’ll definitely check it out!
On Wed, 5 Sep 2018 at 00:08 beraliv notifications@github.com wrote:

One of the library I manage as a leader nanoutils
https://github.com/nanoutils/nanoutils/blob/master/misc/cli/time.js has
performance tests. They can be integrated for your needs.
The only one issue is what info do you want to get and how you want to
represent it
nanoutils https://github.com/nanoutils/nanoutils has TIMES.md where a
table shows the difference between two libraries.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mateogianolio/vectorious/issues/119#issuecomment-418533879,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABBAbQgyHeJpopZD1bEseWCqG4wRMwXwks5uXvnGgaJpZM4WZ0_4
.

Maybe that would be useful... but that's probably not how I'll run my first benchmarks.
let ts = Date.now();
// run some code
console.log('tdiff:', Date.now() - ts);
Not saying that's the best way to benchmark, but patterns can emerge around simple measurements like that. I'll look into the more precise timing measurements too. I do recall taking some more precise measurements here and there.
Measurements are good to measure code improvements while working on those improvements. For long term comparison they are harder to keep to the same baseline. Variables include hardware, node version, OS, and of course the version of the code being run.
While keeping longer term benchmarks would be useful, there could be some inaccuracies with comparisons. Keeping track of the node version it's being run on makes sense - but I and many developers are most interested in the latest version of node. Tracking regressions with node version changes would be a useful capability.
I'm also interested in benchmarks that discover data on the Big O running times of algorithms.

authors: Beraliv mateogianolio metabench

repo: mateogianolio/vectorious


text:
feat(layout-grid): define CSS_CLASSES & DEVICE_TYPE

related to #827

Codecov Report

Merging #846 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #846      +/-   ##
==========================================
+ Coverage   94.47%   94.48%   +<.01%
==========================================
  Files          81       82       +1
  Lines        3475     3481       +6
  Branches      532      532
==========================================
+ Hits         3283     3289       +6
  Misses         66       66
  Partials      126      126

Impacted Files
Coverage Δ

packages/layout-grid/Cell.tsx
94.11% <100%> (+0.36%)
:arrow_up:

packages/layout-grid/Row.tsx
81.81% <100%> (+1.81%)
:arrow_up:

packages/layout-grid/constant.ts
100% <100%> (ø)

packages/layout-grid/Grid.tsx
92.3% <100%> (+0.64%)
:arrow_up:

Continue to review full report at Codecov.

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

authors: TroyTae codecov-io


text:
Wrong position if use a custom component

Hi, first of all thanks for this component, it's pretty cool.
Now, I just found that if you trigger it from a custom component, the position is wrong. I managed to "solve it" by wrapping my custom component within a span element (I could use a div as well).
So, to be clear:
Wrong position:
<my-custom-component ref="myPopover" @click="openPopover()" />

Good position:
<span ref="myPopover" @click="openPopover()">
	<my-custom-component />
</span>

It would be nice if we can get rid of that extra element.

I see, thanks for your help, it works now 👍

repo: mateuszRybczonek/vue-slick-popover


text:
[SVG output] line-breaking an equality can lose infix spacing

If there's a long mrow, the spacing can get lost.
Example: after enrichment the following
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mi>I</mi>
  <mo linebreak="goodbreak">=</mo>
  <mi>a</mi>
  <mo linebreak="goodbreak">+</mo>
  <mi>b</mi>
  <mo linebreak="goodbreak">+</mo>
  <mi>c</mi>
  <mo linebreak="goodbreak">+</mo>
  <mrow>
    <mo>(</mo>
    <mi>d</mi>
    <mo linebreak="badbreak">+</mo>
    <mi>e</mi>
    <mo>)</mo>
  </mrow>
  <mo linebreak="goodbreak">+</mo>
  <mrow>
    <mo>(</mo>
    <mi>f</mi>
    <mo linebreak="badbreak">+</mo>
    <mi>g</mi>
    <mo linebreak="badbreak">+</mo>
    <mi>h</mi>
    <mo linebreak="badbreak">+</mo>
    <mi>i</mi>
    <mo linebreak="badbreak">+</mo>
    <mi>j</mi>
    <mo linebreak="badbreak">+</mo>
    <mi>k</mi>
    <mo>)</mo>
  </mrow>
  <mo linebreak="goodbreak">+</mo>
  <mi>l</mi>
  <mo linebreak="goodbreak">+</mo>
  <mi>m</mi>
  <mo linebreak="goodbreak">+</mo>
  <mi>n</mi>
  <mo linebreak="goodbreak">+</mo>
  <mi>o</mi>
  <mo linebreak="goodbreak">+</mo>
  <mi>p</mi>
  <mo linebreak="goodbreak">+</mo>
  <mi>q</mi>
  <mo linebreak="goodbreak">+</mo>
  <mi>r</mi>
  <mo linebreak="goodbreak">+</mo>
  <mi>s</mi>
</math>

turns into
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" data-semantic-type="relseq" data-semantic-role="equality" data-semantic-id="48" data-semantic-children="0,47" data-semantic-content="1">
  <mi data-semantic-type="identifier" data-semantic-role="latinletter" data-semantic-font="italic" data-semantic-id="0" data-semantic-parent="48">I</mi>
  <mo linebreak="goodbreak" data-semantic-type="relation" data-semantic-role="equality" data-semantic-id="1" data-semantic-parent="48" data-semantic-operator="relseq,=">=</mo>
  <mrow data-semantic-type="infixop" data-semantic-role="addition" data-semantic-id="47" data-semantic-children="2,4,6,14,30,32,34,36,38,40,42,44,46" data-semantic-content="3,5,7,15,31,33,35,37,39,41,43,45" data-semantic-parent="48">
    <mi data-semantic-type="identifier" data-semantic-role="latinletter" data-semantic-font="italic" data-semantic-id="2" data-semantic-parent="47">a</mi>
    <mo linebreak="goodbreak" data-semantic-type="operator" data-semantic-role="addition" data-semantic-id="3" data-semantic-parent="47" data-semantic-operator="infixop,+">+</mo>
    <mi data-semantic-type="identifier" data-semantic-role="latinletter" data-semantic-font="italic" data-semantic-id="4" data-semantic-parent="47">b</mi>
    <mo linebreak="goodbreak" data-semantic-type="operator" data-semantic-role="addition" data-semantic-id="5" data-semantic-parent="47" data-semantic-operator="infixop,+">+</mo>
    <mi data-semantic-type="identifier" data-semantic-role="latinletter" data-semantic-font="italic" data-semantic-id="6" data-semantic-parent="47">c</mi>
    <mo linebreak="goodbreak" data-semantic-type="operator" data-semantic-role="addition" data-semantic-id="7" data-semantic-parent="47" data-semantic-operator="infixop,+">+</mo>
    <mrow data-semantic-type="fenced" data-semantic-role="leftright" data-semantic-id="14" data-semantic-children="13" data-semantic-content="8,12" data-semantic-parent="47">
      <mo data-semantic-type="fence" data-semantic-role="open" data-semantic-id="8" data-semantic-parent="14" data-semantic-operator="fenced">(</mo>
      <mrow data-semantic-type="infixop" data-semantic-role="addition" data-semantic-id="13" data-semantic-children="9,11" data-semantic-content="10" data-semantic-parent="14">
        <mi data-semantic-type="identifier" data-semantic-role="latinletter" data-semantic-font="italic" data-semantic-id="9" data-semantic-parent="13">d</mi>
        <mo linebreak="badbreak" data-semantic-type="operator" data-semantic-role="addition" data-semantic-id="10" data-semantic-parent="13" data-semantic-operator="infixop,+">+</mo>
        <mi data-semantic-type="identifier" data-semantic-role="latinletter" data-semantic-font="italic" data-semantic-id="11" data-semantic-parent="13">e</mi>
      </mrow>
      <mo data-semantic-type="fence" data-semantic-role="close" data-semantic-id="12" data-semantic-parent="14" data-semantic-operator="fenced">)</mo>
    </mrow>
    <mo linebreak="goodbreak" data-semantic-type="operator" data-semantic-role="addition" data-semantic-id="15" data-semantic-parent="47" data-semantic-operator="infixop,+">+</mo>
    <mrow data-semantic-type="fenced" data-semantic-role="leftright" data-semantic-id="30" data-semantic-children="29" data-semantic-content="16,28" data-semantic-parent="47">
      <mo data-semantic-type="fence" data-semantic-role="open" data-semantic-id="16" data-semantic-parent="30" data-semantic-operator="fenced">(</mo>
      <mrow data-semantic-type="infixop" data-semantic-role="addition" data-semantic-id="29" data-semantic-children="17,19,21,23,25,27" data-semantic-content="18,20,22,24,26" data-semantic-parent="30">
        <mi data-semantic-type="identifier" data-semantic-role="latinletter" data-semantic-font="italic" data-semantic-id="17" data-semantic-parent="29">f</mi>
        <mo linebreak="badbreak" data-semantic-type="operator" data-semantic-role="addition" data-semantic-id="18" data-semantic-parent="29" data-semantic-operator="infixop,+">+</mo>
        <mi data-semantic-type="identifier" data-semantic-role="latinletter" data-semantic-font="italic" data-semantic-id="19" data-semantic-parent="29">g</mi>
        <mo linebreak="badbreak" data-semantic-type="operator" data-semantic-role="addition" data-semantic-id="20" data-semantic-parent="29" data-semantic-operator="infixop,+">+</mo>
        <mi data-semantic-type="identifier" data-semantic-role="latinletter" data-semantic-font="italic" data-semantic-id="21" data-semantic-parent="29">h</mi>
        <mo linebreak="badbreak" data-semantic-type="operator" data-semantic-role="addition" data-semantic-id="22" data-semantic-parent="29" data-semantic-operator="infixop,+">+</mo>
        <mi data-semantic-type="identifier" data-semantic-role="latinletter" data-semantic-font="italic" data-semantic-id="23" data-semantic-parent="29">i</mi>
        <mo linebreak="badbreak" data-semantic-type="operator" data-semantic-role="addition" data-semantic-id="24" data-semantic-parent="29" data-semantic-operator="infixop,+">+</mo>
        <mi data-semantic-type="identifier" data-semantic-role="latinletter" data-semantic-font="italic" data-semantic-id="25" data-semantic-parent="29">j</mi>
        <mo linebreak="badbreak" data-semantic-type="operator" data-semantic-role="addition" data-semantic-id="26" data-semantic-parent="29" data-semantic-operator="infixop,+">+</mo>
        <mi data-semantic-type="identifier" data-semantic-role="latinletter" data-semantic-font="italic" data-semantic-id="27" data-semantic-parent="29">k</mi>
      </mrow>
      <mo data-semantic-type="fence" data-semantic-role="close" data-semantic-id="28" data-semantic-parent="30" data-semantic-operator="fenced">)</mo>
    </mrow>
    <mo linebreak="goodbreak" data-semantic-type="operator" data-semantic-role="addition" data-semantic-id="31" data-semantic-parent="47" data-semantic-operator="infixop,+">+</mo>
    <mi data-semantic-type="identifier" data-semantic-role="latinletter" data-semantic-font="italic" data-semantic-id="32" data-semantic-parent="47">l</mi>
    <mo linebreak="goodbreak" data-semantic-type="operator" data-semantic-role="addition" data-semantic-id="33" data-semantic-parent="47" data-semantic-operator="infixop,+">+</mo>
    <mi data-semantic-type="identifier" data-semantic-role="latinletter" data-semantic-font="italic" data-semantic-id="34" data-semantic-parent="47">m</mi>
    <mo linebreak="goodbreak" data-semantic-type="operator" data-semantic-role="addition" data-semantic-id="35" data-semantic-parent="47" data-semantic-operator="infixop,+">+</mo>
    <mi data-semantic-type="identifier" data-semantic-role="latinletter" data-semantic-font="italic" data-semantic-id="36" data-semantic-parent="47">n</mi>
    <mo linebreak="goodbreak" data-semantic-type="operator" data-semantic-role="addition" data-semantic-id="37" data-semantic-parent="47" data-semantic-operator="infixop,+">+</mo>
    <mi data-semantic-type="identifier" data-semantic-role="latinletter" data-semantic-font="italic" data-semantic-id="38" data-semantic-parent="47">o</mi>
    <mo linebreak="goodbreak" data-semantic-type="operator" data-semantic-role="addition" data-semantic-id="39" data-semantic-parent="47" data-semantic-operator="infixop,+">+</mo>
    <mi data-semantic-type="identifier" data-semantic-role="latinletter" data-semantic-font="italic" data-semantic-id="40" data-semantic-parent="47">p</mi>
    <mo linebreak="goodbreak" data-semantic-type="operator" data-semantic-role="addition" data-semantic-id="41" data-semantic-parent="47" data-semantic-operator="infixop,+">+</mo>
    <mi data-semantic-type="identifier" data-semantic-role="latinletter" data-semantic-font="italic" data-semantic-id="42" data-semantic-parent="47">q</mi>
    <mo linebreak="goodbreak" data-semantic-type="operator" data-semantic-role="addition" data-semantic-id="43" data-semantic-parent="47" data-semantic-operator="infixop,+">+</mo>
    <mi data-semantic-type="identifier" data-semantic-role="latinletter" data-semantic-font="italic" data-semantic-id="44" data-semantic-parent="47">r</mi>
    <mo linebreak="goodbreak" data-semantic-type="operator" data-semantic-role="addition" data-semantic-id="45" data-semantic-parent="47" data-semantic-operator="infixop,+">+</mo>
    <mi data-semantic-type="identifier" data-semantic-role="latinletter" data-semantic-font="italic" data-semantic-id="46" data-semantic-parent="47">s</mi>
  </mrow>
</math>

which loses space between = and the right hand side.

I'm not able to reproduce it in the MathML lab in the a11y Semantics-Lab directory.
Can you provide more detail about where this is happening for you?

I've attached a screenshot below. It only happens at very small container sizes (320px).

Let's try this F2F some time. It's not important to me, just something I came across and wanted to jot down.

Live example at https://codepen.io/pkra/pen/qyzpf

Thanks, I can reproduce there.  It looks like the issue is when the right-hand side gets the extra <mrow>  from the enhancement.  Here is a reduced test case
<div style="width:200px; border:1px solid black">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mi>I</mi>
  <mo>=</mo>
  <mrow>
    <mi>a</mi>
    <mo>+</mo>
    <mi>a</mi>
    <mo>+</mo>
    <mi>a</mi>
    <mo>+</mo>
    <mi>a</mi>
    <mo>+</mo>
    <mi>a</mi>
    <mo>+</mo>
    <mi>a</mi>
    <mo>+</mo>
    <mi>a</mi>
  </mrow>
</math>
</div>

(no enhancement needed).

authors: dpvc pkra

repo: mathjax/MathJax


text:
TST: Update for pytest 7

Remove 36 PytestRemovedIn8Warning and PytestReturnNotNoneWarning warnings.

Python 3.5 and 3.6 are no longer supported by ubuntu-latest (22.04) on Github workflows.

@StefRe thanks for the update! I can take a look at this soon

@StefRe -- anything else you think should go in here?

@StefRe -- anything else you think should go in here?

no, looks good to me

I only now saw that all the tests are run twice: first in Basic unit tests and then in Image comparison tests. The latter installs pytest-mpl and hence runs without warnings. Both workflows run, however, the complete test suite. What is actually the idea behind splitting the tests into two workflows?

What is actually the idea behind splitting the tests into two workflows?

I'm sure I had a reason at the time. Maybe the img tests were flaky and allowed to fail? In any case, I can't think of a good reason now.

Oh also the img tests are only run on the "latest" version of python, not e.g., 3.8, 3.9, etc. Maybe that should change

My point was that Basic unit tests and Image comparison tests do the same thing, i.e. all tests are run twice (even more so now that the python version matrices are identical). So if we want to run the image comparison tests separately then maybe it's clearer to add -m "not mpl_image_compare" to python check_probscale.py --doctest-modules in python-runtests-basic.yml and -m mpl_image_compare to python check_probscale.py --mpl --doctest-modules in python-runtests-img-comp.yml, respectively.

Yeah I agree. Since all python versions in the img-comp matrix are passing, I'd be inclined to scrap the "vanilla" tests altogether.

authors: StefRe phobson

repo: matplotlib/mpl-probscale


text:
Redesign: Instances of %CLIENT_MAJOR_VERSION% in the text

There are instances of the %CLIENT_MAJOR_VERSION% placeholder appearing in the spec text, as seen here. I believe in the old spec this was replaced with the CS API major version number.
I'm not sure how this interacts with the new Matrix Spec Versioning stuff, but we probably want to write a Hugo template for this.

The new Matrix Spec Versioning stuff makes %CLIENT_MAJOR_VERSION% usage rather dubious, since each endpoint would have its own version. Perhaps there should be some other thing for that purpose - ideally, inserting the "current" endpoint path, whatever it is in the context. I don't know if Hugo templates can be stretched that far.

repo: matrix-org/matrix-doc


text:
Tensorflow version

It seems that your code does not work with Tensorflow 2 (AttributeError: module 'tensorflow' has no attribute 'get_default_graph'). I have downgraded it to 1.4, but I encoutered another error (ImportError: cannot import name 'tf_utils')....
could you please let m know what version of TF did you use? tnx

I removed graph stuff and now it should work with tensorflow2.
Note to self: This graph was added because of some problems on the keras side. I hope that now everything is updated to tf2 and works well without graph. ref: https://github.com/matsui528/sis/issues/6


text:
Build simple circuits with strings

Summary
The idea is to allow common simple 1 and 2 qubit circuits to be built with a string passed to Qunitary. This would allow a for an elegant interaction to build complicated circuits from simple building blocks. For example:
Qinit(2)+Qcycle(mapping=Qunitary(f"CRX(x0)^01,CRZ(x1)^10)"))

Where currently this is achieved as follows:
def anz1(bits, symbols=None, circuit=None):
    # Assume bits are strings and in the correct QASM format
    q0, q1 = QuantumRegister(1, bits[0]), QuantumRegister(1, bits[1])
    circuit.crx(symbols[0], q0, q1)
    circuit.crz(symbols[1], q1, q0)
    return circuit
u = Qunitary(anz1, 2, 2)
hierq = Qinit(5) + Qcycle(mapping=u)

Qunitary can receive any function, and we want to allow it to receive a string that specifies a simple circuit.  Emphasis on simple, the reason for this feature is to enable building small circuits quickly without needing to create a function, we don't need to cater for all possible use cases, just the commonly used gates. The string format I have in mind is:
"{gate_string}(parameters)^{bits},{gate_string}(parameters)^{bits},...,{gate_string}(parameters)^{bits}"

Where gate_string is one of: h,x,y,z,cx,cy,cz,rx,ry,rz,crx,cry,crz,s,tof,fred and always in either upper case or lower case. Then each gates {parameters} are specified in brackets (x1,x2,...,xn) separated with commas and n<10 (to avoid dis ambiguity and keep it simple. Then ^ specifies bits (the qubit indices that the gate acts upon). We should only allow up to 0-9 since most of the time only 2 qubit circuits are going to be created. The arity and number of symbols can then be determined by the distinct number of bits used and the total number of parameters specified, this should happen when Qunitary is initialised.
The conversion needs to happen when the Qhierarchy object is called (depending on the backend it executes get_circuit_qiskit for example). We'll need some mapping for the gate strings and the corresponding gate name for the backend used (we can stick with qiskit for now). Then some function needs to be constructed, I envisage something along the lines of:
def get_circuit_from_string(qunitary):
    def circuit_fn(bits, symbols=None, circuit=None):
        arity=qunitary.arity
        qubits = [QuantumRegister(1, bits[i]) for i in range(arity)]
        s_idx = 0
        for gate_name, sub_bits, n_subsymbols in get_gateinfo_from_string(qunitary.circuit_string, arity, n_symbols):
            gate = getattr(circuit, gate_name)
            gate(*symbols[s_idx:n_subsymbols], *qubits.get(sub_bits))
        return circuit
    return circuit_fn

But that's just a guess, in particular I don't know how to handle the sub_bits.
For this issue, you can pick any framework (qiskit, pennylane, cirq) and implement the functionality for one of them. Feel free to come up with a better design, the above is just an idea for how to allow simple string circuits to Qunitary.

sounds fun! currently working on this one :)

I did have one quick question: could you explain your rationale behind applying the gates with gate(*symbols[s_idx:n_subsymbols], *qubits.get(sub_bits))?
This line seems like it would throw an error if n_subsymbols > 1 (since the gates you mention only take one gate parameter). If you assign each gate a new symbol/parameter, I could see how this would work, but in the case where you want to make two gates with the same rotation angle, this seems problematic. Additionally, when I've been debugging the code, I noticed that the symbols variable seems to be blank when I run something like the following.
hierq = Qinit(3)+Qcycle(mapping=Qunitary(f"h()^0;CRX(x_0)^01;CRZ(x_1)^10"))
circuit = hierq(backend="qiskit")
Thus, I'm a bit confused as to how the symbols get generated. I looked through core.py, but couldn't find the answer.
For some background, my approach was to take the user-generated parameters (x1,x2,...xn) and pass them into the circuit_fn() function after taking the input string and partitioning it into individual gate instructions.
I've gotten this code to work in the context of making a 2-qubit circuit:
hierq = Qinit(2)+Qcycle(mapping=Qunitary(f"h()^0;CRX(x_0)^01;CRZ(x_1)^10"))
circuit = hierq(backend="qiskit")
circuit.draw('mpl')
However, when I do 3+ qubits, I get a Qiskit error with the gate() function saying CircuitError: Name conflict on adding parameter XX, which seems to be overwriting the previous symbolic gate parameter (I'm using the qiskit.circuit.parameter object for the gate parameters).
This is a bit long-winded, but would love to hear your thoughts on

Why you wrote the gate(*symbols[s_idx:n_subsymbols...) line
How symbols are generated
My approach above!

Thanks so much :)

@matt-lourens please ignore the above, I looked more closely at the source code and figured out what I was doing wrong. about to send over a PR with the corrected code

Hey @khnikhil, awesome for getting a PR out so quick!
I'll have time later today to check the PR out, excited to see to it!

Can I work on this project ?

Can I work on this project ?

hi @andresulea, this one is almost done. I don't think there is a ton left to do, but if you're interested in working on hierarqcal it looks like two of the other issues don't have PRs yet, you might be able to join those teams.

authors: andresulea khnikhil matt-lourens

repo: matt-lourens/hierarqcal


text:
fixed a typo - solidifying

Fixed the spelling of solidifying in the Closing Thoughts section in the How To Think Like A Developer article

Thanks :+1:

Thanks :+1:

Thanks :+1:

authors: N-Shar-ma mattcroat

repo: mattcroat/joy-of-code


text:
Typo

One word was missing 🙂

Thanks :+1:

authors: ShafSpecs mattcroat


text:
feat: Transfer event removal

What ❔
Divide web3 server API into 2:

Old one
Test-drive API, which won't return ETH Transfer events

API that will be run per instance is defined via config:

API_WEB3_JSON_RPC_ETH_TRANSFER_EVENTS(disabled/enabled) modes
EN_ETH_TRANSFER_EVENTS(disabled/enabled) modes

Added new columns to events database to reassign indexes of logs correctly(added SQL migrations and Rust migrations, mostly inspired by https://github.com/matter-labs/zksync-era/pull/688):

event_index_in_block_without_eth_transfer
event_index_in_tx_without_eth_transfer

Why ❔
To be EVM compatible.
Checklist

[x] PR title corresponds to the body of PR (we generate changelog entries from PRs).
[x] Tests for the changes have been added / updated.
[x] Documentation comments have been added / updated.
[x] Code has been formatted via zk fmt and zk lint.
[x] Spellcheck has been run via cargo spellcheck --cfg=./spellcheck/era.cfg --code 1.

this is definitely not a chore. Remember that chore doesn't end up in changelog. This is a feat.

A really late question, sorry for not raising it before. What if the event filtering is controlled via an additional field in Filter (used in eth_newFilter and eth_getLogs) / PubSubFilter (used in subscriptions) with a default value? In this case, a single API server could serve both new and legacy API (we may need to spin up 2 notifier tasks for logs instead of one; one with filtering and the other without it), and filtering would be controlled by the client. Would this contradict some other requirements / not work / require too much effort to integrate into Web3 clients? (I'd guess they should have interceptor functionality that would allow doing that, but I don't have much experience using Web3 clients.)
cc @RomanBrodetski @montekki @popzxc

What if the event filtering is controlled via an additional field in Filter (used in eth_newFilter and eth_getLogs) / PubSubFilter (used in subscriptions) with a default value?

@slowli I believe most people use SDKs (ethers and such) for that, and in most cases modifying the logic of interacting with filters is hidden. Probably it won't work.

@popzxc For ethers in particular, the interceptor abstraction I've talked about is encapsulated in the Provider interface. Specifically, BaseProvider (a base for other providers) defines _getFilter, which AFAIU maps all event filters processed by the provider (this is in ethers v5 used in integration tests; in ethers v6, it's structured similarly). So it seems possible to do something like this:
interface FilterWithEthTransfers extends Filter {
    filterEthTransfers?: boolean;
}

class CustomizableProvider extends zksync.Provider {
    private filterEthTransfers: boolean;

    override async _getFilter(filter: Filter | /* ... */): Promise<FilterWithEthTransfers | /* ... */> {
        const resolvedFilter = <FilterWithEthTransfers>await super._getFilter(filter);
        resolvedFilter.filterEthTransfers = this.filterEthTransfers; // passed to JSON-RPC call
        return resolvedFilter;
    }
}

IMO, controlling filtering on the client side makes the approach more maintainable and easier to reason about, both for us and clients. OTOH, I may be unaware of complexities associated with modifying and maintaining client code.

@slowli I think that if anything more complex than just "swap URL" would be required, people would just not bother. Though I may be wrong, cc @RomanBrodetski

@Artemka374 is this PR still relevant or can it be closed?

I don't know to be honest. The discussion about it was brought up again not that long ago, but I don't remember any decision was made. Maybe @RomanBrodetski or @StanislavBreadless can say more?

I believe it will be needed in the long term anyway, so better to finish it up and get into production

authors: Artemka374 RomanBrodetski StanislavBreadless popzxc slowli

repo: matter-labs/zksync-era


text:
change addresses to new format

[x] change all sync addresses in client
[x] change all addresses in zksync.js
[x] change all in explorer
[x] change AccountAddress in server
[ ] update existing db records

pr #167

https://github.com/matter-labs/zksync.js/pull/6

authors: dvush jazzandrock

repo: matter-labs/zksync


text:
Is zksync remix plugin safe?

hi
i found this plugin in remix https://github.com/NethermindEth/zksync-remix-plugin
i want to know is this plugin safe to deploy contract on zksync era ? or we have to deploy with introduced method in official docs ?

hi, here are some resources that you may find helpful:
The zkSync Era Remix Plugin: A How-To Guide: [](https://medium.com/nethermind-eth/the-zksync-era-remix-plugin-a-how-to-guide-fc54e8d24bd3)

How to deploy smart contract on zkSync Era Testnet using Remix and MetaMask: [](https://ethereum.stackexchange.com/questions/150695/how-to-deploy-smart-contract-on-zksync-era-testnet-using-remix-and-metamask)

I hope this helps!

You can also check out our official docs for support with this too https://docs.zksync.io/build/tooling/ide.html#remix-ide

authors: HoseinNikmaramOfficial amsator bxpana


text:
[MM-48167] Only grab the last extension from a filename during Save As

Summary
When right-clicking a file and choosing Save As, if the filename had more than one ., the dialog would pick up each string seperated by a . and add it to the file extension list. Commonly reproducible when sharing macOS screenshots.
This PR ensures that we always get the actual file extension (ie. the last one) and use it for the dialog.
Ticket Link
https://mattermost.atlassian.net/browse/MM-48167
NONE

Cherry pick is scheduled.

authors: devinbinnie mattermod

repo: mattermost/desktop


text:
Mattermost container failling on start

Various error while trying to start mattermost/docker as a brand new deployment. Error below has been resolved in the presented order
Invalid site url
docker logs mattermost : Error: failed to load configuration: failed to create store: unable to load on store creation: invalid config: Config.IsValid: model.config.is_valid.site_url.app_error
To resolve the problem, I edited docker-compose.yml to indicate the site url directly instead:
      # additional settings
      - MM_SERVICESETTINGS_SITEURL:http://test.domain.net

Cannot ping database
{"level":"info","ts":1626710596.067384,"caller":"sqlstore/store.go:289","msg":"Pinging SQL","database":"master"}
{"level":"error","ts":1626710596.0676122,"caller":"sqlstore/store.go:301","msg":"Failed to ping DB","error":"parse \"postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?sslmode=disable&connect_timeout=10\": net/url: invalid userinfo","retrying in seconds":10}

To resolve I replaced the variables into .env line where the POSTGRES connection is generated with required values:
MM_SQLSETTINGS_DATASOURCE=postgres://User:MyPassword@postgres:5432/MyDB?sslmode=disable&connect_timeout=10
Done
Now MM is starting properly :)
It leads me to believe that variables set inside a file and re-used inside the same file are not translated to values.

Thank you for reporting this @VA2XJM !
Maybe docker-compose is missing the "env_file:" setting as described here: https://docs.docker.com/compose/environment-variables/#the-env_file-configuration-option.
WDYT, @mrckndt ?

Thank you for reporting this @VA2XJM !
Maybe docker-compose is missing the "env_file:" setting as described here: https://docs.docker.com/compose/environment-variables/#the-env_file-configuration-option.
WDYT, @mrckndt ?

.env file is present. It retrieves values from it. However here is an exemple:
### Top of the file:
# Domain of service
DOMAIN=mattermost.exemple.org

### Bottom of the file:
## Example settings (any additional setting added here also needs to be introduced in the docker-compose.yml)
MM_SERVICESETTINGS_SITEURL=http://${DOMAIN}

The value of ${DOMAIN} was not converted to mattermost.exemple.org and error indicating invalid domain was generated and container failed to start. The same problem was present with the Postgres database where credentials variables were not converted to values. It was clearly indicating the variables in the container trying to connect. When credentials has been wrote as hard coded values, it fixed everything.
It feels to me like variables set previously in the same .env file will not be recognized.  I don't know exactly how Docker is using the .env file... I am far from being an expert in docker, I am just discovering it and like it so far!

@VA2XJM what docker-compose version do you use? The variable interpolation within variables is only available since >1.26. If you download the latest version it should work.

docker-compose --version
docker-compose version 1.21.0, build unknown
it is the latest available in Debian Buster repos. So this would be the culprit.
My bad, I didn't really checked that... Now adding docker-compose update to the todo list. Thanks :)

authors: VA2XJM metanerd mrckndt

repo: mattermost/docker


text:
Spelling out numbers less than 10: scale folder

Summary
Spelling out numbers less than 10: scaling folder
Ticket Link
https://github.com/mattermost/docs/issues/3269

Hello @ctlaltdieliet,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

authors: ctlaltdieliet mattermod

repo: mattermost/docs


text:
[GH-5951] Updates Authentication > OAuth 2.0 Google Settings

Summary
This PR updates the Google sub-section of the OAuth 2.0 section of the Authentication settings to the table-based format. As with PR https://github.com/mattermost/docs/pull/6111, I edited the subheadings in this section to refer explicitly to OAuth 2.0 so that the anchor permalinks links would function properly, and not conflict with other parts of the document.
Ticket Link
This PR partly addresses https://github.com/mattermost/docs/issues/5951.

Hello @matthew-src,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

Thanks, @matthew-src! If you're open to making the redirect updates via https://github.com/mattermost/docs/pull/6111, the redirects for this section title change will be complete.
I have no other feedback for this PR and can merge once we have the redirects work addressed.

Great, thank you! Please see the latest commit on https://github.com/mattermost/docs/pull/6111.

authors: cwarnermm mattermod matthew-src