w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Server is serving old versions of static files, but trimmed or padded to match length of new versions
In the end it turned out that this was probably being caused by VM issues. The code in question was located on a Windows drive, but was being served from within a Linux VM that was accessing the code via a shared directory. Remounting the share seemed to fix the problem (although not necessarily reliably).

Categories : Caching

Server fetching old versions of images?
If your server is caching the images, you need to add a random number or timestamp to the urls for the images. This will cause the client and server to think it is a different url, and will bypass the caching. in jquery you can do something like var rand = Math.floor(Math.random()*1000000); $('img').attr('src', 'image/path/image.jpg?'+rand); making the img selector as specific as you need to catch the frequently changing images If it is PHP generated code, you can add the random number on the server side

Categories : HTML

Problems running two versions of ThinkingSphinx on the same server
You should specify different ports for different environments: http://pat.github.io/thinking-sphinx/advanced_config.html

Categories : Ruby On Rails

Please tell me where to find early versions of thttpd web server
If you cannot find the download, try asking for it directly. They have a mailing list: There's a mailing list: thttpd@mail.acme.com (thttpd-request@mail.acme.com to subscribe, archived here)

Categories : Misc

C# asp.net Supporting multiple versions of a dll
Providing NCalc can use the later version of Antlr3.Runtime - ie there are no breaking changes you should be able to use a binding redirect to direct it to load the later version eg in the web.config file ass something like <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="NCalc" publicKeyToken="xxxxxxxxx" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-3.1.3.0" newVersion="3.3.1.0" /> </dependentAssembly> </assemblyBinding> </runtime> I don't think the 4th digit on the versions is used

Categories : C#

weddriver with multiple IE versions
Even with Grid, you can have only one instance of IE running on one machine. But you can always create threads and invoke multiple IEDriver instances. Using threads is not simple and in most cases leads to failures.

Categories : Internet Explorer

Multiple versions of a git project
I don't see any reason that branches wouldn't work for that. You should be able to have the common commits on a base branch, and create a branch off of that for each customer; whenever there are updates to the base branch they would be merged into the different customer branches. Just as you are currently doing with TFS. If you are going to be serving directly out of a git working tree, you would need to have a separate copy of the repository for each site being served to allow you to have a different branch checked out in each. But, you could still have all of the branches contained within a single repository on Github. Another option would be to use a single repository and working tree locally outside of the area handled by the web server and then use a deployment process to copy th

Categories : GIT

Install multiple versions of Qt on Mac OS X
You can build any Version of Qt on your own. This requires a compiler and a lots of time and cpu.. Have a look at the documentation. You then just have to put every version in another folder. To use another version just change the path in your environment settings. P.S. It is recommended to exclude things like examples, demos etc. This will reduce the build process to a minimum.

Categories : Osx

How to structure Python code to support multiple releases of MY project (i.e. not multiple versions of Python)
Your subprocess offers an API to the web sites. The trick is to make it so that API v2 of the subprocess code can handle calls from both v1 and v2 web sites. This is called backward compatibility. Also, it's nice if the v1 web site is not too picky about the data it receives and can for instance handle a v2 answer from the subprocess that has more information than it used to have in v1. This is called forward compatibility. Json and xml are good ways to achieve it, since you can add properties and attributes at will without harming the parsing of the old properties. So the solution, I think, does not lie in a python trick, but in careful design of the API of your subprocess such that the API will not break as the subprocess's functionality increases.

Categories : Python

Why are Ruby versions conflicting when launching Rails server?
You don’t have Rails installed in your rbenv Ruby installation, so it’s falling back to the rails system binary which is hardcoded to use the system Ruby. Simply gem install rails while using your rbenv Ruby installation.

Categories : Ruby

Bundling multiple versions of Jquery
I think you partly answered your question So you can have bundles.Add(new ScriptBundle("~/bundles/jquery_OLD").Include( "~/Scripts/jquery-1.9.*.js")); bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-2.*.js")); You just need to add two different bundle names one can be jquery old, second just jquery.

Categories : Jquery

NuGet dependencies and multiple DLL versions
I'm unable to test this but have had similar issues. In those cases I wrote something like this <dependentAssembly> <assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-6.6.5.0" newVersion="6.6.5.0" /> <codeBase version="6.6.5.0" href="binAssembly6.6.5MySql.Data.dll"/> <codeBase version="6.7.4.0" href="binMySql.Data.dll"/> </dependentAssembly> Biggest difference from your file is that I have the default mysql in the bin folder since it's picked up with reflection.

