Tensorflow import error //ImportError: DLL load failed: The specified module could not be found.

Traceback (most recent call last):
File "C:\Users\Research\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
mnist = tf.keras.mnist
AttributeError: module 'tensorflow' has no attribute 'keras'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Research\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2040, in showtraceback
stb = value.render_traceback()
AttributeError: 'AttributeError' object has no attribute 'render_traceback'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Research\AppData\Roaming\Python\Python37\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\Research\AppData\Roaming\Python\Python37\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\Research\AppData\Roaming\Python\Python37\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Users\Research\Anaconda3\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\Research\Anaconda3\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Research\Anaconda3\lib\site-packages\IPython\core\ultratb.py", line 1101, in get_records
return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
File "C:\Users\Research\Anaconda3\lib\site-packages\IPython\core\ultratb.py", line 319, in wrapped
return f(*args, **kwargs)
File "C:\Users\Research\Anaconda3\lib\site-packages\IPython\core\ultratb.py", line 353, in fixed_getinnerframes
records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
File "C:\Users\Research\Anaconda3\lib\inspect.py", line 1502, in getinnerframes
frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
File "C:\Users\Research\Anaconda3\lib\inspect.py", line 1460, in getframeinfo
filename = getsourcefile(frame) or getfile(frame)
File "C:\Users\Research\Anaconda3\lib\inspect.py", line 696, in getsourcefile
if getattr(getmodule(object, filename), 'loader', None) is not None:
File "C:\Users\Research\Anaconda3\lib\inspect.py", line 733, in getmodule
if ismodule(module) and hasattr(module, 'file'):
File "C:\Users\Research\AppData\Roaming\Python\Python37\site-packages\tensorflow_init.py", line 50, in getattr
module = self.load()
File "C:\Users\Research\AppData\Roaming\Python\Python37\site-packages\tensorflow_init.py", line 44, in _load
module = importlib.import_module(self.name)
File "C:\Users\Research\Anaconda3\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 953, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in call_with_frames_removed
File "C:\Users\Research\AppData\Roaming\Python\Python37\site-packages\tensorflow_core_init.py", line 42, in
from . api.v2 import audio
File "C:\Users\Research\AppData\Roaming\Python\Python37\site-packages\tensorflow_core_api\v2\audio_init.py", line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File "C:\Users\Research\AppData\Roaming\Python\Python37\site-packages\tensorflow_core\python\ops\gen_audio_ops.py", line 9, in
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
File "C:\Users\Research\AppData\Roaming\Python\Python37\site-packages\tensorflow_init.py", line 50, in getattr
module = self.load()
File "C:\Users\Research\AppData\Roaming\Python\Python37\site-packages\tensorflow_init.py", line 44, in _load
module = importlib.import_module(self.name)
File "C:\Users\Research\Anaconda3\lib\importlib_init.py", line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\Research\AppData\Roaming\Python\Python37\site-packages\tensorflow_core\python_init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\Research\AppData\Roaming\Python\Python37\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\Research\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
mnist = tf.keras.mnist
AttributeError: module 'tensorflow' has no attribute 'keras'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Research\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2040, in showtraceback
stb = value.render_traceback()
AttributeError: 'AttributeError' object has no attribute 'render_traceback'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Research\AppData\Roaming\Python\Python37\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\Research\AppData\Roaming\Python\Python37\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\Research\AppData\Roaming\Python\Python37\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Users\Research\Anaconda3\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\Research\Anaconda3\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

@gadagashwini Would you please help me with this issue, still it is not clear for me what to do?
Thank you,

@MahdiBayat95,
Can you check whether your CPU model support AVX instruction sets or not. Since, TensorFlow release binaries version 1.6 and higher are prebuilt with AVX instruction sets. Thanks!

Closing as duplicate.
https://github.com/tensorflow/tensorflow/issues/36167#issuecomment-577886156
#36167 #36151 #36138 #36054 #36045 #36020 #36003 #35988 #35903 #35880 #35865 #35805 #35789 #35773 #35772 #35767 #35766 #35749 #35721 #35618 #35204


Fix problems caused by PadWidths creating Dshlw

Switch to using Forms.LowForm
Include other optimizations from

LowFormMinimumOptimized
LowFormOptimized
without those passes some treadle tests take 25X longer to run

Does this solve the problem? It seems like PadWidths would still be scheduled since some of the optimization passes depend on PadWidths.

@chick  if you could add the test case where you see a Dshlw to the treadle test suite, I could have a look at it.

@ekiwi-sifive @jackkoenig could I get an review of this please. It's one of the pieces needed for dshlw fix, other pr's are approved.


Add Julia function reduce

Use julia function reduce that creates process calls with reduce_dimension to use Julia syntax in openEO transformations.
using Statistics
reduce(*, [2; 3; 4])
#  24
reduce(max, [1,2,3], dims=1)
#1-element Vector{Int64}:
# 3
maximum([1,2,3], dims=1)
#1-element Vector{Int64}:
# 3
max([1,2,3]...)
# 3

In Julia reduce takes an 2-argument function, whereas in openEO, reduce_dimension takes a process with only one argument i.e. data.

One can now do this:
using OpenEOClient
con = connect("openeocloud.vito.be/openeo", "1.0.0", OpenEOClient.oidc_auth)
cube1 = DataCube(con, "LANDSAT8-9_L2",
    BoundingBox(west=10.8, south=54.1, east=11.6, north=54.5),
    ("2020-01-20", "2020-01-30"), ["B01", "B02", "B03"]
)

cube2 = maximum(cube1["B01"], dims="t")
cube3 = reduce(con.max, cube1["B01"], dims="t")
#openEO DataCube
#   collection: LANDSAT8-9_L2
#   dimensions: ["x", "y"]
#   bands: Unknown
#   spatial extent: nothing
#   temporal extent: nothing
#   license: proprietary
#   connection: https://openeocloud.vito.be/openeo/1.0.0
compute_result(cube3)


Fixes Issue #803

Modify the _decode_asr method to support decoding user defined token in Whisper based models. Addresses issue in #803

@xenova committed the fix, let me know if there is anything else needed!

Thanks! Will merge after tests pass. By the way, do you have an example of a whisper model which such tokens? Might be good to add a test.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Hi @xenova, there are two tests failing due to a few test models not having the <30.00> token. Here's one such example:  https://huggingface.co/Xenova/whisper-small/resolve/output_attentions/tokenizer.json.
Do you have any suggestions on how to overcome this issue? This token does exist in all of the base whisper models.

We could probably use the time precision (0.02) to calculate the offset: 30/0.02 + 1 = 1501 tokens (50364 -> 51864). Another fix is to simply update the tokenizer.json.

Hi @xenova , that was a good suggestion and I have updated the logic to the following: const timestamp_end = timestamp_begin + total_timestamp_tokens
const total_timestamp_tokens = (30.00 - 0.00) / 0.02
This logic should work on both English only Whisper and multilingual Whisper variants. The beginning timestamp of 0.00 is equal to token id 50363 and 50364 in the English only Whisper variants and Multilingual Whisper variants respectively. Similarly, the final timestamp token id of 30.00 is equal to 51863 and 51864 in the English only Whisper variants and Multilingual Whisper variants respectively as well. In both cases, the final timestamp token id occurs at an offset of 1500 which is what total_timestamp_tokens evaluates to.
I do not have a model with added tokens that I can share publicly. I did find this model https://huggingface.co/oza75/whisper-bambara-asr-001 which has added tokens after the final timestamp but it's a special token.

Hey @xenova, are there any more changes that should be made to this PR?

@xenova Hi! I believe all test cases are passing, is there anything else needed before we can merge this change? Would you be able to take one last look? Thanks!


add a sky constraint on top row of tiles

Hey there,
Very nice job on this library, i just started today with overlapping and tiled WFC and i'm enjoying very much.
I tried your example code for the platformer with custom tiles and wanted to use this void.png (sky tile) to fill the first row :
void, _ := wfc.LoadImage(tileset_folder+"void.png")
sky := wfc.GetConstraintFromHex(wfc.HexFromColor(wfc.GetColor(void, 0, 0)))

instead of
sky := wfc.GetConstraintFromHex("c8688ac0")
The problem is, i get a row of red tiles instead
any suggestions ?

I found a way to do this using the output of printAdjacencyHashValues()
I then added a second constraint for the ground on my plateformer and now i have WFC generated Mario levels !

Awesome 👏
Feel free to submit a PR for this as an example


[FEATURE] : Noticed ARIA Attributes to adding in Specific Form Sections in Multiple PHP Files in users Folder Directory

Description
GSSOC'23 Contributor

Noticed ARIA Attributes to adding in Specific Form Sections in Multiple PHP Files in users Folder Directory
In some Files, Added ARIA Attributes. But, In Suitable Files missed ARIA Attributes.

Screenshots
No response
Additional information
What is the purpose of aria attributes?

ARIA attributes enable modifying an element's states and properties as defined in the accessibility tree. Note: ARIA only modifies the accessibility tree, modifying how assistive technology presents the content to your users. ARIA doesn't change anything about an element's function or behavior.

@NarendraKoya999 Assigned


Transcriber, Coord or Tech can assign a VLD file to its Transcriber

E3 C3 S7 C5:  P18

Need to add transcribed_by_person_surname,  transcribed_by_person_forname, transcribed_by_person_email address and transcribed_by_userid fields to freecen1_vld_file;
add edit action to the show. restricted to county and master county coordinators, data  and system administrator
the edit form to have the new fields
The update needs to strip whitespace, name and email address are mandatory. Need to check that the userid is valid.

Hi Kirk,
When you get a spare moment can you give me a bit more information on this one please.
Questions I have at the moment are:
What is a VLD file?
Does this assignment process already exist (eg transferring a csv file)?
Does Tech include Data Administrator and System Admin?
How is the transcriber of a file identified (ie it’s transcriber)?
Bye for now
Anne
On 5 Feb 2021, at 17:51, Kirk Dawson<EMAIL_ADDRESS>wrote:

Assigned #1127https://github.com/FreeUKGen/FreeCENMigration/issues/1127 to @AnneV-Learnhttps://github.com/AnneV-Learn.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHubhttps://github.com/FreeUKGen/FreeCENMigration/issues/1127#event-4297296979, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARLANZ7T7TC6OXVJVNF56TLS5QVZLANCNFSM4W5ELM2A.

