Plugins Update!

Added a CLI for contract specific operations:

Changed deploy and evolve to be called via a CLI, instead of calling the scripts themselves. This gives us more control over the parameters. Within this script, one can simply provide the name of the contract, and the source & state will be read from specific locations in the folder. You can optionally provide a path to the initial state, which is useful if you would like to not bother with setting verification keys and such.
Added create command to the CLI, as a shorthand script to create copies of the contract code and initial state, to start customizing your own contract.
Added build command to the CLI, which replaces yarn contract:build and thus build.cjs logic has been moved within the CLI.

Refactored all types in contract & SDK.
Moved Admin and Base within the SDK, exposed via a class field by sdk.admin and sdk.base respectively. This makes things easier as now we don’t work with Admin and SDK separately, and one can extend the SDK simply by extending one class; unlike two classes as was the case previously.
Added the concept of modifiers, which mutate the contract input values with custom defined logic. Code re-use is also allowed, such as for proof verification.
Added package.json version to contract state upon deployment. This way we know which version of HollowDB the contract was deployed from.
Added getState, which is a utility wrapper around base.readState()
Smart contracts must now be written at the path src/contracts/<contract-name>.contract.ts which will be picked up by contract build step, and the bundled contract code will be output at src/contracts/build with the same name but in JS extension. This allows the same build script to be used for arbitrarily many contracts.

@fco-fbatch I know this is a giant PR, we can do pair-review over the code together.

TODO #53 before merge


Benefits of using realsense rosbag instead of the regular rosbags

Hello,
In my current application, I am using multiple sensors (including a thermal camera on one computer and a D435 on another PC) that need to be synchronized according to their timestamps. I have noticed, however,  that rosbags recorded with the regular realsense software will produce rosbags with initial time as January 1st 1970, which hinders my ability to perform any kind of timestamp matching across different (synchronized) machines.  My questions are:
Do I lose any capability by using regular rosbag record -a instead of realsenses recording application?
Can I actually get all the information from the produced rosbag as I would from the realsense software without loss of frames, and would I still be able to perform post-processing operations on the recorded data?
Thanks for your support.

The bagfile saved by realsense-viewer contains several topics.
The 'metadata' topic contains system time.
In python you could see it like that:
>>> import rosbag
>>> bag = rosbag.Bag(filename)
>>> mmsgs = [msg for topic, msg, t in bag.read_messages(topics=['/device_0/sensor_1/Color_0/image/metadata'])]
>>> systime = [msg for msg in mmsgs if 'system_time'==msg.key]

>>> import datetime
>>> datetime.datetime.fromtimestamp(float(systime[0].value)/1000)
datetime.datetime(2019, 2, 18, 0, 55, 19, 132249)

The timestamp you saw is most likely the device hardware time. i.e., the time since you plugged it in.
The benefit of using the realsense bag file is that you can run the realsense2_wrapper with it using the option rosbag_filename. The wrapper will publish the images, giving them the current ROS time and you could enable or disable different filters every run to try out the post-processing benefits.
If you use the bag file saved using rosbag record -a you are confined to the output of the wrapper, not to the output of the camera.
Regarding loss of frames, that really depends on the kind of machine you use. I would use a very powerful machine for the recordings, regardless of the machine you will use later on.

Thanks, for this!
So the hardware time will be when I plugged the camera in but not the the time when the first frame was recorded, right? Is there any way to recover this information?
Again,
Thanks!

[Please Ignore - RealSense system comment]

Sorry, I found the metadata you mentioned. Thanks!

@pedropgusmao , Did you find the meta-information needed to do the post processing like alignment?


Add java args to 2.1.1 manifest

Signed-off-by: Sayali Gaikawad<EMAIL_ADDRESS>Description
Add java args to 2.1.1 manifest
Issues Resolved
List any issues this PR will resolve, e.g. Closes [...].
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #2334 (53c65b8) into main (4d1f1c4) will increase coverage by 5.38%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##               main     #2334      +/-   ##
=============================================
+ Coverage     94.61%   100.00%   +5.38%
=============================================
  Files           209         6     -203
  Lines          4309       105    -4204
  Branches         29        19      -10
=============================================
- Hits           4077       105    -3972
+ Misses          226         0     -226
+ Partials          6         0       -6

Impacted Files
Coverage Δ

src/paths/tree_walker.py

...ts_workflow/component_opensearch_dashboards_min.py

src/run_manifests.py

src/manifests/build/build_manifest_1_0.py

src/manifests/test_manifest.py

src/system/os.py

src/run_sign.py

src/build_workflow/builders.py

src/ci_workflow/ci_check_manifest_component.py

...rc/test_workflow/test_recorder/test_result_data.py

... and 193 more

Continue to review full report at Codecov.

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


refactor(code):modifications in function binding

I had closed the earlier PR because in that PR I had pushed wrong files. I have open this new PR with same changes like the earlier one but with some modifications.
Signed-off-by: Arteev Raina<EMAIL_ADDRESS>

@dselman This PR is ready for a review :)


New Release

Hi, was wondering if it would be possible to cut a new release, there are a few bugfixes we are using that have been merged into master, and would love get it off of a using an internal release with the latest changes in one of the apps I work on. Thanks!

I've cut a new release: https://rubygems.org/gems/ember-cli-rails/versions/0.11.0.

Thanks!


Updated Makefile

Since vet is now included in go, this is no longer required and only causes a crash.

Thank you for the PR, but could you fix the source to succeed building?

I've never done anything with go before, so probably not.. Sorry!


Add Panel dashboard wrapper for Voila

This PR provides a function that enables Panel dashboards in Voila, resolving the issue of Panel widget callbacks not working in Voila.
An example Panel dashboard shows the panel_dashboard function in action.

@sgillies the function is loosely related to notebooks, so I added it to tiledb.cloud.notebook. Feel free to suggest another location.

