Add initial spin_fort test

Short Description:
Add 2 tests:

When spin_fort runs normally.
When daily_spin_limit setting is reached.

Sample output by running:
$ python -m unittest -vv spin_fort_test
test_daily_limit_reached (spin_fort_test.SpinFortTestCase) ... ok
test_spin_fort (spin_fort_test.SpinFortTestCase) ... ok

----------------------------------------------------------------------
Ran 2 tests in 0.017s

OK

Does anyone have any idea why the tests that I created failed in Travis?
When I run this locally, everything passes.
$ python -m unittest discover -v -p "*_test.py"
test_call_work_after_schedule (pokemongo_bot.test.sleep_schedule_test.SleepScheduleTestCase) ... ok
test_call_work_before_schedule (pokemongo_bot.test.sleep_schedule_test.SleepScheduleTestCase) ... ok
....
....
test_daily_limit_reached (pokemongo_bot.test.spin_fort_test.SpinFortTestCase) ... ok
test_spin_fort (pokemongo_bot.test.spin_fort_test.SpinFortTestCase) ... ok
...
...

Ran 107 tests in 3.729s
OK (skipped=1)

I am on the latest dev branch (sha: e262b95eb15f144c89c1f)

Output from Travis:
======================================================================
FAIL: test_daily_limit_reached (pokemongo_bot.test.spin_fort_test.SpinFortTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/miniconda/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/home/travis/build/PokemonGoF/PokemonGo-Bot/pokemongo_bot/test/spin_fort_test.py", line 73, in test_daily_limit_reached
    result = spin_fort.work()
AssertionError: SystemExit not raised

And this is in your test:
       with self.assertRaises(SystemExit) as cm:
            result = spin_fort.work()

That's the strange thing... locally it is working fine meaning "SystemExit" is indeed being raised, but when it is being run in Travis, it is not...
What I am attempting to do is execute the build commands that Travis is executing but I am not sure if this is the right approach. For example,
$ export DEBIAN_FRONTEND=noninteractive
$ git clone --depth=50 https://github.com/PokemonGoF/PokemonGo-Bot.git PokemonGoF/PokemonGo-Bot
$ git submodule update --init --recursive

gives error on me
[root@16-04 ~]$ export DEBIAN_FRONTEND=noninteractive
[root@16-04 ~]$ git clone --depth=50 https://github.com/PokemonGoF/PokemonGo-Bot.git PokemonGoF/PokemonGo-Bot
Cloning into 'PokemonGoF/PokemonGo-Bot'...
remote: Counting objects: 5598, done.
remote: Compressing objects: 100% (1948/1948), done.
remote: Total 5598 (delta 3919), reused 5264 (delta 3636), pack-reused 0
Receiving objects: 100% (5598/5598), 4.54 MiB | 1.01 MiB/s, done.
Resolving deltas: 100% (3919/3919), done.
Checking connectivity... done.
[root@16-04 ~]$ git submodule update --init --recursive
fatal: Not a git repository (or any of the parent directories): .git

I'll be honest, Travis is not my forte... All I can see is the test trying to assert systemexit, but it's not doing it.

From what I can tell, I didn't set the mock database result properly. The issue is on this line.
if c.fetchone()[0] >= self.config.get('daily_spin_limit', 2000):

On my local machine, c.fetchone()[0] didn't return anything and somehow the above condition is true which would execute sys.exit(2)
But when I ran the command that Travis ran in a separate environment, I saw the exact error reported by Travis. But still c.fetchone()[0] didn't return anything and somehow that exact condition is false which is why the test was failing.
I've been trying to mock the database result but without success that is why I am just removing it instead.

What's the status on this? I see Travis now passes, so is it ready to merge or are you still working on it?

It is ready to be merged. No more additional work is needed.

@kolinkorr839 - can you rebase?

👍


Missing input files for rule pair_assignments: "output/aln_{transcripts}_{graph}_full_length.gam"

Dear,
When I run Snakefile_fusion, the snakemake environment gives me the following error:
"MissingInputException in line 59 of Snakefile_fusion: `input files for rule pair_assignments".
Indeed, at row 61, the script asks the file "output/aln_{transcripts}_{graph}_full_length.gam" as input, but, looking at the Snakefile_fusion file, it seems there is no rule that can produce this output.
I'm confused.
Is there something wrong?
Should I add a new rule in the Snakefile_fusion script?
Best Regards.

Hi,
I apologize for the late reply.  You first need to run the quantification step via "snakemake --cores=#number of cores all" and then run the snakemake fusion file. We will make it more clear in the readme file.
I apologize for the inconvenience.
regards
Dilip A Durai


general random response

like nohara feature

noGaTa ?

Sorry.
How's it going?

nothing. but it’s demanded.


fix: edge case prefix04

On edge case when the public key 64bytes (128 char)  is start with 04...
The addPrefix skip adding prefix.
when stripPrefix is called, the public key 04 is striped and only 63 bytes (126 chars) left which made the public key invalid.
Fixing this as patch for v8

@ieow This has been also been found and fixed in the PR intended for v9 release.
Note: You'll also need to bump the version in the podspec for the intended tag here.


Reserved word C# @... syntax needs @ removed

If you have a C# method with a parameter that starts with a @ to use a reserved word:
void ProcessEvent(SomeEvent @event) { ... }

The @ sign needs to be removed for $Name, etc...

Hi @jonstelly
I'll look into that. Meanwhile you could use a custom method to solve this issue, e.g.
${
var SafeName = (Parameter p) => p.Name.Trim('@');
}
And then use $SafeName instead of $Name in your template.

Moving this to 1.1

Resolved i Typewriter 1.1


Design for Linear Discriminant Analysis (LDA)

I am thinking about how we should do the Linear Discriminant Analysis (LDA) in CRRao. I am thinking out loud. Please correct me if I am saying something wrong. The design that I am thinking of is as follows:
container = @fitmodel(formula, data, modelClass,ClassificationType,CovarianceType)

Example: For binary classification:
container = @fitmodel(Specied~PetalLength+SepalLength,data,LinearDiscriminantAnalysis(),Binary)
container = @fitmodel(Specied~PetalLength+SepalLength,data,LinearDiscriminantAnalysis(),Binary,ShrinkageCov)
container = @fitmodel(Specied~PetalLength+SepalLength,data,LinearDiscriminantAnalysis(),Binary,PythonCov)

Example: For multi-class classification:
container = @fitmodel(Specied~PetalLength+SepalLength,data,LinearDiscriminantAnalysis(),Multi)
container = @fitmodel(Specied~PetalLength+SepalLength,data,LinearDiscriminantAnalysis(),Multi,ShrinkageCov)
container = @fitmodel(Specied~PetalLength+SepalLength,data,LinearDiscriminantAnalysis(),Multi,PythonCov)

The default covariance type would be sample covariance.

What's PythonCov?
What's the state of Julia packages for robust covariance matrices? Should we let the user pass a function as an argument?

By PythonCov, I meant Python's covariance estimation process.
To my understanding, Julia is using simple covariance matrices.
Regarding your question: Should we let the user pass a function as an argument? - I am giving CovarianceType  as one of the options. There may be a default setup.

I was thinking that there will be a general technology for covariance matrix estimation: simple, multiple robust methods, maybe something that works for spare matrices in big data, etc. So there should be a default (simple) but the caller should be able to supply a function that computes the covariance matrix. Or alternatively maybe there will be a function compute.cov(X, method), the caller to LDA should be able to supply the method.

Humm -- I  like both ideas.
Idea 1) covariance matrix estimation: simple, multiple robust methods, shrinkage estimation methods etc.
Idea 2) a function compute.cov(X, method), the caller to LDA should be able to supply the method.
I like the second idea with a default robust method of R.

@ajaynshah @ayushpatnaikgit @codetalker7 @ShouvikGhosh2048
Struggling to decide - should we use MultivariateStat.jl for LDA.  AND/OR should we use Aman's Julia code from scratch for LDA
Ayush's point if we rely on too many packages - then some people will never able to use CRRao because some package will be broken
On the other hand - why bother we are going to rely on lazy load in any way...
Requesting your comment -- now I want to move to LDA development for CRRao

For now, I am thinking about developing the LDA with Aman's code which is faster than R and Python sklearn but slower than MultivariateStat.jl
Once MultivariateStat.jl becomes stable - we can later adapt the LDA of MultivariateStat.jl as a fast option.

@ajaynshah @ayushpatnaikgit
We will raise an issue with MultivariateStat.jl that predict is not working. If they provide a solution then we would go ahead and take it in CRRao.jl
Otherwise, we will contribute in MultivariateStat.jl.

Yes, great, let's put all our knowledge on LDA to work to make MultivariateStat.jl stronger. And then in CRRao we will just call that LDA. Let's do the usual hard work:

Textual narration of what's wrong with the existing code
test cases which demo that
PR that solves this.

so that it gets rapidly accepted into the main package.

I have created this issue with MultivariateStats.jl
https://github.com/JuliaStats/MultivariateStats.jl/issues/204
Basically I said the predict for MulticlassLDA is not working.


What is TodoItemManager

There is no information on the 'TodoItemManager'.

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

ID: f2f7318c-8cd3-1aea-1f5e-e14955e2fa22
Version Independent ID: 655cb554-cd03-e6ae-f7dd-9e2ba18a4a28
Content: Sending Push Notifications from Azure Mobile Apps - Xamarin
Content Source: docs/xamarin-forms/data-cloud/push-notifications/azure.md
Product: xamarin
GitHub Login: @davidbritch
Microsoft Alias: dabritch

See https://docs.microsoft.com/en-us/xamarin/xamarin-forms/data-cloud/walkthrough
Also see the sample for that doc (linked from the Related Links section at the end of the doc).


Error after upgrading Gogs to the latest develop branch version.

Hi!
I just have upgraded to the latest develop version, and Gogs is unable to start:
2015/03/10 17:24:20 [T] Custom path: /home/system/git/gogs/custom
2015/03/10 17:24:20 [T] Log path: /home/system/git/gogs/log
2015/03/10 17:24:20 [I] XXX Git Hosting <IP_ADDRESS>1 Beta
2015/03/10 17:24:20 [I] Log Mode: Console(Info)
2015/03/10 17:24:20 [I] Log Mode: File(Info)
2015/03/10 17:24:20 [I] Redis Enabled
2015/03/10 17:24:20 [I] Cache Service Enabled
2015/03/10 17:24:20 [I] Session Service Enabled
2015/03/10 17:24:20 [I] Mail Service Enabled
2015/03/10 17:24:20 [I] Register Mail Service Enabled
2015/03/10 17:24:20 [I] Oauth Service Enabled [GitHub Google]
2015/03/10 17:24:20 [I] Migration: generate team-repo from team
2015/03/10 17:24:20 [install.go:65 GlobalInit()] [E] Fail to initialize ORM engine: migrate: do migrate: insert team-repos: Error 1062: Duplicate entry '1-19' for key 'UQE_team_repo_S'

Is there any chance that i could start Gogs again without loosing my DB?

