w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
linux: running self compiled kernel in qemu: VFS: Unable to mount root fs on unknown wn-block(0,0)
maybe your system image file is bad and can not be mounted. You may try these command to mount the image file and check if it is a valid root file system for linux. losetup /dev/loop0 /var/lib/libvirt/images/Debian.img kpartx -av /dev/loop0 mount /dev/mapper/loop0p1 /mnt/tmp

Categories : Linux

Will SQL Server treat a USB 3.0 External Drive as local?
I just used a USB 2.0 drive the other day to perform a restore to a test environment. I imagine that as long as Windows identifies the drive as a local disk and not removable storage, and the SQL Server service can access the directory, it should work just fine.

Categories : Sql Server

Unmount my external hard drive in bash
Searching for "Unmount Hard Drive Terminal" yields http://ubuntuforums.org/showthread.php?t=842698 as the first result. >.> russlar provides a solution: open terminal, and run df -h. this will tell you all the hard drives mounted. then, run sudo umount /dev/something, where somethign is the name of the hard drive that you want to unmount. Nothing wrong with asking, but when a solution is on the first Google result, it's a little... odd.

Categories : Misc

Google Drive: read-only without authorisation on external site
It is be possible for a third party app to authorize requests without an access token. You can make requests from an allowed referrer/IP with an API key. https://developers.google.com/console/help/#generatingdevkeys Then, you should be allowed to GET the following public file: GET https://www.googleapis.com/drive/v2/files/1T_fVTiyyBVnfYKd_3gZzVfxqU5NbOhIlEG0nyReYh9w?key=[yourKey]

Categories : File

How to remove file permissions on linux from an external hard drive?
To make the partition accessible under Linux run: sudo chmod -R 777 /media/<drive-name>/ this should make the mac drive accessible for you. Changing ownership would do about the same, but you need not worry about it.

Categories : Linux

Change my current working directory in Python to my external hard drive.
You are correct. >>> 'E:CollegeProject3dlife-gc-2013-dataset-hhi3dlife-gc-2013-dataset-hhi' 'E:\College\Projectx03dlife-gc-2013-dataset-hhix03dlife-gc-2013-dataset-hhi' Double the backslashes, use forward slashes, or use a raw string.

Categories : Python

Mounting sshfs on unreliable connection
You can play a little bit with the options of sshfs, for example, enabling the compression, the automatic reconnect and nodelay flag for tcp: -C equivalent to '-o compression=yes' -o reconnect -o workaround=LIST [no]nodelaysrv set nodelay tcp flag in ssh (default: off) sshfs server:/srv/homes /mnt/mountpoint -C -o reconnect -o workaround=nodelaysrv But what has give me better results is using NFS, I don't have the lags that I had with sshfs and is pretty standard in the *nix environment, you can export your directory with the read-only option giving you an extra speed. Server: # File: /etc/exports /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check) Client: mount server:/srv/homes /mnt/mountpoint

Categories : Misc

autofs/sshfs not adhere to remote permissions
sshfs by default does not allow the kernel to check permissions you need to use sshfs -o allow_other,default_permissions Im not sure how to use that with autofs as I only ever use sshfs direct but it should be able to slot in somewhere

Categories : Linux

System.Diagnostics.Process unable to launch file from Mapped Drive in Windows Form App
I tested your code and it runs properly for me. The only way I could reproduce your error is by running it with an unmapped drive (Changed to z: ext.txt which is not mapped). Make sure that the computer RUNNING the program has the specified mapped drive on their computer. Just because the program may reside on a server and the server has the required mapped drives, doesn't mean that the clients running the program have the same mapped drives.

Categories : Dotnet

Unable to access external database from Heroku App
Do you have your credentials defined in /app/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.11/lib/mysql2/client.rb ? It looks like the migrate command is trying to pull the info from that file. EDIT: sorry, the code block you had got cutoff on my screen. Does everything look right in the client.rb file?

Categories : Ruby On Rails

unable to get external css working in a dynamic web project spring
Change your resource location to <mvc:resources location="/WEB-INF/css/" mapping="/css/**"/> and while accessing on jsp you could very well write <c:set var="context" value="${pageContext.request.contextPath}" /> <link rel="stylesheet" type="text/css" href="${context}/css/style.css" /> Cheers.

Categories : CSS

