Wireshark installation fails

Looks like that Wireshark is using CDN now:
➜  ~ brew cask install wireshark
==> Downloading https://www.wireshark.org/download/osx/Wireshark%202.0.3%20Intel%2064.dmg

curl: (22) The requested URL returned error: 404 Not Found
Error: Download failed on Cask 'wireshark' with message: Download failed: https://www.wireshark.org/download/osx/Wireshark%202.0.3%20Intel%2064.dmg

Fresh download links from their website:
https://1.eu.dl.wireshark.org/osx/Wireshark 2.0.4 Intel 64.dmg
https://1.eu.dl.wireshark.org/osx/Wireshark 2.0.4 Intel 32.dmg
Are you guys handling region substitution in other casks somehow? E.g. if user is in US it would be inefficient to download from european server.

Fixed by https://github.com/caskroom/homebrew-cask/pull/21792. Should be ok now.

Are you guys handling region substitution in other casks somehow? E.g. if user is in US it would be inefficient to download from european server.

Nope.


Feat/257 social sharing

Type of change

[ ] Content addition
[ ] Bug fix
[x] Behavior change

Summary of change
Adds the following:

Social meta tags for landing page
Update images for each site's social meta tags

Checklist

[x] This change resolves https://github.com/orgs/thisdot/projects/10/views/8
[x] I have confirmed with a maintainer that this change is desired and been
given the go-ahead to work on it in the relevant issue discussion
[x] The changes follow the contributing guidelines
[x] I have verified the change and the rest of the site works as expected

Note that testing the preview deploy-ed sites in the validator won't render the image because the title is hardcoded to point to a deployed instance.

@jdwilkin4 the logo one's a separate issue. This ticket is copy-pasting a framework.dev link into twitter or facebook and getting a preview of the site's content.


Error message: UnboundLocalError: local variable 'i' referenced before assignment

Hi,
I get the error message "UnboundLocalError: local variable 'i' referenced before assignment",
when I run this command:
songbird multinomial
--input-biom input.biom
--metadata-file Metadata.txt
--formula "Treatment"
--epochs 10000
--min-sample-count 0
--min-feature-count 0
--differential-prior 0.5
--summary-interval 1
--summary-dir results
Do you have any idea what this means and how I can prevent it? I have checked my  biom format ("biom summarize-table") and it displays the correct number of samples/observations
Thanks,
Alan

Just to add more detail, the problem seems to occur here:
"...anaconda3/envs/songbird_env/lib/python3.7/site-packages/songbird/multinomial.py", line 213, in fit
iter_n.append(i)
UnboundLocalError: local variable 'i' referenced before assignment