FYI, solved by hand. Here is a hint for your migration scripts:
In my actual Gogs version, from the team table, the repo_ids column was listing many repos. Some of them were here multiple times. You should sanitize this before migrating, and remove any duplicate.
Eg: if team > repo_ids read like this:
$1|$3|$1|$32|$12|
Change it to a sanitized version like so:
$1|$3|$12|$32|
Restart gogs.

@hickscorp thanks for the report, sorry about any trouble!

Hi @hickscorp , I've pushed code to master fix this issue.

@Unknwon unfortunatelly, as i have migrated non-unique entries by hand, i won't be able to give you much feedback about this issue. I'm closing it.

@hickscorp true, but thanks anyway!


SiteProfile form pages render

[x] When I click "add site" from the program page I go to the site create form
[x] When I click "add site" from the site list page I go to the site create form
[x] When I click the site date or name in the site list page I go the site update form
[x] When I click the delete site link in the site list page I go to the site delete confirmation form
[x] Tests written for the above

All front end interactions validated.


Config.xcconfig: Include ../../ConfigOverride.xcconfig

Includes ConfigOverride.xcconfig from two directories up as the default configuration. This is helpful when swithcing branches, and is the default fro Loop and other apps too.

Ready to merge. Should not affect anyone negatively, but we should give some information about checking if people have ConfigOverride.xcconfig in the directory two levels up from their iAPS clone.


cannot delete panel from layout update page

it tried to go to the view page... need to investigate

fixed


Detailed Panic Logging along with operation name, query string and variables

Detailed Panic Logging along with queryString and variables
Hi,
Although we have the full stack trace during the panic, it is nearly impossible to trace back the exact query and variables which caused the panic sometimes. For instance in below cases:
panic occurred: graphql: could not marshal -Inf: json: unsupported value: -Inf
goroutine 296550 [running]:
github.com/graphqlDemoApp/vendor/github.com/graph-gophers/graphql-go/log.(*DefaultLogger).LogPanic(0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0)
	/share/dpkg-build/graphqlDemoApp-build/src/github.com/graphqlDemoApp/vendor/github.com/graph-gophers/graphql-go/log/log.go:21 +0xc123ab28c0
github.com/graphqlDemoApp/vendor/github.com/graph-gophers/graphql-go/internal/exec.(*Request).handlePanic(0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0)
	/share/dpkg-build/graphqlDemoApp-build/src/github.com/graphqlDemoApp/vendor/github.com/graph-gophers/graphql-go/internal/exec/exec.go:31 +0xc123ab28c0
panic(0xc123ab28c0, 0xc123ab28c0)
	/usr/local/go/src/runtime/panic.go:502 +0xc123ab28c0
github.com/graphqlDemoApp/vendor/github.com/graph-gophers/graphql-go/internal/exec.(*Request).execSelectionSet(0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0, ...)
	/share/dpkg-build/graphqlDemoApp-build/src/github.com/graphqlDemoApp/vendor/github.com/graph-gophers/graphql-go/internal/exec/exec.go:284 +0xc123ab28c0
github.com/graphqlDemoApp/vendor/github.com/graph-gophers/graphql-go/internal/exec.execFieldSelection(0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0)
	/share/dpkg-build/graphqlDemoApp-build/src/github.com/graphqlDemoApp/vendor/github.com/graph-gophers/graphql-go/internal/exec/exec.go:243 +0xc123ab28c0
github.com/graphqlDemoApp/vendor/github.com/graph-gophers/graphql-go/internal/exec.(*Request).execSelections(0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0, 0xc123ab28c0, ...)

In production systems a request can originate from app(ios/android) or desktop and over months the number of queries keep growing in number and thus it becomes very tedious to pin-point the root problem. We can leverage the information like queryString, operationName and variables available to us in exec method on Schema to add more details when logging the panic and stack trace.
Besides, if any application sets useful keys like device info and app versions on the context, it can also be used for logging and provide good insights on the origin of the problem.

I usually log the trace ID in every log message, then if I am lucky enough that the request tracing info had been sampled I can open it. Also, if the issue is reproducible I run the same request with forced sampling then I inspect the request trace for a fast root cause analysis.
If on the other hand, it is a one-off error, then I don't spend too much time on it. I agree with you that logging can be improved.
I agree with you that better panic logging would be ideal. PRs are welcome.

After thinking about this, maybe it could be better to add your own logging middleware without adding any specific code to the library. This way the users can override the default behaviour as they see fit.

Apology for delayed reply.
Since panic logging can be/already handled only from inside the handlePanic method, I think it would be a really good idea to create a verbose logger which extends log.Logger interface. We can then expose a new SchemaOpt function from graphql.go which will set logging to the verbose instead of the default logging.
I have created a change, you may wanna review it  -> https://github.com/graph-gophers/graphql-go/pull/384

this can be found using tracing provided that you log the traceID as well


Windows Containerd Support long-term proposal

Describe what you are trying to solve
Windows Containerd Support long-term proposal.
We met two blocking issues which make antrea-agent cannot work with Windows ContainerD.

[Windows][Blocker] Windows CNI plugin has no chance to create and configure container VNIC
[Windows] Containerd should support Pod hostNetwork mode like Docker

Describe the solution you have in mind
1. For the issue [Windows][Blocker] Windows CNI plugin has no chance to create and configure container VNIC
For the long-term, the upstreams should address the issue for such case. We will keep sync with ContainerD team for the issue.
2. For the issue [Windows] Containerd should support Pod hostNetwork mode like Docker

The ContainerD should provide the hack for hostNetwork as how Docker does before Windows support the real hostNetwork mode.
When Windows support real hostNetwork mode, the issue won't exist. However AFAK it will be after kubernetes v1.22.

Additional context
Parent issue: https://github.com/vmware-tanzu/antrea/issues/1581

Threads about "windows, CNI Check, VNICs, and containerd":
https://groups.google.com/g/kubernetes-sig-network/c/dd6OnOAJ0PY


Dockerfile - CMD builds without trailing double quote (run cause EOF error)

