text:
Element gone when adding scrollbar

I am working on a template where i want to use the scrollbar.
The template is based on bootstrap framework, using a fixed sidebar.
On that sidebar i want to use the scrollbar. But as soon as i add it, the contents of the sidebar are gone.
I can see the contents for a split second but as soon as the scrollbar loads, the contents are gone.

item

item

item

#sidebar-wrapper {
  margin-left: -250px;
  left: 250px;
  width: 250px;
  height: 100%;
  background-color: #333;
  box-shadow: 5px 0px 6px #000;
  -o-box-shadow: 5px 0px 6px #000;
  -moz-box-shadow: 5px 0px 6px #000;
  -webkit-box-shadow: 5px 0px 6px #000;
  position: fixed;
  overflow: hidden;
  z-index: 1000;
  transition: all 0.4s ease 0s;
  -o-transition: all 0.4s ease 0s;
  -moz-transition: all 0.4s ease 0s;
  -webkit-transition: all 0.4s ease 0s;
}

I use the same scrollbar, within the same page where it works flawless. but even when i remove that, it doesn't work on the sidebar.

I can't really see anything wrong in the code you posted. Can you send a link or a test page?

authors: Goeny malihu

repo: malihu/malihu-custom-scrollbar-plugin


text:
Create package template for Node tools

Details
The packages of Node tools installed using npm look very similar and a new template could be added to our create_package script and to our issue template. Current node tools examples:

malware-jail.vm
pkg-unpacker.vm

New tool we could add to test the template:

https://github.com/ben-sb/obfuscator-io-deobfuscator

We should start by adding a function helper

Function helper added, still missing modifying the script, template and CI (GH action to create the package).

I have just realised that we do not need to download the zip to install obfuscator-io-deobfuscator, it is enough with running: npm install -g obfuscator-io-deobfuscator, tracked this in https://github.com/mandiant/VM-Packages/issues/1005

source: gharchive/issue

repo: mandiant/VM-Packages

license_type: permissive

license_source: github-api


text:
🛑 Mesa Freeworld is down