Hi Kirk,
Still trying to get my head around this.
Is there user documentation for this process? (It will probably help me to better understand the flow and how the different files in the link you provided are used.)
I have looked on the old FREECEN website and followed some of the routes to documentation but it is not make a lot of sense to me - I have only been involved in transcription and have no knowledge of the processes after that for the old system.
I will want to be able I have a VLD file in my local app so that I can eventually test any code.
In the link you provided the transcriber info appears in the ctyPARMS - file is this what we are talking about?
[cid:C195344D-880E-4F6A-B762-DEF44ADBF0CE@home]
What is the ultimate purpose of allowing CO-ORDs and SYS ADMINs to add Transcriber info - where will it ‘go’ after that?
Do we need to have to actually modify the VLD file or can we just have a link object that holds the VLD file identifer and the transcriber details which the CO_ORDs and SYS-ADMINS can populate/update?
Probably way off the mark here and we may need to ‘meet’  to bring me fully up to speed.
Bye for now,
Anne
On 8 Feb 2021, at 20:28, Kirk Dawson <notifications<EMAIL_ADDRESS>wrote:
Renamed to clarify scope and make consistent with description.
A VLD file is a FC1 file created by the validator of the file originally transcribed for FC1 (You may be sorry you asked; https://west-penwith.org.uk/fctools/doc/reference.html )
Files are sent by coordinators to Brenda who passes them to the person who runs the monthly update of FC1. The vld file gets into Freecen2 by a monthly transfer of files. There is no information on who produced the file.
The transcriber information is entered by the person entering the data ie there is no look up it is a simple data entry
[vld access.png]https://camo.githubusercontent.com/d4f6d2e8327fdf31402c5bd08a393dd108f9acf5ef4f3b0c7e8104d664b129dc/68747470733a2f2f696d616765732e7a656e68756275736572636f6e74656e742e636f6d2f3562363861653638346235383036626332626465666366302f39363362323465352d656164662d343036392d613665322d306439373964653036303664
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/FreeUKGen/FreeCENMigration/issues/1127#issuecomment-775429450, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARLANZYDKZ25ZCKZGWJS7NDS6BCNPANCNFSM4W5ELM2A.

Will reply off line


fix(system_monitor): move top command execution to a timer

Description
Move the top command execution to another timer process instead of diagnostic timer.
Related links
https://github.com/autowarefoundation/autoware.universe/issues/939
Tests performed

Launch Autoware.
Run rqt_runtime_monitor.ros2 run rqt_runtime_monitor rqt_runtime_monitor

Verify all diagnostic topics related to process monitor are correctly published every 1 second.

process_monitor: Tasks Summary
process_monitor: High-load Proc[0-4]
process_monitor: High-mem Proc[0-4]

Notes for reviewers
none
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.
[ ] The PR has been properly tested.
[ ] The PR has been reviewed by the code owners.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.
[ ] The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

@ito-san
[IMO ]I think it's better to use stop watch in tier4 autoware utils instead of implementing measurement. https://github.com/autowarefoundation/autoware.universe/blob/main/common/tier4_autoware_utils/include/tier4_autoware_utils/system/stop_watch.hpp

@taikitanaka3

it's better to use stop watch in tier4 autoware utils

Thank you for pointing that out! Fixed in https://github.com/autowarefoundation/autoware.universe/pull/948/commits/8f02967aa28a9694b398c56013636a91e10b5bcc.


sun.awt.SunToolkit awt.dll: Can't find dependent libraries

Platform:
Windows
Architecture:
64 bit
When using OpenJDK8U-jre_x64_windows_hotspot_8u232b09\jdk8u232-b09-jre, an exception is thrown when trying to get the print services because there are missing dependencies for awt.dll
When calling the PrintServiceLookup.lookupPrintServices method from within a unit test, this issue is not observed but when a service is started and tries to call this, the stack trace is created ...
Exception in thread "AbstractPortMapper.InetService" Exception in thread "AbstractPortMapper.InetService" java.lang.UnsatisfiedLinkError: awt.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1838)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at java.awt.Toolkit$3.run(Toolkit.java:1636)
at java.awt.Toolkit$3.run(Toolkit.java:1634)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1633)
at java.awt.Toolkit.(Toolkit.java:1670)
at sun.awt.AppContext$2.run(AppContext.java:277)
at sun.awt.AppContext$2.run(AppContext.java:266)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.initMainAppContext(AppContext.java:266)
at sun.awt.AppContext.access$400(AppContext.java:135)
at sun.awt.AppContext$3.run(AppContext.java:321)
at sun.awt.AppContext$3.run(AppContext.java:304)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.getAppContext(AppContext.java:303)
at javax.print.PrintServiceLookup.getServicesForContext(PrintServiceLookup.java:78)
at javax.print.PrintServiceLookup.getListOfLookupServices(PrintServiceLookup.java:87)
at javax.print.PrintServiceLookup.getAllLookupServices(PrintServiceLookup.java:331)
at javax.print.PrintServiceLookup.getServices(PrintServiceLookup.java:371)
at javax.print.PrintServiceLookup.lookupPrintServices(PrintServiceLookup.java:123)
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.SunToolkit
at sun.awt.AppContext$2.run(AppContext.java:277)
at sun.awt.AppContext$2.run(AppContext.java:266)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.initMainAppContext(AppContext.java:266)
at sun.awt.AppContext.access$400(AppContext.java:135)
at sun.awt.AppContext$3.run(AppContext.java:321)
at sun.awt.AppContext$3.run(AppContext.java:304)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.getAppContext(AppContext.java:303)
at javax.print.PrintServiceLookup.getServicesForContext(PrintServiceLookup.java:78)
at javax.print.PrintServiceLookup.getListOfLookupServices(PrintServiceLookup.java:87)
at javax.print.PrintServiceLookup.getAllLookupServices(PrintServiceLookup.java:331)
at javax.print.PrintServiceLookup.getServices(PrintServiceLookup.java:371)
at javax.print.PrintServiceLookup.lookupPrintServices(PrintServiceLookup.java:123)
This is not a problem in OpenJDK8U-jre_x64_windows_hotspot_8u202b08\jdk8u202-b08-jre

@DezW - Is this the case with the adoptopenjdk.net/upstream.html build as well?

@karianna This is not the case in the upstream build of the same version.

FYI - for the next investigator, this is likely due to a difference in the MSFT VS toolchain that we use.

I appear to be running into this issue with OpenJDK8U-jdk_x64_windows_hotspot_8u242b08 but not the upstream Red Hat builds?

https://github.com/AdoptOpenJDK/openjdk-build/issues/1026 and friends

@DezW or @paulfc Please provide a minimal example that reproduces the problem. Otherwise it's hard to track whether we've fixed the problem or not.

@DezW or @paulfc Please provide a minimal example that reproduces the problem. Otherwise it's hard to track whether we've fixed the problem or not.

It would take me a while to extract a test case, however, I would be more than happy to test an Alpha/RC binary if that would help?
In the meantime, I'll try to put together an example

Closing due to lack of requested feedback. We're happy to reopen the issue if feedback is provided by the OP (or anybody else) at a later date.

It might help others to list what I did to solve the issue:
I had the same issue. A library (Eclipse BIRT) we are using in our webapplication running on Tomcat, is using java.awt.Color.
It did run fine on Oracle JDK, but not on AdoptOpenJDK 8.
Error was:
Caused by: java.lang.UnsatisfiedLinkError: C:\Program Files\AdoptOpenJDK\jdk-8.0.292.10-hotspot\jre\bin\awt.dll: Can't find dependent libraries 	at java.lang.ClassLoader$NativeLibrary.load(Native Method) ~[?:1.8.0_292] 	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934) ~[?:1.8.0_292] 	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1838) ~[?:1.8.0_292] 	at java.lang.Runtime.loadLibrary0(Runtime.java:871) ~[?:1.8.0_292] 	at java.lang.System.loadLibrary(System.java:1124) ~[?:1.8.0_292] 	at java.awt.Toolkit$3.run(Toolkit.java:1636) ~[?:1.8.0_292] 	at java.awt.Toolkit$3.run(Toolkit.java:1634) ~[?:1.8.0_292] 	at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_292] 	at java.awt.Toolkit.loadLibraries(Toolkit.java:1633) ~[?:1.8.0_292] 	at java.awt.Toolkit.<clinit>(Toolkit.java:1670) ~[?:1.8.0_292] 	at java.awt.Color.<clinit>(Color.java:275) ~[?:1.8.0_292]
I used the tool "dependencies" a fork of "dependency walker" to see what dependencies awt.dll needs. It showed that it couldn't find jvm.dll. I added the path C:\Program Files\AdoptOpenJDK\jdk-8.0.292.10-hotspot\jre\bin to the PATH Environment variable, and now it works.


Add screenshots

The Build is broken; It's not possible to currently generate screenshots. The project is a mess. From a learning point of view, it was great, though we did not achieve much in terms of meeting our goals. The team has now moved on to take on other projects. I hope the mistakes made by working on this project are not repeated in future projects.


Migrate setuptools

Fixes #90

Please merge or rebase the README changes from master as well.

Looks like the
 User LINUX on system EMBOX1.DEMOS.IBM.COM has been disabled
error is back on the Actions tests.


rewritten in scss, task runner of choice (gulp) and other minor updates

note aside: gulp tasks, .gitignore update, license file extension fix, compiled file for production...
What is the purpose of this pull request?
rewritten your ".css" into ".scss" as you desired; it also fixes another issue as I implemented my gulp tasks so it minifies the file when you pass the correct command through npm from scripts of package.json.
How is this achieved?
n/a
What issue number does this fixed?
#7 #9

Great job! I didn't expect either of these issues to be solved so quickly.
@tyronwyt , I guess we don't have to worry about issue #9 now. I will try and find more to have work done on though.
@dvlden , Thank you so much for this huge contribution to the project, and I hope you continue to contribute and help out. Merging now.


Parse filename* in multipart form

#651 According to the RFC we should prefer filename* if when available.
@Tratcher

:shipit:


Add User Access Management for Public Cloud projects

FEEL FREE TO TURN IT INTO AN EPIC AND BREAK INTO SEPARATE TICKETS FOR UI DESIGN AND UI DEVELOPMENT
As a PO or TL of a public cloud project  I would like tPrivate Zenhub Image
o be able to add/remote other team members to the following security groups in public cloud myself:
Private Zenhub Image
Acceptance criteria:

