Hi,
i am quite confusedabout the difference between a FOREIGN KEY and CHECK constraint.
they appear to me to achieve the same result.
I mean I could create a table and enforce a Foreign key on another table, but i could create
a CHECK to ensure the value in in another table.
What is the difference and when to use the one or the other?
thanks
Even I used break() and exit() statements many times, I am bit confused between them. I need to know exact meaning of both, when we should use them. Please explain with small example.
Thank you.
What value is hashCode() method is returning in java?. i read that it is an memory reference of an object. when i print hascode value for new Integer(1), its 1. for String(a) - 97. so i confused. is it ascii or what type of value is?
I'm new to PHP and I'm confused seeing some examples calling a function with a @ prefix like @mysql_ping().
What is it for? Googling / searching is not much of a help since @ gets discarded and 'alias' is not good enough keyword.
I'm bit confused. I've been building my sites with my own session system, but i'm not sure how secure the php's own session system is. My session system usually just has user id and quite harsh hash, which does not include user name or password for generation. I save the hash in the user database and as a cookie to confirm the user session on every page load. So my question is should i keep using my own systems or try out php sessions?
Its very basic and silly question....
Is PHP a web Technology or a scripting language?
I believe as it is scripting language, but why other believes it as web technology?
and if its a scripting language then in which web technology does the PHP counts in?
i know it might seem a vague question to some people, but lets face the truth many of us are confusedabout it..
So geeks please clarify me....
I have a Java Swing project for my class. I would like put it on my website so people can use it. However I'm not sure if there is a way to turn it into a servlet. Or do I need to know JavaScript? I'm confused. Is there a way to make my swing application into a servlet automatically?
I'm am trying to figure out how the Oracle "Layered Architecture Model" works, and I am very confusedabout what the business, data, and presentation do, and how they relate to each other. I have seen many diagrams showing how this should work, but some real world examples would be useful?
I have to use a fancy font in a project but I'd really like to avoid sifr and other ugly alternatives so I'm looking at @font-face.
However, I'm really confused with several blog/sites offering different views on its usability. Is is ready yet? Which browsers support it today?
Thanks
I'm quite confusedabout the basic concepts of a Hash table. If I were to code a hash how would I even begin? What is the difference between a Hash table and just a normal array?
Basically if someone answered this question I think all my questions would be answered:
If I had 100 randomly generated numbers (as keys), how would I implement a hash table and why would that be advantageous over an array?
Psuedo-code or Java would be appreciated as a learning tool...
Hello everyone,
I have a little problem picking the right language to write my daemon,
I am confused between C and C++, I want to use C++ because it is more expanded than C,
but I want to use C because it is the starting point of everything in linux,
I want to go for C++ as I have many resources about it, so, does it make any difference if I pick C++ instead of C?
and what I will have good if I learn C more?
I feel like if I go into C++ I will cover C within C++...
Regards
In many books weightx and weighty values are expressed in different ways:
some says 0.0 to 1.0
other says 0 to 100
other say until 1000
I'm a lot confused.
In the API these variables are double types so I think the first is correct but what does it meaning a value of 0.4 or 0.7? are percentage values, point values? relative of what?
Hi,
I want to develop an application in which i doesn't any idea about how to create my app with which controller class i should i have gave?
My application first screen contain TabBarController and i have also inserting UINavigationController.
On above scenario i little bit confused which type of controller(confusion in TabBarController, NavigationBarController or simple ViewController ya windows based appliaction) should i take.
Why does cout has to be flushed before cin starts reading? Aren't they of different buffer? I can have reading of input into a buffer while same time putting it on output buffer (before flushing) .. 2 different buffers. I am confused here.
Hi, I just encounter a strange problem:
var a:ClassA = new ClassA;
var b:ClassA = a;
The program keeps running sometime, the a = null, b = null.
The program is a complex one, I am sure that no part will touch a, and b. My question is, will the runtime(garbage collector) to collect the memory of "a" and then assign a and b to null?
I am confused, thanks!
I am confused, I don't know what's wrong. I'm about to transfer all data from my first table to the other. Here is my code:
$getdata = mysql_query("SELECT Quantity, Description, Total FROM ordercart");
while($row = mysql_fetch_row($getdata))
{
foreach($row as $cell){
$query1 = mysql_query("INSERT INTO ordermem (Quantity, Description, Total) VALUES
($cell)",$connect);
}
mysql_free_result($getdata);
}
I get the error: Warning: mysql_fetch_row(): 5 is not a valid MySQL result resource.
I am working on a MVC web form where user will submit the Album information in the first step, after submitting the Album information in the second step user can submit the track information data.But i am little confused how i ll do in MVC , in normal webform it is easy for me to do .I am looking for some sloution for this.
Hello I am a little confused with regards to models in mvc 4 and thought someone may be able to point me in the right direction. This would be most appreciated.
For example if i have a table that has the following fields
[StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 5)]
public string UserName { get; set; }
[Required(ErrorMessage="Email Address is Required")]
[StringLength(15, ErrorMessage = "Email Address must be between {0} and {1} in size",MinimumLength = 5 )]
[DataType(DataType.EmailAddress)]
[Display(Name="Email")]
public string Email { get; set; }
[MaxLength(25)]
[Display(Name="Mobile Telephone Number")]
public string Mobile {get;set;}
[MaxLength(500)]
[Display(Name="Headline")]
public string Headline {get;set;}
[Required]
[StringLength(200)]
[Display(Name = "First Name")]
public string FirstName {get;set;}
[Required]
[StringLength(200)]
[Display(Name="Surname")]
public string Surname { get; set;}
public virtual int? DayOfBirthId { get; set; }
public virtual DayOfBirth DayOfBirth { get; set; }
public virtual int? MonthOfBirthId { get; set; }
public virtual MonthOfBirth MonthOfBirth { get; set; }
public virtual int? YearOfBirthId { get; set; }
public virtual YearOfBirth YearOfBirth{get;set;}
This is my user profile table in the database. However I would like a form that the user registers to the site with. When they first register i do not need all the details such as telephone all i really need is there username, email address and password. Do i create another model for this. Or do i have one model and on the controller set the fields to null or empty string that are not required on registration. I have validation also so would this be set for data that has not been entered on the form.
My question is ultimately should all forms represent models- should the database be redesigned to meet this required. Or should the controller set the values that are not required. Or should there be another model that represents the form be created which maps to this table.
I am a little confused on this and clarification of anyone would be most appreciated.
I always forget :S
How do you remember which number stands for TRUE or FALSE?
(when I started css the colors black and white always confused me. Is white #FFFFFF or #000000. A trick I came up with: black is 0,because z0rr0 is dressed in …)
I do not understand what is meant by the terms "compile time" and "run time" (or "runtime").
I'm also a bit confusedabout what "value type" and "reference type" mean, and how they relate to the 'times mentioned above.
Would someone please explain these things?
I have an SQL query that has an alias in the SELECT statement
SELECT
CONCAT(YEAR(r.Date),_utf8'-',_utf8'Q',QUARTER(r.Date)) AS 'QuarterYear'
Later, I want to refer to this in my group by statement.
I'm a little confused...should I wrap this with backticks, single quote or just leave it unwrapped int he group by
GROUP BY
`QuarterYear `
or should I do this?:
GROUP BY
'QuarterYear'
or just this?:
GROUP BY
QuarterYear
Hi friends
I am new to Programming.During last year I learned flash programming as well as Asp.net
I am good at both.
But i am confusedabout choosing asp.net or flash programming
As per career which one will get me good salary and
which one will me more secure
Please help me on this with reasoning which one i should choose
I have few lists like:
a = [1, 2, 3, 4, 5]
b = [4, 6, 5, 9, 2]
c = [4, 7, 9, 1, 2]
I want to trim all of them using a loop, instead of doing as below:
a[-2:]
b[-2:]
c[-2:]
I tried but got confused with pass by value or pass by reference fundamentals, looked into other questions as well but no help.
Thanks
I have two models. Lets say they are "Posts" and "Comments". In an admin view for Posts, I want to display how many comments are on that post. I am confused on where to put the code. In the controller or the view? I would like it to be in the controller.