tiledb.cloud.dashboard (which currently doesn't exist) is another options for the location.


ANTIALIAS => LANCZOS

Change PIL.Image.ANTIALIAS (removed in Pillow 10.0.0) to PIL.Image.LANCZOS

Almost submitted the same. Image.ANTIALIAS is deprecated; Image.LANCZOS relies on a similar implementation and the behavior is consistent/reliable in newer versions of Pillow.

closing this in favor of https://github.com/google-coral/pycoral/pull/130


Feature request: LDAP authorization for /cas/status

Would it be possible to refactor cas-management-webapp-support-ldap so it is suitable for both the CAS management application en de CAS status page?

This is already possible via different ways. The status endpoints can be protected by CAS itself and not via an IP address, which means you can register the endpoint as a service and add access strategy rules based on attributes resolved from LDAP.

But of course, if you have something else in mind by all means lets discuss and re-open the case.

I hadn't considered using a service attribute based access strategy.
But in our LDAP the user roles are stored as group memberships in a different LDAP tree than the users.
I would have to test if is even possible to retrieve  this info as attributes.
And even if this works, is the service attribute based access strategy able to allow access if one of the values of a multivalued attribute (a user can be a member of several groups) equals a certain value?

And even if this works, is the service attribute based access strategy able to allow access if one of the values of a multivalued attribute (a user can be a member of several groups) equals a certain value?

Yes, or that would be a bug.

I tried, but I can't seem to retrieve a roles attribute.
Our LDAP contains the classic people/groups hierarchy:
ou=people,dc=domain
  uid={user},objectclass=inetOrgPerson
    attributes: uid, cn, sn, email, telephoneNumber, mobile, manager
ou=groups,dc=domain
  cn={role},objectclass=groupOfUniqueNames
    attributes: uniquemember={dn}

I configured a direct bind authenticator for retrieving the user attributes.
I looked at the brand new cas.authn.ldap[0].searchEntryHandlers[0] config, but it looks like there is no searchEntryHandler.type that would perform a group search (PRIMARY_GROUP and RECURSIVE_ENTRY do something completely different).
Next, I tried to configure cas.authn.attributeRepository.ldap[0].

I can only use {user} in userFilter (and I would need to use the dn).
The search would return a "cn" attribute with a list of roles, which I would have liked to rename to "roles". Unfortunately, configuring "cas.authn.attributeRepository.attributes.cn=roles" will also make the LDAP authenticator retrieve the "cn" attribute from the user!
I think i'm missing something. I can see the attributeResolver being created in the debug log, but it is never used during a login.

I see your difficulty. I re-opened the case so that we can begin to consider additional authZ rules for accessing status and the CAS dashboard. Thanks for the submission.

Issues 1 and 2 still stand, but issue 3 is already resolved (issue #2348).
Besides these two issues i also ran into another problem, which i logged in the person-directory project: https://github.com/apereo/person-directory/issues/14

For 1, you may want to discuss that with ldaptive and/or @dfish3r. I suspect there is a way to use DN in user filters  but I am not privy to it without further research. Daniel would know for sure.

Ldaptive already has a DnAttributeEntryHandler to add the DN as an attribute.
The problem is LdaptivePersonAttributeDao, which only supports a {user} attribute. I will add a feature request for this to the person-directory project.
That only leaves issue 2, for which i would recommend adding a "returnAttributes" config option to cas.authn.attributeRepository.ldap[] (which would work the same as cas.authn.ldap[].principalAttributeList).

That only leaves issue 2, for which i would recommend adding a "returnAttributes" config option to cas.authn.attributeRepository.ldap[] (which would work the same as cas.authn.ldap[].principalAttributeList).

Help me understand this better. Why couldn't you do the same with attribute repositories?

Also, if I have not stressed this already I strongly recommend you take a pass at the PDIR issues yourself. Would be much easier to work up the changeset if you already have the environment that can test them quickly.

Also what might be easier here is, we can use boot's assistance with spring security to protect the status endpoints and all other actuators. With Spring Sec, it's easy to build support for basic authN backed by ldap/jdbc. Also supports roles.

Issue 2:
The problem is that there is only one set of cas.authn.attributeRepository.attributes which are used by both LdapAuthenticationHandler and all attribute repositories.
When one ore more of these attribute sources contain an attribute with the same name, but a different meaning (in my case the "cn" attribute in user and in group are completely different), specifying a mapping with cas.authn.attributeRepository.attributes (e.g. cas.authn.attributeRepository.attributes.cn=roles) will affect them both.
LdapAuthenticationHandler already has the ability to rename attributes (using cas.authn.ldap[].principalAttributeList). I need the same mapping functionality for the attribute repositories defined in CasPersonDirectoryConfiguration.

Thanks for explaining. Sounds like #2083 We'll probably tackle that in 5.2 or later.

Hadn't seen that request before. That would indeed cover this issue completely.

This is now handled via Spring Security and the new module to handle webapp security config. See docs for more info. We'll tackle the attribute repository issue later, but please post back if the present functionality added addresses your concerns here.


Add home-open (home) icon

What is the purpose of this pull request?

[x] New Icon
[ ] Bug fix
[ ] New Feature
[ ] Documentation update
[ ] Other:

Description

The current home icon has a path beneath its door indicating it's existence. The submitted (new) icon does not have this path no longer indicating its existence. This allows the icon to be used in the context of an "open" home. This also makes it so when using a similar fill and a stroke color, the icon still holds its shape without needing to give each path its own fill/stroke.
Icon use case

Home Navigation
Home Location Indication

Alternative icon designs

Icon Design Checklist
Concept

[x] I have provided valid use cases for each icon.
[x] I have not added any a brand or logo icon.
[x] I have not used any hate symbols.
[x] I have not included any religious or political imagery.

Author, credits & license

[x] The icons are solely my own creation.
[ ] The icons were originally created in # by @
[x] I've based them on the following Lucide icons: home
[x] I've based them on the following design: Icon - License

Naming

[x] I've read and followed the naming conventions
[x] I've named icons by what they are rather than their use case.
[x] I've provided meta JSON files in icons/[iconName].json.

Design

[x] I've read and followed the icon design guidelines
[x] I've made sure that the icons look sharp on low DPI displays.
[x] I've made sure that the icons look consistent with the icon set in size, optical volume and density.
[x] I've made sure that the icons are visually centered.
[x] I've correctly optimized all icons to two points of precision.

Before Submitting

[x] I've read the Contribution Guidelines.
[x] I've checked if there was an existing PR that solves the same issue.

Hi @KarandeepSWranch,
There are a few issues with this icon request that would need to be addressed:

no specific use case was provided, even is this is a variant of an existing icon a distinct use case justifying the need for this variant is required
the icon has too much visual weight, it should aim to be close to circle and rectangle in size
the icon is badly optimised and does not follow the required SVG syntax, please make sure that our pre commit hooks are correctly configured and executed
our naming conventions do not allow for names such as home-2 any more, the name should instead signify what makes this variant unique (e.g. home-outline etc)

Hi @KarandeepSWranch, There are a few issues with this icon request that would need to be addressed:

no specific use case was provided, even if this is a variant of an existing icon a distinct use case justifying the need for this variant is required
the icon has too much visual weight, it should aim to be close to circle and rectangle in size
the icon is badly optimised and does not follow the required SVG syntax, please make sure that our pre commit hooks are correctly configured and executed
our naming conventions do not allow for names such as home-2 any more, the name should instead signify what makes this variant unique (e.g. home-outline etc)

Do you mind taking another look and seeing whether it meets the standards?
Visual Weight: I updated the size of the icon to match that of the square. But I believe I may have made it too small? Originally I followed the side of the original home icon, but I understand that the guidelines may have been updated since its addition.
Optimizations: I followed the software guide for Adobe XD and used SVGOMG to further optimize the SVG. If the updated icon still doesn't meet the standards, do you mind pointing out what could be better optimized?

@KarandeepSWranch I think this icon needs some more iterations.
The icon is not recognizable as an "open home". More like an alternative home icon with a wider door. I see you removed the doorstep, but I don't think this design is fulfilling the goal you want to accomplish. The changes are too little and not that obvious.
The provided usecase is a bit vague. I understand it has to do something with navigation and maps, but don't understand the need. To think along with you would be nice if you could refine the provided usecase. The usecase should be in detail described, so we can also understand it. For example: "An icon to locate a home address on a map in a navigation application".
What also helps is posting some screenshots or examples from other icons.
BTW, maybe issue #1476 is filling to your usecase?

I've closed this one, see my latest message. Please open an issue or discussion to find best design for your usecase.


SourcePoint code temporary fix

💡 Summary
The SourcePoint tool has a bug in the code which causes it to fail from the PE_Name variable. If this value is chosen randomly, the code will fail 1/15 times. The error is from an incorrect indexing, which is then used in a print statement which references an index that is out of bounds.
Implementation notes

Code changed to correctly index the variable (using length of the array rather than static number)

Acceptance criteria

[ ] If the bug is fixed within SourcePoint, we will remove the task that edits the code.

SourcePoint fixed this problem


Where are the logs ?

Hi,
i don't find where logs are saved.
If i have understood well, APTSimulator don't need CobaltStrike to log ?
Ty for your answer.
Lugway

Why would you need a log?

I need logs cuz i was expecting APTSimulator can reproduice simulations and logs possible with CobalStrike (Attacks script).
My final objective is to use these result logfiles to understand what attacks have been leaded (build tool to do it automatically).
But i suppose with your answer this is not possible.


Sample data running error.

CMD:
miRge3.0 -s SRR772403.fastq,SRR772404.fastq,SRR772405.fastq,SRR772406.fastq -lib /home/chenjun/dataBase/miRge3_Lib -on human -db mirgenedb -o output_dir -gff -nmir -trf -ai -cpu 12 -a illumina

error logs:
cutadapt version: 2.7
Samtools version: 1.9
RNAfold version: 2.3.3
Collecting and validating input files...

miRge3.0 will process 4 out of 4 input file(s).

Cutadapt finished for file SRR772403 in 1.9251 second(s)
Collapsing finished for file SRR772403 in 0.017 second(s)

Cutadapt finished for file SRR772404 in 6.7914 second(s)
Collapsing finished for file SRR772404 in 0.2803 second(s)

Cutadapt finished for file SRR772405 in 11.5172 second(s)
Collapsing finished for file SRR772405 in 1.0486 second(s)

Cutadapt finished for file SRR772406 in 2.8867 second(s)
Collapsing finished for file SRR772406 in 0.9172 second(s)

Matrix creation finished in 0.3111 second(s)

Data pre-processing completed in 26.0883 second(s)

Alignment in progress ...
Alignment completed in 14.1082 second(s)

Summarizing and tabulating results...
The number of A-to-I editing sites for is less than 10 so that no heatmap is drawn.
Summary completed in 79.5822 second(s)

Predicting novel miRNAs

Performing prediction of novel miRNAs...
Start to predict
Traceback (most recent call last):
  File "/home/chenjun/software/linux_tools/miniconda3/envs/mirge3/bin/miRge3.0", line 33, in <module>
    sys.exit(load_entry_point('mirge3==0.0.2', 'console_scripts', 'miRge3.0')())
  File "/home/chenjun/software/linux_tools/miniconda3/envs/mirge3/lib/python3.8/site-packages/mirge3-0.0.2-py3.8.egg/mirge/__main__.py", line 141, in main
    predict_nmir(args, workDir, ref_db, base_names, pdUnmapped)
  File "/home/chenjun/software/linux_tools/miniconda3/envs/mirge3/lib/python3.8/site-packages/mirge3-0.0.2-py3.8.egg/mirge/libs/novel_mir.py", line 440, in predict_nmir
    screen_precusor_candidates(str(Path(outputdir2)), files, str(Path(outputdir2)/(files+"_features.tsv")), strFileOut, str(rnafoldCmdTmp))
  File "/home/chenjun/software/linux_tools/miniconda3/envs/mirge3/lib/python3.8/site-packages/mirge3-0.0.2-py3.8.egg/mirge/libs/screen_precusor_candidates.py", line 145, in screen_precusor_candidates
    upPrecusor = wholePrecusorNameContentDic[clusterName+':precusor_1']
KeyError: 'SRR772403:miRCluster_26_17:chr11:17432509_17432525-:precusor_1'

Sorry, I found the reason for the error, and the problem was solved after reinstalling RNAfold manually


Peer<PHONE_NUMBER>3359387 has wrong password

Whatever I do I am unable to load my world in dedicated server.
This is my compose:
version: "3.7"

services:
  valheim-server:
    cap_add:
      - sys_nice
    image: ghcr.io/lloesche/valheim-server:latest
    ports:
      - "2456-2457:2456-2457/udp"
    volumes:
      - "/docker/valheim/config:/config"
      - "/docker/valheim/data:/opt/valheim"
    environment:
      - SERVER_NAME:myserver
      - WORLD_NAME:Worldname
      - SERVER_PASS:mypass
    restart: always
    stop_grace_period: 2m

I have uploaded my world file to /docker/valheim/data/worlds and set worldname to the name of db file without extension.
What have I done wrong?  It always says wrong password.  It seems to be connecting fine because I can see the message in docker console:

Peer<PHONE_NUMBER>3359387 has wrong password

My environment vars were formatted incorectly

My environment vars were formatted incorectly

Can you write down the correct format, please? I have the same issue. I'm using Proxmox, Portainer and everything works fine but the password.
Dec 22 20:41:58 supervisord: valheim-server 12/22/2022 20:41:58: Got status changed msg k_ESteamNetworkingConnectionState_Connecting Dec 22 20:41:58 supervisord: valheim-server 12/22/2022 20:41:58: New connection Dec 22 20:41:58 supervisord: valheim-server 12/22/2022 20:41:58: Accepting connection k_EResultOK Dec 22 20:41:58 supervisord: valheim-server 12/22/2022 20:41:58: Connecting to Steamworks.SteamNetworkingIdentity Dec 22 20:41:58 supervisord: valheim-server 12/22/2022 20:41:58: Got status changed msg k_ESteamNetworkingConnectionState_Connected Dec 22 20:41:58 supervisord: valheim-server 12/22/2022 20:41:58: Connected Dec 22 20:41:58 supervisord: valheim-server 12/22/2022 20:41:58: Got connection SteamID<PHONE_NUMBER>7468325 Dec 22 20:41:58 supervisord: valheim-server 12/22/2022 20:41:58: Got handshake from client<PHONE_NUMBER>7468325 Dec 22 20:42:14 supervisord: valheim-server 12/22/2022 20:42:14: VERSION check their:0.212.9  mine:0.212.9 Dec 22 20:42:14 supervisord: valheim-server 12/22/2022 20:42:14: Peer<PHONE_NUMBER>7468325 has wrong password Dec 22 20:42:14 supervisord: valheim-server 12/22/2022 20:42:14: RPC_Disconnect  Dec 22 20:42:14 supervisord: valheim-server 12/22/2022 20:42:14: Disposing socket Dec 22 20:42:14 supervisord: valheim-server 12/22/2022 20:42:14: Closing socket<PHONE_NUMBER>7468325


v2.0.1 prometheus doesn't show all stats

Summary
I've installed prometheus on all services and even globally and i only see like 1 service and it's route in the output when i go to ::8001/metrics
When restarting kong with kong restart then the service in prometheus goes away.
I've read the docs on https://docs.konghq.com/hub/kong-inc/prometheus/ but doesn't say much.

Do you have traffic hitting other services?
The metrics for a services will only show up once there have been requests made to that service.

Ah, no i don't it's currently just a development setup.
A clone of our current production which i then upgraded.
What is the best practice then, to where I should install the plugin ?
Does it make sense to install it on all the services or is globally enough ?

Does it make sense to install it on all the services or is globally enough ?

If you need metrics for all services, then a global plugin is better suited.
Closing since the original question has been answered.


Run CircleCI against all current LTS releases

Avoids deprecated APIs and ensures compatibility. ¯\(ツ)/¯

init fails on node:14. :surprised-pikachu:
TypeError [ERR_INVALID_ARG_TYPE]: The "mode" argument must be integer. Received type string ('utf8')
    at Object.access (fs.js:199:10)
    at internal/util.js:297:30
    at new Promise (<anonymous>)
    at Object.access (internal/util.js:296:12)
    at Object.exports.findUpwardsFile (/home/circleci/repo/src/utils/fs.js:26:16)
    at exports.findConfig (/home/circleci/repo/src/config.js:11:33)
    at Object.exports.init (/home/circleci/repo/src/index.js:23:36)
    at /home/circleci/repo/bin/cli.js:41:16
    at Object.<anonymous> (/home/circleci/repo/bin/cli.js:109:3)
    at Module._compile (internal/modules/cjs/loader.js:1256:30) {
  code: 'ERR_INVALID_ARG_TYPE'
}

Tests pass, so...


[MINOR] Improve to update some mutable hash maps

What changes were proposed in this pull request?
Improve to update some mutable hash maps
Why are the changes needed?
Reduce  some mutable hash maps calls and cleanup code.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Existing unittests.

Can one of the admins verify this patch?

@weixiuli do you have a link to successful action tests in your account? the PR builder here seems to still not be working

@srowen  All tests passed  https://github.com/weixiuli/spark/actions/runs/2181695546

Merged to master


404 on 'Guide' Spanish content

http://angular-translate.github.io/docs/es/#/guide gives a 404.
Just FYI. :)

Thank you, I've missed the new language in the provisioning script.
Fixed. URL not a 404 anymore.


Error on apache configuration

I've tried to use module with Apache but i have this error:
With this:
h2.load
LoadModule h2_module /usr/lib/apache2/modules/mod_h2.so
apache2: Syntax error on line 141 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/h2.load: Cannot load /usr/lib/apache2/modules/mod_h2.so into server: libnghttp2.so.14: cannot open shared object file: No such file or directory
Action 'configtest' failed.
With other configuration:
h2.load
LoadModule nghttp2_module /usr/lib/apache2/modules/libnghttp2.so.14
LoadModule h2_module /usr/lib/apache2/modules/mod_h2.so
I get this:
apache2: Syntax error on line 141 of /etc/apache2/apache2.conf: Syntax error on line 2 of /etc/apache2/mods-enabled/h2.load: Can't locate API module structure `nghttp2_module' in file /usr/lib/apache2/modules/libnghttp2.so.14: /usr/lib/apache2/modules/libnghttp2.so.14: undefined symbol: nghttp2_module
Action 'configtest' failed.
Someone can help me?
Thanks

You'd use LoadFile on the libnghttp2.so.14 since it is not an Apache module.

Fantastic now i'have loaded everything but with H2Engine on on virtualhost an HTTP2 checker say me that i don't have http2 enabled.
Thanks,
J

Your httpd.conf configuration file or at least the one on the virtualhost needs to specify a

H2Engine on

somewhere. Otherwise mod_h2 will do nothing.

With a http2-enabled curl, you can

curl -kv --http2 https:///

and see how the negotiation went. Otherwise a

LogLevel h2:trace1

will error_log how, when and with what outcome mod_h2 was involved in a new connection.

Hello, another question:
I have compiled using sandbox mode and tried to move mod_ssl.so directly to my own initial apache setup but when I restart apache I get this error:
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 2 of /etc/apache2/mods-enabled/ssl.load: Cannot load /usr/lib/apache2/modules/mod_ssl.so into server: /usr/lib/apache2/modules/mod_ssl.so: undefined symbol: SSL_CONF_CTX_finish

Hello, another question:
I have compiled using sandbox mode and tried to move mod_ssl.so directly to my own initial apache setup but when I restart apache I get this error:
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 2 of /etc/apache2/mods-enabled/ssl.load: Cannot load /usr/lib/apache2/modules/mod_ssl.so into server: /usr/lib/apache2/modules/mod_ssl.so: undefined symbol: SSL_CONF_CTX_finish

Is my problem libssl related? Can I use the in sandbox complied mod_ssl is it is? Or do I need compile new apache?

It's probably that you have a different version of Apache from the one in the sandbox.

Would it work if I upgrade to 2.4.16. ?

How do I compile mod_ssl for Apache 2.4.12?

Is it "httpd-2.4.12-alpn-v5.patch" I will use to compile mod_ssl? Do I need comply anything else?

Have recompiled with 2.4.12 and lower version os openssl, but it seems I must install 2.4.16 for alpn ?

Do I need to patch 2.4.16?

complied it again with latest openssl now getting this:
Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 2 of /etc/apache2/mods-enabled/ssl.load: Cannot load /usr/lib/apache2/modules/mod_ssl.so into server: /usr/lib/apache2/modules/mod_ssl.so: undefined symbol: SSL_CONF_CTX_free
Must I recomplie apache with patch?

Please use this issue for real issue and not for problem of ssl compiling.
If you want to recompile apache follow this guide: http://blog.ivanristic.com/2013/08/compiling-apache-with-static-openssl.html
Thanks,
J

I will, thanks

Closing. (Anyway, the mod_ssl.so is a loading error you see when the systems links in an older version of openssl at startup of httpd. Not the one you compiled mod_ssl with.)


Improve load time

The load time for symbols-tree-view isn't huge (20 ms on my computer), but could be a little bit better.
I got it down to 2 ms with these changes.
main.coffee:
-SymbolsTreeView = require './symbols-tree-view'
+SymbolsTreeView = null

 module.exports =
   config:

...

   activate: (state) ->
+    SymbolsTreeView ?= require './symbols-tree-view'
     @symbolsTreeView = new SymbolsTreeView(state.symbolsTreeViewState)

package.json:
   "license": "MIT",
+  "activationCommands": {
+    "atom-workspace": ["symbols-tree-view:toggle"]
+  },
   "engines": {
     "atom": ">0.50.0"
   },

This of course just moves the time from loading to activation, but it's an improvement nonetheless. The 20 ms delay isn't really noticeable during activation (and it's only during the first activation), but it adds up to load time if, like me, you have around 100 (non-core) packages.
I would have sent in a pull request, but the changes are small and as it currently is, this might break the "Auto Toggle" setting (needs to be tested).

Please go on testing "Auto Toggle".
If it is not broken, as well as other things, I guess your modification will be a good example of best practice about when to activate a package.
I am looking forward.


RuntimeError: Expected object of scalar type Long but got scalar type Int for argument #2 'target' in call to _thnn_nll_loss2d_forward

Thanks for your error report and we appreciate it a lot.
Checklist

I have searched related issues but cannot get the expected help.
The bug has not been fixed in the latest version.

Describe the bug
RuntimeError: Expected object of scalar type Long but got scalar type Int for argument #2 'target' in call to _thnn_nll_loss2d_forward
Reproduction

What command or script did you run?

python tools/train.py configs/pointnet2/pointnet2_msg_16x2_cosine_80e_s3dis_seg-3d-13class.py

i modified the code in mmdet3d/datasets/pipelines/loading.py line 521 seg_3d_dtype=np.int64 to seg_3d_dtype=np.int32 because of the error:  IndexError: index<PHONE_NUMBER>1 is out of bounds for axis 0 with size 14,  and also i modified the code in  tools/create_data.py line 211 mask = np.fromfile(mask, dtype=np.int64) to mask = np.fromfile(mask, dtype=np.int32)  because of the similar error like above.

I use the S3DIS  as the dataset of training model

Environment
fatal: not a git repository (or any of the parent directories): .git
sys.platform: win32
Python: 3.7.12 | packaged by conda-forge | (default, Oct 26 2021, 05:35:01) [MSC v.1916 64 bit (AMD64)]
CUDA available: True
GPU 0: NVIDIA GeForce RTX 3060 Laptop GPU
CUDA_HOME: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1
NVCC: Cuda compilation tools, release 11.1, V11.1.74
MSVC: 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.29.30145 版
GCC: n/a
PyTorch: 1.7.1
PyTorch compiling details: PyTorch built with:

C++ Version: 199711
MSVC 192729112
Intel(R) Math Kernel Library Version 2020.0.0 Product Build 20191125 for Intel(R) 64 architecture applications
Intel(R) MKL-DNN v1.6.0 (Git Hash 5ef631a030a6f73131c77892041042805a06064f)
OpenMP 2019
CPU capability usage: AVX2
CUDA Runtime 11.0
NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_37,code=compute_37
CuDNN 8.0.4
Magma 2.5.4
Build settings: BLAS=MKL, BUILD_TYPE=Release, CXX_FLAGS=/DWIN32 /D_WINDOWS /GR /EHsc /w /bigobj -openmp:experimental -DNDEBUG -DUSE_FBGEMM -DUSE_VULKAN_WRAPPER, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, USE_CUDA=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=OFF, USE_NNPACK=OFF, USE_OPENMP=ON,

TorchVision: 0.8.2
OpenCV: 4.6.0
MMCV: 1.5.3
MMCV Compiler: MSVC 192930145
MMCV CUDA Compiler: 11.1
MMDetection: 2.25.0
MMSegmentation: 0.25.0
MMDetection3D: 1.0.0rc2+
spconv2.0: False
Error traceback
If applicable, paste the error trackback here.
Traceback (most recent call last):
  File "D:/mmdetection3d-master/tools/train.py", line 263, in <module>
    main()
  File "D:/mmdetection3d-master/tools/train.py", line 259, in main
    meta=meta)
  File "D:\mmdetection3d-master\mmdet3d\apis\train.py", line 342, in train_model
    meta=meta)
  File "D:\mmdetection3d-master\mmdet3d\apis\train.py", line 177, in train_segmentor
    runner.run(data_loaders, cfg.workflow)
  File "E:\Anaconda\envs\mmlab\lib\site-packages\mmcv\runner\epoch_based_runner.py", line 130, in run
    epoch_runner(data_loaders[i], **kwargs)
  File "E:\Anaconda\envs\mmlab\lib\site-packages\mmcv\runner\epoch_based_runner.py", line 51, in train
    self.run_iter(data_batch, train_mode=True, **kwargs)
  File "E:\Anaconda\envs\mmlab\lib\site-packages\mmcv\runner\epoch_based_runner.py", line 30, in run_iter
    **kwargs)
  File "E:\Anaconda\envs\mmlab\lib\site-packages\mmcv\parallel\data_parallel.py", line 75, in train_step
    return self.module.train_step(*inputs[0], **kwargs[0])
  File "E:\Anaconda\envs\mmlab\lib\site-packages\mmseg\models\segmentors\base.py", line 138, in train_step
    losses = self(**data_batch)
  File "E:\Anaconda\envs\mmlab\lib\site-packages\torch\nn\modules\module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "E:\Anaconda\envs\mmlab\lib\site-packages\mmcv\runner\fp16_utils.py", line 116, in new_func
    return old_func(*args, **kwargs)
  File "D:\mmdetection3d-master\mmdet3d\models\segmentors\base.py", line 67, in forward
    return self.forward_train(**kwargs)
  File "D:\mmdetection3d-master\mmdet3d\models\segmentors\encoder_decoder.py", line 168, in forward_train
    pts_semantic_mask_cat)
  File "D:\mmdetection3d-master\mmdet3d\models\segmentors\encoder_decoder.py", line 98, in _decode_head_forward_train
    self.train_cfg)
  File "D:\mmdetection3d-master\mmdet3d\models\decode_heads\decode_head.py", line 87, in forward_train
    losses = self.losses(seg_logits, pts_semantic_mask)
  File "E:\Anaconda\envs\mmlab\lib\site-packages\mmcv\runner\fp16_utils.py", line 205, in new_func
    return old_func(*args, **kwargs)
  File "D:\mmdetection3d-master\mmdet3d\models\decode_heads\decode_head.py", line 122, in losses
    seg_logit, seg_label, ignore_index=self.ignore_index)
  File "E:\Anaconda\envs\mmlab\lib\site-packages\torch\nn\modules\module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "E:\Anaconda\envs\mmlab\lib\site-packages\mmseg\models\losses\cross_entropy_loss.py", line 280, in forward
    **kwargs)
  File "E:\Anaconda\envs\mmlab\lib\site-packages\mmseg\models\losses\cross_entropy_loss.py", line 50, in cross_entropy
    ignore_index=ignore_index)
  File "E:\Anaconda\envs\mmlab\lib\site-packages\torch\nn\functional.py", line 2468, in cross_entropy
    return nll_loss(log_softmax(input, 1), target, weight, None, ignore_index, None, reduction)
  File "E:\Anaconda\envs\mmlab\lib\site-packages\torch\nn\functional.py", line 2292, in nll_loss
    input, target, weight, reduction_enum, ignore_index)
