Update the parameters of tokenizer

Why are these changes needed?
'return_token_type_ids=False' is necessary to solve the error 'ValueError: The following model_kwargs are not used by the model: ['token_type_ids'] (note: typos in the generate arguments will also show up in this list)'

For which model did this error occur?

For which model did this error occur? It appears the problem stems from a mismatch between the tokenizer and the model, rather than an issue with our code.

OK, I did the test and found that it only occurred on the LLaMA2 models.
Now we have decided to exclude the LLaMA2 in configs. So I think this problem and branch is unnecessary.


DjangoIntegration together with LoggingIntegration: drawbacks?

I use DjangoIntegration, but I don’t think it captures random log warnings. I intend to add LoggingIntegration with appropriate log level.
Is it correct that DjangoIntegration cannot itself be configured to capture log.warning()s? Would using both DjangoIntegration and LoggingIntegration with appropriate log level config result in duplicate events being pushed to Sentry or any other drawbacks?
The project already configures a global LOGGING Django setting with a handler that prints warnings to console, not sure if LOGGING affects Sentry’s DjangoIntegration though (I find docs slightly lacking on that, or I missed the relevant part).

Hi @strogonoff,
Are you manually overriding integrations in your sentry init or using the defaults? By default, both  DjangoIntegration and LoggingIntegration in a django app will be turned on and are meant to be used out of the box with each other as they serve separate purposes.

Is it correct that DjangoIntegration cannot itself be configured to capture log.warning()s?

Yes that is correct. The DjangoIntegration does things like wrap WSGI/middleware etc and capture exceptions/trace transactions within the django request/response cycle.
The LoggingIntegration takes logs above your defined level and adds those to breadcrumbs/exceptions.

result in duplicate events

No, it shouldn't because we have a DedupeIntegration turned on by default that filters duplicated exceptions.
One caveat, we ignore the following 3 loggers in django due to spammy reasons, so stuff from those won't show up in sentry.
        ignore_logger("django.server")
        ignore_logger("django.request")
        ignore_logger("django.db.backends")

Are you manually overriding integrations in your sentry init or using the defaults?

We’re doing something along the lines of
    sentry_warning_logging = LoggingIntegration(
         level=logging.INFO,
         event_level=logging.WARNING
    )
    sentry_sdk.init(
        dsn=environ.get("SENTRY_DSN"),
        integrations=[DjangoIntegration(), sentry_warning_logging],
        server_name=...

Thank you, very informative. Sounds like it’s OK to keep both.


Make "my velocity" measurement in dot plot a scatter mark instead of a dot in a bin

Is this possible? Otherwise, we end up in a situation where my measured velocity is placed in the center of its bin, and when you click that value in the dot plot, it doesn't match your actual measured wavelength value, which will be very confusing for students.
In the image:

tiny green dot in dot plot is "my velocity". (We need to change the color of that dot and make it bigger if possible)
red vertical line in spectrum viewer is "my wavelength measurement"
green lines in both viewers are the values given by the measuring tool which then displays the corresponding velocity/lambda in the other graph.

Addressed via https://github.com/cosmicds/cosmicds/pull/343 and #647.


Support for ObjectMapper v0.18

AlamofireObjectMapper v1.0 does not support the current version of ObjectMapper v0.18.

+1

I have this error when run carthage update
** BUILD FAILED **

The following build commands failed:
	Check dependencies
(1 failure)
CodeSign error: code signing is required for product type 'Framework' in SDK 'iOS 9.0'
A shell task failed with exit code 65:
** BUILD FAILED **

The following build commands failed:
	Check dependencies
(1 failure)

I have released a new version (1.1.0) with support for the latest version of ObjectMapper


Missing expression for SUMX

The outer SUMX is missing an expression as 2nd argument.

@NickyvVr - Thanks for submitting this. You are correct, the first SUMX was missing a valid expression argument. Your change, however, is not correct. "[Expression]" is not a valid expression argument for the first SUMX.
The whole example was incorrect and difficult to understand. It has probably been that way for a long time. Thanks for pointing it out. We've updated the example with a valid TOPN expression.


allow to start daemon with additional args

e.g. a different root dir using "-g /mnt/data/docker"
uses the same sysconfig file as the init.d script

Also see  EnvironmentFiles and support for /etc/sysconfig files.

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "patch-1" git@github.com:MartinNowak/docker.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Ammending updates the existing PR. You DO NOT need to open a new one.

The documentation contains instructions how to modify the daemon args: https://docs.docker.com/articles/systemd/#custom-docker-daemon-options
This change has been discussed and rejected several times:
Ref: https://github.com/docker/docker/pull/14513 https://github.com/docker/docker/pull/16332 https://github.com/docker/docker/pull/16252 & others

Closing as @phemmer mentioned.
With systemd you should use drop-ins.
ref: https://coreos.com/os/docs/latest/using-systemd-drop-in-units.html


Nginx vts as prometheus metrics

Currently the nginx endpoint for metrics only support vts metric, that provide html and json metrics.
I figured out a project that export vts metrics to prometheus, now I have all metrics, simply using a sidecar container pointing to vts.  Here's my awesome metrics.

I'm interested in porting this for the nginx ingress, but first I'm here to ask if this is in the roadmap or if anyone is already working on this.

@gianrubio prometheus metrics are already present in master (only for standard nginx, not vts). Please check https://github.com/kubernetes/ingress/pull/36
Maybe you can open a PR to extract the metrics from the vts module?

@aledbf you are wright, there's an endpoint for global nginx metrics.
I can do this PR, what dou you think is the better way to do this?
1 - Create another endpoint for metrics
2 - Merge this vts metrics with global
3 - Run a sidecar container extracting vts metrics?

2 - Merge this vts metrics with global

@gianrubio Are you still interested in working on this?

yes @cmluciano, I'm working on this, 70% is done. Give me more 2 days and I'll submit this PR

Hi, been reading cross many issues, PRs, .. unsure if I should open a separate issue or not..
Are there any plans to add metrics from https://github.com/hnlq715/nginx-vts-exporter ?
mostly interested in

{NAMESPACE}_server_requests | code [2xx, 3xx, 4xx, 5xx, total], host (or domain name)

@harmut-pq take a look on this config https://github.com/kubernetes/ingress/blob/master/examples/customization/custom-vts-metrics/nginx/nginx-vts-metrics-conf.yaml
If this didn't help you, please open a new issue and relate to me

Hi @gianrubio, thanks for the hint!
This configuration enabled some more vts metrics - can't find any response codes though. Is this supported in any way?


Refactor: Update Open Coinverse Guide to Safe open info #168

Convert Google doc to Markdown
Refactor from 1 long page into topic-based pages organized by categories: About, Use, Compatibility, and Security
Update links from Gnosis to Safe scheme
Create a separate temporary GitHub repository for the Safe open info Markdown files: To incrementally merge into the main Safe docs where it makes sense to

This is an updated pull request from the original #168 that resolves merge conflicts and adds a link to the GitHub repository for contributions.

Looks like it's giving 500 errors?
https://github.com/adam-hurwitz/safe-oi

A temporary issue I guess. It's working now! 🙌


You must enable preview features in order to use restore

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution or feature you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

@jekon29 thanks for reporting this issue.  Currently the Restore feature is still in preview, so this is the expected behavior.  We are planning the remaining work to move this feature out of preview.

@jekon29 thanks for reporting this issue.  Currently the Restore feature is still in preview, so this is the expected behavior.  We are planning the remaining work to move this feature out of preview.


Verification failed from peer: Execution: Could not convert parameter block between node and runtime: Error decoding field Block.extrinsics

My testnet node failed to sync new blocks with this error
2019-12-05 21:28:42.713 import-queue-worker-0 TRACE sync  Starting import of 128 blocks  (23485..23612)
2019-12-05 21:28:42.714 import-queue-worker-0 TRACE sync  Header 0x3997…5ab6 has 2 logs
2019-12-05 21:28:42.904 import-queue-worker-0 TRACE sync  Verifying 23485(0x3997…5ab6) from QmfZFm6bGGpaJ8J2TJb14ubtm86hdNeAwqvxDoVw5FDWUC failed: Execution: Could not convert parameter `block` between node and runtime: Error decoding field Block.extrinsics
2019-12-05 21:28:42.905 tokio-runtime-worker-8 TRACE sync  Imported 0 of 128
2019-12-05 21:28:42.905 tokio-runtime-worker-8 INFO sc_network::protocol::sync  Verification failed from peer: Execution: Could not convert parameter `block` between node and runtime: Error decoding field Block.extrinsics
2019-12-05 21:28:42.905 tokio-runtime-worker-8 DEBUG sync  Restarted with 23484 (0x6d1c…ad48)
2019-12-05 21:28:42.905 tokio-runtime-worker-8 DEBUG sync  New peer with known best hash 0x6d1c…ad48 (23484).

All we did was submitted a sudo call at block 23485.
https://acalanetwork.github.io/apps/#/explorer/query/23485
The code: https://github.com/AcalaNetwork/Acala
To reproduce
docker run --rm acala/acala-node

Did you had any runtime upgrades before?

No.

But your validators still continue building new blocks?

Yes.
Telemetry: https://telemetry.polkadot.io/#list/Acala
Explorer: https://acalanetwork.github.io/apps/

There is no sudo call at the other linked block?

I have regenerate the genesis and reset the network and it seems find now. Will reopen if happens again.
I guess it may be relates to some cache issue of the wasm file when building spec so I cargo clean it first.

Hi, I am getting the same error when I tried to start the new archive node from the Boot node. The new node's binary is different though since it has some updates, should I be using the same binary which is used in the boot node?

This is the exact error I am getting on archive node:
Apr 07 10:16:58.469  INFO ⚙  Syncing, target=#1624862 (1 peers), best: #256 (0x1411…960d), finalized #0 (0x04f5…578a), ⬇ 16.7kiB/s ⬆ 0.7kiB/s     Apr 07 10:16:58.747  WARN 💔 Verification failed for block 0x465884fc0ef67611a192629819b869e57f25a507ba90a31d9bcc6a34392619c4 received from peer: 12D3KooWBmAwcd4PJNJvfV89HwE48nwkRmAgo8Vy3uQEyNNHBox2, "Execution: Could not convert parameter blockbetween node and runtime: Error decoding field Block.extrinsics"     Apr 07 10:17:03.337  WARN 💔 Verification failed for block 0x465884fc0ef67611a192629819b869e57f25a507ba90a31d9bcc6a34392619c4 received from peer: 12D3KooWBmAwcd4PJNJvfV89HwE48nwkRmAgo8Vy3uQEyNNHBox2, "Execution: Could not convert parameterblockbetween node and runtime: Error decoding field Block.extrinsics"     Apr 07 10:17:03.472  INFO 💤 Idle (0 peers), best: #324 (0x9ed0…a12b), finalized #0 (0x04f5…578a), ⬇ 8.4kiB/s ⬆ 0.6kiB/s

@ToufeeqP this means you probably did not bump your spec_version properly.

Thanks for replying, I will try bumping the spec_version  to match the current spec_version of the boot node.

I just realised that I have never updated the boot node, so its spec_version is 1 which is the same as the current spec-version from which I am trying to start a new node. However, when I used the same binary as the one which is used in the boot node, a new node started normally & syncing the old blocks.

You should not use the same spec_version. Based on the spec_version it is decided which runtime to call. And you native runtime is probably not compatible anymore.

https://substrate.dev/docs/en/knowledgebase/runtime/upgrades#runtime-versioning

Any idea, how to make the native runtime compatible with the current running node?

No, you should be self aware on what you changed in your runtime to make it incompatible.


The poor performance when trying to evaluate on CoLA Dataset

I tried to use XLNet-large-cased ckpt to evaluate on the CoLA dataset. However, it turned out that the accuracy on eval.tsv is only 0.042...
I modified run_classifier.py like following.
class ColaProcessor(GLUEProcessor):
  def __init__(self):
    super(ColaProcessor, self).__init__()
    self.label_column = 1
    self.text_a_column = 3
    self.test_text_a_column = 1

  def get_labels(self):
    return ["0", "1"]

  def _create_examples(self, lines, set_type):
    """Creates examples for the training and dev sets."""
    examples = []
    for (i, line) in enumerate(lines):
      if i == 0 and self.contains_header and set_type != "test":
        continue
      if i == 0 and self.test_contains_header and set_type == "test":
        continue
      guid = "%s-%s" % (set_type, i)

      a_column = (self.text_a_column if set_type != "test" else
          self.test_text_a_column)

      # there are some incomplete lines in QNLI
      if len(line) <= a_column:
        tf.logging.warning('Incomplete line, ignored.')
        continue
      text_a = line[a_column]

      if set_type == "test":
        label = self.get_labels()[0]
      else:
        if len(line) <= self.label_column:
          tf.logging.warning('Incomplete line, ignored.')
          continue
        label = line[self.label_column]
      examples.append(
          InputExample(guid=guid, text_a=text_a, text_b=None, label=label))
    return examples

The command line is the following:
CUDA_VISIBLE_DEVICES=0,1,2,3 python run_classifier.py \
  --do_train=True \
  --do_eval=True \
  --do_predict=True \
  --eval_split=eval \
  --task_name=CoLA \
  --data_dir=${GLUE_DIR}/CoLA \
  --output_dir=proc_data/${TASK_NAME} \
  --model_dir=exp/${TASK_NAME} \
  --predict_dir=result/${TASK_NAME} \
  --uncased=False \
  --spiece_model_file=${LARGE_DIR}/spiece.model \
  --model_config_path=${LARGE_DIR}/xlnet_config.json \
  --init_checkpoint=${LARGE_DIR}/xlnet_model.ckpt \
  --max_seq_length=128 \
  --train_batch_size=8 \
  --num_hosts=1 \
  --num_core_per_host=4 \
  --learning_rate=5e-5 \
  --train_steps=1200 \
  --warmup_steps=120 \
  --save_steps=600 \
  --is_regression=False

Could anyone help me with this?

For CoLA, we used train_batch_size 128 and trained for 3000 steps with 500 warmup_steps.

@zihangdai
Thanks, Zihang !
I'll try this setting later : )

@zihangdai
Thanks, Zihang !
I'll try this setting later : )

Hi
Have u tried the task again these days ?
i got some poor results in sts-b, which using only 1 GPU with 16G memory while training.(batch size=8, seq_len=128)
i guess the poor performance of the model might due to the small batch size.
i wanna know ur model performance which using 4 GPU while training.
thx

@zihangdai
Thanks, Zihang !
I'll try this setting later : )

Hi
Have u tried the task again these days ?
i got some poor results in sts-b, which using only 1 GPU with 16G memory while training.(batch size=8, seq_len=128)
i guess the poor performance of the model might due to the small batch size.
i wanna know ur model performance which using 4 GPU while training.
thx

The sts-b parameter works fine. I used 4 Titan-X GPU to train and got 90.4/90.0 result.
The batch_size is essential for you to reproduce the result, and I think batch_size=8 means 8 for each GPU. Maybe you can do gradient accumulation : )

