2,245 Posted Topics
Re: [URL="http://www.solarwinds.com/products/orion/"]Orion Network Management[/URL] [URL="http://www.cacti.net/"]Cacti[/URL] [URL="http://oss.oetiker.ch/mrtg/"]MRTG[/URL] [URL="http://www.netdisco.org/"]Netdisco[/URL] (pretty cool. I just recently started using it) [URL="http://www.microsoft.com/systemcenter/en/us/operations-manager.aspx"]System Center Operations Manager[/URL] [URL="http://www.microsoft.com/systemcenter/en/us/essentials.aspx"]System Center Essentials[/URL] (Slimmed down version of operations manager) | |
Re: I don't understand the nature of these questions -- is this academic? Why are you wanting to create so many subnets? Each subnet (usually) burns up 2 usable IP address for the router and broadcast addresses. There are other ways of isolating network segments aside from subnetting (routing) the traffic. … | |
Re: For what its worth I use Atalasoft's barcode package and it has been OK. If you move forward their solution let me know and I may be able to provide some code. I wrote a scan-station application using TWAIN to scan in piles of paper separated by pages with a … | |
Re: For database read operations you're better off showing a "marquee" progress bar that just moves back and forth until the operation completes and doesn't give an exact process. In order to know how long a database operation will take you would need to query the DB to get the affected … | |
Re: Treat each file as a set of entities (Customers and Accounts). [code=c#] using System; using System.Collections.Generic; using System.IO; using System.Windows.Forms; namespace WindowsFormsApplication3 { public partial class Form2 : Form { public Form2() { InitializeComponent(); } class Customer { public string Name { get; set; } public string AcctNbr { get; … | |
Re: Default buffer sizes may be 4k however the upper limit of data that can be sent depends on PMTU (Path MTU) between the two endpoints. Typically this will be in the area of 1500 bytes (less the bytes used for protocol headers) Reference a similar thread [URL="http://www.daniweb.com/software-development/csharp/threads/228973/1010558#post1010558"]sending files over TCP[/URL] … | |
Re: When I retire at ~50 I will do part-time consulting to support applications I helped author in the 30 years prior while fishing in my brand new boat. I'm with AD on this one -- I don't think I could survive without having at least a part time job. | |
Re: [QUOTE=zack_falcon;1602393]friend told me multi-threaded sockets would do the trick[/QUOTE] They will but dealing with a raw socket is a steep learning curve. For this application I would not recommend it. [QUOTE=zack_falcon;1602393]while another said something about asynchronous or something.[/QUOTE] Asynchronous sockets, remoting, etc. Its just a non-blocking way of programming. [QUOTE=zack_falcon;1602393]Still, … | |
Re: You can also use Microsoft's managed assembly, [URL="http://msdn.microsoft.com/en-us/library/bb448854.aspx"]Open XML SDK[/URL], to create native documents for Office 2007 and later. Code project example using the library: [url]http://www.codeproject.com/KB/office/OpenXML-SDK-HelloWorld.aspx[/url] The Open XML SDK also includes an awesome tool called the Open XML SDK Productivity Tool that turns *.docx, *.xlsx, etc in to C# … | |
Re: This may also be a helpful snippet: [code=c#] public static int GetRandom(int min, int max) { byte[] b = new byte[sizeof(int)]; new System.Security.Cryptography.RNGCryptoServiceProvider().GetBytes(b); int i = BitConverter.ToInt32(b, 0); Random r = new Random(i); return r.Next(min, max); } [/code] | |
Re: When the user enters the license code it will contact a license server over the internet. The server will verify that license code has never been used before and send back a second activation key specific to the requesting machine (the license validation request from the client should also include … | |
Re: [code=sql] IF OBJECT_ID('tempdb..#Table', 'U') IS NOT NULL DROP TABLE #Table GO Create Table #Table ( RecordId int identity(1000, 1) PRIMARY KEY, ReturnDate DateTime, ShipDate DateTime, ) SET NOCOUNT ON Insert Into #Table (ReturnDate, ShipDate) Values ('2011-01-04', '2010-12-28') Insert Into #Table (ReturnDate, ShipDate) Values ('2011-01-04', '2010-12-27') Insert Into #Table (ReturnDate, ShipDate) … | |
Re: Use Wireshark to sniff the connection. Usually these forums execute client side code (javascript) to store another cookie. The [icode]HttpWebRequest[/icode] is not javascript aware so the login never fully processes. I have given similar code examples although perhaps not for phpbb, or this version of phpbb. If you can find … | |
Re: Its very difficult to understand your question. Here's my guess at what you're after: [code=sql] Declare @StartDate DateTime, @EndDate DateTime Set @StartDate = CAST(Floor(CAST(GetDate() as float)) as DateTime) --Trim off the time portion Set @EndDate = @StartDate + 1 Select * From SomeTable Where CreateDate >= @StartDate and (CreateDate < … | |
Re: You only need the svn client. Just check out the latest copy: [code=bash] svn co http://www.paidsvnhosting.com/path/to/svn [/code] You want to check out the entire repository so if you normally commit against "/svn/MyReposName/trunk" you will want to check out "/svn/MyResposName". As far as hosting SVN you can host it on your … | |
Re: Is your data stored with trailing spaces (ie char(100) and not varchar(100) in the database)? Try to [icode].Trim()[/icode] the underlying data in the [icode]DataTable[/icode] and resize it again. You should probably also set the WrapMode property before AutoResizing since it could change the control's layout. | |
Re: You need to regenerate the ProductCode, UpgradeCode and PackageCode in your Installation project. Windows Installer only permits one MSI to be installed with any single package/product code. See: [url]http://www.advancedinstaller.com/user-guide/changing-version.html[/url] | |
Re: See this similar thread: [URL="http://www.daniweb.com/software-development/csharp/code/217409"]Sample C# Windows Form Login Screen[/URL] | |
I wanted to export a list of all email addresses I had corresponded with and was unable to find a free product to compile the list so I came up with this. You could take it a step further and scrape additional email addresses from the message body. As far … | |
Re: Please make sure to use matching code tags when posting code: [noparse] [code=C#] ...code... [/code] [/noparse] You should modify your query to only select the desired records. MSSQL has a hard limit of 2100 parameters. As far as selecting rows #N1-N2 you have a few options. #1 - Parameters: [code=SQL] … | |
Re: MSSQL tinyint is 0-255 (one byte). The C# equivelant data type is [icode]byte[/icode] See: [URL="http://msdn.microsoft.com/en-us/library/ms131092.aspx"]Mapping CLR Data Types[/URL] | |
Re: What version of visual studio are you running and what versions of the .NET framework do you have installed? | |
Re: Arunabh Nag: Here is the C# code I use to enumerate tables and columns. Let me know if you have trouble translating it and I will get back with you tomorrow. I figure a C# answer today is better than a VB.NET answer tomorrow :) [code=csharp] using System; using System.Data; … | |
Re: Try this: [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace daniweb.mdi { public partial class frmMain : Form { public frmMain() { InitializeComponent(); } private Form OpenForm(Type t) { if (!t.IsSubclassOf(typeof(Form)) && !(t == typeof(Form))) throw new ArgumentException("Type is not … | |
Re: [QUOTE=adatapost;862983]Application deployment is not an issue with .NET. Windows Xp, Vista Operating systems already have .NET Framework. If installed version of .NET framework are not suitable then you have to install a new one. The easiest method to deploy an application is to copy+paste Bin folder anywhere.[/QUOTE] No, that is … | |
Re: AD, Try using Ubuntu or Gentoo. I would recommend Ubuntu to start out with. I have been using linux for years and I still hate fedora to this day. Fedora does have its uses with large server farms or for "enterprise" deployments of machines but for day to day use … | |
Re: I would highly recommend against building your queries dynamically like this. You should use parameterized SQL for security and performance reasons, please see: [url]http://www.daniweb.com/forums/thread176306.html[/url] Here is sample code for your situation: [code] private void simpleButton1_Click(object sender, EventArgs e) { const string connStr = @"Data Source=apex2006sql;Initial Catalog=Leather;Integrated Security=True;"; const string query … | |
Re: Use iptables and [URL="http://lartc.org/"]LARTC[/URL]. The "tc" command is what you're looking for when it comes to packet shaping. Regarding php you need to author a mechanism for running certain commands with elevated privelages (root) so you can modify the firewall and traffic control rules. It will essentially be a wrapper … | |
Re: What are you trying to do? It sounds like you want to clear the session variables? The application will reinitialize itself after you call close if the client requests any more data. | |
Re: It seems there is a bug with the latest release. I'm going to reinstall an older version until they address the issue. The issue has been reported to TortoiseSVN's mailing list. I'm going to post a reply, and I recommend you do the same: [url]http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2637416[/url] Let me know if you … | |
Re: In this code the "FacilityImg" column is data type "image" on the MSSQL server. [code=c#] private void button2_Click(object sender, EventArgs e) { const string connStr = "Data Source=apex2006sql;Initial Catalog=ServManLeather;Integrated Security=True;"; const string query = "Select ImgNumber, FacilityImg From FacilityImg Where ImgNumber = 1000"; using (SqlConnection conn = new SqlConnection(connStr)) { … | |
Re: You can insert values directly in to a PK column depending on how you have the column configured but it sounds like you're referring to an autoincrementing PK value? If so you can [icode]Select SCOPE_IDENTITY()[/icode] after your insert runs to return the PK's value. | |
Re: [B]>> 1) How to Delete Dynamically Allocated Array?[/B] Where do you see [icode]Delete()[/icode] in VB.NET? You would use [icode]erase[/icode]. Read more about [URL="http://msdn.microsoft.com/en-us/library/83zyeke9.aspx"]erase[/URL] [B]>>2)Can we use DML statement in function?[/B] SQL user-defined functions or VB.NET functions? Either way, yes you can. [B]>>3)Hey friends I read somewhere the diff b/w stored … | |
Re: It sounds like this laptop isn't being a good citizen on the network. It could be malicious software or a misconfiguration on the laptop. Download [URL="http://www.wireshark.org/"]Wireshark[/URL] and install it on the problematic ACER laptop. Start a packet capture, connect it to the internet at work, let it remain online for … | |
Re: Try something like this: [code] void button1_Click(object sender, EventArgs e) { string input = "xaabbccx"; string[] arr1 = new string[] { "a", "b", "c" }; string[] arr2 = new string[] { "1", "2", "3" }; Dictionary<string, string> dict = new Dictionary<string, string>(arr1.Length, StringComparer.OrdinalIgnoreCase); for (int i1 = 0; i1 < … | |
Re: Move all of the code in your _Load event to another method so you can call it again from any part of your code within the form. | |
Re: Please create a new thread and ask questions there -- you should not append your questions to someone elses thread. It would make Daniweb a mess if we did that and nobody likes a mess :) I look forward to seeing you post! | |
Re: [B]>> Dr_Gonzo[/B]: great post! I would argue the point of UDP being faster but regardless of the reason, it is the right choice for this job. You want to use UDP for streaming content. Any time you don't care about data fidelity it is likely a candidate for UDP. Think … | |
Re: The [icode]image[/icode] datatype for SQL-Server has been deprecated in SQL2005 and later in favor of the [icode]varchar(max)[/icode], [icode]nvarchar(max)[/icode] and [icode]varbinary(max)[/icode] data types. Reference [URL="http://msdn.microsoft.com/en-us/library/ms178158.aspx"]using large-value data types[/URL] on MSDN. You should consider updating your type definitions if you're running a newer version of SQL Server. Here is how you can … | |
Re: So what is the problem here? You can't read the data received, or you cant figure out how to encode \004 properly? | |
Re: If you are trying to marshal a call to the GUI thread it depends -- Is it a windows form or WPF application? Winforms use [icode]Control.Invoke()[/icode] while WPF uses [icode]Dispather.Invoke()[/icode]. Here is a recent thread with a similar question, using winforms: [url]http://www.daniweb.com/forums/thread318221.html[/url] If you're wanting to marshal the call a … | |
Re: I think the daniweb forums are OK. Let the newcomers get crucified for not reading previous posts, forum rules, or conducting research on the question(s) they ask. It teaches them a valuable life lesson Likewise if you have a forum for new posters then likely the veteran posters won't read … | |
Re: [code=csharp] private void button2_Click(object sender, EventArgs e) { foreach (Process p in Process.GetProcesses()) { string procFile; try { procFile = p.Modules[0].FileName; } catch (Win32Exception) { procFile = "n/a"; } Console.WriteLine(string.Format("Process {0}: {1}", p.ProcessName, procFile)); } } [/code] If you open a text file with notepad then this happens: [LIST] [*] … | |
Re: You can't update the GUI across multiple threads, you will need to marshal the call over using Control.Invoke/Control.BeginInvoke. I do something very similar with ngen: [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Diagnostics; using System.Threading; namespace testBinarySer { public … | |
Re: Try something like this: [code] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace daniweb { public static class DisplayPairs { private class IntegerPair { private int _min; private int _max; public int Min { get { return _min; } } public int Max { get { return _max; } … | |
Re: Use [icode]DateTime.Subtract()[/icode]: [code=c#] DateTime dt1 = DateTime.Now; DateTime dt2 = DateTime.UtcNow; int minutesBetween = (int)Math.Truncate(dt2.Subtract(dt1).TotalMinutes); [/code] | |
Re: Try this: [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Text; namespace daniweb { public partial class frmScoreCalculator : Form { List<int> scores = new List<int>(); private int Total = 0; private int Average = 0; public frmScoreCalculator() { InitializeComponent(); … | |
Re: Also you should not add registry information for a "trial period" in the installer itself, unless you want to add a custom action. If you add a registry key with the installer project itself then the project "owns" the setting and when it is uninstalled it will remove the key. … | |
Re: Are the sample rows you posted in one column in the mySQL table? | |
Re: Storing files inside of SQL server has always been a controversial topic but yes, mediumblob should be just fine. You need to ask more specific questions if you want more detailed responses. As for exporting to Excel the source doesn't really matter. You can use .NET to pull the data … |
The End.