text:
Don't copy receiver for Lock and Unlock

Make the receiver of Lock and Unlock methods a pointer to mutex.
Otherwise, every time a method is called, a mutex copy is made.

Not mergable. Is it easy for you to rebase or should I update your branch?

Rebased. PTAL.

Thanks!

repo: marcacohen/gcslock


text:
How to link RNA families to pdb ids (RNA family label)

Hello,
I am trying to match the pdb_chain_id to RNA family labels. Is there a dictionary/json with the mapping?
I wasn't able to find it browsing through the repo.
Thank you in advance
Olivia

Hi @OliviaViessmann,
There is no dictionary/JSON that directly maps the families to the chains. See #5 for a discussion on the topic.
We have the output of the Infernal search 2024-04-26-full-cmscan.tbl which contains this information. The Tabular API can be used to read these files a lot like a dictionary. See this example.
If you really wanted this information in a Python dictionary, it is very easy to do this with the Tabular API. You could do something like:
from rna3db.tabular import read_tbls_from_dir
from collections import defaultdict
tbl = read_tbls_from_dir('data/') #NOTE: this is the *directory* containing the .tbl file(s)
family_dict = defaultdict(list)
for hit in tbl:
    family_dict[hit.query_name].append(hit._asdict())

This will create a dictionary that maps the name of the chains to a list of the hits for that chain. Each hit is a dictionary that contains the usual keys (target_name, target_accession, etc.).

source: gharchive/issue

authors: OliviaViessmann marcellszi

license: MIT

license_type: permissive

license_source: github-api


text:
README-CN does not contain a section for building the firmware anymore

I was trying to reflect the last changes in readme.md by copying the "options" section of the "build" command to the "lfs-image" command and detected the "build" section is missing entirely.

Thanks of testing. I'm currently travelling and can devote only very little time every night to NodeMCU. I also noticed this problem but I thought to better merge that PR and fix up later. As I don't speak Chinese we have to rely on online translation services or @lou-lan.

authors: HHHartmann marcelstoer

repo: marcelstoer/docker-nodemcu-build

license: mit

license_source: bigquery


text:
Remove dsig:Object tag

Hello! Thank you for your project and your effort.
My question is how Can I remove the dsig:Object from the result XML?
<dsig:Object Id="NjU0Mjk0MzE3">ABC</dsig:Object>

Thank you.

Hello!!  I have developed this in the PHP Laravel framework. While retrieving the private key, I am facing an issue and it says "Unable to load the private key".
What to do to load the private key file.?

authors: carlosanpardo gokulayokesh

repo: marcelxyz/php-XmlDigitalSignature


text:
🛑 Portainer is down

In 8d42591, Portainer ($PORTAINER) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Portainer is back up in a4877a0.


text:
🛑 Grafana is down

