add src link

Add source links to timers that have them.

Later I'd like to expand this to be a full text explanation but for now linking to a source should be more than enough credibility for a bad calculation on the internet.

Fixes #3


Roll file that start from no 0 base doesn't roll correctly

I noted that the use different base from 0 create even a base 0 file (foo.log.0 for instance).
After that following rolls don't create other files.
PR that fix it will follow soon...

Oops, yeah, looks like the "0" here should be self.base.to_string(): https://github.com/sfackler/log4rs/blob/master/src/append/rolling_file/policy/compound/roll/fixed_window.rs#L100


Reduce / simplify ceremony to access ProjectedRasterTile in python

I commented in a PR  about python TileUDT on the following code block there.
# rf_local_add(t, 0) is to force lazy eval; accessing tile.tile is to get at the actual Tile type vs PRT struct
df = self.spark.read.rastersource(self.img_uri).withColumn('tile2', rf_local_add_int(col('tile.tile'), 0))
# downstream we collect df in the python driver

The problem is that on the python side this rastersource tile column is actually a struct, so the user has to overcome the friction of use tile.tile to get the tile type.
 In the above snip if i did not add 0, I'd see the following error in  the deserialize. Obviously we need to do some null checking but better would be a mechanism for the python side to request the evaluation of the cell values.  Preferably this would happen without the user having to worry if the under the hood implementation is lazy.
/usr/local/rasterframes/pyrasterframes.zip/pyrasterframes/rf_types.py in deserialize(self, datum)
    416         cell_data_bytes = datum.cell_data.cells
    417         try:
--> 418             as_numpy = np.frombuffer(cell_data_bytes, dtype=cell_type.to_numpy_dtype())
    419             reshaped = as_numpy.reshape((rows, cols))
    420             t = Tile(reshaped, cell_type)

AttributeError: 'NoneType' object has no attribute '__buffer__'

@vpipkt
WRT the first issue, you should be able to do rf_local_add_int(col('tile'), 0), as all the columnar functions are supposed to handle the PRT -> Tile conversion automatically.

WRT the second issue, I'd indeed like this to be automatic. I think adding a function to "reify" the tile in the JVM in this case should be straight forward. My hope was to inject a "fetch" instruction through the Catalyst optimizer, but I ran into some problems in the tree matching code.

Yes I am able to do the rf_local_add(tile) I just don't want to :-D

@vpipkt
WRT the first issue, you should be able to do rf_local_add_int(col('tile'), 0), as all the columnar functions are supposed to handle the PRT -> Tile conversion automatically.

Related: https://github.com/locationtech/rasterframes/issues/128


Polygonize potential improvements

These should perhaps break out into their own issues, but a number of these could likely be done in one chunk of work for the 'polygonize' command proposed in #19 (these suggestions are currently based on #25 where it is its own command).

[x] Don't require output_fn - default to the same name / location as input, plus the right file format suffix.
[ ] Select file format (at least GeoParquet, GeoJSON & GeoPackage)
[ ] Automatically use the right file format based on suffix of input file name.
[ ] Fiboa output - determination_method = auto-imagery, plus ideally pick-up determination_datetime from input files (depends on #26)
[x] Calculate and include area (and perimeter?) - default to true, but be able to turn off.
[ ] Whether to use fiboa or just write minimal attribute fields (default to using fiboa)
[ ] Logic for warnings specific to when you want to polygonize
[ ] Control over the window size for the grid? And/or on strategies for getting rid of the "arbitrarily split" polygons from the grid step (ie dissolve and split into single parts as a very final step).
[ ] Alternative polygonization algorithms (will deserve its own issue for sure)
[ ] Option to reproject? Like to put the output into EPSG:4326
[x] Option to remove fields below X size, to filter out the super small areas that sometimes show up. Maybe default to ~1 pixel size, and then let people increase it.
[ ] Option to close holes: https://github.com/fieldsoftheworld/ftw-baselines/pull/31/files#r1815997140

@m-mohr - could you take on a chunk of these and then we can make additional issues for the ones you don't do.
Top one to me is fiboa / geoparquet output. And could do json too in fiboa, and then make geopackage 'fiboa-like' by default. And make it so if someone says -o fields.parquet then it just automatically does fiboa and geoparquet.

@cholmes How long should this take following the README instructions?
The top one for sure should probably be the algorithm.  It always stops at some point and never actually completes. But that's also the most complex issue, but doesn't make sense to do something else before this works better.

What takes O(n³) complexity?

The three for loops that are nested in the code :-)

Hmmm these aren't all n -- the first two for loops iterate over chunks of the input raster, the third nested for loop iterates over the number of contiguous blocks of 1's in the chunk. The whole thing takes time that depends on the number of contiguous 1's.
rasterio's shapes(..) says -- https://rasterio.readthedocs.io/en/latest/api/rasterio.features.html#rasterio.features.shapes
The amount of memory used by this algorithm is proportional to the number and complexity of polygons produced. This algorithm is most appropriate for simple thematic data. Data with high pixel-to-pixel variability, such as imagery, may produce one polygon per pixel and consume large amounts of memory.

You are right, my bad. Nevertheless, it's slow ;-) And for whetever reason at some point the CLI progress bar stops updating for me (before 100%) and the command never finishes. So I'm trying to fix/optimize it - Not sure yet how...

@calebrob6 I just looked at one of the polygonize outputs. Do theses lines that split the boundaries from the optimizations for the progress reporting? That seems not ideal...

Yep -- I agree not ideal

We talked about it in slack and it's on the list above (just edited it to make it a bit more clear, it was a bit buried) - we should merge those back.
As for performance, we can remove the reprojection as @calebrob6  pointed out that we shouldn't need that for area calculations if projections are utm, and at this point we can assume everything is s2 input. The reprojection definitely made things slower.
But I didn't find it excessively slow, and it'd always complete fit me, so sounds like something else may be going wrong.

I don't think you can easily merge them back. You already see some examples above where it's not really clear whether they are separate fields or were split due to the window. Also, some shapes still look differently even when merged...
I think we need to get rid of the windows and just work on the full thing unfortunately. That will remove the progressbar for the first minutes though, but that's not a good enough reason to return suboptimal geometries, I think.
I'm having an alternative algorithm in mind, will try that out and I'll also try to optimize the number of operations for each shape.

I think the main optimization will be to sieve / preprocess the raster input (i.e. model output) that goes into the polygonization step. A 3x3 or 5x5 mode filter may help (but may also merge nearby fields that are separated by a single pixel).
Another thought I had (and reason why I chunked it in the first place) was to run rasterio.features.shapes in parallel for different input chunks.
To partially offset the boundary issues we are seeing with the chunked approach we could buffer each chunk by X pixels (i.e. run on overlapping windows) then merge the results intelligently before simplifying. I haven't thought too closely, but, any polygons that cross the border between chunks (disregarding the buffer in this case) should be mergeable. You could do this very quickly and would offset having to do a large expensive dissolve.

Here's a crudely drawn example. In this case we can see a horizontal line pretty clearly that indicates a boundary from polygonizing two chunks. In my proposed method the "top chunk" in this example would extend say 100 pixels down into the bottom chunk and vice versa. I've drawn what a resulting polygon would look like in yellow for the top chunk and blue for the bottom chunk. I'm claiming any pair of overlapping polygons between the set from the top and from the bottom can be merged (dissolved) to fix the issue.

Let's take this in multiple steps.
I've started to speed up the code without removing the windowed approach in #50 - See the PR for details.
I've started to realize that the potential issues that I saw in the files were due to the simplification, but if we resolve the split before simplification, I guess it could be fine. I'm not sure about the buffer approach as it may lead to other issues down the line, e.g. merging fields that don't belong together.

I'm not sure about the buffer approach as it may lead to other issues down the line, e.g. merging fields that don't belong together.

I don't think so -- you are not buffering any of the polygons themselves, just the windows in which you are running polygonization over.

I've started to realize that the potential issues that I saw in the files were due to the simplification, but if we resolve the split before simplification, I guess it could be fine

Simplification will cause the fields that are split up by the windowing to not be touching anymore.

@cholmes What does the following mean?

Logic for warnings specific to when you want to polygonize

That was copied from a note @calebrob6 put in slack. I think it likely comes sorta naturally - originally polygonize was a flag on top of inference, so it meant that if you had an error in polygonize then it'd just bubble up with the 'inference' ones. So I take this item to mean just 'raise warnings for users'. Not sure if @calebrob6 had some particular things he wanted to warn about, but we can likely just check it.

Let's close this out when #51 merges, and just break the remaining check marks out into their own issues.

I've opened separate issues for most items, but I'm not sure whether we really need

Alternative polygonization algorithms -> Isn't fixing #54 enough? We only really need another algorithm if we can't solve #54, I think.
Option to reproject? Like to put the output into EPSG:4326 -> Is this really needed or can we just provide a snippet that uses ogr2ogr for CRS transformations?

Alternative polygonization algorithms -> Isn't fixing https://github.com/fieldsoftheworld/ftw-baselines/issues/54 enough? We only really need another algorithm if we can't solve https://github.com/fieldsoftheworld/ftw-baselines/issues/54, I think.

I think the idea was that there could be more specialized approaches that are optimized towards field boundaries or even how this dataset is done. Indeed there's likely even approaches of trying to get polygons directly from inference / using ML in the generation of the polygons. I don't think we need to do anything now, just put an issue to say that we may explore others in the future. @calebrob6 may have some specific ideas here.

Option to reproject? Like to put the output into EPSG:4326 -> Is this really needed or can we just provide a snippet that uses ogr2ogr for CRS transformations?


v0.13.x Remove possible blank lines

Codecov Report

Merging #1809 into v0.13.x will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           v0.13.x    #1809   +/-   ##
========================================
  Coverage    25.27%   25.27%
========================================
  Files           98       98
  Lines         5088     5088
========================================
  Hits          1286     1286
  Misses        3660     3660
  Partials       142      142

Continue to review full report at Codecov.

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


prom-migrator: suggestions and new features

Following are suggestions related to prom-migrator:

