semantic

How to explain the "Cascade" to CSS newbies?

I have trouble explaining to people who are new to CSS how the cascade works when using stylesheets. For whatever reason, newbies seem to naturally start out by just adding a class to every element. Take the code snippet from this question, for instance (no offense to the OP, overtherainbow). Doing this:      ul#nav { } and ul#nav li ...

Ontological databases for professions and skills

where can I find a semantic ontology database of professions and skills? I need a database that would properly depict relations such as marketing->online marketing->search engine marketing ...

Which html element is semantically most appropriate for displaying a group of emails?

Hello. I have a group of emails (I hesitate to use the word list, as it may prejudice you answers), which I want to display in a tabular manner with columns of Subject, Content, Date, Action (whose value may contain a Delete button, for example). Semantically speaking, would you use a list (<dl>, probably) or a <table> for this data? My...

Emacs source code navigation features.

Hi, I am working on a large c++ project. I am working with emacs for the last six months. I have try to configure CEDET so as to be able to navigate easily but i have found some problems. 1.- Sometimes semantic does not find some symbols and sometimes he don't ... i do not know clearly which files is semantic indexing. I have tried to...

Walter Bright's use of the word "redundancy"... or 'The heck does that mean?'

So I'm reading this interview with Walter Bright about the D language in Bitwise (http://www.bitwisemag.com/copy/programming/d/interview/d_programming_language.html), and I come across this really interesting quote about language parsing: From a theoretical perspective, however, being able to generate a good diagnostic requires that ...

We hear so much about "semantic html". Where/what are the algorithms reading our semantic html?

I keep making attempts at properly using HTML5 but I feel like it's still not even close to anything semantically valuable. My attempts: HTML5 Article node Architecture HTML5 Blog Page Architecture But there's such subtleties in every single tag! My question is, what specific software out there on the web is actually doing things l...

How to represent tally/five-bar-gate in unicode?

Are there Unicode characters to represent bundles (and partial bundles) of 5 in the style of the tally/five-bar-gate? If not, what would be the most standard/semantic/accessible solution to this problem? Things I've tried but don't like: Using the numbers 1-5 - easily confusing (3 bundles of 5 looks like 555) 1-4 pipes with strike-th...

semantic mediawiki property calculation

Hi, I installed the MediaWiki-extension Semantic MediaWiki recently. In this extension you can define properties. They are like categories for values. If I define two properties like this: [[StartYear::2000]] [[EndYear::2005]] Is it possible to make calculations based on these properties if I do a semantic search. For example: {{#a...

How do you query OWL Annotations

I am searching for the method/tool/syntax to query annotations in an RDF/OWL ontology. The query engines I have found search classes, properties, indivituals but I have not found one that will search based on the value for example DC:Description Can someone enlighten me, thank you ...

about the return expression

level: beginner the following code will print 'False' def function(x): if len(x) == 5: return True else: return x[0] == x[-1] print function('annb') why does the line "else: return x[0] == x[-1]" print False? i do understand what's happening but i'm having difficulties to put this into plain english...how can this behaviour ...

If my makefile rule changes directories, does it need to change back before finishing?

If I have a rule in my makefile like this: subdir/object: cd subdir && do_stuff_to_build_object Do I need to add && cd .. to the end of the rule, so that make ends up in the same directory at the end of running it as it started? Or does make run the rule in a subshell or otherwise shield itself from things like changing directorie...

How to compute similarity between two sentences (syntactical and semantical)

I'm supposed to take two sentences each time and compute if they are similar. By similar I mean, both syntactically and semantically. INPUT1: Obama signs the law. A new law is signed by Obama. INPUT2: A Bus is stopped here. A vehicle stops here. INPUT3: Fire in NY. NY is burnt down. ...

How to set up a password for openrdf workbench?

I have successfully installed Openrdf Repository (sesame 2.3.2) and Openrdf workbench however I do not know how to set up a user and a password to protect Openrdf workbench. I suppose that there is --somewhere -- a configuration file. Can somebody give me a hint how to create a user and set up a password for openrdf workbench? ...

text replacement & seo

I've been having a chat with a designer friend about text replacement and seo. I suspect I've got the wrong end of the stick, but I was under the impression that hiding content from users was bad practice. I'm aware that text is king and of separation of content & presentation. But to me this is a bit of a grey area. Is one considered be...

Labelling radio and checkbox elements

What's the most appropriate, semantically correct way to label checkbox and radio elements? Obviously, giving each one a unique id attribute is an option and using that in id a <label for="">, but this seems like it would break the semantic grouping. Putting unenclosed text next to the input element just seems...wrong. Edit: Additionall...

Best interactive prototyping tool for a Semantic Network based RIA

I have a project that is based on semantic networks (i.e. triple stores), reasoning / recommendation engines and interactive visualisation (not just displaying the network, but manipulating the visual elements of the displayed network). The delivery is to be as a Rich Internet Application, delivered through a web browser. At this stage...

Keep semantic and things mullable via css

Just working on some Spark view engine ASP.Net MVC code. Simplified example (but I've probably written same thing a few times over in similar style). Just doing of thinking.. <content name="main"> <ul> <for each="var userViewModel in ViewData.Model"> <li> <ul> <li>${userViewModel.Identity}</li...

Language syntax evolution and its semantics preservation.

Hello, I am investigating how a syntactic evolution of language affects its semantics. For instance, java's for loop syntax evolved in its version 5 to a compact one. Do the designers have to prove that even with this syntax the semantics are still preserved! May be this is a trivial example. So, in general, how can one prove that a lan...

most efficient way to getting variables/members

Which is the most semantically "correct" way to get/set variables when using OO PHP? From what I know, there are getters/setters, passing by reference and passing by value. Passing by value is slower than passing by reference, but passing by reference actually manipulates the memory of your variable. Assuming I would like to do this (...

How to make emacs Semantic use the TAG file generated by GTAGS

My emacs version is 23.2.1 Although I used the following to change the backend to use GTAGS. (require 'semantic/db-global) (semanticdb-enable-gnu-global-databases 'c-mode) (semanticdb-enable-gnu-global-databases 'c++-mode) I tried to generate a GTAGS file to be used as a backend of semantic. However, everytime when I open a C file, Seman...