text:
Error when trying to run homebridge

[8/2/2018, 4:13:27 PM] [DysonPlatform] Night mode button is added
HAP Warning: Characteristic 000000BF-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 000000B7-0000-1000-8000-0026BB765291. Adding anyway.
internal/crypto/hash.js:58
throw new ERR_INVALID_ARG_TYPE('data',
^
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be one of type string, TypedArray, or DataView. Received type undefined
at Hash.update (internal/crypto/hash.js:58:11)
at config.accessories.forEach (/usr/local/lib/node_modules/homebridge-dyson-link/index.js:72:72)
at Array.forEach ()
at getDevicesFromAccount (/usr/local/lib/node_modules/homebridge-dyson-link/index.js:50:49)
at DysonPlatform.getDevicesFromAccount (/usr/local/lib/node_modules/homebridge-dyson-link/index.js:121:13)
at API.DysonPlatform.api.on (/usr/local/lib/node_modules/homebridge-dyson-link/index.js:49:26)
at API.emit (events.js:187:15)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:98:13)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:43:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
at startup (internal/bootstrap/node.js:238:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)

Anyone? I just can't get this to run.

did you input password explicitly for the device? Or did you use the dyson account to connect?
if that's latter, you will need to make sure you have input the correct country code in the your config(assuming you have verified you have used the correct email and password)

@joe-ng I just can't get this to work, here is my error;
[10/2/2018, 12:38:07 PM] [DysonPlatform] Dyson IP:10.0.1.167 Serial Number:DYSON-NM7-US-XXXXXX-475
[10/2/2018, 12:38:07 PM] [DysonPlatform] Device serial number format valids
[10/2/2018, 12:38:07 PM] [DysonPlatform] Device cached. Try to update this
[10/2/2018, 12:38:07 PM] [DysonPlatform] Init Sensor for Dyson
[10/2/2018, 12:38:07 PM] [DysonPlatform] Init Fan State for Dyson
[10/2/2018, 12:38:07 PM] [DysonPlatform] Auto switch found. Remove this now
[10/2/2018, 12:38:07 PM] [DysonPlatform] Night mode button is added
HAP Warning: Characteristic 000000BF-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 000000B7-0000-1000-8000-0026BB765291. Adding anyway.
Unhandled Error Detected :  TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be one of type string, TypedArray, or DataView. Received type undefined
at Hash.update (internal/crypto/hash.js:58:11)
at config.accessories.forEach (/usr/local/lib/node_modules/homebridge-dyson-link/index.js:73:72)
at Array.forEach ()
at getDevicesFromAccount (/usr/local/lib/node_modules/homebridge-dyson-link/index.js:50:49)
at IncomingMessage.res.on (/usr/local/lib/node_modules/homebridge-dyson-link/index.js:201:25)
at IncomingMessage.emit (events.js:187:15)
at endReadableNT (_stream_readable.js:1081:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
Restarting homebridge due to an error
restarting...
shutting down...
shutting down servers...
starting next hub...
["/usr/local/bin/homebridge"]
waiting for exit...

I have got problem starting Homebridge:
homebridge
[2019-3-22 10:41:37] Loaded config.json with 2 accessories and 1 platforms.
[2019-3-22 10:41:37] ---
[2019-3-22 10:41:38] Loaded plugin: homebridge-dyson-link
homebridge API version: 2.3
[2019-3-22 10:41:38] Registering platform 'homebridge-dyson-link.DysonPlatform'
[2019-3-22 10:41:38] ---
[2019-3-22 10:41:39] Loaded plugin: homebridge-mi-airpurifier
[2019-3-22 10:41:39] ---
[2019-3-22 10:41:39] Loading 1 platforms...
[2019-3-22 10:41:39] [DysonPlatform] Initializing DysonPlatform platform...
[2019-3-22 10:41:39] Loading 2 accessories...
/usr/lib/node_modules/homebridge/lib/api.js:50
if (name.indexOf('.') == -1) {
^
TypeError: Cannot read property 'indexOf' of undefined
at API.accessory (/usr/lib/node_modules/homebridge/lib/api.js:50:12)
at Server._loadAccessories (/usr/lib/node_modules/homebridge/lib/server.js:286:42)
at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:87:38)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:45:10)
at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)

authors: Mirxx joe-ng livefeed

repo: joe-ng/homebridge-dyson-link


text:
Missing OSGi Import-Package for dynamically loaded classes - Assumptions failing

