59 Discussion / Question Topics
Remove Filter I'm revisiting a topic previously discussed in this thread: [url="http://www.daniweb.com/techtalkforums/thread23030.html"]http://www.daniweb.com/techtalkforums/thread23030.html[/url] The basic issue is this: when using a [b]StreamReader[/b], and [b]ReadLine[/b], to process a text file, you cannot determine where you are "at" within a file. This is because [b]StreamReader[/b] doesn't actually read from a FILE, it reads from a … | |
I have a C# Class Library which I want to use as a COM object in VBScript. I'm using Visual Studio C# 2010 Express. Here's the class code: [code] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; namespace PB_GUID { class PB_GUID_Encode { private Guid _myGuid; private string … | |
In the Event Viewer it's possible to assign a task to a particular event. It's also possible to Connect to another computer to view its Event Log(s). Is it possible to create a task on my computer when an event occurs on a remote computer? In my particular situation both … | |
I think I've posted on this before, but I find the overall site categorization non-intuitive. "Software Development" vs. "Web Development" doesn't make sense to me. Web development IS software development. I propose the site be organized by software development languages and platforms. DHTML/AJAX includes working with XML/XSLT, so where do … | |
Since it's been about three years since I had to write any XSLT, I'd like some assistance with the code below. [CODE]<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:output method="text"/> <xsl:template match="/"> <xsl:for-each select="/WatchConfig/ProcessList/Process/Node"> <xsl:if test="Plugin = 'PWScript'"> <xsl:text> </xsl:text> <xsl:value-of select="Config" disable-output-escaping="yes" /> <xsl:text> ************************************************************************ </xsl:text> </xsl:if> </xsl:for-each> </xsl:template> </xsl:stylesheet>[/CODE] … | |
Does C# have a conditional compiler directive for debug mode? I have code that I want to run only if I'm debugging. ![]() | |
I'm having the same problem described in this, unresolved, thread on MS ANSWERS: [url]http://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/mouse-scrolling-stuck-with-wireless-mouse-windows/ad41e351-d5f3-4a31-98f3-018e81dd3e9e[/url] I have a MS Wireless Laser Mouse 6000 v2.0. Windows 7 Professional 64-bit. Most dropdown controls and scrollbars will behave as if the mouse button is being held down. I should note the keyboard will often … | |
I'm coding a project in C#, VS2010, using SQL Express 2008 as the data source. Whenever any other application connects to the database (such as Management Studio), the next time my C# application runs, it cannot access the database. The error is "Operating system error 32". Unable to open the … | |
Windows Form Application, C#, in VS2010 Express. I get the "Object reference not set to an instance of an object." error with the line of code below, when I attempt to close the Form. [CODE]Int32 myID = Convert.ToInt32(((DataRowView)projectBindingSource.Current).Row.ItemArray[0]);[/CODE] This is a simple form with two data-bound controls. The record has … | |
I'm working with C#, and Adobe Acrobat 6.0 Professional. Acrobat exposes a COM Automation server with a few top-level objects. It's easy enough to create instances of those objects, by getting their Type via the .GetTypeFromProgID() method, and then using Activator.CreateInstance(). [code] // Create an Acrobat Application object Type AcrobatAppType; … | |
First, sorry for posting this here, but I couldn't find a VBScript forum on Daniweb (which I find surprising). I'm working with binary data in several different projects. Below is an example of code that works to retrieve a static map image (PNG) from Google: [CODE]strFileURL = "http://maps.google.com/maps/api/staticmap?markers=2200+S+Western+Ave+Lisle+IL&zoom=14&size=400x400&sensor=false" Set objXMLHTTP … | |
I'm having a problem with a dynamic LinkButton. For a result returned from a database query, I create two LinkButtons, dynamically. One is "Update" and the other is "Delete". I store Update or Delete in the .CommandName property. I store the identity value (the primary key) of the database record … | |
For one of my customers, I have to develop applications that communicate with each other via fixed-width files. In other words, they have developed a file format that is "generic" to a lot of operations. If I write a new utility, it is expected that the utility will be able … | |
Recently, I noticed some strangeness on my home wireless network. Sometimes the speed would be slower than normal, I couldn't print to my printer, and some of my more advanced router settings (for port forwarding, firewall, etc.) would seem to be "lost". As it turns out, my laptop was attaching … | |
I have a love-hate relationship with Palm. First, the love: for starters, Palm-based PDAs do everything I want a PDA to do. Just give me the basics, such as a nice contact list, memo/notepad, a to-do list, etc. Palm has always done that, and that's all it really needed to … | |
Last August, Business 2.0 magazine published an article that speculated Google was considering building a U.S. broadband network capable of targeting specific advertising to users, based on the location of their WiFi. The so-called "Google.net"" or "Google WiFi" caused much speculation, however, the company remained close-lipped. Tuesday, Google finally made … | |
Web Developer. Webmaster. Web Designer. What do these terms mean? Which one are you? In fact, these terms have been used and misused so much that they are in danger of losing any distinct meaning. This article attempts to define and defend these labels and their meanings. "Webmaster" in particular … | |
McAfee, Inc., a leader in intrusion prevention, announced that its security services group, Foundstone Professional Services, will release a whitepaper on Microsoft ASP.NET Forms Authentication and "cookie replay" attacks. The whitepaper will be located at [url]http://www.foundstone.com/index.htm?subnav=resources/navigation.htm&subcontent=/resources/whitepapers.htm[/url]. In response, Microsoft authored an MSDN article: [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;900111[/url]. What is a "cookie replay" attack? … | |
Most ASP.NET Developers have no previous web development experience. Is that a true or false statement? I suspect it's true, but found no statistics to back it up. However, judging from posts in several technical forum sites, one certainly gets that impression. "Halt App Until JavaScript Confirm Dialog Clicked". "JavaScript … | |
I'll admit it right up front: I'm an old guy, and this is a "kids these days" rant. Pull up your pants, comb your hair, and for Pete's sake, learn to type! I'm referring to what is variously known as "txt lingo", "txt msg spk", or my own term: laziness. … | |
Hi. I'm having some difficulty with a project that involves working with very large binary files. These are PCL files, where the decimal character "12" represents a Form Feed, but only if it's not embedded within a string of binary data. In other words, I'm looking for decimal "12", then … | |
User "YouCan" is spamming via PMs: Hello "tgreer" Have you worked with Winforms? Do you understand how to use it with C# pretty well? Would you be interested in a position using UI, C# and Winforms development? I am not sure where you are located? This position would not be … | |
Hello, this is not a Web Development question, but this is the only XML forum on Daniweb. I need to copy a specific number of nodes in an XSLT transform. For example, I need to copy the first 5 <student> nodes, with all child nodes and attribute nodes, even though … | |
I've posted a new article on my site, dealing with how to integrate JavaScript and ASP.NET. It's a "beginner level" article. [url]http://www.tgreer.com/aspnet_html_03.html[/url] | |
I'm struggling with XSLT. I need to copy an entire xml file to a new xml file. The input and output should be identical except for the addition of some extra tags around certain elements. Consider the two versions: [code="xml"] <?xml version="1.0"?> <document> <header> <general> <version>1.14.2</version> <form>/XX/ATL_ZI_D007_PURCHASE</form> <language>EN</language> <device>PRINTER</device> </general> … | |
Here's an example of why all these games are a problem. They pollute the site. This is an example of clicking "Posts Since Last Visit". All this pointless activity is rendering portions of the site useless. The bigger issue remains: why are we attracting users who like to spend most … | |
Dani, The featured blogs are missing the "views" and "comments" bits. I know that information is still available on the blogs page, but not on the homepage. I often scan the featured blogs. If the topic doesn't interest me, I move on. However, if I see that there are numerious … | |
Seems some tidbits disappeared from the way blogs are presented on the opening page. I miss "number of comments" - it's a quick way to see if a blog posting is hot, if it has new comments, and if someone has replied. Otherwise, it's just "hmm, I read this one … | |
I'm writing a utility program. In fact, the program will be a Console application that will contain many static methods, each method being a specific utility. The application will take two command line arguments: filename, and utility name. Of course I want to run the method specified on the file … ![]() | |
When did the user/member information disappear from the blogs? Is it up to the blog writers to provide a signature line? I don't see a member name - a "byline", on the blog entries. | |
Is there a new ad, which scrolls horizontally across the page, or have I been infected with spyware? Any ad technology that interferes with my posts, by altering the content (IntelliTXT, for example), or by getting in my way by obscuring content (like the scrolling ad I seem to have … | |
I have an existing, perfectly functional, wireless network at home. The router is a NetGear WGT624v2. I understand SSIDs, WEP and WPA security, etc. I also work at home, and my company has provided me with a laptop and router/firewall, a CISCO PIX 501. My current configuration: [code] Cable Modem … | |
As usual, the examples I find for this either don't work, or don't apply. I want to store, essentially, a text file, within my app.config file, and access it programmatically. Here's a simplified version: [code] <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="PostScript" [COLOR=Red]type=""[/COLOR] /> </configSections> <appSettings> <!-- User application … | |
Any Daniweb members from this area? What's it "like"? Job Market (for IT/programming/tech sector) - Real Estate (affordable ownership) - climate, etc. Are you from the area, or did you relocate there? | |
Does anyone have a good example of how to use this method? All of the MSDN examples I could find are useless because: [LIST=1] [*]they show a hard-coded size for the byte array [*]they show writing the output to the Console[/LIST] Ridiculous. I have a file that contains some binary … | |
[B]Brief Summary[/B] I've written a Windows Service. It uses Process.Start() to launch a Console Application. The console application performs a File.Copy(), to copy a file from the local file system to a network share. [COLOR=Red]Problem: [/COLOR] The file copy fails. I get an exception that tells me "part of the … | |
Has ASP.NET 2.0 introduced a simplified data control for displaying parent/child data? Imagine a HelpDesk application, where you want to display all the "open tickets". I can see how you'd use a GridView for that. However, each row in the resulting table should have the ability to, when clicked/selected show … | |
Has anyone played with the ASP.NET 2.0 Menu control? Most of the samples I see deal with the SiteMapPath and Master Pages. Can this control be used for a simple DHTML-style dropdown menu? Like the suckerfish menus, or functionally equivalent to daniweb's main menus? One would think so, but the … | |
I've developed a few ASP.NET applications in the past, develop C# windows apps all the time, but am just now developing my first ASP.NET 2.0 app. I'm having a nightmare getting a database connected. Everything is on my local machine, including IIS Visual Studio 2005 Professional Latest .NET Framework 2.0 … | |
How would I go about making this entire class Serializable? What code would I add to a second constructor that would restore state/values from the XML file (de-serialize)? [code] using System; using System.Collections.Generic; using System.Text; namespace tgreer { public class indexer { private Dictionary<string, Int32> _documents; private Dictionary<string, Int32> _pages; … | |
Hello. 1st, I am a developer, so can write/understand PHP and SQL. I have installed vBulletin and migrated my phpbb forum with no problems. Now I plan on adding/creating a HOW-TO technical article repository on the site. I want to use the New Thread creation routines from VB for this. … | |
I run an industry-specific, highly-targeted forum. I'm using a standard ad-rotator, where I can track/charge for clicks, impressions, or duration. I think I could charge a bit more that average because the site is so specific to an industry, nearly every member would be a qualified prospect. That said, what … | |
Not this guy: [url]http://gamesbyemail.com/DiceGenerator[/url] Had to share, I think it's equal parts hilarious and genius. | |
Doesn't C# support EBCDIC encoding? I'm working on a project that involves parsing Xerox Metacode print streams, encoded as variable-byte EBCDIC records. The print stream data itself is in ASCII, but the record headers and control records are in EBCDIC. I read the records in as byte arrays. I know … | |
For all who like logic puzzles, thought experiments, etc.: I've posted a couple of blog entries on my favorite logic puzzles. I'd love to collect some more! One of them discusses the classic "Locker Problem", and the other is a weighing problem. The entries give the answers... I'm most interested … | |
Consider the following code snippet: [code]counter = 0; workOperations = new String [OPERATIONS.Count,2]; foreach ( System.Array o in OPERATIONS) { workOperations[counter,0] = (string) o.GetValue(0,0); workOperations[counter,1] = (string) o.GetValue(0,1); counter++; } ps.Operations = workOperations;[/code] There has got to be a better way to do this! The issue is, the [b]ps.Operations[/b] property … | |
The current slew of animated ADs cause performance issues. I notice my system fan starts running faster and louder if I stay on a page with say, sharks with bullseyes on them. And for a site wanting to have a more professional appearance, I question the wisdom of featuring dancing … | |
With all the recent news and attention to the latest Google products, I've found myself becoming increasingly paranoid about Google. Have things started to take a creepy turn, or is it just my imagination? For example, the Google Library Project, and the Google Print Project. Who gave Google the right … | |
Maybe this should go in the "Site Feedback" forum, I don't know. Wow, I really don't like this style. Most of the navigational elements are WAY TOO SMALL. Where did the JavaScript/DHTML forum go? I can't seem to find it anymore. It should be under Web Development. So... I guess … | |
I run a couple of low-volume, niche-specific sites. I run ads on them, from that big search engine company. I was recently told that my account was terminated for "invalid clicks", with no further details. I can only speculate that someone overenthusiastically clicked many, many ads. Searching the web a … |
The End.