Is there any other solution to create logging to file instead of using SharedObject ?
FileReference works only on Adobe air. File library isn't good because it opens dialog box.
I want to write error logs to file and now I'm using SharedObject, but that's not the main task of the SharedObject.
So if someone have any solutions, would be glad to hear it.
Maybe someone will be interesting - i solved this problem.
I wrote a simple WCF service which runs on the same computer. So i can send log messages to this server through localhost and the service writes the logs to the file.
The best part, that it doesn't require an internet connection. ;)
Related
(Sorry in advance, if I have the wrong tags)
Hello!
So I am trying to work on a personal WPF project which would allow the client application exe to download another application exe (Unity Application) and open it within the client exe's Grid. Everything is working fine.
But, I am wondering if there's a way to "lock" the downloaded application in a way that only my client exe can open the downloaded exe?
Here's the only solution I have thought of but not sure with
Check for command line arguments within the Unity Applications
This works well but people who knows about the existence of decompiler might be able to decode that I am trying to check the arguments, and input relevant data there. :(. So, it won't help too much?
Thanks for any insights.
-Kevin
There is no non-hackable solution, you can only make it harder for crackers to break into the app by code obfuscation (hard to read the code) + adding integrity checks (make sure that your app is not modified).. There are commecial apps out there to do this (ex. PreEmptive), and their solutions differ from each other, nothing is ultimate.
Anyway, You might make Unity Application read some file or some registry value that Client application has updated just before launching the Unity Application, along with command line args method that you mentioned..
I am running a script that tries to launch a browser (firefox) and load a URL from my home intranet's NAS - in order to close it down. This should run unattended. My first problem was getting the "çertificate not recognised" message from the browser, when I want this to run unattended, so I added an exception. Re-tried and then I got the "User / Password" dialogue. So I found a way to insert the credentials into the URL. That seemed to silence that dialogue, but now I get the following pop up - seemingly from the browser, which remains blank unless I Ok it:
I'm not sure what's generating it. The browser I guess, but it never does this when I access the URL manually. I tried turning off my Avast security in case it came from there. I tried fiddling with Windows (10) security, but still it persists. Any idea how to do this? Here is the .bat line that initiaties it:
run, C:\Program Files\Mozilla Firefox\firefox.exe
https://admin:mypassword#192.168.1.10/get_handler?PAGE=System&OUTER_TAB=tab_shutdown&INNER_TAB=NONE&shutdown_option1=1&command=poweroff&OPERATION=set
It might help to know the NAS responds to http, switching it to https, with it's own local certificate. Anyone any ideas on how to circumvent this? Thank you.
I confirmed that the dialog is indeed coming from Firefox, using Window Spy to click on it when it appeared. No idea why it should happen in response to a script and not to a live operator though: it does rather present the script with the sort of issues documented here.
After trying all sorts of techniques to try to either surpress it or Ok it, I found that nothing native to Windows would do the job. I eventually solved the problem by writing a script for Autohotkey, making an executable out of it for convenience, and calling that from my close down .bat file.
Hopefully someone here can help me out.
Currently I have a small AngularJS app. I want to put this on an USB drive and make it very easy to run. The idea is someone can just plug in the drive click a file and run the app. I've been thinking about using node for this and then make a little script that would start the server and app. So people can click the script and the app runs. The problem is however (afaik) you need to have node installed on the computer which can't be done.
The client hasn't got his webserver running and still want to run the app. So please don't tell me why would you make an angular app and wanna run it without webserver.
Hopefully anyone has any solution or idea to make this work.
So in short:
AngularJS Application on USB
Plug in the USB, click a file and run the app in the browser.
Thanks for reading and thinking with me.
Have you considered running a standard web server on the USB Stick?
I see that you have suggested Node, but another alternative could be to use XAMPP?
XAMPP is a completely free, easy to install Apache distribution containing MariaDB, PHP, and Perl. The XAMPP open source package has been set up to be incredibly easy to install and to use.
I have a .NET WinForms application that uses CHM help file. Both executable and CHM are on a network share. I used http://www.helpandmanual.com/products_hhreg.html to create registry entries that could allow display of the help contents. If I open the file itself from the share all is OK. However, when I press F1 in my application to invoke help, I get the familiar "Navigation to the webpage was canceled" error. No matter what I do, including setting zone security level = 2 will help.
How do I go about using CHM help in my application when launched from a network share?
System.Diagnostics.Process.Start(path);
I found this other approach https://stackoverflow.com/a/928156/1757491 which seems to allow me to view the help but when I use
System.Windows.Forms.Help.ShowHelp(null, path);
I get what you describe.
Is there a way i can send a notification/message to another PC in C/C++? I think something like net send, but i don't know if there is another way to send a notification/message. I created an application which will run on every PC, and i want, that if my application has finished it should send a notification to my PC, that it has finished running. I don't know if there is a solution for my question, but if yes, could someone tell me, how to do that?
Thanks,
kampi
How about using sockets?
http://www.alhem.net/Sockets/tutorial/
Start by learning about WCF. http://msdn.microsoft.com/en-us/netframework/aa663324.aspx
We ended up building a system for alerting all of our retail locations of emergency situations by building a service that opens up a TCP channel using .NET Remoting. It just sits there and listens for notifications. Our command center has a program that can send out notifications to this service. The service is responsible for displaying the message.
The code is proprietary, so I can't share it, but that's the general idea. Remoting has been rolled into WCF, which is why I started by suggesting learning that.
It has been working very well for us for many years, and works just fine on newer versions of Windows (unlike Net Send) and it's faster than Net Send.
Edit - added
I hadn't heard of this until now but you could also look into msg.exe. it looks easier.
http://www.appscout.com/2009/03/vistas_msgexe_replaces_net_sen.php
If you want something like "NET SEND" use mailslots!
Here more info on MSDN: http://msdn.microsoft.com/en-us/library/aa365576.aspx
If you can't use net send, how about just creating a date-stamped temp file of some sort that your other PC looks for?
Make your application a Growl client
Net Send is an option, but I think it will annoy the crap out of you, as it sends console toast to your computer, which pops up in front of the tasks you are working on. Personally, I would find that incredibly annoying.
If you created the application, you have the ability to include notication code. As an example, you can set up a service on your box and write the code to contact that service. On a windows machine, this can be a WCF service. You can also wrap this in a windows service if you want to fire up non-annoying toast.
I am not sure how to set up C to access a service, so another option might be to drop something in a folder and have a file watcher tell you. A bit kludgy, of course.