hey guys,
i;ve tried wordnet lemmatizer, but i found that some common words like 'studying' or 'waiting' are not processed appropriately.
Am i missing something?
The first thing that comes to my mind is to do a bunch of \t's, but that would cause words to be misaligned if any word is longer than any other word by a few characters.
For example, I would like to have something like:
Name Last Name Middle initial
Bob Jones M
Joe ReallyLongLastName T
Instead, by including only "\t"'s in my cout statement I can only manage to get
Name Last Name Middle initial
Bob Jones M
Joe ReallyLongLastName T
or
Name Last Name Middle initial
Bob Jones M
Joe ReallyLongLastName T
What else would I need to do?
Hi,
does Entity Framework have a caching mechanism like DataSet/DataTables have?
In other words if you start using EF is it really just a way to easily get data in/out of the database without providing an additional caching layer like DataSet/DataTables did where you have an in-memory representation (on-line/off-line) and which at some point you could say to "persist all changes to database"
I would like to mimic the Run command in Windows in my program. In other words, I would like to give the user the ability to "run" an arbitrary piece of text exactly as would happen if they typed it into the run box.
While System.Diagnostics.Process.Start() gets me close, I can't seem to get certain things like environment variables such as %AppData% working. I just keep getting the message "Windows cannot find '%AppData%'..."
If you supply a list of strings to an edit control and set the autocomplete mode and source then you automatically get autocomplete functionality. My question is can I get the same functionality in .NET somewhere without a control. In other words I want something like:
string[] ProgressivePartialMatch( string[] Strings, string MatchText )
and so I want the strings back that would have showed up in the autocomplete, so to speak.
Someone on the Herding Code podcast No. 68, http://herdingcode.com/?p=231, stated that IOC containers had no place with Python or Javascript, or words to that effect. I'm assuming this is conventional wisdom and that it applies to all dynamic languages. Why? What is it about dynamic languages that makes IOC containers unnecessary?
If a friend of yours wanted to get into development and didn't have any experience, what would you suggest? What language/resources would you suggest to break into programming? With all of the technologies out right now and buzz words where should one even start explaining this stuff to people?
Do .Net components that were compiled against the .Net Framework 3.5 run on a system that has only .Net Framework 4.0 installed?
Or in other words does the .Net Framwork 4.0 Installer include the .Net Framework 3.5?
Is there a way to prevent empty elements of the form <myElement/> being used in your xml? In other words, can you specify in your xsd that <myElement/> is invalid?
Using nillable="false" doesn't work, nor does minOccurs="1" - both of those allow
<myElement/>.
I have a custom model binder that uses data from session, tempdata, and form collection (hypothetically, of course!). When testing my model binder, need to create a ModelBindingContext with a ValueProvider. Trouble is, I can't see how I can have one ValueProvider that serves multiple value provider types. Any words of wisdom?
ValidModelBindingContext = new ModelBindingContext
{
ModelName = "SomeModel",
ValueProvider = ValidFormValueCollection
};
I want to avoid an item being removed from cache when expire in SOME OCASIONS
If i understand how CacheItemUpdateCallback works, i need to asign to expensiveObject the new object, in my case: the old one.
But i cant access the item with HttpContext.Current.Cache[key],
my question: how to access it? or in other words, How avoid this item being removed.?
I have the following python code:
try:
pr.update()
except ConfigurationException as e:
returnString=e.line+' '+e.errormsg
This works under python 2.6, but the "as e" syntax fails under previous versions. How can I resolved this? Or in other words, how do I catch user-defined exceptions (and use their instance variables) under python 2.6. Thank you!
Suppose I have a class in my package org.jake and it has a method with default access (no modifier). Then the method is visible inside the package only.
However, when someone receives the jar of my framework, what is to stop them from writing a new class, declaring its package as org.jake, and using my supposedly invisible method?
In other words, is there anything I can do to prevent them from doing that?
After creating a SQL Server 2008 database, I made a Linq-to-SQL schema in Visual Studio. Next, in the .dbml visual editor (in Visual Studio), I added PK-to-FK and PK-to-PK associations to the schema.
How do I copy those associations that I created in Visual Studio over to the database? In other words, how do I sync with the DB?
In Firefox, if a user enters words which have spelling mistakes, the browser puts a line below the word indicating a spelling mistake. How can the same be accomplished in IE ? Any ideas ?
How to match the string Net-----Amount (or here between Net and Amount there can be any number of space) with net amount ?
Consider ----- as space because I could not keep the space between these two words in the editor.
I'm trying to use a regex as an input, and from there generate all the possible values that the regex would match.
So, for example, if the regex is "three-letter words starting with a, and ending in c," then the code would generate a list with the values [aac, abc, acc, adc, a1c....].
Is there an easy way to do this? I'm using python.
Suppose I have a class in my package org.jake and it has a method with default access (no modifier). Then the method is visible inside the package only.
However, when someone receives the jar of my framework, what is to stop them from writing a new class, declaring its package as org.jake, and using my supposedly invisible method?
In other words, is there anything I can do to prevent them from doing that?
Hi! I have a HashMap where the key is a word and the value is a number of occurrences of that string in a text. Now I'd like to reduce this HashMap to only 15 most used words (with greatest numbers of occurrences). Do you have any idea to do this efficiently?
I need an script for generating crossword game. I have a list of 8 words for which I wnat to generate a crossword game, let's say for 15 column and 15 row.
I am not getting the concept of this problem. How to generate this using PHP ?? Can anyone tell me how to do that ??
e.g
string = "This is a re@lly long long,long! sentence";
becomes
string = "This is a long sentence";
Basically so all non-alphanumeric words or removed keeping spaces in tacked
Any ideas?
Hey there,
I'm trying to find a free downloadable dictionary (or Corpus might be the better word) which I can import into MySQL. I need to words to have the type (noun, verb, adjective) associated with them. Any tips on where I can find one? I found one several years ago that worked nicely, but I no longer have it around.
Thanks!
Chris
Hi,
I want a regex pattern to find all the words of this format [xyzblab23la].
For example if the text has something like the following,
Lorem Ipsum dolor[32a] ameit[34]
I should be able to find the [32a] and [34]. Please tell me what is the regex for this pattern?
Hi,
I was wondering what will the complexity of the algorithm that is used to find the smallest snippet that contains all the search key words.
Please explain the complexity, if non-trivial.
Thanks
Bala
I need my regexp to match, all the highlighted words, in order, following:
Fri/Feb/10 - *Nesta* manh\303\203\302\243,* @*anestesya *entrou* \303\240s 08:18AM
Fri/Feb/10 - *Nesta* tarde,* @*pernas *saiu* \303\240s 08:18AM
I was trying something like: /[?=Nesta.?=@.?=(entrou|saiu)]/
So I don't care what is in between as long as it has: ' Nesta ' AND ' @' AND ' entrou ' OR ' saiu '