I am trying to create a little helper application, one scenario is "file duplication finder". What I want to do is this:
I start my C# .NET app, it gives me an empty list.
Start the normal windows explorer, select a file in some folder
The C# app tells me stuff about this file (e.g. duplicates)
How can I monitor the currently selecte...
Recently I have heard the bellow statement. Can someone please elaborate on it?
With client side applications, Java has better performance than .Net. The reason is that .Net environment on the server-side (iis?) is different than its client side. While Java uses the same environment at both ends. Since frameworks performance is optim...
hello all, I have this string
<p/><ul><li>test1<p/></li><li>test2<p/></li></ul><p/>
What i attempt to do is extract all the "p" tag within the "li" tag, but not the "p" tag outside of it.
I'm only able so far to
extract all the "li" tags by
\<li\>(.*?)\</li\>
I'm lost at how to extract the "p" tag within it.
Any pointer is grea...
We are thinking about obfuscating some code before releasing it to customers. We are wondering about the impact it will that have on tech support. Can customers provide us with meaningful stack traces or will they be obfuscated too?
I look forward to hearing about your experience. Thanks in advance.
...
I am a PHP developer however I'm looking widen my skill set. Can anyone recommend some good resources? (Online would be awesome but not necessary :) )
What are the biggest differences?
Any help is appreciated.
...
I have a custom sitemapprovider which loads pages from the database.
Pages (pageid, fk_pageid (parent), title, url, show_in_menu)
I would like to globalize/localize the title of the page. What's the best method?
...
Hi folks,
I'm using log4Net for my logging. I also have the following set...
<log4net debug="true"> .. </>
Ok, now, when i have the following code
log4net.Config.BasicConfigurator.Configure();
I don't really get any verbose internal-debug info but I do get displayed anything I log.
Now, when i swap that code out and replace it wi...
Neither is instantiable. What are the differences, and in what situations might you use one or the other?
...
I need to strip out any "&id=SomeValue" from a Url.PathAndQuery. Where SomeValue could be an int or a string. And it may or may not be followed by another ampersand.
So it could be
somepage.aspx?cat=22&id=SomeId¶m2=4
or
somepage.aspx?cat=tect&id=450
I want to be left with
somepage.aspx?cat=22¶m2=4
or
somepage.aspx?ca...
I need a .NET library to synchronise files from a server to a client (one way).
Requirements:
Should be a .NET library
Needs to be deployed via ClickOnce (that is, no instalation, no COM etc.)
Needs to support HTTP and/or FTP and/or SMB
Open Source, Free or Commercial
...
if you run this snippet of code(put it in form1) in a fresh new winform app with 2 forms
private void Form1_Load(object sender, EventArgs e)
{
Form2 newForm = new Form2();
Button b = new Button();
newForm.Controls.Add(b);
b.Click += new EventHandler(click);
this.Show();
newForm.Sho...
I am tasked with re-architecture an existing ASP.Net 2.0 Web Site. The current solution has 3 projects; Web UI, Business layer project and Data layer project.
The Data layer uses some sort of SQL helper class and stored procedures to return DataTable.
The Business layer sort of passes the DataTable along, I don't see much business lo...
What's the best ESE column type to XmlSerialize an object to my ESE DB?
Both "long binary" and "long ASCII text" work OK.
Reason for long binary: absolutely sure there's no characters conversation.
Reason for long text: the XML is text.
It seems MSDN says the 2 types only differ when sorting and searching. Obviously I'm not going to ...
Is it possible to log WCF service exceptions? I have added in the app.config. But still the exception soap message is missing in the wcf log file. All the remaining messages for which there is no exceptions can be seen in the WCF log file. Here is my code & app.config. Any pointers are highly appreciated.
public string GetName(int empl...
I have a custom DataContext with a Table member...
Entry is defined as...
[Table(Name="Entry")]
public class Entry
{
[Column]
public DateTime MyDate { get; set; }
}
The MyDate field in the Entry table can be NULL.
I have a very simple Linq query that retrieves all records in Entry but when it encounters a NULL MyDate field, I re...
I m contributing to a project that s been developed for over a year and I jumped into it in lately.
There are performance problems with the application.
I m aware of several profiling tools, approaches for optimization such as find out the bottlenecks and optimize them. I m comfortable with algorithms, running times of iterations etc....
Some Windows applications add buttons to the control box, which apparently is the name for the group of minimize, maximize, and close buttons. One such application is Skype, which has a button for switching from a one-window-that-contains-everything mode to a one-window-per-conversation mode and vice versa:
I'd like to know how you ca...
We are in the process of creating active-x controls used within our application.
Since Microsoft stopped supporting classic Visual Basic, is it wise to use Visual Basic to develop the Active X control or the latest VC++/ATL/MFC libraries provide more feature where we can create controls faster by leaving Visual Basic flexibility?
We w...
A snippet from Managed Threading Best Practices on MSDN:
Don't control the execution of worker threads from your main program (using events, for example). Instead, design your program so that worker threads are responsible for waiting until work is available, executing it, and notifying other parts of your program when finished. If you...
Do all the windows and controls (including active-x) displayed inside WinForms application are derived from System.Windows.Forms.Control class?
...