i have this code: link text
i want my UL and LI to have level (for now i guess only second level but who knows)
and to be able to sort parent with all siblings and childs between their siblings
What is the best way to stop/start Fiddler as a daily task?
I am usin Fiddler to monitor/logs https trafficon machine which runs fully automated and runs software which is not controlled by me, but uses https.
My machine stopped yesterday because Fiddler went out of memory after running over 3 days and now I want to have a clean way to start/stop it.
I guess I could just specify a process duration in the task manager, but I would prefer something cleaner, especially to avoid issues when things are started manually.
I need to burn video dvd from my web cam in C# application?
What is the right way to do it?
What are required steps?
I guess I must create image with right folder structure and MPEG2 video and then burn it to DVD?
IMAPI2?
How do I uninstall a .NET Windows Service, if the service files does not exists anymore?
I installed a .NET Windows Service using InstallUtil. I have now deleteded the files, but forgot to run InstallUtil /u first, but the service is still listed in the Services MMC.
So I guess I have to go into the registry? Or is there a official way?
Hi,
I have a WCF service and without changing any code on the client side, is there a way that I can know the detail information of the caller, such as the MachineName, and ApplicationName?
Basically, I cannot change the client code to pass those pieces of information over.
I tried to use System.Web.HttpContext on the server side to track this information, but HttpContext.Current is NULL. I guess that is not the proper usage of it.
Any suggestion?
Thanks
Sarah
Hi,
I'm using mvvm light to build a Silverlight application.
Is there a code snippet that shows how to access a view model's property or command from within another view model or user control's code behind?
I guess it's simple, but I somehow missed something.
Ueli
Hi,
I'm looking for ideas on how to best match two hash tables containing string key/value pairs.
Here's the actual problem I'm facing: I have structured data coming in which is imported into the database. I need to UPDATE records which are already in the DB, however, it's possible that ANY value in the source can change, therefore I don't have a reliable ID.
I'm thinking of fuzzy matching two rows, source and DB and make an "educated" guess if it should be updated and inserted.
Any ideas would be greatly appreciated.
I have created WCF and I have used wsHttpBinding and MTOM as message transport with authentcation as "Windows".
Now my service is not current SECURE, its plain HTTP, running on custom port.
Is Windows Authentication of WCF's wsHttpBinding secure? can anyone see the password or guess through network trace?
Thank you,
- Akash
Hi Stackers!
I'm building an app that needs to send out notifications to users depending on user definable "notifications". So the notifications are not per event. They are arbitrary. A cron job should query the database and send out emails when it finds an event with matching criterion.
The is a scheduling app. So naturally, one of the criterion is time. I think I've figured it out, but I'm sure there are better ideas out there as it seems to be a fairly common thing to do.
I think I'll limit the users ability to "minutes before hand" to get notified as opposed to seconds or hours.
So I have an eventA and notificationA. notificationA should be triggered if an event is due within 45 minutes. So eventA starts at 17:30. The user should be notified at 16:45. But the cron job might not run exactly at 00 seconds. So when the difference is not 45 minutes and 0 seconds it is, say, 45 minutes and 5 seconds. Notification time is past. Email doesn't get sent. User misses event. Shugar.
We should also take into account that the cron job might take a long time to run. So maybe we should only trigger it every 5 minutes. So we need a bigger interval maybe.
So then my guess would be to say that:
if ((eventDueTime - now notificationTimeValue - interval) && (eventDueTime - now < notificationTimeValue + interval)) sendTheFrikinNotificationAlready();
It seems kind of risky if the there are thousands of notifications to send out. I guess I could make a thread for each notification and then a thread for each event that matches the criterion. That might help.
Does that make sense? Any other ideas? Thanks!
I saw some handwarmer apps and I guess its very easy to maek soemthign liek that by runnign multiple processes at once. Does anyone had a go on it. If you do can you share it with us here.
Thanks
I saw some handwarmer apps and I guess it's very easy to make something like that by running multiple processes at once. Has anyone had a go on it? If you did, can you share it with us here?
Thanks
I understand that double locking in Java is broken, so what are the best ways to make Singletons Thread Safe in Java? The first thing that springs to my mind is:
class Singleton{
private static Singleton instance;
private Singleton(){}
public static synchronized Singleton getInstance(){
if(instance == null) instance = new Singleton();
return instance;
}
}
Does this work? if so, is it the best way (I guess that depends on circumstances, so stating when a particular technique is best, would be useful)
Hi everyone,
I need to access Facebook from a J2EE-App (serverside).
I first had a look at this project: http://code.google.com/p/facebook-java-api/
, but as I need to create Facebook-Events and invite people this does not help.
So I guess I need to use the Graph API, but Igot no clue on how to perform those HTTP POST requests needed - especially how to append the nedded attributes.
I want to be able to know if in the QLineEdit it was a click. So I guess I should reimplement the following function(??):
void QLineEdit::focusInEvent ( QFocusEvent * e ) [virtual protected]
How I should do that?
Is there a jQuery plug-in / JavaScript control that will allow me to display array of images, but with (at least) option to delete image on certain user action.
Something like this: http://www.gmarwaha.com/jquery/jcarousellite/index.php but with dedicated delete button on every image.
First extra option that I can think of is to rearrange order of images.
If not... I guess I'll start extending mentioned jcarousellite myself....
Mostly because of reading this site, I'm trying to move away from Hungarian Notation. Or I guess the improper (system) Hungarian.
I can figure out a better way to name most data types, but I don't know what to do with objects. What would be a good naming convention for objects? I use objRS for recordsets now. Would I just use rs?
I've installed an EPiServer 6 site locally and it is running fine in IIS, but when I open it as a solution in Visual Studio 2008 and run it via the built in development server, the site center dashboard page doesn't work, I get a 404 error.
I guess there is some configuration in IIS that needs to be set up in Visual Studio? Has anyone figured this out already?
We are currently talking about deploying a website via rsync. However, during rsyncing the application is left in an inconsistent state, as some files may already be synced while others still are left with the old version right? How do people deal with this issue? I guess the same problem exists when deploying via svn/git/cvs. Should I just close the site, rsync, and open up again? Or do people simply ignore this inconsistency problem?
Just curious what experienced Textmate users can't live without in the program. I just ran the trial and bought the program so I'm trying to get a sense of how others might setup their development environment for web development.
Also, based on the fact that I just bought the program, I am going to guess that TM2 will come out next week. Yes, that's right, next week. Unfortunately, because of my luck, it will not be a free upgrade...upgrades will cost more.
Just curious what experienced Textmate users can't live without in the program. I just ran the trial and bought the program so I'm trying to get a sense of how others might setup their development environment for web development.
Also, based on the fact that I just bought the program, I am going to guess that TM2 will come out next week. Yes, that's right, next week. Unfortunately, because of my luck, it will not be a free upgrade...upgrades will cost more.
As a reasonable proficient Python programmer, I'm wondering what a good second language to learn would be. More specifically, something that does well the things that Python doesn't in general do as well. My first guess would be C/C++ since it's got easy extensibility with Python and because it offers generally better performance, but I'm wondering if Java or C# might be a better or at least equivalently good option with different up/downsides compared to C/C++.
Does anyone know if there is an official or unofficial API for Google 3D warehouse. I know of the iPhone app NaviCAD, which shows Collada models from Google Warehouse - it has search, most-viewed, most-recent functionality; so I guess it is using some sort of API to get that data. But I couldn't find any auch api after searching around. Do you know if there is any?
Hi There,
I've made a game map in blender and accidentally applied the objects transformations.
I don't really understand how it works. My guess is that the properties getting zeroed because the origin of the object is being set to its center.
I've tried the "clear origin" option, but it doesn't work. Any suggestions?
Thank you,
Amir.