Messing with start page in Visual Studios now opens to 403.14 error

What did I do http://localhost:11111/ doesn’t work but http://localhost:11111/Home does? I’ve already tried Tools> Options > Open to start page and default start page

All topic

Trying to git clone via SSH but getting broken pipe error

I am having some strange issues trying to git clone one of my public GitHub repositories because of a weird issue. I know it’s not an issue with my key, because I’ve taken the same key from another VM and just simply fixed its permissions. This is the error that I get when trying to use SSH:

[root:kali:~/scripts]# ssh -T git@github.compacket_write_wait:
Connection to 192.30.253.112 port 22: Broken pipe

Suggestion 1

Reference: https://gitlab.com/gitlab-com/support-forum/issues/129

Tried to add the following to an /etc/ssh/ssh_config file:

Host *
ServerAliveInterval 120
TCPKeepAlive no

and no luck. I’ve even tried changing TCPKeepAlive to yes, and the same thing happens.

My DNS server is set to 8.8.8.8, so not quite sure that’s the issue. I can git clone the http URL, just not the SSH URL.

Suggestion 2

I also tried to run the ssh command with the verbose option, and according to the output, it looks like it actually authenticates successfully, as shown below:

debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: Authentication succeeded (publickey).
Authenticated to github.com ([192.30.253.113]:22).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: pledge: network
debug1: Sending environment.
debug1: Sending env LANG = C.UTF-8
debug1: Sending env LC_CTYPE = C.UTF-8
packet_write_wait: Connection to 192.30.253.113 port 22: Broken pipe

Any idea what else could be going wrong here?

All topic

The /bin/ prefix to kill command is getting rid of the error message

I have Debian Stretch. First I thought that a regular user could kill root process as root. I was using the command /bin/kill 10733 as the user. There was not any error message.
Then I typed out the similar command (without /bin/ prefix) and the error message got displayed.

Here you are the command history

deployer@deployer:~/blog$ kill 10733
-bash: kill: (10733) - Operation not permitted
deployer@deployer:~/blog$ /bin/kill 10733
deployer@deployer:~/blog$ ps aux|grep 10733
root     10733  0.0  0.6  92360  6404 ?        Ss   19:19   0:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
deployer 10891  0.0  0.2  12732  2236 pts/0    S+   20:10   0:00 grep 10733
deployer@deployer:~/blog$ sudo kill 10733
deployer@deployer:~/blog$ ps aux|grep 10733
deployer 10900  0.0  0.2  12732  2232 pts/0    S+   20:10   0:00 grep 10733
deployer@deployer:~/blog$ 

In fact I would prefer both the prefix and the message. How to get it? And why is it so?

All topic

Debug Code with protected error

I am trying to solve a set of 9 equations. I keep getting an error letting me know that tag plus in a variable is protected. please help.

solve[{[Lambda][1]*a* 2*x[1] - 2*[Lambda][3]*x[1] + 
2*[Lambda][3]*x[2] == 
0, [Lambda][1]*a*2* y[1] - 2*[Lambda][3]*y[1] + 
2*[Lambda][3]*y[2] == 
0, -m*g - [Lambda][1] - 2*[Lambda][3]*z[1] + 
2*[Lambda][3]*z[2] == 
0, [Lambda][2]*a*2*x[2] - 2*[Lambda][3]*x[2] + 
2*[Lambda][3]*x[1] == 
0, [Lambda][2]*a*y[2] - 2*[Lambda][3]*y[2] + 
2*[Lambda][3]*y[1] == 
0, -m*g - [Lambda][2] - 2*[Lambda][3]*z[2] + 
2*[Lambda][3]*z[1] == 0, a
^2*x[1]^2 + a^2*y[1]^2 == z[2], a^2*x[2]^2 + a^2*y[2]^2 = z[2], 
x[1]^2 - 2*x[1]*x[2] + x[2]^2 + y[1]^2 - 2*y[1]*y[2] + y[2]^2 + 
z[1]^2 - 2*z[1]*z[2] + z[2]^2 == L^2}, {x[2], x[2], y[1], y[2], 
z[1], z[2], [Lambda][1], [Lambda][2], [Lambda][3]}]

