pid
int64
2.28k
41.1M
label
int64
0
1
text
stringlengths
1
28.3k
19,490,989
0
ASP.NET WebForms with Angular Postback <p>im trying to use Angular framework in existing ASP.NET WebForms application and problem i ran into is this:</p> <p>Client side code:</p> <pre><code>&lt;select id="fooSelect" class="span8" runat="server" clientidmode="Static"&gt; &lt;option ng-repeat="foo in foos" value="{{foo.I...
39,582,650
0
How do I bind alpaca.js to an existing HTML form <p>I have an existing form in plain HTML with a lot of css and layout tweaks. I'm trying to figure out if I can use alpaca.js without the rendering step but still get the full power of the schema and validation capabilities. I looked at Views, Layouts, Templates, etc. wi...
29,048,621
0
android app data not appearing on parse dashboard <p>I'm trying to make a new social app. I went parse.com and made a new app. downloaded the zip file and opened it in the android studio. after that i initialized my keys and compiled the code. It gave no errors and loaded the app on the emulator. Then i added the code ...
39,681,101
1
Text arbitrarily not reading into buffer <p>I'm trying to analyze philosophical and classic texts with the Watson Alchemy API, I'm having trouble with reading texts from a .txt file on my computer to a python variable.</p> <p>Here is the code:</p> <pre><code>from __future__ import print_function from alchemyapi import ...
25,074,763
0
Docker container get Host IP address <p>How do I get the Host IP address within an Java application running inside a Docker?</p> <p>Obviously, if I use the traditional InetAddress.getLocalHost(), it works if the Java program runs directly on the Host. However, if it is running inside a container, then it would not be t...
18,251,594
0
<p>You need to add a column, e.g. "label" to the node import file, and give numbers according to how you want to "group the nodes into one color". And then you can select to color the nodes via your new column.</p>
30,675,367
0
<p>The best way to do this is my using the <code>set()</code> function like this:</p> <pre><code>x=['a','b','a','b','c','d'] print list(set(x)) </code></pre> <p>As the <code>set()</code> function returns an unordered result. Using the <code>sorted()</code> function, this problem can be solved like so:</p> <pre><code>x...
36,524,642
0
<pre><code>while( someOuterLoopCondition ) { var m = 0; var innerLoopOK = true; while( innerLoopOK ) { try { // your original inner-loop body goes here } catch e { innerLoopOK = false; } m++; } } </code></pre> <p>Or:</p> <pre><code>while( someOuterLoopCondition ) { for( var m = 0; m &lt; upperBound; m++ ) { try { // y...
11,147,440
0
<p>In the C++ code you are translating to C#, look for a macro definition or inline function definition for <code>SIGN</code>. The definition should spell out exactly how you should implement it in C#.</p> <p>If I had to guess from the name, <code>SIGN(x,y)</code> returns true if <code>x</code> and <code>y</code> have...
1,062,289
0
<p>Got it.<br> 1-Go to design view of your table.<br> 2-select the look-up tab bellow the field list.<br> 3-Change row source type to "values".</p>
34,122,801
0
<p>I think this is what you want:</p> <pre><code>dat[ , `:=`(var1 = var[1L], var2 = var2[1L]), by = .(id, year)] </code></pre> <p>As a function you'd have to do something like:</p> <pre><code>fn_const &lt;- function(data, id, year, constant){ data[ , (constant) := .SD[1L], by = c(id, year), .SDcols = constant] data } ...
12,529,450
0
validation for models in ruby on rails <p>I have a model:</p> <pre><code>class HelloRails &lt; ActiveRecord::Base attr_accessible :filename, :filevalidate include In4systemsModelCommon validates :filename, presence: true def update parameters = [self.filename, @current_user] parameters.map!{|p| ActiveRecord::Base.conne...
36,635,821
0
<p>Ok, on your second question, exporting and importing passwords, the encryption is done per user (and I'm pretty sure per machine), so you can't export it, and then have another account import it, but for just straight saving an encrypted password you can use these functions:</p> <pre><code>Function Out-EncryptedPas...
5,149,574
0
Deploy two connected webparts in a page layout during feature activation? <p>I've implemented 2 webparts (deriving from Microsoft.SharePoint.WebPartPages.WebPart, the WSS 3 WebPart), one of which is a provider and the other the consumer (implementing ASP.net connection model, with <em>ConnectionProviderAttribute</em> a...
23,132,430
0
<p>Could it be something simple like this:</p> <pre><code> query = em.createNativeQuery("SELECT state_id, state_name, country_id FROM state_table,country WHERE state_table.country_id=country.country_id and country.country_name = ?1)").setParameter(1, country_name); list = (List&lt;Object&gt;) query.getResultList(); </...
25,405,010
0
Getting the current call stack from a different thread <p>In a multiple thread situation, is it possible to get the call stack at the current moment inside some thread <code>t1</code> from another thread <code>t2</code> running outside of <code>t1</code>? If so, how?</p> <p><hr></p> <h3>Response to Stefan:</h3> <p>I tr...
6,292,749
0
Rails: Can't run DB Rake on OS X 10.6 because gem SQL lite cannot be found <p>Here's my error message when I do a DB rake:</p> <blockquote> <p>Could not find gem 'sqlite3 (>= 0)' in any of the gem sources listed in your Gemfile.</p> </blockquote> <p>I've tried Installing xCode 4.0.2</p> <p>Commands: </p> <pre><code>sud...
40,403,922
0
ionic2 - change font attribute of .loadcontent <p>I am using <code>LoadingController</code> to manage the loading page. Below is my code:</p> <pre><code>presentLoadingCustom() { let loading = this.loadingCtrl.create({ spinner: 'hide', content: ` &lt;div padding&gt; &lt;div class="loadingheader"&gt;processing...&lt;/div...
16,921,721
0
<p>Your solution is not so bad. The queuing of the HTTP requests is really a standard thing to do, so that should not be a big problem. </p> <p>Just do <em>not</em> use the objectIDs on your server. They are really unique to the database on one particular device. Their main purpose is to identify managed objects acros...
19,664,291
0
<p>Something like:</p> <pre><code>SELECT col1, col2, col3 FROM ( SELECT *,1 AS SortCol FROM tbl_post WHERE paid_until &gt;= :time_stamp UNION SELECT *,2 AS SortCol FROM tbl_post WHERE paid_until &lt; :time_stamp )AS sub ORDER BY SortCol, modified DESC </code></pre>
31,954,787
0
ngAnimate doesn't work with ngShow/ngHide: ng-hide-add and ng-hide-remove classes are not generated <p>I am trying to animate the ng-hide/ng-show directive and for some reasons none of the ng-hide-add*/ng-hide-remove* classes are not generated. ng-animate class is not generated as well. I do have the 'ngAnimate' as a d...
9,107,856
0
Problems with svd in java <p>I have gone through jama and colt(I code in java) . Both of them expect me to use arrays such that the number of rows are more than the number of coloumns . </p> <p>But in case of the Latent semantic analysis (LSA) i have 5 books and there are a total of 1000 odd words . When i use a term d...
20,620,272
0
how to retrieve codeigniter's cookie using javascript? <p>In my codeigniter's controller I have the following code:</p> <pre><code>$cookie = array( 'name' =&gt; 'my_name', 'value' =&gt; 'my value goes here' ); $this-&gt;input-&gt;set_cookie($cookie); </code></pre> <p>However, when I tried to retrieve the cookie using j...
24,067,521
0
<p>The origin should be half the width and height of the item that you're rotating if you wish to rotate it about its centre. Note that the dot is not the true origin; I've tweaked your code a bit:</p> <pre><code>import QtQuick 2.0 Rectangle { id: dial width: 360 height: 360 color: "gray" Rectangle { id: dot height: 5...
31,135,595
0
<p>Adding <code>Message.framework</code> to your project and Get <code>IMEI</code> Number,</p> <pre><code>NetworkController *ntc = [NetworkController sharedInstance]; NSString *imeistring = [ntc IMEI]; </code></pre> <p>Apple allow some of the details of device, Not give IMEI, serial Number. in <code>UIDevice</code> cl...
4,366,388
0
Persisting the table name in codeigniter models <p>In my models I'm setting them up using constructors like the following</p> <pre><code>function Areas() { parent::Model(); $this-&gt;db-&gt;from("areas"); } </code></pre> <p>However, if a method of my model queries the database several times it looks like the FROM claus...
8,894,192
0
<p>Please <a href="http://www.jetbrains.com/ruby/webhelp/ruby-gems-support.html" rel="nofollow">refer to help</a>. You need Gemfile with the used gems listed in it for RubyMine to recognize the dependencies.</p>
16,649,375
0
<p>Figured it out, think I have been multiplying by 1000 when I shouldn't have, the following works</p> <pre><code>var offset = (int)Math.Floor(buffer.WaveFormat.SampleRate * barDuration / 128) * 128 * bar; </code></pre>
12,937,848
0
<p>Well you said without redirecting. Well its a javascript code:</p> <pre><code>&lt;a href="JavaScript:void(0);" onclick="function()"&gt;Whatever!&lt;/a&gt; &lt;script type="text/javascript"&gt; function confirm_delete() { var delete_confirmed=confirm("Are you sure you want to delete this file?"); if (delete_confirme...
13,877,208
0
How to go about multithreading with "priority"? <p>I have multiple threads processing multiple files in the background, while the program is idle.<br> To improve disk throughput, I use critical sections to ensure that no two threads ever use the same <em>disk</em> simultaneously.</p> <p>The (pseudo-)code looks somethin...
9,002,367
0
<p><code>AttachDbFilename</code> is used with local database. If you have remote database then the connection string will <a href="http://www.connectionstrings.com/sql-server-2008" rel="nofollow">be different</a>. Have a look at article - <a href="http://support.microsoft.com/kb/914277" rel="nofollow">How to configure...
11,283,881
0
Backbone.js: Best way to handle multiple nullable filter parameters <p>have the following function on my <strong>collection</strong>:</p> <pre><code>getFiltered: function (status, city) { return this.filter(function (trainer) { return ((status === null) ? trainer : trainer.get("TrainerStatusName") === status) &amp;&amp...
11,146,431
0
<p>The null in most programming languages is considered "known", while NULL in SQL is considered "unknown".</p> <ul> <li>So <code>X == null</code> compares X with a known value and the result is known (true or false).</li> <li>But <code>X = NULL</code> compares X with an unknown value and the result is unknown (i.e. N...
16,467,473
0
<p>Yes, use the <a href="https://github.com/caolan/async#control-flow" rel="nofollow">async</a> library. It's awesome for doing this sort of thing.</p> <p>If you need to do one map and then pass the results to the next function then you need to look at <a href="https://github.com/caolan/async#waterfall" rel="nofollow"...
12,872,568
0
<p>For a perfect effect you will need to do 2 things. Assuming you used Image class to render it, first, is to put the same image bellowthe original one and use the scaleY to flip it vertically.</p> <p>this will create reflection effect, but you will need to apply same things that you applied to first image to the sec...
20,277,336
0
How to check a folder exists in DropBox using DropNet <p>I'm programming an app that interact with dropbox by use DropNet API. I want to check if the folder is exist or not on dropbox in order to I will create one and upload file on it after that. Everything seen fine but if my folder is exist it throw exception. Like ...
35,174,852
0
How to get rows and count of rows simultaneously <p>I have a stored procedure that returns <code>rows</code> and <code>count</code> simultaneously.</p> <p>I tried following <code>ADO.net</code> code but I get <code>IndexOutOfRange</code> Exception on ItemCount(ItemCount contains <code>count</code> of rows)</p> <pre><co...
6,492,838
0
Generate two object files from the same source file in scons <p>Does scons allow to rename the result of Object('foo.cpp') along the lines of</p> <pre><code> o1 = env1.Object('src/foo.cpp', targetname='bar.o') o2 = env2.Object('src/foo.cpp', targetname='ney.o') </code></pre> <p>so that I can create two different object...
6,969,989
0
What does {x:1} do in Javascript? <p>From Javascript: The Definitive Guide,</p> <pre><code>var o = { x:1 }; // Start with an object o.x = 2; // Mutate it by changing the value of a property o.y = 3; // Mutate it again by adding a new property </code></pre> <p>What does { x: 1} do here? With the braces, it reminds me of...
264,881
0
Can there ever be a "silver bullet" for software development? <p>I recently read the great article by Fred Brooks, "No Silver Bullet".</p> <p>He argues that there hasn't been a silver bullet that made software devlopment remarkably easier and that there never will be one.</p> <p>His argument is very convincing and I ce...
6,838,793
0
NSMutableArray initWithCapacity method description and memory management <p>It's about the instance method of NSMutableArray "initWithCapacity".</p> <p>From documentation, the Return Value is described as:</p> <blockquote> <pre><code>Return Value An array initialized with enough memory to hold numItems objects. The ret...
6,129,079
0
<p>If you include a <code>\</code> at the start of your line, asp recognizes the whitespace.</p> <pre><code>&lt;%@ Language=JavaScript %&gt; &lt;% var s = "\ \ a"; Response.Write(s.length); %&gt; </code></pre> <p>I wasn't familiar with using the <code>\</code> character to create multiline strings. Neat stuff, but I c...
13,405,732
0
<p>In addition to @MartinPieters answer the other way of doing this is to define the <code>find_global</code> method of the <code>cPickle.Unpickler</code> class, or extend the <code>pickle.Unpickler</code> class.</p> <pre><code>def map_path(mod_name, kls_name): if mod_name.startswith('packageA'): # catch all old modul...
15,329,949
0
<p>I had same problem and solve it by change in <code>AndroidManifest.xml</code>. You have to set theme of particular Activity or complete application to <code>Theme.Sherlock.Light</code> (I think you can specify only <code>Theme.Sherlock</code>).</p> <p>In code it will be:</p> <pre><code>&lt;application ... android:t...
21,991,603
0
<p>Because they depend on how the route table is configured in each individual router or device it pass through from source to target locations.</p> <p>Given this network:</p> <pre><code>A - B - C | / D </code></pre> <p>A message can go from A to D by traveling through B (<code>A-B-D</code>) But maybe D is configured ...
26,134,796
1
Python will not understand List <p>Sorry I have a very basic python question. In the following program I'm trying to duplicate a list and then sort it in ascending order. The code I've written is:</p> <pre><code>def lesser_than(thelist): duplicate = thelist[:] duplicate = duplicate.sort() return duplicate </code></pre>...
39,311,893
0
Unable to attach matlab.exe process to visual studio 2013 for debugging mex files? <p>I am writing some mex files to run in my matlab program using visual studio 2013 compiler.<br> In order to be able to debug your mex files, you should follow <a href="http://www.mathworks.com/help/matlab/matlab_external/debugging-on-m...
11,084,022
0
<p>Looking at your <a href="https://www.google.com/fusiontables/DataSource?dsrcid=4310315" rel="nofollow">table</a>, the column name is "ROLLING AREA".</p> <p>Try: <a href="http://www.geocodezip.com/v3_FusionTablesLayer_linktoA.html?lat=55.134627&amp;lng=-7.702476&amp;zoom=9&amp;type=m&amp;tableid=4310315&amp;tableque...
15,885,528
0
<p>This is an old question, so I'm not going to go on and on, but, look into /proc/pid/oom_adj and /proc/pid/oom_score</p>
28,480,261
0
Extract IPs before string <p>I have this text:</p> <pre><code>111.11.1.111(*)222.22.2.221(mgn)333.33.3.333(srv) 111.11.1.111(*)333.33.3.333(srv)222.22.2.222(mgn) 222.22.2.223(mgn)111.11.1.111(*)333.33.3.333(srv) </code></pre> <p>I only want to know the IP's before (mgn), output:</p> <pre><code>222.22.2.221 222.22.2.222...
37,002,578
1
Python read file into list - edit <ul> <li><p>edit - It seems that I have made an error with the calculation of number of parts tested:</p> <p><code>lines = len(file.readlines())</code> <code>N = lines - 2</code></p></li> </ul> <p>It did work when i tested it in a separate script though...</p> <p>Beginner here in need ...
3,388,666
0
<p>They are probably using three20's <code>TTLauncherView</code> control or they might of made their own version of it</p> <p>More info: <a href="http://three20.info/overview" rel="nofollow noreferrer">http://three20.info/overview</a></p>
1,379,981
0
<p>I think because XOR is reversible. If you want to create hash, then you'll want to avoid XOR.</p>
20,961,224
0
<p>Check out Open Graph- Twitter &amp; Facebook both use this architecture to retrieve "stories" posted by users. It's a version of the semantic web idea. <a href="https://developers.facebook.com/docs/opengraph/" rel="nofollow">https://developers.facebook.com/docs/opengraph/</a> The days of SQL calls are over (thank g...
39,079,482
0
NestedScrollView inside CoordinatorLayout don't have smooth scroll <p>I have some trouble trying to do a Smooth scrolling using a NestedScrollView inside a CoordinatorLayout. Now when I scroll It stops and don't have a smooth scroll, like when I scroll on a RecyclerView.</p> <p>Code:</p> <pre><code>&lt;RelativeLayout x...
29,934,384
0
<p>You have a spurious semicolon between the <code>for</code> loop and what you think is the body. Eliminate that and it should work as expected.</p> <pre><code>for(x = 0; x &lt; 3 ; x++); { ^ | eliminate this </code></pre> <p>What's happening now is that the <code>for</code> loop is looping three times and each time ...
26,185,915
0
<p>Array hydration is not the best way for achieve this kind of situations. The same scenario here:</p> <pre><code>Person - id_person - name - child //self refering </code></pre> <p>Array hydration only select the first level. I resolving it taking one of these two options:</p> <ol> <li><p>Use <code>left join</code> a...
40,948,013
0
meteor update method not working <p>this is my colletion:</p> <pre><code>{ "_id" : "Kan6btPXwNiF84j8e", "title" : "Chapter Title 1", "businessId" : "qmWJ3HtZrpka8dpbM", "createdBy" : "GfdPfoPTiSwLv8TBR", "sections" : [ { "id" : "T5KAfTcCb7pCudT3a", "type" : "TEXT", "data" : { "text" : "&lt;h1&gt;2&lt;/h1&gt;&lt;h1&gt;a...
19,374,950
0
Best tool to generate normal distribution graph in java or jquery <p>I want to generate <strong>normal distribution</strong> graph for a set of values as in the <a href="http://en.wikipedia.org/wiki/File%3aStandard_deviation_diagram.svg" rel="nofollow">link</a>,I have tried using <code>JFreeChart</code> but could not g...
22,118,351
0
<p>zmq_send and zmq_recv seems to handle zmq_msg_t structures rather than just the buffer.<p> Maybe you should try to create such structures rather than just sending your buffer ?<p> See the examples in <a href="http://api.zeromq.org/2-1:zmq-send" rel="nofollow">http://api.zeromq.org/2-1:zmq-send</a> and <a href="http...
37,290,885
1
Can't view Heroku logs - Cannot read property 'run' of undefined <p>I am attempting to deploy a python3 app to heroku. The app has some kind of error and isn't rendering (I see the generic error message in the browser) so I'm trying to troubleshoot via Heroku logs, but I get this error instead of the log output.</p> <p...
13,753,208
0
<p>The answer to your question is that Objective-C does not have a direct equivalent of annotations as found in Java/C#, and though as some have suggested you might be able to engineer something along the same lines it probably is either far too much work or won't pass muster.</p> <p>To address your particular need se...
14,746,477
0
<p>use <code>overflow:auto</code> property of css instead of <code>scroll</code>, and give some <code>height</code> for your list.</p>
23,044,032
0
<p>Write this lines of code in oncreate() </p> <pre><code> Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST); </code></pre>
3,837,890
0
<p>Here's my go at it... basically an unrolled loop. The JIT would probably have recognized that a loop would have gone from 0 to 3 and unrolled it itself anyway, but who knows...</p> <pre><code>public static int max(int[] a) { int max = a[0] &gt; a[1] ? a[0] : a[1]; max = a[2] &gt; max ? a[2] : max; return a[3] &gt; ...
37,621,380
0
Set up angular 2 Visual Studio 2015 <p>I have been trying for days to get my project set up correctly. I am going from this post <a href="http://www.mithunvp.com/angular-2-in-asp-net-5-typescript-visual-studio-2015/" rel="nofollow">here</a></p> <p>I have everything working but when I want to put my view in an .html fil...
15,279,765
0
<p>We have implemented exactly that kind of feature on the homepage of ilsschools.co.uk using client side onchange event:</p> <pre><code>var com2 = XSP.getElementById("#{id:comboBox2}"); XSP.partialRefreshGet("#{id:comboBox2}", { onComplete : com2.selectedIndex = 0 }); </code></pre> <p>We get the element we want to re...
22,626,811
0
<p>In the order by clause we can add two thing:</p> <ul> <li><p>Column names</p> <pre><code>Select * from TTT order by age; </code></pre></li> <li><p>Coulmn number to filter</p> <pre><code>Select * from TTT order by 2;//if age is the second column in the table or Select name,age from TTT order by 2; // this will order...
4,024,815
0
<p>Set an <code>onkeyup</code> or <code>onkeydown</code> event on your textarea, the latter is better because it fires before the new line is added to the textarea</p> <pre><code>var $form = $( '#yourForm' ); $( '#yourTextArea' ).keydown(function( e ){ if( e.keyCode == 13 ){ $form.submit(); } }); $form.submit(function...
32,270,616
0
asp.net not deploying non-referenced assemblies <p>I have a asp.net mvc project that is part of a azure cloud project. Lets call it <code>WebRole</code>.</p> <p>The <code>WebRole</code> project depends on a service interface witch is in it's own assembly. Let's call that <code>Services</code>. The implementation of tho...
36,190,407
0
ceil function doesn't return what it should <p>I have a problem with the ceil function in matlab. When I say "ceil(192.00)" it returns 192, as it should. However, when I declare a variable x and assign it 14*(256/20)+(256/20), that being exactly 192.00, ceil(x) returns 193. Why is that? Thanks in advance!</p>
25,766,005
0
<pre><code>} catch (InputMismatchException e) { correctInput = false; System.out.println("Please enter int value"); inputScanner.next(); } </code></pre> <p>consume one token and continue</p>
5,675,448
0
<pre><code>SELECT a.* FROM a LEFT JOIN b USING (signup) WHERE b.id IS NULL AND *signup thingie*; </code></pre> <p>though this is the way to select rows that have no match I do not see how you want to get the desired result from these tables, I believe you missed something in your illustration.</p>
13,935,454
1
split python string on multiple string delimiters efficiently <p>Suppose I have a string such as <code>"Let's split this string into many small ones"</code> and I want to split it on <code>this</code>, <code>into</code> and <code>ones</code></p> <p>such that the output looks something like this:</p> <pre><code>["Let's ...
15,859,581
0
<p>No, you don't. A quality implementation (<code>Hashtable</code>/<code>HashMap</code>) will resize itself automatically as the number of elements increases.</p> <p>If you are talking about your own implementation, the answer depends on whether the hash table is capable of increasing the number of buckets as its size...
3,595,562
0
<p>I just went through the process of installing and trying several carts for a project that I was working on. As Pierre says above, "There is no best shopping cart, however there is one best for your specific need" That is a very truthful statement.</p> <p>My project was for an on line soap company that has 5 differe...
28,513,861
0
<p>Code placed in App_Code folder is treated a bit different, it is compiled at runtime. cshtml file is 'Content' so that could be the reason why you get errors. Create normal folder within your project name it Code or something similar (but not App_Code) and place your file there.</p>
23,626,280
0
Yellow border on hover using ZeroClipboard <p>I have the following code generating a ZeroClipboard element for me:</p> <pre><code>RunClipboardClient: function (elementSelector) { var client = new ZeroClipboard($(elementSelector)); client.on("load", function (client) { client.on("datarequested", function (client) { clie...
17,134,117
0
<pre><code>// jquery plugin uploader.plupload('getUploader').splice(); $('.plupload_filelist_content', uploader).empty(); </code></pre>
9,285,914
0
<p>It doesn't matter. As long as Apache is installed before the PHP package then you are good to go. (Because when you install the PHP package some distributions do some auto-configuring with Apache).</p>
3,443,598
0
Get php results with jquery ajax <p>I don't know why I am having a hard time with this, but it's about time I came up for air and asked the question.</p> <p>What is the best way to call a php file with jquery ajax, have it process some inputs via $_GET, return those results and again use ajax to replace the content of ...
35,134,647
0
Invoke service when screen turns on (Android) <p>I am creating a lockscreen app with facial recognition. As a first step I am creating a simple lockscreen that unlocks on <code>Button</code> click. The lockscreen should start when <code>Switch</code> on <code>MainActivity</code> is turned on. I created a <code>Service<...
41,070,767
0
ensimeConfig creates directories java and scala-2.11, which I don't need <p>When I run <code>ensimeConfig</code>, it creates directories such as</p> <pre><code>src/main/java src/main/scala-2.11 </code></pre> <p>which I don't need, since I have my sources always inside </p> <pre><code>src/main/scala </code></pre> <p>How...
20,077,212
0
New Relic iOS app doesn't notify of downtime anymore <p>Not sure when this started happening, but I used to get alerts on my iPhone from the New Relic app when our site went non-responsive. I don't think we changed anything. How can I re-enable these alerts?</p>
759,223
0
<p>Yes. A float (or double) is guaranteed to exactly represent any integer that does not need to be truncated. For a double, there is 53 bits of precision, so that is more than enough to exactly represent any 32 bit integer, and a tiny (statistically speaking) proportion of 64 bit ones too.</p>
28,116,320
0
<p>You need to use the place.Search function of The Wikimapia API and enter the latitude, longitude and the name of the place as parameters.</p> <p>The API returns a lot of data separated in blocks. The one you are interested in is the <strong>geometry</strong>.</p> <p>You can make tests with the <a href="http://wikim...
38,719,978
0
<p>Bootstrap has no direct provision for partial columns.</p> <p>You can rewrite the stylesheet to operate on a different number of columns (i.e. 24).</p> <p>The <a href="http://getbootstrap.com/customize/" rel="nofollow">customize</a> page will let you specify a different number of columns and generate the stylesheet...
7,322,272
0
<p>Update: the Firefox bug is now marked as “fixed” and will make it into a near-future update.</p> <hr> <p>I’ve run into this too and would <strong>love</strong> to see the root cause fixed.</p> <ul> <li><p>I talked to a couple of Firefox developers (mbrubeck and gavin), and they think that it’s a bug! <a href="https...
25,594,636
0
Getting content from opening associated file Android SDK <p>So, I am associating a particular file type with my app and I want to be able to make it so that when a file of that type is opened, the app opens and is able to retrieve the information from the file. How would I go about doing this? I know I can associate th...
1,228,323
0
<p>You don't want to use <code>@course.chapters.build</code> here because this does add an empty chapter to the course. Instead you'll want to use <code>Chapter.new</code> and set the <code>:course</code> option like this.</p> <pre><code>@newchapter = Chapter.new(:course =&gt; @course) </code></pre> <p>It may not even...
2,954,820
0
Determine if point intersects 35km radius around another point? Possible in Linq? <p>Assume I have a point at the following location:</p> <p>Latitude: 47°36′N Longitude: 122°19′W</p> <p>Around the above point, I draw a 35Km radius. I have another point now or several and I want to see if they fall within the 35Km radiu...
36,617,616
0
<p>Have you tried on <strong>your php file</strong> , that?:</p> <pre><code>header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Methods: POST/GET'); header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept"); </code></pre> <h2>UPDATE</h2> <p>As i read <strong>your error m...
30,203,524
0
navBar not fading out <p>I'm writing a script in order for the navBar to go in on certain place and disappear on that same place. I managed to make it go in, but it won't leave. I can't find my mistake. Please help me. Here is my code: </p> <pre><code>var dummie = document.getElementById("dummie"); var navBar = documen...
40,921,341
1
bytearray instead of regular string value <p>I am loading data from one table into pandas and then inserting that data into new table. However, instead of normal string value I am seeing bytearray.</p> <p><code>bytearray(b'TM16B0I8')</code> it should be <code>TM16B0I8</code></p> <p>What am I doing wrong here? </p> <h2>...
714,475
1
What is a maximum number of arguments in a Python function? <p>It's somewhat common knowledge that Python functions can have a maximum of 256 arguments. What I'm curious to know is if this limit applies to <code>*args</code> and <code>**kwargs</code> when they're unrolled in the following manner:</p> <pre><code>items =...
4,657,548
0
<p>That's an error Windows gives when you're trying to bind to an address on the local machine that's not assigned to any of the adapters on the machine. If <code>ipconfig</code> doesn't show it, you can't bind to it. </p> <p>If the external address is on a router that is NAT'ing requests from it to the server's inter...
37,131,110
0
How to select sql query for two table with multiple values in php <p>I have two tables in my SQL Server database. The first is <code>bidder_interest_name</code> and second is <code>tender_type_subcat</code> . There have multiple value column <code>bidder_interest_subcategory</code> in <code>bidder_interest_name</code> ...
35,260,364
0
<p>While it is acceptable to return pointers to the string literals, buit not to a local pointer, it might be the wrong approach.</p> <p>If <code>str</code> does not change, make it <code>static const char * const str[] = ....</code> That qualifies both, the array and the <code>char []</code> (which is each string lit...
19,143,323
0
<p>How did you install R ? It looks like you are missing R headers. Perhaps you need to install the <a href="http://cran.r-project.org/bin/linux/debian/" rel="nofollow"><code>r-base-dev</code> package</a>. </p> <p>About the code, you don't need the wrapper. You can just put this in a <code>.cpp</code> file : </p> <pre...
8,103,887
0
Static variable in objective c <p>I am somewhat confused about memory allocation of static variable in objective C. </p> <ol> <li><p>should we allocate memory for static variable using <code>alloc:</code>? and initialize it using<code>init:</code>?</p></li> <li><p>Is objective c static variable same as c static variabl...