In 46f7e62, Mesa Freeworld (https://nonfree.eu) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Mesa Freeworld is back up in 1dac5c6 after 12 minutes.

repo: manjaro-contrib/upptime

license: MIT


text:
🛑 Manjaro Software is down

In 23aefe7, Manjaro Software (https://software.manjaro.org) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Manjaro Software is back up in 875cf8c.


text:
Get Updated Form Data without clicking on Submit button

Is your feature request related to a problem? Please describe.
I am trying to access the updated form object without clicking on submit. Ideally i should be able to get this.
Describe the solution you'd like
An Event Emitted like onFormUpdate or onUpdate similar to onChange() event which emits just one input data.
Describe alternatives you've considered
N/A
Additional context
Add any other context or screenshots about the feature request here.

@manojadams any thoughts on above?

Thanks for the suggestion @ahmedsakri.
Looks like a good idea.

Hi @ahmedsakri, The onChange event would send data in the following form:

section - the info about the form grouping to which the field belongs
field - the name of the field
value - the changed value of the field

Does it not solve your problem?

@manojadams No, this does not solve it because this returns the data related to only one input field. Whereas, i want the updated whole form data. This can be in another event passed like: onFormUpdate or onUpdate as onChange event returns data related to a single input field.

@ahmedsakri Following version contains the enhancement:
mui-forms@1.0.32
Refer to the following section: https://mui-forms.vercel.app/installation

onChangeMode should be provided with value 'form-data' to get form data as a second parameter.

<MuiForms
    className="s-form"
    schema={schema}
    onChangeMode="form-data"
    onChange={(fieldData, formData) => {
        console.log(fieldData); // This is the field data with the current change
        console.log(formData); // This is the form data of all the fields
    }}
    onSubmit={() => {
        // to do
    }}
/>

Feel free to open this, if it still does not work for you.

@manojadams The newly added prop is onChangeMode and not changeResponseMode. Just checked the Merge Request in metaforms/core repository. Thanks!

@ahmedsakri It has been initially added as onChangeMode but renamed into changeResponseMode. Here:
https://github.com/manojadams/metaforms-core/blob/master/src/MetaformRenderer.tsx

@ahmedsakri Also, if you find the lib useful, can you give it a start.
Will be helpful to make it more popular :).

authors: ahmedsakri manojadams

repo: manojadams/mui-forms


text:
feat: move to app folder on first run

Closes https://github.com/manosim/gitify/issues/417.
When gitify first opens, it will now request to move itself to the Applications folder on macOS. The user's choice will be stored for subsequent runs. If it's already in the Applications folder, no prompts are shown.
cc @manosim I pulled the functionality into a new file but if you'd prefer I can put it into main.js or do something else entirely with it, up to you!

@manosim yes - it skips if we're not on darwin. app.moveToApplicationsFolder is macOS-only but this is primarily in that other platforms are less opinionated about application location and/or handle it at the system level, so there's not really a cross-platform expectation for this type of user pattern there I wouldn't say.

source: gharchive/pull-request

repo: manosim/gitify

license: mit

license_source: bigquery


text:
incompatible with JDK >= 13

When trying to run xml-doclet in JDK 17, I get the following error message
[INFO] >>> javadoc:3.4.1:javadoc (xml-doclet)
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.2.0:javadoc (xml-doclet) on project motion-ui: An error has occurred in Javadoc report generation:
[ERROR] Exit code: 1 - error: Class com.github.markusbernhardt.xmldoclet.XmlDoclet is not a valid doclet.
[ERROR]   Note: As of JDK 13, the com.sun.javadoc API is no longer supported.

using the following maven snippet
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <executions>
               <execution>
                  <id>xml-doclet</id>
                  <phase>generate-resources</phase>
                  <goals>
                     <goal>javadoc</goal>
                  </goals>
                  <configuration>
                     <doclet>com.github.markusbernhardt.xmldoclet.XmlDoclet</doclet>
                     <additionalOptions>-d ${project.build.directory}</additionalOptions>
                     <useStandardDocletOptions>false</useStandardDocletOptions>
                     <docletArtifact>
                        <groupId>com.manticore-projects.tools</groupId>
                        <artifactId>xml-doclet</artifactId>
                        <version>1.3.0</version>
                     </docletArtifact>
                  </configuration>
               </execution>
            </executions>
         </plugin>

The Readme states it would be compatible, but it seems it is not. Any chance to use xml-doclet with a JDK 13 (and a project containing files compiled with that new bytecode versions) and above?
Regards,
Christian

Greetings!
Unfortunately you are right and I am setting the Toolchain explicitly in my projects, telling Gradle which JDK to use:

java {
    toolchain {
        languageVersion = JavaLanguageVersion.of(11)
    }
}

Thanks for the clarification. Rethinking all that generation thing then 😭

I am still planing to write this from scratch eventually for JDK 21 plus.
However, as long as building just works with JDK 11 there is little pressure.

I don't know what the effort is to upgrade to JDK 21.
However, If I see I can do it, are you willing to accept a PR?
Therefore, the minimum JDK requirement will be 21.

Greetings! PRs are most welcome!

repo: manticore-projects/xml-doclet


text:
Sahoo

Mantra FS100 NOT INSTALLING

Please help

Hi, need more info about the issue, messages, environmente, Nodejs version, etc.

repo: mantrajsframework/mantrad


text:
disentagle docs, syntax and core carto lib

Currently documentation, syntax definitions and the carto parser all live in one repository. Thus, in issues and PRs all three get mixed up. I guess it would make things easier if the docs, syntax and carto would all be split up into different repositories. For that it would make sense to create a carto Github organization.
This organization could also integrate e.g. https://github.com/yohanboniface/carto-atom and similar if the owners would be willing to transfer it.
I also think that the integration with mapnik-reference is too deep. carto and mapnik-reference should be decoupled. It would make sense if carto would define its properties seperately (according to release versions of the library) and these properties would then be mapped to Mapnik XML. This would also open up the (theoretical) base for outputting something different than Mapnik XML. This decoupling would also make another repository necessary.
In this regard it would also be necessary to understand which dependencies to other Mapbox projects (e.g. Tilemill/Studio) or websites still exist in terms of documentation or syntax definition.
@tmcw @springmeyer @gravitystorm What do you think?

syntax definitions

Do you mean  text editor syntax highlighting, or something else?

Do you mean text editor syntax highlighting, or something else?

Essentially everything that is in the build directory. There is https://github.com/mapbox/carto/pull/361 which targets that apparently.

Unlikely to happen, closing.

repo: mapbox/carto


text:
add 'getGroupLayersId' method && fix bugs

add getGroupLayersId method

Although I can iterate over all the layers to get the ids of all the layers of a particular id group, I think it's best to hide the implementation details of metadata.group for the user, so I added the getGroupLayersId method.

fix metadata be undefined exception

All layers added through the plugin have a non-empty metadata attribute, but I don't think there is any need to add all layers through the plugin, such as a map initialization layer, in which case the layer's metadata will be undefined, causing the exception to occur.

I also found that the addLayerToGroup(map, groupId, layer, beforeId) method gets the wrong beforeId when beforeId is not specified.

source code

if (beforeId && !ignoreBeforeIdCheck && (!isLayer(map, beforeId) || getLayerGroup(map, beforeId) !== groupId)) {
	throw new Error('beforeId must be the id of a layer within the same group');
} else if (!beforeId && !ignoreBeforeIdCheck) {
	beforeId = getLayerIdFromIndex(map, getGroupFirstLayerId(map, groupId) - 1);
}

modified code

if (beforeId && !ignoreBeforeIdCheck && (!isLayer(map, beforeId) || getLayerGroup(map, beforeId) !== groupId)) {
	throw new Error('beforeId must be the id of a layer within the same group')
} else if (!beforeId && !ignoreBeforeIdCheck) {

	const lastLayerIndex = getGroupLastLayerIndex(map, groupId)

	if (lastLayerIndex === -1) {
		throw new Error(`the "${ groupId }" layer group does not exist`)
	}

	beforeId = getLayerIdFromIndex(map, lastLayerIndex + 1)
}

repo: mapbox/mapbox-gl-layer-groups

license: ISC


text:
Maps SDK 7.0.0 and required breaking changes refactoring [WIP]

This pr bumps the plugins' Maps SDK dependency to 7.0.0-beta.1 in preparation for the stable 7.0.0 release. This pr also refactors all of the plugins to fix breaking changes.
https://github.com/mapbox/mapbox-android-demo/pull/917 is related.
After commenting out the test app activities which are related to the LocationLayerPlugin, I got the test app running again. All of the non-LocationLayerPlugin activities are running and behaving fine for me. I encourage you to switch to this branch, comment out LocationLayerPlugin .kt files, and check out the app on your own device.
@tobrun & @LukasPaczos :

In some files, I declare private Style style;, set this.style = mapboxMap.getStyle(); in the initialization of the class, and then use if (style!=null) in various places throughout the class before running whatever code. Didn't know if that's preferred or if it's fine for us to just do mapboxMap.getStyle.XXXX instead.

Wasn't sure how to handle the mix of breaking changes and the deprecation of the location layer plugin. How should we proceed with it?

Also, other than the LocationLayerPlugin tests, I've checked/fixed the plugins' unit/instrumentation tests

Let's remove the source code of the LocationLayerPlugin, we shouldn't need to maintain that code any longer. I think we can leave the module and README.md not to break existing links that are out there.

@LukasPaczos , this means that the latest/current version of the plugin ( 0.11.0 ) is the final version, right?    Asking because I'm thinking about whether any additional warning(s) about this need to go on https://www.mapbox.com/android-docs/plugins/overview/location-layer  (cc @colleenmcginnis )

@langsmith correct, 0.11.0 is the final version of the LocationLayerPlugin.

authors: LukasPaczos langsmith

repo: mapbox/mapbox-plugins-android


text:
Attempt to skip publish if commit represents a tag

First stab (untested) at https://github.com/mapbox/node-cpp-skel/issues/108#issuecomment-369325159

tested locally, seems to work. Will need battle tested downstream, but I think this is ready to be tested more, so merging.

repo: mapbox/node-cpp-skel


text:
Remove debug code

This looks like debug code, should it be removed?  https://github.com/mapbox/report-dt/blob/dev/server.js#L23

@ianshward  it help for see , if the server.js is running:

but is not really necessary.

@ianshward  it was removed .https://github.com/mapbox/report-dt/blob/dev/server.js#L23,
Close here

Sorry I misread. I thought you allowed the port to be configured but then
had a fixed port in the debug.  That debug is fine to leave if it is
helpful.
Maybe a separate issue - should the port be configurable?
On Tuesday, February 24, 2015, Ruben LM notifications@github.com wrote:

@ianshward https://github.com/ianshward it was removed .
https://github.com/mapbox/report-dt/blob/dev/server.js#L23,
Close here
—
Reply to this email directly or view it on GitHub
https://github.com/mapbox/report-dt/issues/12#issuecomment-75863649.

repo: mapbox/report-dt


text:
COPY from .gz/bz2/zip/tar/tgz files

Moved to a feature branch and re-open this PR

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Peter Pan seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

withdrawn to generalize archive sources

authors: CLAassistant fleapapa

repo: mapd/mapd-core


text:
Problem in using gcp file

Hi All.
I have a problem using gcp in my dataset. I started a project years ago, making reconstruction with images that does not have any exif data.  I was using gcp file to improve the quality of reconstruction. Recently, i updated OpenSfM, and when i make test with or without gcp file, i get the same result. I am wondering if i am making a mistake, or if i made a mistake in my previous tests.
My questions are : with the current version of OpenSfM,

If images contain no GPS data, that is, no longitude, latitude or location data of any kind, is GCP required for reconstruction ?
If GCP is not required, how is the reconstruction algorithm doing alignment between images in the images set without location metadata or GCP ?
What configuration options, if any, must be changed to support metadata based alignment (No GCP), GCP alignment, and NAIEVE alignment (NO metadata and no GCP) ?

Thank you for you answer, for helping me to understand what is happening.

I made a test with berlin dataset, to produce depthmap ply file, and here are some benchmark i obtained.
Convert file to PNG, without exif data in images and no gcp:
execution time :
real	0m58.136s
user	2m10.804s
sys	0m5.044s
file size :
10887721 bytes
Convert file to PNG, without exif data in images, and gcp file :
execution time : real	0m51.828s
user	1m56.476s
sys	0m4.840s
file size : 10897455 bytes
JPG with exif data in images and gcp file :
real	0m52.130s
user	2m1.164s
sys	0m5.668s
file size : 10769984 bytes
JPG with exif in image and without gcp file:
real	0m50.952s
user	1m59.680s
sys	0m5.792s
file size : 10769984 bytes
My question is : what is the purpose of the gcp ? If it does not improve quality, is the benefit to reduce processing time or vertice count ?

repo: mapillary/OpenSfM


text:
Help understanding fix to a bug

I'm submitting a ...  (check one with "x")

[x] question
[ ] any problem or bug report
[ ] feature request

If you choose 'problem or bug report', please select OS:  (check one with "x")

[ ] Android
[x] iOS

This isn't a bug report, as the bug has already been fixed in the newer version of the plugin, but I do have a question regarding the fix for #1919 as to what the actual problem was. I am trying to fix this "bottom menu bar" clicking issue in our fork.
I did try to upgrade to the latest version, as you will recall I had the issue where I couldn't move the map on Android and it turned out to be a problem with a single device. After I got it running, the huge jump from version 2 to 2.2.9 has created a lot of problems with actually using the plugin, so for now we just want to try fix this "bottom menu bar".
I understand if you don't have time or don't want to help with this, seeing as it is fixed in the current code. I looked the patch that was applied for #1919 but the code it's replacing doesn't even exist in my version of the file so I've tried going through the changes through the commits but still can't fix it, so am turning here for help.

I don't remember the details. It seems touch positioning problem.
Since the cordova-plugin-statusbar inserts their own view above the uiwebview, the webview is shifted down 20px or 40px.
In this commit https://github.com/mapsplugin/cordova-plugin-googlemaps/commit/d41f4362df341161a5119a46b6d979e9c2aa2e3b, the plugin calculates the touch position based on the top (y) position of the uiwebview.

Ah yes, I'm on the right path then. I thought that's what it did. My version of the file is currently on this commit https://github.com/mapsplugin/cordova-plugin-googlemaps/commit/96dae7f5de778ea0b33f0acbb46debf6a1268f61 which is really old compared to the commit you posted above and I tried to replace the hitTest code and added findClickedDom method but I think it's still missing something.
I don't expect you to know but do you think that what I did should have worked? Or maybe the code that calls hitTest needs updating also but has been done previously and is not in this commit?

When I debug the code and see what is going on with hitTest it keeps hitting the break in this if statement, even if I do it on the map and it doesn't let me scroll (because it keeps hitting the break) https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/d41f4362df341161a5119a46b6d979e9c2aa2e3b/src/ios/GoogleMaps/MyPluginLayer.m#L345-L350
So I'm thinking the subviews array is not getting the right data, but I don't know where that's populated.

I managed to get it to work! :D I'll check the code into my fork and show you if you're interested and maybe you can tell me if it's a stupid way of doing it.

Congrats. Well, I think my code and your forked code have many different.
Regarding of this code, this code is for detecting touches for other plugins that are insert own views.
Without using those plugin, always hit break.
https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/d41f4362df341161a5119a46b6d979e9c2aa2e3b/src/ios/GoogleMaps/MyPluginLayer.m#L332-L351
I focus on next things, this is already fixed issue in this repo.
So I'm not interested in so much.
But congratulation anyway, and thank you for keeping interested in this plugin.

Thank you for your help in this, I'm happy to close and move on. It was indeed this code that fixed the problem but I had to adjust it slightly to detect when the user is actually on the map and then hit break, otherwise if not on the map return hit

@dfibuch We are experiencing the same issue here - how can we resolve it? Has this fix been merged with master?

@gregavola It depends if you are version locked or not because the issue is fixed in both multiple_maps and master. I believe #1919 is what fixes it so if its in your branch then it will be.
We have been modifying some code in our fork so couldn't update to it and I fixed it manually. I can share the fix with you if you need it but its best to take it from the owner of the repo (mine is a hack really).

authors: dfibuch gregavola wf9a5m75

repo: mapsplugin/cordova-plugin-googlemaps


text:
Add and remove maps div issues - stress testing

I'm submitting a ...

[X ] any problem or bug report

OS:  (check one with "x")

[X ] Android

cordova information:
testproject> cordova plugin list
cordova-plugin-googlemaps 2.6.2 "cordova-plugin-googlemaps"
cordova-plugin-whitelist 1.3.3 "Whitelist"
testproject> cordova --version
8.0.0
Android OS 9
OnePlus 6
Current behavior:
This project creates a map
zooms to germany,poland,finland,sweden
creates lots of random mapmarkers
deletes the map
Loops <<<<
I am trying to get it to safely create and delete maps.
I edited the config.xml to point to my computer's http://192.168.10.45:8000/index.html.
On my PC I cd to the testproject/www folder and run a python webserver:

python -m http.server 8000

That way I can edit my files in chrome and just reload the page to get the updated version.
You can change the config.xml back so the index points to "index.html" and run it.
At some point it crashes on my phone. Attached is a logfile
hellocordova.crash.txt
Expected behavior:
I expect it to keep running. I hope I am doing something wrong and you can tell me how to do it correctly.
My project is here:
https://github.com/alex116/cordova-maps-issue.git
I have deleted my API key that is present in the config.xml, from my google console.

It seems you run the plugin in-proper way. Regarding of the crash log, your app does not load necessary JS files properly.
If you want to use live-reload, I recommend you use cordova-plugin-browsersync or ionic.
https://github.com/mapsplugin/cordova-plugin-googlemaps#browser-platform

Thank you for your quick reply,
I changed the config.xml to load from local resources.
The Unexpected response code 400  error does not appear in the logs any more.
The java.util.ConcurrentModificationException still appears after about 5-10 iterations.
I committed and pushed my change.
My Project:
https://github.com/alex116/cordova-maps-issue.git
My new crash log:
hellocordova.crash.txt
Would you be so kind and please have another look?
Thank you for your help.

Please use this plugin in normal way.

I am confused.
I followed the instructions to create this example.
It is a valid use case because I have many markers on my map, my device gets overloaded and users are unpredictable.
I would like to load and remove the map without the app crashing.
I am simulating an impatient user that opens and closes a map with many points before all points have loaded.
What do you mean when you say to use it in a normal way?

You write "run a python webserver". This is not normal way.

Ah now I understand. I already fixed that in this comment: https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/2650#issuecomment-509747003
That is why I was still confused. I guess that means it is running normally now.
It does not use the python web server any more.

I changed the config.xml to load from local resources.

We are experiencing similar issues with our app in production.
There is no proper way to reproduce it (other then performing stress tests), but we see this every once in a few days:
Fatal Exception: java.lang.RuntimeException
Caused by java.util.ConcurrentModificationException
plugin.google.maps.CordovaGoogleMaps.onDestroy

java.util.LinkedHashMap$LinkedHashIterator.nextEntry (LinkedHashMap.java:346)
java.util.LinkedHashMap$ValueIterator.next (LinkedHashMap.java:370)
**plugin.google.maps.CordovaGoogleMaps.onDestroy (CordovaGoogleMaps.java:540)**
org.apache.cordova.PluginManager.onDestroy (PluginManager.java:297)
org.apache.cordova.CordovaWebViewImpl.handleDestroy (CordovaWebViewImpl.java:484)
org.apache.cordova.CordovaActivity.onDestroy (CordovaActivity.java:315)
android.app.Activity.performDestroy (Activity.java:6442)
android.app.Instrumentation.callActivityOnDestroy (Instrumentation.java:1143)
android.app.ActivityThread.performDestroyActivity (ActivityThread.java:3877)
android.app.ActivityThread.handleDestroyActivity (ActivityThread.java:3908)
android.app.ActivityThread.access$1500 (ActivityThread.java:157)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:1410)
android.os.Handler.dispatchMessage (Handler.java:102)
android.os.Looper.loop (Looper.java:148)
android.app.ActivityThread.main (ActivityThread.java:5551)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:734)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:624)

It seems to be related to this following setup of code:
Collection<PluginEntry>pluginEntries = pluginManager.getPluginEntries();
for (PluginEntry pluginEntry: pluginEntries) {
  // logic
}

We've also seen crashes in the other Adroid lifecycle method (onPause for example) that had the same exception.
Would it make sense to handle the entries from getPluginEntries so the ConcurrentModificationException no longer occurs?

Please send a pull request.

@wf9a5m75 that would result in an hotfix/workaround, not a root cause fix.
Why is the getPluginEntries() result throwing ConcurrentModificationException?

