Best practice to share maps between components

Hi,
I'm working on a map-centered application. I have different fairly complex layers that change depending on how the user interacts with the map. Right now I have multiple components that contain a DeckGL component with a static map.
So for instance there's a Component with multiple markers (OverviewComponent.js):
export default const OverviewComponent {
...
  render() {
    <DeckGL
      layers={this.renderMarkers()}
      initialViewState={initialViewState}
      onViewStateChange={this.viewStateChange}
      controller
      pickingRadius={5}>
      <StaticMap reuseMaps mapStyle={mapstyle} preventStyleDiffing />
   </DeckGL>
  }
}

When I click on a marker, the application routes to a different component (MarkerComponent.js) where complex visualizations for the selected marker are rendered. It looks like the one above but with different layers passed to the DeckGL component.
export default const MarkerComponent {
...
  render() {
  <DeckGL
      layers={this.renderConnections()}
      ...>
      <StaticMap reuseMaps mapStyle={mapstyle} preventStyleDiffing />
   </DeckGL>
  }
}

I'm looking for best practices to provide smooth transitions between those components when the user interacts with the map. Ideally with viewport transitions (flying to the selected marker) and without a noticeable lag. If I put everything in one component it would work but the component would get huge. So what's the best approach to keep a clean app structure but still achieve a smooth UI? Thanks in advance

@schlesingermatthias ,  when using DeckGL,  transitions are tied to that component.
How about you use react-map-gl, which also offers same set of viewport transitions, and you can keep InteractiveMap at the root component, example.

@schlesingermatthias If you want continuous transition, then you cannot unmount the  component. When dealing with complex visualizations, we usually use custom composite layers to organize code:
// overview-layer.js
import {CompositeLayer, IconsLayer, ScatterplotLayer} from 'deck.gl';

export default class OverviewLayer extends CompositeLayer {
  renderLayers() {
    return [
      new IconsLayer(...),
      new ScatterplotLayer(...)
    ];
  }
}

// markers-layer.js
import {CompositeLayer, LineLayer} from 'deck.gl';

export default class OverviewLayer extends CompositeLayer {
  renderLayers() {
    const {customProp1, customProp2} = this.props;
    return [
      new LineLayer(...),
      new LineLayer(...)
    ];
  }
}

// map-component.js
import DeckGL from 'deck.gl';
import OverviewLayer from './overview-layer';
import MarkersLayer from './markers-layer';

export default const MapComponent {

  _renderLayers() {
    const {customProp1, customProp2} = this.props;
    switch (this.state.visType) {
      case 'overview':
        return new OverviewLayer({
          customProp1: this.props.some_prop,
          customProp2: this.state.some_state
        });

      case 'markers':
        return new MarkersLayer({
          customProp1: this.props.some_prop,
          customProp2: this.state.some_state
        });
    }
  }

  render() {
    <DeckGL
      ...
      layers={this._renderLayers()} >
      <StaticMap reuseMaps mapStyle={mapstyle} preventStyleDiffing />
   </DeckGL>
  }
}


Donation Receipt Appears in Host Currency Instead of Collective Currency

Describe the bug
It seems that for certain collectives in the platform such as this one, https://opencollective.com/bitcoin-design-foundation where the collective currency is EUR and the host currency is USD, all the donation receipts seems to appear in USD while the numeric amount is in EUR. For example here's a sample receipt;

This is for the contribution; https://opencollective.com/bitcoin-design-foundation/contributions/711594 which is in EUR.
To Reproduce
Steps to reproduce the behavior:

Go to any contribution for a collective which is in a different currency than host
Download the receipt to see the discrepancy

Expected behavior
The receipt should display the correct currency of the collective

Reported at, https://opencollective.freshdesk.com/a/tickets/294190 and at slack; https://opencollective.slack.com/archives/C0429NTTABF/p1700732375681179

I'm going to fix the root cause for this issue in https://github.com/opencollective/opencollective-pdf/pull/973. The PR also ships a fix to make sure we always retrieve the host from the transaction rather than account.host, as the host may have changed since the transaction was made.
The idea of displaying receipts in the collective's currency requires some more thinking: we've always displayed this document in the host currency (with the original amount/exchange rate displayed in the table). I'm afraid we could break some host's expectations if we switch this; i.e. are all hosts allowed to generate invoices in a different currency?


Multiple endpoints in workload

Hi,
Is it possible that calico workload can have multiple endpoints?
If yes, it seems that labels will be updated only for last returned endpoint, since it will overwrite previous value in cache.
pod.py
endpoints = client.get_endpoints(orchestrator_id="k8s")
for ep in endpoints:
    endpoint_cache[ep.workload_id] = ep
    label_cache[ep.workload_id] = ep.labels

@cutwater good spot :)
You're correct, in the generic case a single Calico workload can potentially have multiple endpoints.  However, when running under Kubernetes each Calico workload is mapped 1:1 with a k8s Pod, and should only ever have a single endpoint.  The policy-controller only works on endpoints which belong to the k8s orchestrator.
Do you have a use-case for multiple endpoints for a Kubernetes pod/workload?

@caseydavenport Thank you for the clarification. It's not a valid case for k8s.


Framework Support Update/Unclear

Hello,
the NuGetGallery specifies .NET 8.0 as supported target framework, while the README specifies .NET 6.0. What is the correct one?

Both are supported. A .NET 6 project will use the .NET Standard build, while .NET 8 will use the specific build for it.


UPtv

Source
https://www.tvpassport.com/tv-listings/stations/up/5911
Channels
UpTV.us
Notes
Adding to TVPassport please ? It was added to another links already

Bro, I don't get it, why open +20 seperate issues when you can put all your requests in a single issue post?
Surely this doesn't make the contributors' life any easier.

https://github.com/iptv-org/epg/blob/master/CONTRIBUTING.md
Or better still, just edit the channel.xml file with the changes and submit a pull request. TVPassport is one of the easiest to update. If you have the TVPassport URL and channel ID then you've already done all the hard work.

As RevGear mentioned tvpassport is one of the simplest to update.
If you follow the Contribution Guide, you will learn that you should follow the following format.
<channel lang="LANGUAGE_CODE" xmltv_id="CHANNEL_ID" site_id="SITE_ID">CHANNEL_NAME</channel>
In this case, all you will need to add to the channel file is
<channel lang="en" xmltv_id="UpTV.us" site_id="up">Up TV</channel>
You can also take a look at Contributing to projects.

You mean
<channel lang="en" xmltv_id="UpTV.us" site_id="up/5911">Up TV</channel>
Site_id is just the last portion of the tvpassport URL

@RevGear I've already corrected the site_id in @PopeyeTheSai10r's post, thought no one would notice)

I am scared to try it and dont want to bother you if it messed up or didnt working. Can you at least finished them? I am done. Much appreciated . I will report only if some arent working or error. I finished posted them now for you to update the tvpassport.

@spotanjo3 Don't be afraid to try.

I understand but I am not a programming or something. I am not interested.  I am not great in English either. All I want is to finished those requested to tvpassport because I just posted in EPG list. I should asked all in one EPG list. My mistake. Anyway, can you finish them and thats all I am asking. I am not asking for more EPG requested anymore. ^_^


flet 0.23   bug in win7

Duplicate Check

[X] I have searched the opened issues and there are no duplicates

Describe the bug
use flet 0.22 on win7 is OK
use flet 0.23 on win7 is Err   ws2_32.dll can't find enter
Code
No response
To reproduce
any flet proc
Expected behavior
No response
Screenshots
No response
Operating System
Windows
Operating system details
win7
Flet version
0.23.0
Regression
No, it isn't
Suggestions
No response
Additional details
No response

Flet 0.22.0 was built using Flutter 3.19 which supported Win7/8.
Flet 0.23.0 is built with Flutter 3.22, version from which the support for Win7/8 has been officially dropped.
Ref: https://github.com/flutter/flutter/issues/140830#issuecomment-1936397549


Run Selection/Line in python terminal broken after last update

Environment data

VS Code version: 1.28.0
Extension version (available under the Extensions sidebar): 2018.9.0
OS and version: Windows 10 1803, x64
Python version (& distribution if applicable, e.g. Anaconda): 3.6.6
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Relevant/affected Python packages and their versions: -

Actual behavior
After the latest update of vscode, trying to execute any python block via shift+Enter appends an extra newline at the end of each line, which breaks execution of loops.
Expected  behavior
The code runs in the terminal
Steps to reproduce:

Copy the following in a python file:

print(32)
for i in range(4)
    print(i)

Select and run via shift+enter

Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
>>> print(32)
32
>>> for i in range(4)
  File "<stdin>", line 1
    for i in range(4)
                    ^
SyntaxError: invalid syntax
>>>     print(i)
  File "<stdin>", line 1
    print(i)
    ^
IndentationError: unexpected indent

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)
[Extension Host] Error: Traceback (most recent call last):
  File "C:\Users\Filippo\.vscode\extensions\ms-python.python-2018.9.0\pythonFiles\normalizeForInterpreter.py", line 128, in <module>
    normalize_lines(contents)
  File "C:\Users\Filippo\.vscode\extensions\ms-python.python-2018.9.0\pythonFiles\normalizeForInterpreter.py", line 109, in normalize_lines
    global_statement_ranges = _get_global_statement_blocks(source, lines)
  File "C:\Users\Filippo\.vscode\extensions\ms-python.python-2018.9.0\pythonFiles\normalizeForInterpreter.py", line 45, in _get_global_statement_blocks
    tree = ast.parse(source)
  File "C:\Users\Filippo\Anaconda3\envs\tensorflow\lib\ast.py", line 35, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 2
    for i in range(4)
                    ^