In 215d541, Grafana (https://grafana.bojko.eu) was down:

HTTP code: 523
Response time: 302 ms

Resolved: Grafana is back up in 0d6d5a4 after 3 hours, 3 minutes.

repo: marcinbojko/upptime


text:
Permissions system

We need a powerful permissions system.
We want to use a battle-tested package. It should be built upon Laravel's authorization functionality and should provide an easy way to create and assign roles.
Some candidates to use are:
laravel-permission
bouncer
lock-laravel
You are free to suggest another one.

Hi, I think that laravel-permission works well.
Can I do this issue?

Sorry, this repository is deprecated. Thanks.
El sáb., 5 oct. 2019 0:13, Claudio La Barbera notifications@github.com
escribió:

Hi, I think that laravel-permission
https://github.com/spatie/laravel-permission works well.
Can I do this issue?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/marcmascarell/artificer/issues/10?email_source=notifications&email_token=AAE4Z64UYRBASDCD37CMITTQM65YPA5CNFSM4CSHFRQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEANAP2A#issuecomment-538576872,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAE4Z6ZQQRNAE43AUFQFFL3QM65YPANCNFSM4CSHFRQA
.

authors: marcmascarell thebatclaudio

repo: marcmascarell/artificer


text:
🛑 Web Patient is down

In a5a486b, Web Patient (https://www.sanna.pe/citas/) was down:

HTTP code: 403
Response time: 7 ms

Resolved: Web Patient is back up in e0e6733 after 5 minutes.

repo: marcoadasilvaa/health


text:
🛑 Web Patient is down

In e034c66, Web Patient (https://www.sanna.pe/citas/) was down:

HTTP code: 403
Response time: 15 ms

Resolved: Web Patient is back up in aeeccfb after 9 days, 23 hours, 54 minutes.


text:
🛑 Video Call is down

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

HTTP code: 0
Response time: 0 ms

Resolved: Video Call is back up in 69da025.


text:
resetcam does not appear to work on clear() and add()

I'm trying to set up a simple to use animation engine that will alternate between an update() of my data and a draw() of my data.
Here's a small example of the problem:
import vedo
from vedo.shapes import Spheres

centers = [[0,0], [1,1]]
radii = [0.1, 0.1]

vedo.settings.allowInteraction = False
plotter = vedo.Plotter(size=(1600, 1600))

def update():
    global centers, radii
    radii[0] += 0.01 # Increase the first sphere's radius slightly

def draw():
    global centers, radii, plotter
    # Clear off all previous actors and add a new set
    plotter.clear()
    plotter.add(Spheres(centers, radii), resetcam=False)

def updateAndDraw(iren, event):
    update()
    draw()

plotter.interactor.AddObserver("TimerEvent", updateAndDraw)
plotter.interactor.CreateRepeatingTimer(100)
plotter.show().close()

Note that when the animation is run the view jumps all over the place instead of remaining with the same camera angle. Note that resetcam is set to false on plotter.add but each frame apparently has a randomly generated camera.

One issue seems to be that Spheres() needs 3D coords, not 2D...
Try this:
import vedo

centers = [[0,0,0], [1,1,1]]
radii = [0.1, 0.1]

plotter = vedo.Plotter(size=(1600, 1600))

def update():
    radii[0] += 0.01 # Increase the first sphere's radius slightly

def draw():
    # Clear off all previous actors and add a new set
    plotter.clear()
    ss = vedo.Spheres(centers, radii).lw(1)
    plotter.add([ss, vedo.Axes(ss)], resetcam=False)

def updateAndDraw(event):
    vedo.printc(event, italic=1, c='y')
    update()
    draw()

#plotter.interactor.AddObserver("TimerEvent", updateAndDraw)
#plotter.interactor.CreateRepeatingTimer(100)

plotter.addCallback("timer", updateAndDraw)
timerId = plotter.timerCallback("create", dt=100)

cam = dict(pos=(4, -8, 8),
           focalPoint=(0, 0, 0),
           viewup=(-0.258, 0.603, 0.754),
           distance=12)

plotter.show(camera=cam).close()

Wow. My bad, thanks. That does fix it :). I just hadn't realized since it was showing me spheres, just erratic ones.

authors: johncbowers marcomusy

repo: marcomusy/vedo


text:
Album art and song info not working on latest versions

Description
Album art and song info is not loading. This is with the latest version of spotify (spicefy installed) and latest version of monstercat. It was working three days ago.
Versions
latest version

Can you send me a screenshot of your Rainmeter log?

Can you send me a screenshot of your Rainmeter log?

I am having the same issue, here's my log: (the part that is cut off is more of the same WebNowPlaying errors)

I've been sitting for an hour and the cover and title doesn't show but the visualizer works I'm currently using Soundcloud

authors: Ramin05 SoDaBearJess marcopixel nexus-edm

repo: marcopixel/Monstercat-Visualizer


text:
Problem Installing ShinySky

When trying to install dependencies, there is a problem installing ShinySky.
Also, web-app is down.

installing source package 'shinysky' ...
** R
** inst
** byte-compile and prepare package for lazy loading
Error : (converted from warning) package 'shiny' was built under R version 3.5.3
ERROR: lazy loading failed for package 'shinysky'
removing 'C:/Users/lcheung1/Documents/R/R-3.5.2/library/shinysky'
In R CMD INSTALL
Error in i.p(...) :
(converted from warning) installation of package ‘C:/Users/lcheung1/AppData/Local/Temp/RtmporL0QN/file13e6e062211299/shinysky_0.1.2.tar.gz’ had non-zero exit status

Hi!
First of all thanks for using our app! According to your error file it seems that you need to upgrade shiny package. Try to reinstall from scratch all the dependencies of musica. Using a package manager such as conda could be a great option too.
Regarding the web app, it is going to be down during a short period. Sorry for the inconveniences.

I have tested shinysky version 0.1.2 and it worked perfectly with shiny version 1.3.2. I have used runGitHub("musica", "marcos-diazg") command to launch the app from RStudio.
Try this and let me know if ir works for you. Have a great day!

Will just wait for webapp to be up again. How long will it be expected to be down? thanks!

You have experienced a problem in our web server. We expect the app to be up in one or two weeks. Thanks!

Web app is up again! Thanks for your patience!

authors: marcos-diazg sidhomj

repo: marcos-diazg/musica


text:
Introduce query alias option.  Provides a possible fix for #29.

Putting up a solution for introducing a query alias.

Closing for the reason mentioned here:
https://github.com/marcusolsson/grafana-json-datasource/issues/29#issuecomment-762212980

source: gharchive/pull-request

authors: fpanwaskar marcusolsson

repo: marcusolsson/grafana-json-datasource


text:
Use channels and generics

As discussed in #4. Please review my changes. Let me know if you want this PR broken into multiple smaller ones, or if there's parts that you're not interested in merging at all. Will adapt this accordingly.

re-signed commits and force-pushed

Thanks for the feedback, and sorry for the delay. Do you want me to keep the changes as separate commits, or amend previous ones and force-push?

Also I'm thinking about maybe removing the whole generator thing. Users should just provide a slice. Really no need for supporting that extra bunch of code for something that'll probably cause extra effort even on user side of this lib. What do you think?

Hey, sorry, I was on holiday.
Regarding the force-push, no need, keep the history.
Regarding removing the generator concept, I agree with your reasoning: keep it simple for implementors.

No worries at all. MapperGenerator removed. Also updated NewWithMapperSlice examples.

@fholzer Nice one! Good to merge 👍

Any idea when you will have time to look into merging this?
Cheers, f

authors: fholzer marianogappa

repo: marianogappa/parseq


text:
minimize active cell movement during re-evaluation

Description
I'm working on a notebook that makes many plots using matplotlib (which works great btw! Thanks!). When I redfine a cell that causes many plots to be re-evaluated, I find that I have to just step back and wait for all the re-evaluation to finish before I can make any more changes to that or any other cells. This is because every time a new plot is rendered, the vertical position of cells within the browser changes.
Suggested solution
My features request is to minimize the extent to which the active cell (the one I'm typing in) visually moves during re-evaluation. I suspect that a rule like "stuff rendered off screen can't move the active cell" may be a good heuristic, but I don't have strong feeling about the details.
Alternative
No response
Additional context
This linked notebook reproduces the issue. To try it, marimo edit the notebook, then find the cell that defines n=2 and redefine n. Then try to redefine n again quickly with a more complex expression.

I have a fairly long notebook, and when I navigate to the bottom of the notebook, then click the plus button for a new cell below the last cell, it scrolls up about 80% of the way to the top of the notebook. I would prefer it stay looking at the new cell I just made.
This notebook displays the same behavior. To reproduce scroll to the bottom, press the plus to make a new cell below the last cell.

@ggggggggg - i noticed that too - i fixed that here: https://github.com/marimo-team/marimo/pull/1782

It seems like when a cell ending with mo.mpl.interactive(plt.gcf()) finishes rendering, it still moves focus to that cell. So I basically lose my place in the notebook every time I run a cell that causes re-plotting.

authors: ggggggggg mscolnick

repo: marimo-team/marimo


text:
example: deploy editable notebooks in Modal

📝 Summary

Add a minimal example of launching the marimo notebook and having the ability to run editable marimo notebooks on Modal.
🔍 Description of Changes

Update README.md in modal examples, and add the example file modal_edit.py defining the modal container.
Note: Not sure what the naming convention is for examples, happy to rename!
📋 Checklist

[x] I have read the contributor guidelines.
[ ] For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
[ ] I have added tests for the changes made.
[x] I have run the code and verified that it works as expected.

📜 Reviewers

@mscolnick

I have read the CLA Document and I hereby sign the CLA


text:
Create complex components with mock data

Filtering Tabs
Food Place name with current queue status opening time and map icon
Date Picker
Menu Stepper
Card Grid

50% done

3.done

done


text:
The database objects are NOT grouped by context

ACTUAL RESULT:
The database objects are NOT grouped by context (Tables, triggers, etc.)

EXPECTED RESULT:
The database objects should be listed alphabetically and grouped by context (Tables, triggers, etc.)

Rename Database Triggers to Triggers [Database]
Rename DDL Triggers to Triggers [DDL]
Rename Generators to Sequences
Rename Global Temporaries to Tables [Global Temporary]
Rename Triggers to Triggers [Table]

After that the database objects will be displayed like that:

Domains
Exceptions
Functions
Indexes
Packages
Procedures
Roles
Sequences
Tables
Tables [Global Temporary]
Triggers [Database]
Triggers [DDL]
Triggers [Table]
UDFs
Views

You can use Red Expert v2021.02 as reference to how name each database object nodes and how to group them by context

Suggested ordering of database objects based on Firebird documentation ordering : Data Definition (DDL) Statements

Icons pack: Icons.zip

repo: mariuz/flamerobin


text:
Cosmetic issue with full DDL extraction

When I run [Cenerate code] -> [Extract full DDL for ] all keywords are in uppercase in the generated code; all but the 'comment on' statements, which are in lowercase.
This just looks inconsistent & weird

.

Hi @kpeters58
Could you please retest this issue on FlameRobin 0.9.3.12 and close it if it is no longer reproducible?
Thanks in advance,
Luciano


text:
Restore did not work because of outdated/incorrect documentation

I've just spent quite a lot of time figuring out why my restore is not working until i found out that in the restore script, the access key and secret fields should be called awsKey and awsSecret and not awsAccessKey and awsSecretKey as the docs suggest. Might be helpful if somebody would check what else is incorrect. (I will do it in a couple of days if nobody else does it before)

pr #69


text:
Unexpected comments in version-translator code when target has an ET source doesnt

Query:
import module namespace es = 'http://marklogic.com/entity-services' at '/MarkLogic/entity-services/entity-services.xqy';
es:version-translator-generate(fn:doc( 'tgtHasETSrcDsnt-Src.json'),fn:doc( 'tgtHasETSrcDsnt-Tgt.json'))

There are 2 issues here.

There are empty XPaths in the generated code
Above generates code as below where the comments "(: The following property was missing from the source type :)" is not expected. It should be a no-op transform and look identical to what instance converter generates:

declare function test-3-from-test-4:convert-instance-Product(
    $source-node as node()
) as map:map
{
    json:object()
    (: The following line identifies the type of this instance.  Do not change it. :)
    =>map:with('$type', 'Product')
    (: The following lines are generated from the 'Product' entity type. :)
    (: The following property was missing from the source type :)
    =>   map:with('ProductName',            xs:string( () ))
    (: The following property was missing from the source type :)
    =>es:optional('UnitPrice',              xs:integer( () ))
    (: The following property was missing from the source type :)
    =>es:optional('SupplierID',             xs:integer( () ))
    (: The following property was missing from the source type :)
    =>es:optional('Discontinued',           xs:boolean( () ))

};

The thing about the comment is that the source version in this scenario has no value to fill the XPath expression, and so will always be empty.  What needs to happen perhaps is for a developer to ascribe a default value to the property instead, one that is typed appropriately.  (Would mean a spec edit I understand).
Default values though are dangerous.  One would not want a dev to skip editing a new property, so perhaps the spec is correct on this score...
Here's what I have in progress:
  (: The following property was missing from the source type.
       The XPath will not up-convert without intervention.  :)
    =>   map:with('ProductName',            xs:string($source-node/Product/ProductName))
    (: The following property was missing from the source type.
       The XPath will not up-convert without intervention.  :)
    =>es:optional('UnitPrice',              xs:integer($source-node/Product/UnitPrice))
    (: The following property was missing from the source type.
       The XPath will not up-convert without intervention.  :)
    =>es:optional('SupplierID',             xs:integer($source-node/Product/SupplierID))
    (: The following property was missing from the source type.
       The XPath will not up-convert without intervention.  :)
    =>es:optional('Discontinued',           xs:boolean($source-node/Product/Discontinued))

Sending back to fix @grechaw as second issue pointed above still persists:
declare function test-3-from-test-4:convert-instance-Product(
    $source-node as node()
) as map:map
{
    json:object()
    (: The following line identifies the type of this instance.  Do not change it. :)
    =>map:with('$type', 'Product')
    (: The following lines are generated from the 'Product' entity type. :)
    (: The following property was missing from the source type.
       The XPath will not up-convert without intervention.  :)
    =>   map:with('ProductName',            xs:string($source-node/Product/ProductName))
    (: The following property was missing from the source type.
       The XPath will not up-convert without intervention.  :)
    =>es:optional('UnitPrice',              xs:integer($source-node/Product/UnitPrice))
    (: The following property was missing from the source type.
       The XPath will not up-convert without intervention.  :)
    =>es:optional('SupplierID',             xs:integer($source-node/Product/SupplierID))
    (: The following property was missing from the source type.
       The XPath will not up-convert without intervention.  :)
    =>es:optional('Discontinued',           xs:boolean($source-node/Product/Discontinued))
    (: The following properties are in the source, but not the target:
No missing properties.  :)

};

I've paged this back in; seeing what needs doing.

I've got a fix to this issue ready.  It also refactors the modules a bit for readability, so it may take some more work to get it completely clean.

over to you for comprehensive E2E woot

Shipping the bug. Tests running ok in regression

authors: bsrikan grechaw

repo: marklogic/entity-services


text:
Error messages seen after Windows installation

Deploy the app fresh ; accessing the login page shows the error below

Set the browser to 30 second time out. I'm assigning to @gghai as 30 seconds should be more than enough. Please follow up in #395 if this persists.

With today latest develop code and i still see the first time IE browser is not loading the app completely .Cleared the browser cache /cookies . Please assign this back to me when the #395 is fixed and appropriate browser time out reaches a equilibrium state . Thanks

It doesn't look like a browser issue. The middle tier isn't responding within 30 seconds.

Since #395 is pushed to 8.0-2, wondering if this should also be pushed...?

I think so.

@gghai if you're okay with it please push to 8.0-2.

I would like to try this once before we move to 8.0-2 as java warm change has gone in to RC .Thanks

oh right that makes sense. didn't realize was tied to warm up which just got pulled in.

The warm up is in our release branch. It is supposed to solve this issue. If the issue remains, please notify.

Tried with the latest RC candidate and ML 1/26 build.  Browser app homepage  didn't loaded fully first time on accessing the http://localhost:3000 after the app deployment . If i refresh the IE9 browser able to access the app .

@laurelnaiad  do you accept the above issue to be fixed or you want me to focus mainly on accessing the app ( after one browser refresh) .

Please paste the error message into this issue. That will help decide how to dispatch it.

No error what i saw was spinner first time i access the app ( as it didnt loaded fully) .

A "forever" spinner? I think this is an angular bug that is exposed by the issue we were trying to fix re: slow middle tier. IN other words, the middle tier warms up slowly. and IE9/Angluar combo mishandles the timeout.
I may be able to fix this such that it turns into a "normalish" timeout message rather than an ongoing spinner, but ultimately 30 seconds needs to be enough time for the server to respond. Please make sure you have warmed up the middle tier the next time you want to test this (that is, warm it up using a different browser). That way, we'll know whether it it middle-tier warm-up time triggering this or something else.

The problem on startup is actually the "warm-up" issue. (#395)
However, I will see what I can do about the lack of error message (whereby instead you get an endless spinner), but that is an Angular/IE9 incompatibility. I'll thus mark this issueas external while also looking at a potential workaround.

Tried with  latest rc1 code base that includes the jetty server deployment )
Win 7 / IE9 :   As soon as the app was deployed i accessed the localhost:300 link . saw the spinner for few seconds ( may be 32 i didnt count? the the below error page was thrown.

Win7/ Chrome : Loaded the home page correctly
Win7/ Ff32 : Got the below error on aceesing the http://localhost:3000 page . ON refresh the app loaded fine .

Also on the side note when i deployed the app on the linux and mac , app loaded on supported browser.s

@laurelnaiad  please let me know if you want me to try refresh the IE9 browser and see if loads fine. I have left in the above screenshot state for now .

Just to clarify - this was tested on a branch that has both the tomcat/jetty replacement AND the new browser error out message? (my understanding is these were 2 attempts to mitigate the issue).

Yes ( latest rc1 code case ) that includes jetty and browser changes .

I guess I'm surprised the browser error is kicking in - does that mean the tomcat replacement did not solve issue?

What Gaurva just tested was a separate issue with IE9/Angular which was resulting in an endless spinner instead of an error message saying the request timed out. I hacked a solution to overcome that so that endless spinners don't result when the warm-up bug crops up. It seems he gets exactly what I'd hoped.
I imagine that by now the server is ready ( :wink: ), and a refresh would render the page properly. I think all that's left is to verify the other half of the issue (fix the warmup slowness itself, hopefully via migration to tomcat -- that is being addressed in #395).
Gaurav, what you just wrote confused me now. Please post your exact commit # and let's be clear about whether any test is running under jetty or tomcat (which requires a full gradle recycle after you point to the relevant commit in git).

@popzip I'm confused about what he's testing b/c it sounds contradictory to say "latest" and "jetty" together.

C:\Users\builder\marklogic-samplestack>git rev-parse HEAD
1bf118ae5ea7f04544d3d5f3b01c77d6642c5ccd

Either way this particular issue should be marked ship and #395 is where we should continue the conversation about warm-ups.

@laurelnaiad  should i go ahead and try refresh the IE browser and see if its looks good now.Just ensuring no one what to take peek at the current browser state .

It's fine with me if you do. I'm very interested in shipping this ASAP and focusing on #395, but a refresh of your browser doesn't hurt.

On refresh the browser app loaded fine on IWn7/IE9 . Marking this as ship.

authors: gghai laurelnaiad popzip

repo: marklogic/marklogic-samplestack


text:
Add Table Component to HyperUI

I propose the addition of a new table component to enhance the existing options available. While there are already some table components available, I strongly believe that my addition would greatly benefit the hyper UI.
Preview::

Hey @mdjamilkashemporosh,
I'm happy for you to look at a table component with pagination. However, I feel the other examples are just variations of table components with slightly different approaches to the borders, none of which particularly make sense.

I think start with the last one for now.

@markmead Got it! Thanks

Hey @mdjamilkashemporosh,
I'm happy for you to look at a table component with pagination. However, I feel the other examples are just variations of table components with slightly different approaches to the borders, none of which particularly make sense.
If you do create the component can you please use an existing table and pagination component as your base.

Hey @KunjMaheshwari,
Thank you for sharing the information.

Hey @KunjMaheshwari,
Thank you for sharing the information.

Hey @KunjMaheshwari, Thank you for sharing the information.

It was just a copy of my reply, no idea why they did that 🤷♀

authors: KunjMaheshwari beandnam markmead mdjamilkashemporosh

repo: markmead/hyperui


text:
bundling internal references without calling explicitly

In my running use-case of using a dynamic-tag to dynamically include subcomponents of type template/renderer/widget, I've run into a new problem. I assume resources are client aggregated for widgets based on walking through references.
Such as:
<div w-bind>
    <subcomponent />
</div>

But my code actually looks like:
<div w-bind>
    <dynamic-tag module="subcomponent" />
</div>

In this second case, is there some way for me to make sure that the compiled subcomponent is included in the client bundles? I need it's template.marko.js and renderer.js so that I could potentially rerender it's parent on the client.
I could use w-preserve to prevent rerendering in these cases, but given that the tags are dynamic, it's a bit harder to tell which ones should be preserved (unless there would be a way to put w-preserve on a non-widget).

The dynamic-tag has some logic to process tag data, and a template that looks like this:
<if test="data.type === 'renderer' || data.type === 'widgetWithoutId'">
    <invoke function="data.renderer(data.model, out)" />
</if>
<else-if test="data.type === 'template'">
    <include template="${data.template}" entry="$data.model" />
</else-if>
<else-if test="data.type === 'widgetWithId'">
    <include template="./widget.marko" renderer="${data.renderer}" model="${data.model}" />
</else-if>

repo: marko-js/marko-widgets


text:
new addition to youtubers and ui component websites

i added an awesome youtube channel called Fireship as well as a website providing bootstrap ui snippets for free and a component library

Please have one item per pull request. as per the CONTRIBUTING.md . Thanks.

@hacker4world It looks like your code editor added some formatting. PLease open a new PR. Thanks!

authors: AntonyKimani hacker4world markodenic

repo: markodenic/web-development-resources


text:
Are there any batch add network object interfaces?

When I batch add 200 network objects, it takes almost 10 minutes!That's not acceptable

To my knowledge the batch function is only for Access Rules. That said,
I haven't revisited the newer options in the FMC's API for 6 months or
so.  If you know of some change that would allow batching of Network
Objects we could look into adding it.  (Or you can.)  :-)
On 2/23/21 8:08 AM, Duanexiao wrote:

When I batch add 200 network objects, it takes almost 10
minutes!That's not acceptable
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/daxm/fmcapi/issues/98, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAZOMZ3ROSIFBFSM6KLHJPTTAPAHDANCNFSM4YCUYZIQ.

I use the 'bulk=true' parameter when when posting network objects. I believe the same can be used for network objects.
def fmcapi_post_bulk(fmc, post_data):     api_path = '/object/networkgroups?bulk=true'     post_resp = fmc.send_to_api(method='post', url=fmc.configuration_url+api_path, json_data=post_data)

Sweet! Care to submit a PR with the code that works?
On 2/23/21 8:36 AM, caballero-oscuro wrote:

I use the 'bulk=true' parameter when posting network objects. I
believe the same can be used for network objects.
|def fmcapi_post_bulk(fmc, post_data): api_path =
'/object/networkgroups?bulk=true' post_resp =
fmc.send_to_api(method='post', url=fmc.configuration_url+api_path,
json_data=post_data)|
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/daxm/fmcapi/issues/98#issuecomment-784289545, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAZOMZ6NHGWQUQJRWLWA5L3TAPDPJANCNFSM4YCUYZIQ.

Sure, I can do that.

I use the 'bulk=true' parameter when posting network groups. I believe the same can be used for network objects.
def fmcapi_post_bulk(fmc, post_data): api_path = '/object/networkgroups?bulk=true' post_resp = fmc.send_to_api(method='post', url=fmc.configuration_url+api_path, json_data=post_data)

nice job! Could you post some usage examples?

Separate from this issue (and I can create a new one if you want), adding
the virtualtunnelinterfaces which was added to API in 6.7 would be really
nice to have. VTIs being missing from Firepower has been a big issue for me
for a while but since they are now added and in the API would be nice to
add to your library
Brian Hartsfield
On Tue, Feb 23, 2021 at 10:23 AM daxm notifications@github.com wrote:

To my knowledge the batch function is only for Access Rules. That said,
I haven't revisited the newer options in the FMC's API for 6 months or
so.  If you know of some change that would allow batching of Network
Objects we could look into adding it.  (Or you can.)  :-)
On 2/23/21 8:08 AM, Duanexiao wrote:

When I batch add 200 network objects, it takes almost 10
minutes!That's not acceptable
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/daxm/fmcapi/issues/98, or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AAZOMZ3ROSIFBFSM6KLHJPTTAPAHDANCNFSM4YCUYZIQ
.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/daxm/fmcapi/issues/98#issuecomment-784279749, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABBHJKVUSEANSZL5KILN72LTAPCATANCNFSM4YCUYZIQ
.

I use the 'bulk=true' parameter when posting network groups. I believe the same can be used for network objects.
def fmcapi_post_bulk(fmc, post_data): api_path = '/object/networkgroups?bulk=true' post_resp = fmc.send_to_api(method='post', url=fmc.configuration_url+api_path, json_data=post_data)

nice job! Could you post some usage examples?
Sorry it taken me a while to get back to you, but here's an example:

fmcapi-bulk-example.txt

I use the 'bulk=true' parameter when posting network groups. I believe the same can be used for network objects.
def fmcapi_post_bulk(fmc, post_data): api_path = '/object/networkgroups?bulk=true' post_resp = fmc.send_to_api(method='post', url=fmc.configuration_url+api_path, json_data=post_data)

nice job! Could you post some usage examples?
Sorry it taken me a while to get back to you, but here's an example:

fmcapi-bulk-example.txt

many thanks!

Also worth the mention if you don't find the solution here for bulk object, port, object-group (port or object) you can use the Cisco import tool for that. It give a nice compare and shows if stuff is already in use. While I think it would be cool to have a nice tool that does everything I have to look at options I have available that are the most efficient and ready to use. Great enhancement idea though. :)

authors: Duanexiao Krandor1 caballero-oscuro daxm lavermil

repo: marksull/fmcapi


text:
Export failing due to encoding issue

The Daily job is failing right now: https://github.com/marktstammdatenregister-dev/mastr/actions/runs/5397221969/jobs/9801698502
Gesamtdatenexport_20230702_23.1_c85c0bce64d34b348a1a1071179f9a31.zip -spec spec/Gesamtdatenexport.yaml -database build/Marktstammdatenregister.db -report-json stdout
Katalogkategorien.xml
2023/07/02 04:32:56 failed to process xml file: failed to process xml file: failed to validate xml file Katalogkategorien.xml: xml: encoding "UTF-16" declared but Decoder.CharsetReader is nil

The first attempt didn't work: https://github.com/marktstammdatenregister-dev/mastr/compare/fix-utf16-error?expand=1

Should be fixed by #48.

repo: marktstammdatenregister-dev/mastr


text:
Feature request: show the number of times the screen has been turned on

Nice and simple tool! I was looking for a screen turn on counter. Is that something that you could implement too?
Kind regards
Ronald

Yes, and in fact this was already in early versions 😉
Would you just want to know it for the current day or would you rather be interested in exporting this for all days?

Oh really! I would like it in the notification, for the current day. Since it's also a measure of my "phone addictiveness" and might help to see.
Has that been also in an earlier version? Then I could just use that one.

authors: markusfisch zeekoe

repo: markusfisch/ScreenTime

license: Unlicense


text:
加油 希望持续更新

👍

感谢支持，有什么新需求可以提Issue，我们持续更新。

authors: VictorChow mars-men

repo: mars-men/GsonFormatPlus


text:
Uppercase field values in pdf (name, city etc.)

Skipped proclamation "Čestne Vyhlásenie" conversion to uppercase, if wanted I am happy to add it there as well.

vdaka

authors: adamliesko marsher

repo: marsher/volby-zo-zahranicia


text:
problem with html content that contains a "%"

Hi,
I'm getting an error when a translation contains a percentage symbol (%).
Uncaught Error: [sprintf] %
Any idea on how I can get around this?
Edit: I tried using the entity "%" but the issue still persists

Hi @frg, percentage signs need to be escaped with another percentage sign (see #2).

Great! Thanks!. One last question, is this a sprintf quirk?

Yes, it is.

Awesome, thanks!

authors: frg martinandert

repo: martinandert/counterpart


text:
hello world

blalblalballblbalbla

No

authors: HeloiseS martinjohndyer


text:
Update sbt-sonatype to 3.9.15

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

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.xerial.sbt", artifactId = "sbt-sonatype" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "org.xerial.sbt", artifactId = "sbt-sonatype" }
}]

labels: sbt-plugin-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #134.

repo: martinpallmann/gchat


text:
Feature branch

As requested the pull request only with the bugfix in reset and the Mode Enum outside the env class. If you would like to have the documentation as in the previous pull request just let me know.

Thanks, looks good!
Regarding the documentation: Yes, also welcome. But for the action space we have continuous and discrete version, so the documentation should contain both.

Thanks, looks good! Regarding the documentation: Yes, also welcome. But for the action space we have continuous and discrete version, so the documentation should contain both.

Ok the documentation I will add on the spot.
Regarding the continuous vs discrete action: you have both action spaces versions (self.action_space and self.discrete_action_space) and a variable which looks like to distinguish between the two action spaces but  you do not use self.discrete_action_space and the memeberfunction discrete_to_continous_action. How should I proceed here?

Add the option to use discrete actions
Cleanup the discrete options
Just ignore what happens in the code and only add the documentation for continuous actions

repo: martius-lab/hockey-env


text:
OSS-Fuzz Integration

Is your feature request related to a problem? Please describe.
I have submitted this project to OSS-Fuzz and received word that they would like to accept this project, with the maintainer's approval. I wanted to reach out to see if this is something that you would support me integrating into your CI/CD pipeline.
Describe the solution you'd like
If approved, I will integrate tomlplusplus into OSS-Fuzz for continuous fuzz-testing of the project. I will then integrate ClusterFuzz into this project's build pipeline to detect any vulnerabilities that could be introduced by PR changes. This would be free of charge to the project maintainer and I would undertake the work.
Additional context
If approved, what email would you like me to include to be CC'd in any critical security bug reports that are encountered during continuous fuzzing

Hi there, sure, that'd be great! mark.gillard@outlook.com.au is fine :)

authors: capuanob marzer

repo: marzer/tomlplusplus


text:
(Proposed solution) Multiline x-axis labels interfere with the bottom legend

I'd like to propose a fix that would handle the mess that emerges when one is having multiline labels on the x-axis while having the legend positioned at the bottom. (which happens at least with the newest Chrome)
The problem: (don't mind the labels repeating - it's just to make them longer)

After a few hours of figuring out how to do this I came up with a rather simplified and naive solution, that consists of 4 actual changes to the c3.js file:
Step 1: c3.js, lines 128 - 132
$$.currentMaxTickWidths = {
	x: 0,
	y: 0,
	y2: 0
};

...replaced with...
$$.currentMaxTickWidths = $$.currentMaxTickHeights = {
	x: 0,
	y: 0,
	y2: 0
};

===
Step 2: c3.js, line 345
xAxisHeight = config.axis_rotated || hasArc ? 0 : $$.getHorizontalAxisHeight('x'),

...replaced with...
xAxisHeight = config.axis_rotated || hasArc ? 0 : $$.getHorizontalAxisHeight('x') + $$.getMaxTickHeight('x', true),

===
Step 3: c3.js, insert new method after the body of c3_chart_internal_fn.getMaxTickWidth method
c3_chart_internal_fn.getMaxTickHeight = function (id, withoutRecompute) {
	var $$ = this, config = $$.config,
		maxHeight = 0, targetsToShow, scale, axis, body, svg;
	if (withoutRecompute && $$.currentMaxTickHeights[id]) {
		return $$.currentMaxTickHeights[id];
	}
	if ($$.svg) {
		targetsToShow = $$.filterTargetsToShow($$.data.targets);
		if (id === 'y') {
			scale = $$.y.copy().domain($$.getYDomain(targetsToShow, 'y'));
			axis = $$.getYAxis(scale, $$.yOrient, config.axis_y_tick_format, $$.yAxisTickValues);
		} else if (id === 'y2') {
			scale = $$.y2.copy().domain($$.getYDomain(targetsToShow, 'y2'));
			axis = $$.getYAxis(scale, $$.y2Orient, config.axis_y2_tick_format, $$.y2AxisTickValues);
		} else {
			scale = $$.x.copy().domain($$.getXDomain(targetsToShow));
			axis = $$.getXAxis(scale, $$.xOrient, $$.xAxisTickFormat, $$.xAxisTickValues);
			$$.updateXAxisTickValues(targetsToShow, axis);
		}
		body = this.d3.select('body').classed('c3', true);
		svg = body.append('svg').style('visibility', 'hidden').style('height', 0);
		svg.append('g').call(axis).each(function () {
			$$.d3.select(this).selectAll('text tspan').each(function () {
				var box = this.getBoundingClientRect();
				if (box.height >= 0 && maxHeight < box.height) { maxHeight = box.height; }
			});
		});
		// TODO: time lag to get maxHeight
		window.setTimeout(function () {
			svg.remove();
		}, 100);
		body.classed('c3', false);
	}
	$$.currentMaxTickHeights[id] = maxHeight <= 0 ? $$.currentMaxTickHeights[id] : maxHeight;
	return $$.currentMaxTickHeights[id];
};

===
Step 4: c3.js, remove lines 2624 - 2627
// Calculate x axis height when tick rotated
if (axisId === 'x' && !config.axis_rotated && config.axis_x_tick_rotate) {
	h = $$.getMaxTickWidth(axisId) * Math.cos(Math.PI * (90 - config.axis_x_tick_rotate) / 180);
}

===
Results:
Solved the original problem:

Problem with rotated labels:

Solved problem with rotated labels:

I am aware of this solution being quite naive :) ..but for the time being it fixes the problem I faced with long multiline tick labels on the x-axis, so - I wanted to share this and maybe offer this as a basis for the proper solution to be implemented in the official code. :cat2:
**EDIT: I just found out the solution above works only in Chrome (41), not in Firefox or IE. **

