w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Git installation in USB Drive that works in both OSX and windows?
Use a normal git repo on the usb drive. Use UTF-8 as encoding for all the files to make sure that you won't get any problems with that Before you go to your windows machine, make sure that you have checked out the branch that you want to work on. Use the checked out files and work with them. Back at your mac, you can commit and push and do whatever you like. OR Use your smartphone as usb drive. If you have Android, you can install botbrew on it and use git on your mobile. With that you can do your git operations while at your windows pc.

Categories : Osx

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 can I get the name of the drive on which the Windows is setup?
Press Windows + R Type cmd In the console, type set You can see the enviroment variables Probably you'll see something like SystemDrive So you can simply use System.getenv("SystemDrive")

Categories : Java

Auto formatting all drive in windows
You cannot delete or format the system and boot partitions from a running Windows. All other partitions can be deleted or formatted using diskpart with a script, e.g.: C:>type script.txt select volume 3 delete volume exit C:>diskpart /s script.txt Copyright (C) 1999-2008 Microsoft Corporation. On computer: FOOBAR Volume 3 is the selected volume. DiskPart successfully deleted the volume. Leaving DiskPart...

Categories : Windows

Read a .csv into pandas from F: drive on Windows 7
I cannot promise that this will work, but it's worth a shot: import pandas as pd import os trainFile = "F:/Projects/Python/coursera/intro-to-data-science/kaggle/data/train.csv" pwd = os.getcwd() os.chdir(os.path.dirname(trainFile)) trainData = pd.read_csv(os.path.basename(trainFile)) os.chdir(pwd)

Categories : Python

C# "Inject" drive to Windows explorer
For those who don't have any bad intentions and to answer the main Question: Yes, there is a way to "Inject" a virtual Drive by using the Win32 API: [DllImport("kernel32.dll", CharSet = CharSet.Auto)] private static extern bool DefineDosDevice( int dwFlags, string lpDeviceName, string lpTargetPath);

Categories : C#

How to restore svn repository after installation of windows & SVN tool
as @zerkms noted, SVN repository is just a bunch of files holding the versionning data! just place your backed up files (from D:svn-reposcode...) anywhere you like (maybe at the same spot) and you can just point your WC to the new location or check-out a new Working-Copy.

Categories : Svn

How to find default drive of windows using batch file
This is stored in the variable %SystemDrive% echo %SystemDrive% But you probably want to use %SystemRoot% instead which includes the drive and the directory: echo %SystemRoot%

Categories : Batch File

