Server crash: _.pick

Perhaps it's trying to pick from something that it can't access?
I20150724-19:01:31.897(-4)? TypeError: Cannot use 'in' operator to search for 'message' in illegal access
I20150724-19:01:31.897(-4)?     at packages/underscore/underscore.js:860:1
I20150724-19:01:31.897(-4)?     at Array.forEach (native)
I20150724-19:01:31.897(-4)?     at _.each._.forEach (packages/underscore/underscore.js:105:1)
I20150724-19:01:31.897(-4)?     at Function._.pick (packages/underscore/underscore.js:859:1)
I20150724-19:01:31.897(-4)?     at [object Object].sessionProto.send (packages/meteorhacks:kadira/lib/hijack/wrap_session.js:107:1)
I20150724-19:01:31.897(-4)?     at [object Object].kadira_Session_send [as send] (packages/meteorhacks:kadira/lib/hijack/set_labels.js:5:1)
I20150724-19:01:31.897(-4)?     at [object Object]._.extend.protocol_handlers.method (packages/ddp/livedata_server.js:666:1)
I20150724-19:01:31.897(-4)?     at packages/meteorhacks:kadira/lib/hijack/wrap_session.js:50:1
I20150724-19:01:31.897(-4)?     at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
I20150724-19:01:31.897(-4)?     at [object Object].sessionProto.protocol_handlers.method (packages/meteorhacks:kadira/lib/hijack/wrap_session.js:49:1)
I20150724-19:01:31.897(-4)?     at packages/ddp/livedata_server.js:546:1

Hmm. What's the Meteor version related to this?
Is it possible to have some kind of reproducible code?
This happens when you throw an "string" from your app rather than an Error
Object.
I can do a fix, but interested to find the root for this issue.
On Sat, Jul 25, 2015 at 5:33 AM Loren Sands-Ramshaw <
<EMAIL_ADDRESS>wrote:

Perhaps it's trying to pick from something that it can't access?
I20150724-19:01:31.897(-4)? TypeError: Cannot use 'in' operator to search for 'message' in illegal access
I20150724-19:01:31.897(-4)?     at packages/underscore/underscore.js:860:1
I20150724-19:01:31.897(-4)?     at Array.forEach (native)
I20150724-19:01:31.897(-4)?     at .each..forEach (packages/underscore/underscore.js:105:1)
I20150724-19:01:31.897(-4)?     at Function..pick (packages/underscore/underscore.js:859:1)
I20150724-19:01:31.897(-4)?     at [object Object].sessionProto.send (packages/meteorhacks:kadira/lib/hijack/wrap_session.js:107:1)
I20150724-19:01:31.897(-4)?     at [object Object].kadira_Session_send [as send] (packages/meteorhacks:kadira/lib/hijack/set_labels.js:5:1)
I20150724-19:01:31.897(-4)?     at [object Object]..extend.protocol_handlers.method (packages/ddp/livedata_server.js:666:1)
I20150724-19:01:31.897(-4)?     at packages/meteorhacks:kadira/lib/hijack/wrap_session.js:50:1
I20150724-19:01:31.897(-4)?     at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
I20150724-19:01:31.897(-4)?     at [object Object].sessionProto.protocol_handlers.method (packages/meteorhacks:kadira/lib/hijack/wrap_session.js:49:1)
I20150724-19:01:31.897(-4)?     at packages/ddp/livedata_server.js:546:1
—
Reply to this email directly or view it on GitHub
https://github.com/meteorhacks/kadira/issues/175.

$ g kadira .meteor/versions
<EMAIL_ADDRESS>$ m --version
Meteor <IP_ADDRESS>

Not sure where a string is being thrown, but thanks!

Okay. I'll do the fix and notify you.
On Sat, Jul 25, 2015 at 6:22 AM Loren Sands-Ramshaw <
<EMAIL_ADDRESS>wrote:

$ g kadira .meteor/versions
<EMAIL_ADDRESS>$ m --version
Meteor <IP_ADDRESS>
Not sure where a string is being thrown, but thanks!
—
Reply to this email directly or view it on GitHub
https://github.com/meteorhacks/kadira/issues/175#issuecomment-124780247.

Maybe could be
Kadira.errors.addFilter (errorType, message, error) ->
  console.log error?.stack

Hmm. That could be.
On Sat, Jul 25, 2015 at 6:25 AM Loren Sands-Ramshaw <
<EMAIL_ADDRESS>wrote:

Maybe could be
Kadira.errors.addFilter (errorType, message, error) ->
console.log error?.stack
—
Reply to this email directly or view it on GitHub
https://github.com/meteorhacks/kadira/issues/175#issuecomment-124780399.

Did a potential fix. Update to latest version.
On Sat, Jul 25, 2015 at 6:26 AM Arunoda Susiripala <
<EMAIL_ADDRESS>wrote:

Hmm. That could be.
On Sat, Jul 25, 2015 at 6:25 AM Loren Sands-Ramshaw <
<EMAIL_ADDRESS>wrote:

Maybe could be
Kadira.errors.addFilter (errorType, message, error) ->
console.log error?.stack
—
Reply to this email directly or view it on GitHub
https://github.com/meteorhacks/kadira/issues/175#issuecomment-124780399
.


cdemu: update packages

Description of changes
cdemu-daemon: 3.2.6 -> 3.2.7
libmirage: 3.2.7 -> 3.2.9
linuxPackages.vhba: 20240202 -> 20240917
fix https://github.com/NixOS/nixpkgs/issues/342530
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[x] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 342549 run on x86_64-linux 1

23 packages built:

cdemu-daemon
image-analyzer
libmirage
linuxKernel.packages.linux_4_19.vhba
linuxPackages_4_19_hardened.vhba (linuxKernel.packages.linux_4_19_hardened.vhba)
linuxKernel.packages.linux_5_10.vhba
linuxPackages_5_10_hardened.vhba (linuxKernel.packages.linux_5_10_hardened.vhba)
linuxKernel.packages.linux_5_15.vhba
linuxPackages_5_15_hardened.vhba (linuxKernel.packages.linux_5_15_hardened.vhba)
linuxKernel.packages.linux_5_4.vhba
linuxPackages_5_4_hardened.vhba (linuxKernel.packages.linux_5_4_hardened.vhba)
linuxKernel.packages.linux_6_1.vhba
linuxKernel.packages.linux_6_10.vhba
linuxPackages_latest.vhba (linuxKernel.packages.linux_6_11.vhba)
linuxPackages_6_1_hardened.vhba (linuxKernel.packages.linux_6_1_hardened.vhba)
linuxPackages.vhba (linuxKernel.packages.linux_6_6.vhba)
linuxPackages_hardened.vhba (linuxPackages_6_6_hardened.vhba)
linuxPackages_latest-libre.vhba (linuxKernel.packages.linux_latest_libre.vhba)
linuxPackages-libre.vhba (linuxKernel.packages.linux_libre.vhba)
linuxPackages_lqx.vhba (linuxKernel.packages.linux_lqx.vhba)
linuxPackages_xanmod.vhba (linuxKernel.packages.linux_xanmod.vhba)
linuxPackages_xanmod_latest.vhba (linuxKernel.packages.linux_xanmod_latest.vhba ,linuxPackages_xanmod_stable.vhba)
linuxPackages_zen.vhba (linuxKernel.packages.linux_zen.vhba)

https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#commit-conventions

Not applicable, as there are multiple packages with multiple versions. Version numbers are in commit description.

Excuse me??
Make it one commit per package.

Not applicable, as there are multiple packages with multiple versions. Version numbers are in commit description.

For multiple packages there should be multiple commits. That's how we are doing it for years.

Excuse me?? Make it one commit per package.

 Reverting a working commit that fixes a bug out of spite?!
cc @NixOS/moderation please tell em, before I get spicy again

I would have squashed the PR anyway, so what's the difference?

Please don't do that. It would render the commit guidelines pointless.

I know that @NixOS/moderation is currently catching up on everything, and I promised to wait for them until I respond further.
But since this is now crossing over into bullying / harrassment / dogpiling again (and I do in fact have emotions as well), I will now lock this thread. Even if you have the ability to circumvent the lock, please take a moment to consider your facts and your goals, before doing so.

While the commit message thing here is a pretty mild violation of our contribution guidelines, and I think @dotlambda’s reaction was excessive, @bendlas’s self‐merge after disregarding the review comments and reaction to pushback, combined with his other recent behaviour, does force me to the conclusion that he is either incapable or unwilling to productively participate collaboratively in our shared project, and that his attitude towards others falls short of what we ought to expect for a committer.
For the benefit of the moderation team, since they have been pinged anyway, I will link recent incidents where I found his behaviour outside of the bounds of acceptable conduct for Nixpkgs (even though I would say the same of some of his interlocutors in them too), though moderators already posted in or were pinged with regards to several of these already:

https://discourse.nixos.org/t/can-we-please-stop-breaking-stuff-willy-nilly/48496, https://github.com/NixOS/nixpkgs/pull/318599, https://github.com/NixOS/nixpkgs/pull/331465

https://github.com/NixOS/nixpkgs/pull/337478

https://github.com/NixOS/nixpkgs/pull/340663#discussion_r1759722787

I am not sure if the jurisdiction here falls properly under the moderation team or the Nixpkgs committer delegation team, but sadly I have found @bendlas to regularly be the centre of deeply unpleasant threads that waste a lot of contributor time and frequently involve him directing flippant snark at others after they escalate to the point of being referred to the moderation team.
I won’t post further in this thread before the moderation team gets to it, as I have no desire to encourage any pile‐ons or get involved in one of these situations again, but given that this is the fourth incident in less than three months I felt it important to point to some of the context here.

Results are in and I have been formally warned by the mod team, as a first step towards getting banned.

@emilazy I am deeply, deeply disappointed that you decided to circumvent the lock, especially since you seem to be looked at as an arbiter of justice by some.
I also think that in your list, you may have forgot the one instance, where I complained about a 2-weeks ultimatum being given to maintainers

https://github.com/NixOS/nixpkgs/issues/332957#issuecomment-2274824965

I do think I have more than adequate justifications for each of the instances listed, but as I've predicted, nobody is going to try to hear it, we're all doing this for fun and in our free time, aren't we?

@bendlas’s self‐merge

Just out of interest: Is anybody, who's been using this argument aware, that I've not only been the sole maintainer for the cdemu packages, but also its original creator?
In fact, cdemu was the very first thing, that I packaged for NixOS, back when we were still desperate for help. The experience is what gave me confidence enough to go all-in on NixOS, because even as a novice I could create a package with a kernel module, and it's still holding up today!
Since that package is actually the reason I got my maintainer status, I think it will be more than a little poetic if it's also the reason I'm leaving. That's the kind of drama, I'm actually here for :heart_eyes:

deeply unpleasant threads that waste a lot of contributor time and frequently involve him directing flippant snark

So many other things to respond to, so little time. I'm picking this, because it perfectly embodies the "whack-a-mole" mentality, that seems to be taking hold in the community: Me being the mole, that dared raise its head and speak.

Real change is never pleasant. You rustaceans should know by now, or how's that introduction to linux going for you?
It's hard to stay level-headed, when you're straw-manned to death by flying monkeys. I personally think, I've done an above-average job on this, never resorting to personal insults in exchange. may the fates treat you more favorably, when it's your turn in the outgroup.
I think wasted time can actually be a good thing, if the direction we're going is wrong

especially if it's not "wasted" but actually makes people think about what we're doing. I may have failed on that one

I think flippant snark is a very adequate reaction, when faced with the insinuation that you shouldn't have a voice in the conversation

Make it one commit per package.

@dotlambda you broke it, you fix it. I've re-opened the original issue and put you as owner. I think this is fair, because even my harshest critics seem to agree that using the commit log to carry out a grudge is way over the line.

Where does this leave us?
I'm not gone yet, but I am also deeply disappointed in the mod team's idea of mediation - just a moderator interrogating me. There was no negotiation with counterparties, no weighing of facts, and the reason I'm the only one being formally warned is because apparently "everybody" (?) else apologized (in private? to the mod team?). And now the "mediation" is over and everybody has better things to do :unamused:
I already knew that there was no appeal process, despite the warning being called "formal" (yes I know, nobody wants to hear it!). It still stings when its your turn. Trust me.
To summarize: The overwhelming trust advance that I held for the mod team is squandered. I kind of feel like a fool now for trolling the RFC-175 folks as hard as I did, just a few weeks ago, and partaking in the laughter when people told me "those never contributed anything to nixos".

And to everybody who's been ganging up on me, instead of seeking dialogue: Rest assured that I will be more careful with my wording from now on

To everybody at all: My DMs remain open
P.S.:
Please somebody more adept in tone policing tell me if this message is within bounds. I honestly have a hard time telling.

Moderation team hat on:
Let's not escalate this further.

That's fine, just for completeness sake: to be concluded here https://github.com/NixOS/nixpkgs/pull/342883


can not find the method in UIFont extension

Hi Norma:
I find that the main ViewController can not find the convenience init method in UIFont extension when using CoCoaPods.  I wonder weather or not apple have change the access level in extension when using "puclib" key word.

Of course it didn't find it--you didn't import UIFontComplete at the top of your file.

ehhhh….  Extension stuff should import the Modual too?  Sorry for that mistake.
On 2017年4月18日 +0800 AM10:12, Jason R Tibbetts<EMAIL_ADDRESS>wrote:

Of course it didn't find it--you didn't import UIFontComplete at the top of your file.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@jrtibbetts Thanks for answering the question! 💯
@sishenyihuba Thanks for raising the issue! after importing with import UIFontComplete
can you use the library now?


buuf-icon-theme: init at 3.45

Description of changes
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Hey @h7x4,
I have applied the tips from your comments to the derivation.
I was unsure about picking the correct message for the new commit.
Is it okay?

Right! Commits in nixpkgs are generally very coarse. We squash all commits into logical units that does one single thing, no matter how big or small. So it'd be great if you could squash the fixup commits into the buuf-icon-theme: init at 3.45 commit, since these are technically part of creating a new package.

I've reworked the commit structure so that it corresponds to the standard in nixpkgs.
Additionally, I've deleted the unnecessary rec keyword.
I'm sorry for my previous misunderstandings, and thank you for helping me out.

Wow! Still got a lot of learning to do...
I have squashed all the commits into buuf-icon-theme: init at 3.45 and also deleted the redundant rec keyword.
I'm sorry for my previous misunderstandings, and thank you for helping me out!

No worries :grin:
Since this is your first contribution, I'll assume you're not that familiar with the process of getting things merged here. It can sometimes require quite a bit of patience, as there are a lot more PRs than there are available reviewers and especially committers (~200 people with varying degrees of spare time).
There are some ways to speed up the process. There are some discourse threads named PRs ready for {reviews,testing,*}, where you can post a link and hope someone will review it. There's also the matrix dev channels, where you can chat with people and ask questions.
Alternatively, if you feel like you're up for a challenge, we'd really appreciate help with reviewing other PRs as well! There are several ways to help review PRs without deep knowledge of nix, NixOS or nixpkgs, for example by building software in other PRs using nixpkgs-review, and making sure it works. This would help speed up the review process for everyone, but it's completely optional of course.

Now you should be able to build the package 😁.

There seems to be a bit of weirdness with the distribution of the package. Dead symlinks, pngs marked with the executable bit, xcf files for only the plus symbol, the .git directory included. But that's an upstream issue. Not sure if it's a blocker.

I'm closing this pull request. I have found a better version of the buuf-icon-theme under a different name. And again, thank you for your help :-)


Research on how to compute u^2 + I(w^2) when there is topography

We plan to try computing u_ig^{ij}u_j as the following

compute u_ig^{ij}u_j (i,j=1,2) at cell centers
compute u_3g^{33}u_3 = I(u_3^2) g^33
compute u_ig^{i3}u_3 = u_ig^{i3}I(u_3) and u_3g^{3i}u_i = u_3g^{3i}I(u_i)
here I is the interpolation from face to center. This will be done after 2 successes.

See Simon's document (on Slack).


feat: :art: format phone number

@tobycm refactor if @tobycm want to

conflict 😬
@pdt1806 solve pls xddd

oh damn ok

@tobycm resolved

enjoy ur meal


Automated tests

This task is about researching and implementing automated end-to-end tests for Enso application.
First, we need to research existing frontend-testing frameworks to see what is suitable to our app, possibly providing a PoC of one of those.
If we don't find any, there are still remnants of old "integration tests" which were abandoned at some point. Those were wasm-bindgen tests with the engine run in the background, and all user interactions were simulated by triggering proper FRP endpoints in one of the view component. However, it had regular false-failures due to timeouts or other wasm-bindgen  tweaks. The solution would be making lesser number of longer cases (the already improved app performance might help as well).

Closing in favor of #8487 + work already done in GUI2.


Update font-3270-nerd-font-mono to 1.1.0

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] The commit message includes the cask’s name and version.

Additionally, if updating a cask:

[ ] sha256 changed but version stayed the same (what is this?).
I’m providing public confirmation below.

Thank you for the contribution. It was merged directly as 5ea379e45debd5dde503f1e91641fe4815b0a4d1. Your contribution is still credited to you.


v0.11.2 has not been released to Bazel registry

v0.11.2 tag exists in repository, but not in Bzlmod registry: https://registry.bazel.build/search?q=graal

Thanks for flagging @marekkrk. The release flow is a little buggy and it failed at 0.11.2. I haven't had time to fix it yet. I'll see if I can get it out, and fix the pipeline in the next release so that releases are no longer delayed.


Set salesforce connector to use TwitterScreenName__c as default id

This makes it easier for demo and in the example as the contract object that it uses expects this as the PK

Now its auto configured
Connector resolved: salesforce-upsert-contact -> salesforce:upsertSObject?sObjectIdName=TwitterScreenName__c


ai.djl.repository.zoo.ModelNotFoundException: No model with the specified URI or the matching Input/Output type is found.

Description
following https://github.com/deepjavalibrary/djl/blob/master/extensions/tokenizers/README.md
for Use DJL HuggingFace model converter (experimental)
public void setup() {
    Criteria<QAInput, String> criteria =
        Criteria.builder()
            .setTypes(QAInput.class, String.class)
            .optModelPath(
                Paths.get(
                    "myproject/src/test/resources/roberta-base-squad2.zip"))
            .optProgress(new ProgressBar())
            .build();
    try {
      model = criteria.loadModel();
    } catch (IOException ex) {
      System.out.println(ex.toString());
    } catch (ModelNotFoundException ex2) {
      System.out.println(ex2.toString());
    } catch (MalformedModelException ex3) {
      System.out.println(ex3.toString());
    }
  }

also tried https://huggingface.co/deepset/roberta-base-squad2. hit with the same issue
Expected Behavior
able to load the model and the following code should run.

  String question = "When did BBC Japan start broadcasting?";
  String paragraph =
      "BBC Japan was a general entertainment Channel. "
          + "Which operated between December 2004 and April 2006. "
          + "It ceased operations after its Japanese distributor folded.";
  QAInput input = new QAInput(question, paragraph);

public void checkInference() {
    assertNotNull(model);

    Predictor<QAInput, String> predictor = model.newPredictor();
    assertNotNull(predictor);

    try {
      String result = predictor.predict(input);
      assertEquals(result, "December 2004");
    } catch (TranslateException ex) {

    }
  }

Error Message
(Paste the complete error message, including stack trace.)
How to Reproduce?
(If you developed your own code, please provide a short script that reproduces the error. For existing examples, please provide link.)
Steps to reproduce
run the test
What have you tried to solve it?
tried different model.
tried unzip and used bert-base-cased-squad2.pt for path

You need to provide a translator in the criteria. This may depend on the specific model you are using. You can try using our MxBertQATranslator, PtBertQATranslator, or hf tokenizer QuestionAnswerTranslator as a reference


Debug transmission

Hi thanks for the great library.
I'm having issues with a particular serial device. Using CoolTerm or SwiftSerial I can send commands to it fine. However using ORSSerialPort it never works. I checked all the port settings and I've checked the raw data I pass to send() and its exactly what is sent using CoolTerm and SwiftSerial. So I'm wondering if something else is being sent as well in the internals, and how I can debug this? ORSSerialPort works fine with all other serial devices I've used it with in the past. It's just this one device which is a bit sensitive it seems.
Any pointers appreciated.

Can you tell me details of the device? Also, does it just silently fail to send anything? Or does it send garbage? Something else?

It's a Tenma 72-2540 bench power supply. Just trying a simple example of sending OUT1 ascii encoded. Which should turn it on. send() returns true. Unfortunately the Tenma doesn't have anything for me to see what is happening which is why I wondered if I can debug what is being sent.
It might not be in the send command, it could be something which is sent or setup during open() I guess. I just know the device is very sensitive, send it something it's not expecting it will lock up :)
Thanks


End to end encrypted messaging.

Client hashes password.
First 32 bytes are AES key.
Rest are password sent to server.
Client generates RSA key pair.
Client encrypts private key with AES key.
Client sends public key and encrypted private key to server.
When a user logs in, they will send the [32-length] bytes of hash as their password, download their encrypted private key, then use the [0-32] bytes of hash as the AES key to decrypt it.
The server never knows their password or their private key, and can therefore never read any of their messages.
Users can login to any system and be able to read all of their encrypted messages.
Now users can send a message by encrypting with client's public key.
Client can decrypt messages with their private key.
Users will encrypt messages with their own public key as well, so they can read their own messages.