Why is the getPluginEntries() result throwing ConcurrentModificationException?

I don't know.


text:
Document best way to customize sources for custom build

Hi, I would like to use this awesome tech as a module for Kartotherian. What is the best way to customize the list of available data sources, so that users would get the localhost (configurable) data source, rather than the default? I obviously don't want to hack the SourcesModal.jsx
And a more generic question - what's the best way to integrate it overall? I saw the wiki repo simply copy/pastes the entire package. Is that a recommended way? Is there something similar to node's npm install?

Hi, I would like to use this awesome tech as a module for Kartotherian. What is the best way to customize the list of available data sources, so that users would get the localhost (configurable) data source, rather than the default? I obviously don't want to hack the SourcesModal.jsx

Take a look at https://github.com/maputnik/editor/tree/master/src/config. The data sources are available there.
You can also add new sources in a PR back to upstream if you feel this is valuable for everyone.

And a more generic question - what's the best way to integrate it overall? I saw the wiki repo simply copy/pastes the entire package. Is that a recommended way? Is there something similar to node's npm install?

It would be possible to expose it as node module - however the entire code needs to be transpiled/built first.
You can also distribute the HTML bundle public.zip https://github.com/maputnik/editor/releases

Closing due to inactivity. Please comment and we'll reopen if anybody is still interested

authors: lukasmartinelli nyurik orangemug

repo: maputnik/editor


text:
prevent dragging above

Is there anyway to prevent people from dragging above a certain element.  For example. My top list item sometimes needs to stay at the top.

Yes, just use the dnd-dragover callback. There is a demo that pretty much does this:
http://marceljuenemann.github.io/angular-drag-and-drop-lists/demo/#/advanced

authors: benjroberts marceljuenemann


text:
Dynamic message

I have a toast that is displayed for a relatively long time so I'd liked to periodically change the message. After the toast is displayed. I tried this:
let iziTxt = document.querySelector('.iziToast-message.slideIn');
iziTxt.innerHTML = "Still working...";

but the message didn't change. How can I change the message dynamically?

How do you create a toast?

Sorry, after checking it numerous times I found that the toast I created and subsequently destroyed before displaying the current toast was being referenced. I added an ID to the current toast and I was able to reference (and change) the message correctly.

repo: marcelodolza/iziToast


text:
Add cozytypes

Adding a new typing website, cozytypes.com

Thanks!

authors: alexmcbrier marcelscruz

repo: marcelscruz/dev-resources


text:
🛑 Video Call is down

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

HTTP code: 0
Response time: 0 ms

Resolved: Video Call is back up in 170bf93.

repo: marcoadasilvaa/health


text:
🛑 Video Call is down

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

HTTP code: 0
Response time: 0 ms

Resolved: Video Call is back up in ef789d6.


text:
🛑 Diner is down