Categories : Mysql

What's the best way to target multiple versions of the .NET framework?
You will at least need one VisualStudio Solution with 2 projects (one for .net 4 and one for .net 4.5). Add all codefiles to the .net 4-project and in the other project you add the code files as link (use "Add Existing Item..."-Dialog and chose Add as link) Now you add all codes and classes for .NET 4.5 to your 4.5-project. Additionally you should define your own compiler switches (conditional compilation symbols) to your projects. Like NET4 for your .net 4-project and NET4.5 to your .net 4.5-project) You set the switches in the project settings under Build->General->Conditional Compilation Switches In your code you can use the switches as follows to generate code for .NET 4 or .NET 4.5 #if NET4 // code only for .NET 4 #endif // code for all framework versions. #if NET45 // c

Categories : C#

Multiple, concurrent Websphere versions
After playing with the project settings for the last few days, I managed to distribute the EAR to both WAS6.1 and WAS7. I can't say for certain what it was precisely that got everything working but I know one main thing was to have the Target Runtime set to both WAS6.1 and WAS7. I did seem to have some problems where some of the projects had been changed to work with WAS7 and didn't show any problems in build targeting both runtimes until I ran it on WAS6.1. Then some annotation problems cropped up when I removed WAS7 as a target runtime. One annotation problem I encountered was that, because WAS6.1 runs on java 1.5, I had errors caused by some @Override annotations on a class which only implemented an interface... so either way I'm glad I found that. Apparently, java 1.6 doesn't care and

Categories : Java

Multiple Versions of Wordpress on Same Webserver
I guess that either you don't know what you are doing or you FTP client is cheating on you :). If you have a separate directory for each web site (running wordpress or not) together with separate databases for each website then you can run multiple websites using different wordpress versions without any problems. The only problems you can encounter is that you would need to upgrade you php and/or mysql or other libraries on your LAMP server for new wordpress software to be run, thats normally back-compatible and shouldn't affect your older wordpress installations but its always good to check before an upgrade.

Categories : Wordpress

Loading multiple versions of DLLs
Edit: If the intermediate DLL is a .Net Assembly, you can use the method mentioned here to specify where to look for your intermediate DLL before you call any method that uses the intermediate DLL, without having to change your existing code. then you must not directly reference the DLL in your C# project, because .Net Assemblies are discovered and loaded before your Main method is even called. Instead, you must dynamically load the intermediate DLL using AppDomain or other methods, then use the library via reflection, or by using dynamic objects. Apparently, this would make programming very cumbersome. However, there is an alternative method. You can write a launcher program, that loads your original application (you can load .exe files as libraries), and invokes the Main method of yo

Categories : C#

How to include both versions of SQL Server CE 4.0 Runtime in Install Shield wizard
You could create a single bundled installer, that installs the correct package based on the machine architecture. To do this is quite easy using Burn from Wix, the following SO thread has an example. After that you can create a single prerequisite file that installs the bundle. The installation of the corespondent SQL Server CE prerequisite will be handled automatically by the bundle, so you will separate this logic from the main installer.

Categories : C#

What is the best way to publish multiple versions of the same ClickOnce application?
I wish I could give you some brilliant solution, but personally I would probably go with option 3. I mean, its pretty simple, the changes should be pretty static and it will be difficult(ish) to totally screw it up and deploy the wrong changes to the wrong company.

Categories : C#

