Questions

Nested Data and the Property Grid

I have been trying to figure out the PropertyGrid control, and how to display nested data. There are lots of example on codeproject.com, such as http://www.codeproject.com/KB/grid/XmlGridControl.aspx?print=true, but they do not explain very well how the PropertyGrid works.   Here is what I am tryi ...

how to identify a given string is hex color format

I'm looking for a regular expression to validate hex colors in asp.net C#. And also looking code for validation on server side. For instance: #CCCCCC ...

Saving TXT with proper spacing.

  I have a program that loads a TXT file into a RichTextBox, but when I save it, it saves it with improper spacing.  Is this because my textbox is too small?   What I mean is that this:   Hi   Im   A   Dog     Would be saved as:   Hi Im A Dog     ...

Stay in directory with popen

I want to make some C++ program and I'm using function popen here to send commands to command line in Unix. It works fine, but when I call "cd directory", the directory doesn't change. I thing that it's same when I try to run "cd directory" in some script, after finishing script director ...

How to judge two images equality?

My program I designed is as follows: Code Block class Glbv        {            public static int I = 0;            public static int ArrayI = 0;            public static bool play = false;            public static Image Quondam;            //public PictureBox[] pictureBoxn = new PictureBox ...

.htaccess subdomains

Hallo all. i want to create a .htaccess file if i type subdomain.domain.com can i use ( subdomain ) as a query string and domain.com like domain. can i get help to this? :) tanks ...

Will the .Net framework ever have multiple inheritance?

Hello   I wonder if MS is working on this.   Thanks a lot. ...

jQuery/Javascript Multiple Array Combinations

I have been trying to find a solution to this with no avail. The idea of what i'm trying to achieve is to be able to find all unique combinations of multiple lists. So, let's say I have 3 lists of checkboxes (but this is an unknown number in the real-life application), Colour, Size, Pack ...

Add a description

I am wondering how to add a description to a sub/function/varible/structure.  By description I mean like when the user types "Me.Height" it says "Gets or sets the height of the control." ...

What to log/trace in a Production environment

I'm wondering what kind of information should be logged to a file once an application has moved into a Production environment? Besides the logging of exceptions and errors... Should the start and end of each method be logged? The start and end of a running service? Each time the applica ...

T-SQL Script to convert an integer into years and months

  Hi there,   for displaying purposes I'm trying to convert number of months into years and months. ie. 35 months = 2 years and 11 months.   how can I do this within a T-SQL script?   Thanks for your help.   Manny ...

Variable Length of PhysicalAddress

The PhysicalAddress (used for MAC addresses) class supports variable-length byte arrays. As far as I know MAC addresses are always 48-bit long. Is there a reason why the PhysicalAddress allows any lenghts? ...

Getting current path in variable and using it

I would like to extract the current path in a variable and use it later on in the script Something like: myvar = pwd Later on: cd myvar But my bash skills have rusted over the years. How would i go on about doing that? ...

SQLRowCount() retruning -1 for a SELECT statement.

  Hi friends,I am facing problem with SQLRowCount() function which is returning -1 when I tried to fetch records greater than 99 from my data file. if the data file contains total of 99 records then the above function is returning its second parameter value nRowCount as 99 but if dat file contains ...

something confusing about define-key (and the issue of when to quote an argument)

