pid
int64
2.28k
41.1M
label
int64
0
1
text
stringlengths
1
28.3k
27,364,431
0
<p>You can use <a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html#isDirectory%28%29" rel="nofollow"><code>File.isDirectory()</code></a> to test <em>whether the file denoted by this abstract pathname is a directory.</em> You can also use <a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.ht...
15,235,011
0
<p>Couple of ideas:</p> <ul> <li><p>If the rows in the text files have a modification timestamp, you could update your script to keep track of when it runs, and then only process the records that have been modified since the last run.</p></li> <li><p>If the rows in the text files have a field that can act as a primary...
4,064,564
0
<p>Not really sure what the issue is here, sounds pretty simple though. I guess I'll add my 2 cents. First, unless youre looking for perform Inserts, Updates, or Deletes for these work times, I think a database is overkill for this.. look at using XML instead.</p> <p>Secondly, ASP.NET offers some pretty simple control...
3,423,974
0
How to convert char * to a System::string ^ <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/56561/what-is-the-best-way-to-convert-between-char-and-systemstring-in-c-cli">What is the best way to convert between char* and System::String in C++/CLI</a> </p> </blockquote...
40,381,215
0
Laravel 5.3 npm gulp not creating output files <p>I am using Laravel 5.3, node version: 5.7 and npm version: 3.6.</p> <p>When I run the <code>gulp</code> (or even <code>gulp watch</code>) command I get the same output in terminal as I normally get, everything looks like it should, and it even tells me that it has writt...
5,637,642
0
Need help understanding how to version an iOS app <p>In Xcode I have <code>Bundle Version</code> and <code>Bundle Version string, short</code>. There is also a version in iTunes Connect. Just trying to see what I should use for each one and which one iOS uses to determine the version of the app so that a newer version ...
19,115,225
0
<p>See this example: <a href="http://www.overpie.com/css/articles/css-vertical-fly-out-menu" rel="nofollow">http://www.overpie.com/css/articles/css-vertical-fly-out-menu</a></p> <p>I would recommend not to use line-height, as if you have long text, you will have trouble. </p>
23,674,649
0
How to embed youtube channel with thumbnails with over 4000 videos <p>I am trying to embed a youtube channel onto a website with thumbnails for customer, but it tells me that i can only embed up to 500 videos.</p> <p>The channel has over 4000 videos and need them all embedded!</p> <p>Is this possible?</p> <p>Hope to he...
24,034,942
0
Windows Azure: importing data from Excel sheet? <p>I have a Windows Azure mobile service with a sql database.</p> <p>I was wondering if it's possible to insert records from an excel sheet to an azure database table.</p> <p>in other words, I have an excel sheet with many data records, I want to export the records to a d...
27,841,834
0
pattern recognition in a time series <p>I understand that the question I am asking seem the be somewhat related to another question which has been asked already <a href="http://dsp.stackexchange.com/questions/966/pattern-recognition-for-temporal-data">here</a> and <a href="http://stackoverflow.com/questions/11752727/pa...
39,929,812
0
How to Run Code at iOS 10 Local Notification Runtime <p>I'm trying to schedule a local notification with a different attachement each day, however the code to find the correct daily attachment seems to run at notification creation rather than runtime, how do I set it to run at runtime. </p> <p>//Setup</p> <pre><code>pr...
38,031,842
0
<p><strong>In short, the less work you do in the <code>onBindViewHolder()</code> method, the better the performance of your list view scrolling.</strong></p> <p>The most efficient implementation would simply take the data from the model that is passed and simply set it to the view holder.</p> <p>Since all of this work...
8,220,000
0
<p>You should take a different approach here. Instead of trying to "cancel" the behavior you already applied, why not just use it only in browsers where you need it? Wich means taking it out of your main.css file and only using it like this:</p> <pre><code>&lt;!--[if IE 8]&gt; &lt;style&gt; Here goes all your behavior...
18,562,511
0
g++ Internal compiler error in small program <p>I am writing a small program to solve Project Euler <a href="https://projecteuler.net/problem=21" rel="nofollow">Problem 21</a>, and I was testing out the early parts of my code when I ran into an unexplained internal compiler error. I'd appreciate any tips on how to re-w...
33,610,688
0
Deploying Activiti workflow to OSGI(Felix) <p>I have developed a activiti workflow, I am trying to call the workflow through the code from an OSGI bundle but it gives the dependency errors. What would be the correct way to deploy the workflow into OSGI container?</p>
5,376,186
0
Should browsers automatically fetch images when src is dynamically redefined, w/o ajax? <p>I've noticed that when an image source attribute is dynamically changed (in my case, using jQuery), even if the image has never been called/cached by the browser (i.e. not pre-loaded), the browser still fetches it -- and without ...
40,333,401
0
<p>I copy/pasted your code in my IDE and ran but no problem here! so it's very strange that when you create object B, you get error that object A method (a::helloB()) does'n exist! If you put whole codes (inclusive dbData) i am willing to try it again.. </p>
23,617,667
0
<p>I'm not sure how you're expecting it to work, but I modified your HTML and JS to get something that I think works how you want: </p> <pre><code>&lt;ul id="accordion"&gt; &lt;li&gt; &lt;div style="background-color: rgb(109, 129, 27);" class="expand" title="Click to Expand"&gt;Zoos &lt;ul class="sortCat1" id="zoo"&gt...
37,226,802
0
<ol> <li><p>Use repmat in order to concat 3 copies of your matrix horizontally.</p></li> <li><p>Use the Matlab's assignment syntax: A(row,col:col+length(x)-1) in order to copy x into the desired row and col.</p></li> </ol> <p>Code example:</p> <pre><code>outA = repmat(A,1,3); %replicate A outA(2,1:length(x)) = x; %ins...
38,391,048
0
<p>Just change this part of code to format table instead just bold text:</p> <pre><code>... var html = "&lt;table&gt;"; html += "&lt;thead&gt;&lt;tr&gt;&lt;th&gt;UID&lt;/th&gt;&lt;th&gt;First Name&lt;/th&gt;&lt;th&gt;Last Name&lt;/th&gt;&lt;th&gt;Email&lt;/th&gt;&lt;th&gt;Username&lt;/th&gt;&lt;th&gt;Password&lt;/th&g...
5,717,228
0
<p>Check the javadoc for the <code>set</code> method. You'll see the following:</p> <blockquote> <p>Parameters:</p> <p>year - the value used to set the YEAR calendar field.</p> <p>month - the value used to set the MONTH calendar field. Month value is 0-based. e.g., 0 for January.</p> <p>date - the value used to set th...
39,925,758
0
Getting duplicate rows on subquery <p>So this has been bothering me for some time because I feel like in MSSQL this query would run just fine but at my new job I am forced to use Oracle. I have a subselect in a query where I want to find all of the people not assigned to a survey. My query is as follows:</p> <pre><code...
9,376,341
0
how to tag people in a facebook album via the graph API (php) <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/3017861/how-can-i-tag-a-user-in-a-photo-using-the-facebook-graph-api">How can I tag a user in a photo using the Facebook Graph API?</a> </p> </blockquote> <p...
39,269,948
0
<p>The shell builtin <code>kill</code> or the external one <code>/bin/kill</code> does not take Process ID (or Job ID) via standard input stream. You need to pass them as argument to <code>kill</code>, so:</p> <pre><code>kill -- $(&lt;ff) </code></pre> <p>should do.</p> <p>If you want to kill them one by one and doing...
9,553,619
0
<p>A very simple way would be to change the Flash movie in this manner:</p> <p>When the movie loads (in the load listener in AS), add this</p> <pre><code>if(ExternalInterface.available) { ExternalInterface.call(flashReady); } </code></pre> <p>and in the javascript, have a function called flashReady which does the thin...
22,497,591
0
<p>That's a huge file to be importing through PHP (which in turn forces resource limits upon phpMyAdmin); if you have command-line access I highly recommend loading it through the <code>mysql</code> command line tool. If you don't, try using the phpMyAdmin <a href="http://docs.phpmyadmin.net/en/latest/config.html#cfg_...
35,055,284
0
<p>Closing curly bracket <code>}</code> is misplaced to bottom for function <code>volcano_theme_options()</code>. Check and fix that.</p>
25,148,732
0
<p>I tried your initial way <em>with</em> the following:</p> <pre><code>use strict; use warnings; use Time::Piece; my $time = Time::Piece-&gt;strptime( "07/26/2014 00:23:09", "%m/%d/%Y %H:%M:%S"); print $time; </code></pre>
23,083,876
0
<p>You can attach session with socket and get in <code>connection</code> event. Get the user session in <code>authorization</code>, if you're using express then do this:</p> <pre><code>var sessionStore = new express.session.MemoryStore(); io.set('authorization', function (handshake, accept){ var cookies = require('exp...
12,506,902
0
<p>This is definitely a bug but I found a work around. You aren't going to like this but at least it will get your web app working again. You need to examine the User Agent header and if it contains "iPhone OS 6" then do not use:</p> <pre><code>&lt;meta content="yes" name="apple-mobile-web-app-capable" /&gt; </code></...
23,164,628
0
<p>Your UI elements in Fragment_Main.xml. You get NullPointerException because you set activity_main.xml as layout for MainActivity: <code>setContentView(R.layout.activity_main);</code>. Move the layout from Fragment_Main.xml to activity_main.xml.</p>
25,335,577
0
<p>The function is marked <code>const</code>, so the developer used a rather ugly <code>const_cast</code> to cast the const away in order to call <code>sort</code>.</p> <p><code>ASSERT</code> appears to be a macro (due to it being in capital letters) that most likely calls <a href="http://www.cplusplus.com/reference/c...
38,577,775
0
<p>from the bootstrap official site (and, almost, like Eric S. Bullington said.</p> <p><a href="https://getbootstrap.com/components/#navbar-default" rel="nofollow">https://getbootstrap.com/components/#navbar-default</a></p> <p>the example navbar looks like:</p> <pre><code>&lt;nav class="navbar navbar-default"&gt; &lt;...
18,219,072
0
Using MigLayout, how can I make JPanel appear <p>I have this ridiculously simple code (actually directly copied from the miglayout white paper: <a href="http://www.miglayout.com/whitepaper.html" rel="nofollow">http://www.miglayout.com/whitepaper.html</a>). I added the panel.setVisible(true) at the end. The problem is, ...
32,209,778
0
Passing information to server-side function in a Google Docs Add On <p>I'm working on a Google Docs Add-On based on Google's <a href="https://developers.google.com/apps-script/quickstart/docs" rel="nofollow">Quickstart tutorial</a>. I'm trying to change the workflow of the Add On in the tutorial to append a new page an...
32,125,683
0
<p>I was able to create reverse proxies by clicking on <strong>Site</strong>, <strong>URL Rewrite</strong>, <strong>Add Rule</strong> and <strong>Reverse Proxy</strong>. </p>
5,370,594
0
Highly customizable Listview for .Net? <p>do you guys know a .net ListView-Replacement which can be highly customized? I am developing an app which is similar to a "todo" list. I want to be able to customize almost every visual detail of the list so I get something like this:</p> <p><img src="https://i.stack.imgur.com/...
221,519
0
Linq to XML 'Where not in' syntax problem <p>The following Code does not compile</p> <pre><code>Dim BasicGroups As String() = New String() {"Node1", "Node2"} Dim NodesToRemove = From Element In SchemaDoc.Root.&lt;Group&gt; _ Where Element.@Name not in BasicGroups For Each XNode In NodesToRemove XNode.Remove() Next </co...
27,797,987
0
Exporting am chart on server <p>i am using grails , i need to put <a href="http://www.amcharts.com/demos/simple-column-chart/" rel="nofollow">amchart</a> in my pdf(using iText ) report. chart is created on browser. is there any way . to generate chart as image . so that i put that chart in my pdf.</p>
11,929,092
0
jQuery UI autocomplete filter data <p>I am new to jquery and I was assigned to filter out the list once the item is already selected. There are 3 textboxes that uses the autocomplete. </p> <p>source: apple, orange, mango</p> <p>textbox 1 = apple textbox 2 = apple should be filtered out in the list. it should only displ...
6,791,945
0
<p>Here's a recursive function that will indent:</p> <p>(<strong>Edited</strong>: Indentation wasn't working properly for all subelements, now it does)</p> <pre><code>function arrayPrettyPrint($arr, $level) { foreach($arr as $k =&gt; $v) { for($i = 0; $i &lt; $level; $i++) echo("&amp;nbsp;"); // You can change how you...
20,672,761
0
<p>if your string is converted to md5 string, you never get it back anymore, but you can try the md5 decrypter on the web but it doesn't 100% work as expected. try to reset with new password, i think it's more secure.</p>
11,478,687
0
<p>You should add the mouse listener to the JScrollPane's view instead of to the scroll pane itself, since the scroll pane consists of only corners and scroll bars.</p> <pre><code>yourJScrollPane.getViewport().getView().addMouseListener(yourMouseListener); </code></pre> <p>This code segment will add your mouse listene...
5,386,795
0
How to safely save data to an existing file with C#? <p>How do you safely save data to a file that already exists in C#? I have some data that is serialized to a file and I'm pretty sure is not a good idea to safe directly to the file because if anything goes wrong the file will get corrupted and the previous version w...
26,388,560
0
<p><code>$apply</code> is necessary to tell angular that changes happened to the scope. Built-in directives and services like <code>ngClick</code> or <code>$http</code> do that internally. If you apply (sic!) changes to the scope and don't use the aforementioned built-in services, then you are responsible for calling ...
19,714,087
0
Java File Name Printing <p>I am trying to print name of files from two folders, and this code compiles but not giving anything on running it.</p> <p>The main target here is to find common name files in two folders, I have stored file names in two arrays and then i will applying sorting and will find common files.</p> <...
32,325,286
0
How to group by a column with null values <p>I have a table like this:</p> <pre><code>C1 | C2 -----|---- 23 | 10 null | 10 23 | 10 24 | 10 24 | 10 </code></pre> <p>I want group by C1 and calculate null's C2 value in both 23 and 24's sum(C2)</p> <pre><code>SELECT C1, sum(C2) FROM table GROUP BY C1 </code></pre> <p>query...
38,826,053
0
Loading static files in node <p>I have a node application in which I am initializing var app = express() I am initializing some routes by passing this(app) to a function in one of node_modules of my application. addRoutes(app) is a function where I am defining my static folders </p> <pre><code>addRoutes = function (app...
8,919,206
0
What is the syntax to a templated recursive function? <p>This is driving me round the bend at the moment. As a homebrew exercise I wanted to template a recursive call in a class. in the .h file I have:</p> <pre><code>template &lt;typename T1&gt; class BinaryTree { public: BinaryTree(T1 element); ~BinaryTree(); BinaryTr...
9,693,359
0
<p>Use a different data structure. I'd suggest trying something like one of the <a href="http://www.boost.org/doc/libs/1_39_0/libs/numeric/ublas/doc/matrix_sparse.htm" rel="nofollow">sparse matrix classes from Boost</a>. They are optimised for storing numeric data in which each row or column contains a significant num...
38,530,394
0
<p>Update your controller:</p> <pre><code>var controller = ['$scope',function ($scope) { ... $scope.$on('my-tpl-ready', function() { $('#firstId').datepicker({ format: 'dd-mm-yyyy' }); }); }]; </code></pre> <p>Also add this to your template:</p> <pre><code>&lt;div ... ng-init="$emit('my-tpl-ready')"&gt; ... &lt;/div&g...
28,288,761
0
<p>I feel like the way you are doing it is not that dirty... But the <code>numpy.fill</code> function is a bit more tidy:</p> <pre><code>In [4]: import numpy as np In [5]: x=np.empty(5) In [6]: x.fill(8) In [7]: x Out[7]: array([ 8., 8., 8., 8., 8.]) </code></pre>
4,643,171
0
<p>This should work</p> <pre><code>^(http|https):// </code></pre>
14,200,665
0
<p>I have been searched alot on google about HTML Formating in RDLC but couldn't find any proper answer.</p> <p>I got one idea to render html tag in rdlc while you export locally in pdf.</p> <p>Use below expression in textbox :-</p> <p>=Replace(Replace(Replace(Replace(Fields!<strong>your column name*</strong>.Value,"&...
39,341,239
0
Meteor Js Google Login Cache Issue <p>In my meteorjs application built for both iOS and Android, while logging in with google on mobile or web, the first time I login, it works fine and logs me into the app, but then when I logout of the app and try to re-login with another google account, the popup does not ask me for...
17,558,271
1
python layout/functionality questions <p>I am about to start making a python (2.7) app - using wx, but im still having a few theoretical walls infront, making me sceptical about practical success.</p> <p>So below are a few questions: 1) My app will have many widgets (buttons, entries, labels, comboboxes) - where the ma...
17,196,303
0
<p><a href="http://htmlpurifier.org/" rel="nofollow">HTML Purifier</a> is a standards-compliant HTML filter library written in PHP. HTML Purifier will not only remove all malicious code (better known as XSS) with a thoroughly audited, secure yet permissive whitelist, it will also make sure your documents are standards...
37,069,633
0
java.lang.OutOfMemoryError: GC overhead limit exceeded on WSO2 MB <p>I've been recently working on with the <code>WSO2 Message Broker</code> (Ver : 3.1.0 ) in order to publish and consume messages using <code>JMeter</code> as the jms client. So I've got my publisher Java program where I'm publishing the messages from a...
32,331,720
0
Getting Error.code = 0 in db.transaction function <p>I am creating a project in Phonegap with Ionic.I am inserting and fetching dynamic content with sqlite and local storage.</p> <p>I created a Dashboard contoller below are my dashboard controller code</p> <pre><code>angular.module('myWallet').controller('dashCtrl', fu...
19,674,464
0
Closing database connection when form is crossed in wpf <p>I am opening database connection using global variable in form constructor and i close it in form Exit button .The problem i am facing is if i cross the form it doesn't close database connection .How i can close connection if form is crossed ?</p>
802,490
0
<p>Thread.Join is what you want.</p>
31,269,816
0
List of values in latex <p>I am updating documentation written in latex, and I have to implement kind of box which will contain list of possible values and default value for specified item.</p> <p>Tex files already contain some predefined constructions. </p> <p>There is an entry, defined by <strong>\newcommand</strong>...
17,582,591
0
<p>I'm not certain that introducing a <em>last</em> iterator on the second range for <code>is_permutation</code> would make the function any less unwieldy. I think it would make it more confusing.</p> <p>The thing with permutations is that the semantics are in the name itself. To check that one sequence is a permutati...
39,479,775
0
<pre><code>def find_price(self, name): if self.dictionary[name]["price"]: return self.dictionary[name]["price"] else: #assuming this is in a class...otherwise use global instead of self return self.find_price(dictionary[name]["child1"])*dictionary[name]["child1_quantity"] + find_price(self.dictionary[name]["child2"])*...
31,881,799
0
<p>"Errors" in Rx can be a a little difficult to grasp at first, because they have a slightly different meaning from what most people expect.</p> <p>From the <a href="https://github.com/ReactiveX/RxJava/wiki/Error-Handling" rel="nofollow">Error Handling documentation</a> (emphasis mine):</p> <blockquote> <p>An Observa...
30,307,143
0
<p>Split the string using a regex then loop through all elements, parse them to numbers and get the largest. </p> <p>Since <code>String.split()</code> requires you to provide a regex that matches the delimiters, i.e. in your case everything between digits, use the regex <code>\D+</code>, i.e. "a sequence of at least o...
36,906,123
0
<p>When the value for <code>scanf("%d",&amp;far);</code> is entered and press enter, the scanf stores the carriage return in the buffer. When it encounters the second scanf in the code <code>scanf("%c",&amp;ch);</code> it takes the carriage return present in the buffer as the input to 'ch'. So it doesn't wait for the ...
24,361,805
0
Should I instantiate MatlabControl from withing Matlab or Java? <p>It is not obvious from here <a href="http://www.cs.virginia.edu/~whitehouse/matlab/JavaMatlab.html" rel="nofollow">http://www.cs.virginia.edu/~whitehouse/matlab/JavaMatlab.html</a>, how to use <code>MatlabControl</code> class.</p> <p>On one hand it is g...
10,569,331
0
<p>Pinax is just django with a blend of other django plugins. You have to enable them and set them up individually. To use each individual app within pinax, you have to read that specific app's documentation and set it up appropriately (list of apps and repos which likely contain documentation here: <a href="http://pi...
17,440,525
0
Using JDBCRealm to authenticate user with Shiro <p>I am trying to authenticate a servlet running within Tomcat 6 using Shiro.</p> <p>I have the following shiro.ini file:</p> <pre><code>[main] ps = org.apache.shiro.authc.credential.DefaultPasswordService pm = org.apache.shiro.authc.credential.PasswordMatcher pm.password...
6,364,718
0
<p>You can try <a href="https://developer.mozilla.org/en/HTML/Element/base" rel="nofollow">using the <code>&lt;base&gt;</code> tag</a>. This will set your Base URL to whatever you need:</p> <pre><code>&lt;base href="http://yourdomain.com/"&gt; &lt;script src="js/remotescript.js"&gt;&lt;/script&gt; </code></pre> <p>Not...
11,191,445
0
<p>First off, try to set an action on your form tag. The action defines the page, to which the form will be submitted.</p> <pre><code>&lt;form method="post" action="Test.php"&gt; </code></pre> <p>With this the form should get submitted to Test.php. If it still doesn't do anything, try to print a variable dump (<a href...
5,772,578
0
<p><em>Me</em>: Could you provide a little more information about the IFoo service implementation? Does it have all of its own dependencies satisfied?</p> <p><em>Myself</em>: Hmm, no it doesn't. Turns out I didn't bind its dependencies. Boy, is that error message and stack trace misleading!</p> <hr> <p>So my mistake w...
25,868,562
0
FTP difference between STOR and PUT command <p>We use FTP for dropping the product feeds to our FTP server. I wanted to understand the difference between the STOR and PUT command in FTP. Can you please help me understand this?</p>
37,739,347
0
<p>U just need to check that action name is constant everywhere...i also had same problem i resolved by removing namespace as it is not necessary which i see u have not mentioned and also i had different action name at loginpage.jsp and struts.xml page.. so just see ur action name </p>
28,376,955
0
<p>To answer your questions:</p> <ul> <li>Is X an array when it's passed in?</li> </ul> <p>Yes. It is a <code>DOUBLE PRECISION</code> array having one dimension with the extent <code>NGamma</code>.</p> <ul> <li>Is the X that is declared in the 3rd line different than the parameter X?</li> </ul> <p>First, a word of ter...
19,602,690
0
<p>here is the deal.. the <code>onItemSelected</code> method is still called when the Spinner has just been created without you selecting any option. A simple workaround for this is to add an extra option in spinner liek "Select" or "None" and have a <code>if-else</code> construct in <code>onItemSelected</code> method...
20,576,121
0
C++Builder is a rapid application development (RAD) environment, originally developed by Borland and as of 2009 owned by Embarcadero Technologies, for writing programs in the C++ programming language targeting Windows and OS X.
32,282,560
0
<p>Here's how to handle this using <code>jQuery</code>:</p> <pre><code>$('#lightswitch').on('click', function() { $('nav').css('background-color', 'green'); }); </code></pre> <p>Best</p>
25,179,131
0
Multiple terms in a facet <p>I'm currently facing a Lucene facet problem.</p> <p>My document looks like:</p> <pre><code>doc1: - title: lorem - facetField: east west doc2: - title: ipsum - facetField: north doc3: - title: dolor - facetField: south doc4: - title: sit - facetField: north west </code></pre> <p>I would like...
10,830,563
0
Stop the Music in WebView when Screen Time-Out <p>I am programming that allow users can listen music in WebView via the URL web link. But I wonder why when the android phone user screen Time-Out my music in WebView also stop. Do you have any solution to solve this problem?</p> <h1>Here is my code:</h1> <pre><code>publi...
1,945,777
0
C++ Array vs vector <p>when using C++ vector, time spent is 718 milliseconds, while when I use Array, time is almost 0 milliseconds.</p> <p>Why so much performance difference?</p> <pre><code>int _tmain(int argc, _TCHAR* argv[]) { const int size = 10000; clock_t start, end; start = clock(); vector&lt;int&gt; v(size*size...
12,131,897
0
<p>use <code>remove_if</code> found under <code>algorithm</code></p> <p>Given a begin and end iterator along with a predicate, you can remove any element that results in the predicate evaluating to true. I'll include both C++03 and C++11 examples.</p> <p>C++03:</p> <pre><code>#include &lt;algorithm&gt; #include &lt;io...
7,794,956
0
Make browser to load silverlight page/xap even when server is offline <p>Is it possible to force browser to reload a Silverlight application - basically .aspx and .xap files - even if the server goes down? I.e. not accessible to the browser. Like setting caching forever. I tried different cache-control and expires head...
20,152,512
0
<p>s1) Yes, you can set certain properties as being indexed. Some property types do not allow indexing at all. It's preferable to set the indexes programmatically within each model definition.</p> <p>2) Although you can drop the index programmatically (i.e. remove indexed=True), I would not recommend it. It will leave...
33,945,163
0
<p>You could use the version of the <code>Task</code> <a href="https://msdn.microsoft.com/en-us/library/dd783035%28v=vs.110%29.aspx" rel="nofollow">constructor</a> that takes an <code>Action&lt;Object&gt;</code> parameter so you can pass the required input arguments, including the cancellation token, to the method exe...
13,801,620
0
<p><code>del /s *.txt</code> will delete all TXT files in all subfolders of current working directory.</p> <p>(But use that command carefully - wrong parent directory and you are throwing away all textfiles on your computer :) )</p>
19,205,353
0
<p>I'm not certain about the solution, but here's something to test: Try adding the attribute 'controls' to the video tag, e.g.:</p> <pre><code>&lt;video id="video_background" preload="auto" controls autoplay loop muted volume="0"&gt; </code></pre> <p>Where I'm going with this is that the 'autoplay' video tag attribut...
525,567
0
<p>I've worked on a Drupal project with about 1 million nodes. We added transactional support and it wasn't too hard. You'll need to patch the core of course but this shouldn't be a major concern for an enterprise application with good support and documentation. I was working as the observing pair programmer on the tr...
16,734,729
0
<p>Absolutely. For example, MySQL does not have hash and merge joins. Certain query patterns will suffer greatly there.</p> <p>The notion that the RDBMS used does not matter is strange to me. Different databases have very non-uniform performance characteristics. Performance very much varies with workload.</p> <p>If yo...
22,654,623
0
<p>Use the Neo4jPHP driver from Josh Adell, there are also sample projects listet on </p> <p><a href="http://neo4j.org/develop/php" rel="nofollow">http://neo4j.org/develop/php</a></p> <p>I think there are no built-in ways to access the shell from Neo4jPHP but if you can use its http facilities, you can do something <a...
1,807,946
0
<p>Utterly, utterly impossible. You won't even be able to open a TCP connection because the other website's server will try to handshake with the client, and fail.</p> <p>An IP address isn't just any old ID, it's the actually <em>address</em> that servers will send any response to. Spoofing it basically only makes sen...
20,204,669
0
<p>Use the chunk option <code>fig.show='hold'</code>.</p>
12,557,907
0
Flex Mobile TabbedView Applicatin Hide tabbar in states <p>I am building a tabbed view mobile application in Flash Builder 4.6 and want to have a login screen into it. </p> <p>I have 5 tabs, and on the first view page I have 2 states. </p> <p>1 state for a login, and another state for the actual tab itself. I could mak...
30,885,030
0
<p><strong>This avoid's unnecessary assignments of values and variable declarations</strong> </p> <p>1) Focus(param1,param2)</p> <pre><code>function Focus(Locatie,Bonregel) { if (Locatie.value == "" &amp;&amp; Bonregel.value == ""){ Locatie.focus(); } else if (Locatie.value == "") { Locatie.focus } else if (Bonregel.v...
4,161,824
0
<p>I don't know much about Ocracoke, but why don't you look into Visual Studio?</p>
39,482,190
0
<p>My technique for this is to write a shell script that does the job, and then run it via <code>find</code>. For example, your actions could be written into a script <code>munger.sh</code>:</p> <pre><code>#!/bin/sh for file in "$@" do output="output_dir/$(basename "$file")" sed -e 's:foo:bar:g' "$file" &gt; "$output"...
22,268,305
0
<p>If your project can manage it, it could be better to <a href="http://www.javascriptkit.com/javatutors/dom2.shtml" rel="nofollow">create DOM Elements and append them to the tree</a>. </p> <p>The big problem with efficiency would be that setting <code>.innerHTML</code> property would first remove all the nodes and on...
39,281,776
0
<blockquote> <p>Issue 1: Accessing web GUI of dockerized Spring Cloud Dataflow</p> </blockquote> <p>We might need little more details around this. Assuming this is the local-server, perhaps you could share the docker scripts/image, so we could try it out.</p> <blockquote> <p>Issue 2: Routing by JSON Header</p> </block...
26,559,529
0
<pre><code>&lt;video id="video" controls preload="metadata"&gt; &lt;source src="video/sintel-short.mp4" type="video/mp4"&gt; &lt;source src="video/sintel-short.webm" type="video/webm"&gt; &lt;track label="English" kind="captions" srclang="en" src="captions/vtt/sintel-en.vtt" default&gt; &lt;track label="Deutsch" kind=...