Download File Using jQuery

How can I prompt a download for a user when they click a link. For example, instead of: <a href="uploads/file.doc">Download Here</a> I could use: <a href="#">Download Here</a> $('a').click......

SSL certificate rejected trying to access GitHub over HTTPS behind firewall

I'm stuck behind a firewall so have to use HTTPS to access my GitHub repository. I'm using cygwin 1.7.7 on Windows XP. I've tried setting the remote to...

Android: Proper Way to use onBackPressed() with Toast

I wrote a piece of code that will give the user a prompt asking them to press back again if they would like to exit. I currently have my code working to an extent but I know it is written poorly...

How does one safely static_cast between unsigned int and int?

I have an 8-character string representing a hexadecimal number and I need to convert it to an int. This conversion has to preserve the bit pattern for strings "80000000" and higher, i.e., those...

ServletException in '/left.do': java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.tiles.leftlogged_jsp

After integrating ESAPI into a login form I am getting a rendering issue and an error after a successful login. The error generated in the browser states: javax.servlet.ServletException:...

Is there any way to pause a HTTP request using chrome.webRequest without locking the entire browser?

I'd like to display headers intercepted with chrome.webRequest.onBeforeSendHeaders to the user for editing, preferably using chrome.tabs.executeScript. However, chrome.tabs.executeScript is...

Error 127 - recipe for target failed - When compiling Google NaCl examples from Pepper 19?

When I run the make batch file in my Cygwin terminal I get the following output: [email protected] ~/pepper_19/examples$ make make -C dlopen make[1]: Entering directory...

How should functionality that requires root privileges be added to a Common Lisp library?

###Original Question I'm trying to create a Lisp library that can, among other things, edit my system's /etc/hosts file and nginx configurations. The problem I'm facing is that, because my Lisp...

Android Studio Project disappeared

I just did an update of Android Studio and the project I was working currently on was completely erased. I think it prompt me on "terminating the main process" and I accidentally clicked ok. Is...

Terminal vs Console vs Shell vs Command Prompt?

I find myself using these terms interchangeably without knowing the difference.What is the actual difference between all these terms?

use AddressOf in VBA in win x64

I use this program in winx86 without any error but when i try use it in win x64 my problems started. I use ptrsafe in my code to let me run in win 7 64bit, I'll add that this module have more code...

Curl GET request with json parameter

I am trying to send a "GET" request to a remote REST API from Command Prompt via cURL like this: curl -X GET \ -H "Content-type: application/json" \ -H "Accept: application/json" \ ...

PS1 prompt in fish (Friendly Interactive SHell) show git branch

In Bash I have my PS1 as PS1="\[email protected]\h:\w\$(git branch 2>/dev/null | grep -e '\* ' | sed 's/^..\(.*\)/{\1}/') \$ " Which will show my current git branch if I am in a git repo. How do I set the PS1 in...

Could not establish secure channel for SSL/TLS with authority 'xxxxx.com'

I'm trying to write a client against a customer's SOAP webservice, using VS2013 and WCF. The webservice itself is behind their firewall, so they've established a proxy that I'm trying to contact. ...

ExpressJS Error: Body-Parser Deprecated

Question I'm trying build a Node.js API, when write my server.js file, my code looks like this: var express = require('express'); var express = require('body-parser'); var app =...

How to suppress npm WARN deprecated messages in bash

I have several version of node.js installed in Linux Mint 18.0. I manage them using nvm. Because of a project dependency, I need to have version 0.10 as the default version (nvm use 0.10). As a...

How can I compile and run my Pascal code in VS code?

Is there a way I can modify tasks.json and keybingings to create shortcuts for compiling the code and running it? After a ton of googling I came up with this. When I press ctrl+shift+b it...

Visual Studio 2017 gives 'Adding the Certificate to The Trusted Root Certificates store failed with the following Errror'

I am trying to run ASP MVC application with SSL mode set to true and whenever i run the application, i get prompt to trust the IIS Express SSL certificate. Upon clicking Yes, it gives the error...

How to generate .hhp file from windows command prompt?

My goal is to achieve an automated process which converts HTML files into the CHM file format. I am able to generate chm file using hhp from command line. hhc filename.hhp But hhp file was...

Flutter stuck at Installing build\app\outputs\apk\app.apk

When I run: $ flutter run I'm getting a prompt on my mobile device asking if I want to install the app on my device. I give yes, then nothing happens! It's stuck here: Launching lib/main.dart on...

Why does jupyter notebook server keeps crashing when .ipynb files are opened?

I was able to use jupyter notebook 4 days ago. The only thing that changed was there was a firefox version update. After that the server crashes everytime .ipynb files are opened. Even the...

On Windows what is the difference between Git Bash vs Windows Power Shell vs Command prompt

I am a Mac guy who is used to Mac's Terminal. Now I am using Windows. Whats the diff between those CLI options? When should I use one over the other? Are there more CLI options that I should...

Trouble trusting local HTTPs certificate in ASP.NET Core

I am following an online tutorial to create an ASP.NET Core Web application. I followed everything but had trouble with trusting the local HTTPS certificate. When I first run the application, I...

How to fix: Conda activation is not working?

installed Python 3.7.3 and Anaconda and tried to activate it in the Anaconda Prompt. activate %PATH% but i get the error activate does not accept more than one argument What can I do about it ?

How to add a user to Windows 10 using python and powershell

I am trying to add a user to windows 10 using a python script that uses powershell to add the user. Here is what I have so far: main.py import subprocess as sub import os username =...

Why are py and python giving different results?

Using py and [tag:python] are giving me different results in the Command Prompt. For my specific program, when I run python file.py, the program works as expected. However, when I run py file.py,...

nyc not recognized as command after installation

I am very new to node.js, npm and JavaScript but for code coverage trying with Istanbul tool and hence installed nyc with npm i nyc referring to https://www.npmjs.com/package/nyc which outputs...

PyInstaller Error: FileNotFoundError: [Errno 2] No such file ot directory: 'myKivyfile.kv'

So I have tried to get my python / kivy project into a standalone "exe". I succeeded in making it "onedir" but after it compiled (with no errors) into a single exe, it doesn't work. The app window...

What is causing the 'cannot access ViewGroup ... class file or android.view.ViewGroup' error?

Problem: I'm not exactly sure why I'm receiving an error on my AddNote.java class. This was working before and I see the XML activity is still linked to the class. In fact, this AddNote is nearly...

Problem in separating the digits of an n digit number

In our computer programming class, we had to separate the digits of a 5 digit number and display them on the screen, I managed to do that but then we were asked what we would do if it was an n...