In the readme now.


Day Schedule displaying next day

As title mention, day view is displaying classes that should be on the next day.

Fixed by #40


Primary index is not used when filtering on doc._key

My Environment

ArangoDB Version:        3.7.10
Storage Engine:             RocksDB
Deployment Mode:       Single Server
Deployment Strategy:   Manual Start
Configuration:
Infrastructure:               own
Operating System:        Ubuntu 18.04
Total RAM in your machine:         128Gb
Disks in use:        HDD
Used Package:              Ubuntu .deb

Component, Query & Data
Affected feature:
AQL query using web interface | arangosh | with driver
AQL query (if applicable):
for v in votes
	filter v.user_id == '100585386'
	filter !v.generated
	filter v.type == "determination"
	for o in observations
		filter o._key == v.observation_id
		filter o.author.id != '100585386'
		filter o.computed.valid == true
		filter o.computed.current_name != o.submitted.name
		filter v.value == o.computed.current_name
		collect with count into c return c

AQL explain and/or profile (if applicable):
Query String (367 chars, cacheable: true):
 for v in votes
 	filter v.user_id == '100585386'
 	filter !v.generated
 	filter v.type == "determination"
 	for o in observations
 		filter o._key == v.observation_id
 		filter o.author.id != '100585386'
 		filter o.computed.valid == true
 		filter o.computed.current_name != o.submitted.name
 		filter v.value == o.computed.current_name
 		collect with count into c return c

Execution plan:
 Id   NodeType          Est.   Comment
  1   SingletonNode        1   * ROOT
 23   IndexNode            3     - FOR v IN votes   /* hash index scan, projections: `value`, `observation_id`, `generated` */    FILTER ! v.`generated`   /* early pruning */
 22   IndexNode            3       - FOR o IN observations   /* hash index scan, projections: `submitted`, `computed`, `_key`, `author` */
 10   CalculationNode      3         - LET #9 = ((o.`_key` == v.`observation_id`) && ((o.`author`.`id` != "100585386") && (o.`computed`.`current_name` != o.`submitted`.`name`)))   /* simple expression */   /* collections used: o : observations, v : votes */
 11   FilterNode           3         - FILTER #9
 20   CollectNode          1         - COLLECT  WITH COUNT INTO c   /* count */
 21   ReturnNode           1         - RETURN c

Indexes used:
 By   Name              Type   Collection     Unique   Sparse   Selectivity   Fields                                          Ranges
 23   idx_10220207381   hash   votes          false    false        31.94 %   [ `user_id`, `type` ]                           ((v.`user_id` == "100585386") && (v.`type` == "determination"))
 22   idx_49033         hash   observations   false    false        60.05 %   [ `computed.valid`, `computed.current_name` ]   ((o.`computed`.`valid` == true) && (v.`value` == o.`computed`.`current_name`))

Optimization rules applied:
 Id   RuleName
  1   move-calculations-up
  2   move-filters-up
  3   move-calculations-up-2
  4   move-filters-up-2
  5   use-indexes
  6   remove-filter-covered-by-index
  7   remove-unnecessary-calculations-2
  8   fuse-filters
  9   reduce-extraction-to-projection
 10   move-filters-into-enumerate

Steps to reproduce

Run the query.

Problem: The primary index is not used.
Expected result: The primary index is used.
Note : if I replace filter v.value == o.computed.current_name (to force the use of the primary index) by
let tmp = CONCAT(o.computed.current_name, '')
filter v.value == tmp

the request takes 400ms to execute instead of 180s.
Thank you for your help.
All the best,

PS: on our test environment, the primary index is used while running the original AQL query.
Indexes used:
 By   Name              Type      Collection   Unique   Sparse   Selectivity   Fields                  Ranges
 26   idx_11017027969   hash      z_votes      false    false         7.00 %   [ `user_id`, `type` ]   ((v.`user_id` == "100585386") && (v.`type` == "determination"))
 25   primary           primary   z_obs        true     false       100.00 %   [ `_key` ]              (o.`_key` == v.`observation_id`)

@AntoineAA : I remember having worked on improving the index selection internals recently.
The change was done via PR https://github.com/arangodb/arangodb/pull/13687, which was merged into 3.7 via commit 70821bcde4ac15714709d40aadc40a8c11bd9e4d about a month ago. The change was triggered by Github issue https://github.com/arangodb/arangodb/issues/13665.
I just checked and found that the particular commit should be in tag v3.7.11, which fortunately was released by now. It came out just yesterday.
So could you check if with 3.7.11 the index selection has got better for this particular query?

@jsteemann this issue is happening on our production server, we can't shut down our services during the spring. For now, I will change the AQL query as in my second message to work around the problem.
Tank you for your reply.
I will keep you informed as soon as we have updated to version 3.7.11

Ok, thanks. potentially it is also possible to use an index hint to force usage of the primary index here. I haven't tried it right now, but just wanted to mention the possibility of using something like
FOR doc IN collection OPTIONS {indexHint: "primary", forceIndexHint: true }
  FILTER doc._key == ...
  FILTER ... /*other filters*/
  ...

ok, I'll try it!

Interestingly, there appear to be cases in which the primary index cannot be forced with an index hint: #14052

@Simran-B : yes, looks like. I think in #14052 this happens because the index hints currently work per FOR node, and if there are two subconditions on different indexes, then the optimizer will try to enforce the same hint for both indexes. Which in this case simply does not work because for one condition the primary index is needed and for the other a different index is required.
That said, ticket #14052 is for 3.7.10, and a change to improve index selection has been release with 3.7.11. That means the original problem in #14052 may already be fixed with 3.7.11.

@AntoineAA Did you have a chance to upgrade and check whether the index choice is better in 3.7.11, or if you can at least force the use of the primary index as jsteemann suggested?

Hi,
Sorry for the late reply.
I can't upgrade to 3.7.11 for the moment but I forced the use of the index by modifying the request and it works.


Fix CMake issues for using Ramulator as a dependency in other projects

The project encountered compilation issues when integrating Ramulator as a FetchContent dependency in another CMake project. The fix was the use of PROJECT_SOURCE_DIR instead of CMAKE_SOURCE_DIR in the CMakeLists.txt file.

I apologize for the mess I made. I'll close this pull request and open a new one. Sorry for the inconvenience.


Enhancement request: Vue Reactivity support in Html component

Description
Hi there,
I wanted to bring up an issue similar to #407 but with additional details to help clarify the need for an enhancement.
The Html component is an excellent tool for integrating HTML elements within a 3D scene, providing a seamless way to overlay UI components on top of 3D objects. However, it currently does not leverage Vue's Reactivity API, which creates some limitations, especially when dealing with dynamic content.
Problem:
Since the Html component doesn't interact with Vue's reactivity system, I'm forced to use iframes for tasks that would otherwise be straightforward. For example, I'm trying to use D3.js (or similar libraries) to generate charts and render them inside a 3D scene. However, because the container's ref is always null, the SVG generated by D3.js never gets mounted to it. This leaves me with no option but to create a separate view and load it via an iframe.
Why This is a Problem:
Using iframes in this context is far from ideal for several reasons:

Performance Overhead: Iframes introduce additional loading time and memory usage, which could be avoided if the Html component supported Vue's reactivity.
State Management: It complicates state management, as communication between the parent and the iframe is non-trivial.

Example Use Case:
Here is what I was attempting to achieve with a TheChart.vue component, intended to be used inside a TresMesh:
TheChart.vue component code: CodeFile
And here's a minimal reproduction of the desired feature: StackBlitz Example
Suggested solution
It would be incredibly useful if the Html component could integrate with Vue's Reactivity API. This would enable developers to use dynamic, reactive content without resorting to workarounds like iframes.
Alternative
No response
Additional context
No response
Validations

[X] I agree to follow this project's Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

I discovered that directly using a Vue component inside the Html property (with the Html component being inside the TresCanvas instead of the Vue component itself) works as expected. This means we can use Vue components inside the Html component, but those components should not contain the Html component within them.
Here’s an example: StackBlitz Example
If this is the expected behavior we can close this issue.


[SPARK-36939][PYTHON][DOCS] Add orphan migration page into list in PySpark documentation

What changes were proposed in this pull request?
This PR fixes the warning below during PySpark documentation build:
checking consistency... /.../spark/python/docs/source/migration_guide/pyspark_3.2_to_3.3.rst: WARNING: document isn't included in any toctree
done

SPARK-36618 added a new migration guide page but that's mistakenly not added to spark/python/docs/source/migration_guideindex.rst resulting in not being shown.
Why are the changes needed?
To show the migration guides to end users.
Does this PR introduce any user-facing change?
It's not yet released but we should better backport to branch-3.2.
It's a followup of the new page in PySpark documentation (branch-3.2).
How was this patch tested?
Manually built the docs

Merged to master and branch-3.2.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/143915/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/143948/

Sorry for pinging you guys on the this kind of ancient PR, @HyukjinKwon and all.
This seems to land branch-3.2 mistakenly because SPARK-36618 exists on branch-3.3 only.
Currently, this shows a WARNING at branch-3.2.
https://github.com/apache/spark/actions/runs/3834844030/jobs/6527596764
/__w/spark/spark/python/docs/source/migration_guide/index.rst:25:
WARNING: toctree contains reference to nonexisting document 'migration_guide/pyspark_3.2_to_3.3'

In short, although SPARK-36939 landed at 3.2.1. pyspark_3.2_to_3.3 doesn't show up in Apache Spark 3.2.1 documentation becuase it doesn't exist in branch-3.2. Let me revert this from branch-3.2.

https://spark.apache.org/docs/3.3.0/api/python/migration_guide/index.html
https://spark.apache.org/docs/3.2.1/api/python/migration_guide/index.html

Sure, thanks!

Thank you!


File upload issue in 3.1.1 & 3.1.2

After upgrading to 3.1.1, file upload not working.
HTTP ERROR 500 occurs.
PHP version : 5.6.15
The same code works with CI version 3.1.0 or lower.
I have tried with latest CI release 3.1.2, still it is not working.

The HTTP 500 status code means "server-side error", practically translating to "something doesn't work", which you're saying anyway.
But there's a ton of stuff going on in there ... please provide more info.

I am using this simple code to upload files
public function do_upload()
        {
                $config['upload_path']          = './uploads/';
                $config['allowed_types']        = 'csv';

                $this->load->library('upload', $config);

                if ( ! $this->upload->do_upload('csvfile'))
                {
                        echo $this->upload->display_errors();

                }
                else
                {
                        $data = array('upload_data' => $this->upload->data());

                        echo 'Upload Success';
                }
        }

