implement new protocol for sharing files between devices

The idea behind this is to allow both devices to be able to share and receiver files from each other on one connection (or something like that).
Benefit for this may nclude:

both devices can do anything the other can do
ability to both scan for available devices
both can send and receive
either by only just downloading or uploading

Method
both devices will host individual httpservers on indeividual ips and on different ports. device A server starts before the device B so that device B can notify device A of its assigned port and device A can choose to join if it plans on also receiving from device B without starting another connection giving both devices the ability to send and receive. making both devices host and client to the other.
This is still experimental
Another method to allow both devices to receive and send would be to use the combination of httpserver and serversocket meaning only one device will host (both the httpserver and socket server) and on the client side, the client only listens through a socket connection to know when the host wants to share a file and the client will then make a request to pull the file (download) or push the file (upload) to the server (Also just still an experiment/idea)

https://github.com/kannel-outis/impulse/assets/32224274/ad3070dd-d58e-4b39-aa9c-b699dd3e97a8

https://github.com/kannel-outis/impulse/assets/32224274/c4dc6c2b-39c1-4ef5-9b78-585a6a66e5a9
connection update with app ui
in commits fcf07fe5f9b66fb45955c98429efb25122fe000d and 1eb7381bdcf7537adc2c677ec4423627e3fe3bce


GO term specificity proposal 3, some places where complexes could be 'pruned' in GO

Protein complexes that are not functionally relevant:
This looks like it could be an example:
http://www.ebi.ac.uk/QuickGO/GTerm?id=GO:0034457#term=info
A protein complex that forms a subcomplex of the 90S preribosome. In S. cerevisiae, it is composed of Mpp10p, Imp3p and Imp4p.

cohesin core heterodimer ( I think this is a non-functional assembly intermediate?)

location specific versions of complexes (where the composition is IDENTICAL)
O:0031595   nuclear proteasome complex
GO:0000799 nuclear condensin complex
GO:0000777  condensed chromosome kinetochore
GO:0000941 condensed nuclear chromosome inner kinetochore
GO:0034990 nuclear mitotic cohesin complex
(maybe here we could  use extension part_of location?)
(Not that we need to keep the mitotic and meiotic versions of these complexes because the composition is DIFFERENT)
a cell-type-specific variants? (presumably these are the same composition usually with cell type specific isoforms?)

TAF4B-containing transcription factor TFIID complex
Definition
A transcription factor TFIID complex that contains the TBP-associated factor TAF4B (also known as TAFII105 in human), a cell-type-specific variant of TAF4.
More later....

@pgaudet @thomaspd @dosumis

From internal discussion:
"Agree that this is actually a mixed bag of proposals.   I support the removal of activity terms defined only with reference to particular protein of protein complex:
fubar activity = the activit(y/ies) of the fubar complex.  In these cases, annotation needs to be to a more generic term for the activity in question, with the protein or complex named in an extension  (see my comment on https://github.com/geneontology/go-ontology/issues/12420)
OTOH, I think specifying a target of an activity can be useful & we need to tread carefully in removing these terms."  -dos

This ticket wasn't about the terms like "APC activator activity" etc. ?

Pasted comment from Tanya is by me - but looks like it ended up on the wrong ticket.
Agree that location and cell-type specific variants should be canned unless their composition is distinct.

@ValWood
What do you propose here ?

I don't think 1 or 3 happen so much now.
I think it would be better to  have only one version of the same component
but it doesn't bother me so much. It's low priority.
Close?


C# StringExtensions has some "missing methods"

Godot version:
3.1.1 C# x64
OS/device including version:
Windows 10/7
Issue description:
Attempted to access a missing method.
It happens for all of the methods, that would call this enlisted methods.
Stackcalls without a try/catch
Steps to reproduce:

Setup a basic C# Mono project.
Try using previously mentioned methods.

Minimal reproduction project:
2D_Test.zip

Can anyone still reproduce this bug in Godot 3.2.3 rc3 or any later release?

Closing due to lack of update. Please comment if you can still reproduce this issue in the latest stable version of Godot.


Add a pointer to dstep

Imho htod shouldn't be documented on dlang.org, because

it's not part of the release archives
it's closed source
it's Windows-only
there are more modern tools like dstep

As removing the documentation might be a bit drastic, I went with adding a warning.

Ping @CyberShadow and @andralex . So can we all agree that htod is super-outdated?
Maybe we can even remove it from the docs?
BTW funnily in the meantime Atila even posted his D  tool ...

@atilaneves include a link to your tool as well?

Please link to the wiki instead:
https://wiki.dlang.org/Bindings#Binding_generators

@CyberShadow good idea feel free to amend

I added dpp to the wiki.

FYI htod is the first tool on that list in the wiki.

@jacob-carlborg I know, but logging to the wiki currently doesn't work for me:

Maybe someone else can update the list (i.e. making sure that dstep + dpp are at the top)?

Maybe someone else can update the list

Done.


The MP absolute=true annotation field is not removing package prefix for Gauge metric

Helidon Version: 1.2.0
Helidon MP
JDK version: 1.8.0_211
OS: MacOS 10.13.6
Problem Description
The MP Gauge Metric absolute field is set to true, but the metric name still has the path prefix.   This problem does not happen if I change the metric to Counter.
Here is the Microprofile spec file:///Users/pmackin/Downloads/metrics_spec-1.1%20(1).html#_fields
Steps to reproduce
Create  the sample class below. Add this class to the Quickstart MP to test this.
Build and run the application then issue the following:
curl http://localhost:8080/metrics/application
The output is
{
"io.helidon.examples.quickstart.mp.GreetingCardsAppMetrics.appUpTimeSeconds": 6
}
package io.helidon.examples.quickstart.mp;
import java.time.Duration;
import java.util.concurrent.atomic.AtomicLong;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.context.Initialized;
import javax.enterprise.event.Observes;
import org.eclipse.microprofile.metrics.annotation.Gauge;
@ApplicationScoped
public class GreetingCardsAppMetrics {
private AtomicLong startTime = new AtomicLong(0);
public void onStartUp(@Observes @Initialized(ApplicationScoped.class) Object init) {
startTime = new AtomicLong(System.currentTimeMillis());
}
@Gauge(unit = "TimeSeconds", absolute = true)
public long appUpTimeSeconds() {
return Duration.ofMillis(System.currentTimeMillis() - startTime.get()).getSeconds();
}
}

Registration of gauges uses a completely different codepath. This looks like an issue in MetricsCdiExtension::recordAnnotatedGaugeSite. We should consider using MetricUtil.


[M1] Always upload to github

No need to limit this one to just nighly/tagged pushes

closing since already merged


Can't modify partitions on mounted Switch nand

Whenever I try to modify any of the partition (.img files) from a Switch's mounted NAND I get an error about not being able to modify it, even with sudo. The permissions of all of them seem to show it has write access, but I can't actually write to it.

Idk maybe I was just being dumb I'm super tired but it works fine now.


Add FIAM M44 release notes

Release notes for callbacks feature

@christibbs Should this be updated and land for M44?

@paulb777 good catch. Just updated.


Remove titlebar but keep rounded corners

Is there any way to remove window titlebar but keep standard rounded corners?
It'd be nice to see something like this instead:

Not right now. What exactly do you hope to see? A thinner title bar, or just MacVim without title bar but still show a draggable window with close/minimize buttons?

No, I mean no title bar at all without any buttons, something like kitty terminal with hide_window_decorations titlebar-only setting written in config.
Like on this screenshot, kitty terminal does not have any titlebar decorations and buttons, while macvim have them.

If I want to disable them, the only option is to disable title bar completely, but it looks pretty bad because macvim becomes the only app without standard rounded corners.

It's even more noticeable when I'm using window border based focus in the tiling window manager:

Hmm, in Kitty, when you turn on that setting, is the top part (where the title bar is) draggable?

Seems like it's not draggable. It's still possible to resize the window, but probably there's no way to move it around without some kind of third-party window manager, I assume.

Right. So basically the only difference is that it has rounded corners. I took a look and have a rough idea how to implement it. Will get to it a little bit later when I have time.

Thanks for the support!

Seems like it's not draggable. It's still possible to resize the window, but there's no way to move it around without some kind of third-party window manager, I assume.

Long-time user of both MacVim and Kitty. Just wanted to note that the window in Kitty is still draggable. If you hover on the left or right edge, and drag vertically, instead of horizontally to resize - it will drag the window.
Likewise, hover over the top or bottom window edge and drag horizontally.

I think it's a standard Mac thing – I can do the same with the majority of my apps. It just doesn't look like you can do it because the cursor switches to resizing arrows.


How to uninstall?

I accidentally installed it on Live, which files do I remove to restore it back to "unmodified for trainer"?
Thanks :)

