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?
...
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| %>
...
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...
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,
...
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...
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...
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...
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...
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 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...
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...
HI all,
Is there any way of create view if not exists in sql on mysql db or h2 db.
...
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...
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...
I need to create a folder in the root directory of Sharepoint 2007.
...
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...
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...
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;
...
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?
...
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 ...