SyntaxError: invalid syntax

	at ChildProcess.proc.once (C:\Users\Filippo\.vscode\extensions\ms-python.python-2018.9.0\out\client\common\process\proc.js:114:33)
	at Object.onceWrapper (events.js:317:30)
	at emitTwo (events.js:126:13)
	at ChildProcess.emit (events.js:214:7)
	at maybeClose (internal/child_process.js:925:16)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) Python: Failed to normalize code for execution in terminal

Aren't you missing a colon after the for loop?

@patrys Copy-paste mistake when writing the sampls, the error is still there with the colon in place (I'll amend the question)

I can replicate on Windows, but not Mac.

I can confirm the same error on Windows.

I can also confirm the same error

same for me! this issue is really annoying #me_too

confirm me and my coworker on Windows with Python 3.6 but not 2.6

I confirm the issue in windows10. Any idea by when this could be solved?

@jsarneja no ETA as we're busy dealing with a nasty conda + PowerShell issue.

Confirmed on Windows, not on Mac.

Is the issue resolved? Finding the same issue on windows 10 python 3.6.5

Is the issue resolved? Finding the same issue on windows 10 python 3.6.5

Nope; not resolved. No ETA at the moment.

Hi everyone, we've created a fix for this, please could you download the development version and help us verify the fix.
Install instructions and fix can be downloaded here https://github.com/Microsoft/vscode-python/blob/master/CONTRIBUTING.md#development-build

@ChandanVerma 	@pomoneomarx
Please note the issue has been resolved, if you look above, you can see that a PR was merged yesterday to resolve this, we need to verify the fix, hope you can help with that.

Installed the .vsix and restarted twice. Then ran some test code. Problem seems to persist. Ran line 11 first, then 13 to 15.

OS and version: Windows 7 Professional

Anaconda 3-5.3.0

The development version works for me running the same code
l=[1,2,3,4,5] for num in l:     if(num % 2 == 0):         print(num)

OS and Version: Windows 10 Home
Python 3.6.5 64-bit
Anaconda 3-5.3.0

It does work now that I noticed I had to manually click into the terminal box and hit enter for the output to appear. But having to do that every time on a Run Selection/Line is going to get inconvenient.

Also noticed a new bug with the development version. Anytime I type something into a python script,the following error always pops up in the Output Pane

@ChandanVerma @pomoneomarx
Please note the issue has been resolved, if you look above, you can see that a PR was merged yesterday to resolve this, we need to verify the fix, hope you can help with that.

DonJayamanne this fix is:

working ;)
no "enter" is required after sending the code to the terminal.
Using 'IPython' instead of 'python' work perfectly and doesn't require pressing "enter" at the end to validate.
Thanks everyone for the fix its was an annoying bug that persist for months.

FYI 2018.9.1 was just released with the fix for this!


"Search box" is not selected completely on Firefox&IE

Repro steps:
• Navigate to https://makecode.microbit.org/beta on Firefox&IE
• Click on Search box
Expected result:(chrome,Safari)
When "search box" is foucused, "search box" should like below picture

Actual result:
When "search box" is foucused, "search box" likes below picture on Firefox&IE，Edge

Won't fix.


[PAYMENT REQUESTED] [$250] Critical: Duplicated invite messages for newly created invoice room

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

Version Number: 1.4.71-4
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @rezkiy37
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1715183447375399
Action Performed:

Go to app
Send Invoice to User B
Open a newly created invoice room.
Scroll up.

Expected Result:
There is not the skeleton view and the duplicated invite message at the very top.
Actual Result:
There is one more invited message and the skeleton view presents at the very top.
Workaround:
Unknown
Platforms:

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

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[X] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
https://github.com/Expensify/App/assets/38435837/b368bb4d-6e1f-44c5-a85f-889ab6874e30
https://github.com/Expensify/App/assets/38435837/0bfec95e-34c9-4b94-86b1-2ab623004902
Add any screenshot/video evidence

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01082bb3930cb21660
Upwork Job ID:<PHONE_NUMBER>887723008
Last Price Increase: 2024-05-09

Issue OwnerCurrent Issue Owner: @

@rezkiy37, I'm assigning you to this one

@cristipaval - I don't think your assignment for @rezkiy37 took, I'll try again now.

Actually I think it's that weird thing where @rezkiy37 needs to comment on this GH before we can assign them because I can't do it either.

Hi, I’m Michael (Mykhailo) from Callstack and I would like to work on this issue.

^Auth PR up

Retesting.

@strepanier03, @thesahindia is the only one who needs to be paid, for the C+ review.

I just pinged @strepanier03 internally about this one.

Ughh, dang automation. Taking care of this now.

@thesahindia - When automation is failing on a payment GH, please don't hesitate to ping me in Slack 🙌. Payment summary incoming.

Payment Summary

$250 for @thesahindia via Manual Requests in New Expensify

@JmillsExpensify - Payment request incoming.

Not overdue, Melvin

$250 approved for @thesahindia


ockam node create --identity X should fail if X doesn't exist

Observed behavior
sanjo@mac ~ % ockam node create alice --identity alice
       Creating Node alice...

     ✔ Node alice created successfully

       To see more details on this node, run:
       ockam node show

Steps to reproduce
Run
node create alice --identity alice

From a clean state
Desired behavior
Node creation should fail and report a useful error to the user
Ockam Version
0.116.0

Hi, I would like to give it try. could you please assign to me?

@oguseynov That's awesome, this is all yours. Please let us know if you have any questions as you explore. You can also ask questions on the contributors discord https://discord.ockam.io

cla accepted in this pr

@nazmulidris should I do something else to get forward with my pr's?

@oguseynov the CLA commit was signed with a github noreply address. I am trying to confirm if it is still valid since the commits in this PR are signed with your other email address. If you could sign the CLA PR commit with your regular email address I could approve it right away. and then we could proceed with this PR.

@etorreborre sure, done for both pr's, signed with regular email address and re-pushed

Thanks a lot, I just approved the CLA PR


Revert "Avoid using temp_await on loadRootPackage"

Reverts apple/swift-package-manager#7009 to fix macOS CI regression:
duplicate symbol '_async_MainTu' in:
    /Users/ec2-user/jenkins/workspace/swift-package-manager-with-xcode-self-hosted-PR-osx/branch-main/swiftpm/.build/x86_64-apple-macosx/debug/swift_package.build/Entrypoint.swift.o
    /Users/ec2-user/jenkins/workspace/swift-package-manager-with-xcode-self-hosted-PR-osx/branch-main/swiftpm/.build/x86_64-apple-macosx/debug/swift_test.build/Entrypoint.swift.o
duplicate symbol '_async_Main' in:
    /Users/ec2-user/jenkins/workspace/swift-package-manager-with-xcode-self-hosted-PR-osx/branch-main/swiftpm/.build/x86_64-apple-macosx/debug/swift_package.build/Entrypoint.swift.o
    /Users/ec2-user/jenkins/workspace/swift-package-manager-with-xcode-self-hosted-PR-osx/branch-main/swiftpm/.build/x86_64-apple-macosx/debug/swift_test.build/Entrypoint.swift.o
ld: 2 duplicate symbols for architecture x86_64

This error was fixed in Swift 5.10, which is not available on CI yet.

cc @AndrewHoos

@swift-ci test

Closing, as it won't be needed after https://github.com/apple/swift-package-manager/pull/7196 is merged.


Exception while accessing title of ...  Please file a bug report at https://github.com/JuanBindez/pytubefix

:exclamation:  DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE :exclamation:
lack of information will lead to closure of the issue

Describe the bug
I tried to download a youtube video, and I got this error :
Exception while accessing title of https://youtube.com/watch?v=aiCMXJ4zKWA. Please file a bug report at https://github.com/JuanBindez/pytubefix

code that was used that resulted in the bug
from pytubefix import YouTube

yt = YouTube(url, use_oauth=True)
video_stream = yt.streams.filter(only_audio=True).first()  # <-- This is the line triggering the error
mp3_file = video_stream.download(output_path=output_dir)

Expected behavior
A clear and concise description of what you expected to happen.
Having the video audio being downloaded

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

OS: Ubuntu 22.04.5 LTS aarch64 ( Kernel 6.5.0-1026-oracle)
Python Version 3.10.12
Pytubefix Version 8.5.1

Additional context
Ask me for additional details
Love your work !

@JuanBindez
I'm analyzing some requests from the next endpoint and they seem to change the json structure for some video types, I'm thinking about some possibilities to resolve this and would like to know your opinion.

We can adapt the code whenever we find a new structure.

We can create a regex to find the value of the title.

We can just return unknown.

Which do you think is best to implement?

Hi Ucelli, I believe that the only thing that might cause problems would be the regex as it has this variation, perhaps the best option would be to adapt, but I could be wrong as I haven't tested anything (just speculating), if you see that the regex works fine , that's fine with me, but I think if you see that it's really difficult to find the title I believe porn while it would return (unknown)

Ok, I'll adapt the code for now, if it gets too complex, I'll look for an alternative.

This is fix:
               if 'singleColumnWatchNextResults' in self.vid_details['contents']:                     self._title = self.vid_details['contents']['singleColumnWatchNextResults']['autoplay']['autoplay']['replayVideoRenderer']['pivotVideoRenderer']["title"]["simpleText"]
From

To

Might not work for all, but yeah

Hey, any plan on pushing the fix ?
My code still returns an error on latest (8.8.2) update.


fix: Auto layout List widget related issues

Description
In the case of widgets that are managed by List widget (Meta widgets), we store it in entitites.metaWidgets.
For auto layout calculations, we were making use of entities.canvasWidgets and not entites.metaWidgets caused the widgets inside List widget not to function properly.
In this PR, we started making use of both canvasWidgets & metaWidgets to resolve some of the issues with ListWidget in Auto layout mode.
Fixes #21870
Fixes #22086
Fixes #22539
Type of change

Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Manual

