Vote count: 0 I need to refactor an Android source code. For example, I need to change some Java methods signatures but Android source code is massive and finding and changing each method call signature manually is just not practical. My question is: How can I change a Java method signature and change all its corresponding calls automatically. Remember Android source code is a mix of Java code and C/C++ code. Here is a link to the Android source code that I need to change. asked 59 secs agoUser ...
ادامه مطلبVote count: 0 I asked a question recently to see if it's possible to conditionally load modules based on selectors on the page (e.g, by id, data-* attribute). The answer indicated that this could be done in the following way: const map = { '#one': 'one', '#two': 'two' }; for (let selector in map) { if (document.querySelector(selector)) { System.import(map[selector]); } } To follow-up with this, I want to know if it's possible to System.import() inside of a .then promise callback of a System.impo...
ادامه مطلبVote count: 0 I have a pretty big asp.net-mvc site with 100 controllers and thousands of actions. Previously the header image that was defined on the Site.Master page was hardcoded and I want to make it dynamic. To Do so, i added this line to my Site.Master file: which just retus some HTML for the header title. The issue is that also had this same hard coded value. I could obviously create another HTML.Action to have it show the dynamic valid in the title but now I am going back to the server tw...
ادامه مطلبVote count: 0 I am evaluating DocumentDb and attempting to submit a query via the DocumentDb Rest api. When I attempt to post the query, I'm receiving the following error messages: "The input content is invalid because the required properties - 'id; ' - are missing" "The request payload is invalid. Ensure to provide a valid request payload." this seems to indicate that the documents in the collection do not have an id property, but here's my current test data that I retrieved from the azure port...
ادامه مطلبVote count: 0 Profile Sharing Server-Side Integration (PayPal-iOS-SDK) Retrieve Customer Information Using a Valid Access Token. but it is not working (customer Information not fetch what is issue in my code. if any idea and code please help me ) $access_token = "A103.9RZJFEa4fW5sQOX6DFsfTTH1tCPV_Om-icjqwrzzi2e1n7Jd_iFYBkrCCK_2ENsg.W5-JERJfcL6VphiZEbjeOLA-IAe"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://api.paypal.com/v1/identity/openidcoect/userinfo/?schema=openid"); curl_setopt(...
ادامه مطلبVote count: 0 My class contains a field like the following: [DataMember(Name = "password")] public string Password { get; set; } After the write operation completed my password field stored without encryption(just like "mypassword"). How to store it in MongoDB in encrypted format? asked 3 mins agoivan_petrushenko This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#p...
ادامه مطلبVote count: 0 There are three headings shown during radio duty cycle simulation in cooja: radio_on, radio_rx and radio_tx. The meaning of radio_rx and radio_tx are obvious. What is meant by radio_on option? asked 29 secs agoSaurabh Kumar Pandey This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....
ادامه مطلبVote count: 0 What I would like to do is change the icon of my program when it runs. Code I've found is: try { String imagePath = "res/Image.png"; InputStream imgStream = this.getClass().getResourceAsStream(imagePath ); BufferedImage myImg; myImg = ImageIO.read(imgStream); this.setIconImage(myImg); } catch (IOException e) { e.printStackTrace(); } My question is: where do I put my image and how do I get its path? End result would be to have an .exe (or worst case a .jar) that I would just have to...
ادامه مطلبVote count: 0 I'm trying to create a simple Node.js console app using TypeScript ECMAScript6 using Visual Studio 2015 community edition and not able to use a class defined inside a module in app.ts. Visual studio does however displays the module "DataModels" as namespace and also the class in intellisence, but it throws an error while initializing it in app.ts Error: ReferenceError: DataModels is not defined Tried VS project settings using AMD and CommonJs as module system but no luck. Folder st...
ادامه مطلبVote count: 1 In a simple browserify app, I'd like to use the this keyword to reference other functions in an exported object, but it doesn't seem to be working as I'd expect it to: (function() { module.exports = { a: function() { console.log('Hello World'); }, b: function() { this.a(); // Problem: this is set to window.document } }; })(); I'd assumed that the above code would work, but it seems that this is set to window.document instead of the exported object. I'm fairly sure I've had this wor...
ادامه مطلبVote count: -1 I found NetBeans IDE on the official site of oracle (www.oracle.com) and from netbeans.org available for download and on oracle's site its download package for windows is 305 MB and on netbeans.org site the package is maximum of 215. So I can not find what is difference in both the installer package and which is best for begier Java developer? I mean oracle provides installer of 305 MB so obviously it may have more features, so what exactly difference between them? asked 1 min ago...
ادامه مطلبVote count: 0 I have a project that Ive made so far and here are my desired outputs Test 1 Test 1 and Test 2 Here are the directions."Write a class called Book that contains instance data for the title, author, and pages. Define the Book constructor to accept and initialize this data. Include setter and getter methods for all instance data. Include a toString methods that retus a string like below: Author: name of the author in one word Title: title in one word Pages: number of pages example: Au...
ادامه مطلب