In a3f5822, Diner (https://www.dinersfx.pe/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Diner is back up in 71e7757.


text:
Can't identify cell using find_cell

Hi,
We are currently trying to use Vedo to figure out where a Point is positioned in a mesh. We identified the find_cell method, but it gives weird results. On the piece of code below we build a 1-cell mesh, position a point inside it, then find out in which cell the point is positioned. This code returns -1, as if no corresponding cell were identified.
We played a bit with ordering of the points to create the cell, but this had no effect. FWIW we tried the same piece of code with PyVista, using find_containing_cell, which returned expected results. We didn't look into Vedo's internals yet.
Let me know if you need more details
import vedo

# 1-cell mesh
verts = [(0, 0, 0), (1, 0, 0), (0, 1, 0), (0, 0, 1)]
cells = [(0, 1, 2, 3)]
type = [10 for _ in cells]
mesh = vedo.UnstructuredGrid([verts, cells, type])

# Point to track
point_to_find = (0.2, 0.2, 0.2)
pt = vedo.Point(point_to_find)

# Cell id is returned as -1, which is unexpected
cell_index = mesh.find_cell(point_to_find)
print(cell_index)

# Visualization
mesh.opacity(0.1)
vedo.show(mesh, pt, viewup="z", axes=3)

Sorry @ldouteau I don't understand why this issue slipped off my attention!
Just pushed a fix for it.
import vedo

verts = [
    (0, 0, 0),
    (1, 0, 0),
    (0, 1, 0),
    (0, 0, 1),
    (0, 1, 1),
    (1, 0, 1),
    (1, 1, 0),
    (1, 1, 1),
]
cells = [
    (2, 3, 4, 5),
    (0, 2, 3, 5),
    (0, 1, 2, 5),
    (2, 4, 5, 7),
    (2, 5, 6, 7),
    (1, 2, 5, 6),
]
types = [10 for _ in cells]

points_to_find = [
    [0.1, 0.5, 0.9],
    [0.1, 0.1, 0.5],
    [0.5, 0.1, 0.1],
    [0.5, 0.9, 0.9],
    [0.9, 0.9, 0.5],
    [0.9, 0.5, 0.1],
]

ugrid = vedo.UnstructuredGrid([verts, cells, types])
# ugrid = vedo.TetMesh([verts, cells])

for point_to_find in points_to_find:
    print(f"point {point_to_find}")
    cell_index = ugrid.find_cell(point_to_find)
    print("cell_index:", cell_index)

ugrid.cmap("jet", range(ugrid.ncells), on="cells", n_colors=ugrid.ncells)
ugrid.add_scalarbar().opacity(0.5)

# Diplay the example
vedo.show(ugrid, vedo.Points(points_to_find, r=10), viewup="z", axes=3)

Sorry again!

Hi Marco. That's my fault, i had issues with my Github account & it took me ages to realize it. Thanks for the fix & for Vedo in general !

authors: ldouteau marcomusy

repo: marcomusy/vedo


text:
AngularUI Router

Is it possible to use angularAMD with AngularUI Router? The routing in ui-router being done with $stateProvider and $urlRouterProvider (for default route).

Hi,
i'm trying to use ui-router multiple views in this way:
 .state('main', {             url:'/app',         //    abstract: true,             data: {requireLogin:true },             views:{              '':                angularAMD.route({                 templateUrl:function (){ var token=$cookies.get('token'); return '/getTemplate/'+token+'/main'; },                 controller:''                }),              'main.content@main':                angularAMD.route({                 templateUrl:function (){ console.log("main.content template"); var token=$cookies.get('token'); return '/getTemplate/'+token+'/main.content'; },                 controller:'main.content',                 controllerUrl:function (){ console.log("main.content controller");var token=$cookies.get('token'); return '/getController/'+token+'/main.content.js'; }//'main.content'                }),
but it seems not to work... what i'm doing wrong?
Thanks,
Riccardo

authors: razvan-panda riccardoroasio

repo: marcoslin/angularAMD


text:
md-layout and md-card doesnt support transition-group move transitions

Steps:
create a component named "main-layout"
<template>

    <md-input-container>
      Search
      <md-input v-model="search"></md-input>
    </md-input-container>
    <md-button class="md-icon-button" @click="order = order == 'asc' ? 'desc' : 'asc'">
      <md-icon>{{order == 'asc' ? 'arrow_downward' : 'arrow_upward'}}</md-icon>
    </md-button>
    <transition-group class="md-layout" name="cards">

      <md-layout md-flex-xsmall="100" md-flex-medium="33" md-flex-large="25" key="add">
        <slot name="add"></slot>
      </md-layout>
      <md-layout md-flex-xsmall="100" md-flex-medium="33" md-flex-large="25" v-for="(data,index) in sortedDataListByDate" :key="index">
        <slot :data="data" :index="index"></slot>
      </md-layout>

    </transition-group>

</template>

Try the main layout with md-card using another component ( Note: this is only an example)
<template>

      <template slot="add">
        <md-card>
          <md-card-header>

              Add

            <md-icon style="font-size: 3rem;">add</md-icon>
          </md-card-header>
        </md-card>
      </template>
      <template scope="{data,index}">
        <md-card class="{'md-warn': data.updated}">
          <md-card-header>

              ({{index}}) {{data.test}}
              <md-button v-if="!data.updated" class="md-icon-button" @click="VuexFireSave(data)">
                <md-icon>edit</md-icon>
              </md-button>
              <md-button class="md-icon-button" @click="VuexFireRemove(data)">
                <md-icon>delete</md-icon>
              </md-button>

            {{new Date(data.created).toTimeString()}}
          </md-card-header>

        </md-card>
      </template>

</template>

You are using it wrongly. You should use classes like this:
.cards-enter-active {
  transition: all .3s ease;
}
.cards-leave-active {
  transition: all .8s cubic-bezier(1.0, 0.5, 0.8, 1.0);
}
.cards-enter, .slide-fade-leave-active {
  transform: translateX(10px);
  opacity: 0;
}

Try to add this in a Codepen. This new snippet works for you?

ill try that later im using animate css for transitions though the move thing doesnt work

authors: DevEclipse marcosmoura

repo: marcosmoura/vue-material


text:
[Android]TypeError: expected dynamic type int64', but had type double'

When i click the button, i got this error!

My react native version is 0.20.0!

You probably put a double in an option instead of an int
Can you show me your options ?

The folowing options needs to be an int (no dot) :
durationLimit: 10, // video recording max time in seconds
maxWidth: 100, // photos only
maxHeight: 100, // photos only
aspectX: 2, // aspectX:aspectY, the cropping image's ratio of width to height
aspectY: 1,
angle: 0 // photos only

I options maxWidth get the phone width,this is my mistake,thank you!

repo: marcshilling/react-native-image-picker


text:
[Feature] install-hook, post-commit-hook and post-rewrite-hook

Let user can install git hook from command line.
After install hook, every time git commit, run redmine-bot post-commit-hook
After install hook, every time git rebase or any another rewrite commit action, run redmine-bot post-rewrite-hook

TODO:

Remove default template in config folder. (Currently no support user customize)
Modified comment request template, add branch name, repo. name and author name.
Functional test with real server manually.


text:
External SW load of community event (non-MAPP)

There are reported errors regarding the loading of non-MARE external events at the web portal. Apparently MAPP training loads fine, but other events such as community-based learning sessions, etc. cause an error when loaded and don't render.
A specific example was given by Alisha Patrick (an active SW user) on 1/27/20 at 5:09 PM
Please investigate and correct the issue.

After doing some research I understand what's causing this issue and how to resolve it.  The code change itself will be fairly simple, but I will need a process/content decision from the team to move forward.  I will do my best to describe the issue and give you enough detail to make a decision for how to move forward.
Issue Description
The Event model has a type field, which renders as a dropdown in the Admin UI:

The values of the type field are hard-coded into the model (as the values you see above).
The AGENCY EVENT SUBMISSION page also has an event type dropdown, but the values for that dropdown are loaded from the Event Type model.  Here are the current Event Types that exist in production:

If the available on website checkbox is checked then they appear in the event submission form.
When the Event is being created after the form is submitted, the value in the event type dropdown is used as the value for the type of the Event.  If the user chooses a value that exists in the event type dropdown on the form, but does not exist in the hard coded type values of the Event model, validation will fail and the Event will not be created/saved.  Thus, MAPP Trainings work because they exist in both lists, but none of the other Event Types that were created exist on the Event model, so event creation will fail.
This code hasn't been updated in ~2 years, so my guess is that the Event Types were recently updated or no one has tried to create a non-MAPP Training event from the front end.
Potential Solutions
The easiest way to solve this would be to bring the two event type lists in line with each other.
With a few lines of code this would be resolved with minimal risk.  The issue there is that if anyone creates a new Event Type (and makes it visible on the website) it will automatically be added to the dropdown and if a SW tries to create an event with that type it will throw an error.  So there would need to be some process/oversight around adding new Event Types to prevent similar issues in the future.
Another potential solution would be to use the Event Types as the type directly within the Event model.  It looks like that used to be the case, but a change was made a couple years ago to use a hard-coded list (I can't really tell why, maybe you guys remember?).  We could hook that functionality back up, which would make the system more robust moving forward.  However, the change could have a potential impact in any place the Event model is used, because instead of the type being a simple piece of text, it would be a reference to another model.  So we'd have to update any place in the code where an Event type is being read.  This would incur a lot of risk of breaking other functionality, and would require a thorough testing effort.
@joesmare please let me know how you'd like to proceed.

@noah we had Jared consolidate the five event types to the three currently displayed. I think I understand what you are proposing and if I am correct, I suggest that we bring the two lists in alignment with each other as you suggest. I don't see a time when we would change the construct. If I am not answering clearly enough, or should you have any questions, give me a buzz on my cell. TY

Sounds good @joesmare - I spoke with Bridget and we are going to update the Event Types to match the list hard-coded into the Event model

@n-devr Can you confirm that this story is complete and should be closed?

have not heard of this being an issue as of late

authors: bchiaruttini joesmare n-devr

repo: mareinc/mare


text:
ie工具栏没有友好提示?

谷歌浏览器工具栏提示正常，ie11没有提示，查看代码是伪类样式被覆盖了，没有生效，如何解决

经楼主测试，在IE11中给工具栏上的button加上display:inline-table;即可

repo: margox/braft-editor


text:
Example - how it works?

Hi.
Can you explain how it works? Some example with yaml and example of use it?
I need for measure the current of roller blind for to detect blockage.

Hi, youi can use it like this:
sensor:
  - platform: custom
    lambda: |-
      auto acs712_sensor = new ACS712Sensor();
      App.register_component(acs712_sensor);
      return {acs712_sensor->current_sensor, acs712_sensor->power_sensor};
    sensors:
    - name: "Amperes"
      unit_of_measurement: A
      accuracy_decimals: 2
    - name: "Watts"
      unit_of_measurement: W
      accuracy_decimals: 2


text:
improvement: clearer dates and datetimes with utc

Fixes #2767

this is a wonderful solution, thanks! 🙏

Thanks @MarcoGorelli. I did it just on the min/max of the range, but may consider adding it to each row as well. Let me know if you have feedback after we release

authors: MarcoGorelli mscolnick

repo: marimo-team/marimo


text:
trailing slash '/' in remappings.txt

that's a bit hard to reproduce, so sorry if the description is vague - happy to receive some thoughts on this, from someone knowing the soldeer internals.
observed on both linux & macos, ... sometimes.
remappings.txt contents e.g.:
@openzeppelin-contracts-4.9.6=dependencies/@openzeppelin-contracts-4.9.6

another time regenerated remappings.txt contents:
@openzeppelin-contracts-4.9.6/=dependencies/@openzeppelin-contracts-4.9.6/

both records are not treated equal by soldeer (despite they work the same), so when one record present when re-run getting a file with a duplicate, so the file quickly becomes as:
@openzeppelin-contracts-4.9.6=dependencies/@openzeppelin-contracts-4.9.6
@openzeppelin-contracts-4.9.6/=dependencies/@openzeppelin-contracts-4.9.6/

it's a really weird behavior and I have a problem determining what's causing it. I have no problem having the duplicates, but in combination with https://github.com/mario-eth/soldeer/issues/181 it quickly escalates to be a bit messy.
Actual
Duplicated remapping by the trailing slash, resulting in soldeer adding two records meaning the same.
Expected
No duplicated remapping, trailing slash trimmed.

Since the remappings logic has been rewritten in the upcoming version, I think this should not happen anymore. You can try to reproduce with the code of the release/v0.4.0 branch and see if it's fixed, or just wait for the next release!

authors: beeb macwis

repo: mario-eth/soldeer


text:
Replace AbstractDifferentiation with DifferentiationInterface

Fix #19
I wasn't able to run the tests because Soss hasn't been updated in 2 years, and has compat conflicts with DifferentiationInterface. The first one I ran into is FillArrays having released a v1 which Soss didn't know about.
I guess we may need to ask @csherrer to take a look at the CompatHelper PRs?

Many thanks, looking. I think we could drop Soss, as much as I like how fast/clean it is.

I don't want to be the reason for that though

Before even Soss which could be dropped, on Julia 1.9 I run into
https://github.com/gdalle/DifferentiationInterface.jl/blob/0f7957d4c636722b0629096f0d4fc9e5009dced3/DifferentiationInterface/Project.toml#L55
https://github.com/JuliaDiff/FiniteDiff.jl/blob/27f31db7e4192e086a07c3fafe6394fa05214bc6/Project.toml#L30
which makes DI + FiniteDiff only installable on Julia 1.10+. But I don't see an easy way to drop FiniteDiff (which is a transitive dep of something I def need, Optim -> NLSolverBase -> FiniteDiff).
So it would seem this PR has to make MuseInference 1.10+ unless Im mistaken? (which I don't necessarily want to do)

Since I started developing DI fairly recently, the compat bounds reflect the latest versions at the time, which are more recent than what you have. And the SciML ecosystem (including FiniteDiff) has been dropping Julia 1.6 faster than other packages.
In this instance, the compat bound v2.31.1 is important because DI caught a bad bug in FiniteDiff, which was then fixed in https://github.com/JuliaDiff/FiniteDiff.jl/pull/186.

That makes sense. Maybe this is a rabbit hole you dont feel like going down, and it could well not be the only thing, but perhaps this was too aggressive of a julia version bump? Couldnt find mention anywhere of why its needed. This isnt a MuseInference thing, anything DI+FiniteDiff in the same project is going to have to be 1.10+.
https://github.com/JuliaDiff/FiniteDiff.jl/commit/8ee5d7cc56e9d39719eae34b8564bfc21486b6da

I don't maintain FiniteDiff, despite it being in the JuliaDiff orgnaization it is mostly a SciML thing, and SciML has been dropping 1.6 like a hot potato. The right person to ask about this would be @ChrisRackauckas

In any case, 1.10 will be the next LTS as sonn as 1.11 comes out, so 1.6 should be droppable everywhere in a matter of months, if not weeks

Note this is about 1.9, not 1.6, but in any case, I'll weight if I'm ready to drop 1.9.

Hey @marius311, just checking in on my old PRs. Do you still want to explore the switch to DI?


text:
Allow override <code... from highlighter

Hightlightters need better flexibility for the wrappers. For example, set <pre class=hljs>. Can we add such feature but keep backward compatibility?
Suggestion:
Check highlighter output, and if it starts with <pre, skip wrapper. Any problems with this?

Done in https://github.com/markdown-it/markdown-it/commit/87ece24ff997502418e74fffc3ad78173af4a1d1#diff-de043c47b7a14d2d383d220efbaa9c2eR48

repo: markdown-it/markdown-it


text:
Example for Async plugin?

I want to make a new plugin but need to call async code. I already red https://github.com/markdown-it/markdown-it/blob/master/docs/development.md but would like to have an easy example.
What I want to make is a block plugin which wil parse:
$$$ mermaid
< some code like described on https://github.com/knsv/mermaid >
$$$

The content should be send through the mermaid processing asynchroneous and be replaced by the resulting html (inline svg image).
As example for the plugin I looked into the code syntax highliting base plugin.
Can anybody show how to call a simple method like the following (maybe from the renderer):
getHtml = function (code, callback) {
  // make some process calls
  callback(null, '<svg>...</svg>');
}

I plan to add more visualizations beside mermaid like table2chart conversion...

You should manually call parser/render and insert async call between. Something like this:
const md = require('markdown-it')();

let env = {}
let tokens = md.parse(input, env);

your_async_fn(tokens, env, err => {
  // here you will have modified tokens (and may be env) as you need
  output = md.renderer.render(tokens, md.options, env);
});

Thanks I wiill try to do this that way the next days. Only downside thing is that such plugins are not easily addable through only an use call.

@alinex , were you able to make this work? I am trying to accomplish the same thing using mermaid.

@puzrin for me it had helped if there was a short example in the FAQ.
what about just putting something like this in there?
import MarkdownIt from "markdown-it";
const mdOptions= {};
const md = new MarkdownIt(mdOptions);

let env = {}
let tokens = md.parse(input, env);
const env = {
    filePath: "get current file path somehow",
};

let tokens = md.parse(your_source_md, env);

export const runYourAsyncFunction = async (tokens, options, env, self) => {
    for (let idx = 0; idx < tokens.length; idx++) {
        const token = tokens[idx];
        if (token.type == "fence") {
            await doYourWorkOnTheFenceBlock(tokens, idx, options, env, self);
        }
    }
};

// this does only side effects on the tokens array:
await runYourAsyncFunction(tokens, {}, env, md.value);

const contentHTML = md.renderer.render(tokens, md.value.options, env);

authors: alinex manastalukdar puzrin s-light


text:
Overwrite flag not being honored

Wherever I put the -o or --overwrite flag in the command line for dyanmo-restore-from-s3 I keep seeing Fatal Error. Failed to create new table. ResourceInUseException: Table already exists: <my-table>
It looks like the flag is honored if I remove the --aws-region parameter because it defaults to the ap-southeast-1 region and ends up creating a new DynamoDB table.
I also noticed that it was doing this because it couldn't find the table in my region. I saw that it only found tables that started with an UpperCase Letter as the first character. Don't know if it's a bug in getting the tables or that I have 200+ tables in my region?

Don't know if it's a bug in getting the tables or that I have 200+ tables in my region?

It's both of these combined. I've got the same issue. The request to get tables uses pagination and only returns 100 tables at a time, so the logic needs to be modified to pull back all the tables.

authors: ksolie lisakoala


text:
PojoLoadTester finds wrong number of objects with over five children

I'm seeing multiple instances in the stress test logs of the errors like the following:
ERROR (PojoLoadTester.verifyIntervalAfterIteration) found 226 SamplePojo objects with over five children but should have found 994
They are not consistent in the number of objects expected or found, but they consistently find less than expected.

Ok, I'm closing this bug because it's not a bug in itself but just a side-effect of other bugs.  Every instance of this I've found can be explained by other errors that prevented documents from writing.

repo: marklogic/java-client-api


text:
Various improvements

Allow hooks to be called with additional args.
Add lasso-marko as a dependency.
Upgrade lasso (@austinkelleher safe to go to beta?)
Provide BuildResult to afterBuild hook.

Closing this issue because I will make these changes part of marko-starter v3.

repo: marko-js/marko-starter


text:
Prepare for Jenkins on Kubernetes in the Cloud [Feature]

Thank you for opening the issue. I try to be as attentive as possible but please allow for 24 to 48 hours for this to be triaged.
Is your feature request related to a problem? Please describe.
Prepare for the next meetup regarding Jenkins on Kubernetes in the Cloud
Describe the solution you'd like
See above
Describe alternatives you've considered
What type of cloud? AWS to start I guess
Additional context
Add any other context or screenshots about the feature request here.

This will go under a separate repository


text:
Digest authentication

Hello!
It is a very useful application. Are you planning to implement authentication? In particular, digital authentication?

Hi, we didn't meet this need yet, but once we need it we'll implement it. In the meantime, since you have a use case for it, don't hesitate to give it a try, and if you have a working solution, send us a PR!

authors: asnov fzaninotto

repo: marmelab/FakeRest


text:
ReferenceField doesn't allow undefined values

Use case:
I have an optional reference field on my entity whose value is either undefined or an id of another entity
Expected:
admin-on-rest checks the value of the record with the given source prop, and if undefined displays nothing, otherwise a request for the referenced entity is sent and the reference child field is displayed
Actual:
admin-on-rest sends a GET_MANY request with parameter ids as ["undefined"]

Did you set the allowEmpty prop on <ReferenceField>?

Yes I have. It didn't make a difference, and I can tell by code inspection no checks are made for undefined values and no tests are written for that case

Confirmed, that's a bug

@fzaninotto can we do the same thing with ReferenceArrayField ? I can send a pr if you are okay with this.

authors: djhi fzaninotto mzgnr s-nel

repo: marmelab/admin-on-rest


text:
🛑 Anime Fórum is down

In a5e526d, Anime Fórum (https://anime-forum.info) was down:

HTTP code: 0
Response time: 0 ms

Enviado ticket para suporte para averiguar a queda

Resolved: Anime Fórum is back up in 490cd15.

Deixar o motivo da queda:
Hello,
We apologize for the inconvenience, Our Network Operations department along with our Dallas Datacenter is conducting a scheduled maintenance work on the DAL4.1800 cabinet and that is the reason why you are experiencing a downtime with your services.
Please find the details of the maintenance work below:
ServerHub - Rack/Cables Modification - Dallas, TX - Cabinet DAL4.1800 - April 21st, 2023
Maintenance start: 21/04/2023 08:00 AM CDT
Maintenance end: 21/04/2023 08:00 PM CDT
Work Description: Cabling organizing and fixing some issues on the rack
Total Duration of Window: 12 hours Total
Expected Downtime: 8 hours
Location/Cabinets/Services(s) Impacted: Dallas/DAL4.1800
Our Network Operations department will let you know once the maintenance work is over and we appreciate your patience.
Sincerely,
Justin G
Senior System Administrator
ServerHub®

repo: martec/alfa-status


text:
[FEATURE REQUEST] issues coming from error reports should include log

there are issues such as https://github.com/marticliment/WingetUI/issues/820 where people don't type anything. I think I have found out why they do that. When in the page https://www.marticliment.com/error-report/ they click on "Open a new issue" and submit it thinking the log is already included. I am not sure how to solve it, but you could change the link to https://github.com/marticliment/WingetUI/issues/new?assignees=&labels=bug&template=bug-report--something-is-not-working-as-expected-.md&title= so they at least have to type a title before creating it

Oh, I see this could work very well. Thanks!

how about modifying the issue templates to something like https://github.com/JosefNemec/Playnite/blob/master/.github/ISSUE_TEMPLATE/bug_report.yml
https://github.com/microsoft/winget-pkgs/blob/master/.github/ISSUE_TEMPLATE/package_issue.yml
?

there are issues such as #820 where people don't type anything. I think I have found out why they do that. When in the page https://www.marticliment.com/error-report/ they click on "Open a new issue" and submit it thinking the log is already included. I am not sure how to solve it, but you could change the link to https://github.com/marticliment/WingetUI/issues/new?assignees=&labels=bug&template=bug-report--something-is-not-working-as-expected-.md&title= so they at least have to type a title before creating it

This has been implemented. You can test it here:
https://www.marticliment.com/error-report/?appName=WingetUI&errorBody={s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}OS:{s}Windows{l}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}Version:{s}('10',{s}'10.0.22631',{s}'SP0',{s}'Multiprocessor{s}Free'){l}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}OS{s}Architecture:{s}AMD64{l}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}APP{s}Architecture:{s}64bit{l}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}Language:{s}Unknown{l}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}APP{s}Version:{s}2.01{l}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}Program:{s}WingetUI{l}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}{s}Program{s}section:{s}Main{s}script{l}{l}-----------------------------------------------------------------------------------------{l}{l}{l}{l}WingetUI Log:{l}{l}{l}{l}{l}Traceback{s}(most{s}recent{s}call{s}last):{l}{s}{s}File{s}"c:\SomePrograms\WingetUI-Store\wingetui\__init__.py",{s}line{s}78,{s}in{s}<module>{l}{s}{s}{s}{s}from{s}customWidgets{s}import{s}*{l}{s}{s}File{s}"c:\SomePrograms\WingetUI-Store\wingetui\customWidgets.py",{s}line{s}12,{s}in{s}<module>{l}{s}{s}{s}{s}from{s}PackageManagers.pip{s}import{s}Pip{l}{s}{s}File{s}"c:\SomePrograms\WingetUI-Store\wingetui\PackageManagers\pip.py",{s}line{s}14,{s}in{s}<module>{l}{s}{s}{s}{s}class{s}PipPackageManager(DynamicLoadPackageManager):{l}{s}{s}File{s}"c:\SomePrograms\WingetUI-Store\wingetui\PackageManagers\pip.py",{s}line{s}39,{s}in{s}PipPackageManager{l}{s}{s}{s}{s}raise{l}{l}RuntimeError:{s}No{s}active{s}exception{s}to{s}reraise<class{s}'RuntimeError'>:{s}No{s}active{s}exception{s}to{s}reraise

I have renewed the templates, @ppvnf

Nice, there is a small typo in the new label you have created "enhancement".
Also, please check Telegram.

authors: marticliment ppvnf

repo: marticliment/WingetUI


text:
UWP: Un-pausing media makes it start from the beginning

If a song is paused, and you un-pause it by calling MediaManager.PlayPause(), the song starts over from the beginning instead of continuing where it left off.

Issue #89 also exists on UWP.

Still have the same issue happened using
PlaybackController.SeekTo(StreamingPosition)
MediaManager.PlaybackController.Play()


text:
Reference files system support?

Super excited about the potential of rfsspec.
I tried it out with one of my HRRR kerchunk aggregations

I get the following error:
File ~/.cache/bazel/_bazel_builder/99bd544777c52d5a0d8a66ea3b05626a/execroot/ritta/bazel-out/k8-dbg/bin/build/jupyter/jupyter.runfiles/common_deps_rfsspec/site-packages/rfsspec/gcs.py:41, in RustyGCSFileSystem.cat(self, path, recursive, on_error, start, end, **kwargs)
     39     return out
     40 else:
---> 41     return self.cat_file(paths[0], start=start, end=end, **kwargs)

File ~/.cache/bazel/_bazel_builder/99bd544777c52d5a0d8a66ea3b05626a/execroot/ritta/bazel-out/k8-dbg/bin/build/jupyter/jupyter.runfiles/common_deps_rfsspec/site-packages/rfsspec/gcs.py:28, in RustyGCSFileSystem.cat_file(self, url, start, end, **kwargs)
     27 def cat_file(self, url, start=None, end=None, **kwargs):
---> 28     return gcs_cat_ranges([url], start=[start or 0], end=[end or 0], **self.kwargs)[0]

PanicException: called `Option::unwrap()` on a `None` value

Is this just a bug or a major missing feature in rfsspec to support reference file system in zarr?

Yes, rfsspec can be used in zarr-like access patterns, which I'm pretty sure should include referenceFS with rfsspec as the "remote" FS backend. I'm not certain if reading the JSON will work on gcs (it is a little behind s3), but you can always .cat() the bytes.
The fo you specify looks like a zarr directory rather than a JSON file? Did you register rfsspec's gcs as the fsspec backed for "gcs"?
Probably I will need to do a little bit manually to get it to work.
Oh, I should say that the "panic" there is basically just an exception, but I haven't put in the appropriate handling logic in yet.

authors: emfdavid martindurant

repo: martindurant/rfsspec


text:
Hotspots not respected

Hello,
I'm testing this out and I'm finding that the designs that are being created aren't near my specified hotspots.
I assume that the area the designs are targeting look 'too good to pass up', but do you have any tricks for forcing the binders to a specific location?

Please see https://github.com/martinpacesa/BindCraft/issues/56#issuecomment-2416231110

authors: danpf martinpacesa

repo: martinpacesa/BindCraft


text:
升级1.04之后，I18n无效了

设置I18n的语言之后，并不生效，1.02是好的，不知道又是哪里出问题了。每次更新都引出一堆的其他bug，无语。

@bloodxia 抱歉~ 之前的i18n拿语言存在一些设置模糊的问题，删掉了从http头拿语言，删掉了内置的cookiestorage，所以也不会帮你去设把当前语言缓存到cookie。新版你需要在修改语言时手动设置cookie，在初始化时（MainLayout里）手动从cookie里读缓存的语言。
CookieStorage 请查看 https://github.com/masastack/MASA.Blazor.Pro/blob/main/Masa.Blazor.Pro/Global/CookieStorage.cs

这样也挺好的，提个建议，每次更新是否能有一个changelog？我还专门找了一圈，完全没有更新日志，都不知道更新了什么。

@bloodxia https://github.com/masastack/MASA.Blazor/releases

authors: bloodxia capdiem

repo: masastack/BlazorComponent


text:
Receiver group. Add/edit receiver group,Description Failed to add an external member

消息组 - 新增消息组，添加外部成员失败；

目前仍报错

resolved


text:
🛑 POH events bot from render hosting is down

In 08290bf, POH events bot from render hosting (https://poh-events-bot.onrender.com/ping) was down:

HTTP code: 0
Response time: 0 ms

Resolved: POH events bot from render hosting is back up in 486b764 after 9 minutes.

repo: masch/poh-events-uptime


text:
🛑 POH events bot from render hosting is down

In 6414903, POH events bot from render hosting (https://poh-events-bot.onrender.com/ping) was down:

HTTP code: 0
Response time: 0 ms

Resolved: POH events bot from render hosting is back up in d7d114a after 27 minutes.


text:
🛑 POH events bot from render hosting is down

In c99a317, POH events bot from render hosting (https://poh-events-bot.onrender.com/ping) was down:

HTTP code: 0
Response time: 0 ms

Resolved: POH events bot from render hosting is back up in dc0c962 after 10 minutes.


text:
process '[redacted]/Geekbench-5.4.5-Linux/geekbench_x86_64' started with executable stack

process '[redacted]/Geekbench-5.4.5-Linux/geekbench_x86_64' started with executable stack #42
I notice this in my dmesg log when I run yabs on ubuntu 22.04 .  When I chased down geekbench it doesnt seem to be an open source program.  I did find this https://github.com/cloudharmony/geekbench5 , but I dont believe that is the source code.  Geekbench appears to be a commercial product.
So is this safe to run ?? I dont know
https://lore.kernel.org/lkml/20191208171918.GC19716@avx2/
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/fs/exec.c?id=47a2ebb7f5053387f5753b524f4920b9b829f922
It really is over my head.
Although its cool , not really a fan of running a script straight from wget/curl.  yea I know I dont have to.  Then the script downloads a compiled file that generates this cryptic warning.  Yes I can disable the geekbench test with -g .
So  is geekbench free ?  I see some mentions of a license file in the yabs.sh ?  Makes me wonder that there could possibly be an open source benchmark utility that could be ran instead ??
I discovered yabs when my VM provider asked me to run it .  It has been helpful.  thanks for the work and your time answering my questions

Sorry for the delay addressing this... slipped under my radar.
You are correct that geekbench is a proprietary, closed-source product. The YABS project has several disclaimers that everything included here is "run at your own risk". I've done my best to make everything as transparent as possible by open sourcing the script, showing the compilation steps for the fio/iperf binaries, allowing the user to both to defer to locally installed version or to skip certain tests entirely, not requiring root/privileged access for any of the tests, etc. -- all in an effort to put all the cards on the table while keeping security in mind. Ultimately, it's up to the end user if they feel comfortable enough to run this code.
There are a few open source system benchmark projects in the wild, sysbench comes to mind in particular. I used geekbench because it's widely used and accepted in the hosting communities to evaluate CPU performance and provides a quick and easy way to compare scores and results across different system configurations and CPUs. I may take a stab at adding an option for a tool such as sysbench to be used in place of geekbench, but for now it'll remain as is.
Anyways I appreciate you reaching out and raising your concerns. Feel free to ask any additional questions you had and I'll do my best to answer them. Thanks for using YABS! Cheers!
-Mason

So is this safe to run ?? I dont know
https://lore.kernel.org/lkml/20191208171918.GC19716@avx2/
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/fs/exec.c?id=47a2ebb7f5053387f5753b524f4920b9b829f922
It really is over my head.

authors: jim-perkins masonr

repo: masonr/yet-another-bench-script

license: WTFPL


text:
🛑 RESTREAM-IR-11-ZirSakht-2 is down

In ce70014, RESTREAM-IR-11-ZirSakht-2 ($IR_11) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RESTREAM-IR-11-ZirSakht-2 is back up in 7bb8dd7.


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

In 2700bc4, 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 5bdf209.


text:
🛑 RESTREAM-IR-14-Afranet-4 is down

In c484a20, RESTREAM-IR-14-Afranet-4 ($IR_14) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RESTREAM-IR-14-Afranet-4 is back up in b955bac.


text:
🛑 Iran 11 - ParsOnline 4 is down

In fca20ed, Iran 11 - ParsOnline 4 ($IR_11) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Iran 11 - ParsOnline 4 is back up in 7ad0b81.


text:
Update pom.xml

Update pom-scijava from 33.2.0 to 37.0.0

@tinevez may I ask you to review this?

Done via 5c98b7e7295f9be0ced703f32ea05f38333499f7

authors: stefanhahmann tinevez

repo: mastodon-sc/mastodon-ellipsoid-fitting


text:
ADD googlescholar command

I added Google Scholar info to basic info, it may help researchers present themselves. I also add an example to resume.tex.
In result, it looked like this below:

This is a good idea! But I would prefer a general implementation where each user can choose an icon for a new item themselves.
The current implementation, which only adds a Google Scholar icon, is too specific. For now, let's keep this open, and you can create a new pull request for a more general version. Alternatively, I might add it in the next release if I have time.
If it turns out that no one creates a general implementation, we can reconsider your approach :)


text:
Using stop animation for navigation controller

I've used this control on my app, but i got a strange situation. When user tap the cell, the app access a web service and then, navigate to another view controller (push). When user tap on back button, sometimes, instead of go back to previous viewcontroller animated, the screen blinks and go back.
So, i removed the MBProgressHUD and this nos occurs again.
What i'm doing wrong?

That is a bit too broad to identify any sort of problem with MBProgressHUD. You'll have to provide code / a sample project too see what's going on. Try adding it to a different view or view.window instead.

Can you see the project sample that i did? Can you run?
https://github.com/thiagovargas/sampleProgress
Thanks

Closing this old issues. If this is still a problem by any chance you might want to take a look at the latest version and open a new issue.

authors: matej thiagovargas

repo: matej/MBProgressHUD


text:
Button retains mdc-ripple-upgraded--background-focused style even though it's not focused

I have three buttons that I'm using as a search results view type button bank (grid view, list view, map view).
When a particular view type is active, the corresponding Button is marked as disabled so the user can't reselect it (it's already been applied).
Expected behaviour
When a user clicks an option, the button relating to that option should be highlighted, other buttons should lose their highlight.
Actual behaviour
Initial load with list view active:

I think that disabled is the wrong thing. What I really want is a a button group where the buttons work as a radio buttons (eg: https://getbootstrap.com/docs/4.1/components/buttons/#checkbox-and-radio-buttons)
So my first problem with this is that the colours are wrong. The selected one should be highlighted, and the others should be secondary in this case.
It doesn't feel like there's a paradigm for that at the moment...?
After first click:

The selected button retains its focus style, even if I attribute focus to a different element on the screen.
After second click:

The first click-button still retains its focused style.
Code
        <div className="search-tools__format">
          <Button icon={<MaterialIcon icon="map" />} disabled={format === "map"} onClick={e => {changeViewFormat("map");}} />
          <Button icon={<MaterialIcon icon="view_list" />} disabled={format === "list"} onClick={e => {changeViewFormat("list");}} />
          <Button icon={<MaterialIcon icon="view_module" />} disabled={format === "grid"} onClick={e => {changeViewFormat("grid");}} />
        </div>

Could the state update onClick be interrupting the ripple somehow?

Can you check element's focus?
As you know, element's focus is removed when click other area.
Or if you share stackblitz or codepen, that is very helpful :)

Workaround is to override the style and set the --background-focused version to have no background colour. The ripple still seems to work ok.

Can you check element's focus?
As you know, element's focus is removed when click other area.
Or if you share stackblitz or codepen, that is very helpful :)

I'm literally clicking on other elements on the screen, highlighting text, causing state changes that means a neighbouring button get re-rendered, but it still retains "focus".
I've never used stackblitz before. I'll try and get a reproduceable setup going.

I managed to get this far: https://stackblitz.com/edit/react-u9rd1h
But I can't work out how to import the @material scss into the styles.scss without it generating errors. :( Do you know how to do this?

Same issue here.

@ndtreviv @poying
Thank you both :)
Now I'm debugging this.

@TroyTae This change can solve the issue, but I am not sure whether it will cause other issues or not. I hope this is helpful for debugging.

@poying
Thank you for showing your code :)

TBD
This issue is fired when element's disabled is being true after click.
After click event, element has mdc-ripple-upgraded--background-focused class.
But blur event isn't fired at disabled element, so this focus class is keep alive.
There is need to think about how to solve this problem.

@ndtreviv it looks like your stackblitz is working as expected. How are you reproducing the original issue?

@moog16 I can't get the stackblitz to import the styles properly. It just errors whenever I import the @material based scss files.
You can see them commented out in the style.scss file - if you can help me figure out how to get that bit working on the stackblitz then I'll get you a better reproduction of the problem.
It looks like @TroyTae has worked out what the problem could be:

TBD
This issue is fired when element's disabled is being true after click.
After click, element has mdc-ripple-upgraded--background-focused class.
But blur event isn't fired at disabled element, so this focus class is keep alive.
There is need to think about how to solve this problem.

It sounds plausible. When a user clicks a button it becomes disabled on re-render so that they can't re-click the same button.

I made a PR to reproduce this issue.
That PR don't contain solving code!
I'm still think how to solve it...

@ndtreviv it looks like @import '~@material/react-button/index.scss'; works but material-icon's sass is not. I can confirm that the sass file does exist.

@TroyTae I'll look at the PR

@TroyTae thanks for creating that PR...I tried reproing it in MDC Web to be sure, and its definitely just a React issue.

fixed by #943

@moog16 This seems to unfortunately still be an issue ->
https://codesandbox.io/s/material-react-ripple-bug-muly9

authors: TroyTae adamsoffer moog16 ndtreviv poying


text:
Add "type": "module" to package.json

This is needed to load modules in Node for SSR.
Fixes #3732

any update on this?

Fixed now

authors: asyncLiz fetishcoder justinfagnani

repo: material-components/material-web


text:
Question about ueq in the smc.m

I repeated the implementation in function [u, s, ueq, usw] = smc(e,edot,xddot_d,f,b,lambda,kappa,eta, switch_fun) according to formulas (3.61) and (3.62). In my understanding, ueq is the first two items of the above fractions (3.61 and 3.62), and usw is the last two items of the fractions. But in the process of manual calculation, it was found that lambda.*edot in ueq did not appear in the fractions (3.61 and 3.62). Please help me.

In the code, I split the input into "equivalent" and "switch" parts.

u_eq is the ideal input to drive the system on the sliding modes, i.e. s = s_dot = 0

We have that:
s_dot = xddot_d - xddot + lambda*(xdot_d - xdot)
0 = xddot_d - fx - bx*ueq + lambda*(xdot_d - xdot)
ueq = (lambda*(xdot_d - xdot) + xddot_d - fx) / bx

u_sw is the input to drive the system towards the sliding mode, shaping s_dot when s != 0

In the code, I split the input into "equivalent" and "switch" parts.

u_eq is the ideal input to drive the system on the sliding modes, i.e. s = s_dot = 0

We have that:
s_dot = xddot_d - xddot + lambda*(xdot_d - xdot)
0 = xddot_d - fx - bx*ueq + lambda*(xdot_d - xdot)
ueq = (lambda*(xdot_d - xdot) + xddot_d - fx) / bx

u_sw is the input to drive the system towards the sliding mode, shaping s_dot when s != 0

In the paper I recommend some books:

QIAN, D.; YI, J. Hierarchical Sliding Mode Control for Under-actuated Cranes: Design,
Analysis and Simulation. Berlin Heidelberg: Springer-Verlag, 2015.
https://doi.org/10.1007/978-3-662-48417-3.

SREENATH, K.; LEE, T.; KUMAR, V. Geometric control and differential flatness of a
quadrotor UAV with a cable-suspended load. 52nd IEEE Conference on Decision and Control.
Anais... In: 52ND IEEE CONFERENCE ON DECISION AND CONTROL. Florence, Italy: IEEE,
dez. 2013. https://doi.org/10.1109/CDC.2013.6760219.

UTKIN, V.; GULDNER, J.; SHI, J. Sliding Mode Control in Electro-Mechanical Systems. [s.l.]
CRC Press, 2009. https://doi.org/10.1201/9781420065619.

In the paper I recommend some books:

QIAN, D.; YI, J. Hierarchical Sliding Mode Control for Under-actuated Cranes: Design,
Analysis and Simulation. Berlin Heidelberg: Springer-Verlag, 2015.
https://doi.org/10.1007/978-3-662-48417-3.

SREENATH, K.; LEE, T.; KUMAR, V. Geometric control and differential flatness of a
quadrotor UAV with a cable-suspended load. 52nd IEEE Conference on Decision and Control.
Anais... In: 52ND IEEE CONFERENCE ON DECISION AND CONTROL. Florence, Italy: IEEE,
dez. 2013. https://doi.org/10.1109/CDC.2013.6760219.

UTKIN, V.; GULDNER, J.; SHI, J. Sliding Mode Control in Electro-Mechanical Systems. [s.l.]
CRC Press, 2009. https://doi.org/10.1201/9781420065619.

@lienguang0624, how is going your study? I'm sorry I took more time to answer you last time. I think I've might have broken your pace. I just want to let you know that I'm still open to supporting you in understanding this work if you desire. Best regards.

It's very kind of you. You've done me a lot of help. Due to the traditional Chinese festivals, my work has been suspended for a period of time. I will continue the unfinished work when life returns to normal. I am looking forward to our friendly communication.Wish you success in your work and good health.
获取 Outlook for iOShttps://aka.ms/o0ukef

发件人: Mateus Amarante notifications@github.com
发送时间: Wednesday, February 24, 2021 12:31:36 AM
收件人: mateus-amarante/master_thesis master_thesis@noreply.github.com
抄送: lienguang0624 lienguang0624@outlook.com; Mention mention@noreply.github.com
主题: Re: [mateus-amarante/master_thesis] Question about ueq in the smc.m (#5)
@lienguang0624https://github.com/lienguang0624, how is going your study? I'm sorry I took more time to answer you last time. I think I've might have broken your pace. I just want to let you know that I'm still open to supporting you in understanding this work if you desire. Best regards.
―
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/mateus-amarante/master_thesis/issues/5#issuecomment-784330543, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHEQTBK73RZHKOUII7HIJITTAPJ6RANCNFSM4WFYFPVA.


text:
sistema de vitoria e derrota

Ganhar e perder é essencial né kappa kappa

A derrota é definida pelos zeramento dos pontos de vida da estrela do oponente

Cada jogador tem 30 pontos de vida.
Perde vida igual a diferença de dano que seus elementos sofrerem quando derrotados em um combate enquanto um efeito não interferir.
Perde vida quando fundir elementos maiores que 25 em numero atômico.

repo: matheus-s-arruda/Fussionics


text:
Bython modifies braces within strings.

Bython v0.8  exhibits a problem in which it modifies braces within single and double quotation strings.
Code to reproduce:
test.by:
print('Hello, world! I have braces {} here.');
print("Hello, world! I have braces {} here, too.");
The output produced is:
Hello, world! I have braces:here.
Hello, world! I have braces:here, too.
The expected output is, of course:
Hello, world! I have braces {} here.
Hello, world! I have braces {} here, too.
Thanks!

From the issue I can tell no good grammar tree is build for braces analysis, it's no good to rely on the project.

+1

Old issue but I wrote this and maybe it will work better for you, if you still want it
Bython

+1

authors: MZH-Amr kkevlar lqforgithub stormfish-sci xXCrash2BomberXx

repo: mathialo/bython


text:
Don't remove parens around function call declarations

Fixes https://github.com/mathiasbynens/luamin/issues/23

Could you add some tests?

Ok I added a test, can't think of anything else.

The other test case mentioned in #15 is print(({})[1]).

Ok well I only signed up to fix the lambda issue.

Right, sorry :)

Thanks!

authors: EdanPyx mathiasbynens

repo: mathiasbynens/luamin


text:
Change PDF reader

Is it possible, to specify the pdf reader to open generated pdfs with? Or is it always the default pdf reader? Thanks. I love this plugin!

So, currently all that happens is executes the pdf output file, which should run it with the system default viewer.
It would be possible to make an optional configuration option, but I could quickly see that turning into a multi-platform headache, with OSX in particular (the amount of work required to run a .app from the command line was.... not pretty, last I checked).
If anyone's got an idea for how a feature like this could be implemented in a cleaner way, I'd love to hear

authors: caffeinatedangel devmount

repo: mathiasfrohlich/vscode-LaTeXCompile


text:
Types of property 'middlewares' are incompatible.

Bug report

[Yes] I have checked other issues to make sure this is not a duplicate.

Describe the bug
When using the most current versions of the graphql-yoga and graphl-shield libraries, trying to add shield({ ... }) to the middlewares option of the server creates this error:

(it keeps going for quite a while, just didn't want to copy and paste five dozen lines)
To Reproduce
Copy and paste the Graphql Yoga example file. No changes are necessary for the error to pop up.
Additional context
graphql-yoga version: 1.16.2
graphql-shield version: 3.2.2

same issue, looks like "shield" type has changed from IMiddleware to IMiddlewareGenerator.
specifically it went from
export declare function shield(ruleTree?: IRules, _options?: IOptions): IMiddleware;
to
export declare function shield<TSource = any, TContext = any, TArgs = any>(ruleTree: IRules, options?: IOptionsConstructor): IMiddlewareGenerator<TSource, TContext, TArgs>;

Hey @artemzakharov @JazminGonzalez-Rivero 👋,
I tried to reproduce the error but had no luck. I used typescript-advanced boilerplate and then installed graphql-shield as a dependency. Here are my commands;
graphql create sample
cd sample
yarn add graphql-shield

and code;
import {GraphQLServer} from 'graphql-yoga'
import {shield, allow} from 'graphql-shield'
import {Prisma} from './generated/prisma'
import resolvers from './resolvers'

const server = new GraphQLServer({
  typeDefs: './src/schema.graphql',
  resolvers,
  middlewares: [
    shield({
      Query: allow,
    }),
  ],
  context: req => ({
    ...req,
    db: new Prisma({
      endpoint: process.env.PRISMA_ENDPOINT, // the endpoint of the Prisma API (value set in `.env`)
      debug: true, // log all GraphQL queries & mutations sent to the Prisma API
      // secret: process.env.PRISMA_SECRET, // only needed if specified in `database/prisma.yml` (value set in `.env`)
    }),
  }),
})
server.start(() => console.log(`Server is running on http://localhost:4000`))

Super barebones. Since I wasn't able to reproduce the bug, I suggest you try removing node_moudles and reinstall everything. Did you by chance add graphql-middleware as a project dependency? I know this has caused compatibility errors as graphql-yoga already ships with graphql-middleware.
Let me add a quick note about the versioning; I assume you are both familiar with semantic-versioning; majors indicate backward incompatibility (X.x.x), minors indicate new features (x.X.x) and fixes are just fixes (x.x.X). So, the latest version of graphql-shield shipped with incompatible backward types - IMiddleware was changed to IMiddlewareGenerator, that's why there's also a major version bump to indicate this particular change.
I hope this clears things out a bit. Let me know if you're still experiencing the problem. 🙂

@maticzav yeah sorry was trying to explain the change....
but continuing forward, I have a setup that passes the IMiddlewareGenerator directly to applyMiddleware() and am now encountering this error Error: Type generator exists in middleware but is missing in Schema. it seems to me as though the code in graphql-middleware is not "generating" the generator properly.... is there a specific graphql-middleware version I should be using along with this?

@maticzav I did have graphql-middleware installed, but removing it didn't seem to help. Are you aware of any other libraries that might cause a conflict?
On a side note, do you happen to have a guide for using shield with Apollo Server 2? I've been considering switching over from Yoga, but I haven't found any means to implement your library with them yet.

@JazminGonzalez-Rivero @artemzakharov @jonathanheilmann thanks for the feedback!
Let's first fix the problem this issue is named after. I am unable to reproduce the bug you are all facing. Since the best reproduction explanation, so far, has been to try the provided combinations of package versions, which I also tested, I am unable to conclude anything. It would be super helpful if one of you could tinker together a small repository portraying the bug. This way I can take a look into the problem and fix it if we find its nucleus in graphql-shield or graphql-middleware.

Regarding the Apollo Server issue, yes, there's a way of doing it. I don't have and don't intend to make an article or anything similar explaining the procedure as I hope we will gain middleware support in a matter of days. Nevertheless, I believe I should present the solution; you can use graphql-middleware and accompany it with makeExecutableSchema function provided by graphql-tools.
Since Apollo Server accepts schema as a parameter, you can inject it with no problem.
const schema = makeExecutableSchema({ typeDefs, resolvers })

const schemaWithMiddleware = applyMiddleware(
  schema,
  shield()
)

const server = new ApolloServer({
  mocks: false,
  schema: schemaWithMiddleware,,
});

i hope this is somewhat helpful 🙂

@morgothulhu could you pull together a reproduction repo?

Same here. I'm just yarn upgrade --latest and now getting:
Error: Cannot find module 'graphql-middleware'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/mnt/share/Git/aerobic-backend/node_modules/graphql-shield/src/shield.ts:1:1)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)

After yarn add graphql-middleware i'm  getting:
Error: Type generator exists in middleware but is missing in Schema.
    at new MiddlewareError (/mnt/share/Git/aerobic-backend/node_modules/graphql-yoga/node_modules/graphql-middleware/dist/validation.js:46:23)
    at /mnt/share/Git/aerobic-backend/node_modules/graphql-yoga/node_modules/graphql-middleware/src/validation.ts:17:13
    at Array.forEach (<anonymous>)
    at Object.validateMiddleware (/mnt/share/Git/aerobic-backend/node_modules/graphql-yoga/node_modules/graphql-middleware/src/validation.ts:15:27)
    at addMiddlewareToSchema (/mnt/share/Git/aerobic-backend/node_modules/graphql-yoga/node_modules/graphql-middleware/src/middleware.ts:33:27)
    at normalisedMiddlewares.reduceRight.schema (/mnt/share/Git/aerobic-backend/node_modules/graphql-yoga/node_modules/graphql-middleware/src/middleware.ts:86:13)
    at Array.reduceRight (<anonymous>)
    at applyMiddlewareWithOptions (/mnt/share/Git/aerobic-backend/node_modules/graphql-yoga/node_modules/graphql-middleware/src/middleware.ts:78:77)
    at applyMiddleware (/mnt/share/Git/aerobic-backend/node_modules/graphql-yoga/node_modules/graphql-middleware/src/middleware.ts:129:36)
    at new GraphQLServer (/mnt/share/Git/aerobic-backend/node_modules/graphql-yoga/src/index.ts:137:13)

and
Error: Cannot use GraphQLNonNull "[Competition]!" from another module or realm.

Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.

https://yarnpkg.com/en/docs/selective-version-resolutions

Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.
    at instanceOf (/mnt/share/Git/aerobic-backend/node_modules/graphql/jsutils/instanceOf.js:37:13)
    at isNonNullType (/mnt/share/Git/aerobic-backend/node_modules/graphql/type/definition.js:157:34)
    at PrismaTypescriptGenerator.TypescriptGenerator.renderFieldType (/mnt/share/Git/aerobic-backend/node_modules/graphql-binding/src/codegen/TypescriptGenerator.ts:309:9)
    at /mnt/share/Git/aerobic-backend/node_modules/graphql-binding/src/codegen/TypescriptGenerator.ts:255:48
    at Array.map (<anonymous>)
    at PrismaTypescriptGenerator.TypescriptGenerator.renderMainMethodFields (/mnt/share/Git/aerobic-backend/node_modules/graphql-binding/src/codegen/TypescriptGenerator.ts:252:8)
    at PrismaTypescriptGenerator.TypescriptGenerator.renderQueries (/mnt/share/Git/aerobic-backend/node_modules/graphql-binding/src/codegen/TypescriptGenerator.ts:190:17)
    at PrismaTypescriptGenerator.render (/mnt/share/Git/aerobic-backend/node_modules/prisma-binding/src/PrismaTypescriptGenerator.ts:13:31)
    at /mnt/share/Git/aerobic-backend/node_modules/prisma-binding/src/bin.ts:69:34
    at step (/mnt/share/Git/aerobic-backend/node_modules/prisma-binding/dist/bin.js:33:23)

Running graphql codegen ✖

index.ts
import { formatError } from 'apollo-errors';
import { GraphQLServer } from 'graphql-yoga';
import { forwardMiddleware } from './forwards';
import { Prisma } from './generated/prisma';
import { permissions } from './permissions';
import {fragmentReplacements, resolvers} from './resolvers';

import { getUser } from './utils';

const server = new GraphQLServer({
  typeDefs: './src/schema.graphql',
  resolvers,
  resolverValidationOptions: {
    requireResolversForResolveType: false,
  },
  middlewares: [forwardMiddleware, permissions],
  context: ({
    request,
    response,
    fragmentReplacements: middlewareFragmentReplacements,
  }) => ({
    request,
    response,
    user: getUser(request),
    db: new Prisma({
      fragmentReplacements: [
        ...fragmentReplacements,
        ...middlewareFragmentReplacements,
      ],
      // typeDefs: 'src/generated/prisma.graphql', // the auto-generated GraphQL schema of the Prisma API
      endpoint: process.env.PRISMA_ENDPOINT,
      secret: process.env.PRISMA_SECRET, // only needed if specified in `database/prisma.yml`
      debug: false,
      // debug: process.env.NODE_ENV !== 'production'
    }),
  }),
});

Hey @kevrat 👋,
Thank you for posting a reproduction code. You're probably experiencing the issues because your grpahql-yoga version is still on 1.14.10 which doesn't yet pack the new graphql-middleware. I advise you try updating yoga to its latest version (1.16.2) and see if the error is still present.
I hope this solves your problem 🙂

OK, huge thanks to everyone for posting the reproduction code and contributing to the above discussion. I think I've finally found a pattern in the errors we have seen, here's my examination;
@artemzakharov I am sorry, but I am still unable to reproduce your bug. The steps I take are as follows;
graphql create project
yarn add graphql-shield

This results in graphql-yoga version 1.16.2 and graphql-shield version 3.2.4.
No error is shown.

Error: Type generator exists in middleware but is missing in Schema.

@JazminGonzalez-Rivero

This error occurs due to duplicated graphql-middleware package. graphql-yoga is already packed with the latest graphql-middleware version working with it. Therefore, you shouldn't install a separate one. You can resolve this by removing direct graphql-middleware dependency.

Error: Type generator exists in middleware but is missing in Schema.

@kevrat

This error occurs due to an outdated version of graphql-middleware. To fix it you should update graphql-middleware, in case you are not using Yoga; or graphql-yoga in case you do.
I'll close this issue as it seems we've covered everything hitherto discussed. If anyone finds any other bug related to this topic, don't hesitate to open another question or a reply to this thread. 🙂

As you say i updated graphql-yoga and now i'm getting:
Error: Cannot find module 'graphql-middleware'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/mnt/share/Git/aerobic-backend/node_modules/graphql-shield/src/shield.ts:1:1)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
[nodemon] app crashed - waiting for file changes before starting...

my updated package.json
"dependencies": {
  "apollo-errors": "^1.9.0",
  "bcryptjs": "^2.4.3",
  "graphql": "^14.0.2",
  "graphql-cli": "^2.16.7",
  "graphql-middleware-forward-binding": "^1.3.2",
  "graphql-shield": "^3.2.4",
  "graphql-yoga": "^1.16.2",
  "jsonwebtoken": "^8.3.0",
  "nodemailer": "^4.6.7",
  "npm-run-all": "^4.1.3",
  "prisma": "^1.17.1",
  "prisma-binding": "^2.1.6"
},

if i install it i get
Error: Type generator exists in middleware but is missing in Schema.

If i remove graphql-shield from middlewares all is working.
Looks like some packages is conflict. But which.
Removing 'graphql-middleware-forward-binding'  from middlewares it is don't cause any effect

I’m receiving the same error:
Error: Type generator exists in middleware but is missing in Schema.

  "dependencies": {
    // ...
    "graphql-middleware": "^1.7.6",
    "graphql-shield": "^3.2.5",
    "graphql-yoga": "^1.13.1",
    "prisma-binding": "^2.1.6",
  },
  "devDependencies": {
    "graphql": "^0.13.2",
    // ...
  }

Hey @heymartinadams, your graphql-yoga version is outdated.

@kevrat perfect! I think we should add this to the README. graphql-middleware and graphql-yoga still haven't been updated to the latest GraphQL which might cause the issue that you are describing.
I am so glad it's working now 🎉

Mmh, @maticzav, upgraded graphql-yoga to 1.16.2, but that error still appears. Could it perhaps be because I’ve moved the rules to another folder? (i.e. does the middleware still reach the rule()(async (parent, { email }, ctx, info) => { ...}) function?)

Hey @heymartinadams 👋,
No, having rules in a separate folder is completely fine. Peeking at your package.json again, however, I spotted you have a separate instance of graphql-middleware alongside graphql-yoga. Try removing that as well.

That totally did the trick, @maticzav 💛 Thanks a bunches!! Can’t wait to try and test it out ✨

Hi, I'm having the same issue. Here's my package.json dependencies.
  "dependencies": {
    "bcryptjs": "2.4.3",
    "graphql-shield": "^5.0.1",
    "graphql-yoga": "1.15.0",
    "jsonwebtoken": "8.3.0",
    "prisma-binding": "2.1.1"
  },
  "devDependencies": {
    "@types/bcryptjs": "2.4.1",
    "@types/jest": "^23.3.1",
    "dotenv-cli": "1.4.0",
    "graphql-cli": "2.16.5",
    "jest": "^23.4.2",
    "nodemon": "1.18.3",
    "npm-run-all": "4.1.3",
    "rimraf": "2.6.2",
    "ts-jest": "^23.0.1",
    "ts-node": "6.2.0",
    "typescript": "2.9.2"
  }

authors: JazminGonzalez-Rivero artemzakharov faurehu heymartinadams kevrat maticzav

repo: maticzav/graphql-shield


text:
Fix typo in example

cusomers: [Customer!]! should be customers: [Customer!]!
Thanks for the great project :)

:tada: This PR is included in version 6.0.4 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

authors: maticzav ruairidhwm


text:
🛑 Hacker News is down

In 7854ec1, Hacker News (https://news.ycombinator.com) was down:

HTTP code: 502
Response time: 1013 ms

Resolved: Hacker News is back up in b17ae46.

repo: mativarela/monitoriib


text:
CPU usage

I observe a possible regression, CPU usage is limiting performance on current master, as compared to a few versions ago. (also with MPL 2 vs 1.5) Perhaps throttling of refresh rate when dragging would be a good idea?
EDIT: also tested on MPL 1.5.3, no difference in performance.

Couldn't reproduce on current master, thanks for pinging me.

repo: matplotlib/viscm


text:
Faster room joins: Add edge case tests for device list tracking

Test device list tracking for users incorrectly thought to be in a
partial state room once the room transitions to full state.

Built on top of #476.

Expected to fail until the last bullet in https://github.com/matrix-org/synapse/issues/12993#issuecomment-1253785129 is done.

@squahtx Does this just need Ci kicked (or maybe merge main while you're at it)?

@squahtx Does this just need Ci kicked (or maybe merge main while you're at it)?

It does, and Rich has already done so.

authors: clokep squahtx

repo: matrix-org/complement


text:
Convert verification request and transaction to protocols

As part of an ongoing work to implement Rust-based device verification I need to prepare the ground by converting existing MXKeyVerificationRequest, MXKeyVerificationTransaction and MXSASTransaction classes into protocols, so that future PRs can implement these protocols with MatrixCryptoSDK objects. This is not a full list of classes that need to be hidden behind an interface, only those directly needed for SAS flow.
I have previously taken a subclassing approach to solve a similar problem, but this was because refactoring existing code for MXCrypto class was too risky without extensive test coverage and it was best to leave this untouched. Swapping request and transaction objects for protocols should be safer, and now validated by some newly enabled integration tests. Subclassing existing implementation on the other hand leaves more technical debt behind and does not safeguard against some methods not being overriden.
Regarding naming, I considered both alternatives where protocol adopts existing name (e.g. MXKeyVerificationRequest) and subclasses extend this (e.g. Default, V2 ...), as well as naming the protocol MXKeyVerificationRequestProtocol and leaving the implementation names intact. Reviewing the SDK I did not find many examples of adding Protocol to protocol definitions so I opted for the first naming variant to preserve consistency. This choice also means that only objective-c files need to perform renames, whereas swift files remain unchanged.

Codecov Report

Merging #1528 (d75c881) into develop (b83b814) will increase coverage by 0.00%.
The diff coverage is 0.00%.

@@           Coverage Diff            @@
##           develop    #1528   +/-   ##
========================================
  Coverage    12.04%   12.04%
========================================
  Files          512      512
  Lines        83822    83822
  Branches     35786    35786
========================================
+ Hits         10097    10099    +2
+ Misses       73357    73355    -2
  Partials       368      368

Impacted Files
Coverage Δ

...SDK/Crypto/Verification/MXKeyVerificationManager.m
0.00% <0.00%> (ø)

...o/Verification/Requests/MXKeyVerificationRequest.m
0.00% <ø> (ø)

...ification/Status/MXKeyVerificationStatusResolver.m
0.00% <0.00%> (ø)

...cation/Transactions/MXKeyVerificationTransaction.m
0.00% <0.00%> (ø)

...o/Verification/Transactions/SAS/MXSASTransaction.m
0.00% <0.00%> (ø)

MatrixSDKTests/MXCrossSigningVerificationTests.m
0.00% <0.00%> (ø)

MatrixSDKTests/MXCryptoKeyVerificationTests.m
0.00% <0.00%> (ø)

MatrixSDKTests/MXHTTPAdditionalHeadersUnitTests.m
76.08% <0.00%> (+4.34%)
: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 b83b814...d75c881. Read the comment docs.

authors: Anderas codecov-commenter

repo: matrix-org/matrix-ios-sdk


text:
Content-Length header in GET method

In matrix_client/api.py line 521:
        if headers["Content-Type"] == "application/json":
            content = json.dumps(content)

When using GET APIs such as sync(), content=None is passed to _send, but then content becomes a string 'null', so there will be a 'Content-Length: 4' in the request header. In some HTTP server such as lighttpd, it will return a 400 error when there is a Content-Length header in GET method.

fixed

repo: matrix-org/matrix-python-sdk


text:
[E2E] Sign and verify JSON objects

This is my first PR which really touches on crypto stuff.
Signed-off-by: Valentin Deniaud <valentin.deniaud@inpt.fr>

Would it be a good idea to add the tag [E2E] in commit titles?

@Zil0 So long as your commits are well named, and end up in the right branch you don't need to tag them with E2E

Could you fix up the git history here please? Got mixed up keeping things straight between all the branches (my bad, sorry).
CI failure appears to be unrelated.

done :)

Still showing merge conflicts. Give it a rebase on master?

Now that I think about it, canonicaljson should be an optional dependency along with olm. Hard to know how to go about this when we don't know how olm will be packaged to work with the SDK.

What happened to the commit that setup Travis to download olm from Debian?

I made a failed attempt at this, and it was so frustrating to push commands via .travis.yml - wait 2 minutes for it to throw an error - repeat the process, that I let it go. Do you want me to look into this again?

wrt, Travis, we'll need to have tests passing before I'm comfortable merging this to master. Of course, if we can only get stable olm on Travis and this needs newest master, that's a different story.

Once a decision has been made on the python olm bindings, and the tests/CI are fixed up to be runnable with/without olm installed, this is good to be merged.

Updated with the new bindings, and fixed travis.
@non-Jedi if this looks good to you, I'll squash so that you can merge!

Other than quibble on olm version, LGTM! Change to 2.2.2, squash, and then we'll merge.
Thanks for all the taking the time to get this one right. I know the back and forth has been annoying at times. I think from process POV, it should get easier from here on out.

Merged! Not sure why GH didn't pick it up. Thanks again for all the work here.

authors: Half-Shot Zil0 non-Jedi