semantic

Is there a working Semantic Diff tool for C++

I've found only abandoned projects, theories and feature lists. But I could not find a tool which can compare two C++ source files and show semantic differences. Of course I would not compare two unrelated files, or changes accumulated during 10 years of development and maintenance. But changes usually discussed at a code review would ...

Is there an easy way to convert HTML with multiple <br/> tags into proper surrounding <p> tags in Javascript?

Let's say I have a bunch of HTML like below: bla bla bla long paragraph here <br/> <br/> bla bla bla more paragraph text <br/> <br/> Is there an easy way with Javascript to convert it to properly semantic <p> tags? E.g.: <p> bla bla bla long paragraph here </p> <p> bla bla bla more paragraph text </p> Output spacing is not impo...

I don't understand getNextIncludedTime() in Quartz

I'm probably just being an idiot - it's been a long day! I've misunderstood something in my first foray into Quartz... Given this code: DateTime dt = new DateTime(); dt = dt.withDayOfMonth(20); Calendar cal = new CronCalendar("0 0/10 * * * ?" ); long start = dt.getMillis(); System.out.println("Starting at " + start); long end = start ...

What technology problems arise from creating a markup language for email?

I am wondering what technology problems arise from associating a markup language to email? Without examining the language let us assume a hypothetical markup language exists with the following conditions: It meets all possible user-agent needs for properly structuring and defining content in email. It properly sanctions communications...

C++: Confusing declaration semantics

Hi, After tring my hand at perl and a little bit of C, I am tring to learn C++ and already i am bogged down by the details and pitfalls. Consider this:- int x = 1; { int x = x; // garbage value of x } int const arr = 3; { int arr[arr]; // i am told this is perfectly valid and declares an array of 3 ints !! } Huh, Why the diffe...

How do array semantic initializers work in C#?

in C# 3, initializers were added. This is a great feature. However, one thing has me confused. When you initialize class, you typically have to specify the member variable or property you are initializing. For example: class C { public int i; } public void blah() { C c = new C() { i = 1 }; } Array semantics have been in C# si...

Tool to diff webpage semantic structure rather than content

Does anyone know of any tools that allow diff'ing between two web pages semantic markup rather than content? Cheers. ...

a language for semantic analysis ?

hello gurus, background: - there are formal languages for expressing programming language valid lexicon and syntax - such representations (e.g. regular expression and context-free grammars) can be automatically compiled into lexicon/syntax analyzers for some programming language using some tools (e.g. LEX and YACC) questions: - are the...

CSS, nested divs & margins vs. padding

i totally understand the box model. this question is more about trying to pin down a semantic methodology regarding when to use margins and when to use padding. here is a typical example, first, in plain English: situation: we have a container div, inside of which there is a paragraph element. goal: to have a 12px space between the...

standard Xhtml- div vs li.

Hi All, I need ur suggestion in the following scenario. Lets say I have an UI something like Col1 Col2 A D B E C F Now to get this right now in my HTML I am using ..like <div class="col1"> <div>A</div> <div>B</div> .......... </div> <div class="col2"> <div>D</div> <div>E</div> .......... </div> But here I am ...

Infinitely Deep Recursive Children

I have a single-table with the following (relative) structure: foo_id, parent_foo_id, foo_name I would like to build an (effectively) infinite-depth recursive array with these entities, and consequently output them into a tree menu. Nodes with no "parent_foo_id" would be considered at the top of the heirerchy, while all successive n...

Semantically Correct HTML Checkbox lists

I've got an HTML checkbox list that I would like to display in the following format: Click all that apply: Title A Title B Option 1 [ ] [ ] Option 2 [ ] [ ] Option 3 [ ] [ ] I'm wondering what t...

make emacs semantic auto complete tip "always on"

Hello, I have just installed cedet (CVS version) and I am now playing with in emacs and my C++ source code. Regarding the auto complete, I can invoke the tool tip and the menu from their semantic-ia-complete-* commands. Does anyone know how I can make the auto complete tip appear automatically without my having to invoke a command(se...

What should happen when a generator function is assigned?

If I have a programming language with first class functions. What should the semantics be when a generator function is shared? For example: var f = function() { foreach (i in 0..42) yield i; } int a = f(); // 0 int b = f(); // 1 // Assigning the generator function var g = f; int c = g(); // ?? int d = f(); // ?? I can i...

Parallel Map (Generator) Operator

I am interested in defining a parallel map operator for my language. It transforms a list into a new list given an expression. It would have a syntax similar to a generator. Unlike generators in C# and Python, it would potentially be evaluated in parallel, if the compiler desires (e.g. there is an idle core, and the list is really big). ...

Aggrivated unexpected T_ELSE in small PHP function

Hello, I have a very aggrivated unexped T_ELSE on the last else in this function. function QueryPeople($stringQuery, $table, $max, $cmd) { $con = mysqli_connect("localhost","user","password", "host"); if ($cmd == "Option1") { $SearchSQL = "SELECT signature, firstname, birthdate FROM $table WHERE lower(signature) LIKE ?...

Set of books about Natural Language processing, Semantic Analysis and Data Mining.

So i´m starting to write my thesis of my master, next semester (should be done before june), i already have the theme, and i need to write the state of art till february. The main areas are Intelligent systems, Natural Language processing, Semantic Analysis and Data Mining. I am researching for the best books about Natural Language pro...

Using semantic MediaWiki for tabular data

Am I completely off-track to think about using Semantic MediaWiki to store (and organise, report on, etc.) 'tabular' data such as financial transactions or weather readings that would usually live in a spreadsheet or database? It seems that one would need a separate, tiny, page for each tuple; but then, that's by design and perhaps it's...

Tools available to do semantic analysis of text

I'm looking for code or a product or a service to do semantic analysis of text (sentences and or paragraphs) to categorize the text by general topic, e.g. Finance Entertainment Technology Business Art etc... ...

What are the benefits of using semantic HTML?

Hi, Are there some noticeable outcomes in terms of performance or other aspects to follow semantic HTML? Thanks ...