I have the same issue and have to set the axis height manually as an awkward workaround. It would be fantastic if this is fixed.

+1 A fix for this would really help me out.

Would be great to be able to manually insert newline in labels too.
Not perfect solution (because it's done AFTER rendering, so the calculated width to show/hide ticks labels doesn't apply):
onrendered : function () {
    d3.selectAll('g.c3-axis-x g text').each(insertLinebreaks);
}

and
               var insertLinebreaks = function (d) {
                    var el = d3.select(this);
                    var label=labels_{{tableFilter.ChartActive}}[d];
                    var words = label.split('\n');
                    el.text('');

                    for (var i = 0; i < words.length; i++) {
                        var tspan = el.append('tspan').text(words[i]);
                        if (i > 0) {
                            tspan.attr('x', 0).attr('dy', '9');
                        } else {
                            tspan.attr('x', 0).attr('dy', '5');
                        }
                    }
                };

Thanks for this attempt but unfortunately, like you said, it does not work for FF (can't test IE).
It also do not fix the fact that the X axis tick values overlap the X axis label.

authors: bli chandon mattfurness panthony smuuf


text:
🛑 POH events bot from render hosting is down

In 3218139, 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 e8d6f4a after 10 minutes.

repo: masch/poh-events-uptime


text:
🛑 POH events bot from render hosting is down

In c6981e6, 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 3c3d2cb.


text:
Sign operation UI issue when sending MAS with 7+ decimals

Context
Sending MAS amounts with maximum decimals is currently like this:

How to

Make sure that the amounts are displayed in a proper way. Maybe we can decrease the font in such cases?
@LucasF243 @mazmassa

Technical details
tbd by dev
QA testing
Does this task require some QA tests ?
If yes, explain how to validate it

@mazmassa  && @LucasF243  what do you think the best solution would be here ?

just reduce the font

@mazmassa we should sync on how to do this best

just reduce the font
Yeah... Indeed! Should be enough. Not too much but a bit yes! :)

