w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Where to download Scala RPM or DEB packages?
Good point, it seems like they are not listed on the Scala 2.10.2 download page. But they are actually there, you can browse the download directory directly to get them for any version that has them (2.9.2 and above). For 2.10.2: scala-2.10.2.deb scala-2.10.2.rpm I created an issue to track this. Edit: this is now fixed, the download pages have been updated.

Categories : Scala

Python - download packages from own server
From the docs, you can use the: --use-mirrors --mirrors <url> flag in pip to specify which mirror to use. From command line, you can also speicify mirrors. For example: pip install -i http://d.pypi.python.org/simple $PACKAGE

Categories : Python

Can I combine two Eclipse download packages?
Your best bet would be to download one (like Parallel Application Developers) and then use Help>Install New Software to install CDT (C/C++). There's no way to combine them if you download both, and no way to download everything at the same time (since you need at least 2 separate downloads). There's a good information page on the different package contents.

Categories : Eclipse

Cannot download Node packages using npm and shell
"/usr/local/lib/node_modules" would be a UNIX (linux) path. I haven't tried running nodejs on windows but that path should be fine. sudo will make your command run as admin in linux, in windows you might want to try just "npm install -g sax".

Categories : Node Js

Is there any way to use Composer download packages without docs and testing things?
You need to use --prefer-dist. And if there is a dist version for your repository it will be downloaded. You also can use --no-dev flag to exclude libraries that listed in require-dev section of packages. These libraries maybe useful only for development.

Categories : PHP

pep381client(pep381run) wont download packages from the official pypi server
pep381 client use http, but pypi can only be used https. This program is not implemented function that redirect url. I modified the program as this. file: (YOUR INSALLED DIRECTORY)/pep381client/__init__.py 9: -BASE = 'http://'+pypi +BASE = 'https://'+pypi 28: - _conn = httplib.HTTPConnection(pypi) + _conn = httplib.HTTPSConnection(pypi) 37: - _conn = httplib.HTTPConnection(pypi) + _conn = httplib.HTTPSConnection(pypi)

Categories : Python

easy_install error "No local packages or download links found for python-pack==1.5.0beta2"
Going to http://pypi.python.org/simple/python-pack/ shows that this package isn't available. It's too bad, you may need to contact your package developer or scour the website where you got it from to find out what this dependency actually is. Can you let us know where you got the package from?

Categories : Python

How to create a form and connect it with a download
i dont know of framework that doing just so, but it not to hard implement it yourself. make anchor tag that redirect user to download. bind the evnt of clicking that anchor using jquery .on function. in the JS function send an ajax with the serialised info. throw .ajax function. when its complete, redirect user by using location.assign('/dl.php?f=123.mp3'); built in JS function. is that help? (if not, do not vote me down, just ask further and i help)

Categories : Ruby On Rails

How to download and install the extension to magento connect from GitHub repository?
I don't think there is a tool to generate a package for magento connect from a git repository right now. You have to install your module an package it in magento itself. Here is the official tutorial pdf.

Categories : Magento

How to correlate transaction receipts to Financial Report which can download in iTunes Connect?
I have a (free) tool to do this for Google & Amazon app stores, and am currently adding support for Apple (30 June 2014). It allows you to apportion sales by app or individual in-app purchases, regardless of currency. This is currently quite difficult for Amazon and Apple especially. You can find the code here: https://github.com/eggheadgames/app_earnings. You'll need Ruby installed to run it.

Categories : IOS

python packages -- overriding built-in packages and the dreaded "Module xxxx was already imported" warning
Rename myprogramxlrd to myprogramfrozen_xlrd. Then import it with try: import xlrd except ImportError: import frozen_xlrd as xlrd Alternatively, you could tell Python to silently ignore this particular UserWarning: import warnings warnings.filterwarnings("ignore", message="Module xlrd was already imported", category=UserWarning) Place this early on in the program, before scikits gets imported.

Categories : Python

First Data Patament Gateway- No option to download 'digital certificate' (.PEM) file in Download Center
You can Download the Certificates using Internet Explorer Browser. The Firefox, Chrome and other browsers not support to download. Important thing is Use "111111111" as your Tax ID for your test account. For production stores you will be required to supply your actual SSN or Tax ID submitted in the merchant account boarding process.

