text:
When restoring from seed, the software should ensure the daemon is current

The best block on the daemon should be queried and the program should ensure that the daemon is up to date before attempting to synchronize the wallet from a restored seed. If the daemon is not up to date, the restored wallet is likely to be missing addresses and transactions. This issue may also be handled at the level of the wallet. A suitable fix may also be to allow the wallet to scan into the future for addresses, as suggested by @davecgh.

I'm not sure seed restoring works at all, even in the pre-RFP0001 code.  I think this should be removed for 0.1.0.

OK -- I'll see about hiding that radio button in the XAML for now, until we can later address it in 0.2.0.

authors: cjepson jrick

repo: decred/Paymetheus

license: isc


text:
Ensure tickets are either immature or live

There is currently a primitive check in /feeaddress to ensure a ticket is not older than TicketMaturity+TicketExpiry, but we should be able to validate tickets a bit more carefully.
We should not issue fee addresses, or broadcast fee transactions, for tickets which are expired, missed or revoked.

Discussed with @davecgh and this is more tricky than expected. It seems like we cannot accurately determine if a ticket has already voted or not. I think the best vspd can do is check:

Ticket is not expired
Ticket is not missed and unrevoked

We cannot detect tickets which are missed and revoked, or tickets which have already voted. This will have to be properly documented and validating the tickets will have to be the responsibility of clients.

source: gharchive/issue

repo: decred/vspd

license: ISC

license_type: permissive

license_source: github-api


text:
Call transaction fail when add liquidity pool with my personal jetton

I created my jetton: EQBNRUUeRiG1sg4rgQEC0d1DnLvVlWjvOkGMfesO9ENbGIZX
and add liquid with tx init my pool: EQBkpaQJdlKeYvy9wIV1IMGczdy548KLftfy34hYg5MZYEdj
It 's fail because 0xffff exit code.
Please check it and tell me your reason.
Maybe a bug !

The same this question !

Same error with me

"use client";
import {
SendTransactionRequest,
useTonAddress,
useTonConnectUI,
} from "@tonconnect/ui-react";
import React from "react";
import { Address, beginCell, toNano, TonClient4 } from "@ton/ton";
import {
Asset,
Factory,
JettonRoot,
MAINNET_FACTORY_ADDR,
PoolType,
VaultJetton,
} from "@dedust/sdk";
import { Button } from "@nextui-org/react";
const Page = () => {
const walletAddress = useTonAddress();
const [tonconnect] = useTonConnectUI();
const transferJettons = async () => {
try {
const wallet = Address.parse(walletAddress);
  const JETTON_WALLET = Address.parse(
    "EQD2MOAd3BagoN3l02Sio6O8MQuRmOc5QRLy_x1XpeaKt8cO"
  );
  const TOKEN_ADDRESS = Address.parse(
    "EQDUjm5A8og_JbEGn2dMCilcy-0DcKQho6KOsOc11bgXlQRg"
  );
  const tonClient = new TonClient4({
    endpoint: "https://mainnet-v4.tonhubapi.com",
  });

  const factory = tonClient.open(
    Factory.createFromAddress(MAINNET_FACTORY_ADDR)
  );
  const jettonRoot = tonClient.open(
    JettonRoot.createFromAddress(TOKEN_ADDRESS)
  );

  const vault = tonClient.open(
    await factory.getJettonVault(jettonRoot.address)
  );
  console.log(vault.address);
  const TON = Asset.native();
  const TOKEN = Asset.jetton(TOKEN_ADDRESS);
  const assets: [Asset, Asset] = [TON, TOKEN];
  const tonAmount = toNano("1"); // 1 TON
  const scaleAmount = toNano("10000"); // 10 SCALE
  const targetBalances: [bigint, bigint] = [tonAmount, scaleAmount];
  const transferTx = beginCell()
    .storeUint(0xf8a7ea5, 32)
    .storeUint(1, 64)
    .storeCoins(scaleAmount)
    .storeAddress(vault.address)
    .storeAddress(wallet)
    .storeBit(false)
    .storeCoins(toNano("0.4"))
    .storeBit(true) // forward_payload in this slice,
    .storeRef(
      VaultJetton.createDepositLiquidityPayload({
        poolType: PoolType.VOLATILE,
        assets,
        targetBalances,
      })
    )
    .endCell();
  const tx: SendTransactionRequest = {
    validUntil: Date.now() + 5 * 60 * 1000,
    messages: [
      {
        address: JETTON_WALLET.toString(),
        amount: toNano(0.5).toString(),
        stateInit: undefined,
        payload: transferTx.toBoc().toString("base64"),
      },
    ],
  };

  await tonconnect.sendTransaction(tx);

  // await waiter();
} catch (error) {}

};
return (

Transfer Jettons

);
};
export default Page;
I did the token sending transaction from frontend without the SDK and it worked. You can try it.

repo: dedust-io/sdk


text:
Rename the csv's name that are getting exported. Also change the field names to more human readable.

Template.csv
Export.csv

Also remove "icon image" column from exported csv.

repo: deepakshrma/peoplePlugin

license: mit

license_source: bigquery


text:
rename

https://github.com/deepgram-devs/deepgram-go-sdk/blob/ce4daa0a5fb4120a03cc7bf171f59fae188cc32e/go.mod#L1
rename to github.com/deepgram-devs/deepgram-go-sdk to avoid:

hey @pablodz would you like to make a PR for this?

authors: lukeocodes pablodz

repo: deepgram-devs/deepgram-go-sdk

license: MIT


text:
Fix PyDocs to Only Generate on GA vX.Y.Z

What is the current behavior?

PyDocs was triggered for a DevBuild which is bad.
Steps to reproduce

Expected behavior

Please tell us about your environment

Other information

PR was merged. Closing.

repo: deepgram/deepgram-python-sdk


text:
🛑 DEEP web page is down

