deprecated

Spring Security deprecated @AuthenticationPrincipal

左心房为你撑大大i 提交于 2019-12-11 01:29:53
问题 As you know @AuthenticationPrincipal in web.bind.annotation.AuthenticationPrincipal is depreacted . It is recommended to use core.annotation.AuthenticationPrincipal. So we have changed import statements as core.annotation.AuthenticationPrincipal and now we are getting below error : org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.xxx.xxx.authentication.OurUserDetailsImpl]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com

How to use FragmentManager to substitute the deprecated showDialog

左心房为你撑大大i 提交于 2019-12-10 22:36:44
问题 I am using the method displayDialog... it works but Eclipse shows me a warning on this: showDialog(showRetry ? 1 : 0); Method: private void displayDialog(final boolean showRetry) { mHandler.post(new Runnable() { public void run() { setProgressBarIndeterminateVisibility(false); showDialog(showRetry ? 1 : 0); } }); } Searching I have found similar question in which seen that now there is the FragmentManager that can be used to avoid the problem, but I haven't understand how I could use to fix

Object.observe remove in chrome 50

余生颓废 提交于 2019-12-10 20:01:06
问题 I had a warning message in Chrome, this one notice that Object.observe method is deprecated and will be removed in Chrome 50 around April 2016. Have you an alternative solution to replace Object.observe ? Thanks 回答1: So it was depricated and will be removed because of some problem with perfomance. Please see this link http://www.infoq.com/news/2015/11/object-observe-withdrawn I think you should look into RxJS library and it's Observable Using RxJS, you can represent multiple asynchronous data

Schema.org is ProfessionalService deprecated?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 18:54:34
问题 After reading several recent popular articles on the internet I decided to use ProfessionalService over LocalBusiness for my web design company. It is my understanding that LocalBusiness is very broad and it is best to be as specific as much as possible and the reason why I opted to use both ProfessionalService and additionalType with The Product Types Ontology. Using Google Tag Manager my json-ld looks like this: <script type="application/ld+json"> { "@context": "http://schema.org", "@type":

About new methods and deprecated methods in Android APIs

依然范特西╮ 提交于 2019-12-10 18:16:07
问题 I'm new to android development. I'm studying with outdated books, so I'm really confused about new methods. I'm going to make a simple and light app which can be run even on old devices. So when I created a new android project, I set "Minimum Required SDK" to API 8, "Target SDK" to API 22 and "Compile With" to API 22. Does this setting mean the app can work on the devices of API 8, even though I use the methods of API 22? I'm asking this question due to deprecated methods. I completed almost

How to replace following (deprecated) OpenGL functions?

为君一笑 提交于 2019-12-10 17:44:58
问题 I've got a simple application showing a custom frame buffer (it is sort of an emulator of the frame buffer functionality) using OpenGL: void GLWidget::resizeGL( int w, int h ) { glViewport( 0, 0, w, h ); glMatrixMode( GL_PROJECTION ); glLoadIdentity(); glOrtho( 0, w, 0, h, -1, 1 ); } void GLWidget::paintGL() { if( pScreen != 0 ) { glRasterPos2i( 0, 2 * pScreen->height ); glPixelZoom( 2, -2 ); glPixelStorei( GL_UNPACK_ALIGNMENT, 1 ); glDrawPixels( pScreen->width, pScreen->height, GL_RGB, GL

Deprecated: Function ereg() is deprecated [duplicate]

◇◆丶佛笑我妖孽 提交于 2019-12-10 17:35:23
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How can I convert ereg expressions to preg in PHP? My contact form is othervise working but I keep getting the following error: Deprecated: Function ereg() is deprecated in/home/..... I'm really lost here but I figure this is the part that needs some adjusting. if ( empty($_REQUEST['name']) ) { $pass = 1; $alert .= $emptyname; } elseif ( ereg( "[][{}()*+?.\\^$|]", $_REQUEST['name'] ) ) { $pass = 1; $alert .=

Current best practice for “retiring” a project on github and npmjs.org?

﹥>﹥吖頭↗ 提交于 2019-12-10 16:35:55
问题 I'm the maintainer of a public project on github (and npm). When I created the project it solved my particular requirements better than available alternatives. However, the community has caught up and surpassed my solution. I don't even use the tool I created any more, and I'm not interested in maintaining it. I updated the README to this effect, but I'm still getting pull requests. Should I simply take it down? Is this considered rude given others are forking it and trying to contribute? So

Is there a simple replacement for MonoTouch.UIKit.UIKeyboard.BoundsFromNotification?

陌路散爱 提交于 2019-12-10 16:18:16
问题 MonoTouch.UIKit.UIKeyboard.BoundsFromNotification(MonoTouch.Foundation.NSNotificaton)] was deprecated in iOS 3.2. Is there a simple replacement method/snippet I can use? 回答1: New methods were added in iOS 3.2 to replace the deprecated one. Look at UIKeyboard documentation for FrameBeginFromNotification and FrameEndsFromNotification . There's a stackoverflow question that shows how to update your code at How to get UIKeyboard size with Apple iPhone SDK it's in Objective C but should be easy to

ActiveSupport::Deprecation.silenced = true does not works for me?

北战南征 提交于 2019-12-10 16:14:01
问题 My app was developed using Ruby 1.8.7 and Rails 2.3.11. I am getting lot of deprecation warning while running 'rake spec' DEPRECATION WARNING: ActiveSupport::Dependencies.load_paths is deprecated, please use autoload_paths instead. (called from load_paths at /home/soundarapandian/.rvm/gems/ruby-1.8.7-p352/gems/desert-0.5.2/lib/desert/manager.rb:36) DEPRECATION WARNING: ActiveSupport::Dependencies.load_paths is deprecated, please use autoload_paths instead. (called from load_paths at /home