Test Plan

Add Testsmith test cases links that relate to this PR

Issues raised during DP testing

Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR)

Checklist:
Dev activity

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] PR is being merged under a feature flag

QA activity:

[ ] Test plan has been approved by relevant developers
[ ] Test plan has been peer reviewed by QA
[ ] Cypress test cases have been added and approved by either SDET or manual QA
[ ] Organized project review call with relevant stakeholders after Round 1/2 of QA
[ ] Added Test Plan Approved label after reveiwing all Cypress test

/build-deploy-preview env=release

are we not targeting the manual resize of list item container in this PR?

@prsidhu Yes. We are allowing to manually resize list item container


minor fixes to demos

Two changes to the demo which affect demo-snippet:

Add closing tag to map-tile-layer demo snippet for proper formatting
add data to supressPropertyValue for geojson demo so it doesnt look cray cray

Throwing to @talimarcus to review

LGTM


copyright year in footer not updated

Hi Sir @imhardikdesai
Issue Description:
Currently I saw the code in the footer of the website for the copyright year is still static and not updated, I want to add a dynamic year copyright in the footer of the website.
Screenshots:

Additional information
Can you take my advice and assign this task to me Sir @imhardikdesai ? and I am new to open source contributions and I would love to contribute to your project! I also participated in Hacktoberfest2023.

@rhnas110 please start working on it


constructor arguments that have default value will lost after call hook

`class A {
bool show;
A({this.show = false});
}
void main() {
A a = A();
if (a.show) {
print('show');
}
}
@Call("package:example/main.dart", "A", "+A")
@pragma("vm:entry-point")
static dynamic hookMethod(PointCut pointcut) {
print('[KWLM1]: Before A! ');
dynamic object = pointcut.proceed();
print('[KWLM1]: After A! ');
return object;
}
`
flutter doctor 信息：
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel unknown, 1.22.4, on macOS 11.1 20C69 darwin-x64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.52.1)
[✓] Connected device (3 available)
• No issues found!
A null pointer exception would be threw out.

https://github.com/XianyuTech/aspectd/issues/86
这个解决后，此问题应该一并消失了。


First default nickname does not contain the random numbers prefix at the end of nickname

            //
            // Nick
            //
            // @type     string
            // @default  "lounge-user"
            //
            nick: "Chat_Guest_",

First default nickname does not contain the random numbers prefix at the end of nickname. This looks a bit weird when you have a user named 'Chat_Guest_' and the next one 'Chat_Guest_245' etc.
Suggest forcing the random numbers prefix on first user.

Hey @christer88!
So, the way this works currently is that when one connects to a server, the given nick is set, and if it comes back as "already in use", gets randomized with those added integers.
At the moment, when you click on "Connect", the system doesn't know if the nick that's sent to the server is the default one (from the settings defaults) or if the user set something before pressing the button.
This means that if we were to do that, we couldn't just always append the integers to the nick, or you would never be set the nick you asked for. Alternative would be a clumsy check in the code linked above, where if nick set at connect time == default nick, then add random integers, otherwise keep the nick as is. The current rationale is that we always prefer to give the default nick if available before defaulting as a last resort.
I don't think we can do something dynamic like "Chat_Guest_${n} that would be convenient to use and maintain.
I understand where you're coming from though, and maybe the check mentioned above would work. I don't like the idea of not doing what a user asks for, and conditionally on top of it, users should always be in control of the data they input. I think I would rather keep it that way, as it is less confusing than the alternatives I can think of, but I am open to suggestions. @thelounge/maintainers, what do you think?

Closing this issue. @xPaw has been so kind to implement this with https://github.com/thelounge/thelounge/pull/2090

Yes, and in a very elegant and simple way on top of that!


System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.

[ERROR] Could not load x.dll! System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
  at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0
  at IllusionInjector.PluginManager.LoadPluginsFromFile (System.String file, System.String exeName) [0x00000] in <filename unknown>:0

Having this issue too:
[ERROR] Could not load overcookedMod.dll! System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <c8d0d7b9135640958bff528a1e374758>:0
  at IllusionInjector.PluginManager.LoadPluginsFromFile (System.String file, System.String exeName) [0x00026] in <f1c7619d37134d08a47e44535bc1c032>:0

Did you ever find a fix?

@flauntingspade4 Try using MelonLoader or BepInEx


Training the problem

我把config.yaml的数据集除了coco其他的注释掉，使用coco训练。在MobaXterm的容器中执行命令报出
File "/work/siamban-master/tools/siamban/utils/distributed.py", line 104, in dist_init
rank, world_size = _dist_init()
File "/work/siamban-master/tools/siamban/utils/distributed.py", line 86, in _dist_init
dist.init_process_group(backend='nccl')
File "/opt/conda/envs/pytorch-py3.6/lib/python3.6/site-packages/torch/distributed/distributed_c10d.py", line 400, in init_process_group
store, rank, world_size = next(rendezvous(url))
File "/opt/conda/envs/pytorch-py3.6/lib/python3.6/site-packages/torch/distributed/rendezvous.py", line 143, in _env_rendezvous_handler
store = TCPStore(master_addr, master_port, world_size, start_daemon)
RuntimeError: Address already in use
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "../../tools/train.py", line 310, in
main()
File "../../tools/train.py", line 249, in main
rank, world_size = dist_init()
File "/work/siamban-master/tools/siamban/utils/distributed.py", line 111, in dist_init
raise RuntimeError(*e.args)
RuntimeError: Address already in use
Traceback (most recent call last):
File "/opt/conda/envs/pytorch-py3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/opt/conda/envs/pytorch-py3.6/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/opt/conda/envs/pytorch-py3.6/lib/python3.6/site-packages/torch/distributed/launch.py", line 253, in
main()
File "/opt/conda/envs/pytorch-py3.6/lib/python3.6/site-packages/torch/distributed/launch.py", line 249, in main
cmd=cmd)
subprocess.CalledProcessError: Command '['/opt/conda/envs/pytorch-py3.6/bin/python', '-u', '../../tools/train.py', '--local_rank=2', '--cfg', 'config.yaml']' returned non-zero exit status 1.
这个这样的错误。使用的是单机多卡。
在使用单卡训练的时候，输入Python3 -u ../../tools/train.py --cfg config.yaml报错：
Traceback (most recent call last):
File "../../tools/train.py", line 310, in
main()
File "../../tools/train.py", line 249, in main
rank, world_size = dist_init()
File "/work/siamban-master/tools/siamban/utils/distributed.py", line 104, in dist_init
rank, world_size = _dist_init()
File "/work/siamban-master/tools/siamban/utils/distributed.py", line 83, in _dist_init
rank = int(os.environ['RANK'])
File "/opt/conda/envs/pytorch-py3.6/lib/python3.6/os.py", line 669, in getitem
raise KeyError(key) from None
KeyError: 'RANK
请问您这个是怎样的问题呢？ 该怎么处理呢？

For single node, single GPU or multiple GPUs training, please refer to here.


R-package: Fixed a typo in document of function "mx.symbol.Activation" & Refined the format a bit

A very MINOR change to fix the typo in the document of function "mx.symbol.Activation". Also tried to make the format nicer.

Seems like the typo is already figures in branch v0.9rc1


Backend feature: account management

Closes #158.
This contains protos, backend implementation, and backend tests. No frontend code, but this does not break anything, only adds functionality, so that can be implemented later.
There's a few small refactoring bits here too that should maybe in hindsight have been a separate PR.
It's on top of feature-jail because I changed some testing code there.
Do not merge yet: I want to fix the migrations just before this is merged.

