bower behind a proxy

Edit your .bowerrc file and add the wanted proxy configuration: { “proxy”:”http://<host>:<port>”, “https-proxy”:”http://<host>:<port>” } If working behind an authenticated proxy, user and password should be included like this: { “proxy”:”http://<user>:<password>@<host>:<port>”, “https-proxy”:”http://<user>:<password>@<host>:<port>” } Usually, the .bowerrc is next to the bower.json. And if there is no .bowerrc file near the bower.json file, you can create one … Read more

Git error: fatal: unable to connect a socket (Invalid argument)

I had the exact same error; but the ~/.gitconfig global config file was the key. If you have a proxy with authentication you need to put in it: git config –global http.proxy http://login:password@our-proxy-server:8088 And it just works (with ‘git clone http:‘) Example of a blog detailing the same setup: GIT clone over HTTP: who knew? … Read more

Using an HTTP PROXY – Python [duplicate]

You can do it even without the HTTP_PROXY environment variable. Try this sample: import urllib2 proxy_support = urllib2.ProxyHandler({“http”:”http://61.233.25.166:80″}) opener = urllib2.build_opener(proxy_support) urllib2.install_opener(opener) html = urllib2.urlopen(“http://www.google.com”).read() print html In your case it really seems that the proxy server is refusing the connection. Something more to try: import urllib2 #proxy = “61.233.25.166:80” proxy = “YOUR_PROXY_GOES_HERE” proxies = … Read more

svn over HTTP proxy [closed]

In /etc/subversion/servers you are setting http-proxy-host, which has nothing to do with svn:// which connects to a different server usually running on port 3690 started by svnserve command. If you have access to the server, you can setup svn+ssh:// as explained here. Update: You could also try using connect-tunnel, which uses your HTTPS proxy server … Read more

Eclipse Kepler not connecting to internet via proxy

I had same issue. I searched and found this. http://oakgreen.blogspot.jp/2011/10/eclipse-proxy-settings-bug-and.html This post says don’t set SOCKS proxy. I tried this advice, and connection was succeeded. I did below: Open Network Connection Settings. Select Active Provider to “Manual”. Set HTTP/HTTPS proxy. Clear SOCKS proxy if this is set.(select SOCKS proxy row and click “Clear” button) Restart … Read more

Return a requests.Response object from Flask

Ok, found it: If a tuple is returned the items in the tuple can provide extra information. Such tuples have to be in the form (response, status, headers). The status value will override the status code and headers can be a list or dictionary of additional header values. (Flask docs.) So return (resp.text, resp.status_code, resp.headers.items()) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)