pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
29,123,729 | 0 | <p>You are supposed to initialize the array to a non null value in order do use it :</p> <pre><code>String systems[][] = new String[n][5]; </code></pre> <p>where <code>n</code> is the max capacity of the array.</p> <p>If you don't know in advance how many rows your array should contain, you can use an <code>ArrayList&... |
33,548,768 | 0 | Jackson coercing to zero <p>Using JAX-RS (GlassFish 4) and Jackson as serializer, I encountered a problem during deserialization of POJO properties of type <code>Double</code> (same with <code>Integer</code>).</p> <p>Lets say I have simple POJO (excluding bunch of other fieds, getters and setters):</p> <pre><code>publi... |
9,951,480 | 0 | TouchUtils and ActivityInstrumentationTestCase2 user event Unit test case not working <p>Currently I am struggling a little with the Unit test framework...</p> <p><strong>what I am trying to do</strong></p> <ul> <li>I need to simulate 2 clicks on the screen (100,100) and (400,400) at a small duration difference.</li> <... |
28,482,087 | 0 | Use Regex to Match relative image URLs and then use string replace to make them absolute using Javascript <p>I want to use javascript regex to find all relative URLs and then make them absolute using the string replace function in javascript. I tried to following but it didn't work:(Note: i have tried searching this si... |
35,691,121 | 0 | No ad in AdMob example (Android Studio) <p>I downloaded an ad example: <a href="https://developers.google.com/admob/android/start" rel="nofollow">https://developers.google.com/admob/android/start</a> but when I run it on a device it shows no ad (online mode of the project). In logs it tells that it is failed to load ad... |
3,040,041 | 0 | <p>It might be showing in the "Immediate Window" instead due to a setting:</p> <ul> <li>Go to Tools/Options/Debugging/General. Uncheck "Redirect all Output Window text to the Immediate Window"</li> </ul> <p>Or somethig like that.</p> |
39,299,156 | 1 | On LOAD DATA LOCAL INFILE integer required error <p>I have a data file containing data in following format</p> <pre><code>asd,12,asd,asd,12,adsd,,asdas,None </code></pre> <p>I have a table in mysql which is has an <code>auto increment</code> int <code>id</code> and the rest of the columns as in data file.</p> <p>Now i ... |
3,259,002 | 0 | Need a Perforce DVCS recommendation: git-p4, hg Perfarce, or Something Else? <p>We're getting migrated from Subversion to Perforce at work. I've been using git-svn and it's kept me very productive. I want to keep using a DVCS for my own development.</p> <p>Which works best with Perforce in your experience, git-p4, Perf... |
14,556,216 | 0 | <p>try this (-1D to get 27 of next month otherwise it would be same of today date):</p> <pre><code>$(function() { $( "#datepicker" ).datepicker({ minDate: 0, maxDate: "+1M -1D" }); }); </code></pre> |
21,986,939 | 0 | Hovering menu doesnt resizing <p>I have a menu and a submenu , that will show only on mouse hover. But I cant resize it . </p> <p>This is my javascript:</p> <pre><code>$('#menu li').hover(function() { $(this).find('ul').show(); }, function() { $(this).find('ul').hide(); }); </code></pre> <p>HTML part: </p> <pre><code> ... |
4,087,024 | 0 | <p>use the <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/Capabilities.html" rel="nofollow">Capabilities</a> class. You can get the OS, also there are many other details you can get.</p> |
39,118,657 | 0 | <p>You can use Command Design Pattern</p> <p>for more info :</p> <p><a href="https://en.wikipedia.org/wiki/Command_pattern" rel="nofollow">https://en.wikipedia.org/wiki/Command_pattern</a> <a href="http://www.tutorialspoint.com/design_pattern/command_pattern.htm" rel="nofollow">http://www.tutorialspoint.com/design_pat... |
23,144,691 | 0 | Get the value of the textbox on c# <p>I'm working on a wpf app and i want to get the value of textbox i want to use KeyDown & KeyPress to check if the text is a numeric value but when i write KeyPress the compilator underlined the proprity so i can't use it . </p> <pre><code>private void sb_KeyDown_1(object sender,... |
4,439,509 | 0 | <p>I hit the same link error using boost version 1.44 and the pre-built installer. I unzipped "libboost_data_time_vc100-mt-gd-144.zip" which contains only the missing .lib and this seems to have solved the problem.</p> |
36,260,142 | 0 | <p><b>Q1.What should be the resolution of the image for supporting all screen sizes for iPhone and iPad in landscape or portrait?<br> Regarding to @heximal <br></b> You can set "Scale to fill" mode for your image view and provide any image size (size of you xib, for example). <br> <b>Q2.Should I be again providing ima... |
23,178,824 | 0 | Error: Failed to build native gem extension <p>I've tried following some of the advice to uninstall libv8 and reinstall it, then run bundle, but it doesn't seem to work. I'm trying to install twitter-bootstrap-rails with less.</p> <pre><code>> gem install libv8 -v 3.16.14.3 -- --with-system-v8 Done installing docume... |
10,301,547 | 0 | How to update multiple rows with multiple values? <p>Well, I have a table as this </p> <pre><code>id | idtable2|value | code |name | 1 | 3 |983 | 10 |Total | 2 | 4 |89 | 10 |type 4 | 3 | 5 |299 | 10 |type 5 | 4 | 6 |0 | 10 |type 6 | 5 | 7 |72 | 10 |type 7 | 6 | 8 |523 | 10 |type 8 | 7 | 4 | | 11 |percentaje4| 8 | 5 | |... |
24,739,755 | 0 | hibernate with annotations in java, exception at runtime <p>I am new to hibernate and I'm creating a sample program with hibernate annotations. While running the program I'm getting the exception:</p> <pre><code>Java.lang.NoSuchMethodError: org.hibernate.util.ReflectHelper.classForName(Ljava/lang/String;Ljava/lang/Clas... |
1,015,743 | 0 | <p>I did use <a href="http://search.cpan.org/~robertmay/Win32-GUI-1.06/docs/GUI.pod" rel="nofollow noreferrer">Win32::GUI</a> once for such a simple project. The main window had a menu, a text-box and a few buttons and checkboxes. It worked.</p> <p>Excerpt from the method that sets up the GUI (just to give you an idea... |
13,742,775 | 0 | Save and load elements from webpage <p>I have in my webpage a series of elements, for example videos or other media:</p> <pre><code><div id = "text"> </div> <video height="240" width="412" id="video" controls="controls"> </video> </code></pre> <p>I change with JavaScript the original status of t... |
25,344,150 | 0 | Post to mini-profiler-results gives a 404 but only on live deployed site <p>I'm having some problems getting the POST results from MiniProfiler after the page has loaded. </p> <p>I've tried a GET, and that works. But the POST returns a 404 error as if it were looking for a static file.</p> <p><img src="https://i.stack.... |
2,009,441 | 0 | <p>Assuming you are talking about the creation of dynamic objects:</p> <p>You'll obviously need a library to support this, unless you want to get into <code>Reflection.Emit</code> yourself - LinFu supported this in version 1:</p> <p><a href="http://code.google.com/p/linfu/" rel="nofollow noreferrer">http://code.google... |
29,435,822 | 0 | settting keyspace for replication strategy <p>Hi i am pretty new to Cassandra so forgive me when i have some fundamental misunderstanding of the concept of keyspaces. What i am trying to do is to set up a multi datacenter ring in different regions with data replication NetworkTopologyStrategy endpoint_snitch set to Gos... |
27,746,239 | 0 | <p>You need to actually perform the query against your DB:</p> <pre><code>$stuidcheck="SELECT status FROM valid_stuid WHERE id='".$stuid."'"; if($stuidcheck == "used") </code></pre> <p>All this does is to give the string <code>$stuidcheck</code> the value "SELECT...", but you need to do something like:</p> <pre><code>... |
30,322,841 | 0 | Sticky Footer out of place with Image Slider <p>I am trying to add an image slider onto my homepage, however whenever I do so, the Sticky Footer moves out of place and I don't understand why.</p> <p>I want the Slider to stay where it is and the footer just to be in its right position and should move according to when c... |
18,763,433 | 0 | I need a very basic understanding of what static means <p>I am a java newbie, and despite searching everywhere, I cannot find a basic definition for what static actually does. Could somebody please tell me what it means? Also, please phrase your answer as if I do not even know what java is, no programming language exam... |
12,513,219 | 0 | <p>I know no-one is asking for a jQuery solution here, but might be worth mentioning that with jQuery you can just ask for:<code>$('#selectorid').val()</code></p> |
2,936,377 | 0 | <p>Important point: always call function on super when you reimplement. This solved my problem:</p> <pre><code>- (void)layoutSubviews { [super layoutSubviews]; self.contentView.frame = CGRectMake(50, 0, self.frame.size.width - 100, sub.thumbnail.size.height + 20); } </code></pre> |
150,915 | 0 | <p>The first 3 characters are missing in the corrupted one - compare</p> <pre><code>// Your correct version 00000BC0 0D 0D 0D 41 // Their corrupted one 00000BC0 D0 D4 1... </code></pre> <p>Either their mail server, mail program, anti-virus or some such program has removed the first few chars, which seems to be causing... |
11,828,354 | 0 | merge socket.io and express.js sessions <p>I want to merge express.js and socket.io sessions together. Below is my code (socket.io part)</p> <pre><code>var io = require('socket.io').listen(app); io.set('log level', 1); io.sockets.on('connection', function (socket) { console.log('client connected'); client.send(client.i... |
16,794,191 | 0 | <p>The bug is fixed in commit <a href="https://github.com/FooBarWidget/passenger/commit/4ad928da840663e1933c4557c9e79a3166b48304" rel="nofollow">4ad928d</a> on GitHub.</p> <p>You can try to use a clone from the GitHub repository, or wait for version 4.0.5 which will include this fix.</p> <p><strong>Edit:</strong> As o... |
23,277,387 | 1 | Redis publish from a csv. No error but No data received <p>Below is my script which inserts data from a csv located on one server into Redis on another server. If it worked..</p> <p>I don't get an error but I don't show any data received on the redis side either. So Iam not sure which is worse.</p> <pre><code>#!/opt/py... |
5,455,549 | 0 | Web based RTF editor solution <p>I've been researching on how to do this for about a week now and I guess I am looking for the best way to go about doing what I am trying to accomplish.</p> <p>I am trying to build a module in my website that will allow users to create forms (letters) in a wysiwyg type of editor with th... |
3,379,344 | 0 | <pre><code>$url = "http://www.mydomain.com/assets/Image/......./image.jpg"; $filename = basename($url); echo $filename; </code></pre> |
5,805,673 | 0 | <p>You forgot the quotes around the title.</p> <pre><code> $.each(json, function(i, item) { template += '<p><a href="javascript:void(0)" onClick="formatDescrip(' + i + ',\"' + json[i].title + '\")">' + this.title + '</a></p>'; }); </code></pre> <p>Instead of setting up the handlers that way, ho... |
30,885,116 | 0 | Adding labels to pie chart in R... Radiating "spokes"? <p>Is there a way (using ggplot or some other package maybe) to angle the labels of a pie chart in R? For example, this code (using R defaults):</p> <pre><code>data <- c(4,9,2,5) names <- c("alpha","beta","gamma","delta") pie(data,names) </code></pre> <p>Crea... |
37,734,874 | 0 | <p>Try using this method to get the running service. The Path gives the service MySQL..</p> <pre><code>ManagementClass mc = new ManagementClass("Win32_Service"); var Instances = mc.GetInstances().Cast<ManagementObject>().ToList(); foreach (ManagementObject o in Instances) { if (o.GetPropertyValue("PathName").Con... |
1,642,548 | 0 | <p>I'm not sure if I expressed my problem very well, but now I've found the solution.</p> <p>In my .proj file, I reference my custom task with the following syntax...</p> <pre><code><UsingTask AssemblyFile="..\lib\MyCompany.MSBuild\MyCompany.MSBuild.dll" TaskName="CreateDatabase" /> </code></pre> <p>My CreateDat... |
25,893,575 | 0 | <p>Java has a pool of Integer constants between -128 and 128. Integer values in that range don't take up any additional space.</p> <p>Integer values outside that range take as much space as an object header + 4 bytes. How big that is depends on your JVM and settings. Look at <a href="http://sourceforge.net/projects/si... |
31,391,100 | 0 | <p>You can <em>scale</em> the image by creating a <a href="https://msdn.microsoft.com/en-us/library/system.windows.media.scaletransform(v=vs.110).aspx" rel="nofollow">ScaleTransform</a> object and applying it to the imageBrush, and setting the Stretch property on your brush to whatever it is you desire.</p> <p>For exa... |
6,792,818 | 0 | <p>If you are seeking to find out whether a type is a Foo(Of T) because you're interested in using some property which does not depend upon T, I would suggest that you should make that property available in either a non-generic base class or a non-generic interface. For example, if defining an ISuperCollection(Of T) w... |
21,222,769 | 0 | Texture Filtering <p>Why texture filtering is called <code>filtering</code>? As far as I understand, texture filtering means calculating the color components for the vertex from the texture texels. It can be considered as <code>mapping</code> . So where is the filtering here?</p> <p>I am asking to make sure that I am n... |
4,849,454 | 0 | <p>I think you are missing a comma after <code>autoincrement</code> and then you don't need the trailing semicolon</p> |
27,244,700 | 0 | <p>Humm. Is your sort truly async or does it just take a function as a parameter? Also, I think we will need a bit more information regarding the workunit.sort method.</p> <p>Anyhow, as a high level, you can use something like <code>async</code> module to wait for the completion of async tasks perhaps?</p> |
17,654,733 | 0 | <p>edit the visibility line under <code>TextView</code> as follows:</p> <pre><code>android:visibility="visible" </code></pre> <p>Instead of</p> <pre><code>android:visibility="gone" </code></pre> |
24,378,730 | 0 | <p>The below coding is also useful to perform only string value.By using variable to access the property list of abject after that by using it check the value is a NotANumber by using isNaN.The code given below is useful to you</p> <pre><code>var languages = { english: "Hello!", french: "Bonjour!", notALanguage: 4, sp... |
38,903,629 | 0 | Xcode 8 - directory not found for option '-F' <p>Started a new project in Xcode 8 beta 5, and I'm getting a warning for each cocoa pod in each of my targets:</p> <pre><code>ld: warning: directory not found for option '-F/Users/NinjaCoder/Library/Developer/Xcode/DerivedData/NinjaProduct-bfwyaspiuhsjzkhepkjmeoiayjnk/Buil... |
7,890,554 | 0 | Sending long XML over TCP <p>I'm sending an object (class name <code>House</code>) over TCP using the <code>TcpListener</code> on the server side in response to any message received from the <code>TcpClient</code>.</p> <p>When the message is received, it is currently populating a text box named <code>textBox1</code>.</... |
972,645 | 0 | <p>I'm not sure I get you right, but if I do, something like that seems to do the trick:</p> <pre><code>select RESULT.* from classmembercall as RESULT inner join classmembercall as INPUT ON RESULT.startedontick BETWEEN INPUT.startedontick and INPUT.finishedontick AND RESULT.finishedontick BETWEEN INPUT.startedontick a... |
39,744,272 | 0 | <p>I think your problem is, though we destroy session we can still access the page that should be loaded only if the user in logged in.</p> <p>For example, when user log in with correct credentials the url should look like this: localhost/app/controller/function (just for instance). And later when the user log out you... |
21,132,767 | 0 | <p>For buttons, i prefer to use:</p> <pre><code>$('<%=updAccountObject.ClientID %>').click(); </code></pre> |
8,998,950 | 0 | <p>Since twig 1.12.2 you can use <a href="http://twig.sensiolabs.org/doc/filters/first.html"><code>first</code></a>:</p> <pre><code>{% if user.name|first|lower == i %} </code></pre> <p>For older version you can use <a href="http://twig.sensiolabs.org/doc/filters/slice.html"><code>slice</code></a>:</p> <pre><code>{% if... |
14,695,303 | 0 | Accessing an imported element after the original DOMDocument is destroyed <p>I've been messing around with DOMDocument lately, and I've noticed that in order to transfer elements from one document to the next, I have to call <a href="http://php.net/manual/en/domdocument.importnode.php" rel="nofollow"><code>$DOMDocument... |
20,104,230 | 0 | <p>From what I could dig, there seems to be two ways to open the compose window of the email app with the fields filled: </p> <h3>1. regular email link</h3> <p>You can pass subject, body, cc, bcc strings as query URL parameters on a mailto link, for example:</p> <pre><code><a href="mailto:mail@example.com?subject=f... |
9,804,114 | 0 | <p><em>You haven't specified Joomla version so I'm assuming 1.6/7/2.5 in my answer.</em></p> <p><strong>Short Answer:</strong> If you're using Joomla!'s default .htaccess then all you have to do is create a Joomla! menu to each of your components views with the right alias eg. <code>portal</code> for your default comp... |
16,909,638 | 0 | How can I use HttpClient in my .NET Framework 4.5 app/site? <p>Based on the answer here: <a href="http://stackoverflow.com/questions/16470458/how-can-i-retrieve-and-parse-just-the-html-returned-from-an-url">How can I retrieve and parse just the html returned from an URL?</a></p> <p>...I'm trying to begin by adding code... |
29,185,829 | 0 | <p>You can get the checkbox control value as</p> <pre><code>SPFieldMultiChoiceValue choices = new SPFieldMultiChoiceValue(item["MultiChoice"].ToString()); </code></pre> <p>And iterate through the values as</p> <pre><code>for (int i = 0; i < choices.Count; i++) { Console.WriteLine(choices[i]); } </code></pre> |
4,265,472 | 0 | <p>My solution is fastest and easiest.</p> <pre><code>public class MyBase64 { private final static char[] ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".toCharArray(); private static int[] toInt = new int[128]; static { for(int i=0; i< ALPHABET.length; i++){ toInt[ALPHABET[i]]= i; } }... |
17,704,225 | 0 | <p>Apparently, emptying the ReSharper cache:</p> <blockquote> <p>In menu, ReSharper > Options > Environment > General > Clear Caches</p> </blockquote> <p>and disabling and re-enabling ReSharper:</p> <blockquote> <p>In menu, Tools > Options > ReSharper > General > Suspend / Restore</p> </blockquote> <p>did the trick fo... |
13,597,664 | 0 | <p>I solved it with <a href="http://msdn.microsoft.com/en-us/library/bb126445.aspx" rel="nofollow">T4</a>. Now I have <code>Queries</code> directory in my project and <code>SQLGenerator.tt</code> in it. Here is my template source code:</p> <pre><code><#@ template debug="true" hostSpecific="true" #> <#@ output... |
6,917,688 | 0 | <p>The on_register is a basic module function of ?MODULE. If the gen_server is a singleton server, you can send the name to it using gen_server:call(?MODULE, {name, Name}) or gen_server:cast(?MODULE, {name, Name}).</p> <p>So the result would look like:</p> <pre><code>on_register(SID, JID, INFO) -> {_, _, _, _, Name... |
29,080,900 | 0 | dispatch_after is persisting view controller in memory <p>I have this code, which runs a block of code after a delay.</p> <pre><code>public func delay(delay:Double, closure:()->()) { dispatch_after( dispatch_time( DISPATCH_TIME_NOW, Int64(delay * Double(NSEC_PER_SEC)) ), dispatch_get_main_queue(), closure) } </code>... |
37,186,302 | 0 | Putting CreateElementNS in a function (SVG Groups, shapes etc) <p>I am trying to turn this code right here:</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>var group = function(n){ n = document.createElementNS(svg, ... |
26,833,850 | 0 | <p>As you can see in <a href="https://github.com/playframework/playframework/blob/2.3.x/framework/src/sbt-plugin/src/sbt-test/play-sbt-plugin/secret/project/Build.scala" rel="nofollow">this test</a> of the Play framework itself, you need to use <code>play.PlayScala</code>.</p> <pre><code>Project(id = dir, base = file(... |
37,426,620 | 0 | Error: Not implemented Trying to create a stream with ExcelJS <p>Using Node v 5.4.1</p> <p>I'm trying to create a stream like so:</p> <pre><code>const program = require('commander'), Excel = require('exceljs'), colors = require('colors/safe'), inquirer = require('inquirer'), async = require('async'), stream = require('... |
31,310,149 | 0 | Activemq not start in linux mint17 <p>Please see the following console output after executing activemq console command: </p> <p>/opt/apache-activemq-5.5.1/bin $ sudo activemq console sudo: /var/lib/sudo/vivek writable by non-owner (040777), should be mode 0700 [sudo] password for vivek: INFO: Loading '/usr/share/active... |
33,047,711 | 0 | <p>Yes, Browser-Sync has <a href="http://www.browsersync.io/docs/api/#api-init" rel="nofollow">snippet-mode</a> for the case in which a proxy won't work. The general usage is to just cut and paste a snippet into the body of your pages and you'll get the injecting/reloading support. However this is a lot of perpetual m... |
33,861,636 | 0 | <p>Try using <code>li:before</code> with a content of <code>></code> to make these bullet points, like so:</p> <pre><code>li:before { align-items: center; background-color: #fcbe35; border-radius: 50%; color: white; content: '>'; display: inline-flex; font-weight: bold; height: 24px; justify-content: center; mar... |
1,610,790 | 0 | External HTML page, inside AJAX Iframe? <p>Hi Masters Of Web Development. I have a not that simple question this time. I have got a simple external HTML page, that I want to include in my site. The HTML page contains a submit form or something like that, and I wish to send this data from the form, without to reload the... |
2,104,678 | 0 | <p>You can apply to have your IP address and account whitelisted which will increase your rate limit to 20,000/hour if you are approved. (<a href="http://apiwiki.twitter.com/Rate-limiting" rel="nofollow noreferrer">http://apiwiki.twitter.com/Rate-limiting</a>)</p> |
39,105,586 | 0 | <p>If it will always be a div, and you know the element's ID:</p> <pre><code>$("#myElement div[data-custom-property]:first") </code></pre> <p>Otherwise, this will work, too, though it's best to be as specific as possible:</p> <pre><code>$("[data-custom-property]:first") </code></pre> |
9,607,180 | 0 | PHP Conditional -- Only Display if a String Has Any Value? <p>I need to display the results of either one or two strings. Each string contains a comma-separated list of items. I need to concatenate them into a single list.</p> <p>I know how to do the concatenation.</p> <p>The issue I have is that sometimes the second s... |
21,426,905 | 0 | <p>Do this:</p> <pre><code>params[:list].each do |hash| hash['id'] # => 3 hash['status'] # => true end </code></pre> |
9,684,565 | 0 | <p>Your best bet appears to be 'CEESITST', as it appears to exist in z/OS COBOL. I found an example using that as well as the other bit manipulation programs.</p> <p><a href="http://esj.com/articles/2000/09/01/callable-service-manipulating-binary-data-at-the-bit-level.aspx" rel="nofollow">http://esj.com/articles/2000/... |
11,330,347 | 1 | Python XML comparison <p>I have 2 files each with a list of items which all have 3 properties. What is the quickest way to compare these files and list the differences, i.e. the items that are not in both files.</p> <p>For the items to be the same, all 3 properties have to agree. Also the files were in XML.</p> |
14,885,885 | 0 | <p>Actually it was straight-forward selenium code:</p> <pre><code>click link="Change..." pause 200 click //ul[contains(@id,'fruit-switcher')]//ul[contains(@class,'dropdown-menu')]/li[3]/a click link="Change..." pause 600 click //ul[contains(@id,'fruit-switcher')]//a[contains(text(),'Bananas')] </code></pre> |
24,646,200 | 0 | <p><code>order by</code> should after <code>where</code> clause</p> <pre><code>"SELECT Products.ProductID, Products.Name, Categories.CatName, " + "Products.Description, Products.Price FROM Products INNER JOIN Categories ON " + "Products.CatID = Categories.CatID " + "WHERE " + column + " LIKE '%" + keyword + "%'"; "ORD... |
37,818,832 | 0 | <p>This may be a pretty simple answer but it really depends on how you structure your data.</p> <p>If there are exactly 100 users at all times and you want everyone from position 65 to position 1, thats easy.</p> <p>Likewise if you want what position user XYZ is, that's also easy.</p> <p>There's also ways to load the ... |
31,551,380 | 0 | <p>You can change the <em>room speed</em> in the room settings, this is the number of steps per second. This property can also be accessed and changed mid-game with the <code>room_speed</code> global.</p> <p>You can also access the actual screen update speed with the <code>fps</code> read-only global. <strong>Note:</s... |
35,244,370 | 0 | <p>If <code>bitarray</code> can't be installed, the 1d solution in <a href="http://stackoverflow.com/questions/35208160/dot-product-in-python-without-numpy">Dot Product in Python without NumPy</a> can be used with the same nested comprehension (<a href="http://stackoverflow.com/a/35241087/901925">http://stackoverflow.... |
3,966,342 | 0 | <p>No, I don't believe there is. In a standard Subversion workflow, it's quite rare to need to type the full URL -- most operations are on an already-checked-out working copy -- and in any case, if you're working with branches and tags, the URL would change between invocations.</p> <p>That's not to say that the idea i... |
35,004,146 | 0 | Referencing a variable in the main function - Java <p>I have written a simple summation function where I add up values of an array. I need to reference the values of the array (which is within the main class) in my function. My code looks like this:</p> <pre><code>public class myClass { public static void main(String[]... |
4,027,476 | 0 | Do disabled Drupal modules affect performance? <p>Does having Drupal modules installed but not enabled have any effect on the performance of a Drupal site?</p> <p>To put it another way.. Would removing disabled modules from a Drupal site have a positive affect on performance?</p> |
3,486,957 | 0 | <p>Can I just add a lesson I learned about 27 years ago: don't try to make your version control numbers align with your product release numbers. That way madness lies.</p> |
17,110,830 | 0 | <p>Not sure it should work actually: Just do some minute checks:</p> <p>1.exclude should be part of class Meta</p> <p>2.make that exclude from tuple to list , (not sure if it helps)</p> <p>3.or instead of exclude try giving fields = (#some fields names, )</p> <p>Hope this works .. </p> |
7,005,135 | 0 | <p>Try to put it with explode into an array and count the values with array_count_values. </p> <pre><code><?php $text = "whatever"; $text_array = explode( ' ', $text); $double_words = array(); for($c = 1; $c < count($text_array); $c++) { $double_words[] = $text_array[$c -1] . ' ' . $text_array[$c]; } $result = a... |
2,708,608 | 0 | <p>You might be able to use <a href="http://msdn.microsoft.com/en-us/library/ms749011.aspx" rel="nofollow noreferrer">Attached Dependency Properties</a> of type AugmentedThickness and then, when they change, update the underlying properties they are intended to update. This requires all access to be performed using yo... |
1,048,888 | 0 | How to update a BindingSource based on a modified DataContext <p>In my application, I extract the Data of a Linq To SQL DataContext into a dictionary for easy use like so:</p> <pre><code>Jobs = dbc.Jobs.ToDictionary(j => j.Id, j => j); </code></pre> <p>Then I bind this dictionary to a BindingSource:</p> <pre><cod... |
31,528,441 | 0 | How to to filter by media subtype using NSPredicate with PHFetchOptions <p>How do I filter by media subtype using <code>NSPredicate</code> with <code>PHFetchOptions</code>? I'm trying to exclude slow mo (high frame rate) and time lapse videos. I keep getting strange results when I try to use the <code>predicate</code> ... |
24,566,261 | 0 | jstree: how to get the id of undetermined state of node <p>I use the jstree('get_selected',false) to get the selected node of my jstree with checkbox plugins, but the result doesn't include the node with undetermined state . How can I get all of the selected node include undetermined ones.</p> <p>the newest version of ... |
34,670,951 | 0 | php bootstrap error with modal <p>I have the below scripts running but once I add a remote file link for the modal, it will not update. </p> <ol> <li>I want to edit from a modal</li> <li>within that modal window, confirm the data was submitted successfully</li> <li>on close, refresh the crud. </li> </ol> <p>Any help wi... |
39,664,746 | 0 | Docker: save - produces no output <p>Fairly new to using Docker..</p> <p>I pulled an image for Oracle 11g Full. Created a DB and installed an application into the container.</p> <p>Once configured correctly, I committed the container which resulted in a 15GB image.</p> <p>Tested a new container of that image, everythin... |
5,420,072 | 0 | <p>Lasso is an interpreted programming language with PHP-like syntax, and a commercial server geared towards database-driven web applications. Its current stable release is 9.2, with 9.3 in development, while the legacy version is also maintained as 8.6. Information about Lasso releases is available at <a href="http:/... |
21,153,543 | 0 | <p>Assuming your puppet master is Puppet Enterprise also, otherwise a PE agent will not work with it.</p> <p>The client needs to know where the puppet master is. Can specify it on the command line with "--server fqdn.of.master" or put it in the agent's puppet.conf file in the main section.</p> <p>I believe you'll find... |
18,541,225 | 0 | <p>You forgot several <code>]</code> in your jQuery selectors at the end</p> <p>Edit: from 'pedu' and down, just add those final braces and that should be all of them.</p> |
35,120,583 | 0 | <p>You are going to require an array formula¹ or <a href="https://support.office.com/en-us/article/sumproduct-function-4e0bffa7-4291-4635-a61f-6aaa9399e7ff" rel="nofollow">SUMPRODUCT</a>, neither of which handles 'thousands of rows' well due to the logrythmic taxation of cyclic processing. Full column references shoul... |
22,997,038 | 0 | <p>You have a space on the end of your variable, and you've set IFS so that it's not being removed as part of word splitting. Here's a simplified test case that exibits your problem:</p> <pre><code>IFS=$'\r\n' value=$(echo "hello - world" | cut -d - -f 1) [ $value = hello ] && echo "works" || echo "fails" </co... |
40,099,477 | 0 | has no member error with Alamofire 4.0 with Swift 3 <p>I have used Alamofire 4.0 in with Swift 3.0 but getting issue with the following code</p> <blockquote> <p>Type 'Method' (aka 'OpaquePointer') has no member 'GET'</p> <p>Type 'Method' (aka 'OpaquePointer') has no member 'PUT'</p> <p>Type 'Method' (aka 'OpaquePointer... |
23,147,907 | 0 | <pre><code>select * from (select id,subject_id FROM table group by subject_id)tempalias where subject_id=1 select * from (select id,subject_id FROM table group by subject_id)tempalias where subject_id=2 </code></pre> |
16,110,595 | 0 | <p>There times that you will use more memory than the 8 MB php has allotted. If your unable to use less memory by making your code more efficient, you might have to increase your available memory. This can be done in two ways.</p> <p>The limit can be set to a global default in php.ini:</p> <pre><code>memory_limit = 32... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.