Android unable to create new directory on external storage
File.mkdir() will only create the directory if its parent exists. In this case, the directory you want to create is "videos" and its parent is "NewFolder". "videos" will not be created if "NewFolder" does not exist. If you want to create both directories at once, you should use File.mkdirs() instead.

Categories : Java

Unable to call external javascript in aspx page
You're load jQuery scripy twice. <script src="../Scripts/jquery-1.4.1.js" type="text/javascript"></script> <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script> Remove one of them. You should remove this file too: <script src="../Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script> After that check paths to scripts. Your script work correctly.

Categories : Javascript

google drive api - copyfile working only with permission for accessing all files in drive (but jst need to copy)
According to the documentation, Files.copy() requires at least one of the following three permissions: https://www.googleapis.com/auth/drive: "View and manage the files and documents in your Google Drive" which is the one you want to avoid https://www.googleapis.com/auth/drive.file: "View and manage Google Drive files that you have opened or created with this app." Which means you can freely create any file but only open the files your app created. You can only copy a file you created, but you cannot copy any other files even if it is public. https://www.googleapis.com/auth/drive.appdata: "View and manage its own configuration data in your Google Drive" Which only lets you control your application-specific Appdata folder which is probably not what you want. You can only copy a file with

Categories : Javascript

Google drive: Get (root) file and folders with javascript api (get only deleted files on drive)
Same situation as following question: google drive api, javascript list files returns nothing I needed to add to the scope the path 'drive' at authorizing, I had only drive.file which is intent to create/edit files only. The weird thing is that the API returns deleted files when you don't have permissions to view files, I think it's a bug in the API (a serious one). Post this bug on google drive: https://productforums.google.com/forum/#!searchin/drive/security$20issue$20permission$20view/drive/pupjKxTz9FU/cUarGIl_Ah0J

Categories : Javascript

Error while Retriving files from google drive using drive API. “Calling this from your main thread can lead to deadlock
You should do any code that could take a long time such as I/O or network activity on a different thread. In your situation your file retrieval would be best done within an ASyncTask. The reason for this warning is because when your code is being executed to retrieve the file from Drive, the code will block until the file retrieval has completed, this means that nothing else within the program will be able to respond, i.e. GUI will not update and input from the user trying to do stuff with the GUI will not be registered. After a few seconds, if the file retrieval still isn't complete, then the user will be presented with an ANR (Application Not Responding) message. This will either give the user the choice of waiting, if their patient, or most likely force closing your app.

Categories : Android

Unable to access HTML element from external js in Chrome Extention
I was tested your code and it doesn't work, i think the content page wasn't loaded completely, So it's preferred to use jQuery accompany this code in your "getMSG.js": $(document).ready(function () { document.getElementById('content').innerHTML = 'Hello'; }); Works fine for me.

Categories : Javascript

Monitoring changes in Google Drive files for whole domain using Drive API
Domain-wide delegation simplifies the authentication portion for your app but you'll still need to auth as each user to get their files and changes. It may be possible for your app to "grab" all files and make itself (or a special user) the owner, then you just have one user account to scan but the "grab" process would still need to run at regular intervals to find new files created or uploaded by end users. I believe most apps that need to scan content at this level do it via cron jobs or AppEngine task queues which make it easy to chunk up the scans throughout the day. Generally they expect to scan each user account once every 24 hours or so.

Categories : Google App Engine

Google Drive Javascript API: Detect drive changes - return changes only
Start with zero on your first call. Within the response is the current largest change id, which you need to store and use on the next request. In your code, it will materialise as "resp.largestChangeId".

Categories : Javascript

unable to thread multiple external scripts in python interpreter using stdin
Your last code is equivalent to following shell command. ./pdb_fasta.pl abc.txt | ./count_aa.py To make your last code to work, change count_aa.py to get input from stdin. For example: import sys n = 0 for line in sys.stdin: n += 1 print(n)

Categories : Python