In 51bc4d5, DEEP web page (https://deep-hybrid-datacloud.eu/) was down:

HTTP code: 503
Response time: 19225 ms

Resolved: DEEP web page is back up in 301a1a6.

repo: deephdc/status


text:
SSD Custom DataSet Error ??

Hey ...i m making HandGesuture Detection ....heres my data Pipeline...Correct Me If im doing anything wrong...
**Builder builder = ImageFolder.builder();
builder.setRepositoryPath(Paths.get("//content//drive//MyDrive//Colab Notebooks//train_gesture//"));
builder.optPipeline(
new Pipeline()
.add(new Resize(416,416))
.add(new ToTensor()));
builder.setSampling(4, true);
ImageFolder build = builder.build();
build.prepare(new ProgressBar());
List synset = build.getSynset();
Builder builder_validate = ImageFolder.builder();
builder_validate.setRepositoryPath(Paths.get("//content//drive//MyDrive//Colab Notebooks//Validated//"));
builder_validate.optPipeline(
new Pipeline()
.add(new Resize(416,416))
.add(new ToTensor()));
builder_validate.setSampling(4, true);
ImageFolder build_valid = builder_validate.build();
build_valid.prepare(new ProgressBar());
synset**
...After that everything is same as Pickachu Detector...
And i m getting this Error on training phase ....
ai.djl.engine.EngineException: MXNet engine call failed: MXNetError: Check failed: lshape.ndim() == 3 (1 vs. 3) : Label should be    [batch, num_labels, label_width] tensor Stack trace:   File "src/operator/contrib/./multibox_target-inl.h", line 224   at ai.djl.mxnet.jna.JnaUtils.checkCall(JnaUtils.java:1909) at ai.djl.mxnet.jna.JnaUtils.imperativeInvoke(JnaUtils.java:519) 	at ai.djl.mxnet.jna.FunctionInfo.invoke(FunctionInfo.java:72) 	at ai.djl.mxnet.engine.MxNDManager.invoke(MxNDManager.java:289) 	at ai.djl.mxnet.engine.MxNDArrayEx.multiBoxTarget(MxNDArrayEx.java:1071) 	at ai.djl.modality.cv.MultiBoxTarget.target(MultiBoxTarget.java:74) 	at ai.djl.training.loss.SingleShotDetectionLoss.inputForComponent(SingleShotDetectionLoss.java:53) 	at ai.djl.training.loss.AbstractCompositeLoss.evaluate(AbstractCompositeLoss.java:66) 	at ai.djl.training.EasyTrain.trainBatch(EasyTrain.java:94) 	at ai.djl.training.EasyTrain.fit(EasyTrain.java:53) 	at .(#310:1)
Heres my training code......
** Model model = Model.newInstance("GestureDetector");
float detectionThreshold = 0.6f;
// load parameters back to original training block
model.setBlock(ssd);
// append prediction logic at end of training block with parameter loaded
Block ssdTrain = model.getBlock();
model.setBlock(ssdPredict);
model.setBlock(ssdTrain);
var epoch=10;
var train_config= new DefaultTrainingConfig(new SingleShotDetectionLoss())
.addEvaluator(new SingleShotDetectionAccuracy("classAccuracy"))
.addEvaluator(new BoundingBoxError("boundingBoxError"))
.optDevices(new Device[]{Device.gpu(0)})
.addTrainingListeners(TrainingListener.Defaults.logging());
Trainer trainer = model.newTrainer(train_config);
SingleShotDetectionTranslator translator =
SingleShotDetectionTranslator.builder()
.addTransform(new ToTensor())
.optSynset(synset)
.optThreshold(detectionThreshold)
.build();
trainer.setMetrics(new Metrics());
System.out.println("whaaat");
trainer.initialize(new Shape(4, 3, 416, 416));
System.out.println("loo");
EasyTrain.fit(trainer,10,build,build_valid);
trainer.notifyListeners(listener -> listener.onEpoch(trainer));
**
what i m missing ....???? suggest me

I think your problem is that you are using the ImageFolderDataset which is a dataset for image classification (see CV applications at https://javadoc.io/doc/ai.djl/api/latest/ai/djl/Application.CV.html). But, your model is a model for object detection. Both your model and dataset need to be for the same application.

how can i create ObjectDetectionDataset....i cant find any clue....please share some info ?

Closing this old issue. Feel free to raise a new issue if you still have questions.

authors: frankfliu nikkisingh111333 zachgk

repo: deepjavalibrary/djl


text:
Switch BaseNDArray double[][] and float[][] constructors to putScalar methods without int[] creation

https://github.com/deeplearning4j/nd4j/blob/master/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ndarray/BaseNDArray.java#L624
https://github.com/deeplearning4j/nd4j/blob/master/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ndarray/BaseNDArray.java#L176

https://github.com/deeplearning4j/nd4j/pull/915


text:
About input data for model inference

Hello, can I use GFS analysis data for model inference? If yes, how I can calculate toa_incident_solar_radiation parameter with its dataset?

Hi, so my recommendation in this case would be to use the pysolar library to build something as similar as possible to the toa_incident_solar_radiation, integrated for one hour up to the time of the input/target. The model should not be extremely sensitive to this parameter, and perhaps if you can get it to be below 1% difference from that of ERA5, the model is probably going to cope ok with it. You can always check against one of the dates for which ERA5 is available.
Alternatively, you may want ask ECMWF in case they already have some open source code, or can make available some code to compute that feature for any arbitrary date.
We may eventually switch to our own pysolar implementation for computing this, but it is unclear of what the timeline for open sourcing this code this would be.
Hope this helps!

Hi, so my recommendation in this case would be to use the pysolar library to build something as similar as possible to the toa_incident_solar_radiation, integrated for one hour up to the time of the input/target. The model should not be extremely sensitive to this parameter, and perhaps if you can get it to be below 1% difference from that of ERA5, the model is probably going to cope ok with it. You can always check against one of the dates for which ERA5 is available.
Alternatively, you may want ask ECMWF in case they already have some open source code, or can make available some code to compute that feature for any arbitrary date.
We may eventually switch to our own pysolar implementation for computing this, but it is unclear of what the timeline for open sourcing this code this would be.
Hope this helps!

Thank you very much! I will have a try with your suggestions.

Hi, so my recommendation in this case would be to use the pysolar library to build something as similar as possible to the toa_incident_solar_radiation

To add a comment here, I'm working on this problem myself.  pysolar is specialized for the idea of solar power deployments at the bottom of the atmosphere, so it needs some modification to give reasonable top of atmosphere radiation.
Some of the internal routines can give the solar angle at a particular location and time, then I found a Sandia National Labs page describing the extraterrestrial radiation component taking into account the eccentricity of Earth's orbit.
There's still a residual mismatch (of a fraction of a percent) with the ECMWF data, but it seems that IFS/ERA5 may have used a more complicated solar model that takes the solar cycle into account.
As an additional note about the data, toa_incident_solar_radiation is the accumulated solar radiation over the 1h leading up to the specified time.  For example, for an analysis or forcing dataset describing 2022-Jan-1 6Z, the solar radiation field would be the integrated radiation from 5Z to 6Z.  For a quarter-degree grid, integrating radiation with a 1m timestep over this period gives a smooth field without obvious stair-stepping (0.25 deg x 24h /  360 deg = 1m).  Taking an instantaneous radiation figure and multiplying by 3600s (converting W to J) will give a radiation field with the wrong shape.

authors: BigShuiTai alvarosg csubich

repo: deepmind/graphcast


text:
kapitan source tarball on PyPI doesn't include requirements.txt

$ pip install --user kapitan
Collecting kapitan
  Downloading https://files.pythonhosted.org/packages/ac/01/613694f1f2eb99f73a6ea9ecc4e4d04492dc918048b438410c2faec88461/kapitan-0.21.0.tar.gz (79kB)
    100% |████████████████████████████████| 81kB 617kB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-exgfpmrk/kapitan/setup.py", line 55, in <module>
        pkgs, new_links = install_deps()
      File "/tmp/pip-install-exgfpmrk/kapitan/setup.py", line 41, in install_deps
        with open('requirements.txt', 'r') as f:
    FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'

Using no-cache doesn't work with 0.23.0:
pip3 install --no-cache kapitan
Collecting kapitan
  Downloading https://files.pythonhosted.org/packages/ca/df/6e4c4e9dc1c905aa9a3297276297565a5c5044c441012949235979913913/kapitan-0.23.0.tar.gz (91kB)
     |████████████████████████████████| 92kB 513kB/s
    ERROR: Complete output from command python setup.py egg_info:
    ERROR: Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-45zoj74h/kapitan/setup.py", line 55, in <module>
        pkgs, new_links = install_deps()
      File "/tmp/pip-install-45zoj74h/kapitan/setup.py", line 41, in install_deps
        with open('requirements.txt', 'r') as f:
    FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-45zoj74h/kapitan/

Python: 3.7.3
Pip: 19.1

Forcing wheel install doesn't work either:
pip install --no-cache  --only-binary :all: kapitan
Collecting kapitan
  Downloading https://files.pythonhosted.org/packages/d9/fb/0b16f3d43ebdfac5d571eb4c2d8bf9b629288fcc01f9c0fa9e57f75c1f1b/kapitan-0.23.0-py3-none-any.whl (144kB)
     |████████████████████████████████| 153kB 797kB/s
Collecting addict==2.2.0 (from kapitan)
  ERROR: Could not find a version that satisfies the requirement addict==2.2.0 (from kapitan) (from versions: none)
ERROR: No matching distribution found for addict==2.2.0 (from kapitan)

@captn3m0 try this: pip install --no-cache  --only-binary kapitan kapitan

It works! Thanks.
I'll file a PR for the docs.

repo: deepmind/kapitan


text:
fix install osx

Fresh install fails, seems like brew install gcc@7 was unintentionally removed from the install script.
$ ./open_spiel/scripts/build_and_run_tests.sh

+ CXX=g++
+ [[ darwin18 == \d\a\r\w\i\n* ]]
+ CXX=/usr/local/bin/g++-7
++ sysctl -n hw.physicalcpu
CMake Error at CMakeLists.txt:4 (project):
  The CMAKE_CXX_COMPILER:

    /usr/local/bin/g++-7

  is not a full path to an existing compiler tool.

@googlebot I signed it!

Thanks. If you have the courage, it should be possible to also have a Travis Test for MacOS, which could check reliably that it compiles and run under a fresh MacOs install.

source: gharchive/pull-request


text:
Update README.md

Make sure set the target branch to develop
What is the purpose of the change
XXXXX
Brief changelog
XX
Verifying this change
XXXX
Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

[x] Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[x] Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[x] Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test  to make sure integration-test pass.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Codecov Report

:exclamation: No coverage uploaded for pull request base (ci-remove-unit-test@f740a70). Click here to learn what that means.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@                  Coverage Diff                   @@
##             ci-remove-unit-test       #3   +/-   ##
======================================================
  Coverage                       ?   43.36%
  Complexity                     ?     8844
======================================================
  Files                          ?     1093
  Lines                          ?    76843
  Branches                       ?    10013
======================================================
  Hits                           ?    33323
  Misses                         ?    39359
  Partials                       ?     4161

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

authors: codecov-commenter deepsola

repo: deepsola/rocketmq


text:
fix compilation on latest devel

i missed what happened to ranges, but it seems like we need to explicitly convert them.

Merci!

authors: SolitudeSF def-

repo: def-/nim-bigints


text:
Upgrade packages separately in serial execution

In the current code, with serial execution, it runs the following single command.
pip install --upgrade <ALL_PACKAGES_HERE>

Although this speeds things up by not calling multiple commands, the drawback (as I learned the hard way), is that if one package has a problem, then the entire command will fail and no packages will be installed.
Here is a screenshot demonstrating my point. Certifi causes issues and so sympy never gets upgraded because pip exits after the first error.

This PR addresses that by calling the pip upgrade command for each package, so that if one has an issue, it does not effect the other installations. Although this may take longer (this is just me guessing), I think it is worth the wait.
As a side effect, after each package is installed, the output from the command is displayed on the screen. As a first time user of your Python module, I was confused when I did not see any text on the command prompt until it was finished.
This PR also includes other minor fixes such as syntax issues that were causing PEP8 warnings. Let me know if you want me to revert any of those changes!
I saw in response to an issue that you haven't accepted a PR before. I've done quite a few on other Python projects, so feel free to bug me if you have issues.

@defjaf I reread your response and understood what you meant by "serial execution".
I implemented the options --sequential_run and --batch_run that run pip sequentially or all at once. Hope this helps out, feel free to clean/change anything up.

@defjaf Fixed merged conflicts here.

@defjaf Bump. When you get some free time, can you take a look at this please?

@addisonElliott ok — but terrible connectivity until after New Year’s!
Sent with GitHawk

@defjaf No problem, just a friendly reminder. I know how easy it can be to forget about PRs.

authors: addisonElliott defjaf


text:
Is sqlcoder-7B-2 supported in ollama?

I only found sqlcoder-7B in the ollama models, unfortunately it is outdated.

Supported, I'm using it

authors: Mrxyy RipperTs

repo: defog-ai/sqlcoder


text:
Can not edit or add relationship

When viewing from the /info the Edit Object and Add Relationship buttons fail.
Example:
/files/33c8a13ea2400806032b516ecfca743c/info
If I hover over the 2 buttons, the ID is missing from the URL:
/edit/NULL
/relationship/NULL
Fresh install today*

Fixed in 545cc97b47513500c664146c1aa8d799ea7aac3a
Thanks for submitting the issue!


text:
Please Add Naperville, Illinois

Email addresses: mayor@naperville.il.us
brodheadj@naperville.il.us
coynek@naperville.il.us
gustinp@naperville.il.us
hinterlongp@naperville.il.us
kellyp@naperville.il.us
krummenj@naperville.il.us
sullivant@naperville.il.us
whiteb@naperville.il.us
Message:
Hello,
My name is [insert name here] and I am a concerned citizen of Naperville who lives at [insert address here]. A recent surge of community awareness has brought about my passion towards ending racially motivated police brutality. It has become painfully obvious that this issue is one that systemically affects all communities in our state and in our nation.
While many citizens have not truly questioned the police force until recently, to quote Common Sense by Thomas Paine, “a long habit of not thinking a thing wrong, gives it a superficial appearance of being right”. Simply because it is a habit of our culture, we have not put enough effort as a society towards investigating and changing the police force. However, we now stand at a moment in history where it is possible to positively change the way that the law is enforced in our country and make meaningful progress towards racial equality. To achieve these ends, I argue that we should defund the budget for the police department in our city, and allocate those funds towards worthwhile projects that will better serve the community.
There are many places where the police department budget could be cut, and the funds distributed elsewhere. To achieve this, a task force, entirely separate from the police department, should be created so that the city can identify, defund, and reallocate resources towards other departments. The city could even create an entirely new, non-armed and non-violent department to deal with community problems in a way that doesn’t involve the police and the use of force. This new department could involve one of the key initiatives from page four of the 2020 Naperville City Budget: “To address an increase in mental health calls, increase the number of crisis negotiators on each shift to assist with mental health/suicidal subject calls that begin to escalate.” This is the kind of area where a new department would be extremely helpful. The unnecessary dispatch of armed officers to non-criminal situations will cease, and lives will be saved. Additionally, if citizens learn to rely on services other than the police, the police will simply not need the excessively large budget that they currently require. In this way, the plan to divert police funds to other sources will make fiscal sense for the city, besides the obvious benefits of contributing towards the ending of violence and racism.
A recent example of excess is the purchase of a SWAT vehicle by our city’s police department, which cost $315,000. Money that has previously been put into unnecessary purchases such as this could be put towards community development and protection, not aggression. Lives could be saved if we invest in empathy rather than the exhausted and broken status quo. Change begins at the community level, and what you have the ability to do as a representative of the Naperville community is immensely important. I, for one, know that I would be much more likely to vote for someone who has taken decisive action to defund the police and has actively opposed police brutality. Become a pioneering droplet in this tidal wave of empathetic change, and work towards fulfilling what we citizens demand: a city that truly works toward the goal of liberty and justice for all. Defund the police; do not let our city be washed away and left behind on the wrong side of history.
Sincerely,
[insert name here]
Please let me know if there are areas of improvement that could be made! Thank you.

Thank you for submitting your city to defund12.org! Your request is now in the queue for review and publishing. We’ll reply here if we have any questions.

Editing notes: I edited to match our format and style guide, and I added the council@naperville.il.us email that I found on the city website. While I love what you wrote, I felt it was important to trim down to increase chances of being read (attention spans are so short, especially online!). I added the police budget to the copy as well, per the link below. I've omitted the portion about a separate department, as I'm unsure of any similar local demands from groups such as BLM, so I want to keep the message more focused of defunding and reallocating.
https://www.naperville.il.us/globalassets/media/finance-documents/budget-audit-reports/2020budget.pdf
To: council@naperville.il.us, mayor@naperville.il.us, brodheadj@naperville.il.us, coynek@naperville.il.us, gustinp@naperville.il.us, hinterlongp@naperville.il.us, kellyp@naperville.il.us, krummenj@naperville.il.us, sullivant@naperville.il.us, whiteb@naperville.il.us
Subject: [*** INSERT UNIQUE SUBJECT LINE ***]
Message: (Don't forget to replace the [x]'s with your information!)
Hello,
My name is [insert name here] and I am a concerned resident of Naperville. A recent surge of community awareness has brought about my passion for ending police brutality and racist policing practices. It has become painfully obvious that this issue is one that systemically affects all communities in our state and in our nation. We now stand at a moment in history where it is possible to positively change the way that the law is enforced in our country and make meaningful progress towards racial equality.
To achieve these ends, I argue that we should defund the budget for the police department in our city, and allocate those funds towards worthwhile projects that will better serve the community. To achieve this, a task force, entirely separate from the police department, should be created so that the city can identify, defund, and reallocate resources towards other departments to deal with community problems in a way that doesn’t involve the police and the use of force. An approach such as this could involve one of the key initiatives from page four of the 2020 Naperville City Budget: “To address an increase in mental health calls, increase the number of crisis negotiators on each shift to assist with mental health/suicidal subject calls that begin to escalate.” The unnecessary dispatch of armed officers to non-criminal situations will cease, and lives will be saved. Additionally, if citizens rely on services other than the police, the police will simply not need the excessively large budget currently in place. In this way, the plan to divert police funds to other sources will make fiscal sense for the city.
Currently, the Naperville Police Department budget is $43.2 million, or 34% of the entire city budget. Excessive funds to the police and unnecessary purchases such as the $315,000 SWAT vehicle could instead be put towards community development and protection, not aggression. Lives could be saved if we invest in empathy rather than the exhausted and broken status quo.
Change begins at the community level—and as a representative of the Naperville community, your role is immensely important and impactful. I, for one, know that I would be much more likely to vote for someone who has taken decisive action to defund the police and has actively opposed police brutality. Become a pioneering droplet in this tidal wave of empathetic change, and work towards shaping this city into one that truly works toward the goal of liberty and justice for all.
Sincerely,
[YOUR NAME]
[YOUR ADDRESS]
[YOUR EMAIL]
[YOUR PHONE]

authors: aurendisson jbrynn77 mahrer


text:
ref(deis): change image destination to deisci/postgres

deis/postgres is now deploying the image name as deisci/postgres.
We are still pending discussion if the rest of the chart will need
to be renamed to deis-postgres, but for now this reflects the latest
version of deis/postgres.
See deis/postgres#12

Why does it remove the pull policy, @bacongobbler

rebase error. I'll rectify that

ok, fixed!

authors: bacongobbler technosophos

repo: deis/charts


text:
ref(rootfs): rename DEBUG to DEIS_DEBUG

refs https://github.com/deis/workflow/issues/178

Should we include https://github.com/deis/controller/blob/master/rootfs/deis/settings.py#L10 and the thing below it

Should we include...

That's just settings.DEBUG though. It doesn't map to the env var and I think it would confuse Django to change it.

moving this to rc1

You will want to update this https://github.com/deis/controller/blob/0bc556388b252aca8ad5b1e023f1eb3e6e4045fc/rootfs/api/tests/test_pods.py#L610 i believe

[Current coverage][cc-pull] is 84.50%

Merging [#720][cc-pull] into [master][cc-base-branch] will decrease coverage by -0.32%

@@             master       #720   diff @@
==========================================
  Files            29         29
  Lines          2579       2587     +8
  Methods           0          0
  Messages          0          0
  Branches        410        412     +2
==========================================
- Hits           2188       2186     -2
- Misses          274        283     +9
- Partials        117        118     +1

Powered by Codecov. Last updated by [32d340f...0cfc6c6][cc-compare]
[cc-base-branch]: https://codecov.io/gh/deis/controller/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/deis/controller/compare/32d340f89f0f80d655624ef174aaa40732ac4dd0...0cfc6c6a31d621a64ba29671b2c459ce93f67592
[cc-pull]: https://codecov.io/gh/deis/controller/pull/720?src=pr

authors: bacongobbler codecov-io helgi jchauncey mboersma

repo: deis/controller


text:
feat(contrib/ec2): allow easier selection of CoreOS version

replaces #4032
Thanks @fabiob!

Code LGTM.

@bacongobbler good point, I added IOError.

code LGTM

authors: bacongobbler carmstrong mboersma

repo: deis/deis


text:
git tag should sort repo list

makes it hard to know if you've left a repo out or not

All the repos should be tagged in parallel so I don't think there is any deterministic way to sort them

The output before you answer yes is unsorted. And even after if you save
the output into a slice and then sort it that would be a better ux.
On May 11, 2016 9:38 PM, "Matthew Fisher" notifications@github.com wrote:

All the repos should be tagged in parallel so I don't think there is any
deterministic way to sort them
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/deis/deisrel/issues/38#issuecomment-218651422

Ah right! So you want the confirmation list to be sorted. That makes more sense. :)

clearing as this is a nice enhancement, but not something we absolutely must get done for rc1.

authors: bacongobbler jchauncey

repo: deis/deisrel


text:
feat(settings): read database credentials from k8s secret

refs deis/postgres#36
refs deis/charts#98

Can't wait for secret env vars :|

authors: bacongobbler helgi

repo: deis/workflow


text:
Potential Exec implementation

I'm opening a new issue since the topic is a bit different from the purpose of #505 .
So I think I made some nice progress on the exec implementation. The changes can be seen here: https://github.com/deislabs/krustlet/compare/master...jiayihu:exec
If the WASM module doesn't have a _start, then the Pod is waiting for exec commands. Otherwise it works as before, since there is no multithreading support and Instance is not Send. This is also why we can't have a noop _start loop.
Basically what I tried to do it to have something like wasmtime add.wasm --invoke add 1 2, but with kubectl exec add -- add 1 2. I've implemented it only in the wasi-provider, so wascc behaves like before.
If feels a bit weird yeah, but I think it's a reasonable first implementation idea until threads are supported in WASI/wasmtime.
But I'm currently stuck with the expected API response. I can't find any official REST API documentation for the endpoint, so I have some questions if you don't mind.

The path in krustlet is /exec/{namespace}/{pod}/{container} but it's different from what I see in other k8s client libraries: https://github.com/clux/kube-rs/blob/33207f9589507556a2eaa1d8e36318005e12bcec/kube/src/api/subresource.rs#L480. Nervertheless it works 🤷, it's reached when using kubectl exec
The endpoint seems to expect to be a Websocket rather than a normal REST API.
https://github.com/clux/kube-rs/blob/33207f9589507556a2eaa1d8e36318005e12bcec/kube/src/api/subresource.rs#L493-L509 This is the point that I'm struggling with the most.

I'm not sure if a Websocket really makes sense for a WASM invocation. I see more as a oneshot call, just like a FaaS invocation as @thomastaylor312 said. As a matter of fact, I'm ignoring options like stdin, stdout, stderr, tty. On the other hand, it would be weird having kubectl exec not working because it expects a Websocket.
For the time being, I'm just returning the result as string. This work fine if the caller is using a normal HTTP REST call, but kubectl prints Error from server: invalid upgrade response: status code 200.
What do you think? Do you have also any tips on where I can use some existing K8s WebSocket server endpoint in Rust?

Some answers to your questions first:

So the path being called in the client is the API server endpoint for exec. Underneath the hood, the API server will call the proper kubelet exec endpoint if I remember correctly.
As for the websocket stuff, I do think it is weird in our use case, but we try to conform to what kubernetes expects. There technically isn't a well documented API contract between the API server and kubelet, but the "API" (insofar as it can be called that) we conform to is basically what kubernetes expects. We are already using warp for the kubelet endpoints and that has support for websockets: https://github.com/seanmonstar/warp/blob/master/examples/websockets.rs

I didn't do a full review, but it looks like your code is heading in the right direction. I am curious if there is a way we can use annotations within the pod (or possibly something else) to indicate to the provider that the "container" shouldn't actually attempt to run the WASM module, but just load it rather than hoping that module doesn't have a _start function.
@bacongobbler I feel like you might have thoughts here

Sorry for the late reply, I've been busy with a deadline recently. Today I gave WebSocket a try but I noticed that kubectl isn't actually using WebSocket yet, it's still using SPDY/3.1 . The apiserver supports WebSocket instead, because client libs like kube-rs use that https://github.com/kubernetes/kubernetes/issues/89163
Moreover, there's some issue with warp and WebSockets. Kubectl POSTs on /exec whereas warp::ws() filter has GET backed-in and I've opened an issue: https://github.com/seanmonstar/warp/issues/803
But even if the issue were solved, it wouldn't be a happy path for krustlet yet. I've locally patched warp to support POST websocket endpoints, but the latest warp 0.3 uses tokio 1.x and krustlet throws currently. So updating to tokio 1.x would be required. I'm sure it's on the roadmap, but I can imagine it's not an easy task. Therefore, even supporting apiserver exec is not easily done.
With that being said, I'm wondering what would be the best compromise here. I would have loved to open a PR, but I guess you wouldn't be happy with a half-done implementation where /exec can only be reached as REST endpoint and not usable by kubectl or apiserver. So this issue is basically stuck for the time being, waiting for the following steps:

Warp allowing POST WebSocket endpoints
Updating krustlet to tokio 1.x
apiserver exec can be supported
kubectl supports WebSocket (unknown ETA)
kubectl exec can be supported
WASI multi-thread support in wasmtime
krustlet can implement proper multi-thread exec invokation in the WASM module

For the time being, I'll use my fork with RESTful exec for my purposes, sigh.

@bacongobbler I actually went ahead and implemented WebSocket support as requested by the apiserver. So it doesn't support kubectl exec, but apiserver client libs work fine because it's standard GET WebSocket protocol. Tested with kube-rs. Would you be interested in the PR?

Without kubectl exec support, how does this work?

authors: bacongobbler jiayihu thomastaylor312

repo: deislabs/krustlet


text:
optimize gatekeeper constraint template with batching

see example on how to batch: https://github.com/open-policy-agent/gatekeeper/blob/master/test/externaldata/dummy-provider/policy/template.yaml#L17

Fixed by #83

Fixed by #83

authors: mnltejaswini sozercan

repo: deislabs/ratify


text:
How to change play rate?

AudioPlayer.rate  is not work

Yup, you're right. Fixed now (0.4.1).

authors: delannoyk jkdntc

repo: delannoyk/AudioPlayer


text:
I am get only Location is=0.0,Latitude=0.0 i am using emulator

Hi
thanks for your Java class, After implementing code from your class i get Location is=0.0,Latitude=0.0
my code here
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.distance_find);
if (findComponentID()) {
getToolBar();
getDrawerList();
location = new SimpleLocation(this);
if (!location.hasLocationEnabled()) {
// ask the user to enable location access
SimpleLocation.openSettings(this);
}
imgBtnGetLocation.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
getCurrentLocation();
}
});
    }

}