simply use the installer: installer uninstall


UI Kitten Button status color change with custom-theme

💬  Question
Hello,
I'm using the UI Kitten button component .
But I want to ask a question.
I added custom-theme.json to my project.
While changing the color of the button component, we give the status prop "basic, primary, success, info, warning, danger or control" values, but I guess it uses color-primary-500 as this color.
  <Button status="primary" >Button 1</Button>  //-> working
  <Button status="primary-200" >Button 2</Button> //-> not working.

I want to use 100 200 300 400 500 600 700 800 colors in this json file.
Is it possible ?
Examples are these values.
{
  "color-primary-100": "#D6E4FF",
  "color-primary-200": "#ADC8FF",
  "color-primary-300": "#84A9FF",
  "color-primary-400": "#6690FF",
  "color-primary-500": "#0066FF",
  "color-primary-600": "#254EDB",
  "color-primary-700": "#1939B7",
  "color-primary-800": "#102693",
  "color-primary-900": "#091A7A",
  "color-success-100": "#EFFBCF",
  "color-success-200": "#DCF8A1",
  "color-success-300": "#BDEA6F",
  "color-success-400": "#9CD649",
  "color-success-500": "#70BC17",
  "color-success-600": "#58A110",
  "color-success-700": "#42870B",
  "color-success-800": "#306D07",
  "color-success-900": "#225A04",
  "color-info-100": "#D9FFFD",
  "color-info-200": "#B4FDFF",
  "color-info-300": "#8EF4FF",
  "color-info-400": "#72E8FF",
  "color-info-500": "#44D3FF",
  "color-info-600": "#31A7DB",
  "color-info-700": "#227FB7",
  "color-info-800": "#155B93",
  "color-info-900": "#0D417A",
  "color-warning-100": "#FFF5D7",
  "color-warning-200": "#FFE9B0",
  "color-warning-300": "#FFDA88",
  "color-warning-400": "#FFCB6B",
  "color-warning-500": "#FFB33A",
  "color-warning-600": "#DB902A",
  "color-warning-700": "#B76F1D",
  "color-warning-800": "#935212",
  "color-warning-900": "#7A3D0B",
  "color-danger-100": "#FFE4D5",
  "color-danger-200": "#FFC2AB",
  "color-danger-300": "#FF9881",
  "color-danger-400": "#FF7161",
  "color-danger-500": "#FF312D",
  "color-danger-600": "#DB202D",
  "color-danger-700": "#B7162F",
  "color-danger-800": "#930E2E",
  "color-danger-900": "#7A082D"
}

UI Kitten and Eva version

Package
Version

@eva-design/eva
2.2.0

@ui-kitten/components
5.3.1

Specific styles can be applied using useTheme:
https://akveo.github.io/react-native-ui-kitten/docs/design-system/use-theme-variables#declare-custom-component

Specific styles can be applied using useTheme: https://akveo.github.io/react-native-ui-kitten/docs/design-system/use-theme-variables#declare-custom-component
I can change its style, but there is no dark color effect when I click it. This is what I want to do.
Like using 10 colors instead of 5 main colors


No Comments

I am currently working to replace the video on YouTube with an embedded video from "yout-ube.com". This will allow you to browse comments and recommendations. Though, I am unsure if it will add to your watch history.

Yay, there is now the ability to replace videos with embeds!!!

Comments can now be accessed!


Registration parameters T1-T2

Following along with Julien's SCT course on Youtube, I have made some _seg.nii.gz and _seg_labeled_discs.nii.gz masks of a T1w and T2w image (see script). Using these SC/disc masks, I now want to register these images.
I (blindly) copied the default parameters of sct_register_to_template and am now using them to call sct_register_multimodal. In this instance, what would be a more suitable/sensible set of parameters?

given that we are dealing with isotropic resolution images, with high information content, i would forget about segmentation and vertebral labeling, and first try simply running ANTs (ie: without axial in-plane restriction), e.g., with rigid followed by SyN (with few iterations to keep it smooth).
p.s.: if you don't have ANTs but you have SCT, you can call ANTs with isct_antsRegistration
Another way to run ANTs is via SCT's sct_register_multimodal, so you can benefit from the QC output. In that case, you need to set the flag -param deformation=1x1x1 to make sure you include Tz transformations.

After a fair few experiments, I am now using a single pass of affine registration and am getting decent results (see
qc_reports.zip) on one image. When applying the resulting warp fields onto SC annotation of T1, it seems to map much better onto T2 images.
If this is satisfactory, is the next step now to co-register the entire dataset and do a large QC pass to see if everything is okay? Scripts to reproduce the registration are all pushed to the lve/hemis branch.

as discussed in internal meeting, the next steps for fair evaluation could be:

open PR so code could be reviewed and results reproduced by the team
segment T1 and T2, register with scenario X, apply registration to T1_seg,  compute dice (eg sct_compute_dice) between T2_seg and T1_seg_reg, output in csv, each row one subject, and then compute stats across scenarii
run on joplin using sct_run_batch

As we discussed in this week's meeting, segmentation based registration (centermass+some low iteration affine registration) performs well. As per Julien's advice, I also performed image based registration with slicereg + a Gaussian ROI mask. While this quantitatively performs worse (dice score 0.7791 for centermass versus 0.7033 for slicereg), they qualitatively look quite similar, as can be seen in these QC reports. @jcohenadad Do you have an opinion on what looks better?
I'll move on to getting all of the segmentation for the data that can be automatically generated and then co-registering everything to T2 as soon as we agree on the optimal parameters.

@leandervaneekelen i'll have a look at the reports-- in the meantime maybe it would make sense to transfer that discussion in the hemis repos?


SnackBar content rebuilds on Route changes

Steps to Reproduce

Clone the flutter_playground repo
In main.dart, uncomment the line that says return const AnimatedSnackBarsScreenOne();
Run the app
Click on the FAB and then navigate from screen one -> screen two -> screen one

Expected results:
I've added a FadeInTransition to the content of my SnackBar. Ideally, I'd like the message to fade in once and then remain in the SnackBar without changing.
Actual results:
The fade in animation will run the first time the SnackBar is opened but each time the route changes the animation runs again. The SnackBar remains on screen appropriately since I am using the ScaffoldMessenger to show the SnackBar.

[        ] Installing build/app/outputs/flutter-apk/app.apk...
[        ] executing: /Users/josephmuller/Library/Android/sdk/platform-tools/adb -s emulator-5554 install -t -r /Users/josephmuller/Dev/apps/flutter_playground/build/app/outputs/flutter-apk/app.apk
[ +218 ms] D/FlutterBranchSDK(12829): BranchReferralInitListener - params: {"+clicked_branch_link":false,"+is_first_session":false}
[ +313 ms] Performing Streamed Install
                    Success