Can you give the full traceback?
This error is basically saying that num_iter < 0, which only happens if your batch size is larger than the total number of samples.  How large is your biom table?   Does your biom table have samples with a sequencing depth less than 1000 (the default for min-sample-count?
You can also try tweaking --batch-size? (i.e. set --batch-size to 1), if your biom table does have less than 5 samples total.

My sample size is pretty small (8 samples, comprising two experimental groups of 4 individuals that I want to compare). If you look at the biom summarize-table output below, none of the samples have min-sample-counts less than 1000.
Looking at --batch-size the default value is 5. For my data set should I set that to 4 to match my dataset structure?
Also below is the full traceback for the issue reported in my previous message.
Thanks!
$ biom summarize-table -i input.biom.biom
Num samples: 8
Num observations: 5,762
Total count: 68,471,133
Table density (fraction of non-zero values): 0.723
Counts/sample summary:
Min: 1,456,270.000
Max: 19,266,108.000
Median: 6,585,525.500
Mean: 8,558,891.625
Std. dev.: 6,766,641.388
Sample Metadata Categories: None provided
Observation Metadata Categories: None provided
Here is the full traceback:
$ songbird multinomial
--input-biom input.biom
--metadata-file Metadata.txt
--formula "Treatment"
--epochs 10000
--min-sample-count 0
--min-feature-count 0
--differential-prior 0.5
--summary-interval 10
--summary-dir results
WARNING:tensorflow:From .../anaconda3/envs/songbird_env/bin/songbird:191: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.
2022-04-28 14:05:04.226137: I tensorflow/core/platform/cpu_feature_guard.cc:145] This TensorFlow binary is optimized with Intel(R) MKL-DNN to use the following CPU instructions in performance critical operations:  SSE4.1 SSE4.2
To enable them in non-MKL-DNN operations, rebuild TensorFlow with the appropriate compiler flags.
2022-04-28 14:05:04.226813: I tensorflow/core/common_runtime/process_util.cc:115] Creating new thread pool with default inter op setting: 8. Tune using inter_op_parallelism_threads for best performance.
WARNING:tensorflow:From .../anaconda3/envs/songbird_env/bin/songbird:194: The name tf.set_random_seed is deprecated. Please use tf.compat.v1.set_random_seed instead.
WARNING:tensorflow:From .../anaconda3/envs/songbird_env/lib/python3.7/site-packages/songbird/multinomial.py:70: multinomial (from tensorflow.python.ops.random_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.random.categorical instead.
WARNING:tensorflow:From .../anaconda3/envs/songbird_env/lib/python3.7/site-packages/songbird/multinomial.py:81: The name tf.random_normal is deprecated. Please use tf.random.normal instead.
WARNING:tensorflow:From .../anaconda3/envs/songbird_env/lib/python3.7/site-packages/songbird/multinomial.py:86: Normal.init (from tensorflow.python.ops.distributions.normal) is deprecated and will be removed after 2019-01-01.
Instructions for updating:
The TensorFlow Distributions library has moved to TensorFlow Probability (https://github.com/tensorflow/probability). You should update all references to use tfp.distributions instead of tf.distributions.
WARNING:tensorflow:From .../anaconda3/envs/songbird_env/lib/python3.7/site-packages/tensorflow_core/python/ops/distributions/normal.py:160: Distribution.init (from tensorflow.python.ops.distributions.distribution) is deprecated and will be removed after 2019-01-01.
Instructions for updating:
The TensorFlow Distributions library has moved to TensorFlow Probability (https://github.com/tensorflow/probability). You should update all references to use tfp.distributions instead of tf.distributions.
WARNING:tensorflow:From .../anaconda3/envs/songbird_env/lib/python3.7/site-packages/songbird/multinomial.py:95: Multinomial.init (from tensorflow.python.ops.distributions.multinomial) is deprecated and will be removed after 2019-01-01.
Instructions for updating:
The TensorFlow Distributions library has moved to TensorFlow Probability (https://github.com/tensorflow/probability). You should update all references to use tfp.distributions instead of tf.distributions.
WARNING:tensorflow:From .../anaconda3/envs/songbird_env/lib/python3.7/site-packages/songbird/multinomial.py:110: The name tf.summary.scalar is deprecated. Please use tf.compat.v1.summary.scalar instead.
WARNING:tensorflow:From .../anaconda3/envs/songbird_env/lib/python3.7/site-packages/songbird/multinomial.py:116: The name tf.train.AdamOptimizer is deprecated. Please use tf.compat.v1.train.AdamOptimizer instead.
WARNING:tensorflow:From .../anaconda3/envs/songbird_env/lib/python3.7/site-packages/tensorflow_core/python/ops/clip_ops.py:301: where (from tensorflow.python.ops.array_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.where in 2.0, which has the same broadcast rule as np.where
WARNING:tensorflow:From .../anaconda3/envs/songbird_env/lib/python3.7/site-packages/songbird/multinomial.py:124: The name tf.summary.histogram is deprecated. Please use tf.compat.v1.summary.histogram instead.
WARNING:tensorflow:From .../anaconda3/envs/songbird_env/lib/python3.7/site-packages/songbird/multinomial.py:125: The name tf.summary.merge_all is deprecated. Please use tf.compat.v1.summary.merge_all instead.
WARNING:tensorflow:From .../anaconda3/envs/songbird_env/lib/python3.7/site-packages/songbird/multinomial.py:127: The name tf.summary.FileWriter is deprecated. Please use tf.compat.v1.summary.FileWriter instead.
WARNING:tensorflow:From .../anaconda3/envs/songbird_env/lib/python3.7/site-packages/songbird/multinomial.py:131: The name tf.global_variables_initializer is deprecated. Please use tf.compat.v1.global_variables_initializer instead.
WARNING:tensorflow:From .../anaconda3/envs/songbird_env/lib/python3.7/site-packages/songbird/multinomial.py:163: The name tf.train.Saver is deprecated. Please use tf.compat.v1.train.Saver instead.
0it [00:00, ?it/s]
Traceback (most recent call last):
File "...anaconda3/envs/songbird_env/bin/songbird", line 225, in
songbird()
File "...anaconda3/envs/songbird_env/lib/python3.7/site-packages/click/core.py", line 1128, in call
return self.main(*args, **kwargs)
File "/Users/alan02/opt/anaconda3/envs/songbird_env/lib/python3.7/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "...anaconda3/envs/songbird_env/lib/python3.7/site-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "...anaconda3/envs/songbird_env/lib/python3.7/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "...anaconda3/envs/songbird_env/lib/python3.7/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "...anaconda3/envs/songbird_env/bin/songbird", line 202, in multinomial
silent=silent,
File "...anaconda3/envs/songbird_env/lib/python3.7/site-packages/songbird/multinomial.py", line 213, in fit
iter_n.append(i)
UnboundLocalError: local variable 'i' referenced before assignment

Hi, has this error been resolved? You may need to squeeze the batch size down to one if it is still not working

I'm assuming that this has been resolved, thus closing.
See here for similar issues : https://forum.qiime2.org/t/songbird-error-local-variable-i-referenced-before-assignment/20175


Support for non-persistent jobs

Volatile jobs are not persisted to disk. Besides, they are automatically deleted by the scheduler 1 hour after completion.
These jobs are not saved to disk. Besides, they are automatically deleted by the scheduler 1 hour after completion.
This should become useful if jobs are increasingly used for background processing, inference, etc.

I'm not sure that "volatile" is the right word here. I'd go with a word like "temporary", "one-off", "non-persistent", "transitory", etc.
How about persistent=False (defaults to True)?

How about persistent=False (defaults to True)?

Yes, that would work too, no problem. I used the word volatile in reference to volatile memory (i.e. that requires the server to be ON to retain its contents).

Ah, I was thinking of volatile as meaning "data may change unpredictably" rather than "data may be deleted at restart". Both are probably valid, but I think "persistent" is clearer, maybe? Thanks for the change.

I agree with you - "persistent" is more self-explanatory - "volatile" has different meanings and is ambiguous here.


Firewall: Diagnostics: pfInfo: Rules: Output should be HTML encoded

I was trying to copy my current rules from the GUI for #1794 and noticed they looked strange.
The GUI shows
@132 block return in log quick on hn0 inet from any to  label "USER_RULE: H to SITE"
but the actual JSON returned is
@132 block return in log quick on hn0 inet from any to <Site:4> label \"USER_RULE: H to SITE\"
Should encode those nasty brackets. Because this also works:
@135 pass in quick on hn5 reply-to (hn5 w.x.y.z) inet all flags S\/SA keep state label \"USER_RULE: <script>alert('woah')</script>\"

@StrikerTwo thanks, html() should have been text() in the jQuery code. I will commit a fix and close this one asap.

A hotfix "17.7.1_2" was just issued to address this. :)


Clarify what should go in public- and private namespaces of cops

Currently, there are a few different takes on what should go in the private namespace of cops. Some cops only expose their callbacks, some expose #autocorrect, and some frivolously have entirely public interfaces.
Technically, the only methods required to go in the public namespace are the callbacks. Even #autocorrect works fine as private. (Constants naturally go at the top, since they aren't affected by visibility declarations anyway.)
Are there any compelling reasons to make methods other than the callbacks public? Ping @jonas054, @rrosenblum, @bbatsov.
We now have an InternalAffairs department, so we could actually enforce this programmatically if we wanted.

The specs pass (with one other tweak that I don't think is important) if I add this to the end of lib/rubocop.rb:
allowed = [
  :join_force?,
  :investigate,
  :before_entering_scope,
  :after_entering_scope,
  :before_leaving_scope,
  :after_leaving_scope,
  :before_declaring_variable,
  :after_declaring_variable,
  :check,
  :message,
  :validate_config
]

RuboCop::Cop::Cop.all.each do |cop|
  cop.public_instance_methods(false).grep_v(/\Aon_/).each do |method|
    next if allowed.include?(method)

    cop.class_eval { private(method) }
  end
end

So it looks like these methods

join_force?
investigate
before_entering_scope
after_entering_scope
before_leaving_scope
after_leaving_scope
before_declaring_variable
after_declaring_variable
check
message
validate_config

plus the on_ callbacks are the public API.

Nice one, @backus! I wonder if #check and #message have special cases in a few cops, because I have several cops working where they are private. Maybe some specs are testing these directly?

@Drenmi yeah I think they are being called directly

:+1: It's OK with me if you make everything private that can be private.

It's OK with me if you make everything private that can be private.

👍


RuntimeError: all tensors must be on devices

Hello, I successfully installed the mmdet and compiled well.
I can train the model with 1 GPU.
However, the runtime error occurs when I try to train the model with multiple GPUs.
The error looks like:
Traceback (most recent call last):
File "tools/train.py", line 126, in
main()
File "tools/train.py", line 122, in main
timestamp=timestamp)
File "/home/ubuntu/eff_panoptic/mmdet/apis/train.py", line 125, in train_detector
timestamp=timestamp)
File "/home/ubuntu/eff_panoptic/mmdet/apis/train.py", line 230, in _dist_train
model = MMDistributedDataParallel(model.cuda())
File "/home/ubuntu/anaconda3/envs/mmdet/lib/python3.7/site-packages/torch/nn/parallel/distributed.py", line 305, in init
self._ddp_init_helper()
File "/home/ubuntu/anaconda3/envs/mmdet/lib/python3.7/site-packages/torch/nn/parallel/distributed.py", line 323, in _ddp_init_helper
self._module_copies = replicate(self.module, self.device_ids, detach=True)
File "/home/ubuntu/anaconda3/envs/mmdet/lib/python3.7/site-packages/torch/nn/parallel/replicate.py", line 88, in replicate
param_copies = _broadcast_coalesced_reshape(params, devices, detach)
File "/home/ubuntu/anaconda3/envs/mmdet/lib/python3.7/site-packages/torch/nn/parallel/replicate.py", line 67, in _broadcast_coalesced_reshape
return comm.broadcast_coalesced(tensors, devices)
File "/home/ubuntu/anaconda3/envs/mmdet/lib/python3.7/site-packages/torch/cuda/comm.py", line 39, in broadcast_coalesced
return torch._C._broadcast_coalesced(tensors, devices, buffer_size)
RuntimeError: all tensors must be on devices[0]
My environment looks like:
sys.platform: linux
Python: 3.7.6 (default, Jan  8 2020, 19:59:22) [GCC 7.3.0]
CUDA available: True
CUDA_HOME: /usr/local/cuda
NVCC: Cuda compilation tools, release 10.1, V10.1.105
GPU 0,1,2,3,4,5,6,7: Tesla V100-SXM2-16GB
GCC: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
PyTorch: 1.4.0
PyTorch compiling details: PyTorch built with:

GCC 7.3
Intel(R) Math Kernel Library Version 2020.0.0 Product Build 20191122 for Intel(R) 64 architecture applications
Intel(R) MKL-DNN v0.21.1 (Git Hash 7d2fd500bc78936d1d648ca713b901012f470dbc)
OpenMP 201511 (a.k.a. OpenMP 4.5)
NNPACK is enabled
CUDA Runtime 10.1
NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_37,code=compute_37
CuDNN 7.6.3
Magma 2.5.1
Build settings: BLAS=MKL, BUILD_NAMEDTENSOR=OFF, BUILD_TYPE=Release, CXX_FLAGS= -Wno-deprecated -fvisibility-inlines-hidden -fopenmp -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -O2 -fPIC -Wno-narrowing -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Wno-stringop-overflow, DISABLE_NUMA=1, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, USE_CUDA=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON, USE_STATIC_DISPATCH=OFF,

TorchVision: 0.5.0
OpenCV: 4.2.0
MMCV: 0.3.1
MMDetection: 1.0rc1+d7f86ee
MMDetection Compiler: GCC 5.4
MMDetection CUDA Compiler: 10.1

What is your running script or command?

The command I used is usual:
tools/dist_train.sh [config_file] [num_gpus]

Try use mmcv 0.2.15

You are not using the latest code. Please upgrade to the latest mmdetection.

Thanks, I resolved the issue by upgrading both mmdetection and mmcv to the latest version.


[BUG] add sqlalchemy, pgvector to requirements, pyproject

Describe the bug
swarms/memory/pg.py contains a section of code at the top which checks for the presence of sqlalchemy and installs it if it is not there, followed by a segment which does the same for pgvector. This can be better handled by just importing sqlalchemy and pgvector as a requirement.
try:
    from sqlalchemy.engine import Engine
    from sqlalchemy import create_engine, Column, String, JSON
    from sqlalchemy.ext.declarative import declarative_base
    from sqlalchemy.dialects.postgresql import UUID
    from sqlalchemy.orm import Session
except ImportError:
    print(
        "The PgVectorVectorStore requires sqlalchemy to be installed"
    )
    print("pip install sqlalchemy")
    subprocess.run(["pip", "install", "sqlalchemy"])

try:
    from pgvector.sqlalchemy import Vector
except ImportError:
    print("The PgVectorVectorStore requires pgvector to be installed")
    print("pip install pgvector")
    subprocess.run(["pip", "install", "pgvector"])

Upvote & Fund

We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.

I've created a pull request which updates requirements: https://github.com/kyegomez/swarms/pull/323


expose event in dragOver

if onDragOver specified send the event to the function after setting dropEffect.
Allowing inspection of e.dataTransfer early...

Released as 2.8.0, and added you as a collaborator :)

Great thx @feross!


Create greeting.yml

Fixed #464
###Description:
This pull request implements a new GitHub Actions workflow named "Greetings," which automatically greets users who open new issues or pull requests in this repository.
###Key Features:

Automatic Greeting: Users will receive an immediate acknowledgment when they create an issue or pull request. The messages are:
For Issues: "👋 Thank you for raising an issue! We appreciate your effort in helping us improve. Our team will review it shortly. Stay tuned!"
For Pull Requests: "🎉 Thank you for your contribution! Your pull request has been submitted successfully. A maintainer will review it as soon as possible. We appreciate your support in making this project better."
###Implementation Details:
Created a workflow file named greetings.yml in the .github/workflows directory.
Configured the workflow to trigger on both new issues and pull requests.
Utilized the actions/first-interaction action to manage the greeting messages.
This enhancement aims to foster a welcoming environment for contributors and improve community engagement.

Hey @beRajeevKumar I have raised the PR
Thanks

Hey @beRajeevKumar do assign me the labels in the PR also or else my contribution wont be counted


wip: no tab bar

new ui without the tab bar

Codecov Report

Merging #273 into master will decrease coverage by 0.52%.
The diff coverage is 1.93%.

@@            Coverage Diff             @@
##           master     #273      +/-   ##
==========================================
- Coverage   11.16%   10.63%   -0.53%
==========================================
  Files         230      234       +4
  Lines        9077     9255     +178
==========================================
- Hits         1013      984      -29
- Misses       8064     8271     +207

Impacted Files
Coverage Δ

Library/Generated/StoryboardScenes.swift
0% <ø> (ø)
:arrow_up:

Library/Generated/Assets.swift
0% <ø> (ø)
:arrow_up:

...rary/Scenes/ChannelList/ChannelListViewModel.swift
0% <ø> (ø)
:arrow_up:

Library/Scenes/History/HistoryViewModel.swift
0% <ø> (ø)
:arrow_up:

Library/Generated/strings.swift
6.97% <ø> (ø)
:arrow_up:

Library/Scenes/Loading/LoadingViewController.swift
0% <ø> (ø)
:arrow_up:

...Scenes/ChannelList/ChannelListViewController.swift
0% <0%> (ø)
:arrow_up:

...brary/Scenes/Settings/SettingsViewController.swift
0% <0%> (ø)
:arrow_up:

Library/Scenes/Wallet/WalletViewController.swift
0% <0%> (ø)
:arrow_up:

...nes/Wallet/NotificationView/NotificationView.swift
0% <0%> (ø)

... and 16 more

Continue to review full report at Codecov.

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


Write a sample application

Write a Sample WPF application based on provided functionalities by the library

Great library. I created a wpf app and it seems to deadlock at calling async methods from Contents() extension
using GoPro.Hero.Hero3;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace GoPro.Hero.Wpf
{
///
/// Interaction logic for MainWindow.xaml
///
public partial class MainWindow : Window
{
private static Hero3Camera camera;
    public MainWindow()
    {

        InitializeComponent();
        getCamera();

    }

    private async void getCamera()
    {
        camera = await Camera.CreateAsync<Hero3Camera>("<IP_ADDRESS>");
        //code deadlocks at following line
        var video = camera.Contents().VideosAsync().Result.FirstOrDefault();

    }

}

}

Hi @rotosonic
You should either call it from another thread, or set request mode to sync
GoPro.Hero.Configuration.CommandRequestMode = GoPro.Hero.Configuration.HttpRequestMode.Sync
I don't have access to my camera at the moment so I'm not sure but I think using await instead of Result may solve the problem too.


Add a cache busting param for IE

IE is dumb, so now that turbolinks works in IE we have to do some small thing. We need to send a cache busting param otherwise its too aggressive on its caching of pages..
Do like jquery cache:false does and pass a param &_1425044146793 i.e.
url = "#{url}&_#{new Date().time}"

@davydotcom Can you tell us which versions of IE have this issue, please ?

It's been around a long time but I'm seeing it on IE11
Sent from my iPhone

On Mar 1, 2015, at 8:03 AM, Nowhere Man<EMAIL_ADDRESS>wrote:
@davydotcom Can you tell us which versions of IE have this issue, please ?
—
Reply to this email directly or view it on GitHub.

See https://github.com/defunkt/jquery-pjax/pull/496https://github.com/defunkt/jquery-pjax/pull/496

Note that IE indeed has a history of aggressively caching HTTP resources, but it does respect cache-controlling response headers if you set them from the application.

@davydotcom Would you recommend adding the param across the board or specifically targeting IE?


Update utils.ts

User description
💻 变更类型 | Change Type

[ ] feat
[ ] fix
[ ] refactor
[ ] perf
[ ] style
[ ] test
[ ] docs
[ ] ci
[ ] chore
[ ] build

🔀 变更说明 | Description of Change

📝 补充信息 | Additional Information

PR Type
Enhancement

Description

Improved vision model detection by replacing hardcoded arrays with regex-based patterns
Added support for environment-based vision model configuration through clientConfig.visionModels
Simplified logic by using predefined regex patterns from constants (VISION_MODEL_REGEXES and EXCLUDE_VISION_MODEL_REGEXES)
Made the vision model detection more maintainable and configurable

Changes walkthrough 📝
Relevant filesEnhancement

utils.tsRefactor vision model detection with configurable patterns

app/utils.ts
Refactored isVisionModel function to use regex patterns from constants  Added support for environment-based vision model configuration  Improved model detection logic by using predefined regex patterns  Added imports for vision model regex constants and client config

+11/-20

💡 PR-Agent usage: Comment /help "your question" on any pull request to receive relevant information

:tada: Snyk checks have passed. No issues have been found so far.
:white_check_mark: security/snyk check is complete. No issues have been found. (View Details)


Showcase video-resize

Hi,
I thought I gonna show you where I used your library.
http://www.macherjek.at/
Regards

This looks great, nice work!


capture(ticdc): fix graceful shutdown in k8s

What problem does this PR solve?

Issue Number: close #8484
What is changed and how it works?

Allow access etcd client after a capture has been drained.
Do not return error in campaignOwner after a capture has been drained.

Check List
Tests

Unit test
Manual test (add detailed scripts or steps below)
Run TiCDC cluster in a k8s cluster and rolling restart all TiCDC nodes.

Questions
Will it cause performance regression or break compatibility?
No.
Do you need to update user documentation, design documentation or monitoring documentation?
No.
Release note
Fix an issue that TiCDC cluster can not graceful upgrade in k8s

/cc @asddongmen

/run-all-tests

/run-all-tests

/merge

/run-kafka-integration-test
/run-engine-integration-test
/run-integration-test

/run-verify

/run-kafka-integration-test
/run-integration-test

/run-kafka-integration-test
/run-integration-test


Add pow and reciprocal methods

The original author of #9 deleted their repository.  I applied the change manually.
This closes #9

Other than my one comment, this looks fine. I'd be really tempted to remove the Metrowerks 8.3 workarounds, though. That compiler was released in 2002/2003.

@swatanabe I'm not sure I understand what you mean by the 1/x in the boost::rational context.  Without a reciprocal() call, the only way I see to do it otherwise is to call 1.0/rational_cast<double>(r), and then you are stuck with a double and no good way to get back to a rational<>IntType> again.

AMDG
On 06/14/2018 02:18 PM, James E. King III wrote:

@swatanabe I'm not sure I understand what you mean by the 1/x in the boost::rational context.  Without a reciprocal() call, the only way I see to do it otherwise is to call 1.0/rational_cast<double>(r), and then you are stuck with a double and no good way to get back to a rational<>IntType> again.

Why would you need to use double?  There's
an operator/(CompatibleIntType, rational)
In Christ,
Steven Watanabe

I removed reciprocal() and used your suggestion, so the addition is just pow(..) now.

It looks like this may have caused some issues in poorly scoped calls to pow() - see:
https://github.com/qtumproject/cpp-eth-qtum/issues/31
Any suggestions?  Should Boost.Spirit be more specific?
Does pow need to use SFINAE to disable itself like the operators?
I think pow is being defined in namespace boost which means all other boost libraries will pick it up if they include the header and then call an unqualified pow(...).


Fixed bug where staff were not allowed to visit staff_manage_fosters_path

TODO: Page now needs to render useful content ;-)
🔗 Issue
Fixes https://github.com/rubyforgood/pet-rescue/issues/716
✍ Description
Added policy for Organization::ManageFostersController on #index to ensure there is a user and that user is staff. Also added policy test to be sure this works. Didn't TDD so broke my test by removing the manage_fosters permission from the STAFF constant to ensure that the test failed as desired without the permission.

@all-contributors
please add @elight for code.

Yeah? I assumed this was a staff only page. But then I'm not clear on
the purpose of the page so I guess I was mistaken?
On May 15, 2024, Vipercat @.***> wrote:

@kasugaijin commented on this pull request.

In test/policies/organizations/manage_fosters_policy_test.rb
<https://github.com/rubyforgood/pet-
rescue/pull/717#discussion_r1602295509>:

context "when user is fosterer" do + setup do + @user =
create(:fosterer) + end + + should "return false" do + assert_equal
@action.call, false + end + end + + context "when user is staff" do +
setup do + @user = create(:staff) + end + + should "return false" do
should return true :)