This builds:
Step 17 : CMD ["/bin/bash", "/usr/bin/postgres", "-D", "/var/lib/pgsql/data", "-p", "5432]
 ---> Running in 2eaa43e4c37f
 ---> 87201fe52441

But will cause EOF error on docker run:
/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 1: syntax error: unexpected end of file

docker build should lint the CMD args for quotes and should not build the image if the CMD args are not properly quoted.

I forgot to actually close it


Remove unnecessary reference to use_runner_v2 experiment in x-lang examples and documentation

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

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

Thanks.

Run Python PreCommit

Run Website PreCommit

Run Python_PVR_Flink PreCommit

Thanks.


Docs/add instruction

Added several description and instruction.

Cable and connector orientation
Note about pin header height
Recommended 3d-printing orientation
SCServo setup instruction

LGTM
Thank you @NobShinjo and @washishi for your feedback!!
Additional comments are always welcome.


Update .gitignore

Added several common ignore statements. They may not all be needed, but they will not hurt anything.
Would anyone care to comment or approve this PR for me? Thanks.

Is this published?
Thanks.

I reverted it. We need to make a new PR with suggested values.

@benevbright checkout #400

Thanks!


Add a copy of the MIT license

It is good practice to add a copy of the license to the repository.

@Calinou agreed, thanks for doing so.


detect wrong node name

What happened:
I tried to install kubesphere with all-in-one mode on my brand new CVM(tencentcloud virtual machine instance),when I run ./kk create cluster --with-kubernetes v1.21.5 --with-kubesphere v3.2.1, I got the failed message below:
Error from server (NotFound): nodes "VM-4-12-centos" not found
20:35:24 CST message: [VM-4-12-centos]
remove master taint failed: Failed to exec command: sudo -E /bin/bash -c "/usr/local/bin/kubectl taint nodes VM-4-12-centos node-role.kubernetes.io/master=:NoSchedule-"
Error from server (NotFound): nodes "VM-4-12-centos" not found: Process exited with status 1
20:35:24 CST retry: [VM-4-12-centos]
20:35:29 CST stdout: [VM-4-12-centos]
Error from server (NotFound): nodes "VM-4-12-centos" not found
20:35:29 CST message: [VM-4-12-centos]
remove master taint failed: Failed to exec command: sudo -E /bin/bash -c "/usr/local/bin/kubectl taint nodes VM-4-12-centos node-role.kubernetes.io/master=:NoSchedule-"
Error from server (NotFound): nodes "VM-4-12-centos" not found: Process exited with status 1
20:35:29 CST retry: [VM-4-12-centos]
20:35:34 CST stdout: [VM-4-12-centos]
Error from server (NotFound): nodes "VM-4-12-centos" not found
20:35:34 CST message: [VM-4-12-centos]
remove master taint failed: Failed to exec command: sudo -E /bin/bash -c "/usr/local/bin/kubectl taint nodes VM-4-12-centos node-role.kubernetes.io/master=:NoSchedule-"
Error from server (NotFound): nodes "VM-4-12-centos" not found: Process exited with status 1
20:35:34 CST retry: [VM-4-12-centos]
20:35:39 CST stdout: [VM-4-12-centos]
Error from server (NotFound): nodes "VM-4-12-centos" not found
20:35:39 CST message: [VM-4-12-centos]
remove master taint failed: Failed to exec command: sudo -E /bin/bash -c "/usr/local/bin/kubectl taint nodes VM-4-12-centos node-role.kubernetes.io/master=:NoSchedule-"
Error from server (NotFound): nodes "VM-4-12-centos" not found: Process exited with status 1
20:35:39 CST retry: [VM-4-12-centos]
20:35:44 CST stdout: [VM-4-12-centos]
Error from server (NotFound): nodes "VM-4-12-centos" not found
20:35:44 CST message: [VM-4-12-centos]
remove master taint failed: Failed to exec command: sudo -E /bin/bash -c "/usr/local/bin/kubectl taint nodes VM-4-12-centos node-role.kubernetes.io/master=:NoSchedule-"
Error from server (NotFound): nodes "VM-4-12-centos" not found: Process exited with status 1
20:35:44 CST failed: [VM-4-12-centos]
error: Pipeline[CreateClusterPipeline] execute failed: Module[InitKubernetesModule] exec failed:
failed: [VM-4-12-centos] [RemoveMasterTaint] exec failed after 5 retires: remove master taint failed: Failed to exec command: sudo -E /bin/bash -c "/usr/local/bin/kubectl taint nodes VM-4-12-centos node-role.kubernetes.io/master=:NoSchedule-"
Error from server (NotFound): nodes "VM-4-12-centos" not found: Process exited with status 1

my node name is vm-4-12-centos which was generated automatically by tencentcloud,but the error message is "/usr/local/bin/kubectl taint nodes VM-4-12-centos node-role.kubernetes.io/master=:NoSchedule-" which VM is Uppercase,I thought maybe kubeeye detect wrong node name.
What you expected to happen:
kubernetes and kubesphere installed successfully.
How to reproduce it (as minimally and precisely as possible):
maybe change the node name to vm-4-12-centos and run the install command?
Anything else we need to know?:
None
Environment:

Kubeeye version: 2.0.0
CentOS 7.6

And when I run /usr/local/bin/kubectl taint nodes **vm**-4-12-centos node-role.kubernetes.io/master=:NoSchedule- manually (I change the node name from VM-4-12-centos to vm-4-12-centos), and run ./kk create cluster --with-kubernetes v1.21.5 --with-kubesphere v3.2.1 again, kubernetes and kubesphere successfully installed.

sorry kk means Kubekey, I found the wrong repo.


config for API running on different url or port

Hi Ronz,
I was in process of doing more experimentation, and can't find any place where there is a central constant for a different backend api url or port.
Is there one? And Im just missing it. It looks to me like the library will send back to same url and port all the time 'localhost:3000'
But what if a person is using http://localhost:5000 for instance for a backend api. Is there one place I can enter this constant and API calls will go to this url?
Cheers

Hi, You can! just add baseUrl to the config: NG2_UI_AUTH_PROVIDERS({ baseUrl: 'localhost:5000' ....}) and it should work (by default the baseUrl is '/' so it's the same as the site's Url)

Oh Sweet! thanks Ron , I should have seen that.
Thank you

For info:
baseUrl: 'localhost:5000' is not working for me.
But baseUrl: 'http://localhost:5000/' is working.


distributed.deprecated

Why do you use torch.distributed.deprecated? All functions have counterparts in torch.distributed.

According to my own experiment, use deprecated version may cause the program to be locked.

This may be due to a previous version of PyTorch, I will modify the code after verification, thank you for your suggestion.


Items inside GetBeckupProtectedItems() collection cannot be parsed due to Error: 'Value cannot be an empty string. (Parameter 'resourceId')'

Library name and version
Azure.ResourceManager.RecoveryServicesBackup 1.2.0
Query/Question
Hi
I have the following snippet for my code:
//var backupProtectedItems = resourceGroupResource.GetBackupProtectedItemsAsync(request.VaultName, filter);
var backupProtectedItems = resourceGroupResource.GetBackupProtectedItems(request.VaultName);
foreach (var backupProtectedItem in backupProtectedItems) {  // error on this line
// do sth;
}
The vault only has Vm backup items. when the vault has an item with stepped backup state ("protectionState": "ProtectionStopped") or softdleted item, the code errors out on line where I have foreach with error:  'Value cannot be an empty string. (Parameter 'resourceId')', it cannot parse the item. I am not sure if this is the expected behaviour.
can you pls help me to resolve this issue. Thanks
Environment
net 8 isolated runtime, azure durable function on consumption plan

Hi, any update on this issue? thanks.


[5.6][Bug Fix] Replace all placeholders for comparison rules (gt/gte/lt/lte) properly.

The bug is explained here #25481. TLDR; The replacer method replaces the place holder with a 0 instead of the actual value that we're comparing against.

5.6 is closed for everything except security fixes.


Fix for #873 : replce router param value which is not a string or a number with empty string

This is a fix #873 and #855.
There may be more similar issues in the future and I think we can fix this problem by simply replace the param values with empty strings.

Thank you but the issue is about documentation, not implementation. Also, keeping true and false as strings makes more sense than having an empty string

Also, keeping true and false as strings makes more sense than having an empty string

Yes, you are right. I didn't notice that before, thank you.
But what about undefined？I don't think people want to router to a undefined address. I think we can avoid this in our code. WDYT?

As said already, one should not pass undefined nor null

ok


Add inAppUpdatePriority option to the upload_to_play_store (supply) action

Feature Request
Motivation Behind Feature
Google Play Developer API allows specifying the update priority of the android application when creating a new release (see inAppUpdatePriority field in Edits.tracks.releases). 'inAppUpdatePriority' can take int values from 0 (lowest priority) to 5 (highest priority). This priority can be used in the android app for handling/delivering non-critical or critical updates to the users (https://developer.android.com/guide/playcore/in-app-updates). If the priority is set correctly android application can check for available updates + their priorities using client library and then a standard user-friendly system dialog can be shown to the user with the suggestion to update the application.
Feature Description
As a result of specifying inAppUpdatePriority and implementing checking this priority in the android app end-users can see the following standard screen (image is taken from the official android documentation):

Actually I'm not ruby developer so the code example is in Java:
AndroidPublisher publisher = new AndroidPublisher(httpTransport, factory, credentials);

// ... uploading APK here and getting version code
// ------

TrackRelease release = new TrackRelease()
    .setVersionCodes(versionCodes)
    .setInAppUpdatePriority(/* value from 0 to 5 here */);

Track track = new Track().setReleases(singletonList(release));

publisher.edits().tracks()
    .update(APP_PACKAGE, editId, TRACK_PRODUCTION, track)
    .execute();

This feature would not break anything for existing users.
Alternatives or Workarounds
It seems there is no way to do this with existing Fastlane actions & plugins (at least I couldn't find how to do this in the Fastlane documentation and also there is no such option in sources).

Seems like in-app-update feature is completely missing in supply. Any ETA on this?

I would really love this feature! Did a little digging...
The ruby AndroidPublisher library has a in_app_update_priority field on the TrackRelease class
https://github.com/googleapis/google-api-ruby-client/blob/bc980737e8d1cfc1807ddfc5c3b27a2927c7c7c4/generated/google/apis/androidpublisher_v3/classes.rb#L2095

Seems like in-app-update feature is completely missing in supply. Any ETA on this?

As soon as someone implemented it, created a Pull Request for it that got reviewed and merged <3

@janpio I have created a pull request for this feature (https://github.com/fastlane/fastlane/pull/16452). Can you please review and let me know if something could be improved?

Closing this ticket as https://github.com/fastlane/fastlane/pull/16452 was already merged and released 🚀

Closing this ticket as https://github.com/fastlane/fastlane/pull/16452 was already merged and released 🚀


CASMPET-5478 main : Update docs and Test Add/Remove/Replace NCN on 1.2

Summary and Scope
1.2 docs and scripts for Add/Remove/Replace/Move NCN
Covers all the issues found during testing of the procedure on a 1.2.0 beta system, including

CASMNET-1514 ./ncn_add_pre-req.py - add some data handing
CASMNET-1386 Kea/SMD race condition
CASMHMS-5521 HSM/REDS race condition on remove

Resolves the following EPIC tickets

CASM-2769 : Document and test procedures to add/remove/replace an NCN master and worker node
CASM-2772 : Document and test procedures to add, remove, and replace an NCN storage node
CASM-2787 : HMS support of the NCN Replace/Remove/Add Procedures

CASM-2786 : NET support of the NCN Replace/Remove/Add Procedures still needs to address CASMNET-1530 for Add/Remove Switch Config
Issues and Related PRs
List and characterize relationship to Jira/Github issues and other pull requests. Be sure to list dependencies.

Resolves CASMPET-5478
Change will also be needed release/1.2
Future work required by
CASMNET-1530 for Add/Remove Switch Config
CASMPET-5571 Additional release/1.0 changes needed for Add/Remove/Replace
Documentation changes required in NA
Merge with/before/after NA

Testing
fanta
Tested on:

<development system>
Local development environment
Virtual Shasta

Test description:
Tested Add/Remove/Replace/Move of masters, workers and storage nodes on fanta (1.2.0 beta 104)
Did not cover

ncn_add_pre-req.py since fanta was fresh installed with added NCNs, no network adjustment was needed; this was tested in the 1.0.
add/remove switch config (CASMNET-1530 TBD)

Were the install/upgrade-based validation checks/tests run (goss tests/install-validation doc)?
Were continuous integration tests run? If not, why?
Was upgrade tested? If not, why?
Was downgrade tested? If not, why?
Were new tests (or test issues/Jiras) created for this change?

Risks and Mitigations
Are there known issues with these changes? Any other special considerations?
We will want to white glove the first customer to use this for 1.2 given the switch config changes have not been documented/tested yet and the network adjustment script (ncn_add_pre-req.py) could use some additional 1.2 testing.
Pull Request Checklist

[ ] Version number(s) incremented, if applicable
[ ] Copyrights updated
[ ] License file intact
[x] Target branch correct
[ ] CHANGELOG.md updated
[x] Testing is appropriate and complete, if applicable
[ ] HPC Product Announcement prepared, if applicable

The same changes requested for the other PR apply here: #1536

Done


Theme store

This moves all the theme management into a store that lives outside any component, to allow multiple ways to set the theme.
The theme store lives in the Settings context. This also allows you to pass the list of themes into settings.
This does not cover SSR compatibility, which will come in a later PR

Quick read through and tested on the Vercel preview and seems to work as before, thanks!
One thing I noticed is if you are using system color scheme and change the emulation without refreshing, class="dark" doesn't reactively update, but it didn't before as well (and a case no one will really ever hit other than us likely).  Just an observation :)
https://github.com/techniq/svelte-ux/assets/177476/a917a784-fec7-4a24-9583-f97dabb3ff7e
It looks like the PR might need to be rebased from some stacked PRs.  I could probably merge fine, but if not too difficult, could you rebase?

One thing I noticed is if you are using system color scheme and change the emulation without refreshing, class="dark" doesn't reactively update, but it didn't before as well (and a case no one will really ever hit other than us likely). Just an observation :)

That's pretty easy to add though, and useful for debugging

Done! Also rebased

Thanks, Nice work!


[Candidate 1v1 Endboss ZH v2] Flags of Oil Derricks are not optimally in view

Observed behavior
Flags of Oil Derricks are not optimally in view.
Expected behavior
Oil Derricks are rotated by 90 degrees clockwise to make their flags highly visible.
Screenshots

fixed

Could you please also rotate the Derricks at top and bottom of map?


Add better backoff, semaphore to packer

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

[ ] The toolchain has been rebuilt successfully (or no changes were made to it)
[ ] The toolchain/worker package manifests are up-to-date
[ ] Any updated packages successfully build (or no packages were changed)
[ ] Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
[ ] Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
[ ] All package sources are available
[ ] cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
[ ] LICENSE-MAP files are up-to-date (./SPECS/LICENSES-AND-NOTICES/data/licenses.json, ./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md, ./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON)
[ ] All source files have up-to-date hashes in the *.signatures.json files
[ ] sudo make go-tidy-all and sudo make go-test-coverage pass
[ ] Documentation has been updated to match any changes to the build system
[ ] Ready to merge

Summary
During testing of the new parallel build PR gates, it was noticed that the build agents often dropped connections. We can run most of the packing step highly parallelized, but limiting the number of concurrent network operations significantly improves reliability.
Also adding a configurable exponent to the retry backoff logic allows us to be more accommodating by significantly slowing down network requests when things start to go wrong.
Change Log

Add retry.RunWithExpBackoff() which has a configurable backoff exponent (rather than the implicit 1.0 in Run()).
Add a semaphore to limit concurrent network traffic in the packer

Does this affect the toolchain?

NO
Test Methodology

Local builds

I may have misunderstood the problem. This change will help throttle the amount of workers using network connection, but suppose all current workers using network have failed and are waiting to retry (using the exp backoff formula), shouldn't other workers be allowed a chance to use network as well? In that case, I feel like putting the semaphore in the network access layer, e.g by controlling concurrent calls to hydrateFromRemoteSource would be better and easier to implement as well.

This would depend on why the download was failing. If the failure was specific to the file, then only applying the exponential back-off to that file makes sense. But if the failure is related to the web server and/or network connection, then having the exponential back-off block other downloads would prevent spamming the server and/or network connection.

I may have misunderstood the problem. This change will help throttle the amount of workers using network connection, but suppose all current workers using network have failed and are waiting to retry (using the exp backoff formula), shouldn't other workers be allowed a chance to use network as well? In that case, I feel like putting the semaphore in the network access layer, e.g by controlling concurrent calls to hydrateFromRemoteSource would be better and easier to implement as well.

This would depend on why the download was failing. If the failure was specific to the file, then only applying the exponential back-off to that file makes sense. But if the failure is related to the web server and/or network connection, then having the exponential back-off block other downloads would prevent spamming the server and/or network connection.

The primary failure case looks to be due to network throttling on the build agents. I am not concerned about a missing file or other catastrophic failure blocking builds since that will result in a failed build regardless (since any failed packing job will stop the build).
So given that, it is intended that we block the other workers from progressing if we start seeing failures. Since the source server 'should' be 100% reliable I don't mind losing out on one of the network slots for a few minutes due to a misisng file, the other slots should be sufficient to still saturate a reasonable network connection.

FYI, I'd like to rebase and squash into two commits (no modifications). I'll do a non-squash merge with two commits: the retry logic, and the packer. Will make this more clear in the future looking back.


No master image for databroker

We should make sure, databroker is is also pushing a master image to ghrc, i.e. for kuksa.val server we have
docker pull ghcr.io/eclipse/kuksa.val/kuksa-val:master

for databroker we do not have
docker pull ghcr.io/eclipse/kuksa.val/databroker:master

Probably need some adaptation in GH action workflow/trigger

@argerus would assign you, if I could. PLs PR

Fixed


Homebrew::API::fetch_file_source: remove debug line

Looks like this debug line (at least I'm assuming) made it through by accident.

Review period skipped due to critical label.


Missed mid-flight rotation feature

Hi, px4 community!
For my thruster that based on sapog software mid-flight rotation change is very important.
I have noticed that this feature was added in December of 2016 #10 , but I cannot find any sign of it in the repository.
Few months later according to issue #12 you decided to rollback the repository to some previous version.
Is it possible that this added feature was missed during the migration?

Ad-hoc reversal was never implemented in Sapog, and it is not currently on the roadmap. Maybe consider Myxa or other Telega-based controllers instead, where this capability is implemented (Telega has been designed by the same team but it is not open-source).

Ad-hoc reversal was never implemented in Sapog, and it is not currently on the roadmap. Maybe consider Myxa or other Telega-based controllers instead, where this capability is implemented (Telega has been designed by the same team but it is not open-source).

Thank you for the answer! Ok, will implement it on our side.
Does it make sense to do make pull request with it feature in the master?
P.S. Is Mitochondrik LV commercially available right now? I checked Zubax site (link) and market release was planned on Q4 2020 with no any further news.

Does it make sense to do make pull request with this feature in the master?

Sure, but maybe not right now, because we are soon planning to merge our fork where we've been working on v3.0.

Is Mitochondrik LV commercially available right now?

Yes. If you'd like to discuss your project, feel free to drop us a msg to<EMAIL_ADDRESS>

Pavel, thank you for answers! It was helpful.


[Feature]  Release InternVL2 with VisionLLMv2 integration

Motivation
need InternVL2 with VisionLLMv2 integration。
Related resources
visionllmv2 has intervl2
Additional context
No response

how to merge internvl with visionllmv2 ？ how to finetune？


[Bug report]:

Platform
Desktop
Version
1.6.5
Description
Hello I noticed that when stacking the shimmer between April and June, my firefly account stacked asmb or instead of shimmer.
It's the 3rd time I stacked asmb and I stacked shimmer only 1 time. This is when we could stack smr and asmb together.
Is it possible to correct this?
What happened?
Thanks
Expected behaviour
I hope to get the amount I should have gotten in smr
Actual behaviour
J'ai quasiment pas de smr car je n'ai pas beaucoup stcker lors du tout premier jalonnement. Et le deuxieme jalonnement ma fournit du asmb et non du smr
Can the issue reliably be reproduced?
No
Steps to reproduce the issue
i think this is not my mistake
Operating System
Windows
Diagnostics
no diagnostic popup

Developer Profile
No
Profile Type
Software (Stronghold)
Staking
Actively staking
Crash Status
None of the above
Error Messages
no error message
Error Logs
nothing

Duplicate declaration

[X] I have searched the issues tracker this issue and there is none

Code of Conduct

[X] I agree to follow this project's Code of Conduct

There was only 1 event to stake your Iota tokens to get shimmer. So everything is correct. You were only able to stake IOTA for assembly. And there was also no event to stake shimmer tokens.

Okay so maybe m'y friends made a mistake.
They said to me they have stack smr on april until june.
And twitter on june said smr stacking was finished
Le dim. 4 sept. 2022, 12:49, MiKeF05 @.***> a écrit :

Closed #4440 https://github.com/iotaledger/firefly/issues/4440 as
completed.
—
Reply to this email directly, view it on GitHub
https://github.com/iotaledger/firefly/issues/4440#event-7318282138, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/A24TW7RCTL4Y5DGBSU74ALLV4R5C5ANCNFSM6AAAAAAQEIBYHY
.
You are receiving this because you authored the thread.Message ID:
@.***>

No problem. It was only possible to stake IOTA tokens to get shimmer and assembly.
Event 1 -> Rewards SMR and ASMB
Event 2 -> Rewards ASMB
Event 3 -> Rewards ASMB


Wrong reference in "Can I make guest objects visible in the global address list?"

The following section states For details, see "Can I make guest objects visible in the global address list?" in Manage guest access in Microsoft 365 Groups.
But the referred article does not contain any section addressing the topic.
ref. Can I make guest users visible in the Exchange Global Address List?

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

ID: c6eb6697-4ace-adb6-c922-df8a9a485283
Version Independent ID: fd4ce34d-d55e-92af-d71a-625210ad3a63
Content: Properties of a B2B guest user - Azure Active Directory
Content Source: articles/active-directory/external-identities/user-properties.md
Service: active-directory
Sub-service: b2b
GitHub Login: @msmimart
Microsoft Alias: mimart

@mafalda89 Thanks for the feedback. We will engage the content development team for further investigation, they will verify and perform necessary changes in the document as needed.
@msmimart Can you have a look at this ?

Hi,
I see this case has been 'closed' - but there's still no 'Can I make guest objects visible in the global address list?' information under 'Manage guest access in Microsoft 365 Groups.' ????


"map key was not a string" for newtype struct

#[derive(Serialize)]
pub struct MyType(String);

Seems to be the cause of the error. Even though ultimately the newtype should get serialized as a string, it still triggers an error. I'm guessing the problem is in
impl ser::Serializer for StringExtractor
as even the serialize_newtype functions immediately return an error as opposed to simply calling the serialize method for the wrapped value.

This appears to be fixed, please reopen if I am misinterpreting.


remove msbuild-based enable package restore command code

Relates to https://github.com/NuGet/Home/issues/365
This PR also removes the msbuild-based restore code from the NuGet2 repo.
cc @deepakaravindr @MeniZalzman @emgarten @feiling

:watch:

This code needs to stay.

Check! Closing without merge. Can someone update https://github.com/NuGet/Home/issues/365 to reflect what actually needs to happen here?


Multiple NPEs in ViewFetcher

From<EMAIL_ADDRESS>on October 18, 2012 09:59:46
Hi.
During a test debugging, when putting on a breakpoint on NullPointerException in my favorite IDE, I noticed that ViewFetcher#addChildren(..) constantly encounters NPEs on viewGroup.getChildCount(), which is then caught by getAllViews(), then ignored.
During a blackbox test, it usually happens 100~150 times... When I play all the test suite, it then happens ~100000 times. This would not be a problem if handling a NPE was a cheap operation, but it is not.
@see http://eskatos.wordpress.com/2009/09/30/how-is-exception-handling-implemented-in-jvms/ This issue is not really a bug, but I guess it may improve the performances to get rid of all those exception handling.
Anyway, thanks for all the improvements you've accomplished so far, Robotium is getting better every version.
Original issue: http://code.google.com/p/robotium/issues/detail?id=342

From<EMAIL_ADDRESS>on October 18, 2012 21:06:19
Thank you for reporting this. This will be fixed in the next release.
Status: Accepted
Owner<EMAIL_ADDRESS>

From<EMAIL_ADDRESS>on November 18, 2012 22:06:39
Thanks again for reporting this. It has been fixed in Robotium 3.6.
Status: Verified


Visual Studio 2017

On March 7 is Visual Studio 2017 launched . One of the big news is that csproj file will be greatly simplified and supports multi-targets.
Additionally, Microsoft now recommend that we should use .NET standard for packages. In this case, we should replace the .NET Framework 4.6 with .NET 1.3 Standard
Today we have two separate projects, one for .NET 4.0 and .NET 4.6. I recommend that we replace these with a single project in VS2017-format that multi-target to net4.0 and netstandard1.3 (the same as .NET 4.6).
Open questions

When do AppVeyor support Visual Studio 2017?
Is it possible to open the new csproj-file in older Visual Studio (probably not).

If not possible to open in older Visual Studio, is it a problem?

If it is a problem, how long should we wait for all devs to update to Visual Studio 2017?

Should we maybe have a separate csproj file in the old format to make it possible for users of old Visual Studio to compile? It is enough that there is a project file only for .NET 4.6 (or .NET 4.0). The downside is that the environment becomes more complicated when we have to make sure to keep this project file up to-date when we do not use it.

When do AppVeyor support Visual Studio 2017?
They do have a beta and I think I have read that they plan to make it official soonly after VS2017 is released.

👍 This is a good idea, it should be made when VS2017 is released. I guess they will make a community version for people to get it in any case.
(hope that VS 2017 will be more stable that VS 2015)

What about nuget, is it already capable to install properly  .NET standard library ?

@Liryna Yes, VS2017 do properly install .NET standard libraries from NuGet.
But it is still some bugs in VS2017 :-(

Net standard and xprojs have been a pain, but now it looks like they are not going to change much more, new csprojs are quite easy to configure and I think a retro compatibility for vs2015 patch will enable to build those projects soon... Also vs2015 and 2017 live side by side with no issues, we will install vs2017 as soon as it is released.
Kinda worth to target more projects...

AppVeyor's VS2017-image is available to the public

I'm getting happy with it now. I have not yet been able to test netstandard1.3, MStest lacks functionality for DataRow when running under .NET Core 1.X. Perhaps we can fix this in a separate PR.
Can you please review what I have done. When everything is ready for merge, I'll clean up all the commits.

Can be closed with @magol PR 👍
Thanks a lot for your work !


Bump openvswitch to version 2.13

DPDK dependency of openvswitch can now be installed directly from centos 8 extras repo.
New openvswitch version outputs interface names without doublequotes, addressing this
change in the plugin_tests.go.
Signed-off-by: Radim Hrazdil<EMAIL_ADDRESS>

@phoracek Now I realized that CI is running make docker-test, bumped fedora to 32 in Dockerfile, which has the up to date openvswitch version.

But that is only for our integration tests, not for e2e. And even then, it still uses the kernel module from the host. So overall it is a good idea to keep this reasonably up-to-date.

But that is only for our integration tests, not for e2e. And even then, it still uses the kernel module from the host. So overall it is a good idea to keep this reasonably up-to-date.

Hmm, I tried printing out the ovs-vsctl version and with fedora 31 there is 2.12 and with fedora 32 there is 2.13, so it does make a difference.
@RamLavi

/lgtm
great thanks!

/release-note-none


Crash on dedicated server

Our dedicated server crashes as soon as someone connects and loads the affected chunk with the following report
crash report.txt

Update to 1.0.3 on curseforge. It is a simple drop in replacement on the server.


Upon conflicting URIs: First one wins, alert/visualize conflict

This should depend on the awakening mode / ab testing mode. Conflicting URLs might be AB testing, so maybe you want traffic distributed across each. So this ticket is not useful anymore.


Revert eleveldb to nhs-develop-3.0

The nhs-develop branch uses the updated nhs-develop eleveldb (currently), which contains a number of changes, in particular to the installation of snappy.
For the next nhs release the preference is instead to continue to use the pre-defined snappy in-built with eleveldb, and avoid changes with the build process - using the nhs-develop-3.0 branch of eleveldb instead.  The nhs-develop-3.0 branch can be made compatible with OTP 26 https://github.com/nhs-riak/eleveldb/pull/2 - so there is no real need to change (especially as it is likely eleveldb will be removed before the next major release, or perhaps switched to the branch of another Riak user).
This will also require a change in nhs-riak/riak_ensemble.

https://github.com/nhs-riak/riak_core/pull/9/files


Use wasm-dce to tree shake WASM - bump wasm-dce

What kind of change does this PR introduce?

Did you add tests for your changes?

If relevant, link to documentation update:

Summary

Does this PR introduce a breaking change?

Other information
Same as https://github.com/webpack/webpack/pull/6533, just launching the tests. just noticed that tests are already on master.

Thanks


Feature suggestion: SatisfyOr

While doing some refactoring I thought this function would be very helpful, if theres already a good alternative please let me know, as I could find one.
satisfyOr(10, v => v > 5, 12) // 12
satisfyOr(10, v => v > 5, 3) // 10
satisfyOr([1,2,3], v => !isEmpty(v), []) // [1,2,3]
satisfyOr([1,2,3], v => !isEmpty(v), [4,5,6]) // [4,5,6]

You could also then simply have a satisfy function.

when and unless may be what you need

@adispring I was trying to rewrite
const orange = 'abcd';

const value =
    pear[orange] &&
    pear[orange].banana &&
    pear[orange].banana.length
      ? pear[orange].banana
      : apple;

as
const orange = 'abcd';

const value = satisfyOr(
  apple,
  x => x && x.length,
  path([orange, 'banana']], pear)
)

But I cant see how I would use when and unless without having to declare a new const or duplicating?

@adispring I was trying to rewrite this
const orange = 'abcd';

const value =
    pear[orange] &&
    pear[orange].banana &&
    pear[orange].banana.length
      ? pear[orange].banana
      : apple;

and though this would be nice
const orange = 'abcd';

const value = satisfyOr(
  apple,
  x => !isEmpty(x),
  path([orange, 'banana']], pear)
)

But I cant see how I would use when and unless without having to declare a new const or duplicating?

I think what @adispring was suggesting is that this is very close to the when/unless behavior:
unless(n => n > 5, always(10)) (12)          //=> 12
unless(n => n > 5, always(10)) (3)           //=> 10
when(isEmpty, always([1, 2, 3])) ([])        //=> [1, 2, 3]
when(isEmpty, always([1, 2, 3])) ([4, 5, 6]) //=> [4, 5, 6]

The difference is that when and unless -- like their ifElse cousin -- take a function rather than a scalar value.  This is more flexible, but for this case requires wrapping them up as always(10) or () => 10.
Does that do what you need?

@CrossEye Ah interesting, thanks that works, these both (would) do the same :)
const value = satisfyOr(
  apple,
  x => !isEmpty(x),
  path([orange, 'banana']], pear)
)