[        ] Installing build/app/outputs/flutter-apk/app.apk... (completed in 531ms)
[        ] executing: /Users/josephmuller/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell echo -n 1532ca81fc6bfa00c48b5d83305fe0dc6c3acaf2 > /data/local/tmp/sky.com.mullr.flutter_playground.sha1
[  +36 ms] executing: /Users/josephmuller/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[ +208 ms] --------- beginning of system
                    09-11 18:40:11.791 I/ActivityManager(  503): Start proc 17177:com.android.vending/u0a99 for broadcast {com.android.vending/com.google.android.finsky.packagemanager.impl.PackageMonitorReceiverImpl$RegisteredReceiver}
[   +5 ms] executing: /Users/josephmuller/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell am start -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x20000000 --ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true
com.mullr.flutter_playground/com.mullr.flutter_playground.MainActivity
[  +79 ms] Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x20000000 cmp=com.mullr.flutter_playground/.MainActivity (has extras) }
[        ] Waiting for observatory port to be available...
[ +640 ms] Observatory URL on device: http://<IP_ADDRESS>:44591/O6K7cSMvs-g=/
[        ] executing: /Users/josephmuller/Library/Android/sdk/platform-tools/adb -s emulator-5554 forward tcp:0 tcp:44591
[  +11 ms] 55392
[        ] Forwarded host port 55392 to device port 44591 for Observatory
[   +2 ms] Caching compiled dill
[  +12 ms] Connecting to service protocol: http://<IP_ADDRESS>:55392/O6K7cSMvs-g=/
[ +131 ms] Launching a Dart Developer Service (DDS) instance at http://<IP_ADDRESS>:0, connecting to VM service at http://<IP_ADDRESS>:55392/O6K7cSMvs-g=/.
[  +64 ms] DDS is listening at http://<IP_ADDRESS>:55395/8t_fYG82vkQ=/.
[  +26 ms] Successfully connected to service protocol: http://<IP_ADDRESS>:55392/O6K7cSMvs-g=/
[  +33 ms] DevFS: Creating new filesystem on the device (null)
[   +8 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.mullr.flutter_playground/code_cache/flutter_playgroundKEDZLI/flutter_playground/)
[   +1 ms] Updating assets
[  +31 ms] Syncing files to device sdk gphone64 arm64...
[        ] Compiling dart to kernel with 0 updated files
[        ] Processing bundle.
[        ] <- recompile package:flutter_playground/main.dart ffd61d3f-ba8f-4504-9717-12003783a199
[        ] <- ffd61d3f-ba8f-4504-9717-12003783a199
[        ] Bundle processing done.
[  +38 ms] Updating files.
[        ] DevFS: Sync finished
[        ] Syncing files to device sdk gphone64 arm64... (completed in 41ms)
[        ] Synced 0.0MB.
[        ] <- accept
[   +2 ms] Connected to _flutterView/0xb4000070eda76530.
[   +1 ms] Flutter run key commands.
[        ] r Hot reload. 🔥🔥🔥
[        ] R Hot restart.
[        ] h List all available interactive commands.
[        ] d Detach (terminate "flutter run" but leave application running).
[        ] c Clear the screen
[        ] q Quit (terminate the application on the device).
[        ] 💪 Running with sound null safety 💪
[        ] An Observatory debugger and profiler on sdk gphone64 arm64 is available at: http://<IP_ADDRESS>:55395/8t_fYG82vkQ=/
[ +135 ms] The Flutter DevTools debugger and profiler on sdk gphone64 arm64 is available at: http://<IP_ADDRESS>:9101?uri=http://<IP_ADDRESS>:55395/8t_fYG82vkQ=/
[  +55 ms] D/FlutterBranchSDK(12829): onActivityStopped call
[   +5 ms] I/flutter (12829): [logEvent] app: close

   info • Unused import: 'package:flutter_playground/animated_snackbars/screen_one.dart' • lib/animated_snackbars/screen_two.dart:2:8 • unused_import
   info • Avoid `print` calls in production code • lib/animated_snackbars/snack_fab.dart:51:5 • avoid_print
   info • Avoid `print` calls in production code • lib/nested_hero_animations/snack_fab.dart:54:5 • avoid_print

[✓] Flutter (Channel stable, 3.3.1, on macOS 12.5.1 21G83 darwin-arm, locale en-US)
    • Flutter version 3.3.1 on channel stable at /Users/josephmuller/Dev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4f9d92fbbd (5 days ago), 2022-09-06 17:54:53 -0700
    • Engine revision 3efdf03e73
    • Dart version 2.18.0
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/josephmuller/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13F100
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] Connected device (3 available)
    • SM S901U (mobile)           • R5CRC2FBKWY   • android-arm64  • Android 12 (API 31)
    • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64  • Android 12 (API 31) (emulator)
    • Chrome (web)                • chrome        • web-javascript • Microsoft Edge 105.0.1343.33

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Hello @jtmuller5. The SnackBar uses a Hero animation implicitly. You can find a StackOverflow answer here that explains why the Hero behaves this way.
https://github.com/flutter/flutter/blob/4930444f4afe85272bbdc84b43196d59dad71166/packages/flutter/lib/src/material/snack_bar.dart#L634
This is working as expected. Therefore, I am closing this issue. If you disagree, please comment and I can reopen it. Thank you.

So is there no way to add an animation to a widget inside a SnackBar?
Thanks for the reply.

I think it would be cool if state could be passed from one widget to another so animations could continue smoothly through screen transitions.

So is there no way to add an animation to a widget inside a SnackBar?

Unfortunately, the way SnackBar is currently implemented, they are 2 separate widgets and therefore do not share the same state.

I think it would be cool if state could be passed from one widget to another so animations could continue smoothly through screen transitions.

I think this comes into the territory of state management for which there are loads of libraries you can find. I do not think this is something Flutter would support out of the box.


Stop using jet by default

Matplotlib is on its way to removing jet as its default colour map. But iris supports, and is tested against, a much older version. To provide some consistency, it would be better if a default was set across versions.
I did not open a PR since I'm not certain whether viridis would be suitable.

You've probably got this covered, but:  if Iris had its own default, would this override the cmap set in a user's custom matplotlibrc file?

I'm not sure I agree with this. Deferring to the plotting layer for colormap seems the logical and correct thing to do, and as @rcomer says we should respect the setting the user chooses in their matplotlibrc. If a user upgrades to matplotlib v1.5 and the colormap in iris plots changes, I think that is fine, the change is well documented on the matplotlib side.
However, I do think we should do something about the infestation of jet in the documentation gallery, but via an explicit setting in the examples rather than a default.

I'm not totally tied to changing the default itself, if it causes issues with matplotlibrc (I didn't know that existed and anyone used it). Really, like @ajdawson, I want those examples to look a bit better. Also, the tests will start failing on matplotlib 1.5 (not that they pass on 1.4.3 right now either.)

not that they pass on 1.4.3 right now either

We need to fix it so that we are not testing against an ancient mpl version - I think picking v1.5 as a target point makes a lot of sense for testing, once the mpl release dust has settled.