Tried a bunch of changes and i am still getting the same error message. please advise

All topic

Software Updater error

I am having serious trouble with setting up the ethernet connection in Ubuntu 16.04, so I thought of doing a software update and did so. It stopped halfway through with this black screen: https://i.stack.imgur.com/F0R0z.png

perl: warning: setting locale failed. 
perl: warning: Please check that your locale settings: 
        LANGUAGE = (unset), 
        LC ALL = (unset), 
        LANG = "en IN.ISO8859-1"
    are supported and installed on your system. 
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC CTYPE to default locale: No such file or directory 
locale: Cannot set LC MESSAGES to default locale: No such file or directory
locale: Cannot set LC ALL to default locale: No such file or directory 
locale: Cannot set LC CTYPE to default locale: No such file or directory 
locale: Cannot set LC MESSAGES to default locale: No such file or directory 
locale: Cannot set LC ALL to default locale: No such file or directory 
locale: Cannot set LC CTYPE to default locale: No such file or directory 
locale: Cannot set LC MESSAGES to default locale: No such file or directory 
locale: Cannot set LC_ALL to default locale: No such file or directory  
locale: Cannot set LC CTYPE to default locale: No such file or directory 
locale: Cannot set LC MESSAGES to default locale: No such file or directory 
locale: Cannot set LC_ALL to default locale: No such file or directory

All topic

Python – How to add an input error message

In Python, I have code where I only want the input to be a number and I want there to be an error message if the user inputs a string(words). How do I do that?

All topic

Softfware updater Error

I am having serious trouble with setting up the ethernet connection in Ubuntu 16.04.

So I thought of giving a software update and did so.

It stopped with a black screen in the midway. It doesn’t allow to copy the text so, posting a screenshot of it.
enter image description here

Can anybody help me here ?

All topic

TikZ externalize to png – Package graphics Error: Division by 0

I need to externalize my TikZ pictures to .png files and include those into my final document. In fact, I’ll generate two documents, one with vector graphics and one with bitmaps. When searching the web for a method to automate the generation of bitmaps, I found this solution that is even documented in the PGF/TikZ documentation. (Page 618 in the documentation of version 3.0.1a)

The requirement for this method is a running installation of ImageMagick.

