Hello.
I have a C++ application that can take commands through a named pipe. Is it any way to open a named pipe from vbscript and send a text string, for example "restart" through it?
If I use MPMoviePlayerController to play video in my iPhone app, it opens, loads the movie, plays it and then closes. Is it possible to force it to stay open after the movie finishes, so that user can replay it using its controls, instead of using controls in parent view? Also, is it possible to start MPMoviePlayerController in the paused mode?
thanks for any advice.
I'm using JPoller to detect changes to files in a specific directory, but it's missing files because they end up with a timestamp earlier than their actual creation time. Here's how I test:
public static void main(String [] files)
{
for (String file : files)
{
File f = new File(file);
if (f.exists())
{
System.err.println(file + " exists");
continue;
}
try
{
// find out the current time, I would hope to assume that the last-modified
// time on the file will definitely be later than this
System.out.println("-----------------------------------------");
long time = System.currentTimeMillis();
// create the file
System.out.println("Creating " + file + " at " + time);
f.createNewFile();
// let's see what the timestamp actually is (I've only seen it <time)
System.out.println(file + " was last modified at: " + f.lastModified());
// well, ok, what if I explicitly set it to time?
f.setLastModified(time);
System.out.println("Updated modified time on " + file + " to " + time + " with actual " + f.lastModified());
}
catch (IOException e)
{
System.err.println("Unable to create file");
}
}
}
And here's what I get for output:
-----------------------------------------
Creating test.7 at 1272324597956
test.7 was last modified at: 1272324597000
Updated modified time on test.7 to 1272324597956 with actual 1272324597000
-----------------------------------------
Creating test.8 at 1272324597957
test.8 was last modified at: 1272324597000
Updated modified time on test.8 to 1272324597957 with actual 1272324597000
-----------------------------------------
Creating test.9 at 1272324597957
test.9 was last modified at: 1272324597000
Updated modified time on test.9 to 1272324597957 with actual 1272324597000
The result is a race condition:
JPoller records time of last check as xyz...123
File created at xyz...456
File last-modified timestamp actually reads xyz...000
JPoller looks for new/updated files with timestamp greater than xyz...123
JPoller ignores newly added file because xyz...000 is less than xyz...123
I pull my hair out for a while
I tried digging into the code but both lastModified() and createNewFile() eventually resolve to native calls so I'm left with little information.
For test.9, I lose 957 milliseconds. What kind of accuracy can I expect? Are my results going to vary by operating system or file system? Suggested workarounds?
NOTE: I'm currently running Linux with an XFS filesystem. I wrote a quick program in C and the stat system call shows st_mtime as truncate(xyz...000/1000).
Hi,
I am try to read data over serial port already open.
I have used C# and c++ library for use microsoft api (overlapped and not overlapped I/O), but not work.
I can use same windows api? or other??
Thanks in advance for your availability,
Cristiano
http://bugbusters.altervista.org/index.php
Hello. What are my options in open source world for application lifecycle, fault and performance monitoring for .Net applications? A good commercial benchmark for my need is Avicode (http://www.avicode.com)
So, is there an equivalent for Avicode?
I have an application that takes a long time to open odbc connections (like 20 sec) also takes forever using arcmap and arcsde
but when I try the connection on the odbc data source administrator, it tests it really fast
Does anyone have any idea of what my be causing this?
btw the application works fine in another computer with another database
thanks.
I'm looking for a thin, generic layer (probably written in PHP) that sits between a database (probably MySQL) and web service clients (which could be anything). I imagine there would be config files of some sort that tell it how to map web service requests to database queries (or other DB commands). It would also need to handle authentication and authorization, of course.
I've done some googling but failed to find anything that fits the bill. Can anyone suggest something like this?
Right google isn't helping me on this one. I need to open a second browser window or tab, but it must have a different session id. Opening the new browser window from my asp.net page is easy, but then it shares the same cookie and thus session ID with the original. So how can I do this? I need the original browser window to keep its cookies and session and the new browser window to have a new session.
Here is a code snippet from DirectShowNet library, used to open a video file:
this.graphBuilder = (IGraphBuilder) new FilterGraph();
// Have the graph builder construct its the appropriate graph automatically
hr = this.graphBuilder.RenderFile(filename, null);
but the RenderFile method fails. At the same time, Windows Media Player opens the same file nicely. What can be the problem.
I got the same behavior without DirectShowNet, but using native C++ code...
Hi All,
Do you have an idea of how can I open sharepoint site creation wizard from a custom action ribbon using javascript I think.
I need to preselect the site defintion template too.
Many thanks in advance,
Jaime
I am using openid using openid4java. My return url is a servlet
After authentication when the return url is invoked by the openid provider after successfully authentication , i want the USERNAME from the open id url like
https://me.yahoo.com/USERNAME
the above url i am recieving from parameter openid.identity i cannot get username directly since user is entering user name on the openid provider site.
Please give any suggestion
Regards, Zeeshan
I'm currently building a LOB application in Silverlight 4. I've been considering the question of typography for the application.
After some experimentation on the design side the font that people like is Segoe UI. Now I can embed this font and although the font is freely available in Windows we don’t have distribution rights for this font.
I am looking for an open source font visually equivalent of the Segoe family that can be freely distributed.
Does such a font exist?
I'm trying to read in the html of a certain website.
Trying @something = open("http://www.google.com/") fails with the following error:
Errno::ENOENT in testController#show
No such file or directory - http://www.google.com/
Going to http://www.google.com/, I obviously see the site. What am I doing wrong?
Thanks!
Hi, I just need to be able to open a .NET app (click once) from within an ASP.NET web page, and pass 2 string parameter to the app.
How can I do this? Any example please, with any method to do it. Thank you in advance.
we are developing a web application which allows a user to draw diagrams(flow/ER diagrams) and we need the representation of that diagram in some XML or other formats. How should we acheive this ?? is there any open source software or jQuery plugin or anyother server side software??
My .NET application tries to connect to an Oracle database, but the connection fails to open because it cannot find "OraOps9.dll".
The Oracle client is installed but that DLL is not present in my Oracle Home bin\ folder (C:\oracle\ora92\bin). Where can I get this DLL?
We are using a jquery accordion on our site : http://www.racedayworld.com
It basically lists events under each month...
Apparently people are finding difficulties knowing how it really works and they don't see at first glance that there are more events under each month (that you click to expand)
So I was thinking about opening two at a time (the current month and the next) .. but I'm not sure how to enable both to be open at once ... any ideas?
I compiled my program as follows.
mpicc b_eff_io.c -o b_eff_io2 -I/scratch/irodero/papi/include -L/scratch/irodero/papi/src -lpapi -lm
Howeever I got this error
error while loading shared libraries: libpapi.so: cannot open shared object file: No such file or directory
What shud I do ?
I saw this C++ code on a forum which minimizes all open windows
#define MIN_ALL 419
#define MIN_ALL_UNDO 416
int main(int argc, char* argv[])
{
HWND lHwnd = FindWindow("Shell_TrayWnd",NULL);
SendMessage(lHwnd,WM_COMMAND,MIN_ALL,0);
Sleep(2000);
SendMessage(lHwnd,WM_COMMAND,MIN_ALL_UNDO,0);
return 0;
}
How can I access the FindWindow and SendMessage API function and the HWND type in C#.net?
A short question:
I've got a TabNavigator with multiple canvas children. How can i open one of the children with actions script (imagine it as a tab with an intro and after login the tab with content needs to be opened).
I have tried this.parentDocument.tabs.selectedIndex(1); but that doesnt work.
I'm working on a web app that allows users to downloaded dynamically generated PDF files.
This works fine in IE8 and Firefox but fails in IE6 with Adobe Reader giving the message "there was an error opening this document. this file cannot be found"
If I save the file to disk first then it opens fine in Reader.
I've given the file a simple short filename, without spaces so not sure what else to try. Any suggestions are very welcome.
I would like to give my users something similar to crystallines color chooser or themeroller so they can interactively theme the site.
Is there an open source solution that would go most of the way in this respect? Short of that what color picker would you recommend?
Heya! My name is Ale, and this is the first time that I post in this website.
I've a little problem: I have to open a linker file, that have ".a" extension. I use Dev-C++, I don't know if it would be useful for you :-P
I hope you will answer soon!
Oh, and excuse me for my bad English, tell me if I made some mistakes!
Thanks!!