when(isEmpty, always(apple))(
    path([orange, 'banana'], pear)
);

when(isEmpty, always(apple))(
    path([orange, 'banana'], pear)
);

Maybe composing functions to pipeline is more elegant? And the new pipeline can be composed continuously.
const getOrangeBananaOrApply = R.compose(
  R.when(isEmpty, always(apply)),
  R.path([orange, 'banada'])
)


Trying to understand why import value is changing

Acknowledgements

[X] I read the documentation and searched existing issues to avoid duplicates
[X] I understand this is a bug tracker and anything other than a proven bug will be closed
[X] I understand this is a free project and relies on community contributions
[X] I read and understood the Contribution guide

Minimal reproduction URL
https://github.com/steelbrain/2024-09-tsx-bug-repro
Problem & expected behavior (under 200 words)
Hey Team! Really confused by the output of tsx changing based on package.json#type instead of tsconfig.json. Please have a look at the repro repository. It's possible that this isn't a bug in tsx and is a behavior coming in from esbuild.
Either way, would love to hear based on your experience why this is happening and any pointers on how we could mitigate the impact. I burned through some solid time trying to isolate the bug that led me here. Happy to do a PR (if someone can walk me through it) or financially sponsor a fix here.
Bugs are expected to be fixed by those affected by it

