[Feature Request]:  Floating Animation

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
Floating animation for user engagement.
Use Case
Floating animation for user engagement.
Benefits
Floating animation for user engagement.
Add ScreenShots

Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

floating animation on what? please explain the issues in detail

@VaibhavArora314  the image will levitate on the x axis that will appear as eyecatchy experience.

@VaibhavArora314  the image will levitate on the x axis that will appear as eyecatchy experience.

A tilt effect is currently being added to that image in other issue. So, I don't think this will look good with that.

@VaibhavArora314 as like home image it will levitate.

@VaibhavArora314 as like home image it will levitate.

check the website, tilt animation is added to the images


ES6 support?

Hi, and first of all thanks for a great piece of code.
Have you considered adding support for ES6 files – run via babel or traceur?
It should be as simple as looking for import .+ from "<dependency>(/.+)?"; as well as  require\("<dependency>(/.+)?"\);.

Running through the same issue. It's saying that some packages are not being used and actually they are. I'm also assuming this is because of the ES6 syntax.
As an example it's saying the package fluxible-plugin-routr is not in use, but actually its on a root file app.js, this is the syntax I'm using to load it.
import routrPlugin from 'fluxible-plugin-routr';

Hey guys,
I will look into it, ES6 support is definitely a must have.
Thanks for taking the time to write an issue.

I wonder if a more versatile approach would be to allow piping via stdin, then it would be possible to do something like babel file.js | depcheck.

I have this issue too. I started using React in my code recently. I run .es6 and .jsx files with babel so I can use JSX and ES6 functionality in some of my code.
My requires are still traditional require(...) calls. But because depcheck only looks for files ending in .js and parses ES3/ES5. Any module I only use in ES6/JSX code like require('classnames') is marked as not used.
I'm not using depcheck directly. Instead I'm using npm-check and this has an effect on that.

:+1: for es6 support in .js and .jsx

:+1: here. :)

I think that the package detective-es6 can be leveraged to resolve this issue.

+1 :)

:+1:

@rumpl I have implemented the support for ES6 in #29, could you please take a look?

:+1:

This has been closed in #29

Hi, all.
Because @rumpl don't response on my PR. I decide to publish my fork to NPM and rename to depcheck-es6. It is a drop-in replacement for depcheck package.
Modify your package.json to replace depcheck to depcheck-es6 and update your require or import statements.
Personally, besides ES6 support, I am proposing supports for JSX and gulp. If anybody have some ideas, please open an issue in my fork.

Hi all, I am back. :smiley:
Depcheck-es6 is merged back to original depcheck now. I have released version 0.5.9 on depcheck package in NPM.
Thanks for @rumpl moving the repo under the org. I will continue to develop and maintain the project.


Conforming to Codable adds an unexpected increase to the binary size

Describe the bug
When making a type conform to the Codable protocol (and leveraging the compiler synthesised code gen), it brings with it a significant (and I guess unexpected, at least to me) increase to the size of the binary.
In the most simplified example:

Input

import Foundation

struct Foo {
    let bar: String
}

import Foundation

struct Foo: Codable {
    let bar: String
}

Command

$ swiftc -wmo File.swift && stat -f%z File

Output (Bytes)

35345

62545

That's over 1.7x increase in size that I would never have anticipated from just conforming to a protocol.
Steps To Reproduce
Steps to reproduce the behavior:

Download macOS.playground.zip

This Playground benchmarks the complication of a Swift file that contains 300 structs created in different configurations.

Open the Playground in Xcode 13.4.1 (or the 14 betas)
Run the playground and observe the output that looks similar to the following:No Conformance     : 556 kB (569,466 bytes)
Decodable (Auto)   : 3,501 kB (3,585,354 bytes)
Decodable (Manual) : 3,018 kB (3,090,618 bytes)
Nested Enum        : 1,744 kB (1,785,498 bytes)
StringCodingKey    : 929 kB (950,874 bytes)

Expected behavior
The Decodable (Auto) benchmark should result in a size that is a lot closer to No Conformance.
Environment (please fill out the following information)

OS: macOS 12.4 (21F79)
Xcode Version/Tag/Branch: 13.4.1 (13F100)
Apple Swift version 5.6.1 (swiftlang-<IP_ADDRESS>3.66 clang-13<IP_ADDRESS>)

Additional context
I'm coming from CreateAPI/CreateAPI#57, which is a tool for generating entities from OpenAPI schema documents (such as the App Store Connect API). In some cases, the generated code ends up including a lot of Codable conforming types and it became apparent that something was bloating the binary size when compiling this code.
After some digging, I tracked a significant part of the issue back to the presence of CodingKey enums in every type and I was surprised to find that when we replace all n enums with a single StringCodingKey type, our generated code ends up taking significantly less space in the binary.
In CreateAPI, we can make use of this optimisation by using StringCodingKey, but what stuck out to me was that the compiler generated Codable implementations are also bloated due to the creation of multiple CodingKey enums. While I get the value of using CodingKey enums for type safety in manually written implementations, it feels to me that the compiler generated code could probably avoid this?
I'm happy to provide more details if required, and I'm also keen to learn more about why enums have this kind of impact if anybody is able to provide more info. Thanks!

CC: @jckarter @aschwaighofer @drexin

Hi,
I was experimenting with the approach that uses manual conformances with single StringCodingKey struct as a replacement to Swift generated  conformances of Codable|Decodable|Encodable protocols on the iOS project that i work on, hoping to see the app size reduction similar in magnitude to what's been reported in this thread (Decodable (Auto) -  StringCodingKey) and on CreateAPI thread (see), but unfortunately the difference that i observed and consequently the app size reduction was much much smaller.
I spent some time trying to figure out why, supposing that maybe there was something i was doing wrong.
What i actually found out is that when binaries are properly stripped the difference is indeed much much smaller.
To demonstrate this i put together an iOS project from Xcode template, added to it 300 structs that conform to Codable, using manual conformances with single StringCodingKey struct and using Swift generated conformances, toggleable by compilation condition, and measured app's binary size when the project is compiled with default Release configurations VS when the project is compiles with default Release configurations + build settings for stripping.
https://github.com/vakhidbetrakhmadov/Codable/tree/main
These are the results that i got:

Test case
App's Binary Size

Swift generated conformances AND default Release configuration( make build__with_default_codable )
3,414,816 bytes (3.4 MB on disk)

Manual conformances with single StringCodingKey struct AND default Release configuration( make build__with_string_coding_key_codable )
855,056 bytes (856 KB on disk)

Swift generated conformances AND default Release configuration + build settings for stripping( make build__with_default_codable__and_size_optimization_build_settings )
613,472 bytes (614 KB on disk)

Manual conformances with single StringCodingKey struct AND default Release configuration + build settings for stripping( make build__with_string_coding_key_codable__and_size_optimization_build_settings )
260,688 bytes (262 KB on disk)

Very interesting, thanks for sharing this @vakhidbetrakhmadov! So the trick is the non-default build settings that your project uses:

SWIFT_OPTIMIZATION_LEVEL = -Osize
DEPLOYMENT_POSTPROCESSING = YES
STRIP_INSTALLED_PRODUCT = YES
STRIPFLAGS = -rSTx
OTHER_SWIFT_FLAGS = -Xfrontend -internalize-at-link
OTHER_LDFLAGS = -Xlinker -exported_symbols_list -Xlinker /dev/null

Do you happen to know much about which settings are the most beneficial here? Or is it a combination of everything?
I'll need to dig into the output binaries a bit further to better understand what exactly is being stripped. It's great that there is a workaround, but I'm not quite sure of the tradeoffs from these settings so would love to learn more 🙇


Add checksums and other security artifacts to tools downloads

Andrei Alexandrescu (@andralex) reported this on 2014-12-22T17:38:41Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=13887
CC List

Vladimir Panteleev (@CyberShadow)

Description
Per<EMAIL_ADDRESS>

dlang-bugzilla (@CyberShadow) commented on 2014-12-22T18:01:58Z
FWIW: Certum provides free code-signing certificates to open-source developers.

I wrote some info on my blog:

http://blog.thecybershadow.net/2013/08/22/code-signing/

However, since these are given to individuals, I think DigitalMars should probably just buy a code signing certificate.


KEY_QUERY_VALUE is not nescessary for some information classes

KeyNameInformation and KeyHandleTagsInformation don't require KEY_QUERY_VALUE access on KeyHandle

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 68a22613-e97b-aa54-5a5c-b72b6995f447
Version Independent ID: ad448216-3eb6-d584-0616-aa53df8df8e5
Content: ZwQueryKey function
Content Source: wdk-ddi-src/content/wdm/nf-wdm-zwquerykey.md
Product: windows-hardware
GitHub Login: @windows-driver-content
Microsoft Alias: windowsdriverdev

@OZ1 Thanks for pointing this out. I have updated the topic with a note. It should be live shortly
Page Writer

thanks)


Bump senzing from 3.2.0 to 3.3.0

See https://github.com/Senzing/senzingapi-runtime/issues/31

Pull requests:

https://github.com/Senzing/postgresql-client/pull/44


Right-clicking an empty folder doesn't show the context menu of the Files pane

Entering inside a folder without elements and then right clicking inside it doesn't show the context menu of the Files pane:

Originally posted by @dalthviz in https://github.com/spyder-ide/spyder/pull/12401#issuecomment-642978296

@ccordoba12 do you think this should go for 4.1.4? Seems like an easy enough fix.

Sure. @steff456, please take a look at this one.

I'm not able to reproduce this issue in macOs or linux in the current 4.x branch


{“code”:1,”message”:”Session ID unknown”} - Are these normal socket.io responses?

Hi,
I’m trying to debug a new, dead simple deployment on a GCP Ubuntu image.
Running the server, once i click the “Audio” or “Audio and Video” buttons from the {domain}/{roomname} URL, I see a quick flash of the room scripts load, a quick pop up “Unable to join room” and it reloads the previous URL.
Digging into this a bit, I see a bunch of queries/post/gets to:
/socket.io/?peerId=xxxxxxxxxx&roomId=xxxxxxxxxxxxxx&EIO=3&transport=polling&t=xxxxxxxx&sid=xxxxxxxx
that all have the response:
{“code”:1,“message”:“Session ID unknown”}
Which looks like it’s coming from socket.io, and there’s not much help other than “use websockets” elsewhere online…
1 - Is this normal behaviour, and so I should keep looking for my connection problems elsewhere?
2 - Any suggestions as to why this is happening… I’m using the “numb.viagenie.ca” turn server for testing, before deploying my own…
Thanks,
a hardware engineer

I know this isn't an issue, but a question...  the mediasoup forums are very unhelpful, so I'm posting this here.  Any other suggestions of places to look for assistance?

