Posts

Java pass by reference -

इस सवाल का पहले से ही एक उत्तर है: 71 उत्तर क्यों इस कोड में मैं कर सकता हूँ स्ट्रिंगबफर का स्वैप नहीं है? सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग [] आर्ग्स) {स्ट्रिंगबफर ए = नया स्ट्रिंगबफर ("वन"); स्ट्रिंगबफर बी = नया स्ट्रिंगबफर ("दो"); स्वैप (ए, बी); System.out.println ("एक है" + ए + "\ nb है" + बी); } स्थिर शून्य स्वैप (स्ट्रिंगबफर ए, स्ट्रिंगबफर बी) {a.append ("अधिक"); बी = ए; } क्योंकि आप चर के संदर्भ में काम नहीं कर रहे हैं a और b और नए स्ट्रिंगबफ़र ("वन") और नए स्ट्रिंगबफ़र ("दो") संदर्भों के साथ। तो b = a से आप a और b को मुख्य लेकिन स्थानीय प्रतियों में नहीं बदल सकते हैं।

.net - LINQ To Datatable using "Any" with a List -

OK, I can not find it, I use a list of strings in my data to loop through a data sheet. I am trying, but I am not able to work on it. This is what I am trying to do: if d = "these" then lInOutStrings.Add ("Part in") or other lInOutStrings.Add ("Inventory" ) The new option with lInOutStrings.Add ("Repair") is included in the end (if part of the "API") ("INVT_TYPE") in dtParts for each part (LInOutStrings.ToString). ...}) Next ... The problem is that the query does not always give anything, what I found is that, but I am not able to complete the question. What is it that I am doing wrong? I am using VB.Net 2010 and .NET 4.0 This is on the other side, look in the list, not in the string (which is IEnumerable ): in slow query = dtParts.AsEnumerable () where lInOutStrings.Contains ( U.Field (with string) ("INVT_TYPE")) Select new {....}

ios - How to disable user interaction of section index for UITableView? -

I have applied a section index to the right of the table app, which is my app I would like to disable user interaction with that section index in some circumstances, but there is no property on UITableView which allows access to the section index directly How can I disable user interaction for the section index? I have disabled the interaction with the table so that you can not scroll or scroll to any cell, but it still allows the section to interact with the index, so This section will scroll to each section when tapping the section. self.tableView.userInteractionEnabled = NO; If it is not possible to disable interaction with the section index, is there a way to prevent the scrolling of the table from changing? That's exactly what I wanted. I got a solution. Keep a BLL to know when section indexes should be disabled. Then indexed to prevent from scrolling in tableview: sectionForSectionIndexTitle: atIndex: simply return -1 . - (NSInteger) Table vie...

php - Recognising visitors between domains -

Is it possible to get user information that can be used as a unique identifier among domains? What I am trying to do is as a quick example (not exactly, but the principle is the same) that says you have a main website in UK- News.com. You also had three other sites - England-News, Scotland-News.com and Wales- News.com, all of which were hosted on the same server. All 4 sites will share the same database and each just drag relevant information about it. If a user becomes a member of one of the sites, then they have the option of becoming a member of any or all of the others. Will also be given. If a user signs in to the site then he is a member of a member, and then goes to someone else, and how the site can get to recognize it by signing it, so it automatically logs it happens? My principle is to provide some user information (IP, USANN.NET, browser, screen resolution, computer name, OS) in the database via PP Had to store and then check against all those people when the user...

jquery - Make Ajax-call and take care of the response -

I use a free API for collecting users information from Ip-adress. This method: public JsonResult GetIp () {string url = "http://ip-api.com/json"; Dynamic googleResults = new URI (url) .GetDynamicJsonObject (); Jason Returns (GoogleResults, JsonRequestBehavior.AllowGet); } When this page is provided to the method, then I am thinking this way: $ (document) .ready (function ("Type" "Post", url: '@ Url.Action ("GetIp", "Home"), Content Type: "Application / Jason; Charset = UTF-8", Datatype: "Jason ", // here I need the code which receives JSON from the controller ...});}; Besides, is it the best way to go about this kind of work? I was reading that Jason can also be passed as a simple string? Any suggestions on best practice appreciated. Thank you. You will not find the client in this way, you will get a server IP because it calls the machine. Do you want the call to be directly in JavaScript...

Github check for pull done on github repository -

Is there any way to check Gitob repo that someone has drawn from it or connecting that person as that ally after? If it is important then the repo is private. No (unless there are some internal logs about GitHub support). The highlighted by will include: But nothing about pull / fetch / clone

sql - How to consolidate blocks of time? -

I have a derived table with a list of seconds relative to the foreign key (id): Create table time (id INT, time INT, time INT); The table contains mostly non-overlapping data, but there are occasions where I have a timetable & lt; Time from any other record: + ---- + ---------- + -------- + | ID | From time to time Time to + ---- + ---------- + -------- + | 10 | 10 | 30 | | 10 | 50 | 70 | | 10 | 60 | 150 | | 10 | 75. 150 | | .. | ... | ... | + ---- + ---------- + -------- + The result set means a flat linear inactive report, but in these With so many overlaps from, I end up with negative time in use. To wit. If the window above was 150 seconds long for the id = 10 , and I had expressed the difference of relative seconds to decrease the size of the window, give me the code (20 + 20 + 90 + 75) = - 55 . I have tried this approach, and I came to know that there were overlaps that were flattened. So, what I'm looking for is the solution to level one overlap at on...