What is the difference in writing to files atomically on the iPhone in objective-c and not, is there any performance difference between the two?
Thanks in advance!
So I have a model with a FileField for excel spreadsheet. What I need to do this add another column in this spreadsheet, in each row let user pick from a drop-down list then save it and display it in html. All the picking and uploading will happen through the admin interface. So I have figured out way how to display a spreadsheet in html, however I have no idea how to write this save method. I could really use some hints and tips..
can anyone help me on how to know EOF of excel using vb.net?
i have this code but it crash when i try delete the proceeding rows from row 6 to downward.
my problem is, my code was still reading a null values of rows that i deleted in excel..
this is my code:
Dim xlsConn As New OleDbConnection
Dim xlsAdapter As New OleDbDataAdapter
Dim xlsDataSet As New DataSet
xlsConn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & pathName & " ; Extended Properties=Excel 8.0")
strSQL = "SELECT * FROM [Sheet1$]"
xlsAdapter.SelectCommand = New OleDbCommand(strSQL, xlsConn)
xlsDataSet.Clear()
xlsAdapter.Fill(xlsDataSet)
ListView1.Items.Clear()
Dim listItem As ListViewItem
For ctr As Integer = 0 To xlsDataSet.Tables(0).Rows.Count - 1
listItem = ListView1.Items.Add(xlsDataSet.Tables(0).Rows(ctr).Item("EmpNo").ToString)
listItem.SubItems.Add(xlsDataSet.Tables(0).Rows(ctr).Item("EmpName").ToString)
Next
Can anyone help me to fix this bugs!
Hi
I had posted this question before but i did not get the answer
Proper(i think people did not get my question ) so i am posting
it now.
I capture a image from windows mobile camera and save it on
picturebox control..now to zoom the picture i am increasing
its size by Onpaint event.The image is getting zoomed but
i am not able to save the zoomed image(ie.., the increased
image size)...
Please let me know
Thanks In Advance
byte[] a = HashEncript("a");
public byte[] HashEncript(string Password)
{
SHA512Managed sha = new SHA512Managed();
byte[] hash = sha.ComputeHash(UnicodeEncoding.Unicode.GetBytes(Password));
return hash;
}
i want to save byte[] a this value on my database .My database field is varbinary(64).i use msSQL2008 .how to save ,want to know the insert query with C# code.
I need as simple as possible solution for uploading files (eg. photos) to my website from mobile devices (iPhone, Android, BB, Nokia). Is it possible to do it in same way? Using Java or XHTML?
hii...
im using fms to save datas like rdbms. Im using shared object for this. But I cant save more than one row of data into flash media server. What can I do for this purpose??
I have the parent class in
/dir1/test1.rb
then i have the child class in
/dir2/test2.rb
the test1 class has a method that uses the "File.dirname(FILE)".
BUT when i call this method from the test2, that inherent from test1
the dir is the dir1, insted the dir2, where the test2 is.
How to make it work?
When I write the following code I get garbage for an output. It is just a simple program to find prime numbers. It works when the first for loops range only goes up to 1000 but once the range becomes large the program fail's to output meaningful data
output = open("output.dat", 'w')
for i in range(2, 10000):
prime = 1
for j in range(2, i-1):
if i%j == 0:
prime = 0
j = i-1
if prime == 1:
output.write(str(i) + " " )
output.close()
print "writing finished"
I've got a bash script that reads input from a file like this:
while IFS="|" read -r a b
do
echo "$a something $b somethingelse"
done < "$FILE"
The file it reads looketh like this:
http://someurl1.com|label1
http://someurl2.com|label2
However, I'd like to be able to insert the names of variables into that file when it suits me, and have the script process them when it sees them, so the file might look like this:
http://someurl1.com?$VAR|label1
http://someurl2.com|label2
So $VAR could be, for example, today's date, producing an output like this:
http://someurl1.com something label1 somethingelse
http://someurl2.com?20100320 something label2 somethingelse
I've used %time% for timing previously - at least I think I have. I have this weird
IF NOT "%1" == "" (
echo Testing: %1
echo Start: %time%
sqlcmd -S MYSERVER -i test_import_%1.sql -o "test_%1%.log"
sleep 3
echo End: %time%
)
I run this, and it prints:
Testing: pm
Start: 13:29:45.30
End: 13:29:45.30
In this case, my sql code is failing (different reason), but I figure the sleep 3 should make the time increment by 3 at least. Any ideas?
tx,
tff
Good morning/evening
how can I write something in a file and then copy its content into the current file?
for example I consult file1.pro then I have rule write something in file2.pro , after this rule finish its job I want append the content of the file2.pro int file1.pro .
when I tried to append into file1.pro directly , the data appear like undefined symbols ,I don't know why
please hellp me
thank you.
Is there a reliable way to determine whether or not two files are the same? For example, two files with the same size and type may or may not be the same binarilly (yeah, I know it's not really a word). I assume that comparing one or two checksums of the files will help, but I wonder:
How reliable are checksums at determining whether two
files are different; what are the chances of two different files having the same checksum?
Would reliability increase by
applying additional checksum
comparisons?
Which checksum algorithm(s) would be
the most efficient and/or reliable?
Any ideas, suggestions or thoughts are appreciated!
P.S. The code for this is being written in Java running on a nix system, but generic or platform agnostic input is most helpful.
Is it possible using php's XMLWriter to insert a new node to an existing xml file, and then save the file. This would be much more benficial to me that actually creating a enw file every time i want to update an xml file.
Is there a way I can programmatically determine the status of a download in Chrome or Mozilla Firefox? I would like to know if the download was aborted or completed successfully.
For writing the code I'd be using either Perl, PHP or Python.
Please help.
Thank You.
hello! I am using php and i have written codes to allow a user upload a file. For testing purposes, i have saved the file to D:/final/temp/test.xls. Then i generate another file and save it to the same location. This file can be downloaded by the user.
But if an actual user would be using my application,
where should the location point to? Thanks!
hi all ! i want to download plist from my server usibg http://
i have searched the web and everybody says use that class or that one ... but no example on how to do this.
may be it is really simple but i'm a noob
so if someone can explain or give a link he'll be my heroe thanks to all !!!
I am using the following code to refresh Excel pivot tables from an Access application. What is the best way to save and close the Excel app after the pivots refresh? In my last attempt the code was trying to save and close before the pivots had refreshed.
Private Sub Command161_Click()
Dim objXL As Object, x
On Error Resume Next
Set objXL = CreateObject("Excel.Application")
With objXL.Application
.Visible = True
'Open the Workbook
.Workbooks.Open "myfilepath.xls"
'Refresh Pivots
x = .ActiveWorkbook.RefreshAll
End With
Set objXL = Nothing
End Sub
What's the best way to rename photos with a unique filename on the server as they are uploaded, using django? I want to make sure each name is used only once. Are there any pinax apps that can do this, perhaps with GUID?
When you save the results of a SQL query using "Microsoft SQL Query Analyzer" (version 8), the results of the query are saved but the column headers (field names) are not. Any idea how to save the field names to the results file as well?
Hi,
I have created an application to interact with Excel in C#.net
The API to save the Excel
Excel._Workbook m_oWorkBook;
m_oWorkBook.Save();
Throws up a File Saveas MessageBox though the workbook was already saved in a given name.
Note:
This happens only in Windows 7 & only when another Workbook was already opened.
Any clues.
How would you save this data on a database: An user can make phone calls (id, date, hour, duration, outcome).
The "outcome" can be, for example, to recall the client on another day (so I have to save the date, the hour, etc of this "future" call).
How would you manage this data on a db?
At the moment i have only a "Call" table.