text-black utility

We have lots of text utilities but I think we miss (in v4) a .text-black.
That would be useful to have black titles:

Title

Closing as there is text-gray-dark


complie failed for RN0.41.2

I used<EMAIL_ADDRESS>complie failed.
How do i fix this?

I also encountered this problem.  Hope to be solved.

@96qbhy see this https://github.com/facebook/react-native/blob/master/Examples/UIExplorer/js/WebViewExample.js#L252.
It's worked for me。
In addition, If you encounter an error react native setting imessage on a webview overrides existing values of window.postMessage...., you can do this


on login leaderboard

place doesnt change for the statistics, 0th place
maybe take from the leaderboardData instead

nvm i just watch on user change


Updates sparklyr cheatsheet, and source link

New pysparklyr released to CRAN with significant UX changes, specially for Databricks users, Cheatsheet updated to reflect that

Thank you!


[Release] v0.8 Release Planning

Thanks to everyone who contributed in the past cycle! We would love to use this thread to plan for the v0.8 release. The community has always been focusing on high quality releases. This process can take several weeks according to past releases, to allow us to collectively work together on items and track things that needs to be merged.
In the next few days we will be populating the release note in this thread. Most release note content will be derived from our monthly report.
@vinx13 and I volunteered to manage the release, and @icemelon and @yzhliu will mentor us as PMC members.
Please don't hesitate to share your thoughts :-)

Thanks for doing this work! There were some items listed on #7434, perhaps we can start with those?

Thanks for the work. I believe v0.8 is a good chance to land TensorIR scheduling (https://github.com/apache/tvm/issues/7527). Also, I will try my best to contribute some initial TensorIR tutorials and documentations before the v0.8 release.

Agree with @leandron that we could firstly refer to the items there. Many "initial" features in v0.7 are now stable. For example:

Initial automatic scheduling support -> stable.
Initial command line driver interface -> stable.
Intial Hexagon support -> stable.
Bring your own codegen (BYOC) support -> now we have several backends.

[stable] NVIDIA TensorRT, Xilinx Vitis-AI, ARM compute library, ARM Ethos-N, etc.
[experimental] TBA.

I wanted to propose as a highlight the TE-level auto-differentiation work, lead by @yzhliu, which unlocks TE-level training capability in the TVM stack

Expecting the new release!

Agree with @leandron that we could firstly refer to the items there. Many "initial" features in v0.7 are now stable. For example:
* Initial automatic scheduling support -> stable.

* Initial command line driver interface -> stable.

* Intial Hexagon support -> stable.

* Bring your own codegen (BYOC) support -> now we have several backends.

  * [stable] NVIDIA TensorRT, Xilinx Vitis-AI, ARM compute library, ARM Ethos-N, etc.
  * [experimental] TBA.

Does our hexagon support is stable now? I am not sure about it. As I saw we still pull requests actively(like https://github.com/apache/tvm/pull/8986 to support model lauch). I think the status maybe is still not stable. @kparzysz-quic should give more definitive answer

Hexagon support still needs more work.

Just checking--by "stable" for the "command line driver interface," does that mean "someone should write a script and presume we won't change the command syntax?"
For µTVM we could add:

microTVM Project API -> initial support
microTVM AOT executor -> initial support
microTVM platforms: Zephyr, Arduino -> initial support

I'd like us to avoid using "uTVM" to refer to microTVM in the release notes and just spell out the word "micro" instead. While u is still a common abbreviation for mu, it's not necessarily widely known. We've renamed most occurrences of uTVM inside the codebase to avoid confusion.

@vinx13 and I spent the previous 2 weeks categorizing the 69 pages of changelogs via git commits: https://docs.google.com/document/d/1D2rig32yZ4H48_tXHb_svnPnt4-FRx3JUbBxKyrW_-I/
Below are the categories we are using:

TE & TIR & TIR Scheduling & TVM Script
Relay IR
AutoTVM & Auto Scheduler & Meta Schedule
Training
TOPI & Operators
Executor & AOT & Profiler
MicroTVM
Arithmetic Analysis
Frontend - TensorFlow & TFLite
Frontend - PyTorch
Frontend - ONNX
Frontend - MXNet
Frontend - Misc
Codegen/Runtime: LLVM & ROCm
Codegen/Runtime: Vulkan & SPIR-V
Codegen/Runtime: OpenCL & VTA
Codegen/Runtime: CUDA
Codegen/Runtime: Arm
Codegen/Runtime: Hexagon
Codegen/Runtime: WASM
Codegen/Runtime: C
Codegen/Runtime: Metal
BYOC
CI & Docker & Build & Test
TVMC
Rust and Other Language Bindings
Docs & Tutorials
RPC
Target
Misc
Community

Please feel free to suggest in the doc if there is any mistake :-)

Hi, @junrushao1994
I think we could add paddlepaddle frontend as a new feature in the release note of v0.8

@jiangjiajun Sure! We will list experimental paddlepaddle frontend support as a separate category and a highlight of this release

@Mousius Thanks for asking!

does this mean that 0.8 will go out with half finished implementations for things, such as library integrations (i.e. CMSIS-NN) and tvmc arguments (tvmc is not yet stable as there's breaking changes incoming)

Yes, we directly cut main into the v0.8 branch: https://github.com/apache/tvm/tree/v0.8. We do not have to announce the features that are not complete yet, and if there is any major bugfixes, it should be backported to the v0.8 branch.

can we rapidly move to focusing on a 0.9 release with a list of issues as suggested by @areusch so we can work towards stability in a 1.x release.

I agree. Hopefully we will have a more automatic release process with the help from @denise-k :-)

Hi all, we cut a v0.8 release branch for Apache TVM: https://github.com/apache/tvm/tree/v0.8. Please find:

The release note (candidate): https://github.com/apache/tvm/issues/9416
The full changelog (candidate): https://gist.github.com/junrushao1994/c669905dbc41edc2e691316df49d8562

There have been tens of commits since last time we categorized the commits, and @vinx13 is actively working on adding them into our changelog.
Please let us know if we missed anything or need any tweak on wording/categorization on the release note!

Also, if there is any bug/issue blocking the release, please don't hesitate to let us know in this thread :-)

Blocker: We need this bugfix in to address a regression https://github.com/apache/tvm/pull/9421

Blocker: Conv2dTranspose currently does not support groups. But groups is popularly used in recent efficient models and Conv2dTranspose is an important operator in GAN related applications.

groups support: https://github.com/apache/tvm/issues/8182 https://github.com/apache/tvm/pull/8799
shape check: https://github.com/apache/tvm/pull/9465

Will try my best to fix the problem this week.

The release is cut and is available for test in https://github.com/apache/tvm/tree/v0.8

Blocker #9486

When would 0.8 official release be? Estimatedly, days, weeks, months?

The release candidate v0.8.rc0 is approved:

Voting thread: https://github.com/apache/tvm/issues/9504
Voting result: https://github.com/apache/tvm/issues/9566


[question] does this plugin have popup for functions args while parsing them when calling the function?

this is a good example (nvim with vimscript (coc.nvim) plugins)

however, i've read the docs for this plugin, i couldnt find in readme something similar.
by default i dont get anything like this (nvim with lua config (nvim-cmp) plugins)

my cmp config:
local cmp = require("cmp")
cmp.setup({
	snippet = {
		expand = function(args)
			require"luasnip".lsp_expand(args.body)
		end
	},
	-- in this order they will appear in the box
	sources = {
		{ name = 'nvim_lsp' },
		{ name = 'luasnip' },
		{ name = 'buffer' },
		{ name = 'path' },
		{ name = 'nvim_lua' },
		{
			name = 'tmux',
			  opts = {
				all_panes = false,
				label = '[tmux]',
				trigger_characters = { '.' },
				trigger_characters_ft = {} -- { filetype = { '.' } }
			  }
		}
	},
	mapping = {
	  -- ['<C-d>'] = cmp.mapping.scroll_docs(-4),
	  -- ['<C-f>'] = cmp.mapping.scroll_docs(4),
	  ['<C-Space>'] = cmp.mapping.complete(),
	  ['<C-e>'] = cmp.mapping.close(),
	  -- ['<CR>'] = cmp.mapping.confirm({
	  --   select = true,
	  --   behavior = cmp.ConfirmBehavior.Replace,
	  -- }),
	  ['<CR>'] = cmp.mapping.abort(),
	  ['<tab>'] = cmp.mapping.confirm({
		select = true,
		behavior = cmp.ConfirmBehavior.Replace,
	  }),
	},
	formatting = {
	  format = function(entry, vim_item)
		-- fancy icons and a name of kind
		vim_item.kind = require("lspkind").presets.default[vim_item.kind] .. " " .. vim_item.kind

		-- set a name for each source
		vim_item.menu = ({
		  buffer = "[Buffer]",
		  nvim_lsp = "[LSP]",
		  luasnip = "[LuaSnip]",
		  nvim_lua = "[Lua]",
		  latex_symbols = "[Latex]",
		  -- https://github.com/andersevenrud/compe-tmux/issues/6
		  tmux = "[tmux]"
		})[entry.source.name]
		return vim_item
	  end,
	},
})

maybe there is some config that i didnt do? or this plugin just doesnt support that.

You can use lsp_signature.nvim.
It's,out of scope of cmp. Sorry.

You can use lsp_signature.nvim.

wow. this plugin is great.
thank you so much.


Release Code

When will the code be released?

Hi @863689877 , I am working on the code release and the camera-ready version of our paper, and will update the paper on arxiv and release the code before March 28, thanks.

Will the code be released soon? I'm quite curious about your work.

Hi @Shimmer93 , thank you for your interest in our work!
I am almostly done with the code cleaning and are doing some testing currently. Hopefully the code will be released in one day or two. I have already updated our paper on arxiv (https://arxiv.org/abs/2111.13680) and more analysis is included. Thanks!

Hi @863689877 @Shimmer93 , the code and models have been released.

Hi @863689877 @Shimmer93 , the code and models have been released.

Thank you! I think the issue can be closed now.


Seperate NOAT from population displayed in the lobby mission list

The lobby screen should just list the number of players actually playing in game in addition to (or instead of) the current simple number of people on the server.
EDIT:  The lobby screen should display the number of player's in a mission's NOAT side in addition to the existing functionality.
<All sides Total> / <Max Players>
(<NOAT Total> NOAT)

Imported from trac ticket #169,  created by Xynth on 07-22-2010 at 22:33, last modified: 08-01-2010 at 07:23

gamescreen.cpp and clintlib.cpp are the files where change is needed.
http://www.freeallegiance.org/forums/index.php?showtopic=58231
Trac comment by lexaal on 07-22-2010 at 22:36

change: lobby: #of player / maxplayer -> #playersInTeam /numberOfPlayers.
Sadly I could not really test it.  ->wednesday
Trac comment by lexaal on 07-26-2010 at 18:30

Implemented, but I can't run more than 2 instances of allegiance. I will test it on beta-wed.
Trac comment by lexaal on 07-26-2010 at 17:09

I think we may want to incorporate the max in there somehow.  I am concerned about newbies thinking the games is full (I know i mentioned instead in the original write up).  The column size is a concern but we can try 35(40)/200 and see what the spill over looks like.
Trac comment by Xynth on 07-26-2010 at 19:06

Not working correctly, I will take a look at it.
Trac comment by Xynth on 07-28-2010 at 20:45

always shows 0, gotta get NOAT count some other way.
Trac comment by Imago on 08-01-2010 at 04:49

ugh, was painful r874
Trac comment by Imago on 08-01-2010 at 07:23

got it how i want it
Trac comment by Imago on 07-31-2010 at 22:16


Programatically Closable Hybrid Menu

Excellent Work. Can you add Hidden Menu Drawer Option By Default If Required (As it auto hides in Mobile Version)

Have you tried using the Left Behaviour?

Sir,
When we see App Layout Drawer in Desktop Version, The Drawer is Appeared in LEFT Behavior. What i need is IF i set appLayout.withHiddenByDefault(true) e.g. then in Desktop View The Drawer should be hidden. When click on Menu Then it Toggle.

Have you tried these Methods?

Yes, It Helps and solved the problem. Thanks


[Bug] model variable in GeoEntityRenderer is used for animations instead of the return value of the getGeoModel method

The entity animations are handled by the model variable instead of the method, so overriding it doesn't change animations used.
GeoEntityRenderer lines 218 & 219:
			this.model.addAdditionalStateData(animatable, instanceId, animationState::setData);
			this.model.handleAnimations(animatable, instanceId, animationState);

What version of geckolib is this in?

4.4.4, mc 1.20.4

This was fixed in 4.5

You should be moving on from 1.20.4 lol


Digits are clipped on the left side

HA 0.117.6 both in Chrome and IOS app.

#26

Same as mine with the newest version.  Any fix for it.

See link above your post.


fix tsconfig.json build target es6 not working issue

Thanks for the great project. It helps a lot.
I found an issue when I use tsc compiler compile to target es6, the controller doesn't work.
So I dig in the source code, I found that when compile to es6, the controller class doesn't convert to function style, then the Object.keys(this.targetClass.prototype) always return blank array [].
for example
// compiler target es6
class UsersController {

  constructor(templateService, calendarsServer) {
    this.templateService = templateService;
    this.calendarsServer = calendarsServer;
  }

  indexAction(request, response) {
  }

  get index() {
  }

};

// compiler target es5
function UsersController1(templateService, calendarsServer) {
    this.templateService = templateService;
    this.calendarsServer = calendarsServer;
}

UsersController1.prototype.indexAction = function(request, response) {
}

const p1 = UsersController.prototype;
const p2 = UsersController1.prototype;

console.log(p1);
console.log(p2);

console.log(Object.keys(p1).length); // returns 0
console.log(Object.keys(p2).length); // returns 1

I made a PR to fix this using Object.getOwnPropertyNames refer to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties
Thanks,
Vincent

Coverage decreased (-0.003%) to 99.365% when pulling f8faee8ad7c52595a2e1b8a66d87712fb473edac on vincent178:master into 5d8a67108b58c99b9bbcb9a8f246bbe9c3b4224e on Romakita:master.

Hello Vincent178,
Thanks for your pull request :)
I have remove the ES6 compilation option for the version 1.2 because I had some issues.
I will test a little more ts-express-decorators in future releases ;)
Thanks again 👍
Romain