update the Registry UI to allow to add/remove users to the security groups listed above, add this functionality to the the Public Cloud create and edit pages

Additional Context:

Admin - AdministratorAccess is an AWS managed policy that: Provides full access to AWS services and resources.

Developer - AdministratorAccess is an AWS managed policy that: Provides full access to AWS services and resources.

Billing Viewer - AWSBillingReadOnlyAccess is an AWS managed policy that: Allows users to view bills on the Billing Console.

Viewers - ViewOnlyAccess is an AWS managed policy that: This policy grants permissions to view resources and basic metadata across all AWS services.

Security Auditor - SecurityAudit is an AWS managed policy that: The security audit template grants access to read security configuration metadata. It is useful for software that audits the configuration of an AWS account.

NOTE: Billing Viewer and Security Auditor may change in the near future as their use case is slightly different than what the the policy allows.


Possible Bug - File.deps.json copied to the wrong folder when the output folder is not the default one

Is this a Bug or Feature request?:
Possible bug
Steps to reproduce (preferably a link to a GitHub repo with a repro project):
Create a new app and add an integration test project
dotnet new mvc -n WebApp --target-framework-override net461
dotnet new xunit -n WebApp.IntegrationTests --target-framework-override net461
dotnet new sln -n Sample
dotnet sln add WebApp\WebApp.csproj
dotnet sln add WebApp.IntegrationTests\WebApp.IntegrationTests.csproj
dotnet add WebApp.IntegrationTests\WebApp.IntegrationTests.csproj reference WebApp\WebApp.csproj
dotnet add WebApp.IntegrationTests\WebApp.IntegrationTests.csproj package Microsoft.AspNetCore.Mvc.Testing
dotnet build

Make  UnitTest1.cs implement  IClassFixture<WebApplicationFactory<Startup>>
Compile it with:
dotnet msbuild  /p:OutputPath=C:\temp\SampleOutput /p:GenerateProjectSpecificOutputFolder=true /p:OutDirWasSpecified=true /p:platform="any cpu" /p:configuration="debug"
Description of the problem:
The file WebApp.deps.json is copied in the wrong folder when compiling the application with these additional msbuild parameter /p:OutputPath=C:\temp\SampleOutput /p:GenerateProjectSpecificOutputFolder=true /p:OutDirWasSpecified=true, in this case it's C:\temp\SampleOutput instead of C:\temp\SampleOutput\WebApp.IntegrationTests, this leads to the following excfeption when trying to run the integration tests:
System.InvalidOperationException : Can't find'WebApp.deps.json'. This file is required for functional tests to run properly. There should be a copy of the file on your source project bin folder. If that is not the case, make sure that the property PreserveCompilationContext is set to true on your project file. E.g '<PreserveCompilationContext>true</PreserveCompilationContext>'. For functional tests to work they need to either run from the build output folder or the WebApp.deps.json file from your application's output directory must be copied to the folder where the tests are running on. A common cause for this error is having shadow copying enabled when the tests run.
Inspecting the build log with MSBuild Log Viewer I found that this copy is added by the Microsoft.AspNetCore.Mvc.Testing.targets
I was able to workaround this problem duplicating the CopyAdditionalFilesTarget in my integration project and changing line 56 from
<Copy SourceFiles="%(DepsFilePaths.FullPath)" DestinationFolder="$(OutputPath)" Condition="Exists('%(DepsFilePaths.FullPath)')" />

to
<Copy SourceFiles="%(DepsFilePaths.FullPath)" DestinationFolder="$(OutDir)" Condition="Exists('%(DepsFilePaths.FullPath)')" />

Version of Microsoft.AspNetCore.Mvc or Microsoft.AspNetCore.App or Microsoft.AspNetCore.All:
Latest 2.1.x
:Edit Fixed line number

Thanks for contacting us, @ilmax.
@javiercn, can you please look into this? Thanks!

@pranavkm Any idea on this? Should we use OutDir or OutputPath?

@pranavkm Should we just try one of them first and fallback to the other one?

@ilmax could you give me some background as to why you're specifying the OutDirWasSpecified flag? The only documentation I could find for that switch says that it's meant for packaging projects which really doesn't make sense in the context of an integration test project.

@pranavkm sure, essentially we are using it in our CI build on VSTS. We are building all our solutions to the $(Build.BinariesDirectory), these are the msbuild arguments we are using:
/p:OutputPath=$(Build.BinariesDirectory) /p:GenerateProjectSpecificOutputFolder=true /p:OutDirWasSpecified=true
This allows to re-create the project structure in the $(Build.BinariesDirectory) directory, so every project create it's own directory into $(Build.BinariesDirectory) and all the assets (dlls, configs and so on) are copied into this directory, but the WebApp.deps.json is not copied to the correct directory, making integration test fail with the aforementioned exception.
Essentially $(OutputPath) points to $(Build.BinariesDirectory) instead $(OutDir) points to the correct location, i.e $(Build.BinariesDirectory)$(ProjectName).
Please note that everything but the deps.json is correctly copied to the expected location.
You can reproduce this behavior following the steps above, just make sure to build the project into a different folder, i.e. OutputPath should point to a different directory.
I've verified that changing the target to use $(OutDir) works in the normal scenario as well

@ilmax We’ll be happy to take a PR for this if you want to contribute it.

@javiercn sure, I can do it tomorrow CET time

@ilmax Sounds good. Thanks for contributing!

Thanks for the PR @ilmax


Alt attribute of magnifyed image

Is is possible to add image alt to magnifyed image and how?

Added a blank alt value and aria-hidden to the zoomed img element so that it is ignored by validators / screen-readers.  Sorry for the late response!


GH-1261 Add migration guide for Artifactory

Created per @dzikoysk suggestion in https://github.com/dzikoysk/reposilite/issues/1261
I believe I did this correctly, mainly with respect to the front matter and heading levels, but I'm happy to edit as required.

Hey @codesplode, what's the status of this PR? Do you want to make those fixes or should I help you? :)

Oh, so don't worry about the image then :)

Oh, so don't worry about the image then :)

I made it work with a default image on digital ocean. I studied technical writing quite a bit so it was eating at me because it was the right thing to do :rofl:

Understood. I will correct. Thank you for clarification.
On Fri, May 6, 2022, at 9:28 AM, Dzikoysk wrote:

@.**** commented on this pull request.
In reposilite-site/data/guides/migration/artifactory.md https://github.com/dzikoysk/reposilite/pull/1262#discussion_r866989175:

@@ -0,0 +1,38 @@
+---
+id: artifactory
+title: Artifactory
+---

+### Instructions
By the header I've meant the  ### Instructions, not the file metadata between --- :P The metadata part is required, that's why the deployment failed.
I'd turn this from list into a standard block of text mostly because I think it would be just easier to read as there is a lot of text and it could be combined with the rest of notes I've made below. If you feel that your proposal is still a better choice for newcomers, I can merge this this way.
—
Reply to this email directly, view it on GitHub https://github.com/dzikoysk/reposilite/pull/1262#discussion_r866989175, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGJEFEB3KYN7XKBRWA2GG3VIVCBNANCNFSM5UGVLRLA.
You are receiving this because you were mentioned.Message ID: @.***>

Thanks for being patient on this. Been quite busy and have mostly used Vuepress and others that didn't require the frontmatter when the file is of the same name. Let me know if there is anything else I can clear up on this. :+1:

Thanks!


Argument 1 passed to ImdbImporter\Importer::submit() must be of the type array, null given

Hi, i'm getting this error and i'm unable to fix this no matter the changes i tried on the json file.
Can you please help me?
Catchable fatal error: Argument 1 passed to ImdbImporter\Importer::submit() must be of the type array, null given, called in C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\index.php on line 16 and defined in C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\src\ImdbImporter\Importer.php on line 56
Given that the file .json is in the same folder of the files that calls submit(), calling it index.php which is:
<?php
require_once 'vendor/autoload.php';

use ImdbImporter\Importer;

// Change FILE to the location of your input json data file
$input = json_decode(file_get_contents('list.json'));
// Another option
// $input = [['title' => 'The Mask', 'rating' => '5.0']];
// Change ID_FROM_COOKIE
$id = 'BCYq_RANDOMSTUFF_00000%0D%0A';
// Change RATING_BASE
$rating_base = '10';

$importer = new Importer($id, $rating_base);
$importer->submit($input);

and given the syntax of the "json" file, following the readme, which is:
<?php
[
  [
    "title" => "Movie 1",
    "rating" => "4.0"
  ],
  [
    "title" => "Movie 2",
    "rating" => "10.0"
  ],
  [
    "title" => "Movie 3",
    "rating" => "5.0"
  ]
]

Hello @FerdinandoLM,
I've updated the README.md in regard to your comment. It should be clearer how things are supposed to be used.
Specifically, you'll want to replace
$input = json_decode(file_get_contents('list.json'));

with
$input = require_once 'movies.php';

where movies.php is the file containing your movie list.
movies.php
<?php
return [
  [
    "title" => "Movie 1",
    "rating" => "4.0"
  ],
  [
    "title" => "Movie 2",
    "rating" => "10.0"
  ],
  [
    "title" => "Movie 3",
    "rating" => "5.0"
  ]
];

Notice I added the return at the beginning and the ; at the end.
Please reread the updated README.md and let me know if it has cleared any confusion.

thanks, worked awesomely


There is no tomato icon!

As a pomodoro user, im used to see a tomato icon anywhere i look. Please consider implementing one for the startup screen. Maybe as a terminal art.

Will look into that, sounds like a neat easteregg.


Disable RC4 explicitly as per RFC7465

As per RFC7465, added RC4 to the default disabled weak ciphers.
https://tools.ietf.org/html/rfc7465

I'd say if HIGH includes RC4 in your openssl version you are screwed anyway. My version doesn't even include 3DES anymore...
Imho the point of that recommended cipher string is that it is short and understandable. You'll find many other recommendations, e.g. the one from "better crypto" in https://github.com/BetterCrypto/Applied-Crypto-Hardening/blob/master/src/configuration/Webservers/lighttpd/10-ssl.conf:
ssl.cipher-list = "EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA256:EECDH:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!IDEA:!ECDSA:kEDH:CAMELLIA128-SHA:AES128-SHA"