This is fixed here:
https://github.com/massalabs/station-massa-wallet/pull/757
https://github.com/massalabs/ui-kit/pull/335

authors: LucasF243 longgamma-massa mazmassa pivilartisant

repo: massalabs/station-massa-wallet


text:
🛑 Iran 1 - VIP 1 is down

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

HTTP code: 0
Response time: 0 ms

Resolved: Iran 1 - VIP 1 is back up in 33e0ec4 after 10 minutes.


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

In 3704f37, 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 b5d40b7.


text:
🛑 RESTREAM-IR-10-ParsOnline-4 is down

In 89f5662, RESTREAM-IR-10-ParsOnline-4 ($IR_10) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RESTREAM-IR-10-ParsOnline-4 is back up in 00364ec.


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

In 81aa197, RESTREAM-IR-13-Afranet-3 ($IR_13) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RESTREAM-IR-13-Afranet-3 is back up in 71c6d8e.


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

In 268e845, 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 40d9e3b.


text:
Menu ordering and definition in config.toml

This is how I solved issues (https://github.com/matcornic/hugo-theme-learn/issues/2) with menu ordering for one of my sites.
Example tree content:
content/
├── about
│   ├── content.md
│   ├── index.md
├── bar
│   ├── index.md
│   └── mode_bar.md
├── foo
│   ├── foo2.md
│   └── index.md
└── introduction
    ├── index.md
    └── blabla.md

Now if I want to have my menu ordered as:

about
introduction
foo
bar
all I need is to add 2 lines in config.toml:

createFromSiteMenusMain = true
[params]
  menu = [ "about", "introduction", "foo", "bar" ]

Hello @kamilchm , thanks for your PR.
Usage of your new feature is very straightforward, I like it. But, seeing the code, you force the user to declare the menu, so it breaks the theme for users that will update and not use menu param.
Could you adapt it to choose sections when there is no menu, and choose menu where there is ? Thank you very much.

Sure, I'll provide backward compatible implementation later this week.

This should now works in backward compatible manner. User can explicitly specify menu ordering in config.toml only when he needs it.

authors: kamilchm matcornic

repo: matcornic/hugo-theme-learn


text:
mwc-top-app-bar with 100% content

I was wondering whether it is possible to have a default content slot in the app bar that fills the rest of the screen?
An example would be a data visualization page that uses the app bar to display tools for manipulating the content of a chart and the chart below the bar fills the rest of the screen.
As it looks now the content slot grows with the provided content and scrolls if the content exceeds the screen.
Is there any way to achieve a 100% content height already that I have not yet found?
Alternatives that I have considered:

Don't use mwc-top-app-bar and roll out my own app bar  :-(
Subclass and override contentClasses() to inject a class that makes the content slot height: calc(100% - 64px) (in this case for the default appearance of the bar)
Don't use the content slot of the bar but place the content side by side with the bar either with height: calc(100% - 64px) or  in a flexbox.

What do you think?

Seems like the best way to handle this for now would be to simply add a custom property for height that defaults to auto

or alternatively this?


text:
DO NOT MERGE TESTS: 4cm4k1 fix/list/allow alternate tags

test for https://github.com/material-components/material-components-web-react/pull/405

Codecov Report

Merging #439 into master will increase coverage by 0.06%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #439      +/-   ##
==========================================
+ Coverage   96.09%   96.16%   +0.06%
==========================================
  Files          53       55       +2
  Lines        1819     1849      +30
  Branches      214      217       +3
==========================================
+ Hits         1748     1778      +30
  Misses         71       71

Impacted Files
Coverage Δ

packages/text-field/Input.js
95.78% <100%> (+0.38%)
:arrow_up:

packages/typography/typography.js
100% <100%> (ø)

packages/typography/index.js
100% <100%> (ø)

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 a468f02...a063d01. Read the comment docs.


text:
Added folder-icon for snippet, snippets

Description
Add folder-icon for "snippet", "snippets" by folder-plugin recycling (using material color: yellow-800, clone).

refer to #2503 issue for details.

Contribution Guidelines

[x] By creating this pull request, I acknowledge that I have read the Contribution Guidelines for this project.
[x] I have read the Code Of Conduct and promise to abide by these rules

Oh, I'll change to use the scissor icon for higher folder type identification.

Oh, I'll change to use the scissor icon for higher folder type identification.

Yeah, a scissor would be nice to see for that icon 😅

Ha, Inksacpe grid isn't right 😓

authors: MTtankkeo PKief


text:
Issue with sonar lint VS Code extension in Linux

What is the issue?
Java in Linux Mint.
What do you suggest?
Find the problem and write it down in the project's wiki.

the extension is now working, do not know why :joy:


text:
Multiline lambdas?

Hi there!
One of my main gripes about Python is not being able to write multiline lambdas. I had an idea to create a Python preprocessor that allows braces (and found this before making it myself) to allow multiline lambdas, but also to generally improve readability.
I'm just wondering if Bython supports multiline lambdas, or plans to in the future.
Thanks so much!

@abalter Thanks for the clarification, that's what I meant.

I agree!

multiline lambdas ❤
maybe, one day, a slightly less complicated parser in the language internals? 🤷

The only reasonable arguments for this project to exist.

I second this.
Anonymous functions are the most annoying aspect of the default python parser
If you could do
dict = {
    "fn": lambda x, y {
        # multi
        # line
        # fn
    }
}

It would be absolutely glorious

authors: JacopoMadaluni evan-a-w lukefisklennon thehappycheese

repo: mathialo/bython


text:
ChromeVox reads outer label when collapse is triggered duringexploration

Just a note for a future iteration. When collapsing while exploring, ChromeVox will repeat the outer label before re-entering the explorer and reading the live-region again. This lead to repetition.

There's a known issue that ChromeVox sometimes reads live regions twice.

authors: pkra zorkow

repo: mathjax/MathJax-RespEq


text:
query baseline

After using "window.MathJax.typeset([node])", I can get the SVG result from the $(node).html()
But is it possible to query the baseline of the rendered expression to be used in a different context ?
(of course the baseline would be relative to the current font size or some other dimension)

The vertical-align attribute of the SVG element is the depth below the baseline (in ex units), and the height is the total height, so the height above the baseline is the height minus the vertical align value.

👍

repo: mathjax/MathJax


text:
Description input in span/setStatus should be optional

Description is currently required:
>> tp = opentelemetry.sdk.trace.TracerProvider();
>> tr = getTracer(tp, 'ab');
>> sp = startSpan(tr, "abcdefghi");
>> sp.setStatus("ok")
Not enough input arguments.

Error in opentelemetry.trace.Span/setStatus (line 135)
            description = opentelemetry.common.mustBeScalarString(description);

In main branch

repo: mathworks/OpenTelemetry-Matlab


text:
Update u32 operation docs

This PR updated assembly documentation for u32 operation. It also includes three small refactorings:

Renamed u32unchecked_add3 to u32overflowing_add3.
Renamed u32overflowing_madd to u32overflowing_madd.
Removed u32overflowing_shl and ``u32overflowing_shr` procedures.

The last commit also refactors the pow2 instruction to have two variants: checked_pow2 and unchecked_pow2.

repo: maticnetwork/miden


text:
[DRAFT] Add const params to procedures

Describe your changes
Addressing #297.
Checklist before requesting a review

[X] Repo forked and branch created from next according to naming convention.
[ ] Commit messages and codestyle follow conventions.
[X] Relevant issues are linked in the PR description.
[ ] Tests added for new functionality.
[ ] Documentation/comments updated according to changes.

I'm closing this PR, since this issue is now indefinitely on hold.

authors: grjte tohrnii


text:
MTY_AppGetClipboard - multi-lined text

It looks like MTY_AppGetClipboard does not support multi-line text in the clipboard? (The value returned is NULL)
Tested on a windows 10 machine.
Could I be doing something wrong here?

Closing - after re-testing this doesn't actually seem to be an issue. Apologies

repo: matoya/libmatoya


text:
No background map from arcgisimage

Dear All,
I am working with Python3.5.2 with matplotlib '3.0.3' version, my basemap version is the 1.1.0. I have an Ubuntu 16.04 Laptop.
I have this code (to plot a seismic epicenter over the background map from arcgisimage server):
m = Basemap(projection='mill', llcrnrlon=-70.20, llcrnrlat=-30.00, urcrnrlon=-56.90, urcrnrlat=-9.10,
            resolution='c',epsg= 4326, ax=ax1)
m.arcgisimage(service='World_Topo_Map', xpixels = 2000, verbose= False)
m.drawcoastlines()
m.drawcountries(color='yellow',linewidth=2.7)
m.drawmeridians(np.arange(0, 360, 2.5), labels=[True,False,False,True])
m.drawparallels(np.arange(-90, 90, 2.5),labels=[False,True,True,False])

with open(epi) as f:
    reader=csv.reader(f, delimiter=';')
    next(reader)
    for uhu in reader:
        lat.append(float(uhu[0]))
        lon.append(float(uhu[1]))
        mag.append(float(uhu[2]))
        depth.append(float(uhu[3]))

min_marker_size = 1.7
for lons, lats, mags in zip(lon, lat, mag):
    x,y = m(lons, lats)
    msize = mags * min_marker_size
    m.plot(x, y, 'ro', markersize=msize)

plt.show()

Under Windows 10 this code works nice and I can see the wonderful background map, however at Linux O.S. I am not able to see the background map, is this an issue of matplotlib or basemap?.
The first figure is taken from Win10, the second figure is taken from Ubuntu16.04
Regards,

That is odd. I wouldn't expect a difference in behavior between OSes. If
you set verbose to True, do you see error or warning messages on Ubuntu?
On Fri, Dec 27, 2019 at 11:32 AM Gonzalo Antonio Fernandez Marañon <
notifications@github.com> wrote:

Dear All,
I am working with Python3.5.2 with matplotlib '3.0.3' version, my basemap
version is the 1.1.0. I have an Ubuntu 16.04 Laptop.
I have this code (to plot a seismic epicenter over the background map from
arcgisimage server):
m = Basemap(projection='mill', llcrnrlon=-70.20, llcrnrlat=-30.00, urcrnrlon=-56.90, urcrnrlat=-9.10,
resolution='c',epsg= 4326, ax=ax1)
m.arcgisimage(service='World_Topo_Map', xpixels = 2000, verbose= False)
m.drawcoastlines()
m.drawcountries(color='yellow',linewidth=2.7)
m.drawmeridians(np.arange(0, 360, 2.5), labels=[True,False,False,True])
m.drawparallels(np.arange(-90, 90, 2.5),labels=[False,True,True,False])
with open(epi) as f:
reader=csv.reader(f, delimiter=';')
next(reader)
for uhu in reader:
lat.append(float(uhu[0]))
lon.append(float(uhu[1]))
mag.append(float(uhu[2]))
depth.append(float(uhu[3]))
min_marker_size = 1.7
for lons, lats, mags in zip(lon, lat, mag):
x,y = m(lons, lats)
msize = mags * min_marker_size
m.plot(x, y, 'ro', markersize=msize)
plt.show()
Under Windows 10 this code works nice and I can see the wonderful
background map, however at Linux O.S. I am not able to see the background
map, is this an issue of matplotlib or basemap?.
The first figure is taken from Win10, the second figure is taken from
Ubuntu16.04
Regards,
[image: basemap_Windows10]
https://user-images.githubusercontent.com/9260897/71524578-92bf9c80-28a4-11ea-9379-45c8827793ab.png
[image: basamap_Ubuntu]
https://user-images.githubusercontent.com/9260897/71524647-c995b280-28a4-11ea-8c68-105fd5ac64e1.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/matplotlib/basemap/issues/481?email_source=notifications&email_token=AACHF6AXSNS6CWSDOAP6X53Q2YU3RA5CNFSM4J76VW32YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IC4M5NA,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACHF6FTPNCKSROTB2FKPTLQ2YU3RANCNFSM4J76VW3Q
.

Dear @WeatherGod ,
I saw just a warning updating the 'verbose=True'
FutureWarning: '+init=<authority>:<code>' syntax is deprecated. '<authority>:<code>' is the preferred initialization method.
  return _prepare_from_string(" ".join(pjargs))
http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/export?bbox=-4022.163721818379,-1718.8733853924696,-3260.129854294384,-521.3915935690491&bboxSR=4326&imageSR=4326&size=2000,3142&dpi=96&format=png32&transparent=true&f=image

The link under my Ubuntu 16.04 it is just an empty image
Thank you for your time.
Tonino

I have the same issue on Mac OSX...

Same here, on macOS 10.15.7 (Catalina) Python 3.8 Matplotlib version 3.2.1.

@vc1492a I think this issue could be the same one as in #499 and the current master already includes the bugfix. Which basemap version are you using?

@molinav thanks for the prompt reply - after some more diagnosis ended up being an unrelated issue, thanks!

I am closing this issue because the problem in the OP is actually solved now. The key point is the traceback of the URL:
http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/export?bbox=-4022.163721818379,-1718.8733853924696,-3260.129854294384,-521.3915935690491&bboxSR=4326&imageSR=4326&size=2000,3142&dpi=96&format=png32&transparent=true&f=image

where the bounding box should contain "standard" latitudes and longitudes (since the OP uses EPSG 4326), but instead it contains out-of-bound values due to an unexpected radian-to-degree conversion factor applied inside Basemap.arcgisimage before generating the URL.
This problem was fixed in PR #505 by @guziy, but this PR introduced a new bug in any projection different from "cyl". This new bug was finally fixed in PR #548 and released with basemap version 1.3.4.

@molinav I am using version 1.3.8, and this issue seems to have infiltrated back into the code.
The traceback URL is below, where the bbox is in radians, and not degrees.
https://server.arcgisonline.com/ArcGIS/rest/services/WORLD_IMAGERY/MapServer/export?bbox=-1.7453292519943295,0.08726646259971647,-0.9250245035569946,0.8028514559173916&bboxSR=4326&imageSR=4326&size=600,523&dpi=96&format=png32&transparent=true&f=image

authors: FMassin WeatherGod mattbilskie molinav tonino0013 vc1492a

repo: matplotlib/basemap


text:
.well-known support #2982

Also I'm surprise not to see on object WellKnownResult refleting this:
{
  "m.homeserver": {
    "base_url": "https://matrix.example.com"
  },
  "m.identity_server": {
    "base_url": "https://identity.example.com"
  }
}

Ref https://github.com/vector-im/riot-android/issues/2982

authors: BillCarsonFr bmarty

repo: matrix-org/matrix-android-sdk


text:
Delete old drafts

This information is now either in the spec, or complete lies

I strongly do not think we should be deleting stale drafts entirely from the repo - especially when some of them contain useful material that is not "complete lies" that is simply yet to be fully specced.  Particularly,

The V2 use cases that we worked from, which are not recorded anywhere else
The data flows that matched those use cases, most of which are still relevant for referring to
The draft proposals for the V2 endpoints which are yet to be implemented (e.g. update events)
The design flow we were trying to follow for V2
The flow and auth stuff - given how little federation doc we have, do we really want to be deleting the snippets that we do?
The object_model.rst diagram, unless this literally has made it into the main spec somewhere? I still find it useful to refer to, and whilst not fully up-to-date it is not "lies"

Some of these files should be kept because they contain notes on things we've
yet to implement / provide rationale for stuff we have implemented. Specifically:

drafts/data_flows - Interesting notes on things like forums/G+
drafts/general_api - Contains as of yet unimplemented v2 APIs. Must have.
drafts/object_model - Useful little diagram; should really be in the spec proper.
drafts/use_cases - Specifically the more exotic ones are great thought experiments
which we need to keep in mind when designing these APIs.

I cannot speak for the following (don't know what is in the spec / what is lying):

drafts/ancient_federated_versioning_design_notes.rst
drafts/flows_and_auth.rst
drafts/model/protocol_examples.rst
drafts/model/room-join-workflow.rst
drafts/model/rooms.rst

Forked off https://github.com/matrix-org/matrix-doc/pull/241 for stuff which seems uncontroversial.

authors: Kegsay ara4n illicitonion

repo: matrix-org/matrix-doc


text:
MSC3007: Forced insertion and room blocking by self-banning

This proposal adds forced member insertion, ban reversal without going through unban and join and ability to block rooms by banning self.
Rendered

This proposal needs rationale as it can be hard to see why this is needed in the first place.
It should be clarified that in "forcibly add other users into public or knockable rooms" "other users" refers to users currently present in the room (if that is what it means).

It should be clarified that in "forcibly add other users into public or knockable rooms" "other users" refers to users currently present in the room (if that is what it means).

It refers to users that are present in the room to insert users that are not in the room.

Hmm, so basically if I create a room and naturally have the insert_member permission, I can just pick any people around the whole Matrix and insert them to my room? Wow, is this is the best tool ever to distribute shocking material :thinking:.
I mean it can work in Slack because your employment is on the line for abuse ;), but I cannot see how people would want that feature to Matrix.
If I want it, I can just arrange a client to automatically join any rooms I've been invited to. This would typically be the case as well for schools or companies as well.

best tool ever to distribute shocking material

Protocol-level censorship stopper 😆

but I cannot see how people would want that feature to Matrix.

I proposed self-banning as a means to block rooms for that reason.

One can always create a new room. A whitelist mechanism (a list of acceptable room alias patterns) would be more applicable here and would apply to your use cases. But such a whitelist could easily live in the client.
These use cases are also addressed (better, IMHO) by Spaces #1772 : a company or a school would set up a space and add desired rooms as primary rooms. No, the client still won't be automatically pulled there, but the clients would have the option to do that if programmed to.

One can always create a new room.

It is harder to fork a whole community than to merely create a room, therefore this will happen rarely in practice (except for the deliberate abuse cases that you have mentioned). In those cases, a user could get permission to create rooms revoked by server admin. And so on if the abuser continues doing by creating accounts on other servers.

Seems like a whole lot of work that could just be basically avoided if the feature wasn't there in the first place.. ?

I leave this comment just to express that I agree with all the comments asking a) why is this needed b) major spam issue c) WHY?
TL;DR: PLEASE DONT!

a) why is this needed b) major spam issue c) WHY?

a) For school, government and company settings.
b) Yes, you get to abuse, but not continuously (due to the risk of getting your user/server banned from other instances), and it is by design, in order to prove censorship pointless. I laid out possible defence strategies which could be applied by server admins and/or bots. If you do it only in your own server instance, no one can stop you, which kind of fits the design of Matrix, again.
c) Why not?

In school/government/company settings, usually the organization controls the user's homeserver, and so can add the user to rooms by puppeting the user's account and auto-accepting invites to the rooms.  Aside from that, if the organization does not control the user's homeserver, the current mechanism for inviting users to rooms should be sufficient in most cases.  If it's not sufficient, some way to auto-accept invites would probably work well -- maybe some way of telling the homeserver to automatically accept invites from certain users.  This would not require any new room version (since it doesn't change anything in the room) and it puts control in the target user's hands, as they can say who's invites to automatically accept (which would probably be a short list), rather than waiting for an attacker to attack and reacting to it and having to keep a list of rooms that they don't want to join (which could grow indefinitely).
While I see that this feature could be useful in some situations, I think that in this case the potential for abuse is much greater than the benefits given, especially when there are alternatives that give nearly the same benefits without opening up new attack vectors, and require fewer changes.

having to keep a list of rooms that they don't want to join (which could grow indefinitely)

... which would be stored on all parties that participate to that room, by virtue of being implemented as a room ban, meaning ever-growing ban lists mostly comprised of self-bans.

authors: MTRNord eras erkinalp uhoreg


text:
Confusing result

First, thanks for your great job.
It seems that the result cnf will contains more variables than I defined.
Take the code snippet in documentation for example:
Src Code:

Output:

I defined four variables but the cnf contains 7 variables.
For some purpose, I want to relocate the variable in the cnf later. So I want to identify the input variables also.
If making the output only contains 4 variables is possible?

Output is correct. These additional variables just hold subexpressions results.
Number of variable can be get by using varlit method from variable literal (normal or negated variable number) - if it really is variable then this method will returns Some(varlit).

repo: matszpk/cnfgen


text:
ValueError: cannot convert float NaN to integer

Hi, thanks for sharing code.
I got the below error in later stages of analysis. It seems there is a problem with matplotlib, however I can't solve it. Is it a problem with my result file or the api itself?
Thanks!
Analyzing keypoint errors...
<mrr:2.0>Running per image evaluation...
<mrr:2.0>Evaluate annotation type *keypoints*
<mrr:2.0>DONE (t=1.70s).
DONE (t=5.07s).
/home/mkocabas/coco-analyze/analysisAPI/localizationErrors.py:136: RuntimeWarning: invalid value encountered in double_scalars
  ERRORS.append(tot_errs/float(sum(err_vecs[j])))
Traceback (most recent call last):
  File "run_analysis.py", line 127, in <module>
    main()
  File "run_analysis.py", line 99, in main
    paths = localizationErrors( coco_analyze, imgs_info, saveDir )
  File "/home/mkocabas/coco-analyze/analysisAPI/localizationErrors.py", line 146, in localizationErrors
    patches, autotexts = ax1.pie( ERRORS, colors=colors)
  File "/usr/lib/python2.7/dist-packages/matplotlib/__init__.py", line 1814, in inner
    return func(ax, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/matplotlib/axes/_axes.py", line 2600, in pie
    **wedgeprops)
  File "/usr/lib/python2.7/dist-packages/matplotlib/patches.py", line 1008, in __init__
    self._recompute_path()
  File "/usr/lib/python2.7/dist-packages/matplotlib/patches.py", line 1020, in _recompute_path
    arc = Path.arc(theta1, theta2)
  File "/usr/lib/python2.7/dist-packages/matplotlib/path.py", line 861, in arc
    n = int(2 ** np.ceil((eta2 - eta1) / halfpi))
ValueError: cannot convert float NaN to integer

Somehow there is a NaN value in the variable ERRORS and that causes the matplotlib function ax1.pie( ERRORS, colors=colors) to crash. Does this happen also with the fake_keypoints contained in the detections folder?

I've had a similar issue, it happened when I passed the COCO annotations in as detections and gave them all a score of 1.0.

Closing after @WillBrennan's reply. Feel free to reopen if issue comes up again.

authors: WillBrennan matteorr mkocabas

repo: matteorr/coco-analyze


text:
CLIPPY: Explain RwLock around persistent DB

What ❔
Remove the RwLock around the RocksDB instance.
Silence the clippy warning around the use of an RwLock around RocksDB and add some comments as to why it's there.
Why ❔
clippy started complaining in Rust version 1.79 that we don't actually need write access to the db variable after acquiring the write lock. AFAIR RocksDB manages its threads internally, and while the instance we have is a DbCommon<SingleThreaded>, according to the docs that only means that the column family operations require &mut access on the instance, while for DbCommon<MultiThreaded> it uses an RwLock inside around the column family registry.
I can't see us using any column family operations, and if we did the compiler would complain about needing write access, so I thought it was safe to remove the RwLock.
On closer inspection it's there to protect an invariant with the in-memory data that shows what the next expected block number is: we take the lock, check that what we're inserting is the expected number, then insert and update the memory; if we didn't take the lock, somebody else could insert, and then we might overwrite something already inserted.

We don't use rocksdb transactions (which are relatively expensive), so to avoid race conditions in db access, we use an inmemory RwLock instead (only 1 process can access a rocksdb data anyway) - i.e. whenever a consistent reads/read-write transaction is needed, a read/write lock is taken in memory. It could have been better documented though. Also, given that we use rocksdb only for testing, we could switch to rocksdb transactions instead. Alternatively we can just silence this specific warning in this file.

On a similar note, I like using Software Transactional Memory, where a similar pattern arises: the variables in STM can maintain invariants about the state and compose arbitrarily, but at some point we need to persist the data as well, which can be achieved in multiple ways:

Atomically check in STM whether the update should happen, update the in-memory if yes, return an error if not; then if the results is successful update the database as well, which now follows the in-memory contents unless it fails to update, in which case the application should handle the inconsistency by restarting.
Create database transactions that gets committed or rolled back together with the STM one.
Use an STM queue to write to the database in the background.

repo: matter-labs/era-consensus


text:
Update config-settings.rst

Summary

Ticket Link

Update to TOS and Privacy Policy that customization does not override links from Main Menu > About

@amyblais Good point. Added, if you could please re-review.

repo: mattermost/docs


text:
Added missing config settings

Added missing settings documented via https://github.com/mattermost/mattermost-plugin-msteams-sync/blob/main/docs/plugin_setup.md

@jasonblais - Azure setup is documented via https://github.com/mattermost/docs/pull/6659.


text:
Create post timeout

Summary
Add a timeout around any api calls so we can assure the effect decorate action always returns.
This will allow any api call that takes too long to fail faster.
Specially for the Client4.createPost method.  If the api never returns, the post is in a pending state and the user is not able to retry.
This PR depends on: https://github.com/mattermost/mattermost-redux/pull/342
For some context this behavior may occur with a flaky network connection.  User in a train, elevator or switching from LTE to Wifi.
@miguelespinoza

When @miguelespinoza and I first talked about the implementation I thought there was a better use case for it on mobile than on desktop since the connection is mostly stable which is why it ended up here. Web app could probably benefit from this as well, but thought we could try it out here to keep the change a little more isolated.

@enahum.   Let us know if this works. It will only affect the createPost action on mobile: https://github.com/mattermost/mattermost-redux/pull/342/files#diff-e32de3c64c2ee6b0ec20a2b9711d903fR18
We've added extra properties canTimeout (bool) and timeout (int/ms), this allows the ability to disable by default

authors: csduarte jarredwitt miguelespinoza

repo: mattermost/mattermost-mobile


text:
Adding docs to repo for publication.

Doc .md files added.
Repo synced to gitbook.
Screenshots added.
Structure validated against other plugins'.

Codecov Report

Merging #23 (4bab53c) into master (1bf0c50) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #23   +/-   ##
=======================================
  Coverage   21.63%   21.63%
=======================================
  Files          10       10
  Lines         772      772
=======================================
  Hits          167      167
  Misses        598      598
  Partials        7        7

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 1bf0c50...4bab53c. Read the comment docs.

@justinegeffen Can this PR be merged?

Yep! They can be. :)

authors: codecov-commenter hanzei justinegeffen

repo: mattermost/mattermost-plugin-nagios


text:
Can't upload plugin via API.

➜  g-plugin git:(master) ✗ export MM_SERVICESETTINGS_SITEURL=http://localhost:8065
➜  g-plugin git:(master) ✗ export MM_ADMIN_USERNAME=hobbes
➜  g-plugin git:(master) ✗ export MM_ADMIN_PASSWORD=building_character
➜  g-plugin git:(master) ✗ make deploy
Installing plugin via API
http --print b --check-status http://localhost:8065/api/v4/users/me || ( \
	    TOKEN=`http --print h POST http://localhost:8065/api/v4/users/login login_id=hobbes password=building_character | grep Token | cut -f2 -d' '` && \
	    http --print b GET http://localhost:8065/api/v4/users/me Authorization:"Bearer $TOKEN" \
	)
{
    "detailed_error": "",
    "id": "api.context.session_expired.app_error",
    "message": "Invalid or expired session, please login again.",
    "request_id": "mnmrma8wnpb4mnbubfct568whc",
    "status_code": 401
}