—
Reply to this email directly, view it on GitHub
<https://github.com/rubyforgood/pet-rescue/pull/717#pullrequestreview-
2059085192>, or unsubscribe
<https://github.com/notifications/unsubscribe-
auth/AAACPAGUEXLW55HEJMKEWW3ZCPKWTAVCNFSM6AAAAABHYX3G3OVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDANJZGA4DKMJZGI>.
You are receiving this because you were mentioned.Message ID:
@.***>

Oh! Sorry. The diff in the email didn't show enough of the code. Quite
right.
On May 15, 2024, Vipercat @.***> wrote:

@kasugaijin commented on this pull request.

In test/policies/organizations/manage_fosters_policy_test.rb
<https://github.com/rubyforgood/pet-
rescue/pull/717#discussion_r1602517527>:

context "when user is fosterer" do + setup do + @user =
create(:fosterer) + end + + should "return false" do + assert_equal
@action.call, false + end + end + + context "when user is staff" do +
setup do + @user = create(:staff) + end + + should "return false" do
The test name should be should return true, no? The assertion expects
true

—
Reply to this email directly, view it on GitHub
<https://github.com/rubyforgood/pet-
rescue/pull/717#discussion_r1602517527>, or unsubscribe
<https://github.com/notifications/unsubscribe-
auth/AAACPADKE3UQ5LYO5A2RYRDZCQMFHAVCNFSM6AAAAABHYX3G3OVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDANJZGQ2DANRVGM>.
You are receiving this because you were mentioned.Message ID:
@.***>

Updated test description per discussion. Needs review.


swift-xunit reporter invalid for the Action

The swift-xunit reporter seems not to be correctly recognised by the action.

Please include more information about your setup so we can troubleshoot the issue.

I was trying to run this action on a Swift test workflow, but it simply wouldn't recognise the swift-xunit input as the chosen reporter. The attached screenshot was the failure log for this step:

name: Test Reporter
if: success() || failure()
uses<EMAIL_ADDRESS>with:
name: Test Report
path: Build/tuist_test_bundle_path$(current_date).xcresult
reporter: swift-xunit

The v1.7.0 does not include Swift reporter.
You must reference the action either my main branch or using the commit hash:
dorny/test-reporter@main
dorny/test-reporter@d9ef69ec3d6605cb603a1e7d58506dd1cbd8c166

Good to know! Though I would advise reflecting that in the documentation; it didn't appear to be stated as such.

This is standard behavior of GitHub Actions.

Never found an action pointing to main without a release to be honest. I was just pointing out it wasn't that obvious, based on most other actions I've used. No biggie anyway.


Bind clirr:check to verify phase, publish clirr report.

