2,245 Posted Topics

Member Avatar for sam-kh

[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)

Member Avatar for jingda
0
189
Member Avatar for bangor_boy

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. …

Member Avatar for bangor_boy
0
274
Member Avatar for dilake

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 …

Member Avatar for sknake
0
114
Member Avatar for itslucky

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 …

Member Avatar for bhagawatshinde
0
3K
Member Avatar for jerome2467

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; …

Member Avatar for ddanbe
0
163
Member Avatar for WildBamaBoy

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] …

Member Avatar for WildBamaBoy
0
409
Member Avatar for MooGeek

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.

Member Avatar for almostbob
0
279
Member Avatar for zack_falcon

[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, …

Member Avatar for zack_falcon
0
183
Member Avatar for yousafc#

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# …

Member Avatar for sknake
0
298
Member Avatar for Dr peter

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]

Member Avatar for shiva07
0
140
Member Avatar for k.d.m

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 …

Member Avatar for skatamatic
0
111
Member Avatar for jovillanuev

[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) …

Member Avatar for sknake
0
198
Member Avatar for Fritz.fx

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 …

Member Avatar for Fritz.fx
0
453
Member Avatar for strRusty_gal

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 < …

Member Avatar for sknake
0
635
Member Avatar for SasseMan

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 …

Member Avatar for sknake
0
309
Member Avatar for kapojian

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.

Member Avatar for kapojian
0
211
Member Avatar for mohana88

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]

Member Avatar for sknake
0
133
Member Avatar for adobe71

See this similar thread: [URL="http://www.daniweb.com/software-development/csharp/code/217409"]Sample C# Windows Form Login Screen[/URL]

Member Avatar for sknake
0
86
Member Avatar for sknake

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 …

Member Avatar for Rajwin.aravind
0
341
Member Avatar for Roy Gourgi

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] …

Member Avatar for sknake
0
216
Member Avatar for complete

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]

Member Avatar for sknake
0
51
Member Avatar for serkan sendur

What version of visual studio are you running and what versions of the .NET framework do you have installed?

Member Avatar for khachool
-1
706
Member Avatar for Arunabh Nag

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; …

Member Avatar for SadiSerdari
0
2K
Member Avatar for ShailaMohite

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 …

Member Avatar for vivekagrawal
0
855
Member Avatar for shameemmMbstu

[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 …

Member Avatar for Momerath
0
2K
Member Avatar for Ancient Dragon

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 …

Member Avatar for jwenting
0
589
Member Avatar for RobertKramers

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 …

Member Avatar for samuelmac
0
3K
Member Avatar for mossy464

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 …

Member Avatar for yohanes
0
178
Member Avatar for Blaine Tuisee

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.

Member Avatar for RogR
0
4K
Member Avatar for WargRider

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 …

Member Avatar for aupadhye
0
720
Member Avatar for jineesh

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)) { …

Member Avatar for Momerath
0
598
Member Avatar for SunnySideUp

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.

Member Avatar for questpond
0
217
Member Avatar for sonia sardana

[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 …

Member Avatar for questpond
0
353
Member Avatar for DammyDani

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 …

Member Avatar for sknake
0
2K
Member Avatar for darkseid

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 < …

Member Avatar for darkseid
0
149
Member Avatar for Karl Luders

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.

Member Avatar for kvprajapati
0
10K
Member Avatar for er.sajal

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!

Member Avatar for S.Santosh
-1
3K
Member Avatar for Clawsy

[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 …

Member Avatar for mesho100200
0
2K
Member Avatar for tqmd1

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 …

Member Avatar for akar
0
277
Member Avatar for procomp65

So what is the problem here? You can't read the data received, or you cant figure out how to encode \004 properly?

Member Avatar for kvprajapati
0
4K
Member Avatar for krosty4782

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 …

Member Avatar for krosty4782
0
195
Member Avatar for MktgRob

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 …

Member Avatar for angelscrocher
0
161
Member Avatar for getkiran1

[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] [*] …

Member Avatar for Ionesta
0
2K
Member Avatar for johnnyturbo3

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 …

Member Avatar for Ketsuekiame
0
712
Member Avatar for rzhaley

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; } …

Member Avatar for Ceerno
0
117
Member Avatar for dougancil

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]

Member Avatar for dougancil
0
88
Member Avatar for whitetigerclaws

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(); …

Member Avatar for sean_king
0
345
Member Avatar for VibhorG

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. …

Member Avatar for dnlangela
0
2K
Member Avatar for Scotto13
Member Avatar for gbann123
0
257
Member Avatar for InnocentVamp

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 …

Member Avatar for noobsaibot
0
1K

The End.