I have a Silverlight application that reads its content from an XML file. User can enter data and It'll be stored in SQL database. How can I read the data from SQL database and store it into an XML file ?
Thanks,
I've got a program that outputs to a file. I'm running it from an MSBuild project. I'd like this output to be written to StdOut, so that it can be picked up by our build agent (TeamCity).
How do I get MSBuild to dump the content of a file to the output?
suppose we have a example.exe file.
we first put that file in a new folder
and then zip that folder with any zipping software,
Can we prevent that zipped folder upload in a website????
how can we do that???????????
How can I get the MD5 hex hash for a file using VBA?
I need a version that works for a file.
Something as simple as this Python code:
import hashlib
def md5_for_file(fileLocation, block_size=2**20):
f = open(fileLocation)
md5 = hashlib.md5()
while True:
data = f.read(block_size)
if not data:
break
md5.update(data)
f.close()
return md5.hexdigest()
But in VBA.
Having had some Sql Compact db corruption issues in the past and gone through the article on these, I got the idea that storing the database sdf file on a storage card significantly increases the risk of data loss due to db corruption.
Do you store the sdf file on a storage card? Have you had any issues caused by it? What should I pay attention to when recommending a particular brand or model of an SD card wrt the stability and security for use with SQL Compact?
HI
My web page is hoting an ActiveX Contol packed in a CAB File.
IE is automatically installing the CAB file, if the ActiveX is not present on the client machine.
waht are steps i need to make sure.
So that the client should always have the updated ActiveX control, if the web application has a new version of the activex control.
Thanking you.
I want to be able to get the size of a file before uploading it to a PHP script using FileReference.
Can I get the file size before detecting bytesTotal during the upload process?
I'm trying to get the MIME type of an <input type="file" /> element using Perl, but without actually examining the contents of the file itself, In other words, just using the HTTP headers.
I have only been able to get the "multipart/form-type" Content-Type value, but my understanding is that each element will get its own MIME Type?
How can I see the sub-MIME types using Perl?
how to export asp.net mvc view data to an excel file ?
Actually my view page contain many viewdata types.
i am using for each loop with these datatype to displaying data on the view page.
my requirement is that i want to export this displayed data into excel file.how to do that?
thanks
Is it possible to load new lines from a text file to variables in bash?
Text file looks like?
EXAMPLEfoo
EXAMPLEbar
EXAMPLE1
EXAMPLE2
EXAMPLE3
EXAMPLE4
Variables become
$1 = EXAMPLEfoo
$2 = EXAMPLEbar
ans so on?
I need to create a .DDS file with code that runs on both OSX and Windows. Although the format doesn't look difficult, I'd still like an example of writing the file. Note I don't need to read it, just write it.
C or C++ and RGBA bitmap.
Hi all,
I am trying to get a latest version of a particular file from the repo. SVN UPDATE doesnt overwrite my local working copy.
Actually I have the latest version from the Repository (eg revision 98). After Checkout I made some changes to the file and now I want to get rid of those local changes and get the copy from the repository (which is still at revision 98). How can i do this on Linux machine???
I've the following file to config logging:
[loggers]
keys=root
[handlers]
keys = root
[formatters]
keys = generic
# Loggers
[logger_root]
level = DEBUG
handlers = root
# Handlers
[handler_root]
class = handlers.RotatingFileHandler
args = ("test.log", "maxBytes=1*1024*1024", "backupCount=10")
level = NOTSET
formatter = generic
# Formatters
[formatter_generic]
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
datefmt = %Y-%m-%d %H:%M:%S
In Development this works great, but when I deploy the application test.log is trying to be written in a path in which I don't have the necessary permission.
So my question is, How can I do to specify a relative path in this configuration file.
How can I determine the name of the bash script file inside the script itself?
Like if my script is in file runme.sh, than how would I make it to display "You are running runme.sh" message without hardcodding that?
Thanks,
I keep on forgetting which file I'm editing.
In Vim 7.x, how can I have a permenant status bar at the bototm (like what's displayed when I press Ctrl-g) showing the current file name I'm eidintg?
Thanks!
Silverlight uses an IsolatedStorageFileStream to open files.
I am trying to determine if I need to watch for locking issues when opening a file in Silverlight. In other words, can a file be opened by Silverlight and some other Windows (let's say W7) application at the same time.
If so, any ideas on how to handle locking?
Hello,
I'm trying to open a write-protected ms excel 2007 file using win32com in python -- I know the password. I can open it with user input of the password into the excel dialog box. I want to be able to open the file without any user interaction. I've tried the following, but it still pops up the dialog box.
app.Workbooks.Open("filename.xls", WriteResPassword="secret")
Any ideas what I'm doing wrong please?
Thanks,
Dave.
How do you determine which file is imported in Python with an "import" statement?
I am want to determine that I am loading the correct version of a locally modified .py file. Basically the equivalent of "which" in a POSIX environment.
Hi
I am using itextsharp to generate a pdf file.I am placing a backgound image on it and want that image on all the pages .But when the first page is completed the text move to next page automatically so the image is not appearing on the new page.
Is there a way to identify the end of page so that we can add a new page and then set the image first so will appear in background and then can add the remaining text.
All is i want a image in background on all the pages of pdf file.
Hi is there any tool available in Java world that will parse/read a source file and pull SQL statements out in to a text file. This is a complex task given that you can write SQL statements in different fashion within the source (ex: using + sign or using .append()) or even conditional building of SQL.
I'm scraping data from the web, and I have several processes of my scraper running in parallel.
I want the output of each of these processes to end up in the same file. As long as lines of text remain intact, I the order of the lines does not matter. In UNIX, can I just pipe the output of each process to the same file using the operator?
Hi all,
I need to save the JCO (sap) IMetadata object in a file, then create the IMetaData object from the file on a different computer.
can anyone help me on how to do so?
thanks!
:)
Hi,
I have a problem. I want to save a XAML state into a file, or something like this. I developed a Silverlight version of PowerPoint, and now i want to save my presentation, but i don't know how...i'm using Silverlight 3 beta(if helps)...
I would like to allow users to upload their photos, music and video file somewhere.....where and how can i do this?
Thanks,
Andrei.