Changing an object property in C# for multiple versions of .NET
See: Detect target framework version at compile time public static void DisableDecompression(this HttpTransportBindingElement bindingElement) { #if RUNNING_ON_4 bindingElement.DecompressionEnabled = false; #endif } Once the build is set to release for .NET 3.5 then all references to DisableDecompression will be optimized out.

Categories : C#

exception handling with multiple python versions
You can write two different try...except for two different versions basically for those mis match exception in two different versions. import sys if sys.version_info[:2] == (2, 7): try: pass except: # Use 2.7 compatible exception pass elif sys.version_info[:2] == (2, 5): try: pass except: # Use 2.5 compatible exception pass

Categories : Python

Multiple PHP versions using phpenv, php-build and php-version
There is a package in the AUR for phpenv https://aur.archlinux.org/packages/phpenv/ As well as packages for many different versions of PHP https://aur.archlinux.org/packages/?O=0&C=0&SeB=nd&K=phpenv&outdated=&SB=n&SO=a&PP=50&do_Search=Go First install phpenv: yaourt phpenv Then install the php versions you need, for example: yaourt php53_29_env Note: even with this though, you will likely have a problem. Checking the package build, it looks like it is missing the patch to disable PHP automatically being compiled with thread safe features when apache is running a thread safe mpm. Not quite sure since on my systems, I want PHP to enable thread safe code so it will work for me.

Categories : PHP

Chrome keeps all versions of my hosted app/extension (takes up MB's). How tell it to remove old versions? To downgrade?
https://code.google.com/p/chromium/issues/detail?id=126394, basically same issue. No. But you can delete them yourself by dragging them to the trash. The extension isn't kept in local storage or the HTML5 filesystem, so no. No.

Categories : Google Chrome

Is there a reference table which shows which mysql versions are supported by which rails versions?
I don't think it should be in Rails documentation. The reason is that communication with DB is handled via adapters and is not in core rails functionality, so it is a matter of compatibility between rails and some particular adapter (mysql or mysql2 for example for MySQL) rather than between rails and some particular DBMS. Adapter is a 3rd party product, so how the rails team can be responsible for it? You should find out 2 things - 1) which adapter works for MySQL 5.5 and 2) with which rails versions that adapter can be used. In any case you should focus on adapter, not on rails if you want to use some particular DBMS.

Categories : Mysql

Error Handling in Current and Older Versions of SQL Server Stored Procedures
Because CustomerId would be returned in Tabular Data Stream (TDS) Resultset, whereas the error number is returned as the return value of the function call. Regardless of what database access technology you are using (ODBC, ADO, ADO.Net, etc.) these two things are different pieces of the return data package, each one of which requires specific, different client side syntax to access.

Categories : SQL

WAMP Server errors switching Apache / PHP versions on fresh install
just had a similar problem - was upgrading WAMP from Apache 2.2 / PHP 5.3 to Apache 2.4 / PHP 5.4 This is what worked for me: Stop apache service Remove the unwanted version's apache service using WAMP manager's 'Remove service' option. (check in Windows services if really removed) Manually edit the 'wampmanager.conf' in the WAMP's installation directory to use Apache and PHP versions you want to use (sections: 'php', 'phpCli' and 'apache' / properties 'xVersion' and 'xLastKnown') Shutdown WAMP manager (Re)Start WAMP manager (Re)Install the wanted version's apache service using WAMP manager's 'Install service' option. (check in Windows services if really installed) (Re)Start apache service NOTE: Always run WAMP manager as admin ... After this phpinfo() shows new Apache and PHP versio

Categories : PHP

Is there a way to limit SQL Server Developer Edition to features found in more restrictive versions?
There is no such feature from Microsoft, but Kimble Group strongly advise in their The Microsoft Data Warehouse Toolkit to push the code through test or UAT environments (hopefully through continuous integration) where the version/edition would match the production. That of course relies on the assumption that most often this is the deployment strategy anyway.

Categories : SQL

Java EE Application Servers and JDK versions need to match certified versions?
your main argument should be that java 6 has been EOL'ed by Oracle and will not be getting any new (freely available) security updates. should you ship a jdk-6-based product some of your customers will definitely complain about it (i know some of the customers of the company i work for routinely scan products they buy and install and notify vendors of any EOL'ed or known-to-be-insecure versions in use).

Categories : Java

Java application accessing multiple versions of a library
You can use maven repository for providing different version of your library. Maven central repository is available for releases: http://maven.apache.org/guides/mini/guide-central-repository-upload.html You can setup own instance of Artifactory: http://www.jfrog.com/confluence/display/RTF/Configuring+Maven+Deployment+to+Artifactory

Categories : Java

MySQL Setting multiple versions of data under one unique name
There is nothing in MySQL that says that a row needs a unique identifier. It is certainly common practice to do so but is by no means required. You could definitely implement your example. You would obviously need a boolean field default that could be updated whenever the user inputs a value. Just run a SELECT query from PHP when you gather the user input, if there are results prompt for the default update, otherwise just add it and be on your way. The problem you most often run in to without a unique identifier is updating a row. Let's take your example but say the user types in 80 mph again as the max speed. If you add that row, you now have two rows that have Proj001 and 80 as fields. How is SQL supposed to know which one to update? You can always add a LIMIT 1 to your query to only u

Categories : PHP

Maven - Multiple artifact versions in dependency management
Actually, if you are using Maven3+, you'll get a warning like this: [WARNING] [WARNING] Some problems were encountered while building the effective model for groupId:artifactId:jar:1.0-SNAPSHOT [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: junit:junit:jar -> version 3.8.1 vs 3.0 @ line 15, column 18 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] Maven will pick up the first, so the second will never be used. Just remove it to prevent more confusion :)

Categories : Maven

How to make a JNI application support multiple versions of JVM on Linux?
You can specify the library path: java -Djava.library.path="path_here" Edit: note that it expects a folder to look in, not a specific file. :) Edit2: the path can be relative.