tikzset{
    % Defines a custom style which generates BOTH, .pdf and .png export
    % but prefers the .png on inclusion.
    %
    % This style is not pre-defined, you may need to copy-paste and
    % adjust it.
    png export/.style={
        external/system call/.add=
            {}
            {; convert -density 300 -transparent white "image.pdf" "image.png"},
        %
        /pgf/images/external info,
        /pgf/images/include external/.code={%
            includegraphics
                [width=pgfexternalwidth,height=pgfexternalheight]
                {##1.png}%
        },
    }
}

To activate the script automatically to apply this to the whole document, one can add png export to the tikzset command.

I did recompile my document, having this code in my preamble and waited for some time, then I was flooded with error messages. This error message occurs for each graph.

[8] (./img/graphs/foobar.tex
===== ‘mode=convert with system call’: Invoking ‘xelatex -shell-escape -halt-on-error -interaction=batchmode -jobname “img/build/foobar” “deftikzexternalrealjob{main}input{main}”; convert -density 300 “img/build/foobar.pdf” “img/build/foobar.png”‘ ========
openout5 = `main.auxlock’.

runsystem(xelatex -shell-escape -halt-on-error -interaction=batchmode -jobname “img/build/foobar” “deftikzexternalrealjob{main}input{main}”; convert -density 300 “img/build/foobar.pdf” “img/build/foobar.png”)…executed.

openout5 = `main.auxlock’.

LaTeX Warning: File `.png’ not found on input line 66.

./img/graphs/foobar.tex:66: Unable to load picture or PDF file ‘.png’.

          }

l.66 end{tikzpicture}

The requested image couldn’t be read because it was not a recognized image format.

./img/graphs/foobar.tex:66: Package graphics Error: Division by 0.

Note that both, the .png and the .pdf, are generated correctly and are in the ./img/graphs directory. I also checked the .dpth files. These do all include the width and height of the respective image.

Why is LaTeX, or graphics complaining about not finding a .png image if it’s definitely there?

Any ideas are greatly appreciated.

All topic

“LIB ERROR: Object:…” When Opening Blender File

I’m unfortunately having issues with the Norman rig in Blender. I’m using this rig because it meets my needs for animation and I don’t have the time/knowledge to build my own character currently.

Specs:

  • MacOS High Sierra 10.13.6
  • Blender 2.57b (The latest build that the
    Norman rig will work properly with from my understanding)

I can get the character working in Blender initially, but as soon as I set up any keyframes and save the file, when I reopen the file, the character is missing from the 3D View though the rig and rig proxy are still in the Outliner. The keyframes are also still marked in the Graph Editor and the DopeSheet. In the 3D view area (with the rig proxy selected in the Outliner), there is no option to select Pose Mode as Object Mode is the only available option in that menu.
When I change 3D View to Info, I find a huge list of errors highlighted in red. An example of the errors is:

LIB ERROR: Object: ‘gizmo_mouth_center’ unread libblock missing from ‘private/var/folders/v2/…/T/AppTranslocation/…/d/blender.app/Contents/MacOS/2.57/scripts/addons/norman.blend

I thought initially Blender was not finding the file because I wasn’t saving my file in the right place or I had the Blender Application in the wrong subfolder in my Applications Folder. So I’ve tried and retried uninstalling, reinstalling and saving to different places to no effect. I also thought it might have something to do with the fact I was using a Standard User profile on my Mac so I switched to Admin, but I still run into the same problems. Currently I have the Blender Application in a folder labeled Blender in my Applications folder. I’m saving the file to a different Projects folder in my Documents folder on the Standard User side.

The closest thing I could find to my issue was someone else’s LIB ERROR problem:
‘LIB ERROR: object lost from scene’ error when opening file

Though that fix isn’t working for me as when I try making a duplicate of the rig, the Data Panel says both the rig and the duplicate are empty.

I’m just wondering if anyone else has had a similar problem? I can’t find anything else similar to this issue anywhere online. Any suggestions would be greatly appreciated.
Thanks.

All topic

Pivot Table in Pandas Generating Key Error, How to Fix?

I have a dataframe with columns [‘USER_ACCOUNT_ID’,’NAME’,’STORE_ID’,’FISCAL_YEAR’] that represents purchases. STORE_ID has values of either a 1 or 2 while FISCAL_YEAR has 5 or so values, but USER_ACCOUNT_ID and NAME have hundreds or thousands.

Essentially I’m trying to find the COUNT of USER_ACCOUNT_ID’s that have purchased in STORE_ID = 2 and in STORE_ID = 1, and the COUNT of USER_ACCOUNT_ID’s that have only purchased in STORE_ID = 2. I want to do this in various groupings, and for now, I’ve chosen pivot tables, but please correct me if this is incorrect or inefficient.

The first grouping, USER_ACCOUNT_ID, NAME, & FISCAL YEAR works great. I’m able to get a result that has unique USER_ACCOUNT_ID, NAME, and FISCAL_YEAR combinations as rows, and STORE_ID as a colum. I then ‘flatten’ back into a dataframe for easy analysis:

season_all_partner_pivot = purchases.pivot_table(values='USER_ACCOUNT_ID', index =['FISCAL_YEAR','NAME','USER_ACCOUNT_ID'], columns ='STORE_ID',fill_value = 0, aggfunc=len)
season_all_partner_flattened = pd.DataFrame(season_all_partner_pivot.to_records())

However, using the same code and removing one index value causes a Key Error on ‘USER_ACCOUNT_ID’. I swapped that out with other fields as the ‘value’ and still get the error

all_partner_pivot = purchases.pivot_table(values='USER_ACCOUNT_ID', index =['NAME','USER_ACCOUNT_ID'], columns ='STORE_ID',fill_value = 0, aggfunc=len)
all_partner_flattened = pd.DataFrame(all_partner_pivot.to_records())

Perhaps I’m thinking of Pivot Tables in terms of Excel, but to me this should work, but am not grasping how! thanks in advance

All topic