Feature request: silently-no-op on build files with no dependencies blocks

The following build file results in a parse error
import slack.gradle.Platforms

plugins {
  alias(libs.plugins.slack.base)
  `java-platform`
}

val catalogExtension =
  extensions.findByType<VersionCatalogsExtension>() ?: error("Could not find any version catalogs!")

for (name in catalogExtension.catalogNames) {
  val catalog = catalogExtension.named(name)
  Platforms.applyFromCatalog(project, catalog)
}

This is the log file
INFO: Sorting build.gradle(.kts) scripts in the following paths: /Users/zacsweers/dev/slack/slack-android-ng/tooling/slack-platform/build.gradle.kts
INFO: It took 31 ms to find 1 build scripts.
WARN: Parsing error: /Users/zacsweers/dev/slack/slack-android-ng/tooling/slack-platform/build.gradle.kts
1: extraneous input 'project' expecting {<EOF>, DEPENDENCIES, 'file(', 'files(', 'buildscript', '{', '}', '(', ')', ''', '"', '=', ';', '\', UNICODE_LATIN, ID, DIGIT, WS}
INFO: Metrics:
  Successful sorts: 0
  Already sorted:   0
  Parse errors:     1

Sort duration: 45 ms.

Thanks for the issue. Seems valid! PRs welcome.

I think this might already work? I have a test for empty build files.


[BUG] LimitRange: defaultRequest gets values from project's limits if reservations are not filled in

Rancher Server Setup

Rancher version: 2.7.9
Installation option: Helm chart

Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc): v1.24.13 +k3s1

Proxy/Cert Details:

Information about the Cluster

Kubernetes version: v1.24.4 +rke2r1
Cluster Type: Downstream

What type of cluster: Custom

User Information

What is the role of the user logged in: Admin

Describe the bug

If project is created with only CPU Limit and Memory Limit filled in and CPU Reservation and Memory Reservation left blank, a corresponding LimitRange object uses the CPU Limit and Memory Limit for .spec.limits.defaultRequest.
To Reproduce

Create a project with CPU Limit = 100 and Memory Limit = 200.
CPU Reservation and Memory Reservation should be left blank.
Create a namespace "test" inside of the project.
Result
LimitRange has defaultRequest filled in by the same values as limits, despite no reservations are defined:
[user@host]$ kubectl get limitrange -o yaml -n test
apiVersion: v1
items:
- apiVersion: v1
  kind: LimitRange
  metadata:
    creationTimestamp: "2024-02-09T14:19:14Z"
    generateName: default-
    labels:
      cattle.io/creator: norman
      resourcequota.management.cattle.io/default-resource-quota: "true"
    managedFields:
    - apiVersion: v1
      fieldsType: FieldsV1
      fieldsV1:
        f:metadata:
          f:generateName: {}
          f:labels:
            .: {}
            f:cattle.io/creator: {}
            f:resourcequota.management.cattle.io/default-resource-quota: {}
        f:spec:
          f:limits: {}
      manager: rancher
      operation: Update
      time: "2024-02-09T14:19:14Z"
    name: 35a74b2f-771a-45b9-ada0-a3edd04e39f9
    namespace: test
    resourceVersion: "292640822"
    uid: f2296bce-a0ee-4cc5-916c-e340f283fc24
  spec:
    limits:
    - default:
        cpu: 100m
        memory: 200Mi
      defaultRequest:
        cpu: 100m
        memory: 200Mi
      type: Container
kind: List
metadata:
  resourceVersion: ""
  selfLink: ""

Expected Result

defaultRequest.cpu and defaultRequest.memory are not defined.
Screenshots

Additional context

Probably should be fixed during rework of the LimitRange creation logic for #43098.


DWM is ignoring the rule for Spotify

Hi,
If I add the following rule:
{ "Spotify",                    NULL,       NULL,       1<<2,         1,           0,           0,          0  },
dwm simply ignores and opens Spotify in active tag, rather than 3 tag. It does work for all other applications but not Spotify. What could be causing such behaviour?

your probably setting the wrong class, are you sure its class is Spotify?

I wish that was the case.

https://wiki.archlinux.org/index.php/Spotify#Not_respecting_window_manager_rules
Its a known issue due to spotify not following ICMMM spec (I had the same issue with i3). There is a hacky workaround on the page but I personally just made peace with it.

Okay. Closing. Not our issue then.


3.0.1 seems to brake drag&drop ordering

The items won't drag&drop, but stay in place and get selected. Works on 3.0.0, on 3.0.1 I get following error in Chrome:

Django 2.2.14
python 3.7.4

This is most likely the result of https://github.com/jazzband/django-sortedm2m/pull/149. I will investigate later today.

This will be fixed in 3.0.2, which should be released in about 30 minutes, barring build failures.

Nice, thank you!


feat: add code magic

CODE-MAGIC
Code Magic is a free tool that allows you to generate Tailwind and css code

@Dun-sin The link is broken. Can you please adjust it?

@Dun-sin The link is broken. Can you please adjust it?

@markodenic done


performance drop when using lora finetune

Thanks for your nice work.
I am training mantis-8b-siglip-llama3 with lora. However, it appears that there is a non-negligible performance drop when using lora finetuning. Two evaluation benchmark results are given here,

-
Mantis-Eval
NLVR2

report in paper
59.45
87.43

lora results
51.61
82.06

For pretraining and fine-tuning, I did not modify any training-specific hyperparameter.
Perhaps it is caused by some errors when loading lora model during inference. I notice that you did lora finetuning in ablations. Can authors help on this?
Thanks.

The reported results in the main table is by full-finetuning. You are fine-tuning with Lora, the gap is expected?
Yes, we only use Lora fine-tuning in ablation, but the main table is based on full-finetune.

The reported results in the main table is by full-finetuning. You are fine-tuning with Lora, the gap is expected? Yes, we only use Lora fine-tuning in ablation, but the main table is based on full-finetune.

Thanks for your kind feedback. I think I will go with full-finetune as aligned with main table in this paper.


add-template-id-training

#72  👈
main

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

Join @Angryrou and the rest of your teammates on  Graphite


Increment version before handoff to historicals

It would be nice to have the version number incremented before the realtime node hands off the segment to the historical. This ensures that the queries are only routed to the historicals in case the 2nd realtime process zombies.
We plan to add a string "_handoff" at the end of the version number so that the new version is higher on the historicals as compared to realtime zombie node

i guess trying to solve the issue that one realtime node is in a non  responsive state, but this suggestion will only work if the handoff did occur, what about other cases ? i don't think it is a valid fix.

It wouldn't benefit the case where the handoff doesn't actually succeed, that's true.  In that case, we would still get non-deterministic results based on which realtime task the broker chooses to send the query to.
In the current world, that status continues through even after handoff has succeeded, this suggested change would make that state end as soon as handoff completes successfully.

Won't this mess up situations where there are multiple partitions? Adding _handoff to the version number of the first to handoff will mean it all of a sudden forms a singleton shard set and overshadows the other partitions served from realtime.

Assuming you're using the "expandable" shard sets that are popular with realtime, since they are considered complete even with just a single partition.

I haven't double checked the code recently, but I thought hand-off looked for the partition that it handed off or something greater.  Thinking about it, I guess the logic might be that "if it sees a complete partition set with a greater version, then assume handoff succeeded", in which case you are correct, @gianm
If that's the logic, then I think it should be possible to make the handoff intelligent enough to look for the _handoff version instead of the version that it is looking for today.  In that case, it should be exactly equivalent to the handoff logic today, just the broker-published segment will have the non _handoff version, no?

Ha, @cheddar, I wasn't even thinking about that problem you're thinking about. I was thinking of a different thing:

v1_0 and v1_1 exist in rt
v1_handoff_0 shows up on historicals
now the broker things "oh, wow, v1_handoff is way better than v1, I should use that set" – and v1_1 stops showing up in queries.

Anyway, for the original problem statement, rather than mucking with versions I think it would be way simpler to have the broker prefer non-realtime versions of a segment if they exist. It already knows about realtime vs non-realtime servers for caching reasons, so it has the info it needs to do that.

Ok, I buy that.


Init Project Using Compose.

Hi,
Clone this project and Init using Jetpack compose with Hello World! Screen.
Gradle
Kotlin
Jetpack Compose

Hi @akapps21
Could you assign me this issue?

Hi @akapps21 Could you assign me this issue?

Hi @akapps21, i have raised the pull request, kindly merge this.
Thank You!


fix: Archiving logs loses big amount of data

Try to close #1080

30s-2 min gap , because of check, at least it will resolve our issue with hours lost data

Hi @monikasmolarek , when u will have time may u check

@maparr logrotator lib is using copytruncate under the hood
Just replace it with https://www.npmjs.com/package/logrotate-stream and pipe stdout&stderr right there.
I believe it should work :)

@brusherru checked this lib, a problem with rotation, if rotation files exceeded the max level, logs won't be rotated and will be streamed to the file with no restriction. Need to find another lib or fork it

works fine, with 5k size rotation

Tested on Windows and worked pretty well; however, on Mac, the file that reached already 104Mb didn’t get archived. Continued to be used/updated. I will re-test it cause I fumbled a bit in the log file to speed up the whole process, so it might be my fault.


chocolately version is 0.3

please upgrade the package

Sorry for the late update, because I'm not familiar with Chocolatey environment.
I'll try.

Would you like some assistance? We have some folks who could help. I have a request for maintainers (RFM) for this in the community package repository.

That would be great, anyone willing to contribute would be a big help.

I will ask them to reach out directly.

Hi, I'm Sanshiro, the new maintainer of hain chocolatey package.
I've submitted the latest hain package, and I continue to updated one.
https://chocolatey.org/packages/Hain/0.6.4

@TakataSanshiro Thanks for your contribution!!

I see Chocolatey support was removed in a recent update. Why was that done?


Create account transaction is rejecting due to fee paying account...

Do I need to update something in my transaction?
10 assert_exception: Assert Exception\nfee_paying_account->is_lifetime_member()
{"ref_block_num":0,"ref_block_prefix":1434050043,"relative_expiration":0,"operations":[[6,{"fee":{"amount":"0","asset_id":"1.4.0"},"fee_paying_account":"1.3.11","key_data":[1,"GPH88N4QKA8SHTcGzCg9XR9yd9QBubtFvaDFxxg6WGaWiuzQK5BXk"]}],[6,{"fee":{"amount":"0","asset_id":"1.4.0"},"fee_paying_account":"1.3.11","key_data":[1,"GPH8bzbNHyeU57nDkfQ8FSNSwV63HZ87onFg9A2A2dnFqVbx4AJdy"]}],[7,{"fee":{"amount":"0","asset_id":"1.4.0"},"registrar":"1.3.11","referrer":"1.3.0","referrer_percent":0,"name":"account-zfc39","owner":{"weight_threshold":1,"auths":[["0.2.0",1]]},"active":{"weight_threshold":1,"auths":[["0.2.1",1]]},"voting_account":"1.3.0","memo_key":"0.2.1","num_witness":0,"num_committee":0,"vote":[]}]],"signatures":[["1.2.1","205848db789c70159597d6306c3a889fa0443cdd730c807972c2ecb0251aa9ab2b77c33cb090e3945c7cfdc879e583e6423dcd24069f35ba1b1c07be09e61cb845"]]}

The work-around was to run this operation:
operation("account_upgrade", {"account_to_upgrade":"1.3.0","upgrade_to_lifetime_member":true})

I had this backwards... I needed to upgrade 1.3.11 (not 1.3.0)... Ok, this is making more since.


Count pages by number of lines

I suggest adding a new way to count the number of pages: by number of text lines inside a note.
I sometimes use Obsidian to make lists that are much taller than they are wide, so the page count seems very off when a note containing a list that spans over multiple dozens of lines says it's only 1 page long.

If there were a setting for this, it would apply to the entire vault. Do you have entire vaults made of lists with short lines?
I'm going to tag this and close it. If more people request it I'll revisit.


client-side conversation flow logic

Hi! In the writeup on this app I saw that it says "On the client side, we're using JavaScript audio APIs to monitor the input level of the microphone to determine when the user has started and stopped talking". But I looked through the code base and I can't find anything like that.
I also checked to see if the speaker object is being evaluated for audio levels, but it seems like that isn't the case either.
As far as I can tell, there are two conditions where there is an endpoint:

re.search(r'[\.\!\?]$', self.transcription) matches
It has been 5 seconds since the last fragment.

Can you confirm that I'm not missing anything? If there is another demo somewhere that shows an example of monitoring input level, that would be very helpful. Thanks.

for anyone else looking into this, i ended up implementing silero-vad on the backend. it's a little tricky to get everything right because the timing of deepgram results and silero can be out of sync due to various buffering, resampling, latency, etc. pieces. it's also not ideal to have a whole neural network running just to get reliable endpointing. but i realize this is also a complex problem that has domain-dependent solutions. maybe when this issue is closed https://github.com/daily-co/daily-python/issues/11 it will be slightly easier.


Minor edits to code comments.

This code is coming from Visual Studio templates and should be fixed there. Otherwise you'd have to do this specifically for each and every solution which we create in PnP. This means that you could certainly do these changes, but this is endless road for you, which is not really recommended.

Reverted this due numerous reasons. Did not notice that this was for PnP... and we should not do this update for all solution, since this is oob tokenhelper.cs, which is coming from VS templates. PR was also targeted to master branch, which is not correct... all changes should be targeted to dev branch and then they are merged to master on monthly basis.

Adding Reeza. This effort came about because as we prepared the articles for publishing to MSDN, we made updates to the code comments to conform to MSDN style. We then decided that we would update the code comments in the samples so that they follow the same style. Are you saying that there is a better way to go about this?
Thanks,
Laura
From: Vesa Juvonen<EMAIL_ADDRESS>Sent: Thursday, February 12, 2015 12:16 PM
To: OfficeDev/PnP
Cc: Laura Graham
Subject: Re: [PnP] Minor edits to code comments. (#448)
This code is coming from Visual Studio templates and should be fixed there. Otherwise you'd have to do this specifically for each and every solution which we create in PnP. This means that you could certainly do these changes, but this is endless road for you, which is not really recommended.
—
Reply to this email directly or view it on GitHubhttps://github.com/OfficeDev/PnP/pull/448#issuecomment-74144026.


auto merge all PRs from upstream

so i heard you want to maintain this fork ; )
here is a script to merge all the pull requests from upstream
#! /usr/bin/env bash

# bash script to automatically merge pull-requests
# form the abandoned upstream repo to this active fork

# author: milahu, license: MIT
# https://github.com/avryhof/speech_recognition/issues/7

set -e

upstream_repo_name=speech_recognition
upstream_repo_owner=Uberi
this_repo_owner=avryhof
upstream_main_branch=master
this_main_branch=$upstream_main_branch
committer_main_branch=$upstream_main_branch
committer_repo_owner=milahu # need write access to this fork
# git remote add milahu<EMAIL_ADDRESS>
echo "getting open pulls from https://github.com/$upstream_repo_owner/$upstream_repo_name/pulls"

#pulls_state=all
pulls_state=open # default

merge_upstream_main_branch=true
if $merge_upstream_main_branch; then
  echo "merging main branch from upstream"
  (
    set -x
    git remote add "$upstream_repo_owner" "https://github.com/$upstream_repo_owner/$upstream_repo_name" || true
    git fetch "$upstream_repo_owner" "$upstream_main_branch"
    git checkout "$this_main_branch"
  )
  rev_short=$(git rev-parse --short "$upstream_repo_owner/$upstream_main_branch")
  branch_name="merge-$upstream_repo_owner-$upstream_main_branch-$rev_short"
  if (set -x; git branch "$branch_name")
  then
    (set -x; git switch "$branch_name")
    # use "git merge" to preserve commit hashes
    if (set -x; git merge "$upstream_repo_owner/$upstream_main_branch" -m "merge branch $upstream_repo_owner/$upstream_main_branch")
    then
      #git rebase "$upstream_repo_owner/$upstream_main_branch"
      (set -x; git push "$committer_repo_owner")
      echo "create PR at $upstream_repo_owner/$upstream_repo_name: https://github.com/$committer_repo_owner/$upstream_repo_name/pull/new/$branch_name"
      echo "create PR at $committer_repo_owner/$upstream_repo_name: https://github.com/$committer_repo_owner/$upstream_repo_name/compare/$committer_main_branch...$committer_repo_owner:$branch_name"
      (set -x; git checkout "$this_main_branch")
      echo "done main branch"
    else
      (set -x; git merge --abort)
      echo "failed to auto-merge main branch -> skip"
    fi
    echo "hit enter to continue"
    read
  else
    echo "branch $branch_name exists -> skip merging main branch"
  fi
fi

[ ! -e pulls.json ] && curl -o pulls.json "https://api.github.com/repos/$upstream_repo_owner/$upstream_repo_name/pulls?state=$pulls_state"

clean_name() {
  echo "$1" | sed -E 's/[ \t]+/-/g; s/[^a-zA-Z0-9_-]//g;'
}

num_pulls=$(<pulls.json jq length)
last_index=$((num_pulls - 1))
echo "found $num_pulls open pulls"

#for ((i = 0; i < num_pulls; i++))
#for ((i = 6; i < num_pulls; i++))
for ((i = 0; i < 6; i++))
do
  echo "pull index $i of $last_index"
  json="$(<pulls.json jq ".[$i]")"
  number="$(<<<"$json" jq -r .number)"
  title="$(<<<"$json" jq -r .title)"
  author="$(<<<"$json" jq -r .user.login)"
  head_repo_name="$(<<<"$json" jq -r .head.repo.name)"
  head_repo_owner="$(<<<"$json" jq -r .head.repo.owner.login)"
  head_ref="$(<<<"$json" jq -r .head.ref)"
  head_sha="$(<<<"$json" jq -r .head.sha)"
  base_sha="$(<<<"$json" jq -r .base.sha)"
  base_ref="$(<<<"$json" jq -r .base.ref)"
  echo "original PR: https://github.com/$upstream_repo_owner/$upstream_repo_name/pull/$number"
  echo "title: $title"
  echo "author: $author"
  echo "head_repo_name: $head_repo_name"
  echo "head_repo_owner: $head_repo_owner"
  echo "head_ref: $head_ref"
  echo "head_sha: $head_sha"
  echo "base_sha: $base_sha"

  if [[ "$(<<<"$json" jq -r .head.repo)" == "null" ]]
  then
    echo "FIXME head branch was deleted? -> skip PR"
    # example https://github.com/Uberi/speech_recognition/pull/554
    echo "hit enter to continue"
    read
    continue
  fi

  title_clean=$(clean_name "$title")
  author_clean=$(clean_name "$author")

  # check if this PR was already merged
  # TODO check harder. commit hash may be different
  if [ -n "$(git branch "$this_main_branch" --contains "$head_sha" 2>/dev/null)" ]
  then
    echo "PR $number was already merged -> skip"
    continue
  fi

  # TODO check if this PR was already requested

  (
    set -x

    git fetch "$upstream_repo_owner" "$base_ref"

    git remote add "$head_repo_owner" "https://github.com/$head_repo_owner/$head_repo_name" || true
    git fetch "$head_repo_owner" "$head_ref"

    #git checkout "$head_sha"
    git checkout "$this_main_branch"
  )

  rev_short="${head_sha:0:7}"
  branch_name="merge-$upstream_repo_owner-pr$number-$rev_short-$title_clean-by-$author_clean"

  if (set -x; git branch "$branch_name")
  then

    (set -x; git switch "$branch_name")

    # use "git merge" to preserve commit hashes
    if (set -x; git merge "$head_repo_owner/$head_ref" -m "merge branch $head_repo_owner/$head_ref")
    then
      #git rebase "$upstream_repo_owner/$upstream_main_branch"
      (set -x; git push "$committer_repo_owner")
      echo "create PR at $this_repo_owner/$upstream_repo_name: https://github.com/$committer_repo_owner/$upstream_repo_name/pull/new/$branch_name"
      echo "create PR at $committer_repo_owner/$upstream_repo_name: https://github.com/$committer_repo_owner/$upstream_repo_name/compare/$committer_main_branch...$committer_repo_owner:$branch_name"
      echo "original PR: https://github.com/$upstream_repo_owner/$upstream_repo_name/pull/$number"
      (set -x; git checkout "$this_main_branch")
      echo "done PR $number"
    else
      (set -x; git merge --abort)
      echo "failed to auto-merge PR $number -> skip"
    fi
    echo "hit enter to continue"
    read
  else
    echo "branch $branch_name exists -> skip merging PR $number"
  fi

done

Thank you!  This will certainly be helpful.


[ContractKit] Add a way to set or inject the wallet in contract kit

Expected Behavior
We added functionality to support multiple types of wallets in the same application like a local wallet coming from a seed phrase and a ledger wallet. It is up to the user to choose the type of wallet. When changing the wallets, like when the seed phrase changes or the user decides to use a ledger as a wallet for a specific account we need to recreate the whole contract kit because the functionality to set the wallet is in the constructor. Recreating the contract create a lot of rpc calls which is quite costly from some devices types like mobile devices.
https://github.com/celo-org/celo-monorepo/blob/b4632d2eb40b5f6fb9cf35463b5c08ec338d418c/packages/contractkit/src/kit.ts#L104-L108
Current Behavior
Every time i want to use a different wallet i have to recreate the whole contract kit.

I believe we discussed adding a kit.wallet property that can be changed by the user. Right @gastonponti ?
There's a subtle problem when working with the provider. There's a state dependency on web3 with providers (think on subscriptions which are stateful objects on web3). So; in theory changing the provider without notifying web3 can be problematic. But for wallets it think it was ok.

As Mariano said, the provider it's a little more complicate, but we are working on it.
We are changing this wallet set in the refactor to make it easier.
But for in the meanwhile, you could set the wallet from the provider.
(kit.web3.currentProvider as CeloProvider).wallet = differentWallet

We are changing this wallet set in the refactor to make it easier.
But for in the meanwhile, you could set the wallet from the provider.
(kit.web3.currentProvider as CeloProvider).wallet = differentWallet

thanks


Add option to enable secure boot

Add the ability to enable Secure Boot and TPM for Windows 11 machines.

Hello @RockyRhoudes
can you give more details on which feature you need to enable for Windows 11 support  ??

+1

+1 for vTPM for Windows 11

+1 for vTPM for Windows 11
after buying nutanix kit to migrate our dev network over too including the huge need for Windows 11 (regular updates) i was hoping to use packer for win 10 and win 11 but due to TPM requirement not in packer i would love to see this in here please?
I would like to say thnks for what has already been done in the packer/nutanix as it seems to be making life much easier, Well for win 10 and servers at least :)

+1 for vTPM for Windows 11


Effects tab glitches out

On my IPhone 14 Pro Max the effects tab is glitched out. Which makes it really hard to select any effects.

Dupe of #34


Error: Please do not make more than 6 API calls per second

python lendingbot.py
WARNING: Module Numpy not found, using manual percentile method. It is recommended to install Numpy. Error: No module named numpy
Welcome to Poloniex Lending Bot
Started WebServer, lendingbot status available at http://localhost:8000/lendingbot.html
2017-01-14 08:40:30 Error: Please do not make more than 6 API calls per second. Requesting createLoanOffer
Traceback (most recent call last):
  File "lendingbot.py", line 69, in <module>
    Lending.lend_all()
  File "/root/bot/poloniexlendingbot/modules/Lending.py", line 141, in lend_all
    usable_currencies += lend_cur(cur, total_lended, lending_balances)
  File "/root/bot/poloniexlendingbot/modules/Lending.py", line 218, in lend_cur
    create_lend_offer(active_cur, Decimal(active_bal) - lent, offer['rate'])
  File "/root/bot/poloniexlendingbot/modules/Lending.py", line 95, in create_lend_offer
    msg = api.create_loan_offer(currency, amt, days, 0, rate)
  File "/root/bot/poloniexlendingbot/modules/Poloniex.py", line 174, in create_loan_offer
    "lendingRate": lending_rate, })
  File "/root/bot/poloniexlendingbot/modules/Poloniex.py", line 80, in api_query
    json_ret = _read_response(ret)
  File "/root/bot/poloniexlendingbot/modules/Poloniex.py", line 46, in _read_response
    raise PoloniexApiError(data['error'])
PoloniexApiError: Please do not make more than 6 API calls per second. Requesting createLoanOffer

Unhandled error, please open a Github issue so we can fix it!

Hey mike,
Duplicate of #167
You did just inspire me of how to create a fix, though.


Add UMD build

Hi, and thanks for a very nice component library!
Since I am still in an old build setup, I rely on libraries being bundled up as UMD or IIFE. I have added an IIFE build to the project to support this, and I guess it might be of use to other people in my situation.
This change bundles the component together with the project's dependencies, but leaves out the peer dependencies, which I guess makes most sense for a standalone browser bundle.
I had to make an inelegant hack to solve a problem where global for some reason is not properly polyfilled in the IIFE build - I am too inexperienced with Babel to understand why this is, but it seems other people have the same problem: https://github.com/rollup/rollup-plugin-commonjs/issues/6#issuecomment-526447762 - please tell me if you know of a better way to solve this (or if there is anything else that needs to be addressed in this PR, of course!)

I notice DeepScan reporting an error, but from what I can tell it is not related to the changes I made. Is it possible that the warning was already there before my PR?

Hey,
Thanks for the PR.
You are the first person to talk about UMD/IIFE in all my packages, so I don't think a lot of people still use it. How do you optimize bundles? 😜
Anyway, I'm rewriting this library with TypeScript and I'll stop using rollup.
I don't think it's possible to generate IIFE with it, so can you update the setup to use UMD?
And the DeepScan error is a new check they've added, so not related to this PR.

Yeah, I know it's a bit old school to bundle things like that, and regarding optimizing bundles: we don't :smile: I mean, the bundle ends up with whatever duplication our dependencies happen to include (and surprisingly many libs still include IIFE/UMD builds). Far from ideal, and definitely one of the things I'm less happy about, but for now I just need to deal with it.
Anyway, I converted to UMD, it works for my very limited test.


Add the ala set of functions for isomorphisms

Add the ala set of functions for isomorphisms.
Also, it would need iso's to be defined for the newtypes for which we would like to use this on.
For example: ala Endo foldMap

can you give the type signature of ala?

:+1:
ala :: Wrapped s s a a => (s -> a) -> ((s -> a) -> e -> a) -> e -> s

As with wrapping, the user supplied function for the newtype is ignored.

In Haskell, that's for inference reasons. I recommend leaving that off for a Scala version because we'll probably have to give explicit types parameters for most uses, anyway.

Following recent discussion in https://github.com/julien-truffaut/Monocle/pull/365, I think we can close this issue. It is unlikely we can get good type inference in function like ala in scala


Mutability support

Any way to support DerefMut?

Lazy statics behave like regular statics in the sense of only allowing shared, &T access to a value. If you want mutability you need to put your values behind a Mutex, for example:
lazy_static! {
    static ref X: Mutex<u32> = Mutex::new(0);
}

fn main() {
    *X.lock() = 100;
}

Yes but regular statics allow mutability though. Shouldn't lazy_static also allow mutable statics?


Docs build does not show on docs.rs

As of the v0.37.0 release, the "latest" docs.rs URLs for ibc-proto don't work:
❯ curl -sI https://docs.rs/ibc-proto/latest/ibc_proto/ | head -n1
HTTP/2 404

The prior version still works, though:
❯ curl -sI https://docs.rs/ibc-proto/0.36.1/ibc_proto/ | head -n1
HTTP/2 200
❯ curl -sI https://docs.rs/ibc-proto/0.36.1/ibc_proto/ibc/core/connection/v1/query_client/index.html  | head -n1
HTTP/2 200

It'd be great to have the "latest" URLs working again.

Sounds like an issue with docs.rs given that the doc build seems to have succeeded: https://docs.rs/crate/ibc-proto/latest/builds
We'll see what we can do!

In the meantime, since the docs do actually build, you can access them locally by cloning this repo and running cargo doc --open

Opened an issue on the docs.rs repo: https://github.com/rust-lang/docs.rs/issues/2247

Fixed: https://docs.rs/ibc-proto/0.37.0/ibc_proto/


[tool_crash] ArgumentError: Invalid argument(s): Cannot find executable for /Users/randiandrio/Library/Android/sdk/build-tools/30.0.3/aapt.

Command
flutter --no-color run --machine --track-widget-creation --device-id=R9CN7021HBJ --start-paused --dart-define=flutter.inspector.structuredErrors=true lib/main.dart

Steps to Reproduce

...
...
...

Logs
ArgumentError: Invalid argument(s): Cannot find executable for /Users/randiandrio/Library/Android/sdk/build-tools/30.0.3/aapt.
#0      _getExecutable (package:process/src/interface/local_process_manager.dart:125:5)
#1      LocalProcessManager.runSync (package:process/src/interface/local_process_manager.dart:92:30)
#2      ErrorHandlingProcessManager.runSync.<anonymous closure> (package:flutter_tools/src/base/error_handling_io.dart:481:37)
#3      _runSync (package:flutter_tools/src/base/error_handling_io.dart:380:14)
#4      ErrorHandlingProcessManager.runSync (package:flutter_tools/src/base/error_handling_io.dart:481:12)
#5      _DefaultProcessUtils.runSync (package:flutter_tools/src/base/process.dart:425:51)
#6      new AndroidApk.fromApk (package:flutter_tools/src/application_package.dart:120:33)
#7      AndroidApk.fromAndroidProject (package:flutter_tools/src/application_package.dart:173:27)
<asynchronous suspension>
#8      AndroidDevice.startApp (package:flutter_tools/src/android/android_device.dart:598:34)
<asynchronous suspension>
#9      FlutterDevice.runHot (package:flutter_tools/src/resident_runner.dart:551:54)
<asynchronous suspension>
#10     HotRunner.run (package:flutter_tools/src/run_hot.dart:339:31)
#11     _rootRunUnary (dart:async/zone.dart:1198:47)
#12     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#13     _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#14     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#15     Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#16     Future._completeWithValue (dart:async/future_impl.dart:529:5)
#17     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
#18     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
#19     ResidentRunner.runSourceGenerators (package:flutter_tools/src/resident_runner.dart)
#20     _rootRunUnary (dart:async/zone.dart:1198:47)
#21     _CustomZone.runUnary (dart:async/zone.dart:1100:19)

[✓] Flutter (Channel stable, 1.22.6, on Mac OS X 10.15.7 19H15 darwin-x64, locale en-ID)
    • Flutter version 1.22.6 at /Users/randiandrio/flutter
    • Framework revision 9b2d32b605 (4 weeks ago), 2021-01-22 14:36:39 -0800
    • Engine revision 2f0af37152
    • Dart version 2.10.5

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/randiandrio/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    ✗ Android SDK file not found: /Users/randiandrio/Library/Android/sdk/build-tools/30.0.3/aapt.
    • Try re-installing or updating your Android SDK,
      visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions.

[✓] Xcode - develop for iOS and macOS (Xcode 12.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.8.3

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin installed
    • Dart plugin version 201.9317
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] Connected device (1 available)
    • SM A107F (mobile) • R9CN7021HBJ • android-arm • Android 10 (API 29)
    ! Error: iPhone is not connected. Xcode will continue when iPhone is connected. (code -13)

! Doctor found issues in 1 category.

Flutter Application Metadata
Type: app
Version: 1.4.2
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: master
Creation framework version: 4732a214a7362a3781989977429f14202143b4f5
Plugins
android_intent-0.3.7+7
audioplayers-0.16.2
firebase_auth-0.14.0+9
firebase_core-0.4.5
firebase_core_web-0.1.1+2
firebase_messaging-6.0.16
firebase_storage-3.1.6
flutter_plugin_android_lifecycle-1.0.11
geolocator-6.2.0
geolocator_web-1.0.0
google_maps_flutter-0.5.33
image_picker-0.6.7+22
import_js_library-1.0.2
path_provider-1.6.27
path_provider_linux-0.0.1+2
path_provider_macos-0.0.4+8
path_provider_windows-0.0.4+3
shared_preferences-0.5.12+4
shared_preferences_linux-0.0.2+4
shared_preferences_macos-0.0.1+11
shared_preferences_web-0.1.2+7
shared_preferences_windows-0.0.2+3
sqflite-1.3.2+3
url_launcher-5.7.10
url_launcher_linux-0.0.1+4
url_launcher_macos-0.0.1+9
url_launcher_web-0.1.5+3
url_launcher_windows-0.0.1+3
video_player-1.0.1
video_player_web-0.1.4+1
wakelock-0.2.1+1
wakelock_web-0.1.0+3
webview_flutter-1.0.7

Hi @randiandrio
I see there's an open issue (https://github.com/flutter/flutter/issues/54418) addressing the case you described.
Please follow up on that issue, I'm closing the current one as a duplicate.
If you disagree, please write in the comments and I will reopen it.
Thank you


Linux Server high cpu usage?

Hello,  Not sure if this is a problem or just how it is... The manager say that the server is using 100& of the cpu, and also when looking from the terminal.
Is it possible to lower the cpu usage?
Not running any mods on the server.
Server is hosted on a proxmox vm, I don't have this problem on any of my other servers that are running windows.

On linux the DayZ server runs multiple processes and the manager only see the first one
Due to how the main game loop is implemented, that process always runs at 100%.
Scanning the child processes would solve the visual representation, but it would incur a lot of overhead

Alright, Thanks for the information.
Going to migrate all my servers to linux this week then and see how that works out


NTR: glutamate import into mitochondrion

sibling of
GO:0090454    glutamate transmembrane import into vacuole
GO:1904983    glycine import into mitochondrion
descendant of
GO:1990542    mitochondrial transmembrane transport
standard definition:
Molecular identification and functional characterization of a novel glutamate transporter in yeast and plant mitochondria.
PMID: 30297026
I'm ISS'ing to SGD @suzialeksander
@tberardini

https://www.ncbi.nlm.nih.gov/pubmed/?term=30297026

any word on this? we've got an annotation waiting for it ...

@mah11 - I've added the term as L-glutamate import into mitochondrion based on the experiments in the paper (thanks @ukemi !)
Let me know if that's not what you intended and sorry for the delay.

That should be fine. Thanks!


Dev

This will

Copy the 2 files when running php artisan vendor:publish --provider="jrmadsen67\LaravelRouteCoverageTest\Providers\CoverageServiceProvider
Register the middleware from within the package

Updated:

composer.json
README.md

Moved to publishable folder:

src/app/Http/Middleware/CollectCodeCoverage.php
src/test/Feature/xCoverageTest.php

PS: I have added version: 1.1 in composer.json so if you tag a release you could add 1.1.


Clean Slate; Add Hypercube

GitHub Issue: https://github.com/Islandora-CLAW/CLAW/issues/579
What does this Pull Request do?
Sets up Crayfish as our Git repository that contains all of our microservices.  Jams in Hypercube to start things off.
Additional Notes:
Probably going to be some Travis hiccups.  Also, I have no idea how codecov is going to play out.  But I'd like to work through getting that setup as well.
Interested parties
@Islandora-CLAW/committers

Yessir.
There was only one squashed commit into Hypercube, so I've got enough history just by doing this.  I didn't bother with subtree shenanigans when bringing it in.

It's not being used at the moment, so there's no immediate need for a PR to put it in the vagrant environment.  And there's nothing new in Hypercube here that didn't get tested when the original PR was merged.
I'll make a separate ticket for that, but I wouldn't consider it a blocker for this PR.  Just something to do in the near-term.

@ruebot https://github.com/Islandora-CLAW/CLAW/issues/582
I think it's really important to stress that this github repository hosts multiple applications, and that they need not be deployed in a bundle.  You do not deploy Crayfish as a whole, but each microservice as needed.  Of course, for our Vagrant environment we'll do them all in one Apache install, but that won't be the case for sophisticated distributed setups.