@UsedToBe97
Hi
Did you try to predict using cola processor?
I am using the same cola class processor you write, it works fine for training and validation, but doesn't for test prediction?
I am using the following command to predict:
--do_train=False
--do_eval=False
--eval_split=test
--do_predict=True
--task_name=cola
But I got the following error:
TypeError: Expected binary or unicode string, got None


Tool: https://github.com/gordonklaus/ineffassign

Detects ineffectual assignments

Nice idea, but unfortunately it recursively checks every directory. This is very slow for vendored source trees :(
Still, I think I'll add it but perhaps default to disabled.

I filed a ticket.

Which for the record is https://github.com/gordonklaus/ineffassign/issues/2


lxc/lxd not working on xenial error: Get http://unix.socket/1.0: dial unix /var/lib/lxd/unix.socket: connect: permission denied

Required information

Distribution: Ubuntu
Distribution version: xenial (daily build)
The output of "lxc info" or if that fails: "error: Get http://unix.socket/1.0: dial unix /var/lib/lxd/unix.socket: connect: permission denied"

Kernel version: 4.4.0-6-generic
LXC version:  2.0.0.beta3
LXD version:  2.0.0.beta3
Storage backend in use: dir

Issue description
I am trying to follow the instructions on linuxcontainers.org and many of the lxc commands fail getting the error no the unix.socket with permission denied.
$ lxc info
error: Get http://unix.socket/1.0: dial unix /var/lib/lxd/unix.socket: connect: permission denied
$ lxc list
error: Get http://unix.socket/1.0: dial unix /var/lib/lxd/unix.socket: connect: permission denied
$ lxc image list
error: Get http://unix.socket/1.0: dial unix /var/lib/lxd/unix.socket: connect: permission denied

Steps to reproduce
I followed the instructions on linuxcontainers.org to install. The deviation was I tried to use the ppa for xenial and that failed because xenial is not released yet. The lxd package was available in the xenial archive, see versions above.
Information to attach
The lxd daemon is running.
$ ps -ef | grep lxd
root      4179     1  0 08:28 ?        00:00:06 /usr/bin/lxd --group lxd --logfile=/var/log/lxd/lxd.log
$ sudo service lxd status
● lxd.service - Container hypervisor based on LXC
   Loaded: loaded (/lib/systemd/system/lxd.service; indirect; vendor preset: enabled)
   Active: active (running) since Tue 2016-02-23 08:28:28 CST; 1h 19min ago
 Main PID: 4179 (lxd)
   CGroup: /system.slice/lxd.service
           ‣ 4179 /usr/bin/lxd --group lxd --logfile=/var/log/lxd/lxd.log

Feb 23 08:28:22 warhorse systemd[1]: Starting Container hypervisor based on LXC...
Feb 23 08:28:22 warhorse lxd[4179]: t=2016-02-23T08:28:22-0600 lvl=warn msg="CGroup memory swap accounting is disabl
Feb 23 08:28:28 warhorse systemd[1]: Started Container hypervisor based on LXC.

And some lxc commands work, such as: lxc image list images: but I am not able to run many of the other lxc commands on this system.
I attached the lxd log file, please let me know if you need anything more information.

Did you do newgrp lxd? Can you post the output of id?

Hello @tych0, yes I did run newgrp lxd, and here is the output of id:
$ id
uid=1000(mbruzek) gid=1000(mbruzek) groups=1000(mbruzek),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),114(lpadmin),130(sambashare),133(docker),134(libvirtd),136(lxd)

And you've been running the lxc command from this same shell?
Can you paste the output of "ls -lh /var/lib/lxd/unix.socket" too?

What's the output of ls -alh /var/lib/lxd/?

good to see we agree @tych0 :)

$ ls -alh /var/lib/lxd
total 88K
drwxr-xr-x  9 root root 4.0K Feb 23 08:28 .
drwxr-xr-x 90 root root 4.0K Feb 23 08:23 ..
drwx--x--x  2 root root 4.0K Feb 23 08:28 containers
drwx--x--x  2 root root 4.0K Feb 23 08:28 devices
drwxr-xr-x  2 root root 4.0K Feb 23 08:28 devlxd
drwx------  2 root root 4.0K Feb 23 08:28 images
-rw-r--r--  1 root root  38K Feb 23 08:23 lxd.db
drwx------  2 root root 4.0K Feb 23 08:28 security
-rw-r--r--  1 root root 2.2K Feb 23 08:28 server.crt
-rw-------  1 root root 3.2K Feb 23 08:28 server.key
drwx--x--x  2 root root 4.0K Feb 23 08:28 shmounts
drwx------  2 root root 4.0K Feb 23 08:28 snapshots
srw-rw----  1 root root    0 Feb 23 08:23 unix.socket

I have also read #275 looking for an answer to my problems, but no luck yet.

Okay, well, that's clearly wrong :)
Can you try:
systemctl stop lxd
systemctl stop lxd.socket
systemctl start lxd.socket

See if that fixes that mess somehow?
Also, the exact version of the lxd package would be helpful.

mbruzek@warhorse:~$ systemctl stop lxd
Warning: Stopping lxd.service, but it can still be activated by:
  lxd.socket
mbruzek@warhorse:~$ systemctl stop lxd.socket
mbruzek@warhorse:~$ systemctl start lxd.socket
mbruzek@warhorse:~$ systemctl start lxd
mbruzek@warhorse:~$ systemctl status lxd
● lxd.service - Container hypervisor based on LXC
   Loaded: loaded (/lib/systemd/system/lxd.service; indirect; vendor preset: enabled)
   Active: active (running) since Tue 2016-02-23 09:58:01 CST; 8s ago
  Process: 18133 ExecStartPost=/usr/bin/lxd waitready --timeout=600 (code=exited, status=0/SUCCESS)
  Process: 18122 ExecStartPre=/usr/lib/x86_64-linux-gnu/lxc/lxc-apparmor-load (code=exited, status=0/SUCCESS)
 Main PID: 18132 (lxd)
    Tasks: 0 (limit: 512)
   Memory: 424.0K
      CPU: 19ms
   CGroup: /system.slice/lxd.service
           ‣ 18132 /usr/bin/lxd --group lxd --logfile=/var/log/lxd/lxd.log