Regarding timestamps: I think postgres stores datetime with time zone in UTC (and discards the actual timezone), so it really identifies an actual point in time, not just a representation of a local datetime. func.now() translates to CURRENT_TIMESTAMP. (As long as it's not abused on the python side, DateTime(timezone=True) should work fine, even if given a datetime in a non-UTC timezone.)

you mean timestamp with time zone
https://www.postgresql.org/docs/13/datatype-datetime.html
I am curious what such field becomes when output to Python. a local datetime? Or a UTC datetime? The moment will be the same anyways.

you mean timestamp with time zone

Yep, that's what I meant.

I am curious what such field becomes when output to Python. a local datetime? Or a UTC datetime? The moment will be the same anyways.

It's turned into an aware datetime object. Not sure which TZ it gets, probably UTC


Rate settings fields in node,shifts to the right as you enter values

Make the field fixed .
Make it possible to enter only once the digit 0 if it is the first.
Video2.zip

The first point still needs to be fixed.

Both seems to be fixed in new settings. Please check that it is OK now.
Though there are more issues.

fee rate input is moved when rate is short
Long:

Short:

Checked


Leaderboard interval formatting

Implements leaderboard part of interval formatting PRD, which allows compact representation of numeric measures that have format_preset: interval_ms.
Per the spec, it is up to the user to cast intervals to numerics (or rather, to use the datediff function to find the difference between two dates, as apparently it's not possible to cast interval to numeric directly?), and to do the arithmetic required to convert to milliseconds (if needed).

Looks good code wise, but I haven't been able to verify it on a live dashboard.
I tried creating a measure with the expression to_days(2323) to get an INTERVAL return type, but got [Object object] on the dashboard big number display. Not sure if this is related.

@djbarnwal -- I think it's unrelated, but it sounds like a genuine upstream bug in the measure expression validation: to_days() should not be considered a valid aggregation function in a measure expression. If you still have your YAML example and can reproduce this behavior on main, I think it would be worth filing a new issue about this.

@djbarnwal @nishantmonu51 -- this is ready for experience pass and final code review+approval. Thanks!!

Hmm, I'm getting CI failures that I can't explain. I can't think of any reason why my latest commit would cause the timeout errors I'm seeing compared to the previous commit, which passed CI.
I've rerun CI several times but no luck. Just tried merging main in case there have been an CI stabilty updates


[FEEDBACK] Remove Preview and Production Environments

Hey,
Maybe consider removing the Preview and Production Environments. They both seem to be inactive and outdated, and it will clean up this repository a bit.
Yes I have issues with making repositories as clean as possible. I contribute to every repo I see that can be "cleaned". 😅

Agreed, it's annoying. But not sure if GH allows you to remove environment deploys. If it does, I've not seen how.
Maybe it's possible to do via the GH API, so I will look into that...

Figured this out using the following script, based on this answer on StackOverflow
env=Preview
token=xxxx
repo=dashy
user=lissy93

for id in $(curl -u $user:$token https://api.github.com/repos/$user/$repo/deployments\?environment\=$env | jq ".[].id"); do
    curl -X POST -u $user:$token -d '{"state":"inactive"}' -H 'accept: application/vnd.github.ant-man-preview+json' https://api.github.com/repos/$user/$repo/deployments/$id/statuses
    curl -X DELETE -u $user:$token https://api.github.com/repos/$user/$repo/deployments/$id
done

I'm leaving the GitHub pages env there, since I'm using that for deploying the dashy.to docs website. But the other stale environment has now been removed.


PS4 - effects not working correctly (purple color)

Error log attached
Editor2.log
UIEffect 4.0.0 - preview 9
UI Effect snapshot 1.0.0
UI Soft Mask 1.0.0
imported using git in manifest
Unity 2019.4.37
IL2CPP, .Net 4.x, Built-In
all three packages give errors when building for PS4 (other platforms ok)
build can be done but in game, features using this plugins either not visible (soft mask) or visible as purple color (background blur, transition effects)
win, Xbox, switch work fine
PS there is one similar but no exact issue here and i've actually used that information to fix some other bugs in different shader, but it'd be great to have fix for this problem from the developer

Sorry for my late reply.
UIEffect v5 is now released.
Please try it. :+1:
🔄 Upgrading from v4 to v5


Build code in a subfolder

Describe the solution you'd like
Consider a repo where the phone code is in a subfolder (in my case the react-native code lives in a separate subfolder and shares code with reactjs web client code and the nodejs server code). Only way to have the phone app built in appcenter is to copy this code to a separate repo with just phone code at the root
Describe alternatives you've considered
Having second repo with copy of the code
Additional context

This is also brought up in https://github.com/microsoft/appcenter/issues/928

Yes, this is dupe of #928


[FR]Please support Gerrit push

I'm using Gerrit for code reviewing.
When I want to push my commits, I cannot just click the button 'Sync Changes' or 'Push' in VSCode. I need open the terminal, and input 'git push origin HEAD:refs/for/master' (not just 'git push').
Why not add an option to change the behaivor on clicking the push button?
Thank you.

@w-xy, as I am not familiar with Gerrit, could you please elaborate on why you cannot use the "Sync Changes" or "Push" commands? Are you getting any errors in VS Code when you invoke those commands? Thanks!

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!

Hi @lszomoru , let me explain it.
When I click the button "Sync Changes", if there're some commits to push, VSCode helps me execute a command "git push" or "git push origin <branch_name>" in the bash. However, as I'm using Gerrit, the command does not work. There would be errors like ”! [remote rejected] master -> master (prohibited by Gerrit)“.
Gerrit is a popular code reviewing tool and used in many companies. With Gerrit, I cannot push my commits directly into the remote repository, but I can push into a "temporary space" and waiting for reviewing from my workmates and verifying from CI system. After that, I can finally have the permisson to merge the commits on the Gerrit website. So the way to push into the "temporary space" is to excute the command "git push origin HEAD:refs/for/<branch_name>". I hope VSCode can provide an option to change the command when I click the button "Sync Changes".
Here is a detailed explanation: https://stackoverflow.com/questions/10461214/why-is-git-push-gerrit-headrefs-for-master-used-instead-of-git-push-origin-mast
I also found a releated question on stackoverflow: https://stackoverflow.com/questions/77579431/change-default-git-push-to-origin-headrefs-for-master
Thanks!

does anyone know how to remove the info-needed tag...

Thank you very much for the clarifications! At the moment we have no plans to enable customising the command that is being execute when one clicks on the "Sync Changes" button. Having said that, this seems like a good extension opportunity, and I do see that the VS Code marketplace contains multiple extensions related to Gerrit - https://marketplace.visualstudio.com/search?term=Gerrit&target=VSCode&category=All categories&sortBy=Relevance


Routing example doesn't work - pathToRegExp is undefined

On the Dev branch, the example under 'examples/routing' doesn't work.
Firstly was an error in inferno-router.js that Component was undefined. Adding the tag <script src="../../packages/inferno/dist/inferno-component.js"></script> after the inferno.js script fixed this.
However now I see that similarly pathToRegExp isn't defined in the below line in inferno-router.js@14
pathToRegExp = 'default' in pathToRegExp ? pathToRegExp['default'] : pathToRegExp;

Looks like when running in the browser via the script tags this is expected to exist on the global (via the UMD factory function arg in factory(global.createElement, global.Component, global.pathToRegExp, global.Inferno))). This appears to be an external NPM module dependency that perhaps the build process isn't bundling correctly.

@nightwolfz mentioned this as soon as we released. I'm off to bed now, but we'll get this fixed asap tomorrow and release beta9 with the fix :)

Will be fixed in next release :)


[Suggestion] Block Blacklist

A list of blocks that will not be destroyed by creepers. For example, creepers could be used to potentially bypass plugins that use sign protections, it would also be useful to enable server operators to patch any potential exploits without needing to wait for a patch

I will add an option to allow server owners to define materials that will be removed from explosions by the plugin. The block will then appear as if it had never been in an explosion.


i want Objc

Hi @lotus-lotus, can you please explain your issue?

I think there is a 50 degree distance between the top and the end slider.
I haven ' t read about specific proportions
I hope to get help
Forgive me for being a beginner.
发自我的 iPhone

在 2017年12月22日，17:07，Hamza Ghazouani<EMAIL_ADDRESS>写道：
Hi @lotus-lotus, can you please explain your issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Can you please share your code ?

I write your code directly.Improved on your basis
发自我的 iPhone

在 2017年12月22日，18:27，Hamza Ghazouani<EMAIL_ADDRESS>写道：
Can you please share your code ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

It has been sent to your mailbox, I hope to see it for me.


Correct Build errors in UT Assert bamboo build

For legacy configurations where the old type mapping is used in common_types.h, the UT assert library fails to build with the following errors.  This is from the bamboo logs when building in the classic mode.
/home/bamboo-remote-agent/bamboo-agent-home/xml-data/build-dir/CFS-CFSCFE-JA/osal/ut_assert/src/utassert.c:154:5: error: unknown type name 'uint32_t'
/home/bamboo-remote-agent/bamboo-agent-home/xml-data/build-dir/CFS-CFSCFE-JA/osal/ut_assert/src/utstubs.c:78:5: error: unknown type name 'bool'
This issue is causing bamboo to fail on the "Job A" of both CFE and OSAL.  Other jobs that use the stdint.h based mapping are OK.

Trac comment by jphickey on 2019-04-19 09:31:20:
Changes for review are in commit [changeset:ff0e833]
This is just some minor stuff to revive some bamboo jobs that have been broken for some time.

Imported from trac issue 211.  Created by jphickey on 2019-04-18T17:16:00, last modified: 2019-07-26T15:13:27

Trac comment by jhageman on 2019-05-08 13:37:11:
Tested as [changeset:07acb90] in ic-ccb-20190501, passed.
CCB approved for merge on 5/8/2019

Trac comment by jhageman on 2019-05-01 13:07:10:
CCB code review 5/1 - accepted for test

Trac comment by jphickey on 2019-05-09 12:25:10:
Merged into "development" branch

Trac comment by jhageman on 2019-07-03 13:31:58:
Moved closed 4.2.2 milestone tickets to 4.3.0

Trac comment by jhageman on 2019-07-26 15:13:27:
Milestone renamed


Subject: Inquiry about Inviting Bot to Slack Channel Without Authenticated User

Hi eam,
I have a workspace with multiple channels in it, both private and public. I have a bot that posts notifications in the channel.
If the bot is part of the channel, there are no issues. However, if the bot is not part of the channel and I try to invite the bot and post a notification, it does not work as expected.

Either I need to add the bot to the channel in the settings. Once the bot is added, all the notifications are sent normally.
If I try to programmatically invite a bot using, conversations.join, I get added to the channel along with the bot, even if I set the as_user argument to false.

I wanted to know if an authenticated user is required to add the bot programmatically using the API. Please let me know if there is a  proper way to add the bot to the channel, without the above two methods.
    await cient.conversations.join({
      channel: channelId,
      token,
    });
    const response = await slackClient.conversations.invite({
      channel: channelId,
      users,
      token,
    });

Reproducible in:
The Slack SDK version
(Paste the output of
npm ls | grep -o "\S\+@\S\+$" | tr @ ' ' | awk -v q='"' '{print q$1q": "q"^"$2q","}' | grep slack

or refer to your package.json)
Node.js runtime version
(Paste the output of node --version)
OS info
(Paste the output of sw_vers && uname -v on macOS/Linux or ver on Windows OS)
Steps to reproduce:
(Share the commands to run, source code, and project settings)

Expected result:
(Tell what you expected to happen)
Actual result:
(Tell what actually happened with logs, screenshots)
Requirements
For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. :bow:
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.

Hi @SyedSibtainRazvi ! I'll do my best to help but will need to clarify a bunch of stuff first.

I have a bot that posts notifications in the channel. If the bot is part of the channel, there are no issues.

