pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
33,739,087 | 0 | <p>Since you have 30 & 60 use those values:</p> <pre><code>update #Temp_Test set prod = 30 , total = 60 where id = 1 </code></pre> |
16,346,066 | 0 | <p>You should pass strings enclosed in quotes - otherwise JavaScript thinks they're variable names:</p> <pre><code><p><input type="radio" name="look" onClick="setActiveStyleSheet('main')" checked> Light & dark blue</p> <p><input type="radio" name="look" onClick="setActiveStyleSheet('alt1... |
40,460,816 | 0 | Can user makes sharing folder in Active Directory? <p>I'm using Active Directory and belong to specified group. (Not an Administrator.) I have made folder in my 'C:' and then trying to share to another group users. But I can't. Just i can get the warning message that '~Access denied~. You did not make shared resources.... |
35,045,984 | 0 | <p>Flexbox can do that:</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>.chatbox { margin: 1em auto; width: 150px; height: 500px; border: 1px solid grey; display: flex; flex-direction: column-reverse; justify-con... |
17,932,643 | 0 | <p>If you had two tables in the same database, you could use a statement like this:</p> <pre class="lang-sql prettyprint-override"><code>INSERT INTO messages1 SELECT * FROM messages2 </code></pre> <p>When you have two different database files, you can <a href="http://www.sqlite.org/lang_attach.html" rel="nofollow">ATT... |
23,445,854 | 0 | <p>I made a librairy to make Hexadecimal / Decimal conversion without the use of <code>stdio.h</code>. Very simple to use :</p> <pre class="lang-c prettyprint-override"><code>char* dechex (int dec); </code></pre> <p>This will use <code>calloc()</code> to to return a pointer to an hexadecimal string, this way the quant... |
8,930,678 | 0 | <pre><code>$strBody = "Today is" .date("l"); </code></pre> <p>Otherwise (when using +) it converted to <code>int</code>.</p> |
35,616,180 | 0 | <p>Array index start from 0.<br> I presume when you say it hides the right answer button is when the answer is "2", since by your <code>giveHint</code> function it will remove index 1 from <code>answers</code> array which is "2".</p> <p>Change your <code>giveHint</code> removeAtIndex will do the trick.</p> <pre><code>... |
33,593,540 | 0 | Volley NetworkImageView with spinner? <p>so I want to provide some feedback to the user while I am loading a gridview of images. Below is my adapters UI. I have a very nasty way of doing my task, adding a spinner to each element of the gridview. When the NetworkImageView loads it hides the spinner..</p> <p>However I as... |
17,838,168 | 1 | Can I build an automatic class-factory that works on import? <p>I have a class-factory F that generates classes. It takes no arguments other than a name. I'd like to be able to wrap this method and use it like this:</p> <pre><code>from myproject.myfactory.virtualmodule import Foo </code></pre> <p>"myfactory" is a real ... |
5,539,077 | 0 | <p>You could use ManualResetEvents and WaitHandle.WaitAny. Basically when one thread is done you would notify the other thread by using a ManualResetEvent (ManualResetEvent.Set()). </p> <pre><code>ManualResetEvent threadFinished = new ManualResetEvent(false); //You would set this in the thread that has finished thread... |
14,206,874 | 0 | <p>I have had an amazing experience with Behat / Mink <a href="http://behat.org">http://behat.org</a></p> <p>I agree with others php as a unit testing platform is not a fun or experience BDD is the best way to go if you are using any php framework</p> <p>Wrapping my head around composer as a repo build tool was the bi... |
13,146,879 | 0 | <p>Try like below,</p> <pre><code>//Note the quotes moved -----------------v $.getJSON('http://api.websiteexample.com/' + apikey); </code></pre> <p>When you have it inside quotes.. It would be considered as a <code>string</code>. You need to put it outside quotes for it to know it is an variable.</p> |
7,008,429 | 0 | Programmatically change view orientation without rotating ipad <p>I would like to rotate a ViewController based on some condition. The problem with shouldAutorotateToInterfaceOrientation is that the view always start with portrait/landscape orientation (as set in Interface Builder) and the user has to rotate the ipad t... |
28,424,284 | 0 | <p><code>out</code> has two forms, <code>out <imm8>, al/ax/eax</code> and <code>out dx, al/ax/eax</code>. Your instruction matches neither of these, so it is malformed.</p> <p>Change your code such that the value you want is in <code>eax</code> instead of <code>ecx</code> (which might be as easy as <code>mov eax... |
24,708,692 | 0 | <p>if you are using storyboard to get a viewcontroller ,you can try this.</p> <pre><code>-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { UIStoryboard *storyboard = [ UIStoryboard storyboardWithName:@"Main" bundle:nil ]; SecondViewController *vc = [storyboard instantiateView... |
39,857,565 | 0 | Typescript warnings when using interface and OpaqueToken in Angular 2 app <p>I have been following the documentation <a href="https://angular.io/docs/ts/latest/guide/dependency-injection.html#!#non-class-dependencies" rel="nofollow">here</a> and use <strong>ng-cli</strong>.</p> <p>I created the following configuration ... |
38,464,553 | 0 | <p>Client side rules obviously run only when the client (Outlook) is open. Server side rules (Exchange only) always run, but they do not run any scripts and are limited to things like forwarding.</p> |
21,008,833 | 0 | build query to select data based on another table <p>tables <img src="https://i.stack.imgur.com/PbdgS.jpg" alt="enter image description here"></p> <p>sample data</p> <p>walls</p> <pre><code>wall_id wall_name 1 wall_1 2 wall_2 6 wall_6 </code></pre> <p>wall_categories</p> <pre><code>wall_id category_id 1 2 2 1 6 1 6 2 <... |
27,621,483 | 0 | netbeans oracle 12c occi windows <p>I'm using netbeans 8.0 on Windows 7 x64 and trying to connect to oracle 12.1 using occi. I've downloaded 12.1.0.2.0 Oracle Instant Client for Windows x64 Basic+SDK. Installed it just unzipping to D:\instantclient_12_1. And then added this path into Windows Path variable. Netbeans is ... |
32,803,472 | 0 | Create a SIN number validator <p>I am creating a C program which tests if a user has entered a valid SIN number. Here is what I have done so far:</p> <pre><code>#include <stdio.h> int main(void) { int num1; printf("Enter your SIN number: \n"); scanf("%d", &num1); } </code></pre> <p>SIN number is a 9 digit lon... |
24,607,298 | 0 | <p>You're not storing the actual image (binary data) into the database, but the <code>tmp_name</code> (string). Use <code>file_get_contents()</code>, like so:</p> <pre><code>$image = addslashes(file_get_contents($_FILES['image']['tmp_name'])); </code></pre> |
5,944,027 | 0 | <p>You don't, the user decided that she was tired of waiting and wanted to work with a responsive program. Review the fine print in SetForegroundWindow() for all the reasons that trying to find a workaround for this won't actually work. Make sure she can get back to the program when it is initialized, a taskbar button... |
115,155 | 0 | <p>Bjarne Stroustrup has a short paper called <a href="http://www.research.att.com/~bs/abstraction.pdf" rel="nofollow noreferrer">Abstraction, libraries, and efficiency in C++</a> where he mentions techniques used to achieve what you're looking for. Specifically, he mentions the library <a href="http://www.oonumerics.... |
24,196,291 | 0 | <p>As Henrique said, you just need to call the function you made as below</p> <pre><code> function sendEmail() { var firstThread = GmailApp.getInboxThreads(0,1)[0]; var message = firstThread.getMessages()[0]; var sender = message.getFrom(); var body = "Detta mail är ursprungligen skickat från" + " " + sender + '\n' + ... |
517,126 | 0 | <p>Xcode can display man pages:</p> <p><a href="http://developer.apple.com/DOCUMENTATION/DeveloperTools/Conceptual/XcodeWorkspace/200-Documentation_Access/chapter_6_section_8.html" rel="nofollow noreferrer">http://developer.apple.com/DOCUMENTATION/DeveloperTools/Conceptual/XcodeWorkspace/200-Documentation_Access/chapt... |
21,264,714 | 0 | Procedure to return first name when inputting last name <pre><code>create or replace procedure p_inout (v_emp_lname in varchar2(25)) as v_first_name varchar2(20); begin select first_name into v_first_name from employees where last_name=v_emp_lname; dbms_output.put_line(v_first_name); end; </code></pre> <p>I am getting ... |
38,354,426 | 0 | <p>Two mistakes: 1) remove letter "s". 2) Add first Upper case</p> <pre><code>... class Product extends Model { protected $table='product'; } </code></pre> |
253,185 | 0 | <p>I've usually experience this whenever the ClassLoader changes.</p> <p>Depending on the exact context that an app is running ClassLoaders have different rules about when a resource file exists. For example in netbeans getResource is case insensitive, but in Sun's JRE it is.</p> <p>Although not directly answering you... |
26,185,432 | 0 | <p>The ProductAreaRegistration was configured to default to a controller that would redirect to the Home controller on the web site root (area="").</p> <p><strong>The ProductAreaRegistration</strong> </p> <pre><code> public class ProductAreaRegistration : AreaRegistration { public override string AreaName { get { retu... |
35,191,083 | 0 | How to avoid 'Unable to load DLL' scenarios <p>I'm trying to build a game using Monogame. Monogame uses its own bunch of DLLs. However inside one of those DLLs is a dependency on another DLL (which could potentially not exist as it was not installed).</p> <p>More specifically when trying to utilize a method/class of Mo... |
17,533,496 | 0 | <p>To get the list of uploaded file names from the <strong>server</strong>, requires server-side code:</p> <p><em>UploadHandler.php</em> is used to upload files to a directory/s on your server.</p> <p>If you've downloaded the plug-in archive and extracted it to your server, the files will be stored in php/files by def... |
32,025,692 | 0 | <p>Try this:</p> <pre><code><?php if ($_POST['sub']) { $server = "localhost"; $username = "yourusernamehere"; $pass = "yourpasswordhere"; $db = "users"; // Create connection $mysqli = new mysqli($server, $username, $pass, $db); // Check connection if ($mysqli->connect_error) { die("Connection failed: " . $mysqli... |
16,701,139 | 0 | <p>I think I found another solution to this problem, which lets you leave the Colorized Parameter Help feature turned on.</p> <p>In Fonts and Colors, I specified a value for the "Signature Help - User Types(Value Types)" item, and I don't have the problem any more.</p> <p>Note: I also have the Color Theme Editor exten... |
13,291,700 | 1 | executemany for MySQLdb error for large number of rows <p>I'm currently running a script to insert values (a list of tuples) into a MySQL database, using the execute many function. When I use a small number of rows (`1000), the script runs fine.</p> <p>When I use around 40,000 rows, I receive the following errors:</p> ... |
15,945,808 | 0 | <p>Although I am quite new in this let me share with you what I am doing. </p> <p>Firstly, I create the engine (where is the service that I call located).</p> <p>In my interface: </p> <pre><code>@interface INGMainViewController (){ MKNetworkEngine *engine_; } </code></pre> <p>In my Initialization:</p> <pre><code>- (id... |
37,023,758 | 0 | How to move HBase tables to HDFS in Parquet format? <p>I have to build a tool which will process our data storage from HBase(HFiles) to HDFS in parquet format.</p> <p>Please suggest one of the best way to move data from HBase tables to Parquet tables.</p> <p>We have to move 400 million records from HBase to Parquet. Ho... |
36,349,319 | 0 | <p>I assume you want to do this in an activity class.</p> <p>You first create a new instance of <code>EditText</code>:</p> <pre><code>EditText textfield = new EditText(this); </code></pre> <p>Then you want to set the properties of the <code>EditText</code>:</p> <pre><code>textfield.setText(...); textfield.setHint(...)... |
12,108,875 | 0 | <p>@JcFx - This has not been the case actually!</p> <pre><code><div style="width: 100%; margin-top: 10px"> <div style="float: left; display: inline-block; width: 50%" class="div1"> <div style="float: left; display: inline-block; width: 25%" class="div2"> <ul> <li class="list1"> <asp:La... |
6,774,428 | 1 | Python get start and end date of the week <p>How to get the start date and end date of a week, and also if the following dates below comes under a particular range of start and end dates of the week how to show only those weeks start and end date.I am using python 2.4</p> <pre><code>2011-03-07 0:27:41 2011-03-06 0:13:4... |
40,883,500 | 0 | java-regex: How to write regular expression for two digit numbers <p>I have password field with ID locator "j_idt90". However the ID is dynamic and the two digits in the preceeding changes everytime login page loads.</p> <p>Iam using automation to capture this field and used below regular expression but it is failing. ... |
28,351,505 | 0 | <p>I think that your problem is that you want to use $requests as a global variable. In your code it's not. You should pass it as a reference:</p> <pre class="lang-php prettyprint-override"><code>$mh = curl_multi_init(); $requests = array(); addSentimentHandle ( 'Hello', $requests ); addSentimentHandle ( 'Hello :)', $... |
37,187,338 | 0 | Input path limit for Android ndk source file <p>Is there a known limit on the path for the Android ndk input files? I've run into an issue where the input path is over 155 characters the android g++ command fails to find the file.</p> <p>The local path back down to my base directory is quite deep, in a few cases I have... |
34,944,982 | 0 | <p>This is not a bug but an unsupported feature. It is currently not possible to set the parallelism for a single operator, but only the complete job.</p> <p>I have opened a JIRA for this: <a href="https://issues.apache.org/jira/browse/FLINK-3275" rel="nofollow">https://issues.apache.org/jira/browse/FLINK-3275</a></p> |
37,516,178 | 0 | Maven not able to download dependencies using eclipse, proxy not working <p>I am trying to build a maven project using eclipse. My overall problem is Maven will not connect to the online Maven repository to collect the necessary artifacts needed to build the project. I have tried using numerous proxies, but get the fol... |
25,185,601 | 0 | shift/reduce Error with Cup <p>Hi i am writing a Parser for a Programming language my university uses, with jflex and Cup I started with just the first basic structures such as Processes an Variable Declarations.</p> <p>I get the following Errors</p> <pre><code> Warning : *** Shift/Reduce conflict found in state #4 bet... |
34,691,358 | 0 | <p>Put what you want to exclude inside a negative lookahead in front of the match. For example,</p> <ul> <li><p>To match all punctuations apart from the question mark,</p> <pre><code>/(?!\?)[[:punct:]]/ </code></pre></li> <li><p>To match all words apart from <code>"go"</code>,</p> <pre><code>/(?!\bgo\b)\b\w+\b/ </code... |
25,217,150 | 0 | 200 error: missing username when logging in using Parse and LiveCode <p>I am trying to login to Parse through LiveCode but keep getting this error:</p> <blockquote> <p>{"code":200,"error":"missing username"}</p> </blockquote> <p>I have been able to create users, even validate user's email (through the REST API in Parse... |
35,178,104 | 0 | <p>Try this:-</p> <pre><code><RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <ImageView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerInParent="true" android:src="@drawable/clock_number"/> <TextView android:layout_... |
4,528,828 | 0 | <p>Your plugin should add a class or maybe a .data cache item to elements that have already been activated by the plugin. Then inside your plugin you can ignore an element if it has already been activated.</p> <p>Also another way is just to select elements from the fragment returned by the ajax call.</p> <pre><code>$(... |
36,774,431 | 0 | How to load images from a directory on the computer in Python <p>Hello I am New to python and I wanted to know how i can load images from a directory on the computer into python variable. I have a set of images in a folder on disk and I want to display these images in a loop.</p> |
21,222,137 | 0 | <p>It simply replaces <code>x</code> with <code>1.0f</code>, so:</p> <pre><code>NSNumber *n = FBOX(1.0f); </code></pre> <p>becomes:</p> <pre><code>NSNumber *n = [NSNumber numberWithFloat:1.0f]; </code></pre> <p>this is then presented to the compiler.</p> |
34,524,294 | 0 | How to open only inbuilt calling application in android not skype or other applications <pre><code>private void makeCall() { Intent intent = new Intent(Intent.ACTION_CALL); intent.setData(Uri.parse("tel:" + phoneNumber)); if (intent.resolveActivity(getPackageManager()) != null) { startActivity(intent); } } </code></pre... |
15,426,142 | 0 | Log Files in HBase <p>Where will be the HLog files are stored in HBase. Currently i am using HBase on top of my local file system instead of HDFS, I wanted to observe how HBase is logging the details for each operation like put. How can i observe that?<br> I wanted to check how it is handling the user given timestamp</... |
23,243,249 | 0 | How to play .mkv video in ASP.NET MVC using Microsoft.Web.Helpers.Video? <p>THis is a Self explantory title! I have a asp.net mvc application where I display videos from youtube. Now we decided not to use youtube because of their ads and other... First I used </p> <pre><code> @Microsoft.Web.Helpers.Video.Flash(...) </c... |
6,378,822 | 0 | <p>The months are numbered from zero, not one. In other words, "6" is July, not June.</p> <p>(I mean, they're numbered that way as far as the JavaScript "Date" class is concerned.)</p> |
3,138,626 | 0 | <p>You're essentially asking what is referred to as 'matchmaking' in PC and console games.</p> <p>The notion of displaying all currently online players or active matches is an early one in online multiplayer gaming, and I think it's seen its time. Instead, try and offer your players two options: Play with your friends... |
22,048,718 | 0 | <p>The only progress I have made on this question is the discovery that on the workstation I was using, the SUBST command was used to create drive D. That is to say, C and D are really the same physical drive.</p> <p>SUBST does not seem to completely break Git though. I have the project on drive D and the git repo on ... |
3,713,871 | 0 | Globally Reuse ActiveRecord Queries across Models? <p>Not sure how to word the question concisely :).</p> <p>I have say 20 Posts per page, and each Post has 3-5 tags. If I show all the tags in the sidebar (<code>Tag.all.each...</code>), then is there any way to have a call to <code>post.tags</code> not query the databa... |
27,323,524 | 0 | Execute ScriptCS from c# application <p><strong>Background</strong></p> <p>I'm creating a c# application that runs some status checks (think nagios style checks).</p> <p>What I ideally want is this c# application to look at a specific directory, and just compile/execute any scriptcs scripts within it, and act on the re... |
2,329,519 | 0 | <p>String literals are simply zero terminated array of chars in C++. There is no operator that allows you to add 2 arrays of chars in C++. </p> <p>There is however a char array and std::string + operator.</p> <p>Change to: </p> <pre><code>const std::string message = std::string("Hello") +", world" + exclam; </code></p... |
32,053,810 | 0 | <p>Your code does not call the replyBlock in the first if block (before the else). Might that be the code path that you see the error log for? </p> |
14,763,233 | 0 | <p>If there is a <code>FOREIGN KEY</code> constraint from <code>activity</code> to <code>item</code> (and assuming that <code>user_id</code> is in table <code>activity</code>), then your query is equivalent to:</p> <pre><code>SELECT COUNT(*), COUNT(DISTINCT user_id) FROM activity WHERE item_id = 3839 AND created_at &g... |
10,766,037 | 0 | Calling External function from within function - Javascript <p>I am using Phonegap and JQueryMobile to create a web application. I'm new to javascript and am having an issue.</p> <p>My issue is with calling a function I have in a file named "testscript.js", the function is called testFunc. The testscript.js containts o... |
19,447,200 | 0 | <pre><code>public class Car { private String make; private String model; public Car(String make, String model) { this.make = make; this.model = model; } public void setMake (String str1) { make = str1; } public void setModel (String str2) { model = str2; } public String getMake() { return make; } public String getMode... |
27,827,463 | 0 | <p>On Windows at the command prompt run: <code>gradlew referencePdf --stacktrace</code> and that should tell you what happened. In my case, it was a heap size issue. I set an environment variable <code>set GRADLE_OPTS="-Xmx1024m"</code> then was able to build the pdf successfully.</p> |
15,445,045 | 0 | <p>it's an array, not a string, so just give it the array of points:</p> <pre><code>... var points = []; $(this).children("input").each(function(index) { points[index] = $(this).val(); }); var plot1 = $.jqplot('chart1',[points]); </code></pre> <p>updated fiddle: <a href="http://jsfiddle.net/fdKRw/4/" rel="nofollow">ht... |
8,850,112 | 0 | <p>This can be done simply with the following to get the actual text value...</p> <pre><code>var value = $("[name='MyName'] option:selected").text(); </code></pre> <p>or this to get the option 'value' attribute...</p> <pre><code>var value = $("[name='MyName']").val(); </code></pre> <p>With the following html, the firs... |
17,752,366 | 0 | element select validation error <p>I am confused as how to validate this strip of code in HTML5:</p> <pre><code><select onChange="window.open(this.options[this.selectedIndex].value,'_top')"> <option value=""> Choose Your State or Jurisdiction </option> <option value="allaw.htm">Alabama </opti... |
5,398,532 | 0 | <p>Strange. I use webview and an options menu, works fine. </p> <p>I don't extend WebView... I extend activity, then config the webview in the XML or add the webview to "content view". </p> <p>Do all the websettings and add my own chromeclient and viewclient to change the functionality of webview.</p> <p>I just switch... |
34,502,580 | 0 | <p>It is really hard to work with transformations if node will be transformed before cache. As workaround you can add transformed node to a group, then cache the group.</p> <pre><code>var text1 = new Konva.Text({ text:'Test', scale: {x:10,y:10}, x:10, y:10 }); group1.add(text1); group1.cache(); </code></pre> <p><a hre... |
27,885,585 | 0 | <p>This is a <em>one-to-one</em> translation to F#:</p> <pre class="lang-ml prettyprint-override"><code>type A() = let mutable _items = null member this.items with get() = if _items = null then _items <- DAL.FetchFromDB() _items let a = A() let x = a.items // db access here let y = a.items </code></pre> <p>There ar... |
533,040 | 0 | <p>The two forms are equivalent.</p> <p>The recommended style is to use the braces for one line blocks and use the "do"-"end" for multiline blocks.</p> <p><strong>Edit:</strong> <a href="http://stackoverflow.com/users/36378/austin-ziegler/">Austin Ziegler</a> pointed out (in the comment below) that the two forms have ... |
4,543,593 | 0 | Is ther any tool to extract keywords from a English Text or Article In Java? <p><strong>I am trying to identify the type of the web site(In English) by machine.</strong> I try to download the homepage of the web iste, download html page, parsing and get the content of the web page. Such as here are some context from CN... |
13,159,540 | 0 | <p>There's no such thing as internal/private methods in perl objects. Common practise is to start any methods which should not be used publicly with an underscore, but this is not enforced in any way. Also have a look at moose - it takes a lot of the hassle out of OO perl.</p> <p>With regards to your question the belo... |
4,695,740 | 0 | translate dutch sql data to english <p>i currently have a dutch sql 2005 database and would like to hopefully convert a good portion of it to english if possible. I have scoured google for options however im at a loss. Some sites are suggesting a wordlist database (from TT Solutions) however the most complete one that ... |
38,837,424 | 0 | Rails 4.2: datetime attribute not being saved <p>I'm using an attribute named <code>:subscription_active_untill</code> in my user table, its type is <code>datetime</code>, I'm trying to save a datetime stamp in it but it is not being saved. For example, executing current command in rails console</p> <pre><code>User.fin... |
18,022,794 | 0 | How to call jQuery function inside jquery tmpl? <p>This is my code:</p> <pre><code><script id="quotes" type="text/x-jquery-tmpl"> {{each(i,market) Markets}} <span style="margin-left:3px;">${market.Symbol}</span>&nbsp; <span class="lastPrice">${market.CurrentQuote.LastPrice}</span>&... |
14,511,449 | 0 | Understanding Core Data Queries(searching data for a unique attribute) <p>Since I am coming from those programmers who have used sqlite extensively, perhaps I am just having a hard time grasping how Core Data manages to-many relationships. </p> <p>For my game I have a simple database schema on paper. </p> <pre><code>En... |
38,808,629 | 0 | <p>First you must tried something :)</p> <p>Please check this links </p> <p><a href="http://stackoverflow.com/questions/19730598/right-to-left-support-for-twitter-bootstrap-3">Right to Left support for Twitter Bootstrap 3</a> </p> <p><a href="http://stackoverflow.com/questions/23336065/twitter-bootstrap-pull-right-and... |
33,894,259 | 0 | <p>You need <code>GROUP_CONCAT/LISTAGG</code> equivalent in <code>SQL Server</code>. You can use <code>XML, STUFF and correlated subquery</code> as replacement.</p> <p>If <code>PRODUCT_ID</code> is <code>UNIQUE</code> you can use:</p> <pre><code>WITH cte AS ( SELECT PD.PRODUCT_ID, PD.PRODUCT_NAME, PD.BARCODE, PD.SUPPL... |
23,745,636 | 0 | <p>Function templates <a href="http://stackoverflow.com/a/22411782/2567683">mix weirdly with overloading</a>.</p> <p>A possible solution (not the unique) would be to use <code>enable_if</code> for the declaration of each function enalbing the second for pointer types and vise versa for the first</p> <pre><code>#includ... |
9,593,651 | 0 | <p>In most cases, you could have one RDS instance that all 3 ec2 instances connect to. If you have a very relational demanding database application, you can look into database replication.</p> |
1,295,337 | 0 | <p>Eh.. probably not. They are different enough that you cant even Interface them.</p> |
26,404,630 | 0 | MySQL query with "not exists" takes too long <p>I have a table like this:</p> <p>u</p> <p>My query is </p> <pre><code>SELECT *, week (pdate,3) FROM pubmed where not exists (select 1 from screened where suser=86 and ssearch=pubmed.aid) order by pdate desc </code></pre> <p>Screened has only 30000 records, but the query t... |
23,573,074 | 0 | Can I load all shipping methods automatically on the shopping cart page without selecting a country first? <p>Can I load all my shipping methods automatically on the shopping cart page without prior to selecting a country?</p> <p>By Magento default, you have to select your country where you want to ship your order to. ... |
10,294,907 | 0 | <p>There's no general "turn everything off" facility. You need to select what you want to turn off and do each individually, if that's actually possible...</p> <p>You can't disable animated zoom. This is the subject of a <a href="http://code.google.com/p/gmaps-api-issues/issues/detail?id=3033" rel="nofollow">long-stan... |
3,806,858 | 0 | <p>If a DLL needs to invoke behavior in the host application, then the host should provide a <em>callback function</em> to the DLL that the DLL stores and calls when appropriate.</p> <p>Your DLL exports a function that tells it to display the form, right? Add a couple of parameters to that function for the EXE to prov... |
37,610,094 | 0 | <p>You could use:</p> <pre><code>echo "<pre>"; var_dump($array); echo "</pre>"; </code></pre> <p>This way you will get a nice preformatted result of var_dump.</p> |
32,241,155 | 0 | <p>You don't import variables from a function to another. Functions are for returning values and variables, and you can always call a function to get its return value. For example:</p> <pre><code>def interest(amt): return amt * FIXED_INT def calc(debt, time): return debt * interest(debt) ** time </code></pre> |
16,596,107 | 0 | <p>Aptana Studio 3 was the reason for such behavior. Obviously it set some eclipse settings which are conflicted with Zend Studio. Uninstalling Aptana and re-installing Zend Studio solved this issue.</p> |
26,011,938 | 0 | <p>The important bit in the Oracle article you mention is the part titled - <strong>Supporting Multiple Clients</strong>.</p> <p>The basic Java socket API is a blocking API, which basically means you call a method and that method blocks until an IO event happens. If you need to wait for multiple IO events - in your ca... |
16,506,692 | 0 | <p>thanks to to the answer here</p> <p><a href="http://www.rohitab.com/discuss/topic/39969-hook-function-without-knowing-signature/" rel="nofollow">http://www.rohitab.com/discuss/topic/39969-hook-function-without-knowing-signature/</a></p> <blockquote> <p>I guess, you almost there with your code... you just need to ma... |
15,307,875 | 0 | MVC3 and EF5: Including Child and GrandChild entities in the View <p>To make things simple, I have 3 entities (one to many, left to right):</p> <p>COURSE -> MODULE -> CHAPTER</p> <p>A course can have multiple modules and a module can have multiple chapters.</p> <p>All I have in the controller is this:</p> <pre><code>Co... |
31,247,229 | 0 | Which version of swift compiler is the default Xcode 6.4? <p>I have some tests failing on a new machine with Xcode 6.4, with this error:</p> <pre><code>'NSDictionary' is not implicitly convertible to '[NSObject : AnyObject]'; did you mean to use 'as' to explicitly convert? </code></pre> <p>On my machine (still on a old... |
20,985,860 | 0 | Extensions-like context menu in Chrome Apps (browser wide) <p>I have been practicing with Chrome extensions and apps and noticed <code>chrome.contextMenu</code> is not browser-wide for Chrome Apps. It only manages the context menu of the App background windows.</p> <p>Is there a way to create browser-wide context menus... |
10,074,904 | 0 | Why I can't perform mouse move using Selenium WebDriver for C# and PageFactory in initialization <p>I have an link in HTML and I use Page Object pattern to write scripts with Selenium. But I can't perform MouseMove action when object is initialized with pageFactory. So, I have such class:</p> <pre><code>class BingPage ... |
142,503 | 0 | <p>Great Question! If I'm not mistaken I don't think debugging is possible inside of SQL Management Studio anymore (as it was back in the SQL Server 2000, Enterprise Studio days).</p> <h2>Instructions to Remote Debug MS SQL Stored Procedures within Visual Studio 2005</h2> <ol> <li>Launch Visual Studio (If you're runni... |
5,176,398 | 0 | <p>I have a project called <a href="http://yaam.codeplex.com/" rel="nofollow">Yaam on CodePlex</a> that uses C# to send data through the serial port. Check that out for an example. On the C# side (see Yaam\Yaam.xaml.cs), simply use the <code>SerialPort</code> class in the <code>System.IO.Ports</code> namespace. Once y... |
3,983,544 | 0 | Programatically set OnSelectedIndexChanged for a ddl <p>a minor question but it's driving me nuts. I'm programatically generating about 50 DDLs based on a database schema (i.e. item 1 can do a,b,c item 2 can do d, e, a, etc etc).</p> <p>If I was just writing the markup, I could specify:</p> <p>asp:DropDownList OnSelect... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.