w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
SQL Server 2008 linked server connection string setup
exec sp_addlinkedserver @server='servername'; exec sp_addlinkedsrvlogin @rmtsrvname='servername',@useself=false, @rmtuser='sa', @rmtpassword='Password'; if sql server is a named instance then servernameinstancename

Categories : SQL

Can you setup an azure server to sync with a outside NTP server?
here are the steps I used reg add HKLMSYSTEMCurrentControlSetServicesW32TimeTimeProvidersVMICTimeProvider /v Enabled /t reg_dword /d 0 w32tm /config /syncfromflags:manual /manualpeerlist:0.pool.ntp.org,1.pool.ntp.org,2.pool.ntp.org,3.pool.ntp.org net stop w32time & net start w32time w32tm /resync /force w32tm /query /source

Categories : Azure

Setup a git server on a windows
I believe a combination of gitolite and TortoiseGit for your clients might do the job. Here is a blog post that documents this process reasonably well: http://therightstuff.de/CommentView,guid,b969ea4d-8d2c-42af-9806-de3631f4df68.aspx

Categories : Windows

OSX Local Server Setup
Easiest is to install passenger and use passenger preference pane to configure it. http://www.fngtps.com/passenger-preference-pane

Categories : Ruby On Rails

IIS Local Server Setup
what OS/IIS version are you running? In any case point the "Default Web Site" to the root of your web project and make sure it's bound to port 80. You should be able to access it by "http://[machinename]" or "http://[ipaddress]". Make sure your devices are connected to your LAN. I've noticed that Android will not resolve the machine name but ip address should work.

Categories : Asp Net

How to setup a mail server?
Install and configure an SMTP server. SMTP servers can usually be configured quite extensively, what to do with mails that should be deliverd locally. One such option would be to deliver the mail locally by invoking a ruby script. Popular SMTP servers are postfix, courier and qmail. The details about how to setup the mail server depends on which one you use.

Categories : Ruby

