keywords

How do I extract keywords used in text?

How do I data mine a pile of text to get keywords by usage? ("Jacob Smith" or "fence") And is there a software to do this already? even semi-automatically, and if it can filter out simple words like "the", "and", "or", then I could get to the topics quicker. ...

5 ways to use the static keyword in Java

I just had an interview where one of the questions was something like "Describe 5 ways to use the static keyword in Java." I could only think of 2 on the spot, and afterwards I found 2 more. What is the 5th? Declaring a field belonging to a class as opposed to an instance of the class. Declaring a method that can be called on a class...

What is significance of static keyword in Java and in C++ ?

What is the importance of Static keyword in Java and in C++ and how it's functionality differ in both programming languages ? ...

Why can't I find the Var keyword in my Visual C# 2008 Studio?

I have this version: Microsoft Visual C# 2008 Express Edition Using this function: var X = new WebClient(); Var isn't recognized by my IDE. Thanks. ...

Values not showing in Access form combo box

Hi, I have an application in Access 2003 that I am working on. In it, I have an employee table, which is connected to two other tables. The two connected tables are tables that hold a few fixed KeyWords. In my main employee table, I just have the ID from the other table, rather than having the whole word. I wanted to make a form for e...

Variable name taken by keyword -- your examples?

Have there been any cases where you wanted to use a word as a variable/function name, but couldn't because it was a reserved word in your language? The ones that crop up over and over again for me are in and out in C#... Those would be great names for streams, but I'm always forced to use inn and outt instead. EDIT: I'm not asking ab...

Why self::function() and $self->variable or self::$variable even though there is $this->function() and $this->variable (PHP)?

I'm confused about these two keywords and the way to use them in PHP5. I think that "this" is used for instanced objects (not static) while "self" is referring to the object itself, not an instance of it and thus used within static objects. Right? Now, I believe that the correct use inside a class's static method to call another static ...

Filter by keyword jquery

Hello, I have been looking around on ways I can implement an input box on my webpage that will filter by keywords, much like the one buysellads.com uses here where you type in a keyword related to the site and it automatically filters the list. For example if you type 'photoshop' it will grab all site containg a tag with photoshop. I ...

Keyword search with SQL Server

Hi, I have a scenario where I need to search for cars by keywords using a single search field. The keywords can relate to any of the car's attributes for e.g. the make or the model or the body style. In the database there is a table named 'Car' with foreign keys referencing tables that represent models or makes or body style. What woul...

jquery append foreach to div

Hi all, I'm trying to create a dynamic tag cloud using jquery, I want it to pull the keywords from the page and then spit them out in a div, but am not sure how to go about it - I know how I could do it if it were php, but just not so good at jquery. I've created my variable "keywords" var keywords = jQuery("meta[name=keywords]").attr...

Search on multiple keywords with tweetsharp

Hi, I am trying to use Tweetsharp to do a search on twitter for specific keywords but I want to do a search on multiple keywords. The following code works but only for one keyword. Anyone would know how to do an "or" search with tweetsharp? ITwitterLeafNode searchQuery = FluentTwitter.CreateRequest() .Search().Query() ...

Any suggestions for a db schema for storing related keywords?

I have to store a set of related keywords inside a database. As of now, I am thinking of using the following: To store the keywords themselves: CREATE TABLE keywords( id int(11) AUTO_INCREMENT PRIMARY KEY, word VARCHAR(255) ); To store the relations (stores the ids of the related keywords): CREATE TABLE relatedkeywords( id ...

When to use static keyword before global variables?

Can someone explain when you're supposed to use the static keyword before global variables or constants defined in header files? For example, lets say I have a header file with the line: const float kGameSpriteWidth = 12.0f; Should this have static in front of const or not? What are some best practices for using static? Thanks! ...

Reserved keywords in Objective-C?

At the CocoaHeads Öresund meeting yesterday, peylow had constructed a great ObjC quiz. The competition was intense and three people were left with the same score when the final question was to be evaluated: How many reserved keywords does Objective-C add to C? Some spirited debate followed. All agreed that @interface, @implementation et...

CakePHP Model Name Uses PHP Reserved Word

Hey I have coded CakePHP for a number of things but never ran into this problem before surprisingly. Also I have thoroughly searched the net and CakePHP docs and have not found an answer to my question. My question is, I have a table for my model that should be named Class, obviously I cannot use that name though since it's a reserved PH...

Consolidating / Clustering Terms and phrases

Our application allows a user to enter company names that their organization works with. A current issue is that the way one user inputs the company name varies from user to user. We need to consolidate this data. Are there any proven approaches for tackling this problem? ...

Why aren't "and" and "or" operators in Python?

I wasn't aware of this, but apparently the and and or keywords aren't operators. They don't appear in the list of python operators. Just out of sheer curiosity, why is this? And if they aren't operators, what exactly are they? ...

C++ difference of keywords 'typename' and 'class' in templates

For templates I have seen both declarations: template < typename T > And: template < class T > What's the difference? And what exactly do those keywords mean in the following example (taken from the German Wikipedia article about templates)? template < template < typename, typename > class Container, typename Type > class Exampl...

PHP: Return string between two characters

I am wanting to use "keywords" within a large string. These keywords start and end using *my_keyword* and are user defined. How, within a large string, can I search and find what is between the two * characters and return each instance? The reason it might change it, that parts of the keywords can be user defined, such as *page_date_Y...

Git equivalent of subversion's $URL$ keyword expansion

I am considering migrating from subversion to git. One of the things we use subversion for our sysadmins to manage things like configuration files. To that end, we put $URL$ into each file, which expands to the file's location in the subversion tree. This lets the admins look at a file on some arbitrary host and figure out where in the t...