Bitcoin rpc getbalance wrong

I am using v0.11 rpc, In blockchain balance and my rpc balance are different. rpc balance is wrong why?
But transactions are correct.

calculated column – SharePoint time difference in minutes – wrong result

I created a simple SharePoint list and I am having problem with a calculated field.
I have a “Duration” field that calculates the minutes between the start and end date/time columns, using the formula:

=INT(((RRT End (EST))-(RRT Start (EST)))*1440)

The odd thing is it works correctly if the difference in minutes is 62 or above, but 61 or below it returns an incorrect (-1) result. It does not seem to be tied to the dates themselves, It only happens if the difference is 61 minutes or less. See below.

Any idea how to fix without using a workaround IF formula?

enter image description here

ssl – wrong certificate used for every website

on a Ubuntu 16.04 host. Doing curl or wget on any website resulting the following error:

% sudo wget https://github.com --debug
DEBUG output created by Wget 1.17.1 on linux-gnu.

Reading HSTS entries from /home/perlwle/.wget-hsts
URI encoding = ‘UTF-8’
--2020-06-03 17:06:22--  https://github.com/
Resolving github.com (github.com)... 13.250.177.223
Caching github.com => 13.250.177.223
Connecting to github.com (github.com)|13.250.177.223|:443... connected.
Created socket 3.
Releasing 0x000055bd8d06ab10 (new refcount 1).
Initiating SSL handshake.
Handshake successful; connected socket 3 to SSL handle 0x000055bd8d06b400
certificate:
  subject: CN=*.example.com
  issuer:  CN=RapidSSL RSA CA 2018,OU=www.digicert.com,O=DigiCert Inc,C=US
ERROR: no certificate subject alternative name matches
        requested host name ‘github.com’.
