deprecated

FB 4.0 - FBSession openActiveSessionWithReadPermissions replacement

一笑奈何 提交于 2019-12-05 09:37:41
I was previously using Facebook SDK 3.x for iOS. My code has FBSession openActiveSessionWithReadPermissions in various places, and now that I am using version 4.x I'm not sure what the replacement is I am thinking it is the login methods but I'm not sure what the 1:1 replacement/equivalent is. Correct. You can convert over to using the following FBSDKLoginManager method: - (void)logInWithReadPermissions:(NSArray *)permissions handler:(FBSDKLoginManagerRequestTokenHandler)handler; Or if looking for publishing permissions you can use: - (void)logInWithPublishPermissions:(NSArray *)permissions

The parameterized constructors of the java.util.Date class are deprecated. What is the alternative?

烂漫一生 提交于 2019-12-05 09:02:24
问题 What can I use to replace this, new Date(2009, 12, 9) ? Thanks for your help. 回答1: Note: this answer was written in 2009. Since then, java.time has become the preferred date/time API in Java. Ideally, use Joda Time instead. It's an infinitely superior API to the built-in one. You'd then want to choose between LocalDateTime and DateTime depending on your exact requirements (it's a complicated area - I'm not going to try to summarise in a sentence or two, but the docs do a good job). If

Maven: Report using deprecated classes / methods

*爱你&永不变心* 提交于 2019-12-05 08:17:20
I want to know if there is any kind of report on maven that show's me the classes and methods that I'm using that is deprecated. Eugene Kuleshov Normally you see deprecation warnings in the IDE, but you can also add showDeprecation parameter to the Maven compiler plugin section. Then those warnings will be shown in the log. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <showDeprecation>true</showDeprecation> </configuration> </plugin> Then you can generate build report from that javac output using

No more bird's eye view in the Bing Maps V8 API?

自闭症网瘾萝莉.ら 提交于 2019-12-05 05:59:15
It appears that Bird's Eye View is no longer available in V8. Can anyone confirm that this is actually the case or if there is any way of still using Bird's Eye View in the new version? Microsoft's documentation about this is very poor, so I just pieced the information together from various sources. For example: 1. In their MapTypeId Enumeration the 'birdseye' option doesn't exist anymore. This used to exist in V7. 2. Bing's own snippet generator for embeded maps has an option to add the Bird's Eye View, but when checked it only adds a "View bird's eye" link under the map which redirects you

Is os.popen really deprecated in Python 2.6?

一曲冷凌霜 提交于 2019-12-05 05:36:09
The on-line documentation states that os.popen is now deprecated. All other deprecated functions duly raise a DeprecationWarning. For instance: >>> import os >>> [c.close() for c in os.popen2('ps h -eo pid:1,command')] __main__:1: DeprecationWarning: os.popen2 is deprecated. Use the subprocess module. [None, None] The function os.popen, on the other hand, completes silently: >>>len(list(os.popen('ps h -eo pid:1,command'))) 202 Without raising a warning. Of the three possible scenarios It is expected behaviour that documentation and standard library have different ideas of what is deprecated;

python “string” module?

柔情痞子 提交于 2019-12-05 05:18:56
So I'm reading this old module from I think around 2002 and it has this line "import string". Did Python require you to import a string module explicitly before to be able to use string type variables or something? I don't see it used like this in the code: string.something The string module contains a set of useful constants , such as ascii_letters and digits , and the module is often still imported for that reason. If you see a import string but never see string.something , someone just forgot to remove an unused import. While there did use to be some things in string that are now standard

CURLM_CALL_MULTI_PERFORM deprecated

大城市里の小女人 提交于 2019-12-05 02:02:32
问题 CURLM_CALL_MULTI_PERFORM was deprecated. do { $mrc = curl_multi_exec($mc, $active); } while ($mrc == CURLM_CALL_MULTI_PERFORM); Is there any alternative? Curl version 7.27.0 回答1: try like: do { $mrc = curl_multi_exec($mc, $active); } while ($active > 0); 回答2: It's not really clear, if CURLM_CALL_MULTI_PERFORM is deprecated or not. The symbol exists. A removal was not mentioned in the 7.27.0 Change Notes. Like @tne pointed out in his comment: it seems reasonable to ignore it. 来源: https:/

iOS8 check permission of remotenotificationtype

走远了吗. 提交于 2019-12-05 01:09:35
问题 I can check if user granted notification (alert) permission or not before iOS8 like that: UIRemoteNotificationType types = [[UIApplication sharedApplication] enabledRemoteNotificationTypes]; if (types & UIRemoteNotificationTypeAlert) { //user granted } it is not working on iOS8, it says: iOS (3.0 and later) Deprecated:Register for user notification settings using the registerUserNotificationSettings: method instead. console says: enabledRemoteNotificationTypes is not supported in iOS 8.0 and

CONNECTIVITY_CHANGE deprecated in target of Android N

丶灬走出姿态 提交于 2019-12-04 23:03:28
I am getting warning of deprecated declaration of Broadcast Receiver. <!-- NETWORK RECEIVER... --> <receiver android:name=".utils.NetworkUtils" > <intent-filter> <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> </intent-filter> </receiver> WARNING: Declaring a broadcastreceiver for android.net.conn.CONNECTIVITY_CHANGE is deprecated for apps targeting N and higher. In general, apps should not rely on this broadcast and instead use JobScheduler or GCMNetworkManager. Is there any other way to use it without deprecated methods? I had the same problem, i did something like that. It

form._raw_value(fieldname) gone in Django 1.9

折月煮酒 提交于 2019-12-04 19:47:39
I have code which uses form._raw_value(fieldname) . This is gone in Django 1.9. Is there a way to access the raw value in 1.9+? Update I am only migrating the code to Django 1.9. Up to now I have no deeper understanding of what's going on there in detail. Looking at the source code , the _raw_value method is only 3 lines long, so it would be easy to add it as a function to your code. def _raw_value(form, fieldname): field = form.fields[fieldname] prefix = form.add_prefix(fieldname) return field.widget.value_from_datadict(form.data, form.files, prefix) Then change your code from form._raw_value