pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
2,422,364 | 0 | <p>if you want to remove lines that contains words in that blacklist</p> <pre><code>grep -v -f blacklist.txt inputfile > filtered_file.txt </code></pre> <p>if you want to remove just the words alone</p> <pre><code>awk 'FNR==NR{ blacklist[$0] next } { for(i=1;i<=NF;i++){ if ($i in blacklist){ $i="" } } }1' blackl... |
38,911,583 | 0 | <p>If your number is sms capable and still you are getting the 21606 error, then check 'Active Numbers' tab under 'Manage Numbers'. It should show your number '+43720881723' as an active number.</p> |
38,142,956 | 0 | Bootstrap responsive audio player <p>I need help. When I'm using an audio in the container (bootstrap) I have 4 player in 1 row - that's fine (col-lg-3), but when I'm resizing my window (from col-md-4 to col-xs-6) then magic happens... players are in different places :/ you can look at this here:</p> <p><a href="https:... |
14,733,858 | 0 | <p>Highly variant write latency is a common attribute of SSDs (especially consumer models). There is a pretty good explanation of why in this <a href="http://www.anandtech.com/show/6432/the-intel-ssd-dc-s3700-intels-3rd-generation-controller-analyzed" rel="nofollow">AnandTech review</a> . </p> <p>Summary is that the S... |
11,482,582 | 0 | <p>It's not clear what you want do do, but if you're using POST to send it to PHP then you can check if the value is empty like this</p> <pre><code><?php if(empty($_POST['value_name'])) { echo 'value is required'; } else { // OK } </code></pre> |
37,503,493 | 0 | <p>Here is how you can make the function work as described:</p> <pre><code>bag_sword = [] def equip(x): global bag_sword if x == "iron sword": if "iron sword" in bag_sword: print "You can't have 2 weapons equipped!" else: bag_sword.append("iron sword") print bag_sword # Prints "[]". equip("iron sword") # Prints nothin... |
11,664,673 | 0 | <p>Use <code>setFieldChangeListener</code> will do for all action.</p> <pre><code> if (position != 0) { title = new Custom_LabelField(Config_GlobalFunction.maintitle, DrawStyle.ELLIPSIS | LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER | Field.FOCUSABLE | ButtonField.CONSUME_CLICK, Color.WHITE) { protected boolean naviga... |
27,268,554 | 0 | <p>Where is the file InpData.txt?</p> <p>Place a breakpoint and debug <code>new File(fileName).getAbsolutePath()</code> to see where it should be. Place your file there.</p> <p>Don't hard-code the path if you want the code to be portable (if it is being executed on another machine).</p> |
18,317,328 | 0 | angularjs same directive (outside click) for multiple elements <p>So I have 2 elements with the same directive: (coffeescript)</p> <pre><code>myApp.directive "clickOutside", ["$document", ($document) -> restrict: "A" link: (scope, elem, attr, ctrl) -> elem.bind "click", (e) -> e.stopPropagation() $document.bin... |
33,687,524 | 0 | Bottom up merge sort on Linked List <p>Bottom up merge sort treats a list each element of size 1, and iteratively merge the sub-lists back and forth until they are in sorted order. This makes it very attractive to use bottom up merge sort to sort linked list as they are already "separated".</p> <p>I'm trying to impleme... |
32,293,575 | 0 | <p>Thanks @Bjoerg, Your solution works.</p> <p>I did the remote configuration for my cordova app not in the "Options->Cross Platform->C++->iOS" section, but in "Options-Tools for Apache Cordova->Remote Agent Configuration" and it worked like a charm</p> <p>Regards </p> |
17,204,834 | 0 | How to make a fancy mysql join that can join three tables and detect if one table DOESNT have my item <p>php mysql query I have multiple linked tables - I also have a table that only creates and entry if certian conditions exist so I would like to add that into my query to avoid having to go through thousands of query ... |
35,720,472 | 0 | <p>I just want to extend the answer from <a href="http://stackoverflow.com/users/2190416/arnaud-t">Amaud T</a>:</p> <p>I faced the same issue and I used the above answer, with some small modifications:</p> <pre><code><style type="text/css"> #chartComponentId table.jqplot-table-legend { width: auto !important;} &... |
28,616,911 | 0 | How to set an ImageView to match_parent and horizontally scale accordingly? <p>I have a RelativeLayout in a section of my activity that includes a button and an ImageView. The size of the RelativeLayout is ListPreferredItemHeight and what I would like to do is have the ImageView span from top to bottom of that layout a... |
2,188,447 | 0 | <p>Correct. You must transform your attribute into an <code>NSData</code> object. You would need to serialize an <code>NSURL</code> to <code>NSData</code> -- and the default <code>NSKeyedUnarchiveFromDataTransformerName</code> transformer will do this for you.</p> <p>Another approach, and the one that I use for URLs, ... |
18,737,412 | 0 | <p>By submitting the form in HTML you basically tell the browser to generate a normal HTTP request, usually POST or GET, for an URL defined in tag with form fields attached according to the specified method either appended to the URL or included in the request data. </p> <p>There is nothing really special or different... |
24,807,178 | 0 | <p>You need to do something like this:</p> <pre><code>//define base layers var osmUrl='http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'; var normalView = L.tileLayer(osmUrl, {styleId: 997, attribution: osmAttributes, maxZoom: 18 }); ... //define overlay layers var markersLayer = new L.layerGroup(); var linesLayer = ... |
20,326,482 | 0 | How to get data from a custom table into a block in magento <p>I have followed the steps mentioned in the link below to create a custom module in magento 1.7. <a href="http://www.webspeaks.in/2010/07/create-your-first-magento-module.html#comment-form" rel="nofollow">http://www.webspeaks.in/2010/07/create-your-first-mag... |
39,704,710 | 0 | <p>The problem is that when you work in 'mode' 'no-cors', the Headers become an immutable and you will not be able to change some of its entries. One of the heads you can't change is the Content-Type. When you set 'mode' to 'no-cors' you will be able to change only these headers:</p> <ul> <li><code>Accept</code></li> ... |
28,735,408 | 0 | <p>I faced a similar issue: "Unable to resolve class GrailsTestCase". I checked Grails Tools of my project and observed Dependency Management was already enabled (IDE - GGTS). I just disabled Dependency Management, refreshed and enabled it again. This solved the issue for me.</p> |
21,057,197 | 0 | <p>When you would like to change the <code>$n</code>. character to <code>$something</code>:</p> <pre><code>$_SESSION['b1'][$n] = $something; </code></pre> <p>In your case:</p> <pre><code>$_SESSION['b1'][1] = $_SESSION['word'][0]; </code></pre> <p>Details:</p> <p><a href="http://www.php.net/manual/en/language.types.str... |
39,480,810 | 0 | <p>Technically the copy constructor gets invoked in the following cases:</p> <ol> <li>explicit copy construction</li> <li>call by value</li> <li>return by value</li> </ol> <p>The assignment operator is implemented to obliterate an exiting instance's old contents with new ones. As you showcase an example:</p> <pre><cod... |
4,464,489 | 0 | <p>I'm not 100% on the problems with the canvas element in IE but you can update the onclick handler of the <code>canvas</code> element, changing the window location to where you want.</p> <pre><code>document.getElementById("mycanvas").onclick = function(e){ window.location.href = 'http://www.google.com'; }; </code></... |
13,983,583 | 0 | <p>Unless you want to dig into the internals of one or more sparse matrix types, you should use CSR format for your matrix and:</p> <ul> <li>Calculate the length (L2 norm) of each matrix row; in other words: <code>sum(multiply(M, M), 2)</code></li> <li>Normalize r to (L2) length 1</li> <li>Matrix multiply <code>M*r</c... |
10,664,254 | 1 | The right way to check of a string has hebrew chars <p>The Hebrew language has unicode representation between 1424 and 1514 (or hex 0590 to 05EA).</p> <p>I'm looking for the right, most efficient and most pythonic way to achieve this.</p> <p>First I came up with this:</p> <pre><code>for c in s: if ord(c) >= 1424 and... |
26,426,280 | 0 | receiving post variables from an external source in zendframework 2 <p>i am working on a zendframework 2 project and want to receive post variables from an external source.</p> <p>the source where the values will come from is a payment site (i.e world pay and paypal). i.e the return values of a payment confirming that ... |
37,460,580 | 0 | <p>I had this issue recently with another group of plugins recently. One wouldn't allow me to disable it because it dependeded on the other, but the other was disabled and wouldn't allow me to enable it because of the dependency. </p> <p>All you have to do to fix this is go to your jenkins installation, and under the ... |
35,868,533 | 0 | <p>Thanks for the heads up about the bug report and fix. I feel the need to give an answer to this question though, just in case you haven't ditched PHP and Slim framework altogether. Hopefully, it will be of help to someone else.</p> <p>My approach to this would be:</p> <pre><code><?php use Slim\Http\Request; use ... |
31,817,366 | 0 | <p>As other folks have mentioned, Java, ActiveX, Silverlight, Browser Helper Objects (BHOs) and other plugins are not supported in Microsoft Edge. Most modern browsers are moving away from plugins and toward standard HTML5 controls and technologies. </p> <p>If you must continue to use the Java plugin in a corporate we... |
7,109,507 | 0 | <p>If <strong>all values</strong> end up at <code>star0.png</code>, then you <em>are</em> cycling through the list. The fact that the <code>else</code> statement is the only code being executed for each element suggests a logical error -- did you perhaps mean to do something like this?</p> <pre><code>string serviceCod... |
22,939,473 | 0 | <p>I ran into an issue with the nice Joonas Pulakka's answer because the "UIManager lookandFeel" was ignored.</p> <p>I found the nice trick below on <a href="http://tips4java.wordpress.com/2010/09/12/keeping-menus-open/" rel="nofollow">http://tips4java.wordpress.com/2010/09/12/keeping-menus-open/</a> </p> <p>The point... |
21,367,584 | 0 | <p>Jquery POST data could be sent as</p> <pre><code>data: { email_one: email_one , email_two: email_two,ebankpin:ebankpin,eusername:eusername} </code></pre> |
40,708,900 | 0 | <p>Based on this previous <a href="http://stackoverflow.com/questions/40698572/ruby-extract-elements-from-deeply-nested-json-structure-based-on-criteria/40698808?noredirect=1#comment68644516_40698808">answer</a>, you just need to add a select on eventNodes :</p> <pre><code>require 'json' json = File.read('data.json') ... |
19,178,374 | 0 | Two divs in the same row (in a arrow shaped parent div) with text in one div getting clipped based on the width of second div <p>Here is a <a href="http://jsfiddle.net/SxZGE/" rel="nofollow">jsfiddle link of my issue</a></p> <p><strong>HTML</strong></p> <pre><code><div class="Right green"> <h2> <div clas... |
27,237,732 | 0 | concatenating .txt files into a csv file with a tab delimiter <p>I am trying to concatenate a set of .txt files using windows command line, into a csv file.</p> <p>so i use</p> <pre><code>type *.txt > me_new_file.csv </code></pre> <p>but a the fields of a given row, which is tab delimited, ends up in one column. How... |
24,104,158 | 0 | <p>OK..</p> <p>Are you asking for something like that?</p> <pre><code><div id="sample"> <a class="uploadedfiles" href="www.google.com">File</a> <div class="diagram"></div> </div> </code></pre> <p>CSS</p> <pre><code>.diagram { width:100px;height:100px;border:1px solid #000000;} </cod... |
19,706,582 | 0 | Keep alive Service in background? <p>For a demo I print a Toast after Evert 10 sec. using <code>Service</code> class. </p> <p>It works fine, I'm getting the Toast after every 10 sec if I am on the Activity when I leave the app, Service is not giving the o/p.</p> <p><strong>But I want to that toast either I'll kill the ... |
2,353,460 | 0 | <p>You can use the ANSI colour codes. Here's an example program:</p> <pre><code>#include <stdio.h> int main(int argc, char *argv[]) { printf("%c[1;31mHello, world!\n", 27); // red printf("%c[1;32mHello, world!\n", 27); // green printf("%c[1;33mHello, world!\n", 27); // yellow printf("%c[1;34mHello, world!\n", 27... |
18,360,869 | 0 | <p>Just put name of the parent class at the end of new, for example</p> <p><code>public class YellowTextView extends TextView ...</code></p> <p>And let IDE do other work like Content Assist, etc.</p> |
7,952,983 | 0 | <p>rails integration tests should be written so that the on case tests the one single request - response cycle. we can check redirects. but if you have to do something like</p> <p>get '/something', {:status=>'any_other'}, @header </p> <p>get '/something', {:status=>'ok'}, @header</p> <p>You should write two different ... |
2,902,726 | 0 | Trying to set PC clock programmatically just before Daylight Saving Time ends <p>To reproduce :</p> <p>1) Add Microsoft.VisualBasic assembly to your project reference</p> <p>2) Change PC timezone to : (GMT+10:00) Canberra, Melbourne, Sydney . Ensure PC is set to automatically adjust clock for daylight savings time. (Fo... |
29,860,773 | 0 | <p>Replace</p> <pre><code>private ArrayList<Player> playerSummaries = new ArrayList<Player>(); </code></pre> <p>with</p> <pre><code>private ArrayList<Player> players = new ArrayList<Player>(); </code></pre> <p>GSON uses reflection to look up which field it should populate. In your case it is lo... |
13,064,522 | 0 | <p>This is normal behaviour. The Javascript context is specific to a page. If you reload the page, even if some of the HTML markup is the same, its Javascript-set attributes will be reset.</p> <p>You can achieve persistent element highlighting using cookies or server-side code (sessions).</p> <p>You can set a cookie <... |
144,649 | 0 | <p>Basically what the developers at Monster.ca are doing, is emulating a select-control using a div-element with scrollable content.</p> <p>Take a look at the <a href="http://www.w3schools.com/Css/pr_pos_overflow.asp" rel="nofollow noreferrer">"overflow" CSS-property</a>.</p> |
3,236,030 | 0 | <p>To find people to work with you on a new project, you have :</p> <ul> <li>to go where they are</li> <li>to convince them to work with you</li> </ul> <p>Programming folks can be met directly on IRC. Go to a channel corresponding to the computing language you like, and you'll met great people, knowing your language a... |
19,165,744 | 0 | Access my class returned list collection in code behind <p>I have a list collection in my class library that uses a sql datareader to returns a list of family details</p> <pre><code>public class Dataops { public List<Details> getFamilyMembers(int id) { some of the database code.. List<Details> fammemdetails... |
37,857,783 | 0 | Logging in via modal using AJAX and PHP <p>to be fair, I'm fairly new in the AJAX area (newbie to be more precise) and i think that i took quite a large bite entering that field.So, I'm struggling for a several days now trying to implement AJAX with my PHP script. Before you flag this question as duplicate please consi... |
36,210,994 | 0 | <p>According to node-webkit's wiki, you can <a href="https://github.com/nwjs/nw.js/wiki/file-dialogs#how-to-open-a-file-dialog" rel="nofollow">open a dialog programmatically</a> by simulating a click on a <a href="https://github.com/nwjs/nw.js/wiki/file-dialogs#save-file" rel="nofollow">specially configured html input... |
13,802,625 | 0 | <p>The problem seems to lie in that all your "content-pad" classes doesnt have the width of the page.</p> <p>As soon as i give it a width it works fine.</p> |
20,543,929 | 0 | <p>Finally am able to find the actual cause of above issue.</p> <p>I am using the gem <a href="https://github.com/wildbit/postmark-rails" rel="nofollow">postmark-rails</a>, previously postmark was not supporting the email-attachments, so recently they had enhanced gem to support attachments and unfortunately i was usi... |
19,224,214 | 0 | <p>You are using CodeIgniter so why are you trying to load anything directly?</p> <p>Call the page as you would normally and add a controller method to do what is required in this situation. So:</p> <p>Assuming you have a controller called 'Search' create a method called something relevant lets say 'special_case' and ... |
22,845,097 | 0 | <p>Ok this works in SqlServer not sure about MySQL, but perhaps it will help you get on the right track.</p> <pre><code>Select Top 1 Parent.Title, Descriptions.Description From Reviews Parent inner join Reviews Child on Parent.Id = Child.Parent inner join Descriptions on Child.Id = Descriptions.review_id Where Parent.... |
34,455,880 | 0 | <p>in WordPress you need to specify an <code>action</code>. This should work:</p> <pre><code>action="<?php echo get_permalink(); ?> </code></pre> |
23,952,149 | 0 | DTMF Tone Detection during incoming oncall in Blackberrry java <p>I would like to know whether we could receive the DTMF tones in blackberry java.Suppose,i am getting a call,and once i accept the call,is it possible to detect the keys that the other person is pressing during our call. I want to know any possiblity is a... |
31,068,147 | 0 | <p>Sounds like an issue with the way iTunes connect is set up, check you leaderboard setting and make sure 'Score Submission Type' is set to 'Best Score' and 'Sort Order' is set to 'High To Low'</p> |
8,492,014 | 0 | <p>In WordPress 3.2.1 the capability is <code>edit_theme_options</code>. <code>switch_themes</code> will do nothing more than allow you to activate a different theme from the available ones.</p> |
40,916 | 0 | <p>Just an idea, but couldn't you use Regex to quickly strip out the characters and then compare against that like @Matt Hamilton suggested?</p> <p>Maybe even set up a view (not sure of mysql on views) that would hold all phone numbers stripped by regex to a plain phone number?</p> |
17,276,580 | 0 | looping through XML file using VB.NET <p>I am having a problem processing an XMl file. I want to loop through (using VB.NET) the file and extract all the values of the OrderID element. </p> <pre><code><?xml version="1.0"?> <ListOrdersResponse xmlns="https://xxx.xxxxxx.com/Orders/999uuu777"> <ListOrdersRe... |
4,380,988 | 0 | XMl Schema: Unique key values within parent <p>I have the following XML:</p> <pre><code> <enumTypes xmlns="tempURI"> <enumType id="1"> <enumValue id="1" value="Item1"/> <enumValue id="2" value="Item2"/> <enumValue id="3" value="Item3"/> </enumType> <enumType id="2"> <enumVal... |
17,634,286 | 0 | Detect which layout is in use in an activity with two layouts <p>I have an activity called MainActivity that has two layouts.The previous activity has two buttons to choose which layout to be set.I need the button in MainActivity to act differently according to the layout in use, This is my code:</p> <pre><code> public... |
3,894,791 | 0 | <p>jQueryUI extends the animate class for this reason specifically. You can leave off the original parameter to append a new class to your object.</p> <pre><code>$(".class1").switchClass("", "class2", 1000); </code></pre> <p><a href="http://jsfiddle.net/m7dAQ/">Sample here.</a></p> |
30,193,477 | 0 | <pre><code><meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no"> </code></pre> |
10,728,042 | 1 | Break multiple lines in a text file into a list of lists <p>I am working with a text file ex:</p> <pre><code>blahblahblahblahblahblahblah blahblahblahblahblahblahblah start important1a important1b important2a important2b end blahblahblahblahblahblahblah </code></pre> <p>What I want is to get an output like</p> <pre><co... |
5,388,506 | 0 | <p>How are you hosting your service?</p> <p>If your service is hosted in IIS, it is possible that the application was recycled between the 2 calls. In this case the app domain is recreated and the static members loose their values.</p> |
19,985,933 | 0 | <p>Hmmm... What happens if you move the line where you assign to <code>scrn(CONV_INTEGER(X),CONV_INTEGER(Y)) <= "00111000" when X = 1 else ...</code> to somewhere inside your process?</p> <p>Also there is no need to use binary literals in your code (e.g., <code>if (X = "1100100000")</code>). Just use integer litera... |
3,642,269 | 0 | Reusable Page_PreRender function in asp.net <p>I have a function which sets my linkbutton as the default button for a panel.</p> <pre><code>protected void Page_PreRender(object sender, EventArgs e) { string addClickFunctionScript = @"function addClickFunction(id) { var b = document.getElementById(id); if (b && ... |
36,586,376 | 0 | How can I pass the results returned by a method from controller to the view <p>I want to use the results returned by a method (cursor in my case) from the controller in my view, in order to draw a graph from the data returned. I wrote a piece of code but I have not found how to pass data to the view. </p> <pre><code> /... |
29,663,006 | 0 | <p>Registry cleaner (System Mechanic 14.5) did it to me (caused the Oracle listener service to be removed from Windows 7). Still had the listener.ora read somewhere else that using lsntrctl start will fix the problem in this circumstance (where there is a valid listener.ora but no service) by adding the service back i... |
5,780,014 | 0 | <blockquote> <p>SilentManager.mAlarmManager.cancel(SilentManager.pi); is the thing that keeps crashing if you leave the app and come back.</p> </blockquote> <p>Use <code>adb logcat</code>, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your "crash". Most likely, ... |
30,599,051 | 0 | <p><strong>Answering my own question.</strong></p> <p>Actually, I followed the idea of sbabbi using a list of intervals coming from <code>boost/numeric/interval</code>, representing the union of intervals.</p> <p>Here is an example :</p> <pre><code>typedef boost::numeric::interval_lib::rounded_math<double> Round... |
8,772,229 | 0 | <p>Fixed, here's the solution <a href="http://stackoverflow.com/a/8550870/106616">http://stackoverflow.com/a/8550870/106616</a></p> |
40,177,004 | 0 | <p>Since the Anniversary update, it is now possible to run background tasks from within the same process as the main app. Both the background task and the main app share the same memory. See <a href="https://msdn.microsoft.com/en-us/windows/uwp/launch-resume/create-and-register-a-singleprocess-background-task" rel="no... |
1,651,679 | 0 | <p>I'm going to hazard a guess that your statement that the code is "slightly modified to work" means that this code:</p> <pre><code>newlistitem.Value = options[j][valuefield].ToString() + ((options[j]["pdprice"].ToString().Length > 0 ) ? "/" + options[j]["pdprice"].ToString() : "" ); </code></pre> <p>actually look... |
27,722,636 | 0 | node.js mongodb projection ignored when there is a criterion <p>I am writing a node.js application using express, mongodb, and monk. </p> <p>When I do a find with criteria only or with projections only, I get the expected result, but when I do a find with both, the full documents are returned, i.e., the projection is n... |
1,664,334 | 0 | C Network Programming - Winsock <p>I have been learning C over the last two weeks, managed to get my head around pointers, arrays and structures.</p> <p>I am looking to do a bit of socket programming on windows and was wondering if anyone has any websites with tutorials and examples or suggest books that teach network ... |
8,764,327 | 0 | <p>This is in addition to my comments: </p> <p>Check out the SDK listed in the link I gave with the comments. They have a sample RoR app laid out which should tell you pretty much exactly how to do each kind of adaptive payment with Rails. Just beware that there are <b>many</b> errors in this application. Look at Jame... |
3,130,941 | 0 | j2me code for blackberry application to display battery level <p>How can I make a Blackberry application display the battery level using J2ME?</p> |
712,004 | 0 | Does Java have methods to get the various byte order marks? <p>I am looking for a utility method or constant in Java that will return me the bytes that correspond to the appropriate byte order mark for an encoding, but I can't seem to find one. Is there one? I really would like to do something like:</p> <pre><code>byte... |
2,483,795 | 0 | <p>The <a href="http://en.wikipedia.org/wiki/Canvas_element" rel="nofollow noreferrer">Canvas element</a> is essentially a drawing canvas that can be painted on programmatically; a sort of scriptable bitmap drawing tool for the web.</p> <p>I suppose the "amazing" thing about it, apart from the fact that we can now all... |
1,965,618 | 0 | <p>You should take it as more of a symptom than part of the actual problem when you are stuck in system all the time. </p> <p>Memory fragmentation and paging out is the usual suspect, but it could be a myriad of things.</p> <p>In my experience performance problems are seldom something obvious like you are calling some... |
3,637,786 | 0 | <p>By default maven checks dependencies in your local repository first, then on external repositories. The only case which will make maven check external repositories, is the use of snapshots.</p> <p>If you use snapshots, you can use the <code><updatePolicy></code> markup to change when your external repository ... |
21,285,838 | 0 | <p>May Issue: You need to call jquery functionality after <code>ready event fired</code> from JQuery. size and maxlength it works as we expected.maxlength how many char user can type and Size determine visible width, in characters.</p> <pre><code> <h2>Aufgaben:</h2> <div data-role="fieldcontain"> <... |
39,086,782 | 0 | Creating Linked List dynamically in C <p>I'm trying to create a linked list dynamically in <code>c</code> using structures and print it. But my below code is throwing runtime error can anybody tell me why I am getting this error. Here is my code.</p> <pre><code>#include <stdio.h> struct cnode { int value; struct ... |
18,919,079 | 0 | <p>As an additional idea, the problem of GarethD's method is, that it requires more or an equal number of rows in the second table as in the first table.</p> <p>So you can just do a cross join of the second table with the first one, and limit the results to the number of rows in the first table.</p> <pre><code>WITH Pa... |
18,025,599 | 0 | How to reset a variable <p>I'm not sure if I'm missing something obvious or whether this is actually something I don't know how to do, but I'd like to be able to reset some variables (<code>integers</code>). I have a method that increments them, and they're saved in <code>SharedPreferences</code>. I'd like to be able t... |
29,270,122 | 0 | <p>This function could probably be improved upon. Tip of the hat to @thelatemail.</p> <pre><code>lm.3Trans = function(y, x1, x2, transformations = c(log,sqrt,pwer)){ pwer = function(x, p = 2) poly(x,p) res = lapply(transformations, function(f) lm(y ~ f(x1) + x2)) res } </code></pre> <p>This will output your models int... |
25,494,742 | 0 | <p>I experienced the same problem.</p> <p>Downloaded and installed SQL Server 2012 SP2 and that seemed to have fixed the problem.</p> <p>Hope this helps!!</p> |
7,359,193 | 0 | <p>For Ubuntu packages, it may not be the latest version for 2 reasons:</p> <ol> <li><strong>dependencies availability</strong>: the dependencies version required is not available in Ubuntu yet</li> <li><strong>stability</strong>: latest version may not be the most stable version, therefore the most stable version is ... |
17,848,428 | 0 | <p>The error about the <code>/</code> operator usually indicates that PowerShell is not treating the command as a command line; prefix a <code>&</code> to force it to do so. Note you'll also need to use <code>.\cspack</code> if <code>cspack</code> is in the current directory. PowerShell will also treat semicolons ... |
22,495,450 | 0 | <p>Instead of writing your own recursive code, maybe you can just treat this like a LAF change and just invoke:</p> <pre><code>SwingUtilities.updateComponentTreeUI(frame); </code></pre> <p>See the section from the Swing tutorial on <a href="http://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html#dynamic" ... |
14,250,255 | 0 | <p>Access to s3 can be secured in a variety of ways, but frequently people want to host these files directly out of s3, so they provide public access. You must have setup access to your bucket/objects so that they are public.</p> <p>You can also set the bucket name to be a domain of your choosing ala files.yourdomain.... |
29,711,664 | 0 | <ol> <li>Delete the blue folder where the image is. </li> <li>Import again and select "Copy items if needed". </li> <li>Select "Create Groups" NOT folders</li> </ol> |
4,382,669 | 0 | Checking for null and missing query string parameters in PHP <p>I want to be able to distinguish between existing query string parameters set to null, and missing parameters. So the parts of the question are:</p> <ul> <li>How do I check if a parameter <em>exists</em> in the query string </li> <li>What's the established... |
29,739,126 | 0 | <p>I think I see what's going on here. It's actually impossible for the <code>Fragment</code> to be duplicated with only one view container.</p> <p>I suspect that the items in your <code>ListFragment</code> are getting duplicated due to the call to <code>populateList()</code> in <code>onActivityCreated()</code>.</p> <... |
6,841,209 | 0 | Join two rows from the same table <p>I currently have this query set-up:</p> <pre><code>SELECT topic.content_id, topic.title, image.location FROM mps_contents AS topic INNER JOIN mps_contents as image ON topic.content_id = image.page_id WHERE topic.page_id = (SELECT page_id FROM mps_pages WHERE page_short_name = 'foo' ... |
34,275,873 | 0 | Reducing Server Response Time Where Loads Many Resources <p>I have a two PHP scripts that are loading many variable resources from APIs, causing the response times to as long as 2.2 seconds to 4 seconds. Any suggestions on how to decrease response times and increase efficiency would be very appreciated?</p> <p><strong>... |
19,373,415 | 0 | <p>To go back to original app you can use telprompt:// instead of tel:// - The tell prompt will prompt the user first, but when the call is finished it will go back to your app:</p> <pre><code>NSString *phoneNumber = [@"telprompt://" stringByAppendingString:mymobileNO.titleLabel.text]; [[UIApplication sharedApplicatio... |
7,667,780 | 0 | <p>I was having the same problem when upgrading my server from glassfish v3.0.1 to glassfish v3.1.1. Seems like there is a bug in the jaxb-osgi.jar in v3.1.1. <a href="http://java.net/jira/browse/JAXB-860" rel="nofollow">http://java.net/jira/browse/JAXB-860</a> shows that the fix will be included in glassfish v3.1.2. ... |
15,424,129 | 0 | Express.io, socket.io.js not found <p>I got an issue with Express.io, I try to create a simple tchat. But I'm not be able to include the socket.io.js, I got an error...</p> <p>I just installed Express.io on my new Express project.</p> <p>My errors : </p> <ol> <li>GET http://<strong><em>*</em>**</strong>/socket.io/socke... |
4,125,245 | 0 | <pre><code>SELECT * FROM ( SELECT * FROM _A WHERE level = "1" UNION ALL SELECT * FROM _B WHERE level = "1" UNION ALL SELECT * FROM _C WHERE level = "1" ) ORDER BY RANDOM() LIMIT 1 </code></pre> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.