‘whoami’ returns ‘root’ – how do I set myself up as user?

Just installed Ubuntu on Windows 10, I am a total beginner and new to this and I did see the prompt to provide my username, but by the time I found out what my username was (which had to match Windows apparently), that prompt was gone and never came back. pwd returns ‘/root’, and whoami returns ‘root’. Help – I don’t een know how to google these things! 🙂

Unity not resolving android dependencies and only returns resolution success

I just added some android plugins like in app purchase and advertisement and game analytics.

As i remember in previous installations unity downloaded many libraries for plugins on resolve. Now it only returns “resolution success” with no library added and it doeant work in final build.

Can any one tell what is the problem??

speaker-test returns all 6 channels to front speakers

OS: KUBUNTU 19.04 Soundcard: Creative Soundblaster ZxR Sound Setup: front (left/right), center, bass, rear (left/right)

My problem is, that all speaker outputs are played at the front speakers.

I did the following:

  • Set speaker setup at Plasma sound settings to “Analog Surround 5.1-Output + Analog Stereo-Input”
  • If I click on any rear speaker there, to test audio output, they are played on front speakers. The setup seems very faulty:
    • rear right: output on front left and right at the same time
    • rear left: output on front left and right at the same time
    • center: output on front left and right at the same time
    • front left: output on front left (one of two correct speakers)
    • front right: output on front right (one of two correct speakers)
  • I then executed alsamixer and noticed that my NVIDIA Graphics card was initially selected. I switched with F6 to my ZxR and set it up like this: enter image description here
  • I ran speaker-test -Dplug:surround51 -c6 -twav. An error message appeared and I was unable to perform the command: Error when opening the device: -2
  • I googled how to set the default device and so I did cat /proc/asound/cards:
 0 [NVidia         ]: HDA-Intel - HDA NVidia                       HDA NVidia at 0xdf080000 irq 17  1 [Creative       ]: HDA-Intel - HDA Creative                       HDA Creative at 0xdf204000 irq 19 

with kate ~/.asoundrc I set my default device:

defaults.pcm.card 1 defaults.ctl.card 1 defaults.timer.card 1 
  • after a restart speaker-test -Dplug:surround51 -c6 -twav was working: Unfortunately rear left output is on front left, rear right output is on front right, center appears to be on both front (left/right) speakers

Does anyone have any idea how I can fix this?

Clicking on an Enterprise Wiki Category link only returns the current page

In Sharepoint Online, I have an Enterprise Wiki that I created using CSOM.

I have a term store and on each page there is a Categories section which shows terms: enter image description here

When I click on one of these, I would expect to see a list of all the pages with the same term/category. But I only get 1 result: The page itself:

enter image description here

I can add new terms to the ones that were created with CSOM but they behave the same.

Using the Term Store Manangement Tool everything looks normal: enter image description here

Why don’t I get the list of pages that I expect?

preflight returns 401 response even though headers correct

I am trying to access a sharepoint server REST api to upload some files. Access is via our tomcat application

Although I believe I setup correctly the headers in IIS the request does not pass the preflight.

Here are the request headers:

Request OPTIONS /_api/contextinfo HTTP/1.1 Accept  */* Origin  http://localhost:8080 Access-Control-Request-Method   POST Access-Control-Request-Headers  content-type, accept Accept-Encoding gzip, deflate User-Agent  Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; MAAU; rv:11.0) like Gecko Host    temp-sharepoint Content-Length  0 Connection  Keep-Alive Cache-Control   no-cache 

and the response headers:

Response    HTTP/1.1 401 Unauthorized Content-Type    text/plain; charset=utf-8 Server  Microsoft-IIS/7.5 SPRequestGuid   8d690d9d-d06e-101d-6038-8056a7fce7c2 request-id  8d690d9d-d06e-101d-6038-8056a7fce7c2 X-FRAME-OPTIONS SAMEORIGIN SPRequestDuration   5 SPIisLatency    1 WWW-Authenticate    Negotiate WWW-Authenticate    NTLM X-Powered-By    ASP.NET MicrosoftSharePointTeamServices 15.0.0.4569 X-Content-Type-Options  nosniff X-MS-InvokeApp  1; RequireReadOnly Access-Control-Allow-Origin * Access-Control-Allow-Credentials    true Access-Control-Allow-Methods    GET,PUT,POST,DELETE,OPTIONS Access-Control-Allow-Headers    accept,content-type Date    Fri, 05 Jun 2015 15:52:01 GMT Content-Length  16 

My code to request

var url = sharepointURL + "/_api/contextinfo"; jQuery.ajax({      url: url,      type: "POST",      headers:       {         "Accept": "application/json; odata=verbose"      },      xhrFields: {             withCredentials: true     },     crossDomain: true,      contentType: "application/json;odata=verbose", 

Why is not passing the preflight? have I misconfigured the headers?

FindRoot returns the initial guess (Having large magnitude)

In my program (Big Enough, no need to see, pasted here : https://pastebin.com/HqnskRdn), I am trying to find the root of equation by FindRoot in range of order of $ 10^{12}$ or so. but FindRoot returns the initial guess,

Now if I change the coefficients of equation slightly then also, It returns the initial guess.

Ex- Initial Guess: $ 1.06154*10^{12}$ , Answer: $ 1.06154*10^{12}$

Any way out please ?

Call HTTP Web Service returns ResponseCode Unauthorized for SharePoint Online Workflow

I am trying to get user manager using REST call via HTTP Web Service in SharePoint designer. the Response Code returns unauthorised.

I copied the HTTPs request into browser and checked, it is working there.

https://company.sharepoint.com/sites/mysite/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v=%27i%3A0%23.f%7Cmembership%7CUserName%40company.com%27

@v is ‘workflow Context:Initiator’

am I missing something here?

systemctl Service that runs an executable that never returns

I’m having some trouble figuring out how the services work on CentOS. Right now I have the following service file:

[Unit] Description=SelfTester After=network.target  [Service] Type=simple ExecStart=/usr/bin/selftester  [Install] WantedBy=multi-user.target 

This will launch a script that calls an executable that will never return:

#!/bin/bash export LD_LIBRARY_PATH=SOMEPATH && cd SOMEOTHERPATH && ./EXECUTABLE 

The executable never returns. When I launch the service, it runs for a while but then exits due to timeout:

Job for selftester.service failed because a timeout was exceeded. See "systemctl status selftester.service" and "journalctl -xe" for details. 

Thanks inadvance