This is as you say an issue with websocket and/or socket.io long-polling. Do you have a nginx, or similar, web proxy in front of the edumeet server?
As a test you could modify the following line:
https://github.com/edumeet/edumeet/blob/67ae1a796d7c1873a82814ead33ccc3bd3776c59/app/src/RoomClient.js#L2045
Change it to:
this._signalingSocket = io(this._signalingUrl, { transports: ['websocket'] });
This disables long-polling, and uses only websockets.
Rebuild in the app folder and try again.

No response much over 1 month.


[Bug]: After creating a function or stored procedure that triggers database change approval, the creation fails and a syntax error is reported.

ODC version
ODC4.2.3
OB version
independent
What happened?
After creating a function or stored procedure that triggers database change approval, the creation fails and a syntax error is reported.

What did you expect to happen?
can exectute nornamlly
How can we reproduce it (as minimally and precisely as possible)?
chat privately
Anything else we need to know?
No response
Cloud
No response

The same procedure works for me:

When init  a database change task, we must set a right delimiter here:


How to use from Typescript?

On Node 10.x, Object.fromEntries is not supported, so a shim is needed to use it. This is the official shim, but there seems to be no way to use it from TypeScript without manually including a typing in my project.
import fromEntries from "object.fromentries";

gives the following error:
TS7016: Could not find a declaration file for module 'object.fromentries'. '/Users/ariofrio/Work/RonaldCundy/rectecgrills-firebase/functions/node_modules/object.fromentries/index.js' implicitly has an 'any' type.   Try `npm install @types/object.fromentries` if it exists or add a new declaration (.d.ts) file containing `declare module 'object.fromentries';

However, there is no @types/object.fromentries package either.
Would you be open to adding the typings here, or would you rather they be added in DefinitelyTyped, or is there an alternative solution I haven't thought of? For instance, a version of the typings are already included in the TypeScript installation. Normally, they would be included using the following in tsconfig.json:
{
  "compilerOptions": {
    "lib": ["es2019"],
  }
}

Except that adds the function to Object, instead of as an importable function. And it includes all library features in ES2019 (I currently specify ES2018 which is largely supported by Node 10), not just this particular one, giving false positives if I try to use another.
This is probably an issue that is not unique to Object.fromEntries and applies to other shims in this organization.
For reference, here is the object.fromentries.d.ts I'm using in my project:
declare module "object.fromentries" {
  // Adapted from node_modules/typescript/lib/lib.es2019.object.d.ts

  /**
   * Returns an object created by key-value entries for properties and methods
   * @param entries An iterable object that contains key-value entries for properties and methods.
   */
  export default function fromEntries<T = any>(
    entries: Iterable<readonly [PropertyKey, T]>
  ): {
    [k in PropertyKey]: T;
  };

  /**
   * Returns an object created by key-value entries for properties and methods
   * @param entries An iterable object that contains key-value entries for properties and methods.
   */
  export default function fromEntries(entries: Iterable<readonly any[]>): any;
}

It'd be fine to submit a PR to DefinitelyTyped to add the types package for object.entries; there's a few other es-shims in there.
I'm not interested in shipping types anywhere without a tool to keep them in sync with the JS, that doesn't require adding any annotations inside the JS.
(i'd use T and not any in the Iterable overload, fwiw)

I just copied what the standard library says. Which is "the Iterable overload"? Both overloads use Iterable, and both use any. Would appreciate it if you clarified your suggestion.
Also, what would such a tool look like? I've seen many package maintainer express similar sentiments (about shipping types without a tool to keep them in sync with JS without annotations), and I'm genuinely curious about what could help make our collective experience better.

I'd suggest:
export default function fromEntries<T = unknown>(
    entries: Iterable<readonly [PropertyKey, T]>
  ): {
    [k in PropertyKey]: T;
  };

export default function fromEntries(entries: Iterable<readonly T[]>): {
  [k in PropertyKey]: T;
};

so that there's no "any" usage at all (even if the TS types aren't that rigorous).
I'm not sure, but I believe the TS team is exploring it.


Docs: Add documentation for additional action types supported by Custom Triggers

Description of your changes
Adds documentation related to this PR.
I have:

[X] Read and followed KubeVela's contribution process.
[ ] Update sidebar.js if adding a new page.
[X] Run yarn start to ensure the changes has taken effect.

Special notes for your reviewer

ping @FogDong

Thanks @wonderflow @FogDong !!


Split out resolver mechanism

I believe I mentioned this at some point before, but I would absolutely love if the resolve logic for constructing the resolve tree was split out to a separate repository - we have a good need of it in UI Bootstrap for handling modal resolves, and other libraries could potentially use this as well.

@wesleycho can we close this since ui-bootstrap is now that you got the $resolve service wired up for ui-bootstrap?

Yep


doc Improve and supplement hight-concurrent-point-query documentation

…urrent-point-query documentation (#29396)
Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Neovim - client.request commands for setToken and setSelfHostedUrl result is nil

I have implemented the functionality for setting the Circle user token and self-hosted URL in my neovim plugin, PR here. Annoyingly I am unable to test it because the Circle org I work on has no private contexts/orbs and it's not self-hosted.
However I'd just like to check I've done it correctly; when the client.request command is made, the handler callback in the Lua code has two params - error and result (and ctx and config). According to the Neovim LSP docs, error is nil if the request completed. And result should be defined - if it's nil the request failed. When the LSP client attaches when I run it, both these are nil. The Microsoft docs for language servers say this shouldn't be the case.
In the third param in the handler callback (ctx), it contains the arguments supplied (ctx.params.arguments). These arguments contained the user token and self-hosted URL.
Does my code work? Should the Circle LSP be responding with some result to indicate success - or is it enough that error is nil? I looked at :LspLog in neovim but it doesn't appear to be sending anything. Are there any other logs I can look at for the Circle LSP?

Hey @tomoakley, I just opened a PR to make the returns more pertinent. That being said with the current implementation, it's in fact unclear whether the command succeeded or failed so you may just want for these changes to be released.
Thanks for raising this :D!

Awesome, thanks Jules. I will merge my PR now and when a new version is released will check it out. Thanks!

FYI, looking at the Microsoft docs, it makes sense to return nil in case of success, as there is nothing to return here, we'll keep returning nil when the command succeeds but you'll be ensured that you'll get an error if any error happens.

Hey, closing the issue as the version is now released.


add scripts into path with a common naming scheme for auto-complete

need to note the list of scripts to include, and minimally a help output when running them for usage examples

Scripts in info_tools

[ ] get_info.sh
[ ] get_logs.py
[ ] get_messages.sh
[ ] get_namespaces.py
[ ] get_service.sh
[ ] get_status.py
[ ] get-tasks.sh
[ ] get_tools.sh
[ ] get_types.sh


Render slash commands as pills

Does this include the x button? I was wondering if that's really necessary, it takes up a lot of space inside something that I'm reading, and I would expect most people to interact with this using the keyboard. Could even say that you can click the whole thing to remove if we think people will get really stuck.

Yeah, I was going off of some design mockups that David had put together a while ago for https://github.com/microsoft/vscode/issues/158064, but it doesn't have to include the x (I hadn't pushed those changes yet, they were WIP)


Add Rule NewlineAtEndOfFile.

Fixes #181

That's something we can auto correct. Should we move that to formatting?

I think having both would be beneficial. I'm not using the auto formatting and would like to get it flagged.

You can run the formatting without auto correcting ^^. It is basically the decision in which rule set it will come and I think formatting is more appropriate as we can auto correct this one.
Ofc its the dilema that it also fits into style and should we provide more formatting rules if #38 is unclear

Hmm how about getting this merged first and then see whether we can improve the auto formatting?

I don't mind, maybe we tackle formatting 1.1 ^^

Sounds good 👍


the Converted Text file can't be visualized by et_visualizer

Describe the Bug

mistake report is the following thing

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.8/dist-packages/chakra/et_visualizer/et_visualizer.py", line 81, in <module>
    main()
  File "/usr/local/lib/python3.8/dist-packages/chakra/et_visualizer/et_visualizer.py", line 40, in main
    while decode_message(et, node):
  File "/usr/local/lib/python3.8/dist-packages/chakra/third_party/utils/protolib.py", line 138, in decodeMessage
    message.ParseFromString(buf)
google.protobuf.message.DecodeError: Error parsing message

the command which I used to visualizer is this
python3 -m chakra.et_visualizer.et_visualizer\
    --input_filename ../../outputs/convert_result/Resnet50_DataParallel/Resnet50_DataParallel.0.et\
    --output_filename ../../outputs/pic_result/Resnet50.pdf

Steps to Reproduce
I use the following command to convert the txt to et file
python3 -m chakra.et_converter.et_converter\
    --input_type Text\
    --input_filename ../../inputs/workload/ASTRA-sim-1.0/MLP_ModelParallel.txt\
    --output_filename ../../outputs/convert_result/MLP_ModelParallel\
    --num_npus 64\
    --num_dims 1\
    --num_passes 1

and the result is like this
�
schema�1.0.2-chakra.0.0.4�

input_file��MODEL
6
layer_64_1_mlp0	-1	32291	ALLGATHER	37632	32291	ALLREDUCE	37632	12864	NONE	0	3229
layer_64_1_mlp1	-1	7488	ALLGATHER	65536	7488	ALLREDUCE	65536	3648	NONE	0	749
layer_64_1_mlp2	-1	7488	ALLGATHER	65536	7488	ALLREDUCE	65536	3456	NONE	0	749
layer_64_1_mlp3	-1	14144	ALLGATHER	147456	14144	ALLREDUCE	147456	10368	NONE	0	1414
layer_64_1_mlp4	-1	7488	ALLGATHER	65536	7488	ALLREDUCE	65536	3648	NONE	0	749
layer_64_2_mlp5	-1	9984	ALLGATHER	65536	9984	ALLREDUCE	65536	3456	NONE	0	998%COMP_NODE_layer_64_1_mlp0_FWD8��Q(COMM_COLL_NODE_layer_64_1_mlp0_ALLGATHER*

Expected Behavior
Maybe is the convert file has some problems?

Could you please share the input files as a .tgz archive so that we can reproduce and fix the issue?

ASTRA-sim-1.0.zip
Uploading convert_result.zip…

ASTRA-sim-1.0.zip
convert_result.zip

the first is the astra_sim‘s input ,the second stores some result by et_converter

We do have resources to actively support text converter. You could request help from ASTRA-sim devs.


Combine is_broken and resource

Solving #3 here.

@realcr Why don't you use self.awakeners.clear() in fn drop_awakeners(). As I see, using clear() is not different from the current code, and it's cleaner.

@juchiast : If you think that using clear() is equivalent to drop_awakeners(), maybe we should indeed shorten the code. I think that the code is that way because we weren't sure. It is crucial that all the contents of awakeners will be dropped.

@realcr
In addition to #3, I move the awakeners linked list into ResourceState::Pending. The state now look like this:
enum ResourceState<T> {
    Broken,
    Pending(LinkedList<oneshot::Sender<T>>),
    Present(T),
}

With this, we can get rid of an assert!() here.

@juchiast : Very cool! I think that this is a smart design choice.
When you think this pull request is good please assign me as a reviewer, and we can merge it.

@realcr it seems okay now.

@juchiast : Cool, I will read it.


Happy new year!

Summary
Took me 14 days to realize, but its a new year!

Sry but you're 352/351 days early


CODEOWNERS: add pkg/operator to cilium/operator

Signed-off-by: André Martins<EMAIL_ADDRESS>

This change is

Coverage decreased (-0.06%) to 45.414% when pulling 44b602fd126c5f364a1d092a62c3cfa7409edd76 on pr/add-operator-codeowners into 50aa04bdb470f8ba9ba4ef574ef9c4b3d7fa949f on master.


Use cachetools's LRUCache to cache manifest list

Closes #595, Reverts #787, Closes #1162
Reimplement manifest list cache using the cachetools library. This keeps the manifest list cache as a global cache and introduces the ability to specify the cache key as only manifest_list.
The cache result is stored as Tuple instead of List to prevent modification
Move the _manifests function from snapshots.py to manifest.py since its a global manifest cache and not specific to any 1 snapshot

When is the release (0.8.0) planned for - would it be possible to release this fix on a 0.7.2 hotfix release? This solves #1162 bug that is blocking usage, unless there is a workaround. Thanks!


Fix element-ui CSS on production

Man, keeping this CSS configuration working is tough.
I think that the main change in this PR is adding the allChunks: true option to the ExtractTextPlugin configuration.
Per the docs:

allChunks: Extract from all additional chunks too (by default it extracts only from the initial chunk(s))

When using CommonsChunkPlugin and there are extracted chunks (from ExtractTextPlugin.extract) in the commons chunk, allChunks must be set to true

This was working previously without the allChunks option, but something (or some combination of things) in the package upgrades that I've done recently seems to have broken it. But now with this PR it's working again. (The "brokenness" is that actually 2 commons-<hash>.css bundles were being built on production. One contained the element-ui CSS; the other didn't -- and the one that did not contain the element- ui CSS is the one that was being served on production.)
This might (total speculation) solve the problem of the fact that I think (at least, according to dareboost.com) that I might have been loading the element-ui CSS rules twice?

It did not fix the doubled CSS from element-ui. However, it's not all element-ui CSS classes that are repeated -- just some of them. Interesting.


SPLAT-226: fix typo on log level flag

PTAL?
/assign @rvanderp3

CI tests are passing. Moving this PR forward to add the changes in v0.5 queue[1] for alpha.5 including[2].
[1] https://issues.redhat.com/browse/OPCT-257
[2] https://github.com/redhat-openshift-ecosystem/provider-certification-tool/pull/76


build extension with separate fsharp core version

This makes the extension work out of box in VS.
Also added some paths to scan paket.exe after suggestions in #3950

@forki this is green, for review.

awesome. thanks
next step would be to use fsharp.core 5 everywhere

somehow the release is still compiled against fsharp.core <IP_ADDRESS>, not sure how it is happening.

Could you please try to update FSharp.Core everywhere?
Gauthier Segay<EMAIL_ADDRESS>schrieb am Fr., 4. Dez. 2020,
19:38:

somehow the release is still compiled against fsharp.core <IP_ADDRESS>, not
sure how it is happening.
[image: image]
https://user-images.githubusercontent.com/87944/101201568-d1191c00-361c-11eb-8fb5-0da4876b8c0d.png
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/fsprojects/Paket/pull/3962#issuecomment-738949716,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAOANH4XPB6GEWRDSQCGZTSTEUD3ANCNFSM4UKCFWWA
.


Installation issue(Building from source code)

I am using MacOs X mojave 10.14.15
anaconda as a virtual enviroment,
i installed all dependencies with homebrew
but after ruuning make i am getting this build error

[  0%] Performing configure step for 'Eigen3'
-- Standard libraries to link to explicitly: none
-- Found unsuitable Qt version "5.9.7" from /opt/anaconda3/envs/QA/bin/qmake
-- The Fortran compiler identification is unknown
-- A cache variable, namely BLAS_DIR, has been set to specify the install directory of BLAS
-- Looking for BLAS -- mkl.h not found
-- Looking for MKL BLAS: not found
-- Looking for Goto BLAS: not found
-- Looking for Open BLAS: not found
-- Looking for Eigen BLAS: not found
-- Looking for Eigen BLAS: not found
-- Looking for Atlas BLAS: not found
-- Looking for PhiPACK BLAS: not found
-- Looking for CXML BLAS: not found
-- Looking for DXML BLAS: not found
-- Looking for SunPerf BLAS: not found
-- Looking for SCSL BLAS: not found
-- Looking for SGIMATH BLAS: not found
-- Looking for IBM ESSL BLAS: not found
-- Looking for IBM ESSL MT BLAS: not found
-- Looking for ACML BLAS: not found
-- Looking for ACML BLAS: not found
-- Looking for ACML BLAS: not found
-- Looking for Apple BLAS: not found
-- Looking for NAS BLAS: not found
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - not found
-- Looking for Generic BLAS: not found
-- Looking for Generic BLAS: not found
-- Looking for Generic BLAS: not found
-- Looking for Generic BLAS: not found
-- Looking for Generic BLAS: not found
CMake Warning at cmake/FindBLAS.cmake:1371 (message):
BLA_VENDOR has been set to All but blas libraries could not be found or
check of symbols failed.

Please indicate where to find blas libraries.  You have three options:

Option 1: Provide the installation directory of BLAS library with cmake
option: -DBLAS_DIR=your/path/to/blas

Option 2: Provide the directory where to find BLAS libraries with cmake
option: -DBLAS_LIBDIR=your/path/to/blas/libs

Option 3: Update your environment variable (Linux: LD_LIBRARY_PATH,
Windows: LIB, Mac: DYLD_LIBRARY_PATH)

To follow libraries detection more precisely you can activate a verbose
mode with -DBLAS_VERBOSE=ON at cmake configure.
You could also specify a BLAS vendor to look for by setting
-DBLA_VENDOR=blas_vendor_name.
List of possible BLAS vendor: Goto, ATLAS PhiPACK, CXML, DXML, SunPerf,
SCSL, SGIMATH, IBMESSL, Intel10_32 (intel mkl v10 32 bit),Intel10_64lp
(intel mkl v10 64 bit, lp thread model, lp64 model), Intel10_64lp_seq
(intel mkl v10 64 bit, sequential code, lp64 model),Intel( older versions
of mkl 32 and 64 bit), ACML, ACML_MP, ACML_GPU, Apple, NAS, Generic
Call Stack (most recent call first):
cmake/FindLAPACK.cmake:138 (find_package)
test/CMakeLists.txt:30 (find_package)

-- A library with BLAS API not found. Please specify library location.
-- LAPACK requires BLAS.
-- Could NOT find CHOLMOD (missing: CHOLMOD_INCLUDES CHOLMOD_LIBRARIES)
-- Could NOT find UMFPACK (missing: UMFPACK_INCLUDES UMFPACK_LIBRARIES)
-- Could NOT find SUPERLU (missing: SUPERLU_INCLUDES SUPERLU_LIBRARIES SUPERLU_VERSION_OK)
-- Checking for one of the modules 'hwloc'
-- Looking for Fortran sgemm
CMake Error: CMAKE_Fortran_COMPILER not set, after EnableLanguage
CMake Error at /usr/local/Cellar/cmake/3.16.4/share/cmake/Modules/CheckFortranFunctionExists.cmake:63 (try_compile):
Failed to configure test project build system.
Call Stack (most recent call first):
cmake/FindBLAS.cmake:297 (check_fortran_function_exists)
cmake/FindBLAS.cmake:1297 (check_fortran_libraries)
cmake/FindBLASEXT.cmake:53 (find_package)
cmake/FindBLASEXT.cmake:86 (find_package_blas)
cmake/FindPASTIX.cmake:214 (find_package)
test/CMakeLists.txt:83 (find_package)

-- Configuring incomplete, errors occurred!
See also "/Users/bhavuk/Desktop/shogun/build/Eigen3/src/Eigen3-build/CMakeFiles/CMakeOutput.log".
See also "/Users/bhavuk/Desktop/shogun/build/Eigen3/src/Eigen3-build/CMakeFiles/CMakeError.log".
make[2]: *** [Eigen3/src/Eigen3-stamp/Eigen3-configure] Error 1
make[1]: *** [src/shogun/CMakeFiles/Eigen3.dir/all] Error 2
make: *** [all] Error 2

@bhavukkalra plz check how we build the macos version of shogun in our CI: https://github.com/shogun-toolbox/shogun/blob/develop/.ci/macos-steps.yml

I am still confused about how to solve this. Could you elaborate more? Thank you!


Look at how techniques can be optimised

For example all width's are currently re-written for reliability but this comes at a cost of larger CSS file.

Optional support for percentages
Move width calculation into :root
Optional support for rewriting all occurrences of width
Optional support for nesting
Potentially use Javascript to calculate width

To avoid rewriting all width and flex-basis properties, we can make a variable available which will then employ the polyfill for that property.
For example:
.flex_item {
    flex-basis: calc(50% - var(--flex-gap));
}

The polyfill will do the rest.


chore(cli): Do not display headers automatically added by requests in code samples

Codecov Report

Merging #1549 (893a13f) into master (1be25ac) will decrease coverage by 0.27%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1549      +/-   ##
==========================================
- Coverage   98.87%   98.59%   -0.28%
==========================================
  Files          91       91
  Lines        7274     7275       +1
  Branches     1286     1253      -33
==========================================
- Hits         7192     7173      -19
- Misses         51       63      +12
- Partials       31       39       +8

Impacted Files
Coverage Δ

src/schemathesis/models.py
99.08% <100.00%> (+<0.01%)
:arrow_up:

src/schemathesis/runner/serialization.py
91.58% <100.00%> (ø)

src/schemathesis/utils.py
96.82% <100.00%> (-0.79%)
:arrow_down:

src/schemathesis/_compat.py
58.06% <0.00%> (-12.91%)
:arrow_down:

src/schemathesis/specs/openapi/validation.py
76.47% <0.00%> (-11.77%)
:arrow_down:

src/schemathesis/extra/pytest_plugin.py
95.62% <0.00%> (-4.38%)
:arrow_down:

src/schemathesis/runner/impl/threadpool.py
98.21% <0.00%> (-1.79%)
:arrow_down:

src/schemathesis/cli/callbacks.py
98.79% <0.00%> (-1.21%)
:arrow_down:

src/schemathesis/cli/cassettes.py
98.87% <0.00%> (-1.13%)
:arrow_down:

... and 2 more

Continue to review full report at Codecov.

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


Fix subscription id mismtach

Closes #230

this did not fix linked issue for me
I still get  cannot find websocket message handler for a new stream.... this should not happen with this change

Hi @SC4RECOIN,
Could you please confirm if it works now? During our tests, Uint32 passed successfully. We have updated it to a string as suggested and it should still work as intended.


[en] Update Bash alias auto-completion

Problem
Related to this kubectl issue: 1181.
Current Bash alias documentation leads to an inoperative path completion (especially when using the Kustomize flag -k).
The faulted command is the one describing the shell completion extension for an alias: complete -F __start_kubectl k
It missed the -o default argument to enable the the default completion settings which let doing file completion:
complete -o default -F __start_kubectl k.
Correction
Applied this command to update the various templates affected:
grep -rl "complete -F __start_kubectl k" content/en/ | xargs sed -i 's/complete -F __start_kubectl k/complete -o default -F __start_kubectl k/g'

This PR might have relation with the issue #32156.

This PR has a [technical review and approval](https://github.com/kubernetes/website/pull/32127#pullrequestreview-9698438640 from @marckhouzam, so let's move it forward.
/lgtm
/approve


Build failure for d47b18ead07f99181db87d2

I just pulled d47b18ead07f99181db87d2, and I can't build anymore:
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe  -DMACOS_X_UNIX  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/misc1.o misc1.c
menu.c:2661:20: warning: implicit declaration of function 'vim_iswhite' is
      invalid in C99 [-Wimplicit-function-declaration]
        while (*linep && !vim_iswhite(*linep) && *linep != '=')
                          ^
1 warning generated.

Later on:
Undefined symbols for architecture x86_64:
  "_vim_iswhite", referenced from:
      _ex_macmenu in menu.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [Vim] Error 1
make: *** [first] Error 2

I think there must have been a merge error of some kind, because I don't get this in regular Vim, and I did not get it in 824b7fa3c30ac3b5c.
My build flags:
--disable-netbeans
--disable-nls

Probably that vim_iswhite should be all caps because of recent Vim commits.

Yep, that was it.  If I manually upcase it, build proceeds fine.  Must've just been missed in the merge.  I dunno how CI didn't catch this.

Thanks, fixed in cc99aa38bd249282c84c8bc0105ea6c9dc6e2423


unify tag serialization and support tags from initializer in format_s…

…ervice_check

@grosser do you mind to rebase on master? 🙇

done and 🍏


Update how-to-create-set-up-and-tear-down-logic-for-a-test-case.md

Docs Build status updates of commit 523608e:
:warning: Validation status: warnings

File
Status
Preview URL
Details

dynamicsax2012-msdn/how-to-create-set-up-and-tear-down-logic-for-a-test-case.md
:warning:Warning
View
Details

dynamicsax2012-msdn/how-to-set-a-form-control-to-be-country-specific.md
:warning:Warning
View
Details

dynamicsax2012-msdn/how-to-create-set-up-and-tear-down-logic-for-a-test-case.md

Line 2, Column 1: [Warning: author-missing - See documentation] Missing required attribute: 'author'. Add the current author's GitHub ID.
Line 2, Column 1: [Warning: ms-author-missing - See documentation] Missing required attribute: 'ms.author'. Add the current author's Microsoft alias.
Line 2, Column 1: [Suggestion: description-missing - See documentation] Missing required attribute: 'description'.

dynamicsax2012-msdn/how-to-set-a-form-control-to-be-country-specific.md

Line 2, Column 1: [Warning: author-missing - See documentation] Missing required attribute: 'author'. Add the current author's GitHub ID.
Line 2, Column 1: [Warning: ms-author-missing - See documentation] Missing required attribute: 'ms.author'. Add the current author's Microsoft alias.
Line 38, Column 1: [Warning: sensitive-language-bl - See documentation] Term 'black list' is sensitive and should not be used in content or code. Usage: 'rnal**. If the country context of the controlling party contains the **IT** ISO code, the **Italian black list report** menu item displays on the client. If the country context of the legal entity is not set to'
Line 38, Column 1: [Warning: sensitive-language-bl - See documentation] Term 'blacklist' is sensitive and should not be used in content or code. Usage: ' country context of the legal entity matches the country context of the menu item for the **Italian blacklist report**.'
Line 40, Column 1: [Warning: sensitive-language-bl - See documentation] Term 'black list' is sensitive and should not be used in content or code. Usage: '    ![Italian black list report menu item display](images/Hh404128.Country-specificHowto(en-us,AX.60).png "Italian black lis'
Line 40, Column 1: [Warning: sensitive-language-bl - See documentation] Term 'black list' is sensitive and should not be used in content or code. Usage: 'lack list report menu item display](images/Hh404128.Country-specificHowto(en-us,AX.60).png "Italian black list report menu item display")'
Line 2, Column 1: [Suggestion: description-missing - See documentation] Missing required attribute: 'description'.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 1c4fdf0:
:warning: Validation status: warnings

File
Status
Preview URL
Details

dynamicsax2012-msdn/how-to-create-set-up-and-tear-down-logic-for-a-test-case.md
:warning:Warning
View
Details

dynamicsax2012-msdn/how-to-set-a-form-control-to-be-country-specific.md
:warning:Warning
View
Details

dynamicsax2012-msdn/how-to-create-set-up-and-tear-down-logic-for-a-test-case.md

Line 2, Column 1: [Warning: author-missing - See documentation] Missing required attribute: 'author'. Add the current author's GitHub ID.
Line 2, Column 1: [Warning: ms-author-missing - See documentation] Missing required attribute: 'ms.author'. Add the current author's Microsoft alias.
Line 2, Column 1: [Suggestion: description-missing - See documentation] Missing required attribute: 'description'.

dynamicsax2012-msdn/how-to-set-a-form-control-to-be-country-specific.md

Line 2, Column 1: [Warning: author-missing - See documentation] Missing required attribute: 'author'. Add the current author's GitHub ID.
Line 2, Column 1: [Warning: ms-author-missing - See documentation] Missing required attribute: 'ms.author'. Add the current author's Microsoft alias.
Line 38, Column 1: [Warning: sensitive-language-bl - See documentation] Term 'black list' is sensitive and should not be used in content or code. Usage: 'rnal**. If the country context of the controlling party contains the **IT** ISO code, the **Italian black list report** menu item displays on the client. If the country context of the legal entity is not set to'
Line 38, Column 1: [Warning: sensitive-language-bl - See documentation] Term 'blacklist' is sensitive and should not be used in content or code. Usage: ' country context of the legal entity matches the country context of the menu item for the **Italian blacklist report**.'
Line 40, Column 1: [Warning: sensitive-language-bl - See documentation] Term 'black list' is sensitive and should not be used in content or code. Usage: '    ![Italian black list report menu item display](images/Hh404128.Country-specificHowto(en-us,AX.60).png "Italian black lis'
Line 40, Column 1: [Warning: sensitive-language-bl - See documentation] Term 'black list' is sensitive and should not be used in content or code. Usage: 'lack list report menu item display](images/Hh404128.Country-specificHowto(en-us,AX.60).png "Italian black list report menu item display")'
Line 2, Column 1: [Suggestion: description-missing - See documentation] Missing required attribute: 'description'.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Feat - error handling

Quite a massive one again,
Still need to

[x] Handle simple errors that may occur here and there and that comes from the bindings, e.g.

[lib/errors.js] Unhandled error type Error undefined value for ChannelInterpretation
  | X new WaveShaperNode(c, {channelInterpretation: "foobar"}) threw "Error" instead of EcmaScript error TypeError.

[x] Wrap the AudioParam interface
[ ] Wrap the AudioBuffer interface, but will do that later, not sure how to handle this case right now

Results so far:
  RESULTS:
  - # pass: 3740 (+135)
  - # fail: 1281 (-3)
  - # type error issues: 109 (-125)

RESULTS:
  - # pass: 3711 (-29)
  - # fail: 1216 (-65)
  - # type error issues: 86 (-23)

With:

https://github.com/orottier/web-audio-api-rs/pull/424
https://github.com/orottier/web-audio-api-rs/pull/422

Hey yeah sorry, I had not taken the time yet to look into this.
Do you want me to rewrite all user facing panics as <JSErrorName> - <ErrorMessage> ? Some of them still use : as separator

No problem, the diff is mostly unreadable anyway :)
In short, we now have JS facades for almost every nodes / classes (still need to handle AudioBuffer and PeriodicWave I guess) which are mostly there to catch native errors and re-trigger them with the right error type.

Do you want me to rewrite all user facing panics as  -  ? Some of them still use : as separator

Yup that would be nice indeed! Thanks
Also made some update this morning to use the new async resume, suspend, close methods, seems to work like a charm!


Use request context for logging

This allows other handlers to extra data from the context, for
example.

Good point!


Trailer example not compiling (linker error)

Hi, I was trying the trailer matlab example, and when trying to run it I get a linker error as follows:
/home/emifre/Git/EmbeddedMPC/matlab/trailer.c: In function ‘trailer’:
/home/emifre/Git/EmbeddedMPC/matlab/trailer.c:8:10: warning: implicit declaration of function ‘casadi_f0’ [-Wimplicit-function-declaration]
   return casadi_f0(arg, res, iw, w, mem);
          ^

Error using mex
/tmp/mex_4258838998425_12530/trailer.o: In function `trailer':
trailer.c:(.text+0xa): undefined reference to `casadi_f0'
collect2: error: ld returned 1 exit status

Error in StaticWorldNavigator/mexifyPanoc (line 7)
mex('-I../include', '-L../dist/Release/GNU-Linux', ...

Error in StaticWorldNavigator/codegen (line 16)
obj.mexifyPanoc();

Error in testPANOCFramework (line 49)
ellFun                = nav.codegen(codegenOps)   ;

My system is as follows:

Ubuntu 16.04
Matlab <IP_ADDRESS>3579 (R2017b)
Casadi casadi-linux-matlabR2014b-v3.4.4 (the 2014 and up version for linux)
Tested on the master branch of EmbeddedMPC.

Tell me if there is something more you need.
Thanks!
BR Emil

I assigned Pantelis to this issue as his more familiar with that library.  Casadi is not backward compatible,
at first glance at the error is suspect it has to do with the version. (i think you need 3.1 or 3.2)
Nmpc-codegen can do what EmbeddedMPC can and even more ! (same optimization algo ! but no paper on it) It supports the latest 3 versions of Casadi.
Check out: https://github.com/kul-forbes/nmpc-codegen/blob/master/demos/Matlab/demos.m
It uses the same trailer model, just change the "name" variable to demo1,demo2,demo3 or demo4 and you get the same 4 simulations.
Please read the very short install manual of nmpc-codegen. (takes 1 minute)

@Zilleplus I think in this project you used Casadi v3.2. I recently setup a new laptop and I downloaded casadi 3.1 and I just realized it gives errors. @korken89 can you check which version of casadi you use?

@alphaville i never got embeddedMPC properly work, i simply hacked examples manually together. You use bash scripting inside you Makefiles, that's where things sometimes go wrong. (i think it was sid that errored) nmpc-codegen supports Casadi 3.2 or higher so 3.1 won't work indeed.
I actually detect the version i think it should error with "unsupported casadi version, exiting script" if you use the wrong one. You should do this too, this avoids leaving the user hanging with a weird error.
https://github.com/kul-forbes/nmpc-codegen/blob/master/src_matlab/%2Bnmpccodegen/%2Bcontroller/%40Casadi_code_generator/Casadi_code_generator.m

Hi, I tested with v3.2 then it did compile!
However the trailer example is still failing with the error:
Undefined function or variable 'indBox'.

Error in testPANOCFramework (line 80)
g = indBox(u_min, u_max);

Seems like some path is not correct.

@korken89  i assume you did add the matlab and its sub folders to your path after you compiled the library?

Indeed I did.

Doing an ack-grep over the repository, there is no function defined as indBox.
The closest is:
matlab/helpers/indBox_circobs.m
29:function obj = indBox_circobs(lower, upper, circ, params)
31:    obj.makeprox = @() @(x, gam) call_indBoxcircobs_prox(x, lower, upper, circ, params);
36:function [prox, val] = call_indBoxcircobs_prox(x, lower, upper, circ, params) %modify to include more circles

@alphaville you should take a look at this
@korken89 i highly recommend cloning this repo nmpc-codegen. It works with casadi 3.2  or higher .
just run https://github.com/kul-forbes/nmpc-codegen/blob/master/demos/Matlab/demos.m it contains the same  demos, just a bit faster. (the controller is completely implemented in C)
It makes use of Cmake/Make and Gcc, just make sure have these installed and in your path. The library does all the rest for you. No need to call any build file or anything, it is fully automated. Should take only a minute.

Cool, I will give more testing. I tried it a bit quick but got some errors that it did not find libstdc++, but it is installed.
I have to give it another look.

@korken89 it's a known bug see:
https://kul-forbes.github.io/nmpc-codegen/install/Toolchain_install.html
Some Matlab installations on Linux have this, some haven't


Int[] @id has unexpected validation error

Error parsing attribute "@id": Fields that are marked as id must be required.

generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["mongoDb"]
}

datasource db {
  provider = "mongodb"
  url      = env("DATABASE_URL")
}

model Bar {
    id Int @id @map("_id")
    foo Foo[] @relation(fields: [id], references: [])
}

model Foo {
    id Int[] @id @map("_id")

}

Referencing this - https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#id
id Int[] @id @map('_id') why is this id field an Array of Int?
If I remove this id Int @id @map('_id') it works fine without this validation error.
@janpio Can you help me with a better example here, since the Bar model is also missing the relation field value (like fooId in fields) which would be referencing the Foo model
Should it be something like
model Bar {
  id    Int     @id @map("_id")
  foo   Foo[]   @relation(fields: [fooId], references: [])
  fooId String?
}

Otherwise, an example that works with the relation between Bar and Foo which I understood from your example in the description
model Bar {
  id  Int   @id @map("_id")
  foo Foo[]
}

model Foo {
  id Int @id @map("_id")

  Bar   Bar? @relation(fields: [barId], references: [id])
  barId Int?
}

None of that really matters. The error message Fields that are marked as id must be required. just does not make sense for the schema used in the screenshot, as id is not a field that is not required in my understanding.


Upgrading plugins.

Basically ran "mvn versions:display-plugin-updates" to get the latest versions.
Also removed some explicit version settings in child pom.xml and moved them to depend on the top pom.xml's versions.

LGTM except curious why the versions were removed for two of the plugins.

The top pom has dependencyManagement and pluginManagement which drive the version management for child poms.

Got it, thanks for clarifying.


Can't make wake on power work

Hi,
I tried to apply this procedure but it block on some point.
I see in UEFI that the general procedure works : add UEFI password, disable audio, ...
But the wake on power is not working and even not accessible from UEFI.
The device will be used as touchscreen in a box, so the power button will not be accessible. The idea is to have one electrical switch to wake everithing up !
Could you please help me to unlock this feature ?
Thanks a lot for the reply.
Device / System details :

Model : Surface Pro (Modèle 1807) - Surface pro 7
Processor : Intel Core i5
8 Gb ram / 256 Gb SSD
UEFI system : 235.3440.768

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: e3f861f2-1bc8-24c1-0016-47ce5ca0fd34
Version Independent ID: e62ca170-5d3b-fdc1-ca7d-a49122943fce
Content: How to enable Wake on Power for Surface - Surface
Content Source: surface/wake-on-power-for-surface.md
Product: w10
Technology: windows
GitHub Login: @McCoyBot
Microsoft Alias: v-todmc

Does someone have an answer ?

Does someone have an answer, please help me

Did you try to enable WoP with Surface Enterprise Management Mode (SEMM)? Does it work?
I tried it with Surface Pro 5 which doesnt support WoP at all, but Surface Pro 7 should have this option


Use R and Python image default paths

We can close this PR. A more flexible solution was merged via https://github.com/rstudio/helm/pull/474.


Hi @rootfs, I've been working with @ross7 on the grid intensity go SDK thing. I've tried to provide some more background to the answers

    Hi @rootfs, I've been working with @ross7 on the grid intensity go SDK thing. I've tried to provide some more background to the answers

How does the carbon API help? If all the deployments are in the same data center/same geo, does carbon intensity change the anything in compute? It looks to me the best use case is the multi-cluster, multi data center case (see some prior study here )

The above example works by moving workloads geographically (as in, it moves them through space).
You can also move workloads temporally (as in move them through time).
The carbon intensity changes based on the time of day, so the same workload run at different times will have different emissions figures.
The issue referred to one paper titled Let's Wait Awhile: How Temporal Workload Shifting Can Reduce Carbon Emissions in the Cloud, and it's a fun read, going into this in more detail.
Last month at the recent ACM SIGEnergy workshop, there was a talk from some folks at VMware sharing some new findings, called Breaking the Barriers of Stranded Energy through Multi-cloud and Federated Data Centers. It's really worth a watch but this quote from the abstract gives an idea of why the time element is worth being able to act upon:

many computation workloads (such as some learning or big data) can be flexible in time (scheduled for delayed execution) and space (transferred across any geographical distance with limited cost). This opens the possibility of shifting workloads in time and space to take advantage in real time of any amount of excess renewable energy, which otherwise would be curtailed and wasted. Initial results show that a single datacenter that time shifts load can reduce its emissions by 19% or more annually

There's also some work by Facebook/Meta, where they have shared some results from using this same carbon aware workload scheduling as part of their sustainabilty strategy - see their recent carbon explorer repo. I think they might use their own scheduler, rather than Kubernetes, but the principle is the same - move work through space to make the most of cheaper green energy for your compute.

Does it make sense to schedule every deployment or only selectively pick those that have a high energy consumption, thus high carbon impact ones? That brings the question of how to measure the energy consumption of deployments.

For the suitability question, that's down to the person running the cluster, and the job. Some jobs are better fits for moving through time (low latency, pause-able jobs), and some jobs better for moving through space (ones that don't have to be run within a specific jurisdiction). These are somewhat independent of the energy consumption. If you're curious about the the energy consumption part, I think Scaphandre provides some numbers you can use and labelling of jobs for k8s, and this piece here from the BBC gives an example of it in use.
Hope that helps!
Originally posted by @mrchrisadams in https://github.com/kedacore/keda/issues/3467#issuecomment-1202524885

Hey. Can you provide a link to the paper titled "Breaking the Barriers of Stranded Energy through Multi-cloud and Federated Data Centers". I 'm unable to find it anywhere on the internet.  It would be really useful if you do!

hey folks, I've asked to see if it's published anywhere - it might be going through peer review, or be scheduled to be published in the near future.

OK, I heard back - here's the closet thing:

Hi Chris, the “Breaking the Barriers of Stranded Energy through Multi-cloud and Federated Data Center” talk we gave at ACM e-Energy was an invited keynote, so there’s no paper specifically tied to it. We are working on something that we hope to submit to a conference in early 2023!
The only peer-reviewed work we have at the moment is the short HotCarbon paper.

There's a bunch here too:
https://podcast.greensoftware.foundation/e/xnvm3598-from-carbon-aware-to-carbon-intelligent


fix tadpole example

What problem does this PR solve?
fix tadpole example to run correctly, because there is not a function called ListenWS

@supermario1990 Thanks for your contribution.


refactor: nc11 chunk parsing like scrapligo thanks to @netixx!

title! like scrapligo now, regex-less which is nice too :)

resolves #142 (hopefully :p)


Eliminate byte conversations

Make the byte typed search values as constants.

I would be surprised if .NET does not do this for us

I would be surprised if .NET does not do this for us

Measure it with the benchmark.net ;)

Won't make a perf difference, but defining as consts is good practice no matter what, but I'd recommend following dotnet naming guidelines. Pascal case. LineFeedByte, CarriageReturnByte. \n is line feed, there is no new line character. CRLF.

Won't make a perf difference, but defining as consts is good practice no matter what, but I'd recommend following dotnet naming guidelines. Pascal case. LineFeedByte, CarriageReturnByte. \n is line feed, there is no new line character. CRLF.

They are constants. And when I see ';' I know it's a semicolon, I do not need a long name.
Using constants is good when they could change and used multiple times. Here it's a single use for each.

They are constants.

Absolutely, didn't mean to say otherwise. It can help people navigate/read code base, find where this is, is used and so on even if only one place, that's all. But no problem.


Add an example of using pod_patch and pod_spec.

Provide a link to the page with an issue:
Describe what is wrong:
We don't have an example of using pod_patch and pod_spec
Describe the suggested changes:
Add an example of those things.
Anything else we need to know?
Environment:

Kubernetes version (use kubectl version):
Pachyderm CLI and pachd server version (use pachctl version):
Cloud provider (e.g. aws, azure, gke) or local deployment (e.g. minikube vs dockerized k8s):
OS:
Other:

https://pachyderm-users.slack.com/archives/C3UN0S0Q0/p1575431025362700?thread_ts=1575420129.355400&cid=C3UN0S0Q0

Resolved by https://github.com/pachyderm/pachyderm/pull/5026


Addition of Makefile

Why do we need a Makefile?
While interpreter languages do not necessarily require a Makefile, it is a nice addition to have to be able to be able to set up requirements, dependency updation, and to lint the code.
Utilization of the make utility would allow for a toolkit agnostic initialization procedure.
Changelog

[x] Addition of a Makefile.
[x] The black lint utility has been added to the package list.

Implementing project specific make functionality in a new PR.


Unable to login - new install

Problem/Motivation

(Why the issue was filed)
Opened the web UI and tried to login using the super user details from config and received an error

Expected behavior

(What you expected to happen)
Expected to be able to login as per the installation instructions

Actual behavior

(What actually happened)
Error "Please check your login credentials."

Steps to reproduce

(How can someone else make/see it happen)
Not sure, It should be pretty straight-forward

Proposed changes

(If you have a proposed change, workaround or fix,
describe the rationale behind it)
Fix it 👍

Did you try logging in with the superuser account ?
Check the logs of the "Shinobi Pro" add-on to see if everything went well.
Surf to the superuser admin panel: http://hassio.local:7440/super
Log in with the superuser credentials as specified in the add-on configuration.
From there.... you can create user accounts for the normal login page.

i habe the same problems.
getting this errors:
Shinobi : Web Server Listening on 80 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! This Install of Shinobi is NOT Activated !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2020-12-28T21:51:51+01:00 This Install of Shinobi is NOT Activated   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! https://licenses.shinobi.video/subscribe 2020-12-28T21:51:52+01:00 Shinobi is ready.   knexError----------------------------------- START [Error: select * from Schedules- SQLITE_ERROR: no such table: Schedules] {   errno: 1,   code: 'SQLITE_ERROR' } select * fromSchedules knexError----------------------------------- END Uncaught Exception occured! TypeError: Cannot read property 'forEach' of undefined     at /opt/shinobi/libs/scheduler.js:11:18     at /opt/shinobi/libs/sql.js:186:33     at cb (util.js:207:31)     at util.js:191:10     at hidden (internal/errors.js:291:14)     at processTicksAndRejections (internal/process/task_queues.js:84:21)


File encoding on download

Fixes #501

[ ] npm test succeeds
[x] Pull request has been squashed into 1 commit
[ ] I did NOT manually make changes to anything in apis/
[x] Code coverage does not decrease (if any source code was changed)
[x] Appropriate JSDoc comments were updated in source code (if applicable)
[ ] Approprate changes to readme/docs are included in PR

Added ability to specify file enconding when downloading files from Google Drive.
This also fixes #501 by applying the following:
drive.files.get({
  fileId: myFileId,
  alt: "media",
  encoding: null
}, function(err, buffer) {
  // Stuff
  dest.write(buffer);
  dest.close();
});

Current coverage is 88.56% (diff: 100%)

Merging #619 into master will not change coverage

@@             master       #619   diff @@
==========================================
  Files             8          8
  Lines           271        271
  Methods          41         41
  Messages          0          0
  Branches         59         59
==========================================
  Hits            240        240
  Misses           31         31
  Partials          0          0

Powered by Codecov. Last update 69ce9af...58bebac

I signed it!

The contents of apis/ are auto-generated every time a new release of this library is created, you can't modify anything in apis/.
If something needs to be fixed it needs to be fixed upstream, probably here: https://github.com/google/google-auth-library-nodejs

Oh, ok.
This modification, however, falls under /apis/drive path so, where should I bring this mod to? I can't find any drive-related source in the link you gave me.

To be honest, I'm not really sure. I need to spend some time reading the source code to figure it out.

Ok, thank you very much, let me know when you have news!
Btw, if you believe there's a better and more design-like way to do it and solve #501, please let me know, it's good to learn :)

I guess I can close this after #623.

@SamuelePilleri Have you tried #623 in 12.4.0?

Yes, it works.


Delete Thumbnail

Hi,
I have issue when delete image file with its thumbnail. The thumbnail not deleted because it has different generate thumbname when process delete. I think thats because the original image file already deleted when trying to generate thumbname so the file.LastWriteTimeUtcAsync is zero.. I tried to move method RemoveThumbsAsync before DeleteAsync and it works. So is there any reason to delete file first before delete thumbnail or better delete thumbnail first before delete image file?

Hi @benny-adiwijaya, it seems reasonable. It's totally okay to delete the thumbnail before deleting the file. Can you make a PR so that I can review and merge it. Many thanks.

Hi @benny-adiwijaya, it sounds reasonable. It's totally fine to remove the thumbnail first since it can be regenerated later. I also published a v1.2.5 of the FileSystemDriver package. Many thanks for that suggestion.

Great, thank you


C++

Thanks for this library. Can you give me a hint on how i could use this python module with c++?

Hmm not sure if it is possible in a performant way, maybe these links can help:
https://docs.python.org/2/extending/embedding.html
http://stackoverflow.com/a/1056057/1469195
http://stackoverflow.com/a/328451/1469195


add analytics tags to search

Summary:

We add these tags so we can filter the analytics on searches done by Guppy alone. If you have interest in seeing those analytics, please make an Algolia account and let me know!

What is possible with these tags? Can you please add a screenshot of how it looks in Algolia and a brief description what we can do with it?
I haven't used these tags before is there a docs section about them on Algolia?
Overall this looks good. I have just two points that would be good to add:

Add the tracking info to PRIVACY.md & mention what it is tracking and that it's another analytics provider we're using - @joshwcomeau could you please help with the privacy text?
Make an opt-out from the Algolia tracking possible. I think we can use the same button to toggle it in File/Preferences... (just if it's a usage tracking)

This doesn’t add any tracking actually, it just filters the search queries done (anonymously & aggregated). However, turning analytics off altogether can make sense, and is something possible. I’m on mobile now, so I can’t make any screenshots, but I will Monday.

Here's screenshots of what the analytics looks like. Note that this isn't filtered on Guppy only (also Yarn, Gatsby, codesandbox etc.) because I'd need this PR to be released before being able to pinpoint this to only Guppy usage.

I'll advocate for this PR, as I believe it's important to be good stewards of Algolia's service since they're providing it free of charge. Some services (Reddit's API comes to mind) actually require that you identify yourself in order to make any requests, so I don't think it would be problematic in any way to add this to Guppy's Algolia integration.
If we want to add an opt-out for analytics, that's really outside the scope of this and deserves its own PR.
Since it's only logging the application's ID and nothing specific to each user, I don't think it even really justifies a mention in PRIVACY.md. If anything, we could add a link to Algolia's privacy policy and terms of service.

Rebased!

Damn it, how did this cause conflicts!


Added fizzbuzz one-liner code

Thank you for your PR!
Unfortunately a solution similar to yours has already been submitted :/
The goal is to find creative/abstract new solutions to FizzBuzz.
See The top 5 samples here.
Thanks anyway! :)


Wildcarded declarations

What do you think about the idea of extending the interceptions to support wildcarded declarations like:
defmodule Interception.Config do
  use Interceptor.Configurator

  intercept "Intercepted.*/1",
    before: "MyInterceptor.wildcarded_before/1",
    after: "MyInterceptor.widcarded_after/2"

with following callbacks' implementation:
defmodule MyInterceptor do
  def wildcarded_before(mfa),
    do: IO.puts "Intercepted #{inspect(mfa)} before it started."

  def wildcarded_after(mfa, result),
    do: IO.puts "Intercepted #{inspect(mfa)} after it completed. Its result: #{inspect(result)}"
end

or even with arity designators:
...
 intercept "Intercepted.*/*",

Im just thinking if there could be any problems witch such approach...
Would you be interested in any contribution supporting such feature?

Hi there,
First of all, thanks for the suggestion and for opening the library first issue :)
I like your suggestion, since it allows us to keep the interception configuration module more streamlined.
I don't think there should be any problem with that approach, the only issue I see is that we should also support the wildcard approach with the tuple-based interception config. In this case, the following streamlined configuration using wildcards:
defmodule Interception.Config do
  use Interceptor.Configurator

  intercept "Intercepted.*/1",
    before: "MyInterceptor.wildcarded_before/1",
    after: "MyInterceptor.widcarded_after/2"

Would be equivalent to this:
defmodule Interception.Config do
  def get_intercept_config, do: %{
    {Intercepted, :*, 1} => [
      before: {MyInterceptor, :wildcarded_before, 1},
      after: {MyInterceptor, :widcarded_after, 2}
    ]
  }
end

And both configurations should work seamlessly.
To implement this, I think we should ensure that:

The Interceptor.Configurator module allows to pass the intercepted function as Intercepted.*/* and will convert this to {Intercepted, :*, :*}, and;
When the Interceptor changes the function definitions, it knows that it should intercept the functions Intercepted.abc/1, Intercepted.xyz/2 and Intercepted.ghi/3 if there is an interception configuration for Intercepted.*/*.

If you want to develop this, please do, contributions are more than welcome :raised_hands:. Please let me know if you have any questions.

Resolved with release 0.5.3


Implement Soft Nearest Neighbor Loss

Analyzing and Improving Representations with the Soft Nearest Neighbor Loss https://arxiv.org/pdf/1902.01889.pdf

Thanks again for the PR.


Converting the queue to use a semaphore to organize functions

Merged the changes separately, like a dolt.  Need more experience with Github :P


feat(discovery): discover peers by tag

Allow to run multiple discovery subcomponents, where each can find new peers based on preset tag and notify its subscribers. It could allow any sort of separate discovery subcomponents (versioned, pruned/archived, etc). Essentially it allows discovery to be abstracted away and act as single function component.
Involves some minor refactoring here and there just to clean up things.
Resolves https://github.com/celestiaorg/celestia-node/issues/2578

Codecov Report

Merging #2730 (715fc25) into main (4c93147) will increase coverage by 0.11%.
The diff coverage is 70.68%.

@@            Coverage Diff             @@
##             main    #2730      +/-   ##
==========================================
+ Coverage   51.69%   51.80%   +0.11%
==========================================
  Files         161      161
  Lines       10826    10832       +6
==========================================
+ Hits         5596     5612      +16
+ Misses       4735     4723      -12
- Partials      495      497       +2

Files Changed
Coverage Δ

nodebuilder/share/config.go
0.00% <ø> (ø)

nodebuilder/share/constructors.go
10.00% <0.00%> (ø)

nodebuilder/share/module.go
0.00% <ø> (ø)

share/p2p/discovery/metrics.go
11.53% <0.00%> (ø)

share/p2p/peers/manager.go
71.92% <45.45%> (-0.27%)
:arrow_down:

share/p2p/discovery/options.go
74.07% <76.47%> (+14.98%)
:arrow_up:

share/p2p/discovery/discovery.go
74.89% <89.47%> (+4.13%)
:arrow_up:

share/availability/full/testing.go
100.00% <100.00%> (ø)

... and 6 files with indirect coverage changes

i didnt know i could double approve like that lol


[iOS] Crash in the native part if Sign-In With Apple ID is cancelled

Version of react-native-iap
4.4.1
Version of react-native
0.61.5
Platforms you faced the error (IOS or Android or both?)
iOS
Expected behavior
There shouldn't be any crashes
Actual behavior

Tested environment (Emulator? Real Device?)
Emulator, Real Device
Steps to reproduce the behavior

Use react-native-iap library functional
Wait for Sign-In With Apple ID dialog
Press cancel

Could you kindly share some of your code?

@hyochan Hey, sorry for the late response,
here is the part of code -> https://pastebin.com/iUhSJZWj
if you have any other questions, feel free to ask me

You have to check if error isn't equal to "E_USER_CANCELLED", in which case you should ignore it.


display more than 80 columns

Sorry if this is documented elsewhere.  I couldn't find it.  I haven't done any serious customization but the default report shows only a maximum of 80 columns.  Task description is truncated to fit.
How do I cause vim-taskwarrior report to use the full available width?

related to (closed) issues #117, #104, #33

In working on another script, where I had the same issue of displaying a report in a terminal that wasn't necessarily 80 cols wide, I stumbled on a simple workaround that might work for vim-taskwarrior. The challenge is that when a report is piped out, it discards the terminal width, but I was able to overcome that with this config override;
rc.defailtwidth=`tput cols'

