pid
int64
2.28k
41.1M
label
int64
0
1
text
stringlengths
1
28.3k
23,254,996
0
apply the edge detection in an image segmentation <p>I have two questions about snake edge detection. The first question is, in openCV there is a function cvSnakeImage(src,points,.......), what does the points parameter mean?</p> <p>The second questions is: I want to apply this function on the part surrounded by an edg...
34,886,605
1
TensorFlow network not training? <p>I had a really weird time with TensorFlow the last days and can not think of what's going wrong atm.</p> <p>I have built this network: <a href="http://pastebin.com/GZaX4aYN" rel="nofollow">link</a>. It is a copy of TensorFlow's MNIST example.</p> <p>Basically, what I did, is altering...
33,855,005
0
Get frame by frame data from mp4 using C# and .NET 2.0 <p>I'm currently developing using Unity 3D, however my background is Apple development. In iOS/OSX development I can use <code>AVFoundation</code> to load an mp4 and get frame by frame data from it as it plays in BGRA format.</p> <p>I was wondering what the equival...
6,708,019
0
Convert String to Variable Name <p>I need get combobox by string. Not worked.</p> <pre><code> for (int i = 0; i &lt; Slots.Count; i++) { var field = (ComboBox)this.GetType().GetField("cbSlots" + i).GetValue(this); field.DataSource = Slots[i.ToString()]; } </code></pre>
20,951,392
0
<p>Assign to learningTime the System.currentTimeMillis() value so it's 0 > 3000</p> <pre><code>learningTime = System.currentTimeMillis() </code></pre> <p>And, anyway you will block the main thread with this code. </p> <p>That can be an example of Handler</p> <pre><code>final Handler handler = new Handler(); Runnable r...
2,984,846
0
Set "Image File Execution Options" will always open the named exe file as default <p>As <a href="http://untidy.net/blog/2009/11/03/replacing-notepad-with-pn-via-image-file-execution-options/" rel="nofollow noreferrer">this link suggests</a>, I want replace <code>Notepad.exe</code> with <code>Notepad2.exe</code> using "...
10,994,687
0
How can I design input without knowing in advance how many values will be entered? <p>I want to input based on how many values a user inputs, without expecting an exact number of values. </p> <p>In my program I want user to input integer(s) but the problem is that I want to allow the user to either input one or two spa...
9,920,174
0
<p>Try to use a subquery with a LIMIT clause, e.g. -</p> <pre><code>SELECT i_s.pid, p_r.range_id as PriceRangeID, COUNT(p_r.range_id) as PriceGroupTotal FROM (SELECT * FROM indx_search WHERE i_s.word = 'memory' ORDER BY i_s.pid ASC LIMIT 0 , 20) i_s LEFT JOIN windex_mem w_m ON w_m.word = i_s.word LEFT JOIN price_range...
25,465,706
0
<p>Here is code that handles it:</p> <pre><code> page = Mechanize.new.get "http://page_u_need" page.iframe_with(id: 'beatles').content </code></pre>
39,516,498
0
<p>I agree, there are better ways to create a header for CCDA documents, however, if you'd like to stick with your solution here is the missing part:</p> <pre><code>var clinicalDocument = new XML ("&lt;clinicalDocument&gt;&lt;/clinicalDocument&gt;"); clinicalDocument['realmCode']['@code']="US"; clinicalDocument['typeI...
36,803,162
0
<p>Youd need to pad your data with at least order n zeros; then you could set stride[n]==-stride[m] to achieve the intended effect, and avoid allocating order n*m zeros.</p> <p>But something tells me there must be a more elegant solution to your problem, if you take a bigger-picture view.</p>
7,538,168
0
<p>the function <code>Ei</code> does either not exist or is not in your matlab path.</p> <p><strong>Edit:</strong> this function seems to be new in matlab 2011b, so if you are using an older version of matlab, the function won't be there -> error.</p> <p><strong>Edit2:</strong> do you have the <strong>Symbolic Math To...
30,483,486
0
<p>Try it like this:</p> <pre><code>window.open('','_self','');window.close(); </code></pre>
30,679,215
0
<p>Try using foreach loop.</p> <pre><code>$game = $_POST['game_rate']; // with the proviso $ _ POST ['game_rate'] is an array $game_opt = $_POST['game_opt']; $index = 0; foreach($game as $g){ $query = "INSERT INTO t_game(game_rate, game_opt) VALUES('$g', '".$game_opt[$index]."')"; // Execute the query variabel $index+...
1,023,344
0
<p>Maybe the <code>models</code> module has an <code>__all__</code> which does not include what you're looking for. Anyway, <code>from ... import *</code> is <strong>never</strong> a good idea in production code -- we always meant the <code>import *</code> feature for interactive exploratory use, <em>not</em> producti...
4,121,764
0
<p>I don't know what happened, but I disabled the USB WiFi dongle and switched to a cabled network, and it started working. don't know what the reasons were, but I am happy now that it worked.</p> <p>May be this is useful to others too!</p>
34,800,652
0
<p>The issue is that your app does not have a module named <code>uwsgi</code>. You change the directory to <code>/home/user/appname</code> but it looks like the actual module would be <code>appname.uwsgi</code> since the <code>uwsgi.py</code> file lives within <code>/home/user/appname/appname/uwsgi.py</code>.</p> <p>T...
40,472,828
0
<pre><code>public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setContentView(R.layout.activity_main); final RelativeLayout relativeLayout = new RelativeLayout(this); final TextView tv1 = new TextView(this); tv1.setT...
10,919,275
0
<p>Seems like there is a bug in for this:</p> <p><a href="http://mvcdonutcaching.codeplex.com/workitem/2533" rel="nofollow">http://mvcdonutcaching.codeplex.com/workitem/2533</a></p>
19,943,620
0
Strange parallel loop behaviour int v long int <p>I have some code i'm running in parallel using an OMP for loop, up to large numbers. The code (with unimportant bits removed) is as follows (apologies if it's a mess/hard to follow):</p> <pre><code>long int primePos=-1; unsigned long long int odd; int primeFactor; while...
20,890,855
0
Adding a ContactsContract.CommonDataKinds.Event to Android contacts, does not show up <p>I'm trying to add a birthday event to contacts but the event <strong>doesn't show up</strong> when displaying the contact in the People app. When going into 'Edit' mode of the contact, an event DOES show up, but no selected date (s...
11,004,202
0
Pan class in Flash AS3 <p>I have a movieclip and I am going to add a pan feature to it. I want to add the pan as it's own class that the movieclip can reference.</p> <p>When I create the pan class, I send the movieclip to it so I have it's position properties at all times.</p> <p>What is the best way to access the stag...
26,264,729
0
<p>how about that:</p> <pre><code>value = value &gt; 0 ? value: ~value + 1 </code></pre> <p>its based on the fact that negative numbers are stored as 2's complement to there positive equivalent, and that one can build the 2's complement by first building the 1's complement and adding 1, so </p> <pre><code> 5 -&gt; 000...
22,388,214
0
<p>Yes, this is really supported, but it has been broken since February 3rd. It has now been fixed!</p>
38,891,401
0
nested fetch api react native giving unpredictable response for custom operation <p>hi i am trying to fill array with custom data using multiple apis in react native but unable to do so as nested fetch api giving unpredicatable result my final array is always empty .</p> <p>Any help would be appreciated </p> <p>Thanks ...
24,344,310
0
<p>An installable onOpen will probably be the best solution since your <code>onOpen</code> function needs authorization to run (access spreadsheet Service).</p> <p>Just change the function name to avoid double firing.</p> <p>sample code from your example :</p> <pre><code>var ss = SpreadsheetApp.getActiveSpreadsheet();...
3,507,866
0
<p>You can overcome the issue of mysql's case-sensitive <code>REPLACE()</code> function by using <code>LOWER()</code>. </p> <p>Its sloppy, but on my end this query runs pretty fast. </p> <p>To speed things along I retrieve the resultset in a select which I have declared as a derived table in my 'outer' query. Since my...
19,399,920
0
<p>I assume what you want to do is that when the button is clicked, it should open the same URL that was present in href. If this is the scenario, you can just add an onclick event handler to the button i.e onclick="navigate('<em>Your URL here</em>');". </p> <p>You can also set the onclick event to call a javascript f...
33,692,598
0
Removing 'Allow' response header <p>I have a web-app developed using Spring-MVC, Spring-Security and hosted on Tomcat 7. As a security measure, I have also whitelisted only certain HTTP methods in web.xml as follows:</p> <pre><code>&lt;security-constraint&gt; &lt;web-resource-collection&gt; &lt;web-resource-name&gt;res...
16,485,114
0
<p>You can first delete, then write. </p> <p><code>hadoop fs -rmr &lt;path&gt;</code> removes everything under given path in hdfs including the path itself</p> <p><code>rm -rf &lt;path&gt;</code> removes in local file system. </p> <p>Make sure that there is no other file in the directory.</p>
14,485,233
0
Using JavaScript which I wrote in html in an asp.net page <p>I am currently engaged in doing a registration page. I first did it up in html and it let me move between my login, registration and forgot password forms, which were all located on the same page in html, but the form just changed shape and features through t...
35,596,247
0
<p><code>enter code here</code> <code>enter code here</code>s="hello fattie i'm a fattie too" <code>enter code here</code>#this code is unsure bbut manageabele <code>enter code here</code>looking word= "fattie" <code>enter code here</code>li=[] <code>enter code here</code>for i in range(len(s)): <code>enter code here<...
18,420,033
0
Use data from view in javascript <p>I was wondering if it's possible to use data from the view in my javascript code? This is what I have:</p> <p>View "<strong>index.phtml</strong>":</p> <pre><code>&lt;?php $event = $this-&gt;event; ?&gt; &lt;script&gt; // HERE I WANT TO USE $event var data = &lt;?=$event?&gt;; &lt;/sc...
11,903,235
0
<p><a href="http://developer.android.com/guide/components/fragments.html" rel="nofollow"><code>Fragments</code></a> will solve all your problems here.</p> <p>There are many great examples and the link i posted will help you get started.</p> <p><a href="http://stackoverflow.com/questions/5710573/need-a-fragments-exampl...
4,568,732
0
Windows Phone 7 Development <p>I am currently developing application that does following:</p> <ol> <li>Read Inbox (using MAPI) &amp; SMS Interception (incoming &amp; outgoing)</li> <li>Read CallLog (using P/Invoke e.g. PhoneOpenCallLog) and intercept call log</li> <li>File System Notification</li> <li>Reading Installed...
33,865,131
0
How to deleted record as false in SQL Server from winforms UI using c#? <p>I have a problem to set deleted record as false in my SQL Server.I tried a lot.</p> <p>My problem is i have a table in some Of the columns id,name etc...id as primary key constraint. When the user delete the record? so that record should be pres...
17,694,998
0
<p>The problem is in your second <code>setTimeout</code> call, you are invoking the function <code>win_open</code> then passing the value returned by it to <code>setTimeout</code> as the callback</p> <p>You need</p> <pre><code>function link_redirect(linkaddress) { overlay(); setTimeout(function() { overlay(); win_open...
3,900,262
0
<p>If you have <code>template&lt;class T&gt; class X;</code> you don't expect <code>X&lt;3&gt;</code> to work and deduce that <code>T</code> is <code>int</code>, do you? The same is here <code>IsFunc&lt;FunctionA&gt;</code> is invalid, but <code>IsFunc&lt;void()&gt;</code> is fine. HTH</p>
21,709,561
0
How get Admin credentials? I am the Admin already <p>My new computer have Windows 8.1 64-bit Spanish version; the previous one had Windows XP and I never messed before with Credentials, Privileges, etc. In my computer there is just one user account that is marked as Administrator: "They have access to all files and pro...
16,261,909
0
<p>Found the issue...</p> <pre><code> &lt;td&gt; &lt;div class="button-bar"&gt; &lt;button class="btn btn-danger" data-bind="click: deleteOffice, disable: hasChanges"&gt;Delete &lt;/button&gt; &lt;/div&gt; &lt;/td&gt; </code></pre> <p>I changed the button tag for <code>&lt;a href&gt;</code> , applied the same style an...
40,413,586
0
<p>So what's happening is your <code>draw::before/draw::after</code> elements are 0px tall at the start of your transition. That means the border radius is going to be very skewed. </p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre clas...
23,586,442
0
<p>make the input a span and change your DOM query to alter "innerHTML": <code> function count() { x += 1; document.getElementById( "counting" ).innerHTML = x; } </code></p>
13,147,778
0
<p>Use <a href="http://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;cad=rja&amp;ved=0CCIQFjAA&amp;url=http%3A%2F%2Factionbarsherlock.com%2F&amp;ei=EUWQUOT-BKXmiwLN5oHgDQ&amp;usg=AFQjCNEKyOYK1H-iAiI67o4J8dIPJNL9TA&amp;sig2=bBemH9Of9AkgJ6uiBJhwZA" rel="nofollow">ActionBarSherlock</a> a...
17,942,700
0
Do temporary files get deleted even while the app is running? <h2>Background</h2> <p>On android, you can create temporary files as such (link <a href="http://developer.android.com/guide/topics/data/data-storage.html#InternalCache" rel="nofollow">here</a> and <a href="http://developer.android.com/reference/java/io/File....
13,553,946
0
<p>If you can't find a method, you can build one using ruby's <em>include?</em> method.</p> <p>Official documentation: <a href="http://www.ruby-doc.org/core-1.9.3/Array.html#method-i-include-3F" rel="nofollow">http://www.ruby-doc.org/core-1.9.3/Array.html#method-i-include-3F</a></p> <p>Usage:</p> <pre><code>array = [1...
15,938,490
0
<p>This approach will work with PostgreSQL but it'll tend to be pretty inefficient as you're updating each row twice - each update requires <em>two</em> transactions, two commits. The cost of this can be mitigated somewhat by using a <code>commit_delay</code> and possibly disabling <code>synchronous_commit</code>, but...
6,352,813
0
<p>Why not make the views layer-backed? You can then just apply an affine transform to the view's layer.</p> <pre><code>yourView.layer.transform = CATransform3DMakeRotation(M_PI_4, 0, 0, 1.0); </code></pre>
5,591,702
0
<p>Any tutorial on building a VB6.0 form will do. <a href="http://www.google.com.au/search?q=custom+messagebox+vb6" rel="nofollow">Google</a> is your friend.</p> <p>Try this one: <a href="http://www.vbforums.com/showthread.php?t=445165" rel="nofollow">http://www.vbforums.com/showthread.php?t=445165</a></p>
26,950,797
0
<p>If you only need to find direct members, you can use Attribute Scope Query (ASQ). This requires domain/forest functional level of 2003 (forgot domain or forest).</p> <pre><code>DirectoryEntry groupEntry = new DirectoryEntry("LDAP://&lt;server&gt;/&lt;group DN&gt;", "user", "pwd"); DirectorySearcher searcher = new D...
11,574,829
0
How to find icons for app bar in metro windows 8? <p>How to find icons for app bar in metro windows 8 ? And how can i add custom icons ?</p>
5,349,040
0
<p>If I guess right the DBUtils is returning new instance for each call of getConnection(). And as the DBUtils class is a utility class so it shouldn't be maintaining any state. In this scenario no you dont need any addition efforts for synchronization. </p>
10,443,986
0
Make custom types appear in Xcode's documentation popup <p>I want to achieve the similar result for my own code:</p> <p><img src="https://i.stack.imgur.com/WziGi.png" alt="enter image description here"></p>
25,592,517
0
<p>More precisely, <code>() -&gt; ()</code> means a closure taking a tuple with 0 values as argument and returning a tuple with zero values. Which is equivalent to saying: a closure taking no arguments and with no return value (or returning <code>void</code>)</p>
11,774,984
0
How to give alt and title for background image? <p>How to give alt and title for background image? Is it possible?</p> <pre><code>&lt;div id="cont"&gt;&lt;/div&gt; #cont { background:#FFF url(../images/post.png) no-repeat; } </code></pre>
9,339,848
0
<p>Umm... I'm either missing something extremely obvious or everyone else is.</p> <p>You want to date operations? Use <code>to_date</code> and <code>to_char</code>. I'm going to assume this <code>ss:sss</code> means, seconds, then fractional seconds. You date appears to be a string so we need to convert it twice:</p> ...
7,195,886
0
<p>A regular expression substitution will do it. Look at the gsub() function.</p> <p>This gives you what you want (it removes any instance of '[' or ']'):</p> <pre><code>gsub("\\[|\\]", "", n) </code></pre>
2,277,896
0
<p>This isn't really an aggregation, it's just a groupwise maximum. <code>ROW_NUMBER</code> is the easiest way to write these queries:</p> <pre><code>;WITH CTE AS ( SELECT Query, CreatedTime, UpdatedTime, &lt;other_columns&gt;, ROW_NUMBER() OVER ( PARTITION BY Query ORDER BY CreatedTime DESC, UpdatedTime DESC ) AS Row...
14,289,000
0
<p>Windows Azure machines are yours for the using so if you want a different time zone, go right ahead and set it.</p> <p>The easiest approach is to create a very simple startup task and use <strong>tzutil</strong>, the Windows Time Zone Utility. We use the following:</p> <pre><code>tzutil /s "GMT Standard Time" </cod...
38,708,554
0
Meteor-Bootstrap jQuery wrong version <p>I do have the following message in the console:</p> <pre><code>Uncaught Error: Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v3.0.0 </code></pre> <p>In .meteor > version file it says it's <code>jquery@1.11.9</code>.</p> <ul> <li>I did tried to meteor remov...
19,557,119
0
<p>Given the format <code>$ _( int, int )___ .</code> where <code>_</code> is an arbitrary amount of whitespace use </p> <pre><code>int n = 0; int result = scanf("$ (%d,%d ) .%n", &amp;int1, &amp;int2); if ((result != 2) || (n == 0)) { ; // failed, handle error. } </code></pre> <p>Let's break the scanf() format down</...
39,530,708
0
<p>A couple of things to check.</p> <ul> <li><p>The pyenv tool doesn't install Python with a shared library by default. That could result in problems as mod_wsgi wants a shared library. You need to explicitly tell pyenv to build Python with a shared library.</p></li> <li><p>A home directory on many Linux systems is no...
6,607,522
0
<p>I don't know about such tool. You can write your own generator using database metadata info: <code>Connection.getMetadata()</code></p>
34,404,561
0
<p>This call </p> <pre><code>scanf_s("%s",msg); </code></pre> <p>is missing the size argument. Change to</p> <pre><code>scanf_s("%s", msg, (unsigned)sizeof msg); </code></pre> <p>You are also doing this</p> <pre><code>for(i=0;msg[i]!=NULL;i++) m[i]=msg[i]; </code></pre> <p>which generates a compiler warning, because <...
614,439
0
<p>As of NHibernate 2.1, the <a href="http://nhforge.org/blogs/nhibernate/archive/2008/11/09/nh2-1-0-bytecode-providers.aspx" rel="nofollow noreferrer">proxy factory is pluggable</a>. Here are some proxy providers supported:</p> <ul> <li>Castle.DynamicProxy</li> <li>LinFu</li> <li>Spring.NET</li> </ul> <p>So proxying ...
29,632,356
0
<p>You just need to multiply your concepts by your documents:</p> <pre><code>(20(currentConceptCount*currentDocumentCount) * 10(previousTime)) / 100(previousConceptCount*previousDocumentCount) </code></pre>
37,709,154
0
<p>in project.json you need this dependency</p> <pre><code>"Microsoft.Extensions.Localization": "1.0.0-rc2-final", </code></pre> <p>in Startup.cs in ConfigureServices you need code like this:</p> <pre><code> services.AddLocalization(options =&gt; options.ResourcesPath = "GlobalResources"); services.Configure&lt;Reques...
1,706,678
0
ncurses and stdin blocking <p>I have <em>stdin</em> in a <code>select()</code> set and I want to take a string from <em>stdin</em> whenever the user types it and hits <kbd>Enter</kbd>.</p> <p>But select is triggering <em>stdin</em> as ready to read before <kbd>Enter</kbd> is hit, and, in rare cases, before anything is ...
13,107,368
0
Is it possible to caputre the rendering audio session from another process? <p>I am taking my first dives in to the WSASAPI system of windows and I do not know if what I want is even possible with the windows API.</p> <p>I am attempting to write program that will record the sound from various programs and break each in...
24,635
0
<p>I use FCKEditorOnRails plugin: <a href="http://github.com/UnderpantsGnome/fckeditor_on_rails/tree/master" rel="nofollow noreferrer">http://github.com/UnderpantsGnome/fckeditor_on_rails/tree/master</a></p> <p>Note that you can generally drop in the latest version of FCKEditor without much tweaking if you're running ...
2,004,576
0
<p><a href="http://checkstyle.sourceforge.net/" rel="nofollow noreferrer">CheckStyle</a> to enforce coding standard, <a href="http://cobertura.sourceforge.net/" rel="nofollow noreferrer">Cobertura</a> for checking code coverage.</p> <p>On a related note also check the book <a href="http://oreilly.com/catalog/978059652...
1,151,823
0
<p>try avoiding unnecessary postbacks to pages, there are a lot of features you can implement by using things like jQuery or ExtJs framework. Learn how to do AJAX calls and pass info between your app and the server via JSON result sets.</p> <p>Also, install apps like FireBug and YSlow and use these to analyze your app...
8,605,454
0
<p>Your code gives me the following compiler error, skipping some bits</p> <pre><code>/usr/include/boost/spirit/home/support/action_dispatch.hpp:142:13: error: no matching function for call to ‘action_dispatch&lt;&gt;::do_call( const main()::&lt;lambda(const string&amp;)&gt;&amp;, action_dispatch&lt;&gt;::fwd_tag&lt;s...
14,629,617
0
<p>In this particular case, it depends. If using a namespace alias does the trick, by all means prefer it to macros, for all of the usual reasons. But the two do radically different things. You cannot open a namespace using its alias, i.e.: </p> <pre><code>namespace XYZ_ver1 {} namespace XYZ = XYZ_ver1; namespace XYZ ...
17,498,099
0
<p>MNagel has the correct link for this, but to reiterate, you want to look at using something like:</p> <pre><code>CREATE PROC dbo.MyProc WITH EXECUTE AS 'SomeUser' AS BEGIN --Proc --Do Stuff END --Proc GO </code></pre> <p>"Execute As" has some other gotchas along the way. You have to allow others to impersonate the ...
35,380,420
0
<p>if your project R file not generated automatically then this are the possibility i mention below.</p> <ul> <li><p>If the R .* can not be generate means that you have some issue into the res/ folder. Check for errors in res/ folder.</p></li> <li><p>Invalid file name: must contain only [a-z0-9_.] all the res/* filena...
23,047,620
0
Bad syntax on MySQL query <p>it says unexpected "="... What should I rewrite? Thanks</p> <pre><code>$result = mysql_query("SELECT * FROM soubory, users WHERE id='".$id."'" AND soubory.users_id = users.id ); </code></pre>
39,573,914
0
<p>Your error is telling you what the problem is. In your application.conf you should set <code>akka.actor.provider = "akka.cluster.ClusterActorRefProvider"</code>. If you want to use a 1 node cluster on your laptop you should also set <code>akka.cluster.min-nr-of-members = 1</code>.</p>
4,976,101
0
<p>Maybe you're looking for <a href="http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx" rel="nofollow"><code>SmtpClient</code></a>?</p>
7,714,571
0
<p>Make sure to #define GLEW_STATIC in the project before including GLEW in Windows. Then you can just include the entire source code in your project files. Otherwise, you need to have the proper GLEW DLL file in with your executable.</p>
12,579,508
0
<p>The problem was solved by making another emulator targeting another platform version. I was working on Android 4 with Google APIs. I made another emulator 2.3 API 10 with Google API.</p> <p>Thanks for people suggestions here for trying another emulator or restarting it.</p>
970,808
0
<p>Had a OnMouseDown event handler that was put in to make it so when you right clicked on a row that row would be selected. At some point this was changed to not just handle right clicks but any click. Apparently, selecting the row interfered with the check box being edited. </p> <p>Fix was to change it to only be on...
23,290,313
0
Getting the average of not null fields <p>I'm using Crystal reports in my application </p> <pre><code>average({ConsultationDetail.viandenord} ) </code></pre> <p>I need to get the avearge of not null field <code>viandenord</code> </p> <ol> <li>How can i change the formula to get this result?</li> <li>What is the best wa...
2,015,277
0
extend Application.cfc, but not from the root <p>I have:</p> <pre><code>1. inetpub/wwwroot/ProjectName/Application.cfc 2. inetpub/wwwroot/ProjectName/Admin/Application.cfc </code></pre> <p>I want #2 to extend #1 and override the onRequest function. I've looked into Sean Corfields's ApplicationProxy.cfc solution, but th...
22,297,066
0
<p>You have to remove the line <code>editable: true,</code></p> <p>Here is a working example. use this <code>script tag</code>.</p> <pre><code>&lt;script&gt; $(document).ready(function() { var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); var Xmas95 = new Date("25 Dec,...
28,846,159
0
<p>I have identified a workaround. </p> <p>I'm using a tuple for the constraint and handling it myself in the didApplyConstraints handler. </p> <p>The format for the custom constraint assumes that the range begins at the first value and travels <em>counter clockwise</em> until the second value. It makes no allowances ...
30,287,433
0
<p>Don't use Flask's development server in production. Use a proper WSGI server that can handle concurrent requests, like <a href="http://gunicorn.org/" rel="nofollow" title="Gunicorn">Gunicorn</a>. For now try turning on the server's threaded mode and see if it works.</p> <pre><code>app.run(host="x.x.x.x", port=1234,...
19,281,511
0
<pre><code>toProvider(new TypeLiteral&lt;FooProvider&lt;Bar&gt;&gt;() { }); </code></pre>
40,198,180
0
How to the change color of links to specific file extensions with a userscript? <p>My school website has homework download links and I want to distinguish them by coloring them different colors.<br> EG: Microsoft Word files would be blue and .RTF files would be green.<br> Since I'm new to this none of my scripts are wo...
9,439,569
0
<p>Well, maybe... but most probably not.</p> <p>But if it does, it's not "because both are UNIX" it's because:</p> <ul> <li>Mac computers happen to use the same processor nowadays (this was very different in the past)</li> <li>You happen to use a program that has no dependency on any library at all (very unlikely)</li...
2,774,789
0
PDF generated with jasperreport not showing well on Linux but yes on Mac, could the os be related? <p>A PDF I generate with jasper reports renders Ok in my MAC but some labels show wrong on Linux. For example, I have a static label that doesn't show completely on linux (only a part of the whole word) but yes on Mac. Ca...
22,567,320
0
Django edit user profile <p>I'm trying to create an "Edit Profile" form in the fronted. What happens is that my form(i'm not 100% sure) tries to create a user instead of finding the current user and update his profile. So I think that's the issue. Checked many questions here but none was clear enough. The fields I'm tr...
36,565,567
0
Excel VBA activate objects if checkbox ticked <p>I have got a piece of code that works which changes a input field from disabled to enabled and changes the colour from gray to white if the corresponsding checkbox is ticked.</p> <p>Is there a way to loop this or call it for all checkboxes &amp; input fields without havi...
4,476,564
0
<p>First, you are checking if the object instance is in the collection, but you are only creating one instance once (outside the while loop). Therefore, when you check if <code>!myPartyGroupList.Contains(partyGroup)</code>, it will return false the first time, so you will add the obj to the collection and then it will...
35,699,252
0
<p>You might as well disable it from being clicked and it does not listen to action anymore</p>
11,126,825
0
Metro App reading HTML formatted string <p>I have a metro app and want to bind a <code>&lt;TextBlock&gt;</code> element to a string which contains some HTML formatting elements. I seem to remember there being a converter for this kind of thing pre-WinRT, but I can't find any reference to this in the WinRT namespace.</p...
36,516,637
0
<p>It is a very clear algorithm and seems you got it right. So for changing the way of accessing the characters, why didn't you use the <code>String#charAt</code> method?</p> <p>Also you may want to change the return type of the method from String <code>"YES"</code> or <code>"NO"</code> to <code>true</code> or <code>f...
24,963,927
0
Gnuplot:Same Loop for input and output file <p>I would like to do the following thing</p> <p>set output 'error0.tex'<br> plot 'error0.dat' using 1:2 title 'Error x', \<br> error0.dat' using 1:3 title 'Error y'<br> ...<br> ...<br> set output 'error10.tex'<br> plot 'error10.dat' using 1:2 title 'Error x', \<br> error10.d...
30,738,999
0
<p>If you are creating a class that extends an Adapter, you can use parent variable to obtain the context.</p> <pre><code>public class MyAdapter extends ArrayAdapter&lt;String&gt; { private Context context; @Override public View getView(int position, View convertView, ViewGroup parent) { context = parent.getContext();...
39,067,891
0
Attempt to invoke virtual method 'java.lang.String com.activeandroid.TableInfo.getIdName()' on a null object reference <p>i am getting this Error </p> <pre><code>java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.activeandroid.TableInfo.getIdName()' on a null object reference </code>...
10,185,458
0
Finding Bitrate of video file <p>How can we find bitrate of a video file in c++? Can we do this by file handling?</p> <p>Thanks</p>