requirements

Whats the best way to determine the hardware requirements for an application

跟風遠走 提交于 2019-11-30 00:23:37
What methods do you use to determine what kind of hardware you need for a server? I often find it very hard to predict what kind of hardware you will need for a web based application with a database. Do you have any good methods or recommendations on how to best pick hardware to use? This is sort of the basic question of capacity planning. You start by defining a workload model , which describes what you expect to get in terms of traffic. This can be as simple as "I expect 20 page hits a minute maximum." Then you need to think about burst loads. Failing any other data, you can assume that

Javascript based spell-checkers for web applications

妖精的绣舞 提交于 2019-11-29 04:33:22
I have just received a requirement to implement spell checking on a web application that we are creating. I know all about FF, Chrome, IESpell, etc. but this one is the client's request. Given that the only way to implement something like this (real time) is with JavaScript libraries, I want to know has anyone tried any of the open source ones? Were they any good? In general, what types of good/bad things can be said about this approach? I guess going into this, I am against it as it is just more work for the end users's machine to do for little benefit. I guess what I mean by that is that it

Whats the best way to determine the hardware requirements for an application

元气小坏坏 提交于 2019-11-28 21:19:21
问题 What methods do you use to determine what kind of hardware you need for a server? I often find it very hard to predict what kind of hardware you will need for a web based application with a database. Do you have any good methods or recommendations on how to best pick hardware to use? 回答1: This is sort of the basic question of capacity planning. You start by defining a workload model , which describes what you expect to get in terms of traffic. This can be as simple as "I expect 20 page hits a

Programmatically install NLTK corpora / models, i.e. without the GUI downloader?

跟風遠走 提交于 2019-11-28 16:04:25
My project uses the NLTK. How can I list the project's corpus & model requirements so they can be automatically installed? I don't want to click through the nltk.download() GUI, installing packages one by one. Also, any way to freeze that same list of requirements (like pip freeze )? The NLTK site does list a command line interface for downloading packages and collections at the bottom of this page : http://www.nltk.org/data The command line usage varies by which version of Python you are using, but on my Python2.6 install I noticed I was missing the 'spanish_grammar' model and this worked

Force a class to override the .equals method

两盒软妹~` 提交于 2019-11-27 18:41:30
I have a bunch of class who implement a common interface : Command. And this bunch of class goes to a Map. To get the Map working correctly, I need to each class who implements Command to override the Object.equals(Object other) method. it's fine. But i whould like to force the overriding of equals. => Have a compilation error when something who implement command dont override equals. It's that possible ? Edit : BTW , i will also need to forcing the override of hashcode... No, you can't. What you can do, however, is use an abstract base class instead of an interface, and make equals() abstract

Javascript based spell-checkers for web applications

眉间皱痕 提交于 2019-11-27 18:35:49
问题 I have just received a requirement to implement spell checking on a web application that we are creating. I know all about FF, Chrome, IESpell, etc. but this one is the client's request. Given that the only way to implement something like this (real time) is with JavaScript libraries, I want to know has anyone tried any of the open source ones? Were they any good? In general, what types of good/bad things can be said about this approach? I guess going into this, I am against it as it is just

C# 7 .NET / CLR / Visual Studio version requirements

試著忘記壹切 提交于 2019-11-27 11:33:09
What are the minimum .NET framework and CLR version requirements for running C# 7? Also, do I need VS 2017 to compile C# 7? dmeglio You do NOT need to target .NET 4.6 and above, that is incorrect. To use Tuples, you need the System.ValueTuple NuGet package. Right on https://www.nuget.org/packages/System.ValueTuple/ you can see it says it supports 4.5 and above, and actually, it supports 4.0 and above. And if you want to get crazy, if you create your own System.ValueTuple class that does exactly what that package does, it will work back on .NET 3.5 and probably older too. For "Task-like" types,

What is the difference between functional and non functional requirement? [closed]

冷暖自知 提交于 2019-11-27 09:55:56
What is the difference between functional and non-functional requirements in the context of designing a software system? Give examples for each case. LBushkin A functional requirement describes what a software system should do, while non-functional requirements place constraints on how the system will do so. Let me elaborate. An example of a functional requirement would be: A system must send an email whenever a certain condition is met (e.g. an order is placed, a customer signs up, etc). A related non-functional requirement for the system may be: Emails should be sent with a latency of no

Programmatically install NLTK corpora / models, i.e. without the GUI downloader?

妖精的绣舞 提交于 2019-11-27 09:31:29
问题 My project uses the NLTK. How can I list the project's corpus & model requirements so they can be automatically installed? I don't want to click through the nltk.download() GUI, installing packages one by one. Also, any way to freeze that same list of requirements (like pip freeze )? 回答1: The NLTK site does list a command line interface for downloading packages and collections at the bottom of this page : http://www.nltk.org/data The command line usage varies by which version of Python you

Automatically create requirements.txt

余生长醉 提交于 2019-11-27 05:50:36
Sometimes I download the python source code from github and don't know how to install all the dependencies. If there is no requirements.txt file I have to create it by hands. The question is: Given the python source code directory is it possible to create requirements.txt automatically from the import section? If you use virtual environment, pip freeze > requirements.txt just fine. If not, pigar will be a good choice for you. By the way, I do not ensure it will work with 2.6. UPDATE : Pipenv or other tools is recommended for improving your development flow. You can use the following code to