When trying to upload the file HTTP Error 500 appears.
There is no other specific error shown or logged.
Log ends at INFO - 2016-10-28 22:03:06 --> Upload Class Initialized
The same function works perfectly with CI system 3.1.0 or lower version.
My php version 5.6
The same issue reported by other users.
http://forum.codeigniter.com/thread-66504-post-337924.html

Unfortunately, that's not saying anything more ...

Yes, what other information do you expect?

Something that actually points to the supposedly erroneous part of the code ...
I don't know what your logging error level is, or if/where your PHP errors are logged - that may help.
Try commenting out some pieces of code in CI_Upload to see when the error disappears ... stuff like that, you know how to debug.

this is the issue, he wrote about, but i think he made the env. to production not development.

, you need enable in php.ini ;extension=fileinfo.so or ;extension=php_fileinfo.dll

Thanks.
Enabling the php_fileinfo extension works.
I don't know why errors not displayed in development environment. Also, I set ini_set('display_errors', 1); at top of index.php file.
For local XAMPP, editing the php.ini file is enough just uncomment the following line
extension=php_fileinfo.dll
For WHM/Cpanel Apache rebuild needs to install the fileinfo extension.

@karthik-code @hstreams Did you use XAMPP when you encountered the issue?

I encountered the issue both in local development environment XAMPP (Windows) and in production environment LAMP (CentOS).
I wish the required php extensions should be mentioned in the CI upgrade notes.

php.net itself says that this extension is enabled by default since PHP 5.3.
Thus, having to manually enable it is the same as having to manually enable e.g. sessions - it's absurd, and you should blame XAMPP, and apparently CentOS too.
This was not supposed to be a "new requirement", I don't understand why everybody treats it like such.
Especially since we usually get immediate complaints about even the most obscure issues, and we even managed to make a whole new release before this even got reported.

Fileinfo module is disabled by default in Cpanel installations.
https://documentation.cpanel.net/display/EA/PHP+Module%3A+Fileinfo
Also, the same is disabled by default in XAMPP installations.
Since most people are using these development and production environments the issues were reported.

Since most people are using these development and production environments the issues were reported.

Captain Obvious, is that you? :)


Introduce a class which represent a set of GSplines

Motivation
We are working with two different sets of GSpline

Set 1: (Is a Manifold) The set of GSplines that passes through a series of waypoints. Is defined by

Sequence of waypoints
Domain
Basis

Set 2: (Is a Vector Space) The set of Gsplines with unique domain interval lengths. Is defined by

Interval lengths
Domain
Basis

A GSpline set can be a GSpline factory

Why this is necessary
This will be necessary to facilitate the conversion between vectors and GSplines. Both sets allow to represent a GSpline as a vector of differnt nature, i.e. the interval lengths and the basis coefficients (points in Lagrange polynomial representation).

Pros

factory for GSplines alternative to Interpolator
factory for Functionals, derivative, integral, sobolev norm

Cons

Adds an additional data structure
Do not solves the automatic cast between GSplines and vectors.
Do not allow to have a functional that returns a unique type that can behavie as a double, an Eigen::VectorXd and a GSpline.

Possible strategy, decouple memory management from the factory
In the case of the vector space of functions with same interval lengths, basis and dimension of the codomain, we have the following fact. Regardless the domain of the space, the size of the matrices  is for different operators is the same.
In fact, although  different domains induce different spaces (the space of functions in {0,1} is not the space of functions in {0,2}), the memory management is the same.
Following this idea, we can create a singleton class SpaceBuffer which is stored in a map with std::tupe<double,double,double> key. Each one of these SpaceBuffer's have their own space with the derivative matrix, integral operator, transpose operator and matrix multiplication. The the GsplineSpace class, has a pointer to a SpaceBuffer and copies from here the required memory.


Epubtemp

Please mark it with .nomedia. Google+ accidentally pushed images from this folder!
Move it to the Android/data subfolder.
Thanx

Please be aware of https://github.com/pettarin/epub3reader#important-notice-2015-07-27


Not Working if you choose more than 1 connection.

I was tried to use the Network Watcher choosing more than 1 connection but the tool is not working and send the status unhealthy, I tried con confure using automation to monitor my 9 vpn connection status but with this issue the notifications that I configured are working bad.

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

ID: 98a98f9f-f148-f45e-5994-cf1f669d0719
Version Independent ID: 60d700ff-5698-d483-3da7-a3195d7e0cd5
Content: Troubleshoot Azure Virtual Network Gateway and Connections - Portal | Microsoft Docs
Content Source: articles/network-watcher/network-watcher-troubleshoot-manage-portal.md
Service: network-watcher
GitHub Login: @jimdial
Microsoft Alias: jdial

#in-process

Duplicate of #5613

Closed since this is tracked by the MicrosoftDocs/Azure-Docs#5613


panic: trying to decrypt invalid data: ciphertext too small

Output of restic version
restic 0.6.1
compiled with go1.8.3 on windows/amd64
How did you start restic exactly? (Include the complete command line)
d:\restic\restic.exe -r d:\restic\backup rebuild-index
What backend/server/service did you use?
None
Expected behavior
Be able to rebuild the index.
Actual behavior
C:>d:\restic\restic.exe -r d:\restic\backup rebuild-index
enter password for repository:
counting files in repo
panic: trying to decrypt invalid data: ciphertext too small
goroutine 40 [running]:
restic/crypto.Decrypt(0xc0420e20f0, 0xb78100, 0x0, 0x0, 0xb78100, 0x0, 0x0, 0x0, 0xc0441b50e0, 0xc042027000)
src/restic/crypto/crypto.go:280 +0x662
restic/pack.List(0xc0420e20f0, 0xb26fe0, 0xc044185e00, 0x400000, 0x40, 0x400000, 0x0, 0x0, 0xc0421ea140)
src/restic/pack/pack.go:228 +0xbf
restic/repository.(*Repository).ListPack(0xc042038de0, 0x3c7228555392a300, 0x63c3ac493f7c55c, 0xf66e7ddb526bc869, 0xe6fd42ae9401139e, 0x2, 0x2, 0xc0422dffb0, 0x2, 0x2, ...)
src/restic/repository/repository.go:473 +0x17c
restic/list.AllPacks.func1(0x8cca20, 0xc0422d30c0, 0x0, 0x0, 0x0, 0x0, 0xc042230060, 0x8e2440, 0xc0421ea140, 0x0, ...)
src/restic/list/list.go:42 +0xe7
restic/worker.(*Pool).runWorker(0xc0421ebe00, 0x7)
src/restic/worker/pool.go:86 +0x206
created by restic/worker.New
src/restic/worker/pool.go:40 +0x181
Steps to reproduce the behavior
Ran a backup operation (in windows) to an external USB plugged drive, part way through, the USB cable 'apparently' became unplugged. Upon reconnecting the drive, running a 'restic check' prompted to run rebuild-index. This didn't go well.
Do you have any idea what may have caused this?
See steps to reproduce.

I'll have a look, thanks for the report!

I'll have a look, thanks for reporting it. Could you please create a debug logfile? Please be aware that it may contain sensitive data such as file and directory names.

Sure, here you go;
debug.txt
Turns out there is a zero byte length file in the data folder. There might be more, would deleting it be an option?
thanks

Thank you very much, I'll have a look. I think you can safely delete all empty files, restic never leaves empty files behind. That will likely also fix your problem. Please report back!

Ah, cool, but unfortunately it didn't fix it, attached is the latest debug.
debug.txt

Could you paste the stacktrace that matches the debug

Ah, don't bother, I can reproduce it. There's a truncated file somewhere in your repo.

d:\restic\restic -r d:\restic\backup rebuild-index
debug log file debug.log
debug enabled
enter password for repository:
counting files in repo
panic: trying to decrypt invalid data: ciphertext too small
goroutine 51 [running]:
restic/crypto.Decrypt(0xc0420de320, 0xd071d8, 0x0, 0x0, 0xd071d8, 0x0, 0x0, 0x0, 0xc04202e800, 0x5d)
src/restic/crypto/crypto.go:280 +0x662
restic/pack.List(0xc0420de320, 0xcaec60, 0xc0441ecf30, 0x400000, 0x4, 0xc0441f65c0, 0x40, 0x400000, 0x0)
src/restic/pack/pack.go:228 +0xbf
restic/repository.(*Repository).ListPack(0xc0420d09c0, 0xcb3a20, 0xc04203e300, 0x3c7228555392a300, 0x63c3ac493f7c55c, 0xf66e7ddb526bc869, 0xe6fd42ae9401139e, 0xc042280420, 0x6, 0x6, ...)
src/restic/repository/repository.go:474 +0x199
restic/list.AllPacks.func1(0xcb3a20, 0xc04203e300, 0x9cb280, 0xc042342900, 0x0, 0x0, 0x0, 0x0, 0x9e7080, 0xc04200c7c0, ...)
src/restic/list/list.go:43 +0x10a
restic/worker.(*Pool).runWorker(0xc042110000, 0xcb3a20, 0xc04203e300, 0x9)
src/restic/worker/pool.go:86 +0x253
created by restic/worker.New
src/restic/worker/pool.go:40 +0x15d

Could you please give the code in the branch fix-1009 (PR #1011)

Ergh, still no good;

restic version
debug log file debug.txt
debug enabled
restic 0.6.1 (v0.6.1-32-g1aab123-dirty)
compiled with go1.8 on windows/amd64

restic -r d:\restic\backup rebuild-index
debug log file debug.txt
debug enabled
enter password for repository:
counting files in repo
panic: trying to decrypt invalid data: ciphertext too small

goroutine 47 [running]:
restic/crypto.Decrypt(0xc0420e0370, 0xd07220, 0x0, 0x0, 0xd07220, 0x0, 0x0, 0x0, 0xc04216a800, 0x5d)
src/restic/crypto/crypto.go:280 +0x662
restic/pack.List(0xc0420e0370, 0xcaec60, 0xc0442e4090, 0x400000, 0x4, 0xc04203fd40, 0x40, 0x400000, 0x0)
src/restic/pack/pack.go:254 +0xbf
restic/repository.(*Repository).ListPack(0xc0420d69c0, 0xcb3a60, 0xc04203e8c0, 0x3c7228555392a300, 0x63c3ac493f7c55c, 0xf66e7ddb526bc869, 0xe6fd42ae9401139e, 0xc0442b0160, 0x6, 0x6, ...)
src/restic/repository/repository.go:474 +0x199
restic/list.AllPacks.func1(0xcb3a60, 0xc04203e8c0, 0x9cb660, 0xc044273120, 0x0, 0x0, 0x0, 0x0, 0x9e7460, 0xc0420d9680, ...)
src/restic/list/list.go:43 +0x10a
restic/worker.(*Pool).runWorker(0xc042110060, 0xcb3a60, 0xc04203e8c0, 0x9)
src/restic/worker/pool.go:86 +0x253
created by restic/worker.New
src/restic/worker/pool.go:40 +0x15d
debug.txt

Huh, nice! At least two bugs already :)

