deprecated

Where is this backward_warning.h #warning coming from?

爱⌒轻易说出口 提交于 2019-12-06 00:19:09
问题 Without looking through every single source file in my XCode project, is there a way to find out which #include is triggering the following warning? #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno

JSF 1.x ValueBinding is deprecated, what is the correct replacement?

删除回忆录丶 提交于 2019-12-05 20:42:49
问题 I have some JSF 1.0/1.1 code: FacesContext context = FacesContext.getCurrentInstance(); ValueBinding vb = context.getApplication().createValueBinding("#{someBean}"); SomeBean sb = (SomeBean) vb.getValue(context); Since JSF 1.2, ValueBinding is deprecated and replaced by ValueExpression. I'm not sure how to change the above code in order to use ValueExpression . 回答1: The part ValueBinding vb = context.getApplication().createValueBinding("#{someBean}"); SomeBean sb = (SomeBean) vb.getValue

Mac Mojave + opengl

浪子不回头ぞ 提交于 2019-12-05 13:13:30
问题 Mac OS 10.14 Mojave was just released, and since June, we've known that OpenGL was to be deprecated in the OS. "OpenGL applications will continue to run, but you should switch to Metal," to paraphrase. However, there doesn't seem to be any documentation indicating whether you can still compile with OpenGL or if Apple prevents that or omits the proper development libraries. I am currently developing an OpenGL-based graphics program and cannot risk updating if compilation will no longer work.

C++ - deprecated conversion from string constant to ‘char*’ [duplicate]

最后都变了- 提交于 2019-12-05 13:06:14
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Deprecated conversion from string constant to char * error I tried to run old C++ code today (this code gone right in 2004 :). But now I got this error message: make[1]: Entering directory `/home/thehost/Plocha/lpic-1.3.1/lpic/src' source='error.C' object='error.o' libtool=no \ depfile='.deps/error.Po' tmpdepfile='.deps/error.TPo' \ depmode=gcc3 /bin/bash ../../config/depcomp \ g++ -DHAVE_CONFIG_H -I. -I. -I../.

What should the SQL keyword “ISABOUT” [deprecated?] be replaced with?

只愿长相守 提交于 2019-12-05 12:52:13
In MS SQL Full-text search, I'm using ISABOUT in my queries. For example, this should return the top 10 ProductIDs (PK) with a RANK Field in the ProductDetails Table SELECT * FROM CONTAINSTABLE( ProductDetails, *, ISABOUT("Nikon" WEIGHT (1.0), "Cameras" Weight(0.9)), 10 ) However, according to the SQL Documentation ISABOUT is deprecated. So, I have two questions: What is ISABOUT being replaced with? DO I even NEED any extra SQL Command there? ( IOW, would just putting the search phrase 'Nikon Cameras' be better? ) What I was originally trying to accomplish here was to weight the first word the

Send and receive data from server using 6.0 API (Android)

那年仲夏 提交于 2019-12-05 12:42:46
I'm really confused, i'm trying to develop a simple function that allow me to send and receive data from a server. The operation is as follows: In an activity I execute an HTTP POST to a PHP file on a server, the "PHP file" gets the data that i send (tipically a string), and executes a query using the parameters sent over http. Example: My android app send a string with this value "PIPPO", in the PHP file there is a query, for example: $value = PIPPO /* data received from android app*/ Select * from characters where(characters.name=".$value.") p.s. all data use JSON format The problem is: i

How to handle deprecated gem warning (SourceIndex#all_gems)? [duplicate]

旧时模样 提交于 2019-12-05 11:39:53
问题 This question already has answers here : Gem.source_index is deprecated, use Specification. Should I re-install Gem or Rails? (5 answers) Closed 5 years ago . Got this message today after running bundle update : $ bundle update NOTE: Gem::SourceIndex#all_gems is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::SourceIndex#all_gems called from /Users/meltemi/.rvm/gems/ruby-1.9.2-p180@ppr3/gems/bundler-1.0.13/lib/bundler/rubygems_integration.rb:256 . Anyone know

If Swing is deprecated, what is the alternative?

纵饮孤独 提交于 2019-12-05 10:53:44
问题 I heard that apparently Swing is being developed no longer. I like Swing and use it all the time. What should I now be using instead? 回答1: I never heard such thing and still developing swing apps. Don't give wings to rumors. But as an alternative you can use JavaFx or swt or buoy. 回答2: You probably read something about the 'Swing Application Framework', which while built using Swing, is not 'Swing'. From Swing Application Framework - Status and Roadmap. Development on an open source Reference

startDrag method Deprecated and unable to compile the program

半世苍凉 提交于 2019-12-05 10:25:19
startDrag(android.content.ClipData, android.view.View.DragShadowBuilder, java.lang.Object, int) is deprecated. How to solve this without losing compatibility to the older versions? Are there any alternatives? I'm learning android basics and while trying out a simple drag and drop exercise, I encountered this error. According to Androids API reference startDrag() was deprecated in API level 24 Use startDragAndDrop() for newer platform versions. And since Android API level 24 equals Android N you can use: if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { view.startDragAndDrop(...); } else {

Django translations and gettext: The deprecation of the % (string interpolation) operator

烂漫一生 提交于 2019-12-05 10:02:57
Although Django Django does not yet support Python 3, it eventually will, so I want to keep my code the more "future-proof" possible. Since Python 2.7 the string interpolation operator ( % ) is being deprecated. And I realized that every string that needs to be translated is using the % interpolation syntax. And in the Django docs there is no mention of the new str.format method (the "new" official way of string formatting)... Maybe there is a limitation of the gettext library, but I don't think so, since the string appears identical in the .PO files. The question is if I can use the new