RuntimeError: Expected object of scalar type Long but got scalar type Int for argument #2 'target' in call to _thnn_nll_loss2d_forward

Process finished with exit code 1

Bug fix
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!

I have a similar problem
RuntimeError: expected scalar type Long but found Int
when I run
python tools\train.py configs\pointnet2\pointnet2_msg_16x2_cosine_80e_s3dis_seg-3d-13class.py


Missing file url

I'll try to upload file but it missing url file.

@naitopthenim This may be related https://github.com/mattmezza/vue-beautiful-chat/issues/185

I feel like this is indeed related to #185


Architecture for Human Segmentation?

Thanks for the amazing library!
I am looking to implement high-quality semantic segmentation on a mobile device for human cutout (full body).

Architecture?

What architecture/encoder would be a good choice for the task at hand? MobileNetV2, MobileNetV3, DeeplabV3+, ShuffleNet, PortraitNet, SINet.... There are so many, its confusing....
https://github.com/qubvel/segmentation_models.pytorch
I wanted highest-acccuracy, rather than smallest or fastest

Objects held by Person?

In the final output mask, how can I even get the objects that a person is holding, say a cup, a purse, a tennis racquet, a balloon, a toy, a magazine. It could be just about anything.
I am very much perplexed with this problem.
For training of human segmentation, I was planning to use the Supervisely Person dataset. If I am not mistaken, the Supervisely dataset doesn't contain masks for objects that the person might be holding. To achieve this, would a dataset like Supervisely be unfit for the job? Or we need to train on a dataset with more labels than just "person"?
But ideally, if an object is lying on the side, it is ok if it does not come in the mask. But if the person is holding the object, it should definitely come in the final mask.
How can this be achieved?
Thanks!

