pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
18,380,923 | 0 | <p>I'm quite new on that and I don't know if I am understanding your question, but why you don't use "backticks" instead of "system"? It would let you store the output in a variable and then you can do with this variable whatever you want.</p> <p>About backticks: <a href="http://stackoverflow.com/questions/799968/what... |
35,835,296 | 0 | Automatically restore last saved document on application launch <p>I have a Core Data Document Based application written in swift and using storyboards. Whenever I build and launch the app, instead of automatically opening the last opened document(s), it will create a new document. What I want to be able to do is have ... |
23,089,080 | 0 | Number of submatricies containing all zeros <p>Is there a way to find a number of rectangular submatrices containing all zeros with a complexity smaller than O(n^3), where n is the dimension of given matrix?</p> |
34,678,213 | 0 | <p>It can also be caused by <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=475368" rel="nofollow">this</a> bug, if you're having Eclipse 4.5/4.6, an Eclipse Xtext plugin version older than v2.9.0, and a particular workspace configuration.</p> <p>The workaround would be to create a new workspace and import the ... |
18,486,496 | 0 | <p>If you ultimately decide to move the cache outside your main webserver process, then you could also take a look at <a href="http://en.wikipedia.org/wiki/Consistent_hashing" rel="nofollow">consistent hashing</a>. This would be a alternative to a replicated cache.</p> <p>The problem with replicated caches, is they sc... |
26,633,743 | 0 | Fragments won't show up in activity extending ActionBarActivity <p>I have a main activity extending ActionBarActivity. In my activity i create a fragment which isn't showing up. I modified the main activity to extend FragmentActivity and in this case the fragment is showing up. Why isn't the fragment showing up when my... |
4,975,957 | 0 | <blockquote> <p>where someone recommended the BackgroundWorker class this MSDN article mentions it is a bad idea to use this when if it manipulates objects in the UI, which mine does for purposes of displaying status counts</p> </blockquote> <p><a href="http://msdn.microsoft.com/en-us/library/system.componentmodel.bac... |
17,259,286 | 0 | jquery blinking text and div reload <p>I have a div that refreshes every 30 seconds and I also have text that blinks if it's new content (checked by a cookie).</p> <pre><code>setInterval(function() { $('#reload').load('/page.php #reload'), function() {} }, 30000); // check if atis cookie exits var Key = $("#key").data(... |
40,638,928 | 0 | <p>Try to play with this:</p> <pre><code>object OptIdx { def main(args: Array[String]) { println(get_deltas(tests)) } var tests = List( List(Some(313.062468), Some(27.847252)), List(Some(301.873641), Some(42.884065)), List(Some(332.373186), Some(53.509768))) def findDifference(oldPrice: Option[Double], newPrice: Optio... |
16,165,095 | 0 | Wordpress, magic fields and post types in menu's <p>I used magic fields a while back and I don't remember having any issues getting my post types to display in my menus.</p> <p>From what I remember and have been able to research online all I need to do is the following:</p> <ol> <li>Create a new Post type in Magic fiel... |
21,189,838 | 0 | <p>You will find a nice tutorial here: <a href="http://www.jusuchyne.com/codingforme/2012/12/jira-migrating-certain-projects-from-instance/" rel="nofollow">http://www.jusuchyne.com/codingforme/2012/12/jira-migrating-certain-projects-from-instance/</a></p> <p>As described <a href="https://answers.atlassian.com/question... |
13,442,034 | 0 | Handlebars Bindings with Variable <p>i'm trying to create a Binding in Handlebars/Ember to an Object with a dynamic Key like this:</p> <pre><code>{{view Ember.TextArea valueBinding="foo.[view.content.someid]"}} </code></pre> <p>when im trying this with a static Key, everything is working fine</p> <pre><code>{{view Embe... |
10,145,469 | 0 | decltype for member functions <p>How can I get the return type of a member function in the following example?</p> <pre><code>template <typename Getter> class MyClass { typedef decltype(mygetter.get()) gotten_t; ... }; </code></pre> <p>The problem, of course, is that I don't have a "mygetter" object while defining... |
36,569,227 | 0 | Select two columns from same table with different WHERE conditions <p>I have two select statements and I want to generate two columns, one from each statement side by side using these two select statements inside a single select statement</p> <p><strong>Query 1</strong></p> <pre><code> SELECT DISTINCT CASE_ID from t1 W... |
23,940,154 | 0 | <p>Besides configuring an EC2-instance you can also use the PaaS-solution of AWS, namely Elastic Beanstalk. They have also support for Node.js and it's super easy to deploy your apps using this service.</p> |
24,743,758 | 1 | Pygame Large Surfaces <p>I'm drawing a map of a real world floor with dimensions roughly 100,000mm x 200,000mm.</p> <p>My initial code contained a function that converted any millimeter based position to screen positioning using the window size of my pygame map, but after digging through some of the pygame functions, I... |
23,148,367 | 0 | <p>Your problem is that <code>animal</code> is a <strong>private</strong> base class of <code>human</code> and therefore passing (and storing) <code>this</code> (which is of type <code>lady*</code>) can not be used to call the method from <code>animal</code>. You could fix it making it a public base or by adding a met... |
12,991,777 | 0 | including a directory in classpath of android ant build script <p>I am new to ant stuff and </p> <p>I have an android project which has a set of dependency jar files , like this</p> <ul> <li>C:\soundlibs\lib-sound1.jar</li> <li>C:\soundlibs\lib-sound2.jar</li> <li>C:\graphicslibs\lib-graphics.jar</li> </ul> <p>When bui... |
36,543,115 | 0 | <pre><code>//Your example json results = [{"type":"fruit", "name":"orange"},{"type":"flower","name":"rose"},{"type":"fruit", "name":"apple"}] </code></pre> <p>First you need to turn your json into an array of dictionaries to get the above object you think it will be:</p> <pre><code>if let results = try NSJSONSerializa... |
585,538 | 0 | <p>Multiple inheritance can be used if the language allows it. I don't know much about it however.</p> <p>Otherwise, you can build a <code>StockItemNode : GraphicNode</code> from a <code>StockItem</code>: </p> <pre><code>class ItemNodeFactory { ... StockItemNode create(StockItem); ... } </code></pre> <p>You can transf... |
20,155,961 | 0 | How do I reduce repetitive code when inserting the same metadata into identical columns over multiple tables? <p><strong>My goals:</strong></p> <ul> <li>Follow database-normalization.</li> <li>Ability to track changes in my tables.</li> <li>Ability to restore the state of my database from a given point in time, e.g. la... |
19,118,230 | 0 | <p>You can always use "firebug" to track the elements of a website. It comes a plugin for firefox.</p> |
9,732,383 | 0 | month array not displaying proper value <p>i have month array like</p> <pre><code>$month = array( 01 => "January", 02 => "February", 03 => "March", 04 => "April", 05 => "May", 06 => "June", 07 => "July", 08 => "August", 09 => "September", 10 => "October", 11 => "Novemeber", 12 => "De... |
11,872,269 | 0 | stuck building a 'cart management' system <p>I'm trying to build a database for video spots. The main page is a list of spots and you can check them and modify them. What i want to do is build a cart system, where the checked spots' id's are automatically added to the cart and stored as a cookie. That way the use can b... |
23,520,464 | 0 | <p>The <a href="https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy" rel="nofollow">Same Origin Policy</a> prevents you from manipulating the content of an Iframe from an different domain. This was put in place to prevent Iframed content from hijacking your privacy.</p> <p>What you want cannot be ... |
22,225,288 | 0 | Performance of $rootScope.$new vs. $scope.$new <p>My current Controllers <code>$scope</code> is kind of thick with: <code>$watch</code> and event handlers. </p> <p>On one point I need to create a new scope for a modal, which does not have its own controller, because its quite simple. Still it needs a property of the cu... |
3,575,186 | 0 | I want to Display news and events in a html page such that automatically they are rotating but on mouseover they stop? <p>I want to Display news and events in a html page such that automatically they are rotating but on mouseover they stop? Please give me any article link related this?</p> |
8,349,264 | 0 | <p>Remove the line that says:</p> <pre><code>android:inputType="text" </code></pre> <p>Then you should get ellipses.</p> |
32,009,553 | 0 | <p>The button is using the default styling. By setting the border to solid will override the default styles.</p> <p>You can combine the border declaration of width, style and colour into one line like so:</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-... |
34,951,325 | 0 | Handle GZip compression on Apache 2.4.18 using mod_jk <p>I use Apache 2.4.18 as a reverse proxy to a Java web application.</p> <p>I need to configure gzip-compression on Html and Javascript files.</p> <p>I have deflate, headers and filter modules activated (and mod_jk, for sure).</p> <p>My apache2.conf file is a the de... |
33,320,061 | 0 | PHP Facebook SDK - check if user liked a fanpage <p>I'm trying to check if user liked a fanpage.</p> <p>Here is my code:</p> <pre><code> $facebook = new Facebook(array( 'appId' => APP_ID, 'secret' => APP_SECRET, 'cookie' => true, )); $user = $facebook->getUser(); if (!$user) { $loginUrl = $facebook->getL... |
30,838,260 | 0 | <pre><code>sed 's/$/ /;/[[:space:]]\(0\.\)\{0,1\}0[[:space:]]/!b o s/\([^[:space:]]*\).*/\1 0.0 0/ :o s/ $//' YourFile </code></pre> <p>with formating column</p> <pre><code>sed 's/$/ /;/[[:space:]]\(0\.\)\{0,1\}0[[:space:]]/!b o h;s/[[:space:]].*//;x;s/[^[:space:]]*//;s/[1-9]/0/g;H;x;s/\n// :o s/ $//' YourFile </code>... |
38,931,351 | 0 | <p>Build your query something like.</p> <pre><code>$query="select * from table where source in(".$_SESSION.")"; $result = mysqli_query($con,$query); </code></pre> |
34,147,784 | 0 | Errors with require_once in php <p>I don't know why when i add a require_once function in my code, it can not run, always show that failed to open stream.</p> <pre><code><?php require_once("../../../../cadpro_vs2/include/admin/ad_nav.php") ?> </code></pre> <p>Any mistake on syntax or something, please help!</p> <... |
14,176,576 | 0 | MS Access query sum up the values when certain columns match <p>I have an Access database holding shoot days for commercials and line items tied to each shoot day. </p> <p>So I'll have something like...</p> <pre><code>Shoot Day ...... Total Travel 400 Travel 150 Travel 200 1 350 1 275 2 850 2 500 ... ... </code></pre> ... |
24,153,610 | 0 | Category Hierarchy in Jekyll <p>I've been trying to use Jekyll categories in a hierarchical fashion, i.e.</p> <pre><code>A: ['class', 'topic', 'foo'] AA: ['class', 'topic', 'foo', 'bar'] AB: ['class', 'topic', 'foo', 'baz'] AAA: ['class', 'topic', 'foo', 'bar', 'qux'] </code></pre> <p>I'm trying to create a listing of ... |
3,461,218 | 0 | Best Practice: iPhone app communicating to php script hosted on server <p>My iPhone app communicates with a php script hosted on a server. Hard coded into the app is the domainname.com/phpscript.php?=data</p> <p>If something happens to my domain name, the app won't work. Is there a best practice for handling this. Do y... |
9,332,963 | 0 | <p>Try this:</p> <pre><code>-webkit-border-radius: 7px !important;-moz-border-radius: 7px !important; </code></pre> <p>I have used your code and !important fixed the issue.</p> |
38,711,033 | 0 | How to group items in array by summary each item <pre><code><?php $quantity = array(1,2,3,4,5,6,7,8,9,10,11,12,1,14,2,16); // Create a new array $output_array = array(); $sum_quantity = 0; $i = 0; foreach ($quantity as $value) { if($sum_quantity >= 35) { $output_array[$i][] = $value; } $sum_quantity = $sum_quanti... |
10,054,422 | 0 | <p>Do you have any specific reason for using two different pcs? Assuming if you have two application, you can deploy them in one PC and have DB in the same PC.</p> <p>The design of the application should be like this. 1) Develop a REST/SOAP based Webservice application which talk to DB. 2) Deploy this application in A... |
24,641,573 | 0 | How to Install SSL certificate in Linux Servers <p>I am trying to access https wcf web service from my application using monodevelop in Linux. The web service call is throwing the following exception</p> <blockquote> <p>SendFailure (Error writing headers) at System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult a... |
26,389,122 | 1 | BeautifoulSoup not working on malformed utf-8 HTML <p>I'm starting to play with <code>BeautifulSoup</code> but its not working. Just tried to obtain all links with <code>find_all('a')</code> and the reponse is always <code>[]</code> or <code>null</code>. Issues could be caused by iso/utf-8 encoding or malformed html, r... |
40,705,641 | 0 | <p>I was going through a similar issue and none of the above answers helped. My issue was:</p> <p>-> media message added (worked fine) -> text message added just after media message (app crashed)</p> <p>I found that my problem lied in this piece of code in my cell for item at indexPath</p> <pre><code> let message = me... |
16,274,260 | 0 | Read a complex file to pair <string,pair<map<string,string> string> > C++ <p>So we basically want to read a text file consisting of some different segments to our program:</p> <p>the structure in the program is a cache with: pair data> ></p> <p>the structure in the file is (were key is used as both a key and a delimite... |
33,622,908 | 0 | <p>You'll need to use an array:</p> <pre><code>function f() { local args=("$@") # values in parentheses for arg in "${args[@]}"; do # array expansion syntax echo "$arg" done } </code></pre> |
20,834,720 | 0 | how to make an overlay of google maps stand on top of the zoom bar <p>So here is how I create an overlay (the standart way). Problem is, when I drag the map around, the overlay gets behind the zoom bar and other controls. I want those controls to go behind the overlay. I tried changing the z-index of the overlay but th... |
32,980,329 | 0 | Avoiding cPickle in Ipython's parallel <p>I have some code that I have paralleled successfully in the sense that it gets an answer, but it is still kind of slow. Using cProfile.run(), I found that 121 seconds (57% of total time) were spent in cPickle.dumps despite a per call time of .003. I don't use this function anyw... |
22,260,913 | 0 | Is a real-time system sdhedulable? <p>There is a question in my operating systems book about scheduling a system. </p> <p>The question is: A real-time system needs to handle two voice calls that each run every 5 msec and consumes 1 msec of CPU time per burst, plus one video at 25 frames/sec, with each frame requiring 2... |
10,160,305 | 0 | <p>For a project I did once, we used a ruby script to generate an AS file containing references to all classes in a certain package (ensuring that they were included in the compilation). It's really easy considering that flash only allows classes with the same name as the file it's in, so no parsing of actual code nee... |
6,699,569 | 0 | <p>If you can get it to run in a browser then something as simple as this would work</p> <pre><code>var webRequest = WebRequest.Create(@"http://webservi.se/year/getCurrentYear"); using (var response = webRequest.GetResponse()) { using (var rd = new StreamReader(response.GetResponseStream())) { var soapResult = rd.Read... |
28,655,478 | 0 | Passing the lat, lng information to the google map script <p>I've have an index.html file that includes a gogglemap.js file to display a map of users location. Currently I am attempting to add the proper code to the index.html to pass the lat, lng info to the js file.</p> <p>Here is filler content for the index file to... |
34,300,055 | 0 | <p>You should not use fixed values for Width and Height. Take a look at the following links: <a href="http://www.informit.com/articles/article.aspx?p=2220312&seqNum=2" rel="nofollow">Arranging UI Elements</a> and <a href="https://msdn.microsoft.com/en-us/library/bb514707(v=vs.90).aspx" rel="nofollow">Layout with A... |
12,748,760 | 0 | <p>To get <strong>just</strong> those records that ARE in Encounter and NOT in EnctrAPR, then just use <code>left outer join</code> instead of <code>full outer join</code>, and add a clause excluding null values for EnctrAPR.EncounterNumber.</p> <p>i.e.</p> <pre><code>SELECT Encounter.EncounterNumber, substring(Encoun... |
26,769,974 | 1 | vectorize for-loop to fill Pandas DataFrame <p>For a financial application, I'm trying to create a DataFrame where each row is a session date value for a particular equity. To get the data, I'm using <a href="http://pandas.pydata.org/pandas-docs/stable/remote_data.html" rel="nofollow">Pandas Remote Data</a>. So, for ex... |
20,183,039 | 0 | <p>The ability to take the product of a scalar and an array is a feature of numpy arrays (see <a href="http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html" rel="nofollow">broadcasting</a>) but clearly not of Cython's memoryviews. The way this can be done is by looping over the chunk of memory and multiplying... |
39,006,550 | 0 | Google Spreadsheet API update overwrite unspecified value <p>In the Google Spreadsheet API <a href="https://developers.google.com/sheets/reference/rest/v4/spreadsheets.values/update." rel="nofollow">https://developers.google.com/sheets/reference/rest/v4/spreadsheets.values/update.</a>,</p> <p>We can specify a valueRang... |
20,435,152 | 0 | Issue comparing doubles <p>This simple if-comparison is not working, and i'm not sure why.</p> <p>Code:</p> <pre><code>public abstract class Button extends Drawable_object { ... @Override public void update() { super.update(); mouseOver_last = mouseOver; double mx = Game_logic.get_mouse_x(); double my = Game_logic.get_... |
37,552,538 | 0 | Android - Sending file over bluetooth <p>I'm developing an Android application sending files from one device to another. Establishing the connection between both devices works perfectly, but there is something going wrong while transferring the file. On the receiving device, the file gets created but unfortunately it's... |
17,340,758 | 0 | WSDL soap response validation <p>I have a wsdl that defines a schema with:</p> <pre><code><xsd:schema elementFormDefault="unqualified" targetNamespace="http://www.xpto.com/xpto"> </code></pre> <p>and the element:</p> <pre><code><xsd:element name="insertResponse"> <xsd:complexType> <xsd:sequence>... |
21,701,309 | 0 | <p>Improve your question , but see below answer for your question</p> <pre><code> NSString *string = @"This is the main stringsss which needs to be searched for some text the texts can be any big. let us see"; if ([string rangeOfString:@"."].location == NSNotFound) { NSLog(@"string does not contains"); } else { NSLog(... |
12,747,208 | 0 | <p>Got a workaround from nboire from play2-elasticsearch project:</p> <p>Download the project from github. Go to project </p> <pre><code>cd module play compile play publish-local </code></pre> <p>Then your other projects will download from your local instead of <a href="http://cleverage.github.com" rel="nofollow">http... |
19,396,021 | 0 | How to get number FDs occupied by a processes without using losf? <p>I am trying to get number of FDs occupied by my processes , i tried with lsof , unfortunately it is taking too much of time . If there any other way to get this number , i also tried looking at /proc//fd , but didn't find what i am looking for.</p> |
15,320,471 | 0 | <p>From your stack trace there is a <code>System.InvalidCastException</code></p> <p>It means value of some attribute has incorrect type. Since you are changing only 'tax' attribute, then its type is incorrect. Most probably "tax" is a Money field, so I guess you should assign variable of type <code>decimal</code> to i... |
23,551,264 | 0 | Foreach Object with one element PHP <p>I have an object called <code>$people</code>. It is filled by my database. This object looks like this:</p> <pre><code>Array ( [0] => stdClass Object ( [id] => 21 [fname] => Billy [lname] => Boemba [email] => email@example.com [country] => The Netherlands ) [1] =... |
13,148,670 | 0 | <p>Sorry to answer my own question but almost as soon as I posted, I was able to figure it out. So in case anyone else has a question like mine:</p> <pre><code>ini_set('auto_detect_line_endings', true); // Allows Mage require_once('../../app/Mage.php'); //Initializes Mage Mage::app('default'); deleteCoupon(); function... |
13,156,208 | 0 | jqGrid multiplesearch - How do I add and/or column for each row? <p>I have a jqGrid multiple search dialog as below:</p> <p>(Note the first empty td in each row).</p> <p><img src="https://i.stack.imgur.com/tK6a1.jpg" alt="jqGrid now"></p> <p>What I want is a search grid like this (below), where:</p> <ol> <li>The first ... |
7,840,894 | 0 | <p>Q_MONKEY_EXPORT is most likely a #define somewhere. Defines like that are sometimes required, for example when the class is in a library and needs to be exported when the header file is included from somewhere else. In that case, the define resolves to something like <code>__declspec(dllexport)</code> (the exact sy... |
31,015,598 | 0 | <p>It seems better to use HashMap's boolean containsKey(Object key) method instead of the direct invocation of equalsIgnore..() in main(). If necessary, you may create your own class implement interface Map, and make it a delegator of its HashMap-typed field for customized management of key comparisons.(You may overri... |
8,998,607 | 0 | <p>Check that the file <code>RuleGradient.scala</code> starts with the line:</p> <pre><code>package org.dynamics </code></pre> |
19,527,990 | 0 | <p>Try this. I am sure you can do this via a couple JOINs (or at least part of it) but you did not request what your return columns should be</p> <pre><code>SELECT v.visitID FROM Visits AS v WHERE EXISTS(SELECT * FROM VisitDocs AS d WHERE d.VisitID = v.VisitID AND d.docType = 3) AND NOT EXISTS(SELECT * FROM VisitDocs ... |
34,602,213 | 0 | iOS Facebook Authentication PhoneGap on TestFlight <p>I'm currently testing my app on my iPhone that I built using Phonegap's Adobe Build with Apple's TestFlight application. My app contains Facebook authentication and when I click the authentication button I am presented with the following error:</p> <blockquote> <p>G... |
24,205,035 | 0 | <p>As suggested by all above, you can use <code>InetAddress.getByName("hostName")</code> but this can give you a cached IP, Read the java documentation for the same. If you want to get a IP from DNS you can use:</p> <pre><code>InetAddress[] ipAddress = DNSNameService.lookupAllHostAddr("hostName"); </code></pre> |
37,499,538 | 0 | How to write date_query for today, tomorow and next 7 days? <p>So i have a problem with writing <code>data_query</code> to gets post for today, tomorow, and for next 7 days. Any suggestion ?</p> <pre><code>'date_query'=>array('column'=>'post_date','after'=>'Today','before'=>'2 days'); </code></pre> |
31,712,185 | 0 | How to get correct summaries with analytics? <p>I want to get summary numbers from the <code>cust_detail</code> table if a specific <code>invoice_code</code> appears in <code>invoice_detail</code>. </p> <p>In this example, I'd like to report cust_detail summaries only for batches <code>10</code> and <code>20</code> bec... |
20,995,086 | 0 | <p>I've finally found a workaround.</p> <p>In netbeans, I've set the background property of the button to some value (different from the one I want, but different from the default 240,240,240 too).</p> <p>When I run the applet, now I always get what I expect, that is the color set in the code with Nimbus.</p> |
37,928,854 | 0 | <blockquote> <p>Couldnt we have avoided the former and done the latter instead?</p> </blockquote> <p>Absolutely. In TypeScript, initializers are not a coding preference, they're a way to ensure that your object fulfills the specification defined by the interface. Crucially, if you add a new non-optional property to yo... |
26,538,148 | 1 | How to extend the django-comments model <p>(Sorry for my bad english, i'm a shabby French)</p> <p>I try to extend the django comment framework to add a like/dislike system. After read <a href="https://docs.djangoproject.com/en/1.7/ref/contrib/comments/custom/#an-example-custom-comments-app" rel="nofollow">the documenta... |
5,079,540 | 0 | VB.Net - Cannot create field "password" in Access <pre><code>'Create field in table Public Sub createField(ByVal tableName As String, ByVal fieldName As String, ByVal fieldType As String) If Not isConnected() Then XGUI.consolePrint("XAccessDatabase.createField() Warning - Database not connected. Create field canceled")... |
5,255,570 | 0 | Help Needed!! Compiling C++ program - errors <p>This is a routine that I believe is for C. I copied it (legally) out a book and am trying to get it to compile and run in visual studio 2008. I would like to keep it as a C++ program. Lots of programming experience in IBM mainframe assembler but none in C++. Your help is ... |
39,298,707 | 0 | <p>I have written a code according to my logic. It gives correct output for all the possible inputs came in my mind so have a look at it.</p> <pre><code>import java.util.Scanner; class Combination { public static void main(String args[]) { Scanner sc =new Scanner(System.in); System.out.println("Enter total number of f... |
33,938,511 | 0 | <blockquote> <p>I want my data starting with particular ID to be at a predefined node because I know data will be accessed from that node heavily.</p> </blockquote> <p>Looks like that you talk about data locality problem, which is really important in bigdata-like computations (Spark, Hadoop, etc.). But the general app... |
15,189,447 | 0 | jInterface to create External Erlang Term <p>How can I format the the following erlang term:</p> <pre><code>{ atom, "message" } </code></pre> <p>In jInterface to an external format that I may call in an erlang shell</p> <pre><code>erlang:binary_to_term( Binary ) </code></pre> <p>Example: Note that since the tuple will ... |
10,211,644 | 0 | <p><code>NSURLConnection</code> will automatically use the system settings for the proxy. You don't have to do anything to enable that.</p> |
15,215,355 | 0 | Consistently subset matrix to a vector and avoid colnames? <p>I would like to know if there is R syntax to extract a column from a matrix and <em>always</em> have no name attribute on the returned vector (I wish to rely on this behaviour).</p> <p>My problem is the following inconsistency:</p> <ul> <li>when a matrix has... |
10,186,059 | 0 | C++ Out of Subscript Range <p>I'm running a C++ Program that is supposed to convert string to hexadecimals. It compiles but errors out of me at runtime saying:</p> <blockquote> <p>Debug Assertion Failed! (Oh no!)</p> <p>Visual Studio2010\include\xstring</p> <p>Line 1440</p> <p>Expression: string subscript out of range<... |
11,360,945 | 0 | <p>There are a number of ways to archive this. One easy way is to submit all data to the server, where the whole form gets rebuild. Doing this on javascript-side could be done with templating (I assume you use jquery).</p> <p>The serverside-solution (as the final submitting) requires, that your input-names are formed ... |
31,565,847 | 0 | Multiplying one matrix with a set of scalars <p>I have an R script that systematically perform changes to a 3x3 matrix by scalar multiplication as follows</p> <pre><code>R <- matrix(rexp(9, rate=.1), ncol=3); for (i in 1:360) { K = i*R; ... } </code></pre> <p>and use the modified matrix for further calculations with... |
25,223,049 | 0 | Hibernate: Refrain update on Many-to-Many insert <h2>Problem</h2> <p>I use hibernate to store data in an MySQL database. I now want to store a Company and one of its Branches.</p> <p>The company:</p> <pre><code>@Entity @Table(name="company") public class Company { @Id @GeneratedValue @Column(name="id") private int id; ... |
35,581,815 | 0 | Select rows from data frame which have at least three negative values? <p>How to filter rows which have atleast 3 negative values?</p> <pre><code>df1 <- Name flex flex2 flex3 flex4 Set1 -1.19045139 -1.25005615 -1.053900875 -1.15142391 Set2 -2.22129212 1.54901305 0.003462145 1.06170243 Set3 -2.08952248 -1.95241584 -1... |
23,523,665 | 1 | Twisted: How to properly check that a request is finished <p>I'm creating an extremely simple Python script to serve one file to one person. However, I cannot seem to figure out how to fire a callback when the request is finished or broken. I was looking into <a href="https://twistedmatrix.com/documents/13.0.0/web/howt... |
40,849,009 | 0 | Not serializable class with strings only <p>I have a class called Libro which contains strings only:</p> <pre><code>public class Libro { private String titolo; private String autore; private String editore; private String sottotitolo; private String genere; private String dpubb; private String lpubb; private String sog... |
25,083,700 | 0 | JQuery DatePicker conflict in Joomla 3 website <p>Sorry, I'm not a programmer and really can't find how to handle this...</p> <p>On a Joomla 3.3.0 website (<a href="http://lantanaweb.com/savoy-sofia/sofia/" rel="nofollow">http://lantanaweb.com/savoy-sofia/sofia/</a>) I added a custom HTML code module (it means adding J... |
10,372,132 | 0 | <p>You've said: <code>MainScreen2 *testJudith;</code> which sets testJudith to nil.</p> <p>You then created an array:</p> <pre><code>NSMutableArray *testJudithArray = [[NSMutableArray alloc]init]; </code></pre> <p>You then RESET testJudithArray to a mutable copy of testJudith's Judith array:</p> <pre><code>testJudithA... |
15,909,718 | 0 | <pre><code>String a = x[0]; String b = x[1]; </code></pre> <p>or</p> <pre><code>for (String z : x) { String valor = z; } </code></pre> <p>I wait help you!</p> |
21,189,182 | 0 | <p>you can use fprintf, which prints formatted text:</p> <pre><code>frintf("%x %x %d\n",_member[0],_member[0],_records); </code></pre> <p>Hope this helps</p> |
1,136,062 | 0 | <p>The <code>Aggregate</code> function would come in handy here.</p> <pre><code>var sum = list.Aggregate((acc, cur) => acc + cur); var average = list.Aggregate((acc, cur) => acc + cur) / list.Count; </code></pre> <p>Just insure that you have the <code>/</code> operator defined for types <code>PointD</code> and <... |
17,917,761 | 0 | <p>Set the field not only to <code>hidden</code> as also to <code>disabled</code>, that will solve this. Or as mentioned in the comment if you just use a custom validation return true.</p> |
7,009,621 | 0 | <p>If you remove</p> <pre><code>length="3" </code></pre> <p>it should be trowing an exception</p> |
4,281,650 | 0 | Ajax request saving files with Rails <p>I'm fairly new to ruby on rails and I'm trying to implment a drag and drop file feature with dnduploader.js. I'm getting the file to post to the controller, but I'm unsure how to save the file in the controller to the local file system. Here is snippets of my code if anyone can h... |
5,563,858 | 0 | <p>I always liked evdns</p> <p><a href="http://linux.die.net/man/3/evdns" rel="nofollow">http://linux.die.net/man/3/evdns</a></p> <p>There appears to be a python binding called pyevent</p> <p><a href="http://code.google.com/p/pyevent/source/browse/trunk/evdns.pxi?r=44" rel="nofollow">http://code.google.com/p/pyevent/s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.