pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
39,513,338 | 0 | <p>The <a href="https://en.wikipedia.org/wiki/List_of_HTTP_header_fields" rel="nofollow">content type</a> in a request header is the content of what you're <em>sending</em>. You're not sending an Excel file, you're requesting an excel file.</p> <p>When you send the <code>"application/x-www-form-urlencoded"</code> cont... |
40,774,613 | 0 | Finding nearest College via API <p>I am working on an app that wants to detect the nearest college to the user's current location. I've been trying to figure out how to do it and came across this post (<a href="http://stackoverflow.com/questions/16561296/finding-nearest-locations-using-google-map-api">Finding nearest l... |
5,805,173 | 0 | <p>All the qt widget classes can be styled via <a href="http://doc.qt.nokia.com/latest/stylesheet-reference.html" rel="nofollow">stylesheets</a>, depending where create your popup (designer, or in code) assign it a stylesheet with the look that you want it to have. You can test stylesheets in designer by assigning a s... |
31,572,280 | 0 | <p>It is not ideal to use $_GET with passwords as anyone can see it in the browser, anyway it's very easy to do. All you have to do is change your form tag to the following:</p> <pre><code><form action="login.php" method="get"> </code></pre> <p>As you can see method is now get instead of post. In your php just u... |
32,588,491 | 0 | <pre><code>DECLARE @StartDate DATETIME, @EndDate DATETIME SET @StartDate = dateadd(mm, -1, getdate()) SET @StartDate = dateadd(dd, datepart(dd, getdate())*-1, @StartDate) SET @EndDate = dateadd(mm, 1, @StartDate) set @StartDate = DATEADD(dd, 1 , @StartDate) </code></pre> |
34,689,702 | 0 | <p>Your need tells that your strategy is not correct. And even if it worked, your code readability and maintenability will not be good! Anyway, I suggest that you create a function instead of your procedure, which you may call whenever needed and replace the original variable with the output.</p> <p>An Example: </p> <... |
1,713,835 | 0 | <p>This is covered in the <a href="https://jax-ws.java.net/2.2.10/docs/ch05.html#section-jaxws-faq6" rel="nofollow noreferrer">FAQ</a> of JAX-WS:</p> <blockquote> <p><strong>Q. How can I change the Web Service address dynamically for a request ?</strong></p> <pre><code>((BindingProvider)proxy).getRequestContext().put(... |
22,470,626 | 0 | How to correctly configure Facebook Connect for PhoneGap Build version 3.3? <p>I’m not finding any recent documentation on how to correctly install Facebook Connect on Android for PhoneGap Build version 3.3. Each time I try to authenticate a user on an android emulator nothing happens. I’m not even sure I am doing the ... |
36,777,279 | 0 | Trie implementation runtime error <p>I'm trying to implement a Trie in C++ but I'm getting runtime error... </p> <p>Here is my code:</p> <pre><code>#include <bits/stdc++.h> using namespace std; struct trie{ bool word = false; trie* adj [26]; trie(){} void add(char* s){ trie* t = this; while(s){ if(t->adj[s[0] ... |
39,735,605 | 0 | <p>The code you have isn't for the Arduino but is written in a language called Processing. It will run on your PC and collect the data from the Arduino to be saved to a file. You need to download the <a href="https://processing.org/download/" rel="nofollow">Processing IDE</a> to compile the code and run it.</p> |
2,792,619 | 0 | <p>It's platform-specific. But you can cast it to a known type.</p> <pre><code>printf("%lld\n", (long long) time(NULL)); </code></pre> |
27,573,722 | 0 | <p>I had a similar problem, here is what i did:</p> <pre><code>{{ longString | limitTo: 20 }} {{longString.length < 20 ? '' : '...'}} </code></pre> |
39,013,435 | 0 | Android SMSManager sendTextMessage saves messages as draft sometimes <p>i am glad to be able to send SMS from an Android App using</p> <pre><code> SmsManager smsManager = SmsManager.getDefault(); smsManager.sendTextMessage(strNum, null, strTxt, null, null); </code></pre> <p>But in some cases, it saves the message as dr... |
7,159,655 | 0 | <p>It Seems that DataAvailable callback is getting called even when buffer is null.</p> <p>I modified a function in <code>WaveIn.cs</code> file and its working fine now. I am not sure if this is correct, but for now, this is working for me.</p> <pre><code>private void Callback(IntPtr waveInHandle, WaveInterop.WaveMess... |
36,411,766 | 0 | <p>You should set the Adapter before adding the layoutManager </p> <pre><code> updateUI(); mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity())); </code></pre> |
21,833,035 | 0 | How can I get a TCP server to send a message back to the client? <p>I'm at a complete loss as to how I can get my server app to send a message back to the client after the client sent a message. My goal is the client sends a message say "Hello" to the server the server receives the message then sends back to the client... |
13,075,769 | 0 | lightbox for images not getting applied <p>i have some issue regarding LightBox for images</p> <p>issue is when i load images from external php file it is not showing the images in lightbox.</p> <pre><code> <script type="text/javascript"> $(document).ready(function(){ //Display Loading Image function Display_Load... |
15,020,505 | 0 | <p>The events in a DOM start somewhere in your tree going down to the element (capturing phase) and then they bubble up the DOM (bubbling phase).</p> <p>You can catch the event and stop it from propagating. It wont be propageted further then and wont call other event handlers (like your second function) which are atta... |
4,544,724 | 0 | <p>You'd have to cast to decimal for smaller numbers</p> <pre><code> select cast(power(cast(101 as float),50) as decimal(38,0)) % 221 </code></pre> <p>or</p> <pre><code> select power(cast(101 as decimal(38,0)),50) % 221 </code></pre> <p>This fails though with such a large number</p> <p>But then it makes no sense anywa... |
25,130,034 | 0 | <p>For future reference,</p> <p>You should be using a WebService (ASMX) file to process and return your JSON. Remember that the javascript success block will only be called with a returned http 200 status code.</p> <p>If you ever get to using the MVC framework its even easier by just returning a JSON result type.</p> ... |
40,655,961 | 0 | <p>You can check <a href="https://github.com/baskerville/xdo" rel="nofollow noreferrer">xdo</a> which can do a decent job with minimal ressources.</p> |
10,039,596 | 0 | <p>Yep, jQuery has a <a href="http://api.jquery.com/checked-selector/" rel="nofollow">Checked Selector</a>:</p> <pre><code>var checkedBoxIds = $("input:checked").id(); </code></pre> |
19,257,166 | 0 | <p>Correct...and to launch you even further, check out this modification. </p> <p><a href="http://jsfiddle.net/Fv27b/2/" rel="nofollow">http://jsfiddle.net/Fv27b/2/</a></p> <p>Here, you'll see that not only are we combining the options, but we're creating our own binding entirely...which results in a much more portabl... |
30,422,396 | 0 | <p>Try this and put profile image </p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>$('img').on('click', function() { $('.hoverelement').toggle(); });</code></pre> <pre class="snippet-code-css lang-css prettyprint-o... |
28,330,265 | 0 | iOS objective C NSData to NSString return nil <p><code>data</code> is downloaded from website, </p> <pre><code>NSString * html = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; </code></pre> <p><code>html</code> is <code>nil</code>, but </p> <pre><code>NSString * html = [[NSString alloc] initWithDat... |
7,046,328 | 0 | <pre><code>/*! * reads binary data into the string. * @status : OK. */ class UReadBinaryString { static std::string read(std::istream &is, uint32_t size) { std::string returnStr; if(size > 0) { CWrapPtr<char> buff(new char[size]); // custom smart pointer is.read(reinterpret_cast<char*>(buff.m_obj), ... |
26,172,961 | 0 | <p><a href="http://jsfiddle.net/9uppsLqa/5/" rel="nofollow">http://jsfiddle.net/9uppsLqa/5/</a></p> <pre><code>.arrow_box { border-radius: .1875em; z-index: 99; position: relative; box-shadow: 0 0 0 1px rgba(0,0,0,0.15),inset 0 0 0 1px rgba(255,255,255,0.6), 0 4px 2px -2px rgba(0,0,0,0.2),0 0 1px 1px rgba(0,0,0,0.15);... |
8,659,428 | 0 | <p>I know how.</p> <p>Let's say you have a <code>DataList</code> name myDataList, and a <code>TextBox</code> in it named by myTextBox.</p> <pre><code>foreach (DataListItem item in myDataList.Items) { TextBox myTextBox = (TextBox)item.FindControl("myTextBox"); string text = myTextBox.text; // Do whatever you need with ... |
19,816,451 | 0 | How to float text next to iframe <p>I'm trying to float text left of an iframe. I have the below, though it will not float. What needs to be changed? Canvas width is 800px</p> <pre><code><p class="float-left"></p> <iframe class="float-right" width="420" height="315" src="//www.youtube.com/embed/" framebo... |
33,955,850 | 0 | <p>In Excel, you can do it using an array formula to search for the next frequency which is in range:-</p> <pre><code>=MATCH(1,(B2:B$10>=49)*(B2:B$10<=51),0)-1 </code></pre> <p>if your frequencies start in B2.</p> <p>Must be entered in C2 with <kbd>Ctrl</kbd><kbd>Shift</kbd><kbd>Enter</kbd></p> <p>Here is a modi... |
2,996,662 | 0 | ASP.net - Does a return statement in function stop the function? <p>Given the function</p> <pre><code>'Returns true if no cell is > 1 Function isSolutionValid() As Boolean Dim rLoop As Integer Dim cLoop As Integer For cLoop = 0 To canvasCols - 1 For rLoop = 0 To canvasRows - 1 If canvas(cLoop, rLoop) > 1 Then Ret... |
16,474,110 | 0 | <p>With PowerShell you're likely to find many different ways to do the same thing. Here's a way to do this as one-liner:</p> <pre><code>PS> 'Tom1Jerry02','abcd0asdf001','qwerty1' | Foreach {if ($_ -match '(\d+)$') {$matches[1]}} 02 001 1 </code></pre> |
28,206,222 | 0 | <p>If you want to specify a literal color value in a geom_segment, you should not include it in the <code>aes()</code>. For example using this test data</p> <pre><code>DF_for_plotting <- data.frame( variable=rep("StrpCnCor",4), value=c(0, 50.79330935, 81.127731, 100) ) </code></pre> <p>you can do</p> <pre><code>ggp... |
25,026,161 | 0 | <blockquote> <p>How do I read json with bash?</p> </blockquote> <p>You can use <a href="http://stedolan.github.io/jq/" rel="nofollow"><code>jq</code></a> for that. First thing you have to do is extract the list of hostnames and save it to a bash array. Running a loop on that array you would then run again a query for ... |
5,917,442 | 0 | Getting the data of Ancestor node + XQuery-Sql <p>This is how my XML looks like : </p> <pre><code> <Product sequence_number="1" number="1543448904" id="S1" unit_number="1"> <consumer_narrative name="GLENN,GREGORY" date_filed="02/13/2009"> <message type="Consumer Comments">THE CONSUMER STATES THIS WAS ... |
22,675,938 | 0 | <p>There's nothing special here about it being main(). The same will happen if you do this for any function. Consider this example:</p> <p>file1.cpp:</p> <pre><code>#include <cstdio> void stuff(void) { puts("hello there."); } void (*func)(void) = stuff; </code></pre> <p>file2.cpp:</p> <pre><code>extern "C" {void... |
10,616,506 | 0 | <p>If you use XIBs make mask for your subviews as shown here:</p> <p><img src="https://i.stack.imgur.com/Av5v6.png" alt="Center without resizing of subviews"></p> <p>or here:</p> <p><img src="https://i.stack.imgur.com/xOduO.png" alt="Center with resizing of subview"></p> <p>If you prefer to use code use posted one by ... |
38,145,574 | 0 | <p>You can use the layout and code below to achieve the desired effect. <a href="https://gist.github.com/trivalent/00526294fa38072a6034f5dc5910824a" rel="nofollow">Source code gist</a></p> <p>What I have used is get the width of the text + the time layout and check if this exceeds the container layout width, and adjus... |
15,024,854 | 0 | <p>This isn't possible. There's no way to know with certainty that <code>"11/4/2012 1:04:28 AM"</code> is PST and not actually an observation between <code>"11/4/2012 12:51:20 AM"</code> and <code>"11/4/2012 1:13:08 AM"</code> PDT.</p> <p>If you're certain the observations are ordered in the file, you could convert th... |
23,989,955 | 0 | <p>It's not one json string but an array of json strings. You have to first loop thru the array, parse the json and show the variables that you want in your html with jQuery.</p> <p>You can find a lot of info on the internet and stackoverflow on this subject.</p> |
5,180,309 | 0 | <p>I would use <a href="http://www.clutter-project.org/" rel="nofollow">clutter</a>, for details use the clutter examples, they are pretty nice.</p> <p><strong>Edit:</strong></p> <p>If you can not use clutter, you may have a look at <a href="http://cairographics.org/" rel="nofollow">cairo</a> which also has some neat ... |
12,572,211 | 0 | <p>So apparently, you can't just take any temporary key and sign the APPX with it. In particular the certificate subject lines must match(the "publisher name"). I do not know of a better way of determining what the subject line much actually be so bare with me. First, try to use signtool and sign the APPX file with an... |
32,024,168 | 0 | <p>Let's take an specific example and figure out what it does in the kernel 4.1, e.g. <code>IHEX</code>.</p> <p><strong>Find what a code does</strong></p> <p>Just run:</p> <pre><code>make SHELL='sh -x' </code></pre> <p>How that works: <a href="http://stackoverflow.com/a/32010960/895245">http://stackoverflow.com/a/3201... |
11,910,787 | 0 | <p>It was most likely an issue of permissions, but I never got it to work on its own (might've been something to do with using a Windows server). Anyway, my co-worker tried a different Linux server and got it to run fine. Thanks for the feedback still, CBroe.</p> |
30,281,143 | 0 | React.js creating a table with a dynamic amount of rows with an editable column <p>I am trying to create a react.js table that syncs with a leaflet map. I have this data and I am able to get the data properly, but I cannot create a table correctly. I am able to see the headers because they are hardcoded, but I am not a... |
7,345,130 | 0 | Problem while consuming external webservice using WSClient <p>i am using wsclient plugin to consume external web services.</p> <pre><code> proxy = new WSClient("http://www.w3schools.com/webservices/tempconvert.asmx?WSDL", this.class.classLoader) proxy.initialize() result = proxy.CelsiusToFahrenheit(0) println "You are ... |
1,160,590 | 0 | <ul> <li><a href="http://stackoverflow.com/questions/1159956/how-to-convert-powerbasic-types-to-vb6-types/1160183#1160183">Jim's answer</a> looks good. I'd also suggest looking at the <a href="http://vb.mvps.org/tips/vb5dll.asp" rel="nofollow noreferrer">Microsoft advice</a> on writing C DLLs to be called from VB. Ori... |
33,628,226 | 0 | <p><code><jenkins_url>/computer/</code> shows os and architecture for each node:</p> <pre><code>[online] node1 Linux (i386) [online] node2 SunOS (sparcv9) [online] node3 Linux (amd64) [online] node4 Windows Server 2008 R2 (amd64) [online] node5 Windows 7 (x86) </code></pre> <p>If you want to distinguish linux di... |
15,654,296 | 0 | Unable to instantiate service on adding intent.setClassName(context, ProcessIntent.class.getName()); <p>I am developing an application which uses Google Cloud Messaging. I am referring to this link to start making the application. </p> <blockquote> <p><a href="http://developer.android.com/google/gcm/gcm.html" rel="nofo... |
20,134,620 | 0 | <p>The <a href="https://github.com/ServiceStack/ServiceStack/tree/master/tests/ServiceStack.AuthWeb.Tests" rel="nofollow">ServiceStack.AuthWeb.Tests</a> is an ASP.NET WebHost showing <a href="https://github.com/ServiceStack/ServiceStack/blob/master/tests/ServiceStack.AuthWeb.Tests/AppHost.cs#L78" rel="nofollow">all th... |
27,138,430 | 0 | <p>it is possible, however keep in mind that the user will have to have "Allow installation of non-Market-applications/unknown sources" enabled in their settings.</p> |
29,472,625 | 0 | <p>Do you see this behavior when you start Emacs without your init file (<code>emacs -Q</code>)? I doubt it. If not, then recursively bisect your init file to find out what is causing the problem.</p> <p>The minibuffer uses its own keymaps, which are local and which therefore take precedence over global keymap binding... |
32,902,977 | 0 | play framework test connection refused <p>I have a huge problem with my play 2.4 application. Every time I try to start my application with <code>activator test</code>, I get the following error:</p> <pre><code>java.net.ConnectException: Connection refused: localhost/127.0.0.1:9000, took 0.0 sec [error] at com.ning.htt... |
13,954,594 | 0 | building website using webservice and SOAP in ASP.NET <p>I am new in web application. I don't know much about web services and SOAP. I am studying. Trying to understand what they are? </p> <p>in parallel i wanted to make a simple demonstration using web service and SOAP protocol. I have a form(default.aspx) in my local... |
11,266,783 | 0 | recv() with MSG_PEEK shows full message but returns 'would block' normally <p>I have a non-blocking winsock socket that is <code>recv</code>'ing data in a loop.</p> <p>I noticed that when connecting with, say, putty and a raw socket, sending messages works just fine. However, when interfacing with this particular clien... |
11,302,941 | 0 | <pre><code>$('a:contains("Link 1"), a:contains("Link 3")', '.navBox').on('click', function(e){ e.preventDefault(); $('.lowerContainer').slideToggle(); }); </code></pre> |
22,493,819 | 0 | <p>This is a job for <code>merge</code>:</p> <pre><code>KEYS <- data.frame(A = AList, B = BList) merge(DATA, KEYS) # A B Value # 1 1 6 9 # 2 3 8 2 </code></pre> <hr> <p><strong>Edit</strong>: after the OP expressed his preference for a logical vector in the comments below, I would suggest one of the following.</p> ... |
5,215,462 | 0 | <p>It seems that you want the column value to match the start of your pattern:</p> <pre><code>SELECT * FROM my_table WHERE 'example.com' LIKE CONCAT(my_table.my_column, '%'); </code></pre> <p>The downside of this is that it isn't going to use any indexes on my_column.</p> |
13,128,464 | 0 | <p>I suspect the problem you're having is related to this issue: <a href="http://stackoverflow.com/questions/8025082/facebook-authentication-in-a-uiwebview-does-not-redirect-back-to-original-page-o">Facebook authentication in a UIWebView does not redirect back to original page on my site asking for auth</a></p> <p>Spe... |
26,736,346 | 0 | <p>Body = e.Value.AlternateViews.GetHtmlView().Body, </p> |
38,640,147 | 0 | <p>try</p> <pre><code>where cast(tbRegistrant.DateEntered as date) >= cast('20150701' as date) and CAST(tbRegistrant.DateEntered) <= cast('20160630' as date) </code></pre> |
2,413,408 | 0 | WebOrb - Serializing an object as a string <p>We have an Adobe Flex client talking to a .NET server using WebORB. Simplifying things, on the .NET side of things we have a struct that wraps a ulong like this:</p> <pre><code>public struct MyStruct { private ulong _val; public override string ToString() { return _val.ToSt... |
8,057,676 | 0 | <p>From the install steps you've listed it sounds like you're missing a few steps.</p> <p>Definitely revisit the <a href="http://docs.haystacksearch.org/dev/tutorial.html" rel="nofollow">Haystack setup instructions</a> with a particular eye to looking at the Create a Search Site and Creating Indexes sections.</p> <p>T... |
23,242,909 | 0 | <p>you have to update your html code little bit as follows to store clicked number button's value into textbox. Here, I stored that value in both textboxes. I replaced code little bit of textbox, number's button and added one javascript function instead all code is as it is. Please, give one look.</p> <p>Textboxes: </... |
30,335,543 | 0 | Catching multiple exceptions - Python <p>I have a program that occasionally throws a badStatusLine exception, after catching it we are now getting another error and I can't seem to catch it so the program doesn't stop. Here is what I have, any help would be appreciated.</p> <p>The error:</p> <pre><code>Exception in thr... |
17,908,875 | 0 | <p>It is very unlikely that the compiler will generate something different from the other. Nearly all modern processors have a <code>greater or equal</code> or <code>less or equal</code> comparison/branch operation, so there should be no reason to make a more complex comparison. </p> <p>The statement</p> <pre><code> i... |
6,838,902 | 0 | Problem deserializing JSON into KeyValuePair using JSON.NET <p>This is part of a larger problem I am working on. However, I have attempted to break it down to the simplest form possible.</p> <p>I am using JSON.Net, and trying to deserialize several JSON objects into KeyValuePair, but I cannot get even a simple example ... |
65,287 | 0 | <p>Not sure about .doc support in any open source library but ImageMagick (and the RMagick gem) can be compiled with pdf support (I think it's on by default)</p> |
40,060,346 | 0 | <p>The combination of <code>kAudioDevicePropertyNominalSampleRate</code> and <code>kAudioObjectPropertyScopeGlobal</code> will get the callback to work correctly. The documentation of this selector (CoreAudio/AudioHardware.h) doesn't tell me what scope to use, though. If anyone finds a source of proof/reason for this,... |
22,748,000 | 0 | Mongodb 2.6.0-rc2 and PHP 1.4.5 - find _id $in <p>A simple query like this:</p> <pre><code>$a = array('_id' => array( '$in' => array_values($ids) ) ); var_dump($a); $cursor2 = $data->find( $a ); </code></pre> <p>works in mongodb 2.4.9, however, in 2.6.0-rc2 returns this:</p> <pre><code>Type: MongoCursorExcepti... |
20,604,200 | 0 | Well Is this facebook app following all the rules(TOS)? <p>Well I found this app (just a demo app for sale) <a href="http://apps.facebook.com/horoscope-demo/" rel="nofollow">http://apps.facebook.com/horoscope-demo/</a></p> <p>But before buying I am confused with: This app</p> <p>Asks to post on wall at first use</p> <p... |
11,592,050 | 0 | How to write a query with mysql where I could have some value compaired to multiple values with subquery <p>I've been coding all night so if this question makes no sense I apologize. It's been a while since I've had to write out a query but I thought there was a way where I could do something like...</p> <pre><code>(SE... |
5,092,845 | 0 | Point to location using compass <p>I am trying to develop a compass for an appliation which has a set of annotations on a map. I would like to be able to choose an annotation and then have the compass point the user to the chosen location.</p> <p>I have calculated the degress from the user's location to the location of... |
9,565,503 | 0 | <p>This might work for you:</p> <pre><code>v1="a b c" v2="1 2 3" v3="x y z" parallel --xapply echo {1}{2}{3} ::: $v1 ::: $v2 ::: $v3 a1x b2y c3z </code></pre> |
32,746,238 | 0 | <p>Add to your <code>if</code> validation condition to not validate if a new step is the back one, like this:</p> <pre><code>if (event.getOldStep().contains("part") && !event.getNewStep().equals("model")) { ... } </code></pre> <p>or for the first if</p> <pre><code>if (event.getNewStep().contains("model") { ret... |
11,610,856 | 0 | Ubuntu 12.04 and cassandra install - +HeapDumpOnOutOfMemoryError -Xss128k <p>I am following the instructions for installing cassandra at <a href="http://www.datastax.com/docs/1.1/install/install_deb">Install Cassandra</a></p> <p>When I installed, I get the below. How to I fix?</p> <pre><code>service cassandra start xss... |
4,779,671 | 0 | <p>You should use a <a href="http://developer.android.com/reference/android/widget/ViewSwitcher.html" rel="nofollow"><code>ViewSwitcher</code></a> and switch the views using a gesturedetector</p> |
40,993,051 | 0 | how to prepare a list of posters presented at conferences, in LaTeX? <p>Does anybody know how to prepare, in LaTeX, a list of oral presentations or poster presented at conferences ? How should I add this to my *.bib file ? </p> |
30,425,701 | 0 | iOS Get timestamp without hours and minutes and seconds <pre><code> NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; [dateFormat setDateFormat:@"dd/MM/yyyy"]; NSString *theDate = [dateFormat stringFromDate:date]; time_t unixTime = (time_t) [date timeIntervalSince1970]; </code></pre> <p>i need unixTime with... |
9,373,944 | 0 | <p>I've had some luck with this, even if it doesn't completely work.</p> <h2>The spinner adapter's get view :</h2> <pre><code>public View getView(int position, View v, ViewGroup parent) { if (v == null) { LayoutInflater mLayoutInflater = mActivity.getLayoutInflater(); v = mLayoutInflater.inflate(R.layout.user_row, nul... |
6,939,243 | 0 | TFS Integration Platform: How to map users with the SVN adapter? <p>I want to migrate sourcecode from SVN to TFS2010 using the TFS Integration Platform.</p> <p>I am using the Codeplex Release from March 25th of the TFS Integration Platform.</p> <p>The SVN Adapter basically works. I can get the sourcecode from the SVN r... |
7,774,010 | 0 | <p>Well, having just tried it myself with the C# 4 compiler, I got an internal <em>class</em> called <code><PrivateImplementationDetails>{D1E23401-19BC-4B4E-8CC5-2C6DDEE7B97C}</code> containing a private nested <em>struct</em> called <code>__StaticArrayInitTypeSize=12</code>.</p> <p>The class contained an intern... |
25,433,843 | 0 | <p>If you are using:</p> <pre><code><%= render 'form', locals: {record: @record} %> </code></pre> <p>then, you will need to use variable <code>record</code> instead of <code>@record</code> in your <code>_form.html.erb</code> as:</p> <pre><code><% unless record.nil? %> </code></pre> <p><strong>Description:<... |
12,550,659 | 0 | Make awk interpret one line at a time from variable <p>I'm a completely new to shell scripting and bash. My question is how do I get awk to interpret a variable which contains linebreaks the same way as awk interpret the data from stdin?</p> <p>Example:</p> <pre><code>fileData=`cat /path/to/file` echo $fileData | awk '... |
16,751,436 | 0 | <p>You should not use MapPath() twice for the same path.</p> <p>Old Code:</p> <pre><code>System.IO.Directory.CreateDirectory(MapPath(path)); //Create directory if it doesn't exist </code></pre> <p>Corrected Code:</p> <pre><code>System.IO.Directory.CreateDirectory(path); //Create directory if it doesn't exist </code></... |
24,076,318 | 0 | My json model in three.js is not working <p><strong>Hello!</strong> I have <a href="http://eliasljunglov.net78.net" rel="nofollow">this website</a> where I post my games. I have imported a json model and it is not rendered correct. Only 50% of the parts are visible. I have not done any textures on it yet. Anyone know t... |
28,591,420 | 0 | <p>This really depends on a number of factors but is generally a bad idea and can lead to <a href="http://en.wikipedia.org/wiki/Race_condition" rel="nofollow">race conditions</a>. You can avoid this by locking the value so that reads and writes are all atomic and thus can't collide.</p> |
21,235,619 | 0 | <p>You can try to use <a href="http://api.jquery.com/multiple-attribute-selector/" rel="nofollow">multiple attribute</a> selector:</p> <pre><code>$('tr[:nth-child(odd)][id^="part"]').addClass("alt"); </code></pre> |
15,885,045 | 0 | Text following a JqueryUI button is set as the button title <p>I have the following code:</p> <pre><code>$( ".delete" ).button({ text: false, icons: { primary: "ui-icon-trash" } }); <button id="delete" class="delete" />test </code></pre> <p>The word "test" is being appended to the button as its title, for some re... |
30,723,985 | 0 | <p>Your using old SDK tools and goolge play services.Please update your Android SDK tools and Google play services,because latest google play service will provide the inbuilt in google analytic service no need to add libGoogleAnalyticsServices.jar file to your project.Then you will simple use these method and import s... |
12,815,639 | 0 | <p>You could fetch the employees, store the result in an array and provide this array as the <a href="http://api.jqueryui.com/autocomplete/#option-source" rel="nofollow">option source</a>. </p> |
10,317,360 | 0 | <p>Have you tried creating a derived class of RequiredAttribute and overriding the FormatErrorMessage method? This should work:</p> <pre><code>public class MyRequiredAttribute : System.ComponentModel.DataAnnotations.RequiredAttribute { public override string FormatErrorMessage(string name) { return base.FormatErrorMes... |
17,421,790 | 0 | How to replace EclipseLink 2.3.2 with EclipseLink 2.5 in WebLogic Server 12c <p>I currrently try to run Docx4j in WebLogic Server 12c. WebLogic Server 12c comes with EclipseLink 2.3.2. </p> <p>There is a similar <a href="http://stackoverflow.com/questions/16934344/docx4j-bad-content-types-xml-with-weblogic-12c">Post</a... |
9,113,071 | 0 | <p>Have you tried installing the Azure emulator?</p> <p>See <a href="http://connect.microsoft.com/VisualStudio/feedback/details/719329/azure-tools-1-6-fail-to-install-and-show-a-weird-error-unless-azure-emulator-is-installed-first" rel="nofollow">here</a></p> |
18,353,167 | 0 | App design to MVC pattern <p>The answer on this question <a href="http://stackoverflow.com/questions/18317679/swing-how-to-get-container-bind-to-jradiobutton">Swing: how to get container bind to JRadioButton?</a> made me think of MVC in a simple app design. I describe the general idea of an app and my thoughts on MVC p... |
33,821,655 | 0 | <p>It seems that your TFS Build Service account has no required permission to access the signingKey.pfx on build agent machine. Make sure you have this file on build agent machine first. </p> <p>Then follow below steps:</p> <ol> <li>Log on the build agent as <strong>your local build service account</strong> (Better ha... |
27,262,737 | 0 | <p>EDIT: Changed my answer since there is an <code>initial-index</code> attribute which is better. Sorry about that.</p> <p>Use <code>initial-index="2"</code> (or whatever index you like) as an attribute for <code><ons-carousel></code>.</p> <pre><code><ons-carousel initial-index="2"> ... </ons-carousel&... |
2,531,620 | 0 | <p>Click the Info button on your xib's main window, and set the Deployment Target to iPhone OS 3.0 or iPhone OS 3.1.</p> <p>Edit: Images!</p> <p><img src="http://derailer.org/images/stackoverflow/ibinfobutton/infobutton.png" alt="Info Button"> <img src="http://derailer.org/images/stackoverflow/ibinfobutton/deploymentt... |
19,826,210 | 0 | <p>what you want in your for loop is </p> <pre><code>for(k = deck.length - 1; k >= 0; k--) </code></pre> <p>your indexing is off and it never enters the shuffle algorithm ( I didn't check the correctness of it FYI so you might bump into other problems)</p> |
30,461,485 | 0 | <p>If you really want to use <code>QTableView</code>, then it has special method called <code>setIndexWidget</code> and you need only index where you want to put the widget. Small example.</p> <pre><code> model = QStandardItemModel (4, 4) for row in range(4): for column in range(4): item = QStandardItem("row %d, colum... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.