upgrade

Getting ready to convert from Python 2.x to 3.x

左心房为你撑大大i 提交于 2019-11-30 07:01:32
As we all know by now (I hope), Python 3 is slowly beginning to replace Python 2.x. Of course it will be many MANY years before most of the existing code is finally ported, but there are things we can do right now in our version 2.x code to make the switch easier. Obviously taking a look at what's new in 3.x will be helpful, but what are some things we can do right now to make the upcoming conversion more painless (as well as make it easier to output updates to concurrent versions if needed)? I'm specifically thinking about lines we can start our scripts off with that will make earlier

What is the easiest way to upgrade a large C# winforms app to WPF

99封情书 提交于 2019-11-30 06:52:24
I work on a large C# application (approximately 450,000 lines of code), we constantly have problems with desktop heap and GDI handle leaks. WPF solves these issues, but I don't know what is the best way to upgrade (I expect this is going to take a long time). The application has only a few forms but these can contain many different sets of user-controls which are determined programatically. This is an internal company app so our release cycles are very short (typically 3 week release cycle). Is there some gradual upgrade path or do we have to take the hit in one massive effort? You can start

Upgrade to numpy 1.8.0 on Ubuntu 12.04

南楼画角 提交于 2019-11-30 06:40:05
I'm running Ubuntu 12.04 which comes by default with NumPy 1.6.0 (I have, actually had , Python 2.7.3 installed). As a result of the answer to this question polyfit() got an unexpected keyword argument 'w' , I need to upgrade it. I downloaded the .tar.gz package for the version 1.8.0 from here , unpacked it, moved inside the folder and run the commands: python setup.py build --fcompiler=gnu95 python setup.py install --user as described in the user guide and in this question: Building NumPy 1.7.1 on Ubuntu . This resulted in NumPy no longer loading in Spyder , which now shows the error:

Update TensorFlow

旧时模样 提交于 2019-11-30 04:57:01
I'm working with Ubuntu 14.04 , I had a TensorFlow V0.10 but I want to update this version. if i do: $ pip install --upgrade $TF_BINARY_URL but it prints: Exception: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 278, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1198, in prepare_files do_download, File "/usr/lib/python2

Android SQLite Upgrade without losing data

百般思念 提交于 2019-11-30 04:13:17
I have created a SQLite database successfully and it works fine. However when the onUpgrade method is called, I'd like to do so without losing data. The app I'm developing is a quiz app. Simply, when the onCreate method is called I create and prepopulate a database with questions, answers etc. The last column is whether they have set the question as a favourite or not. What I would like to do is that when the onUpgrade method is called, I'd like to temporarily save that one column, drop the whole database, recreate it with any edits I've made to old questions and add any new questions then re

Upgrade jQuery 1.4.2 to 1.9.1

﹥>﹥吖頭↗ 提交于 2019-11-30 03:40:55
We have been using jQuery 1.4.2 in our web application. Recently it was suggested that we upgrade to a newer version. So far we are thinking about upgrading to 1.9.1 as we need to support IE7 and IE8. Our application uses bunch of plugins e.g. fancybox, cookies, tipsy, jcarousel and bunch of others. Plus we have a lot of script files, probably around 50 files. and then some scripts embedded withing the files. I feel like this is going to be a disaster! Does anyone have any advice? We are not set on yet upgrading to 1.9.1. If I want I can convince the managers to upgrade to a different version.

How to detect an iOS App installed or upgraded? [duplicate]

那年仲夏 提交于 2019-11-30 03:39:25
This question already has an answer here: Check if my IOS application is updated 6 answers I am developing an application and i need to know whether user installed the app for the first time or upgraded it from the App Store. How can i detect whether app is installed for the first time or upgraded or re-installed? Thanks for your answers in advance. You can differentiate between the first start after installing the App, the first start after an update and other starts quite easily via saving the latest known version to standardUserDefaults . But as far as I know it is not possible do detect a

An assembly specified in the application dependencies manifest (…) was not found

丶灬走出姿态 提交于 2019-11-30 00:37:49
I upgraded Microsoft.AspNetCore from 2.0.3 to 2.0.5 and my WebAPI project, although running successfully locally, fails to start in production (IIS). Everything was fine in production until this upgrade. The error message produced in the log directory is as follows: Error: An assembly specified in the application dependencies manifest (MyProject.WebAPI.deps.json) was not found: package: 'Microsoft.AspNetCore.Mvc.Abstractions', version: '2.0.2' path: 'lib/netstandard2.0/Microsoft.AspNetCore.Mvc.Abstractions.dll' This assembly was expected to be in the local runtime store as the application was

How to upgrade HornetQ version in JBoss 6?

老子叫甜甜 提交于 2019-11-30 00:32:52
问题 I am using JBoss-6.0.0 AS which by default comes with HornetQ-2.1.2 version but this version of HornetQ has many Iteration related bugs which are now resolved in HornetQ-2.2.5 version which by default comes with JBoss 7 AS. I can't switch to JBoss 7 AS because I am already using many other services specific to JBoss 6 AS and it would be very risky for us to switch to JBoss 7 AS as of now. Is there anyway by which I can upgrade HornetQ version in JBoss 6 AS ? I tried with standalone HornetQ-2

After I upgrade my R version, how can I easily reinstall all the packages that were installed in the old version? [duplicate]

女生的网名这么多〃 提交于 2019-11-30 00:04:32
Possible Duplicate: Painless way to install a new version of R? In R, packages are not compatible across upgrades, and must be reinstalled. Is there any way to easily install the same set of packages in the new version as what I had installed in the old version? Edit: I can't easily access the old version of R, since I upgrade via apt. I just posted a question with a possible solution: update.packages(checkBuilt=TRUE, ask=FALSE) What about that doesn't work for you? 来源: https://stackoverflow.com/questions/3974488/after-i-upgrade-my-r-version-how-can-i-easily-reinstall-all-the-packages-that-w