To connect to github.com insecurely, use `--no-check-certificate'.
Closed 3/SSL 0x000055bd8d06b400

the problem is at the subject: CN=*.example.com example.com is just an example. It’s a domain I have purchased and setup certificate, on another host. To give more context, it’s a lxc host running inside the current one.

I am baffeled why the wrong certificated is used and I am not sure where to look for.

Any thoughts?

3d – What’s wrong with my normal map implementation?

I’m trying to write my own 3D engine from scratch in C, and right now it can render spheres, but I wasn’t able to perfectly implement norl maps.

All of the resources I’ve found online about normal maps are about applying them to meshes and talk about making sure yso I just kind of guessed the right way to do it for a sphere. The basic algorithm I’m using to perturb the normal vector is:

struct _Vec3 {
    double x;
    double y;
    double z;
};

struct _Rgb {
    unsigned char r;
    unsigned char g;
    unsigned char b;
};

void adjustNormal(Sphere* sphere, Vec3* point, Vec3* normal) {
    double* arr = getSphereCoordinates(sphere, point); // get coordinates of point, where 0 < x, y < 1
    double x = arr(0);
    double y = arr(1);
    Rgb* color = getPixel(sphere -> normalMap, x, y); // get the data from normal map
    x = (color -> r) / 255.0;
    y = (color -> g) / 255.0;
    double z = (color -> b) / 255.0;
    Vec3** ortho = getOrthogonalVectors(normal); // basis of tangent space
    Vec3* tangent = ortho(0);
    Vec3* bitangent = ortho(1);
    scaleVec3(normal, z);    // scale normal vector by z
    scaleVec3(tangent, y);   // scale tangent vector by y
    scaleVec3(bitangent, x); // scale bitangent vector by x
    normal = add3(normal, tangent, bitangent); // add together three vectors
    normalize(normal);
}

Now, I feel pretty confident that getSphereCoordinates and getPixel works because applying a regular texture (not normal map) to a sphere works fine. I’m less confident about getOrthogonalVectors because even if I change that, I still have an issue with the normal map. Just in case, here it is:

Vec3** getOrthogonalVectors(Vec3* vec) {
    Vec3 temp;
    copyVec3(&temp, vec);
    temp.x += 10; // no matter how I change
    temp.y += 1;  // this to get a nonparallel vector,
    temp.z += 1;  // the normal map isn't correct

    Vec3* v1 = cross(vec, &temp);
    Vec3* v2 = cross(vec, v1);
    scaleVec3(v2, -1); // necessary for orientation

    normalize(v1);
    normalize(v2);

    Vec3** ans = malloc(sizeof(Vec3*) * 2);
    ans(1) = v1;
    ans(0) = v2;
    return ans;
}

Below is the normal map being used and what the sphere looks like after the map is applied.

normal map
sphere

This picture is with the light source being at the same location as the camera, so in theory the entire front of the sphere should be lit. Is there something I’m doing wrong?

wallet – The digital trail is a “warrant” to recover transactions sent to BTC that were sent to wrong address

This is similar to a question already asked, but I disagree with the answers. There is a big digital trail of the transaction. To me, that is like mail delivered to the wrong house, but opened anyway. It is a crime as is, I have suggested to the Bitcoin site I use, to have the sender and receiver have a “password” to open the wallet. This way the unintended wallet has to return the BTC not intended for that wallet. What is the point to have a long list of transactions and confirmations if Bitcoins promotes crime?
On my transaction, I entered the correct wallet, but on the “sending” part, a different un-“intended Wallet ID” replaced the wallet I have.
I cannot find that other wallet anywhere on my PC, my cellphone, nor in any e-mail search I performed???. There is an “order ID, a “destination wallet address, a Transaction hash,” and other ID’s on the receipt, so I think if I presented this to anybody, crime would halt because crime is unacceptable.
Besides, how does a TYPO turn into a “real wallet?”

I’m buying a power cord for an External Hard Drive docking station – will I fry the drives if I buy the wrong one?

My docking station is a USB 3.0 SATA HDD Docking Station with Offline Clone Function, made by Inateck. I lost its power cord, which, in the manual, is listed as “DC Adapter”. On amazon, it says the power cord was a “12V/3a” DC adapter. When I go to buy one 12v/3a adapter, there seem to be a lot of other specs that freak me out. Will I buy the wrong one? If its 12v/3a, are there any other specs I should look at when buying a power adapter?

Thanks

sharepoint enterprise – “Sorry, something went wrong” on content search web part for users with Read permission

I have the following:-

  1. Team site collection with publishing features enabled.
  2. Inside the Team site collection home page I added multiple content search web parts (6 content search web parts).
  3. When users with Edit or Contribute permission access the home page they can view the content search web-parts without any problems.
  4. When users with Read permission, access the page they will get the following error, one each of the 6 content search web parts:

enter image description here

If I grant this user Edit permission then he can view the webpart, and if I grant him Read permission back the problem will occur again. also I have noted that when users with Read permission do a hard refresh for the browser “CTRL + F5” they can view the results, but if they navigate back to the page, they will receive the same error?

Here is the logs, where the page which will show the error is http://www.tgroup.intra:80/my%20dash/SitePages/Home.aspx:

10/18/2016 18:50:47.02  w3wp.exe (0x23F0)                           0x2660  SharePoint Foundation           Claims Authentication           amge7   Medium      SPFederationAuthenticationModule.IsRedirectToLogOnPage: Detected a redirection but the redirect is not to a known signin page: http://www.tgroup.intra/my dash/SitePages/Home.aspx  79b1ae9d-0cce-c0b7-30fc-0e3f1815a827
10/18/2016 18:50:47.02  w3wp.exe (0x23F0)                           0x1590  SharePoint Foundation           Request Management              adc7v   Medium      Reverse mapping URI from 'http://www.tgroup.intra/my dash/SitePages/Home.aspx' to 'http://www.tgroup.intra/my%20dash/SitePages/Home.aspx'   79b1ae9d-0cce-c0b7-30fc-0e3f1815a827
10/18/2016 18:50:47.02  w3wp.exe (0x23F0)                           0x1590  SharePoint Foundation           Micro Trace                     uls4    Medium      Micro Trace Tags: 0 nasq,0 adc7u,16 adc7v   79b1ae9d-0cce-c0b7-30fc-0e3f1815a827
10/18/2016 18:50:47.02  w3wp.exe (0x23F0)                           0x1590  SharePoint Foundation           Monitoring                      b4ly    Medium      Leaving Monitored Scope (Request (GET:http://www.tgroup.intra/my dash)). Execution Time=18.1161292845878    79b1ae9d-0cce-c0b7-30fc-0e3f1815a827
10/18/2016 18:50:47.02  w3wp.exe (0x23F0)                           0x1590  SharePoint Foundation           Claims Authentication           amge7   Medium      SPFederationAuthenticationModule.IsRedirectToLogOnPage: Detected a redirection but the redirect is not to a known signin page: http://www.tgroup.intra/my%20dash/SitePages/Home.aspx    79b1ae9d-0cce-c0b7-30fc-0e3f1815a827
10/18/2016 18:50:47.14  w3wp.exe (0x23F0)                           0x11DC  SharePoint Foundation           Monitoring                      nasq    Medium      Entering monitored scope (Request (GET:http://www.tgroup.intra/my dash/SitePages/Home.aspx)). Parent No  
10/18/2016 18:50:47.14  w3wp.exe (0x23F0)                           0x11DC  SharePoint Foundation           Logging Correlation Data        xmnv    Medium      Name=Request (GET:http://www.tgroup.intra/my dash/SitePages/Home.aspx)  79b1ae9d-ccd6-c0b7-30fc-0cc9c8b54620
10/18/2016 18:50:47.14  w3wp.exe (0x23F0)                           0x11DC  SharePoint Foundation           Request Management              adc7u   Medium      Mapping URI from 'http://www.tgroup.intra:80/my%20dash/SitePages/Home.aspx' to 'http://sps01/my%20dash/SitePages/Home.aspx' 79b1ae9d-ccd6-c0b7-30fc-0cc9c8b54620
10/18/2016 18:50:47.14  w3wp.exe (0x23F0)                           0x4720  SharePoint Foundation           Monitoring                      nasq    Medium      Entering monitored scope (Request (GET:http://www.tgroup.intra:80/my%20dash/SitePages/Home.aspx)). Parent No    

Also these logs which contain the word error:

10/18/2016 18:50:47.33  NodeRunnerQuery1-9004fabc-2086- (0x1268)    0x4B08  Search                          Query Processing                aizgn   Medium      Microsoft.Office.Server.Search.Query.Pipeline.Executors.QueryPipelineHardWiredFlowExecutor : (FlowExecutor)eventSearchFlowDone: 9004fabc-2086-478e-8581-605309dd8161, , Microsoft.ProductivitySearchFlow, 35,  Error= 874f4e09-3109-480d-aa95-5a33d9619907  874f4e09-3109-480d-aa95-5a33d9619907
10/18/2016 18:50:47.35  NodeRunnerQuery1-9004fabc-2086- (0x1268)    0x2AFC  Search                          Query Processing                aizgn   Medium      Microsoft.Office.Server.Search.Query.Pipeline.Executors.QueryPipelineHardWiredFlowExecutor : (FlowExecutor)eventSearchFlowDone: 9004fabc-2086-478e-8581-605309dd8161, , Microsoft.ProductivitySearchFlow, 47,  Error= 4d643631-bd5d-4843-b3a0-23c9818682b9  4d643631-bd5d-4843-b3a0-23c9818682b9
10/18/2016 18:50:47.36  NodeRunnerQuery1-9004fabc-2086- (0x1268)    0x2744  Search                          Query Processing                aizgn   Medium      Microsoft.Office.Server.Search.Query.Pipeline.Executors.QueryPipelineHardWiredFlowExecutor : (FlowExecutor)eventSearchFlowDone: 9004fabc-2086-478e-8581-605309dd8161, , Microsoft.ProductivitySearchFlow, 66,  Error= af0a51bd-7d11-473d-88c5-eb4fa63dcf2d  af0a51bd-7d11-473d-88c5-eb4fa63dcf2d

Can anyone advise me on this please?

EDIT
After hours of investigation i try changing the Loading Behavior for the content search web part from “Sync option: Issue query from the server. ” to “Async option: Issue query from the browser“. and the error is almost done. it will appear but in very less frequent !!

So now i am totally confused on the relation between; The Loading Behavior & READ/EDIT permission & the “Sorry, something went wrong” Error??

[ Politics ] Open Question : So once again the terrorist rioters were wrong as always, George Floyd died due to drugs in system?

A combination of this and heart disease is why he passed out. 

Why this C# code is inserting data into wrong column of SQLite table?

Environment: Microsoft.Data.Sqlite, VS2019 -v16.6.0, Windows10 Pro -v1903

Question: Why the following code is inserting the value "05-29-2020" in the last column DocContent? I need it to insert TestContent instead. What I may be missing here and how can it be resolved?

Remark: On a button click MyAddData() calls AddData()

private void MyAddData()
{
    for (Int16 t=0; t<5; t++)
        MathDocsContext.AddData("Test" + t + "Author", "Test" + t + "Title", "Test Content");
}

public static void AddData(string sAuthor, string sTitle, string sDocContent)
{
    string SQLiteDbpath = System.IO.Path.Combine(GetDeployedFilePath_from_VSTO_Addin, "SQLiteDb.db");

    using (SqliteConnection db = new SqliteConnection($"Filename={SQLiteDbpath}"))
    {
        db.Open();

        using (SqliteCommand insertCommand = new SqliteCommand())
        {
            insertCommand.Connection = db;

            // Use parameterized query to prevent SQL injection attacks
            insertCommand.CommandText = "INSERT INTO MathDocs(Author, Title, DateModified, DocContent) VALUES (@Author, @Title, @DateModified, @DocContent);";
            insertCommand.Parameters.AddWithValue("@Author", sAuthor);
            insertCommand.Parameters.AddWithValue("@Title", sTitle);
            insertCommand.Parameters.AddWithValue("@DateModified", "05-29-2020");
            insertCommand.Parameters.AddWithValue("@DocContent", sDocContent);

            insertCommand.ExecuteNonQuery();
        }

        db.Close();
    }
}

SQLite Table: Data Inserted from Above Code:

Remark: DocId is an auto-increment Primary key identity column

enter image description here

postgresql – Is there anything wrong with splitting a complicated view into many small ones?

I have a view where each row is associated with a customer, and the columns are various computed values such as life_time_value and purchases_per_week, as well as more complicated statistical values such as probability_of_buying_premium_membership. I have around 20 such columns of varying complexity (both in terms of lines-of-code and also computional complexity), ranging from a single line of SQL to several dozen. Right now they are all in one monster view.

Is there a down-side to splitting them into multiple smaller views and joining them by customer_id?

Ie, break it down into views called
customer_life_time_value, customer_purchases_per_week and so on, and then recreate the monster view by joining 20 views? It seems like there shouldn’t be a performance hit because of the joining, as it’s over a indexed primary key. Many of the columns/views will perform similar calculations (purchases_per_week and purchases_per_quarter would look very similar), but it seems like the DB should be smart enough to share computation if I am selecting from the joined view.

I am using postgres, but interested for answers in general.