text:
Improved CSS styling and fixed layout issues in index.html

I made improvements to the layout and styling of the index.html file to enhance readability and visibility:

Spacing Adjustment: Added spacing in front of the "Welcome to the Ambulance Monitoring System" line to provide better visual structure and make the header stand out.
Footer Improvements: Adjusted the display in the footer section to improve its appearance and alignment. Additionally, I added more space to the contact links, making them more prominent and easier to read for better overall visibility.

These changes improve the user interface by enhancing the spacing and structure of key elements, contributing to a cleaner and more user-friendly design.

@mansiruhil13

@mansiruhil13 Would love to get feedback on this PR!


text:
🛑 Datenwerkbank is down

In 4a4128b, Datenwerkbank (https://www.datenwerkbank.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Datenwerkbank is back up in 1cb7f2d after 1 hour, 51 minutes.

source: gharchive/issue

repo: manueldeutsch/upptime

license: MIT

license_type: permissive

license_source: github-api


text:
Configuration without anonymous functions

Anonymous functions in the config file are elegant, but they do not work properly with exrm, which generates an Erlang-based sys.config file which cannot use the Elixir syntax. IMHO this configuration style is well suited for prototyping but not for production systems.
For an easy configuration a behaviour PhoenixTokenAuth.MailingBehaviour is defined for constructing the three different emails. It is sufficient to configure the name of the implementing module.
For the user model changeset validator a module and function can be configured instead of an anonymous function.

thanks for this. i really like the idea of the mailing behaviour. :+1:

source: gharchive/pull-request

authors: alfert manukall

license: mit

license_source: bigquery


text:
Is it possible to access the value of the v-model?

How can I get the value of the v-model so I can take actions depending on the value? It doesn't seem like you can access the v-model value
//TEMPLATE
<pre>{{id}}</pre> <!-- NO VALUE / NOT REACTIVE -->
<input type="text" v-model="id" name="id">

//COMPONENT
import { createHelpers } from "vuex-map-fields";

const { mapFields } = createHelpers({
  getterType: "applicationModule/getField",
  mutationType: "applicationModule/updateField"
});

@Component({
	computed: {
		...mapFields({
                        `id:` 'newApplication.id',
			name: 'newApplication.name',
			description: 'newApplication.description',
		}),
	}
})

It appears to work when mapping the object instead and accessing the properties on the object in the template:
`
{{app.id}}

@Component({
computed: {
...mapFields({
app: 'newApplication'
}),
}
})
`
Still baffled as to way the first example doesn't work. My state in my module is notated as this:
newApplication: {} as Application .. wondering if it has anything to do with that?

Hey @jonakirke94!
There is a syntax error in the example you've posted: `id:` 'newApplication.id', (the backticks `) around id: please make sure that you don't have this error in your actual code.
If not, please provide a reduced test case on CodeSandbox (you can fork https://codesandbox.io/s/38y88yvoo1).
Thanks!

Closing this because of inactivity. Feel free to open a new issue if this is still a problem. Thx!

repo: maoberlehner/vuex-map-fields


text:
color_property, radius_property not used by ClusteredCircleViz

I'm attempting to use a color_property or radius_property with a ClusteredCircleViz, which the table of params includes. However, from looking at the source and the errors I'm getting, these options don't seem to be present!
Is this an issue with the documentation?

@scwilkinson can you post an example of what you are trying to do? In the source, ClusteredCircleViz takes both color_property and radius_property as keyword arguments. Looks like this is missing from the docs for initializing a ClusteredCircleViz at the moment.

I'm trying to do something like:
import pandas as pd
import os
from mapboxgl.utils import *
from mapboxgl.viz import *

# Load data from sample csv
data_url = 'https://raw.githubusercontent.com/mapbox/mapboxgl-jupyter/master/examples/points.csv'
df = pd.read_csv(data_url)

# Create a geojson file export from a Pandas dataframe
data = df_to_geojson(df,
              properties=['Avg Medicare Payments', 'Avg Covered Charges', 'date'],
                     lat='lat', lon='lon', precision=3)

#Create a clustered circle map
color_stops = create_color_stops([1,10,50,100], colors='BrBG')

viz = ClusteredCircleViz(data,
                          access_token=token,
                          color_stops = color_stops,
                          radius_stops = [[1,5], [10, 10], [50, 15], [100, 20]],
                          cluster_maxzoom = 10,
                          cluster_radius = 30,
                          opacity = 0.9,
                          center = (-95, 40),
                          zoom = 3,
                          color_property = 'Avg Medicare Payments',
                          radius_property = 'Avg Covered Charges'
                        )

viz.show()

However I get:
TypeError: __init__() got an unexpected keyword argument 'color_property'

@akacarlyann I'd like to be able to combine a GraduatedCircleViz with a ClusteredCircleViz in some way. In my case I'm weighting points with some factor and I'd like the size of the cluster circles reflect the sum of these weights.
For example, let's say we've got a list of houses with occupancy. With a ClusteredCircleViz we're forced to have cluster circles that reflect the sum of houses in a region. However, it might be nice to use the sum of occupancies instead. While we could do this with a GraduatedCircleViz, it would be crazy dense, so a ClusteredCircleViz would be awesome!

authors: akacarlyann scwilkinson

repo: mapbox/mapboxgl-jupyter


text:
Prevent Google Translate from showing up randomly

The issue I hoped to fix with https://github.com/mapbox/osmcha-frontend/pull/391 is still there, even tough the ne code is live on production (see below).
A description of the issue is part of the above PR.
Any ideas where this comes from?
<!doctype html><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><meta name="google" value="notranslate"><link rel="shortcut icon" href="https://osmcha.mapbox.com/favicon.ico"><link rel="preconnect" href="https://osmcha-django-staging.tilestream.net"><title>OSM Changeset Analyzer</title><link href="https://osmcha.mapbox.com/static/css/main.cbc6bc3b.css" rel="stylesheet">

I suspect that this is something within your user agent. I've never experienced the described problem, myself.
Adding the meta element to the HTML may, instead, instruct Google to not translate the page containing said meta element.

authors: Lee-Carre tordans

repo: mapbox/osmcha-frontend

license: ISC


text:
in centos 7, bash deploy.sh is wrong

it is wrong.
[root@localhost ~]# curl -OJ https://internal-dependencies.mapd.com/mapd-deps/deploy.sh
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed

100  1768  100  1768    0     0   1050      0  0:00:01  0:00:01 --:--:--  1049
[root@localhost ~]# sudo bash deploy.sh
........................................

FLAG=latest

'[' '' == --testing ']'

sudo wget --continue https://internal-dependencies.mapd.com/mapd-deps/mapd-deps-latest.tar.xz

--2017-05-22 21:47:56--  https://internal-dependencies.mapd.com/mapd-deps/mapd-deps-latest.tar.xz
Resolving internal-dependencies.mapd.com (internal-dependencies.mapd.com)... failed: Name or service not known.
wget: unable to resolve host address ?.nternal-dependencies.mapd.com?

Try running it again, there might just be some intermittent issues with your upstream nameserver. You clearly can resolve it since that's the domain the deploy script was downloaded from, but it might be that the second lookup isn't cached locally and your upstream nameserver fails to resolve again.
If it's still an issue, try adding the following line to your /etc/hosts file:
72.28.97.165 internal-dependencies.mapd.com

after edit "72.28.97.165 internal-dependencies.mapd.com"
[root@localhost ~]# sudo bash deploy.sh
...................................

FLAG=latest

'[' '' == --testing ']'

sudo wget --continue https://internal-dependencies.mapd.com/mapd-deps/mapd-deps-latest.tar.xz

--2017-05-23 03:17:12--  https://internal-dependencies.mapd.com/mapd-deps/mapd-deps-latest.tar.xz
Resolving internal-dependencies.mapd.com (internal-dependencies.mapd.com)... 72.28.97.165
Connecting to internal-dependencies.mapd.com (internal-dependencies.mapd.com)|72.28.97.165|:443... failed: Network is unreachable.

the computer throught  two proxy to internet

Hi
i have just tried to download this bundle from an external network and all appears to be working fine.
please review your network configuration, as this appears to be a network issue on your network side.

If you have no luck with getting the pre built dependencies you can build your own by following the details here
https://github.com/mapd/mapd-core#centos-7
And the script here: https://github.com/mapd/mapd-core/blob/master/scripts/mapd-deps-linux.sh

in mapd-deps-linux.sh:  "download"  refer to ?

Closing, as this appeared to be a network issue, not a MapD issue. Please feel free to open another issue if this behavior persists

authors: andrewseidl dwayneberry randyzwitch xuxilei

repo: mapd/mapd-core


text:
python setup.py install

There was an error：“g++: error: /home/xzl/inplace_abn/build/temp.linux-x86_64-3.7/src/inplace_abn_cuda.o: 没有那个文件或目录
g++: error: /home/xzl/inplace_abn/build/temp.linux-x86_64-3.7/src/inplace_abn.o: 没有那个文件或目录
g++: error: /home/xzl/inplace_abn/build/temp.linux-x86_64-3.7/src/utils.o: 没有那个文件或目录
g++: error: /home/xzl/inplace_abn/build/temp.linux-x86_64-3.7/src/inplace_abn_cpu.o: 没有那个文件或目录
error: command 'g++' failed with exit status 1”when i run 'python setup.py install'

Up
Same issue for me

Did you solve this problem？Same issue for me...

Up
Same issue for me


text:
The "getting started" document is missing

It is unclear how a user goes about loading the data into PostGIS and invoking the matching...

Hi @ptpt, is there a documentation somewhere? :)

Hi @davidlowjw @shankari
You need to have data imported before you use it. Take a look at the data import page: https://github.com/mapillary/map_matching/wiki/Data-Import and when you get the data imported, simply python setup.py install to install the library. And then you can find some examples here https://github.com/mapillary/map_matching/tree/master/examples
The MM algorithm provided by the library is simply a interface to use. Preparing data needed by the algorihm, however, need you to do a lot of work. That's why the example looks scary for the moment (I'm sorry for that). If it works for you I'll think about extract some common utils and put into the library to make it really "work nicely with PostGIS and OSM".
Any problem let me know.

Hello @ptpt,
any progress on this?

Hi all, we have switched to using https://github.com/valhalla/valhalla for performance reason. This repo is therefore inactive. Please take a look at Valhalla. It's easier to get started and much faster.

authors: davidlowjw ptpt sammy-SC shankari


text:
Added validate function to PgConfig and invoked it in finalize and pool initialization

This PR addresses issue #1542, which states that the PostgreSQL pool size should not be allowed to be set to less than 1.
Changes:

Introduced a validate method in the PgConfig struct to check the following:

The pool_size must be greater than or equal to 1.
A connection string must be provided.

Updated the finalize and resolve methods to call the validate method. This ensures that the configuration is validated before proceeding with further processing.

Updated pool.rs, ensures the validation process is integrated when creating a new pool by calling the validate method from the PgConfig instance.

Please review my implementation and provide feedback.

@nyurik Kindly refer to the latest commit I have made.

@nyurik Thanks for merging! Could you please add the "hacktoberfest-accepted" label? Thanks for considering!

@Saru2003 adding labels is only nessesary if a PR is not accepted via an approving review or merged.

repo: maplibre/martin


text:
Refactor mbtiles lib, mbtiles tool tests & CI