Lol, at some point I'm going to do a 'restic purge', I'm guessing that might find another ;)

Let's tackle this first. I've pushed another commit in the branch fix-1009, please retry!

Looking good, been running 10 mins and no panics yet, I'll update when it's done, it'll be a while

Ok, at the moment the faulty files aren't deleted, but reported each time you run rebuild-index, check or prune, so you'll need to delete them manually. I'll build something to automatically delete them later.

Yeah, it got to the end finally without panics:

restic -r d:\restic\backup rebuild-index
debug log file debug.txt
debug enabled
enter password for repository:
counting files in repo
unable to list pack 00a39253: readHeader: header length is zero
unable to list pack 09fb8b79: readHeader: header length is zero
unable to list pack 0c618392: readHeader: header length is zero
unable to list pack 100c3798: readHeader: header length is zero
unable to list pack 270ae21a: readHeader: header length is zero
unable to list pack 2fd79209: readHeader: header length is zero
unable to list pack 4b2df316: readHeader: header length is zero
unable to list pack 4dd0ea7c: readHeader: header length is zero
unable to list pack 508c6b8b: readHeader: header length is zero
unable to list pack 5c2555ba: readHeader: header length is zero
unable to list pack 614fde51: readHeader: header length is zero
unable to list pack 71bb41f6: readHeader: header length is zero
unable to list pack 84e78729: readHeader: header length is zero
unable to list pack 861c02a6: readHeader: header length is zero
unable to list pack 99e186fc: readHeader: header length is zero
unable to list pack 9ae278bd: readHeader: header length is invalid
unable to list pack bd0f0f65: readHeader: header length is zero
unable to list pack bf5aafcb: readHeader: header length is zero
unable to list pack ca3af343: readHeader: header length is zero
unable to list pack d35663a7: readHeader: header length is zero
unable to list pack f298fb2c: readHeader: header length is invalid
[1:27:56] 100.00%  60608 / 60608 packs
finding old index files
saved new index as 8eb509bd
remove 114 old index files

Thanks, nice work.

Cool, thanks for the report!


Improve Program Circular Include Message

Adding more info in the exception to make identifying the circular
include more easily.

Codecov Report

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

@@            Coverage Diff            @@
##             master     #273   +/-   ##
=========================================
  Coverage     76.56%   76.56%
  Complexity      379      379
=========================================
  Files            29       29
  Lines          1660     1660
  Branches        148      148
=========================================
  Hits           1271     1271
  Misses          292      292
  Partials         97       97

Continue to review full report at Codecov.

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

Thanks for contributing!


Added Fireship & Bengali YouTubers.

Fireship is a great English channel that makes awesome content. I also added bengali youtubers to help bengalis like me.

Hi @fluentmoheshwar ,
Thanks for your contribution.. Merging!

Hi, you didn't tell you were changing the website theme also, but it looks better now ig. Thanks!

Hi, you didn't tell you were changing the website theme also, but it looks better now ig. Thanks!

I thought that it will only affect my fork.

Hi, you didn't tell you were changing the website theme also, but it looks better now ig. Thanks!

I thought that it will only affect my fork.

No worries, for now let it be, I've asked the mod team of this project, which theme they like the best.


No way to send or stream large files without increasing memory

When sending files to the browser using SS_HTTPRequest::send_file() the entire file is loaded into memory, stored on the response object and passed to the controller.
This means that the script needs access to as much memory as the file takes to store. This can cause PHP to error if the file is larger than the memory limit and crash a server if larger than the available memory. In fact, I suspect because output buffering is used, that twice as much memory is needed.
One way to do this "normally" with PHP is to send the file in chunks (open the file for reading and send it in 1MB chunks for example)
One way to resolve this could be to allow the SS_HTTPResponse::setBody() to accept callbacks so that a function can be used to stream the response to the browser rather than having the response body stored in memory.

PHP already has some ways to serve binary content and using them should be the easiest path to solve that kind of problem.
1. fpassthru
Imagine this code in SS_HTTPResponse::output()
if (is_resource($this->body)) {
    fpassthru($this->body);
    return;
}

echo $this->body;

2. stream_copy_to_stream
if (is_resource($this->body)) {
    $out = fopen('php://output', 'wb');
    // It's also possible to use $maxlength and $offset to send the file partially
    stream_copy_to_stream($this->body, $out);
    fclose($out);
    return;
}

echo $this->body;

What do you prefer?

@lcobucci thanks for looking at this.
What do other frameworks use for this kind of thing? Perhaps we shouldn't put too much effort into this and instead look at moving to use symfony's HTTP foundation component?

The symfony's BinaryResponse uses the second approach.
Personally I like the http foundation component however I think would be a huge change in the current codebase.
My current company is using silverstripe and - unfortunately - they're using their own (outdated) fork and I ran into this need. So I'll probably change things to be able to handle a stream and I believe that will be useful for the framework (that's why I've asked what you prefer :smile:)

I've raised the same issue here where it will probably be fixed: https://github.com/silverstripe/silverstripe-framework/pull/4863

We are looking at implementing a new feature for serving secure assets, but it will be available for any streaming content.

Yeah but #4863 it's not 100% complete, does a lot of things that I don't need and will probably go to v4.0. I need a streaming response now so  probably my changes won't help you guys.

@lcobucci OK - well, if you're going to do it anyway for your own project - if you did the second approach against branch 3 then it'd probably make it in.
for 4.0 I'd like to rip out our HTTP objects and replace them with something better

#4863 doesn't include the change we need... I'm saying it will be included in a follow up though. :)

https://github.com/silverstripe/silverstripe-framework/issues/5462


Fix #4997

Updates all github-action.md files.
Fixes #4997
End-user friendly description of the problem this fixes or functionality that this introduces

[ ] Include this change in the Release Notes. If checked, you must provide an end-user friendly description for your change below

Give a summary of what the PR does, explaining any non-trivial design decisions

Link of any specific issues this addresses

Thank you, this looks good!


Thanks for the great work.

I got the program running.Are there some methods to adjust the back and forward movement of the hand.In my experiment,the hand didn't move back and forward well,it's okay to move left and right.

And when I try to control the hand,my real-world hand often moves beyond the camera frame.Do you know how to solve this problem.

If you're looking to adjust the default correlation between the coordinates of the human hand and the simulation of the robot hand, you may consider altering the orientation at this particular line of code. Experiment with the Euler angle in this section to modify the standard forward and reverse movements.
Regarding the issue of the hand exceeding the space limit, a possible workaround could be to initiate the teleoperation with your hand positioned further from the camera. This offers the camera an enhanced field of perception.

If you're looking to adjust the default correlation between the coordinates of the human hand and the simulation of the robot hand, you may consider altering the orientation at this particular line of code. Experiment with the Euler angle in this section to modify the standard forward and reverse movements.
Regarding the issue of the hand exceeding the space limit, a possible workaround could be to initiate the teleoperation with your hand positioned further from the camera. This offers the camera an enhanced field of perception.

thanks!


Is it still recommendable to use SW on Nginx?

Hi @bcremer,
nice to find an unofficial repository of configurations for nginx from an official Shopware Tech member.
My question is, even so, do you (or is it) still recommended to use Shopware on Nginx, regardless of the official support? Is it reliable? What are the most common examples of something that can go wrong?
Thanks.

One thing that concerns me is that file access is limited with a blacklist instead of a whitelist. For example, the configuration blocks access to autoload.php but not autload.php.backup.
This is an issue with the Apache .htaccess too. But the issue on Nginx is that it will always lag behind changes to the Apache configuration. If Shopware makes changes to .htaccess you might forget to update your Nginx config.
Ideally it should be more like in Laravel where only a certain folder is accessible at all, say, public/, and only a single file is interpreted as PHP, say, shopware.php. That would allow a safer and also easier web server configuration.

Apart from that, Shopware runs fine on Nginx with the config from this repo.

@emilv good point.


Recover evidence with an invalid disease by using xrefs

As a developer I want to recover the evidence with invalid diseases which have a valid cross-reference to a term in EFO.
Background
In the process of analysing the invalid diseases with the most evidence, I have realised that we are not picking up the evidence with a disease ID not included in EFO but for which there is a disease ID with a cross-reference to that missing ID.
Take MONDO_0001708 as an example. This term has not been imported to EFO and hence there are 200 invalid evidence annotated with it.
But EFO currently has DOID_13406, with a reference to the MONDO ID. We could be recovering this evidence if we corrected the mapping to the DOID ID.
Also, a part of the data team work is to QC these cases and ask EFO to add any missing cross-references we might find. And currently this work does not result in any changes for the already mapped evidence we get from the data providers.
Discussion
There are multiple ways that we could post-process such invalid evidence to point them to the right EFO ID. Some that I can think of:

Correct diseaseFromSourceMappedId by querying Ontoma with the disease label or ID. Currently Ontoma does look at the cross-references to find a proper mapping.

otmap.find_term('MONDO_0001708', code=True)
INFO     - ontoma.interface - Processed: MONDO_0001708 → [OnTomaResult(query='MONDO_0001708', id_normalised='DOID:13406', id_ot_schema='DOID_13406', id_full_uri='http://purl.obolibrary.org/obo/DOID_13406', label='pulmonary sarcoidosis')]

Implement a similar step in the ETL by using the dbXrefs field of the disease index.

Report these cases back to our data providers to have their evidence pointing to an EFO ID.

What do you think? I am happy to discuss how relevant you think this ticket is and how we can best tackle it.

If I understand this correctly, diseaseFromSourceMappedId is incorrect in the sense that ID is not in EFO, therefore is not a true mapped id.
I believe any solution should come back to the source of that decision. Whether it was ontoma assigning it or annotation from a provider. These situations also emerge when the ontology updates and annotations get outdated.

Yes, that is the case.
OnToma, to the best of my knowledge, does not return anything outside EFO. So if I ask EFO to add a cross-reference or synonym, the tool will pick it up. On the other hand, we don't process submitted evidence since it is already mapped. That's what I wanted to discuss in this ticket.

Let's stick to #3, I think all the alternative plans add a degree of uncertainty in the mapping process. Xrefs are not always reliable


Fix formatting in CHANGELOG

This adds backticks around symbols which is especially important for symbols with underscores so that Markdown rendering engines aren't so easily confused.
Resolves #1614.

It would be nice to have more eyes on the rest of the changelog as well, make sure we catch everything.

bors r+


prefix contract names for Value or Utility chain