and tput supplies the terminal width. Now tput is part of ncurses-utils, so it may not be ideal for vim-tw, but the idea should be portable.
It's also possuble to query task for the current terminal width, to obtain that variable before piping out, with the dom query;
task _get context.width

I hope that helps.

I was looking for a solution to this and what seems to work for me so far is adding this to my .vimrc:
let g:task_rc_override = 'rc.defaultwidth:0'
Hopefully that's useful for someone else.

@optik-aper your solution i found the quickest and easiest.  Thanks for sharing.

It seems that whenrc.defaultwidth:0 is set, running burndown.daily gives an error: Terminal window too large to draw a graph. Has anyone managed to solve this?


[classification_and_detection] ./run_local.sh: command not found

I use [sudo ./run_local.sh tflite mobilenet gpu] will show [sudo: ./run_local.sh: command not found]
use model: mobilenet_v1_1.0_224_quant_edgetpu.tflite
use dataframe: dataset-imagenet-ilsvrc2012-val-min (500 photos)
Use hardware: coral Dev Board
How to run[Run local]

@LINYOUWEI0804 I seriously doubt it will be possible to run the official reference code on Coral. I believe it has it's own runtime, which is not integrated into the reference code.
Having said that, I assume you are trying to run run_local.sh from in the same directory where it is located?