This is expected behaviour: a bot needs to be part of a channel in order to post to it.

However, if the bot is not part of the channel and I try to invite the bot and post a notification, it does not work as expected.

Who is inviting the bot to the channel? When you say "I try to invite the bot and post a notification", who is posting the notification? Your human user account or the bot user? What order are these operations happening in, and do they happen at the same time? Are you sure your bot is a member of the channel first before it attempts to post to the channel?

Either I need to add the bot to the channel in the settings. Once the bot is added, all the notifications are sent normally.

Yes, similar to what I said at the start of my comment, this is expected behaviour: the bot first needs to be a member of a conversation in order to post to it.

If I try to programmatically invite a bot using, conversations.join, I get added to the channel along with the bot, even if I set the as_user argument to false.

Who is doing the programmatic invitation? The bot cannot invite itself to channels it is not a member of. Since you mention as_user, this tells me you may be using a bot token in one context and a user token in another. Clarifying when either of these tokens is used would be helpful to figure out what you are trying to accomplish, and how to go about trying to achieve it. I believe, but am not sure, you are using your own user token to invite the bot to specific channels in your workspace, but you say "I get added to the channel along with the bot"; if this is the case, I believe this can only happen if your human user account was not originally part of the channel before trying to invite anyone else to it (whether it is a bot or human being invited).
Ultimately, my original point dictates the invitation flow: whoever is inviting whoever else to a channel must first be a member of that channel. This is a hard constraint.
Perhaps you can expand on your use case and we can come up with other ways of trying to achieve what you are trying to achieve.

I don't have much to add other than: what if your bot creates the channel in question? If so, it should have full rights to join, post, and invite others to the channel.
Can you describe the use case? What problem are you trying to solve? Maybe we can think of other ways of tackling the problem.


path-io-0.3.1

path-io-0.3.1 is out of bounds for:

[ ] plan-b-0.2.0 (>=1.0.1). Mark Karpov<EMAIL_ADDRESS>@mrkkrp. @mrkkrp

Sorry this is actually part of #1238.

See https://github.com/fpco/stackage/issues/1238. path-io-1.0.1 is on Hackage. As I understand Stackage cannot pick it up because Stack depends on path-io-0.3.1. Current Stack master now uses path-io >= 1.0.0, so once new version of Stack released, the problem will be solved. Am I missing something?

Right thanks my bad


Feature Request: Implement Nodeinfo endpoints for federation discovery

Nodeinfo is a way to expose certain metadata about a server for use of discovery regarding functionality of its federation capabilities.
Two endpoints are required:

/.well-known/nodeinfo which informs client where it can find the location of the location of its metadata (including which version of the schema is used)
the endpoint which exposes the metadata in json format according to schema.

Notes:

openRegistrations is a required field, but I propose to set to false as default in case someone writes a crawler to discover "open" gitea instances
to limit data leakage I also propose to not include the usage field (note it is required so it should be included, but left as empty).

More info:
https://github.com/jhass/nodeinfo
https://github.com/jhass/nodeinfo/tree/main/schemas/2.1
http://nodeinfo.diaspora.software/protocol.html
cc: @pilou-

I claim 2,500€ from the fedeproxy Gitea federation grant for the work I did to create this issue and implement the associated pull request, where 25% will be split among the reviewers, and 25% will go to the project (via opencollective).
@lunny / @lafriks do you approve this? (more info linked here: https://forum.fedeproxy.eu/t/howto-5-000-grant-earmarked-for-gitea-federation/330/17)

I approve


alminer.target returns DALQueryError

I encountered a strange error when doing a simple query with ALminer version 0.1.3. The query alminer.target(sources='HD143006') fails with the following error message: "DALQueryError: ORA-01489: result of string concatenation is too long ORA-01489: result of string concatenation is too long". Is there a way to fix this?

Just realised that the error message is the same as in issue #4

These seems in problem with pyvo, so I opened an issue there: https://github.com/astropy/pyvo/issues/458

This issue is discussed here: https://github.com/astropy/astroquery/issues/2726

Hi! Apologies for seeing this so late. Indeed as the Astropy team mentioned, the issue is upstream and I believe the ALMA team is aware of it. The issue pertains to certain projects so if those fall within your search criteria, the entire query will crash. One way to get around this at the moment is to figure out where exactly this happens and to exclude the projects that cause the issue.
For your example, the issue is with project 2016.1.00484.L. I found this out by looking at all the projects corresponding to your target on the web interface of the ALMA Science Archive and querying the project codes with ALminer keysearch function to see for which projects the query crashes (i.e. alminer.keysearch({'proposal_id':['2016.1.00484.L']}) will crash with the same error).
Once you know which projects to exclude, you can do the following:

Get the query string from alminer.target function:

full_query = alminer.target('HD143006', print_query=True)
The output before the query crashes is:

Your query is: SELECT * FROM ivoa.ObsCore WHERE (1 = INTERSECTS(CIRCLE('ICRS',239.65380261662,-22.95422793311,0.016666666666666666), s_region) OR 1 = CONTAINS(POINT('ICRS',239.65380261662,-22.95422793311), s_region)) AND data_rights LIKE '%Public%'

Copy the query string and add the following line to the end: AND proposal_id NOT LIKE '2016.1.00484.L', so the full query string is:

query_str = f"""SELECT * FROM ivoa.ObsCore WHERE (1 = INTERSECTS(CIRCLE('ICRS',239.65380261662,-22.95422793311,0.016666666666666666), s_region) OR 1 = CONTAINS(POINT('ICRS',239.65380261662,-22.95422793311), s_region)) AND data_rights LIKE '%Public%' AND proposal_id NOT LIKE '2016.1.00484.L'"""

Run the query & convert the results to ALminer format:

adjusted_query = alminer.run_query(query_str)
adjusted_query_alminer = alminer.filter_results(adjusted_query)

Now adjusted_query_alminer is a DataFrame in ALminer format and you can use all the ALminer plotting functionalities with it. Just beware that you are excluding project 2016.1.00484.L from your results.
Hope this helps you in the meanwhile until the issue gets fixed upstream.

Thanks @aida-ahmadi, I will give it a try!

Hi @gica3618, this issue has been solved upstream in the most recent release of the ALMA archive. So I will close this ticket, but please feel free to open a new one if you encounter other issues.


Widget testing not working

Do you know why flutter test failing.

Flutter team use tester.pump();
Link: Flutter localization test
So i just add tester.pump(); to line 17.
https://github.com/ResoCoder/flutter_localization_tutorial/blob/5757500353711a583de41a99a507ae2804290840/test/widget_test.dart#L16-L17


Add Pull Request Template

GitHub Issue: (link)

https://github.com/Islandora-CLAW/CLAW/issues/541
http://irclogs.islandora.ca/2017-03-01.html

What does this Pull Request do?

Create a directory called: .github
Create a file called: PULL_REQUEST_TEMPLATE.md
In the template, paste in the contents of this comment https://github.com/Islandora-CLAW/CLAW/issues/541#issuecomment-283424037

What's new?
An in-depth description of the changes made by this PR. Technical details and possible side effects.

Provides a PR template in every CLAW repository you fork for ease of use.

How should this be tested?

Read the template and verify that it is a good template.

Additional Notes:

Eeek, newbie pull request.

Interested parties
Thanks @ruebot.

Codecov Report

Merging #58 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #58   +/-   ##
=======================================
  Coverage   92.79%   92.79%
=======================================
  Files           4        4
  Lines         222      222
=======================================
  Hits          206      206
  Misses         16       16

Continue to review full report at Codecov.

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


[Feature] Add Github source connector

Search before asking

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

Feature Request
Add Github source connector
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

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

Hi! I'm interested in this issue. But how can Github be a data source? Can you provide me with an example like the one in #4047 ?

Hi! I'm interested in this issue. But how can Github be a data source? Can you provide me with an example like the one in #4047 ?

Actually, it's similar to this #4047 (comment) . GitHub provides developers with REST API interfaces, GraphQL API interfaces, and Webhooks, all of which can provide rich and diverse data resources.

Thanks for your reply. I think that Webhooks are the most effective way to retrieve data since they don't need any polling.
But one thing still confuses me. Webhooks require a Payload URL and will make a POST request after certain events have occurred. Is it proper to make the source connector an HTTP server to provide this URL? If we use this approach, perhaps we can implement an HTTP source connector and reuse it in the GitHub source connector.

Thanks for your reply. I think that Webhooks are the most efficient way to retrieve data since they don't need any polling.
But one thing still confuses me. Webhooks require a Payload URL and will make POST requests after certain events have occurred. Is it proper to make the source connector an HTTP server to provide this URL? If we use this approach, perhaps we can implement an HTTP source connector and reuse it in the GitHub source connector.

HTTP source is waiting for implementation. If you are interested, you can implement it first. https://github.com/apache/eventmesh/tree/master/eventmesh-connectors#connector-status
If you want to implement GitHub source first, you can first enable it to support REST API, or GraphQL API, or both. Then, after HTTP source is implemented by community, if it is suitable for GitHub source reuse, you can add Webhooks to GitHub source.
If you only want to implement GitHub source that supports Webhooks first, you can create a lightweight HTTP Server in GitHub source.

Ok, I want to work on HTTP source first ! I will post my design here in a few days.

@pandaapo Hi, here is my design. Since I'm new to EventMesh, please let me know if there is any issues!
The HTTP source will be implemented with the native HttpServer.
In source-config.yml,we can configure the path and port. For example, the following configuration creates an API POST http://<IP_ADDRESS>:3000/test. We can call it in various ways (e.g. curl, GitHub Webhooks, etc.) to send messages.
connectorConfig:
    connectorName: httpSource
    path: /test
    port: 3000

The HTTP Source Connector converts the request body into a CloudEvent. For convenience, the request body should be provided in json format.


Add class qualifier to static member access should only apply to other classes

Please make it configurable to add the class qualifier to only to the classes other than the one where this static member is defined.
For example,
class Hello {
   static final String STR="Hello";
   void sayIt() {
     println(STR); // should not qualify it as Hello.STR
   }

   class Other {
      String do() {
         String s = Hello.STR; // should qualify
         return s.replace("l", "y");
       }
   }
}
class World extends Hello {
  void sayIt() {
     println(Hello.STR + " World!"); // should qualify
   }
}

Because I didn't find it useful to have
ThisClassDefinition.log.info("Why so verbose");

Hello @rw00, thank you for you interest in the plugin.
You can submit a PR anytime for this feature. Best way to do that would be to extend the class com.siyeh.ig.style.UnqualifiedFieldAccessInspection that is used in the plugin at com.dubreuia.processors.java.ProcessorFactory#getUnqualifiedFieldAccessProcessor.
Check out https://github.com/dubreuia/intellij-plugin-save-actions#contributing to setup your environment.

Great! I will.
Thank you

Great suggestion @rw00, it's a really much needed feature 👍

Fixed https://github.com/dubreuia/intellij-plugin-save-actions/releases/tag/v1.0.0


Modify Serenity Menu Navigation

Hi there
I am quite new with this framework, I am trying to move the side bar menu (on the left) to be ontop just like the menu in this page i.e. https://github.com/volkanceylan/Serenity/issues
I was looking at the following css less files i.e. control-sidebar.less, sidebar-mini.less, sidebar.less, I made changes and I had no luck. Is there an easier way to achieve this? Also are there templates (in serenity) that can be incorporated on the site?

Sorry, you have to be competent in CSS to achive something like that.


Incomplete identifiers and bad next URI in AnnotationPages?

Take this annotation page referenced from the manifest at https://miiify.rocks/manifest/diamond_jubilee_of_the_metro:
https://miiify.rocks/annotations/diamond_jubilee_of_the_metro?page=0&target=https%3A//miiifystore.s3.eu-west-2.amazonaws.com/diamond_jubilee_of_the_metro/c/3/23b48727-680c-4562-9f6c-c5dc4f75b449%23xywh%3D431%2C429%2C895%2C330
Its id is https://miiify.rocks/annotations/diamond_jubilee_of_the_metro?page=0
Looking at another annotation page from the same canvas, but with a different target:
https://miiify.rocks/annotations/diamond_jubilee_of_the_metro?page=0&target=https%3A//miiifystore.s3.eu-west-2.amazonaws.com/diamond_jubilee_of_the_metro/c/3/23b48727-680c-4562-9f6c-c5dc4f75b449%23xywh%3D437%2C1406%2C898%2C305
The id is identical to the first annotation. This is likely to cause problems for client applications that use the identifier from the dereferenced resource. The easy fix would probably be to include the target request parameter in the id.
Another issue with the annotations is that the next key is also identical for both annotations, in both cases it's https://miiify.rocks/annotations/diamond_jubilee_of_the_metro?page=1, which contains all of the annotations of the complete manifest. I'd argue that the next key should not even be included, since the way annotation pages are used in this manifest, one page only ever contains a single annotation (the one targeting the resource from the target request parameter). Or am I misunderstanding something? In the application I'm currently working on this causes a large amount of requests, since it naively follows the next links and thus fetches the complete set of annotations multiple times, once for each annotation page referenced from the manifest.

Thanks for raising this @jbaiter I am back working on this code so will look at fixing this.

Hi @jbaiter I have addressed the target param issue I hope in this branch https://github.com/nationalarchives/miiify/tree/breaking/v1 and made performance improvements including a new backend storage format called 'pack' if you want to scale more than git. It is a breaking change for the current git storage format though.


NBC Olympics stream unable to extract post url

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like this: [x])
Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.02.26. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2018.02.26