solc does not allow import of relative paths
problem for readability we had moved the contracts that get deployed on the utility chain into contracts/utilityChain/ and on the value chain into contracts/valueChain; but solc deliberately does not access other files on the filesystem without an explicit directory remapping (see https://github.com/ethereum/solidity/issues/757)
solution as the reorg was done for readability, we can opt for a prefix to the contracts filename and collapse the directory structure back to contracts/; contracts that need to be deployed only on the value chain will have a prefix vc as vcMyContract.sol, and contracts that only need to be deployed on the utility chain will have a prefix uc;  contracts that are deployed on both sides, or are inherited don't have a prefix.

on updating the truffle tests; truffle does not support "PrefixContract.sol" to have a contract Contract {} as it does not find the artefacts in the js; as such we will specify in the header of each contract file where it belongs, but drop the folder structure and the prefixes all together.


fix: allow prerender checkpoint

Please ensure your pull request adheres to the following guidelines:

[ ] make sure to link the related issues in this description
[ ] when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes

Related Issues
Thanks for contributing!

:tada: This PR is included in version 2.26.0 :tada:
The release is available on:

v2.26.0
v2.26.0
GitHub release

Your semantic-release bot :package::rocket:


Shell functions style inconsistency

I see that create_plugins_dir and some other functions are not consistent with other function. I've spoke with @tomwilkie, and the reason launch_command does echo docker run ... and is later called from a subshell is because subshell creates new scope, and thereby prevents crazy use of global variables etc. We should decide on which pattern we should go with.

Aren't this caught by the shell linter? (CC @jml )

We're not yet running the linter on all of scope.
On Thu, 8 Sep 2016 at 17:30 Alfonso Acosta<EMAIL_ADDRESS>wrote:

Aren't this caught by the shell linter? (CC @jml https://github.com/jml
)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/weaveworks/scope/issues/1680#issuecomment-245656268,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAHq6mRXRP3uljfswnOuJ5NSV4CSR6NVks5qoDgTgaJpZM4JMclx
.

Oh, I thought we were! We should

Most definitely!
On Thu, 8 Sep 2016 at 17:39 Alfonso Acosta<EMAIL_ADDRESS>wrote:

Oh, I thought we were! We should
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/weaveworks/scope/issues/1680#issuecomment-245659272,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAHq6mKzL2UtU4KVCLGyMAEdHyy8IuHvks5qoDpJgaJpZM4JMclx
.


Master into develop after 2.0.2 hotfix

Pull Request Checklist:

[ ] Positive Test Case Written by Dev

[ ] Automated Testing

[ ] Sufficient User and Developer Documentation

[ ] Passing Jenkins Build

[ ] Peer Code review and approval

Positive Test Case

[Enter positive test case here]

METRIC
VALUE

https://sonarqube.cuahsi-workstation.com:9000/dashboard?id=hydroshare-4884


Development: Full Text Search (from Database)

Right now, the index for search is built application side, this is not super scalable.
We would like to switch to Stardog's full text search.
Issues to keep in mind while doing this:

https://github.com/visualize-admin/visualization-tool/issues/495

Closed with https://github.com/visualize-admin/visualization-tool/pull/611


Append previous master runs to benchmark charts of released branches

With branching enabled, it is possible to view corresponding benchmarks charts of released branches.
However current charts show only the commits since branch point.

It would be good to append earlier commits prior to the branch point.

PR: https://github.com/flutter/cocoon/pull/753 fixes this issue. With this PR, it looks like:

Above chart is for flutter-1.18-candidate.5, which has only one commit (the one when branched out). This commit is located to the most right. Then earlier commits from master are appended to its left side.

@pcsosinski Does this look good to you, or any comments?
/cc @godofredoc @digiter

thanks.  I'm assuming that subsequent cherrypicks onto the branch will be shown as well?   if so, looks great!
this may be a separate discussion, but we will need to figure out how to limit the branches shown at some point (ie 1.17-candidate.3 is the only 1.17 branch we really care about anymore)

Yes. All subsequent cherrypicks will be shown to the right side based on time. Then all prior master commits will be appended to the left side of these cherrypicks.
Created https://github.com/flutter/flutter/issues/55579 to track how to limit branches shown on dashboard.

@pcsosinski Sorry for the late! Please check the benchmark page, it now appends old master data to different branches. Please let me know if any questions.


Page instantiation protection by combined ruleset.

There is currently no way to annotate a page with instantiation rules on
multiple roles. It is possible to use an AuthorizeInstantiation. But
this can only roles using an OR ruleset.
With this annotation in use we are able to combine multiple OR rulesets
in an AND relation.
Example:
A page can be instantiate only by users with ADMIN and DATABASE role.

Created a ticket: https://issues.apache.org/jira/browse/WICKET-6265

I've cherry picked this commit and applied it at wicket-7.x with https://git1-us-west.apache.org/repos/asf?p=wicket.git;a=commit;h=14b922cd.
Git merge/rebase leads to too much noise in the commits@ mailing list.
@rene-d-menoto Thank you for the contribution! Please close this PR!

Thanks for merging.


feat(testing): action component harness and unit tests

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows Conventional Commits
[x] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Refactoring
[ ] Code style update
[ ] Build or CI related changes
[ ] Documentation content changes

💡 Note: I would suggest adding an additional "Test or testing instrumentation changes" type to this list

What is the current behavior?
Partially implements #476
What is the new behavior?
This PR:

adds TuiActionHarness and TuiMarkerIconHarness
adds unit tests for TuiActionComponent using the new harnesses

Does this PR introduce a breaking change?

[ ] Yes
[x] No

I see CI failed but doesn't seem related to these changes, ping me otherwise


pty output in the first block does not render

the xterm container gets 0x0 dimensions. it's ok in subsequent blocks. could this be another regression from removing the carbon css?
Edit: to clarify, this is for streaming output, e.g. while true; do echo hi; sleep 1; done

Nope, this is a regression from Output.tsx importing Scalar.tsx lazily.

Nope, this is a regression from Output.tsx importing Scalar.tsx lazily.


update the CSV every 8 x 15 seconds

This fixes #467

i've done that in #708

Closing this stale PR, please describe your change request, we'll re-open if needed!


Limitations on number of categories

Is there a maximum number of categories that can be trained with Turi Create for image classification? Looking through the documentation in regards to the different pretrained models you can use for transfer learning, Resnet, Squeezenet, and VisionFeaturePrint_Screen all have 1000 categories. Does this mean models created from those also have a max of 1000 categories that can be classified? In my case I have 6000 and am wondering if this will work or be problematic. If so this information would be great to add to to the guide here:
https://apple.github.io/turicreate/docs/userguide/image_classifier/how-it-works.html#pretrained-image-classifiers
Thanks!

@TobyRoseman Thanks! I will plan to try Squeezenet with my 6000 categories and report back, perhaps next weekend I could give it a whirl. I'm currently creating a model with Create ML, so using vision feature print, and it's been training for 24 hours now... 😮 Do you suspect it would be quicker with Turi Create using Squeezenet due to the smaller number of features it outputs?
For some context, the data set is handwritten characters. Just now found in the documentation for Create ML feature extractors, it states in regards to vision feature print: "It isn’t suitable for character recognition, for example, where the input images are highly binary in nature". (This would be good to document in Turi Create as well!) Is that the case for Squeezenet too? From what I read, it sounds like Resnet, Squeenzenet, and VisionFeaturePrint used real-world photographs, so maybe none of them would be ideal for creating character recognition models? Sounds like Squeezenet is the best out of the current options though?

With that many categories, the bottleneck is likely not going to be in the feature extraction phase. Its going to be in the fine tuning phase (which is linear in the number of categories). SqueezeNet may be 2-4x faster but not that more. The amount of data you would need to distinguish between each class might also be more than if you had just 50-100 classes.

@TobyRoseman and @srikris I have results for you with nearly 6000 classes using squeezenet. It took about 9 hours to complete 10 iterations, compared to 21 hours with CreateML using vision feature print scene. However, the accuracy at iteration 10 for TC was not as good as the accuracy of iteration 3 of CML, which took about 9 hours to complete. So, it seems it's twice as fast to iterate, but you have to iterate just as long to obtain the same level of accuracy. Maybe more data would help as noted - I had 10 images for each class.
Turi Create with SqueezeNet:
Logistic regression:
--------------------------------------------------------
Number of examples          : 49264
Number of classes           : 5742
Number of feature columns   : 1
Number of unpacked features : 1000
Number of coefficients      : 5746741
Starting L-BFGS
--------------------------------------------------------
+-----------+----------+-----------+--------------+-------------------+---------------------+
| Iteration | Passes   | Step size | Elapsed Time | Training Accuracy | Validation Accuracy |
+-----------+----------+-----------+--------------+-------------------+---------------------+
| 0         | 1        | NaN       | 1410.938340  | 0.000142          | 0.000410            |
| 1         | 4        | 0.000101  | 6993.121902  | 0.000284          | 0.000000            |
| 2         | 6        | 1.000000  | 11684.099158 | 0.008038          | 0.002048            |
| 3         | 7        | 1.000000  | 14630.014436 | 0.056796          | 0.013923            |
| 4         | 8        | 1.000000  | 17736.467060 | 0.026713          | 0.005733            |
| 5         | 9        | 1.000000  | 20273.712870 | 0.072791          | 0.022113            |
| 6         | 10       | 1.000000  | 22618.025692 | 0.112049          | 0.037674            |
| 7         | 11       | 1.000000  | 25096.515562 | 0.178528          | 0.066339            |
| 8         | 12       | 1.000000  | 27513.523471 | 0.241698          | 0.088043            |
| 9         | 13       | 1.000000  | 29956.004078 | 0.290983          | 0.110156            |
| 10        | 14       | 1.000000  | 32559.100921 | 0.343476          | 0.139640            |
+-----------+----------+-----------+--------------+-------------------+---------------------+

