deprecated

mcrypt_encrypt to openssl_encrypt ecb des

喜夏-厌秋 提交于 2019-12-12 04:55:24
问题 i have to replace deprecated function mcrypt_encrypt using openssl_encrypt. My old mcrypt function use 'des' cipher and 'ecb' mode. I tried all cipher options (openssl_get_cipher_methods) and i cant find same result. Help please $key = '04647132'; $message = hex2bin('046471324B3680'); $mcrypt = base64_encode(mcrypt_encrypt('des', $key, $message, 'ecb')); foreach (openssl_get_cipher_methods(true) as $cipher) { $openSsl = base64_encode(@openssl_encrypt($message, $cipher, $key, OPENSSL_RAW_DATA)

Deprecated Ajax Or JQuery Command Cause No Result Returned

…衆ロ難τιáo~ 提交于 2019-12-12 04:38:12
问题 <script type="text/javascript"> $(document).ready(function(){ function loading_show(){ $('#loading').html("<img src='images/loading.gif'/>").fadeIn('fast'); } function loading_hide(){ $('#loading').fadeOut('fast'); } function loadData(page){ loading_show(); $.ajax ({ type: "POST", url: "load_data.php", data: "page="+page, success: function(msg){ $("#container").ajaxComplete(function(event, request, settings)//.ajaxComplete is good { loading_hide(); $("#container").html(msg); }); } }); alert()

didAnimateFirstHalfOfRotationToInterfaceOrientation iOS5 replacement

▼魔方 西西 提交于 2019-12-12 03:05:18
问题 didAnimateFirstHalfOfRotationToInterfaceOrientation is deprecated in iOS 5.0. However I would like to use this method in my application. I am using the sample code that Apple offers in the iOS Dev Center, project name AlternateViews . I would like the app to rotate the portraitView while fading in the landscapeView . Can this be done in iOS 5 or is this feature forever gone? portraitView currently calls: [self presentModalViewController:self.landscapeViewController animated:YES]; while

how to get rid of this plugin's class_inheritable_attribute deprecation warning?

别说谁变了你拦得住时间么 提交于 2019-12-12 01:54:11
问题 I'm getting this warning for a plugin I'm using: DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from has_private_messages at /vendor/plugins/simple-private-messages/lib/has_private_messages_extensions.rb:17) I've created an issue at https://github.com/jongilbraith/simple-private-messages, but there isn't much recent activity on it.

How to fix django's db_type deprecation warning?

白昼怎懂夜的黑 提交于 2019-12-11 20:14:24
问题 After upgrading to a more recent Django version, I started getting this deprecation warning: Django version 1.3, using settings 'demos.settings' Development server is running at http://127.0.0.1:8000/ Quit the server with CONTROL-C. /Users/.....myfile.py:328: DeprecationWarning: inner has been called without providing a connection argument. if 'integer' in x.db_type() I realized it's caused by the Field.db_type method, which returns the database column data type for a Field. This method has

Is fb:multi-friend-selector deprecated?

浪尽此生 提交于 2019-12-11 15:36:09
问题 I have a page in my website to invite Facebook friends to use my website and the code is pretty standard stuff <fb:serverFbml style="width: 755px;"> <script type="text/fbml"> <fb:fbml> <fb:request-form .... <fb:req-choice /> > </fb:request-form> <fb:multi-friend-selector .../> </fb:fbml> </script> </fb:serverFbml> As far as what I understand, because I am including FB JS SDK, it interprets the XFBML tags and includes the appropriate html for the same (which is interpreted by the browser). I

Mongo Java Driver 3.6.1 - How to parse a json array structured String to BasicDBList

假如想象 提交于 2019-12-11 13:32:40
问题 When I use MongoDB 2.x.x I used (BasicDBList) JSON.parse("[]") to parse the string data to Document array. But the latest MongoDB driver says this is deprecated and the BasicDbObject.parse("") only converts to BasicDBObject . Here is some code samples I earlier used in 2.x.x Java driver BasicDbList skuList = (BasicDBList) JSON.parse(skus); So when I upgraded to 3.6.1, the compiler says this is deprecated. And suggested to use BasicDbObject.parse() But this only accepts JSON objects structured

How to remove deprecated warning in log-file of open-ACS, Project-Open

对着背影说爱祢 提交于 2019-12-11 12:45:57
问题 How to remove the warning in the log-file for using a deprecated proc within openACS, project-open? Part of the config: # Debug is turned on for demo servers. Please turn off for # performance critical production installations. set debug false #--------------------------------------------------------------------- # # Access log -- nslog # #--------------------------------------------------------------------- ns_section ns/server/${server}/module/nslog ns_param debug false ns_param dev false

Deprecated commands in Visual C++

陌路散爱 提交于 2019-12-11 11:56:41
问题 When building a solution in Visual Studio 2013 of a project, I noticed that I am getting warnings for the following references: warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings src\core\JCSocket.cpp 77 1 warning C4996: 'inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings src\core\JCSocket.cpp 82 1 warning C4996:

Concerning Node.js was Bootstrap npm package recently deprecated?

痞子三分冷 提交于 2019-12-11 11:11:58
问题 I am trying to install Bootstrap using the npm install method. I have been on this for a while now and am wondering if I am doing something wrong? the npm install is still included on Bootstrap site as well as github and the npm page. From what I understand using bower has been deprecated. Had serious issues using gulp. Any assistance or a link to an updated tutorial would be greatly appreciated. Following errors occured while trying to install via terminal: ~/GitHub/GitSite $ npm install