w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
SmartDevice CAB "is not a valid Windows CE Setup file"
Memors come in either Windows Mobile 6.1 or Windows CE 5.0 flavors. Are you sure your device uses CE and not Mobile? A Windows Mobile device's desktop will look sort of like the screenshots below - because I can't seem to get the CE SDK installed right now (I've got too many other applications open). A Windows Mobile device can be confirmed by clicking [Start] > [Settings]: Go to the [System] tab and select [About]: On mine, you can see I'm stuck with WM5. By contrast, a typical Windows CE device would have a screen somewhat like this image I found on Google: ANOTHER UPDATE: Is your project, perhaps, set to Windows Mobile, like shown below? If this is a Windows CE Project, you'll need to target the Windows CE platform. I can't install the Windows CE SDK on my machine,

Categories : C#

build setup file for Windows application by including DB?
You won't be able to load and use the database without a server running somewhere. Now, you could install that database on a remote server that is provided during installation - but a server has to be running somewhere. Even loading it via file requires SQL Express to be running.

Categories : C#

How can 3rd party app "A" let novice iOS device users open an MP3 file downloaded by 3rd party app "B"?
For this to be possible, the third-party app in question must expose some mechanism for doing this. They might implement hooks through the sharing charm, or they might expose a "documents" repository from which other applications can read (optionally, with granted permissions from the user to do so). For example, the AirShare application can read your Dropbox files. This is because Dropbox has exposed the files as a documents repository and the user has granted permission for AirShare to access Dropbox. If the third-party app doesn't implement these hooks, there is no way to access the documents from another application. Edit: To access the music files in the user's iTunes library, I'll refer you to the iPod Library Access Programming Guide at http://developer.apple.com/library/ios/#docu

Categories : IOS

How to create EXE setup file for windows service created in visual studio 2012
With Visual Studio 2012 you will need a third party tool to create setups. I would suggest WiX. There is good information on installing and starting Windows Services using WiX here although you will probably need to read some beginners tutorials first.

Categories : C#

ImageJ: How to use third-party plugins API?
From quickly looking at the source of StackReg plugin, I see that the classes are in the default package. In java, importing classes from default package to a named package is not possible without using reflection. Possible solutions are: Put your classes in the default package. Then you can use the classes in the default package without importing them. Note that using default package is bad practice in java. Use reflection: http://stackoverflow.com/a/561183/1903534 Alter the StackReg plugin to not use the default package. But this might not be compatible with its license and your solution will not be compatible with the original jar.

Categories : Misc

How to convert .mov files to .mp4 (H264) using ffmpeg using windows .bat file?
PCM audio streams are not compatible with the MP4 container, look at the specs and your error message: Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, mono, s16, 256 kb/s [mp4 @ 00000000024bc980] Tag [1][0][0][0]/0x00000001 incompatible with output codec id '65536' ([0][0][0][0]) Please note: the MP4 video container format and the H.264 video stream format are two different things. The MP4 video container may also 'contain' other video stream formats, eg. Xvid or even MJPEG.

Categories : Batch File

I want Java code to convert word file (doc file having text, images, tables etc. ) into pdf file.
You need to add the latest jar in the java build path. Check your projects build path and make sure the jar is present there. Do a clean build and clean publish and it should work. If not then you can even try to directly paste the jar in your projects deployment location (LIB folder).

Categories : Java

Powershell remote install .exe file errors and not finding setup.iss file
Not sure if you are running into the double-hop problem on not, but it sounds like you are. So I though I'd give you a little more information about it. The Bob Loblaw version. What is a server and what is a client? A server, it accepts things, is the computer you remote onto. A client, it gives things, is the computer you use to do the remoting. So in the command Invoke-Command -computername xxxxxxxxxxx.edu ..., "xxxxxxxxxxx.edu" is the server. From your description, it looks like you already ran the command Enable-PSRemoting on your server. With remoting enabled on the server you should be able to do Enter-PSSession -ComputerName xxxxxxxxxxx.edu and have an interactive command prompt on the client. If you enter a remote session and do Get-ChildItem "\ComputerNameShare" the command is

Categories : Networking

Prerequisite installer (setup.exe) results in 'Unable to locate application file [file].msi' after restart
Just found the problem - my installation was executed from WinZip self-extractor which deletes the extracted files once the setup ends. Because one of the prerequisites required a restart, before the computer was restarted, the files had been deleted by the self extractor... Beware of self extractors folks! :)