[x] I'm interested in working on this issue

Compensating engineering work will speed up resolution and support the project

[X] I'm willing to offer $10 for financial support

This is unexpected behavior but unrelated to tsx. You can run it in Node and get the same behavior.
I hope to fix it via tsx in the future though.
Modules can parse named exports from CommonJS via cjs-module-lexer, but that's unable to parse UMD format.

Thank you for the pointers @privatenumber. Much appreciated!

I hope to fix it via tsx in the future though.

That would be really helpful. I ran into this while trying to run some code that worked fine in Next.js but broke in tsx. Handling it here would make it easier for people to run tsx on existing codebases.


Request hangs when using a Self-Signed certificate

NativeScript: 8.3.3
Android: v13 on Pixel 7
I have been using a self signed cert on Android for development successfully by a using a void trust manager. Setting HttpsURLConnection.setDefaultSSLSocketFactory seems to work with the core Http library.
When I switch over to @klippa/nativescript-http all requests hang indefinitely when making requests to the development server that uses a self signed certificate. I switch it back to the production server and everything works as expected.
Is there a way to set sslSocketFactory to a void trust manager on the OKHttp builder from within Javascript or is the only option to fork this repo and patch it for my own use case?

Hi,
It looks like there is no way to set the default OkHttp hostnameVerifier/sslSocketFactory, so you would sadly have to fork the repo indeed. I'm open for PR's on it though.

I just had a go at applying a quick and dirty patch to see if it would even work and I came across a few fatal errors with publish/pack.sh.
This might be above my head as I'm very new to NativeScript and still not familiar with its conventions.
Here is the patch I was trying if anyone else comes across this ticket and has more of an idea how to get it working. It's a hack, not production ready.
public static void InitClient() {
    if (cookieJar == null) {
        cookieJar = new MemoryCookieJar();
    }

    TrustManager TRUST_ALL_CERTS = new X509TrustManager() {
        @Override
        public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) {
        }

        @Override
        public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) {
        }

        @Override
        public java.security.cert.X509Certificate[] getAcceptedIssuers() {
            return new java.security.cert.X509Certificate[] {};
        }
    };

    SSLContext sslContext = SSLContext.getInstance("SSL");
    sslContext.init(null, new TrustManager[] { TRUST_ALL_CERTS }, new java.security.SecureRandom());

    if (client == null) {
        client = new OkHttpClient.Builder()
                .writeTimeout(60, TimeUnit.SECONDS)
                .readTimeout(60, TimeUnit.SECONDS)
                .connectTimeout(60, TimeUnit.SECONDS)
                .sslSocketFactory(sslContext.getSocketFactory(), (X509TrustManager) TRUST_ALL_CERTS)
                .cookieJar(cookieJar)
                .build();
    }
}

You probably do not want to patch the original source code since you can't use that directly in your project.
It's probably way easier to use something like patch-package on the originally installed package.

Normally you would be correct, but the published module doesn't include the Java sources.
Just /platforms/android/nativescript_http.aar. I don't think patch-package would work.
I could patch in the whole aar file but that's not even building.
><EMAIL_ADDRESS>build.native
> node scripts/build-native.js

executing 'ns plugin build'
Error: Command failed: ns plugin build

FAILURE: Build failed with an exception.

* Where:
Build file '/tmp/android-project202328-45437-1fad9ps.v0bc/nativescript_http/build.gradle' line: 38

* What went wrong:
A problem occurred evaluating root project 'nativescript_http'.
> /platforms/android/dependencies.json (No such file or directory)

Like I said; this is probably a trivial fix for someone who is comfortable with NativeScript and Java. I just don't know how it all fits together.

Ah yeah, you're right :( It generates an aar file. I haven't done anything with NS for a while so not sure why it's not building, could have to do with the NS version that you have.

I could reproduce this with the latest NS CLI version.
So it seems like this is a known issue: https://github.com/NativeScript/nativescript-cli/issues/5660
It sounds like the fix would be to ship the sources, and not the aar file, and not do the build before shipping, however I have never tried that, I have to schedule some time to fix the build process for the NS 8 version.

@Omnomios I have just published version 3.0.4 to npm, can you see if that works for you? (I don't have time to test it right now)
It ships with the original android source and not the .aar file, it should automatically build it for you.
That also makes it easier for you to patch the java files.

That's amazing!
I just pulled down 3.0.4, applied my patch and now can connect to localhost with it's self-signed certificate.
🎉

Thanks for testing that out! I have just pushed the changes :)
If you feel like it, I'm still willing to add a "AllowSelfSigned" option to the plugin if provided in a PR.

Would love to. I'll have a look over it on the weekend.

Is there any update on this?
I made the changes directly to that code, but the build of the package itself does not work on my machine. Probably because of that latest Node and Angular version.

I now made pull requests about this problem


Patches stop being applied

