[Doc Enhancement] Introduce MarkdownElement #2224

First working draft to implement #2224. Result can be seen on <ListsPage>.
In order to test, cd /docs, run npm install and npm run start. Visit http://localhost:3000/#/components/lists and scroll down to "Headline 1"

I have no idea if this better or not. @shaurya947 What do you thin?

I think this is a slightly better system than what we have today. Obviously, it is easier to write a docs page as a separate markdown file vs. using <p>, <h1> and <Codeblock> elements inside the source code. Moreover, using this approach would be more robust when we think of a multi-lingual docs site: #1673

@oliviertassinari All the stuff in docs/src/app/components/pages/components/lists.jsx was just there to illustrate the usage, I'm going to remove it.
I think I have to write some doc on how to use the <MarkdownElement>, but for now, I don't no where to put it.
Another open point is the css/style used within the Element. It's github-style and not very "material-design". Some adjustments seem to be appropriate. I'll work on this within the next days.

@frankf-cgn I can see people using this component in their applications. So perhaps it makes sense to document it as a new component on its own page? @oliviertassinari what say?

@shaurya947 Strictly taken, this is not a ui-component in "material-design". It's more like <CodeBlock>, <ComponentDoc> or <ComponentInfo>, so I'm not sure if this is a good fit.

@oliviertassinari what do you think about making this a documented component with its own page like other components?
@frankf-cgn looking forward to the style changes!

just spoke to @hai-cea and seems like it's not adherent to the Material Design spec to treat this like a regular MUI component.

I agree, let's keep this component for our doc.

@shaurya947 @oliviertassinari After pulling my hair over the lint-rules i finally managed to get this linted.
I have done the following stuff:

reorganize the paths for the markdown files
removed the package github-markdown
added a mui-github-markdown.css based on github-markdown.css with adjusted fonts settings and heading-styles
reworked parts ot the <ListPage> as a showcase on the usage of <MarkdownElement>

Just out of curiosity I played around with various possibilities on how to format the documentation of props in markdown. May  ask for some feedback of you both on that?

NAVER - http://www.naver.com/
<EMAIL_ADDRESS>님께 보내신 메일 <Re: [material-ui] [Doc Enhancement] Introduce MarkdownElement #2224 (#2226)> 이 다음과 같은 이유로 전송 실패했습니다.

받는 사람이 회원님의 메일을 수신차단 하였습니다.

After pulling my hair over the lint-rules

Sorry, but this made me laught. I have enforced more rules lately. I aim to follow at least eslint:recommended and may be https://github.com/rackt/eslint-config-rackt.

May ask for some feedback of you both on that

I will have a look :+1:

@oliviertassinari The ".js" is correct. but I have had a typo in "hightlight.js", that is now fixed and the style-loader is added, too.

I have this following issue with webpack
ERROR in ./~/highlight.js/lib/languages/autoit.js
Module parse failed: /Users/oliviertassinari/material-ui/docs/node_modules/highlight.js/lib/languages/autoit.js Maximum call stack size exceeded
You may need an appropriate loader to handle this file type.

@oliviertassinari I have no idea, why these npm-modules are installed globally in my environment - have to check this. Sorry for the noise it generates.
Despite I cannot reproduce the error you get with highlight.js/autoit.js I have found several hints how to mitigate this if it occures. I have modified the webpack-config accordingly. Can you check it out if it works for you now?

@frankf-cgn With npm@3 and node@5, it's working :+1:

@frankf-cgn I'm gonna start working on improving the doc. I'm keeping this PR in head to see how we can improve it!

@frankf-cgn I'm gonna add your MarkdownElement this is a great component!
And use it for https://github.com/callemall/material-ui/pull/2382.

@frankf-cgn I'm done, could you have a look at the other PR?
I think that we are on the right track :grimacing:

@oliviertassinari Thats awesome! I'll look into the other PR.


Python 3.x porting issues

I'm running faucet (latest master) under python 3.6.  I encountered two issues related to the Python 3.x port that are easy to fix.
Issue 1 occurs at start up.
Traceback (most recent call last):
  File "/home/mininet/venv36/bin/ryu-manager", line 11, in <module>
    load_entry_point('ryu==4.12', 'console_scripts', 'ryu-manager')()
  File "/home/mininet/venv36/lib/python3.6/site-packages/ryu/cmd/manager.py", line 81, in main
    services.extend(app_mgr.instantiate_apps(**contexts))
  File "/home/mininet/venv36/lib/python3.6/site-packages/ryu/base/app_manager.py", line 509, in instantiate_apps
    self._instantiate(app_name, cls, *args, **kwargs)
  File "/home/mininet/venv36/lib/python3.6/site-packages/ryu/base/app_manager.py", line 495, in _instantiate
    app = cls(*args, **kwargs)
  File "/home/mininet/code/faucet/src/ryu_faucet/org/onfsdn/faucet/faucet.py", line 189, in __init__
    self.config_file, self.logname)
  File "/home/mininet/code/faucet/src/ryu_faucet/org/onfsdn/faucet/config_parser.py", line 35, in dp_parser
    config_hashes, dps = _config_parser_v2(config_file, logname)
  File "/home/mininet/code/faucet/src/ryu_faucet/org/onfsdn/faucet/config_parser.py", line 148, in _config_parser_v2
    top_confs['vlans'])
  File "/home/mininet/code/faucet/src/ryu_faucet/org/onfsdn/faucet/config_parser.py", line 85, in _dp_parser_v2
    dp.sanity_check()
  File "/home/mininet/code/faucet/src/ryu_faucet/org/onfsdn/faucet/dp.py", line 141, in sanity_check
    assert isinstance(self.dp_id, (int, long))
NameError: name 'long' is not defined

Issue 2 occurs with ICMPv6 neighbor discovery resolving.  I configured an IPv6 faucet_vip and then  ping'd it from host fc00::1.  A while later, it will log a traceback to the console when the ND request is sent to check if fc00::1 is still there.
Mar 20 13:52:00 faucet.valve DEBUG    Packet_in DPID 1 (0x1) src:92:06:7e:ac:62:d6 in_port:1 vid:2040
Mar 20 13:52:00 faucet.valve INFO     Responded to ND solicit for fc00::10:10:10:1 to fc00::1 (92:06:7e:ac:62:d6)
Mar 20 13:52:00 faucet.valve INFO     learned 2 hosts on vlan 2040
Mar 20 13:52:00 faucet.valve INFO     Adding new route fc00::1/128 via fc00::1 (92:06:7e:ac:62:d6)
Mar 20 13:52:00 faucet.valve DEBUG    Packet_in DPID 1 (0x1) src:92:06:7e:ac:62:d6 in_port:1 vid:2040
Mar 20 13:52:01 faucet.valve DEBUG    Packet_in DPID 1 (0x1) src:92:06:7e:ac:62:d6 in_port:1 vid:2040
Mar 20 13:52:02 faucet.valve DEBUG    Packet_in DPID 1 (0x1) src:92:06:7e:ac:62:d6 in_port:1 vid:2040
Mar 20 13:52:02 faucet.valve INFO     learned 2 hosts on vlan 2040
Mar 20 13:52:03 faucet.valve DEBUG    Packet_in DPID 1 (0x1) src:92:06:7e:ac:62:d6 in_port:1 vid:2040
Mar 20 13:52:04 faucet.valve DEBUG    Packet_in DPID 1 (0x1) src:92:06:7e:ac:62:d6 in_port:1 vid:2040
Mar 20 13:52:04 faucet.valve INFO     learned 2 hosts on vlan 2040
Mar 20 13:52:05 faucet.valve DEBUG    Packet_in DPID 1 (0x1) src:92:06:7e:ac:62:d6 in_port:1 vid:2040
Mar 20 13:52:06 faucet.valve DEBUG    Packet_in DPID 1 (0x1) src:92:06:7e:ac:62:d6 in_port:1 vid:2040
Mar 20 13:52:06 faucet.valve INFO     learned 2 hosts on vlan 2040
Mar 20 13:53:06 faucet.valve INFO     expiring host f2:5f:74:ae:72:0b from vlan 2040
Mar 20 13:53:06 faucet.valve INFO     1 recently active hosts on vlan 2040
Mar 20 13:55:44 faucet.valve DEBUG    Packet_in DPID 1 (0x1) src:f2:5f:74:ae:72:0b in_port:2 vid:2040
Mar 20 13:55:44 faucet.valve INFO     learned 2 hosts on vlan 2040
Mar 20 13:57:10 faucet.valve INFO     expiring host 92:06:7e:ac:62:d6 from vlan 2040
Mar 20 13:57:10 faucet.valve INFO     1 recently active hosts on vlan 2040
Mar 20 14:00:26 faucet.valve INFO     resolving fc00::1
Mar 20 14:00:29 faucet.valve INFO     resolving fc00::1 retry 2 (last attempt was 3s ago)
Mar 20 14:00:36 faucet.valve INFO     resolving fc00::1 retry 3 (last attempt was 7s ago)

Note: there is no additional logging in the faucet_exception.log or faucet.log, and the process does NOT terminate.
Faucet: Exception occurred during handler processing. Backtrace from offending handler [resolve_gateways] servicing event [EventFaucetResolveGateways] follows.
Traceback (most recent call last):
  File "/home/mininet/venv36/lib/python3.6/site-packages/ryu/base/app_manager.py", line 290, in _event_loop
    handler(ev)
  File "/home/mininet/code/faucet/src/ryu_faucet/org/onfsdn/faucet/faucet.py", line 385, in resolve_gateways
    flowmods = valve.resolve_gateways()
  File "/home/mininet/code/faucet/src/ryu_faucet/org/onfsdn/faucet/valve.py", line 1112, in resolve_gateways
    ofmsgs.extend(self.ipv6_route_manager.resolve_gateways(vlan, now))
  File "/home/mininet/code/faucet/src/ryu_faucet/org/onfsdn/faucet/valve_route.py", line 342, in resolve_gateways
    ip_gw, faucet_vip, vlan, ports))
  File "/home/mininet/code/faucet/src/ryu_faucet/org/onfsdn/faucet/valve_route.py", line 109, in _neighbor_resolver
    vid, faucet_vip, ip_gw)
  File "/home/mininet/code/faucet/src/ryu_faucet/org/onfsdn/faucet/valve_route.py", line 602, in _neighbor_resolver_pkt
    self.faucet_mac, vid, faucet_vip.ip, ip_gw)
  File "/home/mininet/code/faucet/src/ryu_faucet/org/onfsdn/faucet/valve_packet.py", line 182, in nd_request
    nd_mac = ipv6_link_eth_mcast(dst_ip)
  File "/home/mininet/code/faucet/src/ryu_faucet/org/onfsdn/faucet/valve_packet.py", line 151, in ipv6_link_eth_mcast
    mcast_mac = ':'.join(['%02X' % ord(x) for x in mcast_mac_bytes])
  File "/home/mininet/code/faucet/src/ryu_faucet/org/onfsdn/faucet/valve_packet.py", line 151, in <listcomp>
    mcast_mac = ':'.join(['%02X' % ord(x) for x in mcast_mac_bytes])
TypeError: ord() expected string of length 1, but int found

I replaced the offending code with a call to:
def _bytes_to_mac(value):
    if isinstance(value, str):
        return ':'.join(['%02X' % ord(x) for x in value])
    return ':'.join(['%02X' % x for x in value])

I removed ipaddr from requirements.txt; the version of ipaddr on pypi is not python3 compatible (even though the latest github version is).
You've switched over to the ipaddress module.
$ pip install -r requirements.txt
Collecting ipaddr (from -r requirements.txt (line 6))
  Downloading ipaddr-2.1.11.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-lbmh7z6a/ipaddr/setup.py", line 19, in <module>
        import ipaddr
      File "/tmp/pip-build-lbmh7z6a/ipaddr/ipaddr.py", line 1450
        ip_int = 0L
                  ^
    SyntaxError: invalid syntax