Categories : Visual Studio 2010

Creating Bat file from inno setup file
There should be no need for a .bat file. Inno Setup creates a stand-alone executable (by default named Setup.exe) that you can simply double-click like any other Windows executable. The executable it creates is nameable either by renaming the Setup.exe to a different name (YourAppSetup.exe, for instance) manually, or by using the OutputBaseName value in the [Setup] section. You can control where the setup executable is created by using the [Setup] section value OutputDir. Here's an example, from the CodeExample1.iss' sample provided in yourInno Setup` installation: [Setup] AppName=My Program AppVersion=1.5 DefaultDirName={code:MyConst}My Program DefaultGroupName=My Program UninstallDisplayIcon={app}MyProg.exe InfoBeforeFile=Readme.txt OutputDir=userdocs:Inno Setup Examples Output This

Categories : Batch File

convert h5 file to csv file or text file for data processing
Have you tried OPeNDAP Hyrax server with hdf5_handler module? For example, from the sample HDF5 file [1], you can get the following ASCII data [2]: Dataset: grid_1_2d.h5 temperature[0], 10, 10, 10, 10, 10, 10, 10, 10 temperature[1], 11, 11, 11, 11, 11, 11, 11, 11 temperature[2], 12, 12, 12, 12, 12, 12, 12, 12 temperature[3], 13, 13, 13, 13, 13, 13, 13, 13 ... OPeNDAP Hyrax server with hdf5_handler is a great tool/service because you can select (and subset) a dataset from an HDF5 file easily using HTML form as well [3]. You can find the detailed information about OPeNDAP hdf5_handler from [4]. [1] http://eosdap.hdfgroup.uiuc.edu:8080/opendap/data/hdf5/grid_1_2d.h5 [2] http://eosdap.hdfgroup.uiuc.edu:8080/opendap/data/hdf5/grid_1_2d.h5.ascii [3] http://eosdap.hdfgroup.uiuc.edu:8080/o

Categories : Csv

how to implement phonegap plugins in external JS file?
I asked in the Phonegap IRC and they say NO. Of course this could be a big security threat. I also asked if it would be possible to include internal JS scripts in my external HTML file. And the answer is also NO. The best way is to turn the web app into an native app, and have all the scripts locally.

Categories : Javascript

The third party application does not read my pdf file
How are you constructing the **dirPath** used on the new File() ? If the hardcoded path is working but the other one is not, my guess is that path maybe is wrong. Try putting an Log.d and verify what is on **dirPath** Did you tried using the getAbsolutePath instead of getPath ? See this thread, maybe can help you - What's the difference between getPath(), getAbsolutePath(), and getCanonicalPath() in Java?

Categories : Java

XMLHttpRequest with a file from a 3rd party server
No, it's not possible. You can use the forcecors plugin for Firefox to have FF ignore the same origin policy (because all responses have cors headers). The other option would be JSONP but since you've already mentioned blob data it isn't an option since JSONP only works with JS.

Categories : Javascript

Proper way to 'setup on-demand' and 'reset' jQuery plugins such as swipe.js?
Looking at the source swipe.js supports a kill method that stops the timer and removes any event listeners.

Categories : Jquery

Convert VBA Script to run as VBS file windows or some type of script on a linux box
At Ken's proding, I was able to plod through my error with google's help. Thanks Ken. Here is my reworked code that works as a vbs script Option Explicit Public Sub IE_Check() Dim i Dim g Dim x Dim IE Dim objElement Dim objElement2 Dim Colobj1 Dim Colobj2 Dim Colobj3 Dim FindText1 Dim FindText2 Dim FindText3 Dim TTime Dim dteWait Dim fso Set fso = CreateObject("Scripting.FileSystemObject") ' Declare a TextStream. Dim stream ' Create a TextStream. Set stream = fso.OpenTextFile("C:log.txt", 8, True) TTime = Time Set IE = CreateObject("InternetExplorer.Application") IE.Visible = True IE.Navigate "http://yahoo.com" While IE.ReadyState < 4 FindText1 = 0 Wend FindText1 = InStr(1, IE.Document.body.innerhtml, "Internet Explorer cannot display the webpage") If FindText1

Categories : Vba

How can I convert an SVG file to a format read by Cinema 4D as Vector (like Adobe Illustrator ai file)
I use a tool called VectorMagic (http://vectormagic.com/home) it will take any image and convert it to EPS, SVG, PDF, AI, DXF and EMF. Works seamlessly with Illustrator, Corel, and others.

Categories : Misc

How do I access functions in a third party source file?
Download this http://www.crbond.com/download/bessel.zip file and add the files to your visual studio project. To use the functions, you will need to #include "BESSEL.h" to your source file. I got it compile on Visual Studio by doing the following Adding _USE_MATH_DEFINES to preprocessor definitions. Changing #include <complex.h> to #include <complex> Adding using namespace std; to BESSEL.H Example of how to call a function: #include "BESSEL.H" #include <iostream> int main() { double x, i0, i1, k0, k1, i0p, i1p, k0p, k1p; x = 5.0; i0 = 1.0; i1 = 2.0; k0 = 3.0; k1 = 4.0; i0p = 5.0; i1p = 6.0; k0p = 7.0; k1p = 8.0; bessik01a(x, i0, i1, k0, k1, i0p, i1p, k0p, k1p); // Results are stored in the variables i0..k1p cout

Categories : C++

How to open the iBook file without use the third party apps?
If you are opening a aPub file it might work to use some ePub component. Native iBook files are not support by iOS and there for UIDocumentInterectionController will not be able to display the file and open iBooks. QuickLook only supports: iWork documents Microsoft Office documents (Office ‘97 and newer) Rich Text Format (RTF) documents PDF files Images Text files whose uniform type identifier (UTI) conforms to the public.text type Comma-separated value (csv) files

Categories : Iphone

Convert file from base64 and send to some external service as binary file
Write it to a buffer: var buffer = new Buffer(base64Data, 'base64'); An alternative would be something like https://github.com/cjblomqvist/base64Stream

Categories : Node Js

Android Convert bytes array to File and Save file in SD card
You have binary data encoded using BASE64 encoding. To decode it you can use android.util.Base64 class. To learn how to write file to an external store read this article.

Categories : Java

am try to upload a 3gpp audio file in website? And there is any way to convert that 3gpp file into mp3 file?
Well that depends on your server. If you have a linux machine you could use ffmpeg for conversion: ffmpeg -i input.3gp -acodec mp3 -ar 22050 -f wav output.mp3 Just upload the file and trigger this command. Otherwise your server application itself would have to take care of that.

Categories : Jsp

How to convert xml file in to a property file using unix shell script
this may help? <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="//person"> "<xsl:value-of select="name"/>" = "<xsl:value-of select="family-name"/>" </xsl:template> </xsl:stylesheet> save it as x.xslt and do xsltproc x.xslt file.xml

Categories : Xml

How to convert a 'prepared' text file to an XML file using Java? To be subsequently used in SAX
Um, maybe i'm missing something, but both of those files are xml. the second is just "pretty printed". you don't need to "pretty print" xml in order to parse it with a sax (or any other) xml parser.

Categories : Java

How to convert a binary file to verilog file format in svn repository?
Guess you want to track it as text files to see line changes instead of binary changes. To set mime type of file as "text/plain": svn propset svn:mime-type text/plain <list_of_verilog_files> Also you could try to set "text/x-verilog" instead of "text/plain" and see if it works.

Categories : Svn

integration jquery upload file plugins with Django form
You can use a FormData object to upload a file via ajax function display_message(link, form) { var formData = new FormData(form); $.ajax( { url: link, type: 'POST', dataType: 'json', processData: false, contentType: false, data: formData, success: function(result) { //form not valid -> displays errors if (result.form_errors) { //append current errors to the html form errors=result.form_errors for (var key in errors) { $("#"+key+"_errors").html('<ul class="errorlist"><li>'+errors[key]+'</li></ul>'); //~ alert(key+': '+errors[key]); }

Categories : Jquery

How to use VBscript to convert 2 folder path content into text file. It must also only extract out "outlook Item" file type only
Sub Tester() Dim ObjOutFile Set ObjOutFile = CreateObject("Scripting.FileSystemObject"). _ CreateTextFile("C:UsersUserDesktopoutcome") ListFiles ObjOutFile, "C:UsersUserDesktopFolder A", "Outlook Item" ListFiles ObjOutFile, "C:UsersUserDesktopFolder B", "Outlook Item" ObjOutFile.Close End Sub Sub ListFiles(f, folderPath As String, fileType As String) Dim ObjFiles, ObjFile, sz fileType = UCase(fileType) Set ObjFiles = CreateObject("Scripting.FileSystemObject") _ .getfolder(folderPath).Files For Each ObjFile In ObjFiles If UCase(ObjFile.Type) = fileType Then sz = Round(ObjFile.Size / 1024, 2) f.WriteLine sz & String(50 - Len(sz), " ") & ObjFile.Path End If

Categories : Vba

Reading a file without causing IOException on 3rd party program
What you want to do is monitor for process creation notifications, and when you see the specific process come into existence, you will want to get out of its way. IWbemServices::ExecNotificationQuery Here are some some additional details off of MSDN. Here is also a CodeProject: Process Information and Notifications using WMI

Categories : C#

Handle infinite loop in third party javascript file (c# .net)
One possible solution could be is using Web Worker and run your JS code inside it. After a while, if there is no any responce from it, call worker.terminate() to "kill" it. Pay attention that web workers has strong limitations: for example you can not access UI element from within the code that runs in web worker scope, and it's not supported on old browsers. I don't know if web worker is suitable in your case, but this one is option that may help.

Categories : C#

convert data file into a image file using MATLAB
Let your data be A. A = 1:12; B = reshape(A,4,[]); B = 1 5 9 2 6 10 3 7 11 4 8 12 I = mat2gray(B); %converts the matrix A to the intensity image I imwrite(I,filename,fmt)

Categories : Matlab

How to convert point cloud .pts file into .pcd file format?
Is .pts ASCII? If so, you can easily write a parser for it and save it as a .pcd. Or, if you are looking for a tool, meshlab can read in plain XYZ data and save it to .ply format (remove all header content, if there is any). .ply files are supported by the Point Cloud Library, you can either convert it or just read in the .ply.

Categories : Misc

Parsing through CSV file to convert to JSON format file
Does your version work? It looks like you only ever create one Peptide object. Also, what is the "if(row[5])" statement doing? In your example data there are always 5 elements. Also, mod_indeces is always supposed to be a list, correct? Because in your example output file mod_indeces isn't a list in the first peptide. Anyway, here is what I came up with in python: import csv import json data = {} with open('proteins.csv','rb') as f: reader = csv.reader(f) for row in reader: name = row[0] sequence = row[1] mod_sequence = row[2] mod_indeces = map(int,row[3].split(', ')) spectral_count = int(row[4]) peptide = {'sequence':sequence,'mod_sequence':mod_sequence, 'mod_indeces':mod_indeces,'spectral_count':spectral_count}

Categories : Javascript

convert all lines in file to lowercase then write to new file
You are not replacing the line.lower() back into the list. Try: lines = [line.lower() for line in lines] with open('listTogether.txt', 'w') as out: out.writelines(sorted(lines))

Categories : Python

convert excel file to txt file (without carriage returns)
Hi If you are trying to remove carriage returns after converting the file add the below procedure to code sub RemoveCarriage(FileN) Const ForReading = 1 Const ForWriting = 2 Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.OpenTextFile(FileN, ForReading) strText = objFile.ReadAll objFile.Close strNewText = Replace(strText, chr(013) & chr(010), "") ' chr(010) = line feed chr(013) = carriage return Set objFile = objFSO.OpenTextFile(FileN, ForWriting) objFile.WriteLine strNewText objFile.Close End sub Call the module inside forloop of your procedure just after closing the workbook objWorkbook.close RemoveCarriage(file.Name & ".txt")

Categories : Excel

upload file to the Windows azure media services without using the local file path
take a look into http://www.windowsazure.com/en-us/solutions/media/ . It describe main scenarios and capabilities of Microsoft Azure Media Services. Developer portal for Azure Media Services located at http://www.windowsazure.com/en-us/develop/media-services/. It has getting starting articles covering following scenarios: Upload Encode Deliver Consume

Categories : Azure

Windows Batch file - can't get variable to store fill file name with spaces
I kind of remember, when you work with paths in DOS, you can either do it this way "c:Dir1Dir1.1File.ext" or this way c:"Dir One""Dir One.One""File X.ext"

Categories : Windows

Want to execute command on each file in directory one at a time through batch file windows
Im not entirely sure what you mean but try this, it will execute the command once for each file in the current directory and (all subdirectories, but this exact snipets not ideal for subdirectories) ending with the extension .prn: for /r %%a in (*) do ( if %%~xa == .prn ( copy %%~na%%~xa /B \\{$PC}\{$PRINTER} ) ) Tell me if this doesn't work or you want to do this for subdirectories as well. Yours, Mona

Categories : Windows

Windows Batch File: Look for directory, if not exist, create, then move file to it
You can conditionally create the folder with: if not exist moviesshowname mkdir moviesshowname To move a file into it: move ShowName.Episode.Title.mkv moviesshowname To get more information about these commands, open a command prompt and type: help if and help move

Categories : Batch File

Change file name and move files based on file path in Windows 7
Try this: and then examine renfile.bat in notepad to see if it is right for you. Add more filetypes if you need them. @echo off echo.@echo off> renfile.bat for /f "delims=" %%a in ('dir *.jpg *.png *.gif /b /s /a-d ') do call :next "%%a" echo renfile.bat created pause goto :eof :next set "var=%~1" call set "var=%%var:%cd%=%%" set "var=%var:=_%" >>renfile.bat echo ren "%~1" "%var:~1%" and another batch file to move all the files once they are renamed: @echo off md "c: arget folder" for /f "delims=" %%a in ('dir *.jpg *.png *.gif /b /s /a-d ') do ( move "%%a" "c: arget folder" )

Categories : Windows

Process a file after a file is finished being written Windows Command Line .bat
Getting the file size into a variable is simple - for %%F in (filePath) do set "size=%%~zF". But I believe I can give you a much better solution. Unlike Unix, most Windows processes get an exclusive lock on a file when they are writing to it. Assuming your conversion process continuously locks the output file during processing, then you can simply use the following to test if the file is locked (still being processed) or not locked (finished processing): ( (call ) >>outputFile.ext ) 2>nul && ( echo The file is unlocked and ready for transfer ) || ( echo The file is still being created ) The (call ) syntax is simply a very fast command that does nothing - effectively a null op. This command is guaranteed not to have any output, so when you append the results of the

Categories : Windows



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