I probably disagree with some of their choices, but I can't even read that thing - I can only check what list of ciphers it ends up on my system.


[E2E]modify the tenant delete of the e2e case

Purpose of the pull request

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:

ref: https://github.com/apache/dolphinscheduler/issues/7656


Feature request: Option to create dataset from a subset of the columns in the CSV file using tf.contrib.data.make_csv_dataset()

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Custom
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows
TensorFlow installed from (source or binary): Binary
TensorFlow version (use command below): 1.8
Python version:  3.6
Bazel version (if compiling from source): NA
GCC/Compiler version (if compiling from source): NA
CUDA/cuDNN version: NA
GPU model and memory:NA
Exact command to reproduce:
tf.contrib.data.make_csv_dataset()

Describe the problem
The tf.contrib.data.make_csv_dataset() is a very useful feature which allows us to convert CSV files directly into at dataset without having to use Pandas library (like shown here). However it is missing an important feature which Pandas had, that is to read a subset of the columns in the CSV file.
For example the following code:
dataset=tf.contrib.data.make_csv_dataset(file_pattern='./data/power_data/MISO_power_data1.csv',batch_size=24,shuffle=False)
dataset = dataset.batch(4)
X_iter = dataset.make_one_shot_iterator()
X_batch = X_iter.get_next()
X_batch

results in following dataset:
{'Actual_Load_MWh': <tf.Tensor 'IteratorGetNext_9:0' shape=(?, ?) dtype=float32>,
 'Hour_Ending': <tf.Tensor 'IteratorGetNext_9:1' shape=(?, ?) dtype=int32>,
 'Market_Day': <tf.Tensor 'IteratorGetNext_9:2' shape=(?, ?) dtype=int32>,
 'Wind_MWh': <tf.Tensor 'IteratorGetNext_9:3' shape=(?, ?) dtype=float32>}

However I don't want feature columns for 'Hour_Ending'  and  'Market_Day' in my dataset (since they are not relevant training data) . This could be done in Pandas using code below:
df_input=pd.read_csv('./data/power_data/MISO_power_data1.csv',
                         usecols=['Wind_MWh', 'Actual_Load_MWh'], nrows=24)

I know the easy solution would be to create a CSV file having only the feature columns I want. But it would be a great utility feature to add before make_csv_dataset() migrates out of contrib into core TF. I can submit a PR for this if required.

@sibyjackgrove Please feel free to create a pull request to add this functionality!

@angersson Sure, I can do that. I am a little hesitant though because my previous pull request hasn't been reviewed even after 22 days.


Sunsetting seed-database.rs

https://github.com/ethereum/trin/blob/master/src/bin/seed-database.rs
This script is actively under use by our testnet nodes every time they boot, to seed headers from the first 10000 blocks. It has been useful for testing data availability, and still might be in the near future. But at some point, I imagine it'll become obsolete.

Given that we're about to start pumping data into the network, do we still want to maintain this behavior?
There's been discussion about adding some kind of --is-bootnode (not a good name) flag that would disable any kind of content transmission. The idea being that bootnodes are only concerned with introducing peers to the network and maintaining a view of the network, and do not need the overhead of storing / propagating content.

Given that we're about to start pumping data into the network, do we still want to maintain this behavior?

I can imagine removing it, but probably when our network is much more stable. It's probably still useful to make sure the early headers are seeded. At some point, the network should maintain that data on its own.

2. There's been discussion about adding some kind of --is-bootnode (not a good name) flag that would disable any kind of content transmission.

Maybe sufficient to use really tiny data limits?

Commenting here that at devcon we re-evaluated this and decided to remove it now that we have the bridge and concluded that responsibility for data availability should be isolated to a single piece of architecture


Main page doesn't shows code and readme

https://github.com/sindresorhus/refined-github
looks like this:

Here is errors in console:

    at cleanup_repo_filelist_actions_init (refined-github.js:9651)
    at runFeature (refined-github.js:2964)
    at setupPageLoad (refined-github.js:2972)
    at refined-github.js:3006
Search issue: https://github.com/sindresorhus/refined-github/issues?q=is%3Aissue+Cannot%20read%20property%20'classList'%20of%20null

Open an issue: https://github.com/sindresorhus/refined-github/issues/new?labels=bug&template=bug_report.md&title=%60cleanup-repo-filelist-actions%60%3A%20Cannot%20read%20property%20'classList'%20of%20null

logError @ refined-github.js:2942
refined-github.js:2942 ❌ Refined GitHub → more-dropdown → TypeError: Cannot read property 'href' of undefined
    at getCurrentBranch (refined-github.js:493)
    at more_dropdown_init (refined-github.js:3332)
    at async runFeature (refined-github.js:2964)
    at async setupPageLoad (refined-github.js:2972)
Search issue: https://github.com/sindresorhus/refined-github/issues?q=is%3Aissue+Cannot%20read%20property%20'href'%20of%20undefined

Open an issue: https://github.com/sindresorhus/refined-github/issues/new?labels=bug&template=bug_report.md&title=%60more-dropdown%60%3A%20Cannot%20read%20property%20'href'%20of%20undefined

logError @ refined-github.js:2942
refined-github.js:2942 ❌ Refined GitHub → deprioritize-marketplace-link → TypeError: Cannot read property 'before' of undefined
    at deprioritize_marketplace_link_init (refined-github.js:3959)
    at async runFeature (refined-github.js:2964)
    at async setupPageLoad (refined-github.js:2972)
Search issue: https://github.com/sindresorhus/refined-github/issues?q=is%3Aissue+Cannot%20read%20property%20'before'%20of%20undefined

Open an issue: https://github.com/sindresorhus/refined-github/issues/new?labels=bug&template=bug_report.md&title=%60deprioritize-marketplace-link%60%3A%20Cannot%20read%20property%20'before'%20of%20undefined

logError @ refined-github.js:2942
refined-github.js:2942 ❌ Refined GitHub → edit-files-faster → TypeError: Cannot read property 'href' of undefined
    at getCurrentBranch (refined-github.js:493)
    at isPermalink (refined-github.js:547)
    at edit_files_faster_init (refined-github.js:7009)
    at runFeature (refined-github.js:2964)
    at setupPageLoad (refined-github.js:2972)
    at refined-github.js:3006
Search issue: https://github.com/sindresorhus/refined-github/issues?q=is%3Aissue+Cannot%20read%20property%20'href'%20of%20undefined

Open an issue: https://github.com/sindresorhus/refined-github/issues/new?labels=bug&template=bug_report.md&title=%60edit-files-faster%60%3A%20Cannot%20read%20property%20'href'%20of%20undefined```

What version of RGH are you on? I think it might simply be outdated.

If it’s still happening and have more details please leave a comment

the issue still exists

@skywinder update your RH version. You are on a version from last year September

@yakov116  yes, already on it. Chrome stop updating for some reason. and this extension as well. thank for the help!


Double buffering for Smartstate

Hi, thank you for this great library. I wonder if the smartstate can be applied to double buffering as well? I think the difference is that all draw commands has to be cached and applied to the previous buffer as well.

Hi! I thought about this a bit. You'll definitely need two sets of smartstates, one for each buffer. That should basically be all that's necessary, I think. This would imply that both buffers are changed, one after the other. This is still extremely CPU efficient because while it's twice the computational load, this is still only necessary once per frame.
The problem would be redraw detection. I'm unsure what the best way for that would be. The major speedup of Kolibri is that screens only need to update exactly the pixels needed. If you already have a high FPS display link, that is of course not important anymore, but for low data rate links like SPI, I think direct display updates would be more advantageous for that exact reason.
Here's how I think double buffering would work:
fn main() {
  // ... setup code

  let mut i = 0;

  // buffer to choose
  let mut buffer = 0;

   // init two smartstate providers, one for each buffer
  let smp = [SmartstateProvider::<10>::new(), SmartstateProvider::<10>::new()];

  // ... clear background ...

  loop {
    // get the display buffer
    let mut display = get_buffer(buffer);

    // create the UI each frame
    let mut ui = Ui::new_fullscreen(&mut display, medsize_rgb565_style());

    // ... input code

    ui.clear_background();

    // restart the counter at the start (or end) of the loop FOR THE CURRENT SMARTSTATE PROVIDER
    smp[buffer].restart_counter();

    // add a smartstate to each widget
    ui.add(Label::new("Basic Example").with_font(ascii::FONT_10X20).smartstate(smp[buffer].next()));

    // [...]

    if ui.add_horizontal(Button::new("-").smartstate(smp[buffer].next())).clicked() {
      i = i.saturating_sub(1);
      // force update for both smartstate providers
      smp[buffer].peek().force_redraw()
      smp[(buffer + 1) % 2].get(smp[buffer].get_pos() + 1).force_redraw()
    }
    ui.add_horizontal(Label::new(format!("Clicked {} times", i).as_ref()).smartstate(smp[buffer].next()));

    // flip the buffer
    buffer = (buffer + 1 % 2)
  }
}

The best way to do this would be to make a special SmartstateProvider for multiple buffers, or to add support for multiple providers in the current one I think.


Update LAB_01L01_Prepare_for_deployment_of_AVD_AADDS.md

Module: 1
Lab/Demo: 2
Fixes # 1.
Changes proposed in this pull request:
Added note after Task 3, Step 8 stating:

I had to go back and correct a copy and paste error after noticing a group we created in this lab was not found when running the lab for Module 2.  In Module 1's lab, a [T] construct is used to populate a long series of Cloud Shell PowerShell commands of 59 lines.  However, it only copied 41 lines, and did NOT copy and then run the last 18 lines, which would have made the group needed for Module 2's lab.  I put a note here to ensure the lab taker add those--or any lines--that fail to copy and run.  The best fix would be to add another [T] construct after those 41 lines of text and use it to copy over the last 18 lines, or configure the initial [T] construct's buffer to allow more text/lines.

Perhaps I shouldn't have closed with the above comment.


Add Daily/weekly target needed to achieve annual goals

A nice enhancement would be to add daily or weekly target needed to achieve the annual goal if the athlete is lagging behind.
Would very useful to determine at a glance how much more you need to cycle/run

Hmm nice idea ;) Thanks ! :)

I'd love this
Even more useful if I could set an custom end date.  E.g. I need to hit my cycling goal by the end of August rather than the end of December (yes I know I need to harden up and ride in the snow).