Closing as modern mpl has this by default: Iris will be moving in the direction of modern matplotlib (though it isn't currently tested against mpl 2). I'm completely in favour of jet being moved into the sidelines.


Allow running with address sanitizer enabled

Currently running with address sanitizer results in infinite recursion leading to a stack overflow.
With the address sanitizer enabled, the actual "original" dispatch_xs are prepended with the word wrap_.

The simplification can be also done using macros only:
// With the Address Sanitizer enabled, the actual "original" `dispatch_x` are prepended with the
// word `wrap_`.
#if defined(__has_feature) && __has_feature(address_sanitizer)
# define DTX_ORIG_DISPATCH_NAME(type) [@"wrap_dispatch_" stringByAppendingString:type]
#else
# define DTX_ORIG_DISPATCH_NAME(type) [@"dispatch_" stringByAppendingString:type]
#endif

...

struct rebinding r[] = (struct rebinding[]) {
  DTX_ORIG_DISPATCH_NAME(@"async"), __detox_sync_dispatch_async, (void**)&__orig_dispatch_async,
  DTX_ORIG_DISPATCH_NAME(@"sync"), __detox_sync_dispatch_sync, (void**)&__orig_dispatch_sync,
  ...
};

I have no particular preference between these two, but I prefer one of them instead of the struct duplication.

Yeah - I was just looking at that.
String concatenation involves casting to an NSString and then trying to convince a cast back to const char* for rebinding.
The macro appears to be neater - I'll push what I have shortly.

Looking great! But let's put the macros at the top of the file 🙂

@ball-hayden, can you please run another test with ASan enabled before we merge this?

Sorry @asafkorem - I missed your last message there.
The app builds and launches now with ASan enabled.
Running the Detox e2e suite I see some failures, but I also see them against master.

Thanks a lot @ball-hayden, amazing work 👑


Python3 update

Makes changes for Python 3 compatibility, bumps version, updates docs, etc. Nothing big, all these changes are very much on the surface level.

ping @ldko, @madhulika95b, this is ready for review.

Gonna merge this into the py3 branch for now.


Bug - IndexError: list index out of range

Hey huys,
I always got errors since my last ggpull. When bot tries to exchange for a candy, I got a IndexError: list index out of range
Thanks for this amazing work ! :)
I Launched this command : ./pokecli.py -a ptc -u *** -p *** -l Paris -c 100
logs :
[#] A Wild Rattata appeared! [CP36]
[x] Using Pokeball...
[x] Captured Rattata! [CP36] - exchanging for candy
[x] Exchanged successfuly!
Traceback (most recent call last):
File "./pokecli.py", line 116, in
main()
File "./pokecli.py", line 113, in main
bot.take_step()
File "/Users/jd/dev/pokemon/original/PokemonGo-Bot/bot.py", line 29, in take_step
self.stepper.take_step()
File "/Users/jd/dev/pokemon/original/PokemonGo-Bot/stepper.py", line 65, in take_step
self.bot.work_on_cell(cell,position)
File "/Users/jd/dev/pokemon/original/PokemonGo-Bot/bot.py", line 36, in work_on_cell
worker.work()
File "/Users/jd/dev/pokemon/original/PokemonGo-Bot/cell_workers/pokemon_catch_worker.py", line 77, in work
self.transfer_pokemon(list(Set(id_list2) - Set(id_list1))[0])
IndexError: list index out of range

Your inventory is full.

Oh ? :(
I got this in my log :
[#] Bag Storage: 118/350
[#] Pokemon Storage: 51/250

Same error. Both my bag and my pokemon storage were NOT full

+1 same for me and my inventory doesn't show as full:
[#] Bag Storage: 205/350
[#] Pokemon Storage: 22/250
Launched with command
python2 pokecli.py -a ptc -u *** -p *** --location '-33.858961, 151.213380' -w 2.8 -c 100

confirm

>>> list()[0]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IndexError: list index out of range

that's why

^ What should be done?

@Unit731 download the latest zip. This issue was resolved


Update redis URL configuration to use correct setting.

CERT_REQUIRED is not the correct confifguration for an SSL
URL. Instead just "required" should be used.

Codecov Report

Merging #244 (9c6f79d) into master (e18c5a9) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #244   +/-   ##
=======================================
  Coverage   62.12%   62.12%
=======================================
  Files         186      186
  Lines       11570    11570
  Branches      878      878
=======================================
  Hits         7188     7188
  Misses       4184     4184
  Partials      198      198

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 e18c5a9...16d61ff. Read the comment docs.


Add read access to statuses to required permissions

Required for https://github.com/github/branch-deploy/blob/1f6516ef5092890ce75d9e97ca7cbdb628e38bdd/src/functions/prechecks.js#L120.
(This is only required if any integrations are setting commit statuses, and since most integrations use checks you can usually get away without it. Vercel is a notable exception, and it does very little harm to ask for this permission in all cases.)

@GrantBirki as ever, thanks for everything you do on this project. We use it and love it.


How to Install and Get Started

We are using Infoblox and are looking into something very similar to this project.
How would one go about getting this setup and start testing against our environment?

I am glad about the interest. We have been using this app successfully for a few years. How you would use it depends on how much customization you require.
If you use CAS for authentication, you will not have to modify this code much.

Someone familiar with Symfony Framework.
Edits to templates, other text, and images as needed.
Follow the README for additional setup.

If you do not use CAS for authentication, you will need:

Someone more familiar with Symfony Framework.
Edits to the user authentication to suit your needs.
The other things listed above.

We actually are using CAS for authentication here. I am not 100% familiar with Symfony Framework, but have been using PHP for awhile now.
I looked over the README for this project and it was a little light on the "setup/install" notes, did you mean your infoblox project? Which I presume you would need in addition to this?

I am not sure what you are asking about the infoblox project. Composer will pull that in automatically.
What isn't clear in the README? Maybe—In case it isn't obvious, you will have to get your IT/Networking staff involved to set up a DNS trap for unregistered devices if that's the workflow you need.

That's good news you are using CAS by the way! Probably you should just fork this repo then change what you need to change.


Update Nim to 0.15.0

@lukesampson I'm terribly sorry but it turns out they have changed the installer in 0.15.0 so it no longer works the same way as before. It installs all right, but it's practically unusable.
Could you please undo this PR and roll back to the previous version?

No problem. Thanks for letting me know.


Add ignore pattern setting to ignore files and folder to reorder

Fixes #7
Fixes #3
@lukasbach
The following video shows the new setting. The setting is not overridable from the modal popup.
I also show how it plays with https://github.com/LostPaul/obsidian-folder-notes if the folder note name is fixed (eg: index)
https://github.com/lukasbach/obsidian-file-order/assets/459923/7490d878-bb65-42ce-9368-930b134c642c
There is an edge case that if we ignore files in the reorder it could happen that some of the new file names might clash.
Maybe this is worth a warning or a check in the modal. I'm not sure.

Other alternatives would be to have a separate configs for folders and files. If we do that we could remove the extension of the file before checking the ignore setting and have a simpler setup scenario to ignore a specific files but not folder.
Also it could be preferred to have a single or comma list of entry names to ignore instead of regex. That might be simpler to approach than regex and might cover enough cases.
If the people interested in this can comment I can go one route or another.

Looks great, thank you very much for your contribution @bcardiff


Dapp getting deploy on mainet , but able to deploy on testnet locally

Hi,
I am working on a dapp ( https://github.com/aj07/exp_nr ).
While deploying locally, I am able to deploy things on testnet with frontend running locally. But when I try to run via github (gh pages) . Its taking mainet ( https://aj07.github.io/exp_nr/  ). I don't know why this is happening.
My team asked on support channel for this bug/issue. They asked to put on issue. Please, help  it.
Thanks!

Hi @aj07
This doesn't look like documentation issue, so this is probably wrong place for question like this - StackOverflow is probably better.
What are you actually trying to do? It looks like you have setup your Github pages to work with MainNet (e.g. it uses MainNet Wallet) but you did not configure to the right contract (it uses contract name from testnet).
Usually in proper MainNet serving environment, you would provide environment variable used here - https://github.com/aj07/exp_nr/blob/main/src/config.js#L1. But Github doesn't offer such functionality.
So you should consider modifying this line to something that points at your MainNet contract unless there is env variable for testing. Or use other hosting like Netlify where you can use environment variables.

Hi @aj07
This doesn't look like documentation issue, so this is probably wrong place for question like this - StackOverflow is probably better.
What are you actually trying to do? It looks like you have setup your Github pages to work with MainNet (e.g. it uses MainNet Wallet) but you did not configure to the right contract (it uses contract name from testnet).
Usually in proper MainNet serving environment, you would provide environment variable used here - https://github.com/aj07/exp_nr/blob/main/src/config.js#L1. But Github doesn't offer such functionality.
So you should consider modifying this line to something that points at your MainNet contract unless there is env variable for testing. Or use other hosting like Netlify where you can use environment variables.

Actually you can just specify your contract name here https://github.com/aj07/exp_nr/blob/main/src/config.js#L11.

Actually you can just specify your contract name here https://github.com/aj07/exp_nr/blob/main/src/config.js#L11.

Thanks for responding @ilblackdragon !  Actaully, I am trying to run it for testnet as of now, for mainnet it will be done proper deployment.
I checked other repo which is working on testnet and found similar config.js file.  (https://github.com/p2pvid/sdfn/blob/master/src/config.js#L9) But this guest book was getting deployed on testnet.
Again, thanks for your reply

Thanks for responding @ilblackdragon !  Actaully, I am trying to run it for testnet as of now, for mainnet it will be done proper deployment.
I checked other repo which is working on testnet and found similar config.js file.  (https://github.com/p2pvid/sdfn/blob/master/src/config.js#L9) But this guest book was getting deployed on testnet.
Again, thanks for your reply

I think now it got fixed at https://bit.ly/39dWNYk   .Able to redirect on testnet.
Thanks

I think now it got fixed at https://bit.ly/39dWNYk   .Able to redirect on testnet.
Thanks

I think now it got fixed at https://bit.ly/39dWNYk .Able to redirect on testnet.
Thanks

I think now it got fixed at https://bit.ly/39dWNYk .Able to redirect on testnet.
Thanks


Fix normalize_images to yogo from config

I regret my decision to include config in from_pth - ideally all of this information would be in the YOGO model. It would make things much simpler

Sounds good! Yea very true.
I tried doing this before, but putting a list of strings as torch model params was a little more finicky than I initially thought, and IIRC had higher priority things to do at the time.

I'll look again soon


log::info! called before initializing logger

https://github.com/rust-osdev/bootloader/blob/af99f0f9e913cb9741d47de457b942f706f79625/uefi/src/main.rs#L534
This line doesn't do anything write now. It basically functions as a comment. It should either be

Removed
Moved to be after calling init_logger (I don't think it's necessary since https://github.com/rust-osdev/bootloader/blob/af99f0f9e913cb9741d47de457b942f706f79625/uefi/src/main.rs#L115
Turned into a comment

Makes sense, feel free to open a PR.


[Bug] Swift types prefixed by module name

🐛 Bug
Generated swift code, which includes types that reference each other, prefixes local references with module name provided to CodeGeneratorConfig. The code fails to compile with an error "Cannot find type '' in scope".
The problem can be worked around by searching and replacing the module name followed by "." (e.g. "module.") with an empty string, effectively stripping the namespacing out of the generated code.
To reproduce
Types to be traced
#[derive(Serialize, Deserialize)]
pub struct Request {
    pub uuid: Vec<u8>,
    pub body: RequestBody,
}

#[derive(Serialize, Deserialize)]
pub enum RequestBody {
   // ... variants
}

Tracing and generating build.rs script
use rmm::{Request, RequestBody};
use serde_reflection::{Tracer, TracerConfig};
use std::{fs::File, io::Write, path::PathBuf};

fn main() {
    let mut tracer = Tracer::new(TracerConfig::default());
    tracer.trace_simple_type::<Request>().unwrap();
    tracer.trace_simple_type::<RequestBody>().unwrap();
    let registry = tracer.registry().unwrap();

    // Create Swift definitions.
    let mut source = Vec::new();
    let config = serde_generate::CodeGeneratorConfig::new("shared".to_string())
        .with_encodings(vec![serde_generate::Encoding::Bincode]);

    let generator = serde_generate::swift::CodeGenerator::new(&config);
    generator.output(&mut source, &registry).unwrap();

    let path = "./generated/shared_types.swift";
    let mut output = File::create(path).unwrap();
    write!(output, "{}", out).unwrap();
}

Relevant part of the generated Swift code
public struct Response: Hashable {
    @Indirect public var uuid: [UInt8]
    @Indirect public var body: shared.ResponseBody // "Error: Cannot find type 'shared' in scope"

    (...)

Removing shared. from the above resolves the problem.
Expected Behavior
Generated Swift code should compile without errors.
System information
Serde reflection v0.3.6
Serde generate v0.24.0

@charypar Thanks for the report. IIRC prefixing identifiers with the module name is useful. Have you tried a setup more similar to the test file swift_generation.rs ? (Note that in the test, our module was "Testing" and the file "Testing.swift")


Radio button - Missing properties

Summary
Add size and appearance prop to radio button component
💬 Description
Add size property including options for 'Default' 'Small' and 'Large', where 'default' is the default.
Add appearance property including options for 'Default', 'Light' and 'Dark'.
Check component to confirm which prop options are required.
💰 User value
Provides consistent functionality across all ICDS components
📚 User Stories
If relevant, describe the high-level functionality as user stories.
As an ICDS user:
I need
So that
📝 Acceptance Criteria
If relevant, describe in full detail the different interactions and edge cases that the component or patterns needs to fulfil.
Given
When
Then
✏ Designs
If there's a Figma design file (or other mock-up), include it here.
## 🧾 Guidance
If there's written guidance or documentation, include a link to it here.
Additional info
Tell us anything else useful to help us understand your suggestion.

Doing as part of https://github.com/mi6/ic-ui-kit/issues/2060


Moves to 2.0 branch for job scheduler and index management

Signed-off-by: Clay Downs<EMAIL_ADDRESS>Description
Moves to 2.0 branch for job scheduler and index management
Issues Resolved
[List any issues this PR will resolve]
Check List

[X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #2006 (73a5430) into main (e3cade3) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main    #2006   +/-   ##
=========================================
  Coverage     94.41%   94.41%
  Complexity       22       22
=========================================
  Files           187      187
  Lines          3739     3739
  Branches         29       29
=========================================
  Hits           3530     3530
  Misses          203      203
  Partials          6        6

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 e3cade3...73a5430. Read the comment docs.


SEO: Configure robots.txt file.

Expected Behavior
We want the company website to score as high as possible in the Lighthouse SEO scoring.
Actual Behavior
One of the Gatsby Cloud build reports from Lighthouse dinged our code a few points on SEO, saying:
Search engines are unable to include your pages in search results if they don't have permission to crawl them.
...
Blocking Directive Source
x-robots-tag: none

Analysis

I looked at the meta tags in the build. I do not see that x-robots-tag anywhere. Maybe it is none by default? Maybe we need to explicitly set that tag.
See gatsby-plugin-robots-txt as a way to create robots.txt from metadata in gatsby-config.js

If I understand correctly (from the first link below), Lighthouse runs on
the results of indexing, and you wouldn't want the Gatsby cloud version to
be indexed, so what you are seeing is ok, and Lighthouse will work with the
https://marmalade.ai version only. Is that the way you see it, too?

https://answers.netlify.com/t/disabling-x-robots-tag-header-on-hosted-site/8857
2)
https://www.google.com/search?q="x-robots-tag"+gatsby+lighthouse&oq="x-robots-tag"+gatsby+lighthouse&aqs=chrome..69i57.34455j0j7&client=ms-android-google&sourceid=chrome-mobile&ie=UTF-8#scso=_jdJFYeq7C8G2tAa3y7boBQ14:0
https://www.linkedin.com/in/craigfisk https://about.me/craigfisk
(650) 336-8770
On Fri, Sep 17, 2021 at 8:23 PM Jim Tyhurst @.***>
wrote:

Expected Behavior
We want the company website to score as high as possible in the Lighthouse
SEO scoring.
Actual Behavior
One of the Gatsby Cloud build reports
https://build-1af2efe3-37c6-4b51-b75f-495fbac4d79f.gtsb.io/reports/lighthouse/index.html
from Lighthouse dinged our code a few points on SEO, saying:
Search engines are unable to include your pages in search results if they don't have permission to crawl them.
...
Blocking Directive Source
x-robots-tag: none
Analysis

I looked at the meta tags in the build. I do not see that
x-robots-tag anywhere. Maybe it is none by default? Maybe we need to
explicitly set that tag.
See gatsby-plugin-robots-txt
https://www.gatsbyjs.com/plugins/gatsby-plugin-robots-txt/ as a way
to create robots.txt from metadata in gatsby-config.js
http://./gatsby-config.js

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Marmalade-ai/company-website/issues/130, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAZH6WWBH6TMLZOF67ZEYDUCPSXVANCNFSM5EITZ2PQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Yes, I was assuming that whatever was in the branch build would be deployed, but it makes sense that it would be different in this case. I will leave this issue open until we deploy the new company website to production, so we can verify that the new site is indexed correctly.
See also: gatsby-plugin-next-seo.


ssd1306: add color inversion at run-time

This PR implements the color inversion at run-time via the display_set_pixel_format function for the ssd1306 display.
I also extended display_get_capabilities, s.t. it returns the current pixel format.
Since it is now possible to do this at run-time, I removed the compile-time configuration color_inversion. But I will happily revert this commit (the last one), if wished. Nvm, I dropped the last commit again. I came to the conclusion, that it still makes sense to have the compile-time option, which could then be adjusted later on during run-time.

@jfischer-no could you also take another look?


[SDK Automation - JS] Adjust the steps to run in the automation script Automation Tool

The current goal for the SDK automation in the spec PR phase is to generate the SDK code and generate the API View.
We would like to define required steps and optional steps in the SDK automation script. If any required steps fail, it should fail the SDK generation CI check and stop the execution. If any optional steps fail, it could be reported as warnings and shouldn't impact the followed API View generation step.
@MaryGao @qiaozha

The implementation has been finished for modular client codeGen. It will need work to support for other codeGen.

Checked, RLC and HLC already skip test and publish sample tasks. Modular regards test and publish sample tasks as optional


postStatusUpdate:inReplyToStatusID won't work

[_twitterAPI postStatusUpdate:comment
<EMAIL_ADDRESS>                     latitude:nil
                    longitude:nil
                      placeID:nil
           displayCoordinates:nil
                     trimUser:nil
                 successBlock:^(NSDictionary *status) {
                 } errorBlock:^(NSError *error) {
                 }];

In this case of using API - tweet posts only in my own home timeline.

it seems to be i found the solution - text must contain @username - after that tweet display as replay.
and in_reply_to_status_id just only need to parse tweet feed for replay later.

thank you for this explanation


shpool not setting kernel window size struct completely

I noticed a panic with a kitty terminal mouse interaction running under shpool, and reported it as a kitty bug (kovidgoyal/kitty#7405). kitty's author investigated, and said:

This is a bug in shpool it is not setting the full window size struct
(the latter two pixel size fields to be precise) to the kernel via
TIOCWINSZ for tty's it creates.
That said, I will fix the kitten to at least not panic, though mouse
interactions will not work.

Originally posted by @kovidgoyal in https://github.com/kovidgoyal/kitty/issues/7405#issuecomment-2087946713
Can you update shpool to do this?

Thanks for the report, I'll look into fixing this.

@willangley I just merged a fix. You can see if it works out for you by building shpool from source

I went through the reproduction steps with the patch applied and it no longer crashes kitty 0.32.1-1 (the version of the debian package I got kitty from)


Make maxlag configurable in Wikidata extension

Maxlag is a parameter that controls how aggressive a mass-editing tool should be when uploading edits to Wikidata.
With the current issues around Wikidata's stability it is often impossible to edit with maxlag set to 5 seconds, the default value recommended by the guidelines (and the one set in OpenRefine by default).
As part of  #1640 we want to make the configuration of the Wikibase instance user-configurable (instead of being hard-coded to Wikidata) and part of that includes letting users set the maxlag value as they wish.

Hey @wetneb, I want to take a look at this as the potential GSoC applicant. May I know where the variable was set to 5 sec by default?
Thanks!

Sure!
Maxlag is set by default to 5 in Wikidata-Toolkit itself and can be changed here:
http://wikidata.github.io/Wikidata-Toolkit/org/wikidata/wdtk/wikibaseapi/WikibaseDataEditor.html#setMaxLag(int)
User preferences can be stored in the PreferenceStore (which can be accessed from the start page, in the "Preferences" section).

@wetneb Here is the request to merge
https://github.com/OpenRefine/OpenRefine/pull/2469/commits/af09b05d502157d9b4314ec71adec79e1d7e550a

With the current issues around Wikidata's stability it is often impossible to edit with maxlag set to 5 seconds

That's the whole point, as I understand it. Allowing users to defeat this opens OpenRefine to being used as a tool for abuse.
Should this be added to the set of Wikibase configuration parameters so that a sysadmin can advertise the maximum value allowed and then users can set it to a lower, but not higher, value? That way if Wikidata advertises 5, users won't be able to change it to 10.

In my opinion there is no reason for OpenRefine to forbid its users to do something that the API allows. Other bot editing frameworks (pywikibot) also let the user configure this parameter.
If Wikibase admins want to enforce a specific throttling, they can do that on their side. Editing requests made from OpenRefine are all marked with bot=true and tagged appropriately.
WMDE is indeed looking into changing this throttling mechanism: https://phabricator.wikimedia.org/T240442

That graph is frightening.

They really don't have a clue.
The fact that other clients enable cheating doesn't seem like a good reason to encourage our users to cheat and abuse the naïveté of the Wikidata admins when the current system depends on cooperative behavior.
This is clearly going to end up nowhere good, so we should make sure that we're ready to handle 429/Retry-After, if we don't already, so that we don't get shut out when they slam the gates.

@tfmorris Who doesn't have a clue...oh you mean users having more information provided to their clients so they can react better and slowdown?

Yes it is a pretty sorry state of affairs - they are aware of the severity of the issue but it will clearly take a while before they can fix the underlying issue (scaling the SPARQL endpoint).
I agree it would be worth investing time in making sure WDTK handles 429/Retry-After correctly.


Fix: Input Adornment was using wrong position

Fix positioning of end-InputAdornment in TextField component

Travis automatic deployment:
https://pr33--safereactcomponents.review.gnosisdev.com


[#1] Added ability to inject reason for triggering 404

if displayNotFoundReason is enabled, will inject a "reason" variable
into the 404 view model returned, with one of the following constant
values:

Application::ERROR_CONTROLLER_CANNOT_DISPATCH (controller cannot
dispatch the request)
Application::ERROR_CONTROLLER_NOT_FOUND (controller class does not
exist)
Application::ERROR_CONTROLLER_INVALID (controller requested is not
dispatchable)
Application::ERROR_ROUTER_NO_MATCH (routing returned no match, or no
controller in the matches)

Updated to inject both the exception (if any) and the controller and controller class (former might be an alias; latter should be fully resolved if present)

Fails unit tests for phpunit Zend/Mvc/ :
There were 3 failures:

ZendTest\Mvc\ApplicationTest::testInabilityToRetrieveControllerShouldTriggerDispatchError
Failed asserting that 'Code: error-controller-not-found; Controller: bad' contains "404".

/www/zend-framework/zf2/tests/Zend/Mvc/ApplicationTest.php:502

ZendTest\Mvc\ApplicationTest::testInvalidControllerTypeShouldTriggerDispatchError
Failed asserting that 'Code: error-controller-invalid; Controller: bad; Class: stdClass' contains "404".

/www/zend-framework/zf2/tests/Zend/Mvc/ApplicationTest.php:526

ZendTest\Mvc\ApplicationTest::testRoutingFailureShouldTriggerDispatchError
Failed asserting that 'Code: error-controller-not-found' contains "404".

/www/zend-framework/zf2/tests/Zend/Mvc/ApplicationTest.php:549


[DON'T MERGE]Fix monitor dockerfile

Fix the Dockerfile for the monitor service

Codecov Report

Merging #193 (11e7985) into develop (9d4eabd) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 11e7985 differs from pull request most recent head 26cd07c. Consider uploading reports for the commit 26cd07c to get more accurate results

@@           Coverage Diff            @@
##           develop     #193   +/-   ##
========================================
  Coverage    71.73%   71.73%
========================================
  Files           68       68
  Lines         2257     2257
  Branches       335      335
========================================
  Hits          1619     1619
  Misses         638      638

Flag
Coverage Δ

batch-submitter
59.59% <ø> (ø)

contracts
89.52% <ø> (ø)

core-utils
54.48% <ø> (ø)

data-transport-layer
37.68% <ø> (ø)

message-relayer
71.69% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Continue to review full report at Codecov.

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


Allow importing members

re #17 and #29
I'm not sure how to add a test for importing yet. The cool tf harness doesn't support import.
The terraform file I used for testing.
terraform {
  required_providers {
    zerotier = {
      source  = "zerotier/zerotier"
    }
  }
}
resource "zerotier_member" "bob" {}

terraform import zerotier_member.bob 8286ac0e4786b2aa-1122334455 The member needs to already exist
terraform state show zerotier_member.bob
implementation borrowed from bltavares  branch

Don't worry about an import test
On Fri, Oct 14, 2022 at 10:55 PM Travis LaDuke @.***>
wrote:

re #17 https://github.com/zerotier/terraform-provider-zerotier/issues/17
and #29
https://github.com/zerotier/terraform-provider-zerotier/issues/29
I'm not sure how to add a test for importing yet. The cool tf harness
doesn't support import.
The terraform file I used for testing.
terraform {
required_providers {
zerotier = {
source  = "zerotier/zerotier"
}
}
}
resource "zerotier_member" "bob" {}
terraform import zerotier_member.bob 8286ac0e4786b2aa-1122334455 The
member needs to already exist
terraform state show zerotier_member.bob
implementation borrowed from bltavares branch
You can view, comment on, or merge this pull request online at:
https://github.com/zerotier/terraform-provider-zerotier/pull/32
Commit Summary

0c357c7
https://github.com/zerotier/terraform-provider-zerotier/pull/32/commits/0c357c751e41415d8314e4697abbcb3672d4f2ef
Allow importing members

File Changes
(2 files
https://github.com/zerotier/terraform-provider-zerotier/pull/32/files)

M docs/resources/member.md
https://github.com/zerotier/terraform-provider-zerotier/pull/32/files#diff-ce242713ba821c28206813e71ec5c1d11ccbbb916f6144911a26f54f27b72838
(8)
M pkg/zerotier/resource_member.go
https://github.com/zerotier/terraform-provider-zerotier/pull/32/files#diff-4c7074f7ba5e1c777fb4feb3fd2c8e921633333370bc784f80e9dcfbea74c9af
(19)

Patch Links:

https://github.com/zerotier/terraform-provider-zerotier/pull/32.patch
https://github.com/zerotier/terraform-provider-zerotier/pull/32.diff

—
Reply to this email directly, view it on GitHub
https://github.com/zerotier/terraform-provider-zerotier/pull/32, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAQ3TFIX6CWXJ5EFLFPYMTWDHCD7ANCNFSM6AAAAAARFSHB3M
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Feature/promote rollup logger visibilities

Hi James 👋🏼 I'm a big fan of your work in general, and this package specifically.
My organization uses the namespaced version of the rollup package, and we recently discovered that we cannot currently utilize the logger plugin functionality detailed in the readme, because the types aren't visible. I assume this isn't a problem for most users w/the non-namespaced package.
This PR fixes this, by updating the visibilities of the RollupLogger's virtual methods, and its inner ILogger interface to be global. I didn't update the other public methods in this class, since they're not strictly necessary for what I'd like to accomplish -- but I'd be open to changing that if you think that would be helpful for others.
Here are the errors I received when trying to create my own plugin, using the latest version of the namespaced package (<IP_ADDRESS>):
When extending please.RollupLogger:
| Type  Name             Problem                                                                                Line:Column
| ───── ──────────────── ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ───────────
| Error RollupLogAdapter @Override specified for non-overriding method: void RollupLogAdapter.log(String, Object, System.LoggingLevel) (7:26) 7:26
| Error RollupLogAdapter @Override specified for non-overriding method: void RollupLogAdapter.save() (16:26)                                  16:26

When implementing please.RollupLogger.ILogger:
Type  Name             Problem                                                  Line:Column
| ───── ──────────────── ──────────────────────────────────────────────────────── ───────────
| Error RollupLogAdapter Type is not visible: please.RollupLogger.ILogger (21:14) 21:14

Thanks for your consideration, and please let me know if you have any questions.

@jasonsiders thanks for the kind words, and for submitting - can you repoint to v1.6.24 as the branch? Thank you!

Thanks you @jamessimone!


Skip computed component values in create-element-to-jsx

The create-element-to-jsx script was almost always calling jsxIdentifierFor,
which assumed that the expression consisted of strings, identifiers, and
non-computed member expressions (i.e. dot syntax rather than brackets syntax).
This ended up crashing or causing incorrect output when run on more dynamic code
like React.createElement(a[b]), React.createElement(a[b.c]), and
React.createElement(f()).

thanks!


HttpClient: remove Clone bounds, ensure unsized

This allows HttpClient to be used as a dynamic Trait Object, which requires that the trait not have the Sized bounds, which was implied by Clone.
Users should wrap HttpClient in an Rc/Arc if Cloning/Sharing is necessary.

This fixes the original issue from https://github.com/http-rs/surf/issues/69. (https://github.com/http-rs/http-client/pull/29 fixes a newer issue.)
This supersedes https://github.com/http-rs/http-client/pull/18 as that patch is the opposite, which was already implied by Clone and is incorrect.
This also supersedes the same faulty patch part from https://github.com/http-rs/http-client/pull/21.

This is probably semver-major.


swagger file is never generated

Problem statement
The swagger.yml file is never produced.  No errors; nothing.
Swagger specification
2.0
Steps to reproduce
I've tagged the Go source code with the swagger:route annotations.  I execute swagger generate spec -i prog.go -o swagger.yml.  I never get the swagger file generated.  If I remove the -o option then all I see to the stdlog is { "swagger":2.0 "paths":{}}.  I'm not sure if the input file is getting parsed, the annotations are not found, etc.
Environment
Mac OS X 10.13.3
swagger version: dev
go version: 1.9.2 darwin/amd64
OS:

depends what's in prog.go, when you do go run prog.go does it serve your API?
We parse the same tree the compiler uses when compiling your source code. So we will only find things when there is a path from the main package.

Jim,
The application is a REST based application.  Once I compile then I execute ./. Then I send curl commands to it.  The main routine is just an http server listening for requests on the port 8080.

I would need to see the file to see why it doesn't work.

there are multiple Go programs but the service.go are the publicly exposed REST APIs and the main.go is at the bottom of this post.
//This is the service.go file
package payment
import (
"errors"
"fmt"
"time"
)
// Middleware decorates a service.
type Middleware func(Service) Service
type Service interface {
Authorise(total float32) (Authorisation, error) // GET /paymentAuth
Health() []Health                               // GET /health
}
//swagger:parameters Authorise
type Authorisation struct {
Authorised bool   json:"authorised"
Message    string json:"message"
}
//swagger:parameters Health
type Health struct {
Service string json:"service"
Status  string json:"status"
Time    string json:"time"
}
// NewFixedService returns a simple implementation of the Service interface,
// fixed over a predefined set of socks and tags. In a real service you'd
// probably construct this with a database handle to your socks DB, etc.
func NewAuthorisationService(declineOverAmount float32) Service {
return &service{
declineOverAmount: declineOverAmount,
}
}
type service struct {
declineOverAmount float32
}
//swagger:route POST /paymentAuth payment authorization Authorise
//
// This will validate as to whether or not the amount of the purchase is
// an authorized amount.  The default value is $105.00
//
// Consumes:
//      - application/json
// Produces:
//      - application/json
// Responses:
//    default: ErrInvalidPaymentAmount
//        200: Authorisation
//
func (s *service) Authorise(amount float32) (Authorisation, error) {
if amount == 0 {
return Authorisation{}, ErrInvalidPaymentAmount
}
if amount < 0 {
return Authorisation{}, ErrInvalidPaymentAmount
}
authorised := false
message := "Payment declined"
if amount <= s.declineOverAmount {
authorised = true
message = "Payment authorised"
} else {
message = fmt.Sprintf("Payment declined: amount exceeds %.2f", s.declineOverAmount)
}
return Authorisation{
Authorised: authorised,
Message:    message,
}, nil
}
// swagger:route POST /health health Health
//
// This will validate as to whether or not the amount of the purchase is
// an authorized amount.  The default value is $105.00
//
// Consumes:
//      - application/json
// Produces:
//      - application/json
// Responses:
//        200: []Health
//
func (s *service) Health() []Health {
var health []Health
app := Health{"payment", "OK", time.Now().String()}
health = append(health, app)
return health
}
var ErrInvalidPaymentAmount = errors.New("Invalid payment amount")

This is the main.go
package main
import (
"flag"
"fmt"
//"net"
"net/http"
"os"
"os/signal"
//"strings"
"syscall"
//"github.com/go-kit/kit/log"
"github.com/microservices-demo/payment"
//stdopentracing "github.com/opentracing/opentracing-go"
//zipkin "github.com/openzipkin/zipkin-go-opentracing"
"golang.org/x/net/context"

)
const (
ServiceName = "payment"
)
func main() {
var (
port          = flag.String("port", "8080", "Port to bind HTTP listener")
//zip           = flag.String("zipkin", os.Getenv("ZIPKIN"), "Zipkin address")
declineAmount = flag.Float64("decline", 105, "Decline payments over certain amount")
)
flag.Parse()
// The istio service mesh provides openTracing at the time the service is deployed
/* var tracer stdopentracing.Tracer
{
	// Log domain.
	var logger log.Logger
	{
		logger = log.NewLogfmtLogger(os.Stderr)
		logger = log.With(logger, "ts", log.DefaultTimestampUTC)
		logger = log.With(logger, "caller", log.DefaultCaller)
	}
	// Find service local IP.
	conn, err := net.Dial("udp", "<IP_ADDRESS>:80")
	if err != nil {
		logger.Log("err", err)
		os.Exit(1)
	}
	localAddr := conn.LocalAddr().(*net.UDPAddr)
	host := strings.Split(localAddr.String(), ":")[0]
	defer conn.Close()
	if *zip == "" {
		tracer = stdopentracing.NoopTracer{}
	} else {
		logger := log.With(	logger,"tracer", "Zipkin")

		logger.Log("addr", zip)
		collector, err := zipkin.NewHTTPCollector(
			*zip,
			zipkin.HTTPLogger(logger),
		)
		if err != nil {
			logger.Log("err", err)
			os.Exit(1)
		}
		tracer, err = zipkin.NewTracer(
			zipkin.NewRecorder(collector, false, fmt.Sprintf("%v:%v", host, port), ServiceName),
		)
		if err != nil {
			logger.Log("err", err)
			os.Exit(1)
		}
	}
	stdopentracing.InitGlobalTracer(tracer)

} */
// Mechanical stuff.
errc := make(chan error)
ctx := context.Background()  //return a non-nil, empty Context

// ? Do we need the tracer ?
//handler, logger := payment.WireUp(ctx, float32(*declineAmount), tracer, ServiceName)

//The tracer was removed
handler, logger := payment.WireUp(ctx,float32(*declineAmount),ServiceName)

// Create and launch the HTTP server.
go func() {
	logger.Log("transport", "HTTP", "port", *port)
	errc <- http.ListenAndServe(":"+*port, handler)
}()

// Capture interrupts.
go func() {
	c := make(chan os.Signal)
	signal.Notify(c, syscall.SIGINT, syscall.SIGTERM)
	errc <- fmt.Errorf("%s", <-c)
}()

logger.Log("exit", <-errc)

}

Hi Jim,
Were you able to uncover anything?

I haven't been able to look into this yet. do you happen to have a repo that reproduces the project layout and problem outside of your larger codebase?


Split subset by group

Add --split-by-groups option to the split-subset command
e.g)
$ launchable record tests --group e2e ./e2e-test-result.xml
$ find ./tests/**/test_*.py  | launchable subset --split --target 40% file > subset_id.txt
$ launchable split-subset --subset-id $(cat subset-id.txt) --split-by-groups file
$ ls -l
rest-e2e.txt
rest-nogroup.txt
subset-e2e.txt
subset-groups.txt
subset-nogroup.txt

Changes

Dividied methods to split_by_bin and split_by_group_names
Added --split-by-groups-with-rest option

Because needs to pass PATH to --rest option, however split by groups won't use the path will be received from --rest option.

Added split_by_groups_output_handler and split_by_groups_exclusion_output_handler properties to be able to edit output format.

Supported only gradle plugin

@draftcode PTAL 🙇


Date mismatch

Low priority at this time as there are not extensive date validations. :)
The Start and End dates do not match when comparing the Reporting Period "home" to each specific period (seen when editing). Even if if I edit to change it, it reverts back.

See also: https://usdigitalresponse.slack.com/archives/C031R1Y49KL/p1657556392288429


Filter option

In the device panel - on web - I propose to have the possibility to filter the 'Identify column' (where we put IMEI) in the same way that 'name column' is filtered today.
JB

Be able to filter this 'device id' column:
https://drive.google.com/file/d/1k4a8ZQbuJLBRHFIngbxpxl7_HgssRKL6/view?usp=sharing

Sorry, I was under the impression it was already there. Added now.


fix the iteration on the config file.

Short Description:
A small fix in the config file to fix the loop that was in it.
(Issue: https://github.com/OpenPoGo/OpenPoGoBot/issues/352 )
Changes:
Turn the plugin dir into a list instead of a string
@OpenPoGo/maintainers

Current coverage is 51.26% (diff: 100%)

Merging #353 into master will not change coverage

@@             master       #353   diff @@
==========================================
  Files            34         34
  Lines          1500       1500
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits            769        769
  Misses          731        731
  Partials          0          0

Powered by Codecov. Last update 37560cf...de6d676

It was correct before.

Unnecessary since config.yml.example uses correct syntax for a list.