pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
38,009,704 | 0 | <p>You need to provide full path to the .trx file. With below changes in begin analysis and try it again.</p> <p><strong>Change</strong></p> <pre><code>/d:sonar.cs.vstest.reportsPaths=../TestResults/*.trx </code></pre> <p><strong>To</strong></p> <pre><code> /d:sonar.cs.vstest.reportsPaths=../TestResults/Mytest.trx </c... |
39,646,916 | 0 | How to run exe file in VM using PowerCLI? <p>Recently I am working on VMs, using vSphere. I'm also using PowerCLI to automate some stuff. I discovered the cmdlet <code>Invoke-VMScript</code> which allows scripts to be ran on the VM using PowerShell.</p> <p>Everything worked just fine until I tried to install a program ... |
26,915,792 | 0 | How to use multiple controller or how properly use Apache Tiles? <p>I make website by Spring MVC and have few questions:</p> <ol> <li><p>For presented the view I use Apache Tiles tool. Is it a good idea or is there better ways?</p></li> <li><p>There are body and rightsidebar in my website structure. For secure I use th... |
6,796,319 | 0 | Batch file to determine if using Command Prompt <p>The last line in my batch file is <code>pause</code>. Is there any way to add a if condition to see if the script is run within command prompt or by double clicking to execute? I want to skip pause if it's running in command prompt.</p> <pre><code>... ... if not RUN_IN... |
7,926,844 | 0 | <p>I solved the problem! </p> <p>I'm developing this app using Flash Builder 4.5, and I made a debug/run configuration for iPhone4.<br> Now, when you're specifying a run/debug configuration, you can select a checkbox 'Clear application data on each launch'. This checkbox needs to be UNCHECKED, because this will clear ... |
12,301,247 | 0 | <p>Don't pass a <code>ByteArrayOutputStream</code> to the <code>PumpStreamHandler</code>, use an implementation of the abstract class <code>org.apache.commons.exec.LogOutputStream</code>. Something like this:</p> <pre class="lang-java prettyprint-override"><code>import java.util.LinkedList; import java.util.List; impo... |
33,194,823 | 0 | <p>That's right. <code>PriorityQueue</code> of Java does not offer a method to update priority and it seems that deletion is taking linear time since it does not store objects as keys, as <code>Map</code> does. It in fact accepts same object multiple times.</p> <p>I also wanted to make PQ offering update operation. He... |
7,196,259 | 0 | Given an instance of any class type, how to find out which parent class and/or traits it inherits from or implements? <p>Suppose there are class/trait definitions as follows:</p> <pre><code>trait T1 {} trait T2 {} abstract class A{} class B {} class C extends A with T1 with T2 {} val b = new B with T1 val c = new C </c... |
20,984,959 | 0 | <p>The pointer returned by placement new can be just as UB-causing as any other pointer when aliasing considerations are brought into it. It's your responsibility to ensure that the memory you placed the object into isn't aliased by anything it shouldn't be.</p> <p>In this case, you cannot assume that <code>uint8_t</c... |
30,524,753 | 0 | <p>Usually it happens because you have an event associated JComboBox. It is solved if you have control item in the JComboBox to act, for example:</p> <pre><code>jComboBoxExample.addActionListener (new ActionListener () { public void actionPerformed (ActionEvent e) { do_run (); } }); public void do_run() { int n=jCombo... |
16,574,304 | 0 | <p>I had the same problem too (access_token=0), but then I realized I was clearing Facebook cookies before calling getLogoutURL(). If you get the getLogoutURL() result first, access_token should not be zero.</p> |
35,375,993 | 0 | MongoDB 3.2.1 Java BasicDBObjectBuilder <p>I am getting the following Error when I tried to insert BasicDBObjectBuilder into collection</p> <blockquote> <p>Caused by: java.lang.ClassCastException: com.mongodb.BasicDBObject cannot be cast to com.mongodb.BasicDBObjectBuilder</p> </blockquote> <pre><code> MongoClient mong... |
21,840,030 | 0 | <p>It's a bug, because I don't have enough Motorola devices in my portfolio and missed a flaw in my new <code>getDefaultProfile()</code> implementation. Track <a href="https://github.com/commonsguy/cwac-camera/issues/104" rel="nofollow">the bug that you linked to</a> and watch for an 0.6.1 release soonish. My apologie... |
31,095,457 | 0 | Google APIS return wrong zip code <p>I try to get the map from Google APIS, my link is: <a href="https://maps.googleapis.com/maps/api/geocode/json?address=%E3%80%92106-6108%E6%9D%B1%E4%BA%AC%E9%83%BD%E6%B8%AF%E5%8C%BA%E5%85%AD%E6%9C%AC%E6%9C%A8%E5%85%AD%E6%9C%AC%E6%9C%A8%E3%83%92%E3%83%AB%E3%82%BA%E6%A3%AE%E3%82%BF%E3%... |
14,028,631 | 0 | ln image uploading through http post in php server in android get the Error in http connection java.lang.NullPointerException <p>Hi I m try to upload the image in server through different method in android but it error in logcat Error in http connection java.lang.NullPointerException</p> <p>and here is my code plz tell... |
33,249,484 | 0 | <p>Some close alternatives are <code>std::vector</code> and <code>std::array</code>. </p> <p>If you want to use an array of bytes, usually <code>uint8_t</code>, you will need to pass the array to functions, <em>as well as the capacity and the number of elements in the array</em>. </p> <p>The issue is that when arrays ... |
14,283,665 | 0 | <p>Would a linq query like this be faster:</p> <pre><code>var matches = ( from f in family_list join b in busy_list on f.color == b.color && f.name == b.name select new {f, b} ); </code></pre> |
15,515,301 | 0 | <p>Try this way</p> <pre><code> UISwipeGestureRecognizer *_swipeRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(didSwipe:)]; [_swipeRecognizer setDirection:UISwipeGestureRecognizerDirectionLeft|UISwipeGestureRecognizerDirectionRight]; [_swipeRecognizer setDelegate:self]; [self.view ... |
21,927,505 | 0 | Does DBCursor.getServerAddress work as I expect? <p>I expect <a href="http://api.mongodb.org/java/2.6/com/mongodb/DBCursor.html#getServerAddress%28%29" rel="nofollow">getServerAddress</a> to return the address of the Mongo server (one of replica set nodes), which actually handles the query.</p> <p>I am logging output o... |
31,532,854 | 0 | <p>I would go with a regex. I am not sure how to do this in Java but in python that would be:</p> <pre><code>(\w+):([ ,\w]+)(,|$) </code></pre> <p>Tested on <a href="http://pythex.org/" rel="nofollow">pythex</a> with input <code>abc:xy z uvw, def:g,hi, mno:rst</code>. The result is:</p> <pre><code>Match 1 1. abc 2. xy... |
20,780,300 | 0 | <p>The error you are getting acoording to the log is a problem concerning ClassPaths.</p> <p>Read <a href="http://stackoverflow.com/questions/34413/why-am-i-getting-a-noclassdeffounderror-in-java">here</a></p> |
19,300,890 | 0 | <p>I'm not sure what are you looking for, But if you have ssh access to server, I propose to use filesystem backup or some useful tools like <a href="http://www.percona.com/doc/percona-xtrabackup/2.1/innobackupex/innobackupex_script.html" rel="nofollow">innobackupex</a> instead of mysqldump. For big data mysqldump isn... |
8,073,011 | 0 | <p>Pretty straightforward:</p> <pre><code>0[0-9]{3}(w000|n000|wd00|nd00)[a-z0-9]{7} </code></pre> <p>There are plenty of other ways you can represent this, but this should match the string you described.</p> |
30,681,861 | 1 | python socket json -- no JSON object could be decode <p>My python version is 2.7, and I encounter a problem as below picture <img src="https://i.stack.imgur.com/Y1OBH.jpg" alt="enter image description here"></p> <p><strong>This is the client</strong></p> <pre><code>name = raw_input("Please enter your username: ") passw... |
15,963,140 | 0 | <p>I have done the same swipe to delete functionality using <a href="https://github.com/alikaragoz/MCSwipeTableViewCell" rel="nofollow">MCSwipeTableCell</a></p> <p>For deleting a particular row from table with animation do this:</p> <pre><code> //I am passing 0,0 so you gotta pass the row that was deleted. NSIndexPath... |
9,498,632 | 0 | <p>Check out everything at <a href="http://diveintohtml5.info/detect.html#techniques" rel="nofollow">Dive into HTML5</a> especially the 'Detecting HTML5 Techniques' section. It has pretty much everything you may need.</p> |
1,788,256 | 0 | Checking the existane of a particular character in an array of strings <p>i have an array of strings say for example @"123",@"373",@"221",@"921" .I need to check in how many elements of that array 2 exists and want to concatenate those elements into a mutable string and finally eradicate all two and prepare a string.I ... |
35,038,487 | 0 | <p>Abstract classes are similar to interfaces. You cannot instantiate them, and they may contain a mix of methods declared with or without an implementation. However, with abstract classes, you can declare fields that are not static and final, and define public, protected, and private concrete methods. With interfaces... |
27,573,303 | 0 | <p>I used <a href="http://www.codeproject.com/Articles/155422/jQuery-DataTables-and-ASP-NET-MVC-Integration-Part" rel="nofollow noreferrer">this</a> reference to implement DataTables with row details in MVC 4 using the Razor engine (I initially wanted to pass JSON, but found another approach that provides the function... |
16,145,849 | 0 | <p>Because <code>typeof</code> will only return string, so it is safe to compare two strings with <code>==</code>.</p> |
31,225,566 | 0 | <p>You can't use the matched group (<code>\1</code>) as a value for the <code>upload:</code> part of a static-handler - it needs to know precisely which files to upload to the static servers.</p> |
14,500,403 | 0 | <p>It should be pretty easy with list comprehensions</p> <pre><code>[ f for f in sftp.listdir("path_to_files") if f.endswith(".csv") ] </code></pre> |
30,413,134 | 0 | rails bundle install sqlite3 failed in kali linux <p>Please help me to resolve this problem I use kali linux os!! root@artisla:~/Documents/Adilet/Programming/blog# gem install sqlite3 -- --with-sqlite3-dir=/opt/local Building native extensions with: '--with-sqlite3-dir=/opt/local' This could take a while... ERROR: Erro... |
1,771,379 | 0 | <p>Python:</p> <pre><code>import os import sys if os.isatty(sys.stdin.fileno()): print "is a tty" else: print "not a tty" </code></pre> <p>I'm not aware of a Java equivalent using the default libraries; Jython appears to use native code (<a href="http://kenai.com/projects/jna-posix" rel="nofollow noreferrer">jna-posix... |
24,220,654 | 0 | Angular - linking to a ngInclude partial <p>I have followed the documentation on setting up <a href="https://docs.angularjs.org/api/ng/directive/ngInclude" rel="nofollow"><code>ngInclude</code></a> and have it working (loading in HTML partials) and changing the partial when a select option is changed.</p> <pre><code>$s... |
2,521,628 | 0 | <p>As mentioned above, use collection initializers. In addition, if you are looking to convert from string[] to List , you can use the ToList() extension method in the System.Linq namespace like so:</p> <pre><code>string[] s = { "3", "4", "4"}; List<string> z = s.ToList(); </code></pre> |
32,436,354 | 0 | <p>Typically, I attach an event to the <code>onload</code> event of the window. This will be fired whenever all the resources <em>initially present</em> on the page have loaded (css/html/images/sounds/videos).</p> <p>To do this, you simply need do the following:</p> <p><code>window.addEventListener('load', onDocLoaded... |
31,749,735 | 0 | request only htaccess auth for one of many domains <p>I have a system where x domains could lead to the same folder on the server.<br> (content is shown by the Database for the given domain)</p> <p>Now I want to develop a new page but I would need a htaccess auth only for this domain.</p> <p>example1.com ok<br> example... |
10,595,090 | 0 | Derelict2 on Mac OS X 10.7: SDL failing to build <p>I'm trying to build <a href="http://www.dsource.org/projects/derelict" rel="nofollow">Derelict2</a> on Lion as per the included <a href="http://svn.dsource.org/projects/derelict/branches/Derelict2/doc/build.html" rel="nofollow">installation instructions</a>. When I ru... |
2,018,121 | 0 | <ul> <li><p>At the Microsoft 2009 Mix Web developer conference, all the presentations that I attended included code examples in C#, not VB.</p></li> <li><p>In StackOverflow, notice how questions tagged c# largely outnumber vb.net and vb.</p></li> <li><p>John Skeet wrote <em><a href="http://csharpindepth.com/" rel="nof... |
24,959,488 | 0 | <pre><code>declare @query varchar(8000) select @query=' SELECT * FROM Products WHERE Name LIKE ''%' + replace((SELECT TOP 1 Gift.name FROM Gift),' ','%'' or name like ''%') + '%''' exec (@query) </code></pre> |
1,138,066 | 0 | Javascript DoEvents equivalent? <p>Here is my shortened code snippet:</p> <pre><code>$(document).ready(function() { $.get("/Handlers/SearchData.ashx", function(data) { json = $.evalJSON(data); }); //do some other stuff //use json data alert(json == null); }); </code></pre> <p>Alert says true because evalJson is not don... |
9,466,287 | 0 | Erlang: How to transform a decimale into a Hex string filled with zeros <p>I would like to transform 42 (Base 10) into 000002A (Base 16) in Erlang...</p> <p>I have found some pointers on the web : </p> <pre><code>io:format("~8..0B~n", [42]) -> 00000042 </code></pre> <p>And</p> <pre><code>io:format("~.16B~n", [42]) -... |
29,494,339 | 0 | <p><a href="http://bmp.lightbody.net/" rel="nofollow">BrowserMob Proxy</a> might help. I have had luck with it in the past when dealing with basic authentication.</p> |
24,392,590 | 0 | GPRS AT Command CGDCONT - Do I really need an APN? <p>I am developing embedded firmware to communicate with the Multi-Tech's MTSMC-H5 GPRS Modem. I am unclear the use of AT+CGDCONT command. In the H5 modem's Reference Guide, it states the command format is</p> <pre><code>>AT+CGDCONT=[<cid>[,<PDP_type>[,&... |
35,619,834 | 0 | JDBC GUI login, textfield to local string variable <p>I have a TextField for a username named <code>username</code> and a PasswordTextField named <code>password</code>. I declared two local string variables, <code>user</code> and <code>pass</code>. I have a database but I still can't get into the "welcome" part. This i... |
29,661,021 | 0 | <p>Simply replace:</p> <pre><code> .filter_by(year=year) .filter_by(month=month) </code></pre> <p>with:</p> <pre><code>from sqlalchemy.sql.expression import func # ... .filter(func.year(Logs.timestamp) == year) .filter(func.month(Logs.timestamp) == month) </code></pre> <p>Read more on this in <a href="http://docs.sqla... |
17,136,314 | 0 | Ruby on Rails, is it possible to make the model validation dependent on the input? <p>In my project I have two models, <code>Treatment</code> and <code>Category</code>:</p> <pre><code> class Category < ActiveRecord::Base attr_accessible :typ has_many :treatments end class Treatment < ActiveRecord::Base belongs_to... |
18,027,553 | 0 | Get a list of checked checbox values with jQuery <p>I have the following HTML:</p> <pre><code><input type="checkbox" name="subregion[]" value="North East" />North East <input type="checkbox" name="subregion[]" value="North West" />North West <input type="checkbox" name="subregion[]" value="Midlands" />... |
10,751,059 | 0 | <p>I'm pretty sure that is not how JavaScript scoping works...</p> <p>In your example there are 2 ways to do what you would want to do:</p> <pre><code>//this is the bad way imo, since its not really properly scoped. // you are declaring the planeEarth and tpl globally // ( or wherever the scope of your define is. ) va... |
33,608,494 | 0 | Magento is returning “200 OK” status instead of “404 not found” <p>I have installed Magento 1.7.0.2.</p> <p>If I browse to a non-existent URL on my site, I receive a "200 OK" status from the server, despite the URL still being invalid and the 404 page still being presented.</p> <blockquote> <blockquote> <p>culr - I www... |
9,750,309 | 0 | javascript callback not pushing data up to the top of the calls <p>I am slowly learning how to use callbacks and I am running into trouble. I think the code below should work byt it is not.</p> <p>From what I can tell it is not descending in to the recursive function as when it hit another 'tree' entry or outputting an... |
18,871,953 | 0 | <p>There is also <code>goog</code> plugin (requires async and propertyParser), available on <a href="https://github.com/millermedeiros/requirejs-plugins" rel="nofollow">github</a></p> <p>Usage example for google maps:</p> <pre><code>require(["goog!maps,3,other_params:sensor=false"], function(){}); </code></pre> |
12,622,734 | 0 | Why App store not accepting my routing app coverage file? <p>After I upload the Aus.geojson file (routing app coverage file) I get the following error: JSON file you uploaded was invalid. The file must contain only one element of type multipolygon. Below is the JSON file which i was submitting and in which I see only o... |
4,671,059 | 0 | <p>You can create custom form and show it next to the system notification area. <a href="http://www.lmdinnovative.com/products/lmdelpack/" rel="nofollow">LMD ElPack</a> includes TElTrayInfo component for exactly this purpose. </p> |
637,000 | 0 | <p>Can you use reflection to get the list of properties specific to an subclass (instance)? (Less error-prone.)</p> <p>If not, create a (virtual) method which returns the special properties. (More error prone!)</p> <p>For an example of the latter:</p> <pre><code>abstract class Customer { public virtual string Name { g... |
26,726,595 | 0 | <p>The part you are asking about is an anonymous method that uses a lambda expression. It is commonly used in callbacks.</p> <p>When you write this</p> <pre><code>(machine, error) => { SelectedMachine = new MachineViewModel(machine); } </code></pre> <p>you are making a function that has no name (and therefore canno... |
19,380,260 | 0 | <p>Use this NSDictionary below:-</p> <pre><code>//Add how many elements you want to add on your array NSDictionary *yourDict=[NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:@"$Indore", nil] forKeys:[NSArray arrayWithObjects:@"1", nil]]; NSString *yourStr=[yourDict objectForKey:@"1"]; NSLog(@"%@",yourStr)... |
23,758,836 | 0 | <p>(Based on <a href="http://stackoverflow.com/questions/8595389/programmatically-trigger-select-file-dialog-box">Programmatically trigger "select file" dialog box</a>)</p> <p>You call the hidden input button from the dat.GUI button's function.</p> <p>You need to use the jQuery library to make it work</p> <p... |
27,574,155 | 0 | <p>You can open the file feat.params in model folder and look for <code>-upperf</code> parameter. In 8khz model <code>-upperf</code> is usually 3500 or 4000. For 16khz model <code>-upperf</code> is more than 4000, usually 6800.</p> |
11,136,477 | 0 | <p>The easiest way is to try to red it, and catch the exception.</p> <p>Catching the exception is done by defining an entry in the <code>__ex_table</code> secion, using inline assembly.<br> The exception table entry contains a pointer to a memory access instruction, and a pointer to a recovery address. If an segfault ... |
27,260,504 | 0 | <p>I stumbled upon this question after searching for a similar thing. Since (sadly) I didn't find a CSS-only solution for this problem, I ended up using jQuery to do the job.</p> <pre><code>function hrExpand() { var windowWidth = $(window).width(); $('hr').width(windowWidth).css('margin-left', function(){ return '-' +... |
26,194,689 | 0 | <p>I think what your looking for is this:</p> <p><a href="http://developer.android.com/reference/android/location/Geocoder.html" rel="nofollow">getFromLocationName (String locationName, int maxResults)</a> </p> <p>From the docs :</p> <blockquote> <p>Returns an array of Addresses that are known to describe the named lo... |
30,066,110 | 0 | <p>"Hash table" is just a fancier way of saying "ordinary Javascript object". What the instructor means by "handle to its definition" is just another way of saying "the function that acts as a constructor for the class".</p> <p>Ultimately, what he means by the statement you mentioned:</p> <blockquote> <p>each overload... |
37,229,563 | 0 | <p>Objective-C is C. The primitive (what I would call <em>scalar</em>) data types are all numbers and are completely defined by the language; you cannot add to them (though you can rename them using <code>typedef</code>. The corresponding literals, such as <code>1</code> and <code>"hello"</code>, are also part of C.</... |
6,410,176 | 0 | <p>Maybe you are writing something wrong here:</p> <pre><code>$get(_dropdownID).addClass('dropdownTextDisabled'); </code></pre> <p>shuold be </p> <pre><code>$('#_dropdownID').addClass('dropdownTextDisabled'); </code></pre> <p>does it work in other browsers? What is the variable <code>$get</code> you are calling the me... |
16,182,526 | 0 | Android multiline edittext not increasing its height as the user types <p>So the layout is quite simple. A <code>ListView</code> occupying most of the screen, and a <code>RelativeLayout</code> at the bottom containing the <code>EditText</code> and a <code>Button</code> to the right. Everything looks great, but the prob... |
40,600,786 | 0 | Change value of character pointed by a pointer <p>I would like to know why my code giving me error when run.</p> <p>I am trying to change the character value pointed by a pointer variable.</p> <pre><code>#include <stdio.h> int main() { char amessage[] = "foo"; char *pmessage = "foo"; // try 1 amessage[0] = 'o'; /... |
27,511,037 | 0 | <p>Replace</p> <pre><code>return render(request,'templates/login.html',status=302) </code></pre> <p>instead of</p> <pre><code>return redirect(reverse('login')) </code></pre> |
8,896,015 | 0 | <p>Make sure you <code>use Symfony\Component\Security\Core\SecurityContextInterface;</code> in your controller. Without it, the <code>SecurityContextInterface</code> type hint in the constructor won't resolve.</p> <p>Also, make sure your controller is actually being called as a service. The error you posted is complai... |
28,643,732 | 0 | SQL Server : trigger on not inserted row <p>I have two tables. I have defined a trigger on Table A that updates Table B when a row is inserted into Table A. </p> <p>I want to prevent inserting into table A and allow updating in table B if a data with certain values is sent to Table A.</p> <p>Can anyone help me?</p> |
17,384,146 | 0 | CSS tables: changing background on hover, including alternative rows <p>I have created a sample page with a table. Should the page get deleted in the future, <a href="http://pastebin.com/QS3UG51i" rel="nofollow">here's</a> the code on Pastebin.</p> <p>I want to highlight table rows on hover. It works for normal tr but ... |
35,880,698 | 0 | <p>A method which declares a return type must declare a return statement for every possible branch of flow of that method. Which means basically there is a flow of code possible in your method which does not end in a return statement (hint: what happens if your <code>if</code> statement returns false inside the loop e... |
25,450,016 | 0 | <p>You need to convert the date field to varchar to strip out the time, then convert it back to datetime, this will reset the time to '00:00:00.000'.</p> <pre><code>SELECT * FROM [TableName] WHERE ( convert(datetime,convert(varchar,GETDATE(),1)) between convert(datetime,convert(varchar,[StartDate],1)) and convert(date... |
19,548,825 | 0 | <p>Try this code</p> <pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center_horizontal" android:orientation="vertical" > <TextView android:id="@+id/text_nickname" android:layout_width=... |
26,738,163 | 0 | <p>I would change <code>.some-block</code> from <code>float:left;</code> to <code>display:inline;</code>. That way, a standard div like <code>.regular-block</code> will automatically show underneath and you don't need a clear between them.</p> <p>Then you can put the <code>clear</code> div at the bottom to fix the blo... |
8,981,449 | 0 | <p>When you create a D3D device you specify which window do bind it to (third parameter of <code>CreateDevice</code> call). I may suggest that destroying of second device takes out focus in a way which is unseen by the first device. Try explicitly returning the focus back to main window:</p> <pre><code>second_device-&... |
15,068,807 | 0 | <p>You forgot to add the <code>@ORM\</code> prefix in your annotations:</p> <pre><code>/** * @ManyToMany(targetEntity="User", mappedBy="hasAccessToMe") **/ </code></pre> <p>should be</p> <pre><code>/** * @ORM\ManyToMany(targetEntity="User", mappedBy="hasAccessToMe") **/ </code></pre> |
28,101,792 | 0 | <p>I think you should set a UINavigationController to rootviewController , there will be a navigation bar. So you can also set the firstView as rootViewController, but set the viewcontrollers attribute to put the Test viewcontroller that clears before viewcontrollers.</p> |
22,191,064 | 0 | Post a status in facebook and tag friends <p>I am trying to post a status on users own wall and tag the friends on it. I tried FeedDialogBuilder but i can't tag friends with it.Please help me if anyone know how to do it.</p> <pre><code>Bundle params = new Bundle(); params.putString("tags","8768XXX787,"1111XXXX222,"565X... |
14,777,514 | 0 | <p>I've been wondering this for a while also; the OpenCV documentation isn't very helpful when it comes to blob detection.</p> <p>Based on the descriptions of <a href="http://www1.adept.com/main/KE/Data/ACE/AdeptSight_User/BlobAnalyzer_Results.html#Intrinsic_Inertia_Results">other blob analyzers</a>, the inertia of a ... |
11,293,921 | 0 | <p>I tried your URL in a C# program and it also gives me an error. This is due to the status code being 420 which makes the .net framework treat the response as an error response and throw an exception. For more info on using responses with error status code have a look here: <a href="http://stackoverflow.com/question... |
6,355,270 | 0 | <p>In answer to your two questions:</p> <ol> <li><p>The call to <code>fsolve</code> is using an <a href="http://infoshako.sk.tsukuba.ac.jp/ShakoDoc/MATLAB5/help/toolbox/optim/fsolve.html" rel="nofollow">old MATLAB syntax</a> for passing an argument to the objective function. The call is optimizing for the objective fu... |
10,341,396 | 0 | <p>The brackets in the search pattern make that a "group". What <code>$_ =~ /regex/</code>returns is an array of all the matching groups, so <code>my ($tmp)</code> grabs the first group into $tmp.</p> |
34,049,591 | 0 | Odbc parses String as Date using internalGetDate? <p>I am attempting to convert a bit of code I wrote for SQL Server connections to work with an Odbc data source. I've been running into a bit of an issue with OdbcDataReader.GetValue(int) attempting to call OdbcDataReader.internalGetDate for a string field.</p> <p>Here ... |
15,779,007 | 0 | <p>Try adding this piece of code to the top of your program</p> <pre><code>//screen cleared as blue glClearColor(0.0f, 0.0f, 0.4f, 0.0f); glEnable(GL_DEPTH_TEST); glDepthFunc(GL_LESS); glEnable(GL_CULL_FACE); </code></pre> <p>this is from a textured cube program i wrote, you may already have some of these functions im... |
13,288,516 | 0 | <p>You do not need to get the category object, you can just create a new category object and dynamically set the id.</p> <pre><code>var dropdown = (DropDownList)MyFormView.FindControl("dropdown"); var id = dropdown.SelectedValue; item.Category = new Category { CategoryId = id }; </code></pre> |
29,744,137 | 0 | <p>A fragment should be a part of activity. And an activity must be declared in android manifest. There are different ways to start an activity and fragment.</p> |
16,868,580 | 0 | <p>If you want html within php, best way is to separate html and php like,</p> <pre><code><?php //some php code ?> <!--html content --> </code></pre> <p>If there is small html within php then you can do like,</p> <pre><code><?php echo '<b>Bold stuff</b>'; ?> </code></pre> <p>If there is m... |
21,604,826 | 0 | <p><code>using (SqlConnection connection = new SqlConnection(@"Data Source=(local);Integrated Security=True;Initial Catalog=DB_Name;"))</code></p> <p><code>{</code></p> <p><code>connection.Open();</code></p> <p><code>using (SqlCommand command = connection.CreateCommand()) {</code></p> <p><code>command.CommandText =@"S... |
15,508,288 | 0 | <p>You're telling Gson it's looking for a list of maps of Strings to Objects, which essentially says for it to make a best guess as to the type of the Object. Since Float/Double is more generic than Integer, it's a logical option for it to use.</p> <p>Gson is fundamentally built to inspect the type of the object you w... |
29,881,208 | 0 | <p>As in any method call, it just a question of what happens where. If you don't want <code>[self.aMutableArray objectAtIndex:0]</code> evaluated now, don't include it in the invocation expression! Instead, make the invocation expression a call to a method where <em>that method</em> will call <code>[self.aMutableArray... |
21,710,085 | 0 | jQuery: How can I change the color only of the selected option? <p>I have a selection list which in HTML looks like this:</p> <pre><code><select id="language-list"> <option value="English">English</option> <option value="German">German</option> <option value="French">French</optio... |
29,110,967 | 0 | <p>Based on this comment:</p> <blockquote> <p>I didn't think it was relevant to the question. I am of course creating bodies once I start the program, by pressing 'm'. What I want is for deltaTime to update as I press 'm' more times i.e creating more bodies</p> </blockquote> <p>It seems like my guess is correct, that ... |
9,587,859 | 0 | <p><code>__alldiv</code> is the function from Visual Studio C runtime library which handles 64-bit integer division in 32-bit environment, it looks similar to this: <a href="http://www.jbox.dk/sanos/source/lib/lldiv.asm.html" rel="nofollow">http://www.jbox.dk/sanos/source/lib/lldiv.asm.html</a></p> |
1,570,339 | 1 | Does configuring django's setting.TIME_ZONE affect datetime.datetime.now()? <p>The documentation says:</p> <p><a href="http://docs.djangoproject.com/en/dev/ref/settings/#time-zone" rel="nofollow noreferrer">http://docs.djangoproject.com/en/dev/ref/settings/#time-zone</a></p> <blockquote> <p>Note that this is the time z... |
26,221,440 | 0 | <p>Add a listener when inflating the group layout. And you can distinguish which group's switch was clicked by setting a tag that corresponds to that group position.</p> <p>Here's an example:</p> <pre><code>@Override public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) { ... |
19,533,836 | 0 | <p>Yes.</p> <p><a href="http://www.youtube.com/watch?v=AdV7bCWuDYg">This video</a> is a tutorial that shows how to do this and is linked to a github that has source code. You basically have to write wrappers to do server requests to get a polyline between two locations and then you add it to the map. </p> <p>Also, <a ... |
24,753,813 | 0 | <p>Try changing the type of <code>AO</code> from <code>IEnumerable<SelectListItem></code> to <code>string</code>.</p> <pre><code>public string AO { get; set; } </code></pre> <p>Thanks!</p> |
38,004,875 | 0 | iOS app submission and beta review process <p>I'm currently developing an iOS application for a client. The submission review process to the store can often be a lengthy process and is relatively new to me. </p> <p>My client wants to do a beta test using <strong>TestFlight</strong> as well as submitting the app to the ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.