Hi!
Now and then, our application stop responding on patches from the server. (Havn't found any way of getting there consistent). There is no errors or warnings that can be seen in console and the connection seems fine.
Last time I decided to see what happened and I can see that puppet both sending and receiving patches. What it do not do is applying the patches. The puppetjs validateAndApplySequence is never called at all. There somewhere I was lost in the code since it was supposed to be called from JSONPatchQueueSynchronous ?
Can it be that it can reach a state where the _ver#c$ or _ver#s$ fails, maybe a timing issue? I forgot to check before I accidently dropped out of the session.

Yepp, it is a timing issue. (Lot easier to repeat on a slow server, with much data)
Seems like new Get request to the server before a response has been received triggers this.

I was told to close this one because the error is at the server side (starcounter). However, I'm not totally sure I'm ready to do this. Yes, It should be fixed at the server, but should'nt puppet somehow telling the server that it misses som messages as well? Can you always be sure that no data is lost in cyberspace? (That is an actual question, I have no idea if the used internet protocol includes this).
I also thinks that the client should somehow notify that something is wrong. Yes, receiving message in wrong order might not be wrong but when you continously get more and more messages without getting the lost one you know that something is wrong.

It is a PuppetJs issue, but we discuss it here: https://github.com/Starcounter/Starcounter/issues/3981
Closing as duplicate.


[mesheryctl] improve the error messages shown to users for "mesheryctl exp filter"

Description: Improve the error messages in mesheryctl commands from the user's perspective.
Commands in scope of this issue: mesheryctl exp, mesheryctl exp filter, mesheryctl exp filter apply, mesheryctl exp delete, mesheryctl exp list, mesheryctl exp view

We need to make sure of the following things

There are proper error messages when users

Give more arguments to a command than required
Misspell a command
Do not give the required input via flags or args
Use the command without any arguments or flags.

The error messages being displayed to users are meaningful from user's perspective. And if applicable, a potential fix for the problem should be shown too.  For example

"failed to unmarshal response body" could be modified to "couldn't process JSON response from server"
"manifest not found" could be modified to "manifest not found. Please provide the path to the app manifest."

Contributor Resources

⌨ mesheryctl Contributing Guide
Beginner's guide to contributing to Meshery and mesheryctl
mesheryctl Command Tracker
Meshery CLI Commands and Documentation
🙋🏾🙋🏼 Questions: Layer5 Discussion Forum and Layer5 Community Slack

For additional context, head over to this pr.

Hii @nishantwrp I would like to work on this

Working on it. Have been able to build and run mesheryctl locally. @nishantwrp :)

@SufyaanKhateeb checking-in... have you been successful in building mesheryctl thus far?

r.

Yes, I was able to build mesheryctl, but I am still trying to figure out what the commands do. The resources mentioned are very helpful. I will continue working on it.

@SufyaanKhateeb checking-in... have you been successful in building mesheryctl thus far?

Yes, I was able to build mesheryctl, but I am still trying to figure out what the commands do. The resources mentioned are very helpful. I will continue working on it.

@nishantwrp The 'mesheryctl exp filter apply' command is not working. I checked with the web interface the 'filterUrl' is "http://localhost:9081/api/filter" whereas in mesheryctl it is "http://localhost:9081/api/experimental/filter", which is not working. What should I do about this? And did you mean mesheryctl exp filter delete, mesheryctl exp filter list & mesheryctl exp filter view?

@SufyaanKhateeb it seems that this API endpoint was promoted from experimental to stable. Its time to move to the stable endpoint.

How do I go about pushing the code? Do I simply create a pull request?


how to modify GetIntrinsics function if I want to decoupling the gyro and ois data

I want to try your project only use gyro data，so I del ois relevant code，until GetIntrinsics function there is ois_offset and I don't know how to figure out intrinsics. what is that mean by 0.5*(width-1)+offset[0]width, 0.5(height-1)+offset[1]*height]

I want to try your project only use gyro data，so I del ois relevant code，until GetIntrinsics function there is ois_offset and I don't know how to figure out intrinsics. what is that mean by 0.5*(width-1)+offset[0]width, 0.5(height-1)+offset[1]*height]

hi, check out the supplementary equation (1). it might answer your question.

I want to try your project only use gyro data，so I del ois relevant code，until GetIntrinsics function there is ois_offset and I don't know how to figure out intrinsics. what is that mean by 0.5*(width-1)+offset[0]width, 0.5(height-1)+offset[1]*height]

hi, check out the supplementary equation (1). it might answer your question.

hi,Tks for your reply and I've solved.Another question how to modify FlowNet2? I attempt to replace it by LK with ORB detection and using gyro data  to check whether it can be processed in real-time and How is the performance.Have you try before? Should't FlowNet2 results get pts？ The unet  and net flatten the results in [1,64],[1,4] and do torch_QuaternionProduct, what is that for?（inference.py）
Looking forward to your reply again.


Release/2024 03 28

📜 Description
💡 Motivation and Context
💚 How did you test it?
📝 Checklist

[ ] I reviewed the submitted code
[ ] I launched ./gradlew detekt
[x] I filled the changelog

🔮 Next steps
📸 Screenshots / GIFs

          1 Warning

:warning:
Please add labels to this PR

  Generated by :no_entry_sign: Danger


Disable awesome print

Is it possible to disable awesome print in the console? With Hirb we can do Hirb.disable but I don't think they're an equivalent here.

Hey @derrickmar . I´m going to give this a look.

Add this to {{project}}/.pryrc or ~/.pryrc
Pry.print = Pry::DEFAULT_PRINT

Or, I've refactored this gem to allow live feature toggling, like:
JazzFingers.awesome_print = false
JazzFingers.hirb = true

Plus, it fixes annoying rough edges with hirb-unicode + less.

Hey @steakknife . Could you open a PR with those changes?
I would love to bring them to the next version.

Can't right now, but feel free to steal code: https://github.com/plribeiro3000/jazz_fingers/compare/master...steakknife:master
—
Sent from Mailbox
On Mon, May 25, 2015 at 5:19 AM, Paulo Henrique Lopes Ribeiro
<EMAIL_ADDRESS>wrote:

Hey @steakknife . Could you open a PR with those changes?
I would love to bring them to the next version.
Reply to this email directly or view it on GitHub:
https://github.com/plribeiro3000/jazz_fingers/issues/6#issuecomment-105224067

@steakknife Sure. i will try to do it later today. Thank you for all your work. :+1:

Awesome thanks @steakknife. I'm interested in the changes you made and will see them tomorrow!

Hey @derrickmar. I just realized you did more changes on your fork.
Would you like to bring them in? I just made a PR to remove mandatory dependency on rails/railties/active_support so the usage of the gem does not look so odd on non rails applications.
LMK your thoughts on it.

Hey @derrickmar. With the latest changes here you can just set JazzFingers.awesome_print = false in an initializer and it should take care of deactivate it. =)
As soon as i finish some other changes i will make a new release.


Randomize x/y order when feeding in words

When Chuffed encounters a tie (which is almost-always) it breaks it by grabbing the first argument. This biases it towards the y-coordinates since these are always listed first. This is why the vertical words on the sides consistently have more letters than the horizontal works at the bottom.
We can mix this up by randomly shuffling the x & y arguments. Can maybe implement this directly in Minizinc with a random sampling step, or just using "random" rather than "first fail"

Tried it, didn't help at all.


Bug: Signature component card in FR

Card image in the "Components" page shows the alt text rather than the image in French:
Private Zenhub Image

This is fixed now!


How I get ticker based BTC rate value in USD ?

Hi!
When I run code:
$tickerRate = Poloniex::getTickerBTCRate();
I  get "Warning: file_get_contents(https://poloniex.com/public?command=returnTicker): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in "
How to fix ?
In the class Request,  I setting params - apiKey, apiSecret. I getting data from personal page of site, but I have problem.

Hi,
I have checked right now and all works for me.
My code example:
use conf\Config;

use poloniex\api\Poloniex;

error_reporting(E_ALL);
ini_set('display_errors', 1);

require_once(dirname(__FILE__) . "/../../../vendor/autoload.php");

$poloniex = new Poloniex(Config::POLONIEX_API_KEY, Config::POLONIEX_API_SECRET);

$tickerRate = Poloniex::getTickerBTCRate();
var_dump($tickerRate);

My code:
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
require '../vendor/autoload.php';
use poloniex\api\Poloniex;
$tickerRate = Poloniex::getTickerBTCRate();
var_dump($tickerRate);
but I have 403 error, this my screenshot https://s.nimbus.everhelper.me/share/1238995/tr2ykl0uweznr1tkcnly
what could be the problem ?
What rights can be ? If sending to public api, do not need api_key and secret.

Hi,
your code works for me as well, so maybe you have some server/PHP configuration problems.
You can fix this problems or replace file_get_contents based request functionality with cURL and make pull request to my repo. I have plans to do this in future when have time.

Problem was in my IP, I using proxy and CURL and no problem!


Remove setting neighbors in ipam endpoint

Signed-off-by: lobkovilya<EMAIL_ADDRESS>
Motivation and Context
Issue https://github.com/networkservicemesh/networkservicemesh/issues/895

How Has This Been Tested?

[ ] Covered by existing integration testing
[ ] Added integration testing to cover
[X] Tested locally
[ ] Have not tested

Types of changes