Summary
#1250 fixed the issue of most of the missing imports when used in an OSGi environment. However, there are a number of other packages that are dynamically accessed by AssertJ at run time using Class.forName(). Bnd is not able to automatically determine these references and so they must be explicitly specified in the Import-Package Bnd instruction.
The specific example I ran into was with Assumptions - which sequentially tries to load the assumption classes of JUnit, OpenTest4J and TestNG (in that order). In an OSGi environment, these load attempts will fail unless they are (optionally) imported by the bundle. This issue will only trigger if an assumption fails (as the assumptions only lazily try to load the assumption exception class).
The fix is fairly straightforward, and I have already tested this in my local directory. I hope to submit a PR with the fix shortly.
This and a few other recent OSGi-related bugs that have come up recently (eg, #1250, #1160 and #1181) also perhaps highlights that it would be nice for some kind of integration test in the continuous build process that exercises the OSGi aspects of the implementation.

I do agree it would be nice to validate the OSGi integration, how complicated would that be ?

I'm still trying to get my head around OSGi, OSGi testing, and building OSGi using Maven. :smile: I think for someone who had the know-how it would be doable using tycho-surefire-plugin, or perhaps more fully leveraging bnd/bndtools. I don't think I'm quite there yet, sorry. But it might be worth raising as a separate issue for someone else to work on if they have the time, know-how and the desire to scratch this itch.

I was secretly hoping you were that person @kriegfrj :smile:

Sorry! Don't get me wrong - I do have the desire to scratch itches like this and I think I could acquire the know-how. It's just that last criteria where I am a bit deficient...

No problem @kriegfrj, all good.

source: gharchive/issue

authors: joel-costigliola kriegfrj

repo: joel-costigliola/assertj-core

license_type: permissive

license_source: bigquery


text:
New Feature - Generate Static Constant Instances for examples defined on object schemas

Use Case
An schema of an type=object has a examples property which could be used for generating public static constant instances of the class and attach to the generated object's class.
Given the schema:
{
	"$id": "https://github.com/jsonschema2pojo/schemas/examples/animal/Animal.schema.json",
	"$schema": "http://json-schema.org/draft-07/schema#",
	"description": "",
	"type": "object",
	"javaType": "org.jsonschema2pojo.examples.animal.Animal",
	"properties": {
		"name": {
			"type": "string"
		},
		"scientificName": {
			"type": "string"
		},
		"domain": {
			"type": "string"
		},
		"kingdom": {
			"type": "string"
		}
	},
	"additionalProperties": false,
	"required": [
		"name",
		"scientificName",
		"domain",
		"kingdom"
	],
	"definitions": {
	},
	"examples": [
		{
			"name": "Dog",
			"scientificName": "Canis familiaris",
			"domain": "Eukaryota",
			"kingdom": "Animalia"
		}
	]
}

I could generate something like this...
package org.jsonschema2pojo.examples.animal;

import java.io.Serializable;
import javax.annotation.Generated;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

/**
 *
 */
@JsonInclude(JsonInclude.Include.USE_DEFAULTS)
@JsonPropertyOrder({
    "name",
    "scientificName",
    "domain",
    "kingdom"
})
@Generated("jsonschema2pojo")
public class Animal implements Serializable
{

    public static final Animal DOG = new Animal("Dog", "Canis fmiliaris", "Eukaryota", "Animalia");

    /**
     *
     * (Required)
     *
     */
    @JsonProperty("name")
    @NotNull
    private String name;

Details
General Implementation
The all properties constructor would be used for constructing the object regardless if builders are being used.
Also at least for an initial implementation I would limit it to simple fields, like the primary types and boxed types, strings, but anything else might be a little more complex to construct as a public static CLASS INSTANCE_NAME declaration.
Configurations
Should there be just a single enabling field <generateExamplesAsStaticFields>true</generateExamplesAsStaticFields>?
And/or should it be configured per schema file under a field like "generateExamplesOnObject": "true" which may override the single global configuration if also defined.
Missing Values Defined
The example SHOULD include all fields that are marked as required in the schema. Should we fail the generation if not all "required" values are provided.  Also for any fields that are not provided we should just initialize them to null or possibly the default value of that field if one is provided.
Name Generation
While we could add something like add custom fields like `javaExamplesInstanceNames: [ "DOG" ] I think just taking the first field, if string use that, if not try to convert it to string, then move onto next field.  Once we get a string then upcase it and replace space or other characters into underscores.
Closing Remarks
As usual I will be willing to implement this feature, just want some feedback on if there would be a desire adding this to jsonschema2pojo.

Hi Dan. Really interesting! I had no idea about this new "examples" field.
My initial thought is that this is similar to the "default". The problem is that the examples can be arbitrarily complex, and in the worst case you are implementing the data binding logic of something like Jackson all over again (but as generated source code). On top of this, the examples may not be valid (for an arbitrarily complex set of reasons), and I note that the spec does not actually dictate that they must be valid, so a schema is valid if it contains invalid examples.
I wonder if a simpler first step could be to add the examples (as JSON snippets) to the Javadoc.
I'm struggling to think of examples where fully constructed Java values are particularly useful. Did you have a need for them, or was this proposal just an idea for a useful feature after seeing the "examples" property?

authors: ddcruver joelittlejohn


text:
Handling of List<Map<String, String>>

I have to create one java class where one of the variable is of type List<Map<String, String>>. I am not getting how to represent this is in json schema. Can you please help me with this. I have searched a lot over the internet could not get any working example.
Thanking you,
Guruprasad

Of course there is no way to represent this specific Java type in JSON Schema. If you really need to represent the list items as a map and not a generated type, you can javaType (which is not part of JSON Schema but is an extension provided by this tool).
Try:
{
  "type": "array",
  "items": {
    "type": "object",
    "javaType": "java.util.Map<String, String>"
  }
}

authors: guruprasadkk joelittlejohn


text:
Add a way to change font

Hey. Love the client but would like to change font and size. I couldn't find an option to do so, sorry if it is already available. I can open menu to look at system fonts but can't change.

You can do it though it is not very straight forward.  You unfortunately cannot do it through the UI yet.  You can change font and size in your layout.cfg file.  This file has several entries for each of your defined windows.
Each window has a fontName, fontSize, monoFontName and monoFontSize.  You can change those to the font/size that you like.
Note:  You will need to edit this file while Outlander is not running, otherwise your changes may get overridden when Outlander closes.
Here is an example of what one of the window settings may look like:
{"name":"main","x":0,"timestamp":0,"monoFontName":"Menlo","y":258,"width":1021,"monoFontSize":13,"closedTarget":null,"title":"Story","showBorder":1,"visible":1,"height":432,"fontSize":14,"fontName":"Helvetica"}

Going to close this, let me know if you have any other questions/issues!

authors: jmoya-msights joemcbride

repo: joemcbride/outlander-osx

license: mit


text:
Issues with additional chat windows not working correctly/at all.

@klepp0906 says: creating a 3rd chat window (i make one for loot explicitly) not only does the label not show up on it, but no matter what i have checked inside it filterwise, nothing works.

just to add to this a bit.
ive now added another chat window, and odd as this is i figure it might help you recognize the problem maybe?
the one i added is the one which now loads without the font on the tab and doesnt show anything.  Now the loot one retains its label and is showing loot.  /boggle
the newest one i named "messages" and use rather want to use for tells and bnet messages is busted lol

ya I am trying for one for party chat I hope a update coming for chat soon

repo: joev/SVUI-Temp


text:
added timeout feature

This PR addresses #46.

Pull Request Test Coverage Report for Build 8861901023
Details

9 of 9 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.01%) to 97.413%

Totals

Change from base Build 8802491758:
0.01%

Covered Lines:
1205

Relevant Lines:
1237

💛  - Coveralls

source: gharchive/pull-request

authors: coveralls johannesulf

repo: johannesulf/nautilus

license: MIT

license_source: github-api


text:
Add support for HTTP checks

Newer versions of Consul support built-in HTTP+interval checks (https://consul.io/docs/agent/checks.html). This adds support for http as an alternative to script in the service_def LWRP so we can do e.g.
consul_service_def "service" do
  check(
    id: "service",
    name: "service on port 80",
    http: "http://localhost:80/",
    interval: "10s",
    timeout: "1s"
  )
  notifies :reload, "service[consul]"
end

Coverage remained the same at 100.0% when pulling 7f44766b9eb24ce3c9e1ec22b3cd21098711e1de on mydrive:http-checks into 60e3072a3db35657747a608c83b2209e0101f23b on johnbellone:master.

authors: coveralls gavinheavyside

repo: johnbellone/consul-cookbook


text:
Adding SHA256 information for 0.8.1 release.

Fairly straight forward update of the hash strings.

@ghorejsi Thanks!

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@f01a12d). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #431   +/-   ##
=========================================
  Coverage          ?   61.62%
=========================================
  Files             ?        7
  Lines             ?      357
  Branches          ?        0
=========================================
  Hits              ?      220
  Misses            ?      137
  Partials          ?        0

Continue to review full report at Codecov.

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

authors: codecov-io ghorejsi legal90


text:
Multiple exec calls don't run

Expected
When running this script:
import "@johnlindquist/kit";

const open = (app: string) => exec(`open -a ${app}`);

open("Slack");
open("Discord");

I expect Slack to open, then Discord to open.
Actual
Slack opens, but Discord does not.
Memo
Switching the call order results in Discord opening, but not Slack.

Hmm 🤔 thanks. Seems to work fine when invoked by the terminal, but something about the way the app invokes the script isn't working. I'll hunt it down!

That script runs for me now. Closing, but let me know if you're still seeing the issue

This also works for me as well now!
Is there any reason to use exec now though as zx is available?

I prefer exec:
exec is now using https://github.com/sindresorhus/execa (with shell set to true) instead of shelljs.
api: https://github.com/sindresorhus/execa#execafile-arguments-options
execa has 36,601,997 weekly downloads, so I kind of "trust" it more for working with all scenarios than zx, especially since I'm concerned about Windows support.
zx quotes are a "gotcha"
https://github.com/google/zx/blob/main/docs/quotes.md
Quotes are my biggest gripe with zx. Here's a comparison of what I consider the most common scenario for using exec/zx:
let dir = "~/.kit"

// exec works as expected
let { stdout } = await exec(`ls ${dir}`)
console.log(stdout)

// zx fails because it converts the command to
// ls '$'~/.kit''
await $`ls ${dir}` // ls: $~/.kit: No such file or directory

So personally, I won't use or teach zx because then I'd have to explain the quotes every time. But that's just me.

authors: brandonpittman johnlindquist

repo: johnlindquist/kit


text:
Mention complex specialization

Mention vital role of auto return-type deduction in composite types.

done


text:
using flash attention, RuntimeError: Expected is_sm80 to be true, but got false.

I am fine-tuning llama 30b 4-bit with my custom dataset (alpaca_clean + leet10k) then I tried to enable flash attention, I use this command line:
python finetune.py --grad_chckpt --flash_attention True --groupsize 128 --cutoff_len 2048  --llama_q4_model ./llama-30b-4bit-128g.safetensors --llama_q4_config_dir ./llama-30b-4bit/ ./leet10k-alpaca-merged.json
I saw this error:
Traceback (most recent call last):
 File "/home/eric/git/alpaca_lora_4bit/finetune.py", line 156, in <module>
   trainer.train()
 File "/home/eric/miniconda3/envs/newft/lib/python3.10/site-packages/transformers/trainer.py", line 1662, in train
   return inner_training_loop(
 File "/home/eric/miniconda3/envs/newft/lib/python3.10/site-packages/transformers/trainer.py", line 1929, in _inner_training_loop
   tr_loss_step = self.training_step(model, inputs)
 File "/home/eric/miniconda3/envs/newft/lib/python3.10/site-packages/transformers/trainer.py", line 2709, in training_step
   self.scaler.scale(loss).backward()
 File "/home/eric/miniconda3/envs/newft/lib/python3.10/site-packages/torch/_tensor.py", line 487, in backward
   torch.autograd.backward(
 File "/home/eric/miniconda3/envs/newft/lib/python3.10/site-packages/torch/autograd/__init__.py", line 200, in backward
   Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass
 File "/home/eric/miniconda3/envs/newft/lib/python3.10/site-packages/torch/autograd/function.py", line 274, in apply
   return user_fn(self, *args)
 File "/home/eric/miniconda3/envs/newft/lib/python3.10/site-packages/torch/utils/checkpoint.py", line 157, in backward
   torch.autograd.backward(outputs_with_grad, args_with_grad)
 File "/home/eric/miniconda3/envs/newft/lib/python3.10/site-packages/torch/autograd/__init__.py", line 200, in backward
   Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass
 File "/home/eric/miniconda3/envs/newft/lib/python3.10/site-packages/torch/autograd/function.py", line 274, in apply
   return user_fn(self, *args)
 File "/home/eric/miniconda3/envs/newft/lib/python3.10/site-packages/flash_attn/flash_attn_interface.py", line 77, in backward
   _flash_attn_backward(
 File "/home/eric/miniconda3/envs/newft/lib/python3.10/site-packages/flash_attn/flash_attn_interface.py", line 42, in _flash_attn_backward
   _, _, _, softmax_d = flash_attn_cuda.bwd(
RuntimeError: Expected is_sm80 to be true, but got false.

any idea what I'm doing wrong?
@yamashi

do I need a newer version of cuda maybe?  I'm on 11.7 per the guide https://github.com/s4rduk4r/alpaca_lora_4bit_readme/blob/main/README.md

I'm using a 4090 with latest nvidia drivers installed, and I'm using WSL2

I would assume it's the WSL2 integration that is not done correctly, you probably need to run on windows directly or on a linux install.

its related to this
https://github.com/HazyResearch/flash-attention/issues/138

https://github.com/HazyResearch/flash-attention/issues/138#issuecomment-1466354480

if head size > 64, I wonder if there's a way to set head size to 64

https://github.com/johnsmith0031/alpaca_lora_4bit/blob/f91d4cbb593b097f5dfb60866a04e90044414da6/monkeypatch/llama_flash_attn_monkey_patch.py#L23
but I don't see an argument for num heads.  do you think it would hurt to force it to 64?

It's hardcoded in the model, if you want less attention heads you will need to use the 13b or 7b versions...

Or wait for the upstream fix.  May they say
I guess I'm stuck with 13b for now.  Thank you

I'm also on a 4090 and can confirm that it won't do flash attention.
It's not due to the number of heads, though, it's the head size, which is 128 for all three models, so you won't be using flash attention for back propagation with LLaMA on your current GPU, at least with the current version.
It should still help for inference, though I haven't managed to get that working either, just yet.  And the only implementation I've found doesn't support caching keys/values, which slows down generation way more than the potential speedup from flash attention.

Back of the bus 😭

https://github.com/pytorch/pytorch/issues/94883
It looks like it's fixed in pytorch 2.0 so maybe if I update my cuda and pytorch it will work

pytorch/pytorch#94883 It looks like it's fixed in pytorch 2.0 so maybe if I update my cuda and pytorch it will work

Same error with a fresh environment (new user)
torch==2.0.0
cuda 11.7
Ubuntu
Running the 30B safetensors (non 128g) from elinas.
Now I'm installing the latest pytorch from github, see if it makes a difference.

Took forever to install pytorch, now I'm getting:
import flash_attn_cuda
ImportError: /home/user/.local/lib/python3.9/site-packages/flash_attn_cuda.cpython-39-x86_64-linux-gnu.so: undefined symbol: _ZN3c105ErrorC2ENS_14SourceLocationESs
This was built with cuda 11.7. Now I am attempting to reinstall pytorch, again from GitHub, but this time with cuda 12

Nice let me know if that works and I'll follow your footsteps

Gpt4 says that it's likely the extension (flash attention) that needs to be
compiled against your installed version of pytorch and cuda
On Sun, Apr 9, 2023, 8:11 AM juanps90 @.***> wrote:

Took forever to install pytorch, now I'm getting:
import flash_attn_cuda
ImportError: /home/user/.local/lib/python3.9/site-packages/
flash_attn_cuda.cpython-39-x86_64-linux-gnu.so: undefined symbol:
_ZN3c105ErrorC2ENS_14SourceLocationESs
This was built with cuda 11.7. Now I am attempting to reinstall pytorch,
again from GitHub, but this time with cuda 12
—
Reply to this email directly, view it on GitHub
https://github.com/johnsmith0031/alpaca_lora_4bit/issues/62#issuecomment-1501150927,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAIQ4BLUKBHXFQ2RVFYLYLDXALGRBANCNFSM6AAAAAAWW7WCB4
.
You are receiving this because you authored the thread.Message ID:
@.***>

Yep, no longer failing here.

Everything updated to the last commit:
RuntimeError: Expected is_sm80 to be true, but got false.  (Could this error message be improved?  If so, please report an enhancement request to PyTorch.)

Wow!
This means we should be able to train vicuna on 4090
Can you please share your env? versions of everything?
On Sun, Apr 9, 2023, 4:56 PM juanps90 @.***> wrote:

Yep, no longer failing here.
—
Reply to this email directly, view it on GitHub
https://github.com/johnsmith0031/alpaca_lora_4bit/issues/62#issuecomment-1501243566,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAIQ4BL3MRI7WW6TBK23OLTXANEB5ANCNFSM6AAAAAAWW7WCB4
.
You are receiving this because you authored the thread.Message ID:
@.***>

OK then looks still impossible due to hard coded check upstream unless we
patch flash attention to stop checking sm_80
On Sun, Apr 9, 2023, 4:58 PM juanps90 @.***> wrote:

Everything updated to the last commit:
RuntimeError: Expected is_sm80 to be true, but got false. (Could this
error message be improved? If so, please report an enhancement request to
PyTorch.)
—
Reply to this email directly, view it on GitHub
https://github.com/johnsmith0031/alpaca_lora_4bit/issues/62#issuecomment-1501244295,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAIQ4BN4WXTMYRCCPC5FORLXANEMBANCNFSM6AAAAAAWW7WCB4
.
You are receiving this because you authored the thread.Message ID:
@.***>

Added xformers support using the code from the PR above. Tested with it and the result shows that It can slightly reduce VRAM usage.

They say flash attention should work on 4090
https://github.com/johnsmith0031/alpaca_lora_4bit/issues/61
I'll redouble my efforts.


text:
No autocompletion in .eslintrc.js in a subdirectory with tsconfig.json in take over mode

I have an .eslintrc.js with the following:
//@ts-check
/* eslint-env node */
require("@rushstack/eslint-patch/modern-module-resolution");

/** @type {import("eslint").Linter.Config} */
module.exports = {
  root: true,
  extends: [
    "plugin:vue/vue3-essential",
    "eslint:recommended",
    "@vue/eslint-config-typescript/recommended",
    "@vue/eslint-config-prettier",
  ],
  env: {
    "vue/setup-compiler-macros": true,
  },
  ignorePatterns: ["dist/**/*"],

};

In a subdirectory with its own tsconfig.json. I get no autocomplete for this file in take over mode, only when using the default TypeScript plugin.

Duplicate of #1147

authors: johnsoncodehk segevfiner

repo: johnsoncodehk/volar


text:
Re-exported value in

When I import a value exported by a different module like this:
<template>
<div>{{foo}}</div>
</template>

<script lang="ts" setup>
export { foo } from "./test"
</script>

test.ts:
export const foo = 42;

foo is recognized at runtime by Vue, but Volar reports a Cannot find name 'foo' error. A workaround is to add this below the export ... line:
import { foo } from "./test"

But it means that I have to duplicate all values I want to import.

This is expected behavior. foo should not recognized at runtime. Please forward this issue to vue-next.


text:
Use specific channel for logs

Hi @lyrixx @damienalexandre,
I recently saw logs in the app channel coming from Elastica failure inside vendors.
I think the app channel should be reserved to the App folder code.
Doctrine use a doctrine channel, Symfony use different channels like request, messenger, ...
To me elastically should do the same when passing the logger to the elastica client.
This PR fix this by using a custom elastically channel for the logs. (I hope I'm doing it right)

Thanks 👍🏼

Thanks 👍🏼

You're welcome. Do you have time for a release ? :)

Released in 1.8.2, thanks @VincentLanglet !

authors: VincentLanglet damienalexandre lyrixx

repo: jolicode/elastically


text:
namespace Result to std::result

I often like to alias type Result<T> = std::result::Result<T, MyError>.
Unfortunately this doesn't work with the proc-macros as they assume Result == std::result::Result. The fix is to fully namespace them.

Thanks for the contribution. This is an oversight of me. Do you mind adding a test for this? You can take inspiration from https://github.com/jonasbb/serde_with/blob/9b56c3ab1d09a5d09c88a924fc9ba1b09b8a3a6b/serde_with_macros/tests/serialize_display.rs and https://github.com/jonasbb/serde_with/blob/9b56c3ab1d09a5d09c88a924fc9ba1b09b8a3a6b/serde_with_macros/tests/deserialize_fromstr.rs

Have added a test, let me know if it's what you had in mind. Also namespaced the FromStr trait so you don't have to import it.

Yes that it exactly what I had in mind. Thank you so much.
I will prepare a patch release update after this merges.
bors r+

authors: adwhit jonasbb


text:
print_tokens() does not support file= kwarg

Ideally the print_tokens() would support all of the kwargs as the Python print() function. I am not entirely sure if this is possible given console behaviour on windows.

Hi @scopatz,
I just added the file argument: https://github.com/jonathanslenders/python-prompt-toolkit/commit/fcaa8e303effe9b56cbc877aa106ddfe34ce818c
For the other arguments, I'm not sure whether they make sense. (I could be wrong.)

Thanks! File is the only one I really cared about :)

authors: jonathanslenders scopatz

repo: jonathanslenders/python-prompt-toolkit


text:
Resetting

Hey, how can i change it, that the bot not always resets after mt moon or how can i change the reset times?
thanks :)

Look at the https://github.com/jonese1234/PokeBotBad/blob/master/ai/red/strategies.lua At about line 50 or so, you an change them to what you want.


text:
Support fetching non-UTF-8 data.

The code currently assumes that all data is valid UTF-8, which is not true for a number of services (#11). A past PR (#33) tried to address this by changing all return types to Vec<u8>, but this makes for a much less pleasant API. Some further discussion on this can be found in https://github.com/mattnenterprise/rust-imap/pull/33#issuecomment-333350073. Ideally we'd like more structured responses (#28), though that will also eventually have this issue.
Some good points have been brought up in various comments from the aforementioned threads:

We can't just re-encode data to UTF-8, because it'll cause checksums and signatures to no longer match. https://github.com/mattnenterprise/rust-imap/pull/33#issuecomment-337900827
RFC5738, which adds "UTF-8 compatability" for IMAP servers is often not supported, and also leaves a bunch of data in its original encoding. https://github.com/mattnenterprise/rust-imap/issues/11#issuecomment-337901888

I think what we'd want is a way for the user to choose whether they want data to be parsed as UTF-8 or not, and if they choose not, to just get the raw bytes. Crucially though, the interface for when you do have UTF-8 data should not be significantly more complex than today. One way of achieving this is by using a trait that is implemented for Client with an Output associated type that implements From<Vec<u8>> (or something along those lines). @sanmai-NL also discussed a related solution in https://github.com/mattnenterprise/rust-imap/issues/11#issuecomment-337903951.
See the original issue here: https://github.com/mattnenterprise/rust-imap/issues/54

I think this is now done? All message data is returned as &[u8], and imap-proto should deal with non-UTF-8 stuff in the protocol just fine?

I think this is not an issue anymore indeed.

authors: jonhoo sanmai-NL

repo: jonhoo/rust-imap


text:
Removed view property from page context

@doowb @jonschlinkert
I have some template tags in Nunjucks that rely data from the view property such as path and key. It looks like with templates 0.14.6 this may have potentially been removed. Any chance to get this back or should I deal with it in some middleware?
templates 0.13.7 => assemble-core 0.13.0
{
  ext: '.html',
  engineName: undefined,
  settings: {},
  view: <File "index.html" <Buffer 7b 25 20 65 78 74 65 6e 64 73 20 6c 61 79 6f 75 74 73 28 27 68 6f 6d 65 27 29 20 25 7d 0a 0a 7b 25 20 64 65 62 75 67 20 25 7d 0a 7b 25 20 62 6c 6f 63 ... >>,
  async: true,
  helpers:
   { view: [Function: wrapped],
     page: [Function: wrapped],
     pages: [Function: wrapped]
   }
}

templates 0.14.6 => assemble-core 0.13.2
{ ext: '.html',
  async: true,
  helpers:
   { view: [Function: wrapped],
     page: [Function: wrapped],
     pages: [Function: wrapped]
   },
  engineName: undefined
}

Setup
https://github.com/dtothefp/build-boiler/blob/master/packages/boiler-addon-assemble-nunjucks/src/index.js#L11
  const ext = '.html';
  const nunj = nunjucks.configure({
    watch: false,
    noCache: true
  });

  app.engine(ext, consolidate.nunjucks);

https://github.com/dtothefp/build-boiler/blob/master/packages/boiler-addon-assemble-nunjucks/src/tags/get-asset.js#L86
//tempalte tag
export default class GetAsset {
  constructor(app) {
    this.app = app;
    this.tags = ['get_asset'];
  }

  parse(parser, nodes, lexer) {
    const tok = parser.nextToken();
    const args = parser.parseSignature(null, true);

    if (args.children.length === 0) {
      args.addChild(new nodes.Literal(0, 0, ''));
    }

    parser.advanceAfterBlockEnd(tok.value);
    return new nodes.CallExtension(this, 'run', args);
  }
  run(context, args) {
    const {ctx} = context;
    const {
      assets = {}, //from app.data => assets = {'some/page/path': '/some/src.js'}
      environment,
      view
    } = ctx;  //ctx is page context
    const {isDev} = environment;
    const {path: viewPath} = view;  //breaks here because there is no `view.path`

    return new nunjucks.runtime.SafeString(`<script src="${assets[viewPath]}"></script>`);
  }
}

https://github.com/dtothefp/build-boiler/blob/master/src/templates/layouts/default.html#L24
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title></title>
</head>
<body>

  {% get_asset %}
</body>
</html>

hmm, strange. view should definitely be there. that's not something I would change without advance notice, then a minor bump and a big "heads up" in the changelog.
as far as I know, nothing has been removed from the context since templates was created. latest is 0.15.10, have you tried that version?

@jonschlinkert yes I tried templates 0.15.10 with assemble-core 0.14.3, still the same problem. can try to make you a small example

actually, I'm pretty sure view was never directly on the helper context (e.g. this.view) until recently. it was always on this.context.view. Now it's on both.
however... this.context.view is non-enumerable (I'm pretty sure it always was, but it's possible it was enumerable before, in which case this would be a regression).
I just now remembered something @doowb mentioning something about view, that might have been related. @doowb, maybe you remember?

I think I just realized what happened....
Before we returned the context object from bindHelpers and it was the same object that was used as the thisArg for helpers. Now, thisArg is different from the context that we're returning from bindHelpers.
I think we either need to add the view to the returned context (like in .compile) or add it to this context object
@dtothefp is having an issue because the context object passed into those nunjucks tags is the context that we pass into the render function... engine.render(view.contents, context). So it just needs to current view to be added.

I just now remembered something @doowb mentioning something about view, that might have been related. @doowb, maybe you remember?

This was a different issue related to the current view, but that was inside handlebars helpers and has been fixed.

Here's an example, run node ./index.js
Breaking
https://github.com/dtothefp/assemble-view-issue
Working
https://github.com/dtothefp/assemble-view-issue/tree/assemble-legacy

Before we returned the context object from bindHelpers

ahhh, damn. good insight @doowb. surprising that this isn't covered in like 1,200 unit tests

however... this.context.view is non-enumerable (I'm pretty sure it always was, but it's possible it was enumerable before, in which case this would be a regression).

This is what's happening.
The .view property is on the context just like before (I missed where the reference was still kept throughout the bindHelpers method.
The issue is that it looks like nunjucks doesn't keep non-enumerable properties on the context. When I do this.context.view = view in the Context object, I see the view in the nunjucks tag, but I'm not able to even get to the view when doing ctx.view in the tag, so it must be removing it.

I even tried adding the view to the context passed in when rendering and it didn't show up. Nunjucks must bind the context from the compile function and only use that (unless there's something else I don't know about nunjucks, which is probably the case)

if you change it to this.context.view instead of using define did it work?

if you change it to this.context.view instead of using define did it work?

Yes

oh yeah sorry I see where you said that already. thx

@doowb @jonschlinkert hey guys so what does this all mean? I don't want you to have to change your code just to accommodate nunjucks. Is this something I just shouldn't count on in the future and just bind the view context I need in an onload middleware or something?

hey guys so what does this all mean?

Nunjucks only "sees" enumerable properties when they make a copy of the context passed in. Since we're doing something like...
Object.defineProperty(context, 'view', {
  configurable: true,
  enumerable: false,
  value: view
});

...nunjucks doesn't "see" the view property and doesn't copy it over to the context.ctx property in your tag.

just bind the view context I need in an onload middleware or something?

The following using preCompile works for nunjucks.
app.create('pages', {renameKey})
  .use(loader())
  .preCompile(/./, function(file, next) {
    file.data.view = file;
    next();
  });

This lets you use whatever property you want and put other things on the file.data object that will be accessible in your tags.
As @jonschlinkert said above...

however... this.context.view is non-enumerable (I'm pretty sure it always was, but it's possible it was enumerable before, in which case this would be a regression).

...so maybe we should make it non-enumerable.
FWIW... I found this issue on nunjucks that talks about es2105 getter syntax not working (which I think transpiles into Object.defineProperty). Looks like they'd be willing to take a PR if you find a fix :wink:

...so maybe we should make it non-enumerable.

@doowb meant "make it enumerable". yeah let's do that. I haven't looked at the nunjucks internals, but I imagine they'll need to do more than a simple object-assign on the context. getters should also be copied

I don't want you to have to change your code just to accommodate nunjucks.

meant to reply to this. if view was enumerable before, the fact that behavior has changed for you makes this a regression. we'll make view enumerable, but in the meantime hopefully you are able to solve it for now using the solution @doowb posted

closing since I think this was resolved a while ago. please feel free to reopen if there is still an issue

authors: doowb dtothefp jonschlinkert

repo: jonschlinkert/templates


text:
Null-ls can't be used with ccls due to offset_encoding

Can't use null-ls with ccls due offset_encoding differences. Switch to clangd as it supports utf-16 encoding? Or disable all null-ls usage when using ccls?
Null-ls issue: https://github.com/jose-elias-alvarez/null-ls.nvim/issues/428
Context around ccls: https://github.com/neovim/nvim-lspconfig/pull/1649
Neovim issue: https://github.com/neovim/neovim/pull/16694

Any update?

Right now I have null-ls disabled when using ccls. Only feature that is lost is code-actions with gitsigns. Still haven't had the time to investigate switching to clangd so I just keep this issue up as it still isn't resolved even though i have a workaround.

repo: jordanisaacs/neovim-flake


text:
模型运行成功，但发的所有消息都显示network error，控制台显示报错。

C:\Work\backend-python\rwkv_pip\model.py:2012: UserWarning: operator () profile_node %361 : int = prim::profile_ivalue(%359)
does not have profile information (Triggered internally at ..\torch\csrc\jit\codegen\cuda\graph_fuser.cpp:109.)
r, k, v, g, w, xxx, ss = self.v6_0_before(
INFO:     127.0.0.1:53765 - "POST /switch-model HTTP/1.1" 200 OK
INFO:     None:0 - "POST /v1/chat/completions HTTP/1.1" 200 OK
max_tokens=1000 temperature=1.0 top_p=0.3 presence_penalty=0.0 frequency_penalty=1.0 penalty_decay=0.996 top_k=0 global_penalty=False
ERROR:    Exception in ASGI application
Traceback (most recent call last):
File "C:\Work\py310\Lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 408, in run_asgi
result = await app(  # type: ignore[func-returns-value]
File "C:\Work\py310\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\fastapi\applications.py", line 1054, in call
await super().call(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette\applications.py", line 123, in call
await self.middleware_stack(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette\middleware\errors.py", line 186, in call
raise exc
File "C:\Work\py310\Lib\site-packages\starlette\middleware\errors.py", line 164, in call
await self.app(scope, receive, _send)
File "C:\Work\py310\Lib\site-packages\starlette\middleware\cors.py", line 83, in call
await self.app(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette\middleware\exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette_exception_handler.py", line 64, in wrapped_app
raise exc
File "C:\Work\py310\Lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "C:\Work\py310\Lib\site-packages\starlette\routing.py", line 762, in call
await self.middleware_stack(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette\routing.py", line 782, in app
await route.handle(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette\routing.py", line 297, in handle
await self.app(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette\routing.py", line 77, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette_exception_handler.py", line 64, in wrapped_app
raise exc
File "C:\Work\py310\Lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "C:\Work\py310\Lib\site-packages\starlette\routing.py", line 75, in app
await response(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\sse_starlette\sse.py", line 233, in call
async with anyio.create_task_group() as task_group:
File "C:\Work\py310\Lib\site-packages\anyio_backends_asyncio.py", line 597, in aexit
raise exceptions[0]
File "C:\Work\py310\Lib\site-packages\sse_starlette\sse.py", line 236, in wrap
await func()
File "C:\Work\py310\Lib\site-packages\sse_starlette\sse.py", line 221, in stream_response
async for data in self.body_iterator:
File "C:\Work\backend-python\routes\completion.py", line 154, in eval_rwkv
for response, delta, prompt_tokens, completion_tokens in model.generate(
File "C:\Work\backend-python\utils\rwkv.py", line 273, in generate
token = self.pipeline.sample_logits(
File "C:\Work\backend-python\rwkv_pip\utils.py", line 143, in sample_logits
out = torch.multinomial(probs, num_samples=1)[0]
RuntimeError: probability tensor contains either inf, nan or element < 0
INFO:     None:0 - "POST /v1/chat/completions HTTP/1.1" 200 OK
max_tokens=1000 temperature=1.0 top_p=0.3 presence_penalty=0.0 frequency_penalty=1.0 penalty_decay=0.996 top_k=0 global_penalty=False
ERROR:    Exception in ASGI application
Traceback (most recent call last):
File "C:\Work\py310\Lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 408, in run_asgi
result = await app(  # type: ignore[func-returns-value]
File "C:\Work\py310\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\fastapi\applications.py", line 1054, in call
await super().call(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette\applications.py", line 123, in call
await self.middleware_stack(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette\middleware\errors.py", line 186, in call
raise exc
File "C:\Work\py310\Lib\site-packages\starlette\middleware\errors.py", line 164, in call
await self.app(scope, receive, _send)
File "C:\Work\py310\Lib\site-packages\starlette\middleware\cors.py", line 83, in call
await self.app(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette\middleware\exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette_exception_handler.py", line 64, in wrapped_app
raise exc
File "C:\Work\py310\Lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "C:\Work\py310\Lib\site-packages\starlette\routing.py", line 762, in call
await self.middleware_stack(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette\routing.py", line 782, in app
await route.handle(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette\routing.py", line 297, in handle
await self.app(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette\routing.py", line 77, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette_exception_handler.py", line 64, in wrapped_app
raise exc
File "C:\Work\py310\Lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "C:\Work\py310\Lib\site-packages\starlette\routing.py", line 75, in app
await response(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\sse_starlette\sse.py", line 233, in call
async with anyio.create_task_group() as task_group:
File "C:\Work\py310\Lib\site-packages\anyio_backends_asyncio.py", line 597, in aexit
raise exceptions[0]
File "C:\Work\py310\Lib\site-packages\sse_starlette\sse.py", line 236, in wrap
await func()
File "C:\Work\py310\Lib\site-packages\sse_starlette\sse.py", line 221, in stream_response
async for data in self.body_iterator:
File "C:\Work\backend-python\routes\completion.py", line 154, in eval_rwkv
for response, delta, prompt_tokens, completion_tokens in model.generate(
File "C:\Work\backend-python\utils\rwkv.py", line 273, in generate
token = self.pipeline.sample_logits(
File "C:\Work\backend-python\rwkv_pip\utils.py", line 143, in sample_logits
out = torch.multinomial(probs, num_samples=1)[0]
RuntimeError: probability tensor contains either inf, nan or element < 0
INFO:     None:0 - "POST /v1/chat/completions HTTP/1.1" 200 OK
max_tokens=1000 temperature=1.0 top_p=0.3 presence_penalty=0.0 frequency_penalty=1.0 penalty_decay=0.996 top_k=0 global_penalty=False
ERROR:    Exception in ASGI application
Traceback (most recent call last):
File "C:\Work\py310\Lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 408, in run_asgi
result = await app(  # type: ignore[func-returns-value]
File "C:\Work\py310\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\fastapi\applications.py", line 1054, in call
await super().call(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette\applications.py", line 123, in call
await self.middleware_stack(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette\middleware\errors.py", line 186, in call
raise exc
File "C:\Work\py310\Lib\site-packages\starlette\middleware\errors.py", line 164, in call
await self.app(scope, receive, _send)
File "C:\Work\py310\Lib\site-packages\starlette\middleware\cors.py", line 83, in call
await self.app(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette\middleware\exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette_exception_handler.py", line 64, in wrapped_app
raise exc
File "C:\Work\py310\Lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "C:\Work\py310\Lib\site-packages\starlette\routing.py", line 762, in call
await self.middleware_stack(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette\routing.py", line 782, in app
await route.handle(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette\routing.py", line 297, in handle
await self.app(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette\routing.py", line 77, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\starlette_exception_handler.py", line 64, in wrapped_app
raise exc
File "C:\Work\py310\Lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "C:\Work\py310\Lib\site-packages\starlette\routing.py", line 75, in app
await response(scope, receive, send)
File "C:\Work\py310\Lib\site-packages\sse_starlette\sse.py", line 233, in call
async with anyio.create_task_group() as task_group:
File "C:\Work\py310\Lib\site-packages\anyio_backends_asyncio.py", line 597, in aexit
raise exceptions[0]
File "C:\Work\py310\Lib\site-packages\sse_starlette\sse.py", line 236, in wrap
await func()
File "C:\Work\py310\Lib\site-packages\sse_starlette\sse.py", line 221, in stream_response
async for data in self.body_iterator:
File "C:\Work\backend-python\routes\completion.py", line 154, in eval_rwkv
for response, delta, prompt_tokens, completion_tokens in model.generate(
File "C:\Work\backend-python\utils\rwkv.py", line 273, in generate
token = self.pipeline.sample_logits(
File "C:\Work\backend-python\rwkv_pip\utils.py", line 143, in sample_logits
out = torch.multinomial(probs, num_samples=1)[0]
RuntimeError: probability tensor contains either inf, nan or element < 0

repo: josStorer/RWKV-Runner


text:
Add Security

Commands should be restricted to Everyone, Moderators, or Admins.
Admin only:

"settings set"

Moderator & Admin:

"settings"

Everyone:

"plot"
"plot claim"

Done

repo: josh-greenlaw/minecraft-discord-bot


text:
Does it work on iOS ?

If any alternative reference would help.
Thanks

It currently only runs on OS X. Porting it to iOS would be interesting - I might work on that after final versions of iOS 10 and Swift 3 have been released, time permitting.

iOS support has been added in the latest commit. The Xcode project now contains separate targets for macOS and iOS.

authors: joshb nvcken

repo: joshb/CocoaOpenGL-Swift


text:
-bash: /usr/local/bin/vdiclient.py: env: bad interpreter: No such file or directory

Installed the VDIclient by following the instruction for Linux. I am on Raspberry Pi OS. As far as I know, it got installed without any issues.
When I ran the vdiclient.py, I got this error:
-bash: /usr/local/bin/vdiclient.py: env: bad interpreter: No such file or directory

This is the installation I followed:
apt install python3-pip python3-tk virt-viewer git
git clone https://github.com/joshpatten/PVE-VDIClient.git
cd ./PVE-VDIClient/
chmod +x requirements.sh
./requirements.sh
cp vdiclient.py /usr/local/bin
chmod +x /usr/local/bin/vdiclient.py

Then I created this file /etc/vdiclient/vdiclient.ini, and pretty much copied the example file.

What is the output when you run the command:
env python3
?
On Tue, Oct 3, 2023, 1:41 PM Karlo Abaga @.***> wrote:

Installed the VDIclient by following the instruction for Linux. I am on
Raspberry Pi OS. As far as I know, it got installed without any issues.
When I ran the vdiclient.py, I got this error:
-bash: /usr/local/bin/vdiclient.py: env: bad interpreter: No such file or directory
This is the installation I followed:
apt install python3-pip python3-tk virt-viewer git
git clone https://github.com/joshpatten/PVE-VDIClient.git
cd ./PVE-VDIClient/
chmod +x requirements.sh
./requirements.sh
cp vdiclient.py /usr/local/bin
chmod +x /usr/local/bin/vdiclient.py
Then I created this file /etc/vdiclient/vdiclient.ini, and pretty much
copied the example file.
—
Reply to this email directly, view it on GitHub
https://github.com/joshpatten/PVE-VDIClient/issues/73, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABIP64T734GUGSINGJPI3TLX5RL57AVCNFSM6AAAAAA5RNTPTWVHI2DSMVQWIX3LMV43ASLTON2WKOZRHEZDINZRG43DGNQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux.
I installed 3.10, but had to manually type-in 3.10, and this is the output:
env python3.10
Python 3.10.13 (main, Oct  3 2023, 17:10:40) [GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.

So if you change to your home folder (cd ~) and then run vdiclient.py, what
happens then?
Also, if that doesn't work, can you run:
env python3 /usr/local/bin/vdiclient.py
and make it work that way?
If you want to run python 3.10 you'll need to tell your OS to default to
the 3.10 installation. I'm not familiar with this process, but there are
guides out there.
On Tue, Oct 3, 2023, 1:53 PM Karlo Abaga @.***> wrote:

Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux.
I installed 3.10, but had to manually type-in 3.10, and this is the output:
env python3.10
Python 3.10.13 (main, Oct 3 2023, 17:10:40) [GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
—
Reply to this email directly, view it on GitHub
https://github.com/joshpatten/PVE-VDIClient/issues/73#issuecomment-1745540322,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABIP64WQRFXDR5D6RKZAOVDX5RNJBAVCNFSM6AAAAAA5RNTPTWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBVGU2DAMZSGI
.
You are receiving this because you commented.Message ID:
@.***>

I installed 3.10 because it say on the guide.
It barked at me to install these two:
pip install proxmoxer
pip install PySimpleGUI
I ran requirements.sh, but the content is pip3. I reinstalled proxmoxer and PySimpleGUI via pip and I got the prompt now.

I too am having the same issue. I have followed MRP on YouTube to the letter. Will link below. At 13:15 he runs the command vdiclient.py this is what I get back
eric@ThinClient-Laser:~ $ vdiclient.py
-bash: /usr/local/bin/vdiclient.py: env: bad interpreter: No such file or directory
so I run:
eric@ThinClient-Laser:~ $ python3 vdiclient.py
python3: can't open file '/home/eric/vdiclient.py': [Errno 2] No such file or directory
but if do:
eric@ThinClient-Laser:/usr/local/bin $ python3 vdiclient.py
I am able to get the splash screen with the same error he did.
not sure where I went wrong,
Linux is not really in my wheel house.

Well I went to load up RPi OS on my Pi and realized I have no idea where my HDMI adapter is.
I think I need to fully qualify the path for env in order for this to work, I'm about to commit that change, you can git pull to get the newest version in about 10 minutes.

I was just able to test it.  Started over from scratch. went as far as installing pi os lite for starch. It worked. I had an issue but got it resolved now i am having another issue. If i cant get it resolved i will start another ticket. thanks for doing that so fast!!!!

New release added, let me know if you run into any issues

authors: Gidget19893161 joshpatten kabaga

repo: joshpatten/PVE-VDIClient


text:
Possible adjustment to activity_history in user models

Currently it's an object with new members appearing for every new day that you watch or read something, this seems like it would make more sense to be an array of objects like this:
"activity_history": [
  {
    "date": "2016-07-25",
    "count": 8,
    "color": "#1e6823"
  },
  {
    "date": "2016-07-27",
    "count": 1,
    "color": "#d6e685"
   }
]

Activity history isn't really api stable (if something isn't documented its probably not api stable) its just available as the AniList front end uses the same api as the public api. I need to make some changes to it anyway so I'll look into this as I can understand it being a pain in strictly type languages but at the moment having it as an associative array makes it a ton easier to work with on the AniList front end.

I figured out the problem I was having earlier with the current structure, just a bit of a brain fart at midnight. If it's easier and more efficient to keep it as-is then by all means do so and close this issue.

authors: joshstar theIglooo

repo: joshstar/AniList-API-Docs


text:
Examples not working?

Hi,
I tried cloning this to run the examples:
nous% git clone --recursive https://github.com/joshuajbouw/bevy_tilemap/

But getting errors:
% cargo build --example random_dungeon
   Compiling bevy_tilemap_types v0.4.0 (/home/mark/projects/rust/bevy_tilemap/library/types)
error[E0432]: unresolved import `bevy::render::texture::Extent3d`
  --> library/types/src/lib.rs:36:9
   |
36 |         render::texture::Extent3d,
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^ no `Extent3d` in `texture`

error[E0283]: type annotations needed
   --> library/types/src/dimension.rs:198:14
    |
198 |         impl From<&$vec> for Dimension2 {
    |              ^^^^^^^^^^^ cannot infer type for struct `Dimension2`
...
206 | dimension2_glam_impl!(Vec2);
    | --------------------------- in this macro invocation
    |
    = note: cannot satisfy `Dimension2: std::convert::From<&bevy::prelude::Vec2>`
note: required by a bound in `std::convert::From`
    = note: this error originates in the macro `dimension2_glam_impl` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0283]: type annotations needed
   --> library/types/src/dimension.rs:198:14
    |
198 |         impl From<&$vec> for Dimension2 {
    |              ^^^^^^^^^^^ cannot infer type for struct `Dimension2`
...
207 | dimension2_glam_impl!(Vec3);
    | --------------------------- in this macro invocation
    |
    = note: cannot satisfy `Dimension2: std::convert::From<&bevy::prelude::Vec3>`

And much more like this.
Versions:
% cargo version
cargo 1.57.0 (b2e52d7ca 2021-10-21)
% rustc --version
rustc 1.57.0 (f1edd0429 2021-11-29)

Any ideas what might be going wrong here?

This from master? Yeah Bevy was updated with some conflicts. Need to get it fixed.

Ah yep, I see the cargo file for this project is not anchored to a specific version.  Makes sense, thanks!

just to confirm, this cannot currently be used with bevy 0.6.0, correct? I tried cloning and "fixing" some of the compilation errors but it looks like it will require a lot of changes due to how rendering pipelines (and other things?) changed in 0.6.0

Correct, I need to update to 0.6.0

authors: hazelsparrow joshuajbouw saward


text:
GoPro Hero 4 Silver

Hey,
thanks for this lib. I have some trouble using it with my GoPro Hero 4 Silver.
I can't stop, start the preview. (no error) and I can't change the orientation,resolution and fps and getting errors like:
 GoProHero.command(fps, 240) - error opening http://10.5.5.9/camera/FS?t=********&p=%0a: HTTP Error 404: Not Found
And yes it isn't possible to open the link in the browser. Are there any changes for the GoPro 4?
Thanks!

The GoPro HERO4 seems to have different API support. I have not had a chance to do extensive testing with GoPro HERO4 cameras.

authors: Wikunia joshvillbrandt

repo: joshvillbrandt/goprohero


text:
Restrict access to certain people

At the moment anyone with a google account can login. We need to compare the email address to a whitelist of allowed addresses.

I'm on it

authors: joshwnj lfilho

repo: joshwnj/team-index


text:
🛑 Taxidrivers Cuba is down

In c7123ac, Taxidrivers Cuba (https://taxidriverscuba.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Taxidrivers Cuba is back up in f8ed2e4.


text:
compile

Could allow for the compile command to have second+ arguments that are empty minor names for the name being used to fill in the templates.

need to lower case names to make sure of match

done

repo: jostylr/literate-programming-lib


text:
How to set table width to 100%

Thanks for this awesome piece of code!
I am using this since v1.5 and back then, tables had the same width as text:

I updated to v2.0.3 and all the tables became individual widths:

This could be solved with:
/* maximal table width */
table.markdownTable, table.fieldtable {
  width: 100%;
}
table.markdownTable td:last-child, table.markdownTable th:last-child, table.fieldtable dt:last-child {
  width: 100%;
}

But this hack is not working anymore with v2.1. I am not to much into css, so I would like to see a section about how to modify tables here or at least get some advise what I could do. Maybe I am missing something obvious.
Thanks!

But the mentioned hack also just expanded the last column to fill the space. I'd like to expand the cols equally to be 100% of the text width.

I guess, I just struggle with markdown tables in general. Reading about it, many people seem to struggle with formatting them.
For now, I reworked all tables and centered them, since I don't think there is an answer to my rather unspecific question.

If you are still interested in full-width tables. I've figured out that this may work:
.contents table:not(.memberdecls):not(.mlabels):not(.fieldtable):not(.memname) {
    display: block;
}

.contents table:not(.memberdecls):not(.mlabels):not(.fieldtable):not(.memname) tbody {
    display: table;
    width: 100%;
}

This restores full-width for markdown and doxygen tables. But apply it with caution! It breaks the overscroll behavior of tables that are wider than the max-content-width.  Especially on small screens parts of the table may be hidden!
The problem with tables in this theme is that they technically are not tables. I had to override the default display: table style in order to accomplish the rounded corners and the overflow scrolling behaviour. This is why they are kind of messed up.
Bottom line: I'd recommend to stick with your approach of centering the tables, instead of forcing them to cover the full width!

@jothepro thanks for that fix. It works.
I still noticed some problems: Putting tables in <CENTER>...</CENTER>, I faced two problems:

all the table content is centered as well (needed to add :--- to align content left)
I have to add table{padding:1px;}, otherwise the tables are a tiny bit to wide in mobile view, or borders of wide tables disappear

What is the best way to center a table then?

Hm, good point. I'll have to dig into that, I cannot come up with an easy solution rn. It should definitely be possible to center the table with <center>. See #91.

I've added documentation on how to make a table full-width and centered in the latest release v2.2.0.
In case this is still a requirement for you check out the documentation.

authors: MuellerSeb jothepro

repo: jothepro/doxygen-awesome-css


text:
Can't see MoreExtras passed via ScanOptions inside registerForActivityResult

Description of the problem:
I just need to pass some extra values by ScanOption "addExtra" function, but then i can't see them in the originalIntent object, when registerForActivityResult function is called.
Which library version are you using?
4.3.0
Which phone/tablet are you using, and which Android version does it run? (e.g. Samsung Galaxy S5,
Android 5.0)
Emulating Pixel3a API 21
Does the same happen on other devices or an emulator?
Emulator
Can you reproduce the issue in the sample project included with the library?
Yes
In the case of an error do you have a stack trace or adb logs?
No error is thrown

Looking for the same thing.

I found the data in intent.extras, I was adding an object, but the library is converting it to a string.
Here is how the library is handling extras:
private void attachMoreExtras(Intent intent) {         for (Map.Entry<String, Object> entry : moreExtras.entrySet()) {             String key = entry.getKey();             Object value = entry.getValue();             // Kind of hacky             if (value instanceof Integer) {                 intent.putExtra(key, (Integer) value);             } else if (value instanceof Long) {                 intent.putExtra(key, (Long) value);             } else if (value instanceof Boolean) {                 intent.putExtra(key, (Boolean) value);             } else if (value instanceof Double) {                 intent.putExtra(key, (Double) value);             } else if (value instanceof Float) {                 intent.putExtra(key, (Float) value);             } else if (value instanceof Bundle) {                 intent.putExtra(key, (Bundle) value);             } else if (value instanceof int[]) {                 intent.putExtra(key, (int[]) value);             } else if (value instanceof long[]) {                 intent.putExtra(key, (long[]) value);             } else if (value instanceof boolean[]) {                 intent.putExtra(key, (boolean[]) value);             } else if (value instanceof double[]) {                 intent.putExtra(key, (double[]) value);             } else if (value instanceof float[]) {                 intent.putExtra(key, (float[]) value);             } else if (value instanceof String[]) {                 intent.putExtra(key, (String[]) value);             } else {                 intent.putExtra(key, value.toString());             }         }     }

repo: journeyapps/zxing-android-embedded


text:
Make it work on Linux using wixl

If system is other than Windows then use 'wixl' to create MSI file.
Use replace frontslash in ID aswell
Allow to set arch in JSON
UIRef and Environment is not supported with wixl.

This change makes arch a mandatory field because it is requested unconditionally. The system should autodetect the system when there is no arch field.
Have you tried running run_tests.py with these changes on wixl? Does it pass? Have you also tried running it on a real Windows machine so it uses plain WiX?

I have not tried on Windows.
I will see if I can get "run_tests.py" to run, but python fails when using "cpp" compiler. I will try some more.

authors: jpakkane mikkeljohnsen

repo: jpakkane/msicreator


text:
Resources missing for Concord

Hi,
The resource files are missing in the Concord project:
fake_latin.txt etc
Johan

Sorry about that!  I think it's fixed now!  Except that Resources has somehow been changed to resources - if this is a problem, please let me know!  Thanks.

Hope everything is OK now!
Season's greetings!
Paul

It works now. Thanks!

Good news!  Thanks for letting me know!

authors: jpaulm rookboom

repo: jpaulm/csharpfbp


text:
Deploy a docker-compose.yml file?

Hey @jpignata, excellent work on this project!  Thank you.
Question:  what would you think about adding the ability to deploy application images and environment variables from a docker-compose.yml file?  This would make it a bit more declarative and easier to use.  You could also docker-compose up to run locally and then fargate deploy -f docker-compose.yml to be confident that you deployed the same config that you tested locally.  Would you accept a PR for this?
version: "2"
services:
  my-app:
    build: .
    image: 618440173281.dkr.ecr.us-east-1.amazonaws.com/my-app:1.0
    ports:
    - 80:3000
    environment:
      FOO: bar
      BAR: baz

fargate --cluster fargate-poc service deploy -f docker-compose.yml

I'm going to take a stab at a proposal for this feature as soon as I finish refactoring and ship 0.3.0.

We have a somewhat relevant usecase where we have pre-defined Task Definitions, each use a single ECR repo and image, but with a custom working_dir.
fargate service create allows us to specify --image, but not --task-definition.  Might be able to avoid this by using a docker-compose file.

Closing since we've released this in our fork.
https://github.com/turnerlabs/fargate/releases/tag/v0.3.0

authors: agwaltz jpignata jritsema

repo: jpignata/fargate


text:
🛑 The Airgap is down

In 51c4388, The Airgap (https://theairgap.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: The Airgap is back up in dfae452 after 18 minutes.


text:
🛑 Launch Morrisville is down

In 2fe599b, Launch Morrisville (https://LaunchMorrisville.org) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Launch Morrisville is back up in 92136c3 after 7 minutes.


text:
Jassby

https://jassby.com/

Fixed in https://github.com/jplock/awesome-fintech/commit/8abc238bbf2378cde9a322dc6ad164f0d5cbea70

repo: jplock/awesome-fintech


text:
Export SVGs (new icons) and add them to GitHub

Export SVGs of the new icons added to Salt Icons library.

Icons to be added/updated to GitHub:

accessible
cart
hospital
man
man-woman
medical-kit
pot-food
stethoscope
storefront
success (update)
tote
utensils
woman

@joshwooding Is this something someone could sort out? Hopefully its a really quick release as its just a handful of icons that need adding to the library.

authors: ivan-calderon pseys

repo: jpmorganchase/salt-ds


text:
Detect light/dark OS theme

Hey,
I implemented basic light/dark theme detection for macOS.
I am new to the project and would appreciate your input.
Location in Code
At this point in time I am just reading the OS theme as the default value for the Theme Enum.
This seems a bit sketchy to me but I am not sure where else to put it.
Reactive Implementation
My approach only reads the OS theme once (at the application start) and does not react to theme changes during runtime.
This project could serve as a basic implementation for a reactive implementation.
Since a reactive implementation is much more complicated I would strive for a basic approach at this point in time.
Error Handling
I was unable to find a suitable error handling approach for my implementation.
Neither panic::catch_unwind nor reading the OS value in a separate thread prevents the program from crashing when reading the OS theme fails ("rust cannot catch foreign exceptions").
This is not optimal since an theme reading error should not result in the program crashing.
Do you have any idea how to fix this problem?

Thanks a lot for the PR @KeKsBoTer! I also think this would be best suited for druid-shell, do you feel like a PR over there? If not, I can do it. winit also have some support for light/dark theme detection, although only on Windows, IIRC.

Hey,
thanks for the feedback!
I agree with your suggestion of implementing it in druid-shell.
My plan is to implement it there and open the PR. I just don't have time for it before next week.
Should I close the pull request here for now?

Looks like #162 is a bit further with this, through using 3rd party crates for the detection? I haven't investigated it much, yet.

I'm making some changes to that 3rd party crate to also support Linux, I'm using my own forks for now until my changes are merged upstream. I also thought that druid should implement dark mode detection and not the apps itself.
We could try to implement this functionality in @jpochyla's fork of druid in case that they aren't already working on that.

authors: KeKsBoTer edfloreshz jpochyla

repo: jpochyla/psst


text:
Remove dyn from structs

ref: #221
Remove dyn from struct definition as possible, and add support for multithreading.
Breaking Changes

WordDictionaryConfig was removed (in other words: renamed to DefaultFetcher and heavily modified)
DictionaryStore no longer has serlializer_hint function
JPreprocess struct requires type parameter F
JPreprocess's deprecated new function is finally removed

https://github.com/eyr1n/voicevox_core/blob/f189b15e5291dcc6952232b8630277bd2f0c4796/crates/voicevox_core/src/text_analyzer.rs#L144
にて上記変更を取り込み試してみました．
特に問題なさそうです．

ご確認ありがとうございます．
ではこれでいこうと思います．

一連の対応ありがとうございますm(__)m

repo: jpreprocess/jpreprocess


text:
Validation error when remote check fields is preloaded.

Your environment

Version of jquery-validate:
Browser name and version:

Current behavior
Suppose a form with 2 fields, vat and name of company
vat, name
vat  field is remote validated, if vat is valid, remote script return true, else return false.
So we have the rules:
rules: {
vat: {
required: true,
remote: {
url: "ccif/",
type: "post",
data: {
vat: function() {
return $( "#vat" ).val();
}
}
}
},
name: {
required: true,
minlength: 2,
},
},
messages: {
vat: {
required: "CIF required.",
remote: "CIF invalid",
},
name: {
required: "Enter the name.",
minlength: "Name should contain at least 2 chars.",
},
},
...
When page is loaded and submit is pressed the both fields appear that need to be completed.
But if vat value is preloaded, both script show check sign green, even the name field show a red message.
Interesting behaviour is when press submit first field appear ok, second appear first in red which is correct but at miliseconds turn green which is not correct because fields is empty.
Expected behavior
What shoud be normal,  is to check vat remotely and show the check sign green, if vat correct
and to show check sign red because field name is empy.
Live demo
you can check this on https://www.primulpas.ro/validator/

I can't replicate this on JSFiddle - https://jsfiddle.net/bytestream/cjvrbpht/10/

You can replicate at your computer, this is not the issue.

authors: AlterDevi bytestream

repo: jquery-validation/jquery-validation


text:
[packagers] choco bucket does not trigger workflow

I have experimented with the chocolatey bucket feature and it does everything as expected, however for some reason no GitHub workflow is triggered when a push is done. The workflow files seem to be alright though.

FWIW this is the workflow used by JReleaser itself which has been working since we set it up more than a year ago https://github.com/jreleaser/chocolatey-bucket/blob/main/.github/workflows/push.yml

Oh, it's probably because I use the branchPush property as the reference contains that. I will try just pushing to master

It triggers now when the branchPush property is removed.

So I would recommend to ether delete the property or not include it in the default configuration example in the documentation.

The property is generic to all taps/buckets/repositories. If a branch other than the default one is used (that is branchPush is defined) then the workflow should be updated as well.

authors: aalmiray crschnick

repo: jreleaser/jreleaser


text:
rails 4.2.0rc1 can't modify frozen ActiveRecord::LazyAttributeHash

When using grape active model serializers with grape API I updated from Rails 4.2.0.beta4 to 4.2.0rc1 and suddenly all actions that return a destroyed object (product.destroy)result in
can't modify frozen ActiveRecord::LazyAttributeHash
The fix was to specify a serializer or return something other than the object which was frozen after destroy.
Exception: RuntimeError: can't modify frozen ActiveRecord::LazyAttributeHash
  0: /Users/brian/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0.rc1/lib/active_record/attribute_set/builder.rb:79:in `materialize'
  1: /Users/brian/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0.rc1/lib/active_record/attribute_set/builder.rb:23:in `select'
  2: /Users/brian/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0.rc1/lib/active_record/attribute_set.rb:70:in `initialized_attributes'
  3: /Users/brian/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0.rc1/lib/active_record/attribute_set.rb:18:in `to_hash'
  4: /Users/brian/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0.rc1/lib/active_record/attribute_methods.rb:284:in `attributes'
  5: /Users/brian/.rvm/gems/ruby-2.1.5/gems/activemodel-4.2.0.rc1/lib/active_model/serialization.rb:100:in `serializable_hash'
  6: /Users/brian/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0.rc1/lib/active_record/serialization.rb:17:in `serializable_hash'
  7: /Users/brian/.rvm/gems/ruby-2.1.5/gems/activemodel-4.2.0.rc1/lib/active_model/serializers/json.rb:99:in `as_json'
  8: /Users/brian/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0.rc1/lib/active_support/json/encoding.rb:34:in `encode'
  9: /Users/brian/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0.rc1/lib/active_support/json/encoding.rb:21:in `encode'
 10: /Users/brian/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0.rc1/lib/active_support/core_ext/object/json.rb:37:in `to_json_with_active_support_encoder'
 11: /Users/brian/.rvm/gems/ruby-2.1.5/gems/grape-0.9.0/lib/grape/formatter/json.rb:6:in `call'
 12: /Users/brian/.rvm/gems/ruby-2.1.5/gems/grape-active_model_serializers-1.2.1/lib/grape-active_model_serializers/formatter.rb:11:in `call'
 13: /Users/brian/.rvm/gems/ruby-2.1.5/gems/grape-0.9.0/lib/grape/middleware/formatter.rb:33:in `block in after'
 14: /Users/brian/.rvm/gems/ruby-2.1.5/gems/grape-0.9.0/lib/grape/middleware/formatter.rb:32:in `collect'                                                                                [100/5640]
 15: /Users/brian/.rvm/gems/ruby-2.1.5/gems/grape-0.9.0/lib/grape/middleware/formatter.rb:32:in `after'
 16: /Users/brian/.rvm/gems/ruby-2.1.5/gems/grape-0.9.0/lib/grape/middleware/base.rb:25:in `call!'
 17: /Users/brian/.rvm/gems/ruby-2.1.5/gems/grape-0.9.0/lib/grape/middleware/base.rb:18:in `call'
 18: /Users/brian/.rvm/gems/ruby-2.1.5/gems/grape-0.9.0/lib/grape/middleware/base.rb:24:in `call!'
 19: /Users/brian/.rvm/gems/ruby-2.1.5/gems/grape-0.9.0/lib/grape/middleware/base.rb:18:in `call'
 20: /Users/brian/.rvm/gems/ruby-2.1.5/gems/grape-0.9.0/lib/grape/middleware/base.rb:24:in `call!'
 21: /Users/brian/.rvm/gems/ruby-2.1.5/gems/grape-0.9.0/lib/grape/middleware/base.rb:18:in `call'
 22: /Users/brian/.rvm/gems/ruby-2.1.5/gems/grape-0.9.0/lib/grape/middleware/error.rb:27:in `block in call!'
 23: /Users/brian/.rvm/gems/ruby-2.1.5/gems/grape-0.9.0/lib/grape/middleware/error.rb:26:in `catch'
 24: /Users/brian/.rvm/gems/ruby-2.1.5/gems/grape-0.9.0/lib/grape/middleware/error.rb:26:in `call!'
 25: /Users/brian/.rvm/gems/ruby-2.1.5/gems/grape-0.9.0/lib/grape/middleware/base.rb:18:in `call'
 26: /Users/brian/.rvm/gems/ruby-2.1.5/gems/rack-1.6.0.beta2/lib/rack/head.rb:13:in `call'
 27: /Users/brian/.rvm/gems/ruby-2.1.5/gems/rack-1.6.0.beta2/lib/rack/builder.rb:153:in `call'
 28: /Users/brian/.rvm/gems/ruby-2.1.5/gems/rollbar-1.1.0/lib/rollbar/middleware/rack/builder.rb:8:in `call_with_rollbar'
 29: /Users/brian/.rvm/gems/ruby-2.1.5/gems/grape-0.9.0/lib/grape/endpoint.rb:172:in `call!'
 30: /Users/brian/.rvm/gems/ruby-2.1.5/gems/grape-0.9.0/lib/grape/endpoint.rb:160:in `call'
 31: /Users/brian/.rvm/gems/ruby-2.1.5/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `block in call'
 32: /Users/brian/.rvm/gems/ruby-2.1.5/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `block in recognize'
 33: /Users/brian/.rvm/gems/ruby-2.1.5/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:68:in `optimized_each'
 34: /Users/brian/.rvm/gems/ruby-2.1.5/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize'
 35: /Users/brian/.rvm/gems/ruby-2.1.5/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call'
 36: /Users/brian/.rvm/gems/ruby-2.1.5/gems/grape-0.9.0/lib/grape/api.rb:128:in `call'
 37: /Users/brian/.rvm/gems/ruby-2.1.5/gems/grape-0.9.0/lib/grape/api.rb:43:in `call!'
 38: /Users/brian/.rvm/gems/ruby-2.1.5/gems/grape-0.9.0/lib/grape/api.rb:39:in `call'
 39: /Users/brian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0.rc1/lib/action_dispatch/routing/mapper.rb:51:in `serve'
 40: /Users/brian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0.rc1/lib/action_dispatch/journey/router.rb:43:in `block in serve'
 41: /Users/brian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0.rc1/lib/action_dispatch/journey/router.rb:30:in `each'
 42: /Users/brian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0.rc1/lib/action_dispatch/journey/router.rb:30:in `serve'
 43: /Users/brian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0.rc1/lib/action_dispatch/routing/route_set.rb:800:in `call'
 44: /Users/brian/.rvm/gems/ruby-2.1.5/gems/rack-pjax-0.8.0/lib/rack/pjax.rb:12:in `call'
 45: /Users/brian/.rvm/gems/ruby-2.1.5/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:404:in `call_app!'
 46: /Users/brian/.rvm/gems/ruby-2.1.5/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:262:in `mock_call!'
 47: /Users/brian/.rvm/gems/ruby-2.1.5/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:181:in `call!'
 48: /Users/brian/.rvm/gems/ruby-2.1.5/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in `call'
 49: /Users/brian/.rvm/gems/ruby-2.1.5/gems/omniauth-1.2.2/lib/omniauth/builder.rb:59:in `call'
 50: /Users/brian/.rvm/gems/ruby-2.1.5/gems/rollbar-1.1.0/lib/rollbar/middleware/rails/rollbar_request_store.rb:13:in `call'
 51: /Users/brian/.rvm/gems/ruby-2.1.5/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'
 52: /Users/brian/.rvm/gems/ruby-2.1.5/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'
 53: /Users/brian/.rvm/gems/ruby-2.1.5/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
 54: /Users/brian/.rvm/gems/ruby-2.1.5/gems/rack-1.6.0.beta2/lib/rack/etag.rb:24:in `call'
 55: /Users/brian/.rvm/gems/ruby-2.1.5/gems/rack-1.6.0.beta2/lib/rack/conditionalget.rb:38:in `call'
 56: /Users/brian/.rvm/gems/ruby-2.1.5/gems/rack-1.6.0.beta2/lib/rack/head.rb:13:in `call'
 57: /Users/brian/.rvm/gems/ruby-2.1.5/gems/remotipart-1.2.1/lib/remotipart/middleware.rb:27:in `call'
 58: /Users/brian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0.rc1/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
 59: /Users/brian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0.rc1/lib/action_dispatch/middleware/flash.rb:260:in `call'
 60: /Users/brian/.rvm/gems/ruby-2.1.5/gems/rack-1.6.0.beta2/lib/rack/session/abstract/id.rb:225:in `context'
 61: /Users/brian/.rvm/gems/ruby-2.1.5/gems/rack-1.6.0.beta2/lib/rack/session/abstract/id.rb:220:in `call'
 62: /Users/brian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0.rc1/lib/action_dispatch/middleware/cookies.rb:560:in `call'
 63: /Users/brian/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0.rc1/lib/active_record/query_cache.rb:36:in `call'
 64: /Users/brian/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0.rc1/lib/active_record/connection_adapters/abstract/connection_pool.rb:647:in `call'
 64: /Users/brian/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0.rc1/lib/active_record/connection_adapters/abstract/connection_pool.rb:647:in `call'                                                                                [50/5640]
 65: /Users/brian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0.rc1/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
 66: /Users/brian/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0.rc1/lib/active_support/callbacks.rb:88:in `call'
 67: /Users/brian/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0.rc1/lib/active_support/callbacks.rb:88:in `_run_callbacks'
 68: /Users/brian/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0.rc1/lib/active_support/callbacks.rb:734:in `_run_call_callbacks'
 69: /Users/brian/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0.rc1/lib/active_support/callbacks.rb:81:in `run_callbacks'
 70: /Users/brian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0.rc1/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
 71: /Users/brian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0.rc1/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
 72: /Users/brian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0.rc1/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
 73: /Users/brian/.rvm/gems/ruby-2.1.5/gems/rollbar-1.1.0/lib/rollbar/middleware/rails/show_exceptions.rb:19:in `call_with_rollbar'
 74: /Users/brian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0.rc1/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
 75: /Users/brian/.rvm/gems/ruby-2.1.5/gems/railties-4.2.0.rc1/lib/rails/rack/logger.rb:38:in `call_app'

@siong1987 any update here. Getting same error with grape api and rails 4.2.0rc1

I had to specify serializer to fix.. It seems it isn't able to figure out what serializer to use?
         delete '/', serializer: ::CommentsSerializer, root: false do
         end

@testbrian Write a spec with your repro?

@nadeemyasin61 Could you reproduce with a spec?

closing this issue as it is multiple years old and the codebase has changed since then. if you can test this against master and repro the issue, please create another issue.

👍

authors: dblock drn nadeemyasin61 testbrian


text:
Add cron like task scheduling

To clean expired entries for example
To delete unused images

Done

repo: jrmi/ricochetjs


text:
Is it compatible with Bevy 0.15?

Does current version of bevy_godot4 compatible with newest Bevy 0.15 release?

Current compatibility is with 0.14


text:
Notifications on new Comments

Add Notification support for email and web site.
Email notifications will be using the SMTP setup on the site
Web Site notifications may be showing as a toast.

Email notification have been added.
Need to add Notification.OrchardCore plugin.


text:
Not able to edit user name

Need way to edit user name?

The last commit covers this new feature. Please feel free to give me your feedback about i.
Hervé

Nice work on the form and navigation.
This exposes the issue #8 Posts are owned by User Name rather then Users.uuid
You can see in the image below that when I change my name to "Barton W Hammond" after creating two posts and then add another post, the name on the first 2 posts have my old name "Barton Hammond".  I don't think the posts should have the name in them, but rather the uuid of the user.
I think this if the data is flattened you can do a join between the post and the user as discussed here: https://www.firebase.com/docs/web/guide/structuring-data.html#section-join

authors: bartonhammond jsappme

repo: jsappme/react-native-firebase-starter


text:
Agregar informacion sobre la aplicación

Hace falta agregar información sobre cómo utilizar la página para publicar y para entender la dinámica de esta en general

Gracias, ya se encuentra disponible


text:
Nuts and Bolts example

One of the most important mechanical building blocks are: bolts, nuts, screws, etc. Some of the most popular generative models on thingiverse are screw generators.
Have you ever tried making one in JSCAD? It's actually kind of tricky. So I took a shot at writing my own.
Initially I tried to use extrudeLinear with a twistAngle but that results in ugly and invalid geometry. The reason is that the wall faces get stretched as it rotates around. Instead I use extrudeFromSlices directly, and I carefully generate each slice by hand, so that the wall faces all line up.
I added this as an example model, so that hopefully users might find it helpful.

All Submissions:

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
[x] Does your submission pass tests?

@z3dev added color

Also refactored it to make it easier for users to adjust options for generating bolts of different sizes:

And yes, it does get picked up automatically as part of the examples:

I think it's time for another port to JSCAD V2... This is #1 configurable model on Thingiverse.
https://www.thingiverse.com/thing:193647


text:
🛑 Nextcloud is down

In c6886a2, Nextcloud ($SERVER_BASE/nextcloud/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Nextcloud is back up in 9add6ed after 542 days, 4 hours, 40 minutes.

repo: jscmidt/upptime


text:
🛑 Startpage is down

In 3a3566a, Startpage ($SERVER_BASE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Startpage is back up in d7f8cd5 after 547 days, 5 hours, 46 minutes.


text:
🛑 Tandoor is down

In 4fd7408, Tandoor ($SERVER_BASE/recipes/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Tandoor is back up in 9d5dce7 after 9 minutes.


text:
🛑 Startpage is down

In ae0b081, Startpage ($SERVER_BASE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Startpage is back up in 2725809 after 35 minutes.


text:
🛑 API is down

In 867294c, API ($SERVER_BASE/api/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: API is back up in 31390e8 after 21 minutes.


text:
🛑 Piwigo is down

In f131aa0, Piwigo ($SERVER_BASE/piwigo/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Piwigo is back up in e6a45bd after 30 minutes.


text:
🛑 Startpage is down

In 94f191d, Startpage ($SERVER_BASE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Startpage is back up in e4c2970 after 13 minutes.


text:
"Power" devices of different unit_of_measurements are merged

Some of my plugs report multiple values (e.g. W, kWh, A, V etc) but currently they are all being grouped in the sensor.area_power_* sensors. It would be better if they could be grouped in unit_of_measurement
HASS Version | 0.118.3
HASS Type | Home Assistant Core
Magic_Areas version | 1.1.0

Could you clarify? Do you mean grouping plugs with same units of measurement?

Could you clarify? Do you mean grouping plugs with same units of measurement?

Yes. One of my plugs exposes 5 entities with different units of measurements:

sensor.zolder_plug_wasdroger_power
sensor.zolder_plug_wasdroger_electricity_a_meter
sensor.zolder_plug_wasdroger_electricity_kwh_meter (counter of used kwh)
sensor.zolder_plug_wasdroger_electricity_pf_meter
sensor.zolder_plug_wasdroger_electricity_v_meter

They are however being combined into one *_power entity by magic_areas which does not make much sense to me with the different units.
For me, only the first one with unit_of_measurement: W is interesting. I could add them to the exclude (which I have done) but perhaps the "out of the box" behavior could be tweaked a little so it would make more sense?

Any reason you couldn't just disable them from the UI in the integration page?

The way that currently aggregation works is by seeing which unit_of_measurement pops out the most and use it. It's a wild guess. Division by unit_of_measurement would create a lot of complexity.
One solution for temperature would be checking the unit of measurement of the HA installation and maybe for power only consider watts.

This is being fixed on #74. Aggregations now consider not only device_class but also unit_of_measurement which will give different power device class aggregates for each unit_of_measure. Coming up on release 2.0.0

This is being fixed on #74. Aggregations now consider not only device_class but also unit_of_measurement which will give different power device class aggregates for each unit_of_measure. Coming up on release 2.0.0

Closed by #74, released on 2.0.0.

Closed by #74, released on 2.0.0.

authors: KTibow jseidl syphernl


text:
Simplify chrome execution debugging

Current steps to debug

needs a file starting an exploring server to execute any file
set a port both in exploring server and jsenv-chrome debug configuration in launch.json
start the exploring server
use the jsenv-chrome debug configuration

Steps before jsenv-chrome can be done once per project.
Server must be started or jsenv-chrome will fail.
After that jsenv-chrome debug configuration can be used.
Simplification using launchChromium
We could use launchChromium to start a chromium browser in debug mode -> it's already possible.
Then we could instruct vscode to connect to that chromium to debug it -> have to write our own vscode debugger or make https://github.com/microsoft/vscode-chrome-debug compatible with that concept.
Simplification using prelaunch task
It would prevent having to start the server but blocked by https://github.com/microsoft/vscode/issues/6209.
The solution where vscode connected to the chromium would be cleaner.

Certainly won't do, exploring server and a regular browser is better

repo: jsenv/jsenv-core


text:
Delete + erase via metadata API?

Is it possible to follow a delete command with an erase to make sure a metadata entity (like a custom field) is actually removed from Salesforce?
Right now running the delete command places the entity in the "recycle bin" for the object. For example:
var deferred = Q.defer();
var fieldsToDelete = ['Account.SomeField__c'];
conn.metadata.delete( 'CustomField', fieldsToDelete, function( err, response ) {
    if( err ) {
	deferred.reject( err );
    } else {
        console.log( response );
        deferred.resolve();
    }
});

return deferred.promise;

Running this snippet results in the following:

I see that there is a way to perform an erase using the deploy(...) command with the purgeOnDelete option. Is there a way this can be done using these one-off delete commands?

As a followup, I changed the approach I was taking here to not try and do deletes in this one-by-one fashion and instead use the destructiveChanges.xml approach. If anyone else is interested, here is what that code looks like:
var sfClient = [assume sfClient is an initialized and properly logged-in jsforce client];

// setup the polling interval and timeout for the deployment
sfClient.metadata.pollTimeout = CONFIG_SETTINGS.pollTimeout;
sfClient.metadata.pollInterval = CONFIG_SETTINGS.pollInterval;

// a deployment of this sort must have the following directory structure:
//    src/
//        destructiveChanges.xml
//        package.xml 					(empty but required)
var zipBuff = [create a zip stream of the destructive bundle using the format above];

// send the deployment package up to salesforce
var deployResult = sfClient.metadata.deploy( zipBuff, { rollbackOnError : true, purgeOnDelete : true } );

// when the deployment is complete, do something
deployResult.complete( function( err, res ) {
    if( err ) {
        // handle the error
    } else {
        // handle a deployment that may or may not have actually succeeded by inspecting the response
    }
});

@arbokrad As the delete() method in metadata is a direct mapping of deleteMetadata() in the metadata API, the deleted definition will always go to trash.  The way you did in deploy() is the way to delete them entirely. I hope I can add the same functionality to jsforce-metadata-tools when supporting the destructive deploy.

authors: arbokrad stomita

repo: jsforce/jsforce


text:
[[FIX]] emit I003 more carefully and less annoyingly

Allows toggling es5 mode on/off if anyone needs that
Only warns if the es5 option is explicitly set

Closes #2251

Coverage increased (+0.03%) to 96.36% when pulling fa6f842e34e94f8cd5a488430d99e97a1a77663f on caitp:issue-2251 into 12811e797a264f323b920b314db965b8adcb207e on jshint:master.

https://github.com/jshint/jshint/commit/757fb73dbd5f5bb842053dbce294e30e5f130b49

authors: caitp coveralls rwaldron

repo: jshint/jshint


text:
[[DOCS]] Fix incorrect information about scopes in JavaScript

Comment stated that JavaScript has only two real scopes.
This is incorrect as identifiers declared with let and const do have
block scope.
Maybe a little nitpicky but I think that as long as the information is there, it should be correct. It's also wrong on http://jshint.com/docs/options/

Coverage remained the same at 98.744% when pulling c43c26f2f1e2be606a05496acea862b5795daeed on kpiotr:scope-docs into c7c5c42885aa618e384de3f6589793fd419de7c1 on jshint:master.

Not nitpicky at all; your change is correct and helpful.
I've removed the changes to the files in dist because we generate those files for each release.  And as for the website; that content is derived from the source code, so your new text will be pushed there when we release the next version of JSHint.
Merged to master at commit c4370d9ee8b5367cfc0bf391618e7029852c78b8. Thanks for taking the time to fix this!

authors: coveralls jugglinmike kpiotr


text:
Add support for SSH "checkPeriod" option

Hello,
After submitting this issue you made a first implementation very quickly, props for that.
The only thing holding back security in our organisation has been the missing SSH "checkPeriod" option as logging in every time you get disconnected from a server is a no-go for us.
Are you still planning to add the implementation for this feature? If so, do you have an ETA?
Thank you again for creating this project, it has already been very useful for us.
Cheers,
Max

Hi @MaxwellSchmidt97
Thanks for the feedback.
The "checkPeriod" is indeed not yet supported.
It is still something I would like to add, but I won't be able to work on it anytime soon, so I won't commit to any ETA.

added with PR #21

repo: jsiebens/ionscale


text:
Failed test while building

Hi,
Running mvn package yields this:
Failed tests:   clean(webapp.runner.launch.TomcatBaseDirResolutionTest): expected [true] but found [false]
Any idea how to solve it?

What OS are you using?

Windows

@aghasemi i think this should be fixed now. please let me know if it still occurs.

authors: aghasemi jkutner

repo: jsimone/webapp-runner