deprecated

I get a "Deprecated" notice on my page with few of the session functions

I am getting the below message on my sites page there are more than 20 messages like this... pls guide me to rectify the issue... I am using the PHP 5.3.0 Deprecated: Function eregi() is deprecated in C:\wamp\www\bannerbuzz\includes\classes\language.php on line 87 > UPDATE : Is there any way to switch off this display of...

Rails: Object#id will be deprecated; use Object#object_id

Hi everyone, Very quick question. My server is warning me that line 37 will be deprecated, specifically: #Server error: views/projects/index.html.erb:37: warning: Object#id will be deprecated; use Object#object_id #Views/projects/index.html.erb: 6: <% for project in @projects do %> 36: <%= project.id %> 37: <%= Matching.find_all_by_cu...

Is it wrong to use Deprecated methods or classes in Java?

I am using eclipse to develop a web application. Just today I have updated my struts version by changing the JAR file. I am getting warnings at some places that methods are deprecated, but the code is working fine. I want to know some things Is it wrong to use Deprecated methods or classes in Java? What if I don't change any method an...

.NET Framework deprecated interfaces and attributes. What was your biggest refactoring due to lack of support?

Some .net-framework interfaces and attributes become obsolete and deprecated since new framework version appears. I am warned that such code may be removed or become unpredictable in next versions but have you ever faced the situation when you were forced to refactor code because code came uncompilable or start to behave weird? What was ...

Non-deprecated code for detecting whether a SharePoint User has a specific Permission Level

In our application, we have some forms which need to show some data specifically if the current user has a specific permission level. These users belong to an SPGroup which includes users who should not see this data, so in this particular case I cannot filter based off of group membership. My current solution has been to use web.Curren...

MPMoviePlayercontroller not working in iphone SDK 4 ? - Help Needed

Hello all, Till yesterday My MPMovieController was wokring fine in iPhone SDK 3 . But yesterday when I upgraded the SDK ti iphone SDK 4 my movieplayer stops working it is giving me a deprecation warning on the following line (They have deprecated lots of methods ) moviePlayer.movieControlMode = MPMovieControlModeDefault; My full code...

Function ereg_replace() is deprecated - How to clear this bug?

Hello, I have written following PHP code: $input="menu=1&type=0&"; print $input."<hr>".ereg_replace('/&/', ':::', $input); After running above code, it gives following warning, **Deprecated: Function ereg_replace() is deprecated** How can I resolve this warning. ...

Rails3: Base#after_update has been deprecated

I see the warning: DEPRECATION WARNING: Base#after_update has been deprecated, please use Base.after_update :method instead. (called from <class:City> at /home/petrushka/webdev/my_app/app/models/city.rb:4) What should I write instead of def after_update .... end ...

Using Simpletest PHP "unit testing for PHP", getting error message "Deprecated: Assigning the return value of new by reference is deprecated "

I am new to using simpletest: http://www.simpletest.org/ for PHP and am using PHP 5.2* on my server, when I try to set up an initial test script based on their demo, I get a page full of errors like the one below... I am not sure if this is something to do with simpletest not being compatible with PHP 5.* or what the issue is, any insigh...

Android -- Support 1.6+, and Support for Deprecated Code in 1.5?

Hello, I'm trying to build a app that uses the SmsMessage class but there are two versions depending on the API level of the device: android.telephony.gsm.SmsMessage (deprecated for 1.6 and above) android.telephony.SmsMessage (the new class for 1.6 and up) I want to target 1.5 and yet have the newer class (android.telephony.SmsMessag...

HTML: What is this I hear about the table tag being deprecated?

Because that might mess me up, somewhat. I'm not entirely clear on what I'm supposed to use to replicate some of its functionality effectively, should I adopt a newer standard down the road. I can't seem to find good information sources to verify this, though. Would there be a good reason for this? ...

Should I use secure versions of POSIX functions on MSVC - C

I am writing some C code which is expected to compile on multiple compilers (at least on MSVC and GCC). Since I am beginner in C, I have all warnings turned on and warnings are treated as errors (-Werror in GCC & /WX in MSVC) to prevent me from making silly mistakes. When I compiled some code that uses strcpy on MSVC, I get warning lik...

Conflicting information in the MSDN and compiler warnings.

I am trying to use FtpWebRequest.Proxy and have it set to GlobalProxySelection.GetEmptyWebProxy() however i get a compliler warning Warning 1 'System.Net.GlobalProxySelection' is obsolete: '"This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' inste...

overwrite_params deprecated as of Rails 2.3.6 -- Accepted Workaround?

So, it looks like overwrite_params is deprecated as of Rails 2.3.6. Is there a suitable workaround that is generally accepted as best-practice? For example, I used to to be able to do the following (which I thought was quite useful): url_for(:overwrite_params => {:page => 1}) I've seen the following solution mentioned online ... is ...

Java - Deprecated API - DataInputStream.readLine

Time to learn TCP/UDP ... Anyways, my prof gave me this example and he said it worked for him. However when I go to compile I get a deprecated API error saying readLine is not in use anymore... :\ Code: import java.io.*; import java.net.*; public class Server{ static Socket clientSocket = null; static ServerSocket serverSoc...

How to handle deprecated function in PHP

Hi all, I'm new in this site. I want to ask about PHP programming. How do we can handle deprecated function in PHP. I want to redirect it to my new function. As we know, ereg function has been deprecated in PHP 5.3.0 and recommended to preg_match (posix to PCRE). But, when we wrote a lot of code with ereg function, do we have to change ...

iPhone 4.0 compatibility issue

Hi all, I am developed one iPhone application which is working good in iphone 3.0. While i am doing comparability with 4.0 it is giving some deprecated workings. Please find the code below..... [[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO]; Note: this is working fine in 3.0 but giving warning in 4.0 [[UIAp...

iPhone stringWithCString is deprecated

hi all, I use this code to read data from sqlite database: keyFromSql = [NSString stringWithCString:(char *)sqlite3_column_text(preparedStatement, 1)]; but the compiler give me the warning wrote in the title... so, what is the right and not deprecated method to retrieve a value from sqlite? thanks! ...

what we can use insted of UIKeyboardBoundsUserInfoKey in iphone os 4.0

Hi all i am using this code in my application. CGRect keyboardBounds = [(NSValue *)[[notification userInfo] objectForKey:UIKeyboardBoundsUserInfoKey] CGRectValue]; but UIKeyboardBoundsUserInfoKey is deprecated in iOS 4.0 i am using UIKeyboardFrameEndUserInfoKey and UIKeyboardFrameBeginUserInfoKey in iOS 4.0 but these are giving diffe...

Deprecated Date methods in Java?

What is really meant when using Java Date utilities and something has been deprecated. Does this mean that it is discouraged to use, or does it imply that it is forbidden? I am guessing it is bad practice to use deprecated methods, but am not sure and wanted to find out. For example, I am trying to use code such as the following Strin...