pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
29,481,926 | 0 | Query that joins 3 tables <pre><code>CREATE TABLE User(uid INTEGER AUTO_INCREMENT,address VARCHAR(40),city VARCHAR(20),state VARCHAR(20), </code></pre> <p>What Ive tried so far...</p> <pre><code>SELECT User.uid, Job.jobid, Protein.pid FROM User JOIN Job ON (Job.uid = User.uid) JOIN Protein ON (Job.pid = Protein.pid) </... |
5,137,422 | 0 | <p>I just found a way to do this.</p> <p>Move everything under TRY, and that way, the CATCH is the last thing, so there's nothing else to be executed.</p> |
33,517,311 | 0 | Magento Patch 6788 Installation error <p>I am trying to install magento patch 6788 form ssh. but when i run command </p> <pre><code>sh PATCH_SUPEE-6788_CE_1.8.1.0_v1-2015-10-26-11-59-27.sh </code></pre> <p>i am getting this error </p> <pre><code> Checking if patch can be applied/reverted successfully... ERROR: Patch ca... |
32,045,695 | 0 | How to pass parameters / arguments from one javascript snippet to another, when evaluated <p>My goal is to execute a javascript snippet using another javascript snippet using </p> <p><code>new Function(x1, x2, x3, functionBody)</code> call.</p> <p>My problem appears when i need to pass parameters to the function, this ... |
25,948,930 | 0 | <p>$datas = array(); $empcount = 10; $emp = $dIndex = 0;</p> <p>for($i=0;$i if( $emp >= $empcount) { $dIndex++; $emp = 0; } $datas[$dIndex][] = $finaldata[$i]; }</p> |
25,159,412 | 0 | <p>what you probably want is a "provided"*-scope dependency on <code>org.wildfly:wildfly-spec-api:8.1.0</code> (which is a pom artifact containing all the apis/specifications provided to you by wildfly).</p> <p>assumming you intend to deploy your app inside wildfly (as opposed to embedding wildfly in your own main() s... |
40,673,098 | 0 | <p>Probably there is. Probably you can also use another callback on the application model which happens before, there are plenty of them. See <a href="http://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html" rel="nofollow noreferrer">Active Record Callbacks</a></p> <p>However this is exactly the case, which oth... |
12,100,843 | 0 | <p>If at all possible you should store your additional values as <code>hidden</code> input fields (one per value) rather than as meta-data on other input fields. They'll then get serialized automatically as part of the form.</p> <p>I won't write a serializer for you, as I think it's a bad idea. If you <em>insist</em> ... |
38,717,284 | 0 | <p>According to php manual </p> <p><strong>random_bytes</strong> : Generates <strong>cryptographically secure</strong> pseudo-random bytes <strong>openssl_random_pseudo_bytes</strong> : Generate a pseudo-random string of bytes</p> <p>so main difference is the <strong>cryptographically secure</strong></p> <blockquote> ... |
23,363,406 | 0 | How to Sort products based on Product Variant Attribute Value in nopcommerce3.10 <p>Please help me to filter products based on Product Variant Attribute Value in nopcommerce3.10</p> <p>Thanks</p> |
17,246,440 | 0 | <p>This will capture the two square brackets <code>\K\[\[(?>[^]]++|](?!]))]]*</code> </p> <p><strong>Input Text</strong></p> <pre><code>like [[ yes|ja ]] with </code></pre> <p><strong>Matches</strong></p> <pre><code>[0] => [[ yes|ja ]] [1] => yes|ja </code></pre> <p>I"m not a python programmer, but I think yo... |
30,188,231 | 0 | <p>Just loop over the selections:</p> <pre><code>Sub Maja() Dim K As Long K = 1 vals = Array("3", "6", "9") For Each a In vals For Each b In vals For Each c In vals For Each d In vals For Each e In vals Cells(K, 1) = a & b & c & d & e K = K + 1 Next e Next d Next c Next b Next a MsgBox K End Sub </code... |
26,155,338 | 0 | <p>I am using the following</p> <pre><code><fo:block font-weight="normal" text-align="left"> <fo:external-graphic src="url(file:images/CompanyLogo.png)" content-height="8mm" /> </fo:block> </code></pre> |
14,649,880 | 0 | Make a web browser as modal popup window in my web site <p>Hi guys I just found out that it's possible to implement a draggable modal popup using web browser itself.that how tinymce and joomla and other popular frameworks use it. And my questions is how can we apply that css stylize on browser itself, by hiding the add... |
24,130,164 | 0 | <p><strong>To display text instead of ID from dropdown list</strong>:</p> <p>You can create a function in the directive that loops through the options, and returns the <code>name</code> when the <code>id</code> matches the value you're binding on. For example:</p> <pre><code>scope.statusText = function(){ var text = '... |
22,209,054 | 0 | <p>Instead of checking the empty value it's better to check the length of the content</p> <pre><code>$("td").hover(function(){ var cell = $(this).html(); if(cell.length===0) $(this).css( "background-color", "orange"); else $(this).css( "background-color", "black"); }); </code></pre> |
25,892,005 | 0 | <p>Under normal circumstances. Java properties of the variable names are lowercase letter, such as: userName, ShowMessage, but there are special circumstances, taking into account certain interesting English acronym (USA, XML, etc.), JavaBean also allows capital letters beginning the attributes variable name, but must... |
12,333,125 | 0 | <p>By using <a href="http://plugins.jquery.com/project/jCaret" rel="nofollow">JQuery Caret Plugin</a>, you could use some code like:</p> <pre><code><textarea id="codeInput" cols="80" rows="50">content</textarea> <script type="text/javascript"> var tagDict = { "[b]" : "[/b]", "[c]" : "[/c]", "[d]" : "... |
29,208,020 | 0 | Set maximum of upload size in a asp.net application <p>in asp.net I cant set my upload limit with the value:"maxAllowedContentLength". This value has the type uint32, that means it has a maximum size of: "4294967295". The problem is, that 4gb for me, are not enough. Is there a way, to increase this value?</p> |
4,671,159 | 0 | <p>If you are having problem with validation messages you can always check the codes for the validation errors using the <code>errors</code> collection on an instance.</p> <pre><code>Customer c = ... c.validate() c.errors.each { println it } c.errors.getFieldError("address").codes.each { println it } c.errors.getField... |
22,221,371 | 0 | <p>Yes, this is entirely correct. You can easily check it by setting the grid search procedure in verbose mode:</p> <pre><code>>>> estimator = GridSearchCV(pipe, dict(pca__n_components=n_components, ... logistic__C=Cs), ... verbose=1) >>> estimator.fit(X_digits, y_digits) Fitting 3 folds for each of ... |
12,421,783 | 0 | <p>iPhone5's cpu is A6(armv7s). The existing Admob sdk does not support it. We have to wait for admob to update the sdk.</p> |
13,379,911 | 0 | Drupal Commerce - Paypal Payment <p>I'm looking for a explanation about how the Paypal Sandbox works. Let's say I have a real Paypal account through which I receive payments and I want to configure it on Drupal Commerce's Paypal module, but also I want to test the payment workflow first before making it live and let my... |
3,506,988 | 0 | Output UTF-16? A little stuck <p>I have some UTF-16 encoded characters in their surrogate pair form. I want to output those surrogate pairs as characters on the screen.</p> <p>Does anyone know how this is possible?</p> |
20,399,715 | 0 | <p>Simple wrapping of C# Console behaviour in F# printfn style. </p> <p>NB. the printfn "no format" overload is not working for this work-around.</p> <p>I'll award the question to the best answer if another answer shows up.</p> <pre><code> // .fs code // -------- namespace Play open PlayCS open System open NUnit.Frame... |
29,608,255 | 0 | <p>View</p> <pre><code>@using (Html.BeginForm("Save", "Doctor", FormMethod.Post)) { <p> @Html.LabelFor(model => model.Foo): @Html.EditorFor(model => model.Foo) @Html.ValidationMessageFor(model => model.Foo) </p> <p> @Html.LabelFor(model => model.barImage) <input type="file" name="Image... |
14,801,332 | 0 | <p>A very simple (but rather memory expensive) way would be:</p> <pre><code>bool use_map(const std::string& sentence) { std::set<char> chars(sentence.begin(), sentence.end()); return chars.size() == sentence.size(); } </code></pre> <p>If there's no duplicate chars, the sizes of both string and set will be eq... |
14,041,137 | 0 | <p>for anyone having the same problem, I've managed to fix it starting from scratch on the code and using this: <a href="http://jsfiddle.net/tuando/CA8KV/1/" rel="nofollow">http://jsfiddle.net/tuando/CA8KV/1/</a></p> <pre><code>$("#accordion").accordion(); $(".section-link").click(function (e) { e.preventDefault(); $(... |
9,431,116 | 0 | <p>Please try following, </p> <ul> <li>Install Microsoft Access Database Engine.exe.</li> <li>On IIS goto Application pools, choose the application pool of the website. </li> <li>Click on Advanced settings, set Enable 32-bit Applications to true.everything should work.</li> </ul> |
21,770,712 | 0 | <p><code>p</code> elements are paragraphs - so they have a default property of display:block. Either use another element, for example a <code>span</code>. Alternatively you can change the display property of the p dom element, for example to <code>display:inline</code>.</p> <p>Update - the property of vertical align '... |
21,373,683 | 0 | <p>On the basis that the <code>else</code> is there, no, it won't work.</p> <p>For it to work how you wish it to, you'd need to remove the else and just use 2 <code>if</code> statements, such as;</p> <pre><code>// Set default values; $a = 2; $b = 0; // Check $a if( $a == 2 ) { // Change values $a = 0; $ b = 2; } // Ch... |
37,058,855 | 0 | <p>For the addition, it could be like this</p> <pre><code>bool addBigInt( const BigInt n1, const BigInt n2, BigInt res ) { int i, sum, carry = 0; for(i=0; i<MaxDigits; i++) { sum = n1[i] + n2[i] + carry; res[i] = sum % 10; carry = sum / 10; } return carry == 0; } </code></pre> |
37,627,989 | 0 | <p>Use the JavaScript <code>JSON.Stringify()</code> function. Example:</p> <pre><code>$.ajax({ method: "POST", url: "/yourController/yourAction", data: { name: "John", location: "Boston" } }).done(function( data ) { alert(JSON.Stringify(data)); }); </code></pre> |
10,235,421 | 0 | Check the existence of an object in Core Data <p>I found this code in response to another question:</p> <pre><code>NSError *error = nil; NSUInteger count = [managedObjectContext countForFetchRequest:request error:&error]; [request release]; if (!error){ return count; } else return 0; </code></pre> <p>The problem is... |
11,484,405 | 0 | Incorrect forms authentication timeout <p>I want to make "remember time" on a site something aroun one week. In default mvc 3 application I set this changes:</p> <pre><code><forms loginUrl="~/Account/LogOn" timeout="10880" slidingExpiration="true" /> </code></pre> <p>But, it is not enought. After half an hour sit... |
22,077,214 | 0 | <p>Turn on the Debug Graphics Device (D3D11_CREATE_DEVICE_DEBUG) and you should see that your constant buffer is not 64 bytes in HLSL as you expect.</p> <pre><code>// cbuffer LightBuffer // { // // float4 lightRange; // Offset: 0 Size: 16 // float3 lightPos; // Offset: 16 Size: 12 // float3 lightColor; // Offset: 32 S... |
2,595,096 | 0 | <p>Since traversing a <a href="http://en.wikipedia.org/wiki/Binary_tree" rel="nofollow noreferrer">binary tree</a> requires some kind of state (nodes to return after visiting successors) which could be provided by stack implied by recursion (or explicit by an array).</p> <p>The answer is no, you can't. (according to t... |
39,880,011 | 0 | strange issue when using drawer in android lolipop <p>i have mainlayout.xml as coded below :</p> <pre><code><?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="... |
4,420,170 | 0 | <p>Honestly, no or at least not that I've run across. Whether you use your data (EF) models for the MVC model or not in either case you're going to have to decorate a bunch of classes (properties) with the attributes. </p> <p>Personally I generally insert a business layer between my DAL (EF/NHibernate/etc.) and my UI ... |
11,094,002 | 0 | <p>You can manually fire the change event after you dynamically populate the field, eg:</p> <pre><code>jQuery("#input_4_64").val(selectedValue).change(); </code></pre> |
23,027,463 | 0 | SQL : search from two tables <p>I'm using SQL Server and I have two tables</p> <p><code>player</code>:</p> <pre><code> player guildId -------------------- a 1 b 2 c 2 d 2 e 1 f 1 g 1 </code></pre> <p><code>game</code>: </p> <pre><code> player gameId -------------------- a 4 b 1 c 2 d 1 e 3 f 2 g 2 </code></pre> <p>I wa... |
17,477,454 | 0 | <p>You can use <code>CopyTo</code> method of the <em>stream</em>.</p> <pre><code>MemoryStream m = new MemoryStream(); dataStream.CopyTo(m); byte[] byteArray = m.ToArray(); </code></pre> <p>You can also write directly to file</p> <pre><code>var fs = File.Create("...."); dataStream.CopyTo(fs); </code></pre> |
5,097,088 | 0 | How to copy MySQL table structure to table in memory? <p>How to create a table in memory which is identical to "regular" table? I want a copy without indexes and constraints. Pure SQL (no external tools).</p> <p>This works (however indexes are created):</p> <pre><code>create table t_copy (like t_original) </code></pre>... |
22,898,036 | 0 | <p><em>You can use <code>angular.bootstrap()</code> directly...</em> the problem is you lose the benefits of directives.</p> <p>First you need to get a reference to the HTML element in order to bootstrap it, which means your code is now coupled to your HTML.</p> <p>Secondly the association between the two is not as ap... |
29,003,856 | 0 | Why I get Forbidden error <p>I have created a custom bitnami app at:</p> <pre><code>/opt/redmine-2.6.0-3/apps/widgets </code></pre> <p>but, when I try to access the app from web browser:</p> <pre><code>http://192.168.10.18:8080/widgets/ </code></pre> <p>I get error:</p> <pre><code>Forbidden You don't have permission to... |
10,542,734 | 0 | NSBundle Not Working <p>NSBundle outputs the old name of my app: "/var/mobile/Applications/0E1638D2-5B9C-4A1F-8ED2-5F8ADF55D3F6/distributedLCA.app" but I renamed the project but it still prints out that old .app name. Is there a way to fix this?</p> <p>My code:</p> <pre><code>[[NSBundle mainBundle] resourcePath] </code... |
13,192,074 | 0 | ehcache - any solution to access expired element content? <p>I am using ehcache to cache data, usually 24h expiration time. I want to take element individual actions at the time an element expires. Therefore i neee the element content. I registered a CacheEventListener in order to get a notification (notifyElementExpir... |
35,331,518 | 0 | <p>This is a non-standard GCC extension. Many other compilers like Visual C++ don't support <a href="https://en.wikipedia.org/wiki/Variable-length_array" rel="nofollow">VLA</a>.</p> <p><a href="http://rextester.com/WPX55597" rel="nofollow">LIVE DEMO</a></p> |
20,859,233 | 0 | How to draw ImageView on ImageView? <p>I have an ImageView and I would like to draw dinamically another images on my base ImageView.</p> <p>In this image for example I have a tree and I would like to draw image of people</p> <p>Any suggestions to start?</p> <p><img src="https://i.stack.imgur.com/XTbpy.jpg" alt="enter i... |
8,016,549 | 0 | ORDER BY timestamp with NULLs between future and past <p>I would like to order SQL results by a timestamp field in descending order with newest entries first. However, I have certain rows that are blank or contain zeros. How can I sandwich these result in between future and past rows? Can this be done with CASEs?</p> <... |
22,453,289 | 0 | Java public class with public constructor with non-public parameter. Why? <p>Java allows to define the following pair of classes.</p> <pre><code>class Class1 { ... } public Class2 { public Class2(Class1 c1) { ... } } </code></pre> <p>Why Class2 has public constructor if I cannot instantiate it because Class1 is not acc... |
28,351,572 | 0 | <p>Call <code>onchange()</code> method on the first element <code>onblur</code></p> <pre><code><input type="text" id="field_1" onblur="onchange()"/> </code></pre> |
21,033,349 | 0 | <p>This is a bit old but I'm trying to find the same myself. The best I can find are:</p> <p><a href="http://www.mapquestapi.com/search/">http://www.mapquestapi.com/search/</a></p> <p>Mapquest search has a data set which allows querying for tourist attractions. However I cannot find a way to sort the results by import... |
31,460,945 | 0 | <p>So, after some chat, here is my solution, hope this help: I made 2 <code>.html</code> files, <code>a.html</code> and <code>b.html</code>.</p> <p>Content of <code>a.html</code>:</p> <pre><code><div></div> <script> $.getScript("main.js", function() { $("div").load("b.html #items"); }); </script&g... |
19,068,113 | 0 | The same jquery version doesn't work if there is on Google Apis <p>I'm very confused, so if I put this in functions.php, on Wordpress, it works</p> <pre><code>function modify_jquery() { if (!is_admin()) { // comment out the next two lines to load the local copy of jQuery wp_deregister_script('jquery'); wp_register_scri... |
1,058,760 | 0 | Adding multiple UIButtons to an UIView <p>I've added some buttons to an UIView (via addSubview) programmatically. However, they appear as overlays (so that I always see the last button only). How do I add new buttons below existing buttons?</p> <p>Regards</p> |
18,729,964 | 0 | <p>First verify it holds for n = 1.</p> <p>Then assume it is true for n = x ( the sum of the first x squares ) and then try to compute the sum of the the first x + 1 squares. You know the result for the first x, you just add the last square to that sum. From there it should be easy.</p> <p>And you posted on the wrong ... |
15,886,536 | 0 | intercept j_security_check <p>when doing login in my login form which is based on j_security_check all ok. in that case I see that the path in JSESSIONID cookie has a value from the URL. but when a nother login page construct dynamic form (it is doing submit to the first login page with /j_security_check at the end of ... |
19,733,056 | 0 | <p>Use <code>sizeWithFont:constrainedToSize:</code> to get size of string</p> <p>If you're on iOS7 use <code>boundingRectWithSize:options:attributes:context:</code> instead (<code>sizeWithFont:constrainedToSize:</code> is deprecated on iOS7)</p> |
34,916,790 | 0 | Detecting shake gesture by multiple view controllers <p>I need to detect shake gesture in iOS. I have done the usual stuff and it works perfectly fine. The thing is I have multiple view controllers in <code>UITabBarController</code> and I wish each of them to detect the shake gesture. </p> <p>When shaking in any of the... |
3,370,831 | 0 | <p>You can do this with <a href="http://drupal.org/project/content_taxonomy" rel="nofollow noreferrer">Content Taxonomy</a>'s Content Taxonomy Options module. Add a new Content Taxonomy field, and use the Select widget. In the field settings, under the <em>Advanced settings for hierarchical vocabularies</em> field gro... |
36,285,404 | 0 | <p>I was using gedit and had the setting wrong so it was adding tabs and not spaces so although it looked right it didn't work. Just changed it to adding spaces and it worked, not sure if this is supposed to happen and not even sure it is what went on but never the less I got it working.</p> <p>Thanks</p> |
26,644,525 | 0 | <p>It's going to depend on a lot of things, here's how you can find out. GNU Binutils comes with a utility <code>objdump</code> that gives all sorts of details on what's in a binary.</p> <p>On my system (an ARM Chromebook), compiling test.c:</p> <pre><code>#include <stdio.h> int main(void) { printf("Hello, world... |
16,615,945 | 0 | <p>The <a href="http://docs.python.org/2/reference/expressions.html#is" rel="nofollow">Python <code>is</code> operator</a> checks for <em>object identity</em>, not object value. The two integers must refer to the same actual object internally for is to return true.</p> <p>This will return true for "small" integers due... |
35,969,510 | 0 | Mongo query is slow using C# driver but fast using mongo shell <p>I got very weird problem with MongoDB C# driver. I have a very simple query and I have a correct index for that query. When I run the query using MongoChef (and using the shell) I get the results in 22ms But when my app runs the same query it takes about... |
9,376,434 | 0 | <p>I assume that <code>settings.widgetSelector</code> selects the top element of a widget, that is, the table or a Telerik wrapper around it. I leave your other code intact:</p> <pre><code> ... if(confirm('This widget will be removed, ok?')) { // reference to current widget wrapper var widget = $(this).parents(setting... |
19,893,087 | 0 | Create Random User algorithm in c# <p>i want to create users based on the number of photos in a folder.</p> <p>for example:</p> <pre><code>user.1 random(4)[photos1-4] dosomething(user.1) user.2 random(6)[photos5-10] dosomething(user.2) user.3 random(3)[photos11-13] dosomething(user.3) user.last [photos.leftover] dosome... |
33,551,881 | 1 | Pandas, check if timestamp value exists in resampled 30 min time bin of datetimeindex <p>I have created a resampled data frame (DF1) in pandas with a <code>datetimeindex</code>. I have a separate dataframe (DF2) with a <code>datetimeindex</code> and <code>time</code> column. If an instance of <code>time</code> from DF2... |
29,376,047 | 0 | <p>Spring Session does not currently support HttpSessionListener. See <a href="https://github.com/spring-projects/spring-session/issues/4" rel="nofollow">spring-session/gh-4</a></p> <p>You can listen to <a href="http://docs.spring.io/spring-session/docs/current/reference/html5/#api-redisoperationssessionrepository-ses... |
25,536,715 | 0 | <p><strong><code>http://your-jenkins-server/configure</code></strong></p> <p><img src="https://i.stack.imgur.com/QO967.png" alt="enter image description here"></p> <p>A picture is worth a thousand words</p> |
35,967,181 | 0 | Equivalent to DirectInput for Windows Store Apps? <p>I am building a game for Windows 10 that utilizes input to draw on the screen, but the fidelity is lacking. It is not accurate enough to draw a straight line if you draw fast. That's when I thought of DirectInput, which I've used in C++ games for Windows 7, but that ... |
39,872,581 | 0 | Form is not sending email? <p>I have created a form that appears when a button is pressed. However, when the final submit button is pressed the final email is not sent. Where are the errors in my code?</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snipp... |
37,287,933 | 0 | How to bring in string from left of numbers in Excel <p>I'm trying to format a column based off of another (let's say column B2). The column contains a value like "ABC011" and I need to bring in just the letters "ABC".</p> <p>For another column I also need to bring in just the numbers "011" but without the trailing zer... |
28,720,601 | 0 | Error in Integrated Weblogic 12C in SOA Suite - Derby server start and stop immediately <p>I need help to solve this problem:</p> <p>I've already installed Oracle SOA Suite 12c using the developer pack (from oracle official downloads). When I try to start integrated weblogic server (in Jdeveloper menu Run) it starts an... |
20,613,977 | 0 | <p>First you don't need a controller, spring security handles all this for you. So drop the controller. </p> <p>The current problem is due to your JSON based post. This is handled by the normal filter which handles login, but it doesn't see a <code>j_username</code> and <code>j_password</code> field and as such will r... |
17,738,649 | 0 | <p>Are you looking for this?</p> <pre><code>SELECT A, B, D, E, COALESCE(C, F) M FROM relation1 r1 FULL JOIN relation2 r2 ON r1.C = r2.F </code></pre> <p>Assuming relation1:</p> <pre> | A | B | C | --------------- | a1 | b1 | 1 | | a2 | b2 | 2 | </pre> <p>and relation2:</p> <pre> | D | E | F | --------------- | d1 | e1... |
22,237,593 | 0 | <p>Your database should have a method for updating the database</p> <pre><code>@Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { // do something to upgrade } </code></pre> <p>But that isn't called by default, but when your app first tries to open the database. At that point, you shou... |
4,763,653 | 0 | <p>you can use this</p> <pre><code>@Override public void paintComponents(Graphics g) { super.paintComponents(g); g.drawString("Hello", 0, 0); } </code></pre> <p>or use jTextField</p> <pre><code> jTextField1.setText("Hello"); </code></pre> |
20,840,437 | 0 | <p>Use the below query:</p> <pre><code>var query = from e in context.Table orderby SqlFunctions.Rand(1) select e).Take(10); </code></pre> <p>And hope your MySql Data Providor cannot be recognized by VS.</p> <p>I know that Vs doesn't support MySQL to LINQ directly.. So maybe you can use something like.</p> <p>And perhp... |
39,085,751 | 0 | Inserting a value into a sequential series and then continuing the series <p>Example data series has the sequence seeded with 1 as the initial value, and a step of 1. There is a calculated value that needs to be inserted in the series, in this case it is 3.5</p> <p>Desired output:</p> <pre><code>1 2 3 3.5 4 5 </code></... |
310,246 | 0 | Installer for .NET 2.0 application for Windows 98 <p>How can an automatic installer for .NET 2.0 application be created for Windows 98? </p> <p>I mean for application and also for .NET 2.0 if missing.</p> <p>I tried to do it by creating a setup project for Visual Studio 2008, but I didn't succeed. I installed IE6 SP1 m... |
39,898,076 | 0 | Configuration Symfony3 with netbeans <p>I would like to know if netbeans support Symfony 3.1.0? If any one have an idea which version of netbeans should'i use. Thanks </p> |
28,925,917 | 0 | <p>In python <strong>2.X</strong> <code>print</code> is a <em>statement</em> not a function. Accordingly, this is not supported by <code>lambda</code> functions. In python 3, however, <code>lambda x: print(x)</code> works since <code>print</code> is a function. You could also try to import the new <code>print</code> f... |
16,922,776 | 0 | Encoding wildcarding, stemming, etc in simple search <p>We have a simple search interface which calls the search:search($query-text) function. Is there a syntax to include control for wildcarding, stemming and case sensitivity within the single text string that the function accepts? I haven't been able to find anything... |
15,331,724 | 0 | stream context for custom stream wrappers <p>In the code snippet that follows this paragraph I'm creating a stream wrapper called test using the Test_Stream object. I'm trying to use stream context's with it and have a few questions. First here's the code:</p> <pre><code><?php class Test_Stream { public $context; pu... |
25,004,221 | 0 | <p>Your question and code does not help.</p> <p>In your code it seems you are trying to use Speech to Text(Audio recorder), and you are calling it using TTS (Text to Speech) which does exactly the opposite of what you are trying to accomplish i.e. speech to text.</p> <p>Can you make it a bit more clear what you are tr... |
39,261,950 | 0 | <p>you may check here:<a href="https://i.stack.imgur.com/Odx2F.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Odx2F.png" alt="enter image description here"></a> and make sure that all files in Plugins/Android are set to Android here</p> |
23,586,584 | 0 | <p>make it like this:</p> <pre><code> @Override public void run() { for (int i = 0; i < 10000; i++) { if(i % 100) { mController.runOnUiThread(new Runnable() { public void run() { mController.triggered(i); } }); } try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } } } </code></pre> <... |
39,610,346 | 0 | Create a new session as a copy of another on Livy <p>I use livy to use Spark as a service. My application send some commands to livy as code, however, spark needs to initialize some variables(read some files, make some map&reduce operations etc.) and this take time. This initializing part is common for all sessions... |
4,044,674 | 0 | <p>Use:</p> <pre><code> SELECT a.id FROM ORDERHISTORYTABLE AS a LEFT JOIN (SELECT e.EmailAddress, e.product, MAX(OrderDate) AS max_date FROM OrderHistoryTable AS e WHERE e.Product IN ('ProductA','ProductB','ProductC','ProductD') GROUP BY e.EmailAddress) b ON b.emailaddress = a.emailaddress AND b.max_date = a.orderdate... |
16,503,853 | 0 | <p>declare a function and declare <code>config_map</code> as a static inside it</p> <pre><code>class MyClass { ... static std::map<std::string,std::string> & config_map() { static std::map<std::string,std::string> map; return map; } }; void MyClass::SomeMethod() { ... config_map().insert(std::pair<s... |
12,993,250 | 0 | <p>Assuming you understand class inheritance, I think of an Interface like a skeleton class, where the structure of a class is described but not actually written/implemented.</p> <p>Another class can then work with any class that implements a particular Interface even if it hasn't been implemented yet.</p> <p>For exam... |
2,257,214 | 0 | <p>The code you mention works fine with Qt 4.6.1 and GCC 4.4.1 on Intel/Mac OS X.</p> <pre><code>$ cat a.cpp #include <QtCore> void foo (QMap<int, QMap<QString, QVector<QPointF> > > &map) { map.clear(); } $ g++-4.4-fsf -c -DQT_CORE_LIB -DQT_SHARED -I/Library/Frameworks/QtCore.framework/Vers... |
30,613,065 | 0 | <p>Looking at your code I think you want to show all <code>marcas</code> related to some <code>articulo</code> it via <code>product.type</code>. For this scenario I think you don't need to make any grouping, you can just find all the <code>marcas</code> you are interested in. Here is what i mean:</p> <pre><code>#in th... |
28,480,298 | 0 | <p>JavaScript Pure:</p> <pre><code><script type="text/javascript"> document.getElementById("modal").click(); </script> </code></pre> <hr> <p>JQuery:</p> <pre><code><script type="text/javascript"> $(document).ready(function(){ $("#modal").trigger('click'); }); </script> </code></pre> <p>or</p> <... |
25,236,837 | 0 | <p>if you use this code:</p> <pre><code>java.sql.Blob blob=null; blob.setBytes(1, myByte ); </code></pre> <p><code>blob</code> is null. You have to create a new Blob Object like:</p> <pre><code>Blob blob = new SerialBlob(myByte ); </code></pre> <p>and then you can store it.</p> |
39,404,570 | 0 | Understanding lexical scoping of "use open ..." of Perl <pre><code>use open qw( :encoding(UTF-8) :std ); </code></pre> <p>Above statement seems to be effective in its lexical scope only and should not affect outside of it's scope. But I have observed the following.</p> <pre><code>$ cat data € </code></pre> #1 <pre><cod... |
12,726,613 | 0 | <p>Windows Azure has <em>input endpoints</em> on a hosted service, which are public-facing ports. If you have one or more instances of a VM (Web or Worker role), the traffic will be distributed amongst the instances; you cannot choose which instance to route to (e.g. you must support a stateless app model).</p> <p>If ... |
8,801,214 | 0 | <p>the benifit of making string as immutable was for the security feature. Read below</p> <p>Why String has been made immutable in Java?</p> <p>Though, performance is also a reason (assuming you are already aware of the internal String pool maintained for making sure that the same String object is used more than once ... |
23,428,390 | 0 | How to send file from AJAX to remote FTP directly? <p>I would like to send file(s) with xhr from the user browser to remote FTP server without saving file to my server. </p> <p>Is it possible? How can I do it? I am using PHP backend.</p> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.