Hello, I am executing in the classification_and_detection directory

Try to specify the full absolute path.


Github actions has depricated Node 12 support, please upgrade to node 16

Is your feature request related to a problem? Please describe.
Github action workflows have started outputting messaging around actions that are still Node 12 which fell out of support in April 2022.

In this blog post github outlines their plan to deprecate and remove Node 12 support
https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
Describe the solution you'd like
I'd like to see the slack action upgraded to node 16 so these warnings go away

+1. I am also facing the same issue. Hope to see this change soon.

Hi

https://github.com/act10ns/slack/pulls

I created a PR to support node16 hoping to be reviewed and merged soon.

I have published a new release... https://github.com/act10ns/slack/releases/tag/v2.0.0
Note that as per the recommendation of GitHub (see link above) is it a new Major release so you if you currently specify v1 you will now need to modify your Github action to point to v2.
Example
- uses: act10ns/slack@v2
  with:
    status: ${{ job.status }}
  if: always()


deps: update gRPC to 1.11.0

Signed-off-by: Lizan Zhou<EMAIL_ADDRESS>Description:
Update to gRPC 1.11.0
Risk Level: Low
Testing: CI
Docs Changes: N/A
Release Notes: N/A

I have this running on my local setup! More deps PRs are coming.


float_str_to_int_string should not return error