It would be a good idea to start with deeplab model for full person.Try out the sample 21 class model trained with pascal_coco  in tensorflow webiste which already contains the person class.
If you want to train on your own data, use a high resolution 513x513 input and depth multiplier 1(or more) for highest accuracy. This may increase the overall inference time; but since you are striving for highest-accuracy you need to make some trade-offs for speed.
Supervisely dataset does not have proper masks for connected objects(to person). Try removing such data from supervisely and use them in combination with pascal/coco person datasets. Sometimes it seems to be ambiguous regarding inclusion of connected objects(i. is it a connected object or an object at back-side partially occluded by person?). In any case, you need to ensure you have sufficient number of images (wit/without connected) for training, as per your specific use-case. I have not tried any other techniques for the including the connected objects.

Many thanks for the detailed answer,

Deeplab Model
Do you mean the DeeplabV3+ variant? And what about the model, say mobilenetv2, mobilenetv3, resnet50, portraitnet, etc. Are you aware of any chart of a comparison of the accuracy/speed of all these models?

Thanks for the helpful tip about input size.

Wow. That really sheds a lot of light into how to handle connected-objects. Things are far more clearer now.

I had a few questions :
A) What is the license of your amazing library?
B) If you were to recommend a model from your library, which would you say be the most suited to my task? You have tried out a lot many combinations.
Thanks!


Fix typos in the repo information

Techincalwritingcourse is the repo URL key; it should be corrected in the repo name to have spaces.
"kickstat" should be "kickstart".
This is a great initiative and I hope to find time to be involved.
Peace!

This has been fixed, thanks.


text primitive now accepts percentages for x and y

The <Text /> component is the default textComponent for <VictoryLabel />. Since #269  allows the <VictoryLabel /> to support strings for x and y props, the <Text /> component should also.
I did not find a test file for <Text /> and so I did not add any tests for this.

@Olliebaba thanks!

@boygirl - glad to help!


Completed Subscriptions section of Kaui Guide

I don't know if I got all of this right, so keep a sharp eye out. :-0
There's a PDF available if you want to read it that way. See page 35 - 41.

Merging so we can check the rendering.


Order by level wise

Hi,
Is there any way in sequelize-hierarchy to have different orderings for each level
I'm using "sequelize-hierarchy": "^0.5.8". Thanks in advance
[//1st level
{
"id": 2,
"firstName": "abc",//order by firstName
"lastName": "Jackson",
"email"<EMAIL_ADDRESS>"children":[   // 2nd level
{
"id": 2,
"firstName": "bbb",
"lastName": "Jackson",//order by lastname
"email"<EMAIL_ADDRESS>"children":[   // 3rdlevel
{
"id": 2,
"firstName": "ccc",
"lastName": "Jackson",
"email"<EMAIL_ADDRESS>by email
}
]
}
]
}
]

@pravinohal I'm afraid I don't understand what you're trying to do.
Could you please post the model definitions and kind of query you'd like to run?
i.e.:
sequelize.define('Person', { ... } );

Person.findAll( { include: { ... } } );

Also, there was a bug with ordering which was recently fixed. So probably a good idea to upgrade to latest version of sequelize-hierarchy.

@overlookmotel  thanks for your quick response. Following are the required details you  need
Defination
module.exports = function(sequelize, DataTypes) {
var Post = sequelize.define('post', {
details: {
type: DataTypes.STRING(400),
allowNull: false
}
acceptedAnswer: {
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: 0
}
upVotes: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: 0
},
projectId: {
type: DataTypes.INTEGER,
references: 'project', //  its table's name, not object name
referencesKey: 'id' //  its a column name for foreign key
}
}, {
freezeTableName: true
});
Post.isHierarchy();
return Post;
};
db.post.findAll({
attributes: ["id", "details", "postTypeId", "projectId", "parentId",
"acceptedAnswer", "isResolved", "upVotes", "downVotes", "createdAt",
"updatedAt", "postBlurb", "createdBy", "updatedBy"
],
hierarchy: true,
as: 'descendents',
where: {
projectId: projectId
},
order:???
})
Here I'm trying to get all the hierarchical records in a Post.

At the first level I'll get all records of type topic. But these records should be ordered by postid
At the second level i.e children of topics I'll get all records of type challenge, But these records should be ordered by isRosolved.
At the third level i.e children of challenge I'll get all records of type suggestion, But these records should be ordered by acceptedAnswer, upvotes.

I've got all the records level wise except for the ordering for each level.
Can you please let me know can this be achieved through sequelize-hierarchy? if yes how can it be done.

Ah OK. I get what you're after now. You don't actually need sequelize-hierarchy for this at all. Just plain sequelize will do it.
Just add a parentId field to the model, and then make it a self-reference to Post with:
Post.hasMany( Post, {as: 'children', foreignKey: 'parentId'} );

Then:
Post.findAll( {
    where: {
        projectId: projectId,
        parentId: null
    },
    include: {
        model: Post,
        as: 'children',
        include: {
            model: Post,
            as: 'children'
        }
    },
    order: [
        ['id'],
        [{model: Post, as: 'children'}, 'isResolved'],
        [{model: Post, as: 'children'}, {model: Post, as: 'children'}, 'acceptedAnswer']
    ]
} );

I may not have the example above 100% right, but if you read the Sequelize docs you should be able to work it out from here.
A couple of other pointers:

When you post code in Github issues it helps if you surround it with "". The code then is presented with indentation which makes it much easier to read. I edited your 2 posts above to add "" and you can see it makes it much clearer. If you don't know what I'm talking about, just click the edit (pencil) item on one of your posts above and have a look.

Your database scheme might work better if you had 3 different models called Topic, Challenge and Suggestion since these seem to be different things in your post above. Depending on other factors which I don't know about, this may be a bad suggestion. But maybe worth thinking about.

Hope the above is some help.
Closing this issue as it doesn't relate to sequelize-hierarchy.


[release-0.3]customcluster: refactor to reduce file size of controller.go

What type of PR is this?

What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

using bot


The first emoji is always highlighted even when you try to hover over other emojis

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Open web chrome
Go to any chat
Search for :person and see that you get a suggestion list. Try to hover over other emojis in the suggestion list.
Notice that the first emoji is always highlighted even when we try to hover on other emojis.
Follow the same process in Slack and notice that the first emoji doesn’t highlight instead it highlights the emoji that you hover on. Since we’ve tried to implement the emoji like that in slack, it should not highlight the first emoji in the application.

Expected Result:
The first emoji should not be focused in dark when we hover over the other emojis. It should focus on the emojis that we hover on like that of slack.
Actual Result:
The first emoji is always focused even when we hover over other emojis unlike slack
Workaround:
unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[x] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: 1.2.90-4
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
https://user-images.githubusercontent.com/43996225/228035355-b15a4762-2a01-4f6b-b874-2054beb63132.mp4

Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1679905845640639
View all open jobs on GitHub

