pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
4,854,427 | 0 | <p>Are you trying to do different things if the objects in the array are of different classes? You could do something like this:</p> <pre><code>for (id obj in myArray) { // Generic things that you do to objects of *any* class go here. if ([obj isKindOfClass:[NSString class]]) { // NSString-specific code. } else if ([o... |
8,102,796 | 0 | <h2>Using native <code>Array.filter</code></h2> <p>If you are targeting only modern browsers (IE9+ or a <a href="http://kangax.github.com/es5-compat-table/" rel="nofollow">recent version</a> of any other major browser) you can use the JavaScript 1.6 array method <a href="https://developer.mozilla.org/en/JavaScript/Ref... |
27,406,014 | 0 | How to customize UITableView separator when the cells got a custom height <p>I followed this post: <a href="http://stackoverflow.com/questions/1374990/how-to-customize-tableview-separator-in-iphone">How to customize tableView separator in iPhone</a></p> <p>Problem is that it doesn't work well when I have custom height ... |
27,316,625 | 0 | Loop through element of a defined size in Jquery? <p>I'm creating an animation for my website where I got different divs containing an image and an aside where I put my text describing something related to the image. The aside is a little bit wider than my picture and what happens is that when I hover it, it slides to ... |
34,438,181 | 0 | <p>Actually you need to add the following folders:</p> <ul> <li>layout-sw320dp (xhdpi devices) </li> <li>layout-sw340dp (xxhdpi devices)</li> <li>layout-sw380dp (xxxhdpi devices)</li> </ul> <p>you must add folders only if you really need another whole layout in different devices. Other than that , use only default lay... |
29,739,844 | 0 | <p>It works! Here is my completed code for adding an event and deleting one that occurs at the same time.</p> <pre><code>function createEvent(calendarId,title,startDt,endDt,desc) { var cal = CalendarApp.getCalendarById(calendarID); var start = new Date(startDt); var end = new Date(endDt); var event = cal.createEvent(t... |
3,042,604 | 0 | What happens when I create an index on a view? Are there any benefits versus using a table with indexes? <p>From what I understand the data will be "persisted" (physically stored, not just retrieved when i need it). Is this correct? </p> <p>If so what would be the advantage of using an indexed view versus just using a ... |
32,198,499 | 0 | Unnecessary semicolon <p>Once I import v7-appcompat library into Eclipse, I get a warning described as "Unnecessary semicolon" at the end line of the R.java file. I attempt to remove it, but I guess I'm not able to. I appreciate any kind of help. Thanks in advance.</p> |
19,192,060 | 0 | <p>Ok, so I figured out a work around. Instead of using the <code>UserControl</code> object, I use the <code>Page</code> object to render the control as it will render the server controls properly. After this, I had to wrap my html code in a <code>form</code> object with <code>runat="server"</code>. Now I have no issu... |
4,596,520 | 0 | <p>Performance isn't really a consideration, assuming that you're not talking about gigabytes of XML. Yes, it will take longer (XML is more verbose), but it's not going to be something that the user will notice.</p> <p>The real issue, in my opinion, is support for XML within JavaScript. <a href="http://en.wikipedia.or... |
12,211,404 | 0 | <p>In your first example, the path started at 125,275 and was at 125,275 again, before closing. Because 'Z' creates another smooth path segment connecting start and end point, you get that small loop. If you close it before returning to the startingpoint, you get the desired smooth shape touching all given points.</p>... |
24,296,823 | 0 | <p>Your design is correct. The number of tables is a reflection of the complexity (or not) of the application.</p> <p>The "paradigm to efficiently design this kind of scenario" is the relational model and you are designing in terms of tables because you are working within that paradigm.</p> <p>Your notions about "the ... |
21,299,801 | 0 | <blockquote> <p>Themes have to declare their support for post thumbnails before the interface for assigning these images will appear on the Edit Post and Edit Page screens. They do this by putting the following in their functions.php file:</p> <p><code>add_theme_support( 'post-thumbnails' );</code></p> </blockquote> <... |
34,345,294 | 0 | Is it possible to use socket.io between NodeJS and AngularJS <p>I have two independent applications (frontEnd and BackEnd). The backEnd is in NodeJS using express framework and the FrontEnd is in AngularJS. Is it possible to use socket.io to send a message from the server (NodeJS) to the client (AngularJS)? How I can d... |
28,180,921 | 0 | is there any way using plaint JS to get value of a css property of an element? <p>As far as I concern, .style.some_property only returns the value of the property if I setting it in javascript. If I don't, it returns empty string. So, is there any other way other than jQuery methods like css() and prop() to get value o... |
10,156,891 | 0 | php website and Jquery $.ajax() <p>The website I'm developing is structured in this way:</p> <p>It has a function that switches the module for the homepage content when <code>$_GET['module']</code> is set, example:</p> <pre><code>function switchmodules() { $module=$_GET['module']; switch($module) { case 'getnews': news... |
3,699,364 | 0 | <p>CHCP returns the OEM codepage (OEMCP). The API is Get/SetConsoleCP. </p> <p>You can set the C++ locale to ".OCP" to match this locale.</p> |
10,511,282 | 0 | <p>Kind of standard <code>awk</code> way.</p> <pre><code>$ awk 'FNR==NR{sum+=$2;next}; {print $0,sum}' file.txt{,} 1 12 272 2 18 272 3 45 272 4 5 272 5 71 272 6 96 272 7 13 272 8 12 272 </code></pre> |
31,295,261 | 0 | How to get token from server BrainTree <p>How do I get the token from my server? I went the tedious process of simply getting the token to appear on my server but now I don't know how to pull it down and use it in my Android app. This is the method that Braintree suggested and it had a boat load of errors when I copied... |
1,895,139 | 0 | <p>There's many simple ways to do this in Rebol. It's interesting to use parse:</p> <pre><code>>> list: [system/history system/prompt] == [system/history system/prompt] >> parse list [(list-string: copy []) some [set path path! (append list-string mold path)]] == true >> list-string == ["system/histo... |
4,675,721 | 0 | <p>Take a look here: <a href="http://dev.mysql.com/doc/refman/5.1/en/server-logs.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.1/en/server-logs.html</a> You're looking for general query log: <a href="http://dev.mysql.com/doc/refman/5.1/en/query-log.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.1/en/q... |
34,797,753 | 0 | <p>The argument you're passing to <code>pattern =</code> is where things are going wrong I believe. This three-step approach might get you the desired result:</p> <pre><code># Extract all .rds files list <- list.files("Data/", pattern =".rds", full.names = TRUE) # Define pattern for grepl files <- c(20388, 20389... |
4,737,586 | 0 | <p>This is answered (with examples) in the <a href="http://www.w3.org/Graphics/SVG/IG/resources/svgprimer.html#SVG_web">svg primer</a>.</p> <p>tl;dr summary:</p> <ul> <li>remove 'width' and 'height' attributes on the svg root, and add a 'viewBox' attribute with the value "0 0 w h", where w and h are the absolute value... |
31,760,685 | 0 | <p>For the second regex, you essentially want "everything after (and including) the first letter". Thus you can simply try</p> <pre><code>string alphaPart = Regex.Match(s, @"[a-zA-Z].*").Value; </code></pre> <p>If you want to be more specific, you can restrict the "after" part to just the characters you expect, maybe<... |
716,665 | 0 | <p>The following should work:</p> <pre><code>if (get_magic_quotes_gpc()) { $content = stripslashes($content); } $content = mysql_real_escape_string($content); </code></pre> <p>If your column is utf8, you shouldn't have problems with special characters. Once you've formatted the content correctly, you can feed it to my... |
12,891,324 | 1 | The view didn't return an HttpResponse object <p>This is the error I am getting: The view myapp.views.view_page didn't return an HttpResponse object</p> <p>Can anyone see what I'm doing wrong here? I can't seem to figure out why I would be getting that exception since I am returning an HttpResponseRedirect.</p> <p>view... |
1,565,205 | 0 | How to extend / amend OSGi lifecycle management? <p>I have a modular application that uses OSGi for lifecycle and dependency management. However, some of the bundles require some time after startup to be ready, for example, because they have to acquire data from somewhere. Also, they might be unable to process certain ... |
14,306,262 | 0 | <p>I had the server techs update my server to MySql 5.5 and the issue is now fixed. I'm guessing it had something to do with the library or MySql install.</p> |
27,561,141 | 0 | <p>Please try this code:</p> <pre><code>package com.secondhandbooks.http; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.Dictionary; import java.util.Enumeration; import java.util.List; import org.apache.http.HttpEntity; import org.apache.http.... |
17,037,920 | 0 | Call div in another page as inside a dialog box <p>I have developed a website using a template. There, a dialog box is prompt properly when click on a tag. But I need to call the dialog box div which is in another different page. Because I need to get a id which is passing from the URL to use with the GET['id'] with PH... |
34,651,765 | 0 | I want to do photo effects which is uploaded by user in javascript <p>I want do some photo fun effects in my website. If user upload their file, its automatically display the output, which effect is user selected. This is doing in JavaScript with html. I want yours favour for how to do mask effect in JavaScript. I just... |
1,918,219 | 0 | <p>You can have each tab be a real view controller with nib and everything. The only catch is that you must forward on the standard view controller calls you want to receive (viewWillAppear, etc) but it makes the coding much cleaner since you code just as you would for any other view (although for a smaller space). </... |
24,750,005 | 0 | how to retain the animated position in opengl es 2.0 <p>I am doing frame based animation for 300 frames in opengl es 2.0</p> <p>I want a rectangle to translate by +200 pixels in X axis and also scaled up by double (2 units) in the first 100 frames. For example, the initial value (frame 0) of the rectangle's centre poin... |
6,863,254 | 0 | <p>In <code>Event* EventHandler::DequeueEvent()</code> you have line <code>Event* result = new Event(*this->_eventQueue.front());</code> Here the slicing occurs. You can do the following:</p> <pre><code>class Event { public: virtual Event* clone() { // create a new instance and copy all the fields } </code></pre> <... |
8,821,689 | 0 | <p>You can supply a <code>function(i, attr)</code> into your <code>.attr()</code></p> <pre><code>for (var i = 0, len = data.length; i < len; i++) { var $div = $(".venue:first").clone(); data.[i].photos; $div.find(".photos").attr("src", function(index, src){ return data[i].photos[index]; }); } </code></pre> |
12,320,641 | 0 | <p>The best way to do this i think... is having an object with the infowindows that you have opened</p> <p>i have two objects, infos have all the infowindows created and markers contains all markers with they infowindows so i just execute this functions that loop the infowindow object and close all the infowindows</p>... |
4,250,568 | 0 | <p>I use successfully the following procedure to get images with SmartGWT working.</p> <p>At the same level as the <code>client</code> package of your GWT module I create a folder named <code>public</code>. (In Eclipse you cannot create a package named <code>public</code> because this is not a valid package name. You ... |
25,871,007 | 0 | Cross-year DatePeriod width DateInterval P7D losing new year week <p>I'm trying to have an array of yearweeks using PHP DatePeriod like so :</p> <pre><code>$from = new DateTime('2014-09-16'); $to = new DateTime('2015-02-25'); $interval = new DateInterval('P7D'); // 7Days => 1 Week $daterange = new DatePeriod($from, ... |
22,654,622 | 0 | Sublime2: Unable to change translate_tabs_to_spaces setting <p>I want HTML files to have a 2 space indent so I've updated my Packages/User/html.sublime-settings file as follows:</p> <pre><code>{ "extensions": [ "erb", "html" ], "tab_size": 2, "translate_tabs_to_spaces": true, } </code></pre> <p>However, whenever I save... |
13,383,178 | 0 | <p>Depends on how large your DB is, and how frequent the stats are changed.</p> <p>If it not that large, you can use query sets freely and create the appropriate indexes, and use some cache mechanism so you will not have to make the same queries all over again.</p> <p>But if it is very big database, and it takes a lot... |
27,323,000 | 0 | Error building Android app in release mode, in Android Studio <p>I'm trying to sign my android app in release mode, in Android Studio.</p> <p>I followed <a href="http://developer.android.com/tools/publishing/app-signing.html" rel="nofollow">this official guide</a>. So I have created the keystore and a private key. Then... |
855,243 | 0 | <p>Try any of this:</p> <pre><code>Response.Cache.SetExpires(DateTime.Now.AddSeconds(360)); Response.Cache.SetCacheability(HttpCacheability.Private) Response.Cache.SetSlidingExpiration(true); Page.Response.Cache.SetCacheability(HttpCacheability.NoCache) </code></pre> <p>Also see this <a href="http://stackoverflow.com/... |
25,278,941 | 0 | <p>Or using @Brandon Bertelsen's example data</p> <pre><code>dat1 <- transform(dat[grep("^\\d+$", dat$A),,drop=F], A= as.numeric(as.character(A))) dat1 # A #6 1 #7 2 #8 3 #9 4 #10 5 str(dat1) #'data.frame': 5 obs. of 1 variable: #$ A: num 1 2 3 4 5 </code></pre> |
2,387,347 | 0 | <p>Try this:</p> <pre><code>/\b\w{3,16}\b/ </code></pre> <p>Explained:</p> <ul> <li><code>\b</code> matches a word boundary</li> <li><code>\w</code> matches a word character</li> <li><code>{3,16}</code> applies to the <code>\w</code> and it indicates that at least 3 and at most 16 characters should be matched.</li> </... |
7,577,616 | 0 | <p>MATLAB 7.0 provides the <code>NTHROOT</code> function, which returns the real roots of a number. So your formula becomes <code>NTHROOT(-8, 3) = -2</code></p> <p>If you are using a version prior to MATLAB 7.0 (R14), please read the following:</p> <p>To obtain the real cube root of a negative real number "x", rather ... |
35,791,076 | 0 | <p><strong>[UPDATE: IT'S WORTH JUMPING TO THE <em>EDIT</em> SECTION]</strong></p> <p>Ok, I found a solution, even though it doesn't compile with all the compilers because of a bug in GCC (see <a href="http://stackoverflow.com/questions/35790350/noexcept-inheriting-constructors-and-the-invalid-use-of-an-incomplete-type... |
6,482,113 | 0 | Concatenating two fields in a collect <p>Rails 2.3.5</p> <p>I'm not having any luck searching for an answer on this. I know I could just write out a manual sql statement with a concat in it, but I thought I'd ask:</p> <p>To load a select, I'm running a query of shift records. I'm trying to make the value in the select ... |
30,706,458 | 0 | convert unsigned short mat to vector in opencv <p>I load a depth image in opencv with</p> <pre><code>cv::Mat depth = cv::imread("blabla.png",CV_LOAD_IMAGE_UNCHANGED); </code></pre> <p>then get a subimage of it with</p> <pre><code>cv::Mat sub_image= depth(cv::Rect( roi_x,roi_y,roi_size,roi_size)).clone(); </code></pre> ... |
8,076,814 | 0 | <p>In UIWebView delegate you can handle the navigation notification and prevent it; from the notification you will know the PDF URL, that will allow you to use NSURLConnection to download it.</p> |
12,580,705 | 0 | ASP.NET MVC and friendly URLs <p>I'm trying to learn a bit more about creating friendly URLs, particularly in relation to something like an e-commerce site. If you take a look at this site as an example: <a href="http://www.wiggle.co.uk/" rel="nofollow">http://www.wiggle.co.uk/</a> </p> <p>It basically lets you refine ... |
19,300,264 | 0 | <p>It's usually a good idea to check if <a href="http://twistedmatrix.com/trac/" rel="nofollow">Twisted</a> has support for various operations, since it can be combined with Tornado using <code>tornado.platform.twisted</code>. For XML-RPC there is following code: <a href="http://twistedmatrix.com/documents/13.0.0/web/... |
4,051,369 | 0 | <p>Suppose you have an integer array</p> <pre><code>int Marks[1000]={22,32,12,..............}; </code></pre> <p>First of all you sort your array</p> <pre><code>int g,r,c; for ( r=0; r <=999; r++) { for ( g=r+1;g<=1000;g++) { if ( Marks[r] < Marks[g] ) { c=Marks[r]; // these 3 statements swap values Marks[r] =... |
13,519,338 | 0 | PyDev "New Project" crashes Eclipse <p>I'm a Python and PyDev newbie. My environment is OS X 10.6.11, Eclipse Indigo, PyDev 2.7.1, Python 2.6 and 3.3.</p> <p>Starting from any perspective (PyDev, Java, others), selecting New->Project->PyDev->PyDev Project results in an endless spinning color beachball. The only way out... |
26,827,252 | 0 | <p>if you <em>really</em> want to do this, you could use reflection:</p> <pre><code>Person obj = new Person(); Method method = Person.class.getMethod("getFirstname"); String firstname = method.invoke(obj); </code></pre> <p>but as mentioned in the comments, you better use a map to hold attribute values:</p> <pre><code>... |
10,269,164 | 0 | how to use the postgres database embedded with Mac Lion? <p>i can only find psql command, but can't find any other postgres commands or tools, can anyone tell me how to create database and connect to it using the default postgres shipped with mac lion?</p> <p>only if it doesn't work ,i dont' want to install another pos... |
12,903,917 | 0 | <p>Your code cannot be compiled because in java character <code>'</code> ( single quote ) is used to mark one character. In order to define string you should use double quote <code>"</code>. </p> <p>In your case I believe that you wanted to check whether your string contains digits only and were confused with regular ... |
7,757,365 | 0 | Does LINQ work with IEnumerable? <p>I have a class that implements <code>IEnumerable</code>, but doesn't implement <code>IEnumerable<T></code>. I can't change this class, and I can't use another class instead of it. As I've understood from MSDN <a href="http://msdn.microsoft.com/en-us/library/bb308959.aspx#linqov... |
15,934,544 | 0 | <p>alright so this is what worked, the null characters in the array were causing issues and were returning the last null in the array so i forced the array to break after each if/else statement by putting x = memberAcc.length +1; and y = newMember.length +1; to do this. Causing the entire array to be checked and then ... |
37,907,227 | 0 | <p>Do it the same way like you did with your update, use SQL parameters for the where clause. So this code should work:</p> <pre><code>protected void Button2_Click(object sender, EventArgs e) { string sel = DropDownList1.SelectedValue; // if your selection is empty, abort early if( sel == null || string.IsNullOrEmpty(... |
4,402,022 | 0 | <p>Neither are a direct port, but of the two -- MySQL's syntax is more similar to SQL Server's than PostgreSQL. </p> <p>SQL Server 2000 didn't have analytic/ranking/windowing functionality -- neither does MySQL currently. Also, no WITH/CTE support - again, MySQL doesn't support this either. If you were migrating away ... |
20,088,539 | 0 | Corona SDK with Graphic 2.0 position not working <p>I have upgraded my Corona SDK version to 2013.2076 (with Graphic 2.0). But now my background images are not working and the app is crashing.</p> <pre><code>local background = display.newImageRect("/bg.png", 570, 360 ) background:setReferencePoint( display.CenterRefere... |
281,894 | 0 | <p>Here's a trick: calculating a <code>SUM()</code> of values that are known to be either 1 or 0 is equivalent to a <code>COUNT()</code> of the rows where the value is 1. And you know that a boolean comparison returns 1 or 0 (or NULL).</p> <pre><code>SELECT c.catname, COUNT(m.catid) AS item_count, SUM(i.ownerid = @own... |
13,209,463 | 0 | <p>There would be no point in <code>std::vector::operator[]</code> returning a reference if you couldn't actually do anything with it. Your code is perfectly fine.</p> |
669,696 | 0 | <p>You should check out <a href="http://weblogs.asp.net/podwysocki/archive/2008/11/08/code-contracts-for-net-4-0-spec-comes-alive.aspx" rel="nofollow noreferrer"><strong>Code Contracts</strong></a>; they do pretty much exactly what you're asking. Example:</p> <pre><code>[Pure] public static double GetDistance(Point p1... |
28,608,607 | 0 | <p><strong>Main thread</strong></p> <ol> <li>Create an event. For instance, <code>TSimpleEvent</code> will suffice for your needs.</li> <li>Set the event to be non-signaled. For <code>TSimpleEvent</code> that's a call to <code>ResetEvent</code>. I expect that a newly minted <code>TSimpleEvent</code> would be in the no... |
23,270,775 | 0 | <p>You problem is explained in the logcat :</p> <pre><code>android.widget.ImageView cannot be cast to android.widget.TextView </code></pre> <p>And by looking at the next line of your Logcat you can see where it happened:</p> <pre><code>at com.nando.gridview.Dialog.onCreate(Dialog.java:21) </code></pre> <p>So change th... |
30,398,847 | 0 | <p>Try this:</p> <pre><code>#data df <- read.table(text=" tissueA tissueB tissueC gene1 4.5 6.2 5.8 gene2 3.2 4.7 6.6") #result apply(df,1,function(i){ my.max <- max(i) my.statistic <- (1-log2(i)/log2(my.max)) my.sum <- sum(my.statistic) my.answer <- my.sum/(length(i)-1) my.answer }) #result # gene1 gen... |
1,573,785 | 0 | <p>Because when linking statically, the order in which you specify the libraries and object files does matter. Specifically, a library must be mentioned after object files that use symbols from it.</p> |
8,127,828 | 0 | Scrolling a Gallery with buttons <p>I have a Gallery whose Adapter creates several LinearLayout instances. Those linear layout instances have buttons, however, and when someone clicks the buttons, they can't drag the gallery.</p> <p>My idea is having a menu that the user can scroll through. The kind of thing that would... |
7,959,576 | 0 | <p>Two things to consider:</p> <ol> <li><p>Maybe you should have a habit of rebasing these branches onto the tip of master (or wherever) before landing them. This way, they are strictly redundant as KingCrush suggests above, and can be destroyed to be recreated later if you find a problem.</p></li> <li><p>Use rename t... |
8,246,629 | 0 | <p>In BlackBerry, for performance resons, there was a file size limitation regarding attachments, so only a portion of the message was downloaded. The attachments were not actually delivered to the device unless the user opened them.</p> <p>Now, in JDE 5.0, they introduced a new class, <a href="http://www.blackberry.c... |
4,276,218 | 0 | How do you set different scale limits for different facets? <p>Some sample data:</p> <pre><code>dfr <- data.frame( x = rep.int(1:10, 2), y = runif(20), g = factor(rep(letters[1:2], each = 10)) ) </code></pre> <p>A simple scatterplot with two facets:</p> <pre><code>p <- ggplot(dfr, aes(x, y)) + geom_point() + face... |
19,762,416 | 0 | adding images to the ckeditor <p>i want to add image again in the ck editor when i click on button "add gap"</p> <p>here is my code</p> <pre><code><div class="control-group" align="left" style="float: left" onselect="selectText()"> <textarea name="editor1" id="myTextarea"><p>please type<img src="im... |
35,462,483 | 0 | Cannot uninstall ionic using npm on Mac <p>I am trying to switch to ionic2. Installing on top of my previous installation of ionic 1 appears to succeed (based on the output) but ionic1 remains as shown by ionic info. Here were the steps. Any help would be appreciated.</p> <ol> <li>Successfully Installed ionic2@beta usi... |
5,357,951 | 0 | <p>I have finally found my own answer again. Basically, <strong>it came down to restart intellij</strong> and the plugin will show under plugins. For some reason while doing "Grails/Synchronize Grails Settings" was not making the plugin show up.</p> <p>So to successfully install the gails mail plugin do as follows</p>... |
21,879,098 | 0 | <p>This is called reverse geocoding. Here is a sample code that does that:</p> <pre><code>MapAddress address; ReverseGeocodeQuery query = new ReverseGeocodeQuery(); query.GeoCoordinate = myGeoCoordinate; query.QueryCompleted += (s, e) => { if (e.Error != null) return; address = e.Result[0].Information.Address; }; q... |
40,717,336 | 0 | <p>Change the database tables collations types to <code>utf8_general_ci</code> and also table fields collations change to <code>utf8_general_ci</code>.</p> <p><a href="https://i.stack.imgur.com/hi7gl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hi7gl.png" alt="enter image description here"></a></... |
16,993,902 | 0 | <p>IMHO, the concept is wrong. You dont need to use merge-sort here. Try searching for PriorityQueue or actually BinaryHeap in order to solve this task. Secondly, merge sort on linked list is not a good idea since it will not be efficient at all. I think you should totally rework your solution.</p> <p>NB. Just impleme... |
5,547,785 | 0 | Extjs listener on keystroke checking if its ANY character <p>I cant seem to find this anywhere. I want to find the best way to check whether a keystroke is actually a character. </p> <pre><code>listeners:{ 'keyup':function(f, e){ //Is key a letter/character } } </code></pre> <p>EDIT</p> <p>Thanks to everyone who has an... |
7,177,184 | 0 | How to create Filter for org.eclipse.jface.viewers.CheckboxTreeViewer? <p>I have to create Filter for my CheckboxTreeViewer. I'm not getting how to do that. I'm using following class</p> <pre><code>org.eclipse.pde.internal.ui.shared.FilteredCheckboxTree </code></pre> <p>and following way to get the FilteredCheckboxTree... |
6,208,325 | 0 | <p>Seems to work for me, what browser are you using?</p> <p><a href="http://jsfiddle.net/YLCff/" rel="nofollow">http://jsfiddle.net/YLCff/</a></p> |
12,220,876 | 0 | <p>You can achieve it using jQuery. Please include the latest jQuery Lib.</p> <pre><code><html> <head> <style type="text/css"> section { display:table; width: 100%; border:1px solid red; } div { display: table-cell; } .leader { background: grey; } .right{ float: right; } .left { float:left; } </st... |
37,200,924 | 0 | Update Realm relationship with primary ids <p>Is it possible to update a Realm object's relationships by passing only the ids of the relationships?</p> <p>If I have a <code>Library</code> class that has a <code>List<Books></code> relationship and I wanted to merge two <code>Libraries</code> together, I would pres... |
13,186,580 | 0 | Using boost::ref to indicate intention in coding conventions <p>When functions take non-const refs as arguments, it can create hard-to-read code because at the calling site it is not obvious which inputs might be changed. This has lead some code conventions to enforce that pointers be used instead, for example</p> <pre... |
40,826,060 | 0 | <p>Closing and opening the Visual Studio Solution worked for me.</p> |
6,673,807 | 0 | <p>This is the Spotlight For Help search field, which is entirely controlled by the system. It automatically provides results from your application's Help Book and menu items. AFAIK you can't populate it "manually". It works automatically when you create a Help Book for your application.</p> <p>See <a href="http://dev... |
6,175,408 | 0 | Is it possible to change mouse cursor when handling drag (from DragOver event)? <p>We need to display a feedback to the user when he drags-in items into our application. Our client prefers this feedback to be in form of a custom cursor.</p> <p>This is already implemented for drag-out, using a custom cursor that is set ... |
19,128,094 | 0 | <p>The code I had to add to my view controller, after applying the constraints as per the ilya’s answer:</p> <p>In <code>controlTextDidChange</code> (<code>_controlWidthConstraint</code> refers to the fixed width constraint of the input; it’s probably 0 by default for the second input):</p> <pre><code>// Get the new w... |
33,657,969 | 0 | Bluemix logging issue to papertrail <p>Any idea why syslog:// protocol from <code>bluemix</code> app is not connecting to <code>PaperTrail</code> third party logging service?</p> <p>Here is my process: </p> <p><a href="https://i.stack.imgur.com/OZ2rd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OZ... |
316,863 | 0 | <p>One solution that I feel strikes the right balance in the Framework/Roll-your-own dilemma is the use of three key perl modules: <a href="http://cpan.uwinnipeg.ca/htdocs/CGI.pm/CGI.pm.html#ABSTRACT" rel="nofollow noreferrer">CGI.pm</a>, <a href="http://www.tt2.org/" rel="nofollow noreferrer">Template Toolkit</a> , a... |
20,558,286 | 0 | Javascript program, if statement difficulties <p>this code does not work, at least not complete way it should. I'm trying to run it so an item is selected and then deposit amounts are chosen on the select menu until the proper amount is equaled or exceeded, resulting in change, but I cant seem to get my if statements t... |
24,514,831 | 0 | <p>It would be helpful if you showed the SQL statement that returns the results.</p> <p>Are the returned arrays in separate $row results?</p> <p>In that case you need to iterate through each $row result, something like:</p> <pre><code>foreach($query->result() as $row) { for ($p=1; $p<=2; $p++) { echo number_form... |
4,928,392 | 0 | <p>I have not used it, but Apache James looks like it will support a SQL Backend: <a href="http://james.apache.org/server/3/feature-persistence.html" rel="nofollow">http://james.apache.org/server/3/feature-persistence.html</a> (Make sure you use version 3).</p> <p>Amother option might be to use Apache James Mailets (T... |
3,328,519 | 0 | Retrieve Data Step by Step after a certain delay using ajax and jquery in php <p>I am a beginner at Jquery. What i want is to display the data using AJAX in a step by step manner. So let say if in my database there is a table "DATA" with a field name "info" having multiple rows as a data </p> <h2>info</h2> <p>1 2 3 4 5... |
37,929,151 | 0 | Rails: Fetch nth table record <p>I know I can find the first user in my database in the command line with,</p> <pre><code>User.first </code></pre> <p>And I can find the last with </p> <pre><code>User.last </code></pre> <p>my question is how would I call the 11th user in a database.</p> |
16,134,309 | 0 | <p>if we have function f(n) = 3n^2-9n , lower order terms and costants can be ignored, we consider higher order terms ,because they play major role in growth of function. By considering only higher order term we can easily find the upper bound, here is the example.</p> <pre><code> f(n)= 3n^2-9n For all sufficient larg... |
21,169,377 | 0 | XCode 5 - OpenURL not working in ViewController <p>Getting error on <code>UIApplication Expecting ':'</code>.</p> <pre><code>@interface ViewController () @end @implementation ViewController -(IBAction) pushButton{ [[UIApplication sharedApplication openURL: [NSURL URLWithString:@"http://www.portfoliopathway.com"]]; } </... |
40,929,170 | 0 | How to order by one column in one table and another column in other table ,but in a single query? <p>I tried two queries which work fine individually:</p> <p>1) <code>select * from {disputeticket} ORDER BY {creationtime} ASC</code><br> The query is working , here FK=PK of CsTicketState (Column name=State)</p> <p>2) <co... |
36,441,900 | 0 | <p>2) I've already answered similar question <a href="http://stackoverflow.com/a/34278630/1991579">here</a>:</p> <blockquote> <p>If you are using 1 thread, for example, in EventLoopGroup for boss group for 2 different bootstraps, it means that you can't handle connections to this bootstraps simultaneously. So in very ... |
11,832,690 | 0 | Swipe Gesture for iOS in Flash CS6 <p>I'm creating an app for iOS (mainly) in Flash CS6 and I'm having a few problems with getting a particular page to work.</p> <p>The layout is as follows: I have a movie clip that is 3 times the width of the stage with my content, with the instance name of <code>txtContent</code>.</p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.