https://github.com/REANNZ/faucet/pull/502/commits
Fixes the long type problem, I'll work on the unicode handling next (the problem goes beyond this).

https://github.com/REANNZ/faucet/pull/503/commits
Fixes the byte/unicode problem referenced in this bug.
NOTE: of course, we're still not quite ready to run under python3, but this fixes the problems referenced in this bug.
Thanks for reporting the problems.


add: max option to avoid more chars then the max.

To use maxlength from blocks the backspace and so.

@wbotelhos sorry for taking so long to reply =~
what browser needs this? I've just tested with chrome(last stable) and using maxlength works as expected :)

#157

I found the problem: prefix.
I must to count it on maxlength


Improve documentation

@bio-la knows what's up.
The changelog may or may not still be included in the rendered docs. You might have to test that.

The CI fail is due to the latest version of scvi-tools depending on chex which is broken. This will automatically be fixed in a week or two when scvi-tools release 1.1.0


http response 503 is request to long

Error 503 in Workable is result of timeout on request, this happens when the requested result takes to long to calculate/render, added an error to make it easier to understand

:sunglasses:


Update index.md

Replace OS X with macOS

It has been a while since Apple changed the name, thanks for the help!


Added native namehash implementation in Solidity.

Maybe someone will need it somehow.

Thanks! A couple of points, though:

This needs corresponding unit tests; see the existing tests for examples.
This should be a library with inline function, rather than a contract.

FTR, I've registered namehash.eth during the early start.
If a lib like this ever gets merged, and when we have a "community holding" contract for .eth names, I'm willing to transfer it.

FTR, I've registered namehash.eth during the early start soft launch.

If a lib like this ever gets merged, and when we have a "community holding" contract for .eth names, I'm willing to transfer it.

Thanks for the offer!
I was looking earlier at implementing UTS46 in the EVM; with this and namehash together, we could have a fully standards compliant implementation that any client could use via local calls, eliminating the risk of nonstandard implementations generating the wrong namehash output.
Unfortunately, the UTS46 lookup tables are big - likely bigger than can fit in a single contract. If anyone's interested in investigating ways of encoding them across multiple contracts, I think that would be a productive avenue of research.


Use shorter name for mmcif_pdbx.dic file from DSSP_jll

This uses the new FileProduct name from DSSP_jll v4.4.0+1 for the mmcif_pdbx.dic file.

Should I release a new version asap?

This should not change any functionality, and only makes the code a bit shorter and future-proof in case the path of mmcif_pdbx.dic in the DSSP_jll package changes in the future. So nothing urgent.


TaskManager: improve the UI

Can we collapse non-active projects? In other words, can TaskManager open like this:

I think it's much more readable when only the tasks for the current project are opened.
Also, It would be nice if TaskManager remembered what I've collapsed/opened when I close and reopen it.

Definitely something we need to improve. Nikolaj has mentioned that he has a couple of ideas, so lets see what he comes up with. Fyi: I added the "Start new task" node because I wasn't sure if it's clear enough that you can start new tasks by clicking on the project name.

Let's use this issue to discuss improvements to the taskmanager
From https://github.com/monterey-framework/monterey/issues/264

I feel sometimes that this grid view is too crowded, so highlighting the running task(s) is my best navigation help here.