[Woin] Enable one decimal place for equipment weight

Changes / Comments
Firefox and Chrome threw visible errors (although the calculation was correct) when equipment weight or weight total had a fractional component (decimal place). This update enables 1 decimal place for both weight numbers. Tested successfully on both platforms.
Roll20 Requests
Comments are very helpful for reviewing the code changes. Please answer the relevant questions below in your comment.

[Y] Does the pull request title have the sheet name(s)? Include each sheet name.
[Y] Is this a bug fix?
[N] Does this add functional enhancements (new features or extending existing features) ?
[N] Does this add or change functional aesthetics (such as layout or color scheme) ?
[N/A] If changing or removing attributes, what steps have you taken, if any, to preserve player data ?
[N/A ] If this is a new sheet, did you follow Building Character Sheets standards ?

If you do not know English. Please leave a comment in your native language.

Hi Cassie,
I don't understand, the conflict listed is the change I want to make. The identified lines should be different by virtue of step="0.1" being added. I am not sure what I should have done, I am still learning how github works with Roll20. I have tested the change by pasting the html into my test game and it works. Can you please point me in the right direction?
Regards,
Ghostroo

Hi Cassie,
I have removed the unwanted lines, tested the code in my test game and it
works. I have submitted a commit merge request with the updated file
WOIN.html. It was indeed easy to do in Github.
I don't understand one part of the process, when I submitted changes to
this file the first few times, I did not receive a conflict. This time I
did receive a conflict but the changed lines that Github did not like were
exactly the changes I wanted. Did I submit the update incorrectly? Are the
old and new lines too similar and thus the error resulted?
Thank you in advance, you have been very helpful so far and these questions
must seem basic understanding to you.
Regards,
Ghostroo
On Tue, Aug 27, 2019 at 11:54 PM Cassie Levett<EMAIL_ADDRESS>wrote:

Greetings @Ghostroo https://github.com/Ghostroo
You just need to remove one of the two line marked in the Resolve
Conflicts area. It's pretty easy to do in GitHub
https://help.github.com/en/articles/resolving-a-merge-conflict-on-github
.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Roll20/roll20-character-sheets/pull/5410?email_source=notifications&email_token=AEJJUCIFD3E6RUTHWH2OCVTQGUWX7A5CNFSM4IOB5O62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5H2AFA#issuecomment-525312020,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEJJUCM5RGJR3CUXE27OS7TQGUWX7ANCNFSM4IOB5O6Q
.

 It's possible that your fork is out of sync which GitHub then returns conflicts.

Hi Cassie,
I think that was the issue. I have merged the upstream into my fork and
I'll resubmit the last changes as they are not reflected in the current
production WOIN sheet.
Regards,
Ghostroo
On Tue, Sep 3, 2019 at 11:17 PM Cassie Levett<EMAIL_ADDRESS>wrote:

Greetings Ghostroo,
Are you keeping your fork up to date? It's possible that your fork is out
of sync which GitHub then returns conflicts.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Roll20/roll20-character-sheets/pull/5410?email_source=notifications&email_token=AEJJUCLHSYJVG7RRZXNYLUTQHZPWZA5CNFSM4IOB5O62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5YE65Y#issuecomment-527454071,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEJJUCOPMSDUTOQKMK7DB5LQHZPWZANCNFSM4IOB5O6Q
.


Fix rule to parse for CloudID.

Hi maintainer.
I have used this library with Elastic Cloud(ElasticSearch) recently.
And when I was connecting to Elastic Cloud(ElasticSearch) having GCP  backend in the Tokyo region, I used CloudID instead of an endpoint.
But I encountered an error having "invalid port".
First encountered  I don't understand this error, So I did look under the hood for troubleshooting this error.
And I found this error reason, and It is that CloudID made by GCP in the Tokyo region regardless of other backend had an odd pattern of a key.
A normal CloudID seems to a pattern like "cluster_name:base64 string", "base64 string" seems to a pattern like "host$number$number" after decode.
But "base64 string"(part of CloudID) made by GCP in the Tokyo region has a pattern "host:9243$number$number".
So I contacted the Elastic Cloud Support Center for resolving this issue.
After some days,  I was answered this issue resolve.
But I would say this library needs to defensive code which shouldn't occur an error for this issue.
Both Filebeat and Logstash have worked very well, even though this issue.
I would say both Filebeat and Logstash seem to have a defensive code for this issue.
So I Suggest to this PR.
Thank you.

Hello, sorry for taking so long to respond! I've looked into the issue and consulted with Cloud, and the culprit here is adding the 9243 port by default into the parsed address. I've tested against a new deployment, and the value no longer contains port, and in fact, that's what clients should do when connecting to Cloud — leave the value empty, and let the HTTP library pick up the port, 443 in this case.
I've fixed the problem in a different way — instead of parsing the port out of the value, I just removed it (0b113bc5). I've added a couple of tests to cover the behaviour. Thanks for raising the issue and for the patch! Please re-open the issue or open a new one if you would run into problems again.


Preserve attributes on class types

See https://github.com/facebook/reason/issues/710

Is it possible to make the output more like: https://github.com/IwanKaramazow/reason/blob/c218d8bd507141e020e19aac4af27538951589ff/formatTest/typeCheckedTests/expected_output/attributes.re#L231 ?


Fix nextls binary name in installation guides

When downloading nextls binary from the Releases section on GH, it is named next_ls, while installation guides refer to nextls. In my case, I had to change vim lsp server registration function to use next_ls so maybe it's worth unifying the naming?

Technically they are named darwin_arm64_next_ls, so I feel like the change here is still confusing.
but also nextls is how it is named when it is distributed everywhere else, so I wouldn't suggest changing all the docs anyway.
I would probably just add a comment about renaming it to nextls in the readme


Sampler Expansion - GBNF Grammar

This PR is functional but probably not in an ideal state? All of the grammar related code is cribbed from UtilityAI's library I'm not sure if we want to dump this and build something totally new the code seemed fairly well written and I didn't see value in re-inventing the wheel here. I will note that neither the UtilityAI or this implementation of sampler code is exactly the same as the llama.cpp sampling logic specifically we're missing the resampling behavior for increased performance when using grammars.
Additional Notes
For what it's worth I don't know if it's trivial to attempt to implement this as a sampler stage? We always need to accept the token's after sampling has been completed and a token has been selected I wasn't able to figure out a strategy for dealing with moving around the grammar in a way that made sense and it also felt awkward to include token acceptance as a SamplerStage.
Usage
Basic usage example below,
Code
let gbnf_bytes = include_bytes!("json.gbnf");
let gbnf: &str = str::from_utf8(gbnf_bytes).unwrap();
let grammar = LlamaGrammar::from_str(gbnf).unwrap();

let stages = vec![
    SamplerStage::RepetitionPenalty {
        repetition_penalty: 1.1,
        frequency_penalty: 0.0,
        presence_penalty: 0.0,
        last_n: 64,
    },
    SamplerStage::TopK(40),
    SamplerStage::TopP(0.95),
    SamplerStage::MinP(0.05),
    SamplerStage::Temperature(0.8),
];

let sampler = StandardSampler::new_softmax(stages, 1, Some(grammar));