Coverage remained the same at 74.083% when pulling 9b3e15134ca2715e9e39a78a02d7ca258eeb0ab4 on vanzin:clirr-report into ec4150fe30ceb9726618e60d6557a85cc122d77b on apache:master.


Filter arguments

This PR is work in progress.
Some comments:

Argument filtering is implemented unit test run through I'm planning to add more cases before the PR
Changes to the micro syntax and how its parsed

Previously there were a max of 2 levels of information

type or root field
and the fields on the above

Now there is (potentially) a third level

arguments on the individual fields

This required a significantly higher complexity in parsing the second and third level

this is done by a couple of regex which also take into account glob pattern syntax to ensure this stays intact

Limitations:

filtering of arguments is only possible when field name is explicitly supplied

Query.{user(!pk),book} works
Query.{user(!{pk, name}),book} works
Query.{u*(!pk),book} does not work
Query.*(!pk) does not works

While glob pattern syntax is taken into account when parsing the micro syntax. There are likely cases where advanced usage of glob patters will cause problems

Suggestions for an additional package:
While the above works and likely will be enough for majority of users. After spending some time on this I believe there is also room for a separate package dedicated to argument filtering and default value setting:

this transform would not filter fields at all but only focus on arguments

this significantly reduces the level of complexity in parsing the micro syntax and would allow for full glob pattern matching (see limitations above)

as part of the configuration to exclude an argument it would also be possible to provide a hidden default value (not exposed to the user)
in addition this transform would allow to provide default values in a similar manner as in other transforms Authorization: Bearer {context.headers['x-my-api-token']}
It should also be possible to apply the same default value in multiple places to reduce exploding configs

@yaacovCR What do you think?

@yaacovCR What do you think?

@ntziolis Do you think we can merge this at the beginning then work on the other transform? Does it cover your use cases at least?

@ardatan Yes it can be merged and yes it does cover my immediate use case. Also as I said previously I'm happy to add a couple more unit tests if you feel this should be tested more rigidly.

@ntziolis Let's merge it for now. If we need more, we can rethink about it :)
By the way, Thank you so much for this! It looks really nice!

@ntziolis Also if you still think something is necessary, you can always write your suggestions or even create another draft PR then we can help us more :)

You bet. I'm already working on an additional transformer that is more focused on the actual use case which is converting a multi user/tenant api to a single user/tenant api to be able to expose them directly to the client.


Support Other Income endpoint

See https://www.freshbooks.com/api/other_income

Trying to solve this issue, but the api documentation is inconsistent.
The other_income object has a vis_state field, but the delete function goes with DELETE http method instead of PUT.
Besides this, the delete function doesn't have any return value, just an empty "response" json object.
Does the FreshBooks use the vis_state field in case of other incomes, or just simply delete them?

Sorry for the double reference, but the first one cannot be merged automatically to your master branch, so I altered it and pushed it again. Please use the second one, but they are identically the same.


local option uses /local which isn't mapped in docker

Error loading state-card-custom-ui from /local/custom_ui/state-card-state-card-custom-ui.html
my config is in: /config so the files should be in /config/www/custom_ui

/local/custom_ui/ is not the filesystem path, it is the the url.
However it says "state-card-state-card-custom-ui.html" so this probably doesn't come from customizer but from an old (maybe cached) version of HA frontend looking at a new config (saying custom_ui_state_card: state-card-custom-ui)
Try to clear cache or force refresh (Ctrl+Shift+R / Ctrl+F5)

@kylerw did force-refreshing help?

I was able to fix it. The refresh seemed to do the trick but oddly, not the first time. So I'm not sure what the issue was exactly. But, its now resolved. Thanks for the quick feedback.


Lower tan to StableHLO instead of CHLO.

Fixes #23259

You'll need to sign the CLA.

I just did some moments ago.

It looks like tan only became part of the VHLO dialect on v1.4.0 (source). This seems to be causing a unit test failure, due to an export failure. I might need to change some required minimum version hard-coded somewhere?

It looks like this is breaking some of our tests that rely on forward compatibility (i.e., we don't emit stablehlo that's too new for some consumers, e.g., TF, to understand). I've asked @GleasonK to comment on how we should land this.

Hello! Yes this error indicates a forward incompatibility, tan op is in a bit of a gray area because its a new "feature" but it isn't new semantics so an expander is actually possible.
@abhigunj is working on a pass that will live behind the exporter to expand TanOp which should unblock this. Hopefully have it in by EoW so this can be landed.

StablehloCreateCompatibilityExpanderPass is merged !
PR https://github.com/openxla/xla/pull/16649 should unblock this work, it is in review now.  we probably need to reduce tolerance to 1e-5 for few check tests. hopefully should be in first thing after the long weekend!

@joaospinto — Can you squash this into one commit? I'll add the TODO for myself as part of the merge. Thanks!

StablehloCreateCompatibilityExpanderPass is merged ! PR openxla/xla#16649 should unblock this work, it is in review now. we probably need to reduce tolerance to 1e-5 for few check tests. hopefully should be in first thing after the long weekend!

@joaospinto  https://github.com/openxla/xla/pull/16649https://github.com/openxla/xla/pull/16649 is merged on Friday! Sorry for the delay, there were few expected primitive and harness test failures and fixing those (without adding new limitations) took more time than expected.
The PR should fix test failures related to forward compatibility. Querying the compatibility window versions is not required.


NativeFile doesn't fit SupportsRead protocol

Hello, thanks for the stubs package.
The stub for NativeFile doesn't seem to match the provided signature against the documentation for the read method:
https://github.com/zen-xu/pyarrow-stubs/blob/b1edf35d7fe23ba97a0057a878340a13b7f77a9f/pyarrow-stubs/__lib_pxi/io.pyi#L51-L53
This prevents typechecker from seeing NativeFile as SupportsRead.

Thanks for find this issue, and I will fix it


Enhancement - Add Support for Azure Storage Account File Share "private endpoint"

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request

Module Version

3.1.1

Affected Resource(s)

ArcGIS_Server
ArcGIS_Portal

Enhancement
When trying to create the ArcGIS Server site with a CloudStorage account option, the "CreateSite" operation fails if the StorageAccount Fileshare was created using a private endpoint.  I have not tested this on portal but i suspect that option would fail as well as there seems to be an underlying issues with the user account accessing the fileshare.

After some review, there aren't any changes needed within the ArcGIS Module to support Azure Storage File Share private endpoints. For ConfigStoreCloudStorageAccount.Username attribute the ArcGIS Module accepts StorageAccountA.blob.core.windows.net.
According to the Microsoft documentation, Use private endpoints for Azure Storage, DNS handles the routing to the private link.
Clients on a VNet using the private endpoint should use the same connection string for the storage account as clients connecting to the public endpoint. We rely upon DNS resolution to automatically route the connections from the VNet to the storage account over a private link.
Use the same connection string to connect to the storage account using private endpoints as you'd use otherwise. Please don't connect to the storage account using its privatelink subdomain URL.
By default, We create a private DNS zone attached to the VNet with the necessary updates for the private endpoints. However, if you're using your own DNS server, you may need to make additional changes to your DNS configuration. The section on DNS changes below describes the updates required for private endpoints.
The DNS resource records for StorageAccountA, when resolved by a client in the VNet hosting the private endpoint, will be:

Furthermore, in Tutorial: Connect to a storage account using an Azure Private Endpoint:

Thanks,
Cameron K.


[ENUM REQUEST] table 49 "Invoice Post. Buffer"; Field 1

Can Field 1 from table 49 converted to ENUM. We want to extend on this Option Value.
field(1; Type; Option)
{
Caption = 'Type';
DataClassification = SystemMetadata;
OptionCaption = 'Prepmt. Exch. Rate Difference,G/L Account,Item,Resource,Fixed Asset';
OptionMembers = "Prepmt. Exch. Rate Difference","G/L Account",Item,Resource,"Fixed Asset";
}
//BC160

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


createHistoryStream (live) omitting entries

Hey all,
I'm having trouble with the following createHistoryStream example:
const hyperdb = require('hyperdb')
const ram = require('random-access-memory')

let db1 = hyperdb(ram)
db1.ready(() => {
  let db2 = hyperdb(ram, db1.key)
  db2.ready(() => {
    db1.authorize(db2.key, () => {
      let rep1 = db1.replicate({ live: true })
      let rep2 = db2.replicate({ live: true })
      rep2.pipe(rep1).pipe(rep2)

      let historyStream = db1.createHistoryStream({ live: true })
      historyStream.on('data', console.log)
      db1.put('/hey', 'there')
      db2.put('/yo', 'there')
      db1.put('/dog', 'dog')
      db2.put('/thing', 'thing')

      setTimeout(() => {
        db2.get('/hey', (_, contents) => {
          console.log('got contents:', contents)
        })
      }, 1000)
    })
  })
})

Even though db2 is an authorized writer, historyStream only emits the changes to the  /hey and /dog keys (both changed on db1). When I register the history stream on db2, I see all four changes. Similarly, db2 gets the value of /hey after that delay.
Anything I'm clearly doing wrong here?

Could it be related to recently merged PR?