What is an appropriate location to setup a Git repo on an OSX server?
Well, you don't want the root user to own the directories, so I think you're correct in your intuition that a 'git' user is correct, and not actually hackey at all. This directory will have lax permissions anyway, so your other allowed users can push changes to the repository. So a specific user: 1) Let's you easily keep everything related to the repo in a clear, "namespaced" location. 2) Since you're using OSX (why not Ubuntu, by the way? it's a bit more set up to do this out of the box), you should just live with its idiosyncrasies and use the Users folder, inside that you can put a "projects" or "source" or "repository" folder, whatever suits your fancy. Just 2 cents, this will be slightly more challenging on OSX to get all set up, Apple's UNIX setup isn't entirely straightforward i

Categories : Osx

How to setup Svn client for a remote server
I would recommend creating a free account with private SVN repository at Unfuddle. This will give you a remote SVN repository (server), which you will need to connect to from your shared hosting "client". You will then likely want to setup your local development PC with an SVN client, where you will make changes, push them to the remote repository on Unfuddle, then pull them down to the shared hosting account to see the changes appear on your website. Then study this beginners guide to using SVN with Dreamweaver.

Categories : Svn

Simple Python server setup
Python is for writing programs in general, not only web-sites. SimpleHTTPServer is really just a trivial HTTP server, it serves files. It doesn't try to interpret code. If you want to do web-development with Python, you should be using a web framework. web.py is a good choice, you can check its tutorial. Another option is Django, which also has a brilliant tutorial. Both of them have simple development servers built in, so you'll be able to start experimenting easily.

Categories : Python

How to setup pngquant to Linux server?
You should connect to your server via SSH, then download the sources (using wget) : wget https://github.com/pornel/pngquant/tarball/master Then extract the downloaded tarball : tar xzf master Then cd to whatever directory that created : cd ... According to their documentation, you just need to make it : make If that doesn't output any errors, you can install it system-wide by running make install as superuser (root) : sudo make install Or, if sudo isn't available in your distribution : su root make install exit And there you have it.

Categories : PHP

How-to setup a traffic control server
Ok, finally it was quite easy. Install brctl and etherape, then: brctl addbr br0 brctl stp br0 off brctl addif br0 eth0 brctl addif br0 eth1 echo 1 > /proc/sys/net/ipv4/ip_forward ifconfig eth0 up ifconfig eth1 up ifconfig br0 up service network restart ifconfig br0 XX.YY.ZZ.AA That is a temporal configuration. If you reboot you have to re-do it. Here is a way to make it persistent: http://www.tldp.org/HOWTO/Ethernet-Bridge-netfilter-HOWTO.html#toc3.3 Finally, (installing if you are in a Windows Box, Xming and Putty and) connecting as root to XX.YY.ZZ.AA with X11 redirection, execute etherape and you will have you remote traffic control. To make it easier, I will recommend to add the filter: ip and not ((src net XX.YY.ZZ.AA) or dst net XX.YY.ZZ.AA) To avoid the X11 traffic between the

Categories : Networking

Test and Production server setup with git
Have a bare repository on your server as a storage for production code, and setup a second non-bare repository somewhere near it which will pull from the bare one for testing. Dont' try to work against git. The idea is that if you are using a repository to actually write code in it, then you shouldn't push to it. So, first you create a repo for your code: $ cd /path/to/dir/with/dev/repo $ git init --bare This is the repo you'll use as a central storage of your dev code, this one will be visible from the outside via http or whatever. You configure it as “dev” (or “origin”) remote in your working repos. So, again, the repo you just configure is a push/pull-only repo, you don't actually do work in it: you write code in its clones and then push your changes. Even if you happen

Categories : GIT

Send XML data from server to client in GWT RF setup
RequestFactory is a special transport for a case when you work with some ORM (like Hibernate). In you case you work with webservice, not ORM. So you may some another remote call technique, for example GWT-RPC. Just prepare a RPC service with a method which return your XML as string. See this page for more details about how to make RPC call. EDIT. As pointed by @Andrea Boscolo nothing stops you from using RequestFactory in this case too (see his comment)

Categories : Xml

How to setup replication on apache directory server
There was some bug in apacheds 2.0 - M15 Version regarding replication. That bug has been rectified already and the fix will be in M16. I built 2 separate instances from apacheds svn trunk and built the installers and ran 2 separate instances. Added following settings/config on the Provider/Master (Running on Port 10389) - dn: ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config changetype: modify add: ads-replReqHandler ads-replReqHandler: org.apache.directory.server.ldap.replication.provider.SyncReplRequestHandler Added following config to the consumer/slave instance (Running on 11389) - dn: ads-replConsumerId=1,ou=replConsumers,ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config changetype: add ads-replRefreshNPersist: TRUE

Categories : Apache

Setup mod_proxy on apache http server
So it took some time but I figured out the way to do it. There is one more module which needs to be loaded. This is what the httpd.conf looks like LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so <Directory /> AllowOverride none Require all denied </Directory> ProxyPass /ROOT http://localhost:8080/ROOT ProxyPassReverse /ROOT http://localhost:8080/ROOT This works for sure. :)

Categories : Apache

MongoDB setup feedback on Windows server
1) Backup can be taken from either primary or secondary, and it is recommended to be taken from some secondary ( or may be a backup secondary server ) 2) Yes. But if you shutdown primary, your application should handle those exceptions ( for write operations because they will fail, till the time new primary is selected ) 3) A general ( username, password ) based authentication you can do. mongo2.4 has new roles for authentication. You can choose to have ssl based authentication. Between the mongodb server communication a keyFile based authentication is there

Categories : C#

How to setup GIT server on Linux Container in Debian
You may want to read this HowTo of setting up GIT server on Debian

Categories : GIT

