Is there any way I can make Firefox call a JS function in my extension whenever it completes a download (passing the path of the downloaded file)? Thanks for any help.
I have an xml document that was serialized into a byte stream and persisted to a database. I any get the byte stream back, but how do I convert it into an xml file again?
I am working on project that must need to protect data (revealing code is not main problem) files. We are using Java + Netbeans. Is there any facility that will create jar in encrypted format? We are also using sqlite for database - so putting text file in encrypted format is not proper option for us too.
I trying to create an Axis2 arr file that has 2 package heirachies. However my service class is throwing a class not found exception when it tries to use classes in the utils package.
Is it possible to do this in Axis? Any advice is very welcome.
Below is an example of the structure I am trying to create (utils and org are both top level packages)...
|- SampleService
|-- META-INF
|--- services.xml
|-- utils
|---MyUtils.class
|-- org
|---- apache
|---- axis2
|----- axis2userguide
|------ SampleService.class
I have added AJAX Controls. Is it possible to upload multiple files using "AsyncFileUpload" control ? If so, how will you do it ? If not, is there any third party multiple file upload controls to be used in ASP.Net using C# ?
I just can't open this connection, if the Extension is different than .sdf.
It's there a workaround (Please do not suggest, changing the extension of the File temporarily)
?
Thnk u very much.
Javier
I came across an article a long while ago on how to write out a .com file directly without using any external tools. the method was to basically copy con myfile.com and then hit ctrl+alt+number for each instruction.
I've lost the url for the guide... Google isn't helping much either.
If you have the link, please could you post it.
I'm running LAMP on Ubuntu 8.04. Apache's username and group are www-data. I put my connection details and AES key in a file in a directory that's not web served. I chown-ed the files to www-data:www-data and set the permissions to 700. Still, the script that require()s these files will only run if I chmod the files to 755. What am I missing?
I'm calling Powershell like so:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noprofile -noninteractive -nologo -file "C:\Users\dummy\Documents\dev\powershell\samples\test.ps1"
I'm calling it from a python script, but the same problem can be observed if called via a shortcut. I thought the -NonInteractive flag would cause Poweshell to execute in a hidden window, but it doesn't. Is there a way of supressing the console window when calling Powershell from an external application?
Solution based on Johannes Rössel suggestion
st_inf = subprocess.STARTUPINFO()
st_inf.dwFlags = st.inf.dwFlags | subprocess.STARTF_USESHOWWINDOW
Popen(["notepad"], startupinfo=st_inf)
Does anyone know if it's possible to upload a file via POST body (multipart/form-data) using VBA? I'm currently using the Microsoft.XMLHTTP object, but I'm not tied to it if that doesn't support multipart POST.
Here's what I'm doing so far:
Set oHttp = CreateObject("Microsoft.XMLHTTP")
oHttp.Open "POST", theUrl, False
oHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
oHttp.Send "body=thebody"
Hi,
I'm beginner in visual web developer. I want to add a ready database to my project, to do that I simply add the db file to App_data folder. However, I can't see any table or database diagram etc. Am I missing a big part to add external source ?
Any help? I'd appreciate it
So I need to put all the names in a file into column 1 on flexgird, each name should go on its own row. here is what I have but i just get "invalid row value"
namefile = App.Path & "\names.dat"
Open namefile For Input As #1
While Not EOF(1)
Input #1, x
With MSFlexGrid1
.Col = 1
.Rows = rowcount + 1
.Text = x
End With
Wend
End Sub
Any help would be fantastic and thanks in advance
Hi all,
I am creating application in cocos2d, but one thing I would like to know is it possible to use xib file in cocs2d as we are using in simple iPhone application creation?
If yes then how to make call to such xib files, can any one tell me the answer, is is possible or not?
Thanks in advance.
If Safari/Firefox have already downloaded files then they keep a download manager window open. When the user downloads a new file from my site, is there any way to force that download manager window to the front of all windows?
Recently I had created a Java Desktop Application, I wish to share it with my friends. I was thinking to convert it into exe file using exe4j, but as for the database part I not sure how to configure it so that the application can run on my friends desktop without re-configure the database again. I am using Microsoft Access, anyone can guide me how to do it?
I have a class library that stores several XSD files. When creating an XmlSchema class in the same library, I would like to know how to get the URI to the XSD file.
The library is being deployed with a web application. Is there a way to get the URI from the web application as well?
Thanks.
I just finished the Netbeans introduction to Hibernate tutorial ( http://netbeans.org/kb/docs/web/hibernate-webapp.html#01 ) and I am getting the following error:
"This page calls for XML namespace declared with prefix br but no taglibrary exists"
Now, I have seen a similar question somewhere else:
http://forums.sun.com/thread.jspa?threadID=5430327
but the answer is not listed there. Or, if it is, then I am clearly missing it -- line one of my index.xhtml file reads "http://www.w3.org/1999/xhtml". It also does not explain why, when I reload localhost:8080, the message disappears.
Here is my index.xhtml file:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core">
<ui:composition template="./template.xhtml">
<ui:define name="body">
<h:form>
<h:commandLink action="#{filmController.previous}" value="Previous #{filmController.pageSize}" rendered="#{filmController.hasPreviousPage}"/>
<h:commandLink action="#{filmController.next}" value="Next #{filmController.pageSize}" rendered="#{filmController.hasNextPage}"/>
<h:dataTable value="#{filmController.filmTitles}" var="item" border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px">
<h:column>
<f:facet name="header">
<h:outputText value="Title"/>
</f:facet>
<h:outputText value="#{item.title}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Description"/>
</f:facet>
<h:outputText value="#{item.description}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value=" "/>
</f:facet>
<h:commandLink action="#{filmController.prepareView}" value="View"/>
</h:column>
</h:dataTable>
<br/>
</h:form>
</ui:define>
</ui:composition>
</html>
Hi all, I have MS Access database and i want to use hibernate as a persistent layer for my application. So needed a sample hibernate config file entries for MS Access database.
Thanks
Hello,
I am trying to do some wav processing using Lua, but have fallen a the first hurdle! I cannot find a function or library that will allow me to load a wav file and access the raw data. There is one library, but it onl allows playing of wavs, not access to the raw data.
Are there any out there?
Cheers,
Pete.
Hi All,
I am able to record and create audio files using AudioFileCreateWithURL in the AudioToolbox Framework.
I want to figure out if there is any way to edit the .caf sound files. I want to insert another recoreded audio inside the main audio file.
Any thoughts or suggestions how to proceed ??
Thanks.
How can I make the following one liner print every file through Python?
python -c "import sys;print '>>',sys.argv[1:]" | dir *.*
Specifically would like to know how to pipe into a python -c.
DOS or Cygwin responses accepted.
I am trying to extract 4th column from csv file (comma separated, and skipping first 2 header lines) using this command,
awk 'NR <2 {next}{FS =","}{print $4}' filename.csv | more
However, it doesn't work because the first column cantains comma, thus 4th column is not really 4th. Below is an example of a row:
"sdfsdfsd, sfsdf", 454,fgdfg, I_want_this_column,sdfgdg
How do I log all process crashes into a file instead of a tty ? I've read in the documentation that there are some standard Erlang modules that can do it (SASL, error_logger), but unfortunately haven't found any clean examples.
Does writeToFile:atomically, add data to an existing .plist? Is it possible to modify a value in a .plist ? SHould the app be recompiled to take effect the change?
I have a custom .plist list in my app. The structure is as below:
<array>
<dict>
<key>Title</key>
<string>MyTitle</string>
<key>Measurement</key>
<dict>
<key>prop1</key>
<real>28.86392</real>
<key>prop2</key>
<real>75.12451</real>
</dict>
<key>Distance</key>
<dict>
<key>prop3</key>
<real>37.49229</real>
<key>prop4</key>
<real>58.64502</real>
</dict>
</dict>
</array>
The array tag holds multiple items with same structure. I need to add items to the existing .plist. Is that possible? I can write a UIView to do just that, if so.
*EDIT - OK, I just tried to writetofile hoping it would atleast overwrite if not add to it. Strangely, the following code selects different path while reading and writing.
NSString *rootPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
The .plist file is in my project. I can read from it. When I write to it, it is creating a .plist file and saving it in my /users/.../library/! Does this make sense to anyone?