Bug Report
TiDB with TiKV:
mysql> CREATE TABLE t1 (s VARCHAR(50));
Query OK, 0 rows affected (0.12 sec)

mysql> INSERT INTO t1 VALUES('99999999e1000');
Query OK, 1 row affected (0.02 sec)

mysql> SELECT * from t1 where s;
ERROR 1105 (HY000): Other(StringError("[src/coprocessor/codec/convert.rs:321]: [1264] Data Out of Range"))

TiDB without TiKV:
mysql> CREATE TABLE t1 (s VARCHAR(50));
Query OK, 0 rows affected (0.01 sec)

mysql> INSERT INTO t1 VALUES('99999999e1000');
Query OK, 1 row affected (0.00 sec)

mysql> SELECT * from t1 where s;
+---------------+
| s             |
+---------------+
| 99999999e1000 |
+---------------+
1 row in set, 1 warning (0.00 sec)

MySQL:
mysql> CREATE TABLE t1 (s VARCHAR(50));
Query OK, 0 rows affected (0.16 sec)

mysql> INSERT INTO t1 VALUES('99999999e1000');
Query OK, 1 row affected (0.00 sec)

mysql> SELECT * from t1 where s;
+---------------+
| s             |
+---------------+
| 99999999e1000 |
+---------------+
1 row in set, 1 warning (0.00 sec)