[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

/rebase

@lobkovilya Should we also remove default route <IP_ADDRESS> as part of this SDK cleanup?

@haiodo I think we should parametrize Ipam Endpoint with routes. I planned to do it later because it doesn't affect on issue with 45 connections limit.

@lobkovilya should we in this case parametrise SDK with ARP entries?
I think we could pass a function to SDK to process entries, routes, etc?
@nickolaev Thoughts?

OK so the problem is, that the IPAM we provide with the SDK is kind of bare-bones and I think it should stay very simple. In theory IPAM is a function on its own and is not part of NSM per se. We use it heavily in our examples and tests (CI), that is why it landed in the SDK. We have two approaches here:

state that the IPAM is a simplified example; an MVP, and we keep it as simple as possible to run our tests. Anyone that needs more complex functions shall implement them as an Endpoint
add the Routing and ARP functions as extra composable layers, and people may choose to add them and/or omit them when they create their endpoints.

I would vote for the latter (implement the two new composites) if we have the resources to implement. In this case instead of removing the code, we move it to another file and just insert the ARP. Same for the routes. Of course these layer can be configurable.

@nickolaev I like the second approach as well. I think I can implement it within this PR

@lobkovilya please also update the Pre-defined composites at the end of the sdk/README.md.

@haiodo I'd like this one merged. Can you please approve the changes if you agree with them? I'm rerunung the CI now.


sync downstream devel with upstream devel

Current code uses an !A && !B condition incorrectly to
test A:Up and B:status for a remote peer image.
This should be !A || !B as we require both conditions to
be in the specified state (Up: true, and status Unknown).
This is corrected by this commit, and further fixes:

check and return ready only when a remote site is
found in the status output
check if all peer sites are ready, if multiple are found
and return ready appropriately

Signed-off-by: Shyamsundar Ranganathan<EMAIL_ADDRESS>
Describe what this PR does
Provide some context for the reviewer
Is there anything that requires special attention
Do you have any questions?
Is the change backward compatible?
Are there concerns around backward compatibility?
Provide any external context for the change, if any.
For example:

Kubernetes links that explain why the change is required
CSI spec related changes/catch-up that necessitates this patch
golang related practices that necessitates this change

Related issues
Mention any github issues relevant to this PR. Adding below line
will help to auto close the issue once the PR is merged.
Fixes: #issue_number
Future concerns
List items that are not part of the PR and do not impact it's
functionality, but are work items that can be taken up subsequently.

Show available bot commands
These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:

/retest ci/centos/<job-name>: retest the <job-name> after unrelated
failure (please report the failure too!)
/retest all: run this in case the CentOS CI failed to start/report any test
progress or results

/cc @agarwal-mudit @nixpanic
/cherry-pick release-4.12
/cherry-pick release-4.11


KAFKA-4747: add metrics for KafkaConsumer.poll

KafkaConsumer heavily depends on KafkaConsumer.poll yet we don't have metrics directly associated with it.
We probably want to add two metrics:

time spent in KafkaConsumer.poll
time since last KafkaConsumer.poll (measured as now - endTimeOfLastPoll)

@onurkaraman : Thanks for the patch. I am wondering if the existing metrics in the Selector are enough for this. Currently, the Selector exposes 2 metrics: io-ratio and io-wait-ratio. The latter tracks the fraction of the time the selector is blocked on a select() call. The former tracks the amount of time of processing requests/responses from the socket. The rest of the time (1 -io-ratio - io-wait-ratio) is the time spent in the application, which gives you the time spent by the consumer application in the case of KafkaConsumer. If this value is close to 1, you know the bottleneck is in the application.

If most of the time is in socket io, io-ratio will be high.
If the sockets are idle, io-wait-ratio will be high.
If application is busy, (1 -io-ratio - io-wait-ratio) will be high.
These are the common places where time will be spent.

@junrao good point. Closing the ticket.


Fix DNS records for licensify in integration

We want external DNS to create our internal DNS records and we update the public facing records in govuk-dns-tf instead.

Sorry I didn't spot this in the earlier PRs!

No worries! I should have noticed the config on other publishing apps.


Use distributed.Client instead of distributed.asyncio.AioClient

As suggested by @danpf in https://github.com/dask/distributed/issues/2537#issuecomment-466050723
Many thanks @danpf, this seems to work!
Confirmed to work with distributed==1.25.3

Thanks for handling this! We may to also need to depend on tornado>=5 for this to work, right?
Also another reason to work on #181 soon, which would have detected this issue for us.

Thanks for handling this! We may to also need to depend on tornado>=5 for this to work, right?

Yes, confirmed with test. See new commit in this PR for new version dependency!

Also another reason to work on #181 soon, which would have detected this issue for us.

Yes! :-)

Thanks for handling this! We may to also need to depend on tornado>=5 for this to work, right?

Yes, confirmed with test. See new commit in this PR for new version dependency!

Also another reason to work on #181 soon, which would have detected this issue for us.

Yes! :-)

Btw, the reason it requires tornado 5: https://www.tornadoweb.org/en/stable/releases/v5.0.0.html#highlights

The focus of this release is improving integration with asyncio. On Python 3, the IOLoop is always a wrapper around the asyncio event loop, and asyncio.Future and asyncio.Task are used instead of their Tornado counterparts. This means that libraries based on asyncio can be mixed relatively seamlessly with those using Tornado

As I understand it, before tornado 5, interoperability between tornado and asyncio apps was limited, hence AioClient.

Merged, thanks!


modbus-write and modbus-flex-write not working in 0.10.7

FC16 works in 0.9.5, but not in 0.10.7. In 0.10.7, the node connects to the remote Modbus-TCP device, but there is no output when the flow is triggered.

please try npm install<EMAIL_ADDRESS>

please try npm install<EMAIL_ADDRESS>

there is a whole new modbus communication and queueing in v0.11.x to get more control from the nodes in node-red - may you need more than one connection to your gateway, if the workload is to high - when all nodes sending together every second for example - or you have to find the right queue command delay for your device


Sick work FAM!

Yo man, good work on this, looks dope.
I'm honored to be the first PITA.
OS:  windows 10E x64 1703
Python:  2.7.13
Error:
ImportError: No module named annoying.decorators

I've tried both localhost and a LAN IP and different ports just in case that was the issue.
console output:
Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd c:\liquid_dl

c:\liquid_dl>python
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
Exception KeyboardInterrupt in <module 'threading' from 'C:\Python27\lib\threading.pyc'> ignored

c:\liquid_dl>python manage.py runserver localhost:8000
Performing system checks...

Unhandled exception in thread started by <function wrapper at 0x00000000049902E8>
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django\utils\autoreload.py", line 228, in wrapper
    fn(*args, **kwargs)
  File "C:\Python27\lib\site-packages\django\core\management\commands\runserver.py", line 125, in inner_run
    self.check(display_num_errors=True)
  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 359, in check
    include_deployment_checks=include_deployment_checks,
  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 346, in _run_checks
    return checks.run_checks(**kwargs)
  File "C:\Python27\lib\site-packages\django\core\checks\registry.py", line 81, in run_checks
    new_errors = check(app_configs=app_configs)
  File "C:\Python27\lib\site-packages\django\core\checks\urls.py", line 16, in check_url_config
    return check_resolver(resolver)
  File "C:\Python27\lib\site-packages\django\core\checks\urls.py", line 26, in check_resolver
    return check_method()
  File "C:\Python27\lib\site-packages\django\urls\resolvers.py", line 254, in check
    for pattern in self.url_patterns:
  File "C:\Python27\lib\site-packages\django\utils\functional.py", line 35, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "C:\Python27\lib\site-packages\django\urls\resolvers.py", line 405, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "C:\Python27\lib\site-packages\django\utils\functional.py", line 35, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "C:\Python27\lib\site-packages\django\urls\resolvers.py", line 398, in urlconf_module
    return import_module(self.urlconf_name)
  File "C:\Python27\lib\importlib\__init__.py", line 37, in import_module
    __import__(name)
  File "c:\liquid_dl\liquid_dl\urls.py", line 18, in <module>
    from liquid.views import schedule
  File "c:\liquid_dl\liquid\views.py", line 6, in <module>
    from annoying.decorators import ajax_request
ImportError: No module named annoying.decorators

c:\liquid_dl>python manage.py runserver <IP_ADDRESS>:8010
Performing system checks...

Unhandled exception in thread started by <function wrapper at 0x0000000004C812E8>
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django\utils\autoreload.py", line 228, in wrapper
    fn(*args, **kwargs)
  File "C:\Python27\lib\site-packages\django\core\management\commands\runserver.py", line 125, in inner_run
    self.check(display_num_errors=True)
  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 359, in check
    include_deployment_checks=include_deployment_checks,
  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 346, in _run_checks
    return checks.run_checks(**kwargs)
  File "C:\Python27\lib\site-packages\django\core\checks\registry.py", line 81, in run_checks
    new_errors = check(app_configs=app_configs)
  File "C:\Python27\lib\site-packages\django\core\checks\urls.py", line 16, in check_url_config
    return check_resolver(resolver)
  File "C:\Python27\lib\site-packages\django\core\checks\urls.py", line 26, in check_resolver
    return check_method()
  File "C:\Python27\lib\site-packages\django\urls\resolvers.py", line 254, in check
    for pattern in self.url_patterns:
  File "C:\Python27\lib\site-packages\django\utils\functional.py", line 35, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "C:\Python27\lib\site-packages\django\urls\resolvers.py", line 405, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "C:\Python27\lib\site-packages\django\utils\functional.py", line 35, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "C:\Python27\lib\site-packages\django\urls\resolvers.py", line 398, in urlconf_module
    return import_module(self.urlconf_name)
  File "C:\Python27\lib\importlib\__init__.py", line 37, in import_module
    __import__(name)
  File "c:\liquid_dl\liquid_dl\urls.py", line 18, in <module>
    from liquid.views import schedule
  File "c:\liquid_dl\liquid\views.py", line 6, in <module>
    from annoying.decorators import ajax_request
ImportError: No module named annoying.decorators

Sorry I forgot to add the pip requirements to the initial first release but if you use the virtualenv name 'env' I have then all the needed dependencies should be in there. Or if you'd rather install them yourself use this that lists all the dependencies needed then you should be good. Both methods should resolve ImportError, let me know if either work and resolve this issue.

Great that did it! Def include a list of dependancies.

@Kthulu120
Yeah man, I'm not too familiar w Django, and I'm sure you're still working on the config instructions...so no rush buddy.
I'm sure there's just some config VARs that need to be set, but this is where I am now
Using the URLconf defined in liquid_dl.urls, Django tried these URL patterns, in this order:
^admin/
^liquid-dl [name='home']
^ ^ffmpeg$ [name='ffmpeg']
^ ^ffmpeg-submit [name='ffmpeg_submit']
^ ^soundcloud-submit [name='soundcloud_submit']
^ ^wget-submit [name='wget_submit']
The current path, liquid_dl/, didn't match any of these.

Where is the liquid_dl.settings file? I see the settings.py file at /liquid_dl/liquid_dl , is that what I'm supposed to configure?

Your url is liquid_dl when it should be liquid-dl, should resolve your issue. Let me know if this solves your problem.

sorry to be such a noob man, where do I set that variable?

Found the bug
I forgot to comment out {% render_bundle %} in the latest release in the templates/home.html file and uncomment out the script for the 'newest_prod_build' therefore your going to have to do it yourself if you download this before version 1.0.3 is released(which will be released around 9PM CST).

@Kthulu120  - no prob. I'll wait brother.

Hey buddy, I assume you didn't get around to updating the repo?

@seanvree no because I'm releasing the youtube-do update today also but give me an hour and I'll do a minor release v1. 0.0.3 to fix that error you had.

@seanvree the newest release should fix any issues that your having now


TypeError: 'async for'   v0.4.1

Hi, I have installed the latest version. But there was a problem running the following code:
from chatgpt_wrapper import ChatGPT
bot = ChatGPT()
response = bot.ask("Hello, world!")
print(response)
Traceback (most recent call last):
File "/Users/lxj/PyRespository/chatGPT_test/main.py", line 4, in
response = bot.ask("Hello, world!")
File "/opt/homebrew/Caskroom/miniforge/base/envs/chat/lib/python3.8/site-packages/chatgpt_wrapper/chatgpt.py", line 503, in ask
return asyncio.run(super().ask(message))
File "/opt/homebrew/Caskroom/miniforge/base/envs/chat/lib/python3.8/site-packages/nest_asyncio.py", line 35, in run
return loop.run_until_complete(task)
File "/opt/homebrew/Caskroom/miniforge/base/envs/chat/lib/python3.8/site-packages/nest_asyncio.py", line 90, in run_until_complete
return f.result()
File "/opt/homebrew/Caskroom/miniforge/base/envs/chat/lib/python3.8/asyncio/futures.py", line 178, in result
raise self._exception
File "/opt/homebrew/Caskroom/miniforge/base/envs/chat/lib/python3.8/asyncio/tasks.py", line 280, in __step
result = coro.send(None)
File "/opt/homebrew/Caskroom/miniforge/base/envs/chat/lib/python3.8/site-packages/chatgpt_wrapper/chatgpt.py", line 463, in ask
response = list([i async for i in self.ask_stream(message)])
TypeError: 'async for' requires an object with aiter method, got generator

