I'm searching a tool for generating UML-Diagrams by the import of SQL-Syntax-Files.
I need it for personal usage. Best if it's free or if there is a free trial license available.
As far as I know there is no web browser with built in validators for HTML, CSS and JavaScript. Developing web pages without validation is like using a compiler that doesn't do syntax analysis. Even Firefox with its excellent plugins aimed at developers like Firebug lacks plugins for CSS and JavaScript validation. Wouldn't it be useful to have these plugins? Am I missing something?
Hi
When debugging a java program in netbeans, I want the debugger to stop on the line that causes a NullPointerException so I can examine the variables there. I believe I have to use a condition on the breakpoint set at that line, but what is the syntax of the condition?
thanks for the help
update p
set
p.storePrice =
CASE
WHEN
p.costPrice BETWEEN 0.00 AND 1.00
THEN p.costPrice * 1.0
CASE
WHEN
p.costPrice BETWEEN 0.00 AND 1.00
THEN p.costPrice * 1.0
ELSE
p.msrpPrice
END
FROM product p
WHERE p.type = 1
The error says:
Msg 156, Level 15, State 1, Line 9
Incorrect syntax near the keyword 'CASE'.
I can't seem to see any issue with the sql?
Are there any .NET testing frameworks which allow dynamic creation of tests without having to deal with a hokey Attribute syntax?
Something like:
foreach (var t in tests)
{
TestFx.Run(t.Name, t.TestDelegate);
}
But with the test reporting as you would expect...
I could do something like this with RowTests et al, but that seems hokey.
Doesn't prepare() escape any quotes(') in a PDO statement? For some reason when I do this:
$sql = "INSERT INTO sessions (id, name) VALUES (1,'O'brian')";
$query = $this->connection->prepare($sql);
$query->execute();
I get this error:
Could not insert record SQLSTATE[42000]: [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near 'brian'.
How could this be if I'm using prepare()?
I wonder that, why are we using ({ }) ?
Is it delegate ?
What does it mean to use this syntax ?
What are we wrapping with it ?
For ex:
$.ajaxSetup ({ // <-- THIS
error: fError,
compelete: fComp,
success: fSucc
}); // <-- AND THIS
i have this python script where i need to run 'gdal_retile.py'
but i get this an exception on this line:
if Verbose:
print(Building internam Index for %d tile(s) ..." % len(inputTiles), end=' ')
the end='' is invalid syntax just curious as to why.. and what the author probably meant to do.
I'm new to python if you haven't already guessed.
Quoting from the C-std section 6.7.2.1,
struct s { int n; double d[]; };
This is a valid structure declaration. I am looking for some practical use of this kind of syntax. To be precise, how is this construct any more or less powerful than keeping a double* as the 2nd element? Or is this another case of 'you-can-do-it-in-multiple-ways'?
Arpan
Question http://stackoverflow.com/questions/1082474/authoring-html5-in-emacs talks about nxml-mode but, from what I read, that can only be used for XHTML5, I want to use emacs with HTML5 (no XML syntax). Is there any mode with auto-indentation, tag/attribute completion, etc.?
I have an asp:RadioButtonList and want to declaratively bind the value to an enumeration. I tried using this type syntax:
value = <%# ((int)MyEnum.Value).ToString() %"
I get an error list item does not support databinding. Any ideas?
var currentDate=new Date();
currentDate.setFullYear(2011);
alert(currentDate); == this works, it sets the year to 2011 as expected.
alert((new Date()).setFullYear(2011)); == this one doesn't work.
Any idea why? Am I misunderstanding the syntax?
I have a workspace with which I have 5 applications based on same schema. Now I want to have a main page from where I could call main pages of all these applications. I used this syntax to call home page in another application but to no avail
f?p=4000:4150:&APP_SESSION.
Where 4000:4150 are the values for the application and the page I want to display.
Please let me know where am I making mistake.
When I read source from open source projects I often find a comment line with "$Id" at the header of the file, f. ex.:
// $Id: addappwindowa.c 30792 2009-03-07 22:40:04Z neil $
Is there an "offical" syntax for this lines? (What does "30792" means? )
Are there editors that auto-generate these "$Id"s?
Are there any tools that use this information?
I know there is some syntax with ? to optionally render attribute.
But I can't find it now that I need it ...
Something like:
< input checked=<%? model.IsActivated % > ...
Thanks.
I was unable to find any solution of my specific issue. I'm using Xcode 3.2. I'd like to indent the next line of function argument just one step in from the previous line:
somevariable = pow(
a,
b);
However, Xcode's syntax-aware indenting insists on converting the above into:
somevariable = pow(
a,
b);
Where the arguments are aligned with opening parenthesis of the function.
How can I make indenting be configured to match my preference?
My code relies on version of Element which works like MemberQ, but when I load Combinatorica, Element gets redefined to work like Part. What is the easiest way to fix this conflict? Specifically, what is the syntax to remove Combinatorica's definition from DownValues? Here's what I get for DownValues[Element]
{HoldPattern[
Combinatorica`Private`a_List \[Element] \
{Combinatorica`Private`index___}] :>
Combinatorica`Private`a[[Combinatorica`Private`index]],
HoldPattern[Private`x_ \[Element] Private`list_List] :>
MemberQ[Private`list, Private`x]}
I can read settings like this, for example:
final String mytest = System.getString(this.getContentResolver(), System.AIRPLANE_MODE_ON);
...but can't seem to write to settings using putString, no matter what I've tried. Maybe it is the scope of this.getContentResolver()??? I'm a newbie, so who knows, maybe it can't be done, or it's just syntax? Currently the code is in the onCreate of an Activity class.
Any insight is much appreciated.
I am trying to do the following in a bit of python code:
class Parent:
class Child(Parent):
pass
And it does not work. Is there any python syntax I can use to achieve the same result?
Thanks.
In C# I can do this:
new SomeObjectType("abc", 10);
In other words, I can call new without assigning the created instance to any variable. However, in VB.Net it seems I cannot do the same thing.
New SomeObjectType("abc", 10) ' syntax error
Is there a way to do this in VB.Net?
i use this javascript syntax for validating a checkbox...
alert(document.getElementById("ctl00_ContentPlaceHolder1_Chkreg").checked);
if (document.getElementById("ctl00_ContentPlaceHolder1_Chkreg").checked == false) {
document.getElementById("ctl00_ContentPlaceHolder1_ErrorMsg").innerHTML = "please select the checkbox";
document.getElementById("ctl00_ContentPlaceHolder1_Chkreg").focus();
return false;
}
My alert showed me false but my if loop is not working... Any suggestion...
By textbook based i mean the author asks the reader questions/mini projects after every section/chapter of the book. And the book includes background info on php 5, like what kind of language, its use, syntax/semantix/structure etc. Any suggestions?
I'm trying to use a dynamically generated fully-qualified table name in sql server 2008. For example, this does not work:
select max([id]) from @dbName+N'.[T1]'
This will give an error like:
Msg 102, Level 15, State 1, Line 73
Incorrect syntax near '+'.
I know that something like this works:
declare @qualifiedTable varchar(200) = @dbName+N'.[T1]'
select max([id]) from @qualifiedTable
But I have to do this LOTS of times so I would really like to do it in line. Is it possible?
Looking at the information under the heading "Precision can be omitted or be any of:".
The example: printf("%.*s", 3, "abcdef"); works, outputting:abc (truncating the rest of the string.)
Now, I would like to have a string with multiple parameters formatted (truncated):
printf("%.*s, %.*s", 3, 3, "abcdef", "xyz123");
but the program crashes.
What is the correct syntax?
Thank You.