w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Any way configure to configure visual studio mvc build views release mode
Are you specifically setting something to compile the views like the Razor Generator? (http://razorgenerator.codeplex.com/) If not views in MVC are not compiled.

Categories : Asp Net Mvc

TFS 2012 Configure Features Error - Unable to configure Planning Tools
Try this: Rename your User Story to "Product Backlog Item". Set the Initial State of you "Bug" to "Active". Try the Upgrade Rename your User Story Type back to "User Story". Remove the "Active" Initial State. Export your Common Process Config and add in your "Proposed" State into the Bug Configuration (see below). Import your Common Process Config. Example BugWorkItems <BugWorkItems category="Microsoft.BugCategory"> <States> <State type="Proposed" value="Proposed" /> <!-- more --> </States> </BugWorkItems>

Categories : Tfs

how to configure solr on my web?
First you secure your entire tomcat web admin gui by requiring authentication. First, create a new user in /etc/tomcat6/tomcat-users.xml <tomcat-users> <role rolename="admin"/> <role rolename="manager"/> <role rolename="proxyUsers"/> <user username="jorno" password="XXXXX" roles="admin,manager,proxyUsers"/> <user username="proxyUser" password="XXXXXX" roles="proxyUsers"/> </tomcat-users> Add the security constraint in the file /etc/tomcat6/web.xml <security-constraint> <web-resource-collection> <web-resource-name> Solr authenticated application </web-resource-name> <url-pattern>/*</url-pattern> <http-method>GET</http-method> <http-method>P

Categories : Solr

How to configure Hibernate with UCP
You will have to implement a ConnectionProvider to interface the OracleConnectionPool with Hibernate. Here is an example of such implementation: https://forum.hibernate.org/viewtopic.php?p=2452561.

Categories : Hibernate

Configure different $projectroot on one Git-Web
use different name based virtual host Sample config below ServerName www.cart.com DocumentRoot /usr/share/gitweb SetEnv GITWEB_CONFIG /home/gitmaster/gitweb.conf Options FollowSymLinks +ExecCGI AddHandler cgi-script .cgi AllowOverride AuthConfig

Categories : GIT

Can't configure JPA project
This is your problem: private Long id; id is a Long, which is null since it's not instantiated. When JPA is accessing it through the getId() method, it expects a long and not Long, so the accessor is trying to convert a null to a primitive value, hence a NullPointerException. Best solution is to either 1) change your id to be a long and add a @NotNull annotation to the getId() method. I hope this helps.

Categories : Java

How to configure endpoint
To add custom behaviors, you need to add your derived behavior as a behavior extension in config file and need to add a new Behavior extension type. Refer to this post - Custom Behavior won't register in my web.config public class ArrayInQueryStringBehaviorExtension : BehaviorExtensionElement { public override Type BehaviorType { get { return typeof(ArrayInQueryStringWebHttpBehavior); } } protected override object CreateBehavior() { return new ArrayInQueryStringWebHttpBehavior(); } } Config file (you need to specify your assembly name where I have marked square brackets below) <extensions> <behaviorExtensions> <add name=" ArrayInQueryStringWebHttpBehavior " type="[Namespace]. ArrayInQueryStringBehaviorExtension, [Assembly Name], [Assembly Version

Categories : Wcf

Configure AWS to allow for regular FTP
If you are using wordpress, you can actually enable direct install. The webserver user needs permission to write to wp-content. You may also need to enable a flag in your wp-config.php file in some cases as well. define('FS_METHOD', 'direct'); So if you want to enable FTP access, you need to first start by installing an FTP server. Depending on the AMI you used, you may or may not have one already installed. The only caveat is that due to how networking is configured in EC2, you can only configure the server to run in passive mode. This configuration varies by the ftp server you choose to use.

Categories : Amazon

Configure help output in Pry
You are in luck, as it is simply Ruby. Go ahead and type edit help and it will open up the Pry class for editing. Modify away! Of course, you are welcome to fork the project, make your changes, create the gem and install it on your system with your customization.

Categories : Ruby

How do I configure JpaPersistModule?
You can try to use two injectors: Initialize one injector with the modules that builds the properties Get the properties from the previous injector Use theese properties at the module where you initialize the JpaPersistModule

Categories : Java

How to configure ASP.NET site on IIS 7.0
Is your TradeSite db hosted in SQL Server? If so, open up the database in SQL Server Management Studio, select Security, and ensure that Network Service has access to at least read from the database.

Categories : Asp Net

Configure the XSL defination for both xml's
If you want to run this when condition for first XML where 'ClassificationIdScheme' element is absent, change your when condition with this one: <xsl:when test="./ClassificationIdScheme = 'FirstClassification' or not(./ClassificationIdScheme)"> <xsl:value-of select="./ClassificationId"/> </xsl:when>

Categories : Xml

How do I configure maven to use Tor?
Since tor is not an HTTP proxy (like you commonly find in corporate environments) you have to specify the Java networking properties for SOCKS proxies on the command line. See this answer to the question you linked to.

Categories : Maven

Using app.configure in express
It is optional and remain for legacy reason, according to the doc. In your example, the two piece of codes have no difference at all. http://expressjs.com/api.html#app.configure Update 2015: @IlanFrumer points out that app.configure is removed in Express 4.x. If you followed some outdated tutorials and wondering why it didn't work, You should remove app.configure(function(){ ... }. Like this: var express = require('express'); var app = express(); app.use(...); app.use(...); app.get('/', function (req, res) { ... });

Categories : Node Js

How to configure y-axis using seqmtplot in R?
You can control the length of the y axis with ylim=. For instance using the mvad.seq state sequences defined in How to configure y-axis using seqIplot in R? seqmtplot(mvad.seq, title="Mean time", ylim=c(0,30)) For controlling the tick marks, you need, as already explained in How to configure y-axis using seqIplot in R?, to Disable the plotting of the y-axis with yaxis=FALSE Disable the legend with withlegend=F. and you should then plot the legend separately. For example: par(mfrow=c(1,2)) seqmtplot(mvad.seq, title="Mean time", yaxis=F, ylim=c(0,30), withlegend=FALSE) axis(2, at=seq(from=0, to=30, by=5)) seqlegend(mvad.seq) The data plotted are accessible with seqmeant(mvad.seq)

Categories : R

Configure backspace key properly in vi
Try adding the following to your .vimrc file, which would correct the behavior of the backspace key: set backspace=2 Also, you can execute it inside vi/vim command mode: :set backspace=2 Additionally, here is more information and solutions if this doesn't work for you: http://vim.wikia.com/wiki/Backspace_and_delete_problems

Categories : Linux

Configure an App to use the proxy from settings
You are trying to use SNTP trough a proxy that only allows HTTP/HTTPS. Your alternative is to use some HTTP service providing the current time, which will be more than enough for most user level applications. Give http://www.timeapi.org/utc/now a try, however if you are publishing an application using this service you should check the terms and conditions.

Categories : Java

How to configure Django to Use mysql
You need to configure DATABASES setting in settings.py. Here's an example configuration: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'mydb', 'USER': 'myuser', 'PASSWORD': 'mypassword', 'HOST': '', 'PORT': '3306' } }

Categories : Mysql

Use different toolchain with configure on Linux
Building a cross compiler/binutils is often very hard, and it doesn't allow you to test your programs. Virtual machines are very slow and create a strong separation which make hard to share files between the host an the VM. The easiest solution is Qemu-User-static : system-calls and instructions are wrapped in user mode to the native kernel. Download or extract a rootfs. Copy it to a sub-folder of you real root directory. Copy qemu-user-(the name of your mips arch)-static to the root of the target directory. Correctly bind mount everything. Copy /etc/resolv.conf to /your_path_to_target/etc/resolv.conf Chroot to it by executing /bin/bash. Use the rootfs as if you were using a real mips based machine. Things became very simple : Many libraries aren't compiled because of things like h

Categories : Linux

How to configure a tty in python with pySerial?
Yes, you can even configure after declaring it ser = serial.Serial('/dev/ttyS1', 19200, timeout=1, parity=serial.PARITY_ODD) ser.parity = serial.PARITY_EVEN ser.bytesize = serial.SEVENBITS

Categories : Python

configure classpath in eclipse
Pick Build Path > Use as Source Folder an apply it to the appContext folder. I believe Eclipse adds an entry in the project's .classpath file, which is in your best interest.

Categories : Java

How to configure PhpRedis with PHP 5.5 / Ubuntu 12.0.4
After much trial and error I fixed this. Apparently I needed to compile the extension with phpize5 as opposed to phpize. Phpize5 compiles extensions with the newer API used by PHP 5.5. Since I now have two PHP installs on my workstation, I also had to specify which version I was compiling the extension for. This is the exact syntax I used: $ phpize5 ./configure --with-php-config=/opt/phpbrew/php/php-5.5.0beta2/bin/php-config

Categories : PHP

How to configure JMeter to always use a new SSL session id?
This works: https.use.cached.ssl.context=false is set in  user.properties AND use either HTTPClient 3.1 or 4 implementations for HTTP Request EDIT (after Kaelen comment): Setting the https.use.cached.ssl.context property to false (with HTTPClient 3.1/4) does work, the only tricky part is that the SSL session context only gets reset at the end of an iteration of the Thread Group. In the test plan the thread group did not iterate, there was an infinite loop inside the group that ran until a # of requests occurred. Because the thread group never iterated, the SSL context wasn't reset. In this case remove the Loop inside Thread Group and configure number of iterations in Thread Group.

Categories : Java

how to configure phabricator with a non root url?
This is not supported, and we do not plan to support it. The install documentation should probably make this more clear, although it is mentioned in the Configuration Guide: You can either install Phabricator on a subdomain (like phabricator.example.com) or an entire domain, but you can not install it in some subdirectory of an existing website. We don't plan to support this because support would be complex and have security implications, and only a tiny number of very small installs would benefit.

Categories : Apache

How to configure .htaccess for a subdomain?
".htaccess files provide a way to make configuration changes on a per-directory basis." http://httpd.apache.org/docs/2.2/howto/htaccess.html When a user fires a request in the browser, it walks all the way down: 1 server computer 2 apache service 3 (v)host configuration (via http.conf, which is preloaded into apache service) 4 directory configuration (which is loaded on demand) so, nope, you cannot configure vhosts in .htaccess, because it is out of reach if you have access to the http.conf or subsequent include files, just look at http://httpd.apache.org/docs/current/vhosts/examples.html

Categories : PHP

How to configure solr schema.xml
You can read about German processing in Solr here and here. The easiest way is to substitute solr.NGramTokenizerFactory with this code: <filter class="solr.SnowballPorterFilterFactory" language="German"/>

Categories : Solr

How to configure jooq-sbt-plugin
I don't know about this plugin, but this should work: import sbt._ import Keys._ import JOOQPlugin._ object SampleBuild extends Build { lazy val one = Project( id = "one", base = file("one"), settings = defaultSettings ++ jooqSettings ++ Seq( libraryDependencies ++= Dependencies.one, jooqOptions := Seq(...) ) ) .... }

Categories : SQL

engine.io / wss / SSL / HTTP : how to configure?
This question is essentially doubled with another. The answer is to choose port 443 for the HTTPS server. Not sure why yet. Something in the WebSocket implementation in SocketStream and / or Engine.io.

Categories : Node Js

How to configure settings.py for mongodb ?
If you are using pymongo directly, you can just leave out the entire DATABASES variable from settings.py. If you don't want to use pymongo directly, consider looking into mongoengine.

Categories : Python

Jackson configure own json
You can use Jackson attributes to set a @JsonIgnore for the list you don't want to show up in your POJO class. Edit:/ If that is to strict for you, you also can write a JsonFilter for the Object Mapper. In your case the SimpleBeanPropertyFilter should work just fine as factory.

Categories : Java

how to configure IIS for mvc4 application?
You will need to determine who is using port 80. I like using ActivePorts for this.

Categories : Asp Net Mvc

Right way to configure JPA to work with any JPA implementation
First of all JPA is a specification, which is being implemented by the ORM framework providers such as Hibernate, Eclipselink etc. To make your application compatible with any implementation of JPA, you should strictly follow JPA specifications, you should not be using any ORM vendor specific features, this will allow your application to work with any ORM framework, however you have to specify the dialect class by your self to interact with a particular database. One thing you can do here is write a properties file which will have all the database name with corrosponding dialect class for that particular database, you can ask user to choose the database and can fetch the related class name(Dialect class name) from the properties file. About using the same application as standalone and

Categories : Java

Configure django on sub directory
Not sure if you're still looking for an answer to this, but I finally got this working myself, so I thought I'd post it here. I was able to solve this using the article that Graham Dumpleton did at http://blog.dscpl.com.au/2012/10/requests-running-in-wrong-django.html In the end, my /etc/httpd/conf.d/django.conf file looked as follows LoadModule wsgi_module modules/mod_wsgi.so WSGIDaemonProcess mysite python-path=/var/www/html/mysite:/var/www/html/mysite/venv/lib/python2.7/site-packages WSGISocketPrefix run/wsgi WSGIScriptAlias /mysite /var/www/html/mysite/mysite_www/wsgi.py process-group=mysite Alias /static/ /var/www/html/static/ Alias /docs/ /var/www/html/mysite/docs/_build/html/ <Directory /var/www/html/mysite/mysite_www> <Files wsgi.py> Allow from all Order deny,allo

Categories : Django

How to dynamically configure ng-grid
It looks like you can do it if you assign columnDefs to a string of a property on the $scope and then change the array: http://plnkr.co/edit/wuob1M?p=preview; It is described in this issue raised on ng-grid. JS: var app = angular.module('myApp', ['ngGrid']); app.controller('MyCtrl', function($scope) { $scope.myData = [{name: "Moroni", age: 50}, {name: "Tiancum", age: 43}, {name: "Jacob", age: 27}, {name: "Nephi", age: 29}, {name: "Enos", age: 34}]; $scope.columnDefs1 = [{ field:"name", displayName: "NAME"}, { field:"age", displayName: "AGE"}]; $scope.columnDefs2 = [{ field:"name", displayName: "Name"}, { field:"age", di

Categories : Angularjs

how to configure the synonyms_path in elasticsearch
I don't know, if your problem is because you defined bad the synonyms for "bar". As you said you are pretty new I'm going to put an example similar to yours that works. I want to show how elasticsearch deal with synonyms at search time and at index time. Hope it helps. First thing create the synonym file: foo => foo bar, baz Now I create the index with the particular settings you are trying to test: curl -XPUT 'http://localhost:9200/test/' -d '{ "settings": { "index": { "analysis": { "analyzer": { "synonym": { "tokenizer": "whitespace", "filter": ["synonym"] } }, "filter" : { "synonym" : { "type" : "synonym", "synonyms_path" : "synonyms.txt" } }

Categories : Search

why am i seeing this libzdb configure error?
I've stumbled across this error while building one of my own programs when I wanted to use setjmp() and longjmp(). For some reason, the toolchain that resides in / on OS X is flawed, and the <setjmp.h> header file is missing the declarations and data types. To fix it, I had to download Xcode (damn!) and tell the compiler to look for the headers in the freshly installed MacOSX10.7.sdk (or 8) folder: clang -Wall -o foo foo.c -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk

Categories : C++

how to configure dependencies in maven pom.xml?
You need to either remove the dependencyManagement tags that surround dependencies or add the dependencies again but nested within the project tag, i.e. at the same level as dependencyManagement. dependencyManagement allows you to fix information about dependencies across a multi-module project - e.g. like version numbers - however you still need to provide a dependencies section alongside that so that Maven knows to include them. If your project is not a multi-module project I would be tempted to not use a dependencyManagement section at all.

Categories : Java

./Configure for non-boost ASIO
If you got it from a tarball, you should already have a configure script ready to be executed. If you checked from the repository, you probably need to run ./autogen.sh to generate the configure script for you, using configure.ac as input. The convention is: ./bootstrap: it invokes autoconf to process configure.ac and spit out configure. Often it also invokes automake to process all Makefile.am files and turn them into Makefile.in. Many moons ago, the name autogen.sh was used instead of bootstrap. And configure.in was used instead of configure.ac. ./configure: detects everything on the system and creates config.status, then executes it. ./config.status: processes all *.in files into versions without the .in suffix. That includes Makefile.in -> Makefile. You don't have to run this script

Categories : C++

Configure logging in Python
Wrap your code in a try:, except Exception: block and call logger.exception(): try: print a except Exception: logger.exception('Oops, something went wrong') You could add a raise statement to that to re-raise the caught exception. Demo: >>> import logging >>> logging.basicConfig() >>> logger = logging.getLogger() >>> def foo(): ... print a ... >>> def bar(i=0): ... if i < 3: ... bar(i + 1) ... else: ... foo() ... >>> def baz(): ... try: ... bar() ... except Exception: ... logger.exception('Oops, something went wrong') ... >>> def spam(): baz() ... >>> spam() ERROR:root:Oops, something went wrong Traceback (most recent call last): File "<stdin&g

Categories : Python

How to configure UglifyJS with Gradle?
Here is how the offical Gradle documentation describe it: configurations { uglifyjs } dependencies { uglifyjs files('uglifyjs-java-v1.0.jar') } task uglifyjs << { ant.taskdef(name: 'uglifyjs', classname: 'uglify.ant.UglifyTask', classpath: configurations.uglifyjs.asPath) ant.uglifyjs( ... UglifyJS Ant Task parameters ... ) } See http://www.gradle.org/docs/current/userguide/ant.html#N11416 HTH

Categories : Misc

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