deprecated

python error when I use different systems!

When I use my system, there is no error in my python codes. When I use another system I get this error:(both systems have same version of python) /usr/lib/pymodules/python2.6/matplotlib/numerix/__init__.py:18: DeprecationWarning: ********************************************************** matplotlib.numerix and all its subpackages are d...

Why did they deprecate the width attribute for preformatted text?

The width attribute for <pre>, which defines maximum character length per line, was deprecated in HTML 4.01, and I no longer see it in current draft of HTML5. I couldn't find the reason behind it in the mailing lists of W3C's WG for HTML (maybe I searched wrong), although the specs for 4.01 said it was not supported in all clients. One...

What problems arise if you use deprecated methods/functions in Java?

Do any problems arise because of using deprecated functions in Java?? If so, why do they keep this function?? Is it a bad habit if you use a deprecated method in Java like java.sql.Date.getMonth or getYear or getDate??? ...

need some simple help understanding a bit of pre-PHP5 code

I was turned on to nstrees from another question, and have been working through the script. It was last updated in 2005 and relied on some stuff that has since apparently been deprecated like HTTP_POST_VARS which I wasn't immediately familiar with since I've been doing PHP for only a little less than a year. Anyways, the coding style se...

Is there compile warnings or errors for deprecated code in XCode for iOS4 projects by default?

Hi Everyone, I took over an iPhone project recently that was developed prior iOS4. I'm wondering if XCode would prompt warnings or errors on compile. It currently succeeds with "No issues" when built so is it safe to assert that it contains no deprecated code? Or is there a setting to be set on XCode to warn on compile for deprecated co...

Eregi to preg_replace change for php 5.3 compatibility help

I have this line in one of my scripts and its throwing a deprecated error. eregi_replace( '\.([a-z]{3,4})$', "-{$width}x{$height}.\\1", $src ); Can someone show me how to turn this into preg_replace and tell me why and which bits of it need to change so I can learn for future changes? I have had a go myself but where this bit of code...

What has changed since “The C Programming Language”

My experience in C is mostly from second edition of The C Programming language which is a very old book. What has changed in C since it was released, what obsolete or deprecated functions should I avoid? ...

Has Oracle removed Sun net.ftp classes?

I have an older project that uses the sun.net.ftp.FtpClient class to download a file from an ftp server. It appears that Oracle has finally removed this unsupported/deprecated feature from Java. Any suggestions on what should be used to replace it? I was considering org.apache classes but I have never used them. The best solution would b...

Dealing with deprecated methods in iPhone

How do you deal with deprecated methods in iPhone that require you to use a newer method, not available in older versions? Consider the case of setStatusBarHidden:animated:, which was deprecated in iOS 3.2. The documentation points you to use setStatusBarHidden:withAnimation:, which is only available in iOS 3.2 or later. If I understan...

Rails 3 deprecated methods and APIs

Where can one find a list of deprecated methods, APIs, etc, in order to upgrade from Rails 2.x to Rails 3? ...

How to fix the session_register() DEPRECATED problem?

How to fix the session_register() DEPRECATED problem in php 5.3 ...

What to use for Python string.find?

The documentation for Python 2.7 lists string.find as a deprecated function but does not (unlike atoi and atol) provide an alternative. I'm coding in 2.7 at the moment so I'm happy to use it but I would like to know: what is it going to be replaced with? is that usable in 2.7 (if so, I'll use it now so as to avoid recoding later)? ...

Is the function notation deprecated?

From WolframAlpha: http://mathworld.wolfram.com/Function.html "While this notation is deprecated by professional mathematicians, it is the more familiar one for most nonprofessionals. Therefore, unless indicated otherwise by context, the notation is taken in this work to be a shorthand for the more rigorous ." Referring to f(x) being d...

Deprecated conversion from string const. to wchar_t*

Hello I have a pump class that requires using a member variable that is a pointer to a wchar_t array containing the port address ie: "com9". The problem is that when I initialise this variable in the constructor my compiler flags up a depreciated conversion warning. pump::pump(){ this->portNumber = L"com9";} This works fine but th...

Why was assert_template deprecated, and what should I use instead?

According to the documentation for assert_template, it's deprecated. Why was it deprecated, and what should I use instead? ...

Enum.ToString() deprecated?

When I type .ToString() on an Enum type in Visual Studio, the Intellisense shows a "strike-through" line through ToString() (although it builds and works fine). It seems to indicate that Enum.ToString() is deprecated in some way. Is this true? If so, why? ...

How to force error_reporting mode in PHP 5.3

I have some code that's encrypted with ioncube and it's also written for < PHP 5.3. There's a ton of deprecated code, which would still work, but there's error messages all over the site. Is there a way of externally forcing error_reporting to E_ALL ^ E_DEPRECATED or similar? I'm sure in the code they're hardcoding to E_ALL for some rea...

When is it appropriate to use static (over unnamed namespaces) in C++?

Hi, I have been reading articles about unnamed namespaces the whole day, most articles explained when you should use unnamed namespaces over the static keyword. But I am still left with one big question when is it appropriate to use static? After all it is not completely deprecated, what about header files with static functions should I...

Hibernate - AnnotationConfiguration deprecated

Hello! I am using Hibernate in version 3.6.0 and the AnnotationConfiguration is marked as deprecated. Here is the the line in my HibernateUtil.java class: sessionFactory = new AnnotationConfiguration().configure("/hib.cfg.xml").buildSessionFactory(); What's the replacement for AnnotationConfiguration? Best Regards Tim. ...