Triggered auto assignment to @strepanier03 (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

I think it is not a bug as we have different styles for the focus and hover options. Initially, first one is focused and with the keyboard up/down key we can change the focus options, whereas with mouse hover we are applying a different style.

I agree this isn't a bug but more of an improvement request.

I raised this in the OG bug report in Slack here.
I'll check it and take the decided upon action in the next day or two.

We have decided this behavior is not a bug nor does it need updating. I am going to close until we decide differently.


Build operator with GCO in Dockerfile

Otherwise it cant enable tpm emulation on register
Signed-off-by: Itxaka<EMAIL_ADDRESS>

Codecov Report

Merging #82 (8645e68) into main (9b9844b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #82   +/-   ##
=======================================
  Coverage   29.74%   29.74%
=======================================
  Files           5        5
  Lines         353      353
=======================================
  Hits          105      105
  Misses        244      244
  Partials        4        4

Continue to review full report at Codecov.

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

Hmm, in OBS a full go-tpm-tools tarball is required for a successful build 🤔

on the dockerfile because we call go mod download it will download the full tpm-tools and compile, thus thats why it needs gcc and such

still testing btw, but it should work like the binary which also is compiled from scratch to use tpm emulation

mmmh I dont think this is supposed to work....
Its compiled with musl but executed on a non-musl env, so it should fail, it does locally...

nah, if we want tpm emulation to work AND be able to copy the file AND be able to run elemental-operator from the docker instance, this wont work.
So:

CGO_ENABLED=0:

Works on docker container
Works to be copied into the final image on elemental
Does not support tpm emulation

CGO_ENABLED=1:

Works on docker container
Does not work once copied to elemental (built with musl)
Supports tpm-emulation

So Im leaving it as is, we will rework this when needed


CView::LoadPoolTagText(), crashed as the newline format somehow changed to \n

A little bit strange, both pooltag.txt and the compiled res are \n for newline rather than \r\n.
void CView::LoadPoolTagText() {
	if (strncmp(data, "//", 2) == 0 || _strnicmp(data, "rem", 3) == 0
		|| strncmp(data, "\r\n", 2) == 0 || strncmp(data, "\n", 1) == 0)
		continue;

|| strncmp(data, "\n", 1) == 0
has to be added

I added a fix just in case


Fix broken docs publishing script

Currently we get a cryptic error when publishing docs on travis:
{"error":"Travis encountered an error, sorry :("}

Only research shows that this could be related to a username change, which I don't think is the case: https://github.com/travis-ci/travis-ci/issues/1127
I'm at a loss of what to do here ... @springmeyer

@mapsam - is this still a problem? If so happy to take a closer look, just let me know.

Ah, nope - that part of the script has been removed since we're building purely from the documentation repo.


How to connect the visdom server in my remote Server using my PC?

I want to run my code in the remote linux server and observe the training curve in my personal computer.
How to do it? Like to connect the ipython notebook remotely since they are in the same LAN.
Thanks.

When running the visdom server on a remote server, you can connect to it by using <your_remote_server_ip>:<visdom port (default 8097)> with a web browser

@JackUrb Oh, Thanks！It's easy.

I have been trying this for a while but it doesn't work
on the server I do
python -m  visdom.server and I get

Now my server doesn't have any browser installed so I want to view the output in my local machine
on local machine I do

In firefox https://<ip addr of server>:8097

and it shows unable to connect.

I thought that the problem is with the port forwarding. So I manually edited the ~/.ssh/config/ssh_config file on my local machine to include LocalForward <IP_ADDRESS>:8097 <IP_ADDRESS>:8097
Since it did not work I also tried RemoteForward <IP_ADDRESS>:8097 <IP_ADDRESS>:8097
Since it did not work I also tried adding both of them together, i.e

<other stuff about my host>
LocalForward <IP_ADDRESS>:8097 <IP_ADDRESS>:8097
RemoteForward <IP_ADDRESS>:8097 <IP_ADDRESS>:8097

please help, how should i get this thing to work?

Hi @udion - try connecting over http rather than https, we haven't configured the visdom server to work over https, as most of our users are working on servers without public ips with registered ssl certificates and we haven't had much demand to support https yet.

I am running visdom on the remote server and it times out now. It worked on an earlier instance on a different server.
This happens after I updated to '<IP_ADDRESS>'
The error is - ERR_CONNECTION_TIMED_OUT.
This site can’t be reached
 took too long to respond.
On the terminal, ping  reports that the remote is up.

@rohun-tripathi Did you try the steps outlined in the FAQ (see below)? Do you see any prints happening in the terminal running your server when you try to connect to it from your browser? Does the problem go away when moving back to an earlier version of visdom?
Issue: I cannot connect to the visdom server. First, check that your visdom server is running. You can start the visdom server via python -m visdom.server. Try restarting the server.
If your visdom server is running, but you don't see anything when trying to access visdom in your browser, please check that your network settings don't block traffic between the visdom server and your browser. Traffic may be blocked by a firewall, or you may need to specify a proxy server when starting the visdom server (via the -proxy option). In some cases, it may help to set up an SSH tunnel to your server by adding the following line to your local ~/.ssh/config: LocalForward <IP_ADDRESS>:8097 <IP_ADDRESS>:8097

HI @rohun-tripathi - can you try installing from source and seeing if the issue is still active?

I encounter the same issue and solved by "sudo ufw allow 8097". FYI.

When running the visdom server on a remote server, you can connect to it by using <your_remote_server_ip>:<visdom port (default 8097)> with a web browser

Gooooooooooooooddd!!!!!!

When running the visdom server on a remote server, you can connect to it by using <your_remote_server_ip>:<visdom port (default 8097)> with a web browser

I am still not able to see the results, is there something else that needs to be done?


SQL Lab doesn't display query history

SQL Lab query history is broken. This bug is as a regression which was introduced some time between 1-2 weeks before 9/23.
Expected results
After user runs a query in SQL Lab, it should show in the Query History tab.
Actual results
The Query history is blank.
Screenshots

How to reproduce the bug

Go to SQL lab
Run a simple query
Click on Query history
See there are no records

Environment

superset version: latest master

Checklist
Make sure these boxes are checked before submitting your issue - thank you!

[ ] I have checked the superset logs for python stacktraces and included it here as text if there are any.
[x] I have reproduced the issue with at least the latest released version of superset.
[x] I have checked the issue tracker for the same issue and I haven't found one similar.

@dpgaspar, Daniel, could you please take a quick look, thanks! 🙏

Looks like this was introduced in https://github.com/apache/incubator-superset/pull/10981

For async queries, we should be able to see old queries' results by clicking VIEW RESULTS link. this feature is not working right now:

@graceguo-supercat that looks like a separate issue, would you mind filing another ticket?

Popover + emotions break! We need to migrate all Popovers to antd quickly. I fixed the SpatialControl yesterday and I bet this is the same root cause...

@nytai After the revert (or maybe have other fixes at the same time?), VIEW RESULTS link in query history works good now:


Fix undefined behavor in GenericStringArray::from_iter_values

Which issue does this PR close?
Closes https://github.com/apache/arrow-rs/issues/1144
Rationale for this change
If an iterator produces more values than its declared upper bound, it can result in undefined behavior
What changes are included in this PR?
Fix the bug by using the correct length

I need to port my tests for this but I think the code is fine. I ran out of time today to keep working on this

Codecov Report

Merging #1145 (db22383) into master (719096b) will decrease coverage by 0.00%.
The diff coverage is 75.00%.

@@            Coverage Diff             @@
##           master    #1145      +/-   ##
==========================================
- Coverage   82.55%   82.54%   -0.01%
==========================================
  Files         169      169
  Lines       50456    50459       +3
==========================================
- Hits        41655    41653       -2
- Misses       8801     8806       +5

Impacted Files
Coverage Δ

arrow/src/array/array_string.rs
96.70% <75.00%> (-0.38%)
:arrow_down:

arrow/src/array/transform/mod.rs
85.43% <0.00%> (-0.27%)
:arrow_down:

parquet_derive/src/parquet_field.rs
66.21% <0.00%> (-0.23%)
:arrow_down:

parquet/src/encodings/encoding.rs
93.52% <0.00%> (-0.20%)
:arrow_down:

Continue to review full report at Codecov.

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


VS-Code wont install Jupyter or Jupyter Notebook - Get huge Red Text Error.

VSCode Version:
Version: 1.40.1 (system setup)
Commit: 8795a9889db74563ddd43eb0a897a2384129a619
Date: 2019-11-13T16:49:35.976Z

OS Version:
Windows 10

Microsoft Python Extension Version:
v2019.10.44104

Python from Python.Org Version:
v3.8.0  64-bit

PasteBin.com Error Code Posted:
https://pastebin.com/LS99f7xJ

Steps to Reproduce:

python.exe -m pip install -U jupyter --user

A message will pop up saying that it needs to install notebook, Select yes and let it run on its own.

Extra Error Windows: After trying to install when pressing "Install" in the pop up window.

Please due note that I went to the Jupyter plugin: (within VS-Code plugin finder)
https://marketplace.visualstudio.com/search?term=jupyter&target=VSCode&category=All categories&sortBy=Relevance
On the page it says:

This extension is no longer being maintained and all of its functionality has been (or will be) placed into the Microsoft Python extension.  Please download the Microsoft Python Extension instead.
Feel free to submit new issues or feature requests on the Microsoft Python Extension.

Which I have been using anyways, as I have NOT installed the Jupyter extension,
Because it said its no longer being supported by the author, because Microsoft now runs it within Their Python..

I would like to use Notebook from within VS-Code without having to form an account yadda yadda yadda.
I just want to use it, as one of my main classes im taking in Data Analysis requires me
to save in ( .ipynb ) But I would like to do the code in VS-Code then save the file as a Notebook file from VS-Code.  -- If thats possible........
BTW - The Jupyter extension author says that the extension is now owned by Microsoft Python.
This is why I am here posting this. As they said the feature is now within Microsoft Python.
So when placing this code in the Python file:
`import matplotlib.pyplot as plt
import matplotlib as mpl
import numpy as np
x = np.linspace(0, 20, 100)
plt.plot(x, np.sin(x))
plt.show()`
I get a popup from VS-Code that Notebook is missing, and if I want to install it.
I select YES, and thats when VS-Code takes a huge dump with a very very large Red text Error Code.

PasteBin.com Error Code Posted:
https://pastebin.com/LS99f7xJ

Hope all this info helps,
Thanks :)

There might be some confusion on what 'jupyter' means.
@DonJayamanne used to have an extension called the 'jupyter extension'. That's what you're referencing above. It's not jupyter itself though and you don't need to install it.
Jupyter is actually a series of projects by the jupyter team: https://jupyter.org/. Some of the work they do allows you to run a server that lets you run python code. This is what we are attempting to install.
It looks like the python environment you're running in isn't accepting our installation command. I recommend you use Anaconda instead as jupyter outlines here:
https://jupyter.org/install
Once you have an anaconda environment, you can then pick it in VS code to run a notebook with as I show here:

Not clear what is left to do here. Closing.


Update star.md

Solves https://github.com/duckdb/duckdb-web/issues/4002 and https://github.com/duckdb/duckdb-web/issues/4004
Also:

Remove discussion of count(*) from the star expression page -- I don't think they're related in any way, and I think the no-star count() aggregate is better and less confusing anyway.
Remove the leading list of examples. The page was already unwieldy, and with the new additions it'd just have been a mess
Restructure the page a bit with the goal to first discuss all SELECT * <MODIFIER> variants and then basically discuss the COLUMNS expression as a super-powered version of that.
Update the railroad to describe an optional choice between EXCLUDE/RENAME/REPLACE/(LIKE/SIMILAR TO/GLOB) modifiers. Note that previously, this offered a sequence of [optional-EXCLUDE and optional-REPLACE], but now the permitted combinations are a bit odd: no combination works EXCEPT for EXCLUDE + <ANYOTHER> (actually, RENAME + LIKE works but produces a wrong result, I'll open a ticket about that). Therefore, I made the railroad diagram look like no combination is allowed, which I think makes sense until  the support has been sanitized. Also, note that COLUMNS(* LIKE/SIMILARTO/GLOB) is not supported but the diagram will look like it is because it offers the same star-options for both branches, same to how it is described in text. I think this should simply be supported rather than painstakingly editing the docs to list this special behavior.

I don't know how to preview the diagram changes (github.dev doesn't help), let me know if there is an easy way!

Thanks for the changes!

I don't know how to preview the diagram changes (github.dev doesn't help), let me know if there is an easy way!

You have to build locally. There's a Docker image for it but it is slow and the JS gets cached easily – I had open a private browsing session to see the new railroad diagram:

It looks great!
The reason I'm parking this for a few days is because this is a v1.2 change. I'll try to set up a subpage for the nightly version, so we can proceed with merging these.