Same

I'm getting this problem too on first gen M1 and ubuntu 20.04. Works on a later version of ubuntu

Duplicate of #185


Send extra command without Write to File

I encountered an issue with the backspace functionality in the Shell. To resolve this, I had to execute the command stty erase ^H. However, I don't want to write this command to File as it would cause unnecessary clutter at the start of the terminal emulator.

This is not an issue. If you don't want to write it to file, don't. Not much the lib can do here.


can't scroll up to login with  MAL

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to 'settings>tracking'
Click on 'connect'
Scroll down to 'couldn't'
See error

Expected behavior
show login button
Screenshots

Desktop (please complete the following information):

Version [even before 1.5.6]

Additional context
login option couldn't been seen but was there for anilist problably because of longer page for MAL

what is your display resolution?

1366 × 768
Its okay  if not possible just making sure it's not a bug
On Sat, 3 Feb 2024, 17:00 Insomniachi, @.***> wrote:

what is your display resolution?
—
Reply to this email directly, view it on GitHub
https://github.com/insomniachi/Totoro/issues/84#issuecomment-1925290972,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZ7G65XFUTJOJ53FBGJQIALYRYNVNAVCNFSM6AAAAABCW6YOU2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRVGI4TAOJXGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

It's possible, I just need to reduce the height of the dialog.

Ok, thanks.
On Sat, 3 Feb 2024, 21:34 Insomniachi, @.***> wrote:

It's possible, I just need to reduce the height of the dialog.
—
Reply to this email directly, view it on GitHub
https://github.com/insomniachi/Totoro/issues/84#issuecomment-1925368002,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZ7G65RBIADBID7RG34CJZTYRZNXDAVCNFSM6AAAAABCW6YOU2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRVGM3DQMBQGI
.
You are receiving this because you authored the thread.Message ID:
@.***>


fix(#342): Items Can be Missing When Paging

Added a test case and resolved the issue described in #342

LGTM!
Thank you @kopertop for your contribution.
There is a linter error in test/suppressions.test.ts file.
Please fix it, and then I will merge the PR.

Thank you @kopertop one more time.
I will fix the linter issue in a separate PR.


New package: SDD v0.1.0

Registering package: SDD
Repository: https://github.com/pedrozudo/SDD.jl
Created by: @pedrozudo
Version: v0.1.0
Commit: 3d4e323ed542d8ef08e6ba4cedeb7f63153019bb
Git reference: master

this is a julia wrapper for a library written in C:
http://reasoning.cs.ucla.edu/sdd/
this is why the name of the package does not pass the auto-merge guideline checks.

https://julialang.github.io/Pkg.jl/v1/creating-packages/index.html#Package-naming-guidelines-1
Guideline 1:

Avoid jargon. In particular, avoid acronyms unless there is minimal possibility of confusion.
It's ok to say USA if you're talking about the USA.
It's not ok to say PMA, even if you're talking about positive mental attitude.

Guideline 4:

Err on the side of clarity, even if clarity seems long-winded to you.
RandomMatrices is a less ambiguous name than RndMat or RMT, even though the latter are shorter.

That being said, I do acknowledge that the guideline 6 says the following:

CPLEX.jl wraps the CPLEX library, which can be identified easily in a web search.
MATLAB.jl provides an interface to call the MATLAB engine from within Julia.

But I think that naming the Julia package after the library really only makes sense if the library is one of the first search results. For example, if you search for CPLEX, then the IBM web page for the CPLEX Optimizer is the first result. And if you search for MATLAB, then the Mathworks web page for MATLAB is the first result.
But if you search for SDD, then the C library doesn't show up in the first few pages.
So I think that guidelines 1 and 4 are important here.
How about one of the following:

SententialDecisionDiagrams.jl
SDDiagrams.jl

Thanks for having a look at this!
I am not sure I can agree with the point you are making about the search results.
If I look at point six of the guidelines, it says:

Packages that wrap external libraries or programs should be named after those libraries or programs.

It does not really say anything about being easily identifiable in a web search, this is only mentioned in one of the examples. Moreover, if I google (in an anonymous session) "sdd.jl" the first hit is the github repo.

My main point is that when it comes to naming Julia packages, we should prioritize clarity.
If you ask the average Julia user what SDD is, I doubt they will say "Sentential Decision Diagrams".
But I will defer to the other registry maintainers. If any of them support this name, I'll merge this PR.
cc: @StefanKarpinski @fredrikekre @KristofferC and the other registry maintainers.

It doesn't seem like there is a lot of support for this name. I would highly recommend a more descriptive name.
Personally, I can't merge this PR with the current name of SDD.

Again, here are some ideas:

SententialDecisionDiagrams.jl
SDDiagrams.jl
SDDReasoning.jl

Bump.
I cannot merge this pull request with the current name SDD.
I’ll leave this open for two more weeks. If another registry maintainer has not merged it by then, I’ll close this.

Okay, no worries. I changed the name to SententialDecisionDiagrams in the Project.toml file. Is there anything else that I should change? Also, I accidentally made a new pull request.
Thanks for taking care of this!

Closing in favor of #7877


@myRecentActivity error

I found an answer via this link here, encounter @myRecentActivity error when opening Azure DevOps in excel.
https://medium.com/objectsharp/azure-devops-work-item-query-macros-ddf45257af3a

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

ID: 5a718268-1105-4def-5f9e-20ea21afc0d7
Version Independent ID: 0f08fa18-3075-4275-22c7-d5d1c1e260b0
Content: Query fields, operators, and macros/variables - Azure Boards
Content Source: docs/boards/queries/query-operators-variables.md
Product: devops
Technology: devops-agile
GitHub Login: @KathrynEE
Microsoft Alias: kaelli

@aaronleesmu - Thank you for this feedback. I'll update the article to reflect the usage of certain macros only working in the web portal.


adds filter to PivotalTracker API to specify stories with unscheduled…

The Pivotal Tracker API will only return 500 stories. Currently, we grab them regardless of their state, so we are grabbing 'Approved' stories which will be filtered out locally.
I've adjusted the API call to specifically grab the last 500 stories with an 'Unscheduled', 'Started' or
'Unstarted' state.

Coverage increased (+0.003%) to 88.077% when pulling dc41e152f6c7d376e8f1c22e2cdce0a7e2a2d6f9 on scottymeyers:pivotaltracker-missing-stories into 8c5c4be7ca907794f3e7afc7a28c0a4126fd20da on MushroomObserver:master.

Awesome!  Thanks for looking into this, Scott.  I really really want to get this feature tracker back up and working.  Looks like this will be a big help.  I glanced through it and it looks good.  Are you ready, or should I wait a day before merging and pushing out?

Coverage decreased (-0.0006%) to 88.073% when pulling 5113c3fb3cf775e945a7e0c3529d9288a93b1769 on scottymeyers:pivotaltracker-missing-stories into 8c5c4be7ca907794f3e7afc7a28c0a4126fd20da on MushroomObserver:master.

Coverage decreased (-0.0006%) to 88.073% when pulling 5113c3fb3cf775e945a7e0c3529d9288a93b1769 on scottymeyers:pivotaltracker-missing-stories into 8c5c4be7ca907794f3e7afc7a28c0a4126fd20da on MushroomObserver:master.


Update nord color to use a more true background

The background color used should be for background not not the editor pane it self. much like the dark version of the website https://www.nordtheme.com/docs/colors-and-palettes
Ideally the background color should/could be used for the line numbers - that would look good and make the main editor "pop" / seem elivated.

Please provide before and after screenshots.

This is most likely a solaire thing, since #2E3440 is indeed the correct background from the palette.

I'll be closing this for now, but feel free to ask if you need further assistance.

Sorry yes i realize it was the correct colors. it was something with me upgrading that broke the solaire thing, where my main buffer wasn't colored. Thank you for great support.


Add assembly detection and ascii image

Adds assembly detection and ascii image (https://github.com/o2sh/onefetch/issues/2)
The ascii is created through
$ figlet -f 3D%20Diagonal.flf "asm"

Looks great !
Thx @aeter


[backport] Fix split and array_split with indices overrun

Backport of #2814

[automatic post] Jenkins, test this please.

Fixed the backport script to allow simultaneous v6, v7 prs.

Jenkins CI test (for commit ec7c25f7b77f09ad1445c812f051e1beb79ef49a, target branch v7) succeeded!

LGTM!


TransportKind.ipc: Impossible to specify the PIPE path to startup the LanguageClient

Hi all.
I'm trying to write the VSCode extension with the LanguageClient support.
My LSP server already started, and provides the ready pipe path in a form like: '\\.\pipe\qbs-lsp-1884' .
My extension code looks like this:
    private startupLanguageClient(lspSocket: string) {
        const serverOptions: ServerOptions = {
            run: { module: lspSocket, transport: TransportKind.ipc },
            debug: { module: lspSocket, transport: TransportKind.ipc }
        };

        const clientOptions: LanguageClientOptions = {
            documentSelector: [{ language: 'qbs' }]
        };

        this.languageClient = new LanguageClient('Qbs', serverOptions, clientOptions);
        this.languageClient
            .start()
            .then(async () => {
                console.info('Qbs language client started on pipe: ' + lspSocket);
            })
            .catch((reason) => {
                void vscode.window.showErrorMessage('Cannot start Qbs language server: ' + reason);
                console.error('Unable to start Qbs language client on pipe: ' + lspSocket);
            });
    }

So, I have not ideas where in the ServerOptions it is possible to specify the path to the pipe? Is it possible at all?
Because I got the error that the server can't be started:
Cannot start Qbs language server: Error: Pending response rejected since connection got disposed

UPD: I see the comments about the ServerOptions in the LanguageClient sources:
...
If the language server is implemented in a different
 * program language the server simply needs to create a connection to the
 * passed pipe name or port number.
...

but it is unclear this "simply needs to create a connection to the passed pipe name or port number"  where to pass?

Also I tried this options:
        const serverOptions: ServerOptions = {
            run: {
                command: '',
                transport: TransportKind.pipe,
                args: ['--pipe ' + lspSocket]
            },
            debug: {
                command: '',
                transport: TransportKind.pipe,
                args: ['--pipe ' + lspSocket]
            }
        };

then I go the following error:
Unable to start Qbs language client on pipe: \\.\pipe\qbs-lsp-3328, Error: Unsupported server configuration {
    "run": {
        "command": "",
        "transport": 2,
        "args": [
            "--pipe \\\\.\\pipe\\qbs-lsp-3328"
        ]
    },
    "debug": {
        "command": "",
        "transport": 2,
        "args": [
            "--pipe \\\\.\\pipe\\qbs-lsp-3328"
        ]
    }
}

Can someone help me please?

Seems to be worked, nedd to create a wrapper around the Transports, see the similar issue: https://github.com/microsoft/vscode-languageserver-node/issues/1333
Also, the real use-case code can be lloked here (as an example): https://github.com/denis-shienkov/vscode-qbs/blob/master/src/qbslanguageclient.ts