Hi Everyone,
I'm working on a CMS as my hobby project. Because I'm not paid for it, time is not very essential and I aspire to make a well-architected system.
I have a set of business classes which are responsible for the main logic, and they are getting data from a database through interfaces, and the data provider (which sould implem...
I'm wondering if there is something like Hotswap/HotDelpoy/JRebel (known from Java World) in .NET Desktop Applications (no stateless webapps)?
As an example you change a functionality in the IDE while the Program is Running and the changes are instantly reflected in the running app
Do .NET Programmer need to restart the app on every ch...
My company has decided to develop ebook DRM platform.
The platform does not have to be perfectly safe, but should be comparable to existing DRM platform.
Software can be written in .NET or Java, both client and server-side.
I am pretty much at dark on how I should approach this project and how DRM software really works.
Any good tip on...
What is the the most hassle-free (even commercial) way to consume a Java service (resides in Spring container) from c# ?
...
I want to get some thoughts on best practices around making .NET app configuration environment-neutral.
Background. Some background first. I come from the Java world, not the .NET world, and in Java there are certain things that we can do to build packages that are environment-neutral. They are generally based on abstracting the configu...
I currently have a net assembly within an aspx page by using the following tag. The page is only ever accessed using Internet Explorer.
<object id="myControl1" classid="mydll.dll#my.namespace"></object>
This same assembly is also present client side in the windows assembly to allow it to execute code client side when the user does cer...
Hi all,
I have a problem with NHibernate that I don't seem to be able to find a simple way around.
I have the following database:
Game: ID, Score, Match_ID
Match: ID
A match consists of 3 games.
I want to find out what the maximum Match score is, so the following SQL would do the trick:
select max(a.total) from
(select Match.ID...
I want to do something like this
INSERT INTO link_list(link, status, hash_type, hash_id)
VALUES(@link, @status, @hash_type, @hash_id);
INSERT INTO active_dl(fileId, orderNo)
VALUES(last_insert_rowid(), SELECT COUNT(*) FROM active_dl);
But obviously it is wrong and theres a syntax error on select. How do i write this? Using sqlite.
...
Ok everyone,
Got a wierd one here.
I've written approx 4 projects that utilize a central DLL for database access. The DLL was written in VB.NET using the .NET 3.1 framework.
All the code works great. Recently, I went through all the code and updated the connection strings to use a new username and password since they were using the S...
Hi folks,
i have installed my own custom Windows Service. I need to find out the physical path, where the service exists.
eg.
log4net.Config.XmlConfigurator.Configure(
new System.IO.FileInfo(<insert path here> + "log4net.config"));
Any ideas?
...
How do I prevent the code below from throwing a FormatException. I'd like to be able to parse strings with a leading zero into ints. Is there a clean way to do this?
string value = "01";
int i = int.Parse(value);
...
Hello,
I have a question about the very long random looking suffix that is appended to directories created in the AppData folder when saving user preferences from a C# .NET Windows forms application.
For example:
C:\Users\Bob\AppData\Local\Acme\HelloWorld.exe_Url_ei0yyv33jvrgjqybolgkilwx2u1i32lq\
The problem that I'm having is that I...
If I zoom large enough in xamlpadx (500%) I see while lines around the inside of the border. In my app this even happens at normal zoom level in some controls.
Why is that and more important, what can I do about it?
This is my XAML code:
<Border Background="#000000" BorderBrush="#000000" BorderThickness="4" CornerRadius="4">
<...
can someboody please help me convert these strings/ints into a usable font thing? it keeps coming up with a red squigly line underneith the following line:
mylabel.FONT = new Font(fname, fsize, fstyle);
and also when i try to set the labels forecolor by doing this:
mylabel.ForeColor = fcolor;
the code i have is:
int fcolor = Int32...
Hi there,
I am using log4net and in one class require logging to a RollingFile appender, but then in another class, I wish to log to the event log + rolling file + console appender.
What is the best practice? and could I see some sample code?
By the way to make things more difficult, I am using Castle Windsor Logging Facility with Log...
Hi all
Based on previous question, I've changed the context as follow:
I have abstract class called Tenant and CustomerList. The Tenant in this case is like owner of the application for multi tenant application model and CustomerList is a collection of Customer class.
The relationship between these 2 class are Many to One relationshi...
So I'm starting to write a class library of useful methods I've written and picked up over the years, I'll start with two examples of code, then ask my specific questions:
I'd also like to make the argument that this is not a duplicate of some of the other, "where do I start unit testin questions."
Check network connectivity (not inter...
There has to be a better way to do this.
I just want to split long string into 60 character lines but do not break words. So it doesn't have to add up to 60 characters just has to be less than 60.
The code below is what I have and it works but I'm thinking there's a better way. Anybody?
Modified to use StringBuilder and fixed the probl...
I would like to understand why on .NET there are nine integer types: Char, Byte, SByte, Int16, UInt16, Int32, UInt32, Int64, and UInt64; plus other numeric types: Single, Double, Decimal; and all these types have no relation at all.
When I first started coding in C# I thought "cool, there's a uint type, I'm going to use that when negati...
I have some fairly straightforward code to open up files using a Process object:
var proc = new Process();
proc.StartInfo.FileName = attachmentPath;
proc.StartInfo.UseShellExecute = true;
proc.Start();
Every once in a while, the window that opens from this process starting open behind all my currently o...