According to TiDB's implementation of float_str_to_int_string it returns warnings instead of errors. That should be the main reason why this fails in TiKV.

Is this some easy task, perhaps I can try give some help on it?
Looks like I just need to return some warning here:
https://github.com/tikv/tikv/blob/02ebbd69d0c7332e5776248122e0e59949317f57/src/coprocessor/codec/convert.rs#L306
?

@liufuyang Yes, you just need to change errors to warnings. Notice that the function itself is not accepting some context for writing warnings, so you need to modify these function signatures.

hmm... can you help me find some code that returns Warnings so I can try do the same here? I am pretty new to tikv and kind of new to Rust. I know the type Result kind of well but I am not sure how to change this to some Warning type :)

@liufuyang You can grep for "append_warning" and you will see that normally there will be a ctx.warnings.append_warning. So to append warnings the function should accept that ctx first (and you need to change the signature)

@breeswish Thanks :)
Okay.  It seems our code in here in tikv (or maybe also in tidb, if you can help me test it would be nice), that when the input is "9e20", which is a number bigger than i64_max, the code here passes without returning a Err:
Input: "9e20"
Current float_str_to_int_string() output:
900000000000000000000
while i64_max is
9223372036854775807
This seems to be another potential bug in the code? As I also tried with "9e20" on MySQL 5.7 it seems output warning as well:
mysql> INSERT INTO t1 VALUES('9e20');
Query OK, 1 row affected (0.00 sec)