{
    "allow_marketing": true,
    "auth_data": "",
    "auth_service": "",
    "create_at": 1532409647831,
    "delete_at": 0,
    "email": "a@a.com",
    "first_name": "",
    "id": "96kjh8ttpin1zj58hd5utgnfca",
    "last_name": "",
    "last_password_update": 1532409647831,
    "locale": "en",
    "nickname": "",
    "notify_props": {
        "channel": "true",
        "comments": "never",
        "desktop": "mention",
        "desktop_sound": "true",
        "email": "true",
        "first_name": "false",
        "mention_keys": "hobbes,@hobbes",
        "push": "mention",
        "push_status": "away"
    },
    "position": "",
    "roles": "system_admin system_user",
    "timezone": {
        "automaticTimezone": "",
        "manualTimezone": "",
        "useAutomaticTimezone": "true"
    },
    "update_at": 1532604589454,
    "username": "hobbes"
}

http --print b DELETE http://localhost:8065/api/v4/plugins/g-plugin
{
    "detailed_error": "",
    "id": "api.context.session_expired.app_error",
    "message": "Invalid or expired session, please login again.",
    "request_id": "tbtxjs3xdfd19xgyanawh6u47h",
    "status_code": 401
}

http --print b --check-status --form POST http://localhost:8065/api/v4/plugins plugin@dist/g-plugin.tar.gz && \
	    http --print b POST http://localhost:8065/api/v4/plugins/g-plugin/enable