Unable to create custom page tracking URL for external links with Universal Analytics Code
This is a race condition caused by the track request not completing before the browser starts to load the external link. What you need to do is use the hitCallback parameter, and prevent the link from navigating by using return false in the click handler: onclick="trackAndRedirect(); return false;" <script> function trackAndRedirect() { ga('send', 'pageview', { 'page': '/myexternalpage', 'title': 'External Page', 'hitCallback': function() { //alert('analytics.js done sending data'); document.location = "http://www.externalsite.com"; } }); } </script> https://developers.google.com/analytics/devguides/collection/analyticsjs/advanced#hitCallback

Categories : Javascript

Windows: How to symlink drive to another drive?
No, mklink isn't going to do it for you. What you need to do is to create a virtual hard drive (VHD) and copy the client's data to it. (Or modify the export script, which is the best thing to do.) I used Windows 7 to test my instructions below. Start-> run-> diskmgmt.msc (accept all defaults... I'm not doing anything special below) From the menu bar select Action -> Create VHD Choose the location and name the file (which will be the vhd) and specify the size and click OK. Right click on the Disk # (underneath will be Unknown and the size and "Not Initialized"). Select "Initialize Disk" & click OK Right click on the black bar of the unallocated disk space and select "new simple volume". A wizard opens up an on the second page it lets you assign the drive letter. Complete the wizar

Categories : Windows

How do I create & edit a spreadsheet file on google drive using Google Drive APIs only from my Android app?
You should take a look at Google Spreadsheet API 3.0. It supports JAVA which you can use in your Android application.

Categories : Java

Google Drive sdk for android, Getting error 400 Bad Request when uploading file to Google Drive
You seem to be setting the mime type in the File object, but you need to set it in the FileContent object. When you create your file content, you can try passing in the type in the constructor new FileContent("image/jpeg", localFile); or using the method setType("image/jpeg"); but in your mediaContent instance, not in your body instance.

Categories : Android

Using Subclipse with share drive specifically an office-like share drive
You should start with the SVN book, chapter 1: http://svnbook.red-bean.com/en/1.7/svn.basic.html You need a SVN server and repository. That is what you will "share" with. All users that want to collaborate on the versions of a file will need to use a SVN client so that they can checkout and edit files stored in your repository and commit their changes back.

Categories : Eclipse

mount unmount without sudo
You must add /nfs entry to /etc/fstab on the server host. In the list of options of the entry must be option user or users (depends on that if you want that user could unmount the filesystem or not). Example: xx.xx.xx.xx:/ /nfs nfs rsize=4096,wsize=4096,user 0 0

Categories : Linux

How to mount an attached EC2 volume in CLI?
I'm not sure if this is a good answer, try running: lsblk /dev/sdi And it may list partitions that exists on that drive like this: sdi |--sdi1 |--sdi2 |--sdi3 If you have something like sdi1 you can try to mount it: mount /dev/sdi1 /your/folder/here Hope it helps.

Categories : Linux

Oracle 11g startup and mount
fix it: Connect to DB: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> shutdown immediate; Database aready shutdown. Aready uninstall database. ORACLE instance aready close. SQL> startup nomount; ORA-12514: TNS: listner process can't recognize current service of connection describe string监听程序 SQL> startup nomount; ORA-24324: service handle not initialized ORA-01041: internal error, hostdef extension name not exists SQL> conn sys/sys as sysdba; Aready connect to idle instance SQL> startup; ORACLE instance started。 Total System Global Area 535662592 bytes Fixed Size 1334380 bytes Variable Size 234881940 bytes Data

Categories : Oracle

How to mount a snapshot from boto?
The attach_volume method takes an instance_id and a volume_id but you are passing objects. Try this: c.attach_volume(volume.id, instance.id, "/dev/sdh") The device_name should be a reasonable device name for the OS you are using. You can find more about what that value should be here. boto uses standard Python logging so you can configure it to log as much or as little as you want. This gist shows a shortcut approach to get full debug logging. However, boto can only log what it has access to and it's possible the response from EC2 just doesn't provide much information.

Categories : Amazon

Mount other users hive with C# .net
You can call the RegLoadKey API method using platform invoke. [DllImport("advapi32.dll", SetLastError = true)] static extern Int32 RegLoadKey(IntPtr hKey, string lpSubKey, string lpFile);

Categories : C#

Mount Windows shared filder to AIX
Two options 1) The easiest would be to install the bos.cifs fileset and use smit to mount the share as a filesystem: http://www-01.ibm.com/support/docview.wss?uid=isg1fileset-1244257370 2) I would not recommend this for "newbies", but you may have better luck getting this to work by installing samba: www.samba.org

Categories : Unix

Mount to local directory without Fuse.
In short, no. If your host wont enable FUSE or any other kernel module that allows you to mount filesystems in user space, then there's nothing you can run yourself. Your best bet is to check if your VPS has a module installed specifically for FTP filesystems, or get the host to install one, or get the host to enable FUSE.. or just move on to a different host.

Categories : Linux

Scripted truecrypt mount, without using /dev/ or UUID
Use Disk ID instead: #!/bin/bash # Run this script as root to avoid entering the root password twice secret=0xa52f2c38 # Generate tempfile tempfile=fdisk.tmp sudo fdisk -l > $tempfile # -------------------------------------------------------------------------- # Locate secret drive and mount it # -------------------------------------------------------------------------- num=$[ $(grep -n "^Disk identifier: $secret" $tempfile | cut -f1 -d:) - 5 ] if [ $num > 0 ] # num will be greater than 0 if drive exists then # Get line containing /dev # ---------------------------------------------------------------------- dev=$(sed -n "${num}p" $tempfile | cut -f2 -d' ' | sed 's/://') truecrypt $dev /media/secret # Check (Create .truecrypt on the mounted volumen beforehand) # -----------

Categories : Misc

LSF - Mount a cgroups.cpuset for jobs
Support for cpuset was released in LSF 9.1.1.1 (GA July 31, 2013). The feature adds a new parameter to lsf.conf LSB_RESOURCE_ENFORCE. You can set it to cpu, memory or both. You need to enable the cpu and memory affinity feature of LSF to use cpuset.

Categories : Linux

how to determine if the mount successful in QT code
You can check last error of a QProcess by using error and state functions (Documentation for "error" Documentation for "state"). "What if there is an error that is not in my condition." You can add something like this in your code: else if(connectSamba.state() == QProcess::NotRunning && connectSamba.error() >= 0) { LogWrite("Unknown error", Qt::red); return false; } Or, if you want to give more specific information, you can create a condition for each error code separately. Here's a list of codes. Alternatively, don't add the above block to the error checking code. Instead, create a slot to which you connect the error signal of connectSamba class: // add this line below "QProcess connectSamba;" line in mwDm::mountFolder connect(&connectSamba, SIGNAL(error(QPro

Categories : Qt

Icecast dont see mount point
Hey it looks like you made an error configuring Nicecast. You might want to read the following guide. Please note that Nicecast has an built-in Icecast server, make sure you are not using this one. As well not that Nicecast for some reason will kill any running Icecast server on the same machine where Nicecast is started. So you have to first start Nicecast and only afterwards start your Icecast Server. (This should not happen anymore after you have disable the built-in server though) Another issue I experience with some versions of Nicecast is that the Settings or at least some (like the Mountpoint Name) only take effect after restarting Nicecast. Additionally make sure your Mountpoint name is not /, as this is an impossible mountpoint name (it conflicts with the web interface).

Categories : Misc

Attempt to mount remote nfs only when it is accessed
You can use automount for this. https://help.ubuntu.com/community/Autofs The example there shows how to automount an NFS share.

Categories : Misc

mount: nfs access denied by server
Is there a config file on the NAS where to put allowances for clients? E.g. in debian based OS the config file is "/etc/exports" and you would put there "/volume2/Asterisk_Recordings 192.168.1.1(rw,sync)" and activate this with "exportfs -a" (your NAS may do this automatically if you update the config via a web interface, I guess.) Check also Mounting NFS results in access denied by server.

Categories : Misc

C - How do I move a file from a cifs mount to local hdd
In all likelihood, if you interrogate errno after rename fails, you will find that it is set to EXDEV. May I suggest that you add that information or confirm that it is EXDEV. If you are getting EXDEV, then it is because of the Linux limitation that rename() only works if oldpath and newpath are on the same mounted file system. From rename(2) EXDEV oldpath and newpath are not on the same mounted file system. (Linux permits a file system to be mounted at multiple points, but rename() does not work across different mount points, even if the same file system is mounted on both.)

Categories : C

Android - Mount a Samba share in code
Probably smbfs/cifs are currently not supported by your kernel. As Delyan said, ensure your kernel can mount these filesystem : $ cat /proc/filesystems nodev sysfs nodev rootfs nodev bdev nodev proc nodev cgroup nodev tmpfs nodev debugfs nodev sockfs nodev usbfs .... If they are not listed, you should try to do a modprobing (sometimes the module you want just have to be activated), get root access then : # modprobe <modulename(without.ko)> e.g. : # modprobe cifs If it doesn't work you will have to change or recompile your kernel (including appropriate modules).

Categories : Android



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