I want to find low-level C/C++ APIs, equivalent with "write" in linux systems, that don't have a buffer. Is there one?
The buffered I/O such as fread, fwrite are not what I wanted.
I am setting the DocumentText property to an HTML string that contains links like:
<a href="file:///D:/dir/file.html">NewPage</a>
The links are shown properly in the WebBrowser, but nothing happens when I click them. The Navigating, Navigated and DocumentComplete events do not fire - nothing seems to happen at all.
AllowNavigation is true and other links using HTTP are working.
Any ideas please?
Nick
Let's say i have 15 processes/daemons running in the background.
let's say one of the process has dumped the core.
how could i identify which process has dumped the core.
i am using hpux!
Hi,
I have two file.
I have to modify the file one in a particular node and add in a list of child.
The list is in the file2.
Can I do it, and how?
from xml.dom.minidom import Document
from xml.dom import minidom
file1=modificare.xml
file2=sorgente.xml
xmldoc=minidom.parse(file1)
for Node in xmldoc.getElementsByTagName("Sampler"):
# put in the file2 content
Thanks a lot.
I try to call a php file that starts like
<?php
//Connection
function connection () {
...
I call from a php like:
<?php
exec ('/ /opt/lampp/htdocs/.../name.php)')
?>
I get:
line1-> cannot open ?: No such file
line 3 //Connection: not found
line 4 Syntax errror: "("
What happens? Why I can't execute it?
I'd like my Python script to read some data out of a postgresql dump file. The Python will be running on a system without postgresql, and needs to process the data in a dump file.
It looks fairly straightforward to parse the CREATE TABLE calls to find the column names, then the INSERT INTO rows to build the contents. But I'm sure there would be quite a few gotchas in doing this reliably. Does anyone know of a module which will do this?
Hi,
I am planning on converting some longitude and latitude values to XML and then sending the file to a web server to display on a Google Map Interface.
Is it possible to send an XML file to a web server through my own application in Android?
Thanks
I would like to generate a PDF or RTF document using iTextSharp library that can be copied to the clipboard, using the same code I use to generate the document on a file (FileStream).
This way my application would give the user two options: generate to a file or to the clipboard.
in visual studio 2005 how can i save whats written to the out put window to file (i cant change the code writing to the output window and it writes a lot i just want to save the output window content to file)
thank you
Arik
I have a bunch of Excel files which are updated on a daily basis on a Windows machine. I transfer them to a Ubuntu machine and want to open them there. Specifically, I want to read the files as a database under R.
A couple years ago, I used ODBC under a Windows machine to open Excel files through R. Is there any way, I can do this with R under Ubuntu?
I could make a database .ODB file for the corresponding XLS files using OpenOffice, but I don't know of a way to connect to a .ODB database. OpenOffice seems to have ways to connect TO databases, but no way to connect to ODB.
Thanks for any potential solutions.
hi
i want to know how to get all column value from table using sphinx search...
i have configuration file, that file can get only one field from table.
but i need all field value.
where will i modify for getting all field from table.
thanks and advance...
hi i came across a browse file dialog control tag in htnl .and the tag was
<input id="myfile" name="myfile" type="file" accept="application/pdf"/>
but the accept attribute doesnt seems to have any effect .iam using internetexplorer 8 browser
does it have any thing to do with the accept atribute
I would like to reconfigure the StyleCop import path in my project file. Currently it looks like this:
<Import Project="$(ProgramFiles)\MSBuild\Microsoft\StyleCop\v4.3\Microsoft.StyleCop.targets" />
I would like to include the Microsoft.StyleCop.targets file in my project directory, and thus do something like this:
<Import Project="$( ProjectDir)\Microsoft.StyleCop.targets" />
Is something like this possible, if so what is the proper way to do it?
i have put a browse button in my html form. with the help of it i just want to get only the file path not the file itself. for ex: if i browse to "D:\Raghu\hgg" all i want is the path itself, not the "hgg" folder. is it possible? any hint is very much appreciated.
I'd like to open a .jpg file in WPF, scale it down to around 50%, then save it back to the file system. What's a good/efficient way to go about doing that?
I want to have a link in the popup.html file for my extension that loads another file (which will be included with the extension) how can I do this? or will I need to keep it in the same page?
I tried using this code:
<a href="/mail.html">
<img id="newmail_icon" src="" width="16" height="16" />
<span id="newmail">loading</span><br />
</a>
But when I click the link nothing happens.
I just found out that adding target="_blank" to the link will make it work and open in a new tab, but I can't get it to open in the popup. I have tried target="_self" but it didn't do anything.
I have a file that looks something like this:
ABC
DEF
GHI
I have a shell variable that looks something like this:
var="MRD"
What I want to do, is to make my file look like this:
ABC
MRD
DEF
GHI
I was trying to do this:
sed -i -e 's/ABC/&$var/g' text.txt
but it only inserts $var instead of the value. I also tried this:
sed -i -e 's/ABC/&"$var"/g' text.txt
but that didn't work either. Any thoughts?
Thanks!
Hi.
I want to access a usercontrol in my class file not in aspx.cs.i need to typecast it using ASP.usercontrol_ascx type but i cant access ASP namespace from my .cs file..how to typecast the usercontrol??
Thnx....
Hi, I have a CSV file and I want to bulk-import this file into my sqlite3 database using Python. the command is ".import .....". but it seems that it cannot work like this. Can anyone give me an example of how to do it in sqlite3? I am using windows just in case.
Thanks
I'm using VS 2010, and I'm wondering how I can get my c++ program to read a file using standard input while debugging. I know how to do it from command prompt, but not when debugging.
Basically I want it to read in a file with cin instead of me typing stuff - but in debug mode.
Hi guys,
I've made a library which I'd like to compile to an SWC file, I've tried to do this in FDT by choosing FDT AS3 Library as Run settings, but all I end up with is a 0kb .swc file. Does anybody know what I'm doing wrong? I can't find much when I google it either, if anybody has a quick walkthrough on how to do it saved in your bookmarks or something, that would be great!
Many thanks,
Will
Hello,
I have a file as shown below in an SVN repo that I would like to revert to a previous version. What is the way to do this in SVN? I want only downgrade this particular file to an older version, not the whole repo.
Thanks.
$ svn log myfile.py
----------------------
r179 | xx | 2010-05-10
Change 3
----------------------
r175 | xx | 2010-05-08
Change 2
----------------------
r174 | xx | 2010-05-04
Initial