How to search for a folder in all the available windows drive using the command prompt?
See if this works for you: it will report the last match found. @echo off for %%a in (c d e f g h i j k l m n o p q u r s t u v w x y z) do ( if exist "%%a:" dir %%a: /ad /b /s >>"%userprofile%desktopfolderlist.txt" ) find /i "opencvuildin" < "%userprofile%desktopfolderlist.txt" >"%userprofile%desktopfolderlistfound.txt" if exist "%userprofile%desktopfolderlistfound.txt" ( for /f "usebackq delims=" %%a in ("%userprofile%desktopfolderlistfound.txt") do ( set "foundfolder=%%a" echo found at "%%a" ) ) if defined foundfolder ( echo last folder matched at "%foundfolder%" ) else ( echo didn't find the "opencvuildin" )

Categories : Windows

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

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

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

Where to put USB Flash Drive detection in WPF, MVVM
I would leave it in MainWindow.xaml.cs. If you need to overwrite WndProc it's tightly related anyway and it belongs to some "system interface" which normally doesn't belong to your view-model or model. Also, there's nothing wrong with using code behind. Well, it may be only a personal opinion.

Categories : C#

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

Check For A Software Installation & Install Directory In Windows with C/C++
It is quite hard to answer this because you did not mention the scenarios in which the install directory would be changed. If you are able to change the install directory, why dont you try something like this C:Program Files (x86)your_folder_name? This way, your install directory wont be changed by other users.

Categories : C++

Python off a Flash Drive, how to start IDLE?
It can not be guaranteed this is possible unless you have high enough system privileges that you can change the global path. There is really no way around this on most computers that you do not own, which I imagine is the main purpose. In those cases when you have enough privileges (it is worth a try some systems still allow this for regular users but many others do not) you can use: setx PATH "%path%;yourpath" edit and ps: You can figure out the drive letter without input, if you know the disk label, with something like this: @echo off set label=DRIVENAME set cmd=WMIC logicaldisk WHERE volumename^^="%label%" GET caption FOR /F "tokens=1" %%G IN ('%cmd% ^| find ":"')DO set pydrive=%%G echo %pydrive%pathtopython rem do your stuff here the idle started inside the batch will inherit

Categories : Python

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

How can I install C compiler properly for Python package installation for Windows?
I'm having the same problem, despite installing gcc and mingw-gcc under CygWin, per scipy recommendations. But this might get you further down the track: setup-x86_64.exe -q -n -N -d -R 'C:cygwin64' -s 'http://www.gtlib.gatech.edu/x86_64/release/' -l 'C:Users$USERDownloads' -P git,wget,curl,python,gcc-core,mingw-gcc Eventually I just had to mousily install all the Cygwin packages that came up in the search for "gcc". I only selected those under the "dev" category rather than "debug" and pip install numpy (which compiles and links a lot of C packages) worked fine. Here's my list of Cygwin packages. I'm on Windows 7 (when I can't avoid it), but not Win 8.

Categories : Python

I am trying to start an office program on a flash drive with a batch file
I think some of the directory names in %path% contain spaces and since %path% is not enclosed within ""( double quotes), the script is unable to find the exe . You may also want to include a log file so that it becomes easier to debug in case of any errors. Try this: set baseFolder=%~dp0 start "%baseFolder%office6wpp.exe" > "%baseFolder%batchRunLog.log"

Categories : Batch File

Windows batch file to get C: drive total space and free space available
cut 9 digits of the size by bytes to get the size in GB: @echo off & setlocal ENABLEDELAYEDEXPANSION SET "volume=C:" FOR /f "tokens=1*delims=:" %%i IN ('fsutil volume diskfree %volume%') DO ( SET "diskfree=!disktotal!" SET "disktotal=!diskavail!" SET "diskavail=%%j" ) FOR /f "tokens=1,2" %%i IN ("%disktotal% %diskavail%") DO SET "disktotal=%%i"& SET "diskavail=%%j" (ECHO(Information for volume %volume% ECHO(total %disktotal:~0,-9% GB ECHO(avail. %diskavail:~0,-9% GB)>size.txt TYPE size.txt cmd can calculate only with numbers up to 2^31-1   (2,147,483,647 ~ 2.000001 Gigabytes)

Categories : Windows

Postgres ODBC Drive scripted Install
Use the stand-alone MSI installers from the psqlodbc download directory rather than trying to do the install yourself. It's easier than using the EnterpriseDB installer to install just psqlODBC. msiexec /i the_driver.msi /qn /quiet will do a silent install without displaying any user interface.

Categories : Postgresql

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

Setting up Java compiler on Windows laptop
It looks correct. Did you restart the Command prompt every time you changed the PATH variable ? Also there's supposed to be only one path variable, so you're supposed to edit the existing one, entries are separated by a semi-colon (;).

Categories : Java

Once SSHd into my windows laptop, Putty doesn't recognize python
Figured it out. I found this link: http://cs.nyu.edu/~yap/prog/cygwin/FAQs.html#bashrc which really helped. I went to the /usr/bin folder, then typed ln -s /cygdrive/c/Python27/python.exe and now I can type "python myfile.py" when ssh'd through PuTTY and it works!

Categories : Python

Listing of all folders of Google Drive through IOS Google Drive SDK
Assuming this code works, there is a problem in the query. Multiple queries should be combined by and. query.q = @"mimeType='application/vnd.google-apps.folder' and trashed=false"; For more examples of sample queries, take a look at Search for Files in official documentation. Also, in case this code doesn't work, you want to use Files.list() with query above. Check the link and there is a sample code for Object-c you might want to use.

Categories : Objective C

Along with my hosted Windows service's installer, is it possible to set the recovery options when errors occur?
You can set recovery options using sc.exe from the command line. This answer has a good example of how to do this using C#: Install Windows Service with Recovery action to Restart

Categories : C#

How to Install Matplotlib Basemap Module on Windows 7 with WinPython (or any Python stack install)?
I use windows. And my installation failed with official guidance, too. Finally I installed Basemap using the following method. Although I am not sure if it will go right for you, I just offer mine. First of all, you must have pip in your computer. (It is much easier to install, compared with Basemap and other things. And it can be used to install many useful packages.) Then go this great link: http://www.lfd.uci.edu/~gohlke/pythonlibs/ And download the file named "basemap‑1.0.8‑cp27‑none‑win_amd64.whl". Remove the .whl file to directory "C:Python27". (Maybe you installed your python in different disk, then change it accordingly.) Open terminal. (Use cmd or Git Bash or something else.) Use command: pip install basemap‑1.0.8‑cp27‑none‑win_amd64.whl

Categories : Python

How to recovery Ubuntu 12.04 just from the .iso file, without CD-ROM
if you have installed GRUB 2, Grub2/ISOBoot may helps. it permits the user to boot and install Ubuntu directly from an ISO on the hard drive

Categories : Ubuntu

Windows Azure Active Directory Backup/Restore
You could consider using some of the Windows Azure Active Directory PowerShell Cmdlets to save your configuration. The various Get- Cmdlets (see http://technet.microsoft.com/en-us/library/jj151815.aspx) should allow you to save all your configuration settings, users, roles, etc.

Categories : Azure

Restore Windows application crash Debug button
Found in this answer. Go to the Tools | Options | Debugging | Just-In-Time dialog. Then make sure all Native and Managed (if you're debugging a .NET application) are checked. Next time you get a crash, the Visual Studio Just-In-Time debugger will come up. And this restores automatically the Debug button:

Categories : Visual Studio

How to Disable restore box of windows form when it is in maximized condition?
Have a look at this question: How do I remove minimize and maximize from a resizable window in WPF? The first and most upvoted answer doesn't belong to WPF only. So it should also work with a Winforms application.

Categories : C#

Windows 8 installation
The message tell that CPU doesn't support the required CPU features like SSE2, PAE and NX-Bit. May be this can help you:- Unlike Windows Vista and 7, Windows 8 (as from build 8400) is not compatible with all models of the Pentium 4 processor. This is due to the fact that Windows 8 requires a processor compatible with the following functions: SSE2, PAE and NX bit. All Pentium 4 are compatible with SSE2 and EAP: the problem may come from the NX bit. First, make sure your Pentium 4 model supports the NX bit: for sockets 423 or 478 processors, then it won't work (in most cases). For sockets 775 processors, it can be compatible. If the CPU supports NX-bit, you can install Windows 8 32-bit or 64-bit (it depends on the models!). Also make sure that NX bit is n

Categories : Windows

pig installation in windows using cygwin
Try the following: Make sure your PIG_HOME variable is set correctly. There should be a pig.jar (as well as a pig-withouthadoop.jar) file in your pig-0.11.1 directory. Make sure they live where $PIG_HOME is pointing. These files might have the name pig-0.11.1.jar or pig-0.11.1-withouthadoop.jar. If you're still having problems, cygwin is fussy with the pig-x.y.z.jar filenames. Rename these to just "pig.jar" or "pig-withouthadoop.jar" and try again. Good luck!

Categories : Hadoop

hadoop 1.1.2 installation on windows
Quit Cygwin. Your path to the bin folder of JAVA contains is in another folder named bin ? I don't think so. Install a JDK (not a JRE) properly in a Path with no blanks. For example : C:jdk1.7.0_21 In Windows : Add an environnement variable JAVA_HOME to C:jdk1.7.0_21 Then, add the JAVA_HOME/bin to your PATH. Edit hadoop/conf/hadoop-env.sh : Uncomment the JAVA_HOME Export. For my example : export JAVA_HOME=/cygdrive/c/jdk1.7.0_21/

Categories : Hadoop

PHP PDO installation on windows (xampp)
So i finally managed to connect to four database here's how I managed: MySQL using PDO_MYSQL extension seemed to be installed on xampp by default didn't have to do much work. Here is the code I used for the connection: $connStr = "mysql:host=".$myServer.";dbname=".$myDB; $conn = new PDO($connStr,$myUser,$myPass); Microsoft SQL Server using PDO_SQLSRV followed the instructions on http://craigballinger.com/blog/2011/08/usin-php-5-3-with-mssql-pdo-on-windows/. Here is the code I used: $connStr = "sqlsrv:Server=".$myServer.";Database=".$myDB; $conn = new PDO($connStr,$myUser,$myPass); Oracle with PDO_OCI. Download and install the proper Oracle Instant Client on your windows machine for example instantclient_12_1 and add its path to PATH in SYSTEM Environmental Variables. Note

Categories : PHP

Reconfigure windows after installation
I doubt that you will be able to accomplish all of this using a script. All of this can be accomplished by deploying a custom image to a computer. We use SCCM for this kind of task, but there are many other alternatives. If I were you I would look in to something like SCCM or WDS. You can find more info here: http://msdn.microsoft.com/en-us/library/windows/desktop/dd379586(v=vs.85).aspx SCCM: http://www.microsoft.com/en-us/server-cloud/system-center/configuration-manager-2012-overview.aspx

Categories : Powershell

Upgrading SVN after new Windows installation
is there anything I need to worry about when doing the upgrade? Yes Such as path information considering it will be installed at a new location? No. Installation will add TortoiseSVNin to PATH automatically, shell-extension does not depend from installation location You really have to worry about two (different, unrelated to mentioned) things Subversion configuration have to be copied to the new location of Subversion-data (stored auths, configuration, server-specific settings) - they are always in %APPDATA%Subversion and have to be moved from C to G Working Copy of Subversion 1.8 use new format, incompatible with 1.6 (1.8 can't read WCs of 1.6), you must svn upgrade all old Working Copies (or re-checkout to new location)

Categories : Svn



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