c# – Encrypting Data with interception of SQL instructions generated by Entity Framework

WPF Application, C#, MS SQL Server, Entity Framework 6. I need to encrypt all data from user input, and do it apart from business logic. I’ve come to interception of SQL Queries generated by transferring LINQ expressions to SQL, and changing data from them to encrypted, in order to store only encrypted data. I’d like to know if it even possible, and how… And how to decrypt them back and show user only plaintext. I can’t change this method – i.e. i MUST intercept queries. Yet another thing – i must use methods from System.Security.Cryptography.
I have read https://docs.microsoft.com/en-us/ef/ef6/fundamentals/logging-and-interception this article – we use EF version of 4.1, this will not work. I had even checked through source code of EF6 on Github to check if i can override SaveChanges() method

graphs – Could someone please provide simple instructions for uploading excel values into gnuplot?

I am new to this. Please be nice. I have already completed half of this assignment:

Using excel, you will need to generate at least 500 values for x, 500 for y, and 500 for z, using the random function. (This part is complete. A1=x, B1=y, & C1=z. I used the rand function to calculate random values for each respective cell of A2, B2, and B3, and then drug the formula down from cell 2 through 501).

The part I need help with:

Once you generate the 500 x-values, 500 y-values, and 500 z-values (total 1500 points from excel), you will plot the data on a 3D plot. Each point on the 3D plot will have one x-value, one y-value, and one z-value, using gnuplot.

What are the specific commands from start to finish for completing the 3D plot of the given values in gnuplot? The CSV file is currently saved on the desktop.

c++ – Code to modify string as per instructions

I solved this problem statement on dear old codeforces.
The Problem Statement wants users to replace occurrences of ’10’ in the given string with either ‘1’ or ‘0’ until there is no occurrence of ’10’ left and the string formed is the lexicographically smallest string from the set of all valid answers.

This is my solution (and it has been accepted). However, I would like to know if we can simplify this solution further:

#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
int main() {
    int T = 0;
    std::cin >> T;
    while (T--) {
        int n = 0;
        std::cin >> n;
        std::string str;
        std::cin >> str;
        while (str.find("10", 0) != std::string::npos) {
            auto it = std::find(str.begin(), str.end(), '1');
            auto begin = it;
            std::string window;
            while (it != str.end() && *it == '1') {
            while (it != str.end() && *it == '0') {
            if (std::count(window.begin(), window.end(), '0') == 0 || std::count(window.begin(), window.end(), '1') == 0) {
                std::cout << str << "n";
            while (window.size() > 1) {
                auto count0 = std::count(window.begin(), window.end(), '0');
                auto count1 = std::count(window.begin(), window.end(), '1');
                if (count0 > count1) {
                else if (count1 > count0) {
                else {
                    if (str.find("10", std::distance(str.begin(), it)) == std::string::npos) {
                    else {
            *(--it) = window.front();
            str.erase(begin, it);
        std::cout << str << "n";
    return 0;

Please review and suggest 🙂

dnd 5e – Are the instructions given in the “Planar Binding” spell part of the casting time, or can instructions be amended during the spell duration?

The Sage Advice Compendium has the following question/answer:

Is the sentence of suggestion in the suggestion spell the verbal component, or is the verbal component separate? Verbal components are mystic words (PH, 203), not normal speech. The spell’s suggestion is an intelligible utterance that is separate from the verbal component. The command spell is the simplest example of this principle. The
utterance of the verbal component is separate from, and
precedes, any verbal utterance that would bring about the
spell’s effect

By analogy, the 1 hour casting time of Planar Binding is filled with mystic words, and the instructions are intelligible utterances that are separate from the verbal component.

If the instructions were part of the casting time, it would answer the second part of the question (no, it would not be possible to amend the instructions). But since the instructions are not part of the casting time, there is no explicit guidance about whether they can be amended and thus it is up to the DM to rule on this.

Personal opinion: From a game-balance perspective, allowing the caster to continually update the instructions makes an already inordinately powerful spell that much more powerful. As a player, I would prefer that freedom, but as a DM, I lean toward limiting the power of the spell. Focusing on RAF (rules as fun), there are more opportunities for interesting interactions between caster and target if the instructions must be enumerated at the completion of the casting time (for example, in the 10 minutes after the spell is cast and the target fails their saving throw, all instructions must be specified and are locked in place for the duration of the spell).

forms – Ways and instructions to tell a user to intentionally miss a multiple choice question?

I’m currently brainstorming possible solutions to this UX question. In a multiple choice activity (not a quiz/form), if a user correctly answers a question, before they move on to the next question, I want to encourage the user to still click on the wrong answers and see the feedback from the wrong answers, so they understand why the wrong answer is wrong.

My first question is placement of these instructions:
I was thinking about putting optional instructions either before the question, or after the last multiple choice answer. The reason I suggest the latter is that these set of instructions are rather unique, and could possibly disrupt the natural user flow of reading a question and answering the questiion.

My second question is about the actual contents of the instructions are a question mark to me. I was thinking:

  1. Direct Approach: If you get the answer right, please also take a look at the other answers to see why they’re wrong!
  2. Subtle approach: Choose the best answer, but be sure to go through all the answers later!

I was also wondering in terms of user experience if it would make more sense to put these “instructions” after the user has successfully answered thee question, rather than before?

usability – Technical terms linking vertical lists to Instructions

I once read a study where it described that displaying information vertically hints/implies to the user that it is instructions. I tried searching for proof of this concept again and couldn’t find it this time.

Does anyone know any key terms/concepts relating to information being displayed vertically rather than horizontally means its implying that the information is instructions/guidelines to follow.

Heres an example of what I mean.

enter image description here

In assembly language, I can't understand some of the instructions for this program

The instructions for this program are as follows,

"Write an assembly language program that displays a menu of four options.

The first option is to show your name

Option two is to show your age

Option three is Show your specialty

Option four is Exit the program.

When one of the first three options is selected, the program should show the correct one
information on the screen, show two blank lines below the information and then show again
The menu. When the last option is selected, the program should exit to DOSBOX

I can display the menu, but when 4 is pressed the program repeats and then closes. Also, I can't figure out how to make the menu reappear after each entry, as the instructions say.

Here is a picture of my code so far.


computer architecture: why is op code 0 for all instructions of type r? Please explain your answer.

Thanks for contributing with a response to Computer Science Stack Exchange!

  • Please make sure answer the question. Please provide details and share your research!

But avoid

  • Ask for help, clarification or respond to other answers.
  • Make statements based on opinion; back them up with references or personal experience.

Use MathJax to format equations. MathJax reference.

For more information, check out our tips on how to write great answers.

Step by step instructions to install Bitcoin Core 0.14 on Raspberry Pi Zero and 1/2/3?

raspnode.com is definitely the place to make a Bitcoin node on a Raspberry Pi. It's a long way to get the entire blockchain, but if I only had a small blockchain after a lot of pruning I guess it could be done. I tried running bitcoin-qt on a RPi 1, and it just sucked. Then I tried it on a RPi 3, and it was still a fight. But I was going through the complete blockchain, and still am. If you have a small pruned blockchain, you may be able to get away with using a Pi Zero. What I have done to ease the pain of indexing blocks and everything in between, I installed bitcoin-qt on my desktop computer in Ubuntu. I used an NFS share on my NAS to access the bitcoin folder from both machines, and I was able to do all the heavy lifting on my desktop computer much faster. Once I had the entire blockchain, I went back to RPi 3 and everything was fine. I hope this helps!

Memory hardware: what other instructions are stored in the ROM?

Thank you for contributing a response to Computer Science Stack Exchange!

  • Please make sure answer the question. Provide details and share your research!

But avoid

  • Ask for help, clarifications or respond to other answers.
  • Make statements based on opinion; Support them with references or personal experience.

Use MathJax to format equations. MathJax reference.

For more information, see our tips on how to write excellent answers.