http: error: ConnectionError: ('Connection aborted.', BrokenPipeError(32, 'Broken pipe')) while doing POST request to URL: http://localhost:8065/api/v4/plugins
make: *** [deploy] Error 1

Here is my login attempt:
➜  g-plugin git:(master) ✗ http --print h POST http://localhost:8065/api/v4/users/login login_id=hobbes password=build_character
HTTP/1.1 200 OK
Content-Length: 643
Content-Type: application/json
Date: Sun, 05 Aug 2018 14:24:21 GMT
Set-Cookie: MMAUTHTOKEN=dc54xredjbywug5xx8kh7x9cqy; Path=/; Expires=Tue, 04 Sep 2018 14:24:21 GMT; Max-Age=2592000; HttpOnly
Set-Cookie: MMUSERID=96kjh8ttpin1zj58hd5utgnfca; Path=/; Expires=Tue, 04 Sep 2018 14:24:21 GMT; Max-Age=2592000
Token: dc54xredjbywug5xx8kh7x9cqy
X-Request-Id: gsxnbz7t1p8b8gf1rgjy4zd3xh
X-Version-Id: 5.1.0.5.1.0.6a280dd4b379e3dff0eca57ea893c010.false

Seems like I am missing something obvious...

Can confirm

I am also getting the same result.  Can't upload via api.  Here is my output from the command make deploy
 Installing plugin via API http --print b --check-status http://127.0.0.1:8065/api/v4/users/me || ( \ 	    TOKEN=http --print h POST http://127.0.0.1:8065/api/v4/users/login login_id=skawtus password=iw2lsf | grep Token | cut -f2 -d' '` &&