Updated the defaults in the new bits to be the empty lines


Could not resolve dependency

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve de.hdodenhof:circleimageview:3.0.0.

hey how did u solved this, i have same problem


Null check activeSortable so it is not passed along to checkPull

We were running into issues in IE11 when dragging sortable elements from one container to another.  This seemed to be caused by activeSortable being null and passed along to activeGroup.checkPull.
The project in which we were experiencing this is quite large, so we were unable to quickly put together a small duplication of the issue.

So will be correct to: https://github.com/RubaXa/Sortable/commit/2ecd5034ea040cfcff84f2a97e6e42a636ee84fb


Improvement in Navbar buttons

The Link Buttons in the Navbar needs improvement as they are not aesthetically pleasing as compared to the theme of the website.
The buttons are unaligned as well.
Screen shots for reference:

Please assign this PR to me, I will work on this issue ASAP.
Thank You :)

this issue was resolved, so i am closing this issue, but still i would encourage to look out other issues in website and then create new issue.


Querying Pools ::decode

I'm trying to implement this example from (https://github.com/osmosis-labs/osmosis-rust/tree/main/packages/osmosis-std#querying-pool) but I can't get decode() to work.
This is the error but prost::message::Message is private and prost::Message is flagged as an "unused import".

Apologize for my ignorance but I'm not sure how to solve this.

Have you tried use prost::Message? decode is a Message trait's method.


first pass at collapsible filters

I changed the copy from show/hide to toggle to make the code simpler. I think it might need a little more ux love, especially on the embed page, before merge but putting it our there to get some feedback.

Embed map definitely needs more UX considerations lol. Will take a video to discuss on #dev b/c github doesn't allow video clip uploads 😞
Looks good on top referral https://getusppe.org/give/ but most others have a double scroll-bar effect when filters are toggled/opened. Try on https://theppedrive.com/ppe-drive-listing the next top referral after GUP.
GUP has altered their own iframe script to this:

Let me know if anything should be adopted on our default embed scrip that non-dev outreach members share and troubleshoot with partnerships.

Can we make the "X of Y Requests" larger font so it is more prominent? Perhaps almost to the same height as the search bar:

May moving the "Reset map & list" option to be right-aligned on the "Toggle filter options" line will look prettier 😃

Can we make the "X of Y Requests" larger font so it is more prominent? Perhaps almost to the same height as the search bar:

Maybe moving the "Reset map & list" option to be right-aligned on the "Toggle filter options" line will look prettier 😃

I can bump up the font size yeah. That's what I originally had and I changed it cause I think it looks weird with all the spacing not being aligned

Maybe if I also right align the requester counts?

Cool let me test out some embeds on mobile view

To get around the double scroll bar issue, is the solution to ask external sites to embed at an iframe height of 1000px and then shorten the internal map height to... 750px-ish to accommodate for the height of the filters that may be revealed??? @nburt @ngottlieb

toggle looks great on mobile! Way cleaner on the the default load and even open filters don't look clustered. "Reset map & list" would definitely fit on the "Toggle filter options" line on mobile

To get around the double scroll bar issue, is the solution to ask external sites to embed at an iframe height of 1000px and then shorten the internal map height to... 750px-ish to accommodate for the height of the filters that may be revealed??? @nburt @ngottlieb

just pushed a few more commits, try the new version once it deploys. I positioned the filters dropdown so that it doesn't push down content but just overlays on top of it. I think that should solve the double scrollbar issues

Mobile looks awesome:

Desktop: what if we must made the Search bar longer to balance the empty space?

Awesome yes, no more double scroll bars!

Updated again, any thing else?

Looks awesome! Thank you!!

These look awesome. Thank you!
On Mon, May 25, 2020 at 5:47 PM Nathanael Burt<EMAIL_ADDRESS>wrote:

Merged #960 https://github.com/findthemasks/findthemasks/pull/960 into
master.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/findthemasks/findthemasks/pull/960#event-3371518530,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA6L2GDN6JTO2DO5PUCX7P3RTMGOBANCNFSM4NJVPLMA
.


Segmentation fault running Android emulator provided by androidenv.composeAndroidPackages

Describe the bug
Segmentation fault when launching Android emulator provided by androidenv.composeAndroidPackages environment from command line.
Steps To Reproduce

Use the following flake.nix:

{
  description = "Android app flake";

  inputs = {
    nixpkgs.url =
      "github:NixOS/nixpkgs/3a166f1b131d2ca49d99fe716fd1ce898bd58f03";
  };

  outputs = { self, nixpkgs, flake-utils }:
    flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = import nixpkgs {
          system = system;
          config = {
            android_sdk.accept_license = true;
            allowUnfree = true;
          };
        };

        buildToolsVersions = "33.0.1";
        androidComposition = pkgs.androidenv.composeAndroidPackages {
          toolsVersion = "26.1.1";
          platformToolsVersion = "33.0.3";
          includeEmulator = true;
          emulatorVersion = "31.3.14";
          platformVersions = [ "33" ];
          buildToolsVersions = [ buildToolsVersions ];
          includeSystemImages = true;
          systemImageTypes = [ "google_apis_playstore" ];
          abiVersions = [ "x86_64" ];
          useGoogleAPIs = false;
          includeExtras = [ "extras;google;gcm" ];
        };
      in {
        devShells.default = pkgs.mkShell {
          name = "android-sdk-env";
          nativeBuildInputs = with pkgs; [
            # Development
            # android-studio
            # libcxx

            # Building the app
            # jdk11
            nodejs-18_x
            apksigner
            apktool
            # yarn

            androidComposition.androidsdk

            # Sniffing
            mitmproxy
          ];

          shellHook = ''
            export PATH="$PATH:$ANDROID_SDK_ROOT/build-tools/${buildToolsVersions}"
            echo "To create an AVD, type":
            echo "avdmanager create avd -n cmdline-created-android -k \"system-images;android-33;google_apis_playstore;x86_64\""
            echo "---------------"
            echo "To launch it, type \"emulator -avd cmdline-created-android\""
          '';

          ANDROID_SDK_ROOT =
            "${androidComposition.androidsdk}/libexec/android-sdk";
          GRADLE_OPTS =
            "-Dorg.gradle.project.android.aapt2FromMavenOverride=${androidComposition.androidsdk}/libexec/android-sdk/build-tools/${buildToolsVersions}/aapt2";
        };
      });
}

Run nix develop
Create an AVD with avdmanager create avd -n cmdline-created-android -k "system-images;android-33;google_apis_playstore;x86_64" without a custom hardware profile.
Run the emulator with emulator -avd cmdline-created-android and wait for the segmentation fault.

Expected behavior
I was expecting to see Android running inside the emulator without any errors.
Additional context
The output of the emulator is:
$ emulator -avd cmdline-created-android
INFO    | Android emulator version <IP_ADDRESS> (build_id 9322596) (CL:N/A)
emulator: INFO: Found systemPath /nix/store/4rajkmxxg1zj6l2gbirqcamv6xhixl79-androidsdk/libexec/android-sdk/system-images/android-33/google_apis_playstore/x86_64/
INFO    | Duplicate loglines will be removed, if you wish to see each indiviudal line launch with the -log-nofilter flag.
WARNING | Failed to process .ini file /home/mzabani/.android/avd/cmdline-created-android.avd/quickbootChoice.ini for reading.
INFO    | Info: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. ((null):0, (null))

WARNING | cannot add library /nix/store/pqv3rgrv790myywlk8qlcrvf50h7mj3k-emulator-31.3.14/libexec/android-sdk/emulator/qemu/linux-x86_64/lib64/vulkan/libvulkan.so: failed
INFO    | added library /nix/store/pqv3rgrv790myywlk8qlcrvf50h7mj3k-emulator-31.3.14/libexec/android-sdk/emulator/lib64/vulkan/libvulkan.so
ERROR   | Failed to create Vulkan instance.
queryCoreProfileSupport: swap interval not found
INFO    | configAndStartRenderer: setting vsync to 60 hz
INFO    | Sending adb public key [QAAAAE0enzV7taD8JBIJc6j/jlnaG8Cujycx4me8YNmz37zJqYxnlg08hHqeUgDKDS0CL3ZARx/BT6cLxlhZ2KfaZnNMMg3GKPaA3PZLNHr7rVnW04tCEhUpY8gxrUAlcs97bVIMwpnessZRfbBBFUxyhgqRlpyfpcj3IvPe16M6mXxdio6J/f1JrzkPEfuqjfKsYR7ycgjpxTFtydtY2JQiE4ID2QqIcy4G4WRNZeyrHb36mjhjCOexB8Xd0mpZd4ZWbM9j7KIieAbLtCnqzgDuQD9AerhWdb27159IrZR9kTythbJpZ7ZgJnVQ51U8xkKDt2GgAiFuYVRpDZR0BiUisCYLCPqiMgL2cU2eCy2e2W12dzzY/kVuw/jbUelB2XWuIOzoalwOBOe3i7FgmGF0J9sqKr+oxYsEt7s8s8b4DkRjC/FiXcemwNy2KC7Xm3Qpt8pEF5iktxkbLTQHBhve9iKuh3/8DpJpYyMKcOSvNZtlYsegwTaIcpak4IDMKBiviyZK9CiYIb/vA/dCIdFW5sPqgfW6T55A7l4EbCSM8T7UIYbd5SY3iD0x6mhWhDK5SgoV+j1vVWbGtKJ9UdnrIuEeACIFAuiPpBBqjgUicnrLTPwzR1bG5YUw453j+B+ujHaiHCnMgojslYBYL84LPIV0pfFmEDWjJRUWHrNhZDs+kk+EOgEAAQA= mzabani@unknown]
INFO    | injectedQemuChannel!
INFO    | Informing listeners of injection.
INFO    | Rootcanal has  been activated.
WARNING | *** No gRPC protection active, consider launching with the -grpc-use-jwt flag.***
INFO    | Started GRPC server at <IP_ADDRESS>:8554, security: Local, auth: none
INFO    | Advertising in: /run/user/1001/avd/running/pid_14245.ini
INFO    | setDisplayConfigs w 320 h 640 dpiX 160 dpiY 160
ERROR   | Unable to connect to adb daemon on port: 5037
LLVM ERROR: Cannot select: intrinsic %llvm.x86.sse41.pblendvb
Segmentation fault (core dumped)

