deprecated

Error in perl: Using a hash as a reference is deprecated

谁都会走 提交于 2019-12-25 05:09:27
问题 sub function{ my $storedata=shift; my $storenameandaddress=$storedata->{$storeid}->{name} ."_".$storedata->{$storeid}->{location}->{address} ."_".$storedata->{$storeid}->{location}->{city} ."_".$storedata->{$storeid}->{location}->{state} ."_".$storedata->{$storeid}->{location}{country};} My codes are shown above. and it gives me error message: Using a hash as a reference is deprecated at main.pl line 141. However, the function is still runable. And all the rests seem fine. So what is this

how to solve the ereg function deprecated error [duplicate]

梦想的初衷 提交于 2019-12-25 03:15:01
问题 This question already has answers here : How can I convert ereg expressions to preg in PHP? (4 answers) Closed 7 months ago . I am working with SEO PHP scripts and I am just following Google SEO scripts. When I used the search terms I got an error like the following: Deprecated: Function eregi() is deprecated in E:\wamp\www\subgoogle\nusoap.php on line 3876 Deprecated: Function ereg() is deprecated in E:\wamp\www\subgoogle\nusoap.php on line 3896 Deprecated: Function ereg() is deprecated in E

How can I specify vertices in pixels in OpenGL?

ⅰ亾dé卋堺 提交于 2019-12-25 03:08:10
问题 I want to write a small project with OpenGL C++ and I want to use pixel instead of float value, for example like that: glVertext2f(420, 300); Instead of: glVertex2f(0.4, -0.34); Is it possible? 回答1: If you want to use pixel coordinates your rendering, it's pretty easy to do so using an orthographic matrix, which you can create using glOrtho. Assuming your window is 800x600 you could use the following code: // Set your projection matrix glMatrixMode(GL_PROJECTION); glOrtho(0, 800, 0, 600, -1,

PHP 5.3.2: Deprecated method of instantiating an object?

爷,独闯天下 提交于 2019-12-25 02:25:14
问题 Getting a white screen of death, so decided to remote debug an application that I suspect is instantiating an object using a now unsupported method: $type['content_object'] = new $type['handler_class'](); Is this still legitimate? 回答1: Assuming $type['handler_class'] is a string containing the name of a class, then it's fine, according to the manual: If a string containing the name of a class is used with new, a new instance of that class will be created. <?php $instance = new SimpleClass();

Can I ignore the “twitter bootstrap is deprecated” warnings in my code?

…衆ロ難τιáo~ 提交于 2019-12-24 16:58:17
问题 I am using the play framework 2.3.8 with twitter Bootstrap 3.3.4 and have several forms in my application, where you can enter input. Sample: @import models.Question @import models.Answer @import helper._ @import helper.twitterBootstrap._ @(questionForm: Form[Question], questionList: List[Question]) @main("Ask Question"){ @helper.form(action = routes.Application.sendQuestion()){ <fieldset> @helper.inputText(questionForm("questionID")) @helper.inputText(questionForm("questionText")) @helper

“android.view.View is deprecated” - what else to use or how to fix?

余生颓废 提交于 2019-12-24 13:33:07
问题 I have just started trying out Android Studio, following the instructions on a video tutorial. Here is my take on what the guy tells me but I keep getting the error message View is deprecated. How do I fix this? Or what do I use instead? Here is my code: public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Button sendButton0001 = (Button) findViewById(R

I keep getting deprecated API warning even with correct check

非 Y 不嫁゛ 提交于 2019-12-24 07:27:06
问题 I'm working on a Android project, and at some point in my code I need to get the device serial number. In order to get it I used to use Build.SERIAL which has been deprecated since Android O . To avoid problems I started using Build.getSerial() , and created a little method that wraps up the OS version check: private static String getSerial() throws SecurityException { if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.O) { return Build.SERIAL; } return Build.getSerial(); }

Youtube API v3, topicId recovery

六月ゝ 毕业季﹏ 提交于 2019-12-24 05:36:08
问题 Youtube API v3 enables developers to retrieve specific information regarding a particular video, among the returned data a part called topicDetails can be requested as per the following example: Request: https://www.googleapis.com/youtube/v3/videos?id=7lCDEYXw3mM&part=snippet,topicDetails Response: { "kind": "youtube#videoListResponse", "etag": "\"r3ahjFekUqNiL0By9B5wQ2uTZHM/i4Bt9XfY8YZ1ctSlg8BWcLD8HFQ\"", "items": [ { "id": "7lCDEYXw3mM", "kind": "youtube#video", "etag": "\

Get the Newest File in a Google Drive Folder

痴心易碎 提交于 2019-12-24 04:49:09
问题 I have the following lines in my Google App script, but the File API is now deprecated and I am unable to update the code. The original lines are: var folder = DocsList.getFolder('Folder Name'); var file = folder.getFilesByType(DocsList.FileType.SPREADSHEET)[0]; var filename = file.getName(); //and get its name var fileId = file.getId(); // its ID var fileurl = file.getUrl(); //and its url var source = SpreadsheetApp.openById(fileId);` I need my script to go to a folder on my drive, get the

Is DTD deprecated?

天涯浪子 提交于 2019-12-24 04:30:07
问题 In What is difference between XML Schema and DTD?, two answerers state that DTD "is deprecated". One of them, user vtd-xml-author, states that DTD is pretty much deprecated because it is limited in its usefulness [...] at which user Jesse Chisholm comments Deprecated? No. [XDR is deprecated] Going out of fashion? Maybe [...] In What is DTD exactly?, user AlexR comments on an answer as follows: Note that DTD is deprecated in favor of the more declarative and powerful XSD. In this case, no-one