updates on the UI

@WardBrian @jsoules
Just reporting some updates on the UI (gh discussions doesn't seem to be enabled on FI org)

There's a public compilation server now
User can select between public / local / custom (component in menu bar)
Left panel contains a list of examples you can click on
Ability to clear all browser data (good for testing)

Short term plans

Cache some compilation info in browser so that you don't need to click "compile" each time page is reloaded

One early bug: if I compile a model, make changes to it, and save it, the rest of the UI doesn't reset to the model not yet being compiled (e.g. the Run button is still available, the green compiled text is shown next to the compile button)

One early bug: if I compile a model, make changes to it, and save it, the rest of the UI doesn't reset to the model not yet being compiled (e.g. the Run button is still available, the green compiled text is shown next to the compile button)

This has now been fixed.


producer thread safe

Is the producer in pykafka is thread safe?
I want to run multi threads to fetch data from other place, and in every thread, i will produce the message to kafka. Using multi threads to increase the throughtput.
but i did not find  instruction about producer  thread safety.
the Kakfa-python library has illustrated the producer thread safety, the link is: https://kafka-python.readthedocs.io/en/master/index.html
Thread safety The KafkaProducer can be used across threads without issue, unlike the KafkaConsumer which cannot.

@emmett9001: Does the above apply to a producer with sync=True as well?
I think its not, but I'm not 100% sure. Would love to know your opinion.

Yes, sync=True is also threadsafe. The waiting mechanism is handled via threadsafe Queue instances.


Weird error with .NET Core 2.1 (Preview 2)

I installed latest preview of Core 2.1 and i'm now getting that error message whenever i try to run  dotnet publish -r win-x64 -c release
C:\Users\Scellow\.nuget\packages\microsoft.dotnet.ilcompiler\1.0.0-alpha-26413-02\build\Microsoft.NETCore.Native.Publish.targets(57,5)
: error : The PrivateSdkAssemblies ItemGroup is required for _ComputeAssembliesToCompileToNative [C:\Users\Scellow\dev\rpgpvp\src\Realm.Game\Realm.Game.csproj]

I tested on a different OS and it works (macOS 10.13.4)

Oh nvm, it now works, i reinstalled it and rebooted my PC!

Hy
I've the same issue, any ideas please ?
Thanks

Hey, i don't really know how i fixed it, i think i uninstalled all the versions of .net core i had, check in "App & Features" in settings, then i reinstalled it


Please invite me to the GitHub Community Organization

Name
CosminRusu
Discord Username (if applicable)
!!TrueColor
Additional Context
I would like to join in your organization

Would love to have a good collaboration.


Document cell type annotations

We will need to update both the processing information doc and the SCE contents documents to include information about the available cell type annotations.

Some details about what belongs here:
SCE contents

Noting some of was captured in #133, which I'm going to close in favor of collecting everything in this issue.

If SingleR was run...

metadata in the processed SCE:

singler_results is the full SingleR object
reference_name is the reference dataset name
singler_reference_label is the label type that was used in the reference (generally label.ont)
The celltype_methods vector will contain "singler"

colData in the processed SCE:

singler_celltype_annotation are the annotated cell types, taken from pruned labels (so unclassified are NA)
singler_celltype_ontology is the ontology for the cell type. Only present if ontologies were used for cell typing in the first place

If CellAssign was run...

metadata in the processed SCE:

cellassign_predictions are matrix of all predictions; full result analogous to singler_results
cellassign_reference is the organ for which marker genes were obtained from PanglaoDB
The celltype_methods vector will contain "cellassign"

colData in the processed SCE:

cellassign_celltype_annotation are the annotated cell types where unclassified are labeled as "other"
cellassign_max_prediction is the prediction score, which is a probability of the assigned celltype given the provided cell types

More details!
SingleR implementation

We identify a reference based on the tissue type of the given sample, generally using the celldex package.
We consider reference ontology labels when possible
We save the pruned.labels to the colData

CellAssign implementation

We identify a set of marker genes using PanglaoDB; for given tissue type we use all genes associated with that organ
We include an additional cell type "other" which has 0 expression of the marker genes so that cells which cannot be confidently annotated based on the set of marker genes end up getting annotated as "other"

Closed by #134


dm: fix update dml loss if binary column is primary key

What problem does this PR solve?

Issue Number: close #10672
What is changed and how it works?
ref: https://dev.mysql.com/doc/refman/8.0/en/binary-varbinary.html
if column is binary type, we should padding it with \0, otherwise the where condition will also be false
Check List
Tests

Integration test

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
Fixed the issue where data loss could occur when the upstream primary key is of binary type.

/retest

/retest

/retest

/retest

/retest

/retest

/retest

/run-cherry-picker


Possibility to run the same type of benchmark in one run.

Currently when I pass the same benchmark twice (like --benchmarks=ping,ping), the benchmarker will create a set from the provided benchmarks list. This way I am not able to run the same type of benchmark in one run which would be useful when i.e. running the benchmarks in parallel.

@ehankland is working on that in #546 - perhaps you could see if that implementation suits your needs?

That functionality is already in master - (https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/pull/546 just lets you specify different flags for each run). You can use a configuration file or specify it on the command line.
Config file approach:
./pkb.py --benchmark_config_file=ping.yml
[ping.yml]
benchmarks:
  - ping: null
  - ping: null

Or the equivalent on the command line:
./pkb.py --config_override="benchmarks=[{ping: null}, {ping: null}]"

Ok, that's great. Tomorrow I will take a look at this. Thanks

If this works for you please close the issue.  THanks!

Verified - works for me. I'm closing the issue.


Unexpected change to .zshrc file after running install.zsh

I wanted to give Znap! a try since I'm looking for a plugin manager that is fast, and without undue complexity.
Here's what happened:
localhost git % source zsh-snap/install.zsh

Configuring Znap...

Where do you (want to) keep your repos and/or plugins?
> ~/.config/zsh/repos                                                                       [leave blank to use ~/git/]
No such dir ~/.config/zsh/repos. Create? [yn] y
Move Znap's own repo to ~/.config/zsh/repos, too? [yn] y

Updating ~/.config/zsh/.zshrc...
Installation complete.

/Users/me/.config/zsh/.zshrc:zf_mkdir:99: cannot make directory `': no such file or directory
-init-macos-paths:10: read-only file system: /init-macos-paths.tmp.10876
localhost git %

When this was done, all the blank lines from my .zshrc were gone. 😮
For reference, because of the errors above, I note that I have these lines in my .zshrc:
zmodload -F zsh/files b:{zf_mkdir,zf_mv,zf_rm,zf_rmdir,zf_ln}

# make sure the cache directory exists
[[ ! -d "$ZCACHEDIR" ]] && zf_mkdir -p "$ZCACHEDIR"

if (( ISMAC )); then
    if [[ ! -e $ZCACHEDIR/init-macos-paths ]] || ! source $ZCACHEDIR/init-macos-paths; then
        -init-macos-paths && source $ZCACHEDIR/init-macos-paths
    fi
fi

and the extent of my .zshenv is:
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$XDG_CONFIG_HOME/cache"
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"

# the colon here allows using parameter expansiosn side-effects without doing anything else
: "${ZCACHEDIR:=${XDG_CACHE_HOME:-$HOME/.config/cache}/zsh}"

Besides the blank lines being removed, the line:
source ~/.config/zsh/repos/zsh-snap/znap.zsh

was added to the top of ~/.config/zsh/.zshrc, and Znap! seems to be "installed".
Just wanted to make you aware in case it helps improves the installer.

Hm, you're right. I can reproduce that and it's not very nice. I'll see what I can do to fix.
Did the installer work fine for you otherwise?

Should be fixed now. Please try again. 🙂

Updated version works well. Thanks for the quick fix. 👍


Add Cargo.lock for stac-cli

Workspaces just have one lock and we're library-first, so closing as invalid.


position_control.py typo

A very minor quibble.
In the Inventor 2040W micropython motor example code example position_control.py on line 38 ...
board = Inventor2040W(motor_rear_ratio=GEAR_RATIO)
should read
board = Inventor2040W(motor_gear_ratio=GEAR_RATIO)
I note an earlier correction in the file reactive_encoder.py  with he same correction.  Thus a grep for more examples might be in order.
Cheers,

Thanks for spotting this! I'm not entirely sure how I missed this. Will fix it soon.

I suspect what happened is that in my testing I did board = Inventor2040W(GEAR_RATIO), but added the keyword for clarity at the last moment before release.


installation on react-native 0.54.0

I am trying to install the library in my project but i found that the react-native MainActivity is different from what i see in the example. Here is the code:
MainActivity
public class MainActivity extends ReactActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        SplashScreen.show(this);  // here
        super.onCreate(savedInstanceState);
    }

    @Override
    protected String getMainComponentName() {
        return "App_name";
    }
}

MainApplication

public class MainApplication extends Application implements ReactApplication {

  private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
    @Override
    public boolean getUseDeveloperSupport() {
      return BuildConfig.DEBUG;
    }

    @Override
    protected List<ReactPackage> getPackages() {
      return Arrays.<ReactPackage>asList(
          new MainReactPackage()
      );
    }

    @Override
    protected String getJSMainModuleName() {
      return "index";
    }
  };

  @Override
  public ReactNativeHost getReactNativeHost() {
    return mReactNativeHost;
  }

  @Override
  public void onCreate() {
    super.onCreate();
    SoLoader.init(this, /* native exopackage */ false);
  }
}

can you please guide me on how to pass the activity in the MainApplication to this line
 cordovaPluginPackage = new CordovaPluginPackage(this)
and how to access the value assigned to cordovaPluginPackage  in the MainAcitivity
is that applicable or i have to downgrade the react-native version?

Same issue , not work in react-native 0.55+

Same too,

@Assem-Hafez , @kyungjoongo  did you manage to inject cordova plugin to react native app??

@mribbons I seen that you had been worked on your fork, maybe you could help us?

From memory I didn't have much luck with this plugin. Transpiling of the cordova plugin's js files wouldn't work.
I suggest you locate RN ports of the cordova packages you need, or write them yourself.

https://github.com/axemclion/react-native-cordova-plugin/issues/42

@mribbons so I probably also abandon this idea. I have got one more question to you, did you know any other libraries to react native which have good barcode scan performance? I didn't manage to scan AZTEC code using react-native-camera and then I found https://github.com/dex4er/phonegap-plugin-barcodescanner so I wanted to used it with react-native-cordova-plugin but as appear we can''t do it.

@mateuszmatyszkowicz zxing is one I have heard a lot of but never tried (I have only worked with built in scanners for android).
Google "zxing react native", there's a few options to look at.


(AzureCXP) MicrosoftDocs/azure-docs#546

Modified the table name to events under "Ingest mapped JSON records" section in Python code.

@HarithaMaddi-MSFT : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@HarithaMaddi-MSFT : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@orspod - Please take a look and approve the changes if appropriate. Thanks!

@orspod - Please take a look and approve the changes if appropriate. Thanks!


Incorrect assembly version resolution under Mono 5.0

When using MSBuild under Mono <IP_ADDRESS>, it fails to correctly resolve assemby references for gtk-sharp (version 2.12). There are two versions installed into the GAC (2.12 and 3.0), and MSBuild does not select 2.12 for a project which references it. Instead, it arbitrarily picks 3.0.
xbuild does not have this problem, and correctly resolves the assembly.
This causes projects which use GTK#2 to not be able to be built with MSBuild. An example of an affected project can be examined here: https://github.com/Nihlus/Launchpad
--
System Info
Linux Mint 18.1 Cinnamon Edition
Mono <IP_ADDRESS> (Xamarin release via repository)
MSBuild <IP_ADDRESS>
xbuild 14.0
libgtk2.0-cil (2.12.43-0xamarin7+debian7b1)

Could you run msbuild with /fl /flp:v=diag and share the generated msbuild.log? Ensure that you build from a clean state.

Certainly.  Here you go.
msbuild.log.txt


Use imgSize when provided

Alternative to #5035.

This is now ready for review.

LGTM

Should this be marked as fixing #3220?

Definitely. Thanks @tschaub.

Yes it works. Great work. Thank you!


999 response error while running from racksapce

HI I using the scraper form my Rackspece machine I receive a 999 response.
Details of the error below:
linkedin-scraper http://www.linkedin.com/in/jeffweiner08
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/mechanize-2.7.3/lib/mechanize/http/agent.rb:933:in response_read': 999 =>  for  -- http://www.linkedin.com/in/jeffweiner08 (Mechanize::ResponseCodeError) 	from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/mechanize-2.7.3/lib/mechanize/http/agent.rb:262:in block in fetch'
from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:1413:in block (2 levels) in transport_request' 	from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http/response.rb:162:in reading_body'
from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:1412:in block in transport_request' 	from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:1403:in catch'
from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:1403:in transport_request' 	from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:1376:in request'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/net-http-persistent-2.9/lib/net/http/persistent.rb:986:in request' 	from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/mechanize-2.7.3/lib/mechanize/http/agent.rb:259:in fetch'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/mechanize-2.7.3/lib/mechanize.rb:440:in get' 	from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/linkedin-scraper-0.1.3/lib/linkedin-scraper/profile.rb:20:in initialize'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/linkedin-scraper-0.1.3/bin/linkedin-scraper:4:in new' 	from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/linkedin-scraper-0.1.3/bin/linkedin-scraper:4:in <top (required)>'
from /usr/local/rvm/gems/ruby-2.0.0-p247/bin/linkedin-scraper:23:in load' 	from /usr/local/rvm/gems/ruby-2.0.0-p247/bin/linkedin-scraper:23:in '

This happens when LinkedIn has blocked the IP address for too much traffic. You might want to limit the amount of calls you make to the site from a single IP address.

Limit the call with max of 4 requests per second. Do not exceed more than that


Labeling Instructions are being displayed as raw HTML in Label Studio Enterprise

Describe the bug
In Label Studio Enterprise, the Labeling Instructions load properly as rendered HTML when displayed prior to annotating, but when clicking the i to show the instructions once in the labeling interface, it just shows the raw html.
To Reproduce
Steps to reproduce the behavior:

Go to a task for labeling in Label Studio Enterprise.
Click on the i in the bottom of pane.
See error

Expected behavior
Rendered HTML instructions.
Screenshots
This is what the instructions look like when initially displayed at the start of annotation (and how we would expect them to look when the i is clicked to show the instructions):

This is what the instructions look like when the i is clicked:

Environment (please complete the following information):

OS: MacOS
Label Studio Enterprise

Additional context
These are the HTML instructions that we set in the Annotations tab of the project settings.

Please read through the eConsult dialogue and evaluate the clinical quality of the specialist responses using the eSQUARE scale. At the bottom, please select as many tags as are relevant.

Grading Scale

    Blank
    1
    2
    3
    4
    5

    N/A
    Not At All

    Acceptable

    Exemplary

Hey @noahlibby17 Thank you so much for flagging — we're submitting this to our internal support team. :)


runTutorialTwo.py causes GUI to crash

Related to #736.
@aseth1 or @chrisdembia can read through the script to identify likely causes for the crash.

I suspect the issue is replacePathPoint(): https://github.com/opensim-org/opensim-gui/blob/be6c2dfbaf114a7edbf1a95d12895c97390a92a7/Gui/opensim/Scripts/runTutorialTwo.py#L57

I did bring this up in meeting— it is almost certainly because the number of points on ECU_post is greater than the number on ECU_pre.

I pushed a (apparent) fix here.
I tested by running the script 10 times in a row in the GUI (clearing the models and plots in between). I didn't get any crashing. I did this on Mac so perhaps someone can test on Windows?

Ah I missed that part of the meeting.

@chrisdembia, it was my bad—Im just sorry that you guys had to waste some time looking for the issue. Hopefully the changes I propose are a decent fix.

@jimmyDunne @chrisdembia is this issue resolved?

I tested locally just now and the issue seems fixed. I was able to run runTutorialTwo.py 4 times without the GUI crashing. Closing.


[Bug] [CDCSOURCE] Unable to synchronize data using CDCSOURCE

Search before asking

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

What happened
When I use CDCSOURCE to synchronize this table fails and not get exeception.
I'm using CDCSOURCE to synchronize my tables, but this table doesn't work.
//The following are configured this table for testing using CDCSOURCE alone on dinky.

//Flink Web UI

//But when I use single table sync it will be fine

What you expected to happen

How to reproduce
Use CDCSOURCE to sink special table.
Anything else
No response
Version
0.7.3
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

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

Find the reason for not creating sinks from the log.


Can't launch app after building [java.lang.IllegalStateException: This app has been built with an incorrect configuration]

Information

Apktool Version (apktool -version) - 2.6.1
Operating System (Mac, Linux, Windows) - Windows
APK From? (Playstore, ROM, Other) - Play Store

Stacktrace/Logcat
03-13 23:09:00.398  3582  3582 E AndroidRuntime: FATAL EXCEPTION: main
03-13 23:09:00.398  3582  3582 E AndroidRuntime: Process: com.mada.madapay, PID: 3582
03-13 23:09:00.398  3582  3582 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mada.madapay/com.emcrey.app.activities.SupportActivity}: java.lang.IllegalStateException: This app has been built with an incorrect configuration. Please configure your build for VectorDrawableCompat.
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3456)
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3612)
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2073)
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:106)
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:246)
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:7690)
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593)
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)
03-13 23:09:00.398  3582  3582 E AndroidRuntime: Caused by: java.lang.IllegalStateException: This app has been built with an incorrect configuration. Please configure your build for VectorDrawableCompat.
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at o.setFirstBaselineToTopHeight.RemoteActionCompatParcelizer(Unknown Source:6492)
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at o.setTextAppearance.read(Unknown Source:411)
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at o.PlaybackStateCompat$CustomAction$MediaBrowserCompat$MediaItem.IconCompatParcelizer(Unknown Source:2093)
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at o.setHasDecor.MediaBrowserCompat$CustomActionResultReceiver(Unknown Source:794)
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at o.setHasDecor.setExpandedFormat(Unknown Source:770)
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at o.setHasDecor.write(Unknown Source:498)
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at o.ParcelableVolumeInfo.onCreate(Unknown Source:114)
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at com.emcrey.app.activities.SupportActivity.onCreate(Unknown Source:16)
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at android.app.Activity.performCreate(Activity.java:8013)
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at android.app.Activity.performCreate(Activity.java:7993)
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3429)
03-13 23:09:00.398  3582  3582 E AndroidRuntime:        ... 11 more

Steps to Reproduce

apktool d .\mada.apk
apktool b .\mada
zipalign -p -f 4 .\dist\mada.apk mada_zipaligned.apk
Signing the apk and installing

Frameworks
If this APK is from an OEM ROM (Samsung, HTC, LG). Please attach framework files
(.apks that live in /system/framework or /system/priv-app)
APK
If this APK can be freely shared, please upload/attach a link to it.
Questions to ask before submission

Have you tried apktool d, apktool b without changing anything? yes
If you are trying to install a modified apk, did you resign it? yes
Are you using the latest apktool version? yes

Link might be useful:
https://stackoverflow.com/a/39531237

Afraid I'm not sure what Apktool can do here. We already attach --no-version-vectors during assemble. Without an application source/binary to mess with - can't go further here.
You could try --use-aapt2 during build and see if that helps out.

I have same problem, any have update for this


[Feature][Module Name] Multi-network card binding problem

Search before asking

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

Description
There are multiple network cards in the actual production environment. Due to security and permissions issues, not all network cards are connected. Therefore, we can access the network cards specified by the configuration settings
Use case
No response
Related issues
No response
Are you willing to submit a PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

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

You can set dolphin.scheduler.network.interface.preferred in common.properties.


Suggestion: Disable running BASIC programs in settings

I've had some glitchy things happen with BASIC programs, and would like a way to disable running TI-BASIC programs in Cesium. An option in settings that's disabled by default would probably be the best way to go about doing this. You could also have an option that goes next to the program sub-menu with archived, locked, and hidden.

The point is to fix the basic program issues, not disable them. Please report actual issues.

In other news, there is a new pre-release (3.1.3) that should hopefully fix your basic program issues.


twig-drupal-filters without not working

Describe the bug
The without filter from the package twig-drupal-filters is not working.
This happens because the without implementation from twig-drupal-filters uses all arguments after the first to select the keys to remove from the array (see filters/without.js#L26).
miyagi extends the without filter but doesn’t pass on the remaining arguments:
https://github.com/mgrsskls/miyagi/blob/fa451b269783c4f455c6ef70c01779a6f951a7e8/packages/twig-drupal/index.js#L149
To Reproduce
Steps to reproduce the behavior:

Create a new array like:

{% set test = { hello: "world", foo: "bar" } %}

Try to output the array without the hello key:

{{ dump(test|without("hello")) }}

The output is an empty array:

object(0) { }

Expected behavior
The output should be the original array without the hello key on the first level:
object(2) { [foo]=> string(3) "bar" [_keys]=> object(2) { [0]=> string(5) "hello" [1]=> string(3) "foo" } }

Thanks a lot! Fixed in twig-drupal/v0.1.7. Can you please confirm, @mvsde?

The fix is working perfectly 👍🏻


Mismatching ENV variable used in the ".env" compared to the "periodically_update_suspended_png.sh"

Inside the .env we can see the TODAYS_TODO_NEW_ABSOLUTE_FILENAME=/usr/share/remarkable/suspended.png
Inside the https://github.com/anti22dot/rm_calendar_memo/blob/main/periodically_update_suspended_png.sh

logline "cp ${TODAYS_TODO_RES_CMP_FILE} ${TODAYS_TODO_FINAL_ABSOLUTE_FILENAME}"
cp ${TODAYS_TODO_RES_CMP_FILE} ${TODAYS_TODO_FINAL_ABSOLUTE_FILENAME}

So, the TODAYS_TODO_NEW_ABSOLUTE_FILENAME does not match the TODAYS_TODO_FINAL_ABSOLUTE_FILENAME and vice versa.

NOTE: Kudos to the RudyOne person, for this idea.

This is issue was resolved, by changing the ENV name TODAYS_TODO_NEW_ABSOLUTE_FILENAME to the TODAYS_TODO_FINAL_ABSOLUTE_FILENAME inside the .env See commit:  #1f35cc0

This is issue was resolved, by changing the ENV name TODAYS_TODO_NEW_ABSOLUTE_FILENAME to the TODAYS_TODO_FINAL_ABSOLUTE_FILENAME inside the .env See commit: #1f35cc0


Getting element size using selection.style

I believe commit e7c72a6 may have broken my code, and I think it's because I've been relying on some brittle functionality. I probably need to find a more correct method for what I'm trying to accomplish. In order to create responsive d3 views, I've been setting my SVGs to use 100% of the available space, like this:
var view = containerSelection.append("svg").style("width", "100%").style("height", "100%");

Then when I render the view (this is the part that feels especially hacky):
var width = parseInt(view.style("width"));
var height = parseInt(view.style("height"));

And I use width and height for everything after that point.
Is there a more robust method to create d3 SVGs that are responsive to whatever parent you shove them in?

The simple fix is to query the container rather than the SVG element you added:
var width = parseInt(containerSelection.style("width"));
var height = parseInt(containerSelection.style("height"));

But it’d be cleaner to use element.getBoundingClientRect:
var rect = containerSelection.node().getBoundingClientRect(),
    width = rect.width,
    height = rect.height;

That should work on either the container or the SVG element.

That did it, thanks!

I, too, was bitten by this. While I appreciate making the API faster & more predictable, I do believe this was a breaking change and should have a corresponding API version bump.
Again, I see the rationale for the change, but the behavior changed in a way that breaks code depending on the existing behavior.


Let coroutines dispatch-method be flowable

...Instead of being suspendable and awaiting only for the first emitted element.
And yes, this is a breaking change (however, coroutines API is still marked as experimental).

Thanks a lot, that's merged now for 6.0.2 and 6.1.

Thanks a lot, that's merged now for 6.0.2 and 6.1.


Bug fix - no longer runs n + 1 iterations

Thanks James! Merry Christmas Ho Ho Ho. 🎅

Merry Christmas dude!
On 22 Dec 2015 5:57 p.m., "idlem1nd"<EMAIL_ADDRESS>wrote:

Thanks James! Merry Christmas Ho Ho Ho. 🎅
—
Reply to this email directly or view it on GitHub
https://github.com/idlem1nd/postman-pat/pull/1#issuecomment-166690650.


Installs for Alpine Linux in WSL

This is a really cool package!
For Alpine on WSL I needed to also install a few more packages so that everything worked:
apk add curl jq fzf util-linux

curl for download obviously. jq and fzf are mendtioned in the requirements. util-linux to have the column command from https://github.com/sdushantha/tmpsms/blob/master/tmpsms#L181 working.
Regards Sebastian

Thank you for letting me know! I won't be adding util-linux to the dependency list because column tends to come with almost all popular Linux distributions such as Ubuntu, Arch Linux and Debian

Thank you for letting me know! I won't be adding util-linux to the dependency list because column tends to come with almost all popular Linux distributions such as Ubuntu, Arch Linux and Debian


Can not create AppGW v2 without private ip.

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug
I used below command to create AppGW v2 but it was failed.
$ az network application-gateway create -n myApplicationGateway -l canadacentral -g 3myResourceGroup --sku Standard_v2 --public-ip-address myPublicIp --vnet-name myVnet --subnet mySubnet
Deployment failed. Correlation ID: 12855b3e-7235-4b30-8527-993023968170. {
"error": {
"code": "ApplicationGatewayFrontendIpPrivateIpAddressInvalidAllocationType",
"message": "FrontendIpConfiguration /subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/3myResourceGroup/providers/Microsoft.Network/applicationGateways/myApplicationGateway/frontendIPConfigurations/appGatewayPrivateFrontendIP of Application Gateway with SKU tier Standard_v2 can only use PrivateIPAddress with IpAllocationMethod as Static.",
"details": []
}
}
When I used below command, it was successful.
$ az network application-gateway create -n myApplicationGateway -l canadacentral -g 3myResourceGroup --sku Standard_v2 --public-ip-address myPublicIp --private-ip-address <IP_ADDRESS> --vnet-name myVnet --subnet mySubnet
I know we can create AppGW v2 without private ip so this is bug of Azure CLI.

Same issue here. Yesterday the same command worked without specifying a private IP.

network

I got the same issue

I passed the issue by add the specified IP with the defined subnet created for APPGW.
az network application-gateway create
--name "$appgw_name"
--location japaneast
--resource-group "$myResourceGroup"
--vnet-name "$vnet_vnetname"
--subnet "$appgw_sn_name"
--capacity 2
--sku Standard_v2
--http-settings-cookie-based-affinity Disabled
--frontend-port 80
--http-settings-port 80
--http-settings-protocol Http
--public-ip-address myAGPublicIPAddress
--private-ip-address <IP_ADDRESS>

If --private-ip-address is not provided, Azure CLI would create a default private IP inside the default private subnet and it's IP address is dynamically created. And if --private-ip-address is provided, the allocation method is static.
I think it's a feature or restriction added from the service side. If you about to create an AppGw with default sku, it would succeed. But if with Standard_v2 SKU, it wouldn't allow.

I think below fix is related to this issue. After this fix, we fail to create AppGW without private ip.
https://github.com/Azure/azure-cli/pull/15255/files/8c1cbdf50b50ecd8dda7c577c54e7d54f6ac8b62

I think below fix is related to this issue. After this fix, we fail to create AppGW without private ip.
https://github.com/Azure/azure-cli/pull/15255/files/8c1cbdf50b50ecd8dda7c577c54e7d54f6ac8b62

Are you using the latest Azure CLI?

@hisasima It is a regression introduced last time, the original goal is to able to create an application gateway with both public IP and private IP.
We will plan a way to think about how to fix it.


Check unique default before using the value

fixes #15

nit: please use keywords - e.g. "fixes #15" - so that the merging of the PR will auto-close the issue. Or, if it doesn't completely address the issue and therefore shouldn't close it, just a "relates to #15" is good. Having the bare issue number is a bit ambiguous.

Let's add a test case to ensure that when multiple defaults arise as a result of unification, this logic still catches it. (It seems unlikely that anyone adds multiple defaults on purpose, so this is actually the case that's most important to check for.)

I can write some example as I understand, it would be nice if we can define a use case together for the real issue, It is probably nice to define use cases when write a user story, TDD would save us some time :).

currently
AType: *4 | int @cuetsy(kind="type")
Foo: {
  Baz: AType | *7
} @cuetsy(kind="interface")

doesn't error but
AType: *4 | int @cuetsy(kind="type")
BType: *7 | int @cuetsy(kind="type")
Foo: {
  Baz: AType | BType
} @cuetsy(kind="interface")

error out correctly, a tad confusing

the snippet for the use cases: https://github.com/ying-jeanne/cue_test_cases/blob/bf84db6edba61d3479838967d7445f1775393fc3/main.go
a ticket opened on cue-lang because the expr() behaves weirdly https://github.com/cue-lang/cue/issues/1245


Update RCTGoogleTagManagerBridge.m

https://productforums.google.com/forum/#!msg/tag-manager/JkvXe0DPxTg/9wRE_Tm8DQAJ
If we are sending e-commerce event continuously, then request payload is not updated.
In this case we need to reset commerce payload and need to try again

Thanks for the PR, as one of the comments says in the accompanying link

Although just as an update here, this workaround has a pretty significant drawback:
If you push two events in quick succession and clear the ecommerce layer before each event, as suggested, it's possible that the GTM hit has not been built for the first event, and since it was just erased from the data layer, it will never be recorded.
I think you can mitigate this by lowering the dispatchInterval, but that is not very efficient, and it is still possible that lots of events could be fired in very rapid succession (eg: product impressions on a search results page).

Is it a good idea to solve it like this in that case?

Closed for inactivity


flexDirection: row breaks numberOfLines in nested

The actual result I want to get is
<View>
<Text>Long truncated text...</Text> <Text>Fixed string on same line</Text>
</View>

I tried some cases, but it seems that flex breaks Text@numberOfLines
// works but "Fixed" on the new line
<View style={{padding: 20}}>
    <Text numberOfLines={1}>
        1. This text is truncated This text is truncated This text is truncated
    </Text>
    <Text>Fixed</Text>
</View>

// text is not truncated, padding is ignored
<View style={{padding: 20, flexDirection: 'row'}}>
    <Text numberOfLines={1}>
        2. This text is truncated 2. This text is truncated 2. This text is truncated
    </Text>
    <Text>Fixed</Text>
</View>

// text is not truncated, padding is ignored
<View style={{padding: 20, flexDirection: 'row'}}>
    <Text numberOfLines={1} style={{flex: 1, overflow: 'hidden'}}>
        3. This text is truncated 3. This text is truncated 3. This text is truncated
    </Text>
    <Text>Fixed</Text>
</View>

// text is not truncated, padding is ignored
<View style={{padding: 20, flexDirection: 'row'}}>
    <Text numberOfLines={1} style={{flex: 1, overflow: 'hidden', minWidth: 0}}>
        4. This text is truncated 4. This text is truncated 4. This text is truncated
    </Text>
    <Text>Fixed</Text>
</View>

// text is not truncated, padding is ignored
<View style={{padding: 20, flexDirection: 'row'}}>
    <Text numberOfLines={1} style={{overflow: 'hidden'}}>
        5. This text is truncated 5. This text is truncated 5. This text is truncated
    </Text>
    <Text style={{flex: 1}}>Fixed</Text>
</View>

Here is my result

+1

+1

+1

Have any of you guys found workarounds for this? Not sure how to go about doing this...

I had the same issue, and spent 45m+ trying to figure out why this worked: http://stackoverflow.com/questions/36284453/react-native-text-going-off-my-screen-refusing-to-wrap-what-to-do but my code did not.
Looks like my top-most Component had a style containing "alignItems: 'center'", which caused the above problem to happen for me. Have a look here: https://rnplay.org/apps/Usel7g (change the parent from fixedContainer to brokenContainer to see things break).
I still believe this represents some sort of bug in React, and should remain open. (Or at least, something that needs more thorough documentation to clarify the layout model here in this action-at-a-distance of sorts), but at least I have a workaround that works for me.

just use View wrap it,
<View style={{width: screen.width}}>
    <Text>Long truncated text...</Text>
</View>

it work fine for me

I have a very simple solution:
change this:
<Text numberOfLines={1} >long text....</Text>
to:
<View style={{flex: 1}}>     <Text numberOfLines={1} >long text....</Text> </View>
This solved my problem.

@facebook-github-bot closed.

@facebook-github-bot fixed.

numberOfLines does not work on Text nested inside Text

Hi @doochik, are you still experiencing this issue? Seems like the suggested solution of wrapping it in a  is workable?
As for numberOfLines not working properly, @oureta can you put together a PR?

Hi @ericnakagawa, i just do JS.

@ericnakagawa I've tested my examples in RN 0.40. This example works as expected
                <View style={{padding: 20, flexDirection: 'row'}}>
                    <Text numberOfLines={1} style={{flex: 1, overflow: 'hidden'}}>
                        3. This text is truncated 3. This text is truncated 3. This text is truncated
                    </Text>
                    <Text>Fixed text</Text>
                </View>

@doochik  it is working only for numberOfLines={1}.
if you use a different number of lines it makes all of the shorter...


blank screen

hey I tried it earlier and just got blank screen.

have to use HTTP only :). thanks :+1:

Sorry for no response, was too busy, glad you've worked it out

yes, do you think we can map FFW and Rew buttons to move up and down in the channel list without exiting the full screen?
https://github.com/sudo97/Roku-IPTV/blob/master/components/MainScene.brs#L20

Might be good, we could just leave the focus on the list when we set video
to fullscreen, so when user presses ffd or rew -- the list would handle
these keys, or we could implement it by ourselves using jumptToItem field
of the list
24 июля 2017 г. 15:22 пользователь "mafrahim"<EMAIL_ADDRESS>написал:

yes, do you think we can map FFW and Rew buttons to move up and down in
the channel list without exiting the full screen?
https://github.com/sudo97/Roku-IPTV/blob/master/
components/MainScene.brs#L20
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/sudo97/Roku-IPTV/issues/1#issuecomment-317405390, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADjhTDyxhdylX5wFjbIj7EBqME9plBlpks5sRIybgaJpZM4OWmkN
.


fix(config): Change default path of runtime dir to owned directory

Prerequisite checklist

[x] Read the contribution guidelines regarding submitting new changes to the project;
[x] Tested your changes against relevant architectures and platforms;
[x] Ran make fmt on your commit series before opening this PR;
[ ] Updated relevant documentation.

Description of changes

GitHub-Fixes: #560

Has this been superseded by #731?

Yup, we can close this


Add UpdateMoneyRequestTag command

Needs https://github.com/Expensify/Web-Expensify/pull/40007 (In staging now)
Details

Fixed Issues

$ https://github.com/Expensify/App/issues/32312
PROPOSAL:
Tests

[x] Verify that no errors appear in the JS console

Create an account in OldDot and create a collect workspace
Go to the policy settings page
Open Chrome console and run the following snippet to enable policyExpenseChats:p = Policy.getCurrent();
p.policy.isPolicyExpenseChatEnabled = 'true';
p.save();

Invite another account the workspace as a member (not admin)
Add some testing tags to the workspace, for example:

Log in on NewDot with the invited employee account
Request money in the policyExpenseChat and choose some tag
Edit the transaction just created and update the tag
Verify that a message like the following appears in the transaction chat:

Edit the tag again and now click the same tag that is selected
Verify that the tag is removed and the automated message "removed the tag (previously "")." appears
Edit the tag again and now click any tag
Verify that the tag is set and the automated message "set the tag to "")."

Offline tests

QA Steps

Create an account in OldDot and create a collect workspace
Go to the policy settings page
Open Chrome console and run the following snippet to enable policyExpenseChats:p = Policy.getCurrent();
p.policy.isPolicyExpenseChatEnabled = 'true';
p.save();

Invite another account the workspace as a member (not admin)
Add some testing tags to the workspace, for example:

Log in on NewDot with the invited employee account
Request money in the policyExpenseChat and choose some tag
Edit the transaction just created and update the tag
Verify that a message like the following appears in the transaction chat:

Edit the tag again and now click the same tag that is selected
Verify that the tag is removed and the automated message "removed the tag (previously "")." appears
Edit the tag again and now click any tag
Verify that the tag is set and the automated message "set the tag to "")."

[ ] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

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

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If the PR modifies the form input styles:

[x] I verified that all the inputs inside a form are aligned with each other.
[x] I added Design label so the design team can review the changes.

[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native

Android: mWeb Chrome

iOS: Native

iOS: mWeb Safari

MacOS: Chrome / Safari
https://github.com/Expensify/App/assets/87341702/253dbe55-fa05-4211-b244-29c0e8535c9f

MacOS: Desktop
https://github.com/Expensify/App/assets/87341702/76a9d066-3b20-4481-9066-e3438251fc07

@aldo-expensify please resolve conflicts

@aldo-expensify please resolve conflicts

Done!

Reviewer Checklist

[x] I have verified the author checklist is complete (all boxes are checked off).
[x] I verified the correct issue is linked in the ### Fixed Issues section above
[x] I verified testing steps are clear and they cover the changes made in this PR

[x] I verified the steps for local testing are in the Tests section
[x] I verified the steps for Staging and/or Production testing are in the QA steps section
[x] I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)

[x] I checked that screenshots or videos are included for tests on all platforms
[x] I included screenshots or videos for tests on all platforms
[x] I verified tests pass on all platforms & I tested again on:

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

[x] If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
[x] I verified proper code patterns were followed (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I verified that this PR follows the guidelines as stated in the Review Guidelines
[x] I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] If a new component is created I verified that:

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x ] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If the PR modifies the form input styles:

[x] I verified that all the inputs inside a form are aligned with each other.
[x] I added Design label so the design team can review the changes.

[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[x] I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: Native

Android: mWeb Chrome

iOS: Native

iOS: mWeb Safari

MacOS: Chrome / Safari

MacOS: Desktop

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to staging by https://github.com/arosiclair in version: 1.4.23-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production by https://github.com/thienlnam in version: 1.4.23-4 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
failure ❌

🕸 web 🕸
success ✅


String Questions of Striver SDE Sheet in Java & C++

Z Algorithm
Find Pattern in String - KMP Algorithm
Minimum Characters For Palindrome

Add your code here under the Strings Section
Important:

Create a package for each question
And create a README file for each question, which will consist of the problem link, and time complexity and you have to write the approach towards the solution (both brute force and optimal one)

@aritra-tech assign it to me

Sure


ci: GitHub action syntax fixes

Minor fixes for the GitHub action inputs according to the metadata syntax.
Please ensure your pull request adheres to the following guidelines:

[x] For first time contributors, read Submitting a pull request
[ ] All code is covered by unit and/or runtime tests where feasible.
[x] All commits contain a well written commit description including a title,
description and a Fixes: #XXX line if the commit addresses a particular
GitHub issue.
[ ] If your commit description contains a Fixes: <commit-id> tag, then
please add the commit author[s] as reviewer[s] to this issue.
[x] All commits are signed off. See the section Developer’s Certificate of Origin
[ ] Provide a title or release-note blurb suitable for the release notes.
[ ] Are you a user of Cilium? Please add yourself to the Users doc
[ ] Thanks for contributing!

/test


sitePages API (beta): $count parameter only reports what's returned, not overall number

Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
other (enter in the "Additional environment details" area below)
Developer environment
Windows
What browser(s) / client(s) have you tested

[ ] 💥 Internet Explorer
[ ] 💥 Microsoft Edge
[X] 💥 Google Chrome
[ ] 💥 FireFox
[ ] 💥 Safari
[ ] mobile (iOS/iPadOS)
[ ] mobile (Android)
[ ] not applicable
[ ] other (enter in the "Additional environment details" area below)

Additional environment details

Chrome latest
Microsoft Graph Explorer

Describe the bug / error
My goal is to get the count of pages in the Site Pages library of a site.
According to the beta endpoint documentation the $count parameter is supported.
I add the $count parameter, the result contains a count, but the count only reflects the number of returned pages - which makes no sense. I expect the overall count of pages.
Steps to reproduce
Call https://graph.microsoft.com/beta/sites/<siteid>/pages/microsoft.graph.sitePage?$count=true on a site with more than 200 pages (200 pages seems to be the default response-page size, so make the number of pages in the site larger).
Expected behavior
I expect the overall number of pages to be returned. I have a test site with 130000 pages, so I'd expect a count of 130000 to be returned. Not 200.
The response for above call for me yields (in Graph Explorer):
{
<EMAIL_ADDRESS>"https://graph.microsoft.com/beta/$metadata#sites('<siteid>')/pages/microsoft.graph.sitePage",
<EMAIL_ADDRESS>200,
<EMAIL_ADDRESS>"https://graph.microsoft.com/beta/sites/<siteid>/pages/microsoft.graph.sitePage?$count=true&$skiptoken=<snip>",
<EMAIL_ADDRESS>"Use $select to choose only the properties your app needs, as this can lead to performance improvements. For example: GET sites('<siteid>')/pages/microsoft.graph.sitePage?$select=promotionKind,reactions",
    "value": [

// <snip 200 pages>
   ]
}

By the way when restricting the call with the $top=1 parameter to return only one item, the count is .... 1. This count is useless XD
How is the $count param intended to work for sitePages?

Are you only attempting to get the count? The pagination makes sense by default, as getting 130,000+ pages returned in a single API call is probably unnecessarily taxing to both the client and the server.
If you are trying to get only the count, could you try using $count as a URL segment instead of a query parameter (i.e. as a / instead of a ?, e.g.:
https://graph.microsoft.com/beta/sites/<siteid>/pages/microsoft.graph.sitePage/$count=true

Yes I'm only interested in the count. I'm not expecting 130000 pages to be returned. I just mentioned the number since it might make a difference in the backend when getting the count.
Interesting approach using it as URL segment, didn't really see this option. But it does not want it:

https://graph.microsoft.com/beta/sites/<siteid>/pages/microsoft.graph.sitePage/$count=true
returns:
{
    "error": {
        "code": "BadRequest",
        "message": "The request URI is not valid. Since the segment 'microsoft.graph.sitePage' refers to a collection, this must be the last segment in the request URI or it must be followed by an function or action that can be bound to it otherwise all intermediate segments must refer to a single resource.",
        "innerError": {
            "date": "2023-08-22T19:38:05",
            "request-id": "0bf73008-6f71-4fec-b24e-cc17736f795d",
            "client-request-id": "5a8b5de1-ed7c-a9cc-00f2-f460f45a8c8b"
        }
    }
}


don't overwrite a valid key flags with an empty one

We had previously split hairs over tied (in time) Sigs, given RFC 4880 says we're supposed to take the most recent. But what about if the later one is busted, since it doesn't have key flags?  This is super annoying situation that show sup with spiros. A workaround here, but still, it's madness.

r? @oconnor663?  I'm not sure of any better way to fix this.

@oconnor663  bump! want to try to get this in before end of sprint.

LGTM!


Add word deletion with CTRL + Backspace/ Delete

Added word deletion in input
Word deletion in the LM input is now support with CTRL  + Backspace for backwards deletion and CTRL + Delete for forwards deletions. On Mac this should also be supported with ALT instead of CTRL.
Let me know if I missed something or if anything has to be done differently?
Resolves #147

@sancarn and @TarVK I have resolved all your comments.
Could any of you check the code again and test it locally to confirmed it's working correctly?

I tested it locally and all seems fine to me, thanks 🙂. The changelog should however still be updated:
https://github.com/LaunchMenu/LaunchMenu/tree/development#changelog
I will make a PR template such that people are aware of this for future PRs.
I think if you add:
# vNext
## Non-breaking
### Feature
#### core
-   Added word deletion support [#154](https://github.com/LaunchMenu/LaunchMenu/pull/154)

It should be good (it doesn't seem I can add that myself to your PR, or add change suggestions for unchanged files)

This ain't the spot for this discussion I guess, but maybe you should have a CHANGELOG.md and a CONTRIBUTE.md file in the root of the project and just have links in the main README.md linking to those. That way it is a bit more separated which makes it easier to maintain imo.
Anyway, I will add it to the readme :D

I think you misunderstood, there already is a CHANGELOG.md.
I do indeed agree it should be separated from the readme. I just used the readme to documented how to update the changelog.
I don't have a separated CONTRIBUTE.md file though. What do you propose the purpose of that would be? Keeping track of different contributors and their contributions or something?

Aah, my bad then, ill revert my changed in the README :P

Fixed


fix: remove close calls when body not defined

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


fix: Refreshing page shuffles all Drops

Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.
👇 __ Let's make a quick check before the contribution.
PR Type

[x] Bugfix

Needs QA check

@kodadot/qa-guild please review

Context

[x] Closes #9288

Did your issue had any of the "$" label on it?

[x] My DOT address: Payout

Screenshot 📸

[x] My fix has changed UI

Copilot Summary
copilot:summary
copilot:poem

Thanks!
pay 30 usd

😍 Perfect, I’ve sent the payout
💵 $30 @ 6.76 USD/DOT ~ 4.438 $DOT
🧗 16SjUbGKSdjCdWTy3NNT3JxbRVGGqD4mwkHpc6BD9U2Rp29Z
🔗 0x8c64a1660761ed7f2fb91367c6fc6734e11c2d1f73c4a077767853507b9e493f
🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues


Improved Table of Contents section of README

Cheers :beers:

Coverage remained the same at 92.632% when pulling 5394207ae8223a8519695eaaba34352026239c57 on mooyoul:improve-readme-toc into 8d28cefbeea9f45323adc2b3387c4589ab625514 on node-nock:master.


[feat]: add avx string split feature

add avx string split feature

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Debugging some cases in a single step.

What problem does this feature solve?
I've detailed the process of mixed debugging between JS and Rust in a test suite in https://github.com/web-infra-dev/rspack/discussions/4389. However, this may still be complex. Could we perhaps create a script to invoke the debugger in a single step, like ./x debug examples/basic?
What does the proposed API of configuration look like?
nothing

if it works it will be nice, but I'm not sure whether we can make it work

Completed at https://github.com/web-infra-dev/rspack/pull/4611


fix: This is an example of a fix release

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


relax the constraint of dependent version of multi_json

see also: https://github.com/intridea/multi_json/blob/master/CHANGELOG.md#1111

I signed it!


Need Face detection and Face Recognition samples migrated to new Framework as old ones crashing in Live camera use case

Hi,
I am looking for Face detection and recognition samples migrated to new repository, but i don't see any specific samples there, and i tried samples from old repository ([https://github.com/intel/webml-polyfill [github.com]) but those are crashing in the live camera case. we are looking for latest libraries which support FR/FD functionality to use in our project. so anything available immediately is of great help.
Regards
Roshan

@roshansullad we just add following samples as you requested:

Facial Landmark Detection
Face Recognition

Please try and let us know if you have any question.

Sure Honry,
Thanks for doing it so quickly, will let you know if any issues we face.
Thank you very much


fix: updated deps

:tada: This PR is included in version 2.4.8 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Added test cases for methods in DoubleComparator

Added test cases for the following methods: isNegative, isNegativeOrZero, isPositive, isPositiveOrZero, isGreater, isGreaterOrEquals, isLess, and isLessOrEquals.
This commit is part of the issue #97 (Unit tests for Util Classes)

Added test cases for IteratedGreedy. Part of issue #97

Added test cases for SimulatedAnnealing. Part of issue https://github.com/rmartinsanta/mork/issues/97


How can I call a method in the modal controller from the succes button?

Here is my code to display a dialog:
app.controller('MainCtrl', function ($scope, createDialog) {

    $scope.displayLoginDialog = function () {
        createDialog('views/login-dialog.html',{
            id : 'login_dialog',
            title: 'Sign in',
            backdrop: true,
            success: {label: 'Login'},
            controller: 'LoginCtrl'
        });
    }
});

From the success button I would like to call the login method on the controller:
app.controller('LoginCtrl', ['UserService', function ($scope, $rootScope, UserService) {

    $scope.login = function() {
        $rootScope.user = UserService.authenticate($scope.username, $scope.password);
    }
}]);

How can this be achieved?

I tried the above and am not able to call the login method.  I get an angular error saying login is undefined


0.9.0 Release notes

Create release notes for 0.9.0 release

Changelog closes this. Will update release notes after release in the docs as well.

Changelog closes this. Will update release notes after release in the docs as well.


Attempt on fixing abort events for fetch()

Resolves #41 hopefully.

@trek

any chance of releasing v2.0.1 to npm? I think I need this fix


Added Feature : Active Columns

Active Columns

active columns are given to groups of column names that come from the same dataset

Problem with the current setup:
Current utilisation of active columns with the notation {} works by finding this notation and storing the column names associated with the nearest left parameter (x-param). This approach is counter intuitive to the current format of accepting user requests as it removes the tokens completely, accepted format:
i['create a plotly scatterplot using x sepal_length and y {ac_column} using iris set s 7 col species']

Another issue noted is that upon referencing multiple column names, the updated method doesn't support this as -column are added before each column name, ie. if too many columns are added, this would fall outside the detection range for storing to the nearest left parameter token (x-param), eg.
i['create a plotly scatterplot using x sepal_length and y petal_length petal_width using iris set s 7 col species']

Currently working format using active columns:
[note] plot parameter updated!
##################################################################
[note] extracting parameters from input request!
[note] input request:
create a plotly scatterplot using x sepal_length and y {
ac_column } using iris set s 7 col species
[note] storing active columns for [y] in module_args
[note] data sources have been found
{'data': 'iris'}
[note] parameters found!
request
create a plotly scatterplot using ~x -column sepal_length and using -data set ~s -value 7 ~col -column species
[note] setting module_args parameters
{'x': 'sepal_length', 's': 7, 'col': 'species'}
[note] filtered request:
create a plotly scatterplot using ~x -column using -data set ~s -value ~col -column
##################################################################
[note] found relevant global task [plscatter] w/ [0.82] certainty!

Current approach to solving the above issue is to add an additional check using:

As per above points, the requirement to specify active column names with {} has been dropped and added additional code to work with these token names. The token names are allocated the relevant column source which works as per usual with the code that follows it.
Before task function execution, a check is make for all self.module_args keys to search for any matches in the active self.ac_data library (which is updated every query request to make sure all the latest active column names stored in nlpi.data are visible.
Upon storing the active column name in the relevant location, for parameter cases the approach works correctly. The check only searched for string matches. As subsets can store lists, the conversion fails, however currently this issue is not addressed.
The issue case is shown below:

Update test cases:
i.store_ac('iris','ac_column',['petal_length','petal_width'])
i['create a plotly scatterplot using x sepal_length and y ac_column using iris set s 7 col species']

##################################################################
[note] extracting parameters from input request!
[note] input request:
create a plotly scatterplot using x sepal_length and y
ac_column using iris set s 7 col species
[note] data sources have been found
{'data': 'iris'}
[note] parameters found!
request
create a plotly scatterplot using ~x -column sepal_length and ~y -column ac_column using -data set ~s -value 7 ~col -column species
[note] setting module_args parameters
{'x': 'sepal_length', 'y': 'ac_column', 's': 7, 'col': 'species'}
[note] filtered request:
create a plotly scatterplot using ~x -column ~y -column -data set ~s -value ~col -column
##################################################################
[note] found relevant global task [plscatter] w/ [0.85] certainty!

Works as expected

i['create a plotly scatterplot using iris and columns ac_column set s 7 and col species']

##################################################################
[note] extracting parameters from input request!
[note] input request:
create a plotly scatterplot using iris and columns ac_column
set s 7 and col species
[note] data sources have been found
{'data': 'iris'}
[note] parameters found!
request
create a plotly scatterplot using -data and columns ac_column set ~s -value 7 and ~col -column species
[note] setting module_args parameters
{'s': 7, 'col': 'species'}
extracted [subset] parameters
{'column': ['ac_column']}
[note] filtered request:
create a plotly scatterplot using -data and columns -column set ~s -value and ~col -column
##################################################################
[note] found relevant global task [plscatter] w/ [0.66] certainty!

i['create a plotly scatterplot using penguins plotting the relation between bill_length_mm and bill_depth_mm for all species and sex set s 6 mew 1 mec black']

[note] plot parameter updated!
##################################################################
[note] extracting parameters from input request!
[note] input request:
create a plotly scatterplot using penguins plotting the
relation between bill_length_mm and bill_depth_mm for all
species and sex set s 6 mew 1 mec black
[note] data sources have been found
{'data': 'penguins'}
[note] parameters found!
request
create a plotly scatterplot using -data plotting the relation between bill_length_mm and bill_depth_mm for all species and sex set ~s -value 6 ~mew -value 1 ~mec -string black
[note] setting module_args parameters
{'s': 6, 'mew': 1, 'mec': 'black'}
extracted [subset] parameters
{'column': [['bill_length_mm', 'bill_depth_mm'], ['species', 'sex']]}
[note] filtered request:
create a plotly scatterplot using -data plotting the relation between -column and -column for all -column and -column set ~s -value ~mew -value ~mec -string
##################################################################
[note] found relevant global task [plscatter] w/ [0.49] certainty!

Integration of temporary activation functions also completed, no issues found at the moment so the current issue is closed.
i['create a plotly scatterplot using x sepal_length and y petal_length petal_width using iris set s 7 col species']

##################################################################
[note] extracting parameters from input request!
[note] input request:
create a plotly scatterplot using x sepal_length and y
tac_data0 using iris set s 7 col species
[note] data sources have been found
{'data': 'iris'}
[note] parameters found!
[note] setting module_args parameters
{'x': 'sepal_length', 'y': 'tac_data0', 's': 7, 'col': 'species'}
[note] filtered request:
create a plotly scatterplot using ~x -column ~y -column -data set ~s -value ~col -column
##################################################################
[note] found relevant global task [plscatter] w/ [0.86] certainty!


AMA Agent?

This article refers to the (now Legacy) MMA Agent only and should be updated to reflect the Azure Monitor Agent (AMA)

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

ID: 555dbdac-7f98-ad09-dbe2-8384dc31f004
Version Independent ID: 4cb69e50-7921-b574-7387-fd736930872e
Content: Microsoft Defender for Cloud FAQ - data collection and agents
Content Source: articles/defender-for-cloud/faq-data-collection-agents.yml
GitHub Login: @ElKrieger
Microsoft Alias: elkrieger

@pjrcdf
Thanks for your feedback! We will investigate and update as appropriate.

Thanks! I made a pull request to update the guide with the new name. https://github.com/MicrosoftDocs/azure-docs-pr/pull/208774
Adding @ElazarK


All my Snippets are Gone & the Page Links

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Just logged in and everything is gone. I had tons of snippets, organized in folders and snippets that were being shared with people as well. Now links are broken and everything is gone.
Expected behavior
Being able to log in and see all my folders and snippets. Now everything has just vanished.
Screenshots
Here is a screenshot, showing one of my snippets being shared via public link, and the user below saying page doesn't exist.

It used to be here: https://snapcode.vercel.app/snippet/6MJePaXH0HkaukvxV_djJ
I never deleted anything myself.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: Macbook Pro Max — Apple M1 Max
OS: MacOS Ventura — 13.1
Browser: Arc — Version 0.80.0
Chromium Engine Version 108.0.5359.99

Additional context

Sorry for the inconvenience you have experienced, Snapcode currently not working due to the deletion of the server on Heroku. I'll migrate it as soon as possible.


update image ref for backup container

this is supposed to be changed in the tenant repo, not here.

That doesn't seem to match up with what we've done in pmo... This is the generic image for all backups.
See pmo repo


Realm updates the objects which have not been changed.

Hello!
Thank you for your work, Realm - this is a great product. But I have a problem.
I get 300 objects from my server, then do mapping using ObjectMapper and stores them in the Realm, сomes first .Initial notification, then .Update notification with 300 insertion. When I re-open controller, I get a notification about 300 modifications, but from the server was obtained two or three updated objects.
Is this the correct behavior?
Code Sample
override func viewDidLoad() {
        super.viewDidLoad()
        ApiManager.loadCategory(category.id)
        markets = try! Realm().objects(Market).filter("category_id = %@", category.id)
       notificationToken = markets.addNotificationBlock { [weak self] (changes: RealmCollectionChange) in
            guard let collectionView = self?.ibCollectionView else { return }
            switch changes {
            case .Initial:
                collectionView.reloadData()
                break
            case .Update(_, let deletions, let insertions, let modifications):
                collectionView.performBatchUpdates({
                    collectionView.insertItemsAtIndexPaths(insertions.map { NSIndexPath(forRow: $0, inSection: 0) })
                    collectionView.deleteItemsAtIndexPaths(deletions.map { NSIndexPath(forRow: $0, inSection: 0) })
                    collectionView.reloadItemsAtIndexPaths(modifications.map { NSIndexPath(forRow: $0, inSection: 0) })
                    }, completion: nil)
                break
            case .Error(let error):
                break
            }
        }
}

class ApiManager {
    static func loadCategory(id: Int) {
        Alamofire.request(.GET, "URL", parameters: parameters).validate().responseJSON { (response) in
            switch response.result {
            case .Success(let value):
                let keyPath = "response.items"
                let json = value.valueForKeyPath(keyPath)

                if let markets = Mapper<Market>().mapArray(json) {
                    for market in markets {
                        market.category_id = id
                    }
                    let realm = try! Realm()
                    try! realm.write {
                        realm.add(markets, update: true)
                    }
                }
            case .Failure(let error):
                Log(error)
            }
        }
    }
}

Version of Realm and Tooling
Realm version: 1.0.1
Xcode version: 7.3.1
iOS/OSX version: 9

+1 on this. I also find this to be a big annoyance.
Like @PiratJoe, I'm pulling down data and bulk inserting into Realm. But that data may or may not have changed. I only want to update the UI if data has truly changed.

Currently Realm mimics KVO and treats self-assignment as a change, so if you want to not get notifications for them you'll need to only update the fields of objects which have actually changed. We already have an issue for changing this behavior, so I'll close this one.


Facing a config error saying "Unknown filter plugin 'mecab' when I try to create MeCab plugin for Fluentd and execute.

1.What I want to do
I want to get the tweet information from Fluentd and analyse using Fluentd. I have done the following steps.
(1)Install rbenv => (2)Install Ruby => (3)Install Fluentd => (4)Install MeCab
2.Problems I am facing & error messages
2019-09-09 16:26:26 +0900 [error]: config error file="./fluent.twitter.mecab.conf" error_class=Fluent::ConfigError error="Unknown filter plugin 'mecab'. Run 'gem search -rd fluent-plugin' to find plugins"
3.Source Code
This is the source code of the config file (fluent.twitter.mecab.conf)
`

        type twitter
        consumer_key [MY_KEY]
        consumer_secret [MY_KEY_SECRET]
        access_token [MY_TOKEN]
        access_token_secret [MY_TOKEN_SECRET]
        tag twitter
        timeline sampling
        lang ja
        output_format nest

        @type mecab
        key text

        @type stdout

        type stdout

`
Also this is the source code of the .rb file which I created at [./fluentd/fluent/plugin/]
`
module Fluent
class MeCabFileter < Filter
    Plugin.register_filter('mecab',self)
    config_param : key, : string
    config_param : tag, : string, default: "mecab"
def initialize
    super
    require 'natto'
end

def configure(config)
    super
    @mecab = Natto::MeCab.new
end

def start
    super
end

def shutdown
    super
end

def filter(tag, time, record)
end

def filter_stream(tag, es)
    result_es = MultiEventStream.new
    es.each do |time, record|
    begin
        position = 0
        @mecab.parse(pre_process(record[@key])) do |mecab|

            length = mecab.surface.length
            next if length == 0

            new_record = record.clone
            new_record["mecab"] = {    "word" => mecab.surface,
                                    "length" => length,
                                    "pos" => mecab.feature.split(/\,/),
                                    "position" => position}
            result_es.add(time, new_record)

            position += length
        end
        rescue => e
            router.emit_error_event(tag, time, record, e)
        enend
        return result_es
    end
    def pre_process(text)
        # delete URL
        return text.gsub(/https?\:\/\/([\w\-]+\.)+[\w-]+(\/[\w-]+)*\/?/,'').gsub(/RT\s*:\*/,'').gsub(/@[\w]+\s*/,'')
    end
end

end
`
4.Things I tried
In the error message, it said to try "gem search -rd fluent-plugin" command so I tried to install the following plugin but it didn't solve the problem.
gem search -rld fluent-plugin sudo gem install fluent-plugin-mecab
5.Environment Information
OS : CentOS Linux release
rbenv 1.1.2-2-g4e92322
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
fluentd 1.7.0
mecab of 0.996

Closing since it is raised in the wrong .


Weird behaviour with export

Hello
I was having trouble using this (with the Webpack loader) in my project. I ended up finding that the problem was in some files where I had code like this:
import funcA from './funcA'
import funcB from './funcB'

export {
  funcA,
  funcB,
}

With that, some other module that would try to import and use funcA would not work (would get undefined or something like it). It seems that in one point the identifiers were changed but not in the other point.
When I changed the code to this, it worked:
export { default as funcA } from './funcA'
export { default as funcB } from './funcB'

I'm ok with doing this change, but I would like to better understand whether I'm doing something wrong, and why making this change solved the problem.
Thanks!

Hmm. Obfuscated code looks like that:
import _0x99b4d7 from './funcA';
import _0x3e429c from './funcB';
export {
    _0x99b4d7,
    _0x3e429c
};

So it renames the imported module identifiers.
Have to think about how to avoid this.

So, the idea is to convert all exports
export {foo};

to the
export {foo as foo};

view.
After identifiers rename this construction becomes
const _0x485b3c = 1;
export {_0x485b3c as foo};

PR: https://github.com/javascript-obfuscator/javascript-obfuscator/pull/792
Can you try it?

Merged into master. Please try it from master branch.
I'll release this fix later today.

Released as 2.6.3. Please try it.

Sorry for the delay, somehow I messed up my notification settings and didn't see this earlier.
I've tested the latest 2.8.0 and it works perfectly. Thanks for the quick response!


Head blocker trigger not showing on Nexus Tables

After collecting data with pssdiag and loading it into nexus, I noticed the following issue:
1 - On the perfstat raw file, a trigger is showing as head blocker frequently
2 - On the table tbl_HEADBLOCKERSUMMARY generated by nexus, the trigger is no there.

This was fixed in 025bca55e8a5deac2c95c2494d58f9067d50d189 and related to #113


Wilfa haze hu400bc humidifier turning off sound issue

There is some weird issue with this humidifier with this component, when I directly use tinytuya and set dps 8 false, the sound is off, but when I do it via home assistant, it makes a long beep sound, if I try many times from HA, it does work may be 1 in 10 times.
My guess is that when you turn off sound, all other async requests to read the state should wait for sound off request to be completed.
I could look into the code and figure out, but just putting this here if anyone knows what is the issue immediately.

In general, tuya devices need some time in between commands.  They seem to be single threaded, and don't have much if any of a buffer in their networking stack.  If this is from an automation, adding a delay of a couple of seconds between commands might help.  From the UI it is a bit harder to control, but generally you just do one thing at a time, so there should be a bit of a gap between commands.

Besides the last comment, in case this is due to a protocol incompatibility, 2022.12.1 just released allows to set the protocol_version manually.  If you try different values, you may find that one works better.

Does this mean that the Wilfa Haze has a Tuya Firmware?
How did you find that out?


PoC: Multiple with support via alias

🔍 What was changed
Added key alias for Select::with() options.

[!NOTE]
There is PoC. Tests required

📝 Checklist

Closes #482
How was this tested:

[ ] Tested manually
[ ] Unit tests added

📃 Documentation

@gam6itko could you add test cases?

CI fail related with bug introduced in PHP 8.3.8 https://github.com/php/php-src/issues/14480
Based on the previous successful CI run I'm merging the PR.


feat(new-rule): ibm-schema-casing-convention

This adds a new rule to verify that schema names (i.e. the keys in the 'schemas' object in the 'components' object) are upper camel case, as specified in the API Handbook.
PR summary

PR Checklist
General checklist
Please make sure that your PR fulfills the following requirements:

[x] The commit message follows the Angular Commit Message Guidelines.
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)
[x] Dependencies have been updated as needed
[x] .secrets.baseline updated as needed?

Checklist for adding a new validation rule:

[x] Added new validation rule definition (packages/ruleset/src/rules/*.js, index.js)
[x] If necessary, added new validation rule implementation (packages/ruleset/src/functions/*.js, updated index.js)
[x] Added new rule to default configuration (packages/ruleset/src/ibm-oas.js)
[x] Added tests for new rule (packages/ruleset/test/*.test.js)
[x] Added docs for new rule (docs/ibm-cloud-rules.md)

I was wondering if we should consider checking the name and/or title fields

That's a good question, needed to take some time to think it through. I'm not sure if there is a name field for schemas, but from what I read in the JSONSchema spec, title seems to be a field to declare the purpose of the schema, not give it a name. I can't remember if we use it for SDK Gen or not but even if we do, tooling isn't as much in scope IMO since we adjust casing per language anyways.
Another thing is, we do have a rule to check for schemas not being defined inline. For the exceptions to that rule, we probably don't need names anyways and so I don't think they're important to check with this rule. That said - I will mark this rule dependent on that rule. Something I'm trying to get in the habit of is view the rules as atomic but still inter-connected and allow rules to make assumptions based on what we check for in other rules. I want to keep track of what those assumptions are in the comments and I missed that for that rule, so I'm glad you reminded me!
In terms of implementation, I think I would advocate for keeping the check limited to components.schemas. Let me know how you feel about that

Let me know how you feel about that

That's fine.


publish ansible setup with tutorial how to setup OVH bare-metal infra1 machine

Please add ansible setup to install a fully featured SGX dev machine
Also, describe how to order a machine on OVH and use ansible to set it up

only introduce one technical user (pubkeys)
add tutorial to README


Limit in displayed nodes?

From my early tests it seems that only a limited amount of nodes are drawn in the visualization. Is there a hard limit in the number of items that can be displayed?
Some context;
I would like to display about 80k items in the framework of data migration.
My idea is to show sources tables, destination tables and the scripts that link them -that amounts to 80k nodes. I cannot simplify the data -I need the full data to cluster the tables / scripts to orchestrate a migration.
Can someone point me to a workaround?

Yes, the amount is limited to whatever PowerBI gives by default, which I believe is 1000.
There are a couple of issues:

That is a lot of data to pull down from PowerBI (specifically PowerBI web), it would take a not insignificant amount of time.
Rendering that many nodes would be prohibitively slow.

As for workarounds, there are no straight forward ones, but you do have a couple of options:

Create a custom build which pulls down the required number of nodes by forking the repo and adding "dataReductionAlgorithm": { "window": { "count": 80000 } } to the rows property here: https://github.com/Microsoft/PowerBI-visuals-NetworkNavigator/blob/develop/packages/network-navigator-powerbi/src/capabilities.ts#L45.  You would also need to change the projectId here - https://github.com/Microsoft/PowerBI-visuals-NetworkNavigator/blob/develop/packages/network-navigator-powerbi/src/build.json#L6
Set up your reports/dashboard to be filter based, so that whenever any filter is selected, the # of nodes in the network navigator is < 1000.  For example, based on your information, have a slicer that has a list of "source tables", and then when you select a source table, it filters the network navigator to the connections around the selected source table.


iOS targeting support

We need to add full iOS support for the framework.
This should not be too difficult as everything has been designed with cross-platform support in mind. Will require hooking up Xamarin, adding the iOS version of bass (any probably other) native libraries.
I welcome anyone who has an interest in cross-platform targeting support, especially if you have experience with xamarin.

Once .NET Standard is a merged thing, I'll get on this.

I would recommend taking on Metal first because Apple deprecated OpenGL earlier this year, which affects not just adding iOS support, but also existing macOS support. Unfortunately, OpenTK doesn't seem to support Metal, and I already looked at the source code.
I think this project might help, since that's the closest I can get to Metal in C# for macOS, while Xamarin itself does have Metal for iOS.

We may want to consider that library as a potential OpenTK alternative for graphics portions. This is a relatively low priority task for short-term, but if anyone's looking to have some fun please give it a try and see how it fits.
They also use ImageSharp, which is nice to see.

Veldrid developer here -- I'd be happy to give pointers if anyone does end up trying out the library. If a refactor for Metal is being considered, then IMO Veldrid would be a good alternative since it also gets you support for Vulkan, D3D11, GLES, etc. without writing multiple backends yourself. It's also fully .NET Standard (unlike e.g. Xamarin's Metal wrapper), so it should integrate pretty smoothly. Feel free to reach out to me if anyone is interested in experimenting with it.

My current goal is to get it at least building and running with the latest OpenTK, even if I have to rename namespaces, delete assemblies, and sell my soul to the devil.  I may look into Veldrid if I can successfully decouple OpenGL from OpenTK even if it's just for our project.


FAQ to GitHub App creation

Your guide provides following step:

To use the Github Actions provisioner you will need to create and install a new Github App with Self-hosted runners Read & Write permissions on the organization level and provide your config with the respective information.

While trying to create such an app I stumble upon 'Callback URL' field. It's required, but I can't fully understand what URL to provide.

I've accidentally toggled on 'Request user authorization (OAuth) during installation', that was causing Callback URL field to be required. Toggling off solved the problem.


Error creating New Monitor

I am trying to create a new monitor using this:
$options = @{timeout_h=0; thresholds=1; renotify_interval=0; no_data_timeframe=2}
New-DDMonitor -Type "service check" -Query {"http.can_connect".over("instance:xxxxx.com").last(5).count_by_status()}`
-Name "test name" -Message "{{url}} on {{host.name}}<EMAIL_ADDRESS>-Options $options
but i get this error:
Request to Datadog API backend was NOT successful; It returned this: {"errors":["Thresholds must be of type dictionary."]}
How can we create this monitor and set the threshold levels?
Thanks

Hi @Hughwilkinson , thanks for reporting this one.
At 1st glance here is what comes to mind. From the API doc:
thresholds a dictionary of thresholds by status. Because service checks can have multiple thresholds, we don't define them directly in the query.
Default: {'ok': 1, 'critical': 1, 'warning': 1}

So thresholds object withinoptions must be a hash table. But I'll try to reproduce when I get a minute and will update you.

@Hughwilkinson
So I think this would solve your issue:
$options = @{timeout_h=1; renotify_interval=90; no_data_timeframe=2}
$thresholds=@{'ok'=1; critical='3'; 'warning'=2}
$options.add('thresholds',$thresholds)
PS C:\Users\vagrant> New-DDMonitor -Type "service check" -Query {"http.can_connect".over("instance:xxxxx.com").last(5).count_by_status()}`
>> -Name "test name" -Message "{{url}} on {{host.name}}<EMAIL_ADDRESS>-Options $options

id      : 1604818
name    : test name
type    : service check
query   : "http.can_connect".over("instance:xxxxx.com").last(5).count_by_status()
message : {{url}} on {{host.name}}<EMAIL_ADDRESS>options : @{notify_audit=False; locked=False; timeout_h=1; silenced=; thresholds=; new_host_delay=300; notify_no_data=False; renotify_interval=90; no_data_timeframe=2}
tags    : {}
created : 2017-02-09T04:30:25.465076+00:00

Let me know if this helped.

that looks like it has worked. Thanks very much.

another quick question- is it possible to pass avariable into the query string? i was trying this:
-Query {"http.can_connect".over("instance:$instance","region:$region").by("host","instance","url")
but it just created the monitor with instance:$instance rather than the variable itself.
Thanks

@Hughwilkinson Yes you must double the double quotes:
PS C:\Users\vagrant> New-DDMonitor -Type 'service check' -Query """my.custom.check"".over(""instance:$instance"").by(""org_id"").last(4).count_by_status()"

id      : 1609634
name    : "my.custom.check".over("instance:i-12345").by("org_id").last(4).count_by_status()
type    : service check
query   : "my.custom.check".over("instance:i-12345").by("org_id").last(4).count_by_status()
message :
options : @{notify_no_data=False; notify_audit=False; locked=False; new_host_delay=300; silenced=}
tags    : {}
created : 2017-02-10T00:02:24.847829+00:00

See here: https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.core/about/about_quoting_rules.
Let me know if that helps.

thanks, wasn't aware of that. Can now go ahead and create 150+ monitors!


Fix #117

Prevent undefined id being provided when the drawing author is updated

Thanks!

@grandseiken it looks like this didn't make it into the latest release/a release hasn't been made yet.

@grandseiken just bumping this to get a release made that includes this change.

Released in 1.5.4, sorry for delay.


Support for populations/templates

The idea is that we could like to (pre) define a node template and then say "I'd like N instances of these", without needing to redefine the behaviour every time. Ideally these can have different parameters, or be customised from the base template.
Note though that "populations" are relatively easy to create when all the entities have similar structure, just using arrays for the state variables. e.g. https://github.com/ModECI/MDF/blob/nml_examples/examples/MDF/RNN/iaf.net.png


Limetorrents does not work

Hi Danis.
Limetorrents in Elementum does not work.
Thank you.

@iz8mbw there are CloudFlare changes again, so Elementum is not passing the challenge.

I have think about that.... If you can solve it will be appreciated.


Support partial results

Add support for getting only a subset of fields. Like this:

crud.get('customers', 1, {fields={'id', 'name'}})
---
- metadata:
  - {'name': 'id', 'type': 'unsigned'}
  - {'name': 'name', 'type': 'string'}
  rows:
  - [1, 'Elizabeth']
...

Note: it is possible that we'd want to keep bucket_id and primary key always in the result, no matter if they were specified or not. Let's think about it.

Closed by #116, #117


Save challenge for singles game

Singles challenges currently do not work. This pull request should hopefully fix that.
Apologies for the spurious addition of a line ending at the end of the file!

Many thanks for your effort on this one. Can't believe I wasn't saving the challenge.. :)


No upgrades when filled

It would be nice if you could upgrade the drawers while they are full

Hi, I tested on a normal drawer and it seems to work fine, what type of drawer are you using and what version of simpledrawer is installed ?

We tested it again and it now seems to be working. Whatever the reason, it didn't work. We using v1.11.2

I will investigate a bit more into this, thank for the report.