Categories : Java

How to run Rails app using Apache/Passenger with Multiple Ruby versions
I recently implemented Passenger 4.0.10 using different versions of Ruby (1.9.3 & 2.0.0). Here are some things to check: Have you installed the Passenger gem in each RVM gemset? When I was having problems with this I was advised to do this by the Passenger team. Did you check out the RVM Helper Tool for PassengerRuby in the documentation? Here is the link for the PassengerRoot Documentation from Passenger. You probably have the wrong value for PassengerRuby. You will need to execute the which passenger-config command in each gemset to get the correct command to execute for passenger config. There are two sections in the output of passenger-config --ruby-command which mentions values for PassengerRuby. I used the value mentioned in the first section in the output in my virtual hos

Categories : Ruby On Rails

Fails to load multiple versions of jQuery on the same page
Taken from the jQuery forum: First important thing: when you load your jQuery.x.x.js, it will overwrite the existing $ and jQuery vars... BUT it keeps a backup copy of them (in _$ and _jQuery). Calling .noConflict(true) you restore the situation as it was before your js inclusion! .noConflict() gives you the running instance (the last loaded), so you can work with your version in this way. Resuming: Original page loads its "jquery.versionX.js" $ and jQuery belong to versionX You call your "jquery.versionY.js" Now $ and jQuery belong to versionY, plus _$ and _jQuery that belongs to versionX var my_jQuery = jQuery.noConflict(true); now $ and jQuery belong to versionX, _$ and _jQuery are probably null, and my_jQuery is versionY. Source: https://forum.jquery.com/topic/multiple-versions

Categories : Jquery

website in multiple language versions based on cookie
It is the good idea try this useful multilingual pluggin. After Installation: May be you got this issue so I have provided a detailed answer too.

Categories : Wordpress

Best Practice: Multiple branches for different API versions or single branch
I would suggest separate release branches for each API. You can do bug fixes to old versions off of the release branches. You shouldn't have lots of versions of your API. If this is a web API, then non-breaking changes don't need a new version. If this is a programming language API, then each major release should be a branch, with minor releases as tags or sub-branches off of the release.

Categories : Api

Supporting multiple Android versions with different screen sizes
You can use the current version terminology, as it's based on the API you're compiling against. You should compile with the 4.3 API (the latest as of this question), and to support earlier APIs, set your minSdkVersion appropriate in your <uses-sdk> section. You can use all the latest conventions for your folders this way and they will work across all versions.

Categories : Android

age old dilema to have multiple versions of jquery on a page not conflict?
If you want to use several versions of jquery on the same page, you could try to do something like this (not tested though) <script src="jquery-1.6"> <script> $16=$ $.noConflict(); </script> <script src="jquery-1.9"> <script> $19=$ $.noConflict(); </script> <script> $16(document).ready(function($) { // now $ references to jquery 1.6 }) $19(document).ready(function($) { // now $ references to jquery 1.9 }) </script> as George Yates says, you should try to use only one version of jQuery, as more are too much overhead for the network.

Categories : Javascript

Managing multiple Node.js versions with nvm in a tmux session
Check your $PATH environment var before and after. There is a difference between setting it in ~/.bash_profile and ~/.bashrc depending on how you have those configured. Also, you may want to read http://unix.stackexchange.com/questions/15453/using-environment-variables-in-tmux-conf-files if you think other node.js-related vars may need to be set.

Categories : Node Js

Install package on multiple python versions using easy_insatll
This isn't a particularly helpful answer, but have you tried virtualenv? It'll help you avoid issues like this in the future. http://www.virtualenv.org/en/latest/

Categories : Python

DataNucleus / AppEngine - multiple JAR versions of the same plugin in the classpath
How about the message content ? The URL "file:/opt/appengine-java-sdk-1.8.2/lib/opt/user/datanucleus/v1/datanucleus-core-1.1.5.jar" is already registered, and you are trying to register an identical plugin located at URL "file:/opt/appengine-java-sdk-1.8.2/lib/opt/tools/datanucleus/v2/datanucleus-core-3.1.3.jar. Having two version of the same jar (and hence duplication of classes) in the CLASSPATH is to be avoided

Categories : Java



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