How about setting show finished tasks false by default (as I am still not sure why would I need to see the more than a proof of a successful execution of the end task command. Once I see that, since i cannot restart them (not to say that can find the need for such activation) I would like to remove them completely.

As the projects are added according to add below last rule, I am not sure that any sorting action done by Monterey would be of value.

If the list of projects is at the order of 10+ - we would need to offer alphabetical and last accessed time as criteria - just as I always to with Files Explorer. To mimic the "real" Task manager we should also consider sorting by running time and eventually by resources usage when we get the access to basic OS API.

1: Workflow editor does not need to be in taskmanager. We can have a tile that leads to a workflow editor screen. Brings down complexity of the right side of the taskmanager
2: Can we add favorite commands to the tiles outside of the taskmanager? Why do we need a second collection of tiles? We could create a Command category (https://github.com/monterey-framework/monterey/issues/297)
3: Often useless info, resulting in crowded feeling
4: I probably don't need to see all these projects. Can we somehow have "active" and "inactive" projects?

I agree completely.
Yes, but maybe have them at the top of the task list only and let the users decide which tasks they want as tiles. Favorite them with a small star icon button (outline/filled showing fav status). I think that's easier to use (one click less).
I agree. Maybe start the task manager with "Show finished" unchecked and inactive projects collapsed.
IMO an "active" project is the currently selected one and "inactive" projects are the others. 😃 We could add a "hide inactive" projects. OR toggle them active/inactive from the project list on main screen.
I think task manager should save project states (collapsed/show finished) when the user closes it.

The above was made in paint by the way

Coming late to the party ...

I like all critical comments Jeroen wrote above.
Do not understand some of Daniel's responses, so cannot state my opinion on these
Definitively like Jeroen's solution to reduce crowding - as this was my proposal few days back, where I mentioned classification into two categories: tools and utilities. I worry about using "unusual" names like launchers because I discovered a few days ago that I had wrong understanding of "who is who". While we are certainly making big steps in improving Monterey's utility for "experienced users", we still need to find the way to reduce the "information overhead" for beginners.

How about introducing the concept of "gears", having first gear as the default which exposes the minimum to get going and leaving it to the user to switch to higher gears as she gains the confidence in driving Monterey?

I worry about using "unusual" names like launchers because I discovered a few days ago that I had wrong understanding of "who is who".

I do not think that using "Launchers" as category name will make it worse, I think it will make it better.  I bet that one of the first things you'll do as a user is to click on all the categories to see what monterey has to offer

Cannot disagree with your view either - particularly since all of these tiles will be "instrumented" with tooltip based help

3: Often useless info, resulting in crowded feeling

"Show finished" unchecked, looks very crowded

4: I probably don't need to see all these projects. Can we somehow have "active" and "inactive" projects?

What about a checkbox on top for "show selected project or just show active" and it shows just the current selected project in the project list

Yes, we could hide finished tasks by default (nr 3 in @Thanood's comment).
And as @vegarringdal said, we can have two radio buttons: show all projects and show selected project, where "show selected project" is checked by default. When "show selected project" is checked, it will only show the project you selected in the project list:

I like this "we can have two radio buttons: show all projects and show selected project" as the proposed default leads to my preference "not to crowd the task manager with items that should appear more globally". When I proposed to create Monterey Task manager, my mental model was the OS Task manager - just a lot simpler, as Monterey is not as complex as a typical OS :-)
The interplay between the project list collection (defined at the top level) and the Task manager's list of items is not optimal, mostly because of the lack of clear definition of the Task manager's items "type". This definition would be easier to set if we know that the Task manager always shows just the running applications like

using the tabbed interface (which is seemingly being added - at least by using Paint 😏 ) to allow some other views of the running apps.
I believe that this is correctly recognized as the key remaining item in the current Monterey version and it is no better time to address this than now, when we are all thinking about it.
As I live in a different physical reality pupulated with people that cannot think as fast as Lieutenant Data (Startrek Second Generation) if I am expected to help with this - I need more time to think

I have moved the workflow editor outside of the taskmanager. I have removed the "Start new task" node, as you can click on the name of the project instead. Finished tasks are now hidden by default, but you may have to disable this setting from the preferences, as it only affects new sessions


🧠 ♻ Refactor predicate execution pre-conditions

This PR introduces significant changes in how pre-conditions are evaluated before the execution of built-in predicates.
Whitelist / Blacklist
In the previous version, predicates were only declared in the interpreter if they complied with the predicate acceptance policy defined by the acceptance/rejection lists. This led to an existence_error, which is confusing because the predicate does exist and is even described in the documentation; it's just that it's prohibited. Therefore, a permission_error is more appropriate, which is what this PR implements.
Before:
error(existence_error(procedure,foo/1),root)

After:
error(permission_error(execute,forbidden_predicate,foo/1),foo/1)

Gas limit
When the gas limit was reached, a generic error was returned by ichiban/prolog virtual machine. It seems more appropriate, when reaching the state where the Prolog virtual machine is able to execute a request, to return a Prolog resource_error type.
Before:
Error:"panic: {block_height/1}"

After:
error(resource_error(gas(block_height/1,12353,3000)),block_height/1)

Of course, if during the initialization of the Prolog virtual machine (which requires accessing parameters and thus consuming gas), the limit is reached, a standard grpc error is returned.
Last words
It should be noted that this approach is somewhat limited because it only addresses built-in predicates. Ideally, it should extend control to all predicates, including those defined by users. Future enhancements to the ichiban/prolog library are necessary to achieve this.

Summary by CodeRabbit

Refactor

Enhanced predicate execution flexibility by introducing a new Invariant concept replacing Hook.
Improved control over predicate registration and execution through granular function refactoring.

New Features

Added new error handling capabilities and resource management functions for improved operation execution and permission checks.

Tests

Updated test scenarios to reflect new logic and parameters for more comprehensive testing.

Chores

Code cleanup including removal of unused imports and introduction of new ones for extended functionality.

:tada: This PR is included in version 7.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Rename project to Mediapipe

Closes #24

Wait it changed all the newlines... lemme fix that

You might need to rebase this or redo this entire PR again @adryzz. This has diverged from the repo for a while now.

Maybe my CharSet marshallings weren't desirable, despite the warnings of my editor.
We'll have to investigate this for the rewrite.

Oops, since we use the package references, we now have to use the runtime arguments for tests. I forgor :skull:

doesn't matter, we know it runs lol

Closing in favor of Project Ayase.


Units (km vs imperial)

Describe the bug
A clear and concise description of what the bug is.
Electric range 42 km
yet
Select distance/unit conversions.
No conversion
Imperial units
Is this working in MySkoda app?*
Logout and login in the MySkoda app, preferably on Android.
Make sure that you have the latest app updates, sometimes there's new consent needed that will only show in latest app version.
Not available in app.
Latest working release
If the problem started after updating to a new release, please state latest working release.
App: 5.61 build<PHONE_NUMBER>
ha-skodaconnect newly installed (today)
Debug logs
If applicable, add debug logs. See README on how to enable debug logs with response debugging.
N/A - just conversion?
Installation:

Home Assistant variant: [e.g. Hass OS, Docker, Core, Supervised] hass
Python version [e.g. 3.7, 3.8]  Python 3.11.5
Python library versions ["python3 -m pip list"]
which ones?
google-auth-oauthlib         1.0.0
html5lib                     1.1
importlib-resources          6.0.0
libclang                     16.0.0
libcomps                     0.1.20
matplotlib                   3.7.3
matplotlib-inline            0.1.6
oauthlib                     3.2.2
requests-oauthlib            1.3.1
sgmllib3k                    1.0.0
urllib3                      1.26.16

Additional context
Add any other context about the problem here.
New to this integration. Good Python experience, 2 years with HA (user, not dev)

Could you provide a bit more detail about what you're trying to do? Maybe with an example.
What is your HA Unit System set to? (Settings -> General)

Units set to metric.
Would like to see the readings as requested?

I'm sorry but it's still not clear to me.
I have Unit System set to metric and I'm seeing sensors, like the range, reported in metric.
Can you please provide the exact output or a screenshot of what you are seeing and what you would expect to see instead?


Update README.md

Hi @haesleinhuepf,
Small PR to add a missing DOI badge to this repository's readme, in case it was not missing intentionally :)

Codecov Report

Merging #16 (2ef7d4f) into main (0a987ff) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #16   +/-   ##
=======================================
  Coverage   83.64%   83.64%
=======================================
  Files           2        2
  Lines         324      324
=======================================
  Hits          271      271
  Misses         53       53

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Awesome, thanks @lazigu !


how to instantly release memeory to system from tcmalloc memory pool

Hi Go team,
AFAIK tcmalloc will temporarily hold some idle memory resources.
Is there any way i can instant release these idle memory to System like calling MallocExtension::instance()->ReleaseFreeMemory() in C++.
Thanks.

Hi,
Go doesn't use tcmalloc, it has a memory allocator written in Go itself.
The runtime will slowly release unused memory pages back to the OS, but I don't think there's a way to force it to do so. Closing here, since I believe I did answer your question (and we don't use the github issue tracker for questions, it's just for bugs in Go and proposals).


explore sass / less as a way to encapsulate css

Explore sass / less as a way to encapsulate css.
Dart does a good job of creating components; the css does tend to leak over though. See if we can find a good workflow with css pre-processors? Or perhaps even include the css pre-processor data in the Dart code? As in, a dart component is a dart class, and the styling information is metadata (annotations) associated with the class.  Sass generally needs a build step but less can be generated more easily at runtime.

closing - we have another sass / less issues


Issue with UPDATE statement for tables with GENERATED columns

I have a Delta table with a timestamp column which is defined as GENERATED ALWAYS AS (now()).
In my understanding, this allows, when inserting new records to the table, to automatically assign the current timestamp to the column.
When I'm trying to use the UPDATE command to update, for a given row, another field (not the aforementioned generated column), I receive an InvariantViolationException error referring to the column.
I find it confusing, as the UPDATE command should only touch the other field.
Am I misinterpreting the documentation? (https://docs.databricks.com/delta/delta-update.html#update-a-table&language-sql)
Minimal code to reproduce the issue:
CREATE or replace TABLE `test_generated_column_update` (
    test_string STRING NOT NULL,
    test_date TIMESTAMP GENERATED ALWAYS AS (now())
    )
    USING DELTA
;

insert into `test_generated_column_update`(test_string) values ('Hello!');

select * from `test_generated_column_update`;

update `test_generated_column_update` set test_string = 'Good bye!' where test_string == 'Hello!';

select * from `test_generated_column_update`;

Error:
Error in SQL statement: InvariantViolationException: CHECK constraint Generated Column (test_date <=> now()) violated by row with values:
Tested on Azure Databricks on a single node cluster using Databricks Runtime 9.1

@stawo Thanks for reporting this. It's a mistake that we don't block now expression to use in a generation expression. We require A generation expression can use any SQL functions in Spark that always return the same result when given the same argument values. See https://docs.delta.io/latest/delta-batch.html#use-generated-columns

@zsxwing , thanks for the clarification.
I also was a little bit suspicious as I read as well that part regarding the supported functions.
Hope you can add the block soon to avoid confusion and I'll remove the generated statement from my column 😄

Hi @zsxwing  When we will get a fix for this ?

@akhilesh2186 we don't plan to fix this. It's an oversight that we put now() to the allowlist. In general, we don't want to allow non deterministic functions like this. The fix would be blocking now() but considering it's a breaking change, it's not worth and we will just leave it as it is.

Closing this old ticket. This has been answered.

Hi @zsxwing , I know this thread is going back some time, but I'm curious what the rationale behind not allowing non-deterministic functions is?  We are currently using now() to accomplish this but certainly don't want to have a lot depending on something that could break at some point (though I recognize you said there's currently no plan to block now())


Standardized aka.ms links for tsc and tsconfig

Fixes #46919

Closing and recreating to get rid of the lib update label.
For the curious, trying to use the mounted drive on WSL 2.0 (/mnt/c/) gives Git update times in the minutes on my brand new i7 Surface Laptop. Switching to the "native" (?) Linux drive gives much more reasonable operations. Hence my seeming inability to manage this PR!


Research perceptual hashing work for resource fingerprinting

I know there is some prior art that CC has looked at before, but also going to look further afield.

Yes Seneca did some work in this area -
https://github.com/CreativeCommons-Seneca
And Maarten from Kennisland has just had a meeting on the subject of standards for hashing, which would make it easier for us to work with different standards -
http://videorooter.eu/2016/05/21/announcement-workshop-on-standardising-hashing/

Thanks! It looks like some of that work points back to https://github.com/commonsmachinery/blockhash-python/, which seems very promising.

https://github.com/JohannesBuchner/imagehash is a candidate, though its dependencies include scikit, which can be tricky to install

https://github.com/JohannesBuchner/imagehash is the clear winner so far, going to expand the number of tests to push its limits a little.

I'm happy with imagehash as the approach going forward, but of course may revisit once we try it on lots of data.


Improve error message when you try to send an amount that you have, but you don't have enough to pay the fee

Related: #1045, lbryio/lbry-app#903

Closing in favor of #1045 , ,added a comment there.


Update rust function dependencies

Dependabot has identified a few issues with the current rust dependencies. These should be updated.
https://github.com/knative-sandbox/kn-plugin-func/security/dependabot?q=is%3Aopen+ecosystem%3ARust
Potential segfault in localtime_r invocations Moderate
opened 27 days ago • Detected in chrono (Rust) • templates/rust/cloudevents/Cargo.lock
Regular expression denial of service in Rust's regex crate High
opened last month • Detected in regex (Rust) • templates/rust/cloudevents/Cargo.lock
Regular expression denial of service in Rust's regex crate High
opened last month • Detected in regex (Rust) • templates/rust/http/Cargo.lock
Race Condition in tokio High
opened last month • Detected in tokio (Rust) • templates/rust/http/Cargo.lock
Race Condition in tokio High
opened last month • Detected in tokio (Rust) • templates/rust/cloudevents/Cargo.lock
HTTP Request Smuggling in actix-http High
opened last month • Detected in actix-http (Rust) • templates/rust/http/Cargo.lock
HTTP Request Smuggling in actix-http High
opened last month • Detected in actix-http (Rust) • templates/rust/cloudevents/Cargo.lock
/assign @jcrossley3

/unassign
I don't have the creds to see the security advisories. Feel free to reassign if you want to grant me that access.

@jcrossley3 @lance I am marking this as a first good issue.. any objections?

@jcrossley3 @lance I am marking this as a first good issue.. any objections?

It's a good first issue if you know Rust 😉 - sure that seems fine.

/assign

/unassign

/assign @vyasgun


Fix ORC nested object test

Incorrect expected test records were built for nested objects so it broke TestFullOrcReader test.
Also removed unused variable sessionTimeZone at Hive SerDeUtils

I'm going to create an another pull request which include these changes.


shell_uart hangs when putting UART into PM_LOW_POWER_STATE / PM_DEVICE_STATE_LOW_POWER

Describe the bug
The shell thread can hang when putting the UART into PM_LOW_POWER_STATE, before it has finished outputting all characters on the physical UART. (At least on an nRF52)
It seems the shell thread is stuck in shell_pend_on_txdone(), polling for the SHELL_SIGNAL_TXDONE signal which is never coming, since the UART driver was put into LOW_POWER_STATE.
To Reproduce
Steps to reproduce the behavior:

Print something to the uart shell (printk works fine)
Put uart0 in low power state
Go to sleep for some time
Put uart0 into active state again

The code I used for this:
int cmd_sleep(const struct shell *shell, size_t argc, char **argv)
{
    shell_print(shell, "About to enter sleep with UART off. k_sleep in %us\n", SLEEP_S);
    device_set_power_state(uart0, DEVICE_PM_LOW_POWER_STATE, NULL, NULL);

    k_sleep(K_SECONDS(SLEEP_S));

    device_set_power_state(uart0, DEVICE_PM_ACTIVE_STATE, NULL, NULL);
    shell_print(shell, "Awake again!\n");
    return 0;
}

I noticed the uart driver is receiving bytes again after wakeup, but those are never parsed by the shell thread, since that one's hanging indefinitely.
Expected behavior
I expect the shell to accept commands again after putting the uart driver in active state again (DEVICE_PM_ACTIVE_STATE).
Impact
Cannot use shell and deep sleep at the same time.
Logs and console output
This is the shell thread backtrace, in case that helps:
#0  arch_swap (key=key@entry=0) at /home/vinz/Work/git/snt_zephyr/zephyr/arch/arm/core/aarch32/swap.c:53
#1  0x0002aeec in z_swap_irqlock (key=0) at /home/vinz/Work/git/snt_zephyr/zephyr/kernel/include/kswap.h:153
#2  z_swap (key=..., lock=0x2000545c <kheap.system_heap>) at /home/vinz/Work/git/snt_zephyr/zephyr/kernel/include/kswap.h:164
#3  z_pend_curr (lock=lock@entry=0x2000545c <kheap.system_heap>, key=..., wait_q=wait_q@entry=0x20009eb8 <shell_uart_stack+1784>, timeout=...) at /home/vinz/Work/git/snt_zephyr/zephyr/kernel/sched.c:766
#4  0x0002b95e in z_impl_k_poll (events=0x200028e8 <shell_uart_ctx+728>, num_events=num_events@entry=1, timeout=...) at /home/vinz/Work/git/snt_zephyr/zephyr/kernel/poll.c:289
#5  0x0002e084 in k_poll (timeout=..., num_events=1, events=<optimized out>) at zephyr/include/generated/syscalls/kernel.h:1012
#6  shell_pend_on_txdone (shell=shell@entry=0x36818 <shell_uart>) at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell_ops.c:361
#7  0x0002e1c6 in z_shell_write (shell=0x36818 <shell_uart>, data=0x20002920 <shell_uart_out_buffer>, length=1) at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell_ops.c:390
#8  0x0002e1d4 in z_shell_print_stream (user_ctx=<optimized out>, data=<optimized out>, len=<optimized out>) at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell_ops.c:398
#9  0x0002dba4 in z_shell_fprintf_buffer_flush (sh_fprintf=sh_fprintf@entry=0x38c70 <shell_uart_fprintf>) at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell_fprintf.c:46
#10 0x00009092 in z_shell_fprintf_fmt (sh_fprintf=0x38c70 <shell_uart_fprintf>, fmt=fmt@entry=0x9093 <z_shell_fprintf_fmt+30> "\347\255\333\002", args=<EMAIL_ADDRESS>at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell_fprintf.c:39
#11 0x0002e044 in z_shell_raw_fprintf (ctx=<optimized out>, fmt=0x3e108 "%s") at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell_ops.h:24
#12 0x0000935a in z_shell_vt100_color_set (shell=shell@entry=0x36818 <shell_uart>, color=color@entry=SHELL_VT100_COLOR_GREEN) at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell_ops.c:431
#13 0x0002e22c in z_shell_vfprintf (shell=shell@entry=0x36818 <shell_uart>, color=<optimized out>, fmt=0x3e108 "%s", fmt@entry=0x0 <i2c_dump_msgs>, args=<EMAIL_ADDRESS>at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell_ops.c:455
#14 0x0002e252 in z_shell_fprintf (shell=shell@entry=0x36818 <shell_uart>, color=color@entry=SHELL_VT100_COLOR_GREEN, fmt=0x3e108 "%s") at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell_ops.c:478
#15 0x000094aa in print_prompt (shell=shell@entry=0x36818 <shell_uart>) at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell_ops.c:339
#16 0x0002e360 in z_shell_print_prompt_and_cmd (shell=shell@entry=0x36818 <shell_uart>) at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell_ops.c:349
#17 0x00008bb8 in state_set (state=SHELL_STATE_ACTIVE, shell=0x36818 <shell_uart>) at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell.c:96
#18 state_collect (shell=shell@entry=0x36818 <shell_uart>) at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell.c:955
#19 0x0002daaa in shell_process (shell=0x36818 <shell_uart>) at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell.c:1391
#20 0x0002d65c in shell_signal_handle (shell=shell@entry=0x36818 <shell_uart>, sig_idx=sig_idx@entry=SHELL_SIGNAL_RXRDY, handler=handler@entry=0x2da5b <shell_process>) at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell.c:1226
#21 0x00008f00 in shell_thread (shell_handle=0x36818 <shell_uart>, arg_log_backend=<optimized out>, arg_log_level=0x4 <i2c_dump_msgs+4>) at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell.c:1280
#22 0x0002c1b8 in z_thread_entry (entry=0x8e99 <shell_thread>, p1=<optimized out>, p2=<optimized out>, p3=<optimized out>) at /home/vinz/Work/git/snt_zephyr/zephyr/lib/os/thread_entry.c:29

Environment:

OS: Linux
Toolchain: Zephyr SDK
Zephyr version: v2.4.99-ncs2

Additional context
I figured that if I can flush the uart somehow, it might work.
I found that uart_poll_out() seems to flush the uart internally (by waiting for the irq lock).
So, this works:
int cmd_sleep(const struct shell *shell, size_t argc, char **argv)
{
    shell_print(shell, "About to enter sleep with UART off. k_sleep in %us\n", SLEEP_S);

    /* >>> Force UART flush <<< */
    uart_poll_out(uart0, '\n');

    device_set_power_state(uart0, DEVICE_PM_LOW_POWER_STATE, NULL, NULL);

    k_sleep(K_SECONDS(SLEEP_S));

    device_set_power_state(uart0, DEVICE_PM_ACTIVE_STATE, NULL, NULL);
    shell_print(shell, "Awake again!\n");
    return 0;
}

But this doesn't fell like a decent solution :)
What if another thread wants to write to the shell just before my calling DEVICE_PM_LOW_POWER_STATE ?

@nordic-krch
Do you think it is a good solution to put UART to sleep mode without deinitializing the shell first?

Can you try to run it on latest version. Just before 2.6 release there were couple of fixes in nrf uarte driver that should handle power downs.

@nordic-krch: oh shoot! It just tried on 2.6.x and that does seem to fix the case where:
    /* first print to shell */
    shell_print(shell, "About to enter sleep with UART off. k_sleep in %us\n", SLEEP_S);
    /* now disable uart, go to sleep, re-enable uart */
    pm_device_state_set(uart0, PM_DEVICE_STATE_LOW_POWER, NULL, NULL);
    k_sleep(K_SECONDS(SLEEP_S));
    pm_device_state_set(uart0, PM_DEVICE_STATE_ACTIVE, NULL, NULL);

It still hangs the shell thread indefinitely if you do this:
    /* first disable uart */
    pm_device_state_set(uart0, PM_DEVICE_STATE_LOW_POWER, NULL, NULL);
    /* try to print to shell */
    shell_print(shell, "About to enter sleep with UART off. k_sleep in %us\n", SLEEP_S);
    /* go to sleep, re-enable uart */
    k_sleep(K_SECONDS(SLEEP_S));
    pm_device_state_set(uart0, PM_DEVICE_STATE_ACTIVE, NULL, NULL);

But that makes me wonder:

Probably it should not be possible to hang the shell thread like this
Trying to print to the shell, after disabling the uart is of course not "smart", but what if this is happening in different threads?
And, as @jakub-uC said: do we need to disable the shell first? And how do I do this? (Couldn't find documentation on this)

@jakub-uC @nordic-krch any more input to the above?

Additionally, I seem to have the same issue with RTT:
#0  shell_pend_on_txdone (shell=shell@entry=0x44e40 <shell_rtt>) at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell_ops.c:369
#1  0x0003c2d2 in z_shell_write (shell=0x44e40 <shell_rtt>, data=0x20004eb4 <shell_rtt_out_buffer>, length=4) at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell_ops.c:401
#2  0x0003c2e0 in z_shell_print_stream (user_ctx=<optimized out>, data=<optimized out>, len=<optimized out>) at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell_ops.c:409
#3  0x0003bbb8 in z_shell_fprintf_buffer_flush (sh_fprintf=sh_fprintf@entry=0x4a394 <shell_rtt_fprintf>) at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell_fprintf.c:46
#4  0x0001312a in z_shell_fprintf_fmt (sh_fprintf=0x4a394 <shell_rtt_fprintf>, fmt=fmt@entry=0x1312b <z_shell_fprintf_fmt+30> "\347\301\273\003", args=<EMAIL_ADDRESS>at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell_fprintf.c:39
#5  0x0003c13c in z_shell_raw_fprintf (ctx=<optimized out>, fmt=0x4a344 "\033[%d%c") at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell_ops.h:24
#6  0x0001321e in z_shell_op_cursor_horiz_move (shell=shell@entry=0x44e40 <shell_rtt>, delta=<optimized out>) at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell_ops.c:22
#7  0x00013376 in z_shell_cmd_line_erase (shell=shell@entry=0x44e40 <shell_rtt>) at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell_ops.c:341
#8  0x0003b5c0 in shell_log_process (shell=0x44e40 <shell_rtt>) at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell.c:1119
#9  0x0003b682 in shell_signal_handle (shell=shell@entry=0x44e40 <shell_rtt>, sig_idx=sig_idx@entry=SHELL_SIGNAL_LOG_MSG, handler=handler@entry=0x3b59f <shell_log_process>) at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell.c:1230
#10 0x00012fa2 in shell_thread (shell_handle=0x44e40 <shell_rtt>, arg_log_backend=<optimized out>, arg_log_level=0x4 <i2c_dump_msgs+4>) at /home/vinz/Work/git/snt_zephyr/zephyr/subsys/shell/shell.c:1292
#11 0x00039eb0 in z_thread_entry (entry=0x12f31 <shell_thread>, p1=<optimized out>, p2=<optimized out>, p3=<optimized out>) at /home/vinz/Work/git/snt_zephyr/zephyr/lib/os/thread_entry.c:29
#12 0xaaaaaaaa in ?? ()

Where the shell thread is now waiting for shell_pend_on_txdone(const struct shell *shell) to complete.


chore(deps): handle relocation of set_sys_clock_khz

set_sys_clock_khz was relocated to <hardware/clocks.h> in 1.6.2+

Thank you!


Remove double quotes in spark/bin batch files to avoid cutting off arguments that double quoted as contain special character.

What changes were proposed in this pull request?
Remove double quotes in 3 cmd files in spark/bin to avoid cutting off argument that has special characters and double quoted.
How was this patch tested?
Just copy and paste following command then execute it in spark/bin
spark-submit.cmd --jars just-to-start "jdbc:mysql://localhost:3306/lzdb?user=guest&password=abc123" my_table
It will not even be started, the argument of mysql connection string was cut off :
bin\spark-submit2.cmd" --jars just-to-start "jdbc:mysql://localhost:3306/lzdb?user' is not recognized as an internal or external command,
operable program or batch file.
'password' is not recognized as an internal or external command,
operable program or batch file.

This's a conservative fix that keeps the rules of using cmd /V /E /C and will work as it's able to work.
It's not a best idea to use /V /E to avoid polluting environment and enable /V /E /C , this will restrain the argument passing.
(1) Cannot start XXX.cmd itself if it's full path has white spaces even if quoted :
cmd /V /E /C "%~dp0XXX.cmd" xxx "%~dp0XXX.cmd" xxx
(2) Cannot pass double quoted arguments to spark-submit.cmd (as mentioned above) under :
cmd /V /E /C
May be it's better to force set the variables that need to avoid pollution, since it's difficult to require the users to keep using "SetLocal EnableDelayedExpansion" alike in the batch files (.cmd/.bat).
By the way, I didn't change the pyspark , R, beeline etc. scripts because they seems work fine for long.
What's more in addition
A tool to fast change/restore the files in spark/bin if you like : https://github.com/qualiu/lzmw

Remove quotes (delete the --nf xxx will modify all matched files):
lzmw -i -t "(^cmd.*?/[VCE])\s+\"+(%~dp0\S+\.cmd)\"+" -o "$1 $2" --nf "pyspark|sparkR|beeline|example" -p . -R
Add/Restore quotes  :
lzmw -it "\"*(%~dp0\S+\.cmd)\"*" -o "\"$1\"" -p . -R
Or remove the head :
lzmw -f "\.cmd$" -it "^cmd /V /E /C " -o "" -p %CD% -R

Can one of the admins verify this patch?

I don't think we can do that, because then paths with spaces don't work for example. don't you just need to escape your argument?

@srowen  : thanks for your reply.
But as I've mentioned above , path with spaces is not work now:
D:\opengit\spark\bin - Copy>spark-submit.cmd --jars just-to-start "jdbc:mysql://localhost:3306/lzdb?user=guest&password=abc123" my_table
'D:\opengit\spark\bin' is not recognized as an internal or external command,
operable program or batch file.
'password' is not recognized as an internal or external command,
operable program or batch file.

And the unchanged batch files has quotes as following

And what's more, current spark-submit.cmd will cause an extra error of "The input line is too long." if you call spark-submit.cmd in an batch file under some case
Pi* d:\tmp "jdbc:mysql://localhost:3306/lzdb?user=guest&password=abc123"
The input line is too long.
'password' is not recognized as an internal or external command,
operable program or batch file.

I see, your example shows, I think, submitting an invalid JAR file right? you've specified your JAR with --jars but then don't specify a main JAR. That may be the root cause.
I see your point that your path has spaces though.
See https://github.com/apache/spark/pull/10789 and CC @tritab
I believe it was supposed to fix that.
Am I right that this is then about spaces in path? I don't yet see a case about special characters or quoting here.

@srowen  : Sorry that there's something misleading in my example about the --jar.
The key points in short are :

The double quotes with spark-submit.cmd doesn't work** if the full path of spark-submit.cmd has spaces.

Proven by the above example "D:\opengit\spark\bin - Copy"

The reason is there's cmd /V /E /C  at the line head: spark-submit.cmd:
cmd /V /E /C "%~dp0spark-submit2.cmd" %*

My example of the invalid jar in --jars just-to-start just to show that:

spark-submit.cmd could not be started if there's one argument double quoted.

Essential problem

cmd /V /E /C "~xxx.cmd"  conflicts with/cannot accept "double quoted argument"

Possible solution for discussion

Keep quotes & Remove cmd /V /E /C  just like current bin/spark-submit2.cmd
"%~dp0spark-class2.cmd" %CLASS% %*

Then everything will work fine.

Except possible pollution to the environment in current cmd window and derived (like by start cmd)

Take my conservative fix

Everything working fine now keep working.
Keep not working : full Path has spaces in XXX/bin/spark-submit.cmd
Will working by this fix : argument has special character and double quoted will not be cut off.

I can't evaluate this since I don't use windows, but maybe others who made the original change can. You should check https://cwiki.apache.org/confluence/display/SPARK/Contributing+to+Spark BTW.

@srowen : Thank you! Glad to hear opinions and maybe need more discussion.

@srowen @tsudukim @tritab @andrewor14 : Hello, I've updated to a more conservative fix, please review it, thanks!
I didn't push my former fix which is now pushed, just because they has same effect in fact currently, but this/former involves more line changes.

Hi @qualiu, I had a quick look.
I believe spark-submit.cmd that contains space in its path worked fine when #10789 is merged, so I wonder if it is the problem of cmd /V /E /C.

@tsudukim : I did the validation mentioned above and snap the picture as following:

Does it work if you escape the internal  jdbc quotes with a caret ^ ?
On Aug 28, 2016 8:33 PM, "Quanmao LIU"<EMAIL_ADDRESS>wrote:

@tsudukim https://github.com/tsudukim : I did the validation mentioned
above and snap the picture as following:
[image: image]
https://cloud.githubusercontent.com/assets/18525294/18038476/4bbbdea8-6dcb-11e6-8dd3-07cae45cdada.png
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/apache/spark/pull/14807#issuecomment-243013895, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AG6QKAduazm0SwMBOwkPt9zpT46RkJLmks5qkjcBgaJpZM4Js70V
.

@tritab  : Thanks for your reply! Yes, I had tried that last week but not forgot to put them on the context.
(1) Has space in spark-submit.cmd full path.
(2) Cut off quoted argument no matter there's space & even if escaped and with double quotes.

This causes issues starting Spark using the SparkLauncher under Windows, only when one sets an additional config parameter using the SparkLauncher.setConf method
c:\somepath\Spark-2.0.2\bin\spark-submit2.cmd" --verbose --master local[1] --conf "spark.executor.extraClassPath' is not recognized as an internal or external command,
=> operable program or batch file.
If I remove the quotes from the spark-submit.cmd from
cmd /V /E /C "%~dp0spark-submit2.cmd" %*
to
cmd /V /E /C "%~dp0spark-submit2.cmd" %*
it works.  Just thought you'd like to know.  I was pulling my hair out for 10 hours locating this

It would probably be a good idea to get some unit tests for these
scenarios. Would anyone be willing to write some tests?
On Feb 24, 2017 10:13 AM, "roryodonnell"<EMAIL_ADDRESS>wrote:

This causes issues starting Spark using the SparkLauncher under Windows,
only when one sets an additional config parameter using the
SparkLauncher.setConf method
c:\somepath\Spark-2.0.2\bin\spark-submit2.cmd" --verbose --master
local[1] --conf "spark.executor.extraClassPath' is not recognized as an
internal or external command,
=> operable program or batch file.
If I remove the quotes from the spark-submit.cmd from
cmd /V /E /C "%~dp0spark-submit2.cmd" %*
to
cmd /V /E /C "%~dp0spark-submit2.cmd" %*
it works. Just thought you'd like to know. I was pulling my hair out for
10 hours locating this
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/apache/spark/pull/14807#issuecomment-282331544, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AG6QKKXLv5nAi2JkRERGYXx9R7h6h2ipks5rfwGwgaJpZM4Js70V
.

We are closing it due to inactivity. please do reopen if you want to push it forward. Thanks!


Sample http4s REST client/server with client macro derivation

Adds sample http4s REST client/server implementations, which we will eventually derive from the same @service-annotated classes as we do for RPC. The roadmap for this is described in #182.
Also implements HTTP client-side derivation using @http annotations, based on #368. Those are tested with unary clients, but support for streaming exists in our http4s samples and can be auto-derived as well. The server-side remains to be done.
Note that this client derivation is implemented inside the serviceImpl class that processes the @service annotation, due to difficulties in separating the macro processing between this class and another one for the http module. It still needs to be moved there.
Warning: do not merge in current state as this does not pass all unit tests, because auto-derived HTTP servers are not yet implemented.

This PR is ready for review. Below a brief summary about how it works:
HTTP Protocol
Given this example protocol below:
import monix.reactive.Observable
@service(Avro) trait Greeter[F[_]] {

  @http def sayHellos(requests: Observable[HelloRequest]): F[HelloResponse]

  @http def sayHelloAll(request: HelloRequest): Observable[HelloResponse]

  @http def sayHellosAll(requests: Observable[HelloRequest]): Observable[HelloResponse]

}

With the annotation @http we would be letting the macro know that an HTTP Server should be built, which must be able to serve responses to call from the paths: sayHellos, sayHelloAll, and sayHellosAll.
Run the HTTP Server
Assuming that implicits ExecutionContext and ContextShift are already in the scope:
implicit val ec                   = monix.execution.Scheduler.Implicits.global
implicit val cs: ContextShift[IO] = IO.contextShift(ec)

We need to provide an implicit instance of the interpreter of the service, that is, the Greeter[F] with the actual implementation of every operation.
implicit val greeterHndlerIO = new GreeterHandler[IO]

Then we need a server builder by:
val server = HttpServer.bind(80, "localhost", Greeter.route[IO])

And finally, we can run the server:
server.resource.use(_ => IO.never).start.unsafeRunSync()

Run the HTTP Client
Firstly, we should set the Uri to reach the server:
val serviceUri: Uri = Uri.unsafeFromString(s"http://localhost:80")

Then, we can instantiate the derived client:
val client = Greeter.httpClient[IO](serviceUri)

And now we can perform rest calls. For instance, by:
val requests = Observable(HelloRequest("hey"), HelloRequest("there"))
val response = BlazeClientBuilder[IO](ec).resource.use(client.sayHellos(requests)(_))

where response is IO[HelloResponse] as expected.

@rafaparadela this looks pretty cool. I didn't take a look at the code yet, but I have some questions/doubts:

Is it possible now or planned for the future the ability to modify the paths? Use the method name seems a bit strict for me.
Do we need a monix Scheduler or an ExecutionContext?
What's the type returned by HttpServer.bind

@fedefernandez answering to your questions:
Path
Initially, the @http def sayHello annotation was designed to accept 2 arguments @http(POST, "sayHello") def sayHello. The first argument was the method, that can be inferred by the type of request, and the second was the prefix to set the final path. I decided to remove those arguments and set the convention to build endpoints following this criteria: root/serviceName/operation. I'm assuming that these http services will be consumed by the http clients built with Mu following the same criteria, so the path, in my opinion, is not that important since are used internally. But of course I can restore the prefix argument. The example I added maybe was not very descriptive because does not show how it works with several services. So let me explain it better:
Protocol
@message final case class HelloRequest(hello: String)
@message final case class HelloResponse(hello: String)

@service(Avro) trait UnaryGreeter[F[_]] {
  @http def getHello(request: Empty.type): F[HelloResponse]
  @http def sayHello(request: HelloRequest): F[HelloResponse]
}

import fs2.Stream
@service(Avro) trait Fs2Greeter[F[_]] {
  @http def sayHellos(requests: Stream[F, HelloRequest]): F[HelloResponse]
  @http def sayHelloAll(request: HelloRequest): Stream[F, HelloResponse]
  @http def sayHellosAll(requests: Stream[F, HelloRequest]): Stream[F, HelloResponse]
}

import monix.reactive.Observable
@service(Avro) trait MonixGreeter[F[_]] {
  @http def sayHellos(requests: Observable[HelloRequest]): F[HelloResponse]
  @http def sayHelloAll(request: HelloRequest): Observable[HelloResponse]
  @http def sayHellosAll(requests: Observable[HelloRequest]): Observable[HelloResponse]
}

Server
implicit val unaryHandlerIO = new UnaryGreeterHandler[IO]
implicit val fs2HandlerIO = new Fs2GreeterHandler[IO]
implicit val monixHandlerIO = new MonixGreeterHandler[IO]

val unaryRoute: RouteMap[IO] = UnaryGreeter.route[IO]
val fs2Route: RouteMap[IO]   = Fs2Greeter.route[IO]
val monixRoute: RouteMap[IO] = MonixGreeter.route[IO]

val server: BlazeServerBuilder[IO] = HttpServer.bind(port, host, unaryRoute, fs2Route, monixRoute)
server.resource.use(_ => IO.never).start.unsafeRunSync()

Client
val unaryClient = UnaryGreeter.httpClient[IO](serviceUri)
val fs2Client   = Fs2Greeter.httpClient[IO](serviceUri)
val monixClient = MonixGreeter.httpClient[IO](serviceUri)

BlazeClientBuilder[IO](ec).resource.use(unaryClient.getHello(_))
//IO[HelloResponse("hey")]

BlazeClientBuilder[IO](ec).resource.use(fs2Client.sayHellos(Stream(HelloRequest("hey"), HelloRequest("there")))(_))
//IO[HelloResponse("hey, there")]

BlazeClientBuilder[IO](ec).resource.use(monixClient.sayHellos(Observable(HelloRequest("hey"), HelloRequest("there")))(_))
//IO[HelloResponse("hey, there")]

So, we are binding 3 services in one single http server, but the clients need to instantiate only those http clients that are going to consume. unaryClient, fs2Client and monixClient bring implicitly their own paths to reach the services.
Scheduler vs. ExecutionContext
Being technically strict, the Scheduler is only needed if any of the operations receives or returns a Monix.Observable. If no streaming (or fs2.Stream) is expected, the derived server can work with a regular execution context.
HttpServer.bind
This is the implementation:
def bind[F[_]: ConcurrentEffect](port: Int, host: String, routes: RouteMap[F]*): BlazeServerBuilder[F] =
    BlazeServerBuilder[F].bindHttp(port, host)
      .withHttpApp(Router(routes.map(r => (s"/${r.prefix}", r.route)): _*).orNotFound)

It's a ha-doc constructor for BlazeServerBuilder[F] which expects to receive the routes and the prefixes as RouteMaps:
case class RouteMap[F[_]](prefix: String, route: HttpRoutes[F])

which is what you have when invoke the derived routes:
val unaryRoute: RouteMap[IO] = UnaryGreeter.route[IO]
val fs2Route: RouteMap[IO]   = Fs2Greeter.route[IO]
val monixRoute: RouteMap[IO] = MonixGreeter.route[IO]

Addressed all the comments by @juanpedromoreno and @pepegar

@fedefernandez Please, have a look at implicits.scala again and let me know if now makes more sense to you. Thanks

As discussed offline, I approve PR (can't set it to that status as I'm the owner), and I'll make a separate PR to adjust the naming of the exceptions.
(@rafaparadela  please let me know if you don't have merge permissions and then I'll do it)


User-Agent bug problem!

Hello,
when i set in my script:
class Handler(BaseHandler):
    headers_detail = {
                'user-agent':'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)',
                }

    crawl_config = {
                    'headers':headers_detail
}

i found a problem, the crawl request header will be like this:
'headers': {u'user-agent': u'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', u'User-Agent': u'pyspider/0.3.6 (+http://pyspider.org/)'},

Two user-agent ??
That's a big problem, now i figure out why i always been banned !!
i don't know if there is also other problems, like cookie and Cookie ?
Please fix this , thank you !!

headers parameter have transformed to tornado.httputil.HTTPHeaders  object here: https://github.com/binux/pyspider/blob/74ab32f92eaebc44afb93caeb206603607e99a30/pyspider/fetcher/tornado_fetcher.py#L247
tornado.httputil.HTTPHeaders is a case-insensitive or Http-Header-Case object, which will de-duplicate them into one.
I both tested with normal fetcher and phantomjs fetcher, it willn't have two user-agent in request's header.
binux@MacBook-Pro ~/Documents/personal/pyspider$ netcat -l -p 8080
GET / HTTP/1.1
Host: localhost:8080
Accept: */*
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)

binux@MacBook-Pro ~/Documents/personal/pyspider$ netcat -l -p 8080
GET / HTTP/1.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
user-agent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
Connection: Keep-Alive
Accept-Encoding: gzip, deflate
Accept-Language: en-US,*
Host: localhost:8080

Yes ,you are right, i don't know tornado very much, but when i print headers after this:
fetch['headers'] = tornado.httputil.HTTPHeaders(fetch['headers'])
for i in fetch['headers'].get_all():
print i
i find just only one user-agent:
(u'User-Agent', u'pyspider/0.3.6 (+http://pyspider.org/)')
which means my user-agent is gone! would you check this please ?
btw, it's normal fetcher.
Thank you.

It's default setting, your headers hadn't set yet....
On Mon, 16 Nov 2015 01:03 bruceler<EMAIL_ADDRESS>wrote:

Yes ,you are right, i don't know tornado very much, but when i print
headers after this:
fetch['headers'] = tornado.httputil.HTTPHeaders(fetch['headers'])
for i in fetch['headers'].get_all():
print i
i find just only one user-agent:
(u'User-Agent', u'pyspider/0.3.6 (+http://pyspider.org/)')
which means my user-agent is gone! would you check this please ?
btw, it's normal fetcher.
Thank you.
—
Reply to this email directly or view it on GitHub
https://github.com/binux/pyspider/issues/332#issuecomment-156883065.

Simply speaking,  default setting could overwrite my settings, i have found a simple way to deal this.
If you don't believe , Never Mind.
Thank you very much!

Could you prove that, default setting overwrite your headers.
On Mon, 16 Nov 2015 08:45 bruceler<EMAIL_ADDRESS>wrote:

Simply speaking, default setting could overwrite my settings, i have found
a simple way to deal this.
If you don't believe , Never Mind.
Thank you very much!
—
Reply to this email directly or view it on GitHub
https://github.com/binux/pyspider/issues/332#issuecomment-156957132.

Ok, i take some times to do test, here is result:
Test :
my code:

from pyspider.libs.base_handler import *
class Handler(BaseHandler):
    headers_detail = {
                'cookie':'__cfduid=d668d544919f4389ba31ec0081696d2b91446808142; _ga=GA1.2.1683898822.1446808143; _gat=1',
                'user-agent':'my test user agent, in Lowercase letters',
                }
    crawl_config = {
                'headers':headers_detail,
                    }
    @every(minutes=24 * 60)
    def on_start(self):
        self.crawl('https://news.baidu.com/', callback=self.index_page)

    @config(age=10 * 24 * 60 * 60)
    def index_page(self, response):
        for each in response.doc('a[href^="http"]').items():
            self.crawl(each.attr.href, callback=self.detail_page)

    @config(priority=2)
    def detail_page(self, response):
        return {
            "url": response.url,
            "title": response.doc('title').text(),
        }

and i made some print around  tornado.httputil.HTTPHeaders object here:
https://github.com/binux/pyspider/blob/74ab32f92eaebc44afb93caeb206603607e99a30/pyspider/fetcher/tornado_fetcher.py#L247
just like this:

Here is result:

you could see it clearly, default settings overwrite my settings.
Notice this: i use 'user-agent', not 'User-Agent', i use lowercase because i copy it from Chrome, sometimes 'User-Agent', sometimes  'user-agent', it's very wierd.
Maybe this is just a very little issue.
Thank you , hope you can fix this.

Ok, thank you, it's indeed an error. And it should be fixed in master version now.

Another little bug:
Normal request
you can't set twice cookies:
such like this:

class Handler(BaseHandler):
    headers_detail = {
                'Cookie':'__cfduid=d668d544919f4389ba31ec0081696d2b91446808142; _ga=GA1.2.1683898822.1446808143; _gat=1',
                'user-agent':'my test user agent, in Lowercase letters',
                    }
    cookie_detail = {
           'cookie':'__cfduid=d668d544919f4389ba31ec0081696d2b91446808142; _ga=GA1.2.1683898822.1446808143; _gat=1',
                     },

    crawl_config = {
                'headers':headers_detail,
                'cookies':cookie_detail
                }

when finally request,
print 'finnally::',request.headers['Cookie']
the result will like this:

finnally:: cookie=__cfduid=d668d544919f4389ba31ec0081696d2b91446808142; _ga=GA1.2.1683898822.1446808143; _gat=1; _ga=GA1.2.1683898822.1446808143; _gat=1; __cfduid=d668d544919f4389ba31ec0081696d2b91446808142

so, have double cookies now ?
when i use

self.crawl('http://news.baidu.com/',cookies={
           'cookie':'__cfduid=d668d544919f4389ba31ec0081696d2b91446808142; _ga=GA1.2.1683898822.1446808143; _gat=1',
                     } , callback=self.index_page)

i get the same result .
You can not set both 'Cookie' in headers and crawl at the same time.

The value of cookies parameter is a dict of "cookie" itself, for example:
{
"__cfduid": "d668d544919f4389ba31ec0081696d2b91446808142",
"_ga": "GA1.2.1683898822.1446808143",
"_gat": "1"
}

if you set cookies parameter with a dict with "cookie" as key, means you want a cookie=value in 'Cookie' header, which is correct behavior.

oh, i don't understand this well. thank u.


Add option to hide roll overrides, ongoing, forward, advantage, and disadvantage

In GitLab by @Asacolips on Apr 11, 2021, 15:05
Summary
For modules that are setting these values programmatically, include a way to hide roll override, forward, and ongoing fields from character sheets. Additionally, not every game will need these, so GMs need a way to disable them.
Labels (do-not-change)
/cc @Asacolips

In GitLab by @Asacolips on Dec 26, 2021, 13:22
Toggling these could certainly be settings in the sheet configuration. Advantage/disadvantage are used in the Homebrew World hack of Dungeon World, and seemed reasonably useful as a thing to include here.

In GitLab by @Asacolips on Jul 16, 2022, 14:15
Resolved in the upcoming 0.5.0 release. There will now be individual settings for roll formula, forward, ongoing, and roll mode.

In GitLab by @brunocalado on Dec 25, 2021, 19:39
ongoing and foward are very useful. But, the other ones aren't. I still didn't played a pbta where advantage, and disadvantage is a thing. I read a comment about it where it points and a very bad practice because it breaks the game probability.


Add support for safe 1.4.1

What is needed?
Add  support for safe  1.4.1
Taks

[x]  #619
[x] #620
[x] #630

Support for contracts v1.4.1 has been completed


Check for templates being loaded

Check for the presence of templates object, as it can be undefined in some cases.

PR: #5402


More validation tests

Still not hard enough, but well, we do what we can.
Also, more tests.

I don't understand this last test failure. The same test works just fine on my machine, also using the latest nightly.

Ah, it's the fullmir run that fails. Got it.

@eddyb can we merge this or do you want me to change type_and_region_vars back to type_vars?

Do whatever you want but know that this PR does nothing other than add two tests.

Build is currently broken by https://github.com/rust-lang/rust/issues/43973. I am working on a PR to fix that.

#305 I keep getting spurious errors like
error: compilation failed!

status: exit code: 101

command: target/release/miri tests/run-pass/bad_substs.rs -L /tmp --target=x86_64-unknown-linux-gnu -Z dump-mir=all -Z mir-opt-level=3 -Z dump-mir-dir=/tmp/bad_substs -L /tmp/bad_substs.stage-id.mir-opt.libaux -C prefer-dynamic -o /tmp/bad_substs.stage-id -Zmir-opt-level=0 -Zmir-emit-validate=1

stdout:

------------------------------------------

------------------------------------------

stderr:

------------------------------------------

error: linking with `cc` failed: exit code: 1

  |

  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/travis/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/tmp/bad_substs.0.o" "-o" "/tmp/bad_substs.stage-id" "/tmp/bad_substs.crate.allocator.o" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "-L" "/tmp" "-L" "/tmp/bad_substs.stage-id.mir-opt.libaux" "-L" "/home/travis/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/home/travis/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "std-bd7febf8d59547f4" "-Wl,-Bstatic" "/home/travis/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-b8ac48e67742a8a2.rlib" "-Wl,-Bdynamic" "-l" "dl" "-l" "rt" "-l" "pthread" "-l" "pthread" "-l" "gcc_s" "-l" "c" "-l" "m" "-l" "rt" "-l" "pthread" "-l" "util"

  = note: cc: error: /tmp/bad_substs.0.o: No such file or directory

          cc: error: /tmp/bad_substs.crate.allocator.o: No such file or directory


Commonize algorithm

Codecov Report

Merging #626 (ffcaaa7) into main (5653741) will decrease coverage by 0.01%.
The diff coverage is 76.19%.

@@            Coverage Diff             @@
##             main     #626      +/-   ##
==========================================
- Coverage   71.01%   70.99%   -0.02%
==========================================
  Files         113      114       +1
  Lines        5524     5524
  Branches     1091     1091
==========================================
- Hits         3923     3922       -1
  Misses        851      851
- Partials      750      751       +1

Impacted Files
Coverage Δ

...vanyo/composelife/algorithm/GameOfLifeAlgorithm.kt
88.88% <ø> (ø)

...exvanyo/composelife/algorithm/HashLifeAlgorithm.kt
95.61% <ø> (ø)

.../composelife/algorithm/NaiveGameOfLifeAlgorithm.kt
95.65% <ø> (ø)

...otlin/com/alexvanyo/composelife/model/CellState.kt
71.05% <ø> (ø)

...com/alexvanyo/composelife/model/GameOfLifeState.kt
100.00% <ø> (ø)

...m/alexvanyo/composelife/model/HashLifeCellState.kt
95.83% <ø> (ø)

...otlin/com/alexvanyo/composelife/model/MacroCell.kt
82.22% <ø> (ø)

...vanyo/composelife/model/TemporalGameOfLifeState.kt
88.74% <ø> (ø)

...com/alexvanyo/composelife/util/BoundsExtensions.kt
92.98% <ø> (ø)

...nyo/composelife/dispatchers/ClockTestExtensions.kt
100.00% <ø> (ø)

... and 4 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


how do u run these

yeah

Depends if you're asking about the executor or rewriter and if you're asking about python or lua


linux improvements

update version number
add integrations.json to the deploy
don't prefix the tarball with /opt/datadog
confirm that the .so works with alpine linux (which uses musl libc). Users will have to install libc6-compat but once that's done it works

windows-integration-tests actually finished and passed. there seems to be an issue with Azure DevOps reporting build status. mine are also pending in #178.


Sveltekit integration doesn't work

What version of Elysia is running?
1.1.5
What platform is your computer?
Linux 6.9.12-200.fc40.x86_64 x86_64 unknown (I'm running Fedora 40)
What steps can reproduce the bug?
Hi! I've followed this page and I have a realy weird behavior. Every time I try to make navigate to route, it downloads content of page as a file. When I try to navigate to page with a swagger plugin, app just crashes with this error:
6628 |           if (plugin2 instanceof _Elysia) return this._use(plugin2);
6629 |           if (typeof plugin2.default === "function")
6630 |             return plugin2.default(this);
6631 |           if (plugin2.default instanceof _Elysia)
6632 |             return this._use(plugin2.default);
6633 |           throw new Error(
                       ^
error: Invalid plugin type. Expected Elysia instance, function, or module with "default" as Elysia instance or function that returns Elysia instance.
      at /home/winet/Documents/JS Projects/enxperts/node_modules/elysia/dist/index.mjs:6633:17

Here the code that I'm using:
// /src/routes/api/[...slugs]/+server.ts
import type { RequestHandler } from '@sveltejs/kit';
import { app } from "$api";

export const GET: RequestHandler = ({ request }) => app.handle(request);
export const PUT: RequestHandler = ({ request }) => app.handle(request);
export const DELETE: RequestHandler = ({ request }) => app.handle(request);
export const POST: RequestHandler = ({  request }) => app.handle(request);
export const PATCH: RequestHandler = ({  request }) => app.handle(request);
export const fallback: RequestHandler = ({  request }) => app.handle(request);

// /src/lib/server/api/index.ts ($api)
import { swagger } from "@elysiajs/swagger";
import { Elysia } from "elysia";

export const app = new Elysia({prefix: '/api'})
    .use(swagger())
    .get('/', () => 'hi')
    .get('/hello', () => 'world')

What is the expected behavior?
Just work™
What do you see instead?

Additional information
I'm starting app with this command bun --bun run dev
Have you try removing the node_modules and bun.lockb and try again yet?
yes

@wineTGH  the error comes from swagger and the execution of the bun script within Elysia. Bun seems to behave differently here. There is a promise response from which is not executed with sveltekit.
So if you change .use(swagger()) to .use(await swagger()), it will work.

@tguelcan Oh god, that actually worked, thank you! It solved all of the problems. If only you'd come into my life sooner :) I had to use +server files because of the deadline.


Procswap Not Opening Miner.

Describe the bug
Procswap is not opening the Phoenixminer bat file. It says start ok but doesn't actually open it. My command looks like this:
procswap.exe --priority E:\Steam\steamapps\common --swap C:\Users\Peeps\Downloads\Tools\PhoenixMiner\start_miner.bat
Screenshots

It's true that it's not opening the PhoenixMiner in another command prompt where you can see the output. However you should see PhoenixMiner.exe running in your Task Manager in Windows under the "Windows Command Processor".

This is because your batch file is being executing inside the running terminal. We need a better way to access the output of your miners.
I'm thinking of solving this one of two ways... either procswap will open up other terminals, or you can press a key while procswap is running to switch to the output of the commands running. I'm thinking the second will be easier for now.
PhoenixMiner additionally should be storing logs of what's happening next to procswap.exe.

It's true that it's not opening the PhoenixMiner in another command prompt where you can see the output. However you should see PhoenixMiner.exe running in your Task Manager in Windows under the "Windows Command Processor".

This is because your batch file is being executing inside the running terminal. We need a better way to access the output of your miners.
I'm thinking of solving this one of two ways... either procswap will open up other terminals, or you can press a key while procswap is running to switch to the output of the commands running. I'm thinking the second will be easier for now.
PhoenixMiner additionally should be storing logs of what's happening next to procswap.exe.

This is how it looks when I start Procswap.

This is what it looks like If I start Procswap, then manually open Phoenixminer, and then open a game.

This is how it looks when I start Procswap.

This is what it looks like If I start Procswap, then manually open Phoenixminer, and then open a game.

Huh, could you post the contents of your start_miner.bat file please?

Huh, could you post the contents of your start_miner.bat file please?

REM
REM Example bat file for starting PhoenixMiner.exe to mine ETH
REM
setx GPU_FORCE_64BIT_PTR 0
setx GPU_MAX_HEAP_SIZE 100
setx GPU_USE_SYNC_OBJECTS 1
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_SINGLE_ALLOC_PERCENT 100
REM IMPORTANT: Replace the ETH address with your own ETH wallet address in the -wal option (Rig001 is the name of the rig)
PhoenixMiner.exe -pool ssl://eth-us-east.flexpool.io:5555 -pool2 ssl://eth-us-west.flexpool.io:5555 -wal 0x37d5F7d290dd5509CF5e2C5257689Ddd5c53f78D.Rig001 -logdir C:\Users\Peeps\Downloads\Tools\PhoenixMiner\logs -logsmaxsize 50
pause

REM
REM Example bat file for starting PhoenixMiner.exe to mine ETH
REM
setx GPU_FORCE_64BIT_PTR 0
setx GPU_MAX_HEAP_SIZE 100
setx GPU_USE_SYNC_OBJECTS 1
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_SINGLE_ALLOC_PERCENT 100
REM IMPORTANT: Replace the ETH address with your own ETH wallet address in the -wal option (Rig001 is the name of the rig)
PhoenixMiner.exe -pool ssl://eth-us-east.flexpool.io:5555 -pool2 ssl://eth-us-west.flexpool.io:5555 -wal 0x37d5F7d290dd5509CF5e2C5257689Ddd5c53f78D.Rig001 -logdir C:\Users\Peeps\Downloads\Tools\PhoenixMiner\logs -logsmaxsize 50
pause

Give a full path to your PhoenixMiner.exe. The error killing process is because the process never started your PM (just as your originally stated, sorry!). When you run a .bat file like this from procswap it doesn't know the full path to PM which is why PM isn't starting. Let's see if this fixes it.
Try setting this as your start_miner.bat file. Please check that the path I guessed from your logs to PM exists.
REM
REM Example bat file for starting PhoenixMiner.exe to mine ETH
REM

setx GPU_FORCE_64BIT_PTR 0
setx GPU_MAX_HEAP_SIZE 100
setx GPU_USE_SYNC_OBJECTS 1
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_SINGLE_ALLOC_PERCENT 100

REM IMPORTANT: Replace the ETH address with your own ETH wallet address in the -wal option (Rig001 is the name of the rig)
C:\Users\Peeps\Downloads\Tools\PhoenixMiner\PhoenixMiner.exe -pool ssl://eth-us-east.flexpool.io:5555 -pool2 ssl://eth-us-west.flexpool.io:5555 -wal 0x37d5F7d290dd5509CF5e2C5257689Ddd5c53f78D.Rig001 -logdir C:\Users\Peeps\Downloads\Tools\PhoenixMiner\logs -logsmaxsize 50
pause

Give a full path to your PhoenixMiner.exe. The error killing process is because the process never started your PM (just as your originally stated, sorry!). When you run a .bat file like this from procswap it doesn't know the full path to PM which is why PM isn't starting. Let's see if this fixes it.
Try setting this as your start_miner.bat file. Please check that the path I guessed from your logs to PM exists.
REM
REM Example bat file for starting PhoenixMiner.exe to mine ETH
REM

setx GPU_FORCE_64BIT_PTR 0
setx GPU_MAX_HEAP_SIZE 100
setx GPU_USE_SYNC_OBJECTS 1
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_SINGLE_ALLOC_PERCENT 100

REM IMPORTANT: Replace the ETH address with your own ETH wallet address in the -wal option (Rig001 is the name of the rig)
C:\Users\Peeps\Downloads\Tools\PhoenixMiner\PhoenixMiner.exe -pool ssl://eth-us-east.flexpool.io:5555 -pool2 ssl://eth-us-west.flexpool.io:5555 -wal 0x37d5F7d290dd5509CF5e2C5257689Ddd5c53f78D.Rig001 -logdir C:\Users\Peeps\Downloads\Tools\PhoenixMiner\logs -logsmaxsize 50
pause

Okay, that fixed it. I would still like to be able to see the mining window still. Just in case there are errors or just to see it.

Okay, that fixed it. I would still like to be able to see the mining window still. Just in case there are errors or just to see it.

Nice. I created the feature request to see the output of these batch scripts here: https://github.com/billiford/procswap/issues/6

Nice. I created the feature request to see the output of these batch scripts here: https://github.com/billiford/procswap/issues/6


[Page] [FE] RA Summary

Create an RA Summary Page and add in a short description. Remove to-do and notes column. Extend the weeks 1-10.

Just create a route for it for now in App.js, don't need to add anything to the sidebar.

Use hardcoded or test data for now.

Check out Chakra UI Tables https://v2.chakra-ui.com/docs/components/table
Figma Link: https://www.figma.com/team_invite/redeem/m7USct7pyXUSdm1R6BbS9B

Should be done now, up for review.


Changing payment method in mollie - change not shown in order history in admin

The title says it all. If the user changes the payment method in Mollie, e.g. due to previous failed payment or using the corresponding option, the order's payment method of Shopware is not adjusted accordingly.

Hi @AndreasA, please note my comment in your previous issue. You can choose the "failed payment redirect" in the plugin configuration to avoid this.

@milan-kiener This is not only rearding failed payments. I can also change the payment directly on the mollie checkout page. Or can this be disabled?

@milan-kiener
Ah.. I just saw that doing so basically triggers failed payment handling. So it works fine. Thanks. I am now using the corresponding failed payment event listener to redirect accordingly which required a bit of a hacky workaround as the response cannot be adjusted there directly yet.


Revert "Add Single step invite and process partner process capability"

Reverts rubyforgood/human-essentials#4075

Not needed.


fix replace-mode backspace behavior to something acceptable

Due to atom/text-buffer#81 and 30e4073c52f68221dccd3599dd60728f300b3534, backspace in replace mode hasn't been working well.
For example, ctrl-r x to paste the x register would have backspace first undo the insert, then the delete, which looks wrong. Another example: when replacing after the end of the line, the grouping of multiple typed characters for undo confused our replace-mode backspace to no end.

Still thinking about this one. I think your solution with the transaction grouping interval is good, but I'd like to avoid adding more direct interrogation of the text-buffer's undoStack, because that code is private, so its implementation is subject to change. Maybe what this is telling us is that we need a new public method on TextBuffer, like ::hasChangesSinceCheckpoint(checkpoint). What do you think about that?

Yes, I was thinking that hasChangesSinceCheckpoint(checkpoint) could be on TextBuffer, but I haven't dared propose PRs on core just yet.
getChangesSinceCheckpoint(checkpoint) would be even more useful – then we might proceed (maybe with Patch) to extract the last added character and undo only that somehow. Plus it might be useful further on, for handling undo and redo of insert operations.
Would you be willing to merge this one until TextBuffer can provide anything like the above? The current behaviour of backspace in replace mode, without this PR, is too buggy.

As stated in the README, this package is no longer maintained and is deprecated. We recommend that people use the vim-mode-plus package instead. Because of this, we are archiving this repository and closing all issues and pull requests. Thanks very much for your support and contributions!


Why does the left nav list node and .net but the SDK reference only has JS, and where is the actual API?

The Teams client is more windows convention friendly than slack, but both are still UI kludgy.  Is there a way to correct the layout and some behaviors of the Teams client? If not, where are the services API docs?

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

ID: f57a31a0-e815-faa4-653d-795ae8a8e4d7
Version Independent ID: 8f48ea3d-231b-2776-41b7-11890ea2d3c0
Content: Developer platform - Teams
Content Source: msteams-platform/overview.md
Product: msteams
GitHub Login: @o365devx
Microsoft Alias: o365devx

Could you please share more details on what layout or behaviour you are looking to modify?
Here are the SDK references:
Microsoft Teams JavaScript client SDK
Get started with Node.js
Get started with C#/.NET

hi @Wajeed-msft, which of those have the api information for retrieving channel lists and a channel's conversations, or sending messages, etc.?
which of those would let me alter the ui to do things like make the left column auto hide, or integrate the /commands with the text entry box, or generally make the ui easier to read with less visual noise?

@StingyJack - Please have a look at Microsoft Teams Graph APIs documentation which shows different services exposed for Microsoft Teams.

Thanks for the API link, I wouldn't have thought to look all the way over there for it. Is there anything for the UI customization specifically? Or a GH issues repo/feedback collector for the teams client?

@StingyJack - Graph API are referenced in Resources section here: https://docs.microsoft.com/en-us/microsoftteams/platform/resources/microsoft-graph
Here are the feedback channels: https://docs.microsoft.com/en-us/microsoftteams/platform/feedback


codescan/meta.go: cannot use promoted field ContactInfoProps.URL in struct literal of type

Problem statement
I am trying to build 'go-swagger' using below steps:-
    version=0.21.0
    cd /tmp
    export GOPATH=/tmp/go
    export PATH=$GOPATH/bin:$PATH
    rm -rf $GOPATH
    mkdir -p $GOPATH/src/github.com/go-swagger
    go get github.com/golang/dep
    go get github.com/golang/dep/cmd/dep
    cd $GOPATH/src/github.com/go-swagger
    git clone https://github.com/go-swagger/go-swagger.git
    cd go-swagger
    git checkout tags/v${version}
    dep init
    dep ensure
    go install ./cmd/swagger
    cp $GOPATH/bin/swagger /usr/local/bin/
    cd ${compileshdir}
    unset GOPATH
    rm -rf /tmp/go

These steps used to work perfectly until a few days back. However, now I am facing the below errors:-
+ dep ensure
+ go install ./cmd/swagger
# github.com/go-swagger/go-swagger/codescan
codescan/meta.go:204:3: cannot use promoted field ContactInfoProps.URL in struct literal of type spec.ContactInfo
codescan/meta.go:205:3: cannot use promoted field ContactInfoProps.Name in struct literal of type spec.ContactInfo
codescan/meta.go:206:3: cannot use promoted field ContactInfoProps.Email in struct literal of type spec.ContactInfo
codescan/meta.go:218:3: cannot use promoted field LicenseProps.Name in struct literal of type spec.License
codescan/meta.go:219:3: cannot use promoted field LicenseProps.URL in struct literal of type spec.License
+ cp /tmp/go/bin/swagger /usr/local/bin/
cp: cannot stat '/tmp/go/bin/swagger': No such file or directory

This is totally blocking my work as of now :(
Is there any known solution/workaround for this?
Thanks in advance.
Please remove the sections that don't apply
Swagger specification
v0.21.0
Steps to reproduce
As above.
Environment
swagger version: v0.21.0
go version: golang           ppc64le 1.12.8-2
OS:   RHEL 7

oic but you can use the following with go1.11 and above (for go 1.11 you need to do GO111MODULE=on)
go get -u https://github.com/go-swagger/go-swagger/cmd/swagger

We switched to go modules about 8 months ago so regular go get should work, otherwise you can do
git clone https://github.com/go-swagger/go-swagger /tmp/go-swagger
cd /tmp/go-swagger
go install ./cmd/swagger

go get -u https://github.com/go-swagger/go-swagger/cmd/swagger
Thanks @casualjim go get worked. Is this related to https://github.com/go-swagger/go-swagger/issues/2210 ?


CLI unit-testing and improved help messages

Closes: #XXX
Description
This PR adds unit-testing parsing Hermes commands, as well as improving the commands help output.
The help output follows the request from issue https://github.com/informalsystems/ibc-rs/issues/2349

PR author checklist:

[ ] Added changelog entry, using unclog.
[x] Added tests: integration (for Hermes) or unit/mock tests (for modules).
[ ] Linked to GitHub issue.
[ ] Updated code comments and documentation (e.g., docs/).

Reviewer checklist:

[ ] Reviewed Files changed in the GitHub PR explorer.
[ ] Manually tested (in case integration/unit/mock tests are absent).

Create a new channel between two chains using a pre-existing connection is wrong, that is not the only option. Seems that a blank line (create.rs) in the description drops everything after when displayed with -h
the USAGE is wrong. not sure how much control we have with abscissa and clap but --a-chain appears both in USAGE and in OPTIONS. The required flags should not be [OPTIONS]

Not sure about this in fact as we wouldn't have a way to describe the required flags. Maybe have a [REQUIRED] section

the list of options in alphabetical order makes reading them hard, e.g. -h, --help appears in the middle of the option list. Is there a way to control the order in which they are listed?
completion seems to work for the first few options and then it stops working.

@ancazamfir regarding the issues you found, I was able to fix the following:

Changing the short message for the short help, -h, of create channel and improved the long help, --help.
Changed the USAGE for create channel, create connection, keys add and keys delete to include the two different usages.
Added a FLAGS header for required flags, in addition to the OPTIONS header for optional flags, for all the commands.

What do you think about these fixes for the first three issues ?
Regarding the ordering, it is possible to arbitrarily reorder the list of options/flags, but I am not sure which order would be better than alphabetical order. Do you have a preference for this ?
I will try to reproduce the completion issue and if I manage to, try and fix it.


Pass request to resource export via kwargs

Coverage remained the same at 92.15% when pulling 274c87a33ec99ac1c6816ff233dcf5b602b31844 on st3iny:master into 816b49c23aef761c6daf1426b69f76f999e800b8 on django-import-export:master.

Hey!  So having request can be useful in Resources.  Couple things:  This change is specific to exports (and not imports) so any change should probably include both.
Also, you can already accomplish this without changes to django-import-export by overriding get_resource_kwargs/get_import_resource_kwargs /get_export_resource_kwargs, like:
    def get_export_resource_kwargs(self, request, *args, **kwargs):
        irk = super().get_export_resource_kwargs(request, *args, **kwargs)

        irk['request'] = request

        return irk

Thanks for the info. This solved my issue and I think this pull request is now obsolete.


Force static with netlify dev

In an environment where netlify can detect the framework that's being used, I can't seem to get it to not use any special command and just serve a static directory (even using the --dir flag).  It would be really swell if I could have it just serve a static directory.

Thanks for bringing this to our attention. I've just verified the bug and have created a PR. The fix will be released soon.


Adding Filter in searching of a User

I would like to work on this issue, can you assign this me sir (GSSOC)

assigned.

merged.


Tabs flag for swiping not working

Version
Tell us which versions you are using:

react-native-router-flux 4.0.0-beta.40
react-native 0.55.4

Expected behaviour
When the flag swipeEnabled is set to true, user should be able to swipe through the tabs
I have my tabs layout like this:
 <Tabs key="tabbar" tabs={true} swipeEnabled={true} showLabel={false} hideNavBar style={{ marginTop: -50 }} type={ActionConst.RESET}>
   <Scene key="contacts" component={Contacts} hideNavBar type={ActionConst.RESET}/>
   <Scene key="chats" component={Chats} hideNavBar initial={true} type={ActionConst.RESET}/>
   <Scene key="profile" component={Profile} hideNavBar type={ActionConst.RESET}/>
 </Tabs>

The same goes for not be able to hide the tab Bar Component which is at the bottom by default.
Actual behaviour
Swiping is not available. Only works switching via bottom nav

Ok I just fixed by doing this "cheat". To make tabs to swipe, make sure you have set tabBarPosition='top'.
To disable the tabBarComponent you have to return null as a component. To do so just do tabBarComponent={() => null}
By adding these 2 to a Tabs component it will make your tabs swiping without even setting swipeEnabled={true}

It seems to be removed from React Navigation 2.x. Should we return it back? ;)
https://github.com/react-navigation/react-navigation/issues/4146

@aksonov I have been trying to make my app with this navigation to work perfectly but its struggling to do the job and its a shame as its a very good library, easy to use as well.
But after the latest update a lot of features not working anymore. I implemented my custom header in navBar I think which works fine, but checking the current screens in different components is a mess as it will never return the current screen but the one is being mounted from. And the back button on the android is not working as well.

We are using our library on production, too pity that it doesn't work for you. You may create the ticket for every issue you have with reproducible fork of Example project. For Android issues please ask @daviscabral

Btw, Actions.currentScene really could be inaccurate now (because RNRF no longer maintains own navigation state), I will try to fix it now.

@aksonov Thanks for your help! Because I am using a custom header, all the logic goes there as well and without keeping a track in the header what screen is mounted is pretty hard to handle all the logic.

@SourceCipher Could you create new issue for this problem? It seems hard to fix, onNavigationStateChange is called AFTER react components are mounted.

I am also strugling with the onNavigateStateChange life cycle. Any chance for us to implement a side life cycle instead of route state? So people can subscribe to it instead.

Could you clarify?

On 10 Aug 2018, at 17:11, Davis Z. Cabral<EMAIL_ADDRESS>wrote:
I am also strugling with the onNavigateStateChange life cycle. Any chance for us to implement a side life cycle instead of route state? So people can subscribe to it instead.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.

Of course. I meant about adding something like a onNavigateStateWillChange on our side - to allow some kind of preparation for the next component.

Any idea how? RNRF doesn’t manage state anymore (maybe 5.0 release will do, but it is a lot of work).

10 авг. 2018 г., в 17:48, Davis Z. Cabral<EMAIL_ADDRESS>написал(а):
Of course. I meant about adding something like a onNavigateStateWillChange on our side - to allow some kind of preparation for the next component.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/aksonov/react-native-router-flux/issues/3163#issuecomment-412124267, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQpcQkormZrBzFCNqdLq3aPMnR2tIqkks5uPas_gaJpZM4V0t53.

I was actually thinking in something unconnected to state - to really move away from this idea a bit.
Have you take a look at NavigationEvents? https://reactnavigation.org/docs/en/navigation-events.html#docsNav
Maybe allow users to connect whatever they want (with the new context API - I am noticing that it might be possible to postpone use of redux or mobx a bit in some cases).

Users can use NavigationEvents freely already.

Yeah - that's true. I am overcomplicating with this idea - just shooting to see if we could end with something around it - but you are correct - let's keep things simple. ;-)

@aksonov  I implemented the current screen logic and all works fine.. The problem is still the long delay between the card press and the screen mount. It takes a while for the screen to appear for some reason

@sourcecipher could you provide an example where I am able to see it?
It seems that the lifecycle of the components now are all mounted at once right after loading the app.

@daviscabral Which should make screens switching super fast, but thats not the case. I have a custom header component and there is a profile icon. when you press it it simply calls this onPress={() => Actions.profile()}. Now once I press it, its not switched instantly the same way it would do If I press on the tabs

Can you try last code from master? There was some updates related to reset and other stuff that might help on that.

@daviscabral  you mean v4.0.0?

No - master as in master branch:
yarn add aksonov/react-native-router-flux

legacy attribute must be used to make old behavior. However I don't see tab bar, maybe @daviscabral could help

It was not intended :(

@daviscabral Could you try to fix legacy tabbar before new release?

Sure - also fixing #3258 before it.

@aksonov fixed on #3265.

Can anybody help me how to refresh or reload the back stack scenes in react-native-router-flux?
Thanks

 <Router>           <Tabs key="root" tabs={true} legacy={true} swipeEnabled={true} tabBarPosition={'bottom'}>             <Scene hideNavBar key="login" component={Login} title="Login"/>             <Scene hideNavBar key="register" component={Register} title="Register"/>             <Scene hideNavBar key="home" component={Home}/>           </Tabs>         </Router>
legacy={true}
this works for me

legacy={true}
this works for me

Some additional info, I can confirm this is working as described. But if you use a custom tabBarComponent and try to use Action.jump(key) in it, it won't trigger the sliding animation.


Unable to locate a class or view for component [flag-language-en].

Hi, after I installed and imported the data I went to /translations page but it shown "Unable to locate a class or view for component [flag-language-en]."
My project is run on Laravel 9 on Sail container

Unable to locate class or view [components.input] for component [input]. when accessing /translations
This happens after php artisan translations:import, beforehand, it loads but indicates we should run the import command.

@TK2011-TH @R00118189 I can't reproduce this error. can you provide screenshot of the error and composer.json file?


Output

I ran the software on my dataset and I get thousands of contigs (similar to the expected output).
How to proceed from here? How to interpret the contigs and see what viral species they come from?
`
$ head PATH/TO/SAMPLE_contigs/file_td_contigs.txt

contig_0[]
AAAAAAAAAACCAAAACACCCATAATAAAAATAATATAATAATAATATATAAGAAAAAAAAACAAAAAAACAAAAAAACCAACAAGAAAAA
contig_1[]
AAAAAAAATCAACGTAAAAAAAGAGCTCCCCGTAATACCCACCCAAATGAGGGTGATGGGACCAGCGGGGCCCCGACCACACACCCCCCCA
contig_2[]
AAAAAACAAAAAAACAAAGAGTTAATCGAAAAAAAAAAAAACAAGTTCCCTGGAGTAATTTATTAAATTTTAAATGTATTATATGAACAGC
contig_3[]
AAAAAACAAAATAACATGTTATACCATACCATTACCTGCAACATCAAATCTCATTGTAACAATACTCTGATCTAGGAGAGCTAGTGATCCA
contig_4[]
AAAAAACAATAAACAAATATAAATGAAAACCTAATAATATAATAACAAAAGTATTATCTTTCCGTATATCCATGCATATGACTCAACTTGC
`

The predicted viral contigs yielded through viRNAtrap can be aligned against viral databases to identify known viral species. The downstream scripts and respective datasets we have used will be made publicly available upon publication, as mentioned in the readme.


Convert the payload parameter to a plain-old JS object

Convert the payload parameter to a plain-old JS object to ensure firestore's Document validation code works.
fixes #29

Looking good! I'll change to object spread {...payload} myself and add some tests.