Grammar
root ::= Response
Response ::= "{"   ws   "\"importance\":"   ws   ResponseValue   ","   ws   "\"category\":"   ws   Category   ","   ws   "\"summary\":"   ws   string   "}"
Responselist ::= "[]" | "["   ws   Response   (","   ws   Response)*   "]"
Category ::= "\"promotional\"" | "\"receipt\"" | "\"notification\"" | "'advertisement'" | "'professional'" | "'news'"
ResponseValue ::= "\"high\"" | "\"low\""
string ::= "\""   ([^"]*)   "\""
boolean ::= "true" | "false"
ws ::= [ \t\n]*
number ::= [0-9]+   "."?   [0-9]*
stringlist ::= "["   ws   "]" | "["   ws   string   (","   ws   string)*   ws   "]"
numberlist ::= "["   ws   "]" | "["   ws   string   (","   ws   number)*   ws   "]"

Output
ggml_gallocr_reserve_n: reallocating Metal buffer from size 0.00 MiB to 2114.53 MiB
ggml_gallocr_reserve_n: reallocating CPU buffer from size 0.00 MiB to 8.00 MiB
{"importance": "low", "category": "promotional", "summary": "Marketing email from Adobe Inc., most likely promoting their products and services. You can unsubscribe from future emails by clicking the link provided."}

@ianmarmour I've opened a pull request for your pull request here: https://github.com/ianmarmour/llama_cpp-rs/pull/1


unable to verify the first certificate

VSCode Version: Code 1.8.1 (ee428b0eead68bf0fb99ab5fdc4439be227b6281, 2016-12-19T14:49:23.350Z)
OS Version: Windows_NT ia32 6.1.7601
Extensions:

Extension
Author
Version

crane
HvyIndustries
0.2.0

format-indent
Kasik96
1.3.0

ftp-sync
lukasz-wronski
0.3.1

twig
whatwedo
1.0.1

Steps to Reproduce:

I try intall a extension. I entered "ext vim" to extensions input.
Next. I clicked "Intall" button.
VSC output message: "unable to verify the first certificate".

Documentation on how to fix this comes with #27838


[Hotfix] Cleanup README (+ RTD sync)

Summary
As per recent feedback from an external reviewer, we want to improve README so that a new user can onboard more quickly/effectively.
Changes

[x] Use a simpler example for Quick Start section
[x] Add instruction for default kernel (Python 3 (ipykernel))
[x] Specify prerequisites for LineaPy installation
[x] Fix RST syntax copied over to README
[x] Put Interfaces section before Quick Start so the user knows how to load LineaPy extension before hands-on practice
[x] Reduce amount of upfront info by removing non-essential contents from README (instead, direct them to RTD pages for more info)

PR also includes changes to sync RTD pages with the above README updates.
Testing
This PR does a pure docs update, so no need for automated testing. Examples used in docs have been validated locally.
Ticket(s)
This PR resolves https://linea.atlassian.net/browse/LIN-700.

I've made some minor edits to the README based on our call earlier today!

@dorx I am merging this PR for ODSC which is happening today.


linker command failed with some Readline methods

When using a few of the Readline methods, I get the following error:
Undefined symbols for architecture x86_64:
  "_rl_unbind_key", referenced from:
      _*Readline@Readline::unbind_key<Char>:Nil in R-eadline.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: execution of command failed with code: 1: `cc -o "/Users/jeremywoertink/.cache/crystal/crystal-run-sample.tmp" "${@}"  -rdynamic  -lreadline -lpcre -lgc -lpthread /usr/local/Cellar/crystal-lang/0.21.0/src/ext/libcrystal.a -levent -liconv -ldl -L/usr/lib -L/usr/local/lib`

Here's the code:
require "readline"

Readline.unbind_key('t')

loop do
  Readline.readline("Enter code: ", true)
end

Running Crystal 0.21.0 (2017-02-21) on macOS 10.12.3

I think this is an issue with OSX and readline, not Crystal. Crystal simply links against whatever readline you have installed in your system. An update to readline on your machine should fix this (though I don't know how to do that right now).

I have the latest readline 7.0 installed. I'm not familiar with how linking C packages work, but if I can get a similar example running in straight readline outside of crystal, would that help?
I think @Sija had tried this on linux as well and got the same error. Does this example work on your machine? Maybe we can see what the difference is to see what linked package is missing?

@jwoertink Truth to be told I've been trying that on my macOS (10.11.6) machine :)
I have readline: stable 7.0.3 (bottled) [keg-only] installed via homebrew but it's not linked, so the error was coming from my system libreadline I think.

Ah. Ok, so same as me then. How do we link it to see if that's the issue?

@jwoertink brew link readline --force

Still same error:
[14:25PM] debugger$ brew link readline --force
Linking /usr/local/Cellar/readline/7.0... 17 symlinks created
[14:25PM] debugger$ crystal sample.cr
Undefined symbols for architecture x86_64:
  "_rl_unbind_key", referenced from:
      _*Readline@Readline::unbind_key<Char>:Nil in R-eadline.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: execution of command failed with code: 1: `cc -o "/Users/jeremywoertink/.cache/crystal/crystal-run-sample.tmp" "${@}"  -rdynamic  -lreadline -lpcre -lgc -lpthread /usr/local/Cellar/crystal-lang/0.21.0/src/ext/libcrystal.a -levent -liconv -ldl -L/usr/lib -L/usr/local/lib`

@jwoertink did you clear your ~/.cache/crystal before? (just to be sure...)

yeah, I had cleared that out. In fact, trying to fix another issue I had, I had to completely uninstall crystal and clear out a bunch of things, so I was able to start fresh. Are you saying that you were able to get it to work on macOS, @Sija?

@jwoertink nope, but didn't tried very hard (mostly thinking of changing versions and relinking the lib through homebrew).

Running the same code on an Ubuntu install does work. So it seems there is a version mismatch or something else wrong with libreadline on OSX.
Ubuntu Version:
root@24b0024d307b:/opt/crystal-head# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 14.04.5 LTS
Release:	14.04
Codename:	trusty

Installed versions of libreadline
libreadline6/trusty,now 6.3-4ubuntu2 amd64 [installed]
libreadline6-dev/trusty,now 6.3-4ubuntu2 amd64 [installed]

Not sure if this helps shed some light or not, but I tried using --link-flag (probably incorrectly:
[14:57PM] debugger$ crystal build --release sample.cr --link-flags /usr/local/Cellar/readline/7.0/lib/libreadline.a
Undefined symbols for architecture x86_64:
  "_BC", referenced from:
      __rl_init_terminal_io in libreadline.a(terminal.o)
  "_PC", referenced from:
      __rl_init_terminal_io in libreadline.a(terminal.o)
  "_UP", referenced from:
      __rl_init_terminal_io in libreadline.a(terminal.o)
  "_tgetent", referenced from:
      __rl_init_terminal_io in libreadline.a(terminal.o)
  "_tgetflag", referenced from:
      __rl_init_terminal_io in libreadline.a(terminal.o)
  "_tgetnum", referenced from:
      __rl_get_screen_size in libreadline.a(terminal.o)
  "_tgetstr", referenced from:
      __rl_init_terminal_io in libreadline.a(terminal.o)
  "_tgoto", referenced from:
      _update_line in libreadline.a(display.o)
  "_tputs", referenced from:
      __rl_backspace in libreadline.a(terminal.o)
      _rl_ding in libreadline.a(terminal.o)
      __rl_enable_meta_key in libreadline.a(terminal.o)
      __rl_disable_meta_key in libreadline.a(terminal.o)
      __rl_control_keypad in libreadline.a(terminal.o)
      __rl_set_cursor in libreadline.a(terminal.o)
      _rl_redisplay in libreadline.a(display.o)
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: execution of command failed with code: 1: `cc -o "/Users/jeremywoertink/Development/crystal/debugger/sample" "${@}" /usr/local/Cellar/readline/7.0/lib/libreadline.a -rdynamic  -lreadline -lpcre -lgc -lpthread /usr/local/Cellar/crystal-lang/0.21.1/src/ext/libcrystal.a -levent -liconv -ldl -L/usr/lib -L/usr/local/lib`

but it gave a lot more output

@jwoertink Did you try older version of libreadline (6.x)?

@Sija No. I only have 7.0 on my machine, and I can't find a 6.x version through homebrew.

ok, I found a 6.3.8 version and was able to install, but I get the same error.

Not relevant any more, see https://github.com/crystal-lang/crystal/pull/8364


table.pick is completely broken

The code doesn't even make any sense. Were I drunk?

Closing as the project is being archived


feat: add Polar

This pull request is adding support for Polar language. Polar is a declarative logic programming language specialized for authorization logic.
This language was included in the github-linguist in the following pull request. https://github.com/github-linguist/linguist/pull/6101

Thanks for merging @antfu . Do I also need to put in a PR to https://github.com/shikijs/shiki to bump tm-grammars? Looks like that isn't done automatically.


Allow for creating tag groups

https://github.com/Redocly/redoc/blob/master/docs/redoc-vendor-extensions.md#x-tagGroups

Added in v2.4.1 (9ab9d322bb49bf16bcc829590bc8e441c54b2b26)


Improve hash mixing in FST's double-barrel LRU hash

Description
Addresses #12704. Below is the comment that inspired this (link),
Instead, we should multiply with the gold constant BitMixer#PHI_C64 (make it public).
This really makes a difference in the evenness of the value distribution. This is one of the secrets of the HPPC hashing. By applying this, we get multiple advantages:

  * lookup should be improved (less hash collision)
  * we can try to rehash at 3/4 occupancy because the performance should not be impacted until this point.
  * in case of hash collision, we can lookup linearly with a pos = pos + 1 instead of quadratic probe (lines 95 and 327); this may avoid some mem cache miss.

(same for the other hash method)

Closes #12704

Thanks for the quick review @mikemccand! I have addressed the comments in the new revision.

Could you also change the probe from quadratic (what it is now) to a simple linear probe (just test each +1 (wrapping at the hash table size) slot on insert collision)?

Second, could you change the rehash ratio from 2/3 -> 3/4? The better mixing should mean we can run a tighter ship here.

Addressed both in the new revision

I'm happy to help test the impact to FST construction time -- I'll just run the new IndexToFST tool in luceneutil on a nightly wikimediumall index. That's a decent stress test of FST building (creates an FST ~350 MB or more, depending on how much RAM you are willing to spend while compiling it).

Thank you so much for the help Mike ! I have never run the fst benchmark but seems like its straightforward java script?. I could give it a try as well (sometime this week) if you don't beat me to it.

Thank you so much for the help Mike !

Thank you!

I have never run the fst benchmark but seems like its straightforward java script?. I could give it a try as well (sometime this week) if you don't beat me to it.

It is fairly simple.  It's build "script" lives as a simple java comment inside it :)  The fun part is building a full wikimediumall index for it to pull the terms from.

OK I ran it twice on main:
    saved FST to "fst.bin": 294815624 bytes; 59.874 sec
    saved FST to "fst.bin": 294815624 bytes; 60.255 sec

And twice with this PR:
    saved FST to "fst.bin": 294815624 bytes; 69.026 sec
    saved FST to "fst.bin": 294815624 bytes; 70.082 sec

Net net ~ 16.7% slower (~60s -> ~70s), maybe more than I expected.  Should we try just the better mixing but keep the rehash trigger at 2/3, maybe?

Oh, the numbers are disappointing. I expected to be both a little more compact and little faster.
I wonder what is the cause, the rehash threshold, the linear scan, or the multiplication itself?
The benchmark is for one fst size. Often when benchmarking hash map, I saw the curve make stages when the size increased. But I doubt a stage would explain such a difference.

@mikemccand @bruno-roustant  So I also ran the FST construction time benchmarks on wikimediumall index using IndexToFST over a couple of combinations of tweakable parameters to see the effect. Following are the results :

Golden ratio Bit mixing
Rehash ratio (2/3)
Rehash ratio (3/4)
Quadratic Probing
Linear Probing
No. of iterations
Avg Time (seconds)
Comments

No
Yes
-
Yes
-
10
89.5471
Baseline

Yes
Yes
-
Yes
-
10
89.6913

Yes
Yes
-
-
Yes
10
89.8202

Yes
-
Yes
Yes
-
10
98.15

Yes
-
Yes
-
Yes
10
103.4483
PR

Then I also tried rehash ratio of 1/2 (just to explore ahead) to see its impact, that seem to have slightly better numbers (best amongst the tried ones).

Golden ratio Bit mixing
Rehash ratio (1/2)
Quadratic Probing
Linear Probing
No. of iterations
Avg Time (seconds)
Comments

Yes
Yes
Yes
-
10
89.1806

Yes
Yes
-
Yes
10
89.2009

I'm not aware of the rationale behind choosing rehash ratio of 2/3, but should we try making it 1/2? That might have few consequences which I am unaware of. Keen to know your thoughts on this. Thanks!

Thank you @shubhamvishu for these experiments. The table answers exactly to the questions.
And it means actually there is no point to change the bit mixing, since it does not bring any improvement.
Making the rehash threshold at 1/2 would means the hash structure would occupy more memory on average since it would allocate an "array" and would use it between 25% to 50% occupancy. With the 2/3 threshold, it uses it between 33% and 66% occupancy. So staying at 2/3 is better.
Sometimes an appealing idea is actually a false good idea. And it's great to have these experiments to avoid the pitfall!

@bruno-roustant Absolutely! I totally agree with your point.

Wow, these are interesting results.  Thanks @shubhamvishu.  It's curious that, at 3/4 rehash ratio, linear probing is quite a bit slower (103.4 s) than quadratic (98.1 s).
The fact that the FST compilation time did not change much between 2/3 rehash trigger and 1/2 rehash trigger makes me wonder if there is a better trigger somewhere even beyond 2/3 but before 3/4.  But I don't think this is urgent to explore ... let's keep the 2/3 ratio for now?
Thanks for all the testing -- indeed not every idea pans out, and it's great that that happens.  If every idea panned out then we are not  trying hard enough to come up with innovative ideas :)

@shubhamvishu can we close this one?  Any other things to try?  For some reason, FST building of enwiki terms seems not to like this magical hashing...

@shubhamvishu can we close this one? Any other things to try?

Sure @mikemccand ! Maybe we could just try a rehash value between 2/3 and 3/4 as you mentioned earlier(how about 17/24? the mid value of these two) and close this post that since we are at it now. I'll run it and share the results for that soon.

For some reason, FST building of enwiki terms seems not to like this magical hashing...

Indeed!💯

Ok so I ran the test with rehash value of 17/24 which is between 2/3 and 3/4. Here are the results:

Golden ratio Bit  mixing
Rehash ratio  (2/3)
Rehash ratio  (17/24)
Quadratic Probing
No. of iterations
Avg Time  (seconds)
Comments

No
Yes
-
Yes
10
103.4224
Baseline

No
-
Yes
Yes
10
103.0535
Candidate

Results are almost the same(maybe just noise?). @mikemccand please feel free to close this PR if this looks not worth pursuing to you. Thanks!

The fact hash key remixing doesn't improve the situation is not necessarily a sign that it's somehow wrong - it means hash keys are distributed evenly already (which is good). Remixing adds this extra layer of confidence that even if bad hash functions are present on input, it'll still redistribute those "bad" original keys fairly uniformly.
I'm surprised linear probing doesn't yield an improvement. Perhaps it's not a significant factor because of other load? Hard to say. Anyway, no need to make things more complicated if they don't yield a visible improvement.

I'm surprised linear probing doesn't yield an improvement. Perhaps it's not a significant factor because of other load? Hard to say. Anyway, no need to make things more complicated if they don't yield a visible improvement.

I totally resonate with you @dweiss on this! I'll close this PR now. Thanks everyone for looking and sharing your thoughts.😀

Thanks @shubhamvishu and @dweiss and @bruno-roustant.  Hashing is fun and hard :)


Add Java support for the different durable functions storage providers

We still need to connect Java to the storage provider work we did in the last update.  This would add automatic configuration support for Netherite and MSSQL storage providers.

@Flanker32 Hi Hanxiao Liu, we need some additional support for hooking up Java with the new Durable Storage Providers.  I will reach out to you with additional information, thank you 🙂


merge package from arlac77/npm-package-template

package.json

chore(package<EMAIL_ADDRESS>chore(scripts): cover@#overwrite c8 --temp-directory build/coverage ava && c8 report -r lcov --temp-directory build/coverage
chore(package): add nyc from template
docs(package): remove keyword null
chore(package): set $.ava.require='esm' as in template
chore(package): set $.ava.files='tests/-test.js,tests/-test.mjs' as in template
chore(package): set $.ava.extensions='js,mjs' as in template

Codecov Report

Merging #592 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master    #592   +/-   ##
======================================
  Coverage    94.4%   94.4%
======================================
  Files           7       7
  Lines        1073    1073
======================================
  Hits         1013    1013
  Misses         60      60

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 ba1172c...1e7c4a7. Read the comment docs.

Coverage remained the same at 93.103% when pulling 1e7c4a77bce79f3e16092dc37b84a6b7b5009138 on template-sync-1 into ba1172ce05b53581e54bf69ac538d1bb3e5758a4 on master.


added queue manager

Wow api can manage only 100 request per second. After this rate most requests would fail.
It is my propose how we can manage it. I created queue manage which should be singleton(per region) and have to be added to all WarcraftClient instances.
This is not finished state. I want to know you opinion about functionality like this before finish it. Maybe you will propose better solution as more advanced programmer/architect.

TL;DR: I feel like we don't want to couple the WarcraftClient itself to Blizzard's rate limit requirements, and instead developers should do their own compensation for it. If we really want this, maybe it should be a separate package, possibly using Polly, to implement this type of behavior.
I've been trying to think on this PR a bit and I'm not sure how I feel about it. On the one hand, I totally get why this might be implemented in the HTTP client. However, it also feels like this isn't something that WarcraftClient itself should be responsible for: it's purpose and focus is making the HTTP requests, not necessarily handling rate limiting. Thinking about other frameworks as well, the Azure CosmosDB client comes to mind I think, they throw exceptions and let applications know that a rate limit/HTTP 429 is returned and force application developers to compensate for it.
I think I would err on the side of the latter, asking developers to determine the best approach for their specific situation and use case if they are encountering Blizzard's rate limits. I also think it would adhere to SOLID principles a little better if the WarcraftClient continues focusing on HTTP requests, and something that wraps or extends it handles rate-limit logic. Perhaps there is a way to implement something like this in a separate extensions project that leverages Polly for request retries in the event of 429s?

I finally got some time to look into this a bit more.  According to the Throttling section of the Getting Started documentation...

API clients are limited to 36,000 requests per hour at a rate of 100 requests per second. Exceeding the hourly quota results in slower service until traffic decreases. Exceeding the per-second limit results in a 429 error for the remainder of the second until the quota refreshes.

So the hourly cap allows for an average of 10 requests per second (36,000 / 60 / 60 = 10), and there is an additional per-second cap to limit bursts within that window.  So you could theoretically burn through the entire 36,000 requests in the first 6 minutes of the hour at 100 requests per second, and then you'd have "slower service" for the remaining 54 minutes of the hour.
There are a few possible approaches to dealing with this in this package:

Do nothing.  Rely on the package consumer to understand the throttling rules and make provision for them (if their use case even demands it, as with bursty batch processing or a heavy-traffic website).
Retry 429s.  Have the package (or a companion package) handle automatic retries for 429 responses.  Other than the delay, this behavior would be transparent to the consumer.
Proactively rate-limit.  The most elaborate approach would involve proactively rate-limiting the calls to the service in an attempt to avoid 429 responses altogether.

In addition to the proposed code in this PR, there are some interesting approaches to option 3, such as the token bucket algorithm. There are .NET implementations of this algorithm, like RateLimiters (package at Bert.RateLimiters) and Esendex.TokenBucket.  The difference between the burst limit (100 per second) and the hourly limit (36,000 per hour) makes this a bit more nuanced, though.
My inclination is to look at option 2.  That seems like a simple approach that provides a good value for most consumers, doesn't involve much code, and seems to have a low risk of unintended consequences.
Thoughts?


SOCKS5 support

bin/genesis uses safe, spruce, and bosh. For genesis to support SOCKS5 proxies we need each of these CLIs to be configured/be upgraded to support SOCKS5.
Current status:

safe supports SOCKS5 via export HTTPS_PROXY=socks5://localhost:9999
bosh supports SOCKS5 via export BOSH_ALL_PROXY=socks5://localhost:9999; BUT if $HTTPS_PROXY is also set then it freaks out: error connecting to proxy http://socks5://localhost:9999
spruce does not yet support SOCKS5; patched https://github.com/geofffranks/spruce/pull/253

My suggestion is that we detect $BOSH_ALL_PROXY, and wrap safe and spruce calls in a HTTPS_PROXY=$BOSH_ALL_PROXY env var within bin/genesis.

Spruce 1.17.0 now supports socks5 via HTTPS_PROXY

I think the genesis parts of this issue are now merged to master. Closing.


Cant import levelling guide

Just tried to import 3.23 pob  levelling exported from exile levelling,it says invalid import data

Are you running v1.50.9 and have "gems only" unchecked in exile-leveling? EDIT: "gems only" exports generally aren't supported, and prior to 1.50.9 there was no error-message that specifically stated that that's the issue when importing failed.

oh yea i was cause i only did need gems and tree, ill try as soon as i got home, ty

its definetly worked ty so much dude,avesome work you do <3


the spam open boxes don't work for dino dox

when i tried to spam open dino boxes it didn't work please update spam open boxes if you can so it works

the dino box is very new... and the script was last updated 20 days ago. It will take some time

189iq

do you play agar.io


More templating options

Describe the solution you'd like
We would like to be able to add more definition for generated data
At least a timestamp with a custom defined format, will be usefully.
IP={{ RANDOM IP }}
USER={{ WORD | NUMBER }}
TIME={{dd/mm/yyyy:hh:mm:ss z}}
REQUEST=["GET", "POST"]
URI=["api", "docs"]
PROTOCOL=["HTTP/1.1", "HTTP/2.0"]
STATUS=[200, 403]
BYTES=[0-5000]
STATIC_TEXT="static text"

 {{ IP }} - {{ USER }} [{{ TIME }}] "{{ REQUEST }} /{{ URI }} {{ PROTOCOL }}" {{ STATUS }} {{ BYTES }} "{{ STATIC_TEXT }}"

<IP_ADDRESS> - abcd1234 [22/Dec/2022:18:56:54 +0000] "GET /api HTTP/1.1" 403 1234 "static text"
<IP_ADDRESS> - 5678efgi [22/Dec/2022:18:56:55 +0000] "GET /docs HTTP/2.0" 200 5678 "static text"

Describe alternatives you've considered
Probably not so much.

wow that would be awesome. will look into this


How to handle in code.

How to make it show or dismiss in java?

sorry my mistake i got it. it have no show or dismiss method have to make it visible or invisible.


heap siftUp is wrong

should be (i-1) >> 1
https://github.com/arnauddri/algorithms/blob/master/data-structures/heap/heap.go#L81

And finish for  i > 0 && parent > 0;


Move blast to subscriptions

What's this PR do?
Adds stripe subscription creation to our /blast subscription form. Also uses our new stripe webhooks functionality to listen for subscription creation success events from blast subscription form submission and logs recurring donations and opportunities in Salesforce respectively.
Why are we doing this? How does it help us?
This is the next step in a larger modernization project for the donations app that will give us a more reliable and less brittle system for handling recurring donations. This update modernizes the /blast subscription form in particular.
How should this be manually tested?
Use staging for testing - the way stripe sends events to any and all webhook listeners can cause duplicates to occur on the salesforce side if we're all testing locally at the same time or while the testing endpoint is turned on

Visit the blast form on staging
Give donations for each of the three buttons, with or without agreeing to cover fees using a test card
For each of these donations...

In our stripe dashboard, make sure you are in "Test Mode" (upper corner)
Choose the "Customers" tab and you should see the gift you made
Clicking through to the customer you added should show a screen listing a Blast subscription

Login to our salesforce sandbox (deets listed under "Salesforce Test (2023 refactor)")
Follow the instructions here to ensure that the donation came through on the salesforce end as expected

How should this change be communicated to end users?
We'll let membership team know when this is deployed.
Are there any smells or added technical debt to note?
Only that the blast form functionality is handled a bit differently than the other three for whatever reason. It would be worth it to bring it into the fold, so to say, but that seems outside of the scope of this project, so a few things may look a little hacky here and there, but they are in the interest of adhering to the current structure as closely as possible.
What are the relevant tickets?
https://airtable.com/appyo1zuQd8f4hBVx/tbloNZu8GkM52NKFR/viwS1XPty68eK4Ett/rec0QDNNIGRzWIMYJ?blocks=hide
Have you done the following, if applicable:
(optional: add explanation between parentheses)

[ ] Added automated tests? ( )
[ ] Tested manually on mobile? ( )
[ ] Checked BrowserStack? ( )
[ ] Checked for performance implications? ( )
[ ] Checked accessibility? ( )
[ ] Checked for security implications? ( )
[ ] Updated the documentation/wiki? ( )

TODOs / next steps:

[ ] your TODO here

Mostly I'm curious if it's a stopper for launching today

Nah, I say :shipit:. It's a longstanding bug and that whole form needs a redesign anyhow


substrate-ingest failed to process the block with tip as object type

Describe the bug
This line of code throws error "Do not know how to serialize a BigInt" which originate from pg package. Turns out because the tip value is an object type {tip: 0n, feeExchange: undefined} instead of 0n
TypeError: Do not know how to serialize a BigInt
    at JSON.stringify (<anonymous>)
    at prepareObject (/Users/ken/relayer-services/node_modules/pg/lib/utils.js:85:19)
    at prepareValue (/Users/ken/relayer-services/node_modules/pg/lib/utils.js:66:12)
    at arrayString (/Users/ken/relayer-services/node_modules/pg/lib/utils.js:29:31)
    at prepareValue (/Users/ken/relayer-services/node_modules/pg/lib/utils.js:63:12)
    at prepareValueWrapper (/Users/ken/relayer-services/node_modules/pg/lib/utils.js:193:12)
    at writeValues (/Users/ken/relayer-services/node_modules/pg-protocol/dist/serializer.js:67:41)
    at Object.bind (/Users/ken/relayer-services/node_modules/pg-protocol/dist/serializer.js:98:5)
    at Connection.bind (/Users/ken/relayer-services/node_modules/pg/lib/connection.js:160:26)
    at Query.prepare (/Users/ken/relayer-services/node_modules/pg/lib/query.js:211:18

To Reproduce
Steps to reproduce the behavior:

Run substrate-ingest against our testnet

yarn squid-substrate-ingest -e wss://nikau.centrality.me/public/ws --start-block 5001560 --out postgres://postgres:postgres@localhost:5432/nikau-archive --write-batch-size 1

The process will hang, to get the actual error, wrap this block inside a try...catch

Expected behavior

A warning about tip value is not in an expected type, but continue on rather getting stuck

Environment (please complete the following information):

@subsquid/substrate-ingest: v1.1.1
node.js: v18.2.0
npm: v8.9.0
OS: Mac v12.4

Applicable to decoding issues:

chain name: Nikau
block: 5001560
extrinsic: 2
endpoint: https://nikau.uncoverexplorer.com/extrinsic/5001560-2

@belopash yip, submitted a PR, please review when you can :)

Closed by https://github.com/subsquid/squid/commit/f24f8ed01d806dc9cb0adaee595acd13299d5381


Asking for Codalab worksheets

Hi,
Can someone please share with me its Codalab worksheets to see how it works and how to evaluate officially on spider challenge?
Thanks.

same concern, it will help us speed up our evaluation process

Same here.

Same here


added border and moving image

the last image is moving

this image which is in circle is moving from left to right

this image which is in circle is moving from left to right

Does it look good? Think like if you are opening this website for the first as a user. Will you like it?

Ok I m removing it
On Sun, 30 Oct 2022, 1:11 am Raja Harsh Vardhan Singh, <
@.***> wrote:

this image which is in circle is moving from left to right
Does it look good? Think like if you are opening this website for the
first as a user. Will you like it?
—
Reply to this email directly, view it on GitHub
https://github.com/rhvsingh/hacktoberfest/pull/27#issuecomment-1295950992,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A3RLHTITQ7WTJB5EKAK6YTDWFV4XBANCNFSM6AAAAAARRWKH3Y
.
You are receiving this because you authored the thread.Message ID:
@.***>

Sir plz merge my pr
On Sun, 30 Oct 2022, 1:11 am Raja Harsh Vardhan Singh, <
@.***> wrote:

this image which is in circle is moving from left to right
Does it look good? Think like if you are opening this website for the
first as a user. Will you like it?
—
Reply to this email directly, view it on GitHub
https://github.com/rhvsingh/hacktoberfest/pull/27#issuecomment-1295950992,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A3RLHTITQ7WTJB5EKAK6YTDWFV4XBANCNFSM6AAAAAARRWKH3Y
.
You are receiving this because you authored the thread.Message ID:
@.***>

Sir plz merge my pr plz sir
On Sun, 30 Oct 2022, 1:11 am Raja Harsh Vardhan Singh, <
@.***> wrote:

this image which is in circle is moving from left to right
Does it look good? Think like if you are opening this website for the
first as a user. Will you like it?
—
Reply to this email directly, view it on GitHub
https://github.com/rhvsingh/hacktoberfest/pull/27#issuecomment-1295950992,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A3RLHTITQ7WTJB5EKAK6YTDWFV4XBANCNFSM6AAAAAARRWKH3Y
.
You are receiving this because you authored the thread.Message ID:
@.***>


Swift Hex Mythic Ability + Cackle

After taking the swift action hex mythic ability, hex can be used as a swift and standard action, but not as a move action. This messes up the auto-cackle feature from another mod and it's standard use cases.

Impossible. I already fixed this issue. You probably disabled the fix for quickened metamagic. Swift Hex, like many other similiar feats, just set a metamagic flag and the engine does the heavy lifting.


Atomic Symbol Generator

Description
Created the Atomic Symbol Generator
Fixes #352
Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Documentation Update

Checklist:

[x] My code follows the style guidelines(Clean Code) of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[x] I have created a helpful and easy to understand README.md
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests/screenshots(if any) that prove my fix is effective or that my feature works

can you add "hacktoberfest" as a label? else it will not be counted as a valid contribution. Thanks!

Kindly add "hacktoberfest" label in the repo as a whole. The contributions will then be counted as valid contributions for HacktoberFest. Thanks a lot!


Fix Release Issue caused by usage of own BOM in Samples

see: https://github.com/java-operator-sdk/java-operator-sdk/actions/runs/3281300450/jobs/5403133893

We could temporarily revert this: https://github.com/java-operator-sdk/java-operator-sdk/commit/583e79cdb9b7d12933f675d766f2f4ed56af3a2e


Add a colon mark next to the string 'Destination directory' on the 'Move Files' dialog

Storage Explorer Version: 1.15.0-dev
Build: 20200801.4
Branch: master
Platform/OS: Windows 10/ Linux Ubuntu 18.04/ MacOS Catalina
Architecture: ia32/x64
Regression From: Not a regression
Steps to reproduce:

Expand one ADLS Gen2 storage account -> Blob Containers.
Create one blob container -> Upload one file -> Click 'Move'.
Check whether a colon mark shows next to the string 'Destination directory'.

Expect Experience:
Show a colon mark next to the string 'Destination directory'.
Actual Experience:
No colon mark shows to the string 'Destination directory'.

Verified on build 20200804.5. This issue has been fixed. so close it.


NFC: Move Zip and GroupBy to their own file

Codecov Report

Merging #298 into master will decrease coverage by 4.34%.
The diff coverage is 83.87%.

@@            Coverage Diff             @@
##           master     #298      +/-   ##
==========================================
- Coverage   90.04%   85.70%   -4.35%
==========================================
  Files          22       24       +2
  Lines        1447     1350      -97
==========================================
- Hits         1303     1157     -146
- Misses        144      193      +49

Impacted Files
Coverage Δ

src/Transducers.jl
90.00% <ø> (-0.91%)
:arrow_down:

src/library.jl
94.65% <ø> (+1.84%)
:arrow_up:

src/groupby.jl
76.74% <76.74%> (ø)

src/teezip.jl
90.00% <90.00%> (ø)

src/interop/dataframes.jl
0.00% <0.00%> (-100.00%)
:arrow_down:

src/basics.jl
40.90% <0.00%> (-46.05%)
:arrow_down:

src/simd.jl
78.12% <0.00%> (-21.88%)
:arrow_down:

src/unordered.jl
79.59% <0.00%> (-17.02%)
:arrow_down:

src/broadcasting.jl
72.22% <0.00%> (-16.67%)
:arrow_down:

src/core.jl
76.36% <0.00%> (-13.18%)
:arrow_down:

... and 16 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 de16e16...e0c1e8d. Read the comment docs.


Replace 'size > 0' check with '!empty' in PoolThreadCache

Motivation:
We manually fetch the collection size and then check if the size is greater than zero or not to see if it's non-empty.
Modification:
We can use the inverted Collection#isEmpty method to do the exact same thing in a much clean way.
Result:
Cleaner code

This is the first time when we get a chance to see a thread dump of a stalled build. So I won't be force-pushing commits to ensure we have got the logs.
@normanmaurer @chrisvest PTAL


#2319 Parent parameter references should be resolved before consolidating duplicates in operation parameters

Looks good to me, thanks.


Stable ABI for floating point numbers

I've noticed that there's an implementation of StableAbi for most basic types, such as i32, u64, etc with the impl_for_primitive_ints macro. However, f64 isn't in that list, and neither is f32. In fact, f64 isn't mentioned once in the whole repository.
If it helps, their size is always known as per the reference: https://doc.rust-lang.org/stable/reference/type-layout.html#primitive-data-layout. But it's true that they don't have a known representation: https://doc.rust-lang.org/stable/reference/type-layout.html#primitive-representations.
I'm guessing I have to use std::os::raw::c_double and std::os::raw::c_float instead of f64, but is there any way to make this easier to use? It seems to just be an alias to Rust's type (https://doc.rust-lang.org/std/os/raw/type.c_float.html), but I'm not sure if there are any guarantees.
Thanks!

Added independent impls of StableAbi for f32 and f64 in the 0.10.3 patch release


move output directories

#2466
Currently, the AI SDK uses a directory above where the repo was checked out for all build output.
example:
c:\Repos\ai-sdk\Everything.sln
c:\Repos\bin
This change will move all outputs to be within the repo directory.
TODO:

[ ] Need to review all build definitions and confirm they use the newer output

I made changes to the GATED build definition in AzureDevOps. Closed/Reopened to get new definition.


Support mutual recursion in GrammarFunctions

This implements the proposed solution in issue https://github.com/guidance-ai/guidance/issues/678
If anyone can suggest other test cases, that would be really appreciated!

Hmm, alternatively Placeholder can be made terminal. Although, making the check explicitly might be more readable in this case. Any thoughts?

Tag @slundberg for interest / review

@hudson-ai good choice I think just adding the placeholder to the list of checks! A place holder is not really a "terminal" is the strict sense. I am going to merge this since the only test failures are an unrelated macOS issue.


Missing package

Currently, if I try to add shared-components to a new create-react-app, I get the following:
Module not found: Can't resolve 'lodash.throttle' in '/Users/tbowen/dev/interrobang-ui/node_modules/@bandwidth/shared-components/dist/behaviors/ScrollShadow'```

I feel like Lerna has messed up our dependencies or something...

Fixed in #224.


Move prompt and spinner functionality into their own respective internal packages

also, add a test and remove code no longer in use

integration tests are passing, too: http://awsbuild.phraseapp.io/job/phraseapp-integration/699/


certificate verify failed

ruby : ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
OS : Ubuntu precise
RVM
/vagrant/ruby-kafka-iam404/lib/kafka/ssl_socket_with_timeout.rb:66:in `connect_nonblock': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)

Tried with both self signed and comodo certificate. But getting above error.
Also ssl_ca_cert: File.read('/root/new-ca.pem') is set.
Variable:
kafka = Kafka.new(
  ssl_ca_cert: File.read('/root/new-ca.pem'),
  ssl_client_cert: File.read('/root/new-crt.pem'),
  ssl_client_cert_key: File.read('/root/new-key.pem'),
  seed_brokers: brokers,
  client_id: "ssl-producer",
  logger: logger,
)

Only solution to fix above is:
require 'openssl'
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE

or commenting
 :verify_mode => OpenSSL::SSL::VERIFY_PEER,
in /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/openssl/ssl.rb

This is due to the certificate you're verifying against being self signed. Whilst that is fairly typical for Kafka SSL certs, it isn't always the case that SSL certs are self signed, and having that be the default would be insecure.
As such, this is not something we should address.

@tcrayford
What about setting a variable that would disable OpenSSL::SSL::VERIFY_PEER when needed.

-1, as that's a global application wide setting that impacts e.g. how you verify SSL against https endpoints.

@tcrayford  Agreed !
Even I am not in favour of OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE . That would nullify the whole SSL thing and exploit to man-in-the-middle attack.
But what I am not able to get is even by passing ssl_ca_cert: File.read('/root/new-ca.pem') I am not able to make that work.

I too am experiencing this. Should I add it as a custom certificate authority to my server?

So, using the certs work fine on my dev machine, but not on my engineyard instance. This is weird.

I've got the same problem here, it does work however when I patch the client.rb to use ssl_context.add_file instead of ssl_context.add_cert.

Had the same issue, it does work when specifying the ssl_ca_cert as an array of the full certificate chain.

@sparrovv can you provide a PR that ensures that the CA cert is verified?

@jurriaan I'm experiencing same error for SASL over SSL, can you please tell me more about the config you used for ssl_ca_cert, when you say "array of the full certificate chain", is it something like below?
ssl_ca_cert ["intermediate.pem","root.pem"]

Please throw a specific error for the CA cert data not being in an array, if read from a file (rather than the user providing the CA file path). All I got was a failure to get the issuer cert. Or just put the contents of a compiled CA cert into an array for the user, if nec. In any case, your example code shows "ssl_ca_cert: File.read('my_ca_cert.pem')," as providing a CA cert, and it's not immediately apparent that it needs to be an array.

Had the same issue, is there any solution to solve it ?


ISPN-5284 ComponentMetadataPersister fails to process classes that conta...

...in ".class" in their FQN
Jira: https://issues.jboss.org/browse/ISPN-5284

Integrated, thanks Adrian!


Cannot find type ActiveModel::Errors

みんなさんこんにちは。
アレクサンダーです。
~日本語~RBSを勉強してる。
I installed rbs, rbs collection, added activemodel to rbs_collection.yaml
Then, I created type for controller concern module like this:
module EventScoped
  extend ActiveSupport::Concern

  ...
  def respond_with_errors: (ActiveModel::Errors errors) -> void
  ...
end

However I'm getting error:
app/controllers/concerns/event_scoped.rbs:12:28: [error] Cannot find type `ActiveModel::Errors`
│ Diagnostic ID: RBS::UnknownTypeName
│
└   def respond_with_errors: (ActiveModel::Errors errors) -> void
                              ~~~~~~~~~~~~~~~~~~~

I see ActiveModel::Errors defined in activemodel/6.0/activemodel-generated.rbs
But do not understand why steep do not see this definition.
Could you please help me make it work?

Hmm, I couldn't reproduce it. Could you explain more information? The following information will be helpful.

contents of the following files:

Steepfile
rbs_collection.yaml and rbs_collection.lock.yaml

Versions of

rbs
steep
ruby

I'm sorry @pocke, I forgot to update this issue.
Soutaro helped me with it by upgrading RBS, steep and gems in rbs_colleciton and it is no longer reproducible.


Replace React with Virtual-Dom or Snabbdom

Discussion
React drawbacks

Diff API is still not available.
Context is still undocumented.
Overcomplicated. A difference between elements, components and factories does not bring anything valueable (other VDOM libs perform just fine without it).
State still means "rendered-state", not "pending-state" (wasn't fixed).

Too heavy (bundle size).
Too slow.
Requires JSX (whatever they say on the homepage... it's a pain to use React without JSX).
Facebook APIs, docs (etc.) promote single-vendor politics (Relay, Jest, Flow...) making 3-rd party libs "inconvenient" to use.
Components are broken (not fractal architecture).

React benefits

More ready-to-use components (never worked for my cases)
React Native (I think there will be alternatives but for now it's the only way to go for mobile)
Easier to sell to your boss

Verdict
It's possible to collect much better proof-links for every issue. As it's not an article I don't care.
React was a breakthrough in 2013–2014. Almost nothing was improved much since then.Now it's simply outdated.
Todo
Compare Virtual-Dom and Snabbdom APIs.

Decided to keep React in this repo to not undermine it's name.
Non-React version will be explored in https://github.com/ivan-kleshnin/cycle-ultimate


[Router] - Load route definitions method

A route definition requires the following parameters:

Name - exact URI or regexp pattern
Method - exact method or 'ANY'
Action - callable user code

And it needs to be loaded into an internal container.

Description of functionality has changed. The Router is now split up into multiple parts. This functionality needs to be covered by the Container. It must provide a method to retrieve pre-defined Route objects built from the SlaxWeb\Router\Route classes.

Resolved.


Fine-tune to specific class?

This code is working well for me with the classes from the VOC dataset but I would like to fine-tune this model so that it only looks for people.
Is there any easy way to do this?

how good is your current model in detecting people (I assume people are one of the classes in VOC dataset)? if the current predictions are bad, you can fine-tune the current model with minimal changes in the model definition (where you have to only deal with two classes people or background), and of course, you should make sure you adapt the other ancillary functions too.

It is relatively good as people are included in the dataset as you assumed, however I do have my own smaller dataset with more accurate use case images I would like to fine-tune the model to.
You mentioned altering the model file to only deal with the 2 classes which makes sense however I cant seem to locate the piece of code that needs to be changed. Can you assist me with this?
Thanks for the help so far!

okay! I am afraid that I haven't gone through the code really far, But from a glimpse, I have understood, you don't want to make any changes in the model.py, in the sense, you just need to change the number of classes (variable ) passed into the model definition.
Then obviously adapt your data loader accordingly, I hope it's not difficult as it seems as the author has written the code in a well-generalized manner.

Hey @Awwh, this should be easy, I'll take a look at the code and let you know. I think you mailed me too, but I was really busy and couldn't reply. Sorry for the delay. I'll check and let you know in 24 hours. Also, thank you @zackdilan!

Thanks for all the help guys

Hi @Awwh,
If you need to train it from scratch on the VOC dataset, but only on person:

Edit this line to include only one class, i.e. {'person'}. This means that the label map will ultimately contain only two classes background and person. The index of the the person class in the label map is 1 (background is 0}.

Make sure that this line is correct in your version of the code, because I just updated it.

I don't think you need to do anything else, because this line filters out objects that are not present in the label_map, and this line filters out images that don't contain any objects that are present in the label_map. This line automatically accounts for the new target task (i.e. a 2 class problem, background vs. person) as defined in the label_map.
And then you can begin training from scratch. After you train, you can evaluate your model and check if the Average Precision (AP) for the person class in your new model is better than what it used to be when trained on all classes.
If you need to train it from scratch on your new dataset, which contains only class x (person):
Here, class x is whatever people are called in your new dataset.

The same procedure as above, except the label_map should include class x instead of person.

You'd need to edit this function to work on your new dataset and create the image and object JSON files for your new dataset.

If you need to first train on the VOC task and then fine-tune to class x (person) in your new dataset:

After you train on the VOC task (all classes or just the person class), edit your new dataset such that class x is now called person in this new dataset.

Then you'd need to edit this function to work on your new dataset and create the image and object JSON files for your new dataset.

And then begin training once again with the trained VOC model checkpoint with a small learning rate.

Alternatively, you can try removing the prediction layers from the VOC model checkpoint and adding new prediction layers for a 2-class problem and then fine-tuning on your new dataset, but this is more complicated and more than I can address in this post.
Hope this helps.

Thank you so much for this @sgrvinod! It's honestly gonna be so helpful.
I haven't had a chance to apply this myself yet but I'm gonna close this now as it looks like its very well solved.
Thankyou


Test discovery fails when virtualenv name starts with 'python'

Type: Bug

Behaviour
Expected vs. Actual
When the active virtualenv's name starts with python (e.g. ./.venv/python-3.12/{bin,include,lib}), test discovery will fail trying to execute the discovery command using the venv directory as the binary:
[info] > ./.venv/python-3.12 -m pytest -p vscode_pytest --collect-only --color=yes

instead of
[info] > ./.venv/python-3.12/bin/python -m pytest -p vscode_pytest --collect-only --color=yes

If the virtualenv is manually re-selected (it's already active and working except for test discovery) before navigating to the Testing tab, discovery will complete successfully. If Testing is selected before explicit venv re-selection, discovery will never complete though:
[error] Test discovery already in progress, not starting a new one.

Filtering out directories named python* from binary selection was proposed in https://github.com/microsoft/vscode-python/pull/21711, but was discarded due to the slow nature of statSync.
Output without explicit venv re-selection:
2024-02-19 19:51:33.190 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-02-19 19:51:33.190 [info] Experiment 'pythonREPLSmartSend' is active
2024-02-19 19:51:33.190 [info] Experiment 'pythonSurveyNotificationcf' is active
2024-02-19 19:51:33.190 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-02-19 19:51:33.190 [info] Experiment 'pythonTestAdapter' is active
2024-02-19 19:51:33.190 [info] Default formatter is set to charliermarsh.ruff for workspace /Users/aitor/tmp/vscode-test-discovery
2024-02-19 19:51:33.190 [info] VS Code was launched from an activated environment: 'python-3.12', selecting it as the interpreter for workspace.
2024-02-19 19:51:33.190 [info] Test server listening.
2024-02-19 19:51:33.190 [info] Python interpreter path: ./.venv/python-3.12/bin/python
2024-02-19 19:51:33.387 [info] > . ./.venv/python-3.12/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/printEnvVariables.py
2024-02-19 19:51:33.387 [info] shell: zsh
2024-02-19 19:51:33.404 [info] > conda info --json
2024-02-19 19:51:33.414 [info] > /usr/bin/python3 ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/printEnvVariables.py
2024-02-19 19:51:33.415 [info] shell: zsh
2024-02-19 19:51:33.441 [info] > . ./.venv/python-3.12/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/printEnvVariables.py
2024-02-19 19:51:33.441 [info] shell: bash
2024-02-19 19:51:33.456 [info] Send text to terminal: /usr/bin/python3 /Users/aitor/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/printEnvVariablesToFile.py /Users/aitor/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/deactivate/zsh/envVars.txt
2024-02-19 19:51:34.238 [info] Starting Pylance language server.
2024-02-19 19:51:34.548 [info] Discover tests for workspace name: vscode-test-discovery - uri: /Users/aitor/tmp/vscode-test-discovery
2024-02-19 19:51:34.548 [info] Running discovery for pytest using the new test adapter.
2024-02-19 19:51:34.548 [info] All environment variables set for pytest discovery for workspace /Users/aitor/tmp/vscode-test-discovery: [ redacted ]

2024-02-19 19:51:34.550 [info] > ./.venv/python-3.12 -m pytest -p vscode_pytest --collect-only --color=yes
2024-02-19 19:51:34.550 [info] cwd: .

After setting virtualenv manually:
2024-02-19 19:51:37.247 [info] Found: /usr/bin/python3 --> /usr/bin/python3
2024-02-19 19:51:37.248 [info] > ./.venv/python-3.12/bin/python -I ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/interpreterInfo.py
2024-02-19 19:51:37.249 [info] Found: /Users/aitor/tmp/vscode-test-discovery/.venv/python-3.12/bin/python --> /Users/aitor/.asdf/installs/python/3.12.2/bin/python3.12
2024-02-19 19:51:37.250 [info] Found: /Users/aitor/tmp/vscode-test-discovery/.venv/python-3.12/bin/python3 --> /Users/aitor/.asdf/installs/python/3.12.2/bin/python3.12
2024-02-19 19:51:37.250 [info] Found: /Users/aitor/tmp/vscode-test-discovery/.venv/python-3.12/bin/python3.12 --> /Users/aitor/.asdf/installs/python/3.12.2/bin/python3.12
2024-02-19 19:51:37.251 [info] Found: /Users/aitor/.asdf/installs/python/3.12.2/bin/python --> /Users/aitor/.asdf/installs/python/3.12.2/bin/python3.12
2024-02-19 19:51:37.251 [info] Found: /Users/aitor/.asdf/installs/python/3.12.2/bin/python3 --> /Users/aitor/.asdf/installs/python/3.12.2/bin/python3.12
2024-02-19 19:51:37.251 [info] Found: /Users/aitor/.asdf/installs/python/3.12.2/bin/python3.12 --> /Users/aitor/.asdf/installs/python/3.12.2/bin/python3.12
2024-02-19 19:51:37.253 [info] Found: /opt/homebrew/bin/python3 --><EMAIL_ADDRESS>2024-02-19 19:51:37.253 [info] Found: /opt/homebrew/bin/python3.11 --><EMAIL_ADDRESS>2024-02-19 19:51:37.253 [info] Found: /opt/homebrew/bin/python3.12 --><EMAIL_ADDRESS>2024-02-19 19:51:37.257 [info] > /usr/bin/python3 -I ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/interpreterInfo.py
2024-02-19 19:51:37.278 [info] > ~/.asdf/installs/python/3.12.2/bin/python -I ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/interpreterInfo.py
2024-02-19 19:51:37.299 [info] > /opt/homebrew/bin/python3 -I ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/interpreterInfo.py
2024-02-19 19:51:37.322 [info] > /opt/homebrew/bin/python3.12 -I ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/interpreterInfo.py
2024-02-19 19:51:39.414 [info] Discover tests for workspace name: vscode-test-discovery - uri: /Users/aitor/tmp/vscode-test-discovery
2024-02-19 19:51:39.414 [info] Running discovery for pytest using the new test adapter.
2024-02-19 19:51:39.414 [error] Test discovery already in progress, not starting a new one.

Output with explicit venv re-selection:
2024-02-19 19:57:48.962 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-02-19 19:57:48.962 [info] Experiment 'pythonREPLSmartSend' is active
2024-02-19 19:57:48.962 [info] Experiment 'pythonSurveyNotificationcf' is active
2024-02-19 19:57:48.962 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-02-19 19:57:48.962 [info] Experiment 'pythonTestAdapter' is active
2024-02-19 19:57:48.962 [info] Default formatter is set to charliermarsh.ruff for workspace /Users/aitor/tmp/vscode-test-discovery
2024-02-19 19:57:48.962 [info] VS Code was launched from an activated environment: 'python-3.12', selecting it as the interpreter for workspace.
2024-02-19 19:57:48.962 [info] Test server listening.
2024-02-19 19:57:48.962 [info] Python interpreter path: ./.venv/python-3.12/bin/python
2024-02-19 19:57:49.183 [info] > conda info --json
2024-02-19 19:57:49.213 [info] > . ./.venv/python-3.12/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/printEnvVariables.py
2024-02-19 19:57:49.214 [info] shell: zsh
2024-02-19 19:57:49.226 [info] > . ./.venv/python-3.12/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/printEnvVariables.py
2024-02-19 19:57:49.227 [info] shell: bash
2024-02-19 19:57:49.246 [info] > /usr/bin/python3 ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/printEnvVariables.py
2024-02-19 19:57:49.246 [info] shell: zsh
2024-02-19 19:57:49.435 [info] Send text to terminal: /usr/bin/python3 /Users/aitor/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/printEnvVariablesToFile.py /Users/aitor/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/deactivate/zsh/envVars.txt
2024-02-19 19:57:50.016 [info] Starting Pylance language server.
2024-02-19 19:57:50.574 [info] Found: /usr/bin/python3 --> /usr/bin/python3
2024-02-19 19:57:50.575 [info] > ./.venv/python-3.12/bin/python -I ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/interpreterInfo.py
2024-02-19 19:57:50.576 [info] Found: /Users/aitor/tmp/vscode-test-discovery/.venv/python-3.12/bin/python --> /Users/aitor/.asdf/installs/python/3.12.2/bin/python3.12
2024-02-19 19:57:50.576 [info] Found: /Users/aitor/tmp/vscode-test-discovery/.venv/python-3.12/bin/python3 --> /Users/aitor/.asdf/installs/python/3.12.2/bin/python3.12
2024-02-19 19:57:50.577 [info] Found: /Users/aitor/tmp/vscode-test-discovery/.venv/python-3.12/bin/python3.12 --> /Users/aitor/.asdf/installs/python/3.12.2/bin/python3.12
2024-02-19 19:57:50.577 [info] Found: /Users/aitor/.asdf/installs/python/3.12.2/bin/python --> /Users/aitor/.asdf/installs/python/3.12.2/bin/python3.12
2024-02-19 19:57:50.577 [info] Found: /Users/aitor/.asdf/installs/python/3.12.2/bin/python3 --> /Users/aitor/.asdf/installs/python/3.12.2/bin/python3.12
2024-02-19 19:57:50.577 [info] Found: /Users/aitor/.asdf/installs/python/3.12.2/bin/python3.12 --> /Users/aitor/.asdf/installs/python/3.12.2/bin/python3.12
2024-02-19 19:57:50.579 [info] Found: /opt/homebrew/bin/python3 --><EMAIL_ADDRESS>2024-02-19 19:57:50.579 [info] Found: /opt/homebrew/bin/python3.11 --><EMAIL_ADDRESS>2024-02-19 19:57:50.579 [info] Found: /opt/homebrew/bin/python3.12 --><EMAIL_ADDRESS>2024-02-19 19:57:50.582 [info] > /usr/bin/python3 -I ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/interpreterInfo.py
2024-02-19 19:57:50.600 [info] > ~/.asdf/installs/python/3.12.2/bin/python -I ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/interpreterInfo.py
2024-02-19 19:57:50.622 [info] > /opt/homebrew/bin/python3 -I ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/interpreterInfo.py
2024-02-19 19:57:50.650 [info] > /opt/homebrew/bin/python3.12 -I ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/interpreterInfo.py
2024-02-19 19:57:52.242 [info] Discover tests for workspace name: vscode-test-discovery - uri: /Users/aitor/tmp/vscode-test-discovery
2024-02-19 19:57:52.242 [info] Running discovery for pytest using the new test adapter.
2024-02-19 19:57:52.244 [info] All environment variables set for pytest discovery for workspace /Users/aitor/tmp/vscode-test-discovery: [ redacted ]

2024-02-19 19:57:52.247 [info] > ./.venv/python-3.12/bin/python -m pytest -p vscode_pytest --collect-only --color=yes
2024-02-19 19:57:52.247 [info] cwd: .
2024-02-19 19:57:52.357 [info] ============================= test session starts ==============================
platform darwin -- Python 3.12.2, pytest-8.0.1, pluggy-1.4.0
rootdir: /Users/aitor/tmp/vscode-test-discovery

2024-02-19 19:57:52.358 [info] collected 1 item

<Dir vscode-test-discovery>
  <Module test_stuff.py>
    <Function test_foo>

2024-02-19 19:57:52.361 [info] Test server connected to a client.
2024-02-19 19:57:52.361 [info]
========================== 1 test collected in 0.01s ===========================

2024-02-19 19:57:52.365 [info] ResultResolver EOT received for discovery.
2024-02-19 19:57:52.376 [info] Disposing data receiver for /Users/aitor/tmp/vscode-test-discovery and deleting UUID; pytest discovery.

Steps to reproduce:

python -m venv .venv/python-3.12
source .venv/python-3.12/bin/activate
pip install pytest
echo "def test_foo():\n    assert True == True" > test_stuff.py
code .

Diagnostic data

Python version (& distribution if applicable, e.g. Anaconda): 3.12.2
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
Value of the python.languageServer setting: Default

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

Pasted in issue description.

User Settings

languageServer: "Pylance"

testing
• pytestArgs: "--color=yes"
• pytestEnabled: true

Extension version: 2024.0.1
VS Code version: Code 1.86.2 (903b1e9d8990623e3d7da1df3d33db3e42d80eda, 2024-02-13T19:42:12.210Z)
OS version: Darwin arm64 23.3.0
Modes:

System Info

Item
Value

CPUs
Apple M2 Pro (10 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
2, 2, 2

Memory (System)
16.00GB (0.07GB free)

Process Argv
--crash-reporter-id 05132e86-5a47-43bc-81a1-8feaf931ac4e

Screen Reader
no

VM
0%

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
2e7ec940:30962249
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
b1063948:30958189
fegfb526:30961430
7j2b6412:30967274
bg6jg535:30958357

@karrtikr any thoughts here on the environment selection? Seems like it is selecting the wrong environment as the interpreter.

I think the issue is here:
https://github.com/microsoft/vscode-python/blob/27783cea76a6273da88bf0a8f7813b6ce0d93b61/src/client/testing/testController/pytest/pytestDiscoveryAdapter.ts#L112
When we call into that, we're using a deprecated API .pythonPath should no longer be used:
https://github.com/microsoft/vscode-python/blob/e9edfc01435ed37699c75b56c2681e4475f86861/src/client/common/process/pythonExecutionFactory.ts#L114
Instead we should call into IInterpreterService.getActiveInterpreter() API.

FWIW I'm experiencing the same issue with the use of direnv
[info] > ./.direnv/python-3.8 -m pytest -p vscode_pytest --collect-only

instead of
[info] > ./.direnv/python-3.8/bin/python -m pytest -p vscode_pytest --collect-only
```

I can also still reproduce on latest versions of VSCode and the Python extension, yes.

I think I have the same problem but I don't have a venv name with same string.


How to setup ConfigServer with Halyard for Vault?

I'm using Halyard to deploy spinnaker to kubernetes. I would like to store kubeconfig in Vault. I've read External Account Configuration and #5016, but it isn't clear where the Spring ConfigServer configuration goes when using Halyard.
I've got a spinnakerconfig.yml in /opt/spinnaker and ~/.hal/default/profiles/ with:
spring:
  profiles:
    include: vault
  cloud:
    vault:
      authentication: KUBERNETES
      kubernetes:
        role: spin-halyard
        kubernetes-path: kubernetes
        service-account-token-file: /var/run/secrets/kubernetes.io/serviceaccount/token
    config:
      server:
        vault:
          host: [vault host]
          port: 8200
          backend: secret
          kvVersion: 2
          default-key: [path to kubeconfigs in vault]

and my ~/.hal/config has:
        kubernetes:
          accounts:
          - cacheThreads: 1
            cachingPolicies: []
            checkPermissionsOnStartup: false
            configureImagePullSecrets: false
            customResources: []
            dockerRegistries: []
            kinds: []
            kubeconfigFile: configserver:[name of key in vault that is in the default-key path]
            liveManifestCalls: true
            name: my-account
            namespaces:
            - [my-namespace]
            oauthScopes: []
            omitKinds: []
            omitNamespaces: []
            onlySpinnakerManaged: true
            permissions:
              EXECUTE:
              - spinnaker-admin
              READ:
              - spinnaker-admin
              WRITE:
              - spinnaker-admin
            providerVersion: V2
            serviceAccount: false
          enabled: true
          primaryAccount: my-account

in my /opt/halyard/config/halyard.yml I have:
halconfig:
  filesystem:
    path: ~/.hal/config

But when I run hal deploy apply I get:
+ Get current deployment
  Success
+ Prep deployment
  Success
+ Preparation complete... deploying Spinnaker
+ Get current deployment
  Success
- Apply deployment
  Failure
Problems in Global:
! ERROR Unexpected exception: java.lang.IllegalStateException:
  Failed to read kubeconfig file 'configserver:[my vault key]', but
  validation passed: Config Server repository not configured for resource
  "configserver:[my vault key]"

Where should I put the Spring ConfigServer config such that Halyard & Clouddriver know how its configured?

Of course after 3 days of troubleshooting this, just after I create this ticket I find out the correct directory is /opt/spinnaker/config.


Configure Okta as a Key Manager - cannot change fields once set initially

Description:
Cannot change "Certificates" , "Token Handling Options",  fields once set initially in the UI.
Steps to reproduce:

Follow below guide to setup Okta KM as a KM in admin portal
https://apim.docs.wso2.com/en/next/administer/key-managers/configure-okta-connector/#configure-okta-as-a-key-manager
Issue 1: When selected the "Certificates" type "PEM/"JWKS" we can't unselect the selected option. This field is mentioned as optional in the docs.

First:

Then:

Issue 2:  (Similar to above mentioned issue) When "Token Validation Method" is set as "Self validate JWT" when selected any item from "Token Handling Options",  we cannot unselect the selected option. This property too is optional.
NOTE: normal radio button input-type is not suitable for an "Optional" input field.
Solution suggested:
Better to have above fields as tick box i
Affected Product Version:

Environment details (with versions):

OS:
Client:
Env (Docker/K8s):

Optional Fields
Related Issues:

Suggested Labels:

Suggested Assignees:

This issue fixed in latest version.


upgrade Mox

Hey, any reason not to upgrade Mox?

@BlueHotDog the only reason is that dependabot doesn't seem to be working -_-
I just bumped all deps now. thank you!


Cannot connect to database, times out.

Help!
I've used your plugin in the past, and have never encountered this issue. I tried loading it on my new server, and I encountered the standard error, and inputted my SQL Database information. However, upon completion of this, I ran into an error.
You can view the error from console at: http://pastebin.com/dPrFUxK7
You can view my configuration file at: http://pastebin.com/jrZtVXwn

Your new server is unable to connect to the database. Please note that by default, MySQL disallows external connections. You have to explcitly whitelist each network. The FAQ covers this http://dev.bukkit.org/bukkit-plugins/ban-management/#w-faq


The impact of head number

Why could the number of attention heads impact the performance of zigzag ring attention and stripped ring attention so significantly?
That is, it is observed from the reported results that stripped ring attention is much better than zigzag ring attention when the #heads=2 while the reverse when #heads=8.

Thank you for your insightful observation. I have not yet conducted a thorough analysis of the impact of varying head numbers on the performance of different ring-attention variants.
Additionally, LongContextAttention currently utilizes only the ring_flash_attn_qkvpacked_func. Moving forward, I am going to explore different ring-attention variants for LongCtxAttn, which is a straightforward work in progress (WIP).

I see, thanks for your clarification.


how can we add devbox global path to nushell?

What problem are you trying to solve?
how does eval "$(devbox global shellenv)" translate for nushell?
What solution would you like?
an example on how to configure devbox global in nushell
Alternatives you've considered
No response

I'm not sure there's a really easy way to translate the script, since nushell expects variables in a different format than what devbox global shellenv exports.
You might want to look into the nu plugin bash_env, which can evaluate a bash environment and then load it into your nushell? The plugin is described here: https://github.com/tesujimath/nu_plugin_bash_env

got it, thanks!


basic example does not compile

Cargo's output:
   Compiling testing-argone v0.1.0 (/path/testing-argone)
error: cannot find derive macro `Parser` in this scope
  --> src/main.rs:32:1
   |
32 | / ARGONE! {
33 | |
34 | |     version = "0.1"
35 | |     author = "just-do-halee<EMAIL_ADDRESS>...  |
78 | |
79 | | }
   | |_^
   |
note: `Parser` is imported here, but it is only a trait, without a derive macro
  --> src/main.rs:30:14
   |
30 | use argone::{prelude::*, *};
   |              ^^^^^^^^^^
   = note: this error originates in the macro `ARGONE` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `clap` in this scope
  --> src/main.rs:32:1
   |
32 | / ARGONE! {
33 | |
34 | |     version = "0.1"
35 | |     author = "just-do-halee<EMAIL_ADDRESS>...  |
78 | |
79 | | }
   | |_^
   |
note: `clap` is imported here, but it is a crate, not an attribute
  --> src/main.rs:30:14
   |
30 | use argone::{prelude::*, *};
   |              ^^^^^^^^^^
   = note: this error originates in the macro `ARGONE` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find derive macro `Parser` in this scope
   --> src/main.rs:81:1
    |
81  | / COMMANDS! {
82  | |     Sub {
83  | |
84  | |         /// The subcommand
...   |
102 | |     }
103 | | }
    | |_^
    |
note: `Parser` is imported here, but it is only a trait, without a derive macro
   --> src/main.rs:30:14
    |
30  | use argone::{prelude::*, *};
    |              ^^^^^^^^^^
    = note: this error originates in the macro `COMMANDS` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `clap` in this scope
   --> src/main.rs:81:1
    |
81  | / COMMANDS! {
82  | |     Sub {
83  | |
84  | |         /// The subcommand
...   |
102 | |     }
103 | | }
    | |_^
    |
note: `clap` is imported here, but it is a crate, not an attribute
   --> src/main.rs:30:14
    |
30  | use argone::{prelude::*, *};
    |              ^^^^^^^^^^
    = note: this error originates in the macro `COMMANDS` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no function or associated item named `parse` found for struct `Args` in the current scope
  --> src/main.rs:32:1
   |
32 | / ARGONE! {
33 | |
34 | |     version = "0.1"
35 | |     author = "just-do-halee<EMAIL_ADDRESS>...  |
78 | |
79 | | }
   | | ^
   | | |
   | |_function or associated item `parse` not found for this
   |   function or associated item not found in `Args`
   |
   = help: items from traits can only be used if the trait is implemented and in scope
   = note: the following traits define an item `parse`, perhaps you need to implement one of them:
           candidate #1: `StructOpt`
           candidate #2: `nom::sequence::Tuple`
   = note: this error originates in the macro `ARGONE` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0599`.
error: could not compile `testing-argone` due to 7 previous errors

The Cargo.toml contains argone = 0.5.

Thank you for issuing!! I really appreciate it. The problem was missing derive clap.
./Cargo.toml
clap = { version = "3.2.5", features = ["derive"] }

I switched the version and features for clap crate. And released main v0.5.2 Thank you!!
And sorry for too late response.


Double-word-named font's get broken

Minify commit/version: 2.1.5
PHP version: 5.2.17

What steps will reproduce the problem?
1. just try to minify a css file containing double-word-named font

Expected output:
font-family: "Century Gothic"

Actual output:
font-family: "CenturyGothic"

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 4 Sep 2012 at 8:29

Original comment by<EMAIL_ADDRESS>on 30 Sep 2012 at 9:53

Changed state: Invalid

Hmm. There are multi-word fonts in the unit tests and they pass. Try the units
on your system.

Original comment by<EMAIL_ADDRESS>on 4 Sep 2012 at 11:46

Changed state: NeedInfo

Please attach to this ticket a larger sample of CSS in which this bug occurred.

Original comment by<EMAIL_ADDRESS>on 7 Sep 2012 at 3:38


Update model definitions

Updates demo models to use the new required behaviour of setting obs=None when generating predictions. Also adds demos of prior and posterior predictive distributions.
Helps to address this.

@tomwallis so I renamed a few things and added a link to open the notebook in Colab to play around with zero local setup required.
Check if this works out for you.

@tomwallis so I renamed a few things and added a link to open the notebook in Colab to play around with zero local setup required.
Check if this works out for you.

Thanks, this works! Let's gooo!


Do not log the Mix info on Test ENV

Why
The log file is too large and it hard to debug the issue

Who Benefits?
Maintainer

@byhbt @andyduong1920
The root cause belonged to the deps/phoenix/lib/mix/phoenix.ex module.
Take an example of copy_from which uses the Mix.Generator.create_file function without passing the option quiet -> That leads to showing the unexpected logs as reported.

No public opts in copy_from allow us to set the quiet logs, so it can not fix IMO.
What do you think?

Got it @nvminhtue, we can't fix this as some logs come from the Phoenix itself, we can close this comment now cc @byhbt


[docker] Add LFS_START_SERVER option to control git-lfs support

Codecov Report

Merging #7281 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #7281   +/-   ##
=======================================
  Coverage   41.17%   41.17%
=======================================
  Files         464      464
  Lines       62771    62771
=======================================
  Hits        25846    25846
  Misses      33537    33537
  Partials     3388     3388

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 baefea3...807b9bf. Read the comment docs.

To be honest, this is far from perfect. Ideally, I'd like

To be able to override any option in app.ini via environment variables without writing specific code for each of them
To be able to override any option via environment variables even when /etc/gitea/conf/app.ini already exists.

See #350