Broke up martin-mbtiles into multiple files
Made all mbtiles functions take a SqliteExecutor -- this way they can be used with any SQLX connection structs - either a pool connection or an individual non-pooled connection.
Simplified mbtiles bin a bit - I realized there is really no need to pretty print the output for the single value retrieval. Easier to just dump it to console as is.
Bump martin-mbtiles to v0.2.0
Minor fixes in tools docs, cargo.toml, and justfile
MBTiles tool Integration tests and release publishing

Major thanks to the stackoverflow quick reply by @cafce25 on how to use generic sql executor!
cc: @upsicleclown

Is there changelogs for react e create?

Change log is generated by the releases screen in github

authors: birkskyum nyurik


text:
Couldn't find any package whose name or description matched "libproj0"

no matter i use apt install or aptitude install,it tells me can't find package  libproj0

https://mapproxy.org/docs/1.11.0/install.html
Is it a mistake??

Hi,
Have you try to find another similar library with the command "apt cache
search libproj" ?
Le sam. 29 déc. 2018 à 10:41, YoungHappy notifications@github.com a
écrit :

https://mapproxy.org/docs/1.11.0/install.html
Is it a mistake??
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mapproxy/mapproxy/issues/389#issuecomment-450479798,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AYNMSJ4XUcr0Y7-6Ij5oohXsJtEuhEK3ks5u9ziugaJpZM4Zkf81
.

Thanks for helping，I find it。

repo: mapproxy/mapproxy


text:
async and pyproj issues with Python 3.7 on Windows10

Context
Reinstalling Mapproxy on a fresh Windows10 64 bit server, Apache2 and mod_wsgi (coming from an old Windows Server 2008 32 bits install....).
Encountered 2 issues, one I cannot resolve:

issues that apparently async is a keyword in Python 3.7, so renaming mapproxy.util.asyc.py to async_.py (and all its references like as in https://gitlab.damiens.info/nicolas/mapproxy/commit/ee5c9589274610e43e34f31ac067e949531d9d8e) fixed that error

installing pyproj and using os.environ['MAPPROXY_USE_PYPROJ'] = 'True' in config.py to make MapProxy use pyproj fails, because try_pyproj_import function seems to fail

 def try_pyproj_import():
    try:
        from pyproj import Proj, transform, set_datapath
    except ImportError:
        return False
    log_system.info('using pyproj for coordinate transformation')
    return Proj, transform, set_datapath

installing pyproj and running
 from pyproj import Proj, transform, set_datapath
fails because set_datapath is not available:
ImportError: cannot import name 'set_datapath' from 'pyproj' (C:\Programs\Python37\lib\site-packages\pyproj\__init__.py)
downgrading to pyproj 1.9.6 fixed this:
pip install pyproj==1.9.6
Is this something that can be fixed easily (other then with using the older pyproj)?

We have also faced this issue. We are trying to use Mapproxy on NixOS.
https://github.com/NixOS/nixpkgs/pull/68628
But It breaks with same errors, when latest version of pyproj is used.

MapProxy now supports newer versions of Proj via PyProj. You can test it with:
pip install https://github.com/mapproxy/mapproxy/tarball/master

The async.py issue is also fixed in master.

Thanks for the fix @olt
Any chance for a 1.13 release soon to support latest PROJ versions?

authors: Rakesh4G kalxas olt rduivenvoorde


text:
CordovaGoogleMaps onStop() calls super.onStart()

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

[ ] question
[x] any problem or bug report

OS:  (check one with "x")

[x] Android
[ ] iOS
[ ] Browser

cordova information:  (run $> cordova plugin list)
cordova-plugin-googlemaps 2.4.6 "cordova-plugin-googlemaps"

Related code, data or error log (please format your code or data):
CordovaGoogleMaps.java:489
Issue
I was investigating a crash we had on Android 9 with this plugin (stacktrace for reference)
Caused by java.util.ConcurrentModificationException
       at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:757)
       at java.util.LinkedHashMap$LinkedValueIterator.next(LinkedHashMap.java:785)
       at plugin.google.maps.CordovaGoogleMaps.onStop(CordovaGoogleMaps.java:506)
       at org.apache.cordova.PluginManager.onStop(PluginManager.java:286)
       at org.apache.cordova.CordovaWebViewImpl.handleStop(CordovaWebViewImpl.java:471)
       at org.apache.cordova.CordovaActivity.onStop(CordovaActivity.java:289)
       at android.app.Instrumentation.callActivityOnStop(Instrumentation.java:1432)
       at android.app.Activity.performStop(Activity.java:7653)
       at android.app.ActivityThread.callActivityOnStop(ActivityThread.java:4373)
       at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:4351)
       at android.app.ActivityThread.handleStopActivity(ActivityThread.java:4426)
       at android.app.servertransaction.StopActivityItem.execute(StopActivityItem.java:41)
       at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145)
       at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1948)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:214)
       at android.app.ActivityThread.main(ActivityThread.java:7045)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)

And noticed that the onStop() method is overridden, but calls super.onStart() instead of onStop()

Thanks. Please send a pull request.

repo: mapsplugin/cordova-plugin-googlemaps


text:
Request:  Custom file names for custom metro extract requests

The file name of my first custom metro extract is ex_Gy4qNDDaADes7swaFXr33Wc4JwTVL.osm.pbf
It would be helpful to have a custom file name that uses the name of the area I searched for i.e. Trinidad-and-Tobago.osm.pbf
Even better might be the place name followed by a date that reflects the date of the date of the planet file used to obtain my custom metro extract -  i.e. Trinidad-and-Tobago_20160714.osm.pbf

@sleepylemur / @heffergm it’d be interesting to provide for a (non-unique) name in the ODES service, so that download URLs could be reformatted without losing the long unique identifier:
https://s3.amazonaws.com/mapzen.odes/{guid}/{name}.osm2pgsql-shapefiles.zip

This should have no effect on S3 keys, but may provide a better download experience. The names could be based on WoF as they are now, and need not be returned in the API.

authors: IndyHurt migurski

repo: mapzen/data-pages


text:
Further improve attributes handling

https://github.com/mapzen/mapbox-vector-tile/issues/28
I just found a way to further improve the handling of very diverse property values.
We just need to store some useful info in the dictionnary.
Same test than yesterday.
It took 0:00:06.146955
So we started at
It took 0:04:29.114788
went down to
It took 0:01:35.272449
and now it a matter of seconds
I think this should work and tests are happy. please make sure I don't break anything. ;)

Wow! That's great, thanks!

Looks good to me too.

authors: loicgasser rmarianski zerebubuth

repo: mapzen/mapbox-vector-tile


text:
🛑 Rancher is down

In 9f9b6ca, Rancher (https://rancher.bojko.eu) was down:

HTTP code: 523
Response time: 767 ms

Resolved: Rancher is back up in c90737e.

repo: marcinbojko/upptime


text:
Mail Guido Ottobre 2023

creazione di un database per velocizzare la ricerca (i risultati non vengono direttamente da OPS)
escludere pubblicazioni con kind code (codice finale) T, T1, T2,... D, D1, D2,...
dare priorità a pubblicazioni EP, WO, US, GB, DE, FR, IT,...
aggiungere graficamente oltre al campo "letto" e "nuovo" un campo "preferito" (stella?)
creare cache risultati preferiti (database dei preferiti) sui quali poter svolgere un'ulteriore interrogazione periodica (ogni giorno) per informare con alert su eventuali pubblicazioni con kind code B, B1, B2,... oppure C, C1, C2,...
per problema pubblicazioni in caratteri cinesi/coreani, ecc. imporre un requisito di lingua?

Fatto:
escludere pubblicazioni con kind code (codice finale) T, T1, T2,... D, D1, D2,...
dare priorità a pubblicazioni EP, WO, US, GB, DE, FR, IT,...

Il 5. dipende dall' 1.
Per il 6. vedremo.

repo: marco-svitol/quaestio-be


text:
🛑 Video Call is down

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

HTTP code: 0
Response time: 0 ms

Resolved: Video Call is back up in 6901b36.

repo: marcoadasilvaa/health


text:
🛑 Video Call is down

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

HTTP code: 0
Response time: 0 ms

Resolved: Video Call is back up in ad956e4.


text:
🛑 Web Patient is down

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

HTTP code: 403
Response time: 19 ms

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


text:
🛑 Video Call is down

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

HTTP code: 0
Response time: 0 ms

Resolved: Video Call is back up in c0f155e.


text:
cleanup nimview.nimble

Currently, there are a lot of build steps included in the nimview.nimble file which makes it hard to read.
This can probably be replaced be some nakefile or some build script that creates the c and python libraries.

https://github.com/marcomq/nimview/commit/ef505d257d38f189758bd1ae04f7703f562db397

repo: marcomq/nimview


text:
Bootstrap like nav-bar

Thanks for the awesome library but i have some question I am new to this Vue-Material.

Can we integrate with the bootstrap?
How to achieve nav-bar like bootstrap. Bootstrap provides link in header and when the screen resizes it automatically converted to side nav can we achieve this things with this library? I have searched so much but could not find anything.

Thanks for help

TLDR; the answer is 'kinda'.
So, the components you're looking for are here:

https://vuematerial.github.io/#/components/toolbar
https://vuematerial.github.io/#/ui-elements/layout

In order to have the automatic collapsing, you need to do a little work, there's nothing built in to do it for you. You can use a md-layout inside of the toolbar, to layout it's contents. Then for the elements that you want to hide, you can set the md-hide-{size} property on, hiding them when the screen size is small. However, there's no way to only show something at smaller sizes, so you'll have to write your own css classes; here's an example:
.show-small {
    @media(min-width:960px)
    {
        display: none !important;
    }
}

Not that this is optimal, by any means, but it's doable (and I'm currently doing this for my vue material sites). I ended up stealing Bootstrap's hidden-{size}-up and hidden-{size}-down scss code... if anyone's interested, I'll throw a cleaned up version into a gist.

Thanks @Morgul for your response. can you provide simple example of auto collapsing? It will be very helpful for me.

authors: Morgul jayminpanchal

repo: marcosmoura/vue-material


text:
Is there a way of labelling tests like you would label equations in latex?

I would like to have a way of putting my documentation along with the tests so that section numbers and function numbers are automatically generated. I'm happy to hack on this feature if someone can tell me where to start looking to do this.
The code that's want to write looks something like this:
(fact  "section 1"
"this is an example of division:"
(label "one")
(/ 2 2) => 1
  "refer to Eq {{one}} for the example")

And it should generate markdown to look something like this:

section 1
this is an example of division:
(/ 2 2) => 1               Eq 1.1

Refer to Eq 1.1 for the example

I think this is outside the scope of Midje.

authors: marick zcaudate

repo: marick/Midje


text:
Go to definition for require in nodejs

Many times, when i import external libraries via CommonJs, i would like to see the object properties for imported objects.
for example, i would like to know the internals of say, Connection object in this case
var Connection = require('ssh2');