Make timeout configurable and based on that, add the respective behaviours:
1.1. -timeout:  (related to context timeout
1.2. -on-timeout: ['ext', 'fail', 'retry'] (exit exits the prom-migrator which is the current behaviour; fail drops the slab and retry retries the request endlessly unless -max-retries is set to non-zero)
1.3. -max-retries:  (default 0 for retrying forever, if recoverable error)
change mint & maxt to start & end
allow start & end (current mint & maxt) to accept human-readable time.

I would also add one feature (and corresponding option) for simple "rate limiting" so that we could limit the speed of ingestion into PostgreSQL that may easiily become highly overloaded by the prom-migrator...
There are already some options like -max-read-size and -concurent-{push,pulls} that can influence that. I propose to add
    -pull-push-delay DURATION

defaulting of course to 0 which would cause a DURATION delay between pull of the data and the push of them.
It also seems to me as the most straighforward and easiest way to implement some sort of "slowdown" in case it is needed.
Note: By the way, the option -concurent-push should be renamed to -concurent-pushes (plural).

Closing since these were implemented in the prom-migrator.


Add default groups for trial users

What problem does this pull request solve?
Trello card: https://trello.com/c/t4bUdTbz/1555-migration-create-a-default-group-for-each-trial-user

We want to make sure trial users can still access their forms when we enable the groups feature.
This PR adds the code needed to put any forms created by trial users outside of a group into a "default group" that the user has access to. We do this in two ways; by adding to the FormService#add_to_default_group! method that is called whenever a new form is created we get all forms created after this change is deployed, and there is a Rake task to deal sort out any forms created before the change was deployed.
This PR also does a bit of refactoring of the trial_users:summary task, to make sure that the output is helpful both before and after the default_groups:create task has been run in production.
Things to consider when reviewing

Ensure that you consider the wider context.
Does it work when run on your machine?
Is it clear what the code is doing?
Do the commit messages explain why the changes were made?
Are there all the unit tests needed?
Has all relevant documentation been updated?

Code looks good and think I've got it working locally 🎉
PR description might benefit from a bit more detail/context but there's information in the invidual commit messages so I don't think that's a blocker.

Thanks for the review! I've added a bit more detail to the PR description, a good point well made 😁

Extra info looks good - thanks @lfdebrux!


Bump graphdb version

Small change to bump GraphDB minor version

This was done inline on staging, so it might conflict if you try to pull the merged branch. Just toss the deprecated version on there out.

I think I might have actually pushed it up to 10.7.1 now.


No exported member ElementType in @material-ui/core/Button

I receive the following error for<EMAIL_ADDRESS>(7,19): Namespace 'React' has no exported member 'ElementType'.

I'm using the latest versions for the following packages:
    "@material-ui/core": "4.6.1",
    "@types/react": "^16.9.11",
    "typescript": "^3.7.2"

Is there something I should do differently to get the button to work? Or where should I be looking?

This should be part of<EMAIL_ADDRESS>(introduced in https://github.com/DefinitelyTyped/DefinitelyTyped/pull/33263). Could you double check your node_modules that you have a single @types/react version and that it is greater than 16.8.6?

Thanks for that link! 👍 Yes that's the case.
But it seems that the project has some other issues which this might be a side-effect of. I did a yarn upgrade and now facing a different issue.
For now I'll close this issue. Once I have the error again I will re-open this ticket.

@eps1lon Isolated the problem. The problem occurs when running yarn start in this branch: https://github.com/StudioSpindle/weaviate-playground/tree/refactor/update-project
<EMAIL_ADDRESS>ERROR in /project/node_modules/@material-ui/core/Button/Button.d.ts(7,19):
TS2694: Namespace 'React' has no exported member 'ElementType'.

Context: I'm updating the npm packages to the latest version.


Spreed (speed reading)

Ref: Conversation #2391 / Artur

Ref: Conversation #4421 / Cory

Ref: Conversation #6048 / Onur


⚠ ClamAV has degraded performance

In 5d32a16, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 107 ms

Resolved: ClamAV performance has improved in a2ceff0 after 11 minutes.


Installing debugpy says 'debugging', it should say something different for run by line

Validated. Message now "running by line"


Tweak the dashboard service obj

OLD/CURRENT:
        "attrRelease": {
            "releasePassword": true,
            "releaseTicket": true,
            "attrPolicy": {
                "type": "all"
            }
        }

NEW:
        "attrRelease": {
            "releasePassword": true,
            "releaseTicket": true,
            "attrPolicy": "all"
        }

Basically, just removing the nested 'type' since we don't care about the 'value' that typically would be associated with it.

This should be fixed. Pushed to remote. Leaving the issue open until app is able to parse.

heh, already added, but forgot to add it to the list for the next PR, so please be aware.


Create custom dataset for facial landmarks

Hi friends,
Do you know a tools which can create custom dataset for facial landmarks?
Thanks!

Use dlib’s imglab tool. It’s in the tools folder.


[INLONG-2380] DataProxy support Kafka sink of PB compression cache message protocol.

Title Name: [INLONG-2380][Inlong-DataProxy] DataProxy support Kafka sink of PB compression cache message protocol.
Fixes #2380
Motivation
Explain here the context, and why you're making that change. What is the problem you're trying to solve.
Modifications
Describe the modifications you've done.
Verifying this change

[ ] Make sure that the change passes the CI checks.

(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end deployment with large payloads (10MB)
Extended integration test for recovery after broker failure

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
If a feature is not applicable for documentation, explain why?
If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

Codecov Report

Merging #2442 (e025fcf) into master (fc43f6e) will increase coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #2442   +/-   ##
=========================================
  Coverage     12.54%   12.54%
- Complexity     1219     1220    +1
=========================================
  Files           420      420
  Lines         36255    36255
  Branches       5674     5674
=========================================
+ Hits           4547     4550    +3
+ Misses        30902    30895    -7
- Partials        806      810    +4

Impacted Files
Coverage Δ

.../producer/qltystats/DefaultBrokerRcvQltyStats.java
45.31% <0.00%> (-0.79%)
:arrow_down:

...ong/tubemq/manager/service/ClusterServiceImpl.java
55.55% <0.00%> (+2.77%)
:arrow_up:

...inlong/tubemq/manager/service/TaskServiceImpl.java
8.53% <0.00%> (+4.87%)
:arrow_up:

Continue to review full report at Codecov.

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

duplicate with https://github.com/apache/incubator-inlong/pull/2503， close it


Changing scene background?

I was evaluating threlte due to its more complete documentation vs SvelteCubed and I can't really figure out how I can set the background color of the scene. SvelteCubed exposes this as a prop on canvas, but then is setting the background of the scene with that prop. I can't seem to find how/where I can set props (like background color) on the scene in threlte. So maybe this can be made more clear in the docs?

HI @garlandcrow, there's a discussion about changing the scene background: #31
But I agree it could be an example in the docs. I'm currently working on a threlte website, so this is something that could be a part of it then.


[DS-4036] Delete EPersons even if they are referenced

https://jira.duraspace.org/browse/DS-4036
DSpace references EPersons in different database tables like the
submitter of an item or like the EPerson that gets special rights
granted in the resourcepolicy table. This PR changes DSpace so it can
handle references that are set null instead of referencing an actual
EPerson. This is important to be able to delete EPersons which is
demanded by several data protection laws like GDPR in the European
Union.

I mark this as "work in progress". Not that I currently do have to add anything specific, but I think we will vet this and maybe work on this together as port of DSpace 7.

@terrywbrady @mwoodiupui Thank you for the review. Either I answered directly to your questions/suggestions or I changed the PR in the PR I just pushed. Can you please take a look if my answers/changes are satisfying?

I rebased the PR and resolved the conflicts.

Ben,
thank you for the review. I missed it in December and got aware of it by the end of last week. I know about the possibility to link "orphaned items" to a single user, often called ghost user. I agree, my approach is risking NPEs. But I'm doing this for the sake of a cleaner implementation in the long run. I want to avoid having to care about a ghost user everywhere, where we are dealing with EPersons.
You pointed out onw side-effects that we missed in deed. Thank you for finding that issue. A user being deleted may be the last user in a Workflow group. I think we have two bugs in DSpace that explains how I would expect DSpace to handle that case:

If the group of users for a specific Workflow step is empty this step is skipped silently. If an administrator activates a workflow step, but leaves the group empty, this resolves in an unexpeted behavior: having a workflow step that is activated but skipped nevertheless. I think DSpace should keep the item in the workflow step, send a mail to the administrator and put a warning into the log files.

If a user is added to a workflow step group, workflow item tasks are not assigned to that user. To make this concrete: if you have a workflow step with 500 items in the task pool and add a user to that workflow step, the user is still not seeing a single workflow item, until a new one is put into the pool. Then the user sees the new task only but not any of the tasks that existed before he/she was added to that workflow step's group.

If we would resolve both bugs, DSpace would not skip any steps anymore and administrators would have a chance to give people access to workflow tasks whose workflow groups are empty. This might also be a way to solve https://jira.duraspace.org/browse/DS-1941.
I know that we want to move to the XMLWorkflowSteps in DSpace 7. All my notes above relate to the default Workflows of DSpace 6 and I have to test if these issues are the same for the XMLWorkflows.

@pnbecker

If the group of users for a specific Workflow step is empty, this step is skipped silently in the XML Workflow as well. So this will require a solution to avoid the workflow step from being skipped (e.g. refusing to delete an EPerson if it would create an empty workflow group, so the admin would need to solve that problem first)
If a user is added to a workflow step group, workflow item tasks which are in the pool are assigned to that user in the XML Workflow, so that problem should be solved because the Basic Workflow was dropped.


Implement common (single) text preprocessor instead of two different preprocessors

Two sets of models are produced for a language (simple and lucene). They differ only how raw text are pre-processed. This is unnecessarily complicated and requires twice as much time to train models.
Implement common text pre-processor which can be used from java code/solr/elastic. It may consist of:

lowercasing
normalization
accent drop / ligature expansion

Implemented, models are trained both on original text and normalized text


Easy require

This change makes jshint-stylish easier to require from the jshint CLI.
Before this change, in order to use jshint-stylish with jshint CLI:
jshint --reporter node_modules/jshint-stylish/stylish.js

With this change, one can supply just the package path and let package.json's main take effect:
jshint --reporter node_modules/jshint-stylish

This change is still compatible with gulp-jshint.
As for grunt-contrib-jshint, as of 0.11.1 the reporter config option is duck-typed to a string. So with this change, it can still be supplied via require:
jshint: {
    options: {
        reporter: require('jshint-stylish')
    },
    target: ['file.js']
}

Agh, JSHint. You should just be able to require reporters as normal node modules. ESLint does this nicely I believe. Eg. jshint --reporter jshint-stylish. But sure, I guess this is better than nothing.

done

@jasonkarns, can you rebase?

rebased and test fixed (lint warnings still being ignore per master)
also worth noting, this change was already going to be backwards incompatible with grunt-contrib-jshint pre v0.11.1, so a major version bump is advised.
and now that we've eliminated stylish.js, it will be backwards-incompatible for anyone who was using the jshint cli. so definitely a major version bump.


add bypass in config to control if chaos monkey is triggered

The enabled should be true always to make sure that chaos monkey middleware handlers are loaded into the chain during the server startup. If bypass is true (default), then the chaos monkey is not triggered.

 add bypass in config to control if chaos monkey is triggered light-chaos-monkey master


[Suggestion]Add 'Open' action for 'stored procedures/documents'

Platforms:Win10/Mac/Linux
Repro Steps:
Right click one stored procedure/document and check the context menu.
Suggestion:
Add 'Open' action for 'stored procedures/documents'. In this case, we can keep multiple tabs open.
Actual:
Only display 'Delete Stored Procedures/Documents'.

Having two procedures open is very useful. The cause is not so much the lack of Open in the menu (double click should do the same), it's the way the editor identifies what type of file it is showing and what commands should be available. Right now this is based on the name of the tab: it is named always cosmos-stored-procedure.js, regardless of the name of your Sproc. Obviously it's not a great idea to have two tabs named "cosmos-stored-procedure.js".
There might be another way to tell the Editor that it shows a Cosmos Stored Procedure. A name pattern? Attach metadata to the editor? I can have a look but not just yet, I am starting with simpler things first :).

If you want multiple open stored procedures, we should track it in #581. If you want a context menu item to open Stored Procedures, we can do that too.

Looks like this is implemented.


[Solved] @latitud and @longitud are sent as strings

Your Environment

Plugin version: 3.0.1
Platform:  Android
OS version: MacOs 10.14.4
Device manufacturer and model: Simulator and LG k9

cordova 8.1.2<EMAIL_ADDRESS>cordova-android 7.1.4
ionic 4.12.0
ionic 1 app
Context
In postTemplate, when i set lat/long to '@latitude' it send as literal string, not as float number
Expected Behavior
@latitude needs to be as 39,xxxxxx
Actual Behavior
@latitude is  '@latitude'
(and long, time, ... whatever event'
Possible Fix

Steps to Reproduce
BackgroundGeolocation.configure({                   locationProvider: BackgroundGeolocation.ACTIVITY_PROVIDER,                   desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY,                   stationaryRadius: 20,                   distanceFilter: 30,                   debug: false,                   interval: 10000,                   fastestInterval: 5000,                   activitiesInterval: 10000,                   url: $scope.usuario['hostgeo'],                   httpHeaders: {                     'Content-Type': 'application/x-www-form-urlencoded'                   },                   // customize post properties                   postTemplate: {                     id_tecnico : $scope.usuario.id,                     plataforma : ionic.Platform.platform(),                     terminalmo : $scope.deviceInUse.manufacturer+' '+$scope.deviceInUse.model,                     timestamp : '@time',                     latitude: '@latitude',                     longitude: '@longitude'                   }                 });
Debug logs
 	[2019/04/15 15:39:52] com.marianhello.bgloc.BackgroundGeolocationFacade:Service configured with: Config[distanceFilter=30 stationaryRadius=20.0 desiredAccuracy=0 interval=10000 fastestInterval=5000 activitiesInterval=10000 isDebugging=true stopOnTerminate=true stopOnStillActivity=true startOnBoot=false startForeground=true notificationsEnabled=true locationProvider=1 nTitle=Background tracking nText=ENABLED nIconLarge= nIconSmall= nIconColor= url=https://URL/api/acciones.php?action=setUbicacion syncUrl= syncThreshold=100 httpHeaders={Content-Type=application/x-www-form-urlencoded} maxLocations=10000 postTemplate={"terminalmo":"LGE LM-X210","plataforma":"android","id_tecnico":3,"latitude":@latitude,"longitud":@longitude,"timestamp":@time}]

When it arrives to server lat/long are correct. Not sure why here are showed as strings.

@sbellver - what solved your issue?  I am having a similar problem, but with @provider.  For iOS it is sent as a literal string instead of actually sending the location provider.  I am wondering if whatever you found with your code will help me as well.

Not sure.
Maybe is a cordova version or a cordova-ios version.
Now i use cordova 8 and cordova-ios 4.5.5


custom product ignores the maximum purchase

Used Shopware Version: <IP_ADDRESS>
Description:
Currently, there may be a situation where if a custom product template is assigned to a product that also has a maximum quantity set, unexpected behavior occurs.
Alternatively, another error may occur where the setting of the maximum allowed quantity takes effect. Then, if the contents are deleted from the shopping cart and added back again, this error message appears.
"CHECKOUT__CART_LINEITEM_NOT_STACKABLE"
Steps to reproduce:

Set up a custom product and assign it to a product.
Set a maximum quantity for the product.
Test in the frontend.

Expected result:
All settings take effect correctly.
Actual result:
The maximum quantity is ignored, or the error appears.

[public] Hello,
Within our company roadmap and work capacity, we try to address each bug or improvement request but admit that not each one will be resolved. To continue our culture of honesty and openness, we are closing this issue to focus on our roadmap on behalf of all Shopware users.
If you feel like this issue is still impacting you, please create a new issue and let us know. Thank you again for your valuable feedback.
[created from CUS-685, comment 501328]


feat: add 1.4.1 contracts for ZetaChain Mainnet

relevant issue: https://github.com/safe-global/safe-deployments/issues/582

hey @ElvisKrop could you please solve the conflicts?

@mmv08 done :heavy_check_mark:


Missing dll files

After installing windows 10 I had to reinstall chatterino2 but when I tried to start it there was an error saying I was missing "msvcp140.dll", "msvcr120.dll" & "vcruntime140.dll" After downloading these from the internet it was fixed without any more problems but if you guys are able to shouldn't the chatterino download add these as well?
Thank you

https://github.com/fourtf/chatterino2#downloading

You might also need to install the VC++ 2017 Redistributable from Microsoft if you do not have it installed already.

For me installing VC++ 2017 wasn't enough
I am pretty sure the missing dlls required an older version, VC++ 2013 if I am correct, and windows wouldn't let you install it after 2017 unless I uninstalled everything and installed the older ones first.

@RiddareCato If you could try installing Visual C++ 2013 runtime files, and let me know if that works that would be nice. thanks!

I don't have an issue with it anymore, I downloaded the .dll files from the internet and then it was fixed @pajlada

@RiddareCato Thanks for reporting back, I'll close the issue for now until anyone else stumbles into the issue


Bug: Radio buttons and checkboxes alignment off when bootstrap 3 is included.

This is also affecting checkboxes as well.


Show previously chosen obsolete data in the dropdown.

This task is automatically imported from the old Task Issue Board and it was originally created by Paweł Grabarz.
Original issue is here.

Step 6: Showing the obsolete data.
Part of https://www.pivotaltracker.com/n/projects/2539304/stories/183930734
Delivery requirements:

In this step, the drop-down should be refined to display on the list of entries obsolete data, data that was chosen but is no longer available to be chosen. For example, the user could have chosen a table column name, but the table changed and it does not have this column anymore. The chosen entry should be displayed just as an ordinary entry but should have a different color (to be designed closer to the implementation of this step).
Drop-down widgets should allow deselecting an obsolete entry, selecting an existing one, and then selecting the obsolete entry again. Basically, the obsolete entries should not disappear from the drop-down until the node is recomputed, or until the user changes the view to another part of the graph (e.g. by entering a node).

This is fairly easy to do given our current state of dropdowns, where we always know the full list of options. It will be harder once we have lazy loading on dynamic dropdowns. We will not be able to know ahead of time if current entry is still within the list. Then we might always show the obsolete entry at the top of the list, risking that it might be repeated if you scroll down.


Please invite me to the GitHub Community Organization

Name :- Keshav Agrawal
Discord :- web_hack#7541
Connected with  @eddiejaoude  sir 3 months ago,but now a days I am communicating with him(oh,my luck).
I wish I will get that one sticker pack of 37 stickers :))

Invitation sent for the GitHub Organisation. Welcome to the community 🎉
Don't forget after accepting to make it public so it appears on your GitHub profile for everyone else to see, you can do this by finding your name in the GitHub organisation list and change the dropdown to public https://github.com/orgs/EddieJaoudeCommunity/people
Tips for practising:
Customise your GitHub profile, here is a live stream on it https://www.youtube.com/watch?v=cT6GXCuS0Zo
Practice repo, instructions on how to add your name to the README in the README https://github.com/EddieJaoudeCommunity/hacktoberfest-practice
Remember contributing to open source is not just about code, its about collaboration, communication and adding value
I hope that helps

Invitation sent for the GitHub Organisation. Welcome to the community 🎉
Don't forget after accepting to make it public so it appears on your GitHub profile for everyone else to see, you can do this by finding your name in the GitHub organisation list and change the dropdown to public https://github.com/orgs/EddieJaoudeCommunity/people
Tips for practising:
Customise your GitHub profile, here is a live stream on it https://www.youtube.com/watch?v=cT6GXCuS0Zo
Practice repo, instructions on how to add your name to the README in the README https://github.com/EddieJaoudeCommunity/hacktoberfest-practice
Remember contributing to open source is not just about code, its about collaboration, communication and adding value
I hope that helps


keepEmptyValues followup

Hi.
I moved keepEmptyValues documentation to correct alphabetical position,
added keepEmptyValues to quick reference table,
added keepEmptyValues to defaults array and
fixed tests
as suggested by comments of @acrobat in #1558

Thanks @steffendietz!

Is this feature on any stable release yet?  Or any ETA?  I see it in the docs, but doesn't seem to be present in the latest release.

This feature (this pr adds docs changes but #1558 add the feature itself) will be released in 1.7.0 which is not yet released. There is no current ETA but should be out soon

@acrobat It's now almost April 2017. Are you releasing 1.7.0 soon?

We did 2 RC releases for 1.7.0 (See the releases page). So you could test those releases and provide feedback.
The only PR that is blocking the stable release is #2124, so if you have some javascript knowledge please help us close/solve this last PR.


Feat/check literal values

fixes https://github.com/open-wc/open-wc/issues/1913

@bennypowers any idea how to fix this?


Connect to IVT Geo 516 with Bosch IPI-100 module

I am able to connect with the Bosch EasyRemote app which probably means that my heater is compatible with this component, but I can’t seem to get the credentials right.
I have tried the command line interface to the python library in the dependencies, but I can not connect that way either.
Please see the attached image to see what the credentials label on my heater looks like.
Is my heater compatible? If so, which credentials am I supposed to use?
thanks!

hi,
so I think it's not supported, but if you can connect with it, then I can add support for it.
just need bosch scan of it.
you can try doing it with Home Assistant, maybe it will work, to do so:

add integration bosch

choose device type: IVT
protocol - HTTP

IP address: ip address
accesstoken -> this is passwort from sticker
password -> this is password you set up when connecting with app
If it will go through then in Developer Tools -> Services choose bosch.debug_scan

if it won't go through then follow this instructions: https://github.com/bosch-thermostat/home-assistant-bosch-custom-component/wiki/Run-Bosch-Scan-from-Command-Line

Thank you for the prompt reply!
I managed to sign in with the help of your credentials clarification 👍
Please see the screenshot from the setup process. I guess it is fully compatible?

yes, seems it's Compress, so yes. it should be fully supported, but you can always check it out and report some problems or what is missing.

Ok. I will try out the sensors and report any issues. Thank you very much!

just little note. it's pretty slow as I cut out number of queries to gateway. it takes about 1,5 minutes to apply any changes eg. you change temperature in water heater.

temperature is send to gateway
it's cached in Home Assistant,
after about minute component is checking if gateway successfully applied this temperature.

most of the time it's not a problem but have this in mind.

Slow update speeds on this kind of systems should not be an issue. I don't need faster updates, but I am a little curious - is this data polling implemented on the actual IP-module on the local network? Sound like the kind of limits you would expect from online apis, not on a machine running locally.
I have a wireless temperature sensor that came with the heater and helps the heater adjust to the temperature in the house. It is available on the /heatingCircuits/hc1/roomtemperature endpoint. Would it be possible to add support for it?
{
  "id": "/heatingCircuits/hc1/roomtemperature",
  "type": "floatValue",
  "writeable": 0,
  "recordable": 1,
  "value": 18.9,
  "unitOfMeasure": "C",
  "state": [
    {
      "open": -3276.8
    },
    {
      "short": 3276.7
    }
  ]
},

Create new issue with this request and I'm gonna need your bosch scan as well attached to it (best in some json upload website)


Model named "Check" is incorrectly typed

Bug description
I have a model called Check, after running Prisma generate. There will be 2 different types with the same key CheckSelect one used by the Prisma client itself and the other is generated to give the ability to select properties while querying the Check model.
How to reproduce

open this sandbox
npm run db:generate
npm run build

Expected behavior
Check should be a valid name for a model with no duplicate types with its name
Prisma information

Environment & setup

OS: Debian
Database: Any of those[PostgreSQL, MySQL, MariaDB or SQLite]
Node.js version: v14.16.1

Prisma Version
2.24.1

After a look in the issues section. I found that it belongs to the label: "topic: reserved words"

I can confirm this bug, thanks for reporting.

This is fixed and the fix will be published as a part of 5.1 release. You can also check out 5.1.0-dev.25 dev snapshot - we do not recommend using dev snapshots in production, but it should be enough to verify the fix.


yarn support?

We're using yarn, and it looks like the code here only supports package-lock.json and not yarn.lock.
Is it possible to add support for it?

Thanks for opening this issue! I'm working on a version that uses arborist to determine which files should be included, after which yarn will be supported. However I can only continue working on this in February. In the meanwhile, if you really need this plugin, you can use https://github.com/imsnif/synp and packagePath.

Thanks for opening this issue! I'm working on a version that uses arborist to determine which files should be included, after which yarn will be supported. However I can only continue working on this in February. In the meanwhile, if you really need this plugin, you can use https://github.com/imsnif/synp and packagePath.

Hey man, thanks for the reply! Eventually I ended up packaging my external package into a layer.
I'm not 100% sure if the plugin would solve my problem, but I'll be happy to check your suggestion, or try the new version once you support yarn.

Hey man, thanks for the reply! Eventually I ended up packaging my external package into a layer.
I'm not 100% sure if the plugin would solve my problem, but I'll be happy to check your suggestion, or try the new version once you support yarn.

That's also a great option! I'm also exploring different options to solve this issue, but this plugin is usually the easiest. Did you use any library to create the layer? I'll reach out again here when Yarn support is done.

That's also a great option! I'm also exploring different options to solve this issue, but this plugin is usually the easiest. Did you use any library to create the layer? I'll reach out again here when Yarn support is done.

Nope didn't use a library.
Added a layer definition to my serverless yaml,
And created a script that creates the layer folder based on the externals of my webpack.config.js.

get externals from webpack
cross with package.json to get versions
create layer folder
create package.json inside layer folder
run yarn install --no-lockfile
delete package.json
mv node_modules nodejs

That runs before sls package.

Nope didn't use a library.
Added a layer definition to my serverless yaml,
And created a script that creates the layer folder based on the externals of my webpack.config.js.

get externals from webpack
cross with package.json to get versions
create layer folder
create package.json inside layer folder
run yarn install --no-lockfile
delete package.json
mv node_modules nodejs

That runs before sls package.

Hi Hans Otto,
I'm too trying to use this plugin in combination with Yarn as I need the saslprep package to for MongoDb.
I've followed your readme and have added the following code to the serverless.yml file:
externals:
    modules:
      - saslprep

I also created a file node-externals.json with the content:
["saslprep", "aws-sdk"]
However, I still get the warning about the missing saslprep:
WARN	Warning: no saslprep library specified. Passwords will not be sanitized
I'm a beginner and I'm actually changing code that was implemented by a former employee of mine. So hopefully I have done all correct from my side and it's a problem that needs to be fixed with your plugin. If I have overlooked something or did something wrong I'd thankful if you could point it out to me, in laymen's terms. Thanks in advance!
PS:
I've added:
  - serverless-externals-plugin
to the plugins: section of the serverless.yml file

Hi Andreas,
Thanks for the question!
What this plugin does is indeed include the listed node_modules in the zip that is uploaded to AWS. So it should indeed include the saslprep module folder inside node_modules/saslprep of the zip.
However, you're using Yarn, but this plugin requires a package-lock.json file to determine the dependencies of the modules.
(e.g. saslprep requires sparse-bitfield, so it will also include node_modules/sparse-bitfield). Do you also have a package-lock.json in your project?
If I look up the warning, it seems like it's coming from mongodb-core, which is dynamically requiring saslprep. Can you confirm that you're not using Rollup or Webpack to bundle anything? How is the mongodb-core package included in your Lambda? And what version of mongodb-core are you using?
Anyway, using the excerpts you provided should still work, whether anything is bundled or not. Serverless will create a zip before uploading. Can you check the contents of .serverless/<package>.zip, and check inside if node_modules/saslprep is included?
I'm also seeing another possibility:
The code inside mongodb-core looks like this (https://github.com/mongodb-js/mongodb-core/blob/master/lib/auth/scram.js):
let saslprep;
try {
  saslprep = require('saslprep');
} catch (e) {
  // don't do anything;
}

But it doesn't check if the error is RequireError. So this might throw some other error type. You can try to remove the try-catch block and see what happens. (const saslprep = require('saslprep'))
Hopefully this helps!

Thanks for taking the time to answer my question, especially so quickly.
I was able to chat briefly with my former developer who wrote the code and he clarified to me that neither Webpack nor Yarn is used (though there's a Yarn as a leftover in the folder which made me believe we use Yarn).
He wrote to me that we only use npm with serverless to deploy the Lambda functions. I have installed the package directly inside the corresponding lambda function and will hopefully know in 20 minutes if that solves the warning (it's indeed not an error but the warning floods our log files too much).

I see, great, I hope it works! I assume you're just uploading the whole node_modules folder, is that correct?


Need Clarification on M365 Admin Roles and Blocked One Drive Files

[Hello team, I am with MDA and we need some help with this page. We get a lot of questions about this issue where a file is marked as malicious and why someone cannot unmark it.
https://support.microsoft.com/en-us/topic/what-to-do-when-a-malicious-file-is-found-in-sharepoint-online-onedrive-or-microsoft-teams-01e902ad-a903-4e0f-b093-1e1ac0c37ad2?ui=en-us&rs=en-us&ad=us
The page I linked above leads to the admin page (https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/admin-submission?view=o365-worldwide#notify-users-from-within-the-portal) but it does not specify the admin role needed to monitor files marked as malicious. Can someone please add more information to the admin roles that directly states what role will be able to restore files that are marked as malicious in one drive. As of now it only refers to share point. please help. Or is this not how it is supposed to work? I did see there is a way to submit files as malware and non-malware to M365, is that the only way to address the issue? ]

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: f18d8345-78f3-0b16-f585-1e53f49d138f
Version Independent ID: 015e98be-2db5-11a3-9abc-6f89b44c3f96
Content: About admin roles in the Microsoft 365 admin center - Microsoft 365 admin
Content Source: microsoft-365/admin/add-users/about-admin-roles.md
Service: o365-administration
GitHub Login: @KwekuA
Microsoft Alias: kwekua

@jacksondcampbell Thank you for your feedback. These alerts would show up in  Microsoft 365 Defender The below document has details on what permission one would need to take action on the alert. https://docs.microsoft.com/en-us/microsoft-365/security/defender/investigate-alerts?view=o365-worldwide
Note that the https://support.microsoft.com/en-us/topic/what-to-do-when-a-malicious-file-is-found-in-sharepoint-online-onedrive-or-microsoft-teams-01e902ad-a903-4e0f-b093-1e1ac0c37ad2?ui=en-us&rs=en-us&ad=us is  outdated as it refers to Microsoft 365 Advanced Threat Protection which is now Microsoft defender for Office 365
Hope this helps!
Thanks
Sri

@msbemba Thank you very much for the contribution and sharing this explanation. @jacksondcampbell Hope this comment is helpful for you. If you see a documentation update is required, please feel free to open an issue for the same. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


Starts to build TBC

@abbasudo Check if this way is good we can update index.md later

@Lakshan-Madushanka thanks. I have listed all the contents. add them to index.md and merge.


Refactor the workshop to further simplify user setup

We have a few challenges for this project, the major issue

some commands have to be run outside the notebook.

Some of them are aws commands, some of them are kubeflow namespace level operation.

We ask user to restart kernel to make new installed command take affect.

Resource are not cleaned up after experiment, we should keep this in mind when we develop the codes.

People may jump to different step without following tutorial in order, we add a few duplicate steps like creating S3 bucket, etc in multiple places. This needs to be refactor and make sure we have a prerequisite to setup everything before they jump into the real tutorial.

TODO: If multiple notebook share one bucket, how to pass bucket name into different notebooks?

These are big issues, indeed.
Re: S3 bucket - I force users to create the same S3 Bucket that would be created by SageMaker's Default S3 bucket (sagemaker.Session().default_bucket).  This is mainly because our workshop combines SageMaker with Kubeflow.  And we typically use Event Engine which creates a new, ephemeral account for each user.
Here's the notebook code:
%%bash
export S3_BUCKET=sagemaker-$(aws configure get region)-$(aws sts get-caller-identity | jq -r '.Account')
echo "export S3_BUCKET=${S3_BUCKET}" | tee -a ~/.bash_profile
Create a new S3 bucket and upload the dataset.
aws s3 ls s3://$S3_BUCKET || aws s3 mb s3://${S3_BUCKET}
echo "Completed"
The other stuff mentioned here is a sore point, for sure.  I don't have a better solution.  Curious to see what you come up with.

On Mar 29, 2020, at 4:35 PM, Jiaxin Shan<EMAIL_ADDRESS>wrote:
We have a few challenges for this project, the major issue
some commands have to be run outside the notebook.
https://user-images.githubusercontent.com/4739316/77863909-a7306f80-71da-11ea-81af-2d09733b2dd2.png
Some of them are aws commands, some of them are kubeflow namespace level operation.
https://user-images.githubusercontent.com/4739316/77863928-cfb86980-71da-11ea-8b2e-891ddbfae024.png
We ask user to restart kernel to make new installed command take affect.
https://user-images.githubusercontent.com/4739316/77863792-d1cdf880-71d9-11ea-8415-70087c9c378a.png
Resource are not cleaned up after experiment, we should keep this in mind when we develop the codes.
People may jump to different step without following tutorial in order, we add a few duplicate steps like creating S3 bucket, etc in multiple places. This needs to be refactor and make sure we have a prerequisite to setup everything before they jump into the real tutorial.
TODO: If multiple notebook share one bucket, how to pass bucket name into different notebooks?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/aws-samples/eks-kubeflow-workshop/issues/37, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAK7C4E4CJLT4ZLNMVYIAG3RJ7LNRANCNFSM4LWFK3WQ.

@cfregly This is great. We should use more like this rather than a random string for bucket name, etc.


Revert commit to not make bold use bright colors, this was a mistake.

I tried to push this direct (clean repo with ssh url) and do not have permission, the error is:
ERROR: Permission to mechpen/rterm.git denied to sstanfield.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
This reverts my bad patch for bold colors.

I sent a collaboration invitation to you.  Could you accept?

I never got an email so missed it.  If you sent it Friday though I had a hickup with email (lost dns for a while) so it may have gotten lost.  Anyway, found it in github and accepted, thanks.


UI : Different Windows for Map and Description

Coverage increased (+0.06%) to 82.626% when pulling 20a70e6c963b5f12039aabb158ad75f87c9345a0 on DericKJW:master into 56cf6ff83cd5ce3e2016315f65ce749fe377e916 on CS2103AUG2017-F10-B2:master.


[DS-3694] Clean up EHCache configuration mess

https://jira.duraspace.org/browse/DS-3694

I think #1860 is unrelated, a good idea, and any collision would be easily mended.

Please rebase this PR against the latest master branch.  The master branch now requires adherence to our new Java Code Style documented at: https://wiki.duraspace.org/display/DSPACE/Code+Style+Guide
If you have any questions, feel free to ask in this PR or on our Slack: https://wiki.duraspace.org/display/DSPACE/Slack


[Bug-BE] [log] After the Flink task fails, the corresponding log cannot be found

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
After the Flink task fails, the corresponding log cannot be found

What you expected to happen
The logs should be saved in the corresponding directory, such as: /opt/release/0511/worker-server/logs/20220512
How to reproduce
Let the Flink task fail
Anything else
No response
Version
dev
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

It seems like your worker's log pattern was not the default setting of ```dev`` branch. Did you cusomize it? @welsh-wen

How to set dev mode, please tell me.


Add DSE 6.8.33 to the build matrix

Sorry the repetition, this was already done in: https://github.com/k8ssandra/management-api-for-apache-cassandra/issues/283
This issue was created with a different automation user (the one will be used from now on).


Difficulty configuring reverse proxy

Really looking forward to using umami - it looks great.
I've followed the installation instructions and (after some adventures, I'm on FreeBSD) it seems to run ok. I've set up a reverse proxy on Apache 2.4 with a subdomain and get the login page fine on https://my-subdomain.example.com/ . However, I can't log in - mysql refuses all requests from the reverse proxy with the following:
PrismaClientInitializationError2 [PrismaClientInitializationError]: Error querying the database: Server error: `ERROR HY000 (1130): Host '[EXTERNAL_IP]' is not allowed to connect to this MySQL server'

Apache, mysql and umami are all installed on the same machine.
My Apache proxypass config is like so:
<VirtualHost *:443>
  ServerName my-subdomain.example.com
  ...
  ProxyPass "/" "http://localhost:3000/"
  ProxyPassReverse "/" "http://localhost:3000/"
</VirtualHost>

Various places suggested setting bind-address in the mysql config to <IP_ADDRESS>, but this a) seems wrong and b) doesn't make any difference.
I tried setting my umami user in the mysql db to be umami-user@EXTERNAL_IP instead of umami-user@localhost, changing the value of DATABASE_URL accordingly, and setting mysql's bind-address to <IP_ADDRESS>, but without result.
Kind of tearing my hair out after several straight hours tinkering with various Apache config tweaks, none of which made any difference.
Any help would be much appreciated.

The error looks like it's related to mysql and not apache. The app is making the database connection, not the user. Maybe this will help, https://stackoverflow.com/questions/19101243/error-1130-hy000-host-is-not-allowed-to-connect-to-this-mysql-server

The error looks like it's related to mysql and not apache. The app is making the database connection, not the user. Maybe this will help, https://stackoverflow.com/questions/19101243/error-1130-hy000-host-is-not-allowed-to-connect-to-this-mysql-server

Thank you!
This fixed it - I had set the umami user in the database to be 'my-user'@'localhost' and not 'my-user'@'%'. Making that change solved the problem, and umami is now working fine.
Given that the database url specifies localhost and that my-sql is bound only to localhost according to bind-address, it was not obvious (to me, anyway) but a fix is a fix. Maybe worth noting in the docs?
Anyway, thank you once again.

Thank you!
This fixed it - I had set the umami user in the database to be 'my-user'@'localhost' and not 'my-user'@'%'. Making that change solved the problem, and umami is now working fine.
Given that the database url specifies localhost and that my-sql is bound only to localhost according to bind-address, it was not obvious (to me, anyway) but a fix is a fix. Maybe worth noting in the docs?
Anyway, thank you once again.


Cannot flash firmware on Mac OS X

How can I flash firmware on the devkit from a Mac OS X? I succesfully installed the driver from here http://raysfiles.com/drivers/ch341ser_mac.zip and can talk with the ESPlorer to the AT firmware. But for some strange reason flashing does't work.
To do this I press the flash button while powering up and run the esptool.py as I do when I flash any other ESP8266...
Might this be an issue with the CH340G serial-to-usb converter?

same problem here ...

I tried to investigate this: themadinventor/esptool#26 - if you don't mind testing 77400 baud, do you see the same values for boot mode? Works OK with an external UART.
However, looking at #5 - that might be the source of the problem.

On Mac OS X, once the driver CH341SER_MAC_ZIP is installed, has you launched on Terminal sudo nvram boot-args="kext-dev-mode=1"?

 Since AT commands work, well, it's not the unsigned kext.
I'm also seeing the exact same problem with a different (signed) driver; AT commands (and other UART work after boot) works fine, flashing doesn't.

same problem here with Repleo Drivers.

Hi I got v0.9 and plugged in to my mac but get cant auto detect firmware because mcu didn't send a proper reply. AT commands gets timed out obviously. Port is open with 9600. Pls help.

The default tool esptool doesn't work but pyesptool works fine. Give it a try.

@rei-vilo Where are you getting this pyesptool?

@AddoSolutions Check https://github.com/themadinventor/esptool andhttp://embeddedcomputing.weebly.com/nodemcu-board.html for more pointers

rei-vilo - thanks for the reply. I really couldn't figure out the pyesptool and got it flashed using my Ubuntu machine. Thanks now I can see you have given the link to pyesptool. What I think it's the USB to serial driver issue in OSX. In Ubuntu esprool.py works like a charm. Just plug the devkit and execute the esptool.py command.

Actually, ’esptools.pyworks very well on Mac OS X, providedlibusb` —and the CH340 serial to USB driver for the NodeMCU board— have been installed.
What doesn't work with the NodeMCU board is esptools.

esptools.py was patched to support this board since this issue was opened so that might be part of it.

Funny, for me the latest version of esptool.py still doesn't work on Mac. I can see the Repleo-Port, so this is not the problem. Which version of the Nodemcu board do you use? I have a V0.9. rei-vilo and abl: can you describe your setup?

Here are the details:

NodeMCU board 0.9 05/12/2014 from http://nodemcu.com/index_en.html#fr_54747661d775ef1a3600009e
firmware from http://bbs.espressif.com/viewforum.php?f=5
esptool.py, no release number, from https://github.com/themadinventor/esptool
Python 2.7 as esptool.py doesn't run on Python 3.0
pyserial release 2.6 from https://pypi.python.org/pypi/pyserial
CH340 driver release 1.1 from http://www.wch.cn/download/CH341SER_MAC_ZIP.html
Mac OS X 10.10.3

Also, make sure power can deliver up to 350 mA. Flashing and reboot seem to require a lot of power.

@squix78 Take a look at this https://github.com/themadinventor/esptool/issues/36#issuecomment-102634652 , I just commented a workaround which is working under OS X, using a CH341 with Repleo driver, maybe it works for you too.

esptool rendered nodeMCU unhappy flashed the FW ok, but after reset ESPlorer could not connect to the board.
followed @LucasG2000 post only with slight change (I pressed Flash button only). After that press Reset button and ESPlorer is good to go.

Turns out my problem was with the driver, after updating it it looks like it works like a charm now! Thanks :)

i can confirm too that updating mac driver can help there:
http://www.mblock.cc/posts/run-makeblock-ch340-ch341-on-mac-os-sierra


serenity with dmz and lan

Hi
We plan to run Serenity in DMZ and our DB server in the LAN behind a firewall.
We'll probably have to expose the services at backend.
What's the best way to do that and do SERENITY support it?
We want to use restapi in the backend.
shachar

Hi Shacharon,
if you are allowed to just put the SQL Server into the Intranet Zone and the IIS with full Serenity in the DMZ then you are fine (if you run the Serenity-App's database on the SQL Default instance, just open TCP 1433 (your SQL instance) and UDP 1434 (the SQL browser Service) and this works as Long as you use SQL internal authentication.
If - in the above scenario - you use Windows authentication, then depending on where your AD Domain Controllers are located (Intranet or DMZ), you have also to open all the AD related ports from your Serenity IIS to the Domain Controllers on the Intranet.
If - in the above scenario - you are running the Serenity's database on a non-Default SQL instance (e.g. on a SQL-Cluster), you must make sure that the SQL instance's TCP port is configured fix to a (freely definable) port. Otherwise the SQL instance uses every time on startup different port and you would have to open any TCP port above 1024 in order to work this permanently.

But if you Need to host the Client part of Serenity in your DMZ and the Server part (MVC) in the Intranet Zone (including the Serenity SQL Database), then I cannot help you how to Stretch the app .
Probably Vokan knows how to do it.
With Kind regards,
John

תרגם
תודה רבה על התשובה , לצערי המקרה שתיארת הוא אינו המצב שלנו.
אנחנו בדיוק במצב  ההופכי למה שתיארת, SQL ב LAN וה MVC ב FRONTEND.
אני מקווה שולקן יוכל לעזור
Thank you very much for the answer.
Unfortunately, the case you described is not our situation.
We are exactly in the opposite position to what you have described, SQL in LAN and MVC in FRONTEND.
I hope Vokan can help or will give an idea.

That is possible and we implemented it for some project, but it is not as simple as explaining it with a few words here and that's pretty out of scope.

Hey @shacharon, follow @JohnRanger instructions, it is exactly what you need.
I have the same you need (sql behind the firewall in the lan, and the app in the public web server) and the only thing I needed to do is to open the sql port. (right now I'm not using the AD to authenticate, but I expect to implement that part soon.)
Gus.

Unfortunately, in terms of the system, we will not be able to open ports due to information security limitations.
We do want to use the system, how can (if at all) expose the services to another server.
You mentioned before you did something like this.

I concur that  @shacharon gave the correct approach. I would only add that the firewall should only open the database ports from the IP of the front-end to/from the database server IP address/es. For security, you may consider having two network cards with different IP addresses. One for pacing the Internet firewall, and another facing the LAN firewall. From a Serenity perspective, this is really out of scope of the application and really in the network security domain.

After reading the first post again, I think Shachar want to separate the data layer from the UI and host the data layer in the lan, and the ui in the dmz, and communicate the two with apis.
But this means to cut Serenity in two and sew the two parts back together.
Without the help of the original architect (@VR-Architect, no put intended!) of Serenity (#VolkanForPresident) you are creating a security risk grater than opening the port (witch btw you can do it without any security risk at all if you do it correctly).
@shacharon, If you really need to do this, I encourage you to hire Volkan and his team to do it.
Gus.


Investigate adding additional filtering criteria to Politicians search

Currently we allow search via name and state (#511). We may want to investigate allowing additional searching via party/role/zip code/public comments/etc

We should also tackle #581 as part of this work


Restrict S3 bucket access to cloudfront via AOID

Fixes #115
Restricts the S3 policy to only allow from a cloudfront access origin ID. Currently uses the same origin for status page and admin page - not sure if there's ramifications to that, but I assume you can't hop to a different bucket from a cloudfront distro.
Borrowed the property snippet from https://gist.github.com/matalo33/fc2a9d8698c069e134b4b0b6640f0c84

Doh! Didn't see #119 - though it does look like it's using WAF/ACL as opposed to cloudfront access origin ID. This might be another viable solution though.

I have some free time today so I've implemented it by myself. So let me close this PR. Thank you again for your contribution.


updateTopicPerm need to check all related brokers config

BUG REPORT

Please describe the issue you observed:
updateTopicPerm on a broker in a cluster with 2 brokers. The first step is to update topic perm to 2, it succeed. Then update it to 6, failed.

Because I have 2 brokers,  when update one of them to 2,  the 2 brokers perm will be 2&6.  The implementation will take only the first  one's perm to check if it can be updated.
       TopicRouteData topicRouteData = defaultMQAdminExt.examineTopicRouteInfo(topic);
        assert topicRouteData != null;
        List<QueueData> queueDatas = topicRouteData.getQueueDatas();
        assert queueDatas != null && queueDatas.size() > 0;
        QueueData queueData = queueDatas.get(0);

Please tell us about your environment:

Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc):

FEATURE REQUEST

Please describe the feature you are requesting.

Provide any additional detail on your proposed use case for this feature.

Indicate the importance of this issue to you (blocker, must-have, should-have, nice-to-have). Are you currently using any workarounds to address this issue?

If there are some sub-tasks using -[] for each subtask and create a corresponding issue to map to the sub task:

sub-task1-issue-number: sub-task1 description here,
sub-task2-issue-number: sub-task2 description here,
...

#727 under reviewed.


dotnet test too many tcp connections time_wait

From @theoldscarana on January 29, 2019 14:31
Hi,
I have a problem with "dotnet test" in container linux.
This is the scenario:

Nunit Test Project
Framework .Net Core 2.1
In the nunit test project, I have a single test that execute a query on sql server
I use the docker image: "microsoft/dotnet:2.1-sdk"
Docker Engine Setting: 4 CPU, 2GB RAM

In the container I execute these steps:
1- dotnet restore ./
2- dotnet build ./ --no-restore
3- dotnet publish ./ --no-build
4- dotnet test ./NUnitTestCore.csproj -d diagnostic.txt --verbosity normal --no-build --logger:nunit;LogFilePath=../NTestResult.xml
The execution of step 4 is very slow and sometimes it doesn't end.
I found many tcp connections in TIME_WAIT to sqlserver(port 1433) with netstat and the dotnet test diagnostic file reports many rows like this:
"TpTrace Verbose: 0 : 676, 7, 2019/01/29, 13:42:29.437,<PHONE_NUMBER>8400, vstest.console.dll, TcpClientExtensions.MessageLoopAsync: NotifyDataAvailable remoteEndPoint: <IP_ADDRESS>:45445 localEndPoint: <IP_ADDRESS>:39065"
Example netstat output:
TCP    <IP_ADDRESS>:57084   x.x.x.x:1433    TIME_WAIT       0
TCP    <IP_ADDRESS>:57085   x.x.x.x:1433    TIME_WAIT       0
TCP    <IP_ADDRESS>:57086   x.x.x.x:1433    TIME_WAIT       0
TCP    <IP_ADDRESS>:57087   x.x.x.x:1433    TIME_WAIT       0
TCP    <IP_ADDRESS>:57088   x.x.x.x:1433    TIME_WAIT       0
TCP    <IP_ADDRESS>:57089   x.x.x.x:1433    TIME_WAIT       0
TCP    <IP_ADDRESS>:57090   x.x.x.x:1433    TIME_WAIT       0
TCP    <IP_ADDRESS>:57091   x.x.x.x:1433    TIME_WAIT       0
TCP    <IP_ADDRESS>:57092   x.x.x.x:1433    TIME_WAIT       0
TCP    <IP_ADDRESS>:57093   x.x.x.x:1433    TIME_WAIT       0
TCP    <IP_ADDRESS>:57094   x.x.x.x:1433    TIME_WAIT       0
I tried also with MSTest and Xunit project with the same result.
If I use the image in windows container I don't encounter the problem.
Anyone noticed this behavior?
Copied from original issue: dotnet/cli#10667

@livarcocc, can you give the netstat output with the process as well?

@livarcocc, sorry for the delay on this, can you provide me with a small project that's running into this for me to repro? In the meantime I'll try to procure a linux machine.

@karanjitsingh, attached a test project, you should change the database connection and query.
NUnitTestCore.zip

@theoldscarana, can you share the docker image?

@karanjitsingh, the image was build with the Dockerfile included in the zip file

TCP <IP_ADDRESS>:57084 x.x.x.x:1433 TIME_WAIT 0
TCP <IP_ADDRESS>:57085 x.x.x.x:1433 TIME_WAIT 0
TCP <IP_ADDRESS>:57086 x.x.x.x:1433 TIME_WAIT 0
TCP <IP_ADDRESS>:57087 x.x.x.x:1433 TIME_WAIT 0
TCP <IP_ADDRESS>:57088 x.x.x.x:1433 TIME_WAIT 0
TCP <IP_ADDRESS>:57089 x.x.x.x:1433 TIME_WAIT 0
TCP <IP_ADDRESS>:57090 x.x.x.x:1433 TIME_WAIT 0
TCP <IP_ADDRESS>:57091 x.x.x.x:1433 TIME_WAIT 0
TCP <IP_ADDRESS>:57092 x.x.x.x:1433 TIME_WAIT 0
TCP <IP_ADDRESS>:57093 x.x.x.x:1433 TIME_WAIT 0
TCP <IP_ADDRESS>:57094 x.x.x.x:1433 TIME_WAIT 0

@theoldscarana, I don't think these connections relate to anything that vstest is doing.
The log that you mentioned TpTrace Verbose: 0 : 676, 7, 2019/01/29, 13:42:29.437,<PHONE_NUMBER>8400, vstest.console.dll, TcpClientExtensions.MessageLoopAsync: NotifyDataAvailable remoteEndPoint: <IP_ADDRESS>:45445 localEndPoint: <IP_ADDRESS>:39065 is the connection between the testhost.exe/dll and vstest.console.exe/dll


Use production builds of Ruff for pre-commit

Requiring cargo build per commit is way too slow. Instead, we use the production Ruff version. Additionally, Black is replaced with the Ruff formatter.

This has the downside of not being particularly easy to bump (not automated, can't be done until after we finish a release).


fix: remove splunktalib as not used

Cleanup after #229

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

v5.3.1
GitHub release

Your semantic-release bot :package::rocket:


Ktor transport (server/client) for more tragets

Hello, i know this lib is very new and things are still moving.
But I like the concept very much, and I would love to use it in some of my projects.
I have 2 main issues:

My server side is going to be on Linux and right now there isn't ktor server transport for this target.
As I see the impl and underlying protocol, I have to create a KRPC server for each client.
I would love to simply supply the same instance for all clients.
I understand that the main reason is ID'S not being unique between different client calls.
Maybe uuid v7 which is time based can be used?
Anyhow, I know that some work around could be to make my impl for the service an inner class of main service or singleton and make them very thin and simply redirect the calls to main/singleton service.
But still, I don't like all this instantiation.

Thanks in advance and I am really looking forward to use this lib in my code!

Hi, @ShayOinif ! These are two different requests as I see
First one can be represented by https://github.com/Kotlin/kotlinx-rpc/issues/95 and https://github.com/Kotlin/kotlinx-rpc/issues/83 , while the second one more complicated.
It will be a part of a bigger protocol rework we plan for later, as we have a lot of things to consider at once, so we want to take out time with it

I will rename the issue to address only the second point


add more healthcheck for ssh

Signed-off-by: Boris Glimcher<EMAIL_ADDRESS>

All of these health check the same IP and port?

yes, because they internal to docker


[BUG] memory allocation failure on docker deploy

Environment
Self-Hosted (Docker)
Version
2.1.0
Describe the problem
Trying to deploy docker container, memory allocation failure error and container keep restarting over and over again.
deploying with "latest" tag, tried 2.0.9 - 2.0.6 same outcome.
VM Ubuntu 20.04.4 LTS
Ballooning 2GB ram
Docker version 20.10.16, build aa7e414
Temporary solution is to turn off ballooning and give the vm full 2GB to alocate, then container deploy with no problems.
Additional info
yarn run v1.22.15
$ npm-run-all --parallel build-watch start
$ node server
$ vue-cli-service build --watch --mode production
Checking config file against schema...
✔ Config file is valid, no issues found
SSL Not Enabled: Public key not present
██████╗  █████╗ ███████╗██╗  ██╗██╗   ██╗
██╔══██╗██╔══██╗██╔════╝██║  ██║╚██╗ ██╔╝
██║  ██║███████║███████╗███████║ ╚████╔╝
██║  ██║██╔══██║╚════██║██╔══██║  ╚██╔╝
██████╔╝██║  ██║███████║██║  ██║   ██║
╚═════╝ ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝   ╚═╝

Welcome to Dashy! 🚀
Your new dashboard is now up and running with Docker

Using Dashy V-2.1.0. Update Check Complete
✅ Dashy is Up-to-Date

Building for production...

WARN  A new version of sass-loader is available. Please upgrade for best experience.
<--- Last few GCs --->
[66:0x7fe11678b350]    31234 ms: Scavenge 346.6 (358.3) -> 346.6 (359.3) MB, 4.8 / 0.0 ms  (average mu = 0.283, current mu = 0.164) allocation failure
[66:0x7fe11678b350]    31314 ms: Scavenge 347.5 (359.3) -> 347.4 (364.1) MB, 79.4 / 0.0 ms  (average mu = 0.283, current mu = 0.164) allocation failure
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
error Command failed with signal "SIGABRT".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "build-watch" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Please tick the boxes

 You are using a supported version of Dashy (check the first two digits of the version number)
 You've checked that this issue hasn't already been raised
 You've checked the docs and troubleshooting guide
 You agree to the code of conduct

    Yarn   Fast, reliable, and secure dependency management.

Covered in the  Troubleshooting guide.
Similar to #380, #350, #297, #349, #510 and #511.
If you can, please try and check the docs and past issues before opening a new ticket.


The 'rdkit-pypi>=2021.03' distribution was not found and is required by npfc

When installed with pip, the error occur:
The 'rdkit-pypi>=2021.03' distribution was not found and is required by npfc

Dear Valen,
could you please indicate what OS and Python version you are using?

Thank you for the reply @jose-manuel . I use Google Colab and that is the link https://colab.research.google.com/drive/11fimgliBLGaY2ht8yByxIkEm1QZ1M32E?usp=sharing
The OS is Ubuntu 22.04.2 LTS and python is 3.10.12

I thought it is because the npfc use rdkit-pypi which should be rdkit now?

Hi @Valen-C12 , I should have time to check within the week. I have an laptop with ubuntu, I never used Google Colab before. I will let you know asap.


Uploading docx file and converting to native Gdocs format issue

using Gam 3.71
Full steps to reproduce the issue:

From (https://github.com/jay0lee/GAM/wiki/GoogleDriveManagement#updating-drive-files-for-users)

Example command:  gam user<EMAIL_ADDRESS>add drivefile localfile MyRamblings.docx convert drivefilename "My Ramblings"
2.  The file is uploaded, but will render as a downloadable file (not a Google Doc).
3.  Changing the command to "gam user<EMAIL_ADDRESS>add drivefile localfile MyRamblings.docx convert drivefilename "My Ramblings.docx"  corrects the file format, but leaves the ".docx" on the file name.
Expected outcome (what are you trying to do?):
Upload a docx file, convert it to native Google Docs and give it a "pretty" name (remove the .docx from the name).
The file can be renamed via the file ID.

Brad,
If you don't want the .docx extension, don't include it in drivefilename.
gam user<EMAIL_ADDRESS>add drivefile localfile MyRamblings.docx convert drivefilename "My Ramblings"
Ross

Yes - I understand.   That's how it should work per the documentation.  Unfortunately, the command does not render a native Google doc unless you do add the .docx extension.  See number 2 above.  If the extension is left off the target name, a binary file is rendered, not a Google doc.
The only way I can get this work is to leave the extension on the target document name, let it convert and then rename inside Drive as a second step.


curl -sL https://git.io/getLatestIstioCtl   does not work yet

Bug description
New way to download just istioctl is not working
https://github.com/istio/istio/blob/master/release/downloadIstioCtl.sh#L20
Expected behavior
Can use the new curl to get istioctl binary
Steps to reproduce the bug
Try new curl cmd
Version (include the output of istioctl version --remote and kubectl version)
1.4.0-beta.4
How was Istio installed?
Environment where bug was observed (cloud vendor, OS, etc)

cc @linsun

@kramvan1 FYI, this is the script - https://raw.githubusercontent.com/istio/istio/release-1.4/release/downloadIstioCtl.sh
I'll try to see if I can get it working

@kramvan1 this works pretty well for me
$ curl -sL https://raw.githubusercontent.com/istio/istio/release-1.4/release/downloadIstioCtl.sh | sh -
Downloading istioctl-1.4.0-beta.4-osx.tar.gz from https://github.com/istio/istio/releases/download/1.4.0-beta.4/istioctl-1.4.0-beta.4-osx.tar.gz ...
istioctl-1.4.0-beta.4-osx.tar.gz download complete!

Add the istioctl to your path with:
  export PATH=$PATH:$HOME/.istioctl/bin

Begin the Istio pre-installation verification check by running:
	 istioctl verify-install

Need more information? Visit https://istio.io/docs/reference/commands/istioctl/


Keep state lock for duration of journal context

The state change lock should be held for the duration of the RPC, so that when the pause lock is held, there are no outstanding RPCs. This change makes the state change lock to be held during the whole journal context, so that when backups pause the state, it is guaranteed there are no state changes or journal changes in progress.
Fixes #11259

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/9027/
Test PASSed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/9034/
Test FAILed.

Jenkins, test this please

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/9035/
Test FAILed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/9037/
Test PASSed.

alluxio-bot, merge this please

alluxio-bot, cherry-pick this to branch-2.2 please

alluxio-bot, cherry-pick this to branch-2.1 please


Separate evaluation logs from the model logs

@zimmski please check it out if it is working as you like or if there is anything missing.

Finally, taking this PR!


cargo-credential-1password: Add missing --account argument to op signin command

What does this PR try to resolve?
Without this the account chooser is shown by the op signin command, even though the user has already specified an account via the --account command line argument to the cargo-credential-1password CLI.
Note that the --vault in this case does not need to be forwarded to op, since it is irrelevant for the op signin command.
How should we test and review this PR?

Have a 1password installation with multiple accounts
Use global-credential-providers = ["cargo-credential-1password --account my.1password.com"] in the cargo config file
Run e.g. cargo publish
Notice how you are seeing an account switcher even though --account was used
Apply this patch and notice that the account switcher is no longer there and the correct account is selected automatically

Additional information
see https://rust-lang.zulipchat.com/#narrow/stream/246057-t-cargo/topic/1password.20credentials.20provider

@Muscraft already got an 1password account so they might be more helpful than me :)
r? Muscraft

I can take this.
r? ehuss

I don't have multiple accounts, so I couldn't verify it would go to the account chooser before this change, but I was able to verify I could sign in after the change.
Note:  op signin states this is a way to pick a specific account.
determines which to use in this order:

1. The account specified with the '--account' flag.

Thanks!
@bors r+

:pushpin: Commit a91cae4192d7f1d7e8af661f8b31e86f6978abdc has been approved by ehuss
It is now in the queue for this repository.

:hourglass: Testing commit a91cae4192d7f1d7e8af661f8b31e86f6978abdc with merge 4f707b531040859e45687ffd3623119171152c05...

:broken_heart: Test failed - checks-actions

The failure was caused by a crates.io deployment. It's being rolled back, see this Zulip comment.

@bors retry

:hourglass: Testing commit a91cae4192d7f1d7e8af661f8b31e86f6978abdc with merge 8d7ec643549a30bbf26dc64b41b16710a9b93122...

:sunny: Test successful - checks-actions
Approved by: ehuss
Pushing 8d7ec643549a30bbf26dc64b41b16710a9b93122 to master...


[embedded] Add a section on Strings into the User Manual

Also, update the feature table, and expand docs on allocations.

@swift-ci please smoke test

@swift-ci please smoke test


Try-catch-finally

I'd like the ability to try-catch-finally over my asserts so that at the very end I can stop and delete my test canister, regardless of whether all of the asserts passed or not.
Right now, if my tests failed, my test canister (which I created at the top of my ic-repl script) doesn't get cleaned up.

I'm experimenting to see how far we can go without any control flow :)
For your use case, we can refactor the script into three separate files: 1) creating canisters; 2) testing; 3) clean up.
At the end of the first script, you can use export "env.sh" to export all variables you have defined. Script 2 and 3 will load "env.sh" at the start.


googstart_TTS runs on start up but google-assistant-demo not functional

Running rpi in headless mode. The assistant runs at start up as evidenced by the "Assistant Ready" voice but does not function until login whereby it works until it quits at the end of the session.
It is fixed by the changes made in this commit. The commit adds an & after the .bashrc line.

Yep. Merged the commit. It should work now.
Issue closed.


Multi Step Bar Component

Fronts the component here: coveo/vapor#504

we have a linter that lints stuff with npm run lintfix you should run that before pushing your code, otherwise your build will always fail
if you use vscode you can set your tslint.json file to be at node_modules/tsjs/tslint.json

Codecov Report

Merging #619 into master will decrease coverage by 0.01%.
The diff coverage is 96.29%.

@@            Coverage Diff             @@
##           master     #619      +/-   ##
==========================================
- Coverage   99.72%   99.71%   -0.02%
==========================================
  Files         259      261       +2
  Lines        6566     6627      +61
  Branches     1535     1541       +6
==========================================
+ Hits         6548     6608      +60
- Misses         18       19       +1

Impacted Files
Coverage Δ

src/components/multiStepBar/MultiStepBar.tsx
96.29% <96.29%> (ø)

src/ReactVaporReducers.ts
100% <0%> (ø)

Continue to review full report at Codecov.

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

Thanks for the reviews guys :)


Document escaping rules for JsonPath patterns.

I had a key in my JSON that included dots. I found from some other JsonPath libraries that escaping them requires you to include a bracket and single quotes.
val jsonPath = JsonPath.compile("$.['4.0.0']")

// as opposed to
val jsonPath = JsonPath.compile("$.4.0.0")

The docs already mention "Bracket-notated key value accessor for JSON objects" but it was not obvious to me that this should be used for escaping purposes. I'm not aware if there are other escaping rules to be aware of.
It would be nice to add this to the docs. I am willing to open a PR if you think that this is a valid point to add to the docs.

@DSinge what do you think?

@curioustechizen can you point me to the other library that describes escaping them? I feel like this information has less to do with a specific library, and more to do with how JSONPath itself works, so I'd be hesitant to add that info to our documentation. I'm open to seeing what you can come up with though.

Sorry I did not mean that other libraries mention it in their documentation. I meant that there seems to not be agreement among libraries on how to escape dots. For example the answers to this SO question seem to indicate that there are 2 distinct syntaxes for escaping dots.

The bracket and single-quotes syntax that I described in the issue description
Another implementation (rest-assured) that omits the brackets


MetisMenu AngularJs Filter

I am using MetisMenu with my angularJs application.
I want to add searching option in metismenu. I have added text bob on top of menu for this purpose. Application is filtering menu when I type any text in input field. Similarly it shows complete list when I removed text from search box.
But when I remove the filter text then menu is not navigable anymore. Please check blow screenshots + code.
It seems that filter renders new menu list but metisMenu don’t know about those new or removed items. How can i update MetisMenu every time I update the list - or MetisMenu should listen for some events

                    ODINE

                <input type="text" placeholder="Search in menu" name="search" class="form-control input-s-lg" ng-model ="searchText" />

                 Reports

                        {{uiReportGroup.label}}

                                {{uiReport.SrName}}

Here is the controller code:
$scope.searchText;
        $scope.searchFilter = function (uiReportGroup) {
            if (!$scope.searchText) {
                return true;
            }
            var keyword = new RegExp($scope.searchText, 'i');
            if (keyword.test(uiReportGroup.label)) {
                return true;
            }
            for (var i = 0; i < uiReportGroup.items.length; ++i) {
                if (keyword.test(uiReportGroup.items[i].SrName)) {
                    return true;
                }
            }
            return false;
        };

Bellow screenshot is showing filter list in Menu when i type in search box.

I get bellow screen after removing text from search box. Now I cannot go to third level of any menu item. Like clicking ‘Business Reports’, ‘System Reports’ menu group will not open third level menu items.

Kindly help me in resolving this issue
regards,
Yasir

Do you have a solution?

you can write a special directive to solve this problem.
in the directive use element.metisMenu() to re-register the event.then use this directive to the html ng-repeat line,so whenever the repeat end it will call this function again.

  .directive('ng-metis', function ($timeout) {       var directive = {         restrict: 'A',         link: function(scope, el, atts) {             $timeout(function () {                 angular.element(el).metisMenu();                 //angular.element("#menu").metisMenu();             }, 0);                      }     };


Wrong qvge.appdata.xml

bash-5.0$ appstream-util validate-relax --nonet qvge.appdata.xml
qvge.appdata.xml: failed to parse qvge.appdata.xml: Error on line 15: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as &

if putting semicolon does not help, please help somebody...

if putting semicolon does not help, please help somebody...

if putting semicolon does not help, please help somebody...

...you used an ampersand character without intending to start an entity

if putting semicolon does not help, please help somebody...

...you used an ampersand character without intending to start an entity


[wip] Upload images functionnality

Related to #46
This is a first attempt to an image upload functionality.
A video is better than 100 words, so here we start:

You can see that it supports multiples images input.
Client-side usage
We need to specify the server address where the images will be sent with the imageUploadEndpoint option:
var easyMde = new EasyMDE({
    element: document.getElementById('md-text-area'),
    hideIcons: ['image'],
    showIcons: ['upload-image'],
    imageUploadEndpoint: "https://example.com/uploadImage"
});

upload-image is a new icon dedicated to file upload, visually identical to the actual image button. So this will not change the behavior of current image icon, for backward compatibility.
Server-side usage
The server is supposed to save this image, and if it's successful, return a 200-OK HTTP response containing the relative path of the image.
To give you an example, this is the Python code I used at server-side:
@app.route('/imageUpload', methods=['POST'])
def upload_image():
    """
    Upload an image to the server and store it to the folder defined in
    IMAGE_UPLOAD_FOLDER in flask configuration.
    Note that the image folder must be created first and with write access.
    :return: The relative path of the uploaded file, or an error among with the
    corresponding HTTP error code.
    """
    from werkzeug.utils import secure_filename
    import os.path as op
    if 'image' not in request.files:
        return 'no_file_part', 400  # Bad request
    file = request.files['image']
    if not file.filename:
        return 'no_selected_file', 400  # Bad request
    if file and '.' in file.filename \
            and file.filename.rsplit('.', 1)[1].lower() in app.config['ALLOWED_IMAGES_TYPES']:
        file_name = secure_filename(file.filename)
        file_path = op.join(app.config['IMAGE_UPLOAD_FOLDER'], file_name)
        file.save(file_path)
        return file_path
    return 'no_allowed_file', 415  # Unsupported Media Type

As you can see, we check the input and image type, save it to a static folder served by the application using filename attribute, then return the relative image path.
Options

uploadImage: If set to true, enables the image upload functionality, which can be triggered by drag&drop, copy-paste and through the browse-file window (opened when the user click on the upload-image icon). Defaults to false.
imageMaxSize: Maximum image size in bytes, checked before upload (note: never trust client, always check image size at server-side). Defaults to 1024*1024*2 (2Mb).
imageAccept: A comma-separated list of mime-types used to check image type before upload (note: never trust client, always check file types at server-side). Defaults to image/png, image/jpeg.
imageUploadEndpoint: The endpoint where the images data will be sent, via an asynchronous POST request. The server is supposed to save this image, and if it's successful, return a 200-OK HTTP response containing the relative path of the image. No default value.
imageTexts: Several string literals used in image-upload features:

errorImageTooBig: The error prompted to the user when the size of the image being imported is bigger than the imageMaxSize, where #image_name#, #image_size# and #image_max_size# will replaced by their respective values. Defaults to Image #image_name# is too big (#image_size#).\n' + 'Maximum file size is #image_max_size#..
sizeUnits: A comma-separated list of units used to display messages with human-readable file sizes. Defaults to b,Kb,Mb.

TODO
I'm considering to support copy-paste and drag&drop, among with minor improvements and bugfixes.
Reviews and suggestions are welcome. :)

Just added drag&drop:

Added status messages, similarly to GitHub text areas (only displayed if uploadImage option is set to true):

Aaand... copy-paste is here! :smile:

I think it's good for a proof of concept, I will wait for feedback before to continue.
@Ionaru can I have your opinion and reviews about this PR? :)

From your videos the feature looks awesome! I'm sorry I haven't been able to give it a closer look yet, things have been pretty busy for me.
I will try to have a better look at your feature this week.

With this last commit we can call openBrowseFileWindow() in order to use it outside the textArea:
document.getElementById('myImage').addEventListener('click', function(event) {
    easyMde.openBrowseFileWindow(function(imagePath) {
        console.log('image path: ' + imagePath);
    });
});

In this example, a click on myImage will open the browse file window, then save the images after validation, but instead of adding markdown on the text-area, it prints the image path.

Thanks for testing. I will fix points 1 and 2 next week.

This whole system uses a lot of top-level API keys, would it be possible to group a few under imageUpload or something that accepts an object, true for defaults and false to disabled it? I believe other parts of the API work like this as well.

I agree. I suggest:
options
├── ...
└── uploadImage
    ├── enableUpload
    ├── imageMaxSize
    ├── imageAccept
    └── imageUploadEndpoint

imageTexts location is related to #68: I would personally prefer a top-level texts (or similar), because imageUpload is not the only feature that need to allow text replacement. What do you think about:
options
├── ...
└── texts
    ├── ...
    └── imageTexts
        ├── sbInit
        ├── sbOnDragEnter
        ├── sbOnDrop
        ├── sbProgress
        ├── sbOnUploaded
        └── sizeUnits

Same for errorMessages, it could be:
options
├── ...
└── errorMessages
    ├── ...
    └── uploadImagesErrors
        ├── noFileGiven
        ├── imageTypeNotAllowed
        ├── imageTooLarge
        └── imageImportError

And errorCallback could also be at the top-level, to allow a better easyMde integration with the parent base code.

How is the status here? We could really use this in Gitea.

With the basic functionality working, but with a few minor points to solve, I expect this feature to be released in not too long a timeframe.
However with this being a non-profit open-source project, everyone that has contributed to this project has done so voluntarily in their own free time. As free time can be limited and is variable, I cannot guarantee a date when this feature will go live.

@Ionaru sure, no pressure. Gitea itself is only built by volunteers, so I know that situation pretty good.

Starting on some improvements in https://github.com/KolibriSolutions/easy-markdown-editor/tree/upload_images
For IE11 compatibility, polyfill ES6 works quite well, except for the dispatchEvent(new MouseEvent('click')) so i replaced this with a normal .click()

Work continued in #101

Thank you @JeroenvO!
I have to admit, I've given this up a little bit...


Form Validation on server

Hi Rafael,
Thanks for your work on this plugin. I was wondering if you had any recommendations for how to do form validation on the server side. I would like to POST the form content from one of the steps to the server and prevent going to the next step until the response is received.
By browsing your code I guess that maybe the onStepChanging option could be changed to be a function that returns a Deferred Object and then you could attach all the stuff in goToStep to its done callbacks (such as saving new state and changing visualization). Is there an easier way?
Anyway, just an idea since most applications do require all client-side validation to be mirrored on the server-side.

Hello @dlandis Can i see a working implementation?

Hello @dlandis Can i see a working implementation?

who is this
On Thu, May 11, 2017 at 10:16 AM, George Olympio<EMAIL_ADDRESS>wrote:

Hello @dlandis https://github.com/dlandis Can i see a working
implementation?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/rstaib/jquery-steps/issues/27#issuecomment-300732323,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZZuSxKwbudUlTHTNCw-oZjyUEOxU_V1ks5r4tH5gaJpZM4BS1kw
.


GPT error

Project looks interesting. However, running the GPT function throws the following error:
panic: runtime error: index out of range [0] with length 0

goroutine 98 [running]:
main.gptClient({0xc000110790, 0xd})
	/home/jason/go/pkg/mod/github.com/abeleinin/goki@v0.0.0-20240526032438-9653b1a4e4ff/gpt.go:113 +0xdbc
main.asyncGpt(0xc000185308, {0xc000110790?, 0xc0002960a8?})
	/home/jason/go/pkg/mod/github.com/abeleinin/goki@v0.0.0-20240526032438-9653b1a4e4ff/model.go:67 +0x30
created by main.(*User).Update in goroutine 1
	/home/jason/go/pkg/mod/github.com/abeleinin/goki@v0.0.0-20240526032438-9653b1a4e4ff/model.go:169 +0x311f

which in turn appears to leave the terminal in an unusable state (stty -echo among others are set and then not unset after the panic). it also leaves the json config files in .local/share/goki corrupted, which prevents it from starting until it is removed:
go: go version go1.22.2 linux/amd64
os: ubuntu 24.04.1

Thanks for submitting this issue! It looks like I wasn't doing proper error handling from the api response. Just double check that you set the environment variable OPENAI_API_KEY to a valid key from your openai account, and the generation should work. Feel free to reopen or submit more issues if you run into any!