pid
int64
2.28k
41.1M
label
int64
0
1
text
stringlengths
1
28.3k
13,305,111
0
<p>Try to include the JQuery js before your custom Js file on html: </p> <pre><code>&lt;script src="../../Scripts/jquery-1.8.2.min.js" type="text/javascript" &gt;&lt;/script&gt; &lt;script src="../../Scripts/___your js___ .js" type="text/javascript"&gt;&lt;/script&gt; </code></pre>
35,019,825
0
error while converting svg to jpg file in eclipse using java <p>I am trying to convert an svg string into jpg file using batik in JAVA. I am able to do that successfully in netbeans IDE 8.0.2. But when I use the same code in eclipse Mars Release (4.5.0), it throws error and creates jpg file with 0byte size. Can someone...
39,150,757
0
How to show data by id in laravel 5.2 <p>I want to show data by id. If id=1 its need to show only id=1 data and if id 2 its should show only id=2 all data. My controller method:</p> <pre><code>-&gt;with('classroom',classroomModel::find($id)-&gt;first()); </code></pre> <p>Here is my view:</p> <pre><code>&lt;li&gt;Class ...
37,074,286
0
<p>Try this if only 'ABC' an 'XYZ' types exist in the table:</p> <pre><code>SELECT number as id, MAX(CASE WHEN Type = 'ABC' THEN Date ELSE NULL END) as T1, MAX('ABC') as Type_1, MAX(CASE WHEN Type = 'XYZ' THEN Date ELSE NULL END) as T2, MAX('XYZ') as Type_2 FROM T GROUP BY Number </code></pre>
13,214,694
0
Setting up git branches <p>Hi I have setup git on my local machine.</p> <p>So I can now fully develop locally and push my files to master origin.</p> <p>but I'd like to be able to commit my files from local to a stage folder on remote, and then from there create a branch with all the files that goes to production. any ...
6,289,547
0
<p>Sorry I did not replay earlier. Quickly, I'll would like to present one way of catching this for your consideration. For simplicity, I'll just concentrate on caching your outputs using Output frontend. </p> <p>In you application.ini you can setup your catching as follows: </p> <pre><code>resources.cachemanager.myvi...
16,691,937
0
How to insert on-fly query data to HBase using Hive <p>I am new in Hbase and Hive. Can someone please explain me how to insert data into Hbase using Hive?</p> <p>I found a lot of information regarding to this, but all of them are talking about exactly the same thing. In other words, they are inserting into Hbase table ...
3,177,373
0
ASP.NET MVC2, How to Add Metadata Attributes and Control the order of properties displayed in the View <p>In ASP.NET MVC2, I have two ViewModels with Parent-Child relationship as below.</p> <p>Parent ViewModel:</p> <pre><code>public class PersonViewModel { [Required] public int ID{get;set;} [Required] [StringLength(50)...
20,065,155
0
<p>In setcookie function you can only set the cookie name. If you want to get that cookie value then you can take it via the <code>$_COOKIE['name']</code></p> <p>Be sure that when you create cookie you need to set domain name in setcookie function as well.</p>
27,946,612
0
<p>Try</p> <pre><code>&lt;Application.Resources&gt; &lt;ResourceDictionary&gt; &lt;ResourceDictionary.MergedDictionaries&gt; &lt;ResourceDictionary Source ="StyleTemplates.xaml"&gt; &lt;/ResourceDictionary&gt; &lt;/ResourceDictionary.MergedDictionaries&gt; &lt;/ResourceDictionary&gt; &lt;/Application.Resources&gt; </c...
5,455,456
0
<p>Yes. By using the attr method.</p> <pre><code>$('.NotSoRoundedCorners').attr('class', 'RoundedCorners'); </code></pre>
28,844,201
0
<p>Try this immediately under <code>{block:Posts}</code>, or before <code>{/block:Posts}</code> depending on where you want the signifier to be.</p> <pre><code>{block:HasTags} {block:Tags} &lt;script type='text/javascript'&gt; var {Tag} = '{Tag}'; if ({Tag} == 'movies') {document.write('Movies blah blah');} &lt;/scrip...
10,403,767
0
<p>Other than a <a href="http://www.ampsoft.net/webdesign-l/WindowsMacFonts.html" rel="nofollow">very short list</a>, you should not rely on everyone having the various font families on their computers.</p> <p>Instead, try out <a href="https://www.google.com/fonts/" rel="nofollow">Google WebFonts</a>. In fact, use the...
22,816,514
1
Openshift build script not setting environment variables <p>I'm attempting to deploy some app using openshift, but I need to configure a proxy to allow the cartridge to download some libraries from pip.</p> <p>However, attempting to export the environment variables needed in the pre-build hook (or any other hook in act...
21,958,721
0
<p>You could probably use punctuation or word boundry. </p> <p><strong><em>note</em> -</strong> Have to be carefull when specifying something like this <code>\byes\.\b</code><br> on the left hand side is <code>\.</code> a non-word, therefore to match on the right hand side <code>\b</code><br> there needs to be a word ...
27,322,515
0
Write a C Program to extract a portion of a string from a character string using for loop <pre><code>#include&lt;stdio.h&gt; #include&lt;string.h&gt; void main() { char str1[50],str2[50]; int i,j,n,m,l; clrscr(); printf("Enter the string\n"); gets(str1); //scanf ("%s",str1); printf("Enter the position of the required c...
2,281,951
0
<p>Store the Thread results in a list after they were spawned and iterate the list - during iteration call join then. You still join linearly, but it should do what you want.</p>
35,859,741
0
Comparing two string failing assertion <p>This is really weird, im trying to assert two strings are equal and it's failing even though it looks to be the same.</p> <pre><code> Assert.assertSame("Extra Spicy", type, "type is not extra spicy"); </code></pre> <p>I get this error:</p> <blockquote> <p>java.lang.AssertionErr...
29,368,582
0
Integrate stateful C computations with Modelica <p>I have integrated a machine learning algorithm implemented in C with a Modelica model running in OpenModelica.</p> <p>The machine learning algorithm is in close-loop, taking as input the deviation from the target state and providing as output a control signal.</p> <p>I...
5,062,222
0
Changing the value of a variable that is a parameter in the parent scope <p>Is there any way to change the value of a parameter in the parent scope without passing it by reference to the child scope? I'd like to do something like this:</p> <pre><code>function foo($x = 5) { bar(); echo $x; // Ideally should output 6 } f...
16,130,586
0
Is there a way to connect Intellij IDEA to Sublime Text on Mac OS X? <p>I would like to find a way to open a file in Sublime Text 2 from Intellij IDEA (on Mac OS X), as to use its advanced text editing features on those occasions where writing "normal text" is not enough!</p>
5,572,951
0
<p>If I understand correctly, you can hook into the Form Closing event.</p> <p>So in your main form you can do something like:</p> <pre><code>Form2 form2 = new Form2(); form2.Show(); form2.FormClosing += new FormClosingEventHandler(form2_FormClosing); void form2_FormClosing(object sender, FormClosingEventArgs e) { thi...
39,777,750
0
<p>If you just want to set the value of the combobox input after the combobox is created, you can set the value of the select and then...</p> <pre><code>$(".ui-combobox-input").val($("#select option:selected").text()); </code></pre>
3,506,700
0
<p>Maybe pyCrust plus the Python debugger?</p>
15,867,840
0
Mouse Hower on TextBlock <p>The idea is when mouse howler above <code>TextBlock</code>, new <code>Image</code> is appear and it possible to click on it. When mouse leave the <code>TextBlock</code> - <code>Image</code> should disappear. </p> <p>Meanwhile I came to this, but still unable to continue:</p> <pre><code>&lt;S...
6,644,091
0
Java Date determine if DAY is greater <p>I have time stamps as string format Sun Jul 10 17:47:55 EDT 2011</p> <p>I need to determine if the current DAY is greater than the stored day.</p> <p>I will get the current day with <code>Date currentDate = new Date();</code></p> <p>and I will parse my string into a <code>Date</...
4,077,369
0
concatenate boost::mpl::string <p>How I can concatenate boost::mpl::string? The following code produce errors:</p> <pre><code>#include &lt;iostream&gt; #include &lt;boost/mpl/vector.hpp&gt; #include &lt;boost/mpl/string.hpp&gt; #include &lt;boost/mpl/fold.hpp&gt; #include &lt;boost/mpl/placeholders.hpp&gt; #include &lt...
30,117,338
0
<pre><code>Private Sub Workbook_Open() '// Disable Accelerators keys in Excel 2007-2013 Dim Ctl As CommandBarControl For Each Ctl In Application.CommandBars("&amp;Legacy Keyboard Support").Controls Ctl.Tag = Ctl.Caption Ctl.Caption = Replace(Ctl.Caption, "&amp;", "") Next Dim StartKeyCombination As Variant Dim KeysArr...
15,595,120
0
<p>You shouldn't use the dyno filesystem for persistent file storage (like databases). The dyno filesystems are ephemeral and changes are not reflected in the git repository associated with you app. Use one of the data storage add-ons instead: <a href="https://addons.heroku.com" rel="nofollow">https://addons.heroku.co...
25,032,376
0
<p>As ZZ Coder has already mentioned load balancer is a good solution especially for big deployments. For my own project I use reverse http proxy functionality of nginx web server. It redirects all http packets from a specified web context (seen from the Internet) to a server inside my network. Configuration is really...
37,966,360
0
<p>You can use Exists for this </p> <pre><code>Select * from (select Barcode from ITList union select Barcode from Equipment_list) as t where exists (select Barcode from Scanneditem where Scanneditem.Barcode = t.Barcode) </code></pre>
27,981,621
0
Generate Timestamp in IST Timezone java <p>I am trying to generate current timestamp in GMT timezone but it is still getting generated in IST as my machine is set to IST. I am using this code. Please help!!</p> <pre><code>{ String timeZone = "GMT"; Calendar gmtCalendar = Calendar.getInstance(TimeZone.getTimeZone(timeZo...
34,467,431
0
<p>Generally: yes, the bias weights should be updated and included in training just as any other weight in the NN (also in backpropagation).</p> <p>In the example you've posted, the bias <code>b1</code> is added to both neurons the hidden layer, and bias <code>b2</code> to both neutrons in the output layer</p> <pre><c...
23,645,666
0
<p>You can give an alignment suggestion to the layout manager by using:</p> <pre><code>label.setAlignmentY(JLabel.CENTER_ALIGNMENT); </code></pre> <p>If this doesn't help then post a proper <a href="http://www.sscce.org/" rel="nofollow">SSCCE</a> that demonstrates the problem.</p>
25,712,668
0
<p>Assuming the input array is <code>(n,m,3)</code>, then it can be expanded to <code>(n,m,4)</code> by simply concatenating a <code>(n,m,1)</code> array.</p> <pre><code>X = np.ones((n,m,3), dtype='byte') F = np.zeros((n,m,1), dtype='byte') X1 = np.concatenate([X,F], axis=2) </code></pre> <p>Strides for these are <cod...
14,598,137
0
<p>The question is a little bit poor specified. </p> <blockquote> <p>order the result in asc or desc depending upon a column value.</p> </blockquote> <p>A column takes many values (as there are multiple rows).</p> <p>Now, <code>order by</code> clause use an expression and order rows upon it. That expression should be ...
17,048,090
0
<p>No the richtext component does not provide such functionality. But it is possible to create ordered and unordered lists and to intend or outend the single list items.</p>
37,486,328
0
SQL query to rows to columns <p>I have a table like this</p> <pre><code>CREATE TABLE #CurrencyRate ( [Base] nvarchar(10), [Quote] nvarchar(10), [Amount] nvarchar(10) ) </code></pre> <p>and it has data like this</p> <pre><code>Base Quote Amount --------------------- R1C1 R1C2 R1C3 R2C1 R2C2 R2C3 </code></pre> <p><strong...
28,526,565
0
<p>Please consider the following <em>"test guide"</em> more as comment than an answer, because it just contains some <code>console.log</code> statements instead of an actual answer for your problem.</p> <p>Anyway below are some issues I'd try to checkout:</p> <ol> <li>do you receive an answer from the server following...
24,083,219
0
<p>Threre are other <a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Executors.html" rel="nofollow">threadpools available</a>, for example the fixed threadpool (<code>newFixedThreadPool</code>), which seems to behave just as the one you use, only without the sceduling.</p>
29,203,494
0
<p>you need to provide the failure message while asserting only then it will take up in the report. Consider below code snippet:</p> <pre><code>import org.testng.annotations.Test; import org.testng.asserts.SoftAssert; public class SoftAsert { @Test public void test() { SoftAssert asert=new SoftAssert(); asert.assertEq...
20,627,067
0
<p>Your code isn't compilable. Here is the reasons:</p> <ol> <li>The conditions must be placed into some method</li> <li>The declaration of event handler must be moved out from the condition scope</li> </ol> <p>Here is the workable code:</p> <pre><code>namespace WindowsFormsApplication1 { public partial class Form1 : ...
10,946,596
0
How to create image in php <p>I am creating image with php</p> <p>code</p> <pre><code>$src = array ("22.jpg","33.jpg","44.jpg","55.jpg","66.jpg","77.jpg"); $imgBuf = array (); foreach ($src as $link) { switch(substr ($link,strrpos ($link,".")+1)) { case 'png': $iTmp = imagecreatefrompng($link); break; case 'gif': $iTmp...
40,362,894
0
PHP LDAPS unable to connect to server <pre><code> $username = $_POST['username']; $password = $_POST['password']; $ldaphost = "ldaps://corpldap.xxx.net"; $ldapUsername = "cn=$username,ou=people,dc=xxx,dc=net"; $ldapPassword = "$password"; $ds = ldap_connect($ldaphost,636) or die("\r\nCould not connect to LDAP server\r\...
11,952,033
0
<p>I suppose <a href="http://en.wikipedia.org/wiki/Singleton_pattern" rel="nofollow">Singleton</a> should help you managing it better, so you dont have to pass the pointer around. Practically, <code>mpi_glob</code> does the same, <code>Singleton</code> is just more accustomed way.</p> <p>Alternatively, you can still r...
1,964,450
0
<p>Here's a more idiomatic and generic approach:</p> <pre><code>template&lt;typename K, typename T&gt; class AVLTree { ... template &lt;typename Comparer&gt; void foo(Comparer cmp) { ... int res = cmp(key1, key2); ... } ... }; </code></pre> <p>Comparer should not be a type that defines a static <code>Compare</code> me...
24,745,209
0
<p>First of all, I would set the interval to something like 500, then step it back to 400, 300, 200, 100, etc. until you get the desired speed you want.</p> <p>Secondly, assuming <strong>Label2</strong> is your <em>max</em> value and <strong>Label3</strong> is your <em>min</em> value and that you want your progress ba...
2,421,385
0
<p>Regex has a thing called a "non capturing negative lookahead assertion" which basically says "don't match the following". It looks like this: </p> <pre><code>^people/(?!People_Search)([A-Za-z0-9\-\_]+)/?$ </code></pre> <p>Whether you can use this depends on the rewrite engine you use, and the level of regex support...
1,569,866
0
<p>Either use:</p> <pre><code>&lt;Directory /path/to/root&gt; Options +ExecCGI &lt;/Directory&gt; </code></pre> <p>or</p> <pre><code>&lt;Location /&gt; Options +ExecCGI &lt;/Location&gt; </code></pre> <p>See <a href="http://httpd.apache.org/docs/2.2/mod/core.html#directory" rel="nofollow noreferrer">Directory</a> and ...
40,223,949
0
<p>The semantics of a value being missing are exactly why <a href="http://en.cppreference.com/w/cpp/utility/optional" rel="nofollow"><code>std::optional</code></a> was introduced to the C++ language specification.</p> <pre><code>std::optional&lt;unsigned int&gt; value; // by default, the value is missing if(value) { /...
33,646,950
0
How to increment and keep previous increments when values are the same in emacs <p>I have two columns with values, the second column starts at particular value, I want the second column to start with one, and increment only whenever a value changes, otherwise keep the previous increment. I can use macro to set the star...
32,050,200
0
Flickr API - Get Image ID and pass to second request <p>I'm using Angular JS. My goal is to get a list of flickr images based on location and take the image IDs returned from the request and pass them into another request to get more information for each photo to be displayed in the results. Here is what I have but I c...
14,620,400
0
<p>I just wanted to put that up on SO, but this pull request should be helpful and remove the need for a separate function for numpy.dot <a href="https://github.com/numpy/numpy/pull/2730" rel="nofollow">https://github.com/numpy/numpy/pull/2730</a> This should be available in numpy 1.7</p> <p>In the meantime, I used th...
37,226,493
0
C# how to make image move on Y axis like in slots (WPF) <p>How can i make image move on Y axis from top to bottom like in slots ? I have i my WPF this:</p> <pre><code>&lt;Border BorderBrush="Black" Margin="62,97,398,128.6" BorderThickness="2" Name="border" &gt; &lt;Grid&gt; &lt;Image Name="obrazekAutomat1" Source="cisl...
21,194,126
0
<p>How about this? <code>window["yourfunctionname"]();</code></p> <pre><code> var FunctionName = func[before]; if (typeof(window[FunctionName]) === "function") { window[FunctionName](); } </code></pre> <p>OR </p> <pre><code> function myFunc(obj) { var func = $.parseJSON(obj); if (func[before] === "myBefore") { before(...
13,158,290
0
<p>Use this code to remove the white space:</p> <pre><code>NSString *str = @"this string contains blank spaces"; NSString *newStr = [str stringByReplacingOccurrencesOfString:@" " withString:@""]; </code></pre>
38,083,634
0
Android sign in with Google APIs expires very early <p>I followed these guidelines to integrate Google sign-in into my android app: <a href="https://developers.google.com/identity/sign-in/android/sign-in#start_the_sign-in_flow" rel="nofollow">https://developers.google.com/identity/sign-in/android/sign-in#start_the_sign...
25,781,107
0
<p>Which flume version are you using? It is fixed in V1.5.0 </p> <p>Refer : <a href="https://issues.apache.org/jira/browse/FLUME-2052" rel="nofollow">https://issues.apache.org/jira/browse/FLUME-2052</a></p>
6,052,881
0
Archiving large amounts of old data in SQL Server <p>Pretty simple question.</p> <p>I have a large 70gb database that has four of five tables that contain about 50 million rows each. These tables contain about 6 years worth of data. We are limited to amount of space in our database to 80gb, and we are going to be quick...
18,210,837
0
<p>Where arrList is the list returned by the GetSubnetLocations function in the format above (alphabetized) </p> <pre><code>Dim arrMenu : ReDim arrMenu(-1) Dim arrLocs : ReDim arrLocs(UBound(arrList),1) i = 0 For Each x In arrList 'Also building option list here intCount = Len(x) - Len(Replace(x,"/","")) arrLocs(i,0) ...
15,372,328
0
<p>Someone from FB says it's an expected exception, according to this bug report:</p> <p><a href="https://developers.facebook.com/bugs/122268321247958" rel="nofollow">https://developers.facebook.com/bugs/122268321247958</a></p>
19,249,576
0
<p>What about implementing a OnLayoutChangeListener that gets called when a View is moved due to Layout Change</p> <pre><code>new View().addOnLayoutChangeListener(new OnLayoutChangeListener() { @Override public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight,...
14,541,020
0
<p>Maybe Uploadify is your friend here... have a read of this for more info <a href="http://markp3rry.wordpress.com/?s=uploadify&amp;submit=Search" rel="nofollow">http://markp3rry.wordpress.com/?s=uploadify&amp;submit=Search</a></p>
31,631,685
0
<p>You can either move/copy the Content folder under www root folder or use grunt file.js to process,combine,minify, and then copy to a folder under wwwroot. But ~/ now means wwwroot</p>
20,727,067
0
<p>I know it's so late but I had the same problem, so here's the solution below: </p> <p>To create web.xml: </p> <ol> <li>Right click on your project</li> <li>Choose New</li> <li>Choose Other </li> <li>Box New file is opened, in Filter search web.xml</li> <li>You will get the file you want web.xml, then click next...t...
35,139,477
0
<p>Turns out I simply had to implement this method into the viewController that holds this tableView:</p> <pre><code>override func tableView(tableView: UITableView, titleForFooterInSection section: Int) -&gt; String? { return "This will appear in footer styling below the section." } </code></pre>
26,526,756
0
<pre><code>char *a </code></pre> <p><code>a</code> is a pointer to something. That something is a <code>char</code></p> <pre><code>int *b </code></pre> <p><code>b</code> is a pointer to something. That something is an <code>int</code></p> <p>Both <code>a</code> and <code>b</code> are <em>pointers</em>, they only store...
28,195,823
0
Wait for certain word in teraterm <p>I am now doing some teraterm script which I want to wait for certain word (in some large string) and if the word is found then execute a command, if not found execute another command. I tried to use wait and if_else, but it's not working, please help.</p>
33,389,208
0
<p>Please try below </p> <p>yum update php*</p> <p>If you have rpm package then you can use rpm -U option to upgrade existing packages.</p>
38,798,293
0
<p>You can put the audio and video on different tracks and use the mix transition to combine the audio.</p> <pre><code># melt video.mp4 \ -audio-track -blank 100 audio.mp3 \ -transition mix in=100 out=500 a_track=0 b_track=1 </code></pre> <p>Further explanation here: <a href="https://www.mltframework.org/bin/view/MLT/...
27,654,734
0
<p>I had a similar issue. It was not really an issue with Gmail or with PHP. The issue, in my case, was that when PHP generated the email message from my PHP source file, like the one above, it interpreted the end of lines in some way that Gmail did not like, perhaps it sent a LF instead of CRLF, some thing like that....
39,165,938
0
<p>Honestly, I find IDEA scarily good at reading my mind of what method I want to call next. And it usually just takes a couple letters for it to narrow down what I'm looking for pretty precisely.</p> <p>But, I think what you may be looking for is the "Sort lookup items lexicographically" option, in the Settings windo...
1,439,394
0
<p>I find it is handy to use SQL*Plus column variables within directives - for example, I'm often in a session and want to spool to a new file name to avoid overwriting another log that may already exist and do this (first three statements through an @file):</p> <pre><code>SQL&gt; column spr new_value spoolref SQL&gt;...
5,048,595
0
<p>Probably the following will work: </p> <pre><code>Sub getData() With ... .... End With LastRowColH = Range("H65536").End(xlUp).Row ActiveSheet.Shapes.AddChart.Select ActiveChart.ChartType = xlXYScatter ActiveChart.SetSourceData Source:=Range("Sheet1!$D$3:$H$" &amp; CStr(LastRowColH)) End Sub </code></pre> <p>HTH!</...
21,748,444
0
How to select(fetch) all the <select> elements in jQuery <p>I want to fill in all the options for things like </p> <pre><code>&lt;select id=such_a_field&gt; </code></pre> <p>to get the inputs in my form I can just go </p> <pre><code>$inputs = $('#myFormName :input'); </code></pre> <p>and iterate through them and set th...
22,799,070
0
asp.net mvc 4 accessing websecurity.Getuserid(user.identity.name) <p>I am trying to access to the user id that is currently logged on... I have two controllers, LicencaController and ProcessoController. In the ProcessoController there is a function that saves the user id and some other stuff, this function was private,...
11,736,910
0
<p>I have the answer. Apparently jQuery doesn't support the <a href="http://stackoverflow.com/a/1694803/1062281">default behavior of links clicked programmatically</a> </p> <p>Creating and submitting a form works really well though (tested in <code>Chrome 26</code>, <code>FF 20</code> and <code>IE 8</code>):</p> <pre>...
31,252,223
0
<p>First, <code>open()</code> is used for files. What you want is <code>opendir()</code>. Next, when you use <code>opendir(), readdir()</code>, it doesn't keep the path information, so you need to prepend it to the files you're renaming. Third, it's more common to use lexical handles as opposed to bare names. Lastly, ...
35,683,293
0
<p>Seems like a typing mistake: you need <code>compile</code>, but not <code>complie</code>.</p> <p>That line in first gradle file: <code>complie 'org.jopendocument:jOpenDocument:1.3b1'</code></p>
32,260,332
1
Defining a constructor for ponyorm's Entities results in TypeError <p>i just wanted to try out the pony orm mapper for a small personal web application. Everything works fine except for defining a custom constructor for an entity.</p> <p>In the following code i created a simple entity with a string field <code>name</co...
26,632,199
0
<p>To combine all three of the above answers, you need the stopwords_en.txt as it begins testing for English language text</p> <p>From <a href="http://wiki.apache.org/solr/LanguageAnalysis#Stopwords" rel="nofollow">http://wiki.apache.org/solr/LanguageAnalysis#Stopwords</a></p> <blockquote> <p>Stopwords affect Solr in ...
40,752,236
0
Xpath Parsing part of name contains white space and special character <p>I have the xml line below:</p> <pre><code>&lt;Custom AttributeName="HHPP"&gt;ancd&lt;/Custom&gt; </code></pre> <p>I want to parse the HHPP part form name, what is the xpath expression to do that?</p>
15,276,947
0
<p>This code snippet creates a new presentation:</p> <pre><code> private void DpStartPowerPoint() { // Create the reference variables PowerPoint.Application ppApplication = null; PowerPoint.Presentations ppPresentations = null; PowerPoint.Presentation ppPresentation = null; // Instantiate the PowerPoint application pp...
23,568,649
0
<p>you don't have a variable: '[ || test || ]' is a string. you need this one '[' || test || ']'</p>
603,558
0
<p>It is probably the McAfee on-access scanner that holds the lock. If you only use read access, it is bypassed. I believe that you can use the Sysinternals Process Viewer tool (free from Microsoft) to confirm that.</p> <p>Not sure what subscription you have for McAfee, but you can define exception rules so that it do...
23,212,466
0
32feet bluetooth c# which exception thrown when connected device switch off? <p>I am developing a bluetooth application in c# to read data from sensors using 32feet.net library. I am able to communicate with sensors and able to read values , send command etc. The Communicating thread will either be waiting in read or w...
3,451,451
0
Why do people spend so much time searching for, and hacking around with, "free" toolsets when superior pay ones are available? <p><strong>Clarification:</strong> I'm referring to companies that pay developers, professionally. I understand why a "hobby" or "for fun" developer wouldn't want to (or couldn't afford) a full...
35,127,826
0
<p>In your code you have:</p> <pre><code>html "&lt;a href=" $ { link } "&gt;Activate your account on Kunega&lt;/a&gt;" </code></pre> <p>which I suppose should be either:</p> <pre><code>html "&lt;a href=\""+ link + "\"&gt;Activate your account on Kunega&lt;/a&gt;" </code></pre> <p>or </p> <pre><code>html "&lt;a href=\"...
5,067,745
0
PostgreSQL - use previously computed value from same query <p>I have the following sql query:</p> <pre><code>SELECT (SELECT ...) AS X, (SELECT ...) AS Y from my_table </code></pre> <p>'X' is quite hard to compute, and it's used as an input for computing Y. However, if I try to reference X within the query that computes...
18,973,796
0
<p>Create new iterator</p> <pre><code> bson_iterator nInterat[1]; </code></pre> <p>below subit iterator</p> <pre><code>bson_iterator subit[1]; bson_iterator nInterat[1]; </code></pre> <p>instead of this </p> <pre><code>bson_iterator_subobject_init(subit, sub_Object,1) </code></pre> <p>change like </p> <pre><code>bson_...
2,204,656
0
<p>This issue was resolved. I didn't know that when using pylons from the CLI, I have to include the entire environment:</p> <pre><code>from paste.deploy import appconfig from pylons import config from project.config.environment import load_environment conf = appconfig('config:development.ini', relative_to='.') load_e...
8,468,976
0
<p>I am by no means an expert &mdash; when HQL stymies me, I rarely have qualms about bypassing the problem by switching to straight SQL &mdash; so I can't tell you if there is a better, more HQL-ish way to do this. But in your specific instance, where <code>B.marker</code> is always either <code>0</code> or <code>1</...
7,677,562
0
What's the difference between argp and getopt? <p>I think the title is self explanatory. I am making a program and I was wondering what I should use of the two and why.</p>
4,993,060
0
Submitting a form to a new window using JavaScript - with Strict DocType <p>Ok, so here's my code for submitting the form:</p> <pre><code>document.forms['formid'].submit(); </code></pre> <p>The Form Target attribute is deprecated for the DocType I'm using - </p> <p><a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict...
36,924,214
0
Identify and count array duplicates <p>I have the following array:</p> <pre><code>var newOrderItems = [Order]() </code></pre> <p>that holds Order type elements:</p> <pre><code>let order = Order(item: itemName, quantity: 1) newOrderItems.append(order!) </code></pre> <p>At some point newOrderItems holds:</p> <pre><code>[...
1,308,119
0
<p>Not sure...I learned the 2 technologies by writing a facebook API based on WCF and writing a WPF frontend to browse the albums of my friends. My reasoning was that if WCF can do form-encoded POSTs with bare XML responses then it should be up for a lot of things.</p>
26,542,624
0
<p>I've done similar thing once. Unfortunately Report Studio can't create prompts (and variables) dynamically. You can construct your set of prompts using JavaScript. Not Cognos prompts. HTML EditBoxes. Then carefully pass values from EditBoxes to real hidden prompt as text.</p>
7,437,875
0
<p>You should do basic connectivity tests, to determine what exactly that network is blocking. </p> <p>Start with a simple ping and move on to UDP and TCP levels. You might find that some form of communication is allowed.</p> <p>If not, you can try to tell their security guys to accept some form of communication betwe...
36,883,973
0
html5 multiple file upload with spring mvc 4 and spring boot <p>I'm trying to upload multiple files using spring mvc 4, spring boot and thymeleaf as template engine, but i'm not able to access the uploaded files, the files are dealt with as one multipart file with content type application/octet-stream. here's my front-...
16,395,726
0
<p>Unlike what everyone else tells you, this is unrelated to Windows and <code>File.separator</code>.</p> <p><code>String DIR_PATH = "a/b/c/"</code> is just a String, neither Java nor the compiler make any attempt to understand what it could mean, so you get the same value both on Windows and Linux.</p> <p>Also note t...