@Override
protected void onResume() {
super.onResume();
location.beginUpdates();
}
@Override
protected void onPause() {
    location.endUpdates();
    super.onPause();
}

private void getCurrentLocation() {

    final double latitude = location.getLatitude();
    final double longitude = location.getLongitude();
    Log.d("Testing", "Location is=" + "Latitude=" + latitude + "Longitude=" + longitude);
    txtViwMyLocation.setText("Latitude=" + latitude + "\n" + "Longitude=" + longitude);

}

Thanks for your question!
Please test the code on a real device to rule out the emulator as the cause for this problem.
Did you add one of the permissions to your app? Otherwise, your code looks okay.
On the emulator, you have to specifically enable location support and you have to set a faked location or mock location. If that's really what you want to do, you may read more here:
http://stackoverflow.com/questions/2279647/how-to-emulate-gps-location-in-the-android-emulator

Thanks for your support dude,
I checked real device worked perfectly

authors: bigappsrajesh mwaclawek

repo: delight-im/Android-SimpleLocation


text:
Property 'Client' does not exist and Namespace has no exported member 'Transaction'

Expected Result
use of snowflake connection should connect to snowflake database
Actual Result
a bunch of type error
Steps to reproduce
	"dependencies": {
		"@azure/cosmos": "^3.11.5",
		"@types/node": "^14.17.4",
		"adal-node": "^0.2.2",
		"aws-sdk": "^2.936.0",
		"date-fns": "^2.22.1",
		"date-fns-tz": "^1.1.4",
		"express-jwt": "^6.0.0",
		"express-jwt-authz": "^2.4.1",
		"guid": "0.0.12",
		"jwks-rsa": "^2.0.3",
		"knex": "^0.95.6",
		"knex-snowflake-dialect": "^0.2.5",
		"mongodb": "^3.6.9",
		"mssql": "^6.3.2",
		"node-fetch": "^2.6.1",
		"pg": "^8.6.0",
		"quick-pivot": "^2.7.0",
		"tedious": "^11.0.9",
		"ts-jest": "^26.5.6"
	},
	"devDependencies": {
		"@azure/functions": "^1.2.3",
		"@types/jest": "^26.0.23",
		"@typescript-eslint/eslint-plugin": "^4.28.1",
		"@typescript-eslint/parser": "^4.28.1",
		"cz-conventional-changelog": "^3.3.0",
		"eslint": "^7.29.0",
		"eslint-config-airbnb-base": "^14.2.1",
		"eslint-config-prettier": "^6.15.0",
		"eslint-plugin-import": "^2.23.4",
		"eslint-plugin-prettier": "^3.4.0",
		"husky": "^4.3.8",
		"jest": "^26.6.3",
		"lint-staged": "^10.5.4",
		"nodemon": "^2.0.7",
		"prettier": "^2.3.2",
		"pretty-quick": "^3.1.1",
		"standard-version": "^9.3.0",
		"stub-azure-function-context": "^2.0.0-alpha.6",
		"typescript": "^4.3.4"
	},