I hope will do that in future. No so hard to do.
On Fri, Aug 3, 2018 at 12:16 PM mikeyg123<EMAIL_ADDRESS>wrote:

I'd love this
Even more useful if I could set an custom end date. E.g. I need to hit my
cycling goal by the end of August rather than the end of December (yes I
know I need to harden up and ride in the snow).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/thomaschampagne/stravistix/issues/274#issuecomment-410210823,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJRpUKLsnRDCppYzyxICw1vNIAWmXnpks5uNCL4gaJpZM4J-kHF
.

--
Thomas Champagne - http://thomaschampagne.github.io


Post:comments() function crashes when no parent comment exist

Expected behavior

[Situation] WordPress allows comments to be deleted, event when they have children. In that case, only the chosen comment is deleted with its child-comments remaining. (The comment count report also includes the orphaned child comments).
Even though parent comment is deleted, it should not crash, and need to work at leash in similar fashion as 'wp_list_comments()' function of WordPress.
Actual behavior

If this [Situation] above happens, Timber:comments() crashes with error message "calling a function is_child() on null object" because it's not doing validity check for the existence of parent comment.
Steps to reproduce behavior

Need to check validity of parent comment before doing array index access.
What version of WordPress, PHP and Timber are you using?

WordPress 4.6.1, PHP 7.0.8, Timber 1.1.8
How did you install Timber? (for example, from GitHub, Composer/Packagist, WP.org?)

Upgraded to newest version via plugin updater in WordPress dashboard

Is this still something you're actively working on or need addressed? Please respond in two weeks or we'll close this thread


bump versions of electron and fs-extra