mysql> SELECT * from t1 where s;
+------+
| s    |
+------+
| 9e20 |
+------+
1 row in set, 1 warning (0.00 sec)

I actually not sure how mysql works, it seems that "1e5" will not cause warning but "1e10" will...
mysql> SELECT * from t1 where s;
+------+
| s    |
+------+
| 1e5  |
+------+
1 row in set (0.00 sec)

mysql> INSERT INTO t1 VALUES('1e10');
Query OK, 1 row affected (0.00 sec)

mysql> SELECT * from t1 where s;
+------+
| s    |
+------+
| 1e5  |
| 1e10 |
+------+
2 rows in set, 1 warning (0.00 sec)

mysql> SHOW WARNINGS;
+---------+------+-------------------------------------------+
| Level   | Code | Message                                   |
+---------+------+-------------------------------------------+
| Warning | 1292 | Truncated incorrect INTEGER value: '1e10' |
+---------+------+-------------------------------------------+

Not exactly sure what I am doing here but do we try to make tidb behave exactly the same as MySQL5.7 or...? 🤔

Hi @morgo, can you take a look at this compatibility issue?

This is really weird.  It looks like the insert is behaving as expected, but on reading the data TiKV is evaluating the values to compare them to s.
So for a quick test case that is legal:
CREATE TABLE t1 (s VARCHAR(50));
INSERT INTO t1 VALUES ('100'), (NULL);
SELECT * FROM t1 WHERE s; -- must check that the value is not null