Before submitting an issue make sure you have:

[x] At least skimmed through the README, most notably the FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones
[x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

[x] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '--ap-mso', 'Comcast_SSO', '--ap-username', 'PRIVATE', '--ap-password', 'PRIVATE', 'http://stream.nbcolympics.com/figure-skating-exhibition-gala-standard']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2018.02.26
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.16299
[debug] exe versions: ffmpeg 3.4.2
[debug] Proxy map: {}
[nbcolympics:stream] figure-skating-exhibition-gala-standard: Downloading webpage
[nbcolympics:stream] 204138: Downloading JSON metadata
[nbcolympics:stream] 204138: Downloading JSON metadata
[nbcolympics:stream] 204138: Downloading Provider Redirect Page
ERROR: Unable to extract post url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpfqykkd7x\build\youtube_dl\YoutubeDL.py", line 785, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpfqykkd7x\build\youtube_dl\extractor\common.py", line 440, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpfqykkd7x\build\youtube_dl\extractor\nbc.py", line 434, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpfqykkd7x\build\youtube_dl\extractor\adobepass.py", line 1448, in _extract_mvpd_auth
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpfqykkd7x\build\youtube_dl\extractor\adobepass.py", line 1360, in post_form
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpfqykkd7x\build\youtube_dl\extractor\common.py", line 805, in _html_search_regex
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpfqykkd7x\build\youtube_dl\extractor\common.py", line 796, in _search_regex
youtube_dl.utils.RegexNotFoundError: Unable to extract post url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description of your issue, suggested solution and other information
NBC Olympics stream unable to extract post url

Duplicate of #11257


Failed to create any deployment on playground

This happens because the name field in all deployments is the solution name.

Verified on devnet.
Solution names were fixed and now a name is generated after the prefix instead of the prefix only.
Screencast from 18-06-23 18:08:33.webm


Support custom targets

I'd love it if adding custom targets was supported somehow, with a set of options to pass for various config options and variables and such? That'd be so great!

Any updates on this? Manually maintaining deploy targets through the web interface is becoming increasingly difficult. We have >40 projects.


Generalised compositional sampling interface

The current Gibbs sampler allows us to compose elementary sampling algorithms (e.g. PG, HMC). We may want to generalise this compositional sampling interface. One possible extension is that
g1=Gibbs(HMC(:m,:s), PG(:T)) # assume we have 3 variables in total: s, m, T
g2=Gibbs(HMC(:m), PG(:s, :T))
# Generalised compositional inference interface, we haven't implemented this yet.
g3=Gibbs(g1,g2,g2)

sample(model, g3)

I think we need to update the current way of generating group_id to achieve this. Currently the gid is created inside Gibbs constructor, which will cause problem in this cause as 'base samplers' will have same IDs. We need somehow generate unique IDs for each sampler. Possible ways are

use gensym()
use some global counting on sampler constructors

Closing now since it has been implemented.

Closing now since it has been implemented.


Finalize ptr in big array when array GC'd

In the implementation of get (and similar functions) in ocaml-rocksdb, there is a GC finalizer registered for a pointer contained in the Bigstring.t result.
We were seeing segfaults when such Bigstring.t values were deserialized after a get, even though the identical values could be successfully deserialized before being placed in the database.
In this PR, the contained pointer is finalized when the containing Bigstring.t is GCed, not independently.
The segfault occurred when running the TF persistence tests, not on every run, but frequently.
This change may also fix the "mutant diff" bug we've seen in these tests, where the scan state after deserialization is not the one expected, possibly due to being overwritten after a GC cycle.
Update: the segfault and mutant diff bugs in the TF persistence tests no longer seem to occur with this change (tried about 8 runs).

The changes look good. I want to spend a little time digging into the implementation of bigarray_of_ptr to understand the details of the resource management problem here. Since we're not using the argument of finalise, I think we can use the finalise_last function instead. Not sure if there's any concrete benefit of doing that.

I think we can use the finalise_last function instead.

I'll make that change.

Update: the mutant diff bug seems to still occur (both @johnwu93 and I have seen it).

string_from_ptr deconstructs the res argument and doesn't hold onto the original object, so the segfault makes sense. This fix makes sense.


Ensure we create a stable hash for the deps PLT

The contents of the dependencies lockfile is a map, which may have different layouts in memory depending on when it was loaded, even if the contents are equivalent. Before we term_to_binary for the hash, turning it into a sorted list will ensure consistency.

This is affecting my daily work, I'm merging.


[POC] Pass request context to backend methods

POC for https://github.com/rclone/rclone/issues/7645

Here is an idea for you - rather than passing http.Request to every method it might be better done by adding ctx context.Context to each method (which it should have already really) and adding the request to the context.

@saw-jan I've now moved rclone over to using the fork in its new place and adjusted the calling parameters to add the new ctx parameters so its all ready for the next part.

@saw-jan I've now moved rclone over to using the fork in its new place and adjusted the calling parameters to add the new ctx parameters so its all ready for the next part.

Thank you. I will update the rclone PR


Whole word pattern?

grep --word-regexp:
Select  only  those  lines containing matches that form whole words.  The
test is that the matching substring must either be at  the  beginning  of
the line, or preceded by a non-word constituent character.  Similarly, it
must be either at  the  end  of  the  line  or  followed  by  a  non-word
constituent  character.  Word-constituent characters are letters, digits,
and the underscore.

Especially when you cannot do spaces1 *> pattern *> spaces1 without strict #62