Feb 23 09:58:01 warhorse systemd[1]: Starting Container hypervisor based on LXC...
Feb 23 09:58:01 warhorse lxd[18132]: t=2016-02-23T09:58:01-0600 lvl=warn msg="CGroup memory swap accounting is disab
Feb 23 09:58:01 warhorse systemd[1]: Started Container hypervisor based on LXC.
mbruzek@warhorse:~$ systemctl status lxd.socket
● lxd.socket
   Loaded: loaded (/lib/systemd/system/lxd.socket; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2016-02-23 09:57:48 CST; 33s ago
   Listen: /var/lib/lxd/unix.socket (Stream)

Feb 23 09:57:48 warhorse systemd[1]: Starting lxd.socket.
Feb 23 09:57:48 warhorse systemd[1]: Listening on lxd.socket.
mbruzek@warhorse:~$ ls -alh /var/lib/lxd
total 88K
drwxr-xr-x  9 root root 4.0K Feb 23 09:57 .
drwxr-xr-x 90 root root 4.0K Feb 23 08:23 ..
drwx--x--x  2 root root 4.0K Feb 23 08:28 containers
drwx--x--x  2 root root 4.0K Feb 23 08:28 devices
drwxr-xr-x  2 root root 4.0K Feb 23 09:58 devlxd
drwx------  2 root root 4.0K Feb 23 08:28 images
-rw-r--r--  1 root root  38K Feb 23 08:23 lxd.db
drwx------  2 root root 4.0K Feb 23 08:28 security
-rw-r--r--  1 root root 2.2K Feb 23 08:28 server.crt
-rw-------  1 root root 3.2K Feb 23 08:28 server.key
drwx--x--x  2 root root 4.0K Feb 23 08:28 shmounts
drwx------  2 root root 4.0K Feb 23 08:28 snapshots
srw-rw----  1 root lxd     0 Feb 23 09:57 unix.socket

I installed lxd from the package archive in xenial, I did not change these permissions.

Ok, so that fixed it.
"dpkg -l lxd" please
I need the exact package version because I've been uploading a bunch of lxd packages to the archive so I need to know which is broken exactly :)

$ dpkg -l | grep lxd
ii  lxd                                                  2.0.0~beta3-0ubuntu4                        amd64        Container hypervisor based on LXC - daemon
ii  lxd-client                                           2.0.0~beta3-0ubuntu4                        amd64        Container hypervisor based on LXC - client
ii  lxd-tools                                            2.0.0~beta3-0ubuntu4                        amd64        Container hypervisor based on LXC - extra tools

@stgraber I don't see what was fixed.  Are the permissions to that directory changed? What was fixed?

unix.socket is now owned by the right group which should let you talk to it.

Anyway, I've got another similar maintainer script bug to investigate for upstart, I'll take a look at the source of this problem today.

I had the same problem as above, with the same installed package. After going through what you've noted above (removing the socket files, ensuring I'm in lxd group, etc), I now get an upstart error.
I don't really want to restart my session, but I wasn't in the lxd group when I checked, so I did add myself. Shouldn't the package does this step for me?
sudo status lxdstatus: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
I noticed I was using the older version of upstart, so I updated just to be sure, but the error remains.
Unpacking upstart (1.13.2-0ubuntu19) over (1.13.2-0ubuntu18) ...
$ ls -alh /var/lib/lxd/
total 88K
drwxr-xr-x  9 root root 4.0K Feb 23 17:36 .
drwxr-xr-x 96 root root 4.0K Feb 23 17:16 ..
drwx--x--x  3 root root 4.0K Feb 23 17:31 containers
drwx--x--x  3 root root 4.0K Feb 23 17:31 devices
drwxr-xr-x  2 root root 4.0K Feb 23 17:36 devlxd
drwx------  2 root root 4.0K Feb 23 17:19 images
-rw-r--r--  1 root root  38K Feb 23 17:36 lxd.db
drwx------  4 root root 4.0K Feb 23 17:31 security
-rw-r--r--  1 root root 2.0K Feb 23 17:19 server.crt
-rw-------  1 root root 3.2K Feb 23 17:19 server.key
drwx--x--x  3 root root 4.0K Feb 23 17:31 shmounts
drwx------  2 root root 4.0K Feb 23 17:19 snapshots
srw-rw----  1 root lxd     0 Feb 23 17:36 unix.socket

$ dpkg -l lxd
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name              Version       Architecture  Description
+++-=================-=============-=============-=======================================
ii  lxd               2.0.0~beta3-0 amd64         Container hypervisor based on LXC - dae

Above was for Xenial, are you on Xenial?
If so, the status command isn't going to work with systemd :)

And you don't need to restart your session to get into the lxd group, just run "newgrp lxd" in the shell you're interacting with LXD from.

The package does put you in the lxd group, but it can't do anything retroactively for existing sessions, so you need to either use newgrp or restart your session.

Yes, running xenial, sorry I should have confirmed that.

ok, then don't use the "status" command, use "systemctl status" :)

Brillant, thanks. I purged, wiped /var/lib/lxd completely, then re-installed. Got the same issue again, and then was able to fix by setting the permission properly again, and doing newgrp lxd (again). Playing with adapt.
$adapt list
error: Get http://unix.socket/1.0: dial unix /var/lib/lxd/unix.socket: connect: permission denied
error: Get http://unix.socket/1.0: dial unix /var/lib/lxd/unix.socket: connect: permission denied
$ ls -alh /var/lib/lxd/
total 52K
drwxr-xr-x  2 root root 4.0K Feb 23 18:34 .
drwxr-xr-x 96 root root 4.0K Feb 23 18:34 ..
-rw-r--r--  1 root root  38K Feb 23 18:34 lxd.db
srw-rw----  1 root root    0 Feb 23 18:34 unix.socket
$ systemctl stop lxd
Warning: Stopping lxd.service, but it can still be activated by:
  lxd.socket
$ systemctl stop lxd.socket
$ systemctl start lxd.socket
$ ls -alh /var/lib/lxd/
total 52K
drwxr-xr-x  2 root root 4.0K Feb 23 18:37 .
drwxr-xr-x 96 root root 4.0K Feb 23 18:34 ..
-rw-r--r--  1 root root  38K Feb 23 18:34 lxd.db
srw-rw----  1 root lxd     0 Feb 23 18:37 unix.socket
$ adapt list
error: Get http://unix.socket/1.0: dial unix /var/lib/lxd/unix.socket: connect: permission denied
$ newgrp lxd
$ adapt list
works ;-)

I think this got fixed with recent packaging updates.

I confirm that I experienced the exact same scenario on 15.10 (Wily) x86_64, today, with the following version of the packages from the PPA :
ii  lxd               2.0.0~rc5-0ubuntu1~ubuntu15.10.1~ppa1  amd64
ii  lxd-client        2.0.0~rc5-0ubuntu1~ubuntu15.10.1~ppa1  amd64

The following fixed the socket permissions issue :
sudo systemctl stop lxd
sudo systemctl stop lxd.socket
sudo systemctl start lxd.socket

Looks like this could still be an issue for new PPA users on 15.10.

I guess if we get more reports of this we'll file a systemd bug, because there's nothing that LXD or our packaging does which would explain this behavior...

1 fenris@x240:~⟫ cat /etc/issue
Ubuntu 16.04 LTS \n \l
fenris@x240:~⟫ uname -a
Linux x240 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
fenris@x240:~⟫ lxc --version
2.0.0
fenris@x240:~⟫ lxc list
error: Get http://unix.socket/1.0: dial unix /var/lib/lxd/unix.socket: connect: permission denied
1 fenris@x240:~⟫ sudo lxc list
+--------+---------+------+------+------------+-----------+
|  NAME  |  STATE  | IPV4 | IPV6 |    TYPE    | SNAPSHOTS |
+--------+---------+------+------+------------+-----------+
| ubuntu | STOPPED |      |      | PERSISTENT | 0         |
+--------+---------+------+------+------------+-----------+
fenris@x240:~⟫ sudo lxc start ubuntu
error: Error calling 'lxd forkstart ubuntu /var/lib/lxd/containers /var/log/lxd/ubuntu/lxc.conf': err='exit status 1'
Try lxc info --show-log ubuntu for more info
1 fenris@x240:~⟫ lxc info --show-log
error: Get http://unix.socket/1.0: dial unix /var/lib/lxd/unix.socket: connect: permission denied

I think your LXD daemon is not running. try to start LXD service using
sudo service lxd  restart
Mahesh

sudo chown root:lxd /var/lib/lxd/unix.socket
That should fix it, assuming that you already made sure that you are indeed in the right group and ran "newgrp lxd" or restarted your session.
There is some kind of systemd race occasionally causing wrong ownership of the socket, it seems to be very rare and only happen on initial installation...

+1 just seen this on 16.04 i386 installed from release ISO, stopping lxd and restarting lxd.socket as above worked for me. Did not need to manually set with chown.

Confirmed, still happening, the following still works around it:
sudo systemctl stop lxd.socket
sudo systemctl start lxd.socket
or alternately the chown.
It's happened every time I tried it tonight, very repeatable.
It happens quite repeatably here.  I was able to use lxd the other day, but today
every time I install it, the socket is owned by root with group root rather than lxd.
It happens during postinst during the call to deb-systemd-helper enable lxd.service.
dank@server:~$ id
uid=1000(dank) gid=131(lxd) groups=131(lxd),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),113(lpadmin),128(sambashare),130(docker),1000(dank)
dank@server:~$ ls -l /var/lib/lxd/unix.socket
ls: cannot access '/var/lib/lxd/unix.socket': No such file or directory
dank@server:~$ apt-cache policy lxd
lxd:
  Installed: (none)
  Candidate: 2.0.0-0ubuntu4
  Version table:
     2.0.0-0ubuntu4 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
dank@server:~$ sudo apt-get install lxd
...
dank@server:~$ ls -l /var/lib/lxd/unix.socket
srw-rw---- 1 root root 0 Apr 29 20:28 /var/lib/lxd/unix.socket

Filed https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1577001

Ubuntu 16.04.2 LTS
lxd                                 2.0.9
lxd-client                      2.0.9
I get this when doing sudo lxd init
error: Unable to talk to LXD: Get http://unix.socket/1.0: dial unix /var/lib/lxd/unix.socket: connect: connection refused
/var/lib/lxd looks like this
drwx--x--x 2 root lxd    6 Mar 15 15:43 devices
drwxr-xr-x 2 root lxd    6 Mar 15 15:44 devlxd
drwx------ 2 root lxd    6 Mar 15 15:43 images
-rw-r--r-- 1 root lxd  41K Mar 15 15:44 lxd.db
drwx------ 2 root lxd    6 Mar 15 15:43 security
-rw-r--r-- 1 root lxd 1.9K Mar 15 15:43 server.crt
-rw------- 1 root lxd 3.2K Mar 15 15:43 server.key
drwx--x--x 2 root lxd    6 Mar 15 15:43 shmounts
drwx------ 2 root lxd    6 Mar 15 15:43 snapshots
srw-rw---- 1 root lxd    0 Mar 15 16:01 unix.socket
-rw------- 1 root lxd 2.0G Mar 15 16:01 zfs.img

i'm facing this issue:
$ lxc network get lxdbr0 ipv4.address
Error: Get http://unix.socket/1.0: dial unix /var/lib/lxd/unix.socket: connect: permission denied
even on this:
$ lxc list
Error: Get http://unix.socket/1.0: dial unix /var/lib/lxd/unix.socket: connect: permission denied
can anyone help me out??

@Gemstone123 sounds like you're either not in in the lxd group and so don't have access to it.

I've found on 18.04 that I have to reboot (not just log out and back in) after installing lxd and adding my user to the lxd group.
Gemstone, verify that the output of 'id' shows your session knows you're in the lxd group.

@stgraber  oh i see, but i added myself to users. don't know why facing this issue then.

@dankegel  the output of "id" is:
uid=1000(munir) gid=1000(munir) groups=1000(munir),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),116(lpadmin),126(sambashare),999(lxd)

You probably want to post a question at https://discuss.linuxcontainers.org/
Be sure to give your operating system and lxd versions.

Just want to report back, that I just ran into this on a fresh 18.04 (VPS) with the 3.21 snap. Rebooting made no difference.
With Ubuntu packages, I expect them to "just work" upon installation, without requiring even small manual tasks like user/group changes.

The snap does not and will not add user to the group, so that's expected behavior.
Any user we add to that group effectively gets root access on the system, so we're not going to start adding random users on installation :)
For the deb, it was a bit different as it was Ubuntu-specific and so could assume the behavior of the sudoers group for example. The snap is installed by many distros and we don't want to accidentally create a giant security issue.

