create

How can I create a sequential SQL creation script for Oracle?

Something like: create table Employee( ID int primary key, Name nvarchar(200) IDArea int foreign key references Area(ID) ); go create table Area( ID int primary key, Name nvarchar(200) ); Does something like this exist in Oracle? ...

Rails collection_select

Manager :has_many :interns, :through => :assigns Intern :has_many :managers, :through => :assigns I am trying to create a new assign record. This is the assigns/new view where a given authenticated intern is creating a new association with a manager: # assigns/new.html.erb <% form_for @assign, :url => {:action => "create"} do |p| %> ...

Django create object only once by a user id

hello, I'm making a little vote system, in wich one can vote an answer, but only once. I have not created a form for the vote, i am creating the vote when someone submits it (accesses a link) How can i make, in my situation, for a person to be able to vote only once? It would be better if i would make a form instead? my code: def voteup...

How to set id after creating new jstree node?

I'm using jsTree 1.0. And have this code : $(document).ready(function () { $("#folders_tree").jstree({ "core": { "initially_open": ["root"] }, "html_data": { "data": '<?= $folders; ?>' }, "themes": { "theme": "default", "dots": true, "icons": true, ...

Nant - Check if a remote share already exists

We are using Nant to deploy an application and need to ensure that a share is created during the process. We use psexec and net share to create the share but this fails and stops Nant if the share already exists. Is there any way to detect that a share exists already? Either before trying to create the share or being able to detect t...

Sharepoint 2010 - Create Site from Code using Custom Site Template

I am creating a NEW sharepoint site from a silverlight webpart. I am using the ClientContext Model and it is working great for a team site template (STS#0). I need to create a NEW site from a CUSTOM site template that I have created, but I do not know how to reference this template being to specify a web template it is by name and only a...

timestamp problem

Hello, i have some scripts and in the database tabel i have set the dato to int(25) and timestamp i have a create topic script and then i create a topic it insert the date and time in the timestamp tabel (dato). but somehow my comment script will not insert the time :S and its the same stuff i use :S. here is my script if(isset($_PO...

How to create plugins/addons for firefox, IE and chrome

Hi I need to create plug-ins/add-ons for IE, firefox and chrome browsers for the following requirement: If the url requested is in a particular format/ matching a particular regex pattern, the plugin has to block the request and pop up and alert box. I have searched a lot but did not find anything helpful. For IE, I think we can creat...

CreatePipe and necessary permissions in C#

Hello, I'm trying to add a Sokoban solver (written in C++) to my program in C# (I have got a class in my program that handles marshalling of C++ interface). My program loads solver.dll library which loads solver.exe. Solver.dll and Solver.exe communicate via pipes. The problem is that when I run my program in Visual Studio (debugging) ...

I created a UI without Rokon, but I'd like to start Rokon later to run my game, any way to do this?

I started using Rokon to create the graphical portion of my game but when it was finished I had a lot of trouble creating a menu system and doing alerts with it. Discouraged, I started over without the game engine and made a nice looking UI. When the user clicks start game I want to run Rokon to load the graphics I made, but Ive tried e...

Creating database views with NHibernate

Does any one know how to create a view from hibernate with the results of a criteria query? We've got some legacy parts of our application that use views generated by the app for data retrieval and I like to tie the new NHibernate stuff into those for minimal friction. I'd turn it into an extension method so I could eventually do stuff...

create if not exists view ?

HI all, Is there any way of create view if not exists in sql on mysql db or h2 db. ...

using jquery to create a new form

I have a stepped form that has validations on each step. So to submit the full form I created 2 methods to search through each step form grabbing all the elements to fill a hidden form on the page and submit that. What I have works well for everything but check boxes. It grabs the checkbox, adding it to the final form, regardless of w...

Create Process As User after loading user profile

Hi All, I have service that runs as system, i want to spawn new process in some user TS session with the user privileges. I'm calling LogonUser, LoadUserProfile, CreateEnvironmentBlock, CreateProcessAsUser and spwan the process in the user TS session. The process (cmd.exe) run in the user TS session, but when i'm trying to run GUI app...

Create folder in Sharepoint

I need to create a folder in the root directory of Sharepoint 2007. ...

ORA-00972 Identifier is too long: while creating tablespace

This is a practice assignment where I have to create a table space with two datafiles. We have to use the exact naming conventions that are given to us. I believe I have it right, but I get this error: "ORA-00972: identifier is too long". I think I'm getting this because the path and filename are so long. The question is, how do I get ar...

Windows API for Creating User Profile

Hi, I'm trying to find the Window API for creating user profile. I'm creating local user in windows, and i'm trying to run process with this user using CreateProcessWithLogonW with LOGON_WITH_PROFILE flag set. Since the profile does not exist (the user was not interactively logged on yet) the CreateProcessWithLogonW fails. When perf...

Why I got "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))" when creating user in Active Directory

I use the following code to create user in Active Directory DirectoryEntry newUser = null; try { if (!Authenticate()) return null; newUser = location.Children.Add("CN=" + userName, "user"); newUser.Properties["samAccountName"].Value = userName; ...

Create video from picture frames?

How can i create a video out of picture frames? So let's say i have about 60 images, and i want to create a video out of them. The format of the video doesn't matter. What language is the best for this idea? Java, c#, or objective c? ...

How to create XML file?

I have some data which my program discovers after observing a few things about files. For instance, i know file name, time file was last changed, whether file is binary or ascii text, file content (assuming it is properties) and some other stuff. i would like to store this data in XML format. How would you go about doing it? Please ...