I think in this case the only solution is to introduce a synthetic space at the beginning of the line before matching:
example = do
    line <- input "t.txt"
    _:_  <- return (match (spaces1 *> pattern *> spaces1) (" " <> line)
    return line

The problem is that there is no Pattern that you can use to detect if you're at the beginning of the input.  The reason why is that Patterns do not store consumed input.
I could modify how Pattern works so that it does store consumed input and then the solution would be more elegant because you could use a begin combinator:
-- | Match the beginning of input
begin :: Pattern ()

... like this:
(begin <|> spaces1) *> pattern *> (eof <|> spaces1)

Give me some more time to think about it.

What about prefix & suffix?
 :: Pattern a -> Pattern a  -- Defined in ‘Turtle.Pattern’

So I gave this more thought and I decided not to implement this.  I decided to err on the side of keeping the implementation of Pattern simple, even if that means that it is missing a few features.


UofT DSI | SQL assignment ("design a logical model" for a bookstore)

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
My assignment “bookstore ERD” submission.
What did you learn from the changes you have made?
I learnt/practiced:

Designing a logical model
Critiquing logical models
Privacy implications
Type 1 & Type 2 Slowly Changing Dimensions

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
Yes - please see details on what I considered to include and why in the .md file submission.
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
Yes - imagining scenarios, and making decisions for a hypothetical bookstore.
How were these changes tested?
N/A. The ERDs were drawn using Draw.io.
A reference to a related issue in your repository (if applicable)
N/A
Checklist

[X] I can confirm that my changes are working as intended

Assignment marked.

Thanks Sidra for having marked my assignment, I will close the Pull Request now.


Page 117 Exercise 3.31 Exercise 3.32

Exercise 3.31: Write a program to define an array of ten ints. Give each element the same value as its position in the array.
Exercise 3.32: Copy the array you defined in the previous exercise into another array. Rewrite your program to use vectors.

Solved.
https://github.com/coder52/Cpp-Primer-Solutions-2013/blob/b983874699c69967dc33fe4196f4ee2611602cce/page_117.h

Goog Job.


Seperate types.

From the very beginning, canvideo has a type folder, full of many different type related files. This should be a seperate package, so that other people can also use it and it can be independent, and reworked.

Awaiting Issues
These are the list of issues that this issue is waiting for.

#90 - Since this already has progress, we should wait until there aren't multiple branches.

'Types' is unneccessary


Seatunnel with Spark: Caused by: java.lang.OutOfMemoryError: Java heap space

Search before asking

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

What happened
java.sql.SQLException: Java heap space
SeaTunnel Version
apache-seatunnel-incubating-2.1.3
SeaTunnel Config
env {
  execution.parallelism = 4
  job.mode = "BATCH"

  spark.app.name = "SeaTunnel"
  spark.executor.instances = 2
  spark.executor.cores = 100
  spark.executor.memory = "8g"

}

source {
    jdbc {

    }
}

transform {

}

sink {
   Console {}
}

Running Command
./bin/start-seatunnel-spark.sh  --master local[4] --deploy-mode client  --config ./config/mysql-to-pg.conf

Error Exception
java.sql.SQLException: Java heap space
        at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)
        at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
        at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:916)
        at com.mysql.cj.jdbc.ClientPreparedStatement.executeQuery(ClientPreparedStatement.java:972)
        at org.apache.spark.sql.execution.datasources.jdbc.JDBCRDD.compute(JDBCRDD.scala:304)
        at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:346)
        at org.apache.spark.rdd.RDD.iterator(RDD.scala:310)
        at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:52)
        at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:346)
        at org.apache.spark.rdd.RDD.iterator(RDD.scala:310)
        at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:52)
        at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:346)
        at org.apache.spark.rdd.RDD.iterator(RDD.scala:310)
        at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:52)
        at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:346)
        at org.apache.spark.rdd.RDD.iterator(RDD.scala:310)
        at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:90)
        at org.apache.spark.scheduler.Task.run(Task.scala:123)
        at org.apache.spark.executor.Executor$TaskRunner$$anonfun$10.apply(Executor.scala:411)
        at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1360)
        at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:417)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.OutOfMemoryError: Java heap space

Flink or Spark Version
spark-2.4.8-bin-hadoop2.7
Java or Scala Version
No response
Screenshots
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

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

This bug maybe fixed in #4502.

This bug maybe fixed in #4502.

Cool, thanks, so which version should I use?

This bug maybe fixed in #4502.

Cool, thanks, so which version should I use?

It will released in 2.3.2, and has not been released util now. You can pull dev branch from github, and then setup. Setup

This bug maybe fixed in #4502.

Cool, thanks, so which version should I use?

It will released in 2.3.2, and has not been released util now. You can pull dev branch from github, and then setup. Setup

Due to the poor connection(GFW), it take a lone time to download all the dependices from maven repo, do you have a release schedular for this fix? then I'll try it again later, thanks.

You can ceate codespace from dev branch. It will help you.

I am having a similar failure with ver.2.3.2, under java 17.0.7 2023-04-18 LTS.
2023-07-11 15:47:14,211 WARN  org.apache.seatunnel.engine.server.TaskExecutionService - [localhost]:5801 [seatunnel-495998] [5.1] Exception in org.apache.seatunnel.engine.server.task.TransformSeaTunnelTask@67644eb2
java.lang.OutOfMemoryError: Java heap space
...
2023-07-11 15:47:12,347 ERROR org.apache.seatunnel.engine.server.dag.physical.PhysicalVertex - Job SeaTunnel_Job<PHONE_NUMBER>82382337), Pipeline: [(1/1)], task: [pipeline-1 [Source[0]-JDBC-default-identifier]-SourceTask (1/2)] end with state FAILED and Exception: java.lang.OutOfMemoryError: Java heap space

My config is:
env {
  # You can set SeaTunnel environment configuration here
  execution.parallelism = 2
  job.mode = "BATCH"
  checkpoint.interval = 10000
  #execution.checkpoint.interval = 10000
  #execution.checkpoint.data-uri = "hdfs://localhost:9000/checkpoint"
}

source {

  JDBC {
    url = "jdbc:mysql:<>"
    driver = "com.mysql.cj.jdbc.Driver"
    user = <>
    password = <>
    query = "SELECT from <>"
    parallelism = 2
    fetch_size = 500
    }
}
sink {
  localFile {
    path="test_log"
    file_format_type="parquet"
    }
}

The expected parquet folder is not being created.

I am having a similar failure with ver.2.3.2, under java 17.0.7 2023-04-18 LTS.
2023-07-11 15:47:14,211 WARN  org.apache.seatunnel.engine.server.TaskExecutionService - [localhost]:5801 [seatunnel-495998] [5.1] Exception in org.apache.seatunnel.engine.server.task.TransformSeaTunnelTask@67644eb2
java.lang.OutOfMemoryError: Java heap space
...
2023-07-11 15:47:12,347 ERROR org.apache.seatunnel.engine.server.dag.physical.PhysicalVertex - Job SeaTunnel_Job<PHONE_NUMBER>82382337), Pipeline: [(1/1)], task: [pipeline-1 [Source[0]-JDBC-default-identifier]-SourceTask (1/2)] end with state FAILED and Exception: java.lang.OutOfMemoryError: Java heap space

My config is:
env {
  # You can set SeaTunnel environment configuration here
  execution.parallelism = 2
  job.mode = "BATCH"
  checkpoint.interval = 10000
  #execution.checkpoint.interval = 10000
  #execution.checkpoint.data-uri = "hdfs://localhost:9000/checkpoint"
}

source {

  JDBC {
    url = "jdbc:mysql:<>"
    driver = "com.mysql.cj.jdbc.Driver"
    user = <>
    password = <>
    query = "SELECT from <>"
    parallelism = 2
    fetch_size = 500
    }
}
sink {
  localFile {
    path="test_log"
    file_format_type="parquet"
    }
}

The expected parquet folder is not being created.

Do you have the same problem when using the spark engine?

I can use only -m local, having no access to sparc or kafka.


feat: add xdebug 3.2.0RC2 release

update xdebug with release 3.2.0RC2

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


WebView failed to load web page with ERR_UNKNOWN_URL_SCHEME error.

Hi, i'm using webview_flutter: ^0.3.14+1.
Webview can't load webpage https://m.bilibili.com/video/av57346110.html correctly and shows Webpage not available with The webpage at bilibili://video/5734610?h5awaken=cHzp... could not be loaded because: net::ERR_UNKNOWN_URL_SCHEME.
Steps to Reproduce
Minimal codes to reproduce:
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';

void main() => runApp(new MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => new _MyAppState();
}

class _MyAppState extends State<MyApp> {

  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      home: new Scaffold(
        appBar: new AppBar(),
        body: Container(
          child: WebView(
            initialUrl: "https://m.bilibili.com/video/av57346110.html",
            javascriptMode: JavascriptMode.unrestricted,
          ),
        ),
      ),
    );
  }
}

flutter analyze
No issues found! (ran in 1.9s)

flutter doctor
[√] Flutter (Channel stable, v1.9.1+hotfix.2, on Microsoft Windows [Version 10.0.18362.356], locale zh-CN)
    • Flutter version 1.9.1+hotfix.2 at C:\Programs\flutter
    • Framework revision 2d2a1ffec9 (3 weeks ago), 2019-09-06 18:39:49 -0700
    • Engine revision b863200c37
    • Dart version 2.5.0

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at C:\Users\Administrator\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    • All Android licenses accepted.

[√] Android Studio (version 3.5)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 38.2.3
    • Dart plugin version 191.8423
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[√] VS Code (version 1.37.1)
    • VS Code at C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.4.1

[√] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)

• No issues found!

I just tried it running on the latest master and it loads that web site but then it seems this site does a redirect or something like that because a moment later I see this:

And this is indeed a invalid URL
Please ask questions like that on stackoverflow. We cannot provide personal support here. Thanks!

@kleon1024 You can try my plugin flutter_inappwebview.
The problem here is that https://m.bilibili.com recognizes that you are using a phone and, so, it wants to open its Android app using bilibili://video/.... The webview should implement something like shouldOverrideUrlLoading in java for Android (in my plugin this event is available and it has the same name!) to take control and then open the bilibili App. But if you want open the website in the webview, a solution could be to set a different user agent as if it were a browser from a PC and not from a phone.
With my plugin, it can be done in this way:
import 'dart:async';

