create

Create Duplicate Records on SELECT for Calendar Date Range

Hey all, I've built a pretty shnazzy calendar system but there is one tweak that I need to make so that I'm completely happy with it. My calendar has three tables: calevents - The calendared event. caldates - The occurrences and date-range of each occurrence for each event. calcats - The categories that can be applied to an event. ...

New table for every user?

Hi everyone, I want to crate new table for each new user on the web site and I assume that there will be many users, I am sure that search performance will be good, but what is with maintenance?? It is MySQL which has no limit in number of tables. Thanks a lot. ...

How to create File with the FILE_ATTRIBUTE_TEMPORARY in C#?

How to create File with the FILE_ATTRIBUTE_TEMPORARY in C#? (So to store Data in Ram but be able to use it as normal file) ...

Can I create my own database from PHP?

I have a working PHP server. Now I want to use databases (MySQL or something similar). Is it possible to create a database from PHP? I would like to emphasize that in my case I do not have any user-name and password which I can use to connect to MySQL server. I also do not have a control-panel where I could create a database or a table ...

zend framework controller not found ?

I downloaded the latest version of Zend framework, added a controller and I can not get it to load.. Here is what I did: C:\zend\Apache2\htdocs>zf create project myproject Creating project at C:/zend/Apache2/htdocs/myproject Note: This command created a web project, for more information setting up your V HOST, please see docs/README C:...

MySQL Create tables without committing current transaction

I'd like my program to be able to install plugins, and rollback all the changes made if an error occurs. So I create a transaction that keeps all the things that were added while installing the plugin. The problem is that the plugin may want to create tables, and doing so automatically commits the current transaction in MySQL. See State...

When to keep a form around permanently

I've got a form in a 24/7 application that will probably be needed as many as 1000 time a day. Does it make sense to create/destroy this form every time I need it, or is this an example of a situation where the form should be permanent? ...

Making a UIImageView appear when screen is tapped

Possible Duplicate: Making images appear How? Hi all, Could someone please tell me how to make an image appear when the user taps the screen and make it appear at the position of the tap. Thanks in advance, Tate ...

How to add events to Controls created at runtime in Excel with VBA

I would like to add a Control and an associated event at runtime in Excel using VBA but I don't know how to add the events. I tried the code below and the Button is correctly created in my userform but the associated click event that should display the hello message is not working. Any advice/correction would be welcome. Dim Butn...

get bitmap from textview in android

I want to get the bitmap that is drawn when a textview is displayed but without displaying the textview in the activity. something like this: TextView t = new TextView(this); t.forceToDrawItself(); Bitmap b=t.getViewBitmap(); how is this possible? ...

SQLite query does not finish execution whereas Access takes a minute to run

I am stuck very badly at trying to make an SQLite query finish execution and currently have no bright ideas. Also, I am new to the field of writing SQL queries, and I am still learning the concept of database indexes, etc.. I am migrating an application from Access to SQLite and the query takes around 1 minute to run in Access. The quer...

How to create NAMED-PIPE in .NET-4?

How to create NAMED-PIPE in .NET-4 in your C# application? ...

Create MySQL database with default InnoDB tables?

I've been working on writing a SQL statement to create a MySQL database with several default options, including default character set and default collate. Is it possible to add syntax to make the default engine type for tables in this database to be InnoDB? I've been looking through the MySQL manual for v.5.1 and I've found the statem...

MySQL stored procedure to INSERT DELAYED but CREATE TABLE first if needed?

I'm planning on doing a lot of INSERT DELAYED into MyISAM tables. But the tables might not exist yet. Let's say e.g. a new table will exist for each day. So instead of detecting absence of table in my client and creating then retrying the insert, it seems like a good case for a stored procedure ("function"). Is this possible, and wha...

how can a databse be created on sql server 2005 using c# vs08.

to create new a new databse file start sql server management studio express on db server and create it! i would like to create a database using c# in my web application visual studio 08 is it possible? as connection string has to have a name of database to connect, but i want to create one. ...

How to programmatically create a 24bpp bitmap from color array?

I am trying to programatically create a bitmap from an array that contains color data. With the code below, I get 3 duplicate distorted images side by side when displayed in a picturebox. Can somebody tell me where it's going wrong? public Bitmap CreateBM(int[,] imgdat) { Bitmap bitm = new Bitmap(imgdat.GetUpperBound(1)...

Should a web service have both a create and save web method?

I am creating a new web service for an application and am currently designing the web methods for each service. I have noticed that there is no real different in my case between create and save except that save requires an ID and create does not. The Java services API has both. Is it a good practice to nix the create method and overlo...

Shoulda POST and GET Parameters for create action

How to call a create action on a nested resource with shoulda? The following code does not actual work - the end_user_id won't be used as the id for my parent resource. /blog_items_controller_test.rb post :create, :blog_item => {:id => blog_items(:blog_item_one).id}, :end_user_id => end_users(:end_user_two).id, :format => "xml" Any ...

How to create a delegate for a reflected method at run time

I want to create a Delegate of a reflected method, but the Delegate.CreateDelegate requires the Type of delegate be specified. Is it possible to dynamically create a 'Delegate' that matches whatever function is reflected? Here is a simple example: class Functions { public Functions() { } public double GPZeroParam() ...

need a script which will invoke other process/script and exit, but the invoked process should continue running

Hi All, I'm trying to run a script, which internally invokes other script but, the main script should exit after invoking and the invoked script should run independently on the background. How can i achieve this in shell scripting? or is there any other alternative way to do this? Regrads, senny ...