I see, that's fair enough.


Link to GitHub help pages for terms in README

The README stresses that this repo is intended for forks, but GitHub newbies
may have no idea what these are about, so we link to the official docs.
We provide even more links to GitHub help for newbies: branch management, issues, milestones, labels, and wikis.

Thanks for helping improve the README. Overrall it looks great.

:+1:


implement scalar codec

There is not a codec yet for the scalar type descriptor. The driver should handle descriptor type 3.

Not sure I understand what this issue is about.

Not sure I understand what this issue is about.

Not sure I understand what this issue is about.
I updated the description.

Not sure I understand what this issue is about.
I updated the description.

There is not a codec yet for the scalar type descriptor. The driver should handle descriptor type 3.

The link links this very issue. You probably wanted to link the docs?

I updated the description.

Still not clear. Perhaps you meant "add support for custom scalars", e.g. when I have a type like scalar type my_int extending int64, right?

There is not a codec yet for the scalar type descriptor. The driver should handle descriptor type 3.

The link links this very issue. You probably wanted to link the docs?

I updated the description.

Still not clear. Perhaps you meant "add support for custom scalars", e.g. when I have a type like scalar type my_int extending int64, right?

The link links this very issue.

Oops... :facepalm:

You probably wanted to link the docs?

Correct. Updated.

The link links this very issue.

Oops... :facepalm:

You probably wanted to link the docs?

Correct. Updated.


PSR

Considering Google is quite an influencial body, you guys really should be following coding standards.
Please see this guide...
http://www.php-fig.org/

:+1: yeah it would be great, but I think all PHP libraries of google follow a different standard.


🪲[Bug]: Pictures in homepage

Describe the bug
The images in the homepage are not loading
To Reproduce
Steps to reproduce the behavior:

Go to 'landing page.'
Scroll down to second and third sections
See error

Expected behavior
The pictures should load up as soon as the website loads or if the img size is large, it can be made smaller using online tools.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: windows
Browser chrome
Version [20]

Smartphone (please complete the following information):

Device: [Realme]
OS: [e.g. iOS8.1]
Browser [chrome ]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

@Mehak-Mattoo Those images are a stopgap anyway, images on the website would mostly be inputs by the user which will be hosted on a S3 bucket, so no need for coming up with a solution for this, as it is just an issue where the static files(images) are not being served by a CDN

@cb7chaitanya  hey, i would like to work on this project can you assign me some backend and frontend tasks like contact us, adoption form or login, signup forms if required. Thanks!

@Sarthak0085 You can raise new issues for the things you feel you can work on comment on existing issues if they have been abandoned, will assign you accordingly
Other than that, you can ping us on discord


Use RDMA for P2P queries within the system

Currently, p2p_send and p2p_query use TCP connections because they happen outside of established RDMC groups, and could be sent by a process that isn't even part of the top-level Derecho group. However, for many of our proposed use cases for p2p_query, the querying process is another node on the same RDMA network as the Derecho group, and might even be a Derecho group member that's simply querying a subgroup/shard it's not a member of. We should use RDMA for P2P queries whenever possible, especially since the reply from a P2P query might be a large amount of ReplicatedObject state.

RDMA for P2P connections is now available in master. On the p2p_to_rdma branch, average latency for one P2P request is about 8-10 microseconds, which is about the time it takes to make two RDMA operations. This makes sense as it includes time to serialize, deserialize, send a P2P request, get back a P2P reply etc.
The design is similar to that for SST multicast. There's a window of slots that contain these requests and replies. Also, the replies from the ordered sends/receive use these connections.


Adds link to CHAOSS, changes heading

This adds a link to CHAOSS homepage for context, and changes Sponsors to "Contributing Partners."
cc @Ruth-ikegah

I forgot to add some changes so I'm going to close this PR without merge


Add endpoint to delete direct messages #657

Make sure you've reviewed the checklist. (DO NOT REMOVE)
🚨Please review the guidelines for contributing to this repository.

