w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
CRC32b - is there a specification anywhere?
I have no idea where the "b" came from, but I have seen CRC32b refer to the normal CRC-32 used by PKZip, gzip, etc. and as defined in ITU-T V.42. You can find the description of that CRC and many others here.

Categories : Dotnet

Template Specification
your question is too vague, but i think you talk about smth like this? template <typename T> struct A { //... } template<B> struct A { //... } in this case you specify how should template struct behave its of templated of some specific type

Categories : C++

API specification for OpenStack
Openstack is opensource but is a pretty huge project with not just python code. I would recommend that you download the source code and explore it yourself. Once you have defined the modules you are curious about, you can even generate your own documentation using known tools. The easiest I know is: epydoc It will generate for you a class tree in a html or pdf format.

Categories : Python

Why is this autolayout specification not sufficient?
I would suspect the superview is not pinned to a size in interface builder. Autolayout constraints seem to solve everything simultaneously and an error message that looks like it relates to one view can just as easily relate to the other view in the relationship. What is - (NSArray *)constraintsAffectingLayoutForAxis:(UILayoutConstraintAxis)axis telling you?

Categories : Iphone

about javascript comment specification
The reason that the first part "appears" to not get executed, is that document.write replaces the entire contents of the document with the string you pass. As such, you're second call to document.write overrides the first. Additionally to that, the use of SGML comments (<!--) in javascript is an old, old, old school technique, that is no longer necessary for browsers. As others have stated, you can use C-like comments in Javascript - /* comment */ or // end-of-line comment.

Categories : Javascript

ASP.NET connectionstring does not conform to specification
Is it possible that you have a semicolon in your password? For example, I can reproduce your exception by doing this: new SqlConnection("Data Source=localhost;Initial Catalog=DBNAME;Integrated Security=false;User ID=DBUSERNAME;Password=DBPASSWOR;D;") But if I remove the semicolon from the password, it works.

Categories : C#

RSS 2 specification for item attributes
There is no limit for the size of the fields in the spec and besides that there is no real advantage of doing varchar(255) for the size of the columns. Why don't you just go with varchar(max)? Also for the GUID, depending on your db, there could be a more suitable data type.

Categories : Mysql

How would I configure my .htaccess to this specification?
You should deploy and configure Mod_Rewrite module to work with your Apache server. Then, add following lines to your .htaccess file: RewriteEngine on RewriteBase / RewriteRule ^view/(.+) /home.php?p=10&id=$1 [L]

Categories : PHP

Where can I get Java 8 language specification?
You can find it from here This also will help you

Categories : Java

Specification vs. Story vs. Scenario
The word "specification" is used in most BDD frameworks (e.g. RSpec, NSpec, SpecFlow) because these frameworks: "can be considered a domain-specific language (DSL) and resembles a natural language specification." (Quote taken from the RSpec wikipedia entry) Hence the word "specification" is not another word for story/scenario, it is a word which is bandied around when talking about BDD frameworks, when they should instead be saying "natural language specification".

Categories : C#

JDBC SQL:Where is the detailed specification?
You can download the JDBC 4.1 specification from http://download.oracle.com/otndocs/jcp/jdbc-4_1-mrel-spec/index.html but this only covers JDBC itself, not SQL. The specification is more a description of the interface; it does expect databases to support some level of the SQL standards, but don't expect to find more information than a reference to the SQL standard if it comes to the requirements to queries. You usually need to use the database specific SQL anyway, because even though there is a SQL standard, database vendors don't implement them to the letter. JDBC itself defines some escapes to bridge the gaps, but as far as I know, they are hardly ever used. Drivers also - usually - don't translate standard SQL to database specific SQL if the database doesn't support the standard SQL.

Categories : SQL

C# Language Specification ver 5.0 and List
You're not missing anything, System.Collections.Generic.List<T> doesn't have any Changed event. I think this is meant to be just an example, not the specification saying how the List<T> class should look like. (That wouldn't make much sense, the C# specification specifies only a tiny part of the library, certainly not any specific collection classes.) Also notice that the specification talks about some general List<T> class, not the specific System.Collections.Generic.List<T> class.

Categories : List

One to Many Persistence Specification not working
I got ShouldMapOrder to work with the following changes: var order = new Order{OrderId = 1}; new PersistenceSpecification<Order>(Session, new ItemComparer()) .CheckList(x => x.Items, new List<Item>() { new Item { Id = 1, Order = order } }) .VerifyTheMappings(order); Doing it this way allows you to set the backpointer in Item to the existing Order. In order to get this to work, I had to add a cascade to ItemMap: public class ItemMap : ClassMap<Item> { public ItemMap() { Id(x => x.Id).GeneratedBy.Assigned(); References(x => x.Order).Cascade.SaveUpdate(); } } and I had to give Order.Items a setter: public virtual IEnumerable<Item> Items { get { return items; } set { items = value.ToList(); } } This is parti

Categories : Dotnet

Execute code before and after specification
Okay, as mentioned in my comment, I actually had this same issue. I needed to test Unfiltered endpoints, and the best way for each spec was to startup an Unfiltered server with a single endpoint, run the spec and then shutdown the server. To accomplish that, I first defined a base specification similar to this: import org.specs2.mutable.Specification abstract class SpecificationBase extends Specification{ //Do setup work here step{ println("Doing setup work...") success } //Include the real spec from the derived class include(spec) //Do shutdown work here step{ println("Doing shutdown work...") success } /** * To be implemented in the derived class. Returns the real specification * @return Specification */ def spec:Specification } Ba

Categories : Scala

W3C Geolocation speed specification
horicontaly means: moving on the ground in any direction (changes in latitude / longitude) vertically means moving up into the air (changes in altitude) further horicontal error therefore means error related to 2d position (lat +lon) vertical error: eror in altitude.

Categories : HTML

C++ Namespace Specification Redundant or Useful?
For functions, I recommend avoiding namespace qualifications in general, unless needed to prevent an actual or potential ambiguity. This is especially valuable in generic (template) code, because namespace qualification suppresses argument-dependent lookup. Allowing the functions provided with the actual classes can lead to much better code, sometimes avoiding breakage. For example: namespace foo { template<typename T> struct Ctnr { Ctnr(); Ctnr( Ctnr const & ); Ctnr &operator=( Ctnr const & ); ~Ctnr(); // ... friend void swap( Ctnr<T> &, Ctnr<T> & ); // Does not throw. }; } namespace bar { template<typename T> void exchange( T &lhs, T &rhs ) { std::swap( lhs,

Categories : C++

Java Libraries specification
You can read the API specification for Java 7 here: http://docs.oracle.com/javase/7/docs/api/ For earlier versions: Java 6: http://docs.oracle.com/javase/6/docs/api/ Java 5: http://docs.oracle.com/javase/1.5.0/docs/api/ Java 1.4.2: http://docs.oracle.com/javase/1.4.2/docs/api/ And for up-coming Java 8, "subject to change": http://download.java.net/jdk8/docs/api/

Categories : Java

GridBagLayout weightx and weighty specification
Read the Swing tutorial on How to Use Grid Bag Layout. weightx/y are used to determine how extra space is allocated to components. If you you don't want the components to resize leave them at 0. If you want them to increase with the frame size set them to 1.

Categories : Java

Unresolved specs during Gem::Specification.reset:
I was seeing this issue by just running RSpec on its own. From what I understand, this means that you have more than one version of the listed gems installed on your system, and RSpec is unsure which to use. After uninstalling older version of the gems, the warnings went away. You can try... gem cleanup lumberjack ...or: gem list lumberjack gem uninstall If you're using Bundler, you can try bundle exec guard (or in my case bundle exec rspec).

Categories : Ruby

.NET Date variable specification & locale
No, that does not work in a country such as Canada where the standard is dd/MM/yyyy. The best way to globalize your application would be to use DateTime.ParseExact and/or DateTime.TryParseExact Dim tempdate As DateTime tempdate = DateTime.ParseExact("05/20/2013", "MM/dd/yyyy", Globalization.CultureInfo.InvariantCulture)

Categories : Vb.Net

Identity specification in sql server 2008
Do you mean: CREATE TABLE dbo.YourTable ( ID INT IDENTITY(1,1) NOT NULL, ....other columns here..... Just use the IDENTITY keyword - you can specify a seed (starting value) and an increment - typically, both are set to 1 (but they don't have to). For more details, see the MSDN SQL Server Books Online documentation for IDENTITY If you need to have a non-numeric column that sort of behaves like an IDENTITY, I'd suggest you use the above approach, and then define an extra column like this: CREATE TABLE dbo.YourTable ( ID INT IDENTITY(1,1) NOT NULL, IDwithPrefix AS 'ST' + RIGHT('0000' + CAST(ID AS VARCHAR(4)), 4) PERSISTED, ....other columns here..... That way, your ID column will automatically get values 1, 2, 3, 4, 5....... and the IDwithPrefix column will have ST0001, ST0002

Categories : Sql Server

JavaFX runlater specification and performance
I'm not 100% sure but everyone says "JavaFx 2 can handle it's threads independently"... I never made a big enough program to test that, but i am pretty sure JavaFx 2 can create and remove(application) threads if it needs more/less.

Categories : Performance

Proper xpath specification between two children within the same parent?
If you have access to XPath 2.0 functions you can use intersect to select all elements between the two: //hr[2]/following-sibling::node() intersect //hr[3]/preceding-sibling::node() If you only have access to XPath 1.0 functions, you can use this wonderful workaround to achieve the same result: //hr[2]/following-sibling::node()[ count(.| //hr[3]/preceding-sibling::node()) = count(//hr[3]/preceding-sibling::node()) ]

Categories : HTML

OleDbConnection and OleDbCommand - Invalid authorization specification
To read/write dbase files you can use the Microsoft JET OLEDB provider, with a connection string that looks like this one: Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:directory;Extended Properties=dBASE IV;User ID=Admin;Password= Note that Data Source is the folder where your dbase file is. Finally in your query the table name should be the file name without the .dbf extension, like this: INSERT INTO netpokl (Castka,Akce) values(@castka,@akce) Should you need this to work on a 64bit application you can use the Microsoft ACE OLEDB provider (Microsoft Access Database Engine 2010 Redistributable) Provider=Microsoft.ACE.OLEDB.12.0;Extended Properties=dBASE IV;Data Source=c:directory;

Categories : C#

elastic map reduce "keep alive" specification in the java api
You need to set withActionOnFailure to let the API know what to do when a step fails, and this has to be set on per step basis. You must be having withActionOnFailure("TERMINATE_JOB_FLOW") for your StepConfigs. Change them to withActionOnFailure("CANCEL_AND_WAIT"). Following is the full code to launch a cluster using Java API taken from here, just replacing the needful: AWSCredentials credentials = new BasicAWSCredentials(accessKey, secretKey); AmazonElasticMapReduceClient emr = new AmazonElasticMapReduceClient(credentials); StepFactory stepFactory = new StepFactory(); StepConfig enabledebugging = new StepConfig() .withName("Enable debugging") .withActionOnFailure("CANCEL_AND_WAIT") //here is the change .withHadoopJarStep(stepFactory.newEnabledebuggingSt

Categories : Misc

CSS border specification matter in content height
There are default margins in your p element that are collapsing with your article element. When you add a border to your article, it prevents that collapse from happening and causes it to contain the p element and its default margins. Your .9746589% padding is applied in both situations, but since you put it on .content it isn't actually affected by the margin collapse between its article and the p that's inside it. If you were to remove that as well as the border, though, then the margins would collapse across all elements and the green background would completely disappear. In other words, just like how your border is blocking margin collapse between article and p, your padding is also blocking margin collapse between .content and article and its contents. Lastly, margins only collapse

Categories : HTML

tomcat 7 taglib inconsistent specification version
Not sure if this helps but I came across this article about Tomcat 7 taglib declarations when trying to find an issue with a blackboard plugin. http://help.blackboard.com/en-us/Learn/9.1_SP_14/Administrator/010_Release_Notes/025_SP14_Release_Notes/Performance_and_Scalability/Tomcat_7 In Tomcat 7, in your web.xml file your tag libs should be wrapped in a < jsp-config > element.

Categories : Apache

The JSP specification requires that an attribute name is preceded by whitespace
You haven't really commented anything out there. That code will generate an HTML comment in the output whose content is given by processing the JSP tags. If you want to actually comment out broken code in a JSP you should use <%-- JSP comment tags --%>, whose content is completely ignored by the JSP parser and won't generate any output. The error message is correct, you need to add a space between the closing quote of the name attribute and the beginning of the id, but if you commented it out using <%-- instead of <!-- then you wouldn't get an error.

Categories : Xml

Generate Kernel Configuration from System Specification
The best available tool to do as you ask is built into the Linux kernel build system make localmodconfig localmodconfig will still ask you a lot of questions and you are still likely to be unhappy. Better is to stick with the configuration used by whatever distro you favor.

Categories : Linux

How to separate rows in a column based on a specification?
Make it a data.frame and then do this: mylabel <- gsub("[0-9]", "", my.df[[1]]) list.of.dfs <- split(my.df, mylabel) The way this works is mylabel will only retain the alphabetic identifiers in your first column after the gsub. Then split will break your data.frame into chunks based on those identifiers. Will give you a list of data.frames with all unique labels. You can choose the ones with 'rs' and 'CNV' names after that. $CNV V1 V2 3 CNV548726 0.3112315 4 CNV356212 0.3078721 6 CNV2095401 0.2979626 7 CNV4528251 0.2939100 $rs V1 V2 1 rs482519 0.3722219 2 rs12196956 0.3212364 5 rs4792617 0.3023402 8 rs9369426 0.2860793 9 rs31672 0.2790241 10 rs1323446 0.2778401

Categories : R

Different types of software requirements specification standards
You could definitely check RUP, they have plenty of templates and extensive specifications about this. Also, check templates like volere which are also extensively used. You could also include agile methodologies like XP or Scrum, but they don't use much documentation, sometimes no documentation at all. I don't know for sure if this fits here, but check out CMMI standard. It's more oriented to "how well" you are doing things, instead of "how" you are doing them.

Categories : Misc

Java Language Specification: meaning of notation |S|
I'm not able to provide better and less formal explanation that the doc for type erasure. In your case (Class casting) "If T is a class type, then either |S| <: |T|, or |T| <: |S|. Otherwise, a compile-time error occurs." means, that after type erasure a class cast is legal if the generic type arguments are in "class-subclass relationship". Simple example for that: static class Bar {} static class FooBar extends Bar {} public static void main(String[] args) { List<FooBar> foobarList = (List<FooBar>) newList(Bar.class); List<Bar> barList = (List<Bar>) newList(FooBar.class); System.out.println("No cast class exception :)"); } private static<T> List<?> newList(Class<T> clazz) { return new A

Categories : Java

Specification Testing with EF - The ObjectContext instance has been disposed
I figured out what the issue was. I was seeding my test database with this step: [BeforeFeature] public static void BeforeFeature() { MappingConfig.RegisterMappings(); Database.SetInitializer(new TestDatabaseInitializer()); } The context in my TestDatabaseInitializer must have been conflicting with the context I created in my scenario. Thanks for the comment Gert, it gave me the idea to take a closer look at what was going on in the rest of my scenario.

Categories : C#

Gem::Specification.executables does not match that is created by `bundle gem` command
I have this problem as well. While seemingly intuitive, it doesn't appear to work for me at all. However, looking at other gems on GitHub, it looks like you can just specify the gem itself and the default /bin directory will be used spec.executables = ['MyGem'] EDIT: Looking back at this, kevinrivers' answer is also valid. FYI Bundler does assume you're using git, so both answers work (amongst many more - in fact, after I posted this answer I soon dug more into how gemspecs work, especially related to the inclusion of files, and I wrote a lot about it, if you're interested - http://chrisarcand.com/using-git-in-your-gemspec/).

Categories : Ruby

Why C++14 Generic lambdas require auto in parameters specification?
The problem is that you are also allowed to leave out the parameter's name. If the compiler sees (a,b) and a and b are also valid types, what should that mean? (a /*dummy_a*/, b /*dummy_b*/) or (auto a, auto b)? With having to type auto explicitly, it is no longer ambiguous.

Categories : C++

Validator skipped when input is removed in client – is this as per JSF specification?
This is as per the specification. Here's an extract of relevance from UIInput#validate() javadoc: Retrieve the submitted value with getSubmittedValue(). If this returns null, exit without further processing. (This indicates that no value was submitted for this component.) An empty input will send an empty string, not null. A complete absence of the input will send null, not empty string. Whether that is harmful or not depends on the business logic. A decently designed model (business logic and/or data model) which doesn't consider null as expected case would cause a null pointer exception elsewhere, or a SQL constraint violation (NOT NULL), which will usually end up in a HTTP 500 error response. But if the model actually considers null as an expected case, then it's likely a fault i

Categories : Validation

How to set Identity Specification YES in 2 columns in a table in SQL Server 2008
It seems you are having some table design issues. Why would you like to have two Identity columns? As stated in the comments, the values will always be either the same or be computable from the original identity specification: create table MyTable ( Id int identity(1,1) not null primary key, CatId as Id, -- computed column MyField nvarchar(100) null ) Yields: Id CatId MyField 1 1 A 2 2 B 3 3 C 4 4 D 5 5 E Now if we would like to have some different value for CatId: create table MyTable ( Id int identity(1,1) not null primary key, CatId as Id * 3, -- some different value MyField nvarchar(100) null ) We would get: Id CatId MyField 1 3 A 2 6 B 3 9 C 4 12 D 5 15 E Either way

Categories : C#

In what authorative specification is the onChange event exhaustively defined?
It's briefly mentioned in the Intrinsic events section of the W3C 4.01 specification: "The onchange event occurs when a control loses the input focus and its value has been modified since gaining focus". It's also mentioned a little more extensively on MSDN: "This event is fired when the contents are committed and not while the value is changing. For example, on a text box, this event is not fired while the user is typing, but rather when the user commits the change by leaving the text box that has focus. In addition, this event is executed before the code specified by onblur when the control is also losing the focus." Finally, on the MDN: Depending on the kind of the form element being changed and the way the user interacts with the element, the change event

Categories : HTML

Message: ORA-04079: invalid trigger specification in eclipse
you need to insert a blank space or after each line. Example: ResultSet rs1 = stmt.executeQuery("CREATE OR REPLACE TRIGGER test_trigger123 "+ "BEFORE INSERT ON RESULTS "+ "REFERENCING NEW AS NEW "+ "FOR EACH ROW "+ "BEGIN "+ "SELECT Pd_seq.nextval INTO :NEW.PT_ID FROM dual; "+ "END; "+ " /");

Categories : Java

Attaching Word Document as an Attachment - Path Specification ASP.NET MVC 3
Attachment expects an absolute path. You can convert your virtual path to an absolute path with var absolutePath = Server.MapPath("~/Attachments/worddocument.doc") And attach it with Attachments.Add(new Attachment(absolutePath, MediaTypeNames.Application.Octet)); If you want to check if the file in the virtual directory exists, use if (File.Exists(absolutePath)) ...

Categories : Asp Net Mvc

© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.