It seems one is not supposed to quote KEYMAP when using define-key. (define-key org-remember-mode-map "\C-c\C-r" 'org-remember-kill) I'm confused because I think that all arguments of a function that is not quoted are evaluated, and according to the help, define-key is a function, not ...

What software shoudl I use to record a website demo?

Hi there, I am looking at adding "How to videos" into my website, I have built the whole site using .net so I would like to learn a little bit of silverlight and stream the videos using Silverlight. My problem is I can only find demo recorders that record into flash which doesn't work ...

UIPickerView - event fired when row is highlighted

What I would like to do is this: A UIPickerView is shown. If the user touches the selected row, the row is locked (it is a multi-component picker) and the other components are free to spin. If the row has already been locked and the user touches the locked row, the row is then unlocke ...

Downloading a csv file automatically each day from the internet using Visual Basic

I am new to programming and I need some help.  I am using Visual Basic to attempt to accomplish a task.  I've searched all over the help forums and my personal VB books and I can't find an example like this one anywhere.    Ideally, I would like to download a csv file automatically each day at a ...

Ready to deploy my first app - need help!

  I've just finished my first ppc app, under VS 2005 SP1, CF 2.0 SP2 and SQL CE 3.1   The app uses two .sdf files plus two resource files to store/access some images.   I've read a lot of papers on how to deploy an app, but to be honest, I'm a little more confused that when I started...   I r ...

Using regular expressions in shell script

What is the correct way to parse a string using regular expressions in a linux shell script? I wrote the following script to print my SO rep on the console using curl and sed (not solely because I'm rep-crazy - I'm trying to learn some shell scripting and regex before switching to linux) ...

should i use wpf?

Hi group   i'm a visual c++ programmer and c# as well, and i have my own software im starting version 3 and i would love to have only one code for both web and windows app   right now i have a web app version (using asp, ajax and c#) and a windows app version (using c++)   im not a designer b ...

Does svnadmin pack work on non-upgraded 1.6 repos?

I've been attempting to run svnadmin pack on repos that were originally created with SVN 1.6. However, I see no output to suggest the command is doing anything. Is it the case that shard packing occurs automatically for native 1.6 repos (as opposed to on-demand for upgraded repos)? The o ...

SQL Express connections limitation

In the latest issue of MSDN Journal , article "IIS 7.0: Enhance Your Apps Wioth Integrated ASP.NET Pipeline", Mike Volodarsky says: "...Be sure to close the tool after you are finished as SQL Server Express Edition allows only one user identity to access the database at a time."C ...

in Excel , in my pivot tables when i drop down the row fields, value filter option is disabled

in Excel , in my pivot tables when i drop down the row fields, value filter option is disabled any idea why ? ...

LINQ use with XML

We have a project in which access the DB layer (MS SQL) with LINQ. Can we now change our DB layer to XML file and still access it with the same LINQ? We want add possibility to store data in a single XML file or a set of XML files. Current LINQ to SQL code looks like: result = (from e ...

Sorting by severity is useless

Default severity values in CMMI process template: Urgent, High, Medium, Low. Sorting by severity is very useless since it gives you Urgent - Medium - Low - High instead of expected Urgent - High - Medium - Low. Is there a way to change this behavior short of bulk updating thousands of bugs we alread ...

Download file using libcurl in C/C++

I am building an application (on windows using Dev-C++) and I want it to download a file. I am doing this using libcurl (I have already installed the source code using packman). I found a working example (http://siddhantahuja.wordpress.com/2009/04/12/how-to-download-a-file-from-a-url-and ...

Problems installing visual studio 2005

Hello,   I just downloaded the trial version (90 days trial) of visual studio 2005. It's an .img file. How do I install this? After the dowload I assumed clicking it, and then set-up or install. But because it's an .img file, i can't open it.   Can anyone help me with this. Any help or informat ...

Are static fields in Activity classes guaranteed to outlive a create/destroy cycle?

I frequently run into the problem that I have to preserve state between several invocations of an activity (i.e. going through several onCreate()/onDelete() cycles). Unfortunately, Android's support for doing that is really poor. As an easy way to preserve state, I thought that since th ...

Where is SQL Server Agent instance?

  Hello all. For few hours now i've been trying to find that feature, enable it... But I can't find it for some reason.   I have Microsoft SQL Server Express Edition with Advanced Services.   pictures: http://skitza.net/imgs/img20/7oD49w7CY9.JPG   http://skitza.net/imgs/img20/1fxDEGs4Zs.JP ...

Hot Tags