auto-generate

.NET Generate Sequence Diagrams From Running Code

Is there a tool that can generate sequence diagrams from running .NET code? ...

Auto generate function documentation in Visual Studio

I was wondering if there is a way (hopefully keyboard shortcut) to create auto generate function headers in visual studio. Example: Private Function Foo(ByVal param1 As String, ByVal param2 As Integer) And it would automagically become something like this... '---------------------------------- 'Pre: 'Post: 'Author: 'Date: 'Para...

How to generate Java code from an XSD that includes MSFT Serialization: GUID datatypes?

I have used the Jaxme 2 libraries before to generate Java code from .XSD files without a problem. I'm currently encountering a problem generating Java from an XSD file that contains a http://schemas.microsoft.com/2003/10/Serialization/ namespace. Some sample code from my .XSD is: <?xml version="1.0" encoding="utf-8"?> <xs:schema xmlns...

Is there an application that generates an HTML form from a PDF?

Is there an application out there that Generates an HTML form from a PDF file? Also, it would need to generate the HTML form so that it would be able to submit to the PDF to fill out the fields inside the PDF. PDF is not so good at validation and it's just a kluge interface to begin with. ...

Generate a C# delegate method stub

Anyone know how to automatically create a delegate stub method? In WPF it seems im constantly having to pass delegates around. i would like to be able to type a method name that doesnt exist and have a method stub automatically generated...currently i'am having to constantly reference the docs to get the delegate signature and then manu...

Python ORM that auto-generates/updates tables and uses SQLite?

I am doing some prototyping for a new desktop app i am writing in Python, and i want to use SQLite and an ORM to store data. My question is, are there any ORM libraries that support auto-generating/updating the database schema and work with SQLite? ...

SQL Structure to Store Surveys and Answers - Build Tables and Queries Based on User Data?

I'm a total newbie when it comes to SQL. I'm making a site in ASP.NET for doing surveys. A privileged admin user will be able to build a survey. Then lots of other people will respond to the survey. Once I have the set of questions for a new survey, what is the best way to automatically construct a table and an INSERT query to store t...

Inheriting from a UserControl abstract subclass

Hi guys, I have a set of UserControls that need to have a few similar properties. Thus I have defined an abstract subclass of UserControl that defines these properties and updated the .xaml.cs and .g.cs files to inherit from this base class. All compiles well and runs well. Great! But.... .g.cs files are generated and will be regenerated...

Passing parameters to constructor for an AS3 auto-created asset class

I'm creating a MovieClip subclass (let's call it MyClip) that I want to use for several library assets. I'll be instantiating these movie clips from ActionScript code. MyClip has a constructor parameter that allows it to set the initial values of certain properties. Since I want to use it for multiple library assets, the logical way to ...

Form Designer Generated Code namespaces have to be corrected every form change

Hi, I have several forms with this strange behaviour. For instance I have this form generated code. namespace Sogyo.InHolland.SeriousGameFactory.GameCreator { partial class FormAvatarResourceSetEditor { this.bindingSourceAvatarResourceSets.DataSource = typeof(SeriousGameFactory.Framework.ImageResource); } } In this case when i ...

Quality of the autogenerated sql queries in Visual Studio

I was having an issue with the auto generated delete statement. In my mind the delete should have just been DELETE [tablename] where [PK] = @param but instead it generates a query with 4 ORs. DELETE FROM Market WHERE (@IsNull_Name = 1) AND (Name IS NULL) AND (@IsNull_Description = 1) AND (Description IS NULL) AND (MarketId = ...

Generating UI from DB - the good, the bad and the ugly?

I've read a statement somewhere that generating UI automatically from DB layout (or business objects, or whatever other business layer) is a bad idea. I can also imagine a few good challenges that one would have to face in order to make something like this. However I have not seen (nor could find) any examples of people attempting it. T...

Sql Server Column with Auto-Generated Data

I have a customer table, and my requirement is to add a new varchar column that automatically obtains a random unique value each time a new customer is created. I thought of writing an SP that randomizes a string, then check and re-generate if the string already exists. But to integrate the SP into the customer record creation process ...

C#: Webservice changes expected parameter type (from a normal POCO to a an autogenerated class)

I have the following class in Class Library: Artist, which is a POCO Now I have a method in a web-service (which has a reference to the mentioned-above library) with a signature like this: [WebMethod] public int Artist_AddArtist(Artist a) { // } When I try to consume this service from an application (that also has a reference to the...

Generate HTML Table Client Side

(ASP.NET Web Application) I'd like to create a page which allows the user to build an HTML table. The user will be provided with the following controls: a textbox used to define the amount of rows in the table, a textbox used to define the amount of columns in the table, and a bulleted list of shapes (ex. Square, Octagon, etc) which wil...

Suppress results from generated code

Hi, I have a project created with "Suppress results from generated code" checked in its properties. When I add a service reference, the proxy class (reference.cs) that is autogenerated adds the following attribute: [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Ser...

Automatically generate rows in DB2 with SQL

I'm trying to search the DB2 equivalent of generate_series() (the PostgreSQL-way of generating rows). I obviously don't want to hard-code the rows with a VALUES statement. select * from generate_series(2,4); generate_series ----------------- 2 3 4 (3 rows) ...

how to create random folder names 12 characters long in .NET

I would like to create random folder names on my website to store images and their thumbnails, but instead of using the full version of a generated guid, i was thinking about using just part of it, maybe just the first 8 characters and possibly base64 encode it. i am worried about possible collisions though. Can someone point me in the...

Sqlite insert into with unique names, getting id

I have a list of strings to insert into a db. They MUST be unique. When i insert i would like their ID (to use as a foreign key in another table) so i use last_insert_rowid. I get 2 problems. If i use replace, their id (INTEGER PRIMARY KEY) updates which breaks my db (entries point to nonexistent IDs) If i use ignore, rowid is not upda...

How to generate a secure activation string in php?

After user subscribe email to my website. My website will generate an email confirmation and send to them. In the email content, i need to include activation key, something like: www.domain.com/activate.php?key=$generatedKey How do you generate the key? using sha1($email)?? After generate the key, i store it in database, so that when ...