I didn't see support in ternjs via emacs, so i wrote this tiny lib file. On function/command invocation from a line tha contains require statement, the lib takes the imported module's name and go to the "module.exports" assignment statement in ssh2 module's entry point, possibly index.js:::::
(require 's)
(require 'json)
(defun last-index-of (regex str &optional ignore-case)
  (let ((start 0)
        (case-fold-search ignore-case)
        idx)
    (while (string-match regex str start)
      (setq idx (match-beginning 0))
      (setq start (match-end 0)))
    idx))

(defun tern-goto-def-require ()
  (interactive)
   (defvar start-index 0)
   (defvar end-index 0)
   (setq myStr (thing-at-point 'line))
   (setq start-index  (s-index-of "require" myStr))
   (when start-index
       (setq start-index (+ start-index 9))
       (setq last-index (last-index-of "\'" myStr))
       (setq lib (substring myStr start-index last-index))
       (setq basedir default-directory)
       (setq projectdir (concat basedir "node_modules" "/" lib))
       (setq conffile (concat projectdir "/" "package.json"))
       (setq mainfile (cdr (assoc 'main (json-read-file conffile))))
       (cond ((s-blank? mainfile) (setq mainfile "index.js"))
	     (t (setq indexfile (concat projectdir (substring mainfile 1)))))
       (unless (s-ends-with? ".js" indexfile)
	 (setq indexfile (concat indexfile ".js")))
       (switch-to-buffer (find-file indexfile))
       (goto-char (search-forward "module.exports")))
;;       (message indexfile)
   (unless start-index
     (message "the current line doesn't import any module")))

Marij, is this feature already present in ternjs. if not, it is worth considering to add it in this form (or) in any convenient form.

I think patch ba28ef09771 will help -- it allows you to press Alt-. after a parenthesized expression. So if you put the cursor after require("..."), you can jump to the required file (or the actual definition, if it assigns to module.exports). Does that solve your problem?

repo: marijnh/tern


text:
Component Button

Se agrego funcionalidad al boton blog y se integro firestore

Cerrado


text:
Problem placing two charts on one page

Describe the bug
When two charts are on one razor page, a null reference exception is thrown.
Which Blazor project type is your bug related to?

Client-Side

Which charts does this bug apply to?
Scatter
To Reproduce
A project to reproduce the problem is here: https://github.com/MajorMajor0/NateSucksAtPunchout
Build and surf to charts and you will get the error. Comment out Charts.Razor lines 8, 32-34 (removes the first chart) and the problem goes away. Restore those and comment out lines 12, 37-39 (removes the second chart) and the problem goes away again.
The problem comes up if both charts are displayed but either chart works perfectly alone
Expected behavior
Two charts on one page with no exception.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context / logging
warn: Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer[100]
Unhandled exception rendering component: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at ChartJs.Blazor.Charts.ChartJsScatterChart.BuildRenderTree(RenderTreeBuilder __builder)
at Microsoft.AspNetCore.Components.ComponentBase.<.ctor>b__6_0(RenderTreeBuilder builder)
at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderInExistingBatch(RenderQueueEntry renderQueueEntry)
at Microsoft.AspNetCore.Compnents.RenderTree.Renderer.ProcessRenderQueue()
Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer: Warning: Unhandled exception rendering component: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at ChartJs.Blazor.Charts.ChartJsScatterChart.BuildRenderTree(RenderTreeBuilder __builder)
at Microsoft.AspNetCore.Components.ComponentBase.<.ctor>b__6_0(RenderTreeBuilder builder)
at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderInExistingBatch(RenderQueueEntry renderQueueEntry)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()
fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
Unhandled exception in circuit 'EA5dGGe5y4h7J4Phs9eWubVcfHETPXjE_JxLuZDkZtY'.
System.NullReferenceException: Object reference not set to an instance of an object.
at ChartJs.Blazor.Charts.ChartJsScatterChart.BuildRenderTree(RenderTreeBuilder __builder)
at Microsoft.AspNetCore.Components.ComponentBase.<.ctor>b__6_0(RenderTreeBuilder builder)
at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderInExistingBatch(RenderQueueEntry renderQueueEntry)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()
Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost: Error: Unhandled exception in circuit 'EA5dGGe5y4h7J4Phs9eWubVcfHETPXjE_JxLuZDkZtY'.
System.NullReferenceException: Object reference not set to an instance of an object.
at ChartJs.Blazor.Charts.ChartJsScatterChart.BuildRenderTree(RenderTreeBuilder __builder)
at Microsoft.AspNetCore.Components.ComponentBase.<.ctor>b__6_0(RenderTreeBuilder builder)
at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderInExistingBatch(RenderQueueEntry renderQueueEntry)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()

Thanks for contacting us.
The error is in your code. The way you're using Task.Run in Charts.Razor.cs is very dangerous and causes undefined behaviour like you've just experienced yourself. Instead make the method synchronous or even better use ToListAsync() when fetching your players.
Avoid using Task.Run just to make something async unless you really know what you're doing. Especially in a web context it can be dangerous to use. Also I know this is a repro project but there are lots of redundancies in your code. If it was more organized, you might've been able to find the bug yourself :)
Meaning instead of
await Task.Run(() =>
{
    var players = context.Players.Include(x => x.Finishes).ThenInclude(x => x.YearNavigation).ToList();

    foreach (Player player in players)
    {
        ...
    }
});

you do
var players = await context.Players.Include(x => x.Finishes).ThenInclude(x => x.YearNavigation).ToListAsync();

foreach (Player player in players)
{
    ...
}

Below is the patch file for the fix (you can apply it with git apply).
diff --git a/NateSucksAtPunchout/Pages/Charts.Razor.cs b/NateSucksAtPunchout/Pages/Charts.Razor.cs
index cc63f29..d29d277 100644
--- a/NateSucksAtPunchout/Pages/Charts.Razor.cs
+++ b/NateSucksAtPunchout/Pages/Charts.Razor.cs
@@ -24,28 +24,26 @@ namespace NateSucksAtPunchout.Pages
 		{
 			List<ScatterDataset> returner = new List<ScatterDataset>();

-			await Task.Run(() =>
-			{
-				var players = context.Players.Include(x => x.Finishes).ThenInclude(x => x.YearNavigation).ToList();
+			var players = await context.Players.Include(x => x.Finishes).ThenInclude(x => x.YearNavigation).ToListAsync();

-				foreach (Player player in players)
+			foreach (Player player in players)
+			{
+				string color = ColorUtil.RandomColorString();
+				ScatterDataset sds = new ScatterDataset
 				{
-					string color = ColorUtil.RandomColorString();
-					ScatterDataset sds = new ScatterDataset
-					{
-						BackgroundColor = color,
-						BorderColor = color,
-						ShowLine = true,
-						LineTension = 0,
-						PointRadius = 5,
-						PointHitRadius = 5,
-						PointHoverRadius = 8
-					};
-					sds.Label = player.FirstName;
-					sds.Data = player.GetCumulativeWinnings();
-					returner.Add(sds);
-				}
-			});
+					BackgroundColor = color,
+					BorderColor = color,
+					ShowLine = true,
+					LineTension = 0,
+					PointRadius = 5,
+					PointHitRadius = 5,
+					PointHoverRadius = 8
+				};
+
+				sds.Label = player.FirstName;
+				sds.Data = player.GetCumulativeWinnings();
+				returner.Add(sds);
+			}

 			return returner;
 		}
@@ -59,28 +57,25 @@ namespace NateSucksAtPunchout.Pages
 		{
 			List<ScatterDataset> returner = new List<ScatterDataset>();

-			await Task.Run(() =>
-			{
-				var players = context.Players.Include(x => x.Finishes).ThenInclude(x => x.YearNavigation).ToList();
+			var players = await context.Players.Include(x => x.Finishes).ThenInclude(x => x.YearNavigation).ToListAsync();

-				foreach (Player player in players)
+			foreach (Player player in players)
+			{
+				string color = ColorUtil.RandomColorString();
+				ScatterDataset sds = new ScatterDataset
 				{
-					string color = ColorUtil.RandomColorString();
-					ScatterDataset sds = new ScatterDataset
-					{
-						BackgroundColor = color,
-						BorderColor = color,
-						ShowLine = true,
-						LineTension = 0,
-						PointRadius = 5,
-						PointHitRadius = 5,
-						PointHoverRadius = 8
-					};
-					sds.Label = player.FirstName;
-					sds.Data = player.GetNormalizedCumulativeWinnings(normalizedTo);
-					returner.Add(sds);
-				}
-			});
+					BackgroundColor = color,
+					BorderColor = color,
+					ShowLine = true,
+					LineTension = 0,
+					PointRadius = 5,
+					PointHitRadius = 5,
+					PointHoverRadius = 8
+				};
+				sds.Label = player.FirstName;
+				sds.Data = player.GetNormalizedCumulativeWinnings(normalizedTo);
+				returner.Add(sds);
+			}

 			return returner;
 		}
diff --git a/NateSucksAtPunchout/Pages/Charts.razor b/NateSucksAtPunchout/Pages/Charts.razor
index ea12092..cd09a6a 100644
--- a/NateSucksAtPunchout/Pages/Charts.razor
+++ b/NateSucksAtPunchout/Pages/Charts.razor
@@ -5,7 +5,7 @@

Charts

-	@*<ChartJsScatterChart @ref="cumulativeWinningsChart" Config="@cumulativeWinningsConfig" Width="600" Height="300" />*@
+	<ChartJsScatterChart @ref="cumulativeWinningsChart" Config="@cumulativeWinningsConfig" Width="600" Height="300" />

@@ -29,9 +29,9 @@
 	{
 		using (DataModel.BigGameStatsContext context = new DataModel.BigGameStatsContext())
 		{
-			//cumulativeWinningsConfig = LoadConfig("Cumulative Winnings");
-			//var cumulativeWinningDataSets = await GetCumulativeWinningDataSetsAsync(context);
-			//cumulativeWinningsConfig.Data.Datasets.AddRange(cumulativeWinningDataSets);
+			cumulativeWinningsConfig = LoadConfig("Cumulative Winnings");
+			var cumulativeWinningDataSets = await GetCumulativeWinningDataSetsAsync(context);
+			cumulativeWinningsConfig.Data.Datasets.AddRange(cumulativeWinningDataSets);

 			double norm = 200;
 			normalizedWinningsConfig = LoadConfig($"Winnings Normalized to ${norm}");

Happy coding


text:
add conditional for ES2015 modules not transpiled with Babel

Fixes https://github.com/markdalgleish/static-site-generator-webpack-plugin/issues/46
See https://github.com/markdalgleish/static-site-generator-webpack-plugin/issues/46#issuecomment-241088084

Coverage remained the same at 100.0% when pulling a728ad711d0deec78c9fa2e08b289cd71596d280 on sidjain26:master into 997318a3fccc765dfdf77bed6891bd1be20b0ed5 on markdalgleish:master.

Coverage remained the same at 100.0% when pulling 8a8fbe842147928e0a6675d81abec90599cf8129 on sidjain26:master into 997318a3fccc765dfdf77bed6891bd1be20b0ed5 on markdalgleish:master.

Thank you so much for this :+1:

authors: coveralls markdalgleish sidjain26


text:
Help with a simple plugin

I want to create a plugin that parses out [Name]{JSON} where Name is some arbitrary string and JSON can be parsed with JSON.parse. I thought it would be as easy as looking at the link example, but it doesnt appear to be that simple.

What kind of help do you expect? We do not write plugins by request.

I get that, I'm just unable to figure out where I should start. I read through the docs here:
https://github.com/markdown-it/markdown-it/blob/master/docs/architecture.md
https://github.com/markdown-it/markdown-it/blob/master/docs/development.md
But when I look through the source code, there just appears to be a lot more going on. I think it would be great if there were an example of a parser that parses for text between two arbitrary tokens and adds that to the rule chain. I couldnt find any existing plugins that do something simple like that.
Even the backticks file is hard for me to follow:
https://github.com/markdown-it/markdown-it/blob/master/lib/rules_inline/backticks.js

https://www.npmjs.org/browse/keyword/markdown-it-plugin i'd suggest to search npm for plugins. There should be a lot of simple things. Current situation is, that markdown-it's entry level is above average, and we have no resources to write detailed tutorials for novices. Because that can fall into big book about parsers and programming. So, requests about docs/tutorials improve are not accepted as "endless", only via PR. We can help only when one already tried to implement plugin and has more concrete technical questions.

authors: ccorcos puzrin

repo: markdown-it/markdown-it


text:
🛑 UnLock is down

In 1434092, UnLock (https://unlockb2b.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: UnLock is back up in 65e0041 after 7 minutes.

repo: marketlend/uptime-dashboard


text:
Various improvements to python-template

[ ] Update the directory structure
[x] Install pre-commit and add pre-commit-config.yaml #26

black
isort
autoflake

[ ] Add GH workflows

[ ] Add a cache action, see documentation here and here

[x] Add devcontainer.json #27
[x] Add the MIT License file
[ ] Add PR and issues templates

For the new directory structure, see here for reference: https://realpython.com/python-application-layouts/#application-with-internal-packages
The new directory structure should look like this:
python-template/
│
│
├── docs/
│   ├── package_01.md
│   └── package_02.md
│
├── application/
│   ├── __init__.py
│   ├── main.py
│   ├── package_01/
│   │   ├── __init__.py
│   │   ├── helpers.py
│   │   └── something.py
│   │
│   └── package_02/
│       ├── __init__.py
│       ├── helpers.py
│       └── something_else.py
│
├── data/
│   └── data.csv
│
├── tests/
│   ├── package_01
│   │   ├── helpers_tests.py
│   │   └── something_tests.py
│   │
│   └── package_02/
│       ├── helpers_tests.py
│       └── something_else_tests.py
│
├── .gitignore
├── LICENSE
└── README.md

Useful reads for the Cache action:

https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows
https://github.com/marketplace/actions/cache

Useful reads for using Poetry in a GH action

https://jacobian.org/til/github-actions-poetry/
https://python-poetry.org/docs/#ci-recommendations


text:
Host not getting blacklisted

In this example, the preferred host is rh7v-intel64-90-test-19 and the blacklist contains rh7v-intel64-90-test-19.marklogic.com . Hence the host is not blacklisted as can be seen in the log
	@Test
	public void testBlackList() throws Exception{
		Assume.assumeTrue(hostNames.length > 1);

		final String query1 = "fn:count(fn:doc())";

		FilteredForestConfiguration forestConfig = null;
		DocumentMetadataHandle meta6 = new DocumentMetadataHandle().withCollections("NoHost").withQuality(0);

		Assert.assertTrue(dbClient.newServerEval().xquery(query1).eval().next().getNumber().intValue() == 0);

		WriteBatcher ihb2 =  dmManager.newWriteBatcher();
	forestConfig  = new   FilteredForestConfiguration(dmManager.readForestConfig()).withBlackList(hostNames[0]);
			ihb2.withBatchSize(50).withForestConfig(forestConfig);

	ihb2.onBatchSuccess(
		        batch -> {
		        	}
		        )
		        .onBatchFailure(
		          (batch, throwable) -> {
		        	  throwable.printStackTrace();

		          }
		);
		for (int j =0 ;j < 1000; j++){
			String uri ="/local/string-"+ j;
			ihb2.addAs(uri, meta6 , jsonNode);
		}

		ihb2.flushAndWait();
		Assert.assertTrue(dbClient.newServerEval().xquery(query1).eval().next().getNumber().intValue() == 1000);

	}

Log:

19:12:18.836 [main] DEBUG c.m.client.impl.JerseyServices - Connecting to rh7v-intel64-90-test-19 at 8000 as admin
19:12:19.492 [main] DEBUG c.m.client.impl.JerseyServices - Getting internal/forestinfo as application/json
19:12:19.789 [main] DEBUG c.m.client.impl.JerseyServices - Posting eval
19:12:19.914 [main] DEBUG c.m.client.impl.JerseyServices - Getting internal/forestinfo as application/json
19:12:19.946 [main] INFO  c.m.c.d.impl.WriteBatcherImpl - (withForestConfig) Using [rh7v-intel64-90-test-21.marklogic.com, rh7v-intel64-90-test-19, rh7v-intel64-90-test-20.marklogic.com] hosts with forests for "WriteHostBatcher"
19:12:19.946 [main] DEBUG c.m.client.impl.JerseyServices - Connecting to rh7v-intel64-90-test-21.marklogic.com at 8000 as admin
19:12:20.133 [main] INFO  c.m.c.d.impl.WriteBatcherImpl - Adding DatabaseClient on port 8000 for host "rh7v-intel64-90-test-21.marklogic.com" to the rotation
19:12:20.133 [main] INFO  c.m.c.d.impl.WriteBatcherImpl - Adding DatabaseClient on port 8000 for host "rh7v-intel64-90-test-19" to the rotation
19:12:20.133 [main] DEBUG c.m.client.impl.JerseyServices - Connecting to rh7v-intel64-90-test-20.marklogic.com at 8000 as admin
19:12:20.351 [main] INFO  c.m.c.d.impl.WriteBatcherImpl - Adding DatabaseClient on port 8000 for host "rh7v-intel64-90-test-20.marklogic.com" to the rotation
19:12:20.367 [main] DEBUG c.m.client.impl.JerseyServices - Getting internal/forestinfo as application/json
19:12:20.429 [main] INFO  c.m.c.d.impl.WriteBatcherImpl - (withForestConfig) Using [rh7v-intel64-90-test-21.marklogic.com, rh7v-intel64-90-test-19, rh7v-intel64-90-test-20.marklogic.com] hosts with forests for "WriteHostBatcher"
19:12:20.445 [main] INFO  c.m.c.d.impl.WriteBatcherImpl - threadCount=1
19:12:20.445 [main] INFO  c.m.c.d.impl.WriteBatcherImpl - batchSize=50
19:12:20.492 [main] DEBUG c.m.client.impl.JerseyServices - Posting documents
19:12:20.492 [main] DEBUG c.m.client.impl.JerseyServices - Sending multipart for /v1/documents
19:12:20.492 [pool-1-thread-1] DEBUG c.m.client.impl.JerseyServices - Posting documents
19:12:20.492 [pool-1-thread-1] DEBUG c.m.client.impl.JerseyServices - Sending multipart for /v1/documents
19:12:22.428 [pool-1-thread-1] DEBUG c.m.client.impl.JerseyServices - Posting documents
19:12:22.428 [pool-1-thread-1] DEBUG c.m.client.impl.JerseyServices - Sending multipart for /v1/documents
19:12:22.428 [main] DEBUG c.m.client.impl.JerseyServices - Posting documents
19:12:22.428 [main] DEBUG c.m.client.impl.JerseyServices - Sending multipart for /v1/documents
19:12:24.427 [pool-1-thread-1] DEBUG c.m.client.impl.JerseyServices - Posting documents
19:12:24.427 [pool-1-thread-1] DEBUG c.m.client.impl.JerseyServices - Sending multipart for /v1/documents
19:12:24.428 [main] DEBUG c.m.client.impl.JerseyServices - Posting documents
19:12:24.428 [main] DEBUG c.m.client.impl.JerseyServices - Sending multipart for /v1/documents
19:12:24.974 [pool-1-thread-1] DEBUG c.m.client.impl.JerseyServices - Posting documents
19:12:24.974 [pool-1-thread-1] DEBUG c.m.client.impl.JerseyServices - Sending multipart for /v1/documents
19:12:25.037 [main] DEBUG c.m.client.impl.JerseyServices - Posting documents
19:12:25.037 [main] DEBUG c.m.client.impl.JerseyServices - Sending multipart for /v1/documents
19:12:25.318 [pool-1-thread-1] DEBUG c.m.client.impl.JerseyServices - Posting documents
19:12:25.318 [pool-1-thread-1] DEBUG c.m.client.impl.JerseyServices - Sending multipart for /v1/documents
19:12:25.442 [main] DEBUG c.m.client.impl.JerseyServices - Posting documents
19:12:25.442 [main] DEBUG c.m.client.impl.JerseyServices - Sending multipart for /v1/documents
19:12:25.553 [pool-1-thread-1] DEBUG c.m.client.impl.JerseyServices - Posting documents
19:12:25.553 [pool-1-thread-1] DEBUG c.m.client.impl.JerseyServices - Sending multipart for /v1/documents
19:12:25.802 [main] DEBUG c.m.client.impl.JerseyServices - Posting documents
19:12:25.802 [main] DEBUG c.m.client.impl.JerseyServices - Sending multipart for /v1/documents
19:12:25.849 [pool-1-thread-1] DEBUG c.m.client.impl.JerseyServices - Posting documents
19:12:25.849 [pool-1-thread-1] DEBUG c.m.client.impl.JerseyServices - Sending multipart for /v1/documents
19:12:26.161 [main] DEBUG c.m.client.impl.JerseyServices - Posting documents
19:12:26.161 [main] DEBUG c.m.client.impl.JerseyServices - Sending multipart for /v1/documents
19:12:26.255 [pool-1-thread-1] DEBUG c.m.client.impl.JerseyServices - Posting documents
19:12:26.255 [pool-1-thread-1] DEBUG c.m.client.impl.JerseyServices - Sending multipart for /v1/documents
19:12:26.660 [main] INFO  c.m.c.d.impl.WriteBatcherImpl - flushing 0 queued docs
19:12:26.660 [pool-3-thread-1] DEBUG c.m.client.impl.JerseyServices - Posting documents
19:12:26.660 [pool-3-thread-1] DEBUG c.m.client.impl.JerseyServices - Sending multipart for /v1/documents
19:12:26.708 [pool-1-thread-1] DEBUG c.m.client.impl.JerseyServices - Posting documents
19:12:26.708 [pool-1-thread-1] DEBUG c.m.client.impl.JerseyServices - Sending multipart for /v1/documents
19:12:27.473 [pool-1-thread-1] DEBUG c.m.client.impl.JerseyServices - Posting documents
19:12:27.473 [pool-1-thread-1] DEBUG c.m.client.impl.JerseyServices - Sending multipart for /v1/documents
19:12:27.566 [pool-3-thread-1] DEBUG c.m.client.impl.JerseyServices - Posting documents
19:12:27.566 [pool-3-thread-1] DEBUG c.m.client.impl.JerseyServices - Sending multipart for /v1/documents
19:12:27.831 [pool-1-thread-1] DEBUG c.m.client.impl.JerseyServices - Posting documents
19:12:27.831 [pool-1-thread-1] DEBUG c.m.client.impl.JerseyServices - Sending multipart for /v1/documents
19:12:28.086 [main] DEBUG c.m.client.impl.JerseyServices - Posting eval
S is true
WriteHostBatcher-1

WriteHostBatcher-2

WriteHostBatcher-3

If I understand correctly, you're asking for a feature that allows us to black-list a host using an alternate hostname to the one used by the server.  We won't be going that far.  If a customer would like that feature, they're welcome to write their own implementation of ForestConfiguration.  FilteredForestConfiguration was always just intended as a convenience and an example of what's possible.

Sam,
I see a discrepancy between the behavior of withWhitelist and withBlacklist methods. I create the client using hostname "rh7v-intel64-90-test-16" . The other hosts in the cluster are rh7v-intel64-90-test-17.marklogic.com, rh7v-intel64-90-test-18.marklogic.com.

When I blacklist "rh7v-intel64-90-test-16.marklogic.com", the forest configuration is

11:54:59.994 [main] INFO  c.m.c.d.impl.WriteBatcherImpl - (withForestConfig) Using [rh7v-intel64-90-test-17.marklogic.com, rh7v-intel64-90-test-16, rh7v-intel64-90-test-18.marklogic.com] hosts with forests for "WriteHostBatcher"

When I whitelist "rh7v-intel64-90-test-16.marklogic.com", the forest configuration is

11:45:26.494 [main] INFO  c.m.c.d.impl.WriteBatcherImpl - (withForestConfig) Using [rh7v-intel64-90-test-16.marklogic.com] hosts with forests for "WriteHostBatcher"
@Test
	public void testBlackWhiteList() throws Exception{
		Assume.assumeTrue(hostNames.length > 1);
		final String query1 = "fn:count(fn:doc())";
		DatabaseClient dbClient = DatabaseClientFactory.newClient("rh7v-intel64-90-test-16", 8000, "admin", "admin", Authentication.DIGEST);
		DataMovementManager dmManager = dbClient.newDataMovementManager();
		FilteredForestConfiguration forestConfig = null;
		DocumentMetadataHandle meta6 = new DocumentMetadataHandle().withCollections("NoHost").withQuality(0);

		WriteBatcher ihb2 =  dmManager.newWriteBatcher();
		forestConfig  = new   FilteredForestConfiguration(dmManager.readForestConfig()).withWhiteList("rh7v-intel64-90-test-16.marklogic.com");
		//forestConfig  = new   FilteredForestConfiguration(dmManager.readForestConfig()).withBlackList("rh7v-intel64-90-test-16.marklogic.com");
		ihb2.withBatchSize(50).withForestConfig(forestConfig);

		ihb2.onBatchSuccess(
		        batch -> {
		        	}
		        )
		        .onBatchFailure(
		          (batch, throwable) -> {
		        	  throwable.printStackTrace();

		          }
		);
		for (int j =0 ;j < 1000; j++){
			String uri ="/local/string-"+ j;
			ihb2.addAs(uri, meta6 , jsonNode);
		}

		ihb2.flushAndWait();
		Assert.assertTrue(dbClient.newServerEval().xquery(query1).eval().next().getNumber().intValue() == 1000);

	}

That's an interesting discrepancy, and may point to a future flaw.  At the moment I don't see it as a problem.  It probably has something to do with the feature we added to /v1/internal/forestinfo which attempts to rename the host you're talking to with the hostname you used for the connection.  Could you log this info in another issue so we can keep this one closed?  Unless you'd like to make a case for how they are the same issue.

I have restated the original issue (host not getting blacklisted) differently in my previous comment.  If db client is created using
DatabaseClient dbClient = DatabaseClientFactory.newClient("rh7v-intel64-90-test-16", 8000, "admin", "admin", Authentication.DIGEST);
preferred host is:  rh7v-intel64-90-test-16
Forest host (forest.getHost()):   rh7v-intel64-90-test-16.marklogic.com
Alternate :null
Open replica :rh7v-intel64-90-test-16
BlackList logic:
Since the preferred host is "rh7v-intel64-90-test-16" and the blacklist host is "rh7v-intel64-90-test-16.marklogic.com",  the  if ( blackList.contains(forest.getPreferredHost()) ) condition fails and hence the host is not blacklisted
if ( blackList.size() > 0 ) {
      replaced = replaced.map( forest -> {
        if ( blackList.contains(forest.getPreferredHost()) ) {
------
                 } else {
          return forest;
        }

WhiteList logic:
"rh7v-intel64-90-test-16.marklogic.com" is part of validHosts array and
following the code below, it determines the host using
String host = forest.getHost();
and returns the ForestImpl instance created with "rh7v-intel64-90-test-16.marklogic.com"
 if ( whiteList.size() > 0 ) {
      replaced = replaced.map( forest -> {
        if ( ! whiteList.contains(forest.getPreferredHost()) ) {
          if ( validHosts.length == 0 ) {
            throw new IllegalStateException("White list or black list rules are too restrictive:" +
              " no valid hosts are left");
          }
          // this forest has a preferred host which is not white-listed, so let's
          // replace it with an acceptable (valid) host
          String openReplicaHost = forest.getOpenReplicaHost();
          if ( ! whiteList.contains(openReplicaHost) ) {
            openReplicaHost = replaceHost(openReplicaHost, validHosts);
          }
          String alternateHost = forest.getAlternateHost();
          if ( ! whiteList.contains(alternateHost) ) {
            alternateHost = replaceHost(alternateHost, validHosts);
          }
          String host = forest.getHost();
          if ( ! whiteList.contains(host) ) {
            host = replaceHost(host, validHosts);
          }
          return new ForestImpl(host, openReplicaHost, alternateHost, forest.getDatabaseName(),
            forest.getForestName(), forest.getForestId(), forest.isUpdateable(), false);
        } else {
          return forest;
        }

Closing this issue and opening a new issue for discrepancy in behavior between white and black listing

authors: sammefford srinathgit

repo: marklogic/java-client-api


text:
expose req object to the context

allows to interact with the request object directly in the handler. Would probably create res alias for out as well to make it consistent.

@rainder Dont forget to sign the cla. This would actually be really helpful for parsing request cookies.

authors: KofiShango rainder

repo: marko-js/marko-starter-generic-server


text:
Remove match and therefore dependency on Python 3.10

As requested.

Incredibly based recommendation

Thank you!

authors: deavmi jacobeva markqvist

repo: markqvist/Reticulum


text:
Implement image embedding API

Add the image embedding API to the library. This should be fairly similar to the existing audio API. I'll add a candidate interface once I've given it more thought.

Perhaps it’s time to revisit this (post icassp)?

Yes.
Here are my thoughts for how we could address this without significant change to the API. Basically, for all of the functions we'd add a modality kwarg.
openl3.core.get_embedding(audio, sr, modality='audio', input_repr='mel256', content_type='music', embedding_size=6144, center=True, hop_size=0.1, verbose=1)
openl3.core.process_file(filepath, output_dir=None, suffix=None, , modality='audio', input_repr='mel256', content_type='music', embedding_size=6144, center=True, hop_size=0.1, verbose=True)
openl3.models.get_embedding_model(input_repr, content_type, embedding_size, modality='audio')
openl3.models.get_embedding_model_path(input_repr, content_type, modality='audio')

This makes it backwards compatible while allowing for the image embeddings to be extracted. My fear is that adding *_image_* versions of functions would crowd the API and also make the naming convention inconsistent since the audio things wouldn't be named *_audio_*. We'd have to specify that things like hop size would be ignored. And we'd have to be clear about that input_repr (for the spectrogram) still affects the image embedding. Additionally, we'd have to support 8192 embedding size for images (that's what's used in the original L3 paper). We'll have to add checks in various places to make sure that embedding sizes > 512 correspond to the correct modality (i.e. 8192 -> image, 6144 -> audio).
Thoughts?

I agree this would be the most backwards compatible option, but I'm not convinced it's better than breaking the current API in favor of transitioning to separate functions for audio/image. My concern with maintaining the current API is that it can create a lot of ambiguity as to which embedding is being extracted, and having shared parameters but with different allowed values only makes things worse.
The reality is that many users don't read the docs and just explore the API via trial/error, and my intuition is that having separate get_audio_embedding and get_image_embedding functions (etc.) will lead to an API that's easier to understand, safer in terms of avoiding unexpected behavior, and cleaner to e.g. document and unit test.
The major downside to this is that we break backwards compatibility, but that's what version control is for :) We can just make a new release (we can even bump to 1.0.0 if we want to strictly follow the rules of semantic versioning), and there shouldn't be too much confusion. Our user base is still relatively small, so now's a good time to make breaking changes. I'm not too worried about the API being cluttered, it's 8 function calls instead of 4 which is still tiny, and if every pair of functions is distinguished by having audio or image in the filename I think it's pretty self-explanatory.
...unless we want to have built in support for processing video directly (and returning both the audio and image embeddings from a video file). This could be supported e.g. by a 3rd family of function calls for video, e.g. get_video_embedding that takes in a video file and return both audio and image embeddings. My inclination is to leave that outside the scope of OpenL3, at least for now.
Thoughts?

You raise a good point. Maybe backwards compatibility isn't a very important consideration at this point. Sure, let's refactor under a new v1.0.0 release with the separate *_audio_* and *_video_* functions.
I guess with a new v1.0.0 release in mind, we should consider any other possible API changes we might want to include. Maybe we should include the more flexible pooling size interface in @bensteers's PR. I've received a few questions about including the whole AVC model. Though I'm not super convinced if this something we should worry about right now.
Regarding video, this would be a nice feature to have I think. If we're going to have a 1.0.0 release I think this would be a good thing to include. We can reuse some of the l3embedding code using skvideo for this.

OK, sounds like we're in agreement about revamping the API for a 1.0.0 release.
I think we should spend a moment on nomenclature, especially if we want to support audio, video, and joint audio-visual processing.
For audio-specific functions, I think it's a no brainer, and the _audio_ suffix is a good option:

get_audio_embedding
process_audio_file
get_audio_embedding_model (should we consider renaming to load_audio_embedding_model)?

It becomes trickier for the visual frame embeddings: we could use either _image_ or _video_. On the one hand, I think _video_ would be preferable because the literature shows that image embeddings (trained on images) don't generalize well to video frames. On the other hand, it peeves me that the vision community uses the term "video" to mean "sequence of visual frames", ignoring the fact that there's (usually) an audio track as well. But maybe it's a lost battle...?
So if we ignore my beef, we could use _audio_ and _video_. If we want to make a point, we could use _audio_ and _visual_.
The final question is how to name methods that extract both from a video file. If we use _visual_, we could have _audio_, _visual_ and _video_ (the latter being for joint processing). If, on the other hand, we use _audio_ and _video_ (for audio and frames), then we need a term for the joint processing... for example, _audiovideo_, _audiovisual_, or something along these lines.
Thoughts?

I'm on board changing get_audio_embedding_model to load_audio_embedding_model.
I'm more on board with using _image_ since it's an image embedding, not a visual sequence (or "video" minus the the audio) embedding. And that allows us to reserve _video_ for audio/visual. I guess I question that comes to mind is that do we only need a process_video method? For processing videos loaded in memory, it may be sufficient to have the user just make a call to get_audio_embedding and get_image_embedding.
Thoughts?

I'm on board changing get_audio_embedding_model to load_audio_embedding_model.

ok cool, I think it'll be clearer and also cleaner to have only 1 method start with get, especially once we have 3 copies of each method.

I'm more on board with using image since it's an image embedding, not a visual sequence (or "video" minus the the audio) embedding. And that allows us to reserve video for audio/visual.

So, in principle I agree, but... there's a difference between an image embedding (learned on images, e.g. ImageNet) and a video-frame embedding (learned from video frames). The literature suggests these aren't the same and don't necessary generalize well from one to the other. So the problem with using _image_ is that it could imply that this is an image embedding, when it's in fact a video-frame embedding. I'm not sure what a good solution to this issue is... I'll ask around here see if people have any thoughts.

I guess I question that comes to mind is that do we only need a process_video method? For processing videos loaded in memory, it may be sufficient to have the user just make a call to get_audio_embedding and get_image_embedding.

For API consistency I'd be in favor of implementing all 4 methods for video, even if some of them just end up being wrappers around get_audio and get_image under the hood. I think it's cleaner and more consistent that way (and probably more streamlined for those interested in extracting both embeddings).

Okay, one more question. For processing videos, do we want an option to have a different hop size for the audio than the "hop size" of the images (effectively the framerate)?

Hmm without actually asking people, a priori my inclination is not to support different hop sizes for processing videos. I.e., if you're processing a video, you'll get time-aligned audio/video embeddings controlled via a single hop size parameter. If you want separate hop size then it makes sense to require the user to use the separate get_audio and get_image (<--- or whatever we end up calling it).

Also, if we're doing a major revision, would it be a good moment to consider #22 ?

I think we can still forgo an OOP interface before getting more feedback from users.

I think we can still forgo an OOP interface before getting more feedback from users.

Sure, sounds reasonable to me.
I've asked around about naming. People responded that get_image_embedding would be OK, though they expressed preference for get_visual_frame_embedding or get_vframe_embedding (the term "vframes" is used in ffmpeg for video frames).

Another comment was that we might want to avoid get_video_embedding altogether because the embedding is only spatial (i.e. processes a single frame), rather than bien spatio-temporal (processing a tensor of video frames) which is what they'd expect from a video embedding

Something else to consider is a batch processing mode. i.e. making more efficient use of the GPU by predicting multiple files at once. I'm putting together something like this for BirdVoxClassify, so I can adapt it for openl3.

Something else to consider is a batch processing mode.

That seems like a different issue though, right? Worth including for a major revision, but perhaps we should open a new issue for this.

Something else to consider is a batch processing mode.

That seems like a different issue though, right? Worth including for a major revision, but perhaps we should open a new issue for this.

Deferred to #26

Proposed updated API:
def get_audio_embedding(audio, sr, model=None, input_repr="mel256",
                        content_type="music", embedding_size=6144,
                        center=True, hop_size=0.1, verbose=1):
    """
    Computes and returns L3 embedding for given audio data

    Parameters
    ----------
    audio : np.ndarray [shape=(N,) or (N,C)]
        1D numpy array of audio data.
    sr : int
        Sampling rate, if not 48kHz will audio will be resampled.
    model : keras.models.Model or None
        Loaded model object. If a model is provided, then `input_repr`,
        `content_type`, and `embedding_size` will be ignored.
        If None is provided, the model will be loaded using
        the provided values of `input_repr`, `content_type` and
        `embedding_size`.
    input_repr : "linear", "mel128", or "mel256"
        Spectrogram representation used for model. Ignored if `model` is
        a valid Keras model.
    content_type : "music" or "env"
        Type of content used to train embedding. Ignored if `model` is
        a valid Keras model.
    embedding_size : 6144 or 512
        Embedding dimensionality. Ignored if `model` is a valid
        Keras model.
    center : boolean
        If True, pads beginning of signal so timestamps correspond
        to center of window.
    hop_size : float
        Hop size in seconds.
    verbose : 0 or 1
        Keras verbosity.

    Returns
    -------
        embedding : np.ndarray [shape=(T, D)]
            Array of embeddings for each window.
        timestamps : np.ndarray [shape=(T,)]
            Array of timestamps corresponding to each embedding in the output.

    """

def process_audio_file(filepath, output_dir=None, suffix=None, model=None,
                       input_repr="mel256", content_type="music",
                       embedding_size=6144, center=True, hop_size=0.1, verbose=True):
    """
    Computes and saves L3 embedding for given audio file

    Parameters
    ----------
    filepath : str
        Path to WAV file to be processed.
    output_dir : str or None
        Path to directory for saving output files. If None, output files will
        be saved to the directory containing the input file.
    suffix : str or None
        String to be appended to the output filename, i.e. <base filename>_<suffix>.npz.
        If None, then no suffix will be added, i.e. <base filename>.npz.
    model : keras.models.Model or None
        Loaded model object. If a model is provided, then `input_repr`,
        `content_type`, and `embedding_size` will be ignored.
        If None is provided, the model will be loaded using
        the provided values of `input_repr`, `content_type` and
        `embedding_size`.
    input_repr : "linear", "mel128", or "mel256"
        Spectrogram representation used for model. Ignored if `model` is
        a valid Keras model.
    content_type : "music" or "env"
        Type of content used to train embedding. Ignored if `model` is
        a valid Keras model.
    embedding_size : 6144 or 512
        Embedding dimensionality. Ignored if `model` is a valid
        Keras model.
    center : boolean
        If True, pads beginning of signal so timestamps correspond
        to center of window.
    hop_size : float
        Hop size in seconds.
    verbose : 0 or 1
        Keras verbosity.

    Returns
    -------

    """

def get_vframe_embedding(image_arr, frame_rate=None, model=None,
                         input_repr="mel256", content_type="music",
                         embedding_size=8192, verbose=1):
    """
    Computes and returns L3 embedding for given video frame (image) data

    Parameters
    ----------
    image_arr : np.ndarray [shape=(H, W, C) or (N, H, W, C)]
        3D or 4D numpy array of image data. If the images are not 224x224,
        the images are resized so that the smallest size is 256 and then
        the center 224x224 patch is extracted from the images.
    frame_rate : int or None
        Video frame rate (if applicable), which if provided results in
        a timestamp array being returned. If None, no timestamp array is
        returned.
    model : keras.models.Model or None
        Loaded model object. If a model is provided, then `input_repr`,
        `content_type`, and `embedding_size` will be ignored.
        If None is provided, the model will be loaded using
        the provided values of `input_repr`, `content_type` and
        `embedding_size`.
    input_repr : "linear", "mel128", or "mel256"
        Spectrogram representation used for to train audio part of audio-visual
        correspondence model. Ignored if `model` is a valid Keras model.
    content_type : "music" or "env"
        Type of content used to train embedding. Ignored if `model` is
        a valid Keras model.
    embedding_size : 8192 or 512
        Embedding dimensionality. Ignored if `model` is a valid
        Keras model.
    verbose : 0 or 1
        Keras verbosity.

    Returns
    -------
        embedding : np.ndarray [shape=(N, D)]
            Array of embeddings for each frame.
        timestamps : np.ndarray [shape=(N,)]
            Array of timestamps for each frame. If `frame_rate` is None,
            this is not returned.
    """

def process_vframe_file(filepath, output_dir=None, suffix=None, model=None,
                        input_repr="mel256", content_type="music",
                        embedding_size=8192, verbose=True):
    """
    Computes and saves L3 embedding for given image file

    Parameters
    ----------
    filepath : str
        Path to image file to be processed.
    output_dir : str or None
        Path to directory for saving output files. If None, output files will
        be saved to the directory containing the input file.
    suffix : str or None
        String to be appended to the output filename, i.e. <base filename>_<suffix>.npz.
        If None, then no suffix will be added, i.e. <base filename>.npz.
    model : keras.models.Model or None
        Loaded model object. If a model is provided, then `input_repr`,
        `content_type`, and `embedding_size` will be ignored.
        If None is provided, the model will be loaded using
        the provided values of `input_repr`, `content_type` and
        `embedding_size`.
    input_repr : "linear", "mel128", or "mel256"
        Spectrogram representation used for model. Ignored if `model` is
        a valid Keras model.
    content_type : "music" or "env"
        Type of content used to train embedding. Ignored if `model` is
        a valid Keras model.
    embedding_size : 8192 or 512
        Embedding dimensionality. Ignored if `model` is a valid
        Keras model.
    center : boolean
        If True, pads beginning of signal so timestamps correspond
        to center of window.
    hop_size : float
        Hop size in seconds.
    verbose : 0 or 1
        Keras verbosity.

    Returns
    -------

    """

def process_video_file(filepath, output_dir=None, suffix=None, model=None,
                        input_repr="mel256", content_type="music",
                        audio_embedding_size=6144, audio_center=True,
                        audio_hop_size=0.1, vframe_embedding_size=8192,
                        verbose=True):
    """
    Computes and saves L3 embedding for given image file

    Parameters
    ----------
    filepath : str
        Path to WAV file to be processed.
    output_dir : str or None
        Path to directory for saving output files. If None, output files will
        be saved to the directory containing the input file.
    suffix : str or None
        String to be appended to the output filename,
        i.e. <base filename>_<modality>_<suffix>.npz.
        If None, then no suffix will be added,
        i.e. <base filename>_<modality>.npz.
    model : keras.models.Model or None
        Loaded model object. If a model is provided, then `input_repr`,
        `content_type`, and `embedding_size` will be ignored.
        If None is provided, the model will be loaded using
        the provided values of `input_repr`, `content_type` and
        `embedding_size`.
    input_repr : "linear", "mel128", or "mel256"
        Spectrogram representation used for audio model. Ignored if `model` is
        a valid Keras model.
    content_type : "music" or "env"
        Type of content used to train embedding. Ignored if `model` is
        a valid Keras model.
    audio_embedding_size : 6144 or 512
        Audio embedding dimensionality. Ignored if `model` is a valid Keras model.
    audio_center : boolean
        If True, pads beginning of audio signal so timestamps correspond
        to center of window.
    audio_hop_size : float
        Hop size in seconds.
    vframe_embedding_size : 8192 or 512
        Video frame embedding dimensionality. Ignored if `model` is a valid Keras model.
    verbose : 0 or 1
        Keras verbosity.

    Returns
    -------

    """

Thoughts?

Generally I think this looks great. A couple of comments:

You propose get_vframe_embedding and process_vframe_file, which I imagine it to be consistent with get_audio_embedding and process_audio_file. On the one hand I think it makes sense to be consistent. On the other hand, what's a "vfame_file"? Basically it's just an image file. Now I realize it was I who suggested the term "vframe" rather than "image" to distinguish between video frames and images. But, do you think process_vframe_file could be confusing? The two alternatives would be to have diverging nomenclature (get_vframe_embedding + process_image_file), or to revert back to image for both (get_image_embedding) and (process_image_file), but that takes us back to the term "image" for vframes. Maybe I'm overthinking it and people will understand process_vframe_file without too much trouble, though, if we do stick to this nomenclature, then I would try to be over explicit in the docstring (a la "Computes and saves L3 embedding for given image file in a standard image format such as JPG, PNG, etc.").

We have process_video_file but no get_video_embedding. Do we not expect that to also be a useful function call?

1. You propose `get_vframe_embedding` and `process_vframe_file`, which I imagine is in order to be consistent with `get_audio_embedding` and `process_audio_file`. On the one hand I think it makes sense to be consistent. On the other hand, what's a "vfame_file"? Basically it's just an image file. Now I realize it was I who suggested the term "vframe" rather than "image" to distinguish between video frames and images. But, do you think `process_vframe_file` could be confusing? The two alternatives would be to have diverging nomenclature (`get_vframe_embedding` + `process_image_file`), or to revert back to image for both (`get_image_embedding` + `process_image_file`), but that takes us back to the term "image" for vframes. Maybe I'm overthinking it and people will understand `process_vframe_file` without too much trouble, though, if we do stick to this nomenclature, then I would try to be over explicit in the docstring (a la "Computes and saves L3 embedding for given image file in a standard image format such as JPG, PNG, etc.").

Yeah, the issue of diverging nomenclature was why I opted for vframe for both. However, after reviewing the downstream evaluation on the image embeddings in the L3 paper I don't necessarily think that image is that much of an issue considering the downstream classification was done on ImageNet. But if it would upset a lot of people for us to call it image then maybe diverging nomenclature wouldn't be so bad.

2. We have `process_video_file` but no `get_video_embedding`. Do we not expect that to also be a useful function call?

What would we expect get_video_embedding to return? We don't have proper video embeddings. If you mean just getting the embeddings for the audio and video frames in a loaded video, I don't think having two separate function calls for the audio and video frames is a big deal.

Re: 1, I'm not a big fan of process_vframe_file because there's no such thing. So I'd either diverge or stick to image for both. Which do you prefer?
Re: 2, ok, fair enough.

I'd prefer image for both.

Regarding videos, I've been thinking about whether we should use opencv which is maybe overkill but is the most popular library for video processing. However, in order to load audio from the videos we'll probably need to use ffmpeg, which is already used as a frontend for skvideo (which we used in the l3embedding experiments). Though this library isn't as widely used as opencv it would allow us to have fewer dependencies since we need ffmpeg anyway.

moviepy also looks like an option we can use for both loading video frames and audio, without having to have users install ffmpeg.

I'd prefer image for both.

OK, let's do that then.
Regarding video loading, I think the lighter we can keep the repo the better. Whatever our dependencies are people will install them (or rather, pip will install them), so I don't think it matters too much if the dependency is super popular, what matters most is that it's (1) light and (2) well supported (with expectation that it'll continue to be supported long term).

FYI: being addressed in #29

authors: jtcramer justinsalamon


text:
Current incidence value is equal to that of the previous day

I have now checked the values and the incidence value of the previous day returns the same value as that of the current day.
Here is an example:
https://api.corona-zahlen.org/districts/09172/
"weekIncidence":120.83565407017909
https://api.corona-zahlen.org/districts/09172/history/incidence/5
{"weekIncidence":120.83565407017909,"date":"2021-03-02T00:00:00.000Z"}
I have tried other counties as well.

I have now checked the values and the incidence value of the previous day returns the same value as that of the current day.
Here is an example:
https://api.corona-zahlen.org/districts/09172/
"weekIncidence":120.83565407017909

This is not the value from today! This is the value from yesterday! the value from today you will get tomorrow!

https://api.corona-zahlen.org/districts/09172/history/incidence/5
{"weekIncidence":120.83565407017909,"date":"2021-03-02T00:00:00.000Z"}
I have tried other counties as well.

The values witch are published today are always the values from yesterday!

Sorry, my mistake.

you are welcome ............. no problem


text:
znap restart breaks asdf

Describe the bug
znap restart breaks asdf
Steps To Reproduce
.zshrc

# If not running interactively, do nothing
[[ $- != *i* ]] && return

# Zsh
HISTFILE=~/.zsh_history
HISTSIZE=100000
SAVEHIST=$HISTSIZE
setopt append_history # append rather then overwrite
setopt inc_append_history # add history immediately after typing a command
export EDITOR=micro
export GCM_CREDENTIAL_STORE=secretservice

# aliases
alias ls='LC_ALL=C ls -h --group-directories-first --color=auto'
alias which='whence -p'

# keybindings
source ~/.zsh_keybindings

# Download Znap, if it's not there yet.
[[ -f ~/.znap/src/znap.zsh ]] ||
    git clone --depth 1 -- https://github.com/marlonrichert/zsh-snap.git ~/.znap/src
# Set znap repo directory
zstyle ':znap:*' repos-dir ~/.znap/repos

# source znap
source ~/.znap/src/znap.zsh

# tools
#znap install asdf-vm/asdf
#znap install andreafrancia/trash-cli
#znap install refi64/stylepak

# zsh-snap plugins
znap source asdf-vm/asdf asdf.sh
znap source zsh-users/zsh-autosuggestions
znap source zsh-users/zsh-syntax-highlighting

# asdf
asdf reshim
znap eval asdf-community/asdf-direnv "asdf exec $( asdf which direnv ) hook zsh"

# zsh-snap prompt
echo -e "\n$(neofetch)"
znap eval starship 'starship init zsh --print-full-init'
znap prompt

Run znap restart
Expected behavior
Zsh restarts without any problem.
Observed behavior
Restart aborts.
Click to expand
Validating dotfiles...
Validation failed with the following errors:
/home/user-name/.local/bin/asdf: line 4: /home/user-name/.local/lib/utils.bash: No such file or directory
/home/user-name/.local/bin/asdf: line 72: asdf_default_tool_versions_filename: command not found
/home/user-name/.local/bin/asdf: line 75: asdf_config_file: command not found
/home/user-name/.local/bin/asdf: line 78: asdf_data_dir: command not found
/home/user-name/.local/bin/asdf: line 81: asdf_dir: command not found
/home/user-name/.local/bin/asdf: line 27: asdf_dir: command not found
/home/user-name/.local/bin/asdf: line 101: asdf_dir: command not found
Unknown command: `asdf reshim`
/home/user-name/.local/bin/asdf: line 103: /lib/commands/command-help.bash: No such file or directory
/home/user-name/.local/bin/asdf: line 4: /home/user-name/.local/lib/utils.bash: No such file or directory
/home/user-name/.local/bin/asdf: line 72: asdf_default_tool_versions_filename: command not found
/home/user-name/.local/bin/asdf: line 75: asdf_config_file: command not found
/home/user-name/.local/bin/asdf: line 78: asdf_data_dir: command not found
/home/user-name/.local/bin/asdf: line 81: asdf_dir: command not found
/home/user-name/.local/bin/asdf: line 27: asdf_dir: command not found
/home/user-name/.local/bin/asdf: line 101: asdf_dir: command not found
Unknown command: `asdf which direnv`
/home/user-name/.local/bin/asdf: line 103: /lib/commands/command-help.bash: No such file or directory
Restart aborted.

Environment:

OS: ArchLinux
Terminal: kgx
Zsh version: zsh 5.9 (x86_64-pc-linux-gnu)
Repo version: * main 9b8edd8 Handle missing upstream

Additional context
Also please ref: https://github.com/twpayne/chezmoi/issues/2928

Error does not happens when HEAD is detached in asdf-vm/asdf
$ asdf list
direnv
 *2.32.2
pipx
 *1.2.0
python
  3.11.3

.zshrc
# If not running interactively, do nothing
[[ $- != *i* ]] && return

# Zsh
HISTFILE=~/.zsh_history
HISTSIZE=100000
SAVEHIST=$HISTSIZE
setopt append_history # append rather then overwrite
setopt inc_append_history # add history immediately after typing a command
export EDITOR=micro
export GCM_CREDENTIAL_STORE=secretservice

# aliases
alias ls='LC_ALL=C ls -h --group-directories-first --color=auto'
alias which='whence -p'

# keybindings
source ~/.zsh_keybindings

# Download Znap, if it's not there yet.
[[ -f ~/.znap/src/znap.zsh ]] ||
    git clone --depth 1 -- https://github.com/marlonrichert/zsh-snap.git ~/.znap/src
# Set znap repo directory
zstyle ':znap:*' repos-dir ~/.znap/repos

# source znap
source ~/.znap/src/znap.zsh

# tools
#znap install asdf-vm/asdf
#znap install refi64/stylepak

# zsh-snap plugins
znap source asdf-vm/asdf asdf.sh
znap source zsh-users/zsh-autosuggestions
znap source zsh-users/zsh-syntax-highlighting

# asdf
znap eval asdf-community/asdf-direnv "asdf exec $( asdf which direnv ) hook zsh"
#source "${XDG_CONFIG_HOME:-$HOME/.config}/asdf-direnv/zshrc"

# zsh-snap prompt
echo -e "\n$(neofetch)"
znap eval starship 'starship init zsh --print-full-init'
znap prompt

$ znap pull
asdf no upstream
asdf-direnv ✓
stylepak ✓
zsh-autosuggestions ✓
zsh-syntax-highlighting ✓

$ asdf update --head
From https://github.com/asdf-vm/asdf
 * branch            master     -> FETCH_HEAD
Previous HEAD position was 0adc6c1 chore(master): release 0.11.3 (#1498)
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at f273612 fix: improve readability of the non-set `nullglob` guard (#1545)
Updated asdf to latest on the master branch

$ znap pull
asdf ✓
asdf-direnv ✓
stylepak ✓
zsh-autosuggestions ✓
zsh-syntax-highlighting ✓

$ znap restart
Validating dotfiles...
Validation failed with the following errors:
/home/user-name/.local/bin/asdf: line 4: /home/user-name/.local/lib/utils.bash: No such file or directory
/home/user-name/.local/bin/asdf: line 72: asdf_default_tool_versions_filename: command not found
/home/user-name/.local/bin/asdf: line 75: asdf_config_file: command not found
/home/user-name/.local/bin/asdf: line 78: asdf_data_dir: command not found
/home/user-name/.local/bin/asdf: line 81: asdf_dir: command not found
/home/user-name/.local/bin/asdf: line 27: asdf_dir: command not found
/home/user-name/.local/bin/asdf: line 101: asdf_dir: command not found
Unknown command: `asdf reshim`
/home/user-name/.local/bin/asdf: line 103: /lib/commands/command-help.bash: No such file or directory
/home/user-name/.local/bin/asdf: line 4: /home/user-name/.local/lib/utils.bash: No such file or directory
/home/user-name/.local/bin/asdf: line 72: asdf_default_tool_versions_filename: command not found
/home/user-name/.local/bin/asdf: line 75: asdf_config_file: command not found
/home/user-name/.local/bin/asdf: line 78: asdf_data_dir: command not found
/home/user-name/.local/bin/asdf: line 81: asdf_dir: command not found
/home/user-name/.local/bin/asdf: line 27: asdf_dir: command not found
/home/user-name/.local/bin/asdf: line 101: asdf_dir: command not found
Unknown command: `asdf which direnv`
/home/user-name/.local/bin/asdf: line 103: /lib/commands/command-help.bash: No such file or directory
Restart aborted.

$ asdf update
asdf update
Note: switching to 'v0.11.3'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 0adc6c1 chore(master): release 0.11.3 (#1498)
Updated asdf to release v0.11.3

$ znap pull
asdf no upstream
asdf-direnv ✓
stylepak ✓
zsh-autosuggestions ✓
zsh-syntax-highlighting ✓

$ znap restart
Validating dotfiles...
Restarting Zsh...

$

repo: marlonrichert/zsh-snap


text:
Blank Screen

Hi, After updating to latest version(beta1) admin panel doesn't show any thing and ng-view is empty.
No Error

Have you updated your layout according to the UPGRADE file?
<div ui-view="ng-admin">
<!-- instead of: <div ui-view> -->

Tanx @jpetitcolas .

authors: jpetitcolas samanmohamadi

repo: marmelab/ng-admin


text:
Remove/Update Natixis?

There has been a rebrand of the company the now the site just redirects to this https://natixis.groupebpce.com/natixis/en/home-j_6.html

Intersting 🤔 @marianasilva14 can you give some insight here, please? 😄

Hello Afonso,
Sim, agora a Natixis faz 100% parte do grupo BPCE e por isso até o site
devem ter alterado 😀
Espero que estejas bem!!
Um beijinho
Afonso Jorge Ramos @.***> escreveu em ter., 13/09/2022
às 22:40 :

Intersting 🤔 @marianasilva14 https://github.com/marianasilva14 can you
give some insight here, please? 😄
—
Reply to this email directly, view it on GitHub
https://github.com/marmelo/tech-companies-in-portugal/issues/299#issuecomment-1245981020,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFOHC4A5TVT6COR76AVXD5DV6DYFNANCNFSM6AAAAAAQL2TXH4
.
You are receiving this because you were mentioned.Message ID:
@.***>

Thanks Mariana! I guess that's settled then!

repo: marmelo/tech-companies-in-portugal


text:
Change wiki page links to absolute URLs

The links to the GitHub wiki weren't working, despite looking fine (seems to be either a known issue or otherwise problematic). I changed them to absolute URLs, which is clunkier but they function.

Thanks Ryan! I had been trying to keep these as relative URLs, because we're going to be moving this project into samvera-labs soon (potentially even this week), but that experiment was a failure, obviously. This PR is great since it fixes the links immediately.
(Cancelling Travis build since this is just README changes.)

authors: ebenenglish wickr


text:
Using Bluskey's handle resolver has privacy implications

Devs should be aware of the privacy implications of using a particular lib. This is actually why we do not provide a default handle resolver in the official atpropo lib, and require explicit opt-in from the devs using our lib.

Aware, I think I'd still be providing it as a default (it seems good enough as it is), but I'd have to put a lot more disclaimer around it than before.
Now that I've written out a section for additional guides, perhaps there could also be a section on writing your own handle resolution, since all the relevant functions for this are already exposed as a public API.

authors: mary-ext matthieusieben

repo: mary-ext/atcute


text:
Team . The edit team removed the preview feature

编辑团队去掉“预览”按钮

确认过要有预览按钮


text:
The application list

修改时间不正确

resolved


text:
Description The row spacing is too small because the environment or cluster is associated

关联环境/集群，行间距过小

dump with https://github.com/masastack/MASA.PM/issues/326

重复issue


text:
🛑 POH events bot from render hosting is down

In fb6d891, 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 952dac8 after 8 minutes.

repo: masch/poh-events-uptime


text:
Sibling query half: :include fails in 2.0.2

The query for siblings @member.siblings(half: :include) fails due to an invalid query:
ERROR:  operator does not exist: integer == integer
Seems that Postgres (and probably other SQL languages) do not support the double equals operator.  Found at line 104 of query_methods.rb.

ok connecting to mysql makes some tests fail because of that. Thanks, I'll look into it. thankyou

Thanks!  Loving the work you've done, by the way.

Should be ok in 2.1.1 (I made an extra version bump by mistake). Travis tests added for mysql and postgres.

repo: masciugo/genealogy


text:
fix: star grade to Double nullable

이슈
star grade에서 nullable 오류가 나고 있어 수정했습니다.

star_grade를 Double nullable type으로 변경합니다.

변경 사항
스크린샷
부연 설명
체크리스트

[ ] Lint 적용 여부
[ ] 빌드 성공 여부
[ ] PR 제목은 포맷과 내용 둘 다 알맞게 작성되었는가
[ ] PR에 대해 구체적으로 설명이 되어있는가

출격준비 🥇


text:
My data get reseted

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

what u mean?

I suspect it's because you put your bearer token out in the open.
Removing the config from the repository will not hide your data, it will remain in the commit history, maybe a complete removal of the fork will help.

But it will hardly help if the attacker saved your token, if I understand correctly developers do not cancel old tokens even if you get a new one.

I host it in railway for 10 days ago


text:
Removed promogames.py

'Cafe Dash', 'Gangs Wars' are removed

@Ashwin3454 please include this and https://github.com/masterking32/MasterHamsterKombatBot/pull/322/ in one PR


text:
🛑 Iran 1 - VIP 1 is down

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

HTTP code: 0
Response time: 0 ms

Resolved: Iran 1 - VIP 1 is back up in 630af4a after 7 minutes.


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

In 8471a6b, 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 d0ee406.


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

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

HTTP code: 0
Response time: 0 ms

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


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

In 7e922cb, 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 b266d6b.


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

In 07b1388, 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 a147d7e.


text:
🛑 Iran 10 - Zirsakht 3 is down

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

HTTP code: 0
Response time: 0 ms

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


text:
🛑 Iran 10 - Zirsakht 3 is down

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

HTTP code: 0
Response time: 0 ms

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


text:
Change mastodon.version from 1.0.0-beta-27-SNAPSHOT to 1.0.0-beta-27

The goal of this PR is to reflect the 1.0.0-beta-27 release of the mastodon core and to prepare the 0.4.0 release of the mastodon-ellipsoid-fitting artefact

Closed, since solved in https://github.com/mastodon-sc/mastodon-ellipsoid-fitting/commit/1e36a5133ef4969561f414adaabd353b8c21b75e

repo: mastodon-sc/mastodon-ellipsoid-fitting


text:
Hooks are not fired for aggregation

I am filtering out some data in find/findOne queries with the help of hooks, for security purposes. I found that find hooks are not fired during an aggregate operation (via meteor-aggregate pkg). Is this the expected behaviour? Is there a work around to achieve the same? If it is a missing feature, is there a plan to support the same in future?

Yes, there's nothing we can do about that because Collection.aggregate is bound to rawCollection which is the collection representation created by the mongodb node driver.
We are just working with the Meteor abstraction of the collections. Which is on a layer higher up than the rawCollection.

authors: lijoantony zimme


text:
executing code before an autoform update

I want to do something before an autoform update occur . i use ' coll.before.update ' to execute my logic in its function but the callback function dos not execute even though the update occur . i don't know where i made mistake or if anything else i should do.
this is my code:
ads.before.update(function(userId, doc,fieldNames, modifier, options) {
 console.log("doc");
 doc.img = Session.get("imgAds");
 // doc.linkItem=Session.get("itmId")
 });

Are you still having an issue or have you resolved it?

My problem was solved,thanks.


text:
Using hugo's native syntax highlighting

Dear,
Now we can activate Hugo's native syntax highlighting rather using highlight.js
Hugo color my code before highlight.js render it, then highlight.js do again.
I did this with Hugo 0.63.0
I disabled it by replacing static/js/highlight.min.js as
function EmptyHljs() {};
EmptyHljs.prototype.initHighlightingOnLoad = function(){};

But it looks weird, isn't it?
Thanks.

Would you be willing to convert this into a configurable feature in the theme? We would not be able to drop highlight.js entirely as it will affect people's deployed websites.
If this were a boolean config item in the config.toml...

true: don't include the <script> for highlight.js and include your new code block
false (default): keep behaviour as current

It'd be a great feature! (And thanks for the theme, already awesome!)

What's complicated is that one would also need to remove part of the theme CSS https://github.com/matcornic/hugo-theme-learn/issues/187#issuecomment-461173989
Documenting what a custom CSS should contain (Chroma stylesheet as generated by Hugo if using classes; in all cases overrides for e.g. code colour to go with the Chroma theme so that code isn't white on white background) would be useful and makes it a not small task I suppose. 🤔

authors: maelle matalo33 tturbs

repo: matcornic/hugo-theme-learn


text:
disable copy-to-clipboard on a per code block basis?

is there any functionality to disable generation of the copy-to-clipboard image and functionality on a per code block basis?

No. That's not implemented and I am not quite sure if this is even possible

authors: McShelby mmascolino


text:
Implement extended state for FAB

Updated the @material/fab dependency and added a new property to track the mdc-fab--extended class.
Also added a fallback for when extended is true, but no label exists, as the Material Design Guidelines states "An extended FAB can’t have an icon without a text label.".

Sorry for the delay, but this is fixed with #111

authors: azakus zevisert


text:
Extract apple_framework_relative_headers from https://github.com/material-foundation/material-internationalization-ios.

This source was forked from https://github.com/material-foundation/material-internationalization-ios/blob/94a37db3477e6de6b8c3b40e524478056b73031a/apple_framework_relative_headers.bzl
Moving these rules to a shared repo allows other repos to make use of this functionality in a consistent manner. This work is part of rolling out https://github.com/material-components/material-components-ios/issues/5491

I believe the copyright headers are the same; are you seeing a difference somewhere?

The copyright difference is that the original copyright was from 2019 while these are 2020. My question was whether we have to do anything to reference that this was taken from another project and not created within this project as an original work?

My question was whether we have to do anything to reference that this was taken from another project and not created within this project as an original work?

I've added a note to the readme to clarify the source of the code.

authors: jverkoey romoore


text:
Multiple functions for Condition to handle in the same domain.

Although my demonstration involved PDEs, I want to clarify that my point applies to a broader range of scenarios. For instance, restrictions such as the positivity of 'u' over the domain Omega can be effectively addressed with this approach. However, at present, I must define a new condition for each constraint, even if it pertains to the same domain.
Additionally, if I understand correctly, PINA allows for minimizing 'u' given specific input and output data. However, how about handle input and output data that correspond to derivatives of the function 'u.'
In mechanics, there is another approach to consider where multiple functions correspond to each other through a mapping but need to solve different PDEs over the same domain Omega. For instance, the functions "strain," "stress," and "displacement" may need to be determined. Stresses are subject to the PDE 'div(stress)=f,' while strains must satisfy the PDE 'grad(displacement)=strain.' These two functions, strains and stresses, are related through a mapping 'C(strain)=stress,' which may be quite complex.
In this scenario, three conditions would be required over the same domain. It's worth noting that this approach has applications in various fields, including engineering and physics.
Originally posted by @LoveFrootLoops in https://github.com/mathLab/PINA/issues/90#issuecomment-1537103666

👋🏼 @ndem0 I opened this issue after brought out this interesting point.
I still don't know if to update the condition class now or to solve it in #85 for the new release.

If I understood correctly, PINA already supports for these cases, since they are quite common in many field, as you reported. I admit that right now it's pretty challenging to understand how doing so, but for example the https://github.com/mathLab/PINA/blob/master/examples/problems/stokes.py file contains an example where two equations need to be satisfied on the same domain, i.e. continuity and momentum equations from Stokes problem.
The new version anyway proposes a (hopefully) simpler way to deal with system of equations, as you can see here. Let me know if I misunderstood something!

If I understood correctly, PINA already supports for these cases, since they are quite common in many field, as you reported. I admit that right now it's pretty challenging to understand how doing so, but for example the https://github.com/mathLab/PINA/blob/master/examples/problems/stokes.py file contains an example where two equations need to be satisfied on the same domain, i.e. continuity and momentum equations from Stokes problem.
The new version anyway proposes a (hopefully) simpler way to deal with system of equations, as you can see here. Let me know if I misunderstood something!

Yes I saw this example but it is not working right now with the updated PINA. The new version can’t deal with the command ‘function=[momentum,continuity]’.

It was a quick fix, I implemented in #93.
As soon as all the tests will pass, I'll merge it to master branch and you should be able to pass again a list of functions (remember to clone again the repo, pip package will update only June 1st)

Perfect, thanks @ndem0 for the change. I close the isse since it is resolved.

authors: LoveFrootLoops dario-coscia ndem0

repo: mathLab/PINA