pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
9,954,869 | 0 | <p>If I understood well, you would like include the code from <code>includefile.php</code> into your test.php ?</p> <p>You can't use include like that, but you should do it like that.</p> <pre><code>file_put_contents($file, file_get_contents('includefile.php'), FILE_APPEND); </code></pre> <p>This will append the conte... |
1,017,873 | 0 | <p>I separated the values by Environment.NewLine and then used a pre tag in html to emulate the effect I was looking for</p> |
10,311,565 | 0 | <p>As I understand the problem this will work:</p> <pre><code>SELECT t.value, t.from_id, t.to_id, t.loop_id FROM MyResults t INNER JOIN ( SELECT From_ID, To_ID, MIN(Value) [Value] FROM MyResults WHERE Loop_ID % 2 = 0 GROUP BY From_ID, To_ID ) MinT ON MinT.From_ID = t.From_ID AND MinT.To_ID = t.To_ID AND MinT.Value = t... |
1,624,454 | 0 | <p>Install an SSH client on you iPhone, e.g. pTerm. I choose this solution for sending the occasional command to an appliance.</p> <p>There is a somewhat half baked recipe on compiling libssh2 for use on the iPhone at:</p> <p><a href="http://sites.google.com/site/olipion/cross-compilation/libssh2" rel="nofollow norefe... |
11,377,999 | 0 | <p>I see that pretty much all the different options have already been laid out in different answers, but instead of commenting on all to give you my impression on what I think you should do, I'll just create an answer myself.</p> <p>Just to be clear on how I understand how the system works: All users can have multiple... |
33,743,362 | 0 | <p>You are experiencing a side-effect from <code>i++</code> which puts you at the mercy of the optimizer which has some leverage as to when to do the increment the way you wrote the code. To be safe, do</p> <pre><code>data[i] = temp[i]; i++; </code></pre> |
22,688,525 | 0 | <p>Have you tried to replace </p> <pre><code>return false; </code></pre> <p>by</p> <pre><code>return true; </code></pre> <p>on your <code>onLongClick(View v)</code> method ? </p> |
35,760,750 | 0 | <p>Thanks to the help of @RenatoMendesFigueiredo, @hasumedic & (the most part) @Cerad, without need of premium plan, I can see the point of this warning and figure it out.</p> <p>In fact, a long time ago, I would make my service extending the <a href="http://api.symfony.com/3.0/Symfony/Component/DependencyInjectio... |
36,071,391 | 0 | <p>I'm surprised you had to ask, since it's basic Javascript, really... </p> <p>Since <code>press</code> is invoked from <code>oToggleButton</code>, the <code>this</code> keyword now holds a reference to <code>oToggleButton</code>, and <strong>not</strong> the controller (hence why the <code>getView()</code> method fa... |
5,270,408 | 0 | <p>Your WHERE clause contains only joins. There are no filters. This means your query needs to consider all the rows in at least one table. From this it follows that your query should execute a FULL TABLE SCAN of at least one of your tables, not an indexed read. A full table scan is the most efficient way of getting a... |
20,816,944 | 0 | <pre><code>perl -ne 'print [ split /\(/ ]->[0]' 8-8TRI.txt ^__ backslash for '(' </code></pre> <p>You don't need array reference, so</p> <pre><code>perl -ne 'print( (split /\(/ )[0] )' 8-8TRI.txt </code></pre> |
26,288,633 | 0 | Tcl file parser for PYTHON <p>I have a .tcl file. </p> <p>Is there any parser available which directly extracts data from .tcl file ? I don't want to use REGEX for this task. Is pyparsing will work for this problem ?</p> <p>I am using Python 2.7 </p> |
25,283,128 | 0 | <p>I would say you try a total clean reinstall/rebuild with cordova. First off all you have to install cordova for that. If you want to know, how to get started with that you should have a look into the cordova documentation: <a href="http://cordova.apache.org/docs/en/3.5.0/guide_cli_index.md.html#The%20Command-Line%2... |
15,091,724 | 0 | In jQuery SVG why do coordinates not work as expected <p>I load two images in jQuery SVG using the code:</p> <pre><code>svg.image(0, 0, 330, 540, 'images/img1.jpg', {id: 'img'}); svg.image(0, 0, 330, 540, 'images/iPhone5png.png', {id: 'imgphone'}); </code></pre> <p>After the images are loaded it looks like this:</p> <p... |
25,552,324 | 0 | <p>git prevents you from altering your working directory in a way that overwrites local changes (e.g. in case of a checkout).</p> <p>Since your checkout went smooth, it simply means that the local changes were not overwritten by it, so there's no need to worry. You're still in a consistent state.</p> <p>Were you switc... |
25,459,070 | 0 | Why does MySQL keeps prompting me for undeclared password? <p>i am new to this so please go easy on me :-). i searched the net and this site for answers but was unable to find anything similar, or its because my knowledge is only limited.</p> <p>I installed MySQL workbench, that was okay. Open the program and created a... |
19,944,383 | 0 | <p>If you always want to do a lookup on the string after the first space, then maybe you don't want to use an ArrayList</p> <p>Maybe you should use a <code>Map<String, String></code> of product, full name e.g. <code>"S4", "Samsung S4"</code> Then lookups will be much faster.</p> |
38,395,747 | 0 | Bootstrap same height cards within cols <p>With Bootstrap 3.3.6 I want to make 3 cards.</p> <pre><code><div class="row"> <div class="col-md-4"> <div class="card"> <p>Some dummy text here</p> <button>Click Here</button> </div> </div> <div class="col-md-4"> <... |
31,938,109 | 0 | Matter.js Gravity Point <p>Is it possible to create a single gravity / force point in matter.js that is at the center of x/y coordinates?</p> <p>I have managed to do it with d3.js but wanted to enquire about matter.js as it has the ability to use multiple polyshapes.</p> <p><a href="http://bl.ocks.org/mbostock/1021841"... |
28,798,893 | 0 | <p>Rather than retrieving the <code>id</code> of the first <code>.link</code> element within the <code>mouseover</code> event listener, you need to get the <code>id</code> of the element you are mousing over.</p> <p>Within the event listener, <code>this</code> refers to the element that is currently being moused over,... |
13,793,359 | 0 | <p>You can't disable cookies only on your web browser control. The control is essentially an embedded Internet Explorer and shares the user's Internet Explorer settings. If you don't mind blocking cookies on all other instances of Internet Explorer (maybe you use Chrome or Firefox for the rest of your browsing) you ca... |
7,522,492 | 0 | <p>This should do the trick:</p> <pre><code>$ps_albums.children('div').bind('click',function(){ var album_name = $(this).find('img').attr('src').split('/')[1]; }); </code></pre> |
40,318,479 | 0 | <p>First of all you will need to install some dependencies: matplotlib and numpy.</p> <p>The first option is to use matplotlib animation like in this example:</p> <pre><code>import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation def update_line(num, data, line): line.set_data(data[... |
20,768,336 | 0 | <p>Have you tried <code>getRelatedEntities()</code> instead of <code>getRelatedEntity()</code>. From your explanation I understand that A has a collection of B, so try</p> <p><code>List<OEntity> bsOEntities = a.getLink("bs", OLink.class).getRelatedEntities();</code></p> <p>It works for me.</p> |
4,422,474 | 0 | <p>I did something similar with what you want few months (years?) ago. Take a look <a href="http://iamntz.com/experiments/dSlide/" rel="nofollow">here</a>. Is just a proof of concept, but i guess is still a good start.</p> |
3,425,010 | 0 | Should I use `while (true)` or `for (;;)` (in languages that support both)? <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2288856/when-implementing-an-infinite-loop-is-there-a-difference-in-using-while1-vs-fo">When implementing an infinite loop, is there a differen... |
5,268,875 | 0 | Is it a waste of time to use "Build Automatically" option for Java projects in Eclipse? <p>I'm developing J2EE webapps in Eclipse (RAD, actually). I've always used the "Project > Build automatically" option. However, I noticed that this isn't always necessary because Eclipse seems to push out changes to my server when ... |
9,533,643 | 0 | <p>Try using <a href="http://mvcgrabbag.codeplex.com/" rel="nofollow">MVCGrabBag</a>. It has a common code base for all the inputs. It uses enums and a bit of a different style in terms of getting it to work. But once you get your head wrapped around the basics you will not be disappointed. All you do is do a <code>@H... |
27,829,864 | 0 | <p>Your are asking the wrong question, so any answer we will give is also going to be wrong. </p> <p>You are asking how to more effectively use the tool you have (SQL Server) to solve an unspecified problem.</p> <p>The "job to be done" may be more easily solved with some other tool or a completely different design.</p... |
40,517,894 | 0 | <p>I would recommend against following the push paradigm that is suggested above and switch to the pull paradigm. The purpose of AWSIdentityProviderManager is to prompt you for a token only when the SDK needs it, not for you to set it externally periodically whether the SDK needs it or not. This way you don't have to ... |
8,575,093 | 0 | Auto refresh script in command line <p>I'm using the command line to execute my php scripts instead of executing them in the browser, so I can look for errors a bit quicker. For browser there are some auto-refresh applications/plugins, so you don't have to hit CMD+R all the time. </p> <p>For my error log I can use the ... |
994,661 | 0 | <p>By the way, Grails have its data persistence build on top of Hibernate. How do you think JDO would help you in something Hibernate will not? I don't see why one would choose JDO over the default. </p> <p>As far as JPA is concerned, I would recommend you to use JPA, Hibernate implementation of JPA which comes handy ... |
7,323,715 | 0 | <p>No. A generator is not asynchronous. This isn't multiprocessing. </p> <p>If you want to avoid waiting for the calculation, you should use the <code>multiprocessing</code> package so that an independent process can do your expensive calculation.</p> <p>You want a separate process which is calculating and enqueueing ... |
1,749,629 | 0 | <p>In <em>single dispatch</em> the function executed depends on just the object type. In <em>double dispatch</em> the function executed depends on the object type and a parameter. </p> <p>In the following example, the function <code>Area()</code> is invoked using single dispatch, and <code>Intersect()</code> relies on... |
25,976,872 | 0 | <p>to respond with you'll have to do somethiing liek this:</p> <pre><code>format.json do render json: { booking_attr: @booking.attr, booking_second_attr: @booking_second_attr, id: @booking.id } end end </code></pre> |
35,480,180 | 0 | <p>You can use <a href="https://docs.datastax.com/en/cql/3.3/cql/cql_reference/timeuuid_functions_r.html" rel="nofollow">toDate() functions</a> that are builded inside Cassandra</p> <p>For example <code>SELECT toDate(columTimeUUID) FROM YourTable</code> will give you a date formated as : <code>YYYY-MM-DD</code></p> <p... |
16,594,155 | 0 | How to pass parameters in proper manner in C#? <p>I have stored procedure as below:</p> <pre><code>ALTER PROCEDURE [dbo].[Insert_tblCustomer] -- Add the parameters for the stored procedure here @Username varchar(20) = null, @Password varchar(20)= null, @UserType varchar(20)='User', @FirstName varchar(50)=null, @LastNam... |
29,838,931 | 0 | AWS iOS SDK TLS Support <p>Related Question: <a href="http://stackoverflow.com/questions/29656452/aws-s3-disabling-sslv3-support">AWS S3 Disabling SSLv3 Support</a></p> <p>This is more of an inquiry for the mobile iOS SDK. Wondering what I have to do or where to start since am a bit clueless. </p> <p>Also just received... |
9,190,487 | 0 | <p>It is used to inform the compiler to disable C++ name mangling for the functions defined within the braces. <a href="http://en.wikipedia.org/wiki/Name_mangling" rel="nofollow">http://en.wikipedia.org/wiki/Name_mangling</a></p> |
7,646,493 | 0 | <p>The compiler is picking the <code>IEnumerator<int> GetEnumerator</code> method by following the rules in 8.8.4 of the C# language specification which <em>first</em> looks for an accessible <code>GetEnumerator()</code> method on the <code>BarList</code> type. The only one of those which is available is the one... |
2,865,363 | 0 | Zend Framework - Not Connecting to IMAP mail server - instead dumps empty php file <p>Hi guys I'm trying to connect to an imap mail server using zend frameworks Zend_Mail_Storage_Imap function. Its working with some accounts but with most accounts it just dies out. I'm connecting using:</p> <pre><code>$mail = new Zend_... |
3,172,886 | 0 | <p>Views bulk operations and exposed filters can solve this problem for you. Normally you use it to create a customized node view, but the same principal can be used for users. </p> |
34,645,326 | 1 | Selenium test works in local machine, but fails on Jenkins <p>My test works just fine on my machine. However, on Jenkins, I have the following error:</p> <pre><code>Traceback (most recent call last): File "/var/lib/jenkins/jobs/twist-press-ricardo-fork/workspace/.env/local/lib/python2.7/site-packages/django/test/utils.... |
27,711,510 | 0 | <p>with 3.x ... use the name property of CCNode to your advantage.</p> <pre><code>-(void)createNewCactus { CCSprite *newCactus = [CCSprite spriteWithImageNamed:@"cactusclipart.png"]; [newCactus setScale:0.25]; newCactus.name = @"cactusclipart.png"; if (cactiCount <= 21) { cactiCount++; if (cactiCount < 7) [newCa... |
19,932,083 | 0 | <p>Perhaps the confusion is between a variable and a field. A field is a property that is associated with an object. A variable exists only in the context of a method. When the method finishes, the variable vanishes.</p> <p>A field, on the other hand, looks exactly the same as a variable except that a field is declare... |
27,831,535 | 0 | <p>I believe that the way 'iisnode' works is that it intercepts requests for files with ".js" extension. I do not think it can be set up to run same way as you would run it using <code>node</code> or <code>nodemon</code>.</p> <p>In my case I set up a production Node.js server with IIS by doing the following:</p> <ol> ... |
9,298,524 | 0 | <p>Look into <a href="http://ncalc.codeplex.com/">nCalc</a>.</p> <p>You could store your calculations in a database field then simply execute them on demand. Pretty simple and powerful. We are using this in a multi-tenant environment to help with similar types of customization. </p> |
3,653,522 | 0 | zpt xml-schema definition <p>Where can i find xml-schema definition for ZPT attribute language?</p> |
2,678,085 | 0 | <p>The entry is completely optional, but the bug you are pointing to is related to compilation, not runtime, so it is highly unlikely that this is the problem.</p> <p>Application Servers are often very file hungry, and if nothing has been done to increase the limit of open files, the default may not be high enough.</p... |
15,289,516 | 0 | <p>Session is a good way to store and remember data but why complicate things? Consider if the form has many fields, developer has to store lots of values in session. Why not simply print or echo.</p> <p>Example:</p> <p>Form is submitted with input ssName and hidden field ssAct with value of send</p> <p>Get the ssName... |
7,379,017 | 0 | <p>Humans.</p> <p>You want to improve readability, and since readability is mostly a human thing it should be taught by a human.</p> <p>Ask more experienced developers to review your expressions and give tips.</p> <p>For example, see my answer here: <a href="http://stackoverflow.com/questions/5924611/what-is-the-best-... |
24,769,785 | 0 | More efficient way of running multiple update queries on an Access database? <p>I have multiple queries like this right now which involve updating different fields of the same row in an Access database:</p> <pre><code>//Update database string updatequery = "UPDATE [table] SET [Last10Attempts] = ? WHERE id = ?"; OleDbCo... |
34,594,701 | 0 | delete section at indexPath swift <p>I have an array which populates a table view - myPosts.</p> <p>The first row of the table view is not part of the array.</p> <p>Each row is its own section (with its own custom footer)</p> <p>I am trying to perform a delete with the following code:</p> <pre><code> func tableView(pro... |
20,876,239 | 0 | <p>The setInterval executes after the function is run, by which point i has incremented to 4. You should create a closure over the element to preserve it</p> <pre><code>setInterval(runnable(elements[i], text, target_date), 1000); // also pass target_date since it is needed function runnable(el, text, target_date) { re... |
6,345,513 | 0 | <p>I have modified little bit your <code>encodeIcon()</code>. Now its working fine. it is having the actual image</p> <pre><code>public static void encodeIcon(Drawable icon){ String appIcon64 = new String(); Drawable ic = icon; if(ic !=null){ ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); // bitmap.... |
22,419,730 | 0 | <p>If I understood your question correctly then you need to use <code>scroll:1</code> instead of <code>scroll:true</code>, Which will not disable scroll bar, but it will solve your issue.</p> |
10,809,728 | 0 | Backbone Marionette CompositeView "Event Zombie" <p>I have a fairly simple table created using a Backbone Marionette CompositeView. The only requirements on this table are that it display data and allow the user to sort it by clicking the header row. When the table is sorted, the columns used to sort the header column ... |
17,346,620 | 0 | <p>PHP is a server-side language and you won't be able to load it up in a web browser just like that. You'll have to use a web server, like <a href="http://www.wampserver.com/en/" rel="nofollow">WAMP</a> or <a href="http://www.apachefriends.org/en/xampp.html" rel="nofollow">XAMPP</a> for example.</p> <p>Make sure of t... |
7,932,272 | 0 | Could these patterns be matched by regular expression or context free grammar? <p>This is an exercise of compiler. We are asked if it's possible to match the following patterns with regular expression or context free grammar:</p> <ol> <li>n 'a' followed by n 'b', like 'aabb'</li> <li>palindrome, like 'abbccbba'</li> <l... |
39,307,989 | 0 | <p><strong>1.</strong> Your function signature takes 3 arguments, and you only supply 1. How it compiles, I do not know, as I don't think it should. </p> <p><strong>2.</strong> The <code>CalculateAirTime</code> function prints a variable before calculating it. You first do this: <code>printf("Total air time: %f\n", ti... |
39,182,338 | 0 | <p>You cannot use <code>$this</code> as this is an explicit reserved variable for the class inside reference to the class instance itself. Make a copy to <code>$this</code> and then pass it to the <code>use</code> language construct.</p> <pre><code>class Foo { var $callbacks = array(); function __construct() { $class ... |
13,732,018 | 0 | Java Thread interrupt(). Is it normal exception? <p>I am starting my Thread like this: </p> <pre><code>public void startTask(Runnable r) { running = true; Log.i(tag, "-----------start.Runnable-----------"); final Thread first = new Thread(r); currentTask = first; first.start(); Thread second = new Thread(new Runnable()... |
4,411,065 | 0 | <p><code>ShellExecute</code> or <code>CreateProcess</code> should be able to open link file. If they can't find the associated file and/or the program, you can always use those API and delegate the hard work to "cmd start" or "explorer". E.g. <code>ShellExecute(0, "open", "explorer", linkfile, 0, SW_SHOW);</code></p> |
4,322,916 | 0 | <p>No, null values are not set to the default, as null is itself a valid value for a variable or field in SQL.</p> <p>To ensure a parameter gets its default value, do not pass in the parameter at all. So for your proc:</p> <pre><code>-- @myVar will get default EXEC TestVarcharMaxIsNull -- @myVar will be null EXEC Test... |
35,408,345 | 0 | Need advice to choose graph database <p>I'm looking for options for graph database to be used in a project. I expect to have ~100000 writes (vertix + edge) per day. And much less reads (several times per hour). The most frequent query takes 2 edges depth tracing that I expect to return ~10-20 result nodes. I don't have... |
22,755,488 | 0 | Best way to store ROE in C# <p>I want to save Rate of Exchange of all currencies corresponding different base currency. What is the best and efficient type or struct to save the same. Currently i am using</p> <pre><code>Dictionary<string, Dictionary<string, decimal>>(); </code></pre> <p>Thanks in advance. P... |
16,255,864 | 0 | uncrustify adds space between double-paranthesis (C/Objective-C) <p>I'm having a very peculiar issue with uncrustify (v0.60) that no option seems to affect. The issue only occurs when there are parenthesis enclosed within parenthesis:</p> <pre><code>// from a C header file: #define BEGIN_STACK_MODIFY(L) int __index = l... |
5,825,887 | 0 | <p>Try setting it on the NSTextView's layer, not the NSTextView itself.</p> <pre><code>[[myTextView layer] setCornerRadius:10.0f]; </code></pre> |
20,329,948 | 0 | Inset a new field in an array of sub-document <p>I have the following schema:</p> <pre><code>{ "name" : "MyName", "actions" : [{ "kind" : "kind1", "result" : "result1" }, { "kind":"kind1", "result":"result1" } ] } </code></pre> <p>I want to insert a new field called 'expected' in different subdocument in actions. I tri... |
20,836,263 | 0 | <pre><code>if __name__ == "__main__": MLL = LinkedList() LL1 = LinkedList() LL2 = LinkedList() array_list1 = [2, 4, 5, 7, 11, 12, 15, 20] array_list2 = [3, 6, 9, 10] for p in array_list1: LL1.addElement(p) for q in array_list2: LL2.addElement(q) cur_node_l1 = LL1.Head cur_node_l2 = LL2.Head cur_node = MLL.Head; while(... |
18,617,150 | 0 | why does this output hex rather than a sentence? connector/c++ <p>I was expecting to see a short english sentence as output but i see hex value of it instread. I cannot find any information on this getblob function but i hear its what should be used for varchar columns. Before i used getString and it crashes the app, i... |
23,560,397 | 0 | <p>Simply: </p> <pre><code>rerun --pattern '{Gemfile.lock,config/application.rb,config/environment.rb,config/environments/development.rb,config/initializers/*.rb,lib/**/*.rb,config/**/*.yml}' --no-growl --signal INT --background --clear -- rails s </code></pre> <p>won't work?</p> |
17,095,480 | 0 | Get Host of HttpResponseMessage in Windows Store App <p>I have a Windows Store App (C#) where I am sending a HttpRequest and I want to check if the response I am getting is from a Captive/Limited Access Network or from the actual host specified in the HttpRequest. </p> <p>So lets say I am sending a request to www.serve... |
34,820,819 | 0 | Unable to remove index.php in Codeigniter <p>I want to remove index.php to access my controllers directly. However, I cannot directly go my controller. I have to use index.php. For example: I want to go <a href="http://example.com/my_controller/method" rel="nofollow">http://example.com/my_controller/method</a> instead ... |
36,399,800 | 0 | How can I make a TimerJob going to retrieve the users present in the AD? <p>what I want to do is retrieve users from AD , and update an address book on SharePoint Server 2013. thanks</p> |
3,785,883 | 0 | <p><code>StringBuffer</code> - introduced in JDK 1.0 - is thread safe (all of its methods are <code>synchronized</code>), while <code>StringBuilder</code> - since JDK 1.5 - is not. Thus it is recommended to use the latter under normal circumstances.</p> <p><code>StringTokenizer</code> is meant for a whole different pu... |
1,138,262 | 0 | <p>Hard to say.</p> <ul> <li>Massive parallel queries?</li> <li>Thousands of small ones?</li> <li>OLTP or warehouse?</li> <li>CPU or IO or Memory bound?</li> <li>Server hardware and settings? MAXDOP, RAID etc</li> <li>Same set of data? (in buffer pool or lots of churning of in-memory data)</li> </ul> <p>We have 100 mi... |
6,874,494 | 0 | Calling a living object from one Process while running in another Process <p>Not really sure how to ask this question because I really don't know what I'm talking about. I have two DLLs (.NET), each is an AddIn that runs in two different application processes i.e. application one loads DLL one and application two loads... |
20,216,083 | 0 | <p>Use <strong>String</strong> replaceAll method with following pattern:</p> <p><strong>Pattern</strong></p> <pre><code>(?<=\.).*(?=\?) </code></pre> <p><strong>Code</strong></p> <pre><code>String s = "blah.t!@Z8-st?asdas"; System.out.println(s.ReplaceAll("(?<=\\.).*(?=\\?)", "")); </code></pre> |
725,060 | 0 | <p>Does it have to be an actual enum? How about using a <code>Dictionary<string,int></code> instead?</p> <p>for example </p> <pre><code>Dictionary<string, int> MyEnum = new Dictionary(){{"One", 1}, {"Two", 2}}; Console.WriteLine(MyEnum["One"]); </code></pre> |
22,736,726 | 0 | <p>I tested the following methods for 10M strings to count "," symbol.</p> <pre><code>// split a string by "," public static int nof1(String s) { int n = 0; if (s.indexOf(',') > -1) n = s.split(",").length - 1; return n; } // end method nof1 // count "," using char[] public static int nof2(String s) { char[] C = s.... |
33,268,121 | 0 | Font formatting performance in Excel 2007 <p>I have macro which sets font for whole range to size 9:</p> <pre><code>Range("A1:Z20000").Font.Size = 9 </code></pre> <p>When I run it on Excel 2010 or 2013 it takes approximately 1 second to process (there's almost no formatting on range). But when I run it on Excel 2007 it... |
9,315,982 | 0 | Java Swing: Changing border width/height on BorderLayout <p>I am a newbie to Java Swing. I am trying to make a frame containing three buttons; one in the center, another on the top, and the last one on the right. I want to make the NORTH and EAST borders the same width. But right now, the EAST border is wider than the ... |
34,386,337 | 0 | Documenting Spring's login/logout API in Swagger <p>I am developing demo REST service using <code>Spring Boot</code> where user has to login in order to to perform certain subset of operations. After adding <code>Swagger UI</code> (using <code>springfox</code> library) with that simple configuration:</p> <pre><code>@Be... |
34,351,478 | 0 | <p>I now did it with unbinding the function on 'a's.</p> <pre><code>$('a').hover( function () { $('#tooltip').hide().addClass("hover"); ... </code></pre> <p>and</p> <pre><code>$("body").on( "click", function() { .... }); $("a").click(function() { $("body").off("click"); }); </code></pre> |
32,801,723 | 0 | <p>Running JavaScript on backend requires NodeJS runtime environment. Download it here <a href="https://nodejs.org/en/" rel="nofollow">https://nodejs.org/en/</a></p> <p>Alternatively you can can configure an instance on Heroku and run your application there. But I would suggest to try the first one.</p> |
23,157,933 | 0 | Scala Override Return Type <p>I have a task in which I need to override the return type of a method. The problem is the method is called yet the return type is not overridden. Please help!</p> <pre><code>abstract class Parser { type T1 <: Any; def test1(): T1; type T2 <: String; def test2(): T2; } //class path: p... |
38,350,373 | 0 | <p>If I understand correctly, the behavior you want is to drop each of your columns market with class="col" into a row, when your media query for small screens comes into effect.</p> <p>First of all, Outlook will strip out all in-line styling (as you noticed using F12), so best to double that up using the equivalent h... |
1,285,100 | 0 | <p>You can alter the temp path for the XMLSerializer explicitly without having to change the environment variables for the machine. To do this, put </p> <pre><code><xmlSerializer tempFilesLocation="c:\\newTemp"/> </code></pre> <p>in you app.config file. </p> <p>Scott Hanselman has an article entitled "<a href="h... |
7,235,961 | 0 | <p>You can have multiple programs in a shader, but not the other way around.</p> <p>To make multiple combinations, the easiest way is to store each major chunk as a fragment with a named entry point, then include them from another program or combine them at runtime into a single program, calling them in the order you ... |
18,169,635 | 0 | <p>jBilling has both installation guides (for <a href="http://www.jbilling.com/documentation/users/installation/windows" rel="nofollow">windows</a> and for <a href="http://www.jbilling.com/documentation/users/installation/mac-linux" rel="nofollow">mac/linux</a>) and a <a href="http://www.jbilling.com/documentation/use... |
9,959,678 | 0 | <p>Try the following:</p> <pre><code>return int(float(value) / float(total) * 100.0) </code></pre> <p>to ensure that both value and total are float. This way strings could be passed in and still get a proper answer.</p> |
5,503,463 | 0 | <p>Dates and times in Excel are stored as floating point numbers. Dates are days since 1900 (a date of 1 is 01/01/1900), and times are fractions of a day (so 0.5 is 12 hours).</p> <p>Depending on what format you need the value to be in before you put it in a database, then you might just want to take the numeric value... |
33,205,298 | 0 | How to use Powershell to download a script file then execute it with passing in arguments? <p>I usually have this command to run some powershell script:</p> <p><code>& ".\NuGet\NuGet Package and Publish.ps1" -Version $env:appveyor_build_version -NuGet "C:\Tools\NuGet\nuget.exe" -apiKey $env:apiKey</code></p> <p>wor... |
24,817,352 | 0 | <p>Redirect the output to <code>/dev/null</code>:</p> <pre><code>if pmset -g | grep pre >/dev/null 2>&1 ; then pmset -g | grep pre | cut -d'(' -f2 | cut -d')' -f1 else printf "Nothing\n" fi </code></pre> |
8,295,816 | 0 | How to Create an excel dropdown list that displays text with a numeric hidden value <p>I am trying to create a drop down list that displays text with a hidden numerical value attached. Then I will have a standard formula on the same row that calculates a value based upon the hidden value selected.</p> |
38,586,495 | 0 | ubuntu 16.04 rails 5 passenger nginx, node.js don't work as javascript runtime <p>Hy there, I'm working ours and don't find the solution.</p> <p>When I'm starting rails 5 with puma on ubuntu 16.04 in development mode, everything works fine, node.js works as JavaScript runtime.</p> <p>But when im starting the same appli... |
23,368,691 | 0 | <p><code>var secondCharFromTheLeft = packageAData[1];</code></p> <p>He asked how to get the second char, that gives the second element in the array, not much more you can say about it.</p> |
11,792,203 | 0 | <p>Like written in the comment. This just seemed to be a <em>random</em> phenomenon.</p> |
25,249,191 | 0 | For Each Row in Range - Incorrect Row Iteration <p>I'm creating a single-column index file from multi-row/-cell source data in Excel. I have two worksheets - a source and destination - in a single workbook. Iterating through each row (11 in dev, ~15,000 in prod) of the source worksheet the <code>For Each</code> loop I ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.