fs-extra changelog includes breaking changes, but I don't think they affect us: https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md
Whenever I've bumped the Electron version in the past, I've looked through the release logs for new features and changes that we should make in WebTorrent Desktop. Lots of APIs get changed/added in each release. For this bump, it looks like these are relevant:
General
Update to Chrome 51.0.2704.106
Improve performance for looking up paths in require
accelerator and label are now optional when role is specified for MenuItem
macOS
Fix the fullscreen button showing in frameless window on OS X 10.9.
Fix transparent window having border on OS X 10.9.
Fix crash when using frameless window on OS X 10.9.
Update Squirrel.Mac to 0.2.1 (fixes situations in which updates would not get applied)
Add 'quit' role to MenuItem (https://github.com/electron/electron/pull/6154)
Add 'togglefullscreen' role to MenuItem (https://github.com/electron/electron/pull/6166/files)
Add 'delete' role to MenuItem (https://github.com/electron/electron/pull/5870)
Fix frameless window not showing in Window menu.
Fix context menu always choosing first item by default.
Fix title of frameless window showing as empty under fullscreen
Linux
Fix menubar not hiding after entering fullscreen. (Some Linux distros)
Show badge counts on Linux (Use app.setBadgeCount() API. On macOS, app.dock.setBadge() which is macOS-specific can be changed to app.setBadgeCount() now)
Fix startup crashes (Some Linux distros)
Fix message boxes and file dialogs not being modal.
Fix BrowserWindow.focus() not moving focus to the window

@feross Thanks for going through this! I regret not providing this information with the PR.

It's all good. 👍  I'm about to send a PR that makes use of the relevant new APIs.

@mathiasvr See https://github.com/feross/webtorrent-desktop/pull/739


Fix Get-PnPSiteTEmplate not exporting language resource files

Type

[x] Bug Fix
[ ] New Feature
[ ] Sample

Related Issues?
Fixes https://github.com/pnp/powershell/issues/4300 and https://github.com/pnp/pnpframework/issues/999
What is in this Pull Request ?
This PR fixes Get-PnPSiteTemplate not exporting language resource files when using .xml templates as output format and passing -PersistMultiLanguageResources parameter. This happened due to a copypaste error from the code above related to ContentTypeGroups, which is not relevant for -PersistMultiLanguageResources parameter.
Templates with .pnp extension didn't have this issue as PersistMultiLanguageResources is always set to true in that case.
How to reproduce steps:

Go to Site Settings and then Language Settings. You can use /_layouts/15/muisetng.aspx relative url to reach the page.
Enable "Enable translation into multiple languages"
Add an additional language
Export a template with -PersistMultiLanguageResources parameter

Get-PnPSiteTemplate -Out "Template.xml" -PersistBrandingFiles -IncludeAllPages -PersistMultiLanguageResources

This is the result with this PR:

Merged it !
Thanks a lot @jackpoz , much appreciated.


Search with Case no

Path: High Court Case> Search >Case No >Search
Issue: Searching with Case No field does not work.

fixed


Prevent advisory creation for packages that don't exist in the repo

Context
Today, there's nothing preventing a contributor from adding new advisories to the repo for packages that don't exist in Wolfi.
These additions are usually a mistake, such as when:

The package name is misspelled (including mistakes in the version stream suffix)
The package used to exist in the distro but has since been removed or moved to another distro, and thus the advisory should instead be created in the correct advisories repo.
The package never existed in this distro but does exist in another distro (e.g. it's an enterprise package).

In other scenarios, it's not a mistake (it's intentional), such as when:

The package is being created for the first time, so corresponding advisories are created immediately to maintain our coverage in the advisory data set. (In these cases, the CVE scan in Wolfi's CI won't pass until there's advisory data that accounts for the package's vulnerabilities.)
The advisory was introduced back when the package did exist in the distro. At the time of writing, we have not decided to remove or adjust advisory documents for this scenario (this is its own discussion with tradeoffs), so they would still exist in the repo when new PRs are opened.

Proposal
Add functionality to the advisories repo's CI to fail whenever an advisory document's .package.name isn't found in Wolfi.
Concerns
This solution doesn't account for the scenarios listed in the "not a mistake" category above. We'll need to figure out how to account for those scenarios.
Technical considerations
We should clarify the definition of when a package "exists in the distro". There are two relevant sets: (A) packages currently defined in the distro repo (e.g. in https://github.com/wolfi-dev/os on main), and (B) found in the APKINDEX for the distro.
Thus, there are several possibilities for how we define "exists in the distro" using these sets, such as:

A ∪ B
A ∩ B
etc.

Implemented this check in https://github.com/wolfi-dev/wolfictl/pull/494, which was incorporated into the advisories repo in https://github.com/wolfi-dev/advisories/pull/534.
To address the concerns in the description:

The package is being created for the first time, so corresponding advisories are created immediately to maintain our coverage in the advisory data set. (In these cases, the CVE scan in Wolfi's CI won't pass until there's advisory data that accounts for the package's vulnerabilities.)

We're accepting that Wolfi's CVE scan will fail in this case. For now, it's a non-blocking CI check, so we can merge in spite of the failure. Perhaps in the future we can make this check smarter by incorporating open PRs in the advisories repo.

The advisory was introduced back when the package did exist in the distro. At the time of writing, we have not decided to remove or adjust advisory documents for this scenario (this is its own discussion with tradeoffs), so they would still exist in the repo when new PRs are opened.

At this point, we're updating our stance here to not maintain advisory documents for packages that are no longer defined in the distro. If we ever want to revisit this, we should do so via #277, to ensure all documents still refer to a currently maintained package, meanwhile allowing us to maintain references to defunct packages.


fix(react): hide icon within component using aria

Purpose
Following https://github.com/onfido/castor/pull/703 icons used in other components should also be hidden from screen readers.
Approach
Hide icons in Search and Validation (React) components using aria-hidden="true".
Testing
N/A
Risks
N/A

Such is also fixed in https://github.com/onfido/castor/pull/714 however that one will only be released with a breaking change, as of this is valid fix.

What changes you're talking about @rabelloo?

These https://github.com/onfido/castor/pull/718. My bad, I already extracted them 🙃

Right, I'll come back to https://github.com/onfido/castor/pull/718 later, there's some other bits that will be covered in other awaiting PRs too (e.g. no more handlebar files will be in the repo).


[ask]:  ip adapter sd image encoder address download in folder where?

Is there an existing issue for this?

[X] I have searched the existing issues

[ask]:  ip adapter sd image encoder address for download in folder where?

Are you looking to install the ip adapter image encoder?
You can install it via the model manager by entering the Repo ID from models.invoke.ai:

Are you looking to install the ip adapter image encoder?
You can install it via the model manager by entering the Repo ID from models.invoke.ai:

Thank you, I knew this, I wanted to know where it is located in the Windows Manager file, download it later.

It's not stored on your local system until you install it. Once it's installed, you can find it in models/any/clip_vision


artifact download failed

Issue reference from Azure CLI Extension repo
Azure/azure-cli-extensions#1015

I'm experiencing the same issue. Is there any workarounds for this until the bug is fixed?

As discussed in #776 , this could be related to McAfee as I also have this installed without the possibility to turn this off or change settings.

This bug occurs when some other process might interfere with the download artifact tool. The process could be an antivirus, some other process which is sharing the same location etc. We are in the process of adding a retry to alleviate this. If the antivirus policy is set to delete the tool, then the path needs to be whitelisted.
Also, this issue looks like a duplicate of #776 . Closing this one and tracking it there.


Approve shoutout tickets

Currently the process to approve a shoutout process looks like this:

Copy the user's name / tag
Go to #shoutout settings
Create new permissions for that user
Send message in the ticket channel letting them know that they can post now
Wait for them to post
Remove permissions from #shoutout
Close the ticket

This could possibly be automated with some sort of approval command that handles at least steps 1 through 4. In a later stage this might be extended to also cover 5-7 but I am not sure yet.

Has anybody worked on this? Also, I recommend setting a default 24-hour time space before the user has their permission automatically revoked for safety reasons.


mail.attachment

I thing their is an issue with mail.attachments.
It dont return any attachement.
This is my test case in ipython3
import mailparser

a="""Received: from EX3.local (<IP_ADDRESS>) by EX3.local (<IP_ADDRESS>) with
 Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1415.2 via Mailbox
 Transport; Fri, 12 Jan 2018 12:48:13 +0100
Received: from [<IP_ADDRESS>] (<IP_ADDRESS>) by EX3.local (<IP_ADDRESS>)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1415.2; Fri, 12
 Jan 2018 12:48:13 +0100
To: Vincent<EMAIL_ADDRESS>From: Simon<EMAIL_ADDRESS>Subject: test eml attachment
Message-ID<EMAIL_ADDRESS>Date: Fri, 12 Jan 2018 12:46:42 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.4.0
Content-Type: multipart/mixed;
    boundary="------------55D5C868D71CE57DC948563F"
Content-Language: en-US
Return-Path<EMAIL_ADDRESS>X-MS-Exchange-Organization-Network-Message-Id: 6a810f66-4b65-4a5f-da82-08d559b25c95
X-MS-Exchange-Organization-AuthSource: EX3.local
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 07
X-Originating-IP: [<IP_ADDRESS>]
X-ClientProxiedBy: ex2.local (<IP_ADDRESS>) To EX3.local (<IP_ADDRESS>)
X-MS-Exchange-Transport-EndToEndLatency: 00:00:00.2112587
X-MS-Exchange-Processed-By-BccFoldering: 15.01.1415.002
MIME-Version: 1.0

--------------55D5C868D71CE57DC948563F
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

test

--------------55D5C868D71CE57DC948563F
Content-Type: message/rfc822; name="Attached Message"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="Attached Message"

Received: from ex2.local (<IP_ADDRESS>) by EX3.local (<IP_ADDRESS>) with
 Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1415.2 via Mailbox
 Transport; Fri, 12 Jan 2018 12:47:07 +0100
Received: from EX3.local (<IP_ADDRESS>) by EX2.local (<IP_ADDRESS>) with
 Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1415.2; Fri, 12
 Jan 2018 12:47:07 +0100
Received: from EX3.local ([fe80::7806:9f98:c0b4:db47]) by EX3.local
 ([fe80::7806:9f98:c0b4:db47%13]) with mapi id 15.01.1415.002; Fri, 12 Jan
 2018 12:47:07 +0100
From: Vincent<EMAIL_ADDRESS>To: Simon<EMAIL_ADDRESS>Subject: testing attachement
Thread-Topic: testing attachement
Thread-Index: AQHTi5sSajMVfq8xMUuQxsxmTSCh5A==
Date: Fri, 12 Jan 2018 12:47:07 +0100
Message-ID<EMAIL_ADDRESS>Accept-Language: fr-FR, en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 04
X-MS-Exchange-Organization-AuthSource: EX3.local
X-MS-Has-Attach:
X-MS-Exchange-Organization-Network-Message-Id: 77b61742-2589-475b-1765-08d559b2355c
X-MS-Exchange-Organization-SCL: -1
X-MS-TNEF-Correlator:
X-MS-Exchange-Organization-RecordReviewCfmType: 0
x-mailer: Apple Mail (2.3445.5.20)
Content-Type: text/plain; charset="us-ascii"
Content-ID<EMAIL_ADDRESS>MIME-Version: 1.0

testing attachement

--------------55D5C868D71CE57DC948563F--
"""
mail = mailparser.parse_from_string(a)
mail.message_as_string
mail.attachments

I think some kind of option to have all "message" part as attachments could be useful.
In my case I need to parse those email separately because in the other case I lose headers and from/to info for attached email.
I noticed also that if the content-type is message/rfc822 but it specifies the name it's considered as attachment:
Content-Type: message/rfc822; name="Re: R: testmail.eml"
Content-Disposition: attachment; filename="Re: R: testmail.eml"

Generates a<EMAIL_ADDRESS>files.

Can this be something optional? We receive forwarded "suspicious" mail from users and I need to keep attached email as attachment. I don't want forwarded data to be mixed with original one and I need to process them by themselves.
At the moment I've created a simple fork (back in 3.11, but fortunately easy to be keep synced) but having this as option could be easier to manage in future

Hi @dadokkio,
can you submit a PR?

at the  moment there is no option, all rfc822 are stored as attachments.
Do you want also the option added to my code or just the pull is ok?

Try to make a PR, so we can work it.

pull #89 done. in our use case we obtain attached emails with write_attachments and then start a new parsing process with it.

I had similar issues with parsing emails that contain multipart attachment (.eml). They were omitted. My fix is in #102

What is the status on those 2 PR #89 and #102 ?

Hi, sorry for late, but I didn't have any time. I believe to work on in the next weeks.


Added three new samples to WinDesktop, ported from Xamarin.

Added three new samples to WinDesktop, ported from Xamarin.
Added the following three new samples to the WinDesktop:
~ RenderPictureMarkers
~ RenderSimpleMarkers
~ RenderUniqueValues
Created both the CSharp and VB.NET versions.
NOTES:
Used the Xamarin Forms as the 'gold standard' when making additions into the WinDesktop sample.
Deleted the existing WinDesktop samples: (SimpleMarkerSym and UniqueValueRenderer) as they were superseded by the newer versions (RenderSimpleMarkers and RenderUniqueValues) to be consistent across all the SDK's.
@anttikajanus please code review.

Good work, please merge.

Merged in the new samples.


Implement dapr sidecar healthcheck method

Description
Implement a method that performs health check of Dapr sidecar
Issue reference
Please reference the issue this PR will close: #640
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list:

[x] Code compiles correctly
[x] Created/updated tests
[x] Extended the documentation (summary)

@rynowak thank you for the comments, all make sense. Will fix them this days

thanks @dmytrohridin


guava dependency error

Hello
My workstation doesn't have access to internet so I setup the projects in another machine and downloaded all the dependencies using mvn dependency:go-offline option.
I zipped the repository and took it to my workstation and when I run clean install, it is throwing me error that "No versions for com.google.guava:guava:jar[10.+,) within specified range"
I just have two pact dependencies, pact-jvm-provider-junit_2.12 & pact-jvm-provider-spring_2.12 and their version is 3.6.11
I have guava versions from 10.1 till 28 in the repository. I don't understand why it is not picking up. When I expand the external libraries in Intellij, I can't find them there. When I checked the external libraries in the machine where I set up initially, I could find all the dependencies listed in there.
I have seen some others also had issues with guava and that is why I thought of raising it. I tired to exclude the guava versions and explicitely add them in pom but still the error.
Pls help.

This appeared to be an issue with maven as there was a clash with the proxy .


MINOR: Improve code style

I found a couple of code style inconsistencies. This PR fixes them.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

Failing tests are unrelated.


CS0576 on alias WebView2

Discussed in https://github.com/ChromiumDotNet/WebView2.DevTools.Dom/discussions/25

Originally posted by Sandu119 October 26, 2024
Hi,
I have a project using the WebView2 control, in which I define:
using WebView2 = Microsoft.Web.WebView2.WinForms.WebView2;  (note the alias is identical to the type name) which compiles OK
But, after adding WebView2.DevTools,DOM to the project, I get a CS0576 on that alias: Namespace '' contains a definition conflicting with alias 'WebView2'.
Otherwise the tool works like a charm. Thank you for the good work.
Thanks,
alex

I would expect this to be a simple naming conflict, not something that can be fixed without renaming the whole library.
You've aliased WebView2 which conflicts with WebView2.DevTools.Dom.

You're right, it's a simple matter of renaming the alias.
I just didn't expect the library to break my code.


Output Test Coverage As a PR Comment

🎨 Overview

Modified Github workflow to output test coverage as a PR comment once a PR is opened.
🌈 Details

Modified the following workflow.

validate-contracts

Added steps for coverage calculation & PR commenting.

📚 References

add-pr-comment

Outputs of hardhat compile command (as well as the generated coverage.json file) are too verbose.
Not necessary to implement add-coverage-to-pr-comment feature at this moment.

test coverage
-----------------------|----------|----------|----------|----------|----------------|
File                   |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |
-----------------------|----------|----------|----------|----------|----------------|
 src/                  |      100 |    98.98 |    97.14 |      100 |                |
  CloneFactory.sol     |      100 |      100 |      100 |      100 |                |
  IVerifier.sol        |      100 |      100 |      100 |      100 |                |
  IVerifierFactory.sol |      100 |      100 |      100 |      100 |                |
  Verifier.sol         |      100 |      100 |    95.65 |      100 |                |
  VerifierFactory.sol  |      100 |    96.88 |      100 |      100 |                |
 src/libraries/        |      100 |      100 |      100 |      100 |                |
  Bytes.sol            |      100 |      100 |      100 |      100 |                |
  Challenge.sol        |      100 |      100 |      100 |      100 |                |
  MerkleTree.sol       |      100 |      100 |      100 |      100 |                |
-----------------------|----------|----------|----------|----------|----------------|
All files              |      100 |       99 |    97.44 |      100 |                |
-----------------------|----------|----------|----------|----------|----------------|


schema.deserialize does not exist when using parameter component

query parameters like limit and offset are common for collection endpoints like GET /messages?limit=100&offset=100. I would like these query parameters to be re-usable components because i have multiple collection endpoints which provide the same query parameter options.
I have defined limit and offset as re-usable components located at "#/components/parameters/limitParam and #/components/parameters/offsetParam. It appears due to OAS syntax rules that I must write my OAS like so:
components:
  parameters:
    limitParam:
      name: limit
      in: query
      description: Number of items to return
      required: false
      schema:
        type: integer
        minimum: 0
        default: 100
    offsetParam:
      name: offset
      in: query
      description: Number of items to skip
      required: false
      schema:
        type: integer
        minimum: 0
        default: 0

...

paths:
  /messages:
    get:
      summary: Get a list of messages
      operationId: getMessages
      x-controller: messages
      x-operation: getMessages
      tags:
        - Messages
      parameters:
        - in: query
          name: offset
          schema:
            $ref: "#/components/parameters/offsetParam"
        - in: query
          name: limit
          schema:
            $ref: "#/components/parameters/limitParam"

...

When openapi-enforcer hits a particular line, the schema.deserialize method does not exist. This appears to be due to using $ref above because offsetParam has its own schema and there is a nested deserialize method at schema.schema.deserialize

As a possible fix, It seems the code could be adjusted to
    if (!data.error) data = (schema.deserialize && schema.deserialize(data.value)) || schema.schema.deserialize(data.value);

however, i'm still wondering if there is another way to write the OAS syntax so that there is not a nested schema.schema.deserialize while still using the component parameters
A workaround is to just not use $ref to the component parameters section and instead write the schema inline.

A second sub-issue:
after adjusting the code to use the possible fix above, i have noticed that I'm getting a validation error for these query parameters. i believe this is because query parameters always come in as strings, but I would ideally like them to be cast to integer so they can be validated according to rules like minimum and maximum

I believe the problem here is that your OAS document isn't structured properly. For example...
components:
  parameters:
    limitParam:
      name: limit
      in: query
      description: Number of items to return
      required: false
      schema:
        type: integer
        minimum: 0
        default: 100

...

paths:
  /messages:
    get:
      summary: Get a list of messages
      operationId: getMessages
      x-controller: messages
      x-operation: getMessages
      tags:
        - Messages
      parameters:
        - in: query
          name: limit
          schema:
            $ref: "#/components/parameters/limitParam"

Dereferences to:
paths:
  /messages:
    get:
      summary: Get a list of messages
      operationId: getMessages
      x-controller: messages
      x-operation: getMessages
      tags:
        - Messages
      parameters:
        - in: query
          name: limit
          schema:
            name: limit
            in: query
            description: Number of items to return
            required: false
            schema:
              type: integer
              minimum: 0
              default: 100

Shouldn't your OAS document look something like this for parameter reuse?
openapi: 3.0.0
info:
  title: ''
  version: '1.0'
paths:
  /:
    get:
      parameters:
        - $ref: '#/components/parameters/limit'
      responses:
        default:
          description: OK
components:
  parameters:
    limit:
      in: query
      name: limit
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 100

Once your document is set up properly it will correctly deserialize your query parameters (converting them to numbers).
Also, as a side note, you don't need both an operationId and an x-operation. Either can be provided, but if both are provided then I believe the x-operation is used.

I changed my path parameters to
      parameters:
        - $ref: "#/components/parameters/limitParam"
        - $ref: "#/components/parameters/offsetParam"

and both issues are resolved now. Thanks again!


query args with percent % say they save, but don't properly update save status

The file gets written, but the dirty marker does not clear.

As per my findings, when % is used in query param value, item.draft has reference to itself(the item object), due to which the circle marker is still shown and unsaved changes popup is shown on closing the tab

bruno electron watcher calls change method onSave of request each time
here file.data = bruToJson(bru); is being called to parse the request using ohm js library
Error is thrown in parse method while trying to validate the input const match = grammar.match(input);
example input: 'meta {  name: percent req  type: http  seq: 1}post {  url: https://jsonplaceholder.typicode.com/posts?item=21%  body: none  auth: none}query {  item: 21%}';
output: URI malformed, parsing fails when % is used in query

@helloanoop I guess a fix will be needed when ohm. grammar is initialized, any pointers?

I have resolved this issue as it has already been fixed.


Markdown formatting not working as expected

I'm having trouble with the markdown functionality within the QnA Maker Client Library.
When I format and publish my answers in a bullet format via the QnA Maker .NET SDK, e.g.
"This is an unordered list: \n * List item 1 \n\t * Child1 \n\t * Child2 \n * List item 2"
the answer is only correctly formatted in the web chat tester after I go in the QnA maker knowledge base portal, click the answer text, and save and re-publish the knowledge base.
Also, I have to make sure rich editor is disabled in the knowledge base portal, or else the formatting is further affected.
Is there a parameter in the SDK that designates an answer as containing markdown formatting?

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

ID: 98bb87f6-c0ac-a504-6b20-d20a43460dc1
Version Independent ID: e93a4836-1b54-bc20-fb1b-1f86a3dc10e1
Content: Quickstart: Use SDK to create and manage knowledge base - QnA Maker - Azure Cognitive Services
Content Source: articles/cognitive-services/QnAMaker/Quickstarts/quickstart-sdk.md
Service: cognitive-services
Sub-service: qna-maker
GitHub Login: @nerajput1607
Microsoft Alias: nerajput

@jtg5122 Thanks for the feedback! We will review and update accordingly.

@jtg5122 Thanks, Please follow the below document for Markdown format supported in QnA Maker answer text.
https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/reference-markdown-format

Thank you for sending this.  However, this is the documentation I've
already been referencing.  \n does not get converted to a new line when I
check KB after updating and publishing via the SDK.
On Fri, Sep 11, 2020, 6:56 AM Ram<EMAIL_ADDRESS>wrote:

@jtg5122 https://github.com/jtg5122 Thanks, Please follow the below
document for Markdown format supported in QnA Maker answer text.
https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/reference-markdown-format
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/62272#issuecomment-691026257,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQPMCUKESGQNX25ZIMXOVMLSFH657ANCNFSM4RANPZXA
.

Thanks for the details @jtg5122. We are checking with product team on this. If possible can you please share the sample code that you are trying.

@jtg5122 We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Parameter parsing

Looking at the Python source - there's some hurdle with the program getting information from the html form. Whereas if you manually pass the variables in, it's fine. I had written it so the form puts the variables into the URL, then the Python/Brython was hypothetically parsing the URL. However that doesn't appear to work.
Ultimately this generates a "targeting error" to the visual output in the web application.

gingeleski i look at the code, the problem seems to be in the way you split the url, but i am not sure. If i'll  find time i will check it.

that's what i suspected, i'm sure one of us can sort it out
On Sep 7, 2015 1:16 PM, "DimopoulosElias"<EMAIL_ADDRESS>wrote:

gingeleski i look at the code, the problem seems to be in the way you
split the url, but i am not sure. If i'll find time i will check it.
—
Reply to this email directly or view it on GitHub
https://github.com/gingeleski/jawfish/issues/3#issuecomment-138342920.

I fixed it. I commit with reference to your issue number and I pull request to Evan. Did you check it;

i'll check it out


Lint/AssignmentInCondition gets fooled by parentheses

This cop can be tricked by simply adding parentheses around the condition. E.g.:
foo if (bar = baz)

Expected behavior
RuboCop registers an offense.
Actual behavior
RuboCop doesn't register an offense.
Steps to reproduce the problem
Run bundle exec rubocop on:
foo if (bar = baz)

RuboCop version
0.50.0 (using Parser <IP_ADDRESS>, running on ruby 2.4.2 x86_64-darwin16)

Arguably the author could use parentheses to indicate they know what they're doing, so there might be potential for an AllowParenthesized configuration option.

Never mind. There's an AllowSafeAssignment option that does just that.


feat(external-plugins) Protobuf include dirs as config setting

Allows the user to specify where to find ProtoBuf definition files.
Currently the plugins protocol requires google/protobuf/empty.proto
and google/protobuf/struct.proto, which the libprotobuf-dev (at
least in Ubuntu) install in /usr/include.

Just curious and double checking, are we supposed to merge feat into the release branch after beta?

Closing as we decided against this approach.


Merge NBitcoin fix for MacOSX buffer sizes

Reference NBitcoin commit:
https://github.com/MetacoSA/NBitcoin/commit/6ae1452e8e5252f3ea7aee3028d882199fe8e66a
Fixes #1173

Please don't merge yet - going to run some tests first. I've got my strat testnet node running this branch right now. So far so good... running about 500MB memory and connected to several peers. I will check it in the morning.

Are you going to test on a Mac?

What if we use compile arguments?

or just do an if(Mac) etc...

Yeah that will work @bokobza

So windows node didn't do anything horrible. Still churning along at ~515MB memory. Will be very difficult to tell performance difference on a running node - too many variables. I believe nopara wrote some sort of test to test this originally in NBitcoin, so was going to take a look at that and see if I can use something similar to do some testing.
I don't have a Mac to test with but was going to see if I could find a VM or something somewhere. I have an Unbuntu and a RPI but no Mac. Maybe I could see if I could get a volunteer from discord.
Do we want to do the conditional compile for Mac? Or just make sure it doesn't do anything bad to the other OSs?

How about this @Aprogiena @mikedennis @dangershony ? Minimum impact.
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
    // Use max supported by MAC OSX Yosemite/Mavericks/Sierra (https://fasterdata.es.net/host-tuning/osx/)
    this.ReceiveBufferSize = 1048576;
    this.SendBufferSize = 1048576;
}
else
{
   this.ReceiveBufferSize = 1000 * 5000;
   this.SendBufferSize = 1000 * 1000;
}

This looks good to me @bokobza
@mikedennis please updated the PR.

that's ugly af

The Mac build failed (how fitting!) so I've restarted it.


[Question] Frame per Second (FPS) Becomes Zero, **PERF:  {'stream0': 0.0}

Hello;
I am running the test code, "face_test_demo.py".  It looks like executing all pipeline components (including Kafka) but my frame rate suddenly becomes zero.
Here is runtime screen when it happened ( entire runtime screen - readable by Chrome Browser ):
.
.
.
:00:43.000497888 15720      0x1ffa0a0 INFO                 nvinfer gstnvinfer.cpp:646:gst_nvinfer_logger:<primary-inference> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2012> [UID = 1]: Use deserialized engine model: /home/isi/pre_trained/arm/retina_r50.engine
0:00:43.004738880 15720      0x1ffa0a0 INFO                 nvinfer gstnvinfer_impl.cpp:328:notifyLoadModelStatus:<primary-inference> [UID 1]: Load new model:/home/isi/project/face-recognition-deepstream/src/kbds/configs/face/config_retinaface.txt sucessfully
(True, 'success')
src: <Stream task-5 task-5-Stream>
source_bin: <__gi__.GstURIDecodeBin object at 0xffff461d78c0 (GstURIDecodeBin at 0xfffdb4018f00)>
<enum GST_STATE_CHANGE_SUCCESS of type Gst.StateChangeReturn>
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 279
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 279
gstname= video/x-raw
pad name:  sink_0
/home/isi/project/face-recognition-deepstream/test/../src/kbds/core/pipeline.py:491: Warning: g_hash_table_lookup: assertion 'hash_table != NULL' failed
  sinkpad = self.streammux.get_request_pad(pad_name)
/home/isi/project/face-recognition-deepstream/test/../src/kbds/core/pipeline.py:491: Warning: g_hash_table_insert_internal: assertion 'hash_table != NULL' failed
  sinkpad = self.streammux.get_request_pad(pad_name)
Decodebin linked to pipeline

**PERF:  {'stream0': 14.8}

======== delete src test =======
[NvMultiObjectTracker] De-initialized
delete finished

**PERF:  {'stream0': 14.79}

**PERF:  {'stream0': 0.0}

**PERF:  {'stream0': 0.0}

I was suspicious of the bandwidth limit in my network, so I reduced image width and height in "face.py" code (code line, but the situation is persitsance. And the image nor NPY file made.
I also see the warning of "Warning: g_hash_table_insert_internal: assertion 'hash_table != NULL' failed". If this is main cause how could I fix it? The code line doesn't indicate where the Hash Table existed.
What could be issues? Any suggestion appreciated.
Thank You.
Runtime Environment:
   OS: Ubuntu 20.04 in AArch 64
   DeepStream 6.1 with Python 3.8
   Nivida Orin

@cloudlakecho The outputs are correct.
the face_test_demo.py demos below functions:

add a src named task-0
add a src named task-5
get status of task-5 and task-111
delete src/task-0
delete src/task-5 ( pipeline will be set NULL since there is no source in pipeline)
add a src named task-5 (pipeline will be reinited)
delete src/task-5

So there will not be any source in pipeline after all.

@zhouyuchong Thanks for detailed explanation on the code.
So my understanding, if your input RTSP is a network camera, the person face should be in the camera view before "delete src/task-0" step?

@cloudlakecho this steps are intended to demo how to add/delete/get sources at runtime, just some basic operations not related to face recog.

@zhouyuchong Thanks for the answers for overall process.
Regarding the "not related face recog", is this related to add and delete functions, right?
I notice that the output of "face_test_demo.py" is the image of face(s). Is the face detection and recognition performed at the task-5?

@zhouyuchong Thanks for the answers for overall process.
Regarding the "not related face recog", is this related to add and delete functions, right?
I notice that the output of "face_test_demo.py" is the image of face(s). Is the face detection and recognition performed at the task-5?
I am mentioning these lines in the code:
from kbds.app import DSFace
from kbds import Stream

app = DSFace("localhost;9092;deepstream")
print(app.start())

str_id = "task-{}".format(id)
src = Stream(str_id, "file:///media/test.ts")
print(app.add_src(src))
app.play_src(str_id)

For Q1, yes, they are functions about pipeline.
For Q2, the output images will be saved, you can find them in this path. face detection and recognition will be performed in every task added to pipeline.

@zhouyuchong Thanks for the answer, especially "face detection and recognition will be performed in every task added to pipeline."


Flutter ExpansionTile resets itself when SetState in onExpansionChanged is running

When Flutter ExpansionTile and DropdownButton reset itself, SetState in onExpansionChanged is running.
I have DropdownButton and ExpansionTile on my page. Filling ExpansionTile based on data from DropDownButton.
When ExpansionTile is clicked, it resets and refreshes itself. I think this is caused by dropdown and setState. Because DropDownButton also resets and refreshes itself.
Thank you.
MY DropDownButton
List<Year> _years = Year.getYears();
List<DropdownMenuItem<Year>> _dropdownMenuItemYear;
Year _selectedYear;

@override
  void initState() {
    _dropdownMenuItemYear = buildDropdownMenuYearItems(_years);
    _selectedYear = _dropdownMenuItemYear[1].value;

    super.initState();
  }

List<DropdownMenuItem<Year>> buildDropdownMenuYearItems(List years) {
    List<DropdownMenuItem<Year>> items = List();
    for (Year year in years) {
      items.add(DropdownMenuItem(
        value: year,
        child: Text(year.year),
      ));
    }
    return items;
  }

  onChangeDropdownYearItem(Year selectedYear) {
    setState(() {
      _selectedYear = selectedYear;
    });
  }

ButtonTheme(
     alignedDropdown: true,
     child: DropdownButton(
     isExpanded: true,
     value: _selectedYear,
     items: _dropdownMenuItemYear,
     onChanged: onChangeDropdownYearItem,
     icon: Icon(Icons.keyboard_arrow_down),
     iconSize: 20.0,
     iconEnabledColor: MyColors.grey,
      underline: Container(
        decoration: const BoxDecoration(
      border: Border(
         bottom: BorderSide.none)),
     ),
     style: TextStyle(
     color: MyColors.greyDark,
       fontSize: deviceType ? 11.5 : 17.5 )))

class Year {
  String year;

  Year(this.year);

  static List<Year> getYears() {
    DateTime now = DateTime.now();
    return <Year>[
      for (int i = 0; i < 11; i++) Year((now.year + 1 - i).toString())
    ];
  }
}

MY ExpansionTile

FutureBuilder<APIResponse<List<TestModel>>>(
   future: TestService.getTestList(context, _selectedMonthValue, _selectedYear.year),
   builder: (context, snapshot) {
         if (snapshot.connectionState != ConnectionState.done) {
               return Container(child: Text('no year'));   }

   return snapshot.hasData ?
            Column( children: <Widget>[
                       ListView.builder(
                            key: Key('builder ${selected.toString()}'),
                            shrinkWrap: true,
                            physics: NeverScrollableScrollPhysics(),
                            itemCount: snapshot.data.count,
                            itemBuilder: (context, index) {
                                 return Column(
                                     children: <Widget>[
                                       Divider(
                                          height: 0.0,
                                           color: MyColors.white,
                                        ),
                          Theme(
                             data: theme,
                             child: ExpansionTile(
                             key: Key(index.toString()),
                             initiallyExpanded: index == selected,
                             title: Column( children: <Widget>[
                                         Row(children: <Widget>[
                                             Column(children:<Widget>[
                                               Text(snapshot.data.source[index].eventDate)),
                                               Text(snapshot.data.source[index].month),
                                            ]),
                                            Expanded(child:
                                                 Padding(padding: EdgeInsets.all(10),
                                                    child: Column( children: <Widget>[
                                                       Padding(padding: EdgeInsets.all(7.5),
                                                         child:Text(snapshot.data.source[index].name,)
                                                    )])))
                                             ])] )
                                              children: <Widget>[
                                               Container(
                                                 child: Padding( padding: EdgeInsets.all(15),
                                                 child:Text(snapshot.data.source[index].description)),
                                            )],
                                              onExpansionChanged: ((newState) {
                                                  if (newState)
                                                        setState(() {
                                                          selected = index;
                                                        });
                                                  else
                                                        setState(() {
                                                          selected = -1;
                                                        });
                                                    }))),
                                          ]);
                                      })])
                              : CircularProgressIndicator();
                        }),

Hi @aydin-faruk
can you please provide your flutter doctor -v and flutter run --verbose while running the app and actions on the screen?
Thank you

@TahaTesser
[flutter] flutter doctor -v
[√] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.18363.657], locale tr-TR)
• Flutter version 1.12.13+hotfix.8 at C:\flutter
• Framework revision 0b8abb4724 (8 days ago), 2020-02-11 11:44:36 -0800
• Engine revision e1e6ced81d
• Dart version 2.7.0
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at C:\Users\Faruk Aydin\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• Java binary at: C:\Program Files\Java\jdk-13.0.2\bin\java
• Java version Java(TM) SE Runtime Environment (build 13.0.2+8)
X Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions.
[!] Android Studio (version 3.5)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 42.1.1
• Dart plugin version 191.8593
X Unable to find bundled Java version.
• Try updating or re-installing Android Studio.
[√] VS Code (version 1.42.1)
• VS Code at C:\Users\Faruk Aydin\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.8.1
[√] Connected device (1 available)
• Redmi 8A • f12007c00606 • android-arm • Android 9 (API 28)
! Doctor found issues in 2 categories.
exit code 0

Hi @aydin-faruk
Your sample code is incomplete/dependent on other code.
if you could post a minimal code sample to reproduce the problem that focuses on your issue.
Thank you

Hi @TahaTesser
Thank you! But the problem is obvious. Refreshing data or resetting with expansionTile even though I did not send a request from the API. SetState should not reset data.

Code sample to show in console that tiles are rebuilt when setState called
import 'package:flutter/material.dart';

void main() => runApp(ExpansionTileSample());

class ExpansionTileSample extends StatefulWidget {
  @override
  ExpansionTileSampleState createState() {
    return ExpansionTileSampleState();
  }
}

class ExpansionTileSampleState extends State<ExpansionTileSample> {

  List<Entry> data;

  @override
  void initState() {
    super.initState();
    this.data = generateData();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('ExpansionTile'),
        ),
        body: ListView.builder(
          itemBuilder: (BuildContext context, int index) =>
          EntryItem(
            entry: data[index],
            onExpansionChanged: (newState) {
              setState(() {});
            },
          ),
          itemCount: data.length,
        ),
      ),
    );
  }
}

