pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
11,775,590 | 0 | <p>I put your code on jsFiddle (with my correction): <a href="http://jsfiddle.net/odi86/6jvG4/" rel="nofollow">http://jsfiddle.net/odi86/6jvG4/</a></p> <p>You forgot to add the <code>from</code> clause to your filter, if you add it it works just fine:</p> <pre class="lang-js prettyprint-override"><code>if (filter === ... |
18,041,443 | 0 | <p>I changed a little my script, but it needs phone to be rooted</p> <p>%adb% shell "su root cp /data/data/%PACKAGE%/databases/%DB% /sdcard/my/%DB%"</p> <p>%adb% pull /sdcard/my/%DB% db</p> |
28,477,999 | 0 | <pre><code> var currentRows = $('.table tbody tr'); $.each(currentRows, function () { $(this).find(':checkbox').each(function () { if ($(this).is(':checked')) { console.log($(currentRows).eq(1).val()); } }); }); </code></pre> |
15,508,349 | 0 | <p>TFM:</p> <pre><code>CAIRO_FORMAT_RGB24 each pixel is a 32-bit quantity, with the upper 8 bits unused </code></pre> <p>TFM:</p> <pre><code>stride = cairo_format_stride_for_width (format, width); data = malloc (stride * height); </code></pre> <p>Hence, the correct index calculation is</p> <pre><code>data[y * stride +... |
21,939,411 | 0 | <p>can you check in the xib of your ViewController, select your tableView and click "size inspecto" in the right menu and you change in "iOS 6/7 Deltas": you can tape -20 in height</p> <p>i think the problem is in adaptation with ios7 and 6</p> |
30,380,054 | 0 | How do I iterate through a string contained in a vector? <p>For clarity, I am not asking how to iterate through a vector of strings (which is what all of my searches turn up), I want to iterate through a string contained in a vector of strings. I'm running into linker errors when trying to assign the string iterator a ... |
3,430,188 | 0 | <p><code>NSString</code> has an instance method <code>intValue</code> that might make this more straightforward.</p> <pre><code>NSNumber *value = [NSNumber numerWithInt:[[params objectAtIndex:i] intValue]]; </code></pre> <p>Now insert that <code>value</code> into the array. If the string is always this simple, you rea... |
25,653,504 | 0 | Stored Procedure Count <p>I am trying to get a dynamic count to print out but it is telling me @totalCAUUpdates needs a scalar value. Any thoughts?</p> <pre><code>declare @totalCAUUpdates as int = 0; declare @realTableName as varchar(100) = '[_TEMP_SubscriptionTransactionsForMosoPay09022014]' declare @updateSQL as varc... |
32,647,965 | 0 | How to display the menu name of a menu in wordpress <p>I have created a menu with the name <strong>"alggemeen"</strong> and added some items to it. </p> <p><a href="https://i.stack.imgur.com/tloDK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tloDK.png" alt="enter image description here"></a></p> <... |
12,679,013 | 1 | Python- 1 second plots continous presentation <p>I have a dictionary with data. For every entry I would like to display plots for 1 second and move to the next one. The plots to display are already coded in external scripts. I would like to do this automatically. So I loop through the dict, display first set of plots[0... |
33,170,016 | 1 | How to use Django 1.8.5 ORM without creating a django project? <p>I've used Django ORM for one of my web-app and I'm very much comfortable with it. Now I've a new requirement which needs database but nothing else that Django offers. I don't want to invest more time in learning one more ORM like sqlalchemy.</p> <p>I thi... |
20,323,330 | 0 | Error while registering node in selenium grid <p>I am getting below error while starting node for selenium grid-</p> <pre><code>Default driver org.openqa.selenium.ie.InternetExplorerDriver registration is skipped: [{platform=WINDOWS, ensureCleanSession=true, browserName=internet explorer, version=}] </code></pre> <p>do... |
14,842,936 | 0 | regular expression to exclude a specific string <p>I am currently implementing an identity management solution that will provide users the ability to manage all of their endpoint accounts.</p> <p>Currently, our company password policy matches the default Windows requirements: must contain either a number or a special c... |
36,389,339 | 0 | <p>In PHP 5.6+ you could do something like this:</p> <pre><code>function foo(Abc ...$args) { } foo(...$arr); </code></pre> <p><code>foo()</code> takes a variable amount of arguments of type <code>Abc</code>, and by calling <code>foo(...$arr)</code> you unpack <code>$arr</code> into a list of arguments. If <code>$arr</... |
25,688,274 | 0 | <p>onkeypress you're using <code>return false</code> which is causing your code being not work.</p> <p>If you remove that, it starts working as you hope.</p> |
7,365,496 | 0 | <p>1) no, this should be a custom (not standard) <strong>popup()</strong> function.</p> <p>2) Your code uses someUrl to extract a value with <code>fmt:message</code> and then paste it into the popup.</p> <p>Following is an illustration on how <strong>fmt:message</strong> works:</p> <p>let's introduce the <code><fmt... |
24,909,385 | 0 | <p><code>regexp_replace(string, '\s*(-\s*\d+|#+)$')</code><br> <a href="http://www.sqlfiddle.com/#!4/faa75/1" rel="nofollow">fiddle</a></p> |
6,680,595 | 0 | Java SQL Escape without using setString <p>Is there a built-in method to escape a string for SQL? I would use setString, but it happens I am using setString multiple times in the same combined SQL statement and it would be better performance (I think) if the escape happened only once instead of each time I say setStrin... |
17,090,094 | 0 | LINQ Left Outer Join with conditions <p>I have the below tables that are coming from my SQL Database with Entity Framework 5.</p> <p>What I want to do is select all users where tblUserBusiness.BUID equals a passed in value OR where the Users.IsSysAdmin equals True. If the Users.IsSysAdmin equals True there will be no r... |
11,225,165 | 0 | <p>Setting it to <code>nil</code> will work, assuming that no other object is holding on to (has <strong><em>strong</em></strong> reference to) the <code>NSDictionary</code>.</p> |
23,489,643 | 0 | <p>First you should check if <code>lbName.SelectionMode</code> is <code>ListSelectionMode.Multiple</code></p> <p>then you should the following </p> <pre><code>string names = reader["staffName"].ToString(); string[] selectedName = names.Split(','); lbName.SelectedIndex = -1; foreach (var name in selectedName) { lbName.... |
23,042,938 | 0 | <p>Update your selector to <code>element+element</code> selector as follows:</p> <pre><code>#wrapper button:active+#test { width: 0px; } </code></pre> <p><a href="http://jsfiddle.net/f3NeA/8/" rel="nofollow">http://jsfiddle.net/f3NeA/8/</a></p> |
5,185,513 | 0 | label inside input using jquery <p>my "label" is inside the input, so i want to empty the field when the user click and if its empty the "label" is back again </p> <pre><code> $('#name').focus(function() { if ($(this).val()=="Your name") { $(this).val(""); } }).blur(function() { if ($(this).val()=="") { $(this).val("Yo... |
37,946,509 | 0 | <p>If you want to sum of amount then go with this</p> <p>Example SQL query:</p> <pre><code>select sum(column_name) as total from your table_name </code></pre> <p>Then fetch the result in PHP</p> <pre><code>echo $fetched_data['total']; </code></pre> |
19,021,265 | 0 | <p>A very popular O(n log n) algorithm is merge sort. <a href="http://en.wikipedia.org/wiki/Merge_sort" rel="nofollow">http://en.wikipedia.org/wiki/Merge_sort</a> for example of the algorithm and pseudocode. The log n part of the algorithm is achieved through breaking down the problem into smaller subproblems, in whic... |
27,402,446 | 0 | <blockquote> <p>I think what I do here is considered to be bad practice, isn't it?</p> </blockquote> <p>Yes, exposing mutable portions of your class through a getter may be misleading, because the data is not encapsulated well enough. There is nothing wrong with changing the data, it's just that it is done in a way th... |
29,169,195 | 0 | <p>I fixed this problem by moving the project via AndroidStudio Refactoring.</p> <ol> <li>Open the project that you want to move.</li> <li>Change to <em>Project</em> view.</li> <li>From there you can Refactor, Move your project to your desired directory.</li> </ol> <p>AndroidStudio will take care of this path to long ... |
25,383,596 | 0 | <p>The <a href="http://en.wikipedia.org/wiki/Hough_transform" rel="nofollow">Hough Transform</a> is the most commonly used algorithm to find lines in an image. Once you run the transform and find lines, it's just a matter of sorting them by length and then crawling along the lines to check for the constraints your app... |
262,392 | 0 | Is there a way to find the name of the calling function in actionscript2? <p>In an actionscript function (method) I have access to arguments.caller which returns a Function object but I can't find out the name of the function represented by this Function object. Its toString() simply returns [Function] and I can't find... |
36,069,145 | 0 | How to be sure that files are saved in gallery for all Android devices? <p>According to user reviews, my app dosn't save on their phones (LG4, oneplus phones, android 5.1, Android 6.0)</p> <p>For Android 6.0 I have solved the problem by using the new permission system. But how can I be sure that the code actually works... |
37,013,377 | 0 | <p>Create a calc column with the FIND function. </p> |
28,144,960 | 0 | 3 column responsive footer <p>I have a responsive grid layout for thumbnail images and a full width header. It is built using 'ul' and 'li' to make the grid. So basically I'm not using a responsive grid layout throughout. Although I would like to have a three column footer at the bottom that is responsive (stack on top... |
2,994,053 | 0 | Netbeans render unrecognized files as html <p>I am using Netbeans and very happy with it. Unfortunately I am having a little problem with it that I cant seem to figure out. I am using Silverstripe CMS and it uses a templating system that syntactically is basically just a mix of php and html. These files however end in ... |
22,353,849 | 0 | Query for ranges in reactivemongo <p>How do I query for ranges using reactivemongo. Something equivalent to</p> <pre><code> db.collection.find( { field: { $gt: value1, $lt: value2 } } ); </code></pre> <p>Thanks.</p> |
1,647,681 | 0 | <p>Changing the image's printed dimensions fixed it. The button doesn't look at the pixel dimensions.</p> |
34,084,144 | 0 | <p>Yes, it's possible to do and it's very useful when you want to <strong>insert a entity to database</strong> and use <strong>the auto-generated id for the next insert or update</strong> </p> <pre><code>using (var context = new DbContext()) { using (var transaction = context.Database.BeginTransaction()) { var item = ... |
20,187,194 | 0 | <p>You have two problems in getting your DIVIDE to work.</p> <p>In order of occurrence:</p> <p>You ACCEPT your AMOUNT. Your AMOUNT has an implied decimal place (the V in the PICture string), yet ACCEPT is going to, for your purpose, ignore this implied decimal. There will be no alignment with what the user types at th... |
33,113,171 | 0 | <p>I think you are confusing assigning variables with aliases. assigning a variable means you store the result of the command in a variable what this command does</p> <pre><code>b=`pwd` </code></pre> <p>is running <code>pwd</code> and stores the answer in a variable b.</p> <p>and alias means giving some command a diff... |
6,223,689 | 0 | <p>The keyword <code>static</code> unfortunately has a few different unrelated meanings in C++</p> <ol> <li><p>When used for data members it means that the data is <strong>allocated in the class</strong> and not in instances.</p></li> <li><p>When used for data inside a function it means that the data is allocated stat... |
27,453,949 | 0 | In a strongly typed view, how can you show a property of a seperate but related model? <p>If I have two entities like the following:</p> <p><img src="https://i.stack.imgur.com/xWct1.png" alt="enter image description here"></p> <p>...in a strongly typed Details view of BasicEntity, is there a way to show the related Lis... |
17,164,641 | 0 | <p>The best way to do this would be to use <code>grep</code> to get the lines, and populate an array with the result using newline as the internal field separator:</p> <pre><code>#!/bin/bash # get just the desired lines results=$(grep "mypattern" mysourcefile.txt) # change the internal field separator to be a newline ... |
6,229,684 | 0 | <p>wow. I just asked it few minutes ago ... use search next time ;)</p> <p><a href="http://stackoverflow.com/questions/6228359/dynamic-favicon-when-im-proccessing-ajax-data">Dynamic favicon when I'm proccessing ajax data</a></p> <p><a href="http://stackoverflow.com/questions/824349/modify-the-url-without-reloading... |
34,328,523 | 0 | is this a bug of ios safari? <p>recently, when using <code>display:flex</code> and <code>flex-grow</code>, i find a problem:<br> i write a demo about this question: <a href="http://output.jsbin.com/nijahifogu" rel="nofollow noreferrer">demo</a><br> i run the demo using mac chrome(emulate screen resolution: 320*480) <br... |
31,852,116 | 0 | Access bean using @AutoWire outside component scan <p>I have a Java Project which is written using Spring and am having trouble with <code>@Autowire</code> of a bean. The declaration of the bean</p> <pre><code><beans:bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSo... |
32,594,007 | 0 | <p>You should be using the Google Places API:</p> <p>This request</p> <p><a href="https://maps.googleapis.com/maps/api/place/textsearch/json?query=1054+East+Commerce+Blvd+Slinger+WI+53086&key=INSERT_YOUR_API_KEY_HERE" rel="nofollow">https://maps.googleapis.com/maps/api/place/textsearch/json?query=1054+East+Commerc... |
39,160,326 | 0 | <p>I encountered a similar problem. As well as being fixed, one of the inside elements had <code>transform:rotate</code> 90 deg and had a hover effect that changed its position slightly (pulled out from the side of the screen). The background color of this element and its sibling were the same, and both would flicker ... |
40,087,136 | 0 | <p>One solution would be to use :</p> <pre><code><Caption\b[^>]*>(.*?)<\/?Caption> ^ </code></pre> <p>But it's kind of ugly</p> |
26,947,543 | 0 | <p>Yes, this is correct. In your example <code>%PATH%</code> will be expanded to the current value of the PATH variable, so this command is effectively adding a new entry to the beginning of the PATH. </p> <p>Note that calling <code>set PATH</code> will only affect the current shell. If you want to make this change pe... |
17,570,042 | 0 | <p>If you just do <code>br.title()</code> it will give you the unicode string of the special character.</p> <p><code>print</code> attempts to display the non-ASCII character by encoding the Unicode string.</p> |
25,627,174 | 0 | <p>I got a slightly messier answer by first converting your dynamic array to a known type:</p> <pre><code>IEnumerable<JToken> d2 = d.array; </code></pre> <p>Then you can use Any as an extension method.</p> <pre><code>if (d2.Any(p => p.ToString() == "1")) //etc. </code></pre> |
35,071,644 | 0 | <p>You just need to add the responsive class that tells the menu to be horizontal from medium and up, like so:</p> <pre class="lang-html prettyprint-override"><code><ul class="vertical medium-horizontal menu" data-responsive-menu="drilldown medium-dropdown"> </code></pre> <p><strong>Update</strong>: The <a href=... |
1,086,463 | 0 | <ol> <li>Probably you don't have environment variable ANT_HOME set properly</li> <li>It seems that you are calling Ant like this: "ant build..xml". If your ant script has name build.xml you need to specify only a target in command line. For example: "ant target1".</li> </ol> |
2,275,069 | 0 | <p>Here's a low-tech technique that keeps all the script in your page template: add a <code>$(document).ready()</code> function to the page that executes conditionally based on a page-level variable, like this ...</p> <pre><code>// In your button's click handler, set this.UserHasClicked to true var userHasClicked = '&... |
38,956,600 | 0 | <p>This error message was introduced with SubGit version 3.2.1 and SVN Mirror add-on version 3.3.0.</p> <p>SubGit/SVN Mirror rejects push operation that would result into branch replacement in Subversion repository. There are basically two cases when Git changes may lead to replacements on SVN side:</p> <ol> <li><p>Fo... |
29,424,477 | 0 | How do I make a hotkey to activate a specific VMware Workstation VM? <p>I'm using the latest version of VMware Workstation (11.1.0) on Windows 7 x64 and I want to be able to do a keystroke of "Ctrl + 1" to go to VM #1, "Ctrl + 2" to go to VM #2, and "Ctrl + 3" to go to VM #3.</p> <p>Sounds simple right? It isn't.</p> <... |
33,316,525 | 0 | <p>Yes. I think <code>foo.string</code> will calulate each time until iteration satisfies <code>True</code>. So you can do this</p> <pre><code>foo_string=foo.string if any(name in foo_string for name in faa.names): </code></pre> |
20,736,643 | 0 | <p>CSS only solution</p> <pre><code>article { position: relative; } article:after { content: ''; position: absolute; width: 100%; height: 1px; // suit your need background: black; // suit your need top: 100%; left: 0; } </code></pre> |
29,957,556 | 0 | <p>Try using this query:</p> <pre><code>SELECT a.name, c.company, NVL(cp.profile_value, pd.profile_value) FROM employee a INNER JOIN company c ON a.comp_id = c.comp_id LEFT JOIN company_profile cp ON c.comp_id = cp.comp_id LEFT JOIN profile_defaults pd ON cp.profile_id = pd.profile_id </code></pre> <p>This solution as... |
38,192,003 | 0 | SQL Server : can't find the right 'join' formula for what I want <p>I'm trying to find the right way to achieve this. Suppose I have 3 tables A, B and C.</p> <p>I want my request to show some info from all 3 tables, but I want to show only one line by records that are in A.</p> <p>The problem, if I join tables, is that... |
39,935,119 | 0 | <p>This might work for you (GNU sed):</p> <pre><code>sed -r 's#.*#s/.*/&=\&/#;1s#$#;h#;1!s#.*#n;&;H#;$s#$#;x;s/^([^\\n]*)\\n(.*)/update.database.table set \\2 WHERE \\1;/;s/\\n/, /gp#' file | sed -nrf - log </code></pre> <p>Turn the file into a sed script then run it against the log.</p> |
14,246,815 | 0 | <p><code>clone</code> only does a shallow copy: so you get a new <code>Vector</code> with references to the same objects as the original. This is the expected behavior.</p> <p>If you want different behavior, you'll need to manually copy the inner <code>Vector</code>s yourself. (This is one of the many reasons why the ... |
20,171,051 | 0 | <p>Fundamentally, your <code><ul></code> element is being padded to the left there, and nested <code><ul></code>'s get increasingly more padded. With this setup, I can't imagine theres a "one line solution" available.</p> <p>Instead, one, I would change that <code>padding-left</code> to exist on the <code>... |
35,017,435 | 0 | conditional include for opencv2/photo/photo.hpp c++ depending on OpenCV version <p>I would like to create a conditional Include, depending on the OpenCV version. Actually I'm compiling in 2 different platforms the same source code. I'm developing in Ubuntu 14 and I want to run My application in a Raspberry PI. The prob... |
22,160,482 | 0 | <p>Yes there are plugins that offers this functionality, I think most of the drag and drop jQuery plugins has their own callback function that triggers once the dragging and dropping has finished. <a href="http://dragsort.codeplex.com/" rel="nofollow">jQuery List DragSort</a> is a plugin I've used in my project before... |
31,916,958 | 1 | Django 1.8: How do I use my first 3rd Party Fork with my current project? <p>I'm still very new to development...</p> <p>I would like to simplify <a href="https://github.com/revsys/django-friendship/" rel="nofollow">django-friendship</a> and add some different functionality. I've forked it on GitHub. I'm not sure what ... |
32,290,600 | 0 | <p>Check out <strong>Twitter Bootstrap</strong> - <a href="http://getbootstrap.com" rel="nofollow">http://getbootstrap.com</a> and <strong>Zurb Foundation</strong> - <a href="http://foundation.zurb.com" rel="nofollow">http://foundation.zurb.com</a>. These two are the most popular mobile responsive frameworks out right... |
23,067,893 | 0 | <p>Since you've posted no logcat, I can't correct your code, but I can give you a working example:</p> <pre><code>@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); protected void onCreate(Bundle savedInstanceState) { super.onCreate(s... |
13,239,290 | 0 | <p>To get your cart total (assuming that the customer is log in or enter the shipping info)</p> <pre><code>$cart = Mage::getModel('checkout/session')->getQuote(); echo Mage::helper('core')->currency($cart->getGrandTotal(),true,false); </code></pre> <p>To get Shipping amount</p> <pre><code>$shippingMethod = $c... |
7,619,273 | 0 | <ol> <li><code>flip elem listx</code> is equivalent to <code>(flip elem) listx</code>. </li> <li><code>(flip elem)</code> is the same as <code>elem</code>, but with the arguments in opposite order. This is what <code>flip</code> does.</li> <li><code>elem</code> is a function that takes an element and a list, and check... |
36,819,972 | 0 | LC-3 Motor Program (Strange Outputs) <p>So the output to my LC-3 program is giving me very strange characters/symbols. The objective of this program is to ask a user to input a 0 or a 1. If the user inputs a 1, the motor moves 120 degrees clockwise and then 90 degrees counter clockwise. If the user inputs a 0, the moto... |
34,618,413 | 0 | <p>I've found the cause of the problem. It's actually very simple but also pretty frustrating.</p> <p>When publishing the web app, you have the option to <code>Remove additional files at destination</code>. I have always left this checked because I don't like old files hanging around for no reason. </p> <p>You also ha... |
1,764,353 | 0 | <p>I've looked at the MSDN page... it said NtQuerySystemInformation() is an OS internal proc, and that we're not recommended to use it:</p> <blockquote> <p>The NtQuerySystemInformation function and the structures that it returns are internal to the operating system and subject to change from one release of Windows to ... |
19,736,891 | 0 | <p>The problem is exactly what the Traceback log says: <code>Could not convert string to float</code></p> <ul> <li>If you have a string with only numbers, python's smart enough to do what you're trying and converts the string to a float.</li> <li>If you have a string with non-numerical characters, the conversion will ... |
40,811,428 | 0 | <p>You can do this in a single redirect rule:</p> <pre><code>RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} !=www.ourwebsite.co.uk RewriteRule ^ https://www.ourwebsite.co.uk%{REQUEST_URI} [R=301,L,NE] # rest of rules go below this </code></pre> <p>Make sure to clear your browser cache before t... |
1,357,579 | 0 | Does Intellij Idea 8.1.x install and run on Mac OSX 10.6? <p>Does Intellij Idea 8.1.x install and run on Mac OSX 10.6 (snow-leopard)?</p> <p>Are there any special steps needed to get it to work?</p> |
34,575,799 | 0 | <p>Solved - like this</p> <pre><code> var webApp = express(); var cors = require('cors'); webApp.use(cors()); webApp.use(kue.app); webApp.listen(); </code></pre> |
29,189,745 | 0 | In XSLT using XPath <p>if I have number like $999,999 I want to use a function to give me just 999999 without any other symbol.I tried substring(value,2) but that take of the $ how about the , Is there any idea to do that, </p> |
19,635,143 | 0 | PHP timthumb error with Joomla <p>I am using a Joomla template in my site. But It doesn't load any images in portfolio content. When I am opening the path of the image it opens a php file and this gives this error</p> <blockquote> <p>open_basedir restriction in effect. File(/usr/local/apache/htdocs) is not within the a... |
17,336,268 | 0 | How to get text from a textbox using javascript <p>i have developed a web application using mvc4.</p> <p>in this case i need to get a text box value(actually the text entered in the text box) using javascript.</p> <p>here is the code i am using</p> <pre><code> @model PortalModels.WholeSaleModelUser @using (Html.BeginFo... |
27,838,495 | 0 | Finding the difference between a time and the current time <p>So I'm writing an app that has similar functionality to an alarm clock. It asks for the user to input a time. But I've been stuck on how to figure this out for a while.</p> <p>The method needs to find the difference in minutes between the user selected time,... |
6,738,232 | 0 | SilverLight Service Deployment <p>I've written a silverlight app with a simple wcf service. Runs great on my computer, when I publish it to my web account it no longer works with the service. I tried editing the clintconfig file to set the endpoint to the new location, that did not fix it. So I downloaded this simple S... |
28,929,317 | 0 | <p>You did not put in the <code>use</code> statement for <code>OAuthTokenCredential</code>.</p> |
6,875,127 | 0 | <p>Based on <a href="http://stackoverflow.com/questions/4324558/whats-the-proper-way-to-install-pip-virtualenv-and-distribute-for-python/5177027#5177027">Walker Hale IV's answer</a> to a similar (but distinct! ;) ) question, there are two keys to doing this:</p> <ul> <li>you don't need to install distribute and pip be... |
24,825,015 | 0 | signed or unsigned int in c++ <p>How can i check if given int(or any other data type) is signed or unsigned? I found this function while searching, </p> <pre><code>std::numeric_limits<int>::is_signed </code></pre> <p>But i can only input the data type, is there a way that i can check by variable name, like.</p> <... |
12,553,867 | 0 | <p>Did you remove old version of the php? <code>sudo yum remove php</code> or (php5, I don't remember how excatly the package is named)</p> <p>After removing run <code>sudo updatedb</code> and <code>sudo locate php</code> and delete any leftovers (e.g /etc/php, /usr/local/php and so on). Care not to delete files from ... |
17,252,799 | 0 | XNA Texture2D Billboarding appears as a white block <p>Very odd problem, when I try and draw my billboard sprite it always appears as a white block, changing the .draw color property still draws it as white, it also doesn't matter it I use a jpeg, or transparent png.</p> <p>[EDIT]</p> <p>So I'm now trying to use a <cod... |
19,572,852 | 0 | Why use To_Localtime when analyzing IIS logs <p>I've searched for several examples to analyze IIS logs using the Log Parser, taking time into account... For example, this query that shows the number of hits per hour:</p> <pre><code>SELECT QUANTIZE(TO_LOCALTIME(TO_TIMESTAMP(date, time)), 3600) AS Hour, COUNT(*) AS Hits ... |
30,243,915 | 0 | <p>I highly recommend this - </p> <pre><code>if(/Element/g.test(Array)){---} </code></pre> |
12,404,646 | 0 | <p>You can try this, It will work for both example.</p> <pre><code>$('h1').each(function(){ var self = $(this); var p = self.text().split(' '); var html = self.html().replace(p[0], '<span>'+ p[0] +'</span>'); self.html(html); }); </code></pre> <p>Check this <strong><a href="http://jsfiddle.net/6seeW/" rel=... |
28,989,954 | 0 | sftp copy files from windows server to linux server using shell scripting <p>I am working on shell script that is supposed to transfer files (with their subdirectories) from a Windows Server to a Linux-Samba server. The Windows server is setup to accept sftp requests and I am logging into the Windows server with shared... |
16,934,559 | 0 | C# how to add data into excel with no headers <p>I tried searching for examples and never i found an example for inserting data into an empty excel.</p> <pre><code>Insert into [Sheet1$] (columnname1, columnName2) values ("somevalue","somevalue"); </code></pre> |
32,914,951 | 0 | Java minesweeper game I want to hide the broad when I start the game? <p>I'm new to this site, however, I'm having problem hiding my broad when I start the game, I just want to make it invisible from the user. But I don't know where did I missed up with my code. Please help me out with this.</p> <pre><code>import java.... |
30,930,082 | 0 | Swift Array Issues <p>I have this code:</p> <pre><code>let posState = positionState(pos) if posState != .None { if posState == .Off { boardArray[pos.row][pos.column] == .On } else { boardArray[pos.row][pos.column] == .Off } } </code></pre> <p>The issue I'm having is that when I attempt to change the value of an element... |
30,238,382 | 0 | Separator lines for custom spinner are not dispalyed in Lollipop <p>I am using a custom BaseAdapter to create a custom spinner where I am using </p> <pre><code>@Override public View getDropDownView(int position, View cnvtView, ViewGroup prnt) { return cnvtView; } </code></pre> <p>to display a drop down bar. But between... |
23,088,033 | 0 | Logging response and request to OAuth provider <p>Is there a way to capture the response from requests served by OAuth? Specifically, I need to log the request and response from <code>OAuthAuthorizationServerProvider.GrantResourceOwnerCredentials()</code>.</p> <p>I've tried extending <code>OwinMiddleware</code> and ove... |
21,696,873 | 0 | <p>The initial problem stems from the restriction that contracts cannot modify the object they belong to (otherwise, the program might behave differently in debug and release mode). The way the language enforces that restriction is by making the <code>this</code> pointer <code>const</code>.</p> <p>A <code>const this</... |
23,613,980 | 0 | Does not equal filter using vba-access <p>Hello everyone I have been trying to filter data for the "First Match" and "Second Match" that does not equal certain values so the best way I thought of doing this was to create an array of possible values for the field that you would want to filter out and then use a for loop... |
6,944,642 | 0 | <p>Try this: </p> <pre><code>php > list($d,$m,$y) = explode("/","28/04/2011"); php > echo date("Y-m-d",mktime(0,0,0,$m,$d,$y)); 2011-04-28 </code></pre> |
35,235,759 | 0 | After changing a variable, do I have to restart? <p>I have a long running service, that consists of two threads.</p> <pre><code>//MY SERVICE: if(userEnabledProcessOne) //Shared preference value that I'm getting from the settings of my app based on a checkbox processOneThread.start(); if(userEnabledProcessTwo) processTw... |
31,482,781 | 0 | sqlite errors in multithread PHP script <p>I need to update single sqlite database from different separated PHP threads, all running at the same time. Below is the code for db connection</p> <pre><code> $db = new SQLite3(__DIR__.'/proxy.db'); $db->busyTimeout(5000000); $db->exec('PRAGMA journal_mode=WAL;'); $db-&... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.