http --print b GET http://127.0.0.1:8065/api/v4/users/me Authorization:"Bearer $TOKEN"
)
{
"detailed_error": "UserRequired",
"id": "api.context.session_expired.app_error",
"message": "Invalid or expired session, please login again.",
"request_id": "n59mbbqs63ghf8tb7mpdb9b8xh",
"status_code": 401
}
{
"allow_marketing": true,
"auth_data": "",
"auth_service": "",
"create_at": 1534189461031,
"delete_at": 0,
"email": "skawtus@gmail.com",
"first_name": "",
"id": "49amhc9kh3yn8nnfrm9cygwdar",
"last_name": "",
"last_password_update": 1534189461031,
"locale": "en",
"nickname": "",
"notify_props": {
"channel": "true",
"comments": "never",
"desktop": "mention",
"desktop_sound": "true",
"email": "true",
"first_name": "false",
"mention_keys": "skawtus,@skawtus",
"push": "mention",
"push_status": "away"
},
"position": "",
"roles": "system_admin system_user",
"timezone": {
"automaticTimezone": "America/Los_Angeles",
"manualTimezone": "",
"useAutomaticTimezone": "true"
},
"update_at": 1534190567640,
"username": "skawtus"
}
http --print b DELETE http://127.0.0.1:8065/api/v4/plugins/io.github.mattermost-plugin-remind
{
"detailed_error": "UserRequired",
"id": "api.context.session_expired.app_error",
"message": "Invalid or expired session, please login again.",
"request_id": "48n5yh1ssjd9pbxn47yr9pozua",
"status_code": 401
}
http --print b --check-status --form POST http://127.0.0.1:8065/api/v4/plugins plugin@dist/io.github.mattermost-plugin-remind.tar.gz &&
http --print b POST http://127.0.0.1:8065/api/v4/plugins/io.github.mattermost-plugin-remind/enable
http: error: ConnectionError: ('Connection aborted.', BrokenPipeError(32, 'Broken pipe')) while doing POST request to URL: http://127.0.0.1:8065/api/v4/plugins
make: *** [deploy] Error 1
`
Would be great if this worked before the hackathon on thursday & friday!  :)

After some investigation, the makefile needs to be fixed.  the TOKEN variable does not have visibility in scope outside its evaluation inside '(' & ')'.
Further more that TOKEN needs to be added to subsequent request as a the endpoints are expecting an 'Authorization' header.
Its late and I am headed to bed.  I'll try taking a stab at fixing the makefile tomorrow.

@echo "Installing plugin via API"
http --print b --check-status $(MM_SERVICESETTINGS_SITEURL)/api/v4/users/me || (
TOKEN=http --print h POST $(MM_SERVICESETTINGS_SITEURL)/api/v4/users/login login_id=$(MM_ADMIN_USERNAME) password=$(MM_ADMIN_PASSWORD) | grep Token | cut -f2 -d' ' &&
http --print b GET $(MM_SERVICESETTINGS_SITEURL)/api/v4/users/me Authorization:"Bearer $$TOKEN"
http --print b DELETE $(MM_SERVICESETTINGS_SITEURL)/api/v4/plugins/$(PLUGIN_ID)
http --print b --check-status --form POST $(MM_SERVICESETTINGS_SITEURL)/api/v4/plugins plugin@dist/$(PLUGIN_ID).tar.gz &&
http --print b POST $(MM_SERVICESETTINGS_SITEURL)/api/v4/plugins/$(PLUGIN_ID)/enable
else ifneq ($(wildcard ../mattermost-server/.*),)
@echo "Installing plugin via filesystem. Server restart and manual plugin enabling required"
tar -C ../mattermost-server/plugins -zxvf dist/$(PLUGIN_ID).tar.gz
the TOKEN variable, does not have visibility outside the boolean statment e.g.

great catch! doing the change

authors: Hanzei cpanato harisibrahimkv scottleedavis

repo: mattermost/mattermost-plugin-sample


text:
remove duplicate text

Summary
Remove duplicate "Advanced compliance management" text in self hosted pricing modal.
Ticket Link
https://mattermost.atlassian.net/browse/MM-48823
Screenshots
before:

after:

Release Note
Remove duplicate text in self-hosted pricing modal

/e2e-test

Successfully triggered E2E testing!
GitLab pipeline | Test dashboard

authors: mattermod neallred stevemudie

repo: mattermost/mattermost-webapp


text:
MM-20433 - convert view_pinned_posts to typescript

Summary
This converts the view_pinned_posts component in the webapp to TypeScript.
Ticket Link
https://mattermost.atlassian.net/browse/MM-20433
Fixes https://github.com/mattermost/mattermost-server/issues/16141

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

/update-branch

@josephbaylon, it looks like all reviews are done.  Can you merge the PR if nothing remains? Thanks for the PR, @pablovelezvidal!

@jfrerich I just realized after merge that this doesn't have a milestone. Can you please add the milestone if necessary?

authors: jfrerich josephbaylon mattermod pablovelezvidal


text:
Reflection not supported for decoding

The Objective-C libraries I have used for JSON, such as JSONModel, support reflection when decoding. This is good because JSON requests are often simple, while the responses are complex. For example, a REST API to search for a user may accept a single user ID in the request but return a complex user model in the response.
Reflection (mirroring) is supported in JSONCodable for encoding but not decoding. The user ID can be encoded "for free" but the decoding of the user model requires many lines of code.
For example, you can do:
extension User: JSONEncodable {}

and the library will handle serialization automatically. However, the reverse doesn't work; you have to deserialize the JSON manually. For example:
extension User: JSONDecodable {
    init?(JSONDictionary: JSONObject) {
        let decoder = JSONDecoder(object: JSONDictionary)
        do {
            email = try decoder.decode("email")
            name = try decoder.decode("name")
            ...
        }
       ...
    }
}

Is there a technical issue that prevents JSONCodable from auto-deserializing JSON using JSONDecodable? I wonder if it is particularly challenging for some reason. If not, I would like to help remove this limitation.

Yes I'm glad you asked! Swift requires you to initialise all properties in its initialiser and there's no dynamic way to assign values to properties automatically. Feel free to bounce around ideas thought I've been stuck with this for a while.

I'll ponder on it, but in the meantime, what about just requiring the user to make all of the model's properties Optional? Or give them all default values?

That's what JSONCodable did initially but that seems like a big limitation for users to commit to. After all, Swift makes it easier to work with mutability and value types.

This is such a great library. Very simple and powerful!
I would like to also vote for a reflection-based decoding. If users design their objects as suggested by vocaro, perhaps there could be a method like this:
extension Company: JSONDecodable {
  init(object: JSONObject) throws {
      let decoder = JSONDecoder(object: object)
      try decoder.autoDecode()
  }
}

The above challenges make it difficult to implement but you're welcome to send in a PR and help us out!

authors: incognitosoftware1 matthewcheok vocaro

repo: matthewcheok/JSONCodable


text:
Reduce unused JavaScript

Reduce unused JavaScript and defer loading scripts until they are required to decrease bytes consumed by network activity.
Code-split using a third-party library such as loadable-components.

https://web.dev/unused-javascript/?utm_source=lighthouse&utm_medium=lr
https://loadable-components.com/docs/getting-started/

repo: matthewkoncz/ivosjatek


text:
Not working on Arduino Nano ESP32

I've just tried setting up the library on an Arduino Nano ESP32 clone but I don't get any sensor data returned, for some reason it's unable to find the thermostats. the output is:
BLE Devices found (total): 8
Iteration 25 - Free heap is 271512
---
BLE Devices found (total): 8
Iteration 26 - Free heap is 271512
---
BLE Devices found (total): 9
Iteration 27 - Free heap is 271512

Debug:
Advertised Device: Name: , Address: 0c:4b:c9:77:57:3f, manufacturer data: 0600010920220552d8ef8693a70f579ac45628f29cf49101d24c460b5aAdvertised Device: Name: , Address: 5e:ed:34:eb:f0:ad, manufacturer data: e00056dcca6606d3, serviceUUID: 0xfe9f
Service Data:
UUID: 0xfe9f, Data: Advertised Device: Name: , Address: 67:0b:e3:42:11:4b, manufacturer data: e000567bca6cd7a5, serviceUUID: 0xfe9f
Service Data:
UUID: 0xfe9f, Data: Advertised Device: Name: MJ_HT_V1, Address: 58:2d:34:37:34:00, serviceUUID: 0x180f
Service Data:
UUID: 0xfe95, Data: P ��Advertised Device: Name: , Address: 45:c0:cd:11:2f:00, serviceUUID: 0xfef3Advertised Device: Name: , Address: 54:48:e6:ba:45:b7, manufacturer data: 8f030a10030b00b545bae6485481Advertised Device: Name: , Address: 6a:6a:6a:5c:c8:e3, serviceUUID: 0xfe9f
Service Data:
UUID: 0xfe9f, Data: Whitelist contains:Assigning scan results...haveName(): 0getName(): Found: 67:0b:e3:42:11:4b  comparing to: a4:c1:38:c5:3e:18
Found: 67:0b:e3:42:11:4b  comparing to: a4:c1:38:a2:2d:de
haveName(): 0getName(): Found: 0c:4b:c9:77:57:3f  comparing to: a4:c1:38:c5:3e:18
Found: 0c:4b:c9:77:57:3f  comparing to: a4:c1:38:a2:2d:de
haveName(): 0getName(): Found: 45:c0:cd:11:2f:00  comparing to: a4:c1:38:c5:3e:18
Found: 45:c0:cd:11:2f:00  comparing to: a4:c1:38:a2:2d:de
haveName(): 0getName(): Found: 5e:ed:34:eb:f0:ad  comparing to: a4:c1:38:c5:3e:18
Found: 5e:ed:34:eb:f0:ad  comparing to: a4:c1:38:a2:2d:de
haveName(): 0getName(): Found: 54:48:e6:ba:45:b7  comparing to: a4:c1:38:c5:3e:18
Found: 54:48:e6:ba:45:b7  comparing to: a4:c1:38:a2:2d:de
haveName(): 1getName(): MJ_HT_V1Found: 58:2d:34:37:34:00  comparing to: a4:c1:38:c5:3e:18
Found: 58:2d:34:37:34:00  comparing to: a4:c1:38:a2:2d:de
haveName(): 0getName(): Found: 6a:6a:6a:5c:c8:e3  comparing to: a4:c1:38:c5:3e:18
Found: 6a:6a:6a:5c:c8:e3  comparing to: a4:c1:38:a2:2d:de
BLE Devices found (total): 7
Iteration 9 - Free heap is 271512
---

For an old ESP32 32S it works as expected:
Found: 54:48:e6:ba:45:b7  comparing to: a4:c1:38:a2:2d:de
haveName(): 0getName(): Found: 6a:6a:6a:5c:c8:e3  comparing to: a4:c1:38:c5:3e:18
Found: 6a:6a:6a:5c:c8:e3  comparing to: a4:c1:38:a2:2d:de
haveName(): 1getName(): mi_mtkFound: 04:cf:8c:78:69:e4  comparing to: a4:c1:38:c5:3e:18
Found: 04:cf:8c:78:69:e4  comparing to: a4:c1:38:a2:2d:de
haveName(): 1getName(): ATC_C53E18Found: a4:c1:38:c5:3e:18  comparing to: a4:c1:38:c5:3e:18 -> Match! Index: 0Length of ServiceData: 15Custom formatFound: a4:c1:38:c5:3e:18  comparing to: a4:c1:38:a2:2d:de
haveName(): 0getName(): Found: 52:04:69:5c:4b:f3  comparing to: a4:c1:38:c5:3e:18
Found: 52:04:69:5c:4b:f3  comparing to: a4:c1:38:a2:2d:de
haveName(): 0getName(): Found: 5e:7f:6f:d5:c8:84  comparing to: a4:c1:38:c5:3e:18
Found: 5e:7f:6f:d5:c8:84  comparing to: a4:c1:38:a2:2d:de
haveName(): 0getName(): Found: 67:38:8f:91:8b:d4  comparing to: a4:c1:38:c5:3e:18
Found: 67:38:8f:91:8b:d4  comparing to: a4:c1:38:a2:2d:de
haveName(): 0getName(): Found: 5d:9d:14:8e:ff:d3  comparing to: a4:c1:38:c5:3e:18
Found: 5d:9d:14:8e:ff:d3  comparing to: a4:c1:38:a2:2d:de
haveName(): 0getName(): Found: a4:c1:38:a2:2d:de  comparing to: a4:c1:38:c5:3e:18
Found: a4:c1:38:a2:2d:de  comparing to: a4:c1:38:a2:2d:de -> Match! Index: 1Length of ServiceData: 15Custom formathaveName(): 0getName(): Found: 44:54:27:54:71:0e  comparing to: a4:c1:38:c5:3e:18
Found: 44:54:27:54:71:0e  comparing to: a4:c1:38:a2:2d:de

Board: esp32-s3-nano clone
ESP32-S3R8
Arduino Version: 2.2.1
Library Version 0.4.2
Using example code

I've tried a basic scan using nimBLE and Bluedroid, both cannot find the LYWSD03MMC - beware of this device if you want to use this library.

Maybe this is a signal strength issue, i.e. the board's BLE radio does not work as good as the one you used previously? It could be

a hardware issue
a Bluetooth core SW issue
an ATC_MiThermometer issue.

You could try https://decoder.theengs.io/ to rule out 1.
Your test with NimBLE and BlueDroid seems to rule out 2.
Maybe you could also enable more debug messages from the BLE core?

Not picked up via theengs - original LYWSD03MMC is found.
Range seems good via the ceramic antenna, picking updates quite far away.
I've started a discussion on NimBLE to see if anyone has any ideas, I've ordered a generic ESP32-S3 dev board to test if it's an issue with the chip or specific to Arduinos implementation of it.

authors: chinswain matthias-bs


text:
How to keep line breaks

Guys could you provide help, how to keep line breaks.
I have a text with paragraphs

First sentence
\n
Next one

I want to satanize it for Telegram bot which don't like
, but seems that paired tags cannot be transformed to something like \n.
Line breaks \nin original text also become wiped.
I'll be grateful for any ideas

I have similar problem in

git status
git add
git commit

"keep_typographic_whitespace": True may help?

+1 on this, I am integrating user-inputted  blocks and I need to keep linebreaks!

authors: Paillat-dev chwilko fliak matthiask

repo: matthiask/html-sanitizer


text:
Thermostat related improvements

I know that this component is not meant to handle thermostats but it works with them perfectly fine and in some cases it is far better than the original one. I would like to propose some tweaks that may make it even better.

Add property that will allow to change the step (for example halves of the value).
Add the ability to change the solid background color in relation to the value.
Add the ability to define the gradient. Could be based on CSS gradients.

Thanks for your awesome work!

I also want to use it as thermostat and the step functionality is exactly what I need.

same for me.

Decimals would indeed be a nice upgrade!

The first feature request is a duplicate of #79. Please go there and like it

authors: GHeiner lorenc88 ndriu ricardoboss xeroxmsj

repo: mattieha/slider-button-card


text:
Support and enforce SSL for external services

Issue
Currently, the only external service I host on Kubernetes (my blog) supports just http connections. I'd like to support, and potentially even force, SSL for all external services I run on Kubernetes.
Implementation
cert-manager appears to be the recommended method for doing this.
Definition of Done

[ ] https://mattjmcnaughton.com works.
[ ] I have some form of monitoring/alerting on SSL certificate expiration.
[ ] Blog post.

Also check out https://github.com/kubernetes-incubator/external-dns for managing external DNS and https://kubernetes.github.io/ingress-nginx/ for managing the ingress.

Once we make this change, add authentication to our applications and expose them publicly.

https://www.youtube.com/watch?v=aN9nVa8yeBo
https://medium.com/@elad.ishay_10522/exposing-kubernetes-workloads-to-the-world-without-losing-sleep-or-your-mind-71776968d3e5
https://www.youtube.com/watch?v=9uU2QMAiZrI


text:
Menu Missing in Strapi Admin

Problem

In the files section for ./src/extensions/ there is not a folder created for menu or menus.
In the Strapi Admin area, there is not a left-hand sidebar menu item for "menus".
Node v16.14.0

Installation
Installed the plugin per the docs.
npm install strapi-plugin-menus

Package.json file now shows the plugin was installed.
  "dependencies": {
    "@strapi/strapi": "4.1.7",
    "strapi-plugin-menus": "^0.2.4"
  },
  "engines": {
    "node": ">=16.x.x",
    "npm": ">=6.0.0"
  },

Config Setup
The docs on Strapi don't explicitly state to "create a config file", but I've tested with and without the example provided. The same results happen either way.
File: ./config/plugins.js
Code:
module.exports = {
  'menus': {
    enabled: true,
    config: {
      maxDepth: 3,
    },
  },
};

Strapi Plugins Menu
In the Strapi admin menu, when you click on "plugins", Menu is present.

+1

yarn build
yarn develop
fixed my issue.

@mattmilburn, yes. I used the npm versions. I had another ticket open, and this was the same solution that fixed both of them.

authors: everythinginjs jared-leddy

repo: mattmilburn/strapi-plugin-menus


text:
notebook Setup error

Env:
OSX yosemite,
python: 2.7.6
Ipython: 3.1.0
java: 1.8.0_40-b27
scala: 2.11.6

Follow instructions here: https://github.com/mattpap/IScala to set it up
change --connection-file to --profile to make it work for ipython
fire up a notebook, try a simple fib function definition:
def fib(n:Int):Int = if (n <= 2) 1 else fib(n-1) + fib(n-2)
try to run it, got following error:

JSON deserialization error: JsResultException(errors:List((/user_variables,List(ValidationError(validate.error.missing-path,WrappedArray())))))
Any help will be appreciated.
Thanks

Same problem for me!

I'm running into the same problem trying to run Scala in a jupyter notebook.  Has anyone found a solution?

Even me!

authors: Prabhusarathy18 crazzle ghost icejungle

repo: mattpap/IScala


text:
[Sapper] "chunk.imports is not iterable" on fresh install

Can't use smelte on a fresh sapper installation, throws chunk.imports is not iterable
npx degit "sveltejs/sapper-template#rollup" app
cd app
node scripts/setupTypeScript.js
npm i
npm i -S smelte

rollup.config.js
npm run dev

same error although not typescript in my case.

Exporting only plugins and inject them as postcss sveltePreprocess option in both client and server seems works but increase a lot build time (~20s+), not an acceptable solution but maybe could help to find the way.
node_modules/smelte/rollup-plugin-smelte.js
// module.exports = (config = {}) =>
//   postcss({
//     plugins: plugins(config),
//     extract: path.resolve("./test/global.css")
//   });
module.exports = (config = {}) => plugins(config)

rollup.config.js
client: {
  svelte({
    preprocess: sveltePreprocess({ postcss: { plugins: smelte() } }),
[...]
server: {
  svelte({
    preprocess: sveltePreprocess({ postcss: { plugins: smelte() } }),

Perhaps this link is helpful?
What smelte/tailwind does is it creates a huge css file and purges it based on the used styles. I'm no expert on sapper, but I think it can have a global css file for the server and individual css files for each route. Probably it makes sense, to put the smelte/tailwind css to the server css file.
I think this is done on the link as a extra process prior to bundling.

Seems to work! See sapper-smelte-app

Alternatively you can look here (sapper-svelte-material-ui). The build process is a bit cleaner. The purge process seems to be hard-coded, though.

This was reported over in the Sapper repo: https://github.com/sveltejs/sapper/issues/1613#issuecomment-717339093. I think the issue is that Smelte is using an old version of Rollup. Can someone try upgrading Rollup and all its plugins to their latest versions?

Experiencing the same issue :/

authors: GitGangGuy benmccann colwilson karlos1337 micha-lmxt

repo: matyunya/smelte


text:
🛑 VQ PROD AR is down

In 2bf55cb, VQ PROD AR (http://demoarg.sidesys.com.ar/virtualqueue/index.html) was down:

HTTP code: 0
Response time: 0 ms

Resolved: VQ PROD AR is back up in fc4bbe7.

repo: mauribesson/upptime


text:
Allow using videos on demand (loop)

Is your feature request related to a problem? Please describe.
No changes needed.
Describe the solution you'd like
A mosaic might be generated from videos on demand instead of using HLS playlists.
Imagine you are streaming a mosaic with 3 videos: 2 live streams and 1 promo video (with a QR code, for example) linking your website. This promo video could be a VoD.
Describe alternatives you've considered
No changes needed.
Additional context
No changes needed.

Solves in #30 pull request.

authors: luiscovelo mauricioabreu

repo: mauricioabreu/mosaic-video


text:
minSdk version should not be declared on manifest

minSdk version should only be declared in build.gradle file as it already is.
Declaring it at AndroidManifest.xml is breaking build on the newer versions of AndroidStudio/Gradle.

Merged! Thank you.


text:
Black Tabs bug in github light theme after update

Hi @richardnassour thanks for you report.
I don't have that issue, can you send what version of ST do you have?

authors: mauroreisvieira richardnassour

repo: mauroreisvieira/github-sublime-theme


text:
VTOL integration test not actually taking off

The VTOL integration test does not actually take off. It auto-disarms straightaway.
The test itself still "passes".

The tests actually work if used with a VTOL.
While looking into it I also fixed a subtle timing issue #1265.

repo: mavlink/MAVSDK


text:
Development

This should be very close to working code, settings are going to be changed later

Conflicts with master solved, merging new logic


text:
Faild to render and update auto layout

I keep getting this error messages since I installed it
bella_ios/Baqshish/Baqshish/Providers.storyboard: error: IB Designables: Failed to render and update auto layout status for HyperRestaurantVC (gvV-JS-DRg): dlopen(MXSegmentedControl.framework, 1): no suitable image found.  Did find:
MXSegmentedControl.framework: required code signature missing for 'MXSegmentedControl.framework'

what have I tried

clean rebuild
close Xcode
restart the OS (worked for a while)

Xcode 9.4
Swift 4

This could help: https://stackoverflow.com/questions/39732312/xcode-8-ib-designables-failed-to-render-and-update-auto-layout-status-the-a

authors: AminFadul maxep

repo: maxep/MXSegmentedControl