So there has to be a NOT NULL check, but I am not sure casting a string value that looks numeric is required to do that (it's a bug).  It should only compare for nullability and not cast in doing so.  It is a subtle bug, because the cast is only used for compare, and doesn't affect the returned value.
Taking your minimal test case:
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (s VARCHAR(50));
INSERT INTO t1 VALUES('9e20');
select * from t1 where s;

PTAL @zz-jason

It looks like this behavior might be required for MySQL compatibility (sorry, it's not common syntax - so I am less familiar):
mysql57> INSERT INTO t1 VALUES (NULL), ('0'), ('0.0');
Query OK, 3 rows affected (0.00 sec)
Records: 3  Duplicates: 0  Warnings: 0

mysql57> SELECT * FROM t1;
+------+
| s    |
+------+
| NULL |
| 0    |
| 0.0  |
+------+
3 rows in set (0.00 sec)

mysql57> SELECT * FROM t1 WHERE s;
Empty set (0.00 sec)

I would have interpreted WHERE s as "where s is not null", but it looks like MySQL doesn't do that.  It will cast values to compare.  It can even produce a warning:
mysql57> TRUNCATE t1;
Query OK, 0 rows affected (0.02 sec)

mysql57> INSERT INTO t1 VALUES (NULL), ('0'), ('0.0'), ('NULL');
Query OK, 4 rows affected (0.00 sec)
Records: 4  Duplicates: 0  Warnings: 0

mysql57> SELECT * FROM t1 WHERE s;
Empty set, 1 warning (0.00 sec)

mysql57> SHOW WARNINGS;
+---------+------+-------------------------------------------+
| Level   | Code | Message                                   |
+---------+------+-------------------------------------------+
| Warning | 1292 | Truncated incorrect INTEGER value: 'NULL' |
+---------+------+-------------------------------------------+
1 row in set (0.00 sec)

It is possible the only part broken here is the type used for casting before comparing.

@morgo If necessary, perhaps you can help open another issue on this weird behavior of MySQL?
I made a PR https://github.com/tikv/tikv/pull/4336 in the hope to firstly solve the issue mentioned here at the top. I hope here we can continue discussion here about making "99999999e1000" can be selected. The issue you talked above seems has a much larger scale and discuss here further might make things more confusing here :P

@breeswish The PR has been merged, do we need to test it again manually to verify it before we close this issue?

Yes! :) Would you like to have a try with latest master?

Never really did this before, I guess I can use the tidb-docker-compose repo for this, right?

@liufuyang Should be do-able that way. You'd set up the docker-compose and make TiKV work "from source" via the instructions here I think:  https://github.com/pingcap/tidb-docker-compose#bring-up-tidb-cluster

@liufuyang Or you may just use tidb-ansible from https://github.com/pingcap/tidb-ansible, but subsitute the tikv binary in resources/bin from the one downloaded by ansible to yours.

Looks like the newest image has been updated with my changes. I tried with tidb-docker-compose and just start it with the default settings. Then do test like
mysql> CREATE TABLE t1 (s VARCHAR(50));
Query OK, 0 rows affected (0.20 sec)

mysql> INSERT INTO t1 VALUES('99999999e1000');
Query OK, 1 row affected (0.04 sec)

mysql> SELECT * from t1 where s;
+---------------+
| s             |
+---------------+
| 99999999e1000 |
+---------------+
1 row in set, 1 warning (0.00 sec)

mysql> SHOW WARNINGS
    -> ;
+---------+------+-----------------------------------------------------------------+
| Level   | Code | Message                                                         |
+---------+------+-----------------------------------------------------------------+
| Warning | 1105 | Eval("BIGINT value is out of range in \"99999999e1000\"", 1690) |
+---------+------+-----------------------------------------------------------------+
1 row in set (0.01 sec)

Noticing the warning number is different from the standard MySQL warning which is 1292 seen from above discussion. This is expected, as in PR https://github.com/tikv/tikv/pull/4336 we appended warnings as Error::overflow() instead of Error::truncated_wrong_val().
Perhaps we can close this issue now? 🤔

I also made a PR https://github.com/tikv/tikv/pull/4413 to fix the output format.

Yes! Thanks a lot!


fix middleware registration for sanic 22.12.0+

https://github.com/ahopkins/sanic-session/issues/92

Thanks for contributing this. It helped me solve my problem.
Out of curiosity, why did you choose to do this rather than just uncommenting the @app.middleware("request") and @app.middleware("response") lines? I made that change on my end and it also seems to work. Any particular reason to use the explicit register_middleware API?

Wow, I am super late at reviewing this. Sorry about that. We probably should update this to give it a high priority (if in the relevant Sanic version).

Any update?


Out-of-date documentation regarding "cortex-m" and "riscv" features

It appears that the cortex-m and riscv features were removed from this crate, but the documentation still makes reference to them.
https://github.com/probe-rs/rtt-target/blob/a1bae7cb3f6b81834d8f0030546baeabe0331d13/rtt-target/src/lib.rs#L12
which is rendered into https://docs.rs/rtt-target/latest/rtt_target/#hardware-support
Cheers!

Fixed in #49

It's still in the docs via crates.io though, since no further release. (just saying...)


Data challenge B6

My nodeid: d31a28d7075a0baf
Machine specs: VPS with 4 cores, 8GB RAM, 200GB SSD, Ubuntu 20.04
Only ram usage: https://www.dropbox.com/s/94dgw3pp51ykgty/Memory-MB.png?dl=0
Ram + DB disk usage:  https://www.dropbox.com/s/6vu79rxtqxcg43f/RAM%2C DB DISK USAGE.ods?dl=1 or https://www.dropbox.com/s/dbwq0koy9ks3yii/RAM%2C DB DISK USAGE.pdf?dl=0

confirmed:B6

confirmed:B6


[BEAM-7499] Skip test since it doesn't work on DirectRunner.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

R: @pabloem
CC: @ttanay

Thanks for catching and fixing this Luke.

Thanks @lukecwik, for fixing this.
I'll look into this and fix it.


checkParamsEquality throws an error

TypeError: requestParams[key].match is not a function in bdsm/lib/api/interceptor.js
The code:
  checkParamsEquality(requestBody, responseParams) {
    const requestParams = UrlUtils.parseRequestBody(requestBody);
    const parameters    = Object.keys(requestParams);

    for (let key of parameters) {
      const regex = responseParams[key] ? new RegExp(responseParams[key]) : null;

      if (regex && !requestParams[key].match(regex)) {
        return false;
      }
    }

    return true;
  }

requestBody:
"{"AccountID":21431,"StartTime":"2015-11-01T00:00:00"}"
responseParams:
{ AccountID: 21431 }
I fails because requestParams[key] is a number value and not a string.
@morsdyce @ilyagelman
I had a really hard time understanding what this function does, and it's still a puzzle why do we need the RegExp.
Why not save the request body on the mock and compare them as is?
If it's not an option, am I to assume this function should compare 2 objects?
Perhaps it's a good time to add Lodash.

We are doing this because we want to compare parameters with regex in the future so we could have a wildcard for a parameter if we don't care what is being sent and we want the same response.


Create CODE_OF_CONDUCT.md

📝 Summary
Adding a Code of conduct
🔍 Description of Changes
Standard code of conduct document as expected by e.g. Snyk

📋 Checklist

[x ] I have read the contributor guidelines.
[ ] For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
[ ] I have added tests for the changes made.
[ ] I have run the code and verified that it works as expected.

📜 Reviewers

@akshayka

I have read the CLA Document and I hereby sign the CLA

thank you @ecomodeller!


vcmsa/scripts/make_vcmsa_env.sh does not exist

vcmsa/scripts/make_vcmsa_env.sh does not exist so the package can't be installed as explained in the README file. (OK, now I found it in the main directory)
Are you planning to release the package on conda-forge, for example?
Also, when I tried compiling and installing from source, I got the following error:
file vcmsa_utils.py (for module vcmsa_utils) not found
file vcmsa_embed.py (for module vcmsa_embed) not found
file __init__.py (for module __init__) not found
file vcmsa_utils.py (for module vcmsa_utils) not found
file vcmsa_embed.py (for module vcmsa_embed) not found
file __init__.py (for module __init__) not found
error: file '[my_home_dir]/vcmsa/bin/run_vcmsa' does not exist

(my_home_dir is the path to the cloned repository which I did not want to show)
Thanks,
Lukasz
EDIT:
I managed to install it finally, I tried copying files from src/ to the main directory first (because it could not find them) and then I had to rename bin/vcmsa to bin/run_vcmsa. The repo needs to be cleaned up :)
EDIT2: after installation (to a conda environment with all the prerequisites installed) it still does not work - it is not finding the module in the conda environment.
EDIT3: I made a pull request correcting some of this but I still can't run it as I don't seem to have "transformer_infrastructure.pca_embeddings" and "transformer_infrastructure/hf_embed.py" - what are these?

I am closing this because pull request #3 solves everything


variable CTA_H & fix qkv bias

Support 1-16 query group size
Better partitioning of query heads
Fix qkv bias in case of GQA
Avoid integer overflow for long sequence & large batch size
Isolate the compilation of reduce kernels

dataset                                 version    metric         mode    qwen2-chat-32b

ceval                                       -          naive_average  gen     81.35
mmlu                                      -          naive_average  gen     74.88
gsm8k                                   1d7fe4     accuracy        gen     77.79

dataset
version
metric
mode
llama2-7b-chat
internlm-chat-7b
internlm-chat-20b
internlm2-chat-7b
internlm2-chat-20b
qwen-chat-7b
qwen2-chat-7b

ceval
-
naive_average
gen
28.30
52.90
54.64
60.45
62.86
59.46
70.81

mmlu
-
naive_average
gen
35.93
48.58
59.45
63.90
66.58
57.40
61.48

gsm8k
1d7fe4
accuracy
gen
28.28
33.51
47.54
70.43
79.53
54.21
55.50

@irexyc may check if it works on VLM models, especially internvl which has q_group_size 7

llama2-70b(tp4): 8.54
llama3-8b: 24.89
llama2-13b: 8.57
llama2-7b: 15.0
internlm2-7b: 24.2
internlm2-20b: 10.68


⚠ Bofrost.de has degraded performance

In e52e1e1, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1331 ms

Resolved: Bofrost.de performance has improved in ffa3367 after 1 hour, 15 minutes.


Map events to systemd units

Currently we have an example where we map PID to command:
bpf_get_current_comm(&key.command, sizeof(key.command));

Most (if not all) modern distributions run on systemd, where services belong to units. Commands alone sometimes do not have enough context to map them to logical services.
cAdvisor has cgroup name in id label, which seems a lot more usable for long term metric reporting:
container_cpu_user_seconds_total{id="/system.slice/cron.service",instance="myhost",job="cadvisor"} 43153.13

We should find a way to do the same.
Having PIDs in map keys and then remapping them to systemd units in userspace does not work, because PIDs can be reused across units. We can probably supply a map with PID -> unit mapping and update that dynamically (cgroup tracepoints may work for this), but that seems a bit involved, unless it works transparently to the user.
List of PIDs per service can be obtained in userspace from sysfs:
$ cat /sys/fs/cgroup/systemd/system.slice/cron.service/cgroup.procs
5726

cc @dqminh

Related: https://github.com/iovisor/bcc/issues/1119.

@bobrik
Hi! Have there been any new developments in the year and a half?


Samplesheet and other changes

This PR changes how the pipeline uses samplesheets, reducing it to only one in total instead of one for each of the data types (pre- or post-SpaceRanger). Specification of whether the data is raw data to be processed by SpaceRanger is done by the --run_spaceranger flag; the naming of that flag and its related variables should be discussed. The samplesheet checks have also been streamlined and unused functions have been removed.
Additionally, checking for mitochondrial genes is now done as in the more standard ways for e.g. both Scanpy and Seurat, i.e. by looking for the prefix MT- in gene names. Usage of MitoCarta has thus been removed, simplifying the pipeline and fixing the problems with the caching of the remotely staged MitoCarta FTP file.

A first draft of more documentation has now also been added, but probably needs more work and testing by users.


fix: remove redundant seq call

This doesn't change the grammar at all, just cleans it up a bit per the error message given when running tree-sitter g on the current build (with HEAD CLI version).
See https://github.com/nvim-treesitter/nvim-treesitter/pull/6671#issuecomment-2250047437

Thank you @ribru17!!


better logrotate may be required

in production we are enabling debug for now, it may cause lot of logs, and may need to revise logrotate settings.

resolved via https://github.com/JioCloud/puppet-rjil/pull/603