Tiny thing in your code that's causing the problem: the line that authorizes the 2nd hyperdb with the 1st is
    db1.authorize(db2.key, () => {

but db.key always refers to the shared key. So what you're doing here is having db1 re-authorize itself. You want the db's local key, which is db2.local.key, not db2.key. If you make this change it should replicate & iterate history cleanly.


refactor: move from io/ioutil to io and os package

Summary
The io/ioutil package has been deprecated in Go 1.16 (See https://golang.org/doc/go1.16#ioutil). Since k8up has been upgraded to Go 1.17 (#492), this PR replaces the existing io/ioutil functions with their new definitions in io and os packages.
Checklist

[x] Keep pull requests small so they can be easily reviewed.
[x] Categorize the PR by setting a good title and adding one of the labels:
bug, enhancement, documentation, change, breaking,
as they show up in the changelog

Thanks for your contribution!


Fix dispose

Hey @falvarez1 - I made some changes in regards to the disposable structure and potential memory leaks.
Let me know if you find a reason against the change.

No that's perfect. I planned on introducing that construct as well so that takes care of that.


Change the default Twitter card to summary

Also links the images in blog-posts lists -- just happened to notice that hadn't been done.
Fixes #2850.

Wow, thank you, that was fast 😄


Paste screenshot from clipboard

A feature that I love in Jupyter is the ability to take a screenshot of the task at hand (especially in a school setting, as is the case for me), and paste it directly into the notebook, so that you have it right there as you solve the task. This is a fast and easy fix to the problem of having to tab back and forth from the problem to the notebook.
When I tried to paste a picture from my clipboard into a pluto notebook, nothing happened. I don't know if I am doing it wrong, but I am unable to find a way to paste a picture, so I guess it is not a feature yet. Would it be possible to make this a thing in Pluto?
I am imagining that the data for the screenshot could be put into an array of the type that holds RGB data and printed directly, as demonstrated by Grant Sanderson in some detail in the "Computational thinking" series. This would also maintain the ideal of reproducibility, and "everything needed is right there in the notebook".
Are there others that would like this feature?
Would something like this be hard to implement?

I have realized that one can also paste screenshots easily in GitHub comments, like the one seen below:

It seems like it uploads the image to some GitHub file hosting service, so I don't think that this solution is directly applicable to pluto, but I wanted to promote it here as another example of exactly the feature I am looking for, from the users perspective.

I actually also wanted to achieve something similar, but my use case would be sharing stand-alone static pluto notebooks instead of power-point presentation for example.
I love the way a pluto notebook can be used to generate results and accompanying documentation/text and I would love to then be able to create notebooks to be then able to share with colleagues.
For this thing, being able to add images is of great use, and I often find myself getting such images from the clipboard.
Due to proprietary information often included in such images, it would be impossible for me to simply put them hosted on some public domain. At the same time, to avoid the problems of reproducibility of a static notebook when passed around, I would like to avoid the need of using local images that are pointing to a path on the filesystem.
Looking around a bit I found that is quite easy to get base64 encoding from an image on the clipboard.
I can easily define a short function as below:
paste_image() =  html"""

and then call it in a cell to create an empty div placeholder that I can paste any image from the clipboard on.
My current issue with this implementation is that when saving the file to a static HTML the image is not retained, but for the use case of @KronosTheLate where having the picture gone after restart is fine, I suppose this solution would quite handy.

Oh that's nice! I'll get inspiration from your code to see if we can do something more plutonian! Thanks!!

Happy to help!
Would you have any suggestion on how I could achieve what I want? Meaning having a way to paste embed the image such that it is also maintained when performing the static export?
I tried putting directly the base64 encoded string in the input cell but I suspect that way you have twice the overhead as somehow the input cell states get saved, so I end up with each image occupying a lot of space.

Happy to help!
Would you have any suggestion on how I could achieve what I want? Meaning having a way to paste embed the image such that it is also maintained when performing the static export?
I tried putting directly the base64 encoded string in the input cell but I suspect that way you have twice the overhead as somehow the input cell states get saved, so I end up with each image occupying a lot of space.

We would need to save the base64 somewhere - either within the notebook or in a folder or online. Saving within the notebook is most likely the best idea but there are some real issues like the fact that we wall of text (the Base64) is both ugly and bulky.

Indeed due to the point I raised above for my use case I was also considering putting the base64 in the html directly, and I would be willing to live with the wall of text in the resulting HTML file.
My only problem now is that the only way I found of having the image persist the static export, is putting directly the base64 string inside some html code in the input cell.
I have been looking around at the Pluto.jl source and it seems that this would indeed result in the same base64 string be saved twice in the notebook state (once in the input cell and once in the output cell), effecitvely wasting two times the size and wall of text.
Ideally I would want to have the base64 encoded string just in the output of the cell but still have no clue on how to do that

I just realized that what I want can somehow be achieved by using the PlutoUI.LocalResource widget.
I only needed to slightly modify the code inside CellInput.js to automatically save the file on my disk when detecting a paste event of an image and point to it with LocalResource to have my desired behavior :)

I made a package ImageClipboard.jl for images in the clipboard, so this may help this issue.

https://discourse.julialang.org/t/ann-announcing-imageclipboard-jl/63169/3

@hyrodium
Thanks for the package which seems quite nice!
Regarding the usage in Pluto, I can't seem to have the cell output be displayed as an image though:

I suppose it's a matter of the not having the right show method, but it seems strange that it doesn't work natively

@disberd
Hmm, maybe it depends on the version of Pluto? In my environment, it is v0.14.7.
Or, adding using Images will change the show method.

Ah, ImageShow.jl was good enough.


Add TLS selector when creating a new connection

The settings for TLS should already be possible when creating a new connection.

I disagree. Convos automatically detects if TLS is available or not.
Why do you need this?

For me, the two settings (server and TLS) simply belong together. If my server only listens on port 6697 (also not on 6667), then there is no automatic connection without TLS. Does Convos only automatically when an irc-server also listens on port 6667?
I find the options that are present when editing, should also be present when creating. Create is also only edit. :-)

I find the TLS setting confusing for new users. Convos is all about making things as easy as possible.
The detection is not "try a range of ports", though that would be a cool enhancement. Today it's simply as dumb as this: Connect to the specified port and check if it can handle a TLS negotiation. If it can, then go on. If it cannot, then fallback to plain text.

How about "Automatically uses a secure connection if supported" as a help text below the field?

@marcusramberg That sounds like a good solution. 👍

What is the use of the help text when the automatic TLS detection does not work? To avoid confusing the users, you could hide the option TLS under the advanced settings. For me, the TLS option simply belongs to the server setup. A user would not be prompted if you could pre-define this option.
Would not it be a better idea in the long term if you simply say create a new connection and then display the window with the sidebar (as now when editing)? Then one would have the settings for a server in one place. For developers, one web interface would have to be better than two. You may think about it.
Sorry, I can't help much, am only admin and user, not a developer.

@ukcb if automatic detection does not work, it should be fixed. That is a separate issue. Please open a new issue with details if that is the case.

I have a little problem https://github.com/Nordaaker/convos/issues/345, which just does not allow me to make sense tests. I will not confuse you.

I wonder if there's a misunderstanding here. How do you expect TLS detection to work @ukcb? Do you expect Convos to probe all the usual ports? If so, then TLS detection does not work, since I have failed to find a standard TLS port. Seems like different network use quite different ports for TLS.

I do not want to try multiple ports. Convos is to use exactly the specified one port. Until now I did not know that there is an automatic TLS detection. I have always switched it on in the settings.
I will continue to test if the settings are saved correctly. I will tell you whether it works.

I hope commit 0d1e75d explains that Convos will use TLS, if the server supports it.
Automatic TLS support have been fixed in 58a119e6.


Component - CreateUser

[X] CreateUser component form loads with 3 required fields
[X] Can add to database
[X] Redirects to home page after signing up
[ ] Automatically sign in after signing up
[ ] Navbar changes to reflect logged in after signing up

Issue: When you sign up, you are not automatically logged in afterward!


do sensible things automatically for 'uninstall'

If no apps, exit
If only one app, remove it
If many apps, present a list and ask what to remove

Closes #7.

fixed

no more ,


bug: multi parcel unmount error

Describe the bug or question
When rendering the same parcel multiple times within an application and then unmounting them at the same time (via navigation), single-spa will throw a timeout error that the parcel unmount function did not resolve or reject.
To Reproduce
Example repository to reproduce issue (using react-router-dom/navigateToUrl): https://github.com/CurtisHughes/multi-parcel-unmount-issue
Expected behavior
Both parcels should unmount individually and resolve.
Screenshots and/or console output
Error page: https://single-spa.js.org/error/?code=31&arg=unmount&arg=parcel&arg=parcel-0&arg=3000
https://user-images.githubusercontent.com/29492869/176707668-c01b204c-45cd-4557-a2db-98ca01fc58d4.mov
Additional context
I tried overriding the parcel's unmount function to check for the status of the parcel before attempting the base unmount. However, getAppStatus doesn't seem to support parcels so I wasn't sure how to accomplish that. I also tried custom names for the parcel to see if that would distinguish them enough, but it didn't seem to matter.

Should be resolved by https://github.com/single-spa/single-spa-react/pull/161

Fixed in single-spa-react 5.1.0.


arm64 support as it is now possible to create a arm64 node pool on GKE

arm64 support as it is now possible to create a arm64 node pool on GKE
from what I can tell, all the images for GMP are amd64 arch type only.
would love to see support for arm64 so when I run an arm64 GKE cluster, GMP doesn't fail to run.

Hi @k4leung4,
Yes! We will have an update on this and will keep this issue open for tracking.

Closing this as a duplicate of #166


is.ios recurses forever

It is defined using is.iphone,

is.iphone is defined using is.ipad,
is.ipad is defined using is.iphone
=> call stack overflow

RangeError: Maximum call stack size exceeded
at Array.slice ()
at Object.iphone (https://localhost:7113/js/index.bundle.js:2:7305)
at Object.t.ipad (https://localhost:7113/js/index.bundle.js:2:16097)
at t.iphone (https://localhost:7113/js/index.bundle.js:2:16292)
at Object.iphone (https://localhost:7113/js/index.bundle.js:2:7298)
at Object.t.ipad (https://localhost:7113/js/index.bundle.js:2:16097)
at t.iphone (https://localhost:7113/js/index.bundle.js:2:16292)
at Object.iphone (https://localhost:7113/js/index.bundle.js:2:7298)
at Object.t.ipad (https://localhost:7113/js/index.bundle.js:2:16097)
at t.iphone (https://localhost:7113/js/index.bundle.js:2:16292)

are you running is.ios on the server (Node.js) or on the client?

@pm100 I've just added execution environment checks including some docu https://github.com/evdama/is-it-check/blob/master/README.md#isbrowser-isnodejs-isdeno-iswebworker

Sorry, browser.
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: Markus @.>
Sent: Monday, April 4, 2022 1:53:51 AM
To: evdama/is-it-check @.>
Cc: pm100 @.>; Author @.>
Subject: Re: [evdama/is-it-check] is.ios recurses forever (Issue #2)
are you running is.ios on the server (Node.js) or on the client?
—
Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fevdama%2Fis-it-check%2Fissues%2F2%23issuecomment-1087289132&data=04|01||87dece159027470af10b08da1618a4d6|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637846592344580167|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=UvvlhZ6q461S6E9dUzeV%2FjQehBTOmLjnfTSTw1MpSNQ%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAADXODZ3X5CAHH5H6VKRDY3VDKUZ7ANCNFSM5SNSD4HQ&data=04|01||87dece159027470af10b08da1618a4d6|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637846592344580167|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=WIfRXPG0LlK4VtfBasWHHdzP5YScb0xl4ic%2Fn1otfeI%3D&reserved=0.
You are receiving this because you authored the thread.Message ID: @.***>

Please give some more context, including execution environment and some code to see what you're doing/executing.

issue was caused by never ending recursion which is fixed now https://github.com/evdama/is-it-check/commit/ef56c31ec3b02d1036f01299d0881241013c20e8
Can you please test with the current version of is-it-check.js before I push a new version to npm and do a git tag.

testing on ipad. ipad has two modes in safari

'request desktop site' - in this case useragent claims to be an intel mac! This is the default config. Its why the code with 'ontouchend' is there in order to detect this case.
'mobile' in this case useragent says ipad. User has to chose this option in safari settings

Your fix fails on both, but at least it doesnt crash, it just says false
case1 user agent

"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Safari/605.1.15"

case 2

"Mozilla/5.0 (iPad; CPU OS 15_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1"

fixed recursion for good now
tested with both useragent strings you provided, both tests worked
pushed fixed version (v1.0.11) to npm 👍

Did you change the fix?. I said it in my comment that that it fails to detect ios on my ipad. I provided the user agent string so you could investigate
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: Markus @.>
Sent: Wednesday, April 6, 2022 4:06:26 AM
To: evdama/is-it-check @.>
Cc: pm100 @.>; Mention @.>
Subject: Re: [evdama/is-it-check] is.ios recurses forever (Issue #2)
Closed #2https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fevdama%2Fis-it-check%2Fissues%2F2&data=04|01||c3365720a385493bc3f808da17bd7ec1|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637848399881072722|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=QX5gkmEOdhReku7sUww%2BvyEyu0Q964OAys%2FvDQAYab0%3D&reserved=0.
—
Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fevdama%2Fis-it-check%2Fissues%2F2%23event-6379175017&data=04|01||c3365720a385493bc3f808da17bd7ec1|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637848399881072722|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=VX8n%2F9qszRY9SWU1WXJgTu9WNrcclwRUoOVuRMXN3Hs%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAADXOD4EDF7IS3K5MJDPLKLVDVV3FANCNFSM5SNSD4HQ&data=04|01||c3365720a385493bc3f808da17bd7ec1|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637848399881072722|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=zmmeZ%2BJDkXkThgUXpT13v2BZCFnceLT9RKzn1Dvo2M0%3D&reserved=0.
You are receiving this because you were mentioned.Message ID: @.***>


Design side menu

https://zpl.io/awJBnjd

@alexandrashelenkova @dariatarakanova how incoming and outgoing amounts should be displayed in the "in progress" window?
so

or
https://app.zeplin.io/project/5c73dc8aa74b4b4085a86a91/screen/5cc144e896c2ae2d43231faa

Please leave only one current version on the layouts to avoid confusion.

@Denis-Asipenko Second one is correct, moved first one to "Archive" section.

according to the design, the animation should be as follows:


Multiline support...

LTMorphingLabel is very awesome library !
I love it :)
Do you have any plans for multiline support?
Thank you for your help

I'd also be interested in this for getaerium.com :)

Hey guys, do you know if they updated to Swift 3.0 yet? Thanks!

Hi @eastswift
It's the top 1 requested feature. I'd like to figure it out in my spare time.

hey @lexrus, wondering if any progress has been made on this front since Oct? Thanks for everything thus far!

@lexrus : When will you implement this feature?

I'd very much like to see this feature too

Thanks for this awesome library 💯 💯 💯 . We're still waiting for multiline support @lexrus :)

Yep! We are waiting! :-)

Multiline support would be great!

multipleline, really hope you could have this support, it's a bad limit to it.

Any word on multi line support ?

multipleline, really hope you could have this support, it's a bad limit to it.


Implement route-based code splitting and lazy loading

Implement route-based code splitting and lazy loading so that what is needed only will be loaded and the rest will be loaded asynchronously in the background.
This will reduce website load time and improve performance tremendously!

I recently learnt this technique and would like to implement this in our website! @DhairyaBahl @abhijeet007rocks8


[3.0.0.rc.30] Is the new octopress 2.2.0 compatible?

(moved from imathis/octopress)
OS X 10.10.1, clang 3.5, ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14].
Hello,
Everytime I run octopress, I get this error message:
/Users/roberto/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/safe_yaml-1.0.3/lib/safe_yaml/load.rb:43:in `<module:SafeYAML>': undefined method `tagged_classes' for Psych:Module (NoMethodError)
from /Users/roberto/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/safe_yaml-1.0.3/lib/safe_yaml/load.rb:26:in `<top (required)>'
from /Users/roberto/.rbenv/versions/2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121:in `require'
from /Users/roberto/.rbenv/versions/2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121:in `require'
from /Users/roberto/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/jekyll-2.4.0/lib/jekyll.rb:26:in `<top (required)>'
from /Users/roberto/.rbenv/versions/2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in `require'
from /Users/roberto/.rbenv/versions/2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
from /Users/roberto/.rbenv/versions/2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:39:in `require'
from /Users/roberto/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/octopress-3.0.0.rc.30/lib/octopress/command.rb:1:in `<top (required)>'
from /Users/roberto/.rbenv/versions/2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/roberto/.rbenv/versions/2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/roberto/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/octopress-3.0.0.rc.30/lib/octopress.rb:5:in `<module:Octopress>'
from /Users/roberto/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/octopress-3.0.0.rc.30/lib/octopress.rb:4:in `<top (required)>'
from /Users/roberto/.rbenv/versions/2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/roberto/.rbenv/versions/2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/roberto/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/octopress-3.0.0.rc.30/bin/octopress:6:in `<top (required)>'
from /Users/roberto/.rbenv/versions/2.2.0/bin/octopress:23:in `load'
from /Users/roberto/.rbenv/versions/2.2.0/bin/octopress:23:in `<main>'

does that mean that it can't be run under 2.2.0?

I've just installed 2.2.0 under rbenv on OS X 10.10 and the tests pass without issue (aside from some warnings due to a bug in liquid). Can you give me some more details about your environment? What OS are you running? I'm going to add 2.2.0 to the travis.yml and see how travis fares.

OS X 10.10.1 (see above).
gem envgives this:
296 [17:13] roberto@roberto-aw:Perso/Sites> gem env

RubyGems Environment:

RUBYGEMS VERSION: 2.4.5
RUBY VERSION: 2.2.0 (2014-12-25 patchlevel 0) [x86_64-darwin14]
INSTALLATION DIRECTORY: /Users/roberto/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0
RUBY EXECUTABLE: /Users/roberto/.rbenv/versions/2.2.0/bin/ruby
EXECUTABLE DIRECTORY: /Users/roberto/.rbenv/versions/2.2.0/bin
SPEC CACHE DIRECTORY: /Users/roberto/.gem/specs
SYSTEM CONFIGURATION DIRECTORY: /Users/roberto/.rbenv/versions/2.2.0/etc
RUBYGEMS PLATFORMS:

ruby
x86_64-darwin-14

GEM PATHS:

/Users/roberto/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0
/Users/roberto/.gem/ruby/2.2.0

GEM CONFIGURATION:

:update_sources => true
:verbose => true
:backtrace => false
:bulk_threshold => 1000
:benchmark => false
:sources => ["http://gems.rubyforge.org/", "http://gems.github.com", "http://gemcutter.org"]

REMOTE SOURCES:

http://gems.rubyforge.org/
http://gems.github.com
http://gemcutter.org

SHELL PATH:

/Users/roberto/.rbenv/versions/2.2.0/bin
/Users/roberto/.rbenv/libexec
/Users/roberto/.rbenv/plugins/ruby-build/bin
/Users/roberto/.rbenv/plugins/rbenv-macruby/bin
/Users/roberto/.rbenv/bin
/usr/local/bin
/opt/local/bin
/opt/local/sbin
/Users/roberto/.rbenv/shims
/usr/texbin
/usr/local/bin
/usr/local/sbin
/opt/local/bin
/Users/roberto/shell
/opt/local/sbin
/usr/X11R6/bin
/Users/roberto/.rbenv/bin
/usr/local/bin
/opt/local/bin
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
/opt/X11/bin
/usr/local/MacGPG2/bin
.
/Users/roberto/Shell
.

With a fresh install of 2.2.0, my gem env is nearly identical to yours, the only differences being shell paths and sources. I don't see why you should be having these errors. Are you running bundle exec before running octopress commands?

It looks like the tests pass on Travis for 2.2.0. And they pass for me on OS X 10.10.1.  If you find anything that can resolve it, please let me know as it may be helpful to others.

According to Brandon Mathis:

It looks like the tests pass on Travis for 2.2.0. And they pass for me on OS X 10.10.1.  If you find anything that can resolve it, please let me know as it may be helpful to others.

No worry, thanks.  I'll check further on my setup.
--
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=-<EMAIL_ADDRESS>In memoriam to Ondine, our 2nd child: http://ondine.keltia.net/

@keltia Psych problems are usually fixed by re-installing Ruby.

Just for the record, I had this problem with a newly installed Ruby 2.2.0 instance and the solution for me was running bundle update after bundle install.
This is the post that helped me: http://stackoverflow.com/questions/29245100/github-pages-error-running-jekyll-locally

Interesting. Thanks for the update @deluan


stack based context manager for DEBUG and IMAGE

Supports
from tinygrad.helpers import Context
from tinygrad.tensor import Tensor

a = Tensor.ones(1)
b = Tensor.ones(1)

# DEBUG=getenv("DEBUG")

with Context(DEBUG=4):
    (a+b).numpy() # DEBUG=4

# DEBUG=getenv("DEBUG") again

This should be compatible with the current way of handling these vars. DEBUG(x) still works.
Could be useful for Device.DEFAULT as well.

Could be useful for Device.DEFAULT as well.

Oof, hard agree! I hardcode that one all the time when I'm working on a single runtime and env variables become a mess.

I like it! Do context_defaults and context_stack have to be global? Also the names are repeated twice.

This should do it! Globals removed, names only used once.
The only constraint is that all context vars have to be registered before a context is entered (len(ctx_stack) > 1).

Sorry for the commit spam!
I wanted the ContextVar to be useful enough to replace getenv.
You can now do:
with Context(TEST=1):
    TEST = ContextVar("TEST", 0)
    assert TEST.value == 1 # will be true

Yea, it should work for things like training too.

Sorry for that!

Install the pre-commit hooks on your machine to prevent this.


Create a new endpoint with info on size + parquet metadata

See https://github.com/huggingface/datasets-server/pull/1503#issuecomment-1625161886

will be done in  #2230


Can't run a basic example on OSx

Hi guys,
I am trying to run a basic example using Cannon 5D Mark II
I made a new project using the ProjectGenerator, including the ofxEdsdk addon.
My ofApp.h file looks like this:
#pragma once

#include "ofMain.h"
#include "ofxEdsdk.h"

class ofApp : public ofBaseApp{

public:
void setup();
void update();
void draw();

ofxEdsdk::Camera camera;

void keyPressed(int key);
void keyReleased(int key);
void mouseMoved(int x, int y );
void mouseDragged(int x, int y, int button);
void mousePressed(int x, int y, int button);
void mouseReleased(int x, int y, int button);
void mouseEntered(int x, int y);
void mouseExited(int x, int y);
void windowResized(int w, int h);
void dragEvent(ofDragInfo dragInfo);
void gotMessage(ofMessage msg);

};

When I run this code gives this errors:

Do you have any clue of what could be happening here?
The versions I am using are this:
Openframework v 0.9.8
OSx El Capitan 10.11.4 beta
EDSDK version <IP_ADDRESS>, Copyright 2016 Canon Inc.

I had the same problem. Are you sure you're using the EDSK v3.04 Mac Version ? I only tried it with of0.9.2 yet.

Add it in ofxEdsk/libs (merge it so it doesn't erase the include folder, plus be sure not to add it in the src folder).
Using the projectGenerator, update the example project.

Here's how it should look :

In fact I think the step 6 in project description should read
Copy the EDSDK folder into this directory: OF > addons > ofEdsdk > libs

instead of
Copy the EDSDK folder into this directory: OF > addons > ofEdsdk > src

seems to compile fine using v0305 here

Thanks @karolsenami.
Actually I had the EDSDK folder inside /src. So I deleted from there and it solved the issue!.
@dimitre you are right, that would  help.


Always builds a static library

Always builds a static library regardless of value of BUILD_STATIC option (Linking C static library liblibunshield.a).
On version 1.4.3 (October 2018) this does not happen, a dynamic library is created by default.
Сmake version 3.15.4

Thanks for the issue report! PR is welcome :)

Thanks for the issue report! PR is welcome :)

This error appeared after this commit

https://github.com/twogood/unshield/commit/67c22aee9eeb479686b6b1e32131a85fd3dab31f#diff-4803677bd280f4dded52c428e3c8ac6c618508dcabcbe880b68be85897c2ad41

This code in unshield\lib\CMakeLists.txt will fixit this error:
if(BUILD_STATIC)
add_library(${PROJECT_NAME} STATIC ${LIBUNSHIELD_HEADES} ${LIBUNSHIELD_SOURCES})
else()
add_library(${PROJECT_NAME} SHARED ${LIBUNSHIELD_HEADES} ${LIBUNSHIELD_SOURCES})
endif()

This error appeared after this commit

https://github.com/twogood/unshield/commit/67c22aee9eeb479686b6b1e32131a85fd3dab31f#diff-4803677bd280f4dded52c428e3c8ac6c618508dcabcbe880b68be85897c2ad41

This code in unshield\lib\CMakeLists.txt will fixit this error:
if(BUILD_STATIC)
add_library(${PROJECT_NAME} STATIC ${LIBUNSHIELD_HEADES} ${LIBUNSHIELD_SOURCES})
else()
add_library(${PROJECT_NAME} SHARED ${LIBUNSHIELD_HEADES} ${LIBUNSHIELD_SOURCES})
endif()

Great job, thank you @r-a-sattarov!

Great job, thank you @r-a-sattarov!


[SKIP-HCK-CI] Move build/sign related tools into a separate folder

@YanVugenfirer
the build failed because we move + ./Tools/signAll.bat. I will update Jenkins after you merge this PR.


Update CI

Codecov Report
Base: 95.20% // Head: 95.20% // No change to project coverage :thumbsup:

Coverage data is based on head (ed7638a) compared to base (81a197c).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #48   +/-   ##
=======================================
  Coverage   95.20%   95.20%
=======================================
  Files           4        4
  Lines         271      271
=======================================
  Hits          258      258
  Misses         11       11
  Partials        2        2

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Do devise generated views and locales have to be renamed?

I'm really confused about this I see views and locales are prepended with devise. Are they supposed to work  out of the box after I configure like in application.rb or do I have to rename them?

It should work out of the box. See https://github.com/tigrish/devise-i18n#customizing-views


Upgrade to Karma 0.13.11 from 0.12.37 now my proxy will not work.

This was working wanted to use a wrapper to start the test as a service.  So I upgraded to a newer version of Karma and the proxy know longer worked.  Do you know a difference in the two versions that would stop the proxy from working?  Thanks
This is what my karma.conf.js looks like.
// Karma configuration
// Generated on Mon Dec 02 2013 18:46:27 GMT+0400 (MSK)

// uncomment this for redefine mp3-reporter sound files
// ====================================================
// var path = require('path');
// var karmaSoundDir = path.join(__dirname, 'karma_sound');
// ====================================================

module.exports = function(config) {
  config.set({

// base path, that will be used to resolve files and exclude
basePath: '',

// frameworks to use
frameworks: ['mocha', 'requirejs'],

// list of files / patterns to load in the browser
files: [
  {pattern: 'node_modules/**/*.js', included: false},   // allow to load any *.js from node_modules by karma web-server

  'test/test-main.js',
  {pattern: 'js/spec/*.js', included: false},
  {pattern: 'js/lib/*.js', included: false},
  {pattern: 'test/*.js', included: false}
],

// list of files to exclude
exclude: [

],

// test results reporter to use
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
// reporters: ['progress', 'mp3', 'html'],
reporters: ['progress'],

// uncomment this for redefine mp3-reporter sound files
// ====================================================
// mp3Reporter: {
//   red:        path.join(karmaSoundDir, 'red.mp3'),
//   green:      path.join(karmaSoundDir, 'green.mp3'),

//   fail:       path.join(karmaSoundDir, 'fail.mp3'),
//   error:      path.join(karmaSoundDir, 'error.mp3'),
//   success:    path.join(karmaSoundDir, 'success.mp3'),
//   disconnect: path.join(karmaSoundDir, 'success.mp3'),
// },
// ====================================================

// web server port
port: 9876,

// enable / disable colors in the output (reporters and logs)
colors: true,

// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,

// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,

// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera (has to be installed with `npm install karma-opera-launcher`)
// - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`)
// - PhantomJS
// - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
browsers: [],

// If browser does not capture in given timeout [ms], kill it
captureTimeout: 60000,

// Continuous Integration mode
// if true, it capture browsers, run tests and exit
singleRun: false

  });
};

This is my output
SUMMARY:
√ 0 tests completed
Ready for post test run results to athena
20 10 2015 10:37:27.833:DEBUG [middlware:source-files]: Requesting /api/testing/
v1/karmaResult /**karma**/
20 10 2015 10:37:27.834:DEBUG [middlware:source-files]: Fetching /api/testing/v1
/karmaResult
20 10 2015 10:37:27.838:DEBUG [proxy]: proxying request - /api/testing/v1/karmaR
esult to localhost:8899
20 10 2015 10:37:27.844:WARN [proxy]: failed to proxy /api/testing/v1/karmaResul
t (read ECONNRESET)
20 10 2015 10:37:27.845:DEBUG [karma-json-reporter]: JSON written to "C:/node/At
hena19x101/utils/base/results.json".
upload test results failed: { [Error: socket hang up] code: 'ECONNRESET' }

I'm confused with this - I don't see any proxying in the configuration, how is this being proxied?

A year later, the author has not provided feedback. Closing issue.


can not start<EMAIL_ADDRESS>link missing

for my temp fix, I did:
ln -s<EMAIL_ADDRESS><EMAIL_ADDRESS>systemctl enable ceph-mds@$HOSTNAME
systemctl start ceph-mds@$HOSTNAME
I think this part is missing in "roles/ceph-mds/tasks/pre_requisite.yml":

name: enable systemd unit file for mds instance (for or after infernalis)
file:
src<EMAIL_ADDRESS>dest: /etc/systemd/system/multi-user.target.wants/ceph-mds@{{ ansible_hostname }}.service
state: link
changed_when: false
failed_when: false
when:
ansible_distribution != "Ubuntu" and
is_ceph_infernalis

@ruilinchu would you mind sending a PR for that or do you want me to do it?

@leseb plz go ahead and add it. thx

will do thanks!


"e() ** 26" != "exp(26)"

First off, Thanks for the excellent work on this library.
e() ** 26 = 1,95,72,96,09,428.8385
exp(26)  = 1,95,72,96,09,428.83878  (Expected answer)
If truncated, that mantissa should be 8388, instead of 8385

Fundamentally this is issue #99, but I suppose there's an opportunity for the pow() function to recognize that the base is e and then delegate out to the exp() function for evaluation..

I implemented a rounding method to round off the last number. I don't see this problem occurring anymore. Actually, DDMathParser gives more precision than the default iOS Calculator app.  After I called safeRounded(), the return value exactly matches the return value from the default calculator app. May be they did the same. May be something like this will help other developers facing this issue.
extension Double {
    func safeRounded() -> Double? {
        let stringValue = self.stringValue()
        let mantisaLength = stringValue.mantisaLength()
        guard stringValue.lengthOfBytes(using: .utf8) > 10 else { return self } //Don't round small numbers
        var safeLength = mantisaLength - 1
        safeLength = safeLength > 0 ? safeLength : 0
        return Double(String(format:"%.\(safeLength)f", self))
    }
}

extension String {
    func mantisaLength() -> Int {
        guard var index = firstIndex(of: ".") else { return 0 }
        index = self.index(after: index)
        return self[(index)...].lengthOfBytes(using: .utf8)
    }
}


Improve documentation of Rust version related variables

Document the version related variables that corrosion (FindRust) provides
Improve the Rust_IS_NIGHTLY variable by always defining it (allows testing wether corrosion is new enough to set this variable)
Add variables to expose the LLVM version used by rust. Useful e.g. for cross-language lto, where you want to be sure that the llvm version on both sides matches.

@ogoffart Are there still any open points from you, or could I go ahead and merge this?

No more open points.  Thanks for the patch


Problem with the Tensorflow version

Hello everybody,
I'm trying to run embed.py by following step by step the readme.txt but i'm always getting an error related to the tensorflow version, if i use tensorflow==0.12 i get this error
"  File "embed.py", line 153, in main
dataset = tf.data.Dataset.from_tensor_slices(data_fids)
AttributeError: 'module' object has no attribute 'data' "
and i use tensorflow==1.5 i get this error
"AttributeError: 'str' object has no attribute 'get_shape' "
someone can help me please?

Using TensorFlow 0.12 is not supported since the dataset api which our code relies on wasn't introduced until 1.4. However, it should work with TensorFlow 1.5, at least we have successfully used it with later Tensorflow version. Could you post the complete error message, including lines from which the error originates from? Without it it's hard to guess where the error is coming from. Also please tell us if you are using our original code or you changed something. If I search for get_shape in our repository the only place where we use it directly is in the network definitions on input images. This should never be a string, so I'm a bit confused where this error should be coming from.

So it seems like tf_map_func is trying to determine the shapes of outputs of the common.fid_to_image and at this point is getting a string object which obviously has no get_shape function. None of the return values are strings though. The first is an image and the last two should be string tensors not strings. However, I do see that @lucasb-eyer fixed an issues relating to this problem in a pull request #37  . Could it be you didn't check out a version after that PR was merged?
If that isn't the case I sadly don't have time to debug this for you right now. You should try to figure out which of the three return values is causing this issue and then figure out why this is a string in the first place, at this point it should all be tensors already.

Alex is right, you are not using the latest master since embed.py line 244 doesn't correspond to what your error shows anymore. Please try again with the latest version of our code, it should work.

where can i find the last version of the code please?
(sorry i'm new with these stuff)

If you checked out the code as a repository you should just git pull to get the latest changes. If you downloaded it as a zip file you will need to just re-download the master version from the main repo page.

@M-Ghorbel
Please replace line no. 157 in common.py with the following.
return image_resized, fid, tf.convert_to_tensor(pid)
This will solve the error for sure

thank you for your help, since i used tensorflow 1.4 the error " "AttributeError: 'str' object has no attribute 'get_shape' " has disappeared but i'm getting another error "ValueError: Can't load save_path when it is None."

If you have not trained earlier using this script..
You need to provide a trained model checkpoint using --checkpoint argument.
You can find that in the Tf-release section.
They also did not provide args.json file in the earlier release. You need that to run the trained model. I do not know whether they have updated in the release or not.
If not, check earlier issue i created for the same.

@zishansami is right, and we indeed didn't get around to updating the release with the args.json file yet.

@zishansami
after downloading the zip, i get three files, where should i copy them?

In the experiment folder of course.
And give the path relative to the experiment folder with --checkpoint

@zishansami

OSError: Unable to create file (unable to open file: name = '/test_embeddings.h5', errno = 13, error message = 'Permission denied', flags = 13, o_flags = 242)

Run this.
python3 embed.py
--experiment_root ~/experiments/my_experiment
--dataset querynameno.csv
--filename test_embeddings.h5
--checkpoint checkpoint-25000
If still throws the same error..
then there is problem with your h5py.
Try updating it

A path starting with a / is an absolute path, not a relative one. It complains that it can't create the file /test_embeddings.h5, obviously because it's in the root folder.

@zishansami
it still not working, i'm getting another error, i don't know why it's so complicated, i did follow your instructions but still have problems.

Please actually read the error messages before blindly posting them. Just looking at them it should be obvious what is wrong.

I'm going to close this issue as the original issue has long been solved. For other problems, please open new issues about these specific problems, but as @Pandoro said, please read the error messages carefully and try at least a little to solve them before posting.


Enable AMD GPU telemetry capture

Currently, only Nvidia GPUs have native telemetry capture. Since Frontier has AMD GPUs, we should enable AMD capture as well.

Done https://github.com/ORNL/flowcept/commit/e3bf6d49033d1fe127abff1b2c3d4b0f2ae5dc1e


Can htmltoword support html and css styles?

For example:
http://plnkr.co/edit/SCDfbdFO9vxsFxjzXuT9?p=preview

Hi, currently very basic support mostly on alignment and tables. https://github.com/karnov/htmltoword/wiki/Styles-and-classes
Maybe in the future I'll add css support for margins and fonts.

My problem is that it is not picking a single css whether defined externally or even inline. Can anybody tell me do we need to do something else as well apart from including the gem in the gemfile. What are the steps to successfully implementing docx with proper css


Updating jackson dependencies to match the project

Getting rid of org.codehaus.jackson dependency and using the same jackson dependencies as the metrics-json module.

Thanks!


Merge several similar dockerfile into one and add  file go.work.sum into gitignore.

What do these changes do?

Merge several similar dockerfile into one.
Add file go.work.sum into gitignore.

Done, please take another look at this. @sighingnow


Input loses focus when updating state.

I am using React Naive 0.27.2 with nativebase 0.4.7, I am having trouble using the input component.
As you can see, I am trying to update the state on the input on onChangeText, but when I update the state the focus is lost from the input component.  Is there another way to use the input component to get the value from it onSubmit?
edit:
Also TextInput is working correctly, if I substitute it for the input component.

`import {Container, Header, Content, Button, Title, List, ListItem, InputGroup, Input, Icon} from 'native-base';
import React, {Component} from 'react';
import {TextInput, View} from 'react-native';
export default class Login extends Component {
constructor() {
super();
this.state = {user: '', pw: undefined};
}
userNameUpdate(event){

  this.props.actions.createUser(this.state.username, '1234')
}

render() {
  const {login} = this.props

    return (
        <Container>

            <Content>

                    <InputGroup>
                           <Input
                             placeholder="USERNAME"
                             value={this.state.user}
                             onChangeText={(username) => this.setState({username})}/>
                           </InputGroup>

                       <InputGroup>
                           <Icon name="ios-unlock" />
                           <Input
                             placeholder="PASSWORD"
                             secureTextEntry={true}
                             value={(this.state && this.state.pw) || ''}
                             onChangeText={(password) => this.setState({pw: password})}/>
                       </InputGroup>

                   <Button style={{margin:5}} onPress={() => this.userNameUpdate()} block> Login </Button>

            </Content>

        </Container>
    );
}

}
`

having the same issue

Yes it's a bug. Will be fixed my monday/tuesday.

Fixed in v0.4.8

Thanks!

I am still facing this issue.


Release Google.Cloud.Kms.V1 version 2.2.0

Changes in this release:

Commit e89b7c2:

feat: Add maxAttempts to retry policy for KMS gRPC service config
feat: Add Bazel exports_files entry for KMS gRPC service config

Commit aeb69c3: fix: do not retry on 13 INTERNAL

Created release for Google.Cloud.Kms.V1-2.2.0


[Media Queries] Inline css takes precedence over media queries

How can we reproduce this bug?
Implement a media query in app.css such as:
.header {
    p.header__site {
        text-align: right;
        @media only screen and (max-width: #{$global-breakpoint}) {
            text-align: center;
        }
    }
}

Write out the HTML (or Inky code) that causes the issue.
The media query, as part of the inline process, is properly included in the <head> tag.
What did you expect to happen?
Expected the media query to work - it didn't
What happened instead?
The inline style of "text-align: right;" took precedence, as it properly should
What email clients does this happen in?
Debugging in firefox
So, What is the problem?
The documentation for media queries does not mention the very important fact that in order for the media query to work, you must add the !import precedent modifier to the css. The following works:
.header {
    p.header__site {
        text-align: right;
        @media only screen and (max-width: #{$global-breakpoint}) {
            text-align: center !important;
        }
    }
}

I will bet that most coders relying on the current documentation would would make this mistake and have to figure out that the issues stems from the inlining process, and not their original code! Your docs can help avoid this.

!important is dangerous and not recommended. The styles should work in email clients and Firefox is a normal browser where you do not want to inline the styles.

Good to know. A note that using the browser as an initial QA of the production output file (inlined) will not use the media queries properly might help.

On Dec 5, 2018, at 3:43 AM, Daniel Ruf<EMAIL_ADDRESS>wrote:
!important is dangerous and not recommended. The styles should work in email clients and Firefox is a normal browser where you do not want to inline the styles.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/zurb/foundation-emails/issues/929#issuecomment-444457128, or mute the thread https://github.com/notifications/unsubscribe-auth/AIbdegwlUbEBR6m7Ofb2BpLXa5e2EWnyks5u17F9gaJpZM4Y9E5o.