pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
38,294,114 | 0 | How can I cause visual studio to automatically include a using statement like using System.Diagnostics, in every project? <p>How can I cause visual studio to automatically include a using statement like using System.Diagnostics, in every project?</p> <p>I've been developing winforms applications and console application... |
23,639,763 | 0 | <p>The problem is that you recreating your modalVC before you presenting it.</p> <p>EX: What you're doing</p> <pre><code>-(IBAction)presentModalVC:(id *)sender{ ModalVC *modalVC = [self.storyboard instantiateViewControllerWithIdentifier:@"modal"]; [self presentViewController:modalVC animated:YES completion:nil]; } </c... |
2,694,268 | 0 | <p>You can create your own custom controls, inheriting from TextBox, for example. Create properties that store data in the ViewState. That is the fastest and simplest way for me to achieve the result you're needing.</p> |
37,597,526 | 0 | In jvectormap is there a way to show individual us states on page load? <p>I am new to using jvectormap. I was wondering if there was a way to show individual US states on page load? I have USA drill down map working but need to be able to show specific states such as Colorado for example without having to zoom in from... |
32,817,121 | 0 | <p>See <a href="http://stackoverflow.com/questions/32809769/how-to-pass-subroutine-names-as-arguments-in-fortran/32811182#32811182">How to pass subroutine names as arguments in Fortran?</a> for general rules.</p> <p>Don't use <code>external</code> here. It is incompatible with advanced features like array valued funct... |
40,975,592 | 0 | <p>If you are going to use PHP (*nix/Windows) then you are looking for the PHP <code>dio</code> (Direct I/O) extension: <a href="http://php.net/manual/en/book.dio.php" rel="nofollow noreferrer">http://php.net/manual/en/book.dio.php</a></p> <p>From PHP manual:</p> <blockquote> <p>PHP supports the direct io functions as... |
32,195,657 | 0 | <p>place the code in appdelegate.m</p> <pre><code>if ([viewController isKindOfClass:[UINavigationController class]]) { UINavigationController *nav = (UINavigationController *)viewController; [nav popToRootViewControllerAnimated:NO]; } </code></pre> |
770,179 | 0 | PHP / Curl: HEAD Request takes a long time on some sites <p>I have simple code that does a head request for a URL and then prints the response headers. I've noticed that on some sites, this can take a long time to complete.</p> <p>For example, requesting <code>http://www.arstechnica.com</code> takes about two minutes. ... |
15,528,355 | 0 | <p>initialize the jlabels and textareas before <code>add</code>ing them </p> |
28,945,503 | 0 | <p>Instead of duplicating the code as you showed, just <a href="http://api.jquery.com/trigger/" rel="nofollow">trigger a click</a> by adding <code>.trigger('click')</code> to what you have when the document loads:</p> <pre><code>$(function() { $('button').click(function() { $.get('teas.txt', function(data) { var teas ... |
22,863,405 | 0 | <p>Well, just searched more. Found out that I didn’t override my onMeasure method correctly. Here is my new implementation if someone stumbles upon this question:</p> <p><strong>SeatStateView.java:</strong></p> <pre><code>@Override protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec){ // Background i... |
41,005,656 | 0 | <p>Something like:</p> <pre><code>var TaskList = new List<Task>(); //list is populated here, however you're gonna do that //this is a boolean, in case that's not clear var isProjectWorkspaceUrlPopulated = TaskList.Any(q => !string.IsNullOrEmpty(q.ProjectWorkspaceUrl)); if(isProjectWorkspaceUrlPopulated) { //.... |
40,145,870 | 0 | <p>Found the answer. I referred the below link : <a href="http://www.gunaatita.com/Blog/Invalid-Token-Error-on-Email-Confirmation-in-Aspnet-Identity/1056" rel="nofollow">http://www.gunaatita.com/Blog/Invalid-Token-Error-on-Email-Confirmation-in-Aspnet-Identity/1056</a></p> <p>It was due to the machine key generated by... |
5,355,071 | 0 | <p>It looks like the <a href="http://standards.freedesktop.org/wm-spec/wm-spec-latest.html#id2550663" rel="nofollow">EWMH</a> properties <code>_NET_CURRENT_DESKTOP</code> and <code>_NET_DESKTOP_NAMES</code> are what you're looking for. With Xlib, you'd use the <a href="http://tronche.com/gui/x/xlib/window-information/... |
38,473,118 | 0 | is it possible to use inheritance in uiautomator? if so how? <p>When I try to instantiate <code>testAYLogout()</code> and run the application, <code>testAXEndTrip()</code> also runs. Why is that?</p> <pre><code>public class ApplicationTest extends UiAutomatorTestCase { public void testAYLogout() throws RemoteException,... |
2,111,290 | 0 | One active IB transaction the whole lifetime of a single user application <p>Are there any negative impacts when a single user application uses only one IB transaction, which is active as long the program runs? By using only CommitRetaining and RollbackRetaining.</p> <p>Background: I want to use IBQuery(s) and connect ... |
31,734,894 | 0 | <p>Designate an unused column to the right as a 'helper' column and use this formula,</p> <pre><code>=TEXT(--LEFT(A4, FIND("-", A4)-1), "000")&TEXT(--MID(A4, FIND("-", A4)+1,9), "0000") </code></pre> <p>Fill down and sort on the 'helper' column.</p> |
17,943,043 | 0 | <p>There is nothing wrong with getting the same service in multiple methods in a controller.</p> <p>You can change your controller into a service ( <a href="http://symfony.com/doc/current/cookbook/controller/service.html" rel="nofollow">http://symfony.com/doc/current/cookbook/controller/service.html</a> and <a href="h... |
21,654,691 | 0 | Ejabberd webadmin access timeout <p>I just installed ejabberd on a remote server. Let's say remote server's ip is <code>123.123.123.123</code>, and its internal ip address is <code>10.0.0.10</code>.</p> <p>Then, I edited:</p> <h1><code>/etc/ejabberd/ejabberd.cfg</code></h1> <pre><code>%% ... more codes %% Options which... |
6,890,750 | 0 | <p>I can't comment on whether its more effective to use HEAD or trying to do something like drop to the system and do a ping; but I don't think either of them is the solution you should be doing. IMHO, it isn't necessary to poll your connection. There are a lot of situations where a connection could be dropped and I d... |
20,100,120 | 0 | Google Glass Live Card not inserting <p>Glass GDK here. Trying to insert a livecard using remote views from service. I'm launching service via voice invocation. The voice command works, however it appears my service is not starting(no entries in log). Service is in android manifest. Below is code:</p> <pre><code>public... |
37,004,893 | 0 | <p>If you're using Apache the simpler way is to define a global variable http_proxy. On RedHat like edit /etc/sysconfig/httpd and adjust these two lines to your environment:</p> <pre><code>export http_proxy="http://proxy:8080/" export https_proxy="http://proxy:8080/" </code></pre> |
7,457,885 | 0 | <p>All of the answers you've gotten so far are overly complicated and/or slightly misleading.</p> <p>In the first construction/initialization:</p> <pre><code>T a(10); </code></pre> <p>The very obvious thing happens. The second construction/initialization is more interesting:</p> <pre><code>T aa = 10; </code></pre> <p>... |
11,035,849 | 0 | <p>You can use the <code>Insert</code> transformation:</p> <pre><code> <resizer> <plugins> <add name="AzureReader" connectionString="DataConnectionString" xdt:Transform="Insert" /> </plugins> </resizer> </code></pre> <p><a href="http://msdn.microsoft.com/en-us/library/dd465326.aspx">Web.c... |
12,832,239 | 0 | MS Identity and Access Tool MVC 4 <p>This VS 2012 extension is meant to allow me to add a local Development STS to my MVC application <a href="http://visualstudiogallery.msdn.microsoft.com/e21bf653-dfe1-4d81-b3d3-795cb104066e" rel="nofollow">http://visualstudiogallery.msdn.microsoft.com/e21bf653-dfe1-4d81-b3d3-795cb104... |
4,015,901 | 1 | Can I include sub-config files in my mercurial .hgrc? <p>I want to keep my main <code>.hgrc</code> in revision control, because I have a fair amount of customization it in, but I want to have different author names depending on which machine I'm using (work, home, &c.).</p> <p>The way I'd do this in a bash script i... |
30,884,194 | 0 | <p>This looks like a case of duplicate attributes in the <code>AssemblyInfo.cs</code> file. You could delete the AssemblyInfo file and compile your project again.</p> |
33,843,526 | 0 | <p>Sure! My existdb version is 2.2.</p> <pre><code>xquery version "3.0"; declare boundary-space preserve; declare namespace exist = "http://exist.sourceforge.net/NS/exist"; declare namespace request="http://exist-db.org/xquery/request"; declare namespace xmldb="http://exist-db.org/xquery/xmldb"; declare namespace outp... |
30,915,333 | 0 | ANgularJS use data from previous page <p>Is there a way to use data from previous page?</p> <p>I have two pages: '/users' and '/users/:id'</p> <p>'/users' template:</p> <pre><code><div ng-controller="userCtrl"> <div ng=repeat="(k,v) from data"> <span>{{v.name}}</span> <a ng-href="/users/{{k}}... |
36,058,205 | 0 | Session data storing and fetching fails in Chrome <p>The site's form has to use obfuscated names for account and password input fields. So CodeIgniter's controller generates obfuscated names (by <code>strtolower(random_string('alpha', '12'))</code>) each time it makes a form and stores them (<code>$fields_name</code> a... |
36,097,978 | 0 | <p>you'll probably find it easier to query sizes if you work with the gtable,</p> <pre><code>--- title: "Untitled" header-includes: - \usepackage{lipsum} output: pdf_document: fig_caption: yes fig_crop: no keep_tex: yes geometry: width=5in --- ```{r setup, include=FALSE} library(ggplot2) library(dplyr) library(grid) l... |
40,979,989 | 0 | How do i override the submission url when i place order in magento. <p>so i have recently started using magento 1.9. and i have a specific problem i am not sure how to solve. I created a custom payment module, that shows up in the payment options, and when the user places the order , it redirects to my custom checkout ... |
18,624,768 | 0 | <p>If you are already familiar (and comfortable) with</p> <ul> <li>linear algebra</li> <li>basic calculus</li> <li>Newton's laws of motion</li> </ul> <p>then <a href="http://www.museful.net/2011/system-modelling/6dof-rigid-body-dynamics" rel="nofollow">6DoF Rigid Body Dynamics</a> is what you are looking for. It's a b... |
16,016,720 | 0 | <p>It depends for what you want to do with the Acess Token.</p> <p>If you want an acess token to access an user data. You can use the "setExtendedAccessToken" method, how the luschn said in his answer.</p> <p>But, if you want an acess token to access some public information, like an a feed from a public group, or a pa... |
482,276 | 0 | How can I test an NSString for being nil? <p>Can I simply use</p> <pre><code>if(myString == nil) </code></pre> <p>For some reason a string that I know is null, is failing this statement.</p> |
3,465,330 | 0 | <p>Another answer assuming IEEE <code>float</code>:</p> <pre><code>int get_bit_index(uint64_t val) { union { float f; uint32_t i; } u = { val }; return (u.i>>23)-127; } </code></pre> <p>It works as specified for the input values you asked for (exactly 1 bit set) and also has useful behavior for other values (try... |
33,876,999 | 0 | Click doesn't work on this Google Translate button? <p>I am creating an Tampermonkey userscript that would automatically click the "star" button on Google Translate website and save my searches so that I can later view them and rehearse.</p> <p>This is the button that I am targeting: <a href="https://i.stack.imgur.com/... |
19,383,247 | 0 | Casting (converting) number in a format with multiple dots (a version number) to string <pre><code>#define EXTERNAL_API_VERSION 1.12.1 std::string version = boost::lexical_cast<std::string>(EXTERNAL_API_VERSION); </code></pre> <p>This code generates a compilation error:</p> <pre><code>error C2143: syntax error : ... |
22,622,319 | 0 | Scala Future not Awaitable? <p>I am trying to use scala Futures to implement a threaded bulk get from a network service key/value store.</p> <p>roughly</p> <pre><code>import scala.concurrent._ import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.duration._ def bulkGet(keys: List[String]) va... |
3,906,533 | 0 | The opposite of 2 ^ n <p>The function a = 2 ^ b can quickly be calculated for any b by doing <code>a = 1 << b</code>. What about the other way round, getting the value of b for any given a? It should be relatively fast, so <strong>logs are out of the question</strong>. Anything that's not O(1) is also bad.</p> <p... |
9,950,737 | 1 | How to avoid circular dependencies when setting Properties? <p>This is a design principle question for classes dealing with mathematical/physical equations where the user is allowed to set any parameter upon which the remaining are being calculated. In this example I would like to be able to let the frequency be set as... |
16,818,943 | 0 | <p>If I'm not mistaken, scikit.audiolab is merely for reading/writing audio files but I think in addition you'll want to look at the signal processing libraries in scipy to actually build your feature vectors.</p> <p><a href="http://docs.scipy.org/doc/scipy/reference/signal.html" rel="nofollow">http://docs.scipy.org/d... |
32,749,999 | 0 | <p>We use a custom form framework (called ShockOut SPForms) that allows us to display content based on group membership. We make the form as a .aspx file in the site (using sharepoint designer). <a href="https://github.com/jbonfardeci/ShockoutForms" rel="nofollow">Click here</a> to check out the framework. Using this ... |
6,239,807 | 0 | <p>It sounds like you want to compare a short term (5-day) moving average to a longer-term moving average (e.g., something like 90 days).</p> <p>As a refinement, you might want to do a least-squares linear regression over the longer term, and then compare the shorter term average to the projection you get from that.</... |
17,824,370 | 0 | <p>I would use the provided utility sqldump to do this. It will dump out the table you want direct to a CSV file suffixed with .dsql. Works on all platforms. The table parameter works with wildcards so you can select to dump out all tables at once (change the PUB.ABCCode to PUB.% in example below. </p> <p>In my testin... |
40,201,607 | 0 | <p>It happens because of the padding. If you don't use <code>box-sizing:border-box;</code> and add background to that bootstrap column, the background applies to the padding as well. I've added this global rule to your jsfiddle:</p> <pre><code>* { box-sizing: border-box; } </code></pre> <p>and it all works how you int... |
26,149,978 | 0 | <p>Qualify the final line with the namespace of where the protocol was defined. I kept thinking to try to call the <code>whatever</code> method in the <code>other</code> namespace since it was defined there.</p> <pre><code>(what/whatever (->Other)) </code></pre> <p>Thanks goes to @soulcheck and everyone else who to... |
24,429,143 | 0 | <p>To keep it flexible you may use macrodef with nested element attribute for 1-n filesets, f.e.<br> a macrodef that creates a dirlisting in xmlformat for nested filesets :<br></p> <pre><code><macrodef name="dir2xml"> <attribute name="file" description="xmlfile for filelisting"/> <attribute name="rootta... |
21,732,797 | 0 | Provide Custom message on Camel Validation <p>I am trying to provide a custom message upon validation failure as oppose to the sending the stack trace to the user. It seems I am not understanding how to do this. My route is as follows:</p> <pre><code> <route> <from uri="restlet:/foo"/> <onException> &... |
5,359,321 | 0 | <p>I finally found the answer myself.</p> <p>It is possible to query the "like" table using the comment "xid" as a "post_id".</p> <pre><code>SELECT post_id, user_id FROM like WHERE post_id = <comment xid> </code></pre> |
18,960,152 | 0 | <p>This is quite hacky, but should work:</p> <pre><code>:path => @path.as_json.merge(:questions => @path.questions.as_json) </code></pre> <p>Eventually you can override as_json inside your model:</p> <pre><code>def as_json(options={}) includes = [*options.delete(:include)] hash = super(options) includes.each do ... |
22,407,806 | 0 | <p>You need to reference the image relative to your pages. For example, if your site is structured built in a folder called public_html and your page your image is to be located on is index.html and you've placed an image called example.jpg in a folder called img within public_html, you could reference that image from... |
4,368,012 | 0 | <p>Look into <a href="http://dev.mysql.com/doc/refman/5.0/en/join.html" rel="nofollow">joins</a> for selecting data from multiple tables:</p> <pre><code>SELECT * FROM Prices LEFT JOIN (Vendors, Products) ON (Products.product_id=Prices.product_id AND Vendors.vendor_id=Prices.vendor_id) </code></pre> |
13,195,822 | 0 | <p>You could take a dictionary but make sure that you prevent duplicate key insertion. Keys of dictionary would serve as the unique numbers you need</p> |
11,567,649 | 0 | <p>You likely have a retain loop. Use the Allocations tool in Instruments with <a href="http://www.friday.com/bbum/2010/10/17/when-is-a-leak-not-a-leak-using-heapshot-analysis-to-find-undesirable-memory-growth/" rel="nofollow">Heapshot</a> to find it.</p> |
12,284,387 | 0 | <p>Take a look at this link <a href="https://developers.google.com/analytics/resources/articles/gdata-migration-guide" rel="nofollow">https://developers.google.com/analytics/resources/articles/gdata-migration-guide</a>. Look at section "Create a Project in the Google APIs Console" it will walk you through the whole pr... |
34,461,270 | 0 | <p>Don't bother with splicing the array, just create a new one:</p> <pre><code>var newArray = []; $('#clearChecked').click(function() { $('#keyWords > input').each( function (n, obj) { if ($(obj).is(':checked')) { newArray.push($(obj).val()); } } }); localArray = newArray; </code></pre> |
36,595,895 | 0 | <p>This should work (though not recommended)</p> <pre><code>^(55[0-5]|5[0-4][0-9]|[1-4][0-9][0-9]|[1-9][0-9]|[5-9])$ </code></pre> <p><strong><a href="https://regex101.com/r/mX2eE9/3" rel="nofollow">Regex Demo</a></strong></p> <p><strong><a href="http://ideone.com/gM4waF" rel="nofollow">Proof of correctness</a></stron... |
22,219,282 | 0 | <p>It is probably because you are not calling the method from UI thread. Try using Dispatcher.BeginInvoke:</p> <pre class="lang-cs prettyprint-override"><code>Dispatcher.BeginInvoke(()=> { tbl1.Text = ""; tbl1.Visibility = System.Windows.Visibility.Collapsed; }); </code></pre> |
2,212,998 | 0 | How to restrict renaming a file in VB.NET? <p>Is it possible to restrict renaming a exported file in <a href="http://en.wikipedia.org/wiki/Visual_Basic_.NET" rel="nofollow noreferrer">VB.NET</a>?</p> |
11,474,265 | 0 | <p>Do you know what type of server your using? If IIS, you need to make sure that it's set up to work with your file extensions.</p> |
3,018,906 | 0 | <blockquote> <p>But what if you wanted to model Mt. Everest?</p> </blockquote> <p>You'd use something else. Clearly, if every engine you've encountered uses heightmaps, it works just fine for them. No need to overcomplicate things if the simple solution works for you.</p> |
36,922,012 | 0 | <p>Okay, I think my issue was forgetting how multinomial regression works. The prediction formula for multinomial regression is</p> <p><a href="https://i.stack.imgur.com/IX4xO.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IX4xO.gif" alt="enter image description here"></a></p> <p>So you need a set ... |
8,773,966 | 0 | <p>The <code>readlines()</code> method of a file object returns a list of the lines of the file <em>including the newline characters</em>. Your checks compare with strings not including newline characters, so they always fail.</p> <p>One way of getting rid of the newline characters is</p> <pre><code>lines = (line.stri... |
5,106,441 | 0 | <p>Literal bytes, shorts, integers and longs starting with <code>0</code> are interpreted as being <a href="http://en.wikipedia.org/wiki/Octal" rel="nofollow">octal</a></p> <blockquote> <p>The integral types (byte, short, int, and long) can be expressed using decimal, octal, or hexadecimal number systems. Decimal is t... |
16,374,870 | 0 | Fancybox gallery with images in different places <p>I have a (html) page with an image gallery (all images together) and one separate image.</p> <p>I put all the images from the image gallery in a</p> <pre><code><div id="imageGallery"> </code></pre> <p>I put the separate image in a</p> <pre><code><div id="sepa... |
10,393,734 | 0 | <p>The second one is a completely different selector. <code>tr .c</code> with a space in between looks for an element with class name "c" that has an ancestor <code><tr></code> element. The first one <code>tr.c</code> looks for a <code><tr></code> element that has the class name "c".</p> <p>This has nothin... |
18,535,855 | 0 | <blockquote> <p><em>Is there some kind of "interpolate string" function, where I can add hash k-v pairs to an existing hash.</em></p> </blockquote> <p>No need for <em>interpolation</em>.</p> <p>Do this:-</p> <pre><code> merge(attribute_name => stuff) </code></pre> <blockquote> <p><em>Another thing, what happens in ... |
3,876,002 | 0 | <p>Smalltalk's keyword-like syntax for method calls inherently defines the arity of the method. There's no <code>&rest</code> pattern like in Common Lisp.</p> <p>You can of course have a method take a list, like <code>BlockClosure>>valueWithArguments:</code> but that's hardly the same thing.</p> <p>You might... |
31,539,404 | 0 | Way to Attach to an Oxyplot render exception <p>I have an oxyplot plot that is occasionally throwing an exception and displaying it to my users, but it does not bubble up to my application. Is there a way to attach to an event that occurs when this exception is thrown? Or some other way to bubble the exception up so I ... |
11,952,461 | 0 | <p>Check out e.g. the <a href="http://en.cppreference.com/w/cpp/string/byte/strtok" rel="nofollow"><code>strtok</code></a> function. Use it in a loop to split at the <code>'&'</code> to get all the key-value pairs into a vector (for example). Then go though the vector splitting each string (you can use <code>strto... |
11,949,181 | 0 | <p>To get speedups with GPUs, you want to have lots of computation per data element because data transfer is so slow. You usually want 2 or 3 nested for loops running on the GPU with at least a 1000 threads.</p> |
21,071,922 | 0 | <p>Youre question is confusing on the output you are trying to achieve but,</p> <p>you could use a <code>list</code> like this:</p> <pre><code>list1 = [1,2,3,4] return list1 </code></pre> <p>then you can acsess those values from on variable</p> <p>More on <a href="http://docs.python.org/release/1.5.1p1/tut/lists.html"... |
24,562,320 | 1 | math domain error (linalg) in statsmodels.tsa.api.VAR <p>I am trying to use Vector Auto Regression (VAR), but I got this error: ValueError: math domain error</p> <p>Here is my code: (and also I don't know how to give it only one dimensional data)</p> <pre><code> Y = [data[0,:] , data[1,:]] import statsmodels.tsa.api Vm... |
9,258,689 | 0 | tap event not working in view <p>Please check the code below, what I am doing wrong? I want to output to console when tap event on body.</p> <pre><code> Ext.define('iApp.view.LoginView', { extend: 'Ext.Panel', xtype: 'loginViewPanel', config: { style: "background-color: #3f3f3f;", html: 'hello world', listeners: { el: ... |
30,741,920 | 0 | <p>Use the query to store the raw quotients and adjust the field's <em>Format</em> property afterward.</p> <pre class="lang-sql prettyprint-override"><code>SELECT ([DB].[Number1] / DB.[Number2]) AS [New Column Name] INTO newTable FROM [OldTable] as DB; </code></pre> <p>You can open the table in Design View and choose ... |
10,060,450 | 0 | RedirectToAction returns to calling Action <p>Inside my Index action I call my NotFound Action. I follow in debug and the if condition tests true, it goes to the "return RedirectToAction("NotFound");" statement, it then goes to Dispose and then returns to the Index Action not the NotFound Action. If I Redirect to the D... |
21,239,182 | 0 | <p>In MapReduce, have the first line of your mapper parse the line it is reading. You can do this with custom parsing logic, or you can leverage pre-built code (in this case, a CSV library).</p> <pre><code>protected void map(LongWritable key, Text value, Context context) throws IOException { String line = value.toStri... |
5,127,017 | 0 | Automatic Numbering of Headings H1-H6 using jQuery <p>I read <a href="http://stackoverflow.com/questions/535334/html-css-autonumber-headings">related</a> posts, but didn't find a solution for IE, so I ask for a jQuery-solution for this problem:</p> <p>I've some nested hierarchical Headings like this</p> <pre><code><... |
38,747,747 | 0 | <p>Try this code : </p> <pre><code>YourViewControllerClass *viewController = [[UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil] instantiateViewControllerWithIdentifier:@"ViewController"]; // instanciate your viewcontroller [(UINavigationController *)[self sideMenuController].rootViewController pushViewCon... |
38,428,975 | 0 | Why can't I see HttpUtility.ParseQueryString Method? <p>I am developing a simple app to consume a web API using this new fantastic .Net core framework. In one of my previous projects I use HttpUtility.ParseQueryString to parse the query string. But I couldn't find any reference to this method in new Asp.Net core RC2 as... |
39,641,416 | 0 | vuforia SDK for an IBM MobileFirst <p>I need to implement a few vuforia functionalities in an IBM MobileFirst existing project.</p> <p>However I see that vuforia has provided SDKs only for android, iOS, UWP and unity.</p> <p>How do I integrate vuforia SDK into my existing IBM MobileFirst project?</p> |
11,849,808 | 0 | <p>This will omit integer values represented as strings:</p> <pre><code>if(is_numeric($num) && strpos($num, ".") !== false) { $this->print_half_star(); } </code></pre> |
303,680 | 0 | <p>In C# depending on how the class is used, you could define one class within the scope of the other.</p> <pre><code>public class CBar { CBar() { m_pFoo = new CFoo(); } CFoo m_pFoo; private class CFoo { CFoo() { // Do stuff } } } </code></pre> |
27,629,843 | 0 | Sql Server Insert Into table with values stored proc output with other values <p>Say there is a table</p> <pre><code>CREATE TABLE [Fruit]( [FruitId] [int] NOT NULL Identity(1,1), [Name] [nvarchar](255) NOT NULL, [Description] [nvarchar] (255) NOT NULL, [Param1] [int] NULL, [Param2] [int] NULL) </code></pre> <p>and stor... |
16,177,890 | 0 | <p>Had the same problem. You have to define the <code>_gaq</code> array. Just add this after your Google Analytics script in the header:</p> <pre><code>var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXXX-X']); _gaq.push(['_trackPageview']); </code></pre> |
36,121,369 | 0 | <p>I'm too have same issue and all developers have it. The reason because of new Google play store in the new design the user should click a small button " Top charts" then swipe to reach " top new free" but in the old design the user only swipe to reach " top new free" so old design is more simple to the user also th... |
13,438,616 | 0 | <p>If the backing field isn't static, how are you going to obtain an instance for that field when you use it in a static property accessor? Remember that the <code>static</code> modifier on a member means that this member is associated with the <em>type itself</em>, rather than with a particular <em>instance</em> of t... |
19,216,953 | 0 | I thought I had the program ready to run but when I run it nothing happens <p>So I thought I had this code being able to work but it is not working. I do not know what to do and I have tried looking at everything everyone has suggested but I just do not know what to do so any help would be greatly appreciated!</p> <pre... |
20,668,832 | 0 | <p>You can use:</p> <pre><code>is_page( 'page' ); </code></pre> <p>where <code>'page'</code> is the post title</p> |
30,659,591 | 1 | Write text data to array between boundaries <p>I have a problem which i hope you can help me solve! I have a txt that looks like:</p> <pre><code>A100 1960 3 5 6 7 8 9 10 11 12 13 A200 1960 3 5 6 7 8 9 10 11 12 13 14 15 A300 1960 3 5 6 7 8 9 10 11 12 13 14 15 16 17 </code></pre> <p>I want to search for the keyword for e... |
15,400,725 | 0 | <pre><code>27 struct timeval tv; 28 struct ExpandedTime etime; 29 gettimeofday(&tv, NULL); 30 localTime(&tv,&etime); </code></pre> <p>This code isn't inside of any function. It's sitting bare naked out in the global scope wilderness. It needs to be shown back home, back inside a function, any function. The... |
23,672,937 | 0 | How to show 1 value from 2 values in combobox xaml? <p>Hi I have a ComboBox with show 2 values name and code I want that when I press the drop down in the ComboBox show the 2 values but when I select from the drop down I want the code only return to combo box then the name return in other TextBox. </p> <pre><code><C... |
30,628,975 | 0 | <p><a href="http://stackoverflow.com/a/4636735/579148">This SO answer shows a way to convert a float array into a byte array</a>. Then you can use <a href="https://msdn.microsoft.com/en-us/library/system.io.file.writeallbytes(v=vs.110).aspx" rel="nofollow">File.WriteAllBytes() method</a> to write it out to a file. How... |
21,631,670 | 0 | RabbitMQ best practice for creating many consumers <p>We are just starting to use RabbitMQ with C#. My current plan is to configure in the database the number and kind of consumers to run on a given server. We have an existing windows service and when that starts I want to spawn all of the RabbitMQ consumers. My questi... |
33,734,803 | 0 | Overriding x-frame-options at page level <p>I am working on a .net application. There is an X-frame-options header included in the web.config file which is set to same origin. I want to override this for some specific pages to allow framing from some particular websites. Is there a way i can do this? If i set the heade... |
19,981,768 | 0 | <p>Which theme are you using? Isn't there a sidebar block you can position the contact details in? You shouldn't need to do any floating to achieve this, but rather the positioning of the blocks should be happening at the theme layout and template level.</p> |
16,191,858 | 0 | How to speed up svm.predict? <p>I'm writing a sliding window to extract features and feed it into CvSVM's predict function. However, what I've stumbled upon is that the svm.predict function is relatively slow.</p> <p>Basically the window slides thru the image with fixed stride length, on number of image scales. </p> <u... |
26,988,117 | 0 | <p>You may create a trigger like this: on updating dbo.Parts table update dbo.part_numbers table and vice versa. Here is a MSDN article about triggers: <a href="http://msdn.microsoft.com/en-us/library/ms189799.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms189799.aspx</a></p> |
7,274,585 | 0 | Linux find out Hyper-threaded core id <p>I spent this morning trying to find out how to determine which processor id is the hyper-threaded core, but without luck. </p> <p>I wish to find out this information and use <code>set_affinity()</code> to bind a process to hyper-threaded thread or non-hyper-threaded thread to pr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.