pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
16,860,338 | 0 | <p>I had a similar problem and the solution that I found was to replace the startActivityForResult functionality by storing the result into the shared preferences and loading them later in onResume. Check the full discussion <a href="http://stackoverflow.com/q/16837679/2436683">here</a>.</p> |
18,134,031 | 0 | <p>Maybe you are confused by the fact, that the class <code>Ordering</code> is declared as <code>Ordering<T></code>, but the return value of the <code>onResultOf</code> method is <code>Ordering<F></code>.</p> <p>The first type argument of the <code>Function</code>, you are providing to <code>onResultOf</co... |
19,243,491 | 0 | <p>I've been fighting with something like what you show (only one major tick in the axis range). None of the matplotlib tick formatter satisfied me, so I use <code>matplotlib.ticker.FuncFormatter</code> to achieve what I wanted. I haven't tested with twin axes, but my feeling is that it should work anyway.</p> <pre><c... |
19,077,984 | 0 | <p>I have no idea of how windows works, but I'd think that you don't put Magento into <code>C:\Program Files (x86)\PHP\v5.3</code>. So my guess is that the root folder of the virtual host (or whatever equivalent of those on IIS are) is not correctly defined.<br> can you check that?</p> <p>ps: any particular reason you... |
11,701,097 | 0 | <p>In addition to <strong>JapanPro's</strong> answer:<br> Your HTML can have :</p> <pre><code><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </code></pre> <p>instead of an implicit header declaration: </p> <pre><code>HTTP-header (Content-Type: text/html; charset=UTF-8) </code></pre> |
21,599,421 | 0 | <p>It doesn't matter how you pass the arguments to below,</p> <pre><code>while ((i = getopt_long(argc, argv, "MCFA:acdegphinNorstuVv?wxl", longopts, &lop)) != EOF) switch (i) { ... case 'a': flag_all++; break; case 'n': flag_not |= FLAG_NUM; break; ... </code></pre> <p>Just the cases <code>a</code> & <code>n</... |
13,207,244 | 0 | Programmatically adding UITextField to a dropdownlist <p>I have a tableview controlled by a UITableViewController. In this UITableViewController class I have added a <code>UITextField</code> programmatically to my UINavigationItem by adding these lines to my viewDidLoad method :</p> <pre><code>CGRect passwordTextFieldF... |
24,953,980 | 0 | Default Concurrency strategy for Query Cache in Hibernate using ECache <p>I was wondering about the default concurrency strategy for the Query level caching in Hibernate if we do not provide it explicitly. I have gone through the link <a href="https://docs.jboss.org/hibernate/orm/4.0/manual/en-US/html/performance.html#... |
29,945,339 | 0 | <p>You cannot find socat libraries because there are none. socat is implemented as a monolithic executable (it does link to the standard system libraries though). You can download <a href="http://www.dest-unreach.org/socat/" rel="nofollow">socat</a> sources and copy-paste required functionality.</p> |
18,390,045 | 0 | <p>You can do this using <code>hoist</code> from the <code>mmorph</code> package. <code>hoist</code> lets you modify the base monad of anything that implements <code>MFunctor</code> (which is most monad transformers):</p> <pre><code>hoist :: (MFunctor t) => (forall x . m x -> n x) -> t m r -> t n r </code>... |
18,594,451 | 0 | ActiveDirectory DirectorySearcher: why is FindOne() slower than FindAll() and why are properties omitted? <p>I have a loop that retrieves some info from ActiveDirectory. It turned out to be a big performance bottleneck.</p> <p>This snippet (inside a loop that executed it 31 times) took 00:01:14.6562500 (1 minute and 14... |
13,427,097 | 0 | <p>Give your text box a id for example "txtInput" give your iframe a id for example "myIframe" on the button give it no navigation so it stays on current page and use the onclick="myFunction()"</p> <p>in the function you can use this (excuse me if this is slightly wrong its been a while since I have used HTML</p> <pre... |
38,546,526 | 0 | <p>Try this... In Eclipse, go to the Servers menu and right click 'New.' In the 'New Server' window find the 'Configure runtime environments' link (<a href="http://i.stack.imgur.com/Cvkmd.jpg" rel="nofollow">See Pic 1</a>) and once there you then click the server that needs the updated JRE upgrade and then Click 'Edit... |
20,431,810 | 0 | Exit status of child spawned in a pipe <p>Simple question but I cannot find a good answer - here goes with an example:</p> <p>"world.pl" spawns "hello.pl" in a child and processes its stdout. "world.pl" needs to know the exit status of "hello.pl". Making a system call is not an option, since "world.pl" needs to process... |
40,858,469 | 0 | <p>As per you are not using AsyncTask, you can't get the opportunity of onProgressUpdate feature. So, you have to update your progress bar status manually like using own thread and you have already do. But, I solved my problem using below source code, you can check it: </p> <pre><code> private void createThread(){ Run... |
21,829,967 | 0 | <p>Instead of opening the Google Glass camera app, you could take the picture yourself: <a href="http://developer.android.com/training/camera/cameradirect.html" rel="nofollow">http://developer.android.com/training/camera/cameradirect.html</a></p> <p>This is even mentioned in the GDK reference:</p> <blockquote> <p>Buil... |
8,576,109 | 0 | <p>That's impossible to tell, since it depends on the actual runtime environment. A JIT, AOT or Hotspot compiler may very well optimize away the potential method overhead.</p> |
11,655,044 | 0 | Lazy list items are not clicking per item only per row <p>I have been breaking my head trying to get this working but I can't to save my life, I was hoping one of you guys knew how to do it. Basically, I have a list of nature pictures that are loading in a lazy ListView, but my problem is that I can only make the row c... |
37,887,446 | 0 | <p>There is no problem in your code, but the problem in client request, because Content-Type should be like below if you want to upload image,</p> <pre><code>multipart/form-data; boundary="123123" </code></pre> <p>try to remove the Content-Type header and test, i will put one example for server code and client request... |
40,250,979 | 0 | <p>The way to resolve this issue is to force the file to use 8-bit encoding. You could run this PowerShell script to change the encoding of all .SQL files in the current directory and its subdirectories.</p> <pre><code>Get-ChildItem -Recurse *.sql | foreach { $FileName = $_.FullName; [System.Io.File]::ReadAllText($Fil... |
25,684,497 | 0 | Can I execute a stored procedure 'detached' (not keeping DB connection open) on PostgreSQL? <p>I want to execute a long-running stored procedure on PostgreSQL 9.3. Our database server is (for the sake of this question) guaranteed to be running stable, but the machine calling the stored procedure can be shut down at any... |
38,184,474 | 0 | How to setJpegQuality(int i) Camera2API? <p>Please help me to understand how i can set <code>setJpegQuality(int i)</code> in my Camera2API? </p> <p>I have surfed google and there are not a lot sample how to do it in CameraAPI, but there are any samples how to make it with Camera2API...</p> <p>I have found <a href="http... |
11,758,085 | 0 | <p>The short answer is that you cannot do it. At least not officially...</p> <p>see <a href="http://stackoverflow.com/questions/5564263/iphone-vpn-connect-app">iPhone VPN connect app</a></p> <p>However, you may be able to point your app to through an existing VPN channel if it already exists. I would recommend creatio... |
29,531,583 | 0 | <p>You can just do this:</p> <pre><code>echo $memus[0]['name']; </code></pre> <p>Or if you want all of them</p> <pre><code>foreach ($memus as $memu) { echo $memu['name']; } </code></pre> |
16,265,491 | 0 | Infix, prefix or postfix order trough BST to get descending order of printed elements <p>I know that if we print the BST in the infix order i will get ascending order of elements the tree contains. How to get descending order? Using postfix or prefix?</p> |
12,069,487 | 0 | Editing response content on doView() <p>I have a simple <code>JSR 286</code> Portlet that displays a user manual (pure <code>HTML</code> code, not <code>JSP</code>).</p> <p>Actually, my <code>doView</code> method, just contains this : </p> <pre class="lang-java prettyprint-override"><code>public class UserManualPortlet... |
11,443,082 | 0 | Can't Post facebook URL using facebook SDK <p>I have a webapplication that I use to reshare existing post as follow 1)get the post details using <a href="https://graph.facebook.com/UserID_postID?access_token=AAA" rel="nofollow">https://graph.facebook.com/UserID_postID?access_token=AAA</a> (works fine) 2)fill the a data... |
22,750,035 | 0 | Using ANTLR3 in a C++ program <p>I'm currently working on an application that takes a string (a function of a single variable ' x') as input and outputs the derivative of that function. The latter half of the program is not the problem at the moment, the only thing I am having trouble with is "reading" a function from ... |
7,477,544 | 0 | <pre><code>SELECT RIGHT('0' + CONVERT(VARCHAR(2), DATEPART(MM, Op_Date)), 2) + '/' + CONVERT(VARCHAR,DATEPART(yyyy,Op_Date)) </code></pre> |
35,136,050 | 0 | How do I apply a function to all elements of a column that have the same value in another column? <p>I have a long dataframe, that consists of the identifier for a group and a corresponding value. See an example below:</p> <pre><code>FamilyMass Family Body.Mass 1 Chrysochloridae 22.04 2 Chrysochloridae 24.05 3 Chrysoch... |
37,779,035 | 0 | <p>Try this</p> <pre><code> $criteria = array( "prices" => array( $request['min'] ? $request['min'] : false, $request['max'] ? $request['max'] : false ), "colors" => $request['color'] ? $request['color'] : false, "sizes" => $request['size'] ? $request['size'] : false ); $products = Product::with(['sizes' =>... |
19,966,306 | 0 | <p>Two potential sources of the problem, you shouldn't store your files with spaces in their names and you haven't specified a type for your video.</p> <p>The SRC should contain a valid URL and therefore you should have %20 or + in your PHP string in stead of the spaces.</p> <p>Note: As mentioned by Fisk, your php tag... |
18,873,778 | 0 | Building a jekyll site from java <p>I have a java (GWT) web app with products, where users can add products and set their description and price etc.</p> <p>I am thinking about the following flow: whenever a product is updated, run a jekyll build and deploy.</p> <p>this way the eventual site with all the products will b... |
8,946,877 | 0 | grails not using cache <p>I've noticed a slow down on my site and after turning on <code>debug 'org.hibernate.SQL'</code> I see where the troubles are. I've set a domain class to be cached using....</p> <pre><code>class Foo{ ... static mapping ={ cache 'read-only' } String name //<-- simple data type, no association... |
7,628,581 | 0 | <p>Just naming:</p> <ul> <li><a href="http://projects.gnome.org/ORBit2/" rel="nofollow">orbit2</a> <sup>1</sup>, also pyorbit etc.</li> <li><a href="http://omniorb.sourceforge.net" rel="nofollow">omniORB</a></li> <li><p><a href="http://www.theaceorb.com" rel="nofollow">TAO</a> (<em>has already been mentioned</em>)</p>... |
22,532,224 | 0 | <p>in advance, you can through this way to build your view:</p> <p><strong>first</strong> create an Template in your view folder</p> <pre><code><!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <meta content="MajidGolshadi" name="author"> <... |
33,023,158 | 0 | <blockquote> <p>You just need to play with <code>$success</code> like this:</p> </blockquote> <pre><code><?php // Define some constants define("RECIPIENT_NAME", "YOURNAME"); define("RECIPIENT_EMAIL", "YOUR@EMAIL.net"); define("EMAIL_SUBJECT", "Visitor Message"); // Read the form values $success = false; $senderEmai... |
28,577,597 | 0 | <p>You can only transpose a 2D array. You can use <code>numpy.matrix</code> to create a 2D array. This is three years late, but I am just adding to the possible set of solutions:</p> <pre><code>import numpy as np m = np.matrix([2, 3]) m.T </code></pre> |
38,917,572 | 0 | No find member in std::vector <p>Is there any particular reason why <code>std::vector</code> does not have a member function <code>find</code>? Instead you have to call <code>std::find</code> (and <code>#include <algorithm></code>).</p> <p>The reason why I ask is that I think it would be a good thing to be able t... |
32,969,099 | 0 | ActionView::Template::Error: undefined method `children' for nil:NilClas <p>Hello i have an Rspec Test im tring to do for an User controller index action. For user authentication i coded it myself and not using any gems. </p> <p>I get this error when truing to run the test. I looked up all solutions and nothing worked.... |
29,973,869 | 0 | SSH freely inside AWS VPC <p>How do I configure my EC2 machines inside a VPC to be able to ssh without password or key between them?</p> <p>What i'm trying to do is access one machine (which has a public IP) and from this machine access all others freely.</p> <p>Is it even possible?</p> |
21,042,127 | 0 | Spock Integration Test interaction not counted <p>I want to write an integration test for my Grails User Class.</p> <p>I have a <code>afterUpdate()</code>method which calls the afterUpdate method in the userService which calls another service. </p> <p>Now I want to verify that the call to the other service is done corr... |
27,847,909 | 0 | <p>add style before your <code><script></code> tag like this and fix the height of your autocomplete, it will show scroll if results don't fit in the specified height.</p> <pre><code><style> .ui-autocomplete { max-height: 100px; // set whatever you want overflow-y: auto; overflow-x: hidden; //this will pre... |
24,447,848 | 0 | Prefix 0 in Razor Textbox value <p>Here is my Razor text box</p> <pre><code>@Html.TextBoxFor(model => model.ShortBufferHour,new { @maxlength = "2",Style="text-align:center;"}) </code></pre> <p>It shows the <code>Hours</code> as <code>7</code>. How to prefix a <code>0</code> in case of single digit hour. So that the ... |
1,392,852 | 0 | How do I send a PDF in a MemoryStream to the printer in .Net? <p>I have a PDF created in memory using iTextSharp and contained in a MemoryStream. I now need to translate that MemoryStream PDF into something the printer understands.</p> <p>I've used Report Server in the past to render the pages to the printer format but... |
7,542,869 | 0 | <p>Solved thanks to David Heffernan.</p> <p>On my main window i added a static window field which references my main window.</p> <pre><code>public static Window main; Public MainWindow() { main = this; } </code></pre> <p>On the windows I need to hide from task manager and ALT+TAB, I made my main window its owner:</p> ... |
17,702,642 | 0 | <p>Make sure the path to database is right, if you can see the table in you database, then the path is wrong, it could be looking to some other database. just an idea</p> |
31,186,636 | 0 | <p>After digging on cxf forums, I found the answer.</p> <pre><code>Map<String, String> nsMap = new HashMap<>(); nsMap.put("prefix1", "url1"); nsMap.put("prefix2", "url2"); nsMap.put("prefix3", "url3"); nsMap.put("prefix4", "url4"); nsMap.put("prefix5", "http://www.w3.org/2001/04/xmlenc#"); Client client = ... |
303,001 | 0 | <p>I've also had great success using Aptana's Jaxer + jQuery to parse pages. It's not as fast or 'script-like' in nature, but jQuery selectors + real JavaScript/DOM is a lifesaver on more complicated (or malformed) pages.</p> |
27,075,452 | 0 | <p>Simply put, put an ampersand and then amp; as shown below.</p> <blockquote> <p>&amp;amp;</p> </blockquote> |
28,403,532 | 0 | <p>Your best bet is to provide a method to clean up the library. The end user will have to call it (presumably based on handling application lifecycle in the container). You could also provide a <code>Listener</code> for those cases when it is used in a compatible servlet container (e.g., Tomcat), but your end user wi... |
11,102,103 | 0 | How do I get KnowledgeArticleViewStat data from a Visualforce page via SQL queries? <p>I am trying to display information about Knowledge Articles on my page. One of the things I want to display is the most viewed article stat.</p> <p>I have a Visualforce Apex component that looks like this:</p> <pre><code><apex:com... |
27,961,400 | 0 | three.js raycaster with dynamic canvas position <p>i currently have a three.js scene in a twitter bootstrap environment, so the renderer.domelement can resize and change its position dependent on screen resolution, browser window size and so on.</p> <p>Now i have problems using the three.js raycaster to intersect objec... |
40,215,971 | 0 | <p>There is no reason to choose between <code>putIfAbsent</code> and <code>computeIfPresent</code>. Most notably, <code>computeIfPresent</code> in entirely inappropriate as it, as its name suggests, only computes a new value, when there is already an old one, and <code>(k,v)->v</code> even makes this computation a ... |
9,802,372 | 0 | stackoverflowerror when resume an activity at the second time <p>i am designing an app, it has <code>Main Activity</code> with <code>tabhost</code>. my point is that when i click on a <code>tabwidget</code> in tabhost bar, it call to <code>Activity A</code>, in <code>Activity A</code> I have a list of menu, when i clic... |
33,299,274 | 0 | <p>This line:</p> <pre><code>temp = (cell*)realloc(temp, sizeof(cell)); </code></pre> <p>invokes <strong>undefined behaviour</strong> since <code>temp</code> is not initialized. You should initialize it with, e.g., <code>cell *temp = NULL;</code> (understand that <code>realloc</code> can either take a <code>NULL</code... |
25,733,564 | 0 | How can I search for documents that contain three times a special word? <p>Solr should return the documents, that contain a given word minimum three times. What is the query?</p> |
36,773,827 | 0 | Titan Warn: Query requires iterating over all vertices [(name <> null)] <p>I have used below code</p> <pre><code>mgmt = g.getManagementSystem() PropertyKey name = mgmt.makePropertyKey("name").dataType(String.class).make(); mgmt.buildIndex("name",Vertex.class).addKey(name).unique().buildCompositeIndex(); </code></pre> <... |
36,785,089 | 0 | Image galleries with <img> tag? <p>I am building a website, and I need to 'implement' a gallery on a group of photos. Since I'm using Spring MVC, my images are with 'img src..' tag and regular js and jquery addons don't work. Is there any plugin/library that can help me do this? If not, suggestions for making my way ar... |
20,972,745 | 0 | How to track time spent on site <p>In my rails application, I want to track the total time spent on site by individual user. I did research on it but can not get perfect solution.<br> How is it possible.</p> |
40,611,758 | 0 | Error: Type 'GearViewController' does not conform to protocol 'UIPickerViewDataSource' <p>Error:</p> <blockquote> <p>Type 'GearViewController' does not conform to protocol 'UIPickerViewDataSource'</p> </blockquote> <p>Based on <a href="https://developer.apple.com/reference/uikit/uipickerviewdatasource" rel="nofollow no... |
6,142,041 | 0 | <p>Note: For url-safe version of Base64 consider using modifyed set of characters for Base64 ( <a href="http://en.wikipedia.org/wiki/Base64#URL_applications" rel="nofollow">http://en.wikipedia.org/wiki/Base64#URL_applications</a>) instead of custom Base62.</p> <p>I believe you can append 0 to the array first (will mak... |
187,548 | 0 | <p>From the comments to my answer I guess it is not possible to have different credentials for service authentication and http proxy.</p> <p>that suck! :(</p> |
38,318,389 | 0 | <p>I figured out a solution.</p> <p>(1) Export your Voxel Object from MagicVoxel as a .OBJ file.</p> <p>(2) This will create 3 files. Keep the .PNG and .OBJ files. </p> <p>(3) Download a program called blender here: <a href="https://www.blender.org/" rel="nofollow noreferrer">https://www.blender.org/</a></p> <p>(4) Op... |
37,335,733 | 0 | <p>I'm not sure AJAX can upload files, but you can do everything you're talking about with just PHP and HTML, but you'll need to spend some time learning PHP. I would find one of the many online PHP tutorials to start. </p> <p>As far as what you want to do, here is what you need to learn:</p> <ol> <li><p>(HTML/PHP) Ho... |
10,866,319 | 0 | <p><code>String *</code> means a pointer to a <code>String</code>, if you want to do anything with the <code>String</code> itself you have to dereference it with <code>*moj</code>. What you can do instead is this:</p> <pre><code>String moj = String("Alice has a cat"); // note lack of * and new cout << moj[2]; </... |
27,820,436 | 0 | <p>Do not mix sub-query and join logic. Use only one of them. I prefer sub-select.</p> <pre><code>SELECT tblForumSubGroups_1.id, tblForumSubGroups_1.GroupID, tblForumSubGroups_1.SubGroupTitle, tblForumSubGroups_1.SubGroupDesc, (SELECT COUNT(*) FROM dbo.tblForumPosts WHERE dbo.tblForumSubGroups.id = dbo.tblForumPosts.S... |
4,882,030 | 0 | <blockquote> <p>What's the big deal about being able to support a new characterset.</p> </blockquote> <p>Unicode is not just "a new characterset". It's the character set that removes the need to think about character sets.</p> <p>How would you rather write a string containing the Euro sign?</p> <ul> <li><code>"\x80"</... |
8,344,520 | 0 | <p>The post-fix notation is how you do the math in, say, a HP calculator.</p> <p>Keep a stack, whenever you get a number add it to the top. Whenever you get an operator consume inputs from the top and then add the result to the top</p> <pre><code>token stack *empty* 3 3 //push numbers... 4 3 4 2 3 4 2 * 3 8 //remove 4... |
29,248,553 | 0 | <p>It sounds like you were trying to used nested loops, but you in fact had one loop at the beginning which closed out and then you loop through the rest. You need to move your closing curly brace marked below:</p> <pre><code>for($i=0; $i<count($_FILES['upload']['name']); $i++) { $filut = basename($_FILES['upload']... |
31,245,436 | 0 | <p>The '&' characters needs to be encoded in XML as '<code>&amp;</code>'.</p> |
38,696,106 | 0 | <p>There is a typo in the <a href="https://docs.spring.io/spring-boot/docs/1.4.0.RELEASE/api/org/springframework/boot/context/embedded/ErrorPage.html" rel="nofollow">docs</a>, they actually meant "in favor of the superclass, <a href="https://docs.spring.io/spring-boot/docs/1.4.0.RELEASE/api/org/springframework/boot/we... |
23,364,919 | 0 | Connect different points with line in matlab <p>I have matrix of 2 column (x and y) and 100 rows, and each row make one point like (x1,y1). </p> <p>I need to draw a line consecutively between them, like point (x1,y1) to (x2,y2) and (x2,y2) to (x3,y3) and so on till (x100,y100).</p> <p>I have written this code and it's ... |
23,074,589 | 0 | Launch Company Specific apps on iTunes App Store <p>We have an app to launch on App Store. This App is for a company users(free to download) not for publicly use. Our client has purchased the iOS developer program instead of Enterprise account. So is there any way to launch the App on AppStore using developer program. ... |
35,780,494 | 0 | <pre><code>any(x in message for x in myArray) </code></pre> <p>Evaluates to <code>True</code> if <strong><em>at least one</em></strong> string in <code>myArray</code> is found in <code>message</code>.</p> <pre><code>sum(x in message for x in myArray) == 1 </code></pre> <p>Evaluates to <code>True</code> if <strong><em>... |
20,129,501 | 0 | JQuery Sortable Preview <p>I need help with Sortable JQuery UI. My requirement is whenever I move the 1st div (portlet 1) with 5th div (portlet 5) 5th and 1st should get swapped and before releasing the mouse the preview should be the same (portlet 5 should be in the first place). Please help me. Please find the fiddle... |
5,800,357 | 0 | <p>Adjust <a href="http://doc.trolltech.com/4.7/qwidget.html#minimumHeight-prop" rel="nofollow">QToolBar::setMinimumHeight()</a> or <a href="http://doc.trolltech.com/4.7/qwidget.html#minimumSize-prop" rel="nofollow">QToolBar::setMinimumSize()</a> to your needs.</p> <p>And don't forget to use appropriate icon sizes the... |
3,764 | 0 | <p>Second the recommendation on file paths. I've worked on a couple of projects that needed to manage large-ish asset collections, and any attempts to store things directly in the DB resulted in pain and frustration long-term.</p> <p>The only real "pro" I can think of regarding storing them in the DB is the potential ... |
14,624,832 | 0 | <p>The question is really, whether you need the CSR format immediately after the insertion, or you can rather have more insertions first in a more insertion friendly format and convert then to CSR.</p> <p>You may have a look at <a href="http://www-users.cs.umn.edu/~saad/software/SPARSKIT/" rel="nofollow">sparskit</a> ... |
33,147,774 | 0 | <p>You have to enable early bound entities by calling</p> <pre><code>_serviceProxy.EnableProxyTypes(); </code></pre> <p>on your OrganizationServiceProxy instance.</p> <pre><code>var cred = new ClientCredentials(); cred.UserName.UserName = "your username"; cred.UserName.Password = "your password"; using (var _servicePr... |
11,045,515 | 0 | How to Implement shared preference concept in tabhost on android eclipse <p>I am self- learner to android,</p> <p>Assume an android program is going to display some result on a textview.can any one tell me how to show that answer on first tab of the tab host's on the next screen.How to achieve this?</p> <p>As per my kn... |
10,885,092 | 0 | <p>It looks like you're using a listbox in your template, but lists are meant to go straight down. You can do things inside the listbox items that make them look a certain way, but the list box will always create a straight up and down list of items.</p> <p>If you want a grid pattern, use the grid control and the Grid... |
7,066,185 | 0 | <p>Depending on your distribution, install the <code>unzip</code> package. Then simply issue </p> <pre><code>unzip -p YOUR_FILE.jar META-INF/MANIFEST.MF </code></pre> <p>This will dump the contents to STDOUT.</p> <p>HTH</p> |
39,340,387 | 0 | <pre><code>def count_dups(L): ans = [] if not L: return ans running_count = 1 for i in range(len(L)-1): if L[i] == L[i+1]: running_count += 1 else: ans.append(running_count) running_count = 1 ans.append(running_count) return ans </code></pre> |
25,343,201 | 0 | <p>Whoever first wrote that code was either</p> <p>a) Being very defensive against future use. b) Didn't understand how <code>attr</code> works.</p> <p>The method <code>attr</code> (or the underlying call of <code>getAttribute</code> will return either</p> <ul> <li>A string value, of the attribute is found</li> <li><c... |
33,511,823 | 0 | Local notification "schedule" and "trigger" methods are executing multiple times <p>Hi I'm new on ionic and I'm using (katzer/cordova-plugin-local-notifications), I have a problem and I don't know what is happening.</p> <p>When I click in a link, I'm generating a new notification. But I don't know for what when I click... |
3,253,800 | 0 | <p>How about using a utility enumerable method:</p> <pre><code> static IEnumerable<int> RandomNumbersBetween(int min, int max) { int availableNumbers = (max - min) + 1 ; int yieldedNumbers = 0; Random rand = new Random(); Dictionary<int, object> used = new Dictionary<int, object>(); while (true) { in... |
34,802,923 | 0 | <p>You need to use <code>{}</code> around js expressions:</p> <pre><code><List columns={['one', 'two', 'three', 'four']} /> </code></pre> |
9,205,063 | 0 | ProcessBuilder debugging <p>I created an executable jar and executed it using process builder from another java program. Here's my code -</p> <pre><code>public class SomeClass { public static void main(String[] args) { Process p = null; ProcessBuilder pb = new ProcessBuilder("java", "-jar", "src.jar"); pb.directory(new... |
26,716,758 | 0 | <p>Not sure if it's causing the problem, but <code>head</code> and <code>body</code> should be inside the <code>html</code> tag.</p> <pre><code>!!! = surround '<!--[if !IE]> -->'.html_safe, '<!-- <![endif]-->'.html_safe do %html.no-js{:lang => 'en'} %head %body </code></pre> <p>Could be confusing ... |
22,226,407 | 0 | Comparing similarity matrices over time <p>I've computed 4 different similarity matrices for same items but in different time periods and I'd like to compare how similarity between items changes over time. The problem is that order of items i.e. matrix columns is different for every matrix. How can I reorder columns in... |
24,241,335 | 0 | WAITING at sun.misc.Unsafe.park(Native Method) <p>One of my applications hangs under some period of running under load, does anyone know what could cause such output in jstack:</p> <pre><code>"scheduler-5" prio=10 tid=0x00007f49481d0000 nid=0x2061 waiting on condition [0x00007f494e8d0000] java.lang.Thread.State: WAITIN... |
14,384,546 | 0 | Download windows phone sdk 8 offline <p>I just installed Visual Studio 2012 express edition on my Windows 8 machine.</p> <p>Now I wanted to install the Windows 8 Phone's SDK, I know it can be downloaded from here : <a href="http://dev.windowsphone.com/en-us/downloadsdk">http://dev.windowsphone.com/en-us/downloadsdk</a>... |
32,005,527 | 0 | <pre><code>String[] arrFUSE={"3", "true", "0", "FUSE"}; String[] arrPLACE={ "2", "true", "7", "PLACE"}; List<List<String>> arrLIST = new ArrayList<List<String>>(); arrLIST.add( Arrays.asList(arrFUSE) ); arrLIST.add( Arrays.asList(arrPLACE) ); </code></pre> <p>Don't use <code>{</code> on the lin... |
2,088,904 | 0 | Able to include file in ASP.NET, but not check if it exists <p>I want to include certain files in my page. I'm not always sure if they exists, so I have to check if they do. (Otherwise the page crashes, as you probably know)</p> <pre><code><%@ Page Language="C#" %> <html> <body> <% bool exists; exi... |
18,092,036 | 0 | Why is the GUI not working, is the code correct? <p>So Im trying to create 3 panels. The first panel has the layout set (e.g. the radio buttons and next button) I`m now adding two new panels which have different background colors. But when I execute the code I get an error of Null point exception. How do I fix that? </... |
34,552,278 | 1 | Can't see debug print statements using Google App Engine with python <p>I am new to both Google App Engine and Python. When things go wrong I'd like to see variable values and such, but print statements don't seem to be output anywhere. I would have expected them to appear in the same window where I started dev_appserv... |
16,725,188 | 0 | <p>For those for whom the solution provided by cpowers and WonderGrub also didn't work, you should check out the following SO question, because for me this question was actually the answer to my occurence of this problem! <a href="http://stackoverflow.com/questions/7204840/rss20feedformatter-ignores-textsyndicationcon... |
7,778,918 | 0 | Creating a clean unified border around an li and its ul with CSS <p>Within my <code>#header</code> <code>#nav</code>, I have a <code><ul></code> within an <code><li></code> that displays on <code>li:hover</code>. I want to put a border around everything but for some reason adding a border around the main <c... |
9,131,892 | 0 | <p>Duplicate of <a href="http://stackoverflow.com/questions/3314953/load-time-weaving-in-aspectj-using-aop-xml">Load time weaving in AspectJ using aop.xml</a>.</p> <p>Furthermore, the <a href="http://www.eclipse.org/aspectj/doc/next/devguide/ltw-configuration.html" rel="nofollow">AspectJ documentation</a> says:</p> <b... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.