How to setup nginx for roundcube in ispconfig server?
SOLVED: same configuration for squirrelmail works :-) location /roundcube { root /usr/share/; index index.php index.html index.htm; location ~ ^/roundcube/(.+.php)$ { try_files $uri =404; root /usr/share/; fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_param SCRIPT_NAME $fastcgi_script_name; fastcgi_param REQUEST_URI $r

Categories : Linux

How to setup a git or svn repository on a local server/PC on Windows?
Set up Apache to serve your webpages and put your bare git repository in the DocumentRoot, e.g. one created with git init --bare. If you need further assistance, do leave a comment.

Categories : GIT

how to setup mpeg dash server using apache?
Just put the MPD and the dash segments into the apache htdocs folder. If you MPD has a BaseURL, modify it to the public domain/directury, that's all. You can see the structure at this Dataset (FTP and HTTP access): http://www-itec.uni-klu.ac.at/dash/?page_id=207

Categories : Apache

How install custom wordpress setup on openshift server
Thank you for posting to our forums as well. See https://www.openshift.com/forums/openshift/how-install-custom-wordpress-setup-on-openshift-server

Categories : Wordpress

Setup a git bare repo on a windows apache server
At least try it without the double-quotes: git clone http://ip-addr/gitproject.git And if it still hangs, check the log of your Apache server, to see if it is contacted at all.

Categories : Windows

Smallest server setup for Raspberry Pi - scalability not important
Don't use use Webrick in production environments. It lacks support for handling concurrent requests and is optimized for development. Adding a fully blown webserver like Apache would not help you to reduce the memory. I recommend to use Thin in your scenario. It's a fast and lightweight webserver written in Ruby.

Categories : Ruby On Rails

How to setup a private dedicated Node.js Ubuntu Server?
what do i need to install to properly run node.js apps on my network on a dedicated ubuntu server? You just need to install nodejs. nodejs can run on any port, so you don't need Apache or anything else. how do i install the latest nodejs,npm,and the init files on ubuntu server Try to follow the steps outlined in this guide: http://howtonode.org/how-to-install-nodejs . Use the instructions for Ubuntu. when i reboot the app starts automatically every time One way to do this is to write a small script that will run on boot. The script would contain the instruction: nodejs /path/to/app/app.js Check out this SO answer on how to run a script on boot: Files and scripts that execute on boot

Categories : Node Js

server side of Backbone urlRoot setup with Laravel
You should use : Route::controller('users', 'UserController'); and public function getCreate() {} see this http://laravel.com/docs/controllers#restful-controllers

Categories : PHP

setup git server/web with lighttpd: gives ...git-upload-pack not found
Sometimes it's a git executable path problem. Solutions might be found at this question. Also, if you have access to the lighttpd server log, check the error.log and verify that the url is correct. If the server conf uses redirects, then the git repos must also be accessed using the correct, aliased names. This is a suggestion from answers to this question. This topic is also handled in this question. This github info webpage points out that version differences of git between server (as used by the http server) and your client can cause such an issue. This webpage describes how to upgrade git to the latest stable version on an ubuntu server (useful if you're using an LTS). Sitaram has added some documentation on how to set this up correctly here. I have a similar problem with an apache

Categories : Misc

sql server 2012 mirroring setup after multiple backups
It's because of the log chain, mirroring is kind of like restoring transaction log backups to the other server but automatically, for it to work, you need an unbroken log chain from a full backup to the last t-log backup, so the log chain will look like this (with nice sequential LSNs): Full-1->LogA->LogB->LogC->Full-2->LogD->LogE->LogF etc... So in the example above, if you restored the Full-1 backup, you can restore log backups A,B,C but not D,E,F. You can only restore those if you restore Full-2. In mirroring, you take a Full backup of the DB and then restore it, SQL server then looks at the Log Sequence Numbers (LSNs) and transfers transactions that aren't present in the restored mirror database, if you take another full backup, you break the chain of sequential LSNs. In your case

Categories : Sql Server

My Setup wizard disappears/Fails when i try to install new Sql server 2008 R2
I found this link when having the same problem: MSDN Blog

Categories : Sql Server

Run some unit-tests setup code locally, but not on the build server
I can't really imagine a scenario where you would perform some setup in one environment but not another - and the fact that there is no "proper" way within NUnit may indicate that the requirement is worth further consideration. Perhaps if you gave more detail about the context of what you need to set up then we could come up with a better solution, but here are 2 suggestions for setting the server up: Perform setup in a previous server build step before you run your unit tests. Use an environment variable in your SetUpFixture method to detect if you are running on the server. Ideally, this would be a custom environment variable that you configure yourself; if you want a quick-and-dirty, use e.g. JENKINS_URL or TEAMCITY_VERSION depending on your build server.

Categories : Dotnet

'in-proc' Session State mode on a multiple server setup?
When using InProc session state, the session will be stored locally on the server which served the request and therefore using the same Machine Key on both servers won't serve the purpose. This option is not fit for use in a web farm environment. One farm machine stores the session state but not the other. Subsequent web requests from the same user may not read the correct session state. Consider a very common scenario: Imagine that the web request is routed to farm machine A and the code invoked by the request relies on some parameters stored in the session. If the same user is then routed to machine B in the next web request which also relies on the session state then the results will be unpredictable. There is something called StickySessions which can tackle above scenario. But

Categories : Asp Net

Setup a
It looks like you are using the designer to setup your dropdown list data source. Here is how you could do it in code: protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { MyLinqToSqlDataContext db = new MyLinqToSqlDataContext(); var result = from c in db.Customers select g; customerName.DataSource = result.ToList(); customerName.DataTextField = "Name"; customerName.DataValueField = "ID"; customerName.DataBind(); ... } }