class Entry {
  Entry(this.title, [this.children = const <Entry>[]]);

  final String title;
  final List<Entry> children;
}

generateData() => <Entry>[
  Entry(
    'Chapter A',
    <Entry>[
      Entry(
        'Section A0',
        <Entry>[
          Entry('Item A0.1'),
          Entry('Item A0.2'),
          Entry('Item A0.3'),
        ],
      ),
      Entry('Section A1'),
      Entry('Section A2'),
    ],
  ),
  Entry(
    'Chapter B',
    <Entry>[
      Entry('Section B0'),
      Entry('Section B1'),
    ],
  ),
];

class EntryItem extends StatelessWidget {
  const EntryItem({this.entry, this.onExpansionChanged});

  final Entry entry;
  final Function onExpansionChanged;

  Widget _buildTiles(Entry root) {
    if (root.children.isEmpty) return ListTile(title: Text(root.title));
    return ExpansionTile(
      key: PageStorageKey<String>(root.title),
      title: Text(root.title),
      children: root.children.map(_buildTiles).toList(),
      onExpansionChanged: onExpansionChanged,
    );
  }

  @override
  Widget build(BuildContext context) {
    print('build ${entry.title}');
    return _buildTiles(entry);
  }
}

@aydin-faruk why is it a problem for you?

@VladyslavBondarenko  My problem this is :
https://drive.google.com/file/d/1lNo1mvz0y2WYFI1oIipf5pZKsPlVu3b8/view
my ExpansionTile resetting because of  setState
also my Dropdown resetting because of setState

Thats because you are using FutureBuilder and each time you call setState
flutter recreates the widget tree and executes FutureBuilder each time

@Pilaba What's the solution?

Hi @aydin-faruk
This platform is not meant for assistance on personal code.
Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow.
Closing, as this isn't an issue with Flutter itself,
if you disagree please write in the comments and I will reopen it
Thank you

@aydin-faruk
dont use setstate inside onExpansionChanged ...
just update the state when you select an item from the ExpansionTile .. , and onExpansionChanged will give you the data you setstate from the selected item and without setstate inside it ...
hope it helps