import 'package:flutter/material.dart';

import 'package:flutter_inappwebview/flutter_inappwebview.dart';

Future main() async {
  runApp(new MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => new _MyAppState();
}

class _MyAppState extends State<MyApp> {

  @override
  void initState() {
    super.initState();
  }

  @override
  void dispose() {
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        home: InAppWebViewPage()
    );
  }
}

class InAppWebViewPage extends StatefulWidget {
  @override
  _InAppWebViewPageState createState() => new _InAppWebViewPageState();
}

class _InAppWebViewPageState extends State<InAppWebViewPage> {
  InAppWebViewController webView;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
            title: Text("InAppWebView")
        ),
        body: Container(
            child: Column(children: <Widget>[
              Expanded(
                child: Container(
                  child: InAppWebView(
                    initialUrl: "https://m.bilibili.com/video/av57346110.html",
                    initialHeaders: {},
                    initialOptions: InAppWebViewWidgetOptions(
                        inAppWebViewOptions: InAppWebViewOptions(
                          userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36",
                          debuggingEnabled: true,
                        ),
                      androidInAppWebViewOptions: AndroidInAppWebViewOptions(
                        initialScale: 100
                      )
                    ),
                    onWebViewCreated: (InAppWebViewController controller) {
                      webView = controller;
                    },
                    onLoadStart: (InAppWebViewController controller, String url) {

                    },
                    onLoadStop: (InAppWebViewController controller, String url) {

                    },
                  ),
                ),
              ),
            ]))
    );
  }
}

Also, you need to set initialScale option to 100.
This is the result:

@pichillilorenzo On Android, the method shouldOverrideUrlLoading is a bool, therefore you can return false whenever you want to prevent the url to be loaded, how would it work with your library?

@pichillilorenzo On Android, the method shouldOverrideUrlLoading is a bool, therefore you can return false whenever you want to prevent the url to be loaded, how would it work with your library?

Is there any javascript or PHP method that can be used inside any Webview to perform
window.location.replace('link')


onImageLoaded called twice

Hi,
Just wondering if there's a schedule to fix the bug below
ReactCrop.js#L186

@tarikakyol Are you experiencing a double load? I'm trying to remember how to reproduce a case where this conditional happens - this.imageRef.complete || this.imageRef.readyState (in normal cases that doesn't actually seem to happen despite the comment)

I've removed this comment as I think the double load is no longer happening

Can we open this back up?  I can reproduce it with something simple like:
 <ReactCrop
            onImageLoaded={() => console.log("normal remote image")}
            src="https://cdn.vox-cdn.com/thumbor/HGTK_2UXYn3szdSim2gP6d-YZNU=/0x0:3200x2128/1200x800/filters:focal(1344x808:1856x1320)/cdn.vox-cdn.com/uploads/chorus_image/image/58121353/GettyImages_870730432.0.jpg"
          />

The console log is printed 2x

@mkadin Can you make a reproducible example? As you can see here it's being called once - https://codesandbox.io/s/k37l20rp15

Hmm, our example is part of a much more complicated component that I can't share.  Give me some time to try and boil it down.

Turns out to be a bug on our end...sorry for the trouble.

Ok good ;) glad figured it out
On Mon, 11 Feb 2019 at 00:52, Mike Kadin<EMAIL_ADDRESS>wrote:

Turns out to be a bug on our end...sorry for the trouble.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/DominicTobias/react-image-crop/issues/107#issuecomment-462197922,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAuZ-puzJdjE04Zq6H3e0gypukyRusBqks5vML7DgaJpZM4Ojou8
.


Works partially

Hi, I'm trying to use the extension but not everything seems to work for me.
I've created an empty project with just a simple Typescript file and a Fluent file.
What works:

Syntax highlight
Show syntax errors

What does not work:

Code Action to extract a string to Fluent files (menu item does not show)
Hover support on messages (no tooltip)
Breadcrumbs support (just the file path breadcrumb)
Go to message definition from a reference

Am I missing something or doing something wrong?

@marcselman Thanks for open this issue.
I checked now, and it looks like that some new VSCode version broke the extension =/
I can try to fix it later, but if you could help me would be nice. I'm not using Fluent for a while, and so I didn't notice before that the extension was broken.

Sure, I have no experience with writing VS Code plugins. How can I help?

You can clone this repository, open the code source on your VSCode and then run the debugger. It'll open a new VSCode instance with the extension running. It should work out of the box.
The features that aren't working are provided by the active function. So you could check why it's working correctly.
You can set a breakpoint there, check if there are some errors raising or something like that.
I'm guessing that it isn't working anymore because of Workspace Trust - but it's just a guess.

@marcselman Hey, I released a new version. Please, can you check if it fixed the issue?

@macabeus Tested, and works great now! Sorry that I didn't find time to help you out. But thanks for fixing it!


Excel Compatibility: or Function

Summary
IronCalc allows =or() (no parameters), while Excel does not. This means it's possible to export xlsx files from IronCalc that Excel can't load correctly.
IronCalc Behaviour

or takes any number of parameters, =or() returns FALSE.

Excel Behaviour

The or formula takes a minimum of 1 parameters
In Excel (365) if you type in =or() you get an error and it doesn't accept the formula:

If you you load an xlsx containing =or() exported from IronCalc, Excel will treat the file as corrupted:

If you recover the file, it replaces the formula with the text FALSE

Hi there, I found this while going through and adding more tests for functions (we discussed this on Discord). There are likely more cases like this, but I haven't looked yet.
If the fix is simply to update if to have the same parameter requirements as Excel, I'm happy to submit a PR.

Updated the Issue description with "LibreOffice Calc Behaviour", "Underlying Issue", and "Potential Solutions" sections.

Hi @gian-hancock , thanks for the detailed issue and description. IronCalc's current solution is to throw #ERROR!.
Regrettably this is not implemented correctly in functions like OR. I am not too worried about producing workbooks that have some issues when opening in Excel as they are  broken in the first place.
The fix in this case is:
if args.is_empty() {
 return CalcResult::new_error(Error::ERROR, cell, "OR needs at least one argument".to_string());
}

in:
https://github.com/ironcalc/IronCalc/blob/main/base/src/functions/logical.rs#L139
and add a test similar to:
https://github.com/ironcalc/IronCalc/blob/main/base/src/test/test_fn_financial.rs#L52
come the day in the future we could indicate some Excel incompatibilities.
If you feel like doing a PR for the local function, that would be awesome!
This is what google sheets does:

Zoho returns #NAME! which is weird.
I actually like IronCalc's behaviour. Returning #ERROR! signalling an error in the formula, same behaviour as Calc.
PS: I will think a bit more about what to do on saving.


Dynamically adjust the number of shards

Currently the number of shards is hardcoded in the kubernetes manifest file.  And since the hardcoded number is 32, having more than 32 servers won't do us any good.
We should instead dynamically set the number of shards to something like the number of servers * 5.
@jdoliner 1.0 worthy?

I realize that this is a little more complicated than I initially thought.  Since each DiffInfo is tied to a shard on creation, we need to ensure that, by dynamically adjusting the number of shards, we don't accidentally create dangling DiffInfos that belong to shards that no longer exist.
@jdoliner am I right in understanding that there is no fundamental reason why a DiffInfo has to be tied to a certain shard?  As in, we could just as well hash a DiffInfo and modulo it to a certain shard.

This would be very complicated to change and I'm not sure I understand the reasoning for wanting to change it. Having a static number of shards known throughout the cluster makes a number of things easy and there are a lot of difficulties which switching this number dynamically. For example, suppose we double our shard count, the DiffInfo for shard 0 now needs to be split in half because half of the files it has info for are now supposed to be stored in another shard. Doing this safely using object storage semantics is going to be really tough because you need to overwrite the old version of the DiffInfo with a new version. If that write fails then you don't have a way to recover the data that was there. So you'll need to do something like write a copy of the file somewhere else just in case the write fails and then delete it.
So what can we do here?
First we should identify the actual issues that we're trying to solve:
The first issue is that we can only use 32 nodes with the current setup. That first order problem is pretty easily solved by upping the number of shards, but then we start to hit some other issues. They are:

each shard requires 8 bytes per shard every time roles are assigned, this is particularly bad when there are many more shards than nodes
each commit will write a DiffInfo per shard, even if they're empty, this can lead to a write explosion

1 could probably be substantially aided by assigning ranges of shards rather than single shards.
2 is trickier though.
In terms of actions on this issue, I think for the time being we should table this. The issues here are definitely performance and for 1.0 I just want to focus on correctness. After 1.0 ships we'll start doing more performance testing and we'll hopefully hit some of these issues through use and will then have a better idea how to fix them.

I think we're going to do away with shards in the pfs refactor so this no longer applies. Closing.


merge from template-sync/template-arlac77-github

package.json

chore(deps): add ^15.6.10 remove ^15.6.9 (devDependencies.npm-pkgbuild)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>6
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>0:
0.0%

Covered Lines:
96

Relevant Lines:
96

💛  - Coveralls


Local Community Building Points

People get to verify each other at local events and exchange QR codes for community building points.
Only residents and citizens
Ensure physical proximity on phone <== hmm this seems to be a hard problem
How do we prove two people or two accounts, for abstraction, are in physical proximity?
GPS / IP on phone - can be faked but maybe a good starting point
Only allow 1 / month so it's not very attractive as a hacking target
Penalties for hacking it
Do some data transfer per bluetooth or visual and count on latency?
==> Do research on proof of physical presence

IDK how to do an unhackable physical presence check that preserves location privacy