Categories : PHP

google drive download document using javascript :can't download files
"if i paste the downloadUrl in the browser it won't give any result" is correct because when you GET using a browser there is no authentication header. If you check the status you will see a 401 error. I use "Authorization: 'OAuth ' + gapi.auth.getToken()['access_token']" rather than 'Bearer'. I'm not sure if that is significant. Are you sure the downloadUrl is current? This is a short-lived attribute, so it's possible the link has expired. It's also possible the access token is invalid. As Burcu said, your answer is probably within the response and status to your xhr get.

Categories : Javascript

C# Multiple Download from FTP using parallel task - Duplicate Download issue
You better use Distinct like below Parallel.ForEach(remotefiles.Distinct(), file => DownloadFile(sfc, file)); if you have duplicate file names and when parallel processing start on same file you will get exception on those duplicate files. And also you are not downloading to another location, what you are doing is download to same ftp source location. is that correct? I would give diferent download directory and get file name from source file and then download to that location as below private void DownloadFile(SftpClient sf, string RemoteFileName) { string downloadTo = Path.Combine(DownloadDirectoryPath, Path.GetFileName(RemoteFileName)); using (Stream ms = File.OpenWrite(downloadTo)) { sf.DownloadFile(RemoteFileName, ms); }

Categories : C#

Download Code Error In PHP? Upload And Download Form
You can download a file direct from your dowload.php by specifying a custom header and using readfile to include the file. Checkout this stack question: How to return a file in PHP

Categories : PHP

File download from URL stops when multiple clients try to download it
Your download code looks ok and I do not see any reason for a race condition, so without deeper analysis of your download code, I can tell you that this code (client side) is not the problem. It must be the server side which causes the problem, i.e. your webserver or a proxy or firewall which is in between. Moreover, maybe you should look at JNLP, which is a technology designed exactly for your problem of keeping an application always updated and checking this at startup.

Categories : Java

Download image from URL that automaticaly creates download - python
There's nothing particularly special about X-Accel-Mapping header. Perhaps the page makes the HTTP request with ajax, and uses the X-Accel-Mapping reader value to trigger the download? Here's how I'd do it with urllib2: response = urllib2.urlopen(url_to_get_x_accel_mapping_header) download_url = response.headers['X-Accel-Mapping'] download_contents = urllib2.urlopen(download_url).read()

Categories : Python

how to download file in android download service
You can download any file using AsyncTask. downloadContent(); private void downloadContent() { DownloadFile downloadFile = new DownloadFile(); downloadFile.execute("http://somehost.com/file.mp3"); } // usually, subclasses of AsyncTask are declared inside the activity class. // that way, you can easily modify the UI thread from here private class DownloadFile extends AsyncTask<String, Integer, String> { @Override protected String doInBackground(String... sUrl) { try { URL url = new URL(sUrl[0]); URLConnection connection = url.openConnection(); connection.connect(); int fileLength = connection.getContentLength(); InputStream input = new BufferedInputStream( connection.g

Categories : Android

Automatically download an xml file from URI with download popup
The URI that you are using is probably wrong. You are using the URI that opens the popup page. The popup page should be doing another GET to the dynamically generated file. To automate this process, you should use a WebRequest to get the contents of the popup page. Scrape the contents of the page to get the actual URL to download the file. Then use the code you have written to download the file. var request = WebRequest.Create("PopupUrl"); var response = request.GetResponse(); string url = GetUrlFromResponseByRegExOrXMLParsing(); var client = new WebClient(); webClient.DownloadFile(url, filePath);

Categories : C#

.htaccess RewriteRule from download.php?token=something into /download/something
Enable mod_rewrite and .htaccess through httpd.conf and then put this code in your .htaccess under DOCUMENT_ROOT/subf/subf2/ directory: Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase /subf/subf2/ RewriteRule ^(download)/(w+)/?$ $1.php?token=$2 [L,QSA,NC] # to take care of css, js, images RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{REQUEST_URI} .php$ RewriteRule ^download/(.+)$ /subf/subf2/$1 [L,R=301,NC]

Categories : Regex

How to hide a download link from a download manager in PHP
//This will help you <?php $fullpath = 'https://www.example.com/test.exe'; $filename ='test.exe'; header("Cache-Control: public, must-revalidate"); header("Content-Type: application/exe"); header("Content-Length: " .(string)(filesize($fullpath)) ); header('Content-Disposition: attachment; filename="'.$filename.'"'); readfile($fullpath); ?> MIME type informations http://filext.com/file-extension/EXE

Categories : PHP

Trouble in connect with Connect Live --- SkyDrive Synchronizer with Azure Blob
Sounds like Azure Mobile Service is something that you should check out. e.g. the following link talks how to integrate with azure blob storage. http://code.msdn.microsoft.com/windowsapps/Upload-File-to-Windows-c9169190 Then there is live SDK Skydrive API which is restful, so seems like you can use Azure Mobile Service to do the job you requestsed. Also the service allows you run the scheduled jobs.

Categories : C#

Connect failed (1006) msg: TB.socket error, Connect Time-out (1008)
The reason you are getting this error is that your iOS app is using OpenTok's flash stack and your website is using the WebRTC stack. OpenTok's flash and Webrtc services are not interoperable and you would need to stick to one. Your iOS is currently streaming to a flash media server. You website is trying to use WebRTC library, which is trying to establish a socket connection with the flash server, thus giving you the TB.Socket error. What you should do is to stick to one stack. OpenTok's webrtc JavaScript library with OpenTok webrtc iOS sdk OpenTok's flash JavaScript library with OpenTok flash iOS sdk Sometimes in Xcode, simply deleting the flash framework and dragging in the webrtc framework will not work. You would have to go to Project Navigator -> Project -> Build Settings -> F

Categories : Javascript

Does virtualenv isolate python itself + python packages, or just python packages?
Virtualenv installs python, but it's installed in the bin directory of the virtualenv you created. Therefore you need to run it with ./bin/python. You can also "activate" the virtualenv by running source bin/activate Which will put the virtualenvs bin directory first in the path (and do some other trickery I think) which will make the virtualenvs Python the default Python, so you can start it with just python. But this is not necessary.

Categories : Python

cassandra 1.2 nodetool getting 'Failed to connect' when trying to connect to remote node
The issue did end up being a firewall/security group issue. While it is true that the jmx port 7199 is used, apparently other ports are used randomly for rmi. Cassandra port usage - how are the ports used? So the solution is to open up the firewalls then configure the cassandra-env.sh to include JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname=<ip>

Categories : Cassandra

QEMU - Can't Connect Between Guest and Host, but Both Connect to Router
After doing more research I found that this is the intended behavior of the bridge mode I selected. Guest can reach outside network, but can't reach host (macvtap)

Categories : Ubuntu

I can connect to the database via SQL Server 2008, but can't connect via Node.js
Sadly, SQL Server and MySQL doesn't share anything but the SQL and some syntax. The protocol of the connection aren't the same. So the node-mysql package won't work for you. You can find the SQL Server driver on this MSND page with the explication on how to use it or directly on the GitHub page of the project.

Categories : Mysql

Difference between secret of connect.session and connect.cookieParser?
You only need to set it with one or the other. Though, you can pass to each in order to give them different secrets to use. The difference between them is in their so-to-say "greediness" with it. session(secret) will keep the secret to itself, only using it for the cookie holding the session ID. cookieParser(secret), on the other hand, will allow for any cookie to be signed. You can create signed cookies with Express' response.cookie(). Signed cookies are also supported through this method. Simply pass the signed option. When given res.cookie() will use the secret passed to express.cookieParser(secret) to sign the value. res.cookie('name', 'tobi', { signed: true }); Later you may access this value through the req.signedCookies object.

Categories : Node Js

Android emulator cannot connect to DNS hostname, but can connect to IP address
I can see two issues here. You are trying make network call in main thread. Which is not accepted from Android 4.0. So better you do in background thread. Though you are developing application lower than Android 4.0 , I will recommend do in background thread. You should give full server address starting with "http://www.example.com". If you are able to connect using IP. you should get connected via server name.

Categories : Android

Why Response::download() won't download anything except PDF in Laravel 4?
Try including the MIME in the return: $file = storage_path().'/file/' . $file->id . "." . $file->file->extension; return Response::download($file, 200, array('content-type' => 'image/png'));

Categories : PHP

Web service can connect in IE, but can't connect by Visual studio
May be your corporate environment will block the Web Service. Can you please try the following? Add the Firewall outbound rule to allow to access the web service Add the web service as trusted URL in your anti-virus (or just pause the protection of anti virus to identify the cause of issue) Add the domain/ip address as trusted in your IE

Categories : Web Services

Java download to target (target can't be found) and 0 byte file download
You are using the transferFrom() method as a one-liner. However, I think you should check whether more data is available. From the API: An attempt is made to read up to count bytes from the source channel and write them to this channel's file starting at the given position. An invocation of this method may or may not transfer all of the requested bytes; whether or not it does so depends upon the natures and states of the channels. Fewer than the requested number of bytes will be transferred if the source channel has fewer than count bytes remaining, or if the source channel is non-blocking and has fewer than count bytes immediately available in its input buffer. A similar question was also posted that may help you.

Categories : Java

How to avoid downloading files to the download folder and download to other specific folder only in c#
The answer would be to pick one: either render the control to a string and output to Response OR WriteAllText. If you want to use the WriteAllText to save the file to a determined location, then perform the action and pop up a notification to the user that the file was saved.

Categories : C#

Download a file on button click and send value to the download file as parameter
window.location.href = 'excel.php?param=123'; at the end of excel.php simply output excel file contents header("Content-Disposition: attachment; filename="excel.xls"); header("Content-Type: application/force-download"); readfile('excel.xls') die();

Categories : PHP

How to connect Xcode and iTunes Connect
Here is a tutorial, it covers it all from scratch. http://www.raywenderlich.com/8045/how-to-submit-your-app-to-apple-from-no-account-to-app-store-part-2 and this one http://bobueland.com/cocos2d/2012/how-to-publish-your-app-on-the-app-store/

Categories : Xcode

`connect': Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (Mysql2::Error)
Find your socket file using mysqladmin variables | grep socket And then add the socket file to your database.yml configuration development: adapter: mysql2 host: localhost username: root password: xxxx database: xxxx socket: <socket location>

Categories : Mysql

torctl errors out with; TorCtl.connect() AttributeError: 'module' object has no attribute 'connect'
This is most likely an issue with your import statement. If you have... import TorCtl ... then try replacing that with... from TorCtl import TorCtl All this said, you might want to look into Stem. TorCtl was deprecated in December, 2012 in favour of Stem. Cheers! -Damian

Categories : Python

Custom UI for OSX Packages
I figured out a solution. If anyone knows of a better approach for this, let me know. Here's how I did it... First expand the package using pkgutil like so... pkgutil --expand mypackage.pkg mypackage This will explode the package contents into the folder "mypackage". Inside of this folder, create a new folder called "Plugins". Inside of this, you'll place both the plugin bundle as well as the plugin's InstallerSections.plist file. The InstallerSections.plist file is important. Without it, the plugin won't appear. Once you've updated the directory structure, you can flatten it back to a flat package like so... pkgutil --flatten mypackage mypackage.pkg That's what worked for me.

Categories : Osx

Detach several packages at once
?detach explicitly rules out supplying a character vector (as opposed to scalar, ie more than one library to be detached) as its first argument, but you can always make a helper function. This will accept multiple inputs that can be character strings, names, or numbers. Numbers are matched to entries in the initial search list, so the fact that the search list dynamically updates after each detach won't cause it to break. mdetach <- function(..., unload = FALSE, character.only = FALSE, force = FALSE) { path <- search() locs <- lapply(match.call(expand=FALSE)$..., function(l) { if(is.numeric(l)) path[l] else l }) lapply(locs, function(l) eval(substitute(detach(.l, unload=.u, character.only=.c, force=.f), list(.l=l, .u=unl

Categories : R

Nested Packages
package Sudoku::Utils; ⇒ in Sudoku/Utils.pm file ⇒ use Sudoku::Utils; package Sudoku; ⇒ in Sudoku.pm file ⇒ use Soduku;

Categories : Perl



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.