CreateML with VisonFeaturePrintScene:
+-----------+--------------+-------------------+---------------------+
| Iteration | Elapsed Time | Training Accuracy | Validation Accuracy |
+-----------+--------------+-------------------+---------------------+
| 0         | 2624.198231  | 0.000188          | 0.000000            |
| 1         | 16721.113751 | 0.060564          | 0.001757            |
| 2         | 25586.915525 | 0.287247          | 0.042179            |
| 3         | 31857.741821 | 0.436031          | 0.180316            |
| 4         | 38179.388461 | 0.523650          | 0.226714            |
| 5         | 44416.936162 | 0.565639          | 0.224956            |
| 6         | 50695.630575 | 0.589598          | 0.235852            |
| 7         | 56999.740079 | 0.588754          | 0.245694            |
| 8         | 63322.979367 | 0.606953          | 0.251670            |
| 9         | 69659.051465 | 0.637535          | 0.255185            |
| 10        | 76013.447991 | 0.654571          | 0.260105            |
| 11        | 82391.099810 | 0.661626          | 0.275923            |
| 12        | 88707.731178 | 0.672620          | 0.279438            |
| 13        | 95048.078870 | 0.688981          | 0.284359            |
| 14        | 101366.747...| 0.702996          | 0.296661            |
| 15        | 107704.889...| 0.701833          | 0.297012            |
| 16        | 114031.010...| 0.705267          | 0.290334            |
| 17        | 123009.369...| 0.708813          | 0.284710            |
| 18        | 129335.099...| 0.719563          | 0.299121            |
| 19        | 135653.758...| 0.736974          | 0.297012            |
| 20        | 141968.815...| 0.747312          | 0.295606            |
| 21        | 148326.322...| 0.749207          | 0.301582            |
| 22        | 154664.151...| 0.756131          | 0.301582            |
| 23        | 161016.337...| 0.762603          | 0.301933            |
| 24        | 167352.737...| 0.769583          | 0.302285            |
| 25        | 173658.381...| 0.774198          | 0.298067            |
+-----------+--------------+-------------------+---------------------+

@hipwelljo More data will help the accuracy but you can play around with the base model and the max_iterations parameter (I would set it to 25 to all of them)
You can try 3 different base models in Turi Create

resnet
squeezenet
visionPrint

model = tc.image_classifier.create(
               train_data, target='label', model='squeezenet_v1.1', max_iterations = 25)

As mentioned before, SqueezeNet would be 2-4x faster and not that much more. Resnet may be more accurate than VisionPrint but probably


Sending a Cred-Def supporting revocation to the ledger while ACA-Py has no tails-server configured

Hello,
Sending a Cred-Def supporting revocation to the ledger while ACA-Py has no tails-server configured has displayed an error as expected: aries_cloudagent.revocation.error.RevocationError: tails_server_base_url not configured
But it didn't stop ACA-py to publish the cred-def to the ledger.
When I issued a credential using the cred-def in question, the holder (in this case the BC Wallet) get the credential-offer and he is even able to see the credential-preview, but after accepting the credential it never arrives. As expected too, car there is no Revocation registry created in the ledger, ACA-Py is unable to send the credential :
aries_cloudagent.protocols.issue_credential.v1_0.manager.CredentialManagerError: Cred def id 2VtgXP3ChNVSqR1vKjbUbE:3:CL:464042:jplc has no active revocation registry
I want to know if this is a known behavior of ACA-Py or can this be considered as a bug?
Is it possible to make aca-py to verify if all the configuration for revocation has been set up before publishing to the ledger a Cred-Def supporting revocation?
Thanks

Sounds like a bug to me.  If aca-py is creating a revocable credential definition (or credential, or revoking a credential) it should probably check that a tails server is configured.

I've seen this before, but thought this was by design, as you could later configure the tails server, and then create the revocation registries. I don't think this is good though, as you can get into the case described here, without knowing what happened unless you look at the logs. So, I agree with what Ian says. It should check the configuration and prevent the cred def from being created in the first place.

When we first implemented revocation and left it up to the Controller to do all the work to manage revocation, then what you are saying is “reasonable”.  But leaving to up to the Controller to manage revocation itself is “unreasonable” — way too hard. So we ONLY want to support ACA-Py handling all of the revocation details, so the if the CredDef says revocation: true, then ACA-Py should (MUST) be checking everything up front from creating the CredDef through the creation of the initial two RevRegs, and the publication of the tails file.  Ideally, its all or nothing — or as close as we can come to that.


Feature/md in ipynb

