pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
22,550,720 | 1 | Comparing Values of two lists and Printing to a file <p>I have a program that is supposed to be comparing the contents of a list to values returned by a tinter treeview and if the values do not match, writing the element of the list to a file. The idea is to allow the user to remove an element in the tree (which is pop... |
14,012,208 | 0 | <p>Their javascript seems to be changing the CSS. The CSS does the transformation and fading work.</p> <p>I <a href="http://mitchell-me.com/QuickOptimizer/Cache/43b42ff4cc2c854d0f53e3a3eef13bd85f3aff56b295be5a866e5835449041e2.js" rel="nofollow">snooped through their javascript</a>...</p> <pre><code>$("#service li").cl... |
375,843 | 0 | <p>Using <code>includeInLayout ="true"</code> or <code>"false"</code> will toggle the space that it takes in the flow of items being rendered in that section. </p> <p><strong>Important note:</strong> If you don't specify <code>visible="false"</code> when using <code>includeInLayout = "false"</code> then you will usual... |
35,046,120 | 1 | SQLAlchemy InvalidRequestError: failed to locate name happens only on gunicorn <p>Okay, so I have the following. In <code>user/models.py</code>:</p> <pre><code>class User(UserMixin, SurrogatePK, Model): __tablename__ = 'users' id = Column(db.Integer, primary_key=True, index=True) username = Column(db.String(80), unique... |
5,405,587 | 0 | <p>You're constantly multiplying the <code>noOfYears</code> variable by -1, so it keeps switching between -1 and 1. Try using <code>noOfYears * -1</code> instead (without the equals-sign).</p> |
28,475,696 | 0 | Differences when using functions for casper.evaluate <p>I'm using PhantomJS v2.0 and CasperJS 1.1.0-beta3. I want to query a specific part inside the page DOM.</p> <p>Here the code that did not work:</p> <pre><code>function myfunc() { return document.querySelector('span[style="color:#50aa50;"]').innerText; } var del=th... |
31,222,522 | 0 | <p>Hmmm, you aren't using parameters in the correct order. As per mail documentation (<a href="http://php.net/manual/en/function.mail.php" rel="nofollow">http://php.net/manual/en/function.mail.php</a>), it should be:</p> <pre><code>mail("my@email.com", $subject, $message, $from); </code></pre> <p>I am not sure where y... |
14,939,936 | 0 | <p>To get detailed info you can try <code>gcc -E</code> to analyse your pre-processor output which can easily clear your doubt</p> |
29,121,473 | 0 | <p>cUrl is a server side command. It will just read the result, that is html/js code in your case but will not execute it. To solve your problem( you want to grab and save an image) use instead gd libraries.</p> |
30,157,238 | 0 | Disabled Firefox Add-on ActionButton not grayed out <p>When creating a Firefox Add-on <code>ActionButton</code> <code>disabled</code>, e.g.,</p> <pre><code>var button = new ActionButton({ id: 'my-link', label: 'My label', icon: { '16': './icon-16.png', '32': './icon-32.png', '64': './icon-64.png' }, onClick: handleClic... |
29,367,249 | 0 | <p>Try by changing the tint color of the searchable in xib or in code as <code>[self.searchDisplayController setTintColor:[UIColor whiteColor]];searchDisplayController</code></p> |
11,011,435 | 0 | <p>The AppFabric configuration tool updates the web.config file in at this location only</p> <blockquote> <p>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\web.config</p> </blockquote> <p>When building with the "Any CPU" option as I was you must manually edit this file</p> <pre><code>C:\Windows\Microsoft.NET\F... |
32,881,079 | 0 | <p>Not sure if anyone still cares, but you can actually load your custom functions saved in a .ps1 file to the remote computer, via a PSSession. I tried it out and it works for me. <a href="http://stackoverflow.com/questions/14441800/how-to-import-custom-powershell-module-into-the-remote-session">Check out this guy's ... |
3,857,790 | 0 | <p>I think you would have to capture audio directly from the phone's microphone and stream it to your own recognition service. The Google recognition APIs are built as an Intent that launches their own Recognition dialog and gives you back results. If you want continuous recognition without a UI, you'll have to build ... |
37,117,740 | 0 | <p>Assuming that <code>resultSet</code> is a <code>List</code> implementation from the standard Java library, the answer to the "deep or shallow copy" question is "neither". <code>ListIterator</code>s of <code>List</code> classes in the standard Java library do not return a copy; they returns a <em>reference</em>, so ... |
6,050,395 | 0 | <p>Are you forgetting to add the frog view?</p> <pre><code>// Assume that you have a contentView that is visible // and then a frogView to add to it when the button is pressed... [contentView addSubview:frogView]; </code></pre> |
4,262,521 | 0 | <blockquote> <p>Professional Excel Development by Stephen Bullen describes how to register UDFs, which allows a description to appear in the Function Arguments dialog:</p> </blockquote> <pre><code>Function IFERROR(ByRef ToEvaluate As Variant, ByRef Default As Variant) As Variant If IsError(ToEvaluate) Then IFERROR = D... |
39,142,509 | 0 | <p>You can have a <code>maven-war-plugin</code> and configure to include empty folders.</p> <pre><code><plugin> <artifactId>maven-war-plugin</artifactId> <version>2.4</version> <configuration> <includeEmptyDirectories>true</includeEmptyDirectories> </configuration>... |
15,686,372 | 0 | Rendering each day using json data <p>I have a web service that returns a color for each day like this:</p> <pre><code>({"total_rows":"96","rows":[ {"row":{"date":"2013-01-01","airqualityindex":"50","categorycolorinteger":"-16718848"}}, {"row":{"date":"2013-01-02","airqualityindex":"45","categorycolorinteger":"-1671884... |
17,185,055 | 0 | How to upload a new version for document use alfresco restfull api? <p>I want upload a file to alfresco and I want to create a new version if the file was exists in alfresco. How can i do it. I saw the alfresco api :"/alfresco/service/api/upload" has a parameter "majorversion", Can I use it or has another way? Thanks.<... |
30,439,911 | 0 | <p>You can use the ExpandString function, <a href="http://blogs.microsoft.co.il/scriptfanatic/2011/01/02/expanding-strings-and-environment-variables-in-powershell/" rel="nofollow">like this</a>:</p> <pre><code>$ExecutionContext.InvokeCommand.ExpandString($TemplVal) </code></pre> <p>(assuming $TemplVal has the template... |
28,024,042 | 0 | <p>It depends from the task. There are plenty of tasks, for which John von Neumann computers are good enough. For example calculate precise values of functions in some range, or for example apply some filter at image, or store text into db and read it from it or store prices of some products etc. This is not area wher... |
4,578,507 | 0 | Who owns domain purchased via GoogleApps? <p>My original plan was to use google appengine for an application. For this I purchased a domain via GoogleApps at Godaddy. Since Google Appengine fails to impress me, I would love to move my website to another server. But who is the owner of the domain now? GoogleApp "purchas... |
39,132,696 | 0 | <p>You should import FormsModule:</p> <pre><code>@NgModule({ imports: [CommonModule, FormsModule] </code></pre> |
33,206,579 | 0 | Find total number of Increasing Subsequences of given length <p>Given an array of numbers and <strong>question</strong> is to find <strong>total number</strong> of <em>Increasing sub-sequences of length</em> <strong>lis-1</strong>, where <strong>lis</strong> is the length of <code>Largest Increasing sub-sequence</code>... |
5,417,647 | 0 | save() and _save() model's methods in playframework <p>When create playramework's model we can use save() or _save() method. Why these both methods are avalible in the framework, what's the reason? (in this context they do the same - save object to db).</p> <p>Why I ask this: I have used save() method when doing some v... |
7,260,906 | 0 | Buildbot - Two Schedulers with one builder = Double checkin emails? <p>I have a buildbot running with two Schedulers - One triggered by code checkins and another triggered by content checkins; the former needs a much shorter treeStableTimer. Both of these Schedulers trigger the same builder, but what happens now is tha... |
11,020,716 | 0 | <p>Bean profiles could be great fit for this - based on the "active" profile let one or the other bean be created. </p> <p>Somewhat of an older article, but is still a good reference to profiles in Spring 3.1- <a href="http://blog.springsource.com/2011/02/11/spring-framework-3-1-m1-released/" rel="nofollow">http://blo... |
28,400,366 | 0 | <p>Here is a super simple I made just now with some comments of what is going on. The client connects to the server can can type messages which the server will print out. This is not a chat program since the server receives messages, and the client send them. But hopefully you will understand better it better :)</p> <... |
33,361,777 | 0 | <pre><code>l = [1,2,3,4, 5, 6, 7, 8] print [[l[:i], l[i:]] for i in range(1, len(l))] </code></pre> <p>If you want all combinations. you can do like this.</p> <pre><code>print [l[i:i+n] for i in range(len(l)) for n in range(1, len(l)-i+1)] </code></pre> <p>or</p> <pre><code>itertools.combinations </code></pre> |
36,776,725 | 0 | <p><a href="https://github.com/google/gson" rel="nofollow">Google's gson library</a> doesn't require you to use annotations or constructors:</p> <pre><code>import com.google.gson.Gson; import java.util.Date; public class Test { public static void main(String[] args) { Gson gson = new Gson(); String toJson = gson.toJso... |
16,113,761 | 0 | MIDL (Microsoft Interface Definition Language) is a text-based interface description language by Microsoft, based on the DCE/RPC IDL which it extends for use with the Microsoft Component Object Model. Its compiler is also called MIDL. |
15,379,134 | 0 | Regular Expression for mm/dd/yyyy in asp.net <p>What would be the regular expression for mm/dd/yyyy in asp.net with month ,date and year validation?</p> |
33,051,015 | 0 | <p>Since the price requires a decimal value we should supply it a decimal value. Try the following view:</p> <pre><code>def get_queryset(self, *args, **kwargs): qs = super(ProductListView, self).get_queryset(*args,**kwargs) query = self.request.GET.get("q", False) # provide default value or you get a KeyError if query... |
5,145,623 | 0 | <p>The opensource framework <a href="https://github.com/ekonbenefits/impromptu-interface">Impromptu-Interface</a> was designed to do this. It generates a cached lightweight proxy with a static interface and uses the dlr to forward the invocation to the original object.</p> <pre><code>using ImpromptuInterface; public i... |
16,740,810 | 0 | <p>The reference assemblies are empty placeholder assemblies installed with visual studio that are used during compilation.</p> <p>Try repairing visual studio.</p> |
28,279,970 | 1 | Batch file runs with "not recognized...command", how to fix this? <p>I have a batch file which when executed sets PATHs, prompts user for input and loads a script via Python. The python script creates a grid with the size of each cell determined by the user input variable (<code>cellsize</code>). The following is from ... |
24,072,511 | 0 | <p>You could generate the groupings using <code>cut</code> and then use a <code>facet_grid</code> to display the multiple histograms:</p> <pre><code># Sample data with y depending on x set.seed(144) dat <- data.frame(x=rnorm(1000)) dat$y <- dat$x + rnorm(1000) # Generate bins of x values dat$grp <- cut(dat$x,... |
15,265,016 | 0 | <p>As far as I can help you is to check this: <a href="http://stackoverflow.com/questions/12512417/asp-net-mvc-4-ajax-beginform-and-html5">ASP.NET MVC 4 - Ajax.BeginForm and html5</a></p> <p>And maybe this (you can get an idea or two here): <a href="http://stackoverflow.com/questions/11036942/mvc4-ajax-beginform-and-p... |
22,968,999 | 0 | <p>Here you go: <strong>Fiddle</strong> <a href="http://jsfiddle.net/fx62r/2/" rel="nofollow">http://jsfiddle.net/fx62r/2/</a></p> <p><code>inline-block</code> leaves white-space between elements. I would use <code>float: left;</code> instead of inline block</p> <p>Write elements on same line to avoid white-space. Lik... |
9,424,244 | 0 | <p>My answer <a href="http://stackoverflow.com/questions/9363827/building-gpl-c-program-with-cuda-module">to this recent question</a> likely describes what you need.</p> <p>A couple of additional notes:</p> <ol> <li>You don't need to compile your .cu to a .cubin or .ptx file. You need to compile it to a .o object file... |
24,987,866 | 0 | <p>Make sure that you are using the proper <code>yourtablename</code> and following name conventions. The table name is always lower-case and pluralized. </p> <p>For example, if your model name is <code>User</code>, your table name is <code>users</code>. If your model name is <code>Image</code>, your table name will b... |
33,644,746 | 0 | <p>I had to use this code to check if the file exist or not.</p> <pre><code>Dim currentPath As String = System.IO.Path.Combine(IO.Directory.GetCurrentDirectory(), Textbox1.Text) If IO.File.Exists(currentPath) Then ..Do something here Else MsgBox("Executable doesn't exist!", vbOKOnly, "Error!") End If </code></pre> |
12,193,531 | 0 | <p>You should use this structure to manage transactions with Oracle (see <a href="http://msdn.microsoft.com/en-us/library/system.data.oracleclient.oracletransaction.commit%28v=vs.100%29.aspx#Y612" rel="nofollow">MSDN docs</a>) :</p> <pre><code>Public Sub RunOracleTransaction(ByVal connectionString As String) Using con... |
11,503,342 | 0 | <p>You are looking for the two properties:</p> <ul> <li><a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.listcontrol.valuemember.aspx" rel="nofollow"><code>ValueMember</code></a>.</li> <li><a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.listcontrol.displaymember.aspx" rel="no... |
11,898,420 | 0 | <p>Heres an answer I cribbed, genericised and brought up to date from <a href="http://www.cs.nyu.edu/~vs667/articles/mergesort/" rel="nofollow">here</a></p> <pre><code>public static IList<T> MergeSort<T>( this IList<T> unsorted, IComparer<T> comparer = null) { if (unsorted == null || unsorted.C... |
22,195,715 | 0 | <p>There are multiple ways to do what you are trying to do, the easiest one would be the following:</p> <pre><code>OutputDict = {} for key in Dict1.iterkeys(): if key in Dict2: OutputDict[key] = Dict1[key] + Dict2[key][2] </code></pre> <p>Since all the operations are O(1), and we run it for each key on Dict1 (or Dict2... |
2,093,416 | 0 | Group by and non distinct columns and data normalization <p>I have a large table(60 columns, 1.5 million records) of denormalized data in MS SQL 2005 that was imported from an Access database. I've been tasked with normalizing and inserting this data into our data model. </p> <p>I would like to create a query that used... |
37,439,331 | 0 | <p>Since you have your javascript loading before your html, <code>document.getElementById("demo")</code> ends up being null, since the DOM hasn't loaded yet.</p> <p>Try moving that javascript to the bottom (I put it after the body tag, but not sure this is best practice). This way the DOM loads first, and then your ja... |
1,148,149 | 0 | <p>You can just calculate in your query like this:</p> <pre><code>$query = "SELECT (Sqrt(min. Economy) x ( 1 + Sqrt(Distance)/75 + Sqrt(Players)/10 ) Sqrt(88) x ( 1 + Sqrt(23)/75 + Sqrt(23)/10 ) = 15 cred./h) as `Distance`, * FROM routes ORDER BY id DESC LIMIT 8;"; </code></pre> <p>Use as for naming your calculation s... |
28,064,493 | 0 | <p>An IBAction method has the format</p> <pre><code>-(IBAction)name:(id)sender </code></pre> |
29,776,560 | 0 | <p>Solution:</p> <pre><code>public static void UiInvoke(Action a) { Application.Current.Dispatcher.Invoke(a); } </code></pre> <p>And how to call it:</p> <pre><code>UiInvoke(() => { Seznam.Add(new Model.Zprava(DateTime.Now.ToString(), data, Model.Od.Server)); }); </code></pre> |
4,893,178 | 0 | <p>From my poking around, it doesn't look like there's much you can do. You might have luck using <code>autoconf</code> to generate <code>setup.py</code>, or you could use <code>automake</code> and <code>libtool</code> and do the whole thing with autofoo. Automake provides a macro <code>AM_PATH_PYTHON</code> that sets... |
26,117,479 | 0 | Facebook long lived Page Access Token <p>I am administrator of facebook page which DOES NOT have a classic facebook account assigned. So I am not able to create any facebook application as you can see in Picture <a href="https://i.stack.imgur.com/umeyL.png" rel="nofollow noreferrer">1</a>. How can I obtain long lived (... |
40,464,006 | 0 | <p>Try like this :</p> <pre><code> progressDialog = new ProgressDialog(getActivity()); </code></pre> <p>And if you wish to customize your dialog and put self created Layout in it.</p> <pre><code>/** * Created by vivek on 18/10/16. */ public class CustomDialog { private static Dialog dialog; private static Context cont... |
4,381,251 | 0 | <p>The simpliest solution depends from wich method did you like to send mails.</p> <p>If you have for example already installed sendmail - in this case to send the mail with notification log you can call it with params. It depend on your system settings.</p> |
19,960,459 | 0 | <p>Do not use response in that case, this will ask the Save as dialog box. If you want to save the file to your disk without any prompt do something like this. I am giving you in C#</p> <pre><code>System.Web.UI.WebControls.DataGrid grid = new System.Web.UI.WebControls.DataGrid(); grid.HeaderStyle.Font.Bold = true; gri... |
29,447,937 | 0 | <p>Below are my notes on the conversion process from Polymer 0.5 to 0.8.</p> <h3>See Polymer 0.8 Migration Guide</h3> <p><a href="https://www.polymer-project.org/0.8/docs/migration.html" rel="nofollow">https://www.polymer-project.org/0.8/docs/migration.html</a></p> <h3>HTML Conversion Process</h3> <ol> <li>polymer-ele... |
4,046,054 | 0 | <p>It is kind of possible using <code>in_array()</code>:</p> <pre><code>if (in_array($_SESSION['id'], array("000001", "000002"))) </code></pre> <p>or alternatively using <code>switch</code>:</p> <pre><code>switch ($_SESSION["id"]) { case "000001": case "000002": // do something break; default: break; } </code></pre> |
25,882,323 | 0 | <p>The issue is that jquery.soap is not accounting for <code>CDATA</code> elements, in <a href="https://github.com/doedje/jquery.soap/blob/f642fc079e2d7ea40b2ea1fc12070b068ff0770b/jquery.soap.js" rel="nofollow">the current code of the jquery.soap.js file</a>, inside the function <code>dom2soap</code>, from line 482 to... |
30,780,847 | 0 | <p>You can use the following function for that, it will handle your two delimiters for spli</p> <pre><code>CREATE FUNCTION dbo.MultipleSplitStrings ( @List NVARCHAR(MAX), @Separator1 Varchar(100), @Separator2 Varchar(100) ) RETURNS TABLE AS RETURN ( SELECT Item = y.i.value('(./text())[1]', 'nvarchar(4000)') FROM ( SEL... |
13,222,960 | 0 | How to revoke the permission that my app get from user's google gmail AccountManager.getAuthToken( <p>Created a test app using Eclipse to get the <code>authToken</code> from one of my google e-mail accounts on my device.</p> <p>Executing this prompted me with the allow access dialog where i press allow access: </p> <pr... |
40,553,016 | 0 | <p>After reviewing all the other answers, I ended up with this:</p> <pre><code>function oldSchoolMakeBuild(cb) { var makeProcess = exec('make -C ./oldSchoolMakeBuild', function (error, stdout, stderr) { stderr && console.error(stderr); cb(error); }); makeProcess.stdout.on('data', function(data) { process.stdou... |
1,779,395 | 0 | <p><code>do { … }</code> requires a condition at the end, such as <code>do { … } while (busy);</code> If you just want to execute a piece of code in a block, just put that block there and remove the <code>do</code>.</p> |
13,372,749 | 0 | Percent errors using the arc cosine function trying to output 3 different numbers of percentages <p>I coded all of this but it will not output any of my percent errors i'm not quite sure where to put the percent? It is suppose to output 3 different numbers but I can't even get to the output because of this error i have... |
12,385,977 | 0 | preg_replace with two arrays <p>I've have a problem with <code>preg_replace()</code> using arrays.</p> <p>Basically, I'd like to transpose this string ;</p> <pre><code>$string = "Dm F Bb F Am"; </code></pre> <p>To </p> <pre><code>$New_string = "F#m D D A C#m"; </code></pre> <p>Here is what I do: </p> <pre><code>$Find =... |
33,755,378 | 0 | <p>I've already tried to use commands.flush() before call the close() method, but this don't change anything.</p> <p>Instead, if I write more than one file, as an example file-1.xml, file-2.xml, file-3.xml, the files numer one and two was written before I closing the application and the file number three was written o... |
9,150,845 | 0 | <p>With CSS3 you can now target the [title] attribute but as to a real world solution i don't see any. I would rather suggest you used a plugin such as <a href="http://onehackoranother.com/projects/jquery/tipsy/" rel="nofollow">tipsy</a> for that task, as it is more cross browser supported and less fuss.</p> <p>This i... |
40,125,667 | 0 | <p>Have a look at <a href="https://github.com/linq2db/linq2db" rel="nofollow">LinqToDb</a>. It also has a version for Mono and it should work with Unity3D.</p> <p>Good luck.</p> |
5,695,226 | 0 | Send part of an arraylist <p>I have an <code>arraylist</code> in Java that I fill with certain data, but I want to send the array list starting at certain a index say, e.g.: <code>20</code>.</p> |
3,000,283 | 0 | <pre><code>p.location[0].name ## OR p.location.first.name </code></pre> <p>p.location is an array of one element</p> |
40,678,084 | 0 | Using jQuery plugins inside Typescript file <p>I'm using typescript for the first time in my company projects, and I have this JS file:</p> <pre><code>/// <reference path="jquery.d.ts" /> /// <reference path="bootstrap-switch.d.ts" /> function CreateIdeSkuValidoSwitch() { $("[name='actived_ideskuvalido']").... |
40,246,073 | 0 | <p>Please edit the code, it looks like you have an error on mongo with 'Admin.findOne'</p> <pre><code>if(err) deferred.resolve(err); </code></pre> <p>to </p> <pre><code>if(err) deferred.reject(err); </code></pre> |
14,068,247 | 0 | Why am I getting undefined method `comments' when using acts_as_commentable_with_threading? <p>On the community's #show page, I get:</p> <blockquote> <p>undefined method `comments'</p> </blockquote> <p>I was wondering why was I get this error?</p> <p><strong>community_topics_controller.rb</strong></p> <pre><code>def sh... |
21,859,548 | 0 | <p>My understanding is that you want to execute the onResize() function when the resize event is received. You seem to be a bit out of sync with how the document-ready stuff is intended to work -- and I recommend that you read some of the basic jquery tutorials -- but, basically, you want to use the function in $(func... |
29,412,661 | 0 | <p>As you ask specifically about the BBC: </p> <p>You <em>are</em> allowed to display <a href="http://www.bbc.co.uk/news/10628494" rel="nofollow">the RSS feed of BBC headlines</a> - you could use the WordPress <a href="https://codex.wordpress.org/WordPress_Widgets#Using_RSS_Widgets" rel="nofollow">RSS Links widget</a>... |
29,102,377 | 0 | <p>This worked for me:</p> <blockquote> <p>To remove extra space Use the code as</p> <pre><code>zpc.write("! UTILITIES\r\nIN-MILLIMETERS\r\nSETFF 10 2\r\nPRINT\r\n".getBytes()); zp.getGraphicsUtil().printImage(bmp,0,0,100,100,false); </code></pre> <p>where the 4th and the 5th parameters can be as you required ...</p> ... |
39,856,475 | 0 | <p>You can use :</p> <pre><code>git config --get-regexp user.name </code></pre> <p>For the <strong>user name</strong>. for the <strong>repository name</strong>, you may have different repositories with different names, so I guess parsing :</p> <pre><code>git remote get-url origin </code></pre> <p>could help if you onl... |
16,145,138 | 0 | Strange exception when using groupBy in slick <p>I have a table with a few columns, two of them are: vendingMachineId (which are repeated) and each one has a timestamp.</p> <p>I want to get latest timestamp for each vendingMachineId so I did this:</p> <pre><code>def getLastReading(assetIds: List[Int])(implicit db: Sess... |
25,736,753 | 0 | how to do reduce multiple query into one query <pre><code>Query 1: select item_no from hdd where item_no='$in' and id != '$id' Query 2: select sr from hdd where sr='$hd' Query 3: select item_no from hdd where casing_no='$c' and id != '$id' </code></pre> <p>Result Required : </p> <pre><code>Q1 = num_rows = 0 Q2 = num_ro... |
26,792,768 | 0 | Loading a .obj file all black <p>I've successfully loaded a 3d model that I triangulated using Blender. Trouble is its all black and I can't figure out how to get it to show color or textures.</p> <p>I have an ambient light initialized like this:</p> <p>function init() { scene = new THREE.Scene;</p> <pre><code>camera =... |
37,347,382 | 0 | How to remove all bootstrap processing from radio button? <p>I am using coldfusion and bootstrap to make a site. I have some radio buttons that need to be selected depending on the value of a query output, but for some reason I cannot get any of the radio buttons to select at all based on their value. I was thinking ma... |
36,960,628 | 0 | How to return results together with update operations in BaseX? <p>I recognized that (<code>insert</code>/<code>delete</code>)-XQueries executed with the BaseX client always returning an empty string. I find this very confusing or unintuitive.</p> <p>Is there a way to find out if the query was "successful" without quer... |
15,408,459 | 0 | How to Revert database to last modified from recent Restore? <p>me and my fried were developing a project in separate system but created database in same name, Today i restored my database in my friend's machine accidentally. Is there any way to roll back the database in SQL-Server, which means i want to get database t... |
16,450,393 | 0 | <p>You're asking for the filesize of a directory, which in this case is 4,096 bytes. This number will vary for a directory depending on what sort of filesystem you're using and how many files are in it. </p> |
2,004,367 | 0 | UIImageView's CALayer's anchorPoint "accessing unknown component of property" error <p>I'm trying to rotate an image about the bottom right corner. To do this I know I need to set the layer's anchorPoint, but I can't access it. I've included the QuartzCore framework in my project. To simplify the problem as much as pos... |
7,423,066 | 0 | <p>I was having a similar problem. Route values that were passed to my controller action were being reused when I tried to redirect the user with <strong>RedirectToAction</strong>, even if I didn't specify them in the new <strong>RouteValueDictionary</strong>. The solution that I came up with (after reading counsellor... |
14,421,729 | 0 | How do you grab an element in a JSON tree without an explicit name in Play 2.0? <p>I've been working through parsing .json files in a Play 2.0 project and there is one thing I can't figure out. Here is a snippet from the online docs:</p> <pre><code>{ "users":[ { "name": "Bob", "age": 31.0, "email": "bob@gmail.com" }, {... |
26,398,213 | 0 | Link against two versions of the same library (same symbols) <p>I'm developing an iOS app and want to link against a particular library. However a forked/old version of that same library (with colliding symbols) has been statically linked into a framework that I'm also using. Because the version pulled in by the framew... |
5,118,902 | 0 | <p>This question doesn't make much sense. You really should clarify and flesh out the question and explain what you are trying to do.</p> <p>In some ways, an ASP.NET textbox <em>is</em> an HTML text field that C# code can make use of. So what's the problem with an ASP.NET textbox?</p> |
4,031,206 | 0 | <p>Sounds like you are looking for the <a href="http://en.wikipedia.org/wiki/HTTP_referrer" rel="nofollow"><strong>HTTP Referrer</strong></a>. You can get it via <a href="http://php.net/manual/en/reserved.variables.server.php" rel="nofollow"><code>$_SERVER['HTTP_REFERER']</code></a>.</p> <p>But note that this can be c... |
2,090,372 | 0 | <p>i would think there would be a java equivalent to something like the following php</p> <pre><code>$my_numbers = range(0,100); echo implode($my_numbers, ' '); </code></pre> <p>this avoids recursion, loops, control statements, etc.</p> |
7,036,293 | 0 | <blockquote> <ol> <li>How to commit my changes to the local git repository as well as my forked repository in github?</li> </ol> </blockquote> <p>To add files changes for commit, use the following command.</p> <pre><code>git add . </code></pre> <p>then, make a local commit by</p> <pre><code>git commit </code></pre> <p... |
26,991,767 | 0 | <p>For completeness, <a href="http://scikit-learn.org/stable/modules/svm.html#nusvc" rel="nofollow">from the documentation</a>: Nu-SVM is a constrained formulation of SVM (equivalent with the original up to reparametrization) which poses a hard bound on the allowed misclassification. If this bound cannot by satisfied,... |
15,851,668 | 0 | Fancybox with an i-frame cross-domain, partially rendered with Explorer10 compability mode <p>Site that open a fancybox i-frame, and in the i-frame there is a aspx - ajax page of other domain. just with IE10 in compability mode (No problem with others browsers), the page is just partially rendered, and when I click on ... |
5,703,509 | 0 | <p>If there is some PHP behind, the problem could be calling a function empty($var) in this way:</p> <pre><code>if(empty($var = getMyVar())) { ... } </code></pre> <p>Instead of this You should call it this way:</p> <pre><code>$var = getMyVar(); if(empty($var)) { ... } </code></pre> <p>Or better (as <strong>deceze</str... |
14,497,906 | 0 | Android-NDK: create GUI elements out of native code <p>as far as I understood the Android-NDK-thingy it works as follows: I have to use a NativeActivity that itself calls into the attached native code handing over some OpenGL graphics context. This context can be used by the native part to draw some things with.</p> <p... |
37,488,877 | 0 | <blockquote> <p>I assume that you don't use nginx to serve static assets in development? Runserver can serve static files, but very much slower than nginx, which becomes a problem once you have more than a single web site visitor at a time. You can remove the nginx alias for static and reload nginx to let runserver se... |
15,464,859 | 0 | Multiple xmlhttprequest <p>Is it possible with javascript ? or do I need to create two senders ?</p> <p>because this don't work</p> <pre><code>xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded"); xmlhttp.send("textBox="+textBox.value); xmlhttp.send("textBoxID="+textBox.parentNode.id); </code></... |
11,031,271 | 0 | <p>In short - there shouldn't be a problem. Once 3 & 4 are both installed, the two use different project templates and the references to the MVC assemblies are specifically targetted at the correct versions.</p> <p>Beyond that, the web.configs of the two sites then determine the other assemblies that are used - an... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.