[x] Make sure you are requesting to pull a topic/feature/bugfix branch (right side). Don't request your master!
[x] Make sure you are making a pull request against the dev branch. Also you should start your branch off dev branch.
[x] Check you have included issue number in your pr (e.g #23).
[x] Check you have added tests that prove your fix is effective or that your feature works.
[x] Check your code additions will fail neither code linting checks nor unit test.
[x] Check you added any notable changes to the CHANGELOG.md file.

Description
Add endpoint to delete direct messages, see #657
💔Thank you!

@Hasnayeen thanks for the hand :+1:

@RageZBla excellent work :clap: if you want to get more involved with the project you can join our discord server here


scoin-js - pay2tr and ScriptTree

We should not merge this until it is more usable. Figured I would open the PR now though so that it will be easier to track the WIP.
Currently, this PR lets a javascirpt person put <script<EMAIL_ADDRESS>in their html file and they can interact with a few scoin functions from javascript (with more on the way!).
For example:

// two trivial hex-encoded bitcoin scripts
// script #1: 0x51 (OP_1)
// script #2: 0x52 (OP_2)

const scripts = ['51','52']

// build a taproot-aware merkle tree from these scripts
const tree = Scoin.ScriptTree.naiveFromList(scripts)

// calculate the merkle root
const merkleRoot = tree.hash

// an unspendable public key (thereby disabling key path spending)
const internalPubKey = '50929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac0'

// use the merkleRoot and the unspendable public key
// to create a taproot output with key path spend disabled
const scriptpubkey = Scoin.Script.pay2tr(internalPubKey,merkleRoot)

continuing from example in description above, the following now works:
// get the merkle proofs for each script in the tree
const proofs = tree.merkleProofs

// verify the merkle proof for the first script
tree.verifyProof(script[0], proofs[0].proof)

I will stop on the javascript wrapper thing for now until when/if some javascript person (@supertestnet ???) actually wants to use it. Then we can use this thread to figure out the bare minimum remaining functions necessary to complete the interop API, for constructing and spending taproot/tapscript outputs.
For example, here are some functions that either need to be exposed from scoin into javascript land or the caller needs to have ready access to similar functions in other javascript libraries:

encodeWitnessAddress - turn the (hex) of the taproot output into a bech32m address for easy funding.
Transaction.hashForSigning(tx) - to get a message to schnorr sign
....

If there is a goal of being able to do Musig2 from javascript to spend a pay2tr output, #25 is an outline/test of what we would need to expose to javascript to do that.

Closing until when/if there is more demand for this. At least the scaffolding is in place already now.

I think it was very good that we started this.


Best way to validate $driver string in a request?

Short version: is there a recommended method or function for determining if a $driver string specified in a request is valid?
Longer version: I have a service sending webhooks that wants to get a 200 OK back from a GET request to the webhook endpoint before it will activate the webhook. It doesn't use the "challenge" approach so I don't think the handshake method is going to work here. I'm adding a simple method in the controller that will be reached by a GET route, but I'd like to return 404 when the driver specified isn't valid, as a basic check against typos or an invalid driver being otherwise specified.
It looks like right now this package just relies on the illuminate/support package to throw an exception when the driver doesn't exist, but maybe there's a way to check that more intentionally? Something like Receiver::driverExists($driver);?
Thanks for any suggestions you can offer.

Hey sorry.
I think I've just relied on route parameter validation in the past: https://laravel.com/docs/10.x/routing#parameters-regular-expression-constraints


Can't rsync

Hello, I was able to mount and auto mount my Gdrive. In fact, I can perform any normal system operation. However I scheduled an rsync backup but it seems to be a problem that I have no idea how to diagnose.
I have a folder with 50GB of files which I just clone to GDrive. The rsync is scheduled for every 1st of each month. Every time it start, it send all the files over again. My drive reached 777GB.
Here is the rsync command:
rsync -avzh -P /share/HD/fahren/Administrativo/ /share/GDrive/Backup/fahren/Administrativo/

rsync output is normal, but I can see it pushes every single file every time.

There's a couple of caveats in rsync use with google-drive-ocamlfuse, please take a look at the related wiki page:
https://github.com/astrada/google-drive-ocamlfuse/wiki/rsync
Long story short: in my case I ended up using --size-only to speed up things and avoid reuploading files (but I'm aware it's not an optimal solution) and --inplace to avoid mimeType issues.

Nice! What about delta (-W) which is mentioned?

What about delta (-W) which is mentioned?

It's faster. From the rsync manpage:
      -W, --whole-file
              This option disables  rsync’s  delta-transfer  algorithm,  which
              causes all transferred files to be sent whole.  The transfer may
              be faster if this option is used when the bandwidth between  the
              source  and destination machines is higher than the bandwidth to
              disk  (especially  when  the  "disk"  is  actually  a  networked
              filesystem).

(see also: https://github.com/astrada/google-drive-ocamlfuse/issues/48#issuecomment-34549818)

@brancomat thank. That was my question. How can a "copy entire file" be faster. Reading again is says:
if this option is used when the bandwidth between  the source  and destination machines is higher than the bandwidth to disk

Is there a easy way to erase everything to start over? Google is putting inside trash and a new folder called storage.

Unfortunately a detailed explaination is out of my league.
However, if I understand correctly, since google drive APIs don't allow sequential file access or uploads of single chunks (there's the Google Drive v3 API resumable upload feature but it's useless in this context) not using -W forces the client to retrieve informations about the existing file (i.e.: download the whole file in cache to analyze the differences), then it uploads in its entirety anyway.
(but I might be wildly wrong, pinging @astrada on this)

@brancomat you're correct! 👍
(Resumable upload is useful only when the upload is interrupted, then the application can upload only the bytes the server didn't receive.)

Is  the hidden .Trash/ folder Tu é real Drive Trash? I'm erasing everything to start over.


Fixed usage instructions in readme

Thank you for submitting this pull request, however I do not see a valid CLA on file for you. Before we can merge this request please visit https://yahoocla.herokuapp.com/ and agree to the terms. Thanks! :smile:

CLA is valid!

This seems much simpler.

Looks like static assets are not serving correctly for the todo example at least.

Closing for now since it breaks CSS assets.


Full calendar

Add in README: https://fullcalendar.io/

Why add this? It has nothing to do with shadcn

Oh sorry wrong repo my bad


Updating index.js

I've created a navbar as a class and am inserting my code here. I don't know if its good practice to have classes in the index file or not. My code also adds a title to the website and imports a stylesheet.

I dont know why the build is failing - when I run the code on my device it works fine

Hey there Aman! The reason that the build and deploy are failing is because you made a PR for each file you modified in the commit rather than one PR for it all. If you'd like, I can consolidate your commits into a single branch on your behalf so you can make a PR from there.

Hey there Aman! The reason that the build and deploy are failing is because you made a PR for each file you modified in the commit rather than one PR for it all. If you'd like, I can consolidate your commits into a single branch on your behalf so you can make a PR from there.

Yes please, that would be great! Also, Maya told me that it would be better to create a Navbar.js file to store the navbar component in. What do you recommend?

I've consolidated your commits to add-nav for the time being. You can check this branch out on your local machine with git checkout add-nav.

Also, Maya told me that it would be better to create a Navbar.js file to store the navbar component in.

Definitely! This is good practice. Your file would look something like this:
import React from 'react';

export default function Navbar(props) { /* ... */ }

Then you'd include it in App.js, not index.js with something like:
import Navbar from '/.../Navbar/Navbar';

If you need a walkthrough on setting up your local development environment, feel free to let me know on Slack and we can set up a Zoom call :+1:


[Accessibility] Input - wrapped error message within live region

Description
Wrapped the error message within a parent with attribute aria-live="assertive" so that it gets announced by the screen reader
Github issue

https://github.com/codegouvfr/react-dsfr/issues/311

Hello, thank you for this Pull Request!
I noticed that the documentation includes an example using aria-live="assertive":

However, in the playground (which is usually more up to date), I see it uses aria-live="polite":

Link: Playground Example
In some accessibility reports I've received, it's recommended to use aria-live="polite", especially when multiple errors could appear on the same page.
What are your thoughts on this? Would it make sense to align with the polite option here?

Hey @ddecrulle thanks for your reply,
I'm fine with your suggestion as long as the playground is the most up-to-date with the latest recommendations.
In the meantime, I also noticed that the Select component could benefit from a similar fix. Would you be okay with me including it in this PR?

Hey @ddecrulle thanks for your reply,
I'm fine with your suggestion as long as the playground is the most up-to-date with the latest recommendations.
In the meantime, I also noticed that the Select component could benefit from a similar fix. Would you be okay with me including it in this PR?

Yes of course !


Does Moya/Alamofire Support Multiple Base URL's?

I have an IOS app that needs to access a user's home-based server.  If the user is on their home network, the request should happen on their home network (e.g. 192.168.1.x.).  However, if the user is remote, the request should be sent to their static DNS/IP.  Some users use a VPN so I really need my app to connect to the primary and if it fails then fail over to the secondary.
The user enters both local/remote settings inside my app.  I was hoping that Moya/Alamofire could be configured to have a primary and secondary base URL so that if the primary fails the secondary is invoked.

Hey @camcoding, take a look at #980. @scottrhoyt gave some ideas on how to change the baseURL dynamically

Thank you @pedrovereza.  That #980 does resemble something similar to what I'm trying to accomplish but it's only a portion of what I'm after - but I'll work through it and see if I can come up with a decent solution.
Ideally I'd like to give Moya 2 URL's - one first one would be primary and the other secondary/backup.  If the primary call fails, the secondary would be executed.  These URL's point to the exact same server so everything on the backend is identical - the URL's differ if the user is local/home versus remote.

@camcoding My first impression was that you could use the basic logic of #980 to achieve what you need, because in #980 the steps are:
1 - Make a request to a baseURL
2 - Extract the next baseURL from the response of the first call
3 - Use the extracted url as baseURL for the second request
And this could go on for several requests.
For your scenario, I'm assuming you can first try the local home address (which should fail when the user is remote):
1 - Make a request to baseURL using the local address
2 - If the request fail, switch baseURL to the remote address and make the request again
Once you know where the user is (home vs remote), you could probably store this information in your app and avoid making two requests every time if they are remote, and just make it once a while to check if they changed location.
Does that make sense in your case?

Yep - that's exactly what I'm after - just trying to figure out how to do that Moya-style :-)
There are many areas of my code where I invoke network calls so I'm trying to figure out a way to abstract the logic away from the code calling the API and have the RxMoyaProvider execute the primary/secondary call "behind the scenes".   For instance, here's a typical call:
        MyAPI.sharedInstance.provider.request(MyProvider.Programs)             .subscribe(onNext: { (response) -> Void in                 self.parsePrograms(response: response)                 //   print(response)             }, onError: { (error) -> Void in                 print(error)             }).addDisposableTo(bag)
I suppose I could capture the error, alter the baseURL of the provider, and re-execute the request but I'd have to copy/paste that logic all over the place.

@camcoding Can you  write a CustomProvider that subclasses RxMoyaProvider  and implement the logic in CustomProvider? 🤔
I'm not too familiar with RxSwift, but if this approach is not too complicated (or impossible), you'd get the logic nicely wrapped in a single place :wink:

In #978 you can see some ideas to have dynamic urls... I go with the subtarget protocol and the dynamic provider... Maybe we can integrate that functionality in 9.0.0... WDYT?

Yup, #978 should have a solution, if you're still having issues @camcoding, reopen this and we'd be happy to help 👍


Infer uses up a lot of memory and becomes stuck

Hello!
While running infer on a Objective C project it uses a huge amount of memory and as a result (I assume) becomes stuck.
Here's the memory usage for the project:

I tried to run the infer with the flags infer --print-logs --debug to find if there was any particular file that was causing this behavior. Unfortunately, I could not understand from the ouput where it was getting stuck.
If you need any extra information, @priitlatt or @omelkova could provide it

Is this not an issue anymore?

see #659


Mixed Content in the Minimage README on the Hugo website

Hello @d-kusk and Happy New Year!
I recently reviewed the deploy log of the Hugo Themes website and it seems in line 3 of your theme's README you have entered the following insecure URL to an external image: http://img.shields.io/badge/license-MIT-blue.svg?style=flat
This image is throwing a Mixed Content browser warning on the Hugo website since it is served under HTTPS.
Can you please change the above insecure img URL to https://img.shields.io/badge/license-MIT-blue.svg?style=flat so that the warning is fixed?
Once you do this please let me know.
Thanks

Hello @onedrawingperday  and Happy New Year!
Thank you for me contact.
I tried changing the URL, but is this OK?
Also, should I comment on this Issue when this is over?


Update NCDU description: it has been rewritten to Zig

Hello,
I noticed ncdu is still described as developed in C whereas it has been rewritten in Zig. On the ncdu website the stable version is the Zig one, and the C version is described as the LTS one (still maintained but not the main version anymore).
Annoucement here: https://dev.yorhel.nl/doc/ncdu2

Thank you. Already updated in https://github.com/dundee/gdu/commit/271ee33b8c663fff1f3721d7e5ccce1d6d26e710


Portal changes

Updated info and pics to reflect portal changes

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

We've moved the commit to the private repo (the update will be merged and published from there). We'll close this pull request. Thanks.


Load balancing problem in Listener::dispatchPeer

My Pistache::Http::Endpoint is configured with 2 threads. So I expect to be able to handle 2 requests at the same time (everytime).
But sometimes, when a long request is being processed by one thread, the other request is blocked, waiting for the first request to be finished (the second thread is not used)
When I look at the code of dispatchPeer, I think the problem comes from the ways the handler is chosen. It is just the fd number % the number of thread.
The problem is that this idx can be the same for 2 consecutive requests (21 % 2 = 125 % 2 for example)
void
Listener::dispatchPeer(const std::shared_ptr<Peer>& peer) {
    auto handlers = reactor_.handlers(transportKey);
    auto idx = peer->fd() % handlers.size();
    auto transport = std::static_pointer_cast<Transport>(handlers[idx]);

    transport->handleNewPeer(peer);

}

Am I missing something? Is there a workaround?

Good point.  That is a terrible algorithm.  Pistache should do a balanced load assignment (several algorithms come to mind), but then cache that assignment in a O(1) hash table (mapping fd -> handler index).

Thanks for your feedback. I was going crazy and not sure if was doing something wrong with pistache or my other libraries.
FYI, in the nominal use of pistache (my request returns an hardcoded json after a fake timeout), I have no problem, the fd number modulo 2 are always different (fd_of_request2 = fd_of_request1 + 1)
But in my real use case, my request handler creates a zmq socket and bad things happen (fd_of _request2 = fd_of_request1 + 6 for example).
If you can think of a quick and dirty implementation of your load balancing solution, I'll be happy to test it and confirm the problem.


[docs] Make Themed example run by default on Codesandbox

Just saw 2 more small issues on codesandbox, reporting here:

Icon at the bottom is left-aligned here:

Subheader has a slightly darker background color than the sidebar


fix: repetitive and incorrect log lines on witness verify #317

What this PR does / why we need it
some cleanup around https://github.com/in-toto/go-witness/pull/317.

It seemed as though we might be adding the memory source even if we don't specify an attestation-file-path so I have cleaned it up a bit.
improved the general logging after verify.

testing instructions for @Xopek from https://github.com/in-toto/go-witness/issues/316:

clone and checkout this branch and the corresponding go-witness branch
add a replace line to go.mod in this repository to point to your local go-witness repository:

module github.com/in-toto/witness

go 1.22.0

toolchain go1.22.2

++ replace github.com/in-toto/go-witness => <path/to/local/go-witness>

run go mod tidy
test with go run . run and go run . verify in the root of this branch.

Can confirm, that this fixed issue https://github.com/in-toto/go-witness/issues/316.
However for some reason in order for "verify" command to work, i had to regenerate attestations, without it verify failed with error:
ERROR   Verification failed
ERROR   Evidence:
ERROR   Step: build
ERROR   verification failure: no collections found
ERROR   failed to verify policy: policy verification failed


change api versions for dreamhouse LCs and update LTS test

@wadewegner this pull request is related to the LTS issue you were seeing.


FOLDERS WENT MISSING!

Please see if you can find any logged output that could help us find the source of the issue:
run code --verbose from the command line and attach the output
in Code select Help | Toggle Developer Tools and select the Console
attach any output you see in the Console you can find
Thanks!

I have found the root cause of the issue. I have installed a node module called cpx and using it to copy files from the build folder to docs folder after building the app. This module is holding a lock onto the docs folder. So, I will close the issue now.

Please close this, and #129819 if that was also created by you.


Does TokenCredential.getToken() handles caching?

https://github.com/Azure/azure-sdk-for-js/blob/e45c07d2f34f43734bb49a91d851626e5e69f8df/sdk/identity/identity/TOKEN_CACHING.md suggest that the @azure/identity library supports caching by default (and the in memory cache specifically cannot be disabled)
However when viewing the docs for TokenCredential at https://learn.microsoft.com/en-us/javascript/api/@azure/core-auth/tokencredential?view=azure-node-latest or https://github.com/Azure/azure-sdk-for-js/blob/e45c07d2f34f43734bb49a91d851626e5e69f8df/sdk/core/core-auth/src/tokenCredential.ts#L14-L15, the documentation explicitly says

...you must also handle token caching...

Is one of these statements wrong, or is there some more nuance at play?

@afscrome I can totally see why there is some confusion here. Let me try to explain a bit more in depth.
TokenCredential is really just an interface that we standardize on so that client libraries don't have to reason about specific authorization concerns. To understand how caching and refreshing work, we have to look into where this interface is implemented and used.
@azure/identity provides a number of credential types that implement TokenCredential such as ClientSecretCredential:
https://github.com/Azure/azure-sdk-for-js/blob/e45c07d2f34f43734bb49a91d851626e5e69f8df/sdk/identity/identity/src/credentials/clientSecretCredential.ts#L76
ClientSecretCredential in turn delegates most of the heavy lifting to @azure/msal-node which manages its own in-memory cache. Other credentials (such as ClientSecretCredential) support additional token persistence using the @azure/identity-cache-persistence package.
In addition to what the implementer of the TokenCredential supports, we also need our SDKs to be able to manage holding onto a retrieved access token and refreshing it before it expires. The logic that supports these operations lives inside the bearerTokenAuthenticationPolicy:
https://github.com/Azure/azure-sdk-for-js/blob/e45c07d2f34f43734bb49a91d851626e5e69f8df/sdk/core/core-rest-pipeline/src/policies/bearerTokenAuthenticationPolicy.ts#L137
This is an HTTP pipeline policy that handles signing outgoing requests from the client library. Internally it uses a helper called a TokenCycler to manage refreshing the token when needed: https://github.com/Azure/azure-sdk-for-js/blob/e45c07d2f34f43734bb49a91d851626e5e69f8df/sdk/core/core-rest-pipeline/src/util/tokenCycler.ts#L107
There are additional scenarios that add on to this flow such as Continuous Access Evaluation, but I think you can see the general shape of things. TokenCredential on its own is just an object with a getToken method, but the auth policy handles calling getToken when necessary and @azure/identity and the underlying MSAL libraries handle retrieving a new token.
Does that help clear things up?

Honestly, I think that explanation has only confused things for me further.  Right now I'm using these TokenCredentials outside of the azure sdk, so I don't think core-rest-pipeline is relevant to this scenario.  Like the SDKs, I'm using TokenCredentials so I can abstract my code away from having to worry about the mechanics of getting an access token (app registration, workload identity, managed identity etc.)
What I'm trying to determine is whether I have to implement my own cache on top of tokenCredential.getCredential to avoid each call making dedicated network calls?  Based on https://github.com/Azure/azure-sdk-for-js/blob/e45c07d2f34f43734bb49a91d851626e5e69f8df/sdk/identity/identity/TOKEN_CACHING.md#credentials-supporting-token-caching, my reading was that it seems like all the built in TokenCredential implementations support caching out of box.  (The only three that don't are developer credentials, but those in turn shell out to executables on the development machine which presumably have their own caches, so they're effectively still cached.)

Ah, okay so you are getting back an AccessToken and then using it to sign a request? Are you storing it at all or just calling getToken again for every request?
One easy way to test if it's caching or not would be to compare the AccessToken.token value between two subsequent calls and check that they are the same. If they're not, then the credential is fetching a new one.


Create 09.29 SearchView.md

Description 📜
Fixes #5860

Type of change 📝

[x] Documentation (Content Creation in the form of codes or tutorials)

Domain of Contribution 📊

[x] Android Dev (Kotlin)

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

Screenshots / Gif (Optional) 📸

@rahulsain Kindly Review!
Thanks in Advance

Hey @rahulsain
Kindly review this PR.
Thanks

@rahulsain Issue Solved, that was added mistakenly.
Kindly check now


[Feature][3.4][WIP] Allow custom sorting for crud columns

After having the same problem as in #1112 this is my first take on it.
Basically, in a similar way to the searchLogic option for a crud column this PR should add the ability to do:
$this->crud->addColumn([
    'name' => "country_id",
    'label' => "Nationality",
    'type' => "...",
    'function_name' => '...',
    'orderLogic' => function ($query, $column, $column_direction) {
        return $query->join('countries', 'countries.id', '=', 'customers.country_id')
            ->orderBy('countries.name', $column_direction);
    }
]);

This will allow for sorting the column by a fields other than id.

Hi, any plans for merging this feature?
Any suggestion on how to customize the query for a specific index page in the meantime?
Thanks

Hi guys,
I was trying to merge this in the 3.4 launch but after trying it out it looks like there are a few more quirks to figure out. Since it's a non-breaking change, I'm going to launch 3.4 as-is and push this in 1-2 weeks, after I can spend a little more time on it.
I hope you understand, it's difficult to push new features these days, since once we launch them we can't change the API without breaking people's apps.
Will be back in 2 weeks on this, and will definitely be merging it. It looks like a great feature to me.
Thanks, cheers!
/remind me to look at this in 14 days

This worked for me on 3.4 Thanks @ran81 !


[nightly] generate types against bigcommerce/api-specs@1d7216c

Types generated via scheduled GitHub Actions job against bigcommerce/api-specs@1d7216c

Included in #48


【feature-umd bundle】 Support import instead of changing global objects

This project is very good, I like it too, thank you for your contribution.
I think that instead of changing the global environment, it is better to provide a bundle in UMD format, so that some projects that do not want to change the global environment can be introduced according to their own needs.

I hope you can provide a version that supports the use of ES6 import, which is more flexible.


Sorted plugin points

Task/Issue URL: https://app.asana.com/0/488551667048375/1206484244032077/f
Description
See asana task and API proposal
Steps to test this PR
Smoke test the app, this is backwards compatible change

develop

#4155   👈

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @aitorvs and the rest of your teammates on  Graphite


onKeyDown function is not triggered in Month and Year Pickers.

Describe the bug
onKeyDown function is not triggered in Month and Year Pickers. It is triggered only in a day selection view.
Expected behavior
Function should be triggered in any view.
Desktop (please complete the following information):

OS: Windows 11
Browser Chrome
Version 120.0.6099.225

Hi @martijnrusschen , Sorry! I wrongly mentioned this ticket in the PR instead of #4482.  This issue is still open only, I'll raise a PR for it by tomorrow.


unpin flake8 in precheck

Followup from https://github.com/Azure/azure-cli/pull/7695 that got merged before expected.

@tjprescott fair point. thanks for the review.


automatic network interface detection

On Linux under /sys/class/net/<iface>/ there exists a directory called wireless if this interface is wifi capable.
Maybe you can reduce the number of available network interfaces to only those who are wireless, or in case of only one such interface, entirely skip the selection.
Only if run on linux of course.

I have to vote against this idea because it eliminates the existing ability to transfer from a wired computer to your phone.

It could be implemented as such, that if no wireless device is detected, the behavior is unchanged and still shows the full list. Also you could only show interfaces whos link-state is UP, meaning they are connected.
This way wired computers can still be used for this as long as they dont have an active wireless connection to another network.
You can get the link state of a network interface via /sys/class/net/<iface>/operstate.

I do agree with the part that down interfaces should be filtered out of the proposed list. This info is available cross-platform through the golang net library.

Hi @drevilt, the very first implementation of this tool was relying on a library that parses the directory you point out, but it would not work on other platforms, so I gave up that idea and chose to let the users choose. All in all, it's just a one-time decision for users, it won't affect the UX too much.
I already merged a PR from @tssva that filters out down interfaces as per your proposal, that's a very good idea.
However, filtering out down interfaces and other interfaces that are known not to be suitable for this tool (i.e.: bridge, virtual ethernet, loopback, etc) in some cases would narrow the set of available interfaces to 1, so in that cases we might want to skip the dialog and assume that one interface is good. The rest of the program will take care of reporting errors if it'll turn out not to be good.
Does it make sense?


Branding guidance

Q
A

content fix?
no

New article?
yes

Related issues?
n/a

What's in this Pull Request?
Branding scenario guidance

Merging these in for the final polishing and grouping for the scenario guidance page etc.


CASSANDRA-19567 Reduce heap usage by metrics

Thanks for sending a pull request! Here are some tips if you're new here:

Ensure you have added or run the appropriate tests for your PR.
Be sure to keep the PR description updated to reflect all changes.
Write your PR title to summarize what this PR proposes.
If possible, provide a concise example to reproduce the issue for a faster review.
Read our contributor guidelines
If you're making a documentation change, see our guide to documentation contribution

Commit messages should follow the following format:
<One sentence description, usually Jira title or CHANGES.txt summary>

<Optional lengthier description (context on patch)>

patch by <Authors>; reviewed by <Reviewers> for CASSANDRA-#####

Co-authored-by: Name1 <email1>
Co-authored-by: Name2 <email2>

The Cassandra Jira

Committed:
https://github.com/apache/cassandra/commit/8619010cdca8bce471754e4fbeb861f036535007


Fix NFS transport stats v1.0 parsing

Fixes https://github.com/prometheus/node_exporter/issues/571.

/cc @grobie

🌮 🎉


Nexus: Fix link not being attached to a workflow started via a Handler function

Not testing this since server 1.25.0 didn't get support for links.

I understand if we can't write an end to end test for this, but what is stopping us from unit testing this change?

I understand if we can't write an end to end test for this, but what is stopping us from unit testing this change?

We'll add integration tests soon. server v1.25.1 already supports links so it's just a matter of upgrading the server version in the CLI.


JRE 7 dependency introduced since v1.15

Since classloader-leak-prevention version 1.15, there was introduced a JRE 1.7 dependency.
Following constructor was only introduced since 1.7 and this will give an error during startup when using an older JRE.
final Constructor constructor =
RuntimeException.class.getDeclaredConstructor(String.class, Throwable.class, Boolean.TYPE, Boolean.TYPE);
https://docs.oracle.com/javase/7/docs/api/java/lang/RuntimeException.html#RuntimeException(java.lang.String, java.lang.Throwable, boolean, boolean)
In the pom files it still says:
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
I would suggest to keep the minimum required version to 1.6 since Oracle still supports JAVA 1.6 with their "Long Term Support" program.

Hi @kimbamps!
Yes, in ClassLoaderLeakPreventor line 558 I try to invoke this constructor added in Java 1.7. However, if that fails, the error should be caught and logged as a warning. This means one particular leak mechanism (#36) won't be put in place, but other than that, there should be no problems AFAI can see. I will update the logged warning message to reflect the Java 1.7 requirement.
If you want to avoid the warning altogether, just override constructRuntimeExceptionWithoutStackTrace() to return null.


control the dtype of returned indices in cupy.unique() and ability to flush temporary cached memory

Description
The dtype of returned indices in cupy.unique(..., return_index=True, return_inverse=True) appear to be always int64, even if the input array is int32 and its size is within the range of int32 limit.
Example below, where grains would be an int32 array of grain labels in a flattened image of size 8192**2:
unic, iunic, iback = cp.unique(grains, return_index=True, return_inverse=True)

I would expect the dtype of iunic and iback here to remain int32, while they are returned as int64.
This leads to a OutOfMemoryError when dealing with (even moderately) large arrays.
Would if be possible to add a dtype parameter in the cupy.unique() function ?
Now, there is another problem with the ability to flush (afterwards) the memory that was cached during the internal business of the cp.unique() function. Not sure if this is a bug or if this is due to my limited understanding of cupy.
Namely, after a call to mempool.free_all_blocks() following the above cp.unique() operation, there is still a lot of remaining free_bytes on top of the used_bytes corresponding to the input and returned arrays.
Complete test example here:
import cupy as cp
DTYPEi = cp.int32
mempool = cp.get_default_memory_pool()

ngrains = 64
npix = 1024**2
grains = cp.repeat(cp.arange(ngrains, dtype=DTYPEi), npix)
cp.random.shuffle(grains)

mempool.free_all_blocks()
print(mempool.used_bytes()/1024**2, mempool.total_bytes()/1024**2, mempool.free_bytes()/1024**2)
# returns "256.0 256.0 0.0"

unic, iunic, iback = cp.unique(grains, return_index=True, return_inverse=True)
print(iback.dtype)
# returns "int64", I would expect it to remain "int32"
print(mempool.used_bytes()/1024**2, mempool.total_bytes()/1024**2, mempool.free_bytes()/1024**2)
# returns "768.0009765625 3095.27783203125 2327.27685546875"

mempool.free_all_blocks()
print(mempool.used_bytes()/1024**2, mempool.total_bytes()/1024**2, mempool.free_bytes()/1024**2)
# returns "768.0009765625 1559.27783203125<PHONE_NUMBER>6875"

So, there are still 791 MiB cached somewhere in GPU the memory on top of the ~768 MiB of the input and returned arrays.
I would have expected the call to free_all_blocks() to get rid of it...
Additional Information
No response

Thanks for the feedback, @sdancette! The discussion of the default indexing dtype in CuPy is also just ongoing in #8472.
As for free_all_blocks,

Namely, after a call to mempool.free_all_blocks() following the above cp.unique() operation, there is still a lot of remaining free_bytes on top of the used_bytes corresponding to the input and returned arrays.

When a large memory allocation happens followed by a small allocation, the memory allocated for the large one may not be freed until the small one is freed, because the small one is allocated from the memory block allocated for the large one:
https://docs.cupy.dev/en/stable/reference/generated/cupy.cuda.MemoryPool.html#cupy.cuda.MemoryPool.free_all_blocks

A memory pool may split a free block for space efficiency. A split block is not released until all its parts are merged back into one even if free_all_blocks() is called.

Closing, feel free to open another case if you still need help.


problem with color scheme

comments are not visible at all. They are grey. Grey color doesn't look clear on black background

Also problem reading labels in matplotlib charts. I can't see any labels they are also black

How things look with white default scheme

Comments are grey in the material darker original theme, which is why they are grey here too. I agree that they are a little too hard to read, which is why I lightened the grey for more contrast in version 0.3.6 (in response to issue #5). For some reason, however, the changes didn't take and they're back to what they were before. I just changed them again for version 0.3.11 (as well as those for the active in and out cell prompts), so hopefully they're easier to see now. I'm hesitant to make them any lighter because I don't like the comments to distract me from the code. Let me know if you have any further feedback.
As for the matplotlib labels, I have the same problem as you. The issue is not with the theme, however, but with matplotlib. You have two alternatives:

Use a dark theme for matplotlib by adding this at the top of your notebook:

plt.style.use('dark_background')
I'm not a big fan of the results, and since I don't have the desire to create a matplotlib theme myself, I use the second option:

Change the facecolor of the matplotlib graphs to white. Again, you can put this at the top of the notebook (if you changed your theme to 'dark_background', you'll have to bring it back to 'default'):

plt.rcParams['figure.facecolor'] = 'white'
Now the graphs are the same as they would be in a light theme, but the area underneath the labels outside of the axes will be white and the labels will be visible.
Hope this helps!

I can take comment color for now. I'm using material theme 0.3.7
Yes it helped
plt.style.use('dark_background')```

<img width="431" alt="screenshot 2018-10-20 at 1 17 06 am" src="https://user-images.githubusercontent.com/8083613/47240425-e2374c80-d405-11e8-949f-72082b96b724.png">


selecting custom favicon will throw build error (deploy via netlify)

i already has my digital garden site running via netlify. but whenever i try to change the favicon (via the plugin's settings), the build will throw this error. if i change it back (delete the custom favicon from the plugin settings), it will be okay again.
so i assume it's the favicon issue and the build log seems to suggest so. i'm not that fluent in reading the build log, so let me know if there's additional things u need from the log

Sounds like your favicon is not square. Have you tried another custom favicon? Can you double check the one you are using is actually square?  Perhaps link/attach it here so others can test/verify using it.

huh. i know the error msg says so but i just could not figure out if my svg is square or not. looking at it (attached below) it seems to be square. i'm on windows and right click properties an svg does not give any info about the svg dimension (understandable since svg is scalable) or aspect ratio.
but after reading your reply, i remember that svg is somewhat readable string of text. i open it in notepad instead. lo and behold, i see the viewbox is 216.000 and 219.000. visually square but not to computer.
I've managed to square it and yes, managed to get the favicon reflected in the published site. thanks for being a good sport. sometimes just need a 2nd person to help see the light
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
 "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
 width="216.000000pt" height="219.000000pt" viewBox="0 0 216.000000 219.000000"
 preserveAspectRatio="xMidYMid meet">
<metadata>
Created by potrace 1.10, written by Peter Selinger 2001-2011
</metadata>
<g transform="translate(0.000000,219.000000) scale(0.100000,-0.100000)"
fill="#2f4f4f" stroke="none">
<path d="M635 2140 c-148 -30 -265 -85 -367 -175 -60 -54 -147 -163 -178 -224
-77 -153 -82 -208 -78 -727 4 -400 5 -422 26 -484 88 -261 305 -458 562 -512
79 -17 827 -23 900 -8 188 40 297 99 421 227 77 79 114 133 153 220 54 124 57
165 54 653 -3 442 -3 445 -27 515 -69 197 -213 363 -393 451 -63 30 -92 39
-203 64 -49 11 -814 11 -870 0z m615 -480 c91 -23 109 -29 165 -55 81 -39 160
-100 175 -135 10 -25 10 -34 -4 -55 -20 -30 -58 -47 -83 -38 -10 4 -44 25 -76
46 -89 60 -182 94 -293 107 -285 31 -459 -71 -429 -253 10 -58 64 -106 144
-129 48 -14 99 -18 247 -18 179 0 189 -1 211 -22 31 -29 30 -71 -2 -96 -22
-18 -46 -20 -252 -24 -206 -4 -232 -6 -268 -25 -84 -44 -121 -112 -108 -198
11 -73 56 -122 143 -156 48 -19 75 -22 205 -22 176 -1 254 14 390 74 50 21 96
39 104 39 25 0 61 -42 61 -70 0 -45 -71 -100 -172 -134 -106 -36 -189 -49
-341 -54 -172 -5 -252 7 -352 53 -127 59 -205 166 -205 283 0 95 63 204 144
247 20 11 36 25 36 32 0 7 -20 28 -45 47 -61 46 -80 72 -100 134 -31 94 -3
210 71 292 68 75 181 127 304 140 84 9 276 3 330 -10z"/>
</g>
</svg>


ERROR in Requirements on Mac OS

Hi Developers, I installed scapy , but when I try to run the script, it gives me the error:
 ERROR: Requirements have not been properly satisfied. Please try running:
$ sudo pip install -r requirements.txt
If you still get the same error, please submit an issue here:
https://github.com/k4m4/kickthemout/issues/

What could be the problem ?
Thank you !

Hello there. What OS are you running? @kashkalik

I am running MAC os

Yes, indeed. There are some issues when running KickThemOut on a Mac, most of which, we can do very little about since its the module we are using that causes the error. Assuming that you have already installed the requirements, I would recommend running the following:
$ pip uninstall scapy
$ brew install scapy

Please let me know if this works for you. @kashkalik

For Mac OS X Installations run the following:
Install Requirements:
----------------------
$ sudo pip install pcapy
$ brew install libdnet
$ brew install scapy
--> You might be asked to run some commands after executing the previous step.

Clone Repository:
------------------
$ git clone https://github.com/k4m4/kickthemout.git
$ cd kickthemout/
$ python kickthemout.py

NOTE: You need to have Homebrew installed before downloading requirements.

Let me know if this works for you please. @kashkalik

For me stills giving me the error after brew installation
`name:kickthemout name$ brew install libdnet
Warning: libdnet-1.12 already installed
name:kickthemout name$ brew install scapy
Warning: homebrew/python/scapy-2.3.3 already installed
name:kickthemout name$ cd
name:~ name$ cd Desktop/
name:Desktop name$ git clone https://github.com/k4m4/kickthemout.git
Cloning into 'kickthemout'...
remote: Counting objects: 201, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 201 (delta 8), reused 0 (delta 0), pack-reused 186
Receiving objects: 100% (201/201), 33.58 KiB | 0 bytes/s, done.
Resolving deltas: 100% (106/106), done.
Checking connectivity... done.
name:Desktop name$ cd kickthemout/
name:kickthemout name$ python kickthemout.py
ERROR: Requirements have not been properly satisfied. Please try running:
$ sudo pip install -r requirements.txt
If you still get the same error, please submit an issue here:
https://github.com/k4m4/kickthemout/issues/
name:kickthemout name$ `

Try uninstalling everything:
$ brew uninstall scapy
$ sudo pip uninstall scapy
$ sudo pip uninstall libdnet
$ sudo pip uninstall libdnet

Subsequently, run the installation commands again.
$ sudo pip install pcapy
$ brew install libdnet
$ brew install scapy
--> You might be asked to run some commands after executing the previous step.
$ git clone https://github.com/k4m4/kickthemout.git
$ cd kickthemout/
$ python kickthemout.py

Let me know how it goes. @daniellogvin

@k4m4 libdnet is not a python module

I do not understand your point. @SentinelWarren

That is correct. It was a typo. @SentinelWarren

I have the same problem than @kashkalik and @daniellogvin , I have reinstalled all the stuff like you said but it changed nothing.
Here are my versions:

macOS Sierra 10.12.2

Python 2.7

Homebrew  1.1.7

libdnet 1.12

pip 9.0.1

scapy 2.3.3

pcapy0.11.1

Let me know @k4m4 if you want more infos.
Thank you.

@suxxa did you try installing pypcap?

@SentinelWarren Thank you for your time, pypcap was not installed. I installed it but the problem is still here.

is it the same error requirements not satisfied or your getting another error?

It is the same error.

ERROR: Requirements have not been properly satisfied. Please try running:
$ sudo pip install -r requirements.txt
If you still get the same error, please submit an issue here:
https://github.com/k4m4/kickthemout/issues

ok! try deleting the local clone,the clone it again and repeat the installation steps again

I reinstalled all the packages (even pypcap) but nothing changed.

nothing is working, look:
	$ sudo pip install -r requirements.txt

If you still get the same error, please submit an issue here:
	https://github.com/k4m4/kickthemout/issues

Daniels-MacBook-Pro-2:kickthemout daniellogvin$ sudo pip install -r requirements.txt
The directory '/Users/daniellogvin/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/daniellogvin/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: scapy in /usr/local/lib/python2.7/site-packages (from -r requirements.txt (line 1))

Daniels-MacBook-Pro-2:kickthemout daniellogvin$

@daniellogvin  on mac you should just do 'pip install -r requirements.txt` without sudo

Requirement already satisfied: scapy in /usr/local/lib/python2.7/site-packages (from -r requirements.txt (line 1))

I don't think that would work. @SentinelWarren

it's very weird

Try running the following (in the exact order): @daniellogvin @suxxa
$ sudo pip uninstall scapy pcapy
$ brew uninstall libdnet scapy
$ sudo pip install pcapy
$ brew install libdnet scapy

Let me know how it goes.

same thing....

Daniels-MacBook-Pro-2:kickthemout daniellogvin$ sudo pip uninstall scapy pcapy
Password:
The directory '/Users/daniellogvin/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Uninstalling scapy-unknown.version:
  /usr/local/lib/python2.7/site-packages/scapy
  /usr/local/lib/python2.7/site-packages/scapy-unknown.version-py2.7.egg-info
Proceed (y/n)? y
  Successfully uninstalled scapy-unknown.version
Uninstalling pcapy-0.11.1:
  /usr/local/lib/python2.7/site-packages/pcapy-0.11.1-py2.7.egg-info
  /usr/local/lib/python2.7/site-packages/pcapy.so
  /usr/local/share/doc/pcapy/LICENSE
  /usr/local/share/doc/pcapy/README
  /usr/local/share/doc/pcapy/pcapy.html
  /usr/local/tests/96pings.pcap
  /usr/local/tests/pcapytests.py
Proceed (y/n)? y
  Successfully uninstalled pcapy-0.11.1
The directory '/Users/daniellogvin/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Daniels-MacBook-Pro-2:kickthemout daniellogvin$ brew uninstall libdnet scapy
Uninstalling /usr/local/Cellar/libdnet/1.12... (29 files, 389.7K)
Uninstalling /usr/local/Cellar/scapy/2.3.3... (150 files, 2.4M)
Daniels-MacBook-Pro-2:kickthemout daniellogvin$ sudo pip install pcapy
The directory '/Users/daniellogvin/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/daniellogvin/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pcapy
  Downloading pcapy-0.11.1.tar.gz
Installing collected packages: pcapy
  Running setup.py install for pcapy ... done
Successfully installed pcapy-0.11.1
Daniels-MacBook-Pro-2:kickthemout daniellogvin$ brew install libdnet scapy
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/libdnet-1.12.sierra.bottle.2.tar.gz
Already downloaded: /Users/daniellogvin/Library/Caches/Homebrew/libdnet-1.12.sierra.bottle.2.tar.gz
==> Pouring libdnet-1.12.sierra.bottle.2.tar.gz
==> Caveats
Python modules have been installed and Homebrew's site-packages is not
in your Python sys.path, so you will not be able to import the modules
this formula installed. If you plan to develop with these modules,
please run:
  mkdir -p /Users/daniellogvin/Library/Python/2.7/lib/python/site-packages
  echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/daniellogvin/Library/Python/2.7/lib/python/site-packages/homebrew.pth
==> Summary
🍺  /usr/local/Cellar/libdnet/1.12: 29 files, 389.7K
==> Installing scapy from homebrew/python
==> Downloading https://homebrew.bintray.com/bottles-python/scapy-2.3.3.sierra.bottle.tar.gz
Already downloaded: /Users/daniellogvin/Library/Caches/Homebrew/scapy-2.3.3.sierra.bottle.tar.gz
==> Pouring scapy-2.3.3.sierra.bottle.tar.gz
==> Caveats
Python modules have been installed and Homebrew's site-packages is not
in your Python sys.path, so you will not be able to import the modules
this formula installed. If you plan to develop with these modules,
please run:
  mkdir -p /Users/daniellogvin/Library/Python/2.7/lib/python/site-packages
  echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/daniellogvin/Library/Python/2.7/lib/python/site-packages/homebrew.pth
==> Summary
🍺  /usr/local/Cellar/scapy/2.3.3: 150 files, 2.4M
Daniels-MacBook-Pro-2:kickthemout daniellogvin$ sudo python kickthemout.py

ERROR: Requirements have not been properly satisfied. Please try running:
	$ sudo pip install -r requirements.txt

If you still get the same error, please submit an issue here:
	https://github.com/k4m4/kickthemout/issues

Daniels-MacBook-Pro-2:kickthemout daniellogvin$

You missed some commands scapy asked you to run. Look at the spaces I left on your comment. Run those commands and let me know what happens.

It is most likely that the echo part wont work. In that case just do nano /Users/daniellogvin/Library/Python/2.7/lib/python/site-packages/homebrew.pth and paste the following in the file:
import site;
site.addsitedir("/usr/local/lib/python2.7/site-packages")

added it, and did not work tho... it's very weird, and before that i also tried again the steps you told me to do

did you install python via brew?

Hmm... very odd indeed. You have probably missed something. I cannot imagine anything else, since it definitely has to do with the requirement configuration.

i believe i did it through brew

what is the output of which python ?

/opt/local/bin/python

probably you installed python via macports since brew installation path is /usr/local/bin/pyhon long story short,
try doing the following
brew install python
brew linkapps python
brew link --overwrite python

that's totally true

That's right! Thanks @SentinelWarren for the support ;)
Did it resolve your issue? @daniellogvin

i'm checking it now

damn... i did the link and all that stuff and still not working:
Daniels-MacBook-Pro-2:kickthemout daniellogvin$ brew install python
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
imagemagick@6                                                             open-mesh

Warning: python-2.7.13 already installed, it's just not linked.
Daniels-MacBook-Pro-2:kickthemout daniellogvin$ brew linkapps python
Linking: /usr/local/opt/python/IDLE.app
Linking: /usr/local/opt/python/Python Launcher.app
Linked 2 apps to /Applications
Daniels-MacBook-Pro-2:kickthemout daniellogvin$ brew link --overwrite python
Linking /usr/local/Cellar/python/2.7.13... 7999 symlinks created
Daniels-MacBook-Pro-2:kickthemout daniellogvin$ python kickthemout.py

ERROR: KickThemOut must run as root. Try again with sudo/root:
	$ sudo python kickthemout.py

Daniels-MacBook-Pro-2:kickthemout daniellogvin$ sudo python kickthemout.py
Password:

ERROR: Requirements have not been properly satisfied. Please try running:
	$ sudo pip install -r requirements.txt

If you still get the same error, please submit an issue here:
	https://github.com/k4m4/kickthemout/issues

Daniels-MacBook-Pro-2:kickthemout daniellogvin$

now try unistalling and reinstalling the modules again

ok, let me try

same thing...

damn!try doing this again
mkdir -p /Users/daniellogvin/Library/Python/2.7/lib/python/site-packages
  echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/daniellogvin/Library/Python/2.7/lib/python/site-packages/homebrew.pth

WORKS!!!! PERFECTLY AWESOME!

don't works at all good, but kinda works

it has a problem obtaining the gateway

run the script with sudo privileges sudo python kickthemout.py

Daniels-MacBook-Pro-2:kickthemout daniellogvin$ sudo python kickthemout.py
Password:

^C
ERROR: Gateway IP could not be obtained. Please enter IP manually.

kickthemout> Enter Gateway IP (e.g. <IP_ADDRESS>): ^CTraceback (most recent call last):

then it the gateway IP as the script suggests!otherwise i think @k4m4 should take it from here :)!

awesome, @k4m4 where are you?

@daniellogvin Just enter your gateway IP manually. It's possible that KickThemOut fails to detect it automatically.

thanks @xdavidhu !

Did you resolve the issue @daniellogvin?

yes i did! @xdavidhu

@daniellogvin Happy to hear!
Thank you for submitting the issue!

@xdavidhu thank you and thank you to everybody for helping to fix this issue

Hello again @daniellogvin .
Sorry for the delayed response.
Glad to hear your issue has been resolved.


Installing numpy and PyGame

could not use terminal command pip install numpy, or pip install PyGame, but I was able to install these two through pycharm to make the project work.

Thank you for providing the issue for us ,actually, you can try to use command pip3 install numpy or pip3 install PyGame in your terminal ,it should work and  I will change it in README.


change to display invite errors before login

Codecov Report
Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (d44deb3) 71.04% compared to head (ac240f6) 71.00%.

Files
Patch %
Lines

src/account/views/auth.py
50.00%
1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@               Coverage Diff                @@
##           prep-release     #137      +/-   ##
================================================
- Coverage         71.04%   71.00%   -0.04%
================================================
  Files               129      129
  Lines              2217     2218       +1
================================================
  Hits               1575     1575
- Misses              642      643       +1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Some errors on install

[Enter steps to reproduce:]

...
...

Atom: 1.17.2 x64
Electron: 1.3.15
OS: Microsoft Windows 10 Enterprise 2016 LTSB
Thrown From: quick-editor package 0.4.3
Stack Trace
Failed to load the quick-editor package
At .focus is undefined in C:\Users\User\AppData\Local\atom\app-1.17.2\resources\app\node_modules\one-dark-ui\styles\buttons.less:73:2

LessError: .focus is undefined
  at ~/AppData/Local/atom/app-1.17.2/resources/app/node_modules/one-dark-ui/styles/buttons.less:73:2

Commands
     -3:01.7.0 core:confirm (input.hidden-input)
  4x -2:52.2.0 core:backspace (input.hidden-input)
  2x -2:48.5.0 core:confirm (input.hidden-input)

Non-Core Packages
emmet 2.4.3
quick-editor 0.4.3

looks like duplicate of #24


Support int.tryParse()

It would be useful to have a polyfill for this:
int tryParse(String s) => int.parse(s, onError: (_) => null);

Maybe this package should have been named dart2_polyfill so that it could be more general :).
cc @kwalrath @kevmoo

It's not really a polyfill unless we have extension methods.🤷♂
I think we should leave this package as-is.

I think we should leave this package as-is.

Yes, that is what I expected, but I figured that it was worth asking :)


Generate clientSet / informers / listers for the whereabouts types

This PR adds a clientset / informers / listers for the whereabouts types - IPPool and OverlappingRangeIPReservation .
PR #185 will be rebased with this one, and will use these generated types.
I wonder if we should run the scripts that generate these types in CI, or should do it manually when there are changes.
Depends-on:

#203
#197

Abandoning since this change was already merged in PR #185.


Captcha

Hi,
When doing the rclone config through SSH to my VPS and adding a new remote connection I need to use the W3M browser. Doing so I keep getting captchas.. but I can't see the picture.
How do I get past this?

Check this page out: http://rclone.org/remote_setup/

This is answered.


invalid function (lambda (&rest) ...

Hi,
When doing M-x run-guile RET I get the following trace:
Debugger entered--Lisp error: (invalid-function (lambda (&rest) geiser-guile-minimum-version))
  (lambda (&rest) geiser-guile-minimum-version)()
  apply((lambda (&rest) geiser-guile-minimum-version) nil)
  geiser-impl--call-method(minimum-version guile)
  geiser-repl--min-version(guile)
  geiser-repl--check-version(guile)
  geiser-repl--start-repl(guile nil)
  run-geiser(guile)
  run-guile()
  funcall-interactively(run-guile)
  call-interactively(run-guile record nil)
  command-execute(run-guile record)
  execute-extended-command(nil "run-guile" nil)
  funcall-interactively(execute-extended-command nil "run-guile" nil)
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)

Looking at geiser-impl.el I see geiser-impl--normalize-method which has an invalid lambda form.  Didn't look further to see if there were more instances of this.

I think it was fixed by commit ae895088fab7593295dc16bc7d58a67321f92d46

yes, as @alezost mentions, this should be already fixed...

Ah, I now remember this change to emacs master, thanks all.


Definition file for tcomb

The new version (v0.3) of this plugin will require a definition file in order to exploit refinements and runtime type introspection.
I'm working on a first draft but I'm not sure what's the best practice. Where can I put the definition file?

tcomb's' repo
this repo
a new dedicated repo

Until we figure this out, I'll push my drafts here https://github.com/gcanti/pantarei/blob/master/tcomb/3.2.2%2B.js

The flow-typed repo seems to be emerging as a collection of declaration files.
https://github.com/flowtype/flow-typed

There is also this one https://github.com/marudor/flowInterfaces

Having used flow for a few weeks now I defo think we should consider putting the definitions in the flow-typed repo as suggested by @volkanunsal.  It looks like it is maintained by the official Facebook Flow team and will become the store for definitions.
Will be great for exposure too perhaps?

Yeah, definitely. The current version still needs some adjustments, then we can send a PR.

Definitely should go into the https://github.com/flowtype/flow-typed, or be built-in directly into the tcomb itself.
Btw, are https://github.com/gcanti/pantarei/tree/master/tcomb/3.x.x-0.33.x still actual for the latest tcomb?

Seems to not work with Flow 0.83.

Does anyone happen to have actual types for Flow .80+?