Closes [#OSF-5884]
https://openscience.atlassian.net/browse/OSF-5884
Purpose
The Notebooks Formerly known as iPython (now Jupyter) were being styled less-than-nicely when containing markdown text.
Make the ipython notebook template now style with default.css, for a nicer more uniform standard look
Changes

add default.css to mfr/extensions/ipynb/templates/viewer.mako

before:

after:

Side effects
None anticipated, except ipython notebook files will look MORE AWESOME

Merged.


Minor Docker Update

This is a minor update to the Dockerfiles to get around the deprecation of Python2.7 in the pip version from https://bootstrap.pypa.io/get-pip.py  The Dockerfiles now use the Python2.7-friendly version of pip that ships with Ubuntu.

Coverage remained the same at 61.701% when pulling 0600ccbbafb1a2f4abd47c2cfaa4b51211ad7654 on docker-update-feb21 into a53b35bb7d6507f9fb0564800f504040a2248bfa on master.

Codecov Report

Merging #150 (642322c) into master (a53b35b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #150   +/-   ##
=======================================
  Coverage   61.62%   61.62%
=======================================
  Files          64       64
  Lines        5300     5300
=======================================
  Hits         3266     3266
  Misses       2034     2034

Continue to review full report at Codecov.

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


Include XML documentation in the NuGet package

After adding the package via dotnet add package WatsonTcp, documentation doesn't appear on mouse over in VSCode, only the member signature.
This is usually trivially solved by adding
<GenerateDocumentationFile>true</GenerateDocumentationFile>

to the .csproj.

Hi @markonius thanks for letting me know!  Could you check v<IP_ADDRESS> and let me know if it is resolved?
NuGet: https://www.nuget.org/packages/WatsonTcp/<IP_ADDRESS>
Commit: https://github.com/jchristn/WatsonTcp/commit/f02ea38bfa388c9e391dfce92b2075138634e5d5

Yup, documentation is shown as expected now. Thanks!
Also, thanks for the mention in the readme!


Expose terminal scroll position and allow extension change it

Some of Live Share customers want to follow other participants in shared terminals (https://github.com/MicrosoftDocs/live-share/issues/2671).
One feature that is missing in VSCode is getting and controlling terminal scroll position. Can VSCode expose current scroll position and allow extension changed it in a given pseudo terminal window?

I suppose next would be supporting listening to the selection and drawing decorations 🤔
@IlyaBiryukov what APIs are used to follow in the editor?

We use vscode.window.onDidChangeTextEditorSelection and vscode.window.onDidChangeTextEditorVisibleRanges to track selection and scroll position changes.

@Tyriar Selection makes total sense: very useful for pairing and for having a conversation about some output in the terminal.
I’m not sure what’s a drawing decoration in the terminal—What is it?

@waterlink doesn't exist yet. It gets extra complicated as the terminal is a separate project, unlike monaco which is contained within the vscode repo, so sharing things like this is difficult.

Had a chat about this in the API call today, the API would probably look something like this:
export interface window {
	export const onDidChangeTerminalVisibleRange: Event<TerminalVisibleRangeChangeEvent>;
}

export interface TerminalVisibleRangeChangeEvent {
	readonly terminal: Terminal;
	readonly visibleRange: Range;
}

export interface Terminal {
	readonly visibleRange: Range;
	revealRange(range: Range, revealType?: TerminalRevealType): void;
}

However, it's a lot more complicated than initially expected because of how the terminal trims content away from the top. For example:

If the scrollback setting differs between clients it could cause issues
Does counting happen from the bottom on the terminal?
Internally the terminal treats the very top row as index 0 and counts down, it has the concept of "markers" which are essentially ranges that are aware of trimming on the top and will amend their line index when this happens. I suspect even if we adopted this system it would all come crashing down once the markers are passed to clients asynchronously as more could things could have been written to the terminal.

@Tyriar any chance this proposal could make it back onto the agenda? I've checked vscode.proposed.d.ts but it's not included yet.

Considering the technical challenges with this and the little interest I don't think this will get prioritized any time soon.


[Feature] Rewrite CleverBot

Options

[ ] Related to an issue: (Mention the issue)
[X] Breaking change(s).
[X] Related to a cog. CleverBot

Contents
CleverBot is a very bad made cog, in fact, it seem to work but need a full rewrite and a better way to handle message.
Code was originally taken from Laggron-Dumb-Cogs's say cog.
After some time, I decided to rewrite this cog for something better. It would work differently, when user run [p]conversation, he get added to self.conversation when he ran the command (Or maybe also removed) and the command stop, then the relay is took by a on_message listener.
Another thing I think is maybe creating less sessions for only one instead. Adding session to self.session and re-use the same session for every questions asked.

Creating one session for everyone is not acceptable.
References here.
Every users must own there own session.


Route Service

Hi,
I know is still on going but I think we should not be able to bind a route service like we bind normal service (bind-service).

Care to elaborate?

yes,
cf cups fowarding -r https://myforwarding.service.route is normal.
cf bind-route-service local.micropcf.io fowarding --hostname dump-request   make sense.
cf bind-service myapp fowarding do not make sense but maybe I am missing something.

Your issue title is Route Service. In the upcoming cf CLI release you will be able to use cf bind-route-service local.micropcf.io fowarding --hostname dump-request, which you agree makes sense.
You can't use cf bind-service to map routing services, they are to map application services (DBs, etc.).
Isn't that what you expected?

Hi,
Strange I could bind using bind-service even if there no real effect.
What about getting an error if we try to do so ?
Thanks
Envoyé de mon iPhone

Le 13 févr. 2016 à 07:00, Dies Koper<EMAIL_ADDRESS>a écrit :
Your issue title is Route Service. In the upcoming cf CLI release you will be able to use cf bind-route-service local.micropcf.io fowarding --hostname dump-request, which you agree makes sense.
You can't use cf bind-service to map routing services, they are to map application services (DBs, etc.).
Isn't that what you expected?
—
Reply to this email directly or view it on GitHub.

Just to confirm, you mean you created a route service (using cf create-user-provided-service with -r option) and want it to fail when bound to an app using cf bind-service?

Sorry I am not clear, the fact is I was expected to get an error when I use bind-service or a warning it just bind as normal service.
Envoyé de mon iPhone

Le 13 févr. 2016 à 19:10, Dies Koper<EMAIL_ADDRESS>a écrit :
Just to confirm, you mean you created a route service (using cf create-user-provided-service with -r option) and want it to fail when bound to an app using cf bind-service?
—
Reply to this email directly or view it on GitHub.

@dkoper @dieucao There are use cases for being able to bind a service instance to BOTH a route and an app. However, @shinji62 raises a good point in that we could allow brokers to declare that the service does not support credentials, enabling CC to reject requests from commands bind-service or create-service-key.

Closing, as it sounds like the CLI should keep doing what it's doing. Feel free to continue the discussion on the CC issue tracker or CF Dev mailing list about CC rejecting (CLI) requests.


A question about the training time and GPU

Hi,
I tried to train the model on a  low-level GPU, like 2080Ti, but soon ran out of memory.
I want to ask some questions: what type of GPU is used for training? How many GPUs are used? How long did they train each time?
Thank you!

Hi @StephenHzj， we suggest running this project on a Linux server with 24G GPU, e.g., 3090TI or RTX 6000. And the training time was not saved. By the way, could you star this project?

Thanks for your reply.


Defining Globals for autocomplete

I have some functions/objects which are available globally in my files but tern currently is unable to autocomplete these. How can I go about adding definitions of these globals?
I thought about trying to add a custom JSON type definition as mentioned in the Tern docs but I couldn't work out where to add it?
http://ternjs.net/doc/manual.html#typedef
Cheers

Can you be more specific? Are these globals defined in your project, and if so, how? Are you using a module loader Tern plugin?

My specific use case is with Protractor/node. In a project you have conf.js file where you can register global variables in an onPrepare method. These globals will then be available in your test files (for example tests/test.js) automatically, for example if I assign global.foo = bar in my conf.js file, in a test file in my project I can call foo.whatever without defining what foo is. Much the same as when you use built in node globals like process or module. However, when I'm in my test.js file, autocomplete doesn't detect what foo is since it was defined only in conf.js and therefore can't autocomplete the methods it exposes?
In that scenario where foo is an object I'd like to have autocomplete to see the methods available like what happens when for example you include the browser lib and you get autocomplete for document (for example) without having to require anything in a given file in the sublime project
I hope that is slightly clearer? I also thought maybe there would be some way of including a jsdoc statement in every test file as a last resort to assist tern with autocomplete but it doesn't seem to be the case
El 4 ene 2017, a las 21:32, Marijn Haverbeke <notifications<EMAIL_ADDRESS>escribi?:
Can you be more specific? Are these globals defined in your project, and if so, how? Are you using a module loader Tern plugin?

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/ternjs/tern_for_sublime/issues/158#issuecomment-270492886, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AG-F16XRTNNCyttXnvboiV9ewC3DLFHEks5rPBAFgaJpZM4Lazkj.

Have you tried listing your conf.js file in the loadEagerly project config option?


Prepare for Stages & Status Migration

Background
In order to migrate data to the new Stages & Statuses, some checks need to be run and updates need to be made.
User Story
As the Digital team, I would like to check historic instances of status usage and map some previous statuses to new statuses so that data can be migrated.
Feature(s) Description

Run a script to obtain data regarding all instances of historic stages and statuses

i.e. Look at all applicationRecords and count up each and every status and stage that exists. This will tell us which statuses are being used and might highlight statuses we weren't aware of
See comment below for details of an existing script which does this

Share data with Nick

We are interested in all stages and statuses that are being used and in particular: 1. ‘submitted first test’, 2. ‘test submitted over time’, and 3. ‘submitted scenario test’ statuses

Using the mappings identified in the spreadsheet and along with feedback from the above data write up a final set of migration 'mappings' (either documented as text, in a spreadsheet or in code - perhaps as a set of unit tests). For example:

Map any instances of ‘submitted scenario test’ statuses to 'scenario test failed’
Map any instances of ‘Rejected as ineligible' status to 'Ineligible (ASC) -Rejected

Application Stages and Statuses Versions.xlsx
Note

The actual migration script is written, tested and run in ticket #997 (though we can make a start here if we like)
Updating Admin and DP with the newly named statuses (and removing some) is covered by jac-uk/admin#2294

Definition of Done (optional/delete if not used)
It's done when we are ready to test the new stages & statuses on several historic exercises.
User Testing Steps
Add instructions here
Ticket Champion
Warren

Hey team! Please add your planning poker estimate with Zenhub @drieJAC @HalcyonJAC @tomlovesgithub @warrensearle

@HalcyonJAC @warrensearle This is the pre-migration work to do ahead of writing the migration script, ideally this is ticket 1/3 with the other two the existing tickets. Pls check with Matt if any of above unclear as I will be out of office tues and wednesday.

Hey there I think the main work in this ticket is to produce a spreadsheet to identify and provide a count of all the statuses (and stages) used across all applicationRecords. The writing of the actual migration script (and execution of it) is covered by another ticket #997
We do have a node script which pretty much does this already (amongst other things):
https://github.com/jac-uk/digital-platform/blob/2ded89da0f3043cfc2b8ab7958dc739896e0b7e0/nodeScripts/query.exercise-applications.js#L26-L40
Once this data has been reviewed then the rules for status (and stage) updates can be finalised.

submittedFirstTest: 0 application records
testSubmittedOverTime: 48 application records
submittedScenarioTest: 7 application records
rejectedAsIneligible: 609 application records

Thanks @HalcyonJAC I have just updated this ticket with the changes we discussed last week. The numbers above look good however could you provide a full set of numbers for the statuses used in all applications - just in case there are some using statuses we aren't already aware of

I have created a node script query.applications-stages-statuses.js to query the number of applications and application records, stages, and statuses of all exercises.
Update: 29/01/2024 11:00:00
applications

total: 34720
applied: 23798
draft: 10171
withdrawn: 750
undefined: 1

applicationRecords

total: 24780
review: 15050
shortlisted: 2788
recommended: 498
selected: 3406
handover: 3036
undefined: 2

status

failedFirstTest: 6477
failedScenarioTest: 3056
'': 939
passedSelection: 503
invitedToSelectionDay: 1117
passedFirstTest: 354
failedSift: 2610
failedSelection: 2227
approvedForImmediateAppointment: 3034
noTestSubmitted: 2049
withdrewApplication: 602
passedButNotRecommended: 130
rejectedAsIneligible: 609
criticalAnalysisPassed: 515
passedSift: 110
situationalJudgementPassed: 291
testSubmittedOverTime: 48
passedScenarioTest: 5
rejectedByCharacter: 34
situationalJudgementFailed: 23
submittedScenarioTest: 7
noScenarioTestSubmitted: 19
approvedForFutureAppointment: 12
undefined: 2
criticalAnalysisFailed: 5
sccToReconsider: 2

Awesome, thanks @HalcyonJAC

@HalcyonJAC Can you pls run a report that picks up these instances along with exercise details (name, ref, SET contacts and candidate refs? •	testSubmittedOverTime: 48 application records

@HalcyonJAC I think this is more or less complete; can you just provide the details of apps, app records and statuses that are undefined for completeness?


Cut a new version for postgres compatibility

I don't suppose you could cut a new version with this fix:
https://github.com/BertrandBordage/django-cachalot/commit/b9f84f8047414a280490518641bca25be10d258b
We're not able to use django 1.9.4 which prefers postgres without this.
Awesome library!  The drop-in nature of it, has literally saved many projects!

That’s planned, I will finish the new version in a few days.

Closing if favor of #60.


Show hidden parts on the notes view

Is your feature request related to a problem? Please describe.
I'm using the sbs plugin in my presentation. The preview section of notes view does not hide the not yet displayed content in the presentation view so I have to look at the main presentation screen to know at which step I am.
Describe the solution you'd like
It would be nice to have an opacity (50%) on the hidden elements of the preview section of the notes screen.
Describe alternatives you've considered
Creating a step number with an opacity before each step element (with a ::before for example).

New sbs plugin available too


git branch -vv shows blue on blue

Using git branch -vv to show remote tracking details shows in blue foreground.  On the PS background default blue, it's unreadable.  Highlighting helps as a workaround, but thought I'd let you know.
(Low priority)
posh-git version: <IP_ADDRESS>5
PSVersion: 5.1.14393.693
git version 2.10.2.windows.1
OS: Microsoft Windows NT 10.0.14393.0

posh-git doesn't do anything to the colors that Git uses by default, so I would expect you to see this coloration even without posh-git enabled (try powershell -noprofile).
To disable Git colors on git branch, set color.branch = never. You can also try adjusting color.branch.upstream.

Thanks!


Does it work with a Xcode 7 UI test target?

I'm trying to make Mockingjay working within a UI Test target but I cannot make it run properly. It seems that stubs are never used when the code runs from a UI Test target.

UI testing runs apps in a different process than the tests, so you won't be able to stub out network calls.

I'm using a workaround. In my UI test class:
override func setUp() {
	super.setUp()

	continueAfterFailure = false

	app = XCUIApplication()
	app.launchArguments = [LaunchArguments.StubNetworkResponses.rawValue,
		LaunchArguments.UseInMemoryDatabase.rawValue]
	app.launch()
}

With the following enum made available to both the UI test target and the main target:
internal enum LaunchArguments: String {
	case UseInMemoryDatabase
	case StubNetworkResponses
}

And in the main target:
internal func setUpNetworkStubbing(
	processInfoArguments: [String] = NSProcessInfo.processInfo().arguments) {
		guard processInfoArguments.contains(LaunchArguments.StubNetworkResponses.rawValue) else {
			return
		}
        // stub all you want here
}

which I call when my app finishes launching. (The default argument is for dependency injection while testing the stubbing function). Any JSON fixture files will need to be added to the main target instead of (or in addition to) the UI test target.
An additional benefit is that you can pass these arguments to the app while running using "Edit Scheme" to use your app with stubbed data.
As you can see, I use the same trick to force my app to use an in-memory database.

Are you using Mockingjay for the stubbing?
I can't seem to get it to work due to it's dependency on XCTest.

@mdio Not anymore. I'm using OHHTTPStubs currently.

As I've mentioned in https://github.com/kylef/Mockingjay/issues/36#issuecomment-218245559, you can use Mockingjay without XCTest. Mockingjay doesn't strictly depend on XCTest.
You can depend on Mockingjay/Core via CocoaPods and then use the following API:

MockingjayProtocol.addStub(matcher, builder)
MockingjayProtocol.removeStub(stub)
MockingjayProtocol.removeAllStubs()

Therefore you can use Mockingjay with UI test targets.

How can i stub requests while using 3rd party http clients (e.g. Alamofire)?
Using the same code as for unit test doesn't work:
let request = http(.post, uri: "path-to-request")
MockingjayProtocol.addStub(matcher: request, builder: json(["id": "1"]))


[KAFKA-15022] optimization: detect negative cycle from one source

Description
Introduce a dummy node connected to every other node and run Bellman-ford from the dummy node once instead of from every node in the graph.
Testing
Existing test
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

Will this impact the performance? If so, do we plan to add a performance comparison?

@ex172000 , this will improve performance. Since it's obvious that we replace the loop of number of nodes to a single iteration, I'm not planning to add comparison.


IGAPP-387: Choose translation based on normalized language code

This pull request belongs to an issue on our bugtracker.
You can find it there by looking for an issue with the key which is mentioned in the title of this pull request.
It starts with the keyword IGAPP.

Looks really fine so far. I really like reviewing the hook syntax. looks a lot cleaner now. Don't forget to add/adjust the tests, as this is new behavior.

@maxammann this does fix IGAPP-178 (Support Deutsch-Einfach), right?