Run Azure function

// eslint-disable-next-line import/no-unresolved
import { AzureFunction, Context, HttpRequest } from '@azure/functions';
import { SnowflakeDialect } from 'knex-snowflake-dialect';

const knex = require('knex')({
	client: SnowflakeDialect as any,
	connection: process.env.SNOWFLAKE_CONNECTION_STRING,
	pool: {
		min: 1,
		max: 1,
	},
});

const httpTrigger: AzureFunction = async function (
	context: Context,
	req: HttpRequest,
): Promise<void> {
	try {
		if (!req.body) throw new Error('no request body');

		const db = knex;
		console.log({ db });

		const result = {};

		context.res = {
			status: 200,
			body: result,
		};
	} catch (err) {
		context.log.error(err);
		context.res = {
			status: 500,
			body: err,
		};
	}
};

export default httpTrigger;

Visual Proof (screenshots, videos, text)

node_modules/knex-snowflake-dialect/lib/index.d.ts:5:52 - error TS2339: Property 'Client' does not exist on type 'typeof import("/home/xiemicha/projects/portal-api/node_modules/knex/types/index")'.

5 export declare class SnowflakeDialect extends Knex.Client {
                                                     ~~~~~~

node_modules/knex-snowflake-dialect/lib/index.d.ts:11:66 - error TS2694: Namespace '"/home/xiemicha/projects/portal-api/node_modules/knex/types/index"' has no exported member 'Transaction'.

11     transaction(container: any, config: any, outerTx: any): Knex.Transaction;

I think it's related, but I can't use the dialect as shown in the README:
client = knex({ client: SnowflakeDialect })

Would love for this to be fixed.

authors: Michael-Xie melohagan

repo: deliverr/data-knex-snowflake-dialect


text:
CSI support for the RKE2r1

Known issue:
kube-sheduler configuration is located in different place:
vanilla k8s: /etc/kubernetes/manifests/kube-scheduler.yaml
RKE2r1 : /var/lib/rancher/rke2/agent/pod-manifests/kube-scheduler.yaml
So our patcher can't find it.

Support added.

authors: mishoyama painhardcore

repo: dell/csi-baremetal


text:
Support for restore operations on DeltaTable

DBR has restore to version and restore to timestamp utility commands.
https://docs.databricks.com/delta/delta-utility.html#restore-a-delta-table-to-an-earlier-state
Would be great to have these in the OSS version of Delta to take advantage of time travel for ops and quickly resolving data issues.
Technically, it's probably something that we could implement outside of Delta, but I would expect it to be a generally useful feature to include.

Hi,
Just a thought. Is this equivalent in OSS Delta Lake to read with the
versionAsOf option and overwrite?
Pozdrawiam,
Jacek Laskowski
https://about.me/JacekLaskowski
"The Internals Of" Online Books https://books.japila.pl/
Follow me on https://twitter.com/jaceklaskowski
https://twitter.com/jaceklaskowski
On Fri, Mar 26, 2021 at 7:54 PM mrichards-scottlogic <
@.***> wrote:

DBR has restore to version and restore to timestamp utility commands.
https://docs.databricks.com/delta/delta-utility.html#restore-a-delta-table-to-an-earlier-state
Would be great to have these in the OSS version of Delta to take advantage
of time travel for ops and quickly resolving data issues.
Technically, it's probably something that we could implement outside of
Delta, but I would expect it to be a generally useful feature to include.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/delta-io/delta/issues/632, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAPG2KB7JOFQ47W6WGA24DTFTJ53ANCNFSM4Z35MRKA
.

Not quite.
If you do a rollback, the current version is equal to versionOf.  So all parties use the correct version (which was rollbacked). We do not have to make sure each process/pipeline receive the correct versionOf. It would be very difficult in multi tenant, multi cluster environment

Makes sense. Stretching out my delta muscles with another possible OSS-based solution.
In 0.8.0 they added DeltaTable.upgradeTableProtocol operator. That could "shut down" all read and write access for maintenance "rollback" window. You could then remove the versions up to the one for rollback using mere rm command.
WDYT?

In ideal world it should work as:
All readers when starting to read should have an indicator in sparkSession which version of this table they are using.
When operator do a command something like "ROLLBACK TO VERSION OF ", what happens
a) all writers get "shutdown". We either gracefully wait or do a hard stop (there probably should be a new type of Transaction exception)
b) we generate a new json manifest file which is copy of the rollback.
c) all readers still are reading the version from which they started (this needs to be handled by the process). We can have additional parameter if it is a batch read the complete if streaming then do a hard stop

@wtfzambo I do not know that. However we can think of not to generate a new json log. Instead of we can create a "technical" transaction on top which would point to the version which we rolled back.

@jles01 damn I had missed the notification of your reply.
How would you create a "technical" transaction without generating a new json log?
We need a way to let delta know to ignore latest version and instead read from whatever version specified in the rollback operation.
Second, parallel question: you mention a multi-tenant environment and I don't understand how a RESTORE operation would be different than reading versionAsOf and then overwriting the full table.

Hi,
As I know for table restore Databricks generates a new transactions (json). This transaction contains all files from "restore" version as an Add operation and all files missed in "restore" version but existent in current as a Delete operation. To generate such transaction we don't need to read\write parquet files and reading _delta_log files is enought.
As for me this has sense, because we should not break transaction history and each transaction should be in delta log.

