pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
3,827,551 | 0 | Complete flash wordpress theme is possible? (with a php pipe of course) <p>Is possible to have the posts loaded into an swf using the wordpress framework? i mean, i want to write a post using the wordpress wp-admin interface and then see the result in a swf... I know that if i access using a php pipe the mysql server i... |
17,587,278 | 0 | <p>create a <code>DataGridViewCheckBoxColumn</code> and connect to the <code>CellContentClick</code> event. then use this code:</p> <pre><code>private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 0)// checkbox column { object curr = dataGridView1[e.ColumnIndex,... |
24,056,456 | 0 | <p>Declare every view , controller , model , store whatever you are using in ur application in <code>app.js</code>:</p> <pre><code>Ext.application({ name: 'AppName', requires: [], models:['Model-1','Model-2'], controllers : ['Main'], views : ['View-1','View-2'], stores : [ 'Store-1' , 'Store-2'], launch : function() {... |
31,338,068 | 0 | AspectJ plugin in Android Studio error messages not clickable <p>I am using <a href="https://github.com/uPhyca/gradle-android-aspectj-plugin" rel="nofollow">this</a> plugin for AspectJ support in my android project.</p> <p>When I am making syntax errors , such as missing semicolon , I expect to see <strong>clickable</s... |
27,120,748 | 0 | <p>try with this => put </p> <pre><code>int temp; cin>>temp; </code></pre> <p>before <code>return 0;</code> to pause the program, because the execution finished (successfully) before the last output could be written to the console.</p> |
21,016,890 | 0 | <p>As shown in this complete <a href="http://stackoverflow.com/a/11113648/230513">example</a>, <code>DefaultMutableTreeNode</code> "may also hold a reference to a user object." Your <code>userObject</code> can return the display name in <code>toString()</code>, while providing an accessor for the search name. </p> <p>... |
15,253,115 | 0 | No package identifier when getting value for resource number 0x0000000a ? android manifest? <p>I have been searching stack and have found no help regarding this topic</p> <pre><code>03-06 11:37:02.448: W/ResourceType(14147): No package identifier when getting value for resource number 0x0000000a 03-06 11:37:02.448: D/A... |
13,186,953 | 0 | <p>I'm not sure I got your DB structure right, but I hope my idea will help you in either case. So I suggest providing more information on DB structure, e.g. can there be many <code>Iterations</code> for a <code>Test</code>?</p> <p>So, here is my proposal:</p> <pre><code>UPDATE test a set a.Iteration_ID = (nvl(( SELEC... |
36,117,167 | 0 | How to run jigdo on Windows 10 <p>I am used to using <a href="http://atterer.org/jigdo" rel="nofollow">Jigdo</a> to compile Debian CD/DVD images. Since moving from WIndows 7 to Windows 10, I get the following message when I try to run jigdo-lite.bat:</p> <pre><code>Jigsaw Download "lite" Copyright (C) 2001-2005 | jigdo... |
35,753,658 | 0 | <p>Split the S3 permissions into separate statements, and modify the resource setting for those statements. Something like this:</p> <pre><code>{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "cloudwatch:*", "cognito-identity:ListIdentityPools", "cognito-sync:GetCognitoEvents", "cognito-sync... |
28,451,639 | 0 | <p>this seemed to work for me VB.NET 3.5 returns a list of items in the past 10 minutes ... I'm sure it can be adjusted to meet your needs</p> <pre><code> ' if online time is greater than 10 minutes ago pickup user check onLineTime.Date = now.AddMinutes(-10).Date check onLineTime.TimeOfDay = now.AddMinutes(-10).TimeOf... |
12,359,432 | 0 | <p>Removing folder</p> <pre><code>Developer-3.2.6 </code></pre> <p>has solved the problem.</p> <p>Thanks Ned Deily for your answer</p> |
30,083,920 | 0 | <p>You have 2 paste operations in your code. One that you know of:</p> <p>WshtCrnt.Paste</p> <p>and one that is part of this range copy statement:</p> <p>. . With WshtSht1 .Range(.Cells(1, 1), .Cells(RowSht1DataFirst - 1, ColSht1LastHdr)).Copy_ Destination:=WshtCrnt.Range("A1") . .</p> <p>By specifying a "Destination"... |
40,900,242 | 0 | Bootstrap column that is responsive to 100% of the page height <p>So I successfully coded and implemented a website with a column on the side, that has a hidden div on the side of the column that appears when a button is clicked, I need the height of the column to remain 100% of the browser, but when it came to respons... |
13,463,294 | 0 | Creating a scatter plot for multiple rows in R <p>I have a data frame that looks something like this:</p> <pre><code> Samp1 Samp2 Samp3 Samp4 Samp5 Gene1 84.1 45.2 34.3 54.6 76.2 Gene2 94.2 12.4 68.0 75.3 24.8 Gene3 29.5 10.5 43.2 39.5 45.5 ... </code></pre> <p>I am trying to create a scatter plot where the x-axis are ... |
6,030,136 | 1 | Python - Generate a multiple row update query <p>My goal is dynamically generate in Python a SQL query similar to,</p> <pre><code>UPDATE SURV_SCF_ID_STATUS SET AGE_STATUS = CASE NAME WHEN 'entityXp1' THEN '1' WHEN 'entityXp3' THEN '0' WHEN 'entityXpto1' THEN '1' WHEN 'entityXpto3' THEN '1' END WHERE NAME IN ('entityXp1... |
4,769,380 | 0 | <p>Because you cannot declare class properties with variable expressions. That means you cannot use any arithmetic operators <code>+ - * /</code> or the concatenation operator <code>.</code>, and you can't call functions. Out of your three lines, only <code>$test</code> should work; the other two will give you errors.... |
15,097,280 | 0 | <p>Try <a href="http://technet.microsoft.com/en-us/library/ms187316.aspx" rel="nofollow">@@ROWCOUNT</a></p> <pre><code>--Simple T-Sql Proc CREATE PROCEDURE usp_OutputRowExample @Count INT OUTPUT AS BEGIN SELECT * FROM <table>; --Get your entities SELECT @Count = @@ROWCOUNT; --@@ROWCOUNT returns the amount of --a... |
15,478,129 | 0 | IMDB rating plugin not working with ajax <p>I have a page <code>movies.jsp</code> that is called through ajax from the page <code>home.jsp</code>. <code>movies.jsp</code> contains the code for the IMDB rating plugin (<a href="http://www.imdb.com/plugins?titleId=tt1623205&ref_=tt_plg_rt" rel="nofollow">link</a>) :</... |
2,057,565 | 0 | <p>This is a (nasty) bug in WASCE. It should have been <code>"file:///C:/Program Files/IBM/...."</code>. The <code>file://</code> is here the protocol which was missing due to the space in <code>Program Files</code>. The IBM guys should have quoted path names, but they apparently overlooked it.</p> <p>To fix this prob... |
30,140,725 | 0 | <p>Got it myself:</p> <pre><code> db.xy.update({_id: ObjectId("55081de2162072120758fc53"), "items._id": ObjectId("554df987a8e9950134aa72bd")}, {$set: { "items.$.checked": true}} </code></pre> |
27,274,455 | 0 | <p>I am finding evidence which suggests that this problem is related to MySQL version 5.5.8. What version of MySQL are you running?</p> |
24,025,641 | 0 | Passing array from system verilog to VHDL <p>I have a code in VHDL which requires an array of elements as generic. COEF_LIST : coef :=(0,0,1,1,2,-2,1,-2,1)</p> <p>How do I send new set of COEF_LIST from my system verilog testbench to VHDL entity?</p> <p>Generic in VHDL is same as parameter in verilog.</p> <p>I declared... |
40,383,253 | 0 | <p>Because you 1. Didn't include jQuery in your fiddle, and 2. had a typo in your code. New fiddle: <a href="https://jsfiddle.net/yx0ehdy5/2/" rel="nofollow noreferrer">https://jsfiddle.net/yx0ehdy5/2/</a></p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="... |
28,442,442 | 0 | <p>You are only assigning 'checkedIfInsured' inside an 'if' block. If the condition doesn't hold, it won't get assigned, and that is what the compiler is complaining about.</p> <p>Make sure you assign 'checkedIfInsured' outside the 'if' block.</p> |
4,573,079 | 0 | <p>The inner class must be public.</p> <pre><code>package org.example; public class Foo { public abstract static class MyInnerClass { abstract void print(String s); } public void pr() { System.out.println("foo"); } } </code></pre> <p><strong>First test</strong>: Subclass and instantiate the outer <code>Foo</code> clas... |
8,982,693 | 0 | <pre><code>using System.Collections.Generic; public class Test<T> { public T Value { get { return _Value; } set { if (!EqualityComparer<T>.Default.Equals(_Value, value)) { _Value = value; } } } private T _Value; } </code></pre> |
34,433,246 | 0 | <p>Go to the <a href="https://developers.google.com/maps/documentation/android-api/" rel="nofollow">official link</a>, click Get A Key and follow the instructions. <strong>Try to google firstly before asking.</strong></p> |
34,807,138 | 0 | <p>Avoid <code>exit;</code> / <code>function exit;</code> or <code>die;</code> will terminate execution, its better practice in only debugging your code.</p> <p>Try like below.</p> <pre><code>public function index(){ if($xx) return TRUE; } </code></pre> |
40,647,043 | 0 | Saving image to local storage from canvas <p>Hi I am trying to save to file from canvas, but cannot <strong>name</strong> the file, this works but saves a file as "download" I would like give it any name. Any help is appreciated, lc.getImage gets image from canvas. </p> <pre><code> $('#download_btn').click(function() {... |
20,504,851 | 0 | Using xcodebuild with an iOS Project and the iOS Simulator <p>This <a href="http://stackoverflow.com/questions/12889065/no-architectures-to-compile-for-only-active-arch-yes-active-arch-x86-64-valid">question</a> is related, but does not resolve the specific issue I am having.</p> <p>I am using Xcode 4.6.3 under OS X 10... |
31,234,976 | 0 | <p>@Erik Paulson, check out <a href="https://www.npmjs.com/package/sql-cli" rel="nofollow">SQL-CLI</a>, its a great command line tool to connect to Azure SQL Database and SQL Server natively on a Mac. </p> |
589,872 | 0 | <p>What Eclipse and Mylyn version are you using ?</p> <p>The is a <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=232664" rel="nofollow noreferrer"><strong>bug</strong></a> somewhat relative to this issue, supposedly fixed, but only in Mylyn 2.3 (in eclipse3.4)</p> <hr> <p>Do not forget, according to the <stron... |
2,896,608 | 0 | <p>You would have to some how invoke a compiler (such as Suns javac), parse its output in case of errors and load the resulting classes dynamically.</p> <p>There is no API-classes in the Java runtime library that will parse, compile and run Java source code.</p> |
29,934,881 | 0 | <p>When you write:</p> <blockquote> <p>arr["Hello"]=...</p> </blockquote> <p>you are creating a new Object associated with the <code>arr</code> Array object, which does not affect the length of <code>arr</code>.</p> <p>You can achieve the same effect by writing:</p> <blockquote> <p>arr.Hello=...</p> </blockquote> |
40,414,985 | 0 | resque worker stops automatically on aws ec2 <p>My application is hosted on AWS ec2. I am using resque worker for background jobs. I am starting the worker using this command <code>bundle exec rake resque:work QUEUE='*'</code> this does start the worker but after sometime it automatically stops, and i have login into s... |
29,729,711 | 0 | Checkbox value not being set <p>In my database there's a bool fiedd called <code>IsAvailable</code>.In my edit function i wanted to fill that checkbox is <code>IsAvailable</code> or <code>not</code> but in here always checkbox not filled.</p> <pre><code>($("#chkcomp").prop('checked') == msg._prodlng[0].IsAvailable); </... |
8,726,459 | 0 | <p>What is the problem with this code? only one curly braces i found is missing else it is working fine.</p> <p>This will create a dir test in c drive if does not exist else it will list the files in test dir over n over again</p> <pre><code>String entitiesFolderDirectory = "C:\\test"; File entitiesFolder = new File(e... |
34,056,503 | 0 | <p>In Python 2, <code>map()</code> produces a <code>list</code>, which has the method <code>sort()</code>. In Python 3, <code>map()</code> produces a <code>map</code> object, which acts as a lazy generator and does not have the method <code>sort()</code>. If you want to use <code>sort()</code> on it, you'll have to pa... |
16,169,540 | 0 | Way to avoid ctrl+F5 to get latest changes on web page <p>I have developed SPA using Knockout. I use Visual studio 2012 for development. My application connects to WCF services and displays the data. I make changes to my application and deploy on test server. When i type url and load application, it shows the old conte... |
9,450,197 | 0 | <p>First thought:</p> <p>Shouldn't you be using ".each" for your function call:</p> <pre><code>$(".game").load(compose(".game", "yellow")); </code></pre> <p>since there are multiple elements with the "game" class? Just a thought. Also, attaching your function to the loading of the element seems like a potential issue,... |
20,540,114 | 0 | <p>The solution is quite easy:</p> <p>You can provide the jacob.dll (and your 3rd party dll for that matter) as part of your applet - so there is no local installation in any directory necessary. Jacob itself provides a quite nice applet example for that:</p> <p>Download the jacob source from <a href="http://sourcefor... |
27,311,543 | 0 | <p>%JAVA_HOME%\bin;<strong>%M2%</strong>;C:\Windows\Microsoft.NET\Framework\v4.0.30319;D:\sytemapps\Python27;%<strong>M2</strong>%;%JAVA_HOME%/bin;C:\Developer\Android\sdk\platform-tools\;%GRADLE_HOME%\bin;%DEVKIT_HOME%\bin;%DEVKIT_HOME%\mingw\bin</p> <p>change to </p> <p>%JAVA_HOME%\bin;<strong>%M2_HOME%</strong>;C:\... |
454,825 | 0 | <p>When you look here at the <a href="http://mysql-python.sourceforge.net/MySQLdb.html#cursor-objects" rel="nofollow noreferrer">mysqldb documentation</a> you can see that they implemented different strategies for cursors. So the general answer is: it depends.</p> <p>Edit: Here is the <a href="http://mysql-python.sour... |
23,057,306 | 0 | <p>Here's a simple hide/show sidebar script for you to get the idea:</p> <pre><code><div id="sidebar" style="height:600px; width:100px; right:-75px; position:absolute; background-color:black;"> //sidebar styling </div> <script> $('#sidebar').hover(function() { $('#sidebar').stop().animate({'right' : ... |
27,103,070 | 0 | <p>The approach is ok.</p> <p>If you do not have enough memory for JVM, you can increase it with -Xmx option</p> <p>For the accurate retrieval it's better to create a unigram language model with frequencies of the words, not just a plain list. See for details</p> <p><a href="http://cmusphinx.sourceforge.net/wiki/tutor... |
38,598,009 | 0 | how to pass dynamic url in c3.js? <p>There is one page on which data is displayed in csv format. And when I'm passing this url in <code>c3.js</code> then I'm not getting proper output.</p> <h2>Here is the code of <code>c3.html</code>:</h2> <pre><code><html> <head> <link rel="stylesheet" type="text/css" h... |
17,068,706 | 0 | <p>I would suggest using <code>document.getElementById('result').value</code> opposed to <code>result.value</code> within your <code>updateScore</code> function to ensure your accessing the correct element.</p> <p>I had included an example where <a href="https://developer.mozilla.org/en-US/docs/Web/API/window.setInter... |
2,143,252 | 0 | <p>SVN command line errors go to stderr, not stdout, which is why you aren't able to see them. What you want to do is redirect stderr to stdout and then <code>print_r($output)</code> to determine the cause of the error. </p> <pre><code>exec('svn commit <stuff> 2>&1', $output, $returnStatus); if ( $returnS... |
15,112,185 | 0 | draw a multicolor line with a CGPath <p>below you see a code that draws a multicolor line each time drawMulticolorLine is called.</p> <pre><code> void drawMulticolorLine { CGContextBeginPath(secondaryContext); CGContextMoveToPoint(secondaryContext, h, v); for( int i = 1; i < lineWidth; ++ ) { SetStrokeColor(i); CGCo... |
37,078,011 | 0 | <p>usea global js variable</p> <pre><code>var gblPreviousTxtBoxValue = $('#txtboxid').val(); </code></pre> <p>use setInterval function to call the function every 5 sec</p> <pre><code>setInterval(function(){ var currentTxtBoxValue =$("#your_id").val(); if(gblPreviousTxtBoxValue != currentTxtBoxValue) //check if current... |
17,126,539 | 0 | Can you automatically retrieve a foreign document in your mongodb model using c#? <p>I would like to setup my mongo db poco models so that they automatically retreive their foreign documents, similarly to how its handled by EF and nhibernate.</p> <p>This is the solution that I have come up with so far, its a bit clunky... |
14,121,121 | 0 | Display text when clicked on the Button of AlertDialog in android <p>I'm working with android and I want to make an event on <code>AlertDialog</code> button. I want to change the text on the button dynamically, this is my code </p> <pre><code>AlertDialog.Builder alert = new AlertDialog.Builder(Soto_Betawi.this); alert.... |
23,186,807 | 0 | <p>Your string is equal to <code>\r\n\r\n\t\r\ndata\r\n\t</code> which is <code>CR LF CR LF TAB CR LF "data" CR LF TAB</code>. You're only trimming <code>LF</code> (<code>\n</code>) in your <code>trim()</code> call, which is why you don't trim <code>CR</code> (<code>\r</code>) and <code>TAB</code> (<code>\t</code>) al... |
26,801,162 | 0 | <p>You can express your query as:</p> <pre><code>SELECT IdPerson FROM Person p JOIN CustomFieldXPerson cfxp on cfxp.IdPerson = p.IdPerson JOIN Filter f on f.IdField = cfxp.IdField AND (f.Criteria = '=' and f.Value = cfxp.Value or f.Criteria = '<' and f.Value < cfxp.Value or f.Criteria = '<=' and f.Value <=... |
14,025,348 | 0 | <p>You don't need the ' in <code>NSPredicate</code>. They are being inserted automatically.</p> <p>Just try</p> <pre><code>[NSPredicate predicateWithFormat:@"(name like %@)",name]; </code></pre> <hr> <p>The reason this crashed was because the predicate value was interrupted. If you create a string with format, like in... |
6,407,200 | 0 | <p>You can write a pseudo <code>IO</code> class that will write to multiple <code>IO</code> objects. Something like:</p> <pre><code>class MultiIO def initialize(*targets) @targets = targets end def write(*args) @targets.each {|t| t.write(*args)} end def close @targets.each(&:close) end end </code></pre> <p>Then se... |
21,956,763 | 0 | <p>This is more or less what you wrote. To be more precise:</p> <p>Yellowish line signal Cython command which are not directly translated to pure C code but which work by calling CPython API to do the job. Those line includes:</p> <ul> <li>Python object allocation</li> <li>calls to Python function and builtins</li> <l... |
25,580,296 | 0 | Flipped copy of a Rectangle using ScaleTransform in WPF <p>I am trying to create a flipped copy of a rectangle in Left, Right, Up and Down directions.</p> <p>However I am able to do it when the selected rectangle has no prior transformation applied on it.</p> <p>But once a rectangle is being transformed with <code>Scal... |
9,008,038 | 0 | SQL Assertion/Trigger: how to set an attribute to forbid decreasing updates <p>I have a table called person, one of the attributes is years_worked.</p> <p>I need to find a way to restrict years_worked from being decreased, so that a trigger/assertion (not sure what to use here) will only allow increases on updates.</p> |
31,109,964 | 0 | JavaScript storing search matches in array <p>How to store the search matches from <code>id="post_body"</code> to array?</p> <blockquote> <pre><code><textarea name="post[body]" id="post_body"> </code></pre> <p>--Lorem ipsum-- dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore ... |
29,398,451 | 0 | <p>The general strategy here is that you want to <em>maintain a context</em> as you traverse the list, and at each step, you use that piece of context to answer the question of whether the current item should be kept or thrown out. In pseudo-code:</p> <pre><code>public static <A> List<A> removeDuplicates(L... |
25,326,069 | 0 | <p>I had the same issue and found a solution thanks to <a href="http://stackoverflow.com/users/496099/chris">chris</a> (see <a href="http://stackoverflow.com/questions/17041735/jpa-criteria-api-where-subclass">JPA Criteria API where subclass</a>).</p> <p>For this you need JPA 2.1, and you make use of one of the <a hre... |
33,318,594 | 0 | <p>Most likely your routing is not doing what you think so you are hitting a different route entirely than you think you are. Probably you are hitting the default 404 not found handler route. Instead of posting the 1 line you think is wrong, post a <a href="http://stackoverflow.com/help/mcve">Minimal, Complete, and Ve... |
25,366,339 | 0 | <p>As the commenter pointed out, I would recommend you use PDO as this is an escaping issue and opens you up to SQL injection vulnerabilities. On the change that you are using mysql_* instead, try escaping the variable with mysql_real_escape_string() first.</p> |
5,071,837 | 0 | <p>There is a trick you could use. If your version of jQuery is second which loads, you will need first move to safety theirs version before you load it, something like this</p> <pre><code><script type="text/javascript"> (function($){ var theirs_jquery = $; })(jQuery); </script> </code></pre> <p>Then add y... |
41,014,111 | 0 | <p>First: bare variables are not supported since Ansible 2.2<br> Second: <code>files</code> is a list in your example</p> <pre><code>- debug: msg="{{ item.files[0].path }}" with_items: "{{ foundFiles.results }}" </code></pre> <p>If you have multiple entries under in <code>files</code> list, you should consider to <cod... |
1,915,342 | 1 | Python: List of lists of integers to absolute value to single number <p>If i had a list of list of integers say:</p> <blockquote> <p>[['12' '-4' '66' '0'], ['23' '4' '-5' '0'], ['23' '77' '89' '-1' '0']]</p> </blockquote> <p>I wanted to convert the numbers to their absolute values and then to a single number, so the ou... |
3,873,925 | 0 | <p>You can use the <a href="http://www.oracle.com/technetwork/java/javame/downloads/sdk30-mac-jsp-137878.html" rel="nofollow">Java ME SDK</a> which is based on Netbeans. And as this SDK is based on Netbeans I'm pretty sure that you can find a way to have directly those features in Netbeans.</p> |
16,141,778 | 0 | c# Many Unmanaged Memory in WinForm Application <p>I've a c# winform application. Now after startup when the mainscreen is shown, I've a huge amount of unmanaged memory about 110MB, the whole managed ram is about 20 MB.</p> <p>Here some things that could be uncommon:</p> <ul> <li>The application consists of many assemb... |
22,524,887 | 0 | error: cannot find symbol symbol: class JTextFieldLimit class: Login <p>I have 2 files named <code>Login.java</code> and <code>JTextFieldLimit.java</code> (both files kept in <code>c:\java programs\planning sheet\with re_allotted</code>) </p> <p>Login.java </p> <pre><code>import javax.swing.*; import java.awt.*; import... |
26,027,594 | 0 | <p>You do the math before you read the input. You need to do it the other way around.</p> <p>Also, there's no reason to pass a meaningless and uninitialized value to the <code>celsius</code> function.</p> <p>Lastly, <code>180/100</code> is 1 remainder 80 because when you divide two integers, you get integer division. ... |
22,048,391 | 0 | Operations using ffdfwith in R <p>I am using ff and R because I have a huge dataset (around 16 GB) to work with. As a test case, I got the file to read around 1M records and wrote it out as a ff database.</p> <pre><code>system.time(te3 <- read.csv.ffdf(file="testdata.csv", sep = ",", header=TRUE, first.rows=10000, n... |
22,938,835 | 0 | Inner join doesn't show all data in sql server 2008 <p>I made a query in sql server 2008 as bellow for my online book shop :</p> <pre><code>SELECT Packages.packageName , Packages.healthStatus , Packages.Stock , Packages.Description , Packages.Image , Packages.YearOfPub , Packages.Edition , updatePackage.price , publish... |
8,650,087 | 0 | <p>Unicode character <code>U+25BC</code> is a solid triangle pointing down: ▼. You can also finagle html block elements to look like triangles by giving them a width and height of zero and applying special border properties to three of the element's sides. This technique is known as the <a href="http://davidwalsh.name... |
35,360,909 | 0 | <p>You can use <code>case</code> and <code>sum</code> like;</p> <pre><code>SELECT t1.Date, sum(case when t2.country = 'Saudi Arabia' then 1 else 0 end) `Saudi Arabia`, sum(case when t2.country = 'Kuwait' then 1 else 0 end) `Kuwait`, sum(case when t2.country in ('Saudi Arabia', 'Kuwait') then 0 else 1 end) others FROM ... |
33,973,137 | 0 | <p>Glyphicons use a font to display icons, each icon being a character in the font.</p> <p>Therefore it is simple to use them in JButtons.</p> <ol> <li>Create a swing Font for the glyphicon font.</li> <li>Set the font on your JButton.</li> <li>Set the button label to the character of a glyphicon icon. The characters c... |
12,317,377 | 0 | <p>Instead of using <code>MODIFY</code>, use a field symbol:</p> <pre><code>DATA: lt_materials TYPE TABLE OF zzllog. FIELD-SYMBOLS: <ls_line> TYPE zzllog. * other code with strange comments :-) LOOP AT lt_materials ASSIGNING <ls_line> WHERE matnr IS INITIAL. SELECT SINGLE MATNR FROM zlldet INTO <ls_line... |
40,353,985 | 0 | <p>Ok i got it ! try this</p> <pre><code> angular.module('myApp', []) .controller('myController', function($scope, $interval) { var count = 0; var addPerson = function() { count++ $scope.person = { name: 'person' + count, age: 20 + count }; }; var timer = $interval(addPerson, 1000); }) .directive('myDirective', functi... |
2,027,552 | 0 | Background of cell in a DataGridView <p>I've been playing around with datagridviews for a bit and a question has came up. -> Doesn't changing a cells background work out of the CellFormatting event. I've tried this:</p> <pre><code>private void dataGridView1_CellFormatting(object sender, dataGridViewCellFormattingEventA... |
11,119,158 | 0 | custom font wingding is not working in my application <p>EveryBody i am trying to use custom font such as wingding in my ios application i have followed all those steps for adding custom font like adding the custom font file in my application resource and added the key fontsprovidedbytheapplication in plist and make it... |
24,409,078 | 0 | <p>This is pretty clean CSS to target the 3rd <code><p></code></p> <pre><code>.product-Detail p:nth-of-type(3) { display: block; } </code></pre> <p><a href="http://jsfiddle.net/U5Tfp/3/" rel="nofollow">http://jsfiddle.net/U5Tfp/3/</a></p> |
14,826,812 | 0 | <p>You can hit the key <kbd>q</kbd> (for <em>quit</em>) and it should take you to the prompt.</p> <p>Please see this <a href="http://stackoverflow.com/questions/1696433/how-to-exit-a-git-status-list-in-terminal">link</a>.</p> |
5,098,462 | 0 | <p>I believe this may be handled in the PageRequestManager endRequest event.</p> |
32,084,362 | 0 | <p>your form should be something like this</p> <pre><code><form> <label for='qpInputdata'>No Selection</label> <input id="qpInputdata" class="form-control name="xCaasType" ng-model="fData.selection" type="radio" ng-value="true" value="no"> <label for='qpInputdata'>Select This One</labe... |
2,076,878 | 0 | <p>You could exclude at source?</p> <pre><code>var sum = GroupProduct.Where(a => a.Product.ProductID==1 && a.Amount != null) .Sum(a => (decimal)a.Amount); </code></pre> |
16,142,527 | 0 | Delphi IdNNTP: download a file from Usenet according to NZB-file <p>I have a NZB file, something like this: </p> <pre><code><?xml version="1.0" encoding="utf-8" ?> <nzb xmlns="http://www.newzbin.com/DTD/2003/nzb"> <head> <meta type="title">Your File!</meta> <meta type="tag">Example&l... |
16,407,377 | 0 | <p>If you did not prepare for this question then there is no build in way to get to that information. However, you could use third party log reader tools to recover (all) the last statements that where executed against the database. This requires the database to be in Full recovery mode. You could potentially go back ... |
36,021,850 | 0 | <p>You can try to set the cell-format to text via</p> <pre><code>CellStyle cellStyle = wb.createCellStyle(); cellStyle.setDataFormat( createHelper.createDataFormat().getFormat("@")); cell.setCellStyle(cellStyle); </code></pre> <p>Note: CellStyles shoudl be re-used for all applicable cells, do not create new ones for e... |
33,950,310 | 0 | <p>You have missed <code>name</code> in select and input:</p> <pre><code> <select id="tdarea" name="tdarea"> <option value="a" selected="selected">Area A</option> <option value="b">Area B</option> <option value="c">Area C</option> </select> <input required type="text"... |
32,682,813 | 0 | <p>There are probably better ways to design that array, but here's a function that should give you what you asked for:</p> <pre><code>function gethours($x, $myoptions){ foreach($myoptions as $o){ if($o[0] == $x){ return $o[1]; } } } echo gethours('3 days', $myoptions); </code></pre> <p>If the column you search in is a... |
23,512,970 | 1 | How to implement multiple signals in a program? <p>I am starting to learn Python (newbie), so not much idea about the different modules etc.</p> <p>Scenario that I want to simulate:</p> <p>I have a program <code>prg1.py</code> that I want to run for some user defined time say <code>t</code> seconds. After this time (<c... |
6,273,973 | 0 | Problem with file location when using Fixtures.loadModels("...") <p>I'm using the Play Framework <em>yabe</em> tutorial and came across a problem when adding tags. I'm not sure what code I added that caused the change, but now the Fixtures.loadModels(data.yml) piece of code searches for a file in .../some_folder/play-1... |
2,593,644 | 0 | GAE update different fields of the same entity <p>UserA and UserB are changing objectA.filedA objectA.filedB respectively and at the same time. Because they are not changing the same field one might think that there are no overlaps. Is that true? or the implementation of pm.makePersistnace() actually override the whole... |
9,253,991 | 0 | how to pass dynamic theme from swf to swc? <p>I have one swf file which takes theme from network during runtime. Now I conerted that swf to swc, and created another container swf to point to that swc. Seems the new swf file has the theme information, which the swc does not take the theme.</p> <p>How do I enable swc to ... |
40,736,909 | 0 | <p>I do have created a subclass of UITextField, it is easy to implement and use. Here is the GitHub link:</p> <p>Visit <a href="https://github.com/subhajitregor/SHPickerFieldExample" rel="nofollow noreferrer">https://github.com/subhajitregor/SHPickerFieldExample</a></p> <p>Please see the example to see how to use. The... |
11,500,055 | 0 | How can we implement drag and drop feature in html5 <p>Hello everyone please suggest me how to implement drag and drop feature inside CANVAS of html5 using kineticJS it drag and dropped object should be able to display the id of the object.</p> |
10,219,042 | 0 | <p>One very simple way is to add a middle term containing a timestamp or a counter value. So for example: </p> <pre><code>>>> heap = [] >>> counter = itertools.count() >>> for i in range(10): ... heapq.heappush(heap, (i, -next(counter), str(i) + ' oldest')) ... heapq.heappush(heap, (i, -next... |
17,580,905 | 0 | <p>There's a <a href="https://connect.microsoft.com/VisualStudio/feedback/details/551183/loading-toolbox-content-from-package-takes-55-seconds-or-more" rel="nofollow" title="Connect Bug Report">Connect bug report</a> for this. It's already closed, so you can't vote, but let Microsoft know you had the problem by clicki... |
23,074,129 | 0 | <p>Yep, hes using an absolute path for image, but the project isn't in server root folder then you need's to inform the name of the folder in path...</p> <p>Use <code><img src="/finalprojectneat/image/Picture2.png"></code> then you have your logo display on every page. But is not the most indicated because when ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.