Notify maintainers
Didn't know how to find a meta.maintainers list, so citing from recent git history of this file:
@hadilq @jakobkukla @VergeDX @Artturin
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.15, NixOS, 23.05 (Stoat), 23.05.20230304.3a166f1`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Not a maintainer, but still an interesting issue. What CPU model are you running?

I'm running an AMD Ryzen 9 5950X 16-Core Processor with KVM enabled.

Hey @mzabani I cannot reproduce it here! The emulator is launched.
NFO    | Android emulator version <IP_ADDRESS> (build_id 9322596) (CL:N/A)
emulator: INFO: Found systemPath /nix/store/4rajkmxxg1zj6l2gbirqcamv6xhixl79-androidsdk/libexec/android-sdk/system-images/android-33/google_apis_playstore/x86_64/
INFO    | Duplicate loglines will be removed, if you wish to see each indiviudal line launch with the -log-nofilter flag.
WARNING | Failed to process .ini file /home/hadi/.android/avd/cmdline-created-android.avd/quickbootChoice.ini for reading.
WARNING | cannot add library /nix/store/pqv3rgrv790myywlk8qlcrvf50h7mj3k-emulator-31.3.14/libexec/android-sdk/emulator/qemu/linux-x86_64/lib64/vulkan/libvulkan.so: failed
INFO    | added library /nix/store/pqv3rgrv790myywlk8qlcrvf50h7mj3k-emulator-31.3.14/libexec/android-sdk/emulator/lib64/vulkan/libvulkan.so
ERROR   | Failed to create Vulkan instance.
queryCoreProfileSupport: swap interval not found
INFO    | configAndStartRenderer: setting vsync to 60 hz
INFO    | Sending adb public key [QAAAAFsEUvktdJTa16hcU3PHtcYPukNnFM40omsyANfyvDtEf2iGv22Xlo8NWsTUN39qpPgQFpvNfsPcYNLgfpdP+Y7b/Lp+vT4GJs6ya1OnotYt2nrLg1vWxZY473QAGyXsWObf5DKsjHv9ixiRLj6VxwOzwsXNb4ZpJL50XDn+TyqcUOLXcXetxULN26A5pcWifEQdHIfMF+QxncVYZ8V3mJb6Z34sUzAtiLaXkzUQdnoL7VfgXHGDs7XGlQH8q75yIaOYSvlwBhImjvWUEOZdFTe2uoncAE5NQoepozHBW7qVQIW4yp+BFtsFLO2d7ZseI55vW9LtM6dXpaavH23xsbJvCMauglH9UTYXg7z97olYhDtHAPpr4aHj/Uc5StNJE4bZaCgOkjYX3PB+2w4Jcgrsv9xFH0BP8AY40yiv8YO2AyF6Z0ZEZ7YKKPZOrggNcW8vvaSB1TJ1FnttAcg6dbfudKFtM6wb4I9dMEvXNNlsbZKF32DTRKy02/Z1W7zgTzQKJpR1I7aZTYDvCVI4S1jdWt0w98PPStvsQiG7NmbpSs9I851Rw8J5SyxPQWwwvbwr9l75pKWDQ4rw2lZcrS1FQFA5bVClwNL6zodNMu6LxIt7lZBOf7C73umWgU4Wfl8x86HKUw7wEqADLmWp4CP59UQ+FX5BLYJVsXXMsGqIXVe7RAEAAQA= hadi@unknown]
INFO    | injectedQemuChannel!
INFO    | Informing listeners of injection.
INFO    | Rootcanal has  been activated.
WARNING | *** No gRPC protection active, consider launching with the -grpc-use-jwt flag.***
INFO    | Started GRPC server at <IP_ADDRESS>:8554, security: Local, auth: none
INFO    | Advertising in: /run/user/1000/avd/running/pid_108813.ini
INFO    | setDisplayConfigs w 320 h 640 dpiX 160 dpiY 160
ERROR   | Unable to connect to adb daemon on port: 5037
INFO    | Your emulator is out of date, please update by launching Android Studio:
 - Start Android Studio
 - Select menu "Tools > Android > SDK Manager"
 - Click "SDK Tools" tab
 - Check "Android Emulator" checkbox
 - Click "OK"

glTexImage2D: got err pre :( 0x502 internal 0x8229 format 0x1903 type 0x1401
glTexImage2D: got err pre :( 0x502 internal 0x8058 format 0x1908 type 0x1401
glTexImage2D: got err pre :( 0x506 internal 0x8058 format 0x1908 type 0x1401
INFO    | boot completed
INFO    | boot time 122084 ms
INFO    | Increasing screen off timeout, logcat buffer size to 2M.
ERROR   | Unable to connect to adb daemon on port: 5037
INFO    | Revoking microphone permissions for Google App.

Have no clue why it's working differently! I searched and found https://stackoverflow.com/questions/15023592/llvm-cannot-select-intrinsic-llvm-spu-si-sf, so I guess it's a problem related to LLVM+CLANG, where in my shell I found
CC=gcc

Still have no clue!

Thanks for the quick answer! I also have CC=gcc in my environment.
One thing I noticed different in the outputs ofour runs is mine has the following line:
INFO    | Info: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. ((null):0, (null))

I tried setting that environment variable but got a different error (and running the emulator under nix develop -i triggers this error as well):
$ QT_QPA_PLATFORM=wayland emulator -avd cmdline-created-android
INFO    | Android emulator version <IP_ADDRESS> (build_id 9322596) (CL:N/A)
emulator: INFO: Found systemPath /nix/store/4rajkmxxg1zj6l2gbirqcamv6xhixl79-androidsdk/libexec/android-sdk/system-images/android-33/google_apis_playstore/x86_64/
INFO    | Duplicate loglines will be removed, if you wish to see each indiviudal line launch with the -log-nofilter flag.
INFO    | Info: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. ((null):0, (null))

INFO    | Warning: Could not find the Qt platform plugin "wayland" in "/nix/store/pqv3rgrv790myywlk8qlcrvf50h7mj3k-emulator-31.3.14/libexec/android-sdk/emulator/lib64/qt/plugins" ((null):0, (null))

Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.
 ((null):0, (null))
INFO    | Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.
 ((null):0, (null))

Aborted (core dumped)

Which is strange, since it says it's ignoring XDG_SESSION_TYPE again, but then crashes with a very different error.
Suspecting my graphical stack, I tried using -no-window, and indeed it doesn't crash (only last lines pasted):
$ emulator -avd cmdline-created-android -no-window
...
...
INFO    | setDisplayConfigs w 320 h 640 dpiX 160 dpiY 160
INFO    | boot completed
INFO    | boot time 19692 ms
INFO    | Increasing screen off timeout, logcat buffer size to 2M.
INFO    | Revoking microphone permissions for Google App.

So it seems it might be Wayland + my GPU/driver?
Oh, before I finish this, I discovered a new option and tried it, and it worked! It's emulator -avd cmdline-created-android -gpu swiftshader_indirect.
I wonder if we should dismiss all of this as a non-supported LLVM thing in my driver/graphical stack or not? Or if at least nix develop -i should've worked.

Interesting. @Tanish2002 what GPU do you have and what driver are you using? Are you on Wayland or on X?
I'm on Wayland, using the amdgpu driver with a Radeon RX 6700 XT card:
$ lspci -v
09:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT] (rev c1) (prog-if 00 [VGA controller])
        Subsystem: ASRock Incorporation Device 5222
        Flags: bus master, fast devsel, latency 0, IRQ 100, IOMMU group 18
        Memory at d0000000 (64-bit, prefetchable) [size=256M]
        Memory at e0000000 (64-bit, prefetchable) [size=2M]
        I/O ports at e000 [size=256]
        Memory at fca00000 (32-bit, non-prefetchable) [size=1M]
        Expansion ROM at 000c0000 [disabled] [size=128K]
        Capabilities: <access denied>
        Kernel driver in use: amdgpu
        Kernel modules: amdgpu

I wonder if some other graphical driver would work.. I might have to try it out some time.

I have libvirtd enabled and my user belongs to the libvirtd group, so I think sadly it's something else.
I ran the emulator with QT_DEBUG_PLUGINS=1 set and found that xcb might be kind of a red herring since it's actually loaded like many other plugins that appear in stdout:
INFO    | Debug: QFactoryLoader::QFactoryLoader() looking at "/nix/store/pqv3rgrv790myywlk8qlcrvf50h7mj3k-emulator-31.3.14/libexec/android-sdk/emulator/lib64/qt/plugins/platforms/libqxcb.so" ((null):0, (null))

INFO    | Debug: Got keys from plugin meta data ("xcb") ((null):0, (null))

However, I think the key in the original error is that xcb is a platform plugin, and indeed it's the only one in the folder:
$ ls /nix/store/pqv3rgrv790myywlk8qlcrvf50h7mj3k-emulator-31.3.14/libexec/android-sdk/emulator/lib64/qt/plugins/platforms/
libqxcb.so

So my hypothesis is that running this on XWayland is broken, but not on pure X, but that still doesn't cover why that strange LLVM error is happening. I do have qt5 installed independently, but I don't see any wayland-like platform there:
$ ls /nix/store/w1700kgv91n8aliqc0zmww4ijhq4sh4c-qtbase-5.15.5-bin/lib/qt-5.15.5/plugins/platforms
libqeglfs.so  libqlinuxfb.so  libqminimalegl.so  libqminimal.so  libqoffscreen.so  libqvnc.so  libqxcb.so

There is a qtwayland in nixpkgs, but the names of the libraries in that don't resemble something that could work. Also, I don't know how to make the emulator look for platform plugins in other folders anyway. Some people in the internet mention a QT_QPA_PLATFORM_PLUGIN_PATH variable for that, but it seems to be ignored when I set it.
Anyway, this is starting to look like a XWayland/QT bug. I'm not sure if I'll keep investigating as I found a workaround, but I'll keep posting in case I do.

idk why, but -gpu guest works here, thank you!!!

I managed to get it working without changing GPU settings by adding vulkan-loader and libGL to a FHS environment (although I'm not sure if a FHS environment is required).
Note that -gpu guest / -gpu swiftshader_indirect are both software rendering and probably a lot more inefficient. I believe the issue is simply that the emulator tries to get -gpu host GPU hardware acceleration working, but can't find Vulkan and OpenGL.

@K900 helped me with this issue in Matrix channel today when suggested defining LD_LIBRARY_PATH in shell:
          LD_LIBRARY_PATH="${pkgs.libglvnd}/lib";

LD_LIBRARY_PATH="${pkgs.libglvnd}/lib";

This worked for me!
My working flake:
{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, flake-utils }:
    flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = import nixpkgs {
          inherit system;
          config = {
            android_sdk.accept_license = true;
            allowUnfree = true;
          };
        };
        androidComposition = pkgs.androidenv.composeAndroidPackages {
          cmdLineToolsVersion = "11.0";
          toolsVersion = "26.1.1";
          platformToolsVersion = "34.0.4";
          buildToolsVersions = [ "34.0.0" ];
          includeEmulator = true;
          emulatorVersion = "32.1.14";
          platformVersions = [ "34" ];
          includeSources = false;
          includeSystemImages = true;
          systemImageTypes = [ "google_apis_playstore" ];
          abiVersions = [ "x86_64" ];
          cmakeVersions = [ ];
          includeNDK = false;
          useGoogleAPIs = false;
          useGoogleTVAddOns = false;
          includeExtras = [];
          extraLicenses = [
            "android-sdk-preview-license"
            "android-googletv-license"
            "android-sdk-arm-dbt-license"
            "google-gdk-license"
            "intel-android-extra-license"
            "intel-android-sysimage-license"
            "mips-android-sysimage-license"
          ];
        };
        androidsdk = androidComposition.androidsdk;
      in
      with pkgs;
      {
        devShells.default = mkShell {
          buildInputs = [
            androidsdk
            flutter
            jdk17
          ];
          ANDROID_SDK_ROOT = "${androidsdk}/libexec/android-sdk";
          LD_LIBRARY_PATH="${pkgs.libglvnd}/lib";
        };
      }
    );
}

Running X on an RX 6950XT and a Ryzen 5 3600 with KVM enabled.

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/how-to-extend-environment-variables-in-modules/55492/9


no-duplicates: Add autofix

This adds autofix to no-duplicates. The autofix merges duplicate imports into the first one. It bails if there are multiple default import names, or comments associated with the (non-first) duplicate imports (since it's unclear how the user wants to move them).

Coverage increased (+3.2%) to 97.383% when pulling 9ac41f368a63d6a9f7b157f47683e6bd5b538de9 on lydell:no-duplicates-autofix into af976b90d1cb7c25e4ba1c18a673da355e9ad717 on benmosher:master.

Coverage increased (+3.2%) to 97.383% when pulling 9ac41f368a63d6a9f7b157f47683e6bd5b538de9 on lydell:no-duplicates-autofix into af976b90d1cb7c25e4ba1c18a673da355e9ad717 on benmosher:master.

Coverage increased (+3.2%) to 97.383% when pulling 9ac41f368a63d6a9f7b157f47683e6bd5b538de9 on lydell:no-duplicates-autofix into af976b90d1cb7c25e4ba1c18a673da355e9ad717 on benmosher:master.

The ESLint v3 and v2 tests are failing. Guidance on how to solve that would be appreciated.

I disabled autofix for ESLint <= 3.

Ready for another round of review.

@ljharb Friendly ping. If you have the time to review again, that'd be great!

Thanks! :tada:


Braque::Model should raise an error if api_root is not defined

Closed https://github.com/dylanfareed/braque/commit/6e68798fcd567ae467cf1588f3c5e2295f8a8403


Treat .rsh files as Reach files instead of RenderScript

Language name
Reach
URL of example repository
You can see a lot of .rsh files in places like https://github.com/reach-sh/reach-lang/tree/master/examples.
https://github.com/reach-sh/reach-lang/blob/master/examples/api-call/index.rsh is one example .rsh file.
URL of syntax highlighting grammar
This language is very similar to JavaScript. Reach doesn't support jsx syntax. It also doesn't have support for let as a keyword. It is otherwise basically exactly the same as extensions/javascript/syntaxes/JavaScript.tmLanguage.json.
Most popular extensions
Reach IDE, which is actually what I work on

Detected language
RenderScript

كلما قرأة اكثر ازددة فهمن


Error when doing import of module for 0.5 / 0.5.1

Hi,
Got following error
Failed to import function C:\Program Files\WindowsPowerShell\Modules\BurntToast\0.5.0\Public\Advanced\New-BTAction.ps1: Multiple ambiguous overloads found for ".ctor" and the argume
nt count: "1". (raised by: Write-Error)
Failed to import function C:\Program Files\WindowsPowerShell\Modules\BurntToast\0.5.0\Public\Advanced\New-BTAudio.ps1: Multiple ambiguous overloads found for ".ctor" and the argumen
t count: "1". (raised by: Write-Error)
Failed to import function C:\Program Files\WindowsPowerShell\Modules\BurntToast\0.5.0\Public\Advanced\New-BTBinding.ps1: Multiple ambiguous overloads found for ".ctor" and the argum
ent count: "1". (raised by: Write-Error)
Failed to import function C:\Program Files\WindowsPowerShell\Modules\BurntToast\0.5.0\Public\Advanced\New-BTButton.ps1: Multiple ambiguous overloads found for ".ctor" and the argume
nt count: "1". (raised by: Write-Error)
Failed to import function C:\Program Files\WindowsPowerShell\Modules\BurntToast\0.5.0\Public\Advanced\New-BTContent.ps1: Multiple ambiguous overloads found for ".ctor" and the argum
ent count: "1". (raised by: Write-Error)
Failed to import function C:\Program Files\WindowsPowerShell\Modules\BurntToast\0.5.0\Public\Advanced\New-BTContextMenuItem.ps1: Multiple ambiguous overloads found for ".ctor" and t
he argument count: "1". (raised by: Write-Error)
Failed to import function C:\Program Files\WindowsPowerShell\Modules\BurntToast\0.5.0\Public\Advanced\New-BTImage.ps1: Multiple ambiguous overloads found for ".ctor" and the argumen
t count: "1". (raised by: Write-Error)
Failed to import function C:\Program Files\WindowsPowerShell\Modules\BurntToast\0.5.0\Public\Advanced\New-BTInput.ps1: Multiple ambiguous overloads found for ".ctor" and the argumen
t count: "1". (raised by: Write-Error)
Failed to import function C:\Program Files\WindowsPowerShell\Modules\BurntToast\0.5.0\Public\Advanced\New-BTSelectionBoxItem.ps1: Multiple ambiguous overloads found for ".ctor" and
the argument count: "1". (raised by: Write-Error)
Failed to import function C:\Program Files\WindowsPowerShell\Modules\BurntToast\0.5.0\Public\Advanced\New-BTText.ps1: Multiple ambiguous overloads found for ".ctor" and the argument
count: "1". (raised by: Write-Error)
Failed to import function C:\Program Files\WindowsPowerShell\Modules\BurntToast\0.5.0\Public\Advanced\New-BTVisual.ps1: Multiple ambiguous overloads found for ".ctor" and the argume
nt count: "1". (raised by: Write-Error)
Failed to import function C:\Program Files\WindowsPowerShell\Modules\BurntToast\0.5.0\Public\Advanced\Submit-BTNotification.ps1: Multiple ambiguous overloads found for ".ctor" and t
he argument count: "1". (raised by: Write-Error)

Thanks for the report!
To help track it down, would you mind letting me know which OS version you're running and the output of $PSVersionTable ?

Thanks, here you go:
Windows 7 Enterprise SP1 with following PS version
Name                           Value

PSVersion                      5.0.10586.117
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0, 5.0.10586.117}
BuildVersion                   10.0.10586.117
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

Ahh, my apologies Kurt. This will only work on Windows 8 or Windows 10 as the sub systems for Toast Notifications were only added in those versions.
I'm actually not sure if the current version works on Windows 8 either, as I've started using 'Adaptive' Toasts which, to my understanding, is Windows 10 only.
I can guarantee than v0.4.0 does work on Windows 8 (as that's what I was developing and testing on at the time.)
I'm currently downloading a Windows 8 ISO to see if the the current version on it and will work out a mechanism to stop the module from trying to load on anything that isn't supported.


docs: more improvements

🔗 Linked issue

❓ Type of change

[x] 📖 Documentation (updates to the documentation or readme)
[ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality like performance)
[ ] ✨ New feature (a non-breaking change that adds functionality)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Improved many things, simplify the Guide to avoid multi level where it is not needed
Added icons ✨
Fix links
It looks much better on mobile too:

Love it!


Version 2.0.0

ViewComponent has progressed significantly since this library was created. Due to our use of the old slot API, significant changes are required to bring it in line with the latest version. It's impossible to simply adjust our existing slots so they work with slots v2.
This is a good opportunity to tighten things up a bit and improve consistency throughout.
Style choices

Use Rails' tag/content_tag helpers and pass arrays of classes instead of building the string inside templates
Keep as much attribute-building logic in the component file as possible, template shouldn't have any substantial logic
Remove the really basic templates in favour of rendering in Ruby via #call
Remove the component 'DSL' style slot wrapper, it's no longer needed

Component updates

[x] Accordion #162
[x] Back link #164
[x] Breadcrumbs #164
[x] Cookie banner #169
[x] Details #170
[x] Footer #180
[x] Header #175
[x] Inset text #171
[x] Notification banner #166
[x] Panel #172
[x] Phase banner #179
[x] Start now button (plus #137 fix) #174
[x] Summary list (plus #165 improvements) #167
[x] Tabs #160
[x] Tag #161
[x] Warning text #161

Nice-to-haves

[ ] Improve the guide/docs. Perhaps create a statically-built guide like the form builder's (also create a PR to update the ViewComponent page that lists us if we change the URL) going to push this back to 2.1.0, probably a couple of weeks' work here at least
[x] Switch to rspec-html-matchers from Capybara, it makes asserting the presence of attributes much nicer and we don't need any browser-driving capability

Housekeeping

[x] Upgrade to govuk-rubocop >= 4.0.0
[x] Update the examples page

Note to self; when compiling release notes to easily diff the variants across branches after a rename we can do this:
COMPONENT=footer; eval "git diff master.. -- app/components/govuk_component/{$COMPONENT,$COMPONENT\_component}.rb"

Draft of release notes:
Changes to the library

change from ViewComponent slots v1 to v2
switch specs from Capybara to RSpec HTML Matchers
deprecate the #add_slot_name (formerly #slot_name) helpers, this syntax has been adopted by ViewComponent itself
in slots v2, so we no longer need to do it ourselves
make code compliant with GOV.UK Rubocop 4.0.0
various usability tweaks and changes to bring the components more inline with the source Nunjucks macros, outlined below:
added Component to the end of each component's name (Thing to ThingComponent). This helps avoid repetition in some places, i.e., Tabs#tabs

The changes were logged in #158 and links to the relevant PRs are listed. The work as a whole is details in the Version 2.0.0 GitHub project.
Components
DetailsComponent
Keyword arguments:

renamed summary: and description: to summary_text: and text: respectively
text: is optional, a content block can be provided instead

Slots:

added summary_html block to customise the summary only

HeaderComponent
Keyword arguments:

renamed:

logo: -> logotype:
logo_href: -> homepage_url:
service_name_href -> service_url
navigation_classes -> custom_navigation_classes:

added:

crown: (boolean, show or hide the crown - on by default)
custom_container_classes: (array or string, add extra classes to the header container)

Slots:

renamed:

product_description -> product_name (now takes a block if you want extra content)

added:

custom_logo (block, replace the crown)

StartButtonComponent
Component renamed from StartNowButton to StartButtonComponent to better match the GOV.UK component name.
NotificationBannerComponent
Slots:

changed:

heading now takes an optional content block

SummaryListComponent
Keyword arguments:

added:

borders: - toggle borders between items

Slots:

changed:

row - now has more customisation options :visually_hidden_text, :action_classes, :action_attributes, see #167 for more info

WarningTextComponent
Component renamed from Warning to WarningTextComponent to better match the GOV.UK component name.
Helpers

Added no_visited_state, muted, colour, inverse, no_underline modifier arguments to the #govuk_link_to and #govuk_mail_to helpers


[RN] (BUG) #2315 claim success popups are in different sizes

Description
Its a copy of #2366 PR for react-native branch.

@yaroslav-fedyshyn-nordwhale I think that this PR is subscribing all changes

ok. I will create a new PR with related fixes only. I think something went wrong when merging react-native into this PR.

Closing this PR as a new one created with related changes only - https://github.com/GoodDollar/GoodDAPP/pull/2401


not found the cache class

Hello Arnaud, I hope you are well , his OandaApiClient is very well designed , coincidentally I have a problem using it and is as follows: "Fatal error: Class ' Memcache ' not found " would appreciate it if you could help me with that part of your code, Sincerely, a hug.

Hi, I'm very well thank you! you have to install Memcache to run the client.
If you can't install memcache you have to remove the lines 351->356, 358, 375->376 in class.oandaApi.php