Also interested in this feature.
One usecase we have is if a bad commit makes its way into a table, we would like a way to roll back to the previous state without having to rewrite the entire table.
Real example: Back filling some partitioned data into a table. Was about 5TB of data across ~50k files. One job accidentally got triggered twice. Having to read in the entire table (about 20TB or so) from a previous version and rewriting it would be very costly and time consuming. Being able to rollback by just modifying the commit log would save a lot of time and effort.
The workaround we found was to manually go and remove transaction log files (since they hadn't been compacted yet) and then do manual cleanup on the files that were "lost" to delta by parsing the transaction log

Hi
i have a PR ready for This just need to add testing. Generały I create additional log file with a Column restoreToVersion. And If reader sees it it will read from that version skipping everything in between. Also when writer Wants to save transaction and the restore appeared it will throw an exception

@jles01 I think that the logic proposed by @Maks-D is more appropriate, given how Delta logs are structured.
It would also work better for people integrating delta table with Athena / Presto for what regards generating manifest symlink files.

@mrichards-scottlogic I've create PR to add Scala API for DeltaTable using logic described here. SQL and python API will be added in a separate PR if Scala API PR be merged

Thanks @Maks-D for impementing this!

authors: Maks-D jaceklaskowski jles01 mlecuyer-nd mrichards-scottlogic wtfzambo

repo: delta-io/delta


text:
[Flink] Bump Flink to 1.17.2

Which Delta project/connector is this regarding?

[ ] Spark
[ ] Standalone
[x] Flink
[ ] Kernel
[ ] Other (fill in here)

Description

This bumps the Flink version to 1.17.2 and resolves #2155
How was this patch tested?

Does this PR introduce any user-facing changes?

/cc @scottsand-db


text:
Add post-processing to render OHLCV charts

We should have a function to add OHLCV data to the trades dataframe and another function that renders the plot.

Initial pass in #543  is sufficient to consider this task done. Future tasks should be to improve & test the charts

repo: delvtech/elf-simulations


text:
Playlist.write fails

Describe the bug
Calling Playlist.write makes stuff explode.
I am running python 3.8.5.
To Reproduce
Steps to reproduce the behavior:

Run the examples in the Read me
Be presented with a stacktrace

Traceback (most recent call last):
  File "aaa.py", line 24, in <module>
    playlist.write("some_tracks.xspf")
  File "/home/fence/.local/lib/python3.8/site-packages/xspf_lib/__init__.py", line 372, in write
    self.xml_eltree.write(file_or_filename,
  File "/usr/lib/python3.8/xml/etree/ElementTree.py", line 770, in write
    qnames, namespaces = _namespaces(self._root, default_namespace)
  File "/usr/lib/python3.8/xml/etree/ElementTree.py", line 880, in _namespaces
    add_qname(tag)
  File "/usr/lib/python3.8/xml/etree/ElementTree.py", line 864, in add_qname
    raise ValueError(
ValueError: cannot use non-qualified names with default_namespace option

It appears to write it when you comment out the default_namespace argument on line 376.
I am honestly not too familiar with ElementTree module, its just what I observed, maybe its also related to https://bugs.python.org/issue17088

Hello there, thanks for your feedback!
I checked example and this is really don't work even on my PC (but I swear, I double swear this worked earlier :) )
I made some fixing and published it in new version 0.1.2, so you can check this again.
Thank you!


text:
Python import bundler

In the worst case we'll have to write our own tool. But there are some standalone Python app bundlers that might also do the trick, for example https://py2app.readthedocs.io/en/latest/
All we need is to get all imported modules into one directory so that RustPython's py_freeze works

Very useful thread: https://stackoverflow.com/questions/106725/how-to-bundle-a-python-application-including-dependencies

freeze.py doesn't work, it doesn't produce .py or .pyc files. pyinstaller is producing a directory with .pyc files, but it has a lot of extra stuff as well. It seems most promising so far.

The import bundler is working rather well

repo: demergent-labs/kybra


text:
Typo in the word tree

Status
Ready
Related Issues
none
Description
Typo in the word tree
Screenshots
none

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

Hi @LatinSuD can you please sign the license?
https://cla-assistant.io/demisto/content-docs?pullRequest=1185

authors: CLAassistant LatinSuD MosheEichler

repo: demisto/content-docs


text:
🛑 Whoogle Poko is down

In c6d5d05, Whoogle Poko (https://wg.poko.dob.jp) was down:

HTTP code: 502
Response time: 5064 ms

Resolved: Whoogle Poko is back up in 7a75335.

repo: demonsteru/up


text:
Add refit function to run

Because of the Downscale > Transform > Upscale flow, I was experiencing an issue where the background rectangle generated by Primitive was smaller than the viewBox of the final svg, leaving some unsightly whitespace. The cause was some aspect ratio rounding trouble and the simplest fix seemed to be this - adjusting the height and width of the background rectangle before minifying the thing.
This guarantees the background rectangle and the viewbox are always the same size.

@denisbrodbeck Just want to make sure you saw this. If you have any questions about why this is needed I can explain in more detail.

@sircinnamon Sorry for the late reply. Just got home from vacation. Going to check out your pull request this afternoon.

@sircinnamon Your test seems to fail for me 😞
go test -v

...
=== RUN   TestRefit
--- FAIL: TestRefit (0.00s)
        svg_test.go:84: Refit()
                got = <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="189" height="280"><rect x="0" y="0" width="190" height="280" fill="#ffffff" fill-opacity="0.501961" points="34,49 35,99 151,59" /></g></svg>
                want = <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="189" height="280"><rect x="0" y="0" width="190" height="280" fill="#242221" /><g transform="scale(1.093750) translate(0.5 0.5)"><polygon fill="#ffffff" fill-opacity="0.501961" points="34,49 35,99 151,59" /></g></svg>
...

@denisbrodbeck You're absolutely correct - Not sure why I wasn't seeing that before but the regex was greedily jumping to the last match. I have corrected it and it seems to pass the test now.
Nice to know the test works at least! :smile:

Excellent thank you! No worries, this tool has been really useful for us!

authors: denisbrodbeck sircinnamon

repo: denisbrodbeck/sqip


text:
Provide more complete example of JSON object for actor profile show action

I've had to field some questions in the last weeks where some of our users requested a full json object structure (for actor profiles) - the example snippet we currently display is somewhat limited, so we should add all fields that we currently output in V1 of the API (this means also adding all available nested JSON objects), i.e.:

add missing fields (this should not be too involved)
pictures (at least two)
external_showreels
showreels (let's include at least two),
vita (include full object -  and full examples for vita_types primary_education, award, education, film (include two entries here so users see an example for an array of hashes), television - the remaining vita_types should be included but can be empty arrays.

Fill out a profile locally with real values from a public profile (adapt e.g. from https://www.castupload.com/actors/adrian-topol)

Can I use dummy URLs for pictures and external showreels? Something like "test.png".

authors: andreas-venturini yoshih

repo: denkungsart/castupload-doc


text:
[Bug]: Can't detect git in Linux (Ubuntu 22.04) (Obsidian Snap)

Describe the bug
I installed obsidian and loaded my plugins. Every plugin works except Obsidian-Git.
It fails to load on start-up and gived the message "git obsidian error: Cannot run git command". I clearly have git installed and am using it manually to update the repository for now since the plugin is not working.
Below I pasted the error I get from the developer console.
I am no expert in snap environments but I think it might have to do with that.
Relevant errors (if available)
app.js:1 Obsidian Developer Console
VM148:14142 loading Obsidian Git plugin
VM158:23703 loading markdown-table-editor plugin
VM159:32574 Loading Mind Map plugin
VM148:11057 Error: spawnSync git ENOENT
    at __node_internal_captureLargerStackTrace (node:internal/errors:464:5)
    at __node_internal_errnoException (node:internal/errors:594:12)
    at Object.spawnSync (node:internal/child_process:1083:20)
    at spawnSync (node:child_process:821:24)
    at SimpleGit.isGitInstalled (eval at <anonymous> (app.js:1:1494667), <anonymous>:11053:57)
    at SimpleGit.eval (eval at <anonymous> (app.js:1:1494667), <anonymous>:10754:16)
    at Generator.next (<anonymous>)
    at eval (eval at <anonymous> (app.js:1:1494667), <anonymous>:66:61)
    at new Promise (<anonymous>)
    at __async (eval at <anonymous> (app.js:1:1494667), <anonymous>:50:10)
    at SimpleGit.setGitInstance (eval at <anonymous> (app.js:1:1494667), <anonymous>:10753:12)
    at new SimpleGit (eval at <anonymous> (app.js:1:1494667), <anonymous>:10750:10)
    at ObsidianGit.eval (eval at <anonymous> (app.js:1:1494667), <anonymous>:14314:27)
    at Generator.next (<anonymous>)
    at eval (eval at <anonymous> (app.js:1:1494667), <anonymous>:66:61)
    at new Promise (<anonymous>)
    at __async (eval at <anonymous> (app.js:1:1494667), <anonymous>:50:10)
    at ObsidianGit.init (eval at <anonymous> (app.js:1:1494667), <anonymous>:14312:12)
    at eval (eval at <anonymous> (app.js:1:1494667), <anonymous>:14259:51)
    at t.<anonymous> (app.js:1:1443816)
    at app.js:1:234991
    at Object.next (app.js:1:235096)
    at s (app.js:1:233835)
isGitInstalled @ VM148:11057
VM148:11057 Error: spawnSync git ENOENT
    at __node_internal_captureLargerStackTrace (node:internal/errors:464:5)
    at __node_internal_errnoException (node:internal/errors:594:12)
    at Object.spawnSync (node:internal/child_process:1083:20)
    at spawnSync (node:child_process:821:24)
    at SimpleGit.isGitInstalled (eval at <anonymous> (app.js:1:1494667), <anonymous>:11053:57)
    at SimpleGit.eval (eval at <anonymous> (app.js:1:1494667), <anonymous>:10935:17)
    at Generator.next (<anonymous>)
    at eval (eval at <anonymous> (app.js:1:1494667), <anonymous>:66:61)
    at new Promise (<anonymous>)
    at __async (eval at <anonymous> (app.js:1:1494667), <anonymous>:50:10)
    at SimpleGit.checkRequirements (eval at <anonymous> (app.js:1:1494667), <anonymous>:10934:12)
    at ObsidianGit.eval (eval at <anonymous> (app.js:1:1494667), <anonymous>:14315:46)
    at Generator.next (<anonymous>)
    at eval (eval at <anonymous> (app.js:1:1494667), <anonymous>:66:61)
    at new Promise (<anonymous>)
    at __async (eval at <anonymous> (app.js:1:1494667), <anonymous>:50:10)
    at ObsidianGit.init (eval at <anonymous> (app.js:1:1494667), <anonymous>:14312:12)
    at eval (eval at <anonymous> (app.js:1:1494667), <anonymous>:14259:51)
    at t.<anonymous> (app.js:1:1443816)
    at app.js:1:234991
    at Object.next (app.js:1:235096)
    at s (app.js:1:233835)
isGitInstalled @ VM148:11057
VM148:14652 git obsidian error: Cannot run git command

Steps to reproduce

Prerequisite: have git installed on the system
install obsidian as a snap on ubuntu 22.04
install obsidian-git plugin
restart obsidian
It fails to load

Expected Behavior
No response
Addition context
No response
Operating system
Linux
Plugin version
1.25.3

Please search for existing issues before creating a new one.
Duplicate of #89.
Please read this comment

repo: denolehov/obsidian-git


text:
[Feature Request]: Push on Close

In addition to having a regular time interval to commit and push my changes, I wish to have the feature to commit and push all my changes just before I close the application. Is this possible?

Duplicate of #13


text:
Improvement to Dockerfile.local to facilitate faster development

Expected Behavior
When I save changes to local source code, the development server should automatically restart to pick up the changes.  This is what happens when developing locally in a virtual environment.
Actual Behavior
The container defined in Dockerfile.local is identical to the production Dockerfile in that it uses the COPY directive to move all source code from the build host to the container.  If I want to update the code on the Dockerfile.local container, I have to rebuild the container or manually copy it using docker copy.  This slows development.
A better approach is to use the VOLUME directive to mount the local environment's source files to the container.  Additionally, Dockerfile.local should use the ENV directive to set FLASK_ENV=development.  This change will make the Flask dev server automatically restart upon changes and yield additional debug output.
Additional
This task should include updating the README file.

@kalbfled Thank you for the ticket! I added our team label: Notify. We will discuss this more with the team in refinement :). In the future, do you mind @ing me and @zlaw on new tickets? Will help us to find them and alert me to prioritize them in our list.

Please add your planning poker estimate with ZenHub @kalbfled

authors: kalbfled mjones-oddball zlaw


text:
rebase-strategy: auto + delay

When dependabot finds n updates, it creates n PRs. As I merge them one-by-one, this causes (n^2 + n)/2 CI-Pipeline runs and almost as many rebases.
At the moment, there are two options for rebase-strategy:

auto: to use the default behavior and rebase open pull requests when changes are detected.
disabled: to disable automatic rebasing.

I would like to have rebase-strategy: delayed. It should be similar to auto, but with a customizable delay, e.g. 1 hour. This would give me one hour to rebase+merge if I see a couple of PRs without making the CI go crazy.
Another option that I would love is something like rebase-strategy: stacked. Dependabot can choose in which order it thinks dependencies should be updated (e.g. by the order in the dependency specs). It only updates a PR if the previous one was merged (or maybe an @dependabot: skip command was triggered).

Related to #4338 #2208 #2243 and #4545

👋 Sorry for the slow reply, finally catching up on some of our backlog.
delayed seems like a reasonable request, although implementing it may be tougher than it sounds as we'd have to track state + deal with conflicts, but as a feature it makes sense.
I doubt we'd do stacked, it's really difficult to predict the best order for a rebase. If the goal is simply to minimize CI runs, and you don't mind a single PR/commit, then solutions like:

#1296
#1190
might provide another way to solve it.

Another option to reduce CI runs is to use the recently announced Merge Queue feature:
https://github.blog/changelog/2023-02-08-pull-request-merge-queue-public-beta/
Note that this solves for PR rebases, but not Dependabot rebases... when Dependabot rebases, it's effectively re-calling the package manager to re-resolve the manifest / lockfile. For example, if you bump one dep that changes the indirect constraint on another package, that may affect the outcome of the resolving... a normal PR rebase won't pick that up so could result in breakage.

Hi, do we have any status on this feature ? Thanks

authors: MartinThoma acuD1 jeffwidman mwaddell

repo: dependabot/dependabot-core


text:
Add Ruby RBS Type Signatures

This PR explores the use of RBS and Steep to improve our Ruby source code.
Run the following commands in this branch to try it out:
$ cd common
$ bundle install
$ bundle exec steep check

After doing the work to implement type signatures manually for a small ecosystem, I've concluded that it's too much effort. If we could get RBS / Steep to infer types automatically (perhaps by co-mingling code that calls ecosystem plugins directly, like in dependabot-script), then it might be worth taking another look.


text:
fix Faraday find_proxy slowness

I noticed significant delay at the start of gathering data for the PR. I tracked this down to Faraday's feature of finding a proxy in the environment. For whatever reason it's very slow for us in our smoke tests, and possibly production.
To fix it, I've set the proxy explicitly from the environment, if it's set there. If it's not, it will again fall back to the old behavior. So if anyone is relying on that, it should still work.

Oh wow, that seems to have made quite a difference. Comparing this with and without:

test
before
after

bundler
5:39
1:55

go
6:54
2:34

terraform
9:12
2:32

For reference this is where we use find_proxy https://github.com/dependabot/dependabot-core/blob/a2afea4f8d4a6bf52f3e46f0603d31dbbd56452b/updater/lib/dependabot/api_client.rb#L146

This us soooooooo awesome! Thank you @jakecoffman! 😍

authors: Nishnha deivid-rodriguez jakecoffman


text:
.env.local.php in Symfony recipe

Hi !
I'm a bit confused with the .env.local.php value in the shared_files of the Symfony recipe (and regarding #1907 and #1923 i am probably not the only one :p)
For me, this file should not be include here, as it have to be generate using the symfony:dump-env command (which is part of Symfony/Flex, see https://symfony.com/doc/current/configuration.html#configuring-environment-variables-in-production) in order to compile the .env file which is versioned, with the .env.local which is stored on the server.
The problem here is that if you add a new bundle requiring a new env value, deploy:vendors will fail as the .env.local.php will not include it even if you already added it to your .env.local, because .env.local.php will be called first. And it is not possible to generate a new .env.local.php as the vendors aren't installed yet.
For me, the best solution would be to remove the .env.local.php file from the shared_files, create a deploy:dump-env task and call it just after the deploy:vendors task

So if I get that correct, then we want to share .env.local between deployments and run  composer dump-env prod on each deployment?

Yes, exactly!
set('shared_files', ['.env.local']);

And
desc('Compile .env files');
task('deploy:dump-env', function () {
    run('cd {{release_path}} && {{bin/composer}} dump-env {{symfony_env}}');
});

Sounds good! Do you want to provide a PR? Would be a blast! <3

Hi
Just for you to know, it cause a regression : we now need to define symfony_env (that doesn't exist in version v7.0.0-beta.20)

@Cryde I've added symfony_env in c23688adcfb6050dcf847bc58bf6adfac3b68147, Thanks for noticing!

Thank you (and the other contributors) for all your work !

authors: Cryde Schrank antonmedv victor-paumier

repo: deployphp/deployer


text:
Use a single combined log stream for each component.

Much simpler now :)
Next step will be to include the workspace itself as a log stream, so we can have system events there. Should be a fast follow-up PR.

Closing as subsumed by #383

repo: deref/exo


text:
Abandon Ware?

I downloaded the iOS 10.3 simulator and form field editing still works there, but iOS 12 and 13 (Haven't tried 11 yet) you can't edit any longer. Anyhow, just posting this here so that others aren't wondering if it should be working in iOS 13+. It doesn't currently. Thanks.

Any update?

Fixed in 2.0.0

authors: derekblair perlmunger psirigiano

repo: derekblair/ILPDFKit


text:
LUA Error on Open Profession, Update 12.0.0

1x CraftSim/Libs/GUTIL/GUTIL.lua:318: bad argument #1 to 'abs' (number expected, got nil)
[string "=[C]"]: in function `abs'
[string "@CraftSim/Libs/GUTIL/GUTIL.lua"]:318: in function `FormatMoney'
[string "@CraftSim/Modules/CustomerHistory/Frames.lua"]:238: in function `fillFunc'
[string "@CraftSim/Libs/GGUI/GGUI.lua"]:2187: in function `Add'
[string "@CraftSim/Modules/CustomerHistory/Frames.lua"]:231: in function `UpdateCustomerHistoryList'
[string "@CraftSim/Modules/CustomerHistory/Frames.lua"]:218: in function `UpdateDisplay'
[string "@CraftSim/Main/CraftSim.lua"]:433: in function <CraftSim/Main/CraftSim.lua:432>
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: in function `Show'
[string "@FrameXML/UIParent.lua"]:2938: in function `SetUIPanel'
[string "@FrameXML/UIParent.lua"]:2781: in function `ShowUIPanel'
...
[string "@TradeSkillMaster/LibTSM/Util/FSMClasses/Machine.lua"]:168: in function <.../TradeSkillMaster/LibTSM/Util/FSMClasses/Machine.lua:150>
[string "@TradeSkillMaster/External/LibTSMClass-2/LibTSMClass.lua"]:332: in function `_Transition'
[string "@TradeSkillMaster/LibTSM/Util/FSMClasses/Machine.lua"]:127: in function <.../TradeSkillMaster/LibTSM/Util/FSMClasses/Machine.lua:105>
[string "@TradeSkillMaster/External/LibTSMClass-2/LibTSMClass.lua"]:332: in function `ProcessEvent'
[string "@TradeSkillMaster/Core/UI/CraftingUI/Core.lua"]:193: in function `callback'
[string "@TradeSkillMaster/LibTSM/Util/Event.lua"]:132: in function `ProcessEvent'
[string "@TradeSkillMaster/LibTSM/Util/Event.lua"]:150: in function <TradeSkillMaster/LibTSM/Util/Event.lua:141>
[string "=[C]"]: in function `OpenTradeSkill'
[string "@ElvUI_Professions/ElvUI_Professions.lua"]:153: in function `onClick'
[string "@ElvUI/Core/Modules/DataTexts/DataTexts.lua"]:440: in function <...ceElvUI/Core/Modules/DataTexts/DataTexts.lua:438>

Locals:
(*temporary) = nil
(*temporary) = "number expected, got nil"

I see! Pushing a hotfix right now.. 12.0.3

thanks! 👍


text:
Ako/ add production workflow

Added Production Workflow
Used the actions from shared-actions repository
Fixed Staging Workflow

Pull Request Test Coverage Report for Build 9412855907
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 75.252%

Totals

Change from base Build 9403467425:
0.0%

Covered Lines:
4387

Relevant Lines:
5280

💛  - Coveralls

Pull Request Test Coverage Report for Build 9412867920
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 75.252%

Totals

Change from base Build 9403467425:
0.0%

Covered Lines:
4387

Relevant Lines:
5280

💛  - Coveralls

authors: ali-hosseini-deriv coveralls


text:
problems on firefox mobile

Only on mobile firefox (android), I have the problem, that imagesLoaded with collagePlus does not seem to work right.
The collage is broken and it looks as if the function is fired before all images are loaded. I am not sure if the problem is imagesLoaded or the EventEmitter or eventie. collagePlus works without imagesLoaded, so I think it is perhaps not the problem.
here is my code:
$(document).ready(function() {

    //image loading & percent
    function imgpercent(){
        var imagecount = 0;
        var imagestotal = $('.Image_Wrapper').length;
        $('.Collage').imagesLoaded()
            .progress( function( instance, image ) {
                imagecount++;
                var percent = 100 / imagestotal * imagecount;
                $('#progress').text(Math.floor(percent) + '%');
            })
            .always( function( instance ) {
                collage();
                $('#progress').hide();
            });
    };
    imgpercent();

    //random pics
    $('.randpics').imagesLoaded()
            .always( function( instance ) {
                randcollage();
            });
});

The functions collage and randcollage (they are included before the other code without 'document ready function'):
function collage(){
	$('.Collage').removeWhitespace().collagePlus({
		'targetHeight': 250,
		'allowPartialLastRow' : true
	}).fadeTo('fast',1);
};
function randcollage(){
	$('.randpics').removeWhitespace().collagePlus({
		'targetHeight':100,
		'allowPartialLastRow' : true
	}).fadeTo('fast',1);
};

I only have problems with firefox on android. (here --> https://flavuur.de )
Does somebody have similar problems, or a solution?

Is there a general difference between 'desktop firefox' and firefox mobile, perhaps a different javascript engine ?
I have tried with Windows 8 + firefox and archlinux/gnome + firefox which worked, and android + firefox on a fairphone and android + firefox on a samsung smartphone, which both produced a 'destroyed' image-collage. So I thought, there could be a difference between firefox and firefox for android, but I don't know where. Sorry if this is a bit offtopic.

it seems, that i had another function that called collage() before all images were loaded.
	$(window).bind('resize', function() {
		if($(window).width() != width){
                   //start collage
		}
	});

it should rearrange the photos, when the browser-window is resized, but i think it fired too early, perhaps because of scrollbars (?). I have built this around it, now it seems to work:
$(window).bind('load', function() {
    //rearrange photos
});

repo: desandro/imagesloaded


text:
Refactor/localization

Description

CHANGES:

localization is now in en.json
PostsLocalizations.of(context).translate("accountScreenTitle") example of how localization will now work
will return an empty string if key is not found in json

Checklist

[ ] Targeted PR against correct branch.
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[ ] Wrote unit tests.
[ ] Run flutter format.
[ ] Updated the documentation.
[ ] Added an entry to the CHANGELOG.md file.
[ ] Re-reviewed Files changed in the Github PR explorer.

@RiccardoM I actually worked off your UI test branch (whoops but should be fine. I just wanted to merge in the localization first before tackling the ui tests). Anyways wanted you to take a quick look, will we ever use localization outside of UI? Ex. in one of the try/catch source implementations we hit an error and want to send a message back to the UI.

will we ever use localization outside of UI? Ex. in one of the try/catch source implementations we hit an error and want to send a message back to the UI.

Ideally, not. What should happen instead is we are going to throw different exceptions (represented by different classes) and then translate them into messages for the user when they are caught inside the Bloc. Also because we cannot know from the repository or source how the Bloc is going to display such errors (a popup, an error message associated to an input field, etc).

@ryuash I'm not a big fan of using variable strings inside the .translate("") method. If one translation is used in multiple places, this can lead to typos all over the place if the developer is not careful enough. In order to take advantage of the compile errors, can we create a class full of static const variables that represent the different JSON keys and use them instead?
So this
 PostsLocalizations.of(context).translate("appName")

Can become this
class Messages {
  static const APP_NAME = "appName";
  // ...
}

PostsLocalizations.of(context).translate(Messages.APP_NAME);

This would make sure that developers cannot do typos when specifying the message that should be used.

@RiccardoM can merge this first if you will be touching ui anytime soon. I'm on a different branch for the actual ui testings

authors: RiccardoM ryuash

repo: desmos-labs/mooncake


text:
fix go package number

This PR fixes the following bug:
ERROR: unable to select packages:
  go-1.16.5-r0:
    breaks: world[go=1.16.4-r0]

The core repo also uses go-1.16.5-r0. I think that's where the issue comes from.

Issue fixed in https://github.com/deso-protocol/mongodb-dumper/pull/15
So this could be closed.

repo: deso-protocol/mongodb-dumper


text:
How to get it up and running for Android projects ?

Hey, so I wanted to update the version from version 1.7.3 to 1.14.2 and I am having problems with the migration.
Previous setup:
In the project level build.gradle
classpath 'io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.7.3'
In the app level build.gradle
apply from: '../config/quality.gradle'
The quality.gradle file
apply plugin: 'io.gitlab.arturbosch.detekt'

configurations {
    detekt
    ktlint
}

def variants = android.hasProperty('libraryVariants') ? android.libraryVariants : android.applicationVariants

variants.all { variant ->
    task("detekt${variant.name.capitalize()}", type: JavaExec) {
        group = "Verification"
        main = "io.gitlab.arturbosch.detekt.cli.Main"
        classpath = configurations.detekt

        def input = projectDir
        def output = "${buildDir}/reports/detekt/"
        def outputName = "${variant.name}.xml"
        def report = "xml:$output$outputName"
        def exclude = ".*/build/.*,.*/resources/.*"
        def config = "${project.rootDir}/config/quality/detekt/default-config.yml"

        args(['-i', input, '-r', report, '-c', config, '-ex', exclude, '--fail-fast'])
    }
}

Now if I just update the version I am getting an error that the tasks with these names already exist. And I can not do overwrite: true as it doesn't exist. ( not sure about the last one, I'm just saying what I got from logs )
A problem occurred configuring project ':app'.
> Cannot add task 'detektDevelopDebug' as a task with that name already exists.

Caused by: java.lang.IllegalStateException: Unnecessarily replacing a task that does not exist is not supported.  Use create() or register() directly instead.  You attempted to replace a task named 'detektDevelopDebug', but there is no existing task with that name.

I also see from documentation that there is another way to setup detekt using detekt { ... } clojure . But I can't figure it out where it should be placed. I tried in both project and module level build.gradle and no effect.
Also if I comment the old task creation and try to run gradlew app:detektDevelopDebug it works (with default settings I guess) exactly once. The second time I try to run it, I get :
java.nio.file.FileSystemException: ...\app\build\intermediates\compile_and_runtime_not_namespaced_r_class_jar\developDebug\R.jar: The process cannot access th
e file because it is being used by another process.

Only Invalidate build/Restart would allow me to run it once again.
Kotlin version: 1.4.20
Gradle version: 4.1.1
Gradle wrapper: gradle-6.5-all

Recently, I have written about this here.
Could you please check, whether this helps in your case? Please report back your results.

authors: iAmMONK schalkms

repo: detekt/detekt


text:
Implement sarif partialFingerprint

Closes #7683
There are 2 things that I have not clear about this implementation:
First: What do we use to generate the partial fingerprint?
My proposal is to use the singature. That's the same to what the Baseline uses. But it's not perfect. You can have multiple issues with the same signature. We could also add line:column to the mix or even filename:line:column. That will reduce the collisions but the partial fingerprints could change a lot between executions. Unrelated changes with the issue (for example add an import to a file) would change their fingerprint. For the baseline this is a huge problem but I'm not sure if that's a problem on a SARIF report.
Second: Which hash algorithm should we use?
In this PR I'm using String.hashCode(). But I'm not sure if that will be enought to avoid collisions. Other options are sha1 or just don't hash it at all.

Warnings

:warning:
It looks like this PR contains functional changes without a corresponding test.

  Generated by :no_entry_sign: dangerJS against 4d12b1ffd500fc610cc89ddc94ac4a4977b8c1db

I think before implementing there should be agreement on what the signature would be - maybe in the comments on the original issue?
The spec says:

A result management system SHOULD NOT include an absolute line number

GitHub docs suggest looking at the CodeQL action to see the logic used there, we could potentially port that over: https://github.com/github/codeql-action/blob/main/src/fingerprints.ts

authors: 3flex BraisGabin detekt-ci


text:
Add contract address calculator based on from and nonce

Closes #88

@7sne hi. Any chance this and my other PRs will be merged? I use the address calculator extensively at work and it would be nice if it was accessible at https://tools.deth.net.

@7sne hi. Any chance this and my other PR will be merged? I use the address calculator extensively at work and it would be nice if it was accessible at https://tools.deth.net.

Hello @olehmisar. I'm really glad and thankful for your contributions to this project. Unfortunately, I've been really busy lately and have little time for this project. Anyways, I will try to look into your changes as soon as I can.

repo: dethcrypto/dethtools


text:
🛑 Nextcloud is down

In 4a43f62, Nextcloud (https://cloud.deutscher-pfadfinderbund.de) was down:

HTTP code: 503
Response time: 1608 ms

Resolved: Nextcloud is back up in ab3f2ac.

repo: deutscher-pfadfinderbund/status


text:
change: decrease the width of the text container

Previously, the text was quite spread out making it harder to read.

preview: https://deploy-preview-14--bitcoin-dev-blog-preview.netlify.app/

repo: dev-bitcoin/blog


text:
Setup palette (Material UI)

Palette
The palette enables you to modify the color of the components to suit your brand.
Overview

References

Palette customization

MUI doc https://docs.minimals.cc/package/

Color schema
{
  "primary": {
    "lighter": "#D0ECFE",
    "light": "#73BAFB",
    "main": "#1877F2",
    "dark": "#0C44AE",
    "darker": "#042174",
    "contrastText": "#FFFFFF"
  },
  "secondary": {
    "lighter": "#EFD6FF",
    "light": "#C684FF",
    "main": "#8E33FF",
    "dark": "#5119B7",
    "darker": "#27097A",
    "contrastText": "#FFFFFF"
  },
  "info": {
    "lighter": "#CAFDF5",
    "light": "#61F3F3",
    "main": "#00B8D9",
    "dark": "#006C9C",
    "darker": "#003768",
    "contrastText": "#FFFFFF"
  },
  "success": {
    "lighter": "#D3FCD2",
    "light": "#77ED8B",
    "main": "#22C55E",
    "dark": "#118D57",
    "darker": "#065E49",
    "contrastText": "#ffffff"
  },
  "warning": {
    "lighter": "#FFF5CC",
    "light": "#FFD666",
    "main": "#FFAB00",
    "dark": "#B76E00",
    "darker": "#7A4100",
    "contrastText": "#1C252E"
  },
  "error": {
    "lighter": "#FFE9D5",
    "light": "#FFAC82",
    "main": "#FF5630",
    "dark": "#B71D18",
    "darker": "#7A0916",
    "contrastText": "#FFFFFF"
  },
  "grey": {
    "50": "#FCFDFD",
    "100": "#F9FAFB",
    "200": "#F4F6F8",
    "300": "#DFE3E8",
    "400": "#C4CDD5",
    "500": "#919EAB",
    "600": "#637381",
    "700": "#454F5B",
    "800": "#1C252E",
    "900": "#141A21"
  },
  "common": {
    "black": "#000000",
    "white": "#FFFFFF"
  }
}

repo: dev-nguyenhoanganh/personal-profile


text:
Perfect vision not showing up under configure game settings

Expected Behavior
To be able to edit the Perfect vision settings under Configure game Settings
Current Behavior
After enabling  the perfect vision module it does not show u

p under Configure Game Settings
Steps to Reproduce

Install Module
activate Module
Check to see if Module is active under Configure module settings
It is not there

Context
I have tested this on a clean dnd5e world with only Libwrapper module enabled to rule out all other  module interference.
I have removed the module restarted foundry and installed again and it is still not showing the module settings
Version
v4.0.29
Foundry VTT Version
v10.288
Operating System
windows 11
Browser / App
Native App (Electron)
Game System
dnd5e
Relevant Modules
No response

Since introduction of Vision/Detection Modes in V10, vision rules and darkvision have been removed from PV; that's all core now. So PV doesn't have game settings at the moment. If you don't use PV's Lighting Drawings or Vision Limitation (Sight Limit) and only have been using PV for darkvision, you may uninstall it. You can configure darkvision in the token's vision config. The Adequate Vision module might also make your life easier and offers some enhancements specifically for dnd5e.


text:
Adicionar comentários ao código

Gostaria de adicionar comentários ao código para torná-lo mais fácil de entender e manter. Atualmente, é difícil entender o que cada parte do código está fazendo. Adicionando comentários, podemos tornar o código mais legível e fácil de manter no futuro. Além disso, podemos adicionar algumas variáveis para armazenar as strings para as insignias e jogadores, para tornar o código mais flexível e expansível.

Melhorias adicionadas ao projeto

repo: devGustavoR/SorteadorPixelmon


text:
getTotalCost as float

The CartItem class accepts price as float, but when retrieving the total cost, the SimpleCalculator cast them as integer

It happens because CartItem::getCost() method uses function ceil(). In the database, the productFieldPrice can be a string, float or an integer, but will be returned as an integer. And it is much better to store prices in the database as an integer than a float.

Thanks Devanych!
In my case, I need to keep it as float.
In case someone needs a workaround:

Create a FloatCalculator class implementing devanych\cart\calculators\CalculatorInterface
Copy the methods from SimpleCalculator
Replace $item->getCost() by $item->getPrice() in getCost method
Remember to specify this new class in main.php as calculatorClass

Thanks, closing.

authors: devanych vAlmaraz


text:
lattice_reader.py does not support multiple packages

Is your feature request related to a problem? Please describe.
When looking at a .csv from lattice, such as the latest official one here: https://www.latticesemi.com/view_document?document_id=51576, which contains a list of multiple packages, the expectation from the user is that this tool would output parts for all the packages, but instead, it only outputs a part for the first. To get the part you want, you need to edit the .csv file.
Describe the solution you'd like
It would be more conventient for the tool to use ALL the .csv data to output parts for ALL included lattice packages, but this doesn't seem possible at the moment since kipart ASSUMES that each plugin returns only one part per .csv file.
Describe alternatives you've considered
Would you be open to me making a PR to support this functionality myself? This will probably involve some deep changes if I do it.
Additional context
For instance, here is a section of the .csv file:
# Pin Out For ECP5U-12,,,,,,,,,,
# Revision 1.1 - Include CABGA256 package,,,,,,,,,,
"# Revised Oct. 17, 2017",,,,,,,,,,
# Revision 2.0 - Include TQFP144 package,,,,,,,,,,
"# Revised Sep. 17, 2021",,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
PAD,Pin/Ball Function,Bank,Dual Function,Differential,High Speed,DQS,CABGA381,CSFBGA285,CABGA256,TQFP144

Which I EXPECT would output a package for ,CABGA381,CSFBGA285,CABGA256 and TQFP144, but default only outputs for the first one, i.e. CABGA381.

I don't pay much attention to my KiCad tools any more, so it's fine if you want to modify this one and send me a PR. I'll check to make sure it still passes the tests and then put it on PyPi, but that's about it.
Good luck!

authors: devbisme etheory

repo: devbisme/KiPart


text:
Cannot find credentials managed by credential helpers when attempting to download features.

To prevent the storage of plain-text credentials, docker publishes credential helpers.  While docker itself transparently works with these credential helpers (to the point that it will auto-configure itself if it finds them in $PATH), the current cli is not set up to handle them, and fails to find the resulting credentials.
With a credential helper installed, ~/.docker/config.json looks like this:
{
	"auths": {
		"private.azurecr.io": {}
	},
	"credsStore": "secretservice"
}

When attempting to build a container that would use these credentials, it fails to find them:
devcontainer build /tmp/somedir/ --log-level trace
(node:278306) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `code --trace-deprecation ...` to show where the warning was created)
[11 ms] @devcontainers/cli 0.31.0. Node.js v16.14.2. linux 5.19.0-32-generic x64.
[11 ms] Start: Run: docker buildx version
[72 ms] Stop (61 ms): Run: docker buildx version
[72 ms] github.com/docker/buildx v0.10.2 00ed17d
[73 ms]
[75 ms] Start: Run: docker inspect --type image private.azurecr.io/alpine
[114 ms] Stop (39 ms): Run: docker inspect --type image private.azurecr.io/alpine
[114 ms] > input: docker.io/private.azurecr.io/alpine
[114 ms] >
[114 ms] > resource: docker.io/private.azurecr.io/alpine
[114 ms] > id: alpine
[114 ms] > version: latest
[114 ms] > owner: private.azurecr.io
[114 ms] > namespace: private.azurecr.io
[114 ms] > registry: docker.io
[114 ms] > path: private.azurecr.io/alpine
[114 ms] manifest url: https://registry-1.docker.io/v2/private.azurecr.io/alpine/manifests/latest
[383 ms] [httpOci] Attempting to authenticate via 'Bearer' auth.
[385 ms] [httpOci] No authentication credentials found for registry 'docker.io'. Accessing anonymously.
[385 ms] [httpOci] Attempting to fetch bearer token from:  https://auth.docker.io/token?service=registry.docker.io&scope=repository:private.azurecr.io/alpine:pull
[918 ms] [httpOci] 401 on reattempt after auth: https://registry-1.docker.io/v2/private.azurecr.io/alpine/manifests/latest
[918 ms] Did not fetch target with expected mimetype 'application/vnd.docker.distribution.manifest.v2+json': {"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":[{"Type":"repository","Class":"","Name":"private.azurecr.io/alpine","Action":"pull"}]}]}
[1177 ms] [httpOci] Attempting to authenticate via 'Bearer' auth.
[1178 ms] [httpOci] No authentication credentials found for registry 'docker.io'. Accessing anonymously.
[1178 ms] [httpOci] Attempting to fetch bearer token from:  https://auth.docker.io/token?service=registry.docker.io&scope=repository:private.azurecr.io/alpine:pull
[1719 ms] [httpOci] 401 on reattempt after auth: https://registry-1.docker.io/v2/private.azurecr.io/alpine/manifests/latest
[1719 ms] Did not fetch target with expected mimetype 'application/vnd.oci.image.index.v1+json': {"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":[{"Type":"repository","Class":"","Name":"private.azurecr.io/alpine","Action":"pull"}]}]}
[1719 ms] Error fetching image details: No manifest found for docker.io/private.azurecr.io/alpine.
[1719 ms] Start: Run: docker pull private.azurecr.io/alpine
Using default tag: latest
latest: Pulling from alpine
eaead16dc43b: Already exists
e7be320108a5: Already exists
a1de773113e3: Already exists
Digest: sha256:1101019e4a775ca0126a627f9f1f649ddbf94c2097887bf08caae0a9ece56255
Status: Downloaded newer image for private.azurecr.io/alpine:latest
private.azurecr.io/alpine:latest
[4075 ms] Stop (2356 ms): Run: docker pull private.azurecr.io/alpine
[4076 ms] Start: Run: docker inspect --type image private.azurecr.io/alpine
[4117 ms] Stop (41 ms): Run: docker inspect --type image private.azurecr.io/alpine
[4117 ms] Start: Run: docker inspect --type image private.azurecr.io/alpine
[4156 ms] Stop (39 ms): Run: docker inspect --type image private.azurecr.io/alpine
[4157 ms] local container features stored at: /home/simhoff/.vscode/extensions/ms-vscode-remote.remote-containers-0.282.0/dist/node_modules/vscode-dev-containers/container-features
[4158 ms] Start: Run: tar --no-same-owner -x -f -
[4171 ms] Stop (13 ms): Run: tar --no-same-owner -x -f -
[4171 ms] workspace root: /tmp/somedir
[4176 ms] Loaded /home/simhoff/.vscode/extensions/ms-vscode-remote.remote-containers-0.282.0/dist/node_modules/vscode-dev-containers/container-features/devcontainer-features.json, which declares 25 features and does not contain explicit source info.
[4176 ms] --- Processing User Features ----
[4176 ms] configPath: /tmp/somedir/.devcontainer/devcontainer.json
[4176 ms] * Processing feature: private.azurecr.io/devcontainers/features/hello:1
[4177 ms] > input: private.azurecr.io/devcontainers/features/hello:1
[4177 ms] >
[4177 ms] > resource: private.azurecr.io/devcontainers/features/hello
[4177 ms] > id: hello
[4177 ms] > version: 1
[4177 ms] > owner: devcontainers
[4177 ms] > namespace: devcontainers/features
[4177 ms] > registry: private.azurecr.io
[4177 ms] > path: devcontainers/features/hello
[4177 ms] manifest url: https://private.azurecr.io/v2/devcontainers/features/hello/manifests/1
[4491 ms] [httpOci] Attempting to authenticate via 'Bearer' auth.
[4492 ms] [httpOci] No authentication credentials found for registry 'private.azurecr.io'. Accessing anonymously.
[4492 ms] [httpOci] Attempting to fetch bearer token from:  https://private.azurecr.io/oauth2/token?service=private.azurecr.io&scope=repository:devcontainers/features/hello:pull
[4807 ms] [-] HTTP request failed with status code 401: : Unauthorized
[4807 ms] [httpOci] Could not fetch bearer token for 'private.azurecr.io': Error: HTTP 401: Unauthorized
[4807 ms] [httpOci] ERR: Failed to fetch Bearer token from registry.
[4807 ms] Request failed
[4807 ms] (!) WARNING: Falling back to deprecated GitHub Release syntax. See https://github.com/devcontainers/spec/blob/main/proposals/devcontainer-features.md#referencing-a-feature for updated specification.
[4807 ms] Github feature.
[4807 ms] Could not resolve Feature 'private.azurecr.io/devcontainers/features/hello:1'.  Ensure the Feature is published and accessible from your current environment.
Error: Failed to process feature private.azurecr.io/devcontainers/features/hello:1
    at bne (/home/simhoff/.vscode/extensions/ms-vscode-remote.remote-containers-0.282.0/dist/spec-node/devContainersSpecCLI.js:1850:3109)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async am (/home/simhoff/.vscode/extensions/ms-vscode-remote.remote-containers-0.282.0/dist/spec-node/devContainersSpecCLI.js:1850:2243)
    at async Uf (/home/simhoff/.vscode/extensions/ms-vscode-remote.remote-containers-0.282.0/dist/spec-node/devContainersSpecCLI.js:1853:1672)
    at async fm (/home/simhoff/.vscode/extensions/ms-vscode-remote.remote-containers-0.282.0/dist/spec-node/devContainersSpecCLI.js:1853:207)
    at async foe (/home/simhoff/.vscode/extensions/ms-vscode-remote.remote-containers-0.282.0/dist/spec-node/devContainersSpecCLI.js:2069:28181)
    at async loe (/home/simhoff/.vscode/extensions/ms-vscode-remote.remote-containers-0.282.0/dist/spec-node/devContainersSpecCLI.js:2069:25018)
{"outcome":"error","message":"Failed to process feature private.azurecr.io/devcontainers/features/hello:1","description":"An error occurred building the container."}

Note that this is a separate issue from #434 .  In that issue, I was deliberately removing the credential helper in an attempt to troubleshoot this one.  There, it finds the credentials, but is still unable to log in, whereas here the credentials are not found.

Silly me.
Duplicate of #349

repo: devcontainers/cli


text:
NPM dependency warnings

First time running the project in a while as been busy with family 😄
When getting setup again, I can see a lot of warnings on the npm install step around:

dependency conflicts
unsupported node engine
security warnings

Would be prudent to clean these up and possibly, once it's clean add a PR check to make sure new PR's don't introduce any new warnings.

I could fix the issues if you'd like (I assumed other contributors will take it but it's been a while...)

I could fix the issues if you'd like (I assumed other contributors will take it but it's been a while...)

That would be awesome, thanks!

authors: DerrykBoyd arashsheyda

repo: devedmonton/DES-Website


text:
#26 callback added on server start

Hello Jason and Friends!
My name is Devon and I'm a full-stack Javascript developer / SDE from California, and been wanting to give back and contribute to the community.  I've always referred to my own ES5 Node/Express starters in the past, and wanted to see if there were any good ES6 ones which is how I stumbled across yours.
Would love to help out with bugs and integrating new features from the bug / feature lists while keeping the project lightweight.  I looked for a contributing guide, but could not find any information so thought I would try to submit a PR this way.
-Devon

Good point regarding a contribution guide - I haven't had the time to spend on this project enough to get that put together. I think there might be a Gitter channel where people discuss things, but I've been absent for a while.

I'd be happy to get a contribution guide started if you'd like, do you also have the gitter link?

authors: developit devonJS


text:
event.off is not removing the event

It seems that off is not working or I am missing something.
I am using mitt it in Vue 3
`import mitt from "mitt";
const Event = mitt();
const app = createApp(App);
app.config.globalProperties.Event = Event;
app.mount('#app');`
I have 2 components Category and CategoryDetails and when changing from one to another it seems that the off is not "destroying" the event.
In CategoryDetails component:
mounted() {         const vm = this;         this.Event.on('category.save', function(){             vm.formSubmit();         });        },
// it should clear the event - to no longer emit
unmounted() {              this.Event.off('category.save');       }
Entering again in CateegoryDetails and emits the save, it make 2 request and so on....
I have tried to use in unmounted:
this.Event.all.clear();
and seems to work.
Why is not working if I specify the event name to off ???
Am i missing something ?

How to solve this problem now？

How to solve this problem now？

I  have solved it that add  all.delete(type) line in off function.

I  have solved it that add  all.delete(type) line in off function.

Manually deleting event : `this.emitter.all.delete('eventName')

I'm assuming the above solution is not ideal / might be messing with internal logic, so is it not possible to make the .off() function take an optional handler instead of required, and if handler is missing, delete all handlers with that label? Then it would work the same as @acuD1's workaround.

Our usecase is defining a handler inline, not as a separate function, eg
bus.on('charge', payload => {
            //do stuff
        })

off(type) should remove all handlers for the given type, be it inline or with specific functions.

.off(name, handler) func means mitt will remove handler from the name handler map.

This isn't enough. Doesn't work for inline listeners.

repo: developit/mitt