Categories : C#

do I need to setup a server in my computer in order to debug PHP code using Zend debugger ?
I want to test my php code before uploading it into a remote server In order to test your code, you write Automated Tests. That way you don't need to verify manually each time you change something. See unit, integration and system tests for PHP applications Then I tried to test it locally but I think I have to setup a server in my computer, am I right? No. Zend Debugger allows you to step your local code. And you can also execute the code by just running the script and check it's output. However, if you want to test by clicking through your application's UI, then you need a webserver. PHP has a built-in webserver though, which might be sufficient for that purpose. See Are there any php frameworks contain small webserver and rich console tools like RoR/Django? On a side note, Ec

Categories : PHP

Brutis and memcached FailOver
You have to use the CONSISTENT hashing: $memcache->setOption(Memcached::OPT_DISTRIBUTION, Memcached::DISTRIBUTION_CONSISTENT); I'm currently testing this, against php5-memcached:2.0.1 and libmemcached:1.0.8, but I have many issues testing the failover options. But, as a start, when setting the consistent hashing, after two hits on a dead server, all keys of the dead server are distributed on other servers.

Categories : PHP

Jenkins failover strategy
There is the CloudBees Jenkins Enterprise product http://jenkins-enterprise.cloudbees.com/docs/user-guide-bundle/ha-sect-failover.html which is able to deal with a master failure. That is a commercial product but if High Availability is a requirement then it could be worth the price.

Categories : Jenkins

RavenDB OrderBy
If you are using an index you need to set the sortoptions for the Order property. From http://ravendb.net/docs/client-api/querying/static-indexes/customizing-results-order Numerical values, on the other hand, are stored as text and therefore require the user to specify explicitly what is the number type used so a correct sorting mechanism is enforced. This is quite easily done, by declaring the required sorting setup in SortOptions in the index definition: Sort(x => x.Order, SortOptions.Int); The index outlined above will allow sorting by value on the user's age (1, 2, 3, 11, etc). If we wouldn't specify this option, it would have been sorted lexically (1, 11, 2, 3, etc). The default SortOptions value is String. Appropriate values available for all numeric types (Byte, Doub

Categories : C#

C# Read XML Hierarchy and use FailOver from the parent
No - XmlReader will read you XML as is, there's no concept of "annotations". If you were using System.Xml.Linq and not XmlReader, it'd be pretty easy: var defaultValue = (string)root.Element("parent").Element("kid-prop"); root.Element("parent").Element("kids") .Elements("kid") .Select(kid => kid.Elements("kid-prop").Any() ? (string)kid.Element("kid-prop") : defaultValue);

Categories : C#

Apache HBase Replication for Failover
Yes. HBase Replication can serve as a disaster recovery solution and can contribute to provide higher availability or fail over as well. I am assuming that you have already gone through this page which talks about HBase Replication.

Categories : Hadoop

Failover and KeepAlive in Spring Integration
IMO, you've got an answer from Gary Russell on your similar question: Reply-reponse pattern for primary-backup server.

Categories : Java

Rails cache fetch with failover
Didn't end up finding any good solutions, so ended up using this: # This helper is useful for caching a response from an API, where the API is unreliable # It will try to refresh the value every :expires_in seconds, but if the block throws an exception it will use the old value for up to :fail_in seconds before actually raising the exception def cache_with_failover key, options=nil key_fail = "#{key}_fail" options ||= {} options[:expires_in] ||= 15.seconds options[:fail_in] ||= 5.minutes val = Rails.cache.read key return val if val begin val = yield Rails.cache.write key, val, expires_in: options[:expires_in] Rails.cache.write key_fail, val, expires_in: options[:fail_in] return val rescue Exception => e val = Rails.cache.read

Categories : Ruby On Rails

Nservicebus 4 with azure and RavenDB
You have 2 options: Use RavenHQ and assign the connection string, see http://support.nservicebus.com/customer/portal/articles/859362-using-ravendb-in-nservicebus-%E2%80%93-connecting Use SqlServer as persistence

Categories : Azure



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