pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
38,237,320 | 0 | Header Troubles on my Website <p>Before I posted anyone question, and I got some criticism, so I'm trying to format a better question now. Yeah. So, I'm making a website, and I have a header for navigation. However, in CSS, I put the header with div class = "header" to color:black;. I don't know why the background isn'... |
6,145,345 | 0 | Complex ARel query <p>I've got a complicated query that I can't wrap my head around (using either sql or ActiveRecord) Here are my models:</p> <pre><code>class Contact has_many :profile_answers end class ProfileAnswer belongs_to :contact belongs_to :profile_question end class ProfileQuestion has_many :profile_answers e... |
3,268,493 | 0 | <p>When you build with the DLL version of the CRT (/MDd for example), errno is a macro. Translating it to a function call to obtain the shared value of errno. Fix it like this:</p> <pre><code>int err = errno; </code></pre> <p>so you can inspect the value of err.</p> |
5,032,531 | 0 | Why does casting the same two numbers to Object make them not equal? <p>I have following code snippet but I am getting wrong output.</p> <pre><code>class Program { static void Main(string[] args) { var i = 10000; var j = 10000; Console.WriteLine((object) i == (object) j); } } </code></pre> <p><strong>I was expecting tr... |
34,239,560 | 0 | <p>Cygwin is not an isolated environment like for example a virtual machine inside VirtualBox. It works on the same filesystem as other Windows applications. Its files could be accessed through any file manager (e.g: Total Commander), and it can access any other file including your home folder in Windows.</p> <p>Only ... |
5,735,389 | 0 | <p>Logically, that copy/paste is exactly what happens. I'm afraid there isn't any more to it. You don't need the <code>;</code>, though.</p> <p>Your specific example is covered by the spec, section <strong>6.10.2 Source file inclusion</strong>, paragraph 3:</p> <blockquote> <p>A preprocessing directive of the form</p>... |
14,790,298 | 0 | Set up access control to allow non-registered members to see intro text, but not full text <p>I need to set up ACL permissions on a web site I am developing such that guests can see the intro-text of an article, but cannot see the full-text unless they are registered.</p> <p>The site is using Joomla 3.0.</p> <p>How can... |
11,809,582 | 0 | <p>In your Android app, you expect a JSONArray:</p> <pre><code>// store incoming stream in an array JSONArray jArray = new JSONArray(streamToString(instream)); </code></pre> <p>However, in your PHP file you only output multiple separate JSON objects instead of a real array. I think, you should collect all items from t... |
29,279,147 | 0 | <p>I would probably choose not to do it this way, but a deferred/promise can indeed be used as a queuing device.</p> <p>You need a slight(?) variation of what you already tried.</p> <pre><code>self.queue = $.when();//A resolved promise, used to form a queue of functions in a .then() chain. self.save = function(data) {... |
36,190,743 | 0 | <p>RecyclerView setLayoutManager expects RecyclerView.LayoutManager type as input so change</p> <pre><code>final LinearLayoutManager layoutManager = new LinearLayoutManager(this); </code></pre> <p>with</p> <pre><code>final RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(this); </code></pre> <p>and r... |
38,716,459 | 0 | Make a variable unusable/unaccessible in scope halfway <p>Let's say I have this code:</p> <pre><code>for (int i = 0; i < x.size(); i++) { auto &in = input[i]; auto &func = functions[i]; auto &out = output[i]; // pseudo-code from here: unaccessiable(i); i = func(in); // error, i is not declared out = func... |
11,511,701 | 0 | Notify a User if Exception happens not in Activity class <p>My <code>Activity</code> holds a member <code>member_one</code> which holds another member <code>member_two</code> which can throw an <code>Exception</code>. I need to show user a <code>Toast</code> if this <code>Exception</code> happens. In order to show a <c... |
2,493,329 | 0 | <p>Regression Testing. Partly automated, partly manual, depending on the tools, time and money.</p> <p>Normally you should different levels of testing, and even though as software developers we would like to automate everything, some things have to be verified by hand, by having a collection of test cases executed by ... |
23,266,215 | 0 | <p>The solutions depends on the level of interaction you want that "toggle" to happen.</p> <p>If you want to achieve this toggle for every user on its own, you're good to go with sessions.</p> <p>If you want to have the toggle application-wide (every user toggles one single value) you'll have to use any kind of persis... |
39,947,263 | 0 | <p>You should use a framework to help you, as well as possibly use a template that is built with these frameworks. </p> <p><a href="http://materializecss.com/" rel="nofollow">http://materializecss.com/</a></p> <p><a href="https://templateflip.com/material-design-html5-templates-free-download/" rel="nofollow">https://t... |
11,809,636 | 0 | <p>You have an empty string for an <code>href</code> on the overview link. So, it's attempting to "follow" to that <code>href</code>, which obviously doesn't exist.</p> |
31,696,229 | 0 | Required Appropriate query to find out the result <p>I need a desired result with the less number of execution time. I have a table which contains many rows (over 100k) , in this table a field name is notes varchar2(1800). It contains following values:</p> <pre><code>notes CASE Transfer Surnames AAA : BBBB Case Status ... |
4,780,462 | 0 | MVVM and SettingsBase <p>Hi i'm currently implement MVVM in a WPF app i'm developing. I implemented the ViewModel and the Views by using 2 separate projects. Only the View is referencing from the ViewModel. However, i've come to a point where i need the information in the Settings class(auto generated by Visual Studio ... |
34,576,192 | 0 | Find similar folder names recursively in bash <p>How could I find similar folder names recursively in bash command line? </p> <p>I don't know specific name, I want all similar folders grouped by similarity. In other words, I need the bash to search each one by all folder names.</p> <p>I use bash in OS X terminal.</p> <... |
9,775,020 | 0 | Black lines missing in the box holding the axes of a MATLAB plot <p>When plotting on a figure in MATLAB, I have noticed that parts of the black box that holds the axes are missing (the left and bottom one):</p> <p> <img src="https://i.stack.imgur.com/mNHJj.png" alt="enter... |
39,938,019 | 0 | <p>This technique is usually used for multiple axis in a figure. In this context it is often required to have a colorbar <strong>that corresponds in size with the result from imshow.</strong> This can be achieved easily with the <a href="http://matplotlib.org/1.4.3/mpl_toolkits/axes_grid/index.html" rel="nofollow nore... |
26,776,278 | 0 | <p>If you want you can just focus using jquery</p> <pre><code>$('#insertform input').first().focus(); </code></pre> |
15,437,939 | 0 | <p>Your string has backslashes which are read in Python as escape codes. These are when a character preceded by a backslash is changed into a special character. For example, <code>\n</code> is a newline. You will need to either escape them (with another backslash) or just use a raw string.</p> <pre><code>r'C:\Software... |
4,882,084 | 0 | <pre><code>Answer.update_all(["user_id = ?", @user.id], ["answered_by = ? and user_id == ?", @user.email, 0]) </code></pre> |
38,072,830 | 1 | ImportError: No module named Npp when using Python plugins for Notepad++, <p>while writing a Python-based script in Notepad++, which converts the encoding for a large number of CSV files, I encountered a hiccup early in the entire process - I am always returned the following error</p> <p><strong>ImportError: No module ... |
30,383,240 | 0 | How to rename list of Excel sheets with a list of names <p>I need to create profiles for a large list of clients. Each client has an ID number and I need to create a sheet in a workbook for each client, with the ID number for each client as the name for their respective sheets. I also have a sheet template that I would... |
3,915,637 | 0 | <p>Do yourself a favour and buy another 2Gb RAM. I'm running the 32 bit kernel (i.e. the smaller one) right now on my MBP and the kernel itself has 800Mb RAM wired. For you that would leave 1.2Gb in total for everything else. That's not enough. Believe me, if you buy the extra RAM, not only will your Java process be b... |
35,725,481 | 0 | Display custom taxonomy in DESC within the original loop <p>I have a problem. I would like the have the posts of this loop show in descending order. But for a plugin I have to stick to the original loop. So I can't use new WP_Query or query_posts because this overrides the original loop.</p> <p>This is my loop.</p> <pr... |
29,501,967 | 0 | <p>You forgot to put the <code>END</code> delimiter</p> <pre><code>DELIMITER @ CREATE EVENT update_stats ON SCHEDULE EVERY 15 MINUTE ON COMPLETION PRESERVE ENABLE DO BEGIN UPDATE stats JOIN temp_stats ON stats.unique_key = temp_stats.unique_key SET stats.clicks = stats.clicks + temp_stats.clicks; TRUNCATE temp_stats; ... |
394,146 | 0 | Displaying polymorphic classes <p>I have an existing app with a command-line interface that I'm adding a GUI to. One situation that often comes up is that I have a list of objects that inherit from one class, and need to be displayed in a list, but each subclass has a slightly different way of being displayed.</p> <p>N... |
39,959,947 | 0 | Count truthy objects in an array <p>I'd like to count truthy objects in an array. Since I can pass a block to count, the most idiomatic way I found was this:</p> <pre><code>[1, nil, 'foo', false, true].count{ |i| i } => 3 </code></pre> <p>But I was wondering if there was a better way, especially using the syntax <co... |
10,159,652 | 0 | default argument function signature change <p>I have a function whose current signature is f(a,b=0). I want to add another argument c. I want my function in such a way so that I can call f(a,b) which is currently the behavior and f(a,c). One way is to overload the function and duplicate the function code. I do not want... |
20,040,647 | 0 | Android Widget Programming <p>I have 4 different types of widgets in my app. For each of the widget type, I have a Class derived from AppWidgetProvider and a service which handles the periodic update to the widget.</p> <p>Now I have to create different sizes widget for each type. If I keep 3 sizes for each widget, do I... |
28,228,735 | 0 | Launching activity from shortcut always launches main activity also <p>I have built an app which changes the users wallpaper. I wish to add an Android shortcut so a user can change their wallpaper without having to fully open the app (the main use case is to tie it to a gesture in something like Nova Launcher, which al... |
18,834,610 | 0 | <p>As @zapl mentioned, only 4 to 5 times slower is about what you should expect in the first place. However, there are things to optimize:</p> <ol> <li><p>You could benchmark the 'pain' loop codeblock, and rewrite than in NEON. NEON <strong>intrinsics</strong> should be about 2-4 times faster than unoptimized c/c++ co... |
39,732,169 | 0 | <p>Does the compiler really let you assign <code>object</code> to <code>Customer</code> without a cast? </p> <p>Anyway, <code>DataContext</code> won't be initialized yet in the constructor. </p> <p>You could handle the <code>DataContextChanged</code> event, which will be raised whenever <code>DataContext</code> change... |
40,248,292 | 0 | <p>Try the appropriately named <code>array_reverse</code> function!</p> <pre><code><?php if(function_exists('fetch_feed')) { include_once(ABSPATH . WPINC . '/feed.php'); // include the required file $feed = fetch_feed('http://sample.com.au/events/feed/'); // specify the source feed $limit = $feed->get_item_quant... |
18,307,197 | 0 | <p>Actually, I made it to solve the problem. Whoever uses backbone, node.js, and require.js, remember to include jquery and jquery UI as libraries with require, and when creating dynamic elements with backbone such as:</p> <pre><code>$('#content').append(html); inside backbone call jquery UI $('.drag').draggable(); </... |
30,947,492 | 0 | <p>I totally agree with @Holden on that! </p> <p>Mocking RDDS is difficult; executing your unit tests in a local Spark context is preferred, as recommended in the <a href="http://spark.apache.org/docs/latest/programming-guide.html#unit-testing">programming guide</a>.</p> <p>I know this may not technically be a unit te... |
29,636,020 | 0 | <p>I have recently installed Chef Server 12 on Ubuntu 14.04.2 and could launch the Chef Management Console too (unfortunately i was stuck with some other issue so couldn't proceed further on this). </p> <p>You may refer this <a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-a-chef-12-configuratio... |
2,659,755 | 0 | <p>Implement your own printf (on top of vsnprintf to take care of the dirty details) that writes to the console:</p> <pre><code>#include <stdarg.h> int printf(const char *fmt, ...) { char buffer[LARGESIZE]; int rv; va_list ap; va_start(ap, fmt); rv = vsnprintf(buffer, sizeof(buffer), fmt, ap); va_end(ap); Consol... |
10,146,804 | 0 | How to close a jframe without closing the main program? <p>i designed java desktop application in that application when i press a button another Jframe is shown that draws a tree but when i close the Jframe whole operation is close but i only want to close that Jfarme what should i do? here is the jframe codes:</p> <pr... |
11,768,616 | 0 | <p>It would appear that <strong>it does not work</strong>:</p> <pre><code>using System.Runtime.Serialization; using System.IO; using System; namespace ConsoleApplication1 { class Program { static void Main() { IHelloV1 yoyoData = new YoyoData(); var serializer = new DataContractSerializer(typeof(YoyoData)); byte[] byt... |
9,176,507 | 0 | <p>Firstly, you'd need unique identifiers for all of your input fields, hidden or not. Then assigning values to them would be a lot easier. You're really close, and I'd only change a few things to get it working, mostly to do with the IDs of the elements you're using:</p> <pre><code><script type="text/javascript"&g... |
13,144,933 | 0 | Form Authentication / Profiles slow on Azure Cloud, fine locally <p>I'm using MVC 4 on Azure, and it loads very slowly (over a minute). Here are the load times of a few pages: <img src="https://i.stack.imgur.com/nzmy3.png" alt="http://i.imgur.com/V4brS.png"> (the 6.9 minutes was when I tried loading 7 tabs with differe... |
25,078,449 | 0 | <p>Put your FOR loops in two different anonymous blocks, then do a <code>SPOOL OFF</code> followed by <code>SPOOL INV.CSV</code> between them. The first should go to one file and the second to the other.</p> |
20,850,329 | 0 | <p>CDF is a framework for managing CSS & JavaScript dependencies and optimizations your web application. It allows for each individual component in your web application to declare what CSS and JavaScript files they require instead of relying on a single master page to include all dependencies for all modules and o... |
37,767,155 | 0 | <p>But my problem is the order, to copy is ok. i would want to copy that range but before from some sheet and then from others, regarding the name contained in that cell</p> |
14,874,100 | 0 | <p>This should work, but beware that it is very <a href="http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address">simplified</a>:</p> <pre><code>(?:[^<]*<)?([^>]+).* </code></pre> <p>Answer of email will be in <code>$1</code>.</p> <p>For example, in Perl use:</p> <pre... |
25,586,073 | 0 | Bcrypt, what is meant salt and cost? <p>I was always using MD5 for encrypting passwords, but I read that it's should no more be used, and instead use bcrypt.. </p> <p>I'm using zendframework 2 , where I found it describing bcrypt configurations as follows:</p> <pre><code>$bcrypt = new Bcrypt(array( 'salt' => 'random... |
36,149,857 | 0 | <p>I assume you have some sort of <code>list</code> of data inside your <code>adapter</code>. If yes, delete the item on the corresponding position of the deleted row.</p> <p>Also, try to call <code>viewHolder.setIsRecyclable(false);</code></p> <p>Your <code>onSwiped</code> should somehow look like this:</p> <pre><cod... |
22,411,466 | 0 | How to read specific node from XML column in stored procedure <p>I am pulling data from a variety of tables in a tsql stored procedure and one of the fields is an XML column. Each child node of this XML has 2 subnodes: Question and Answer. </p> <p>The xml structure looks like this:</p> <p><code><QuestionXML> <... |
39,260,486 | 0 | Is it okay to attach async event handler to System.Timers.Timer? <p>I have already read SO post <a href="http://stackoverflow.com/questions/36661338/how-to-call-an-async-method-from-within-elapsedeventhandler">here</a> and article <a href="http://theburningmonk.com/2012/10/c-beware-of-async-void-in-your-code/" rel="nof... |
26,789,012 | 0 | <p>Ok, so assuming that my corporate domain name is bar.com, everything seems to route fine as long as all host entries that reference "bar" always followed it with ".com" </p> <p>If I tried to enter <code>foo.bar.net</code> or <code>foo.bar.org</code> or <code>foo.bar.floop</code> as my host, I get "No Response from ... |
10,113,767 | 0 | <p>One thing to note is that <code>include</code> will add a second db access to do the preloading. You should check what that one looks like (it should contain a big <code>IN</code> statement on the <code>player_ids</code> from <code>players_to_teams</code>).</p> <p>As for how to avoid using <code>include</code>, if ... |
10,687,414 | 0 | joomla- js file calling <pre><code><script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/eurostar/js/jquery-1.5.min.js" /></script> </code></pre> <p>any error?</p> <p>but if I just type <code><</code> which file automatically closing again and again,</p> <p>Why repeating thi... |
34,418,139 | 0 | <p>Here's a similar approach, using regular expressions instead:</p> <pre><code>import re def convert_string(s): return map(int, re.findall(r'[0-9]+', s)) </code></pre> <p>Or using a list comprehension:</p> <pre><code>import re def convert_string(s): return [int(num) for num in re.findall(r'[0-9]+', s)] </code></pre> ... |
23,104,114 | 0 | Filtering in maven-war-plugin does not exclude directory <p>This is a followup of my yesterday question <a href="http://stackoverflow.com/questions/23082104/conditionally-exclude-some-resources-in-maven-from-war">Conditionally exclude some resources in maven from war</a>. I was able to rearrange both development and pr... |
9,860,286 | 0 | <p>It's just an assumption, but according to <a href="http://developer.android.com/reference/android/app/Fragment.html#Lifecycle" rel="nofollow">Android Developers</a>:</p> <blockquote> <p>onStart() makes the fragment visible to the user (based on its containing activity being started).</p> </blockquote> <p>So width a... |
12,387,188 | 0 | <p>To get you started, here is my script to order today's lunch from our local canteen:</p> <pre><code>URL="https://lunch.com/lunch/cgi-bin/order.cgi" O="order=Order" A="amount_%d=%%d&amount_foil_container_%d=%%d" function order_lunch() { if [[ -n "$@" ]]; then curl -u "$USER":"$PASSWORD" \ -d $(printf $(printf "$... |
39,184,263 | 0 | Catch image data via WI-FI <p>I have a device that takes pictures and send to an iPhone app via WI-FI. The iPhone has to connect to the device's WIFI, and when the device takes a picture it saves to camera roll of the iPhone if the app is in the foreground. However if the app is in the background, nothing happens.</p> ... |
7,073,024 | 0 | <p>There is absolutely no difference. Try to run this code:</p> <pre><code>(function() { return setTimeout(function(){console.log(1)}, 500); })(); (function() { setTimeout(function(){console.log(2)}, 500); return; })(); </code></pre> <p><code>return</code> doesn't affect on setTimeout call in JS interpreter.</p> |
20,189,448 | 0 | <p>You share methods in a module, and you place such a module inside the <code>lib</code> folder.</p> <p>Something like <code>lib/fake_data.rb</code> containing</p> <pre><code>module FakeData def random_address [Faker::Address.street_address, Faker::Address.city].join("\n") end module_function end </code></pre> <p>and... |
88,789 | 0 | <p>.aspx doesn't fulfill the MVC pattern because the aspx page (the 'view') is called before the code behind (the 'controller').</p> <p>This means that the controller has a 'hard dependency' on the view, which is very much against MVC principles.</p> <p>One of the core benefits of MVC is that it allows you to test you... |
17,947,245 | 0 | <p>It's all explained in the documentation of <a href="https://developer.blackberry.com/cascades/reference/bb__data__jsondataaccess.html" rel="nofollow"><code>JsonDataAccess</code></a>. You'll have to do something like this:</p> <pre><code>// Create a data model with sorting keys for title GroupDataModel *model = new ... |
34,635,060 | 0 | <p>You are missing a closing <code>}</code> for <code>#nav-wrapper</code>. Add <code>text-align: center;</code> to <code>#nav</code></p> |
20,294,620 | 1 | Python: Run multiple instances at once with different value set for each instance <p>I'm starting up in Python and have done a lot of programming in the past in VB. Python seems much easier to work with and far more powerful. I'm in the process of ditching Windows altogether and have quite a few VB programs I've writte... |
28,848,097 | 0 | <p>Yes, <code>x</code> is not initialized.</p> <pre><code>int x=0; // just initialize it </code></pre> |
37,579,090 | 0 | For completely programmatically created UIView/UIViewController, what should be in loadView vs viewDidLoad? <p>For experimentation purposes, I am trying something completely in code.</p> <p>I have a custom root <code>UIView</code>/<code>UIViewController</code> subclass pair called RootView and RootViewController respec... |
32,590,012 | 0 | Iterating over states doesn't work for me <p>I have an item with multiple <code>StateGroup</code>s:</p> <p><code>MyObject.qml</code></p> <pre><code> import QtQuick 2.0 Item { id: root property alias myStates: myStateGroup.states // .. StateGroup { id: myStateGroup states: [ State { name: "first" }, State { name: "secon... |
5,372,978 | 0 | <p>A recursive solution is probably a good solution. The function would only find the permutations of the first two arrays and then once combined into a single array, you would call this function again with the new combined array instead of the original arrays.</p> <p>Eventually you would only have 1 array left and th... |
18,977,024 | 0 | Sencha touch 2 application not working on android mobile version 4 <p>I am trying to run sencha app on android mobile with api level 15 to support application from version 4. It is not going to the home screen,it's stuck at the loading screen only. It works perfectly on api level 17(4.2.2)/18(4.3). I have installed and... |
1,501,144 | 0 | Handling mail: rails vs php vs perl vs? <p>This is my very first question in stack overflow and I am quite excited. Liked a lot the interface of this site and the buoyant community!</p> <p>I am building a rails app that receives text as an email and creates a post.</p> <p>I ask or your expert opinion on which is the be... |
16,157,624 | 0 | <p>Does this solve your task?</p> <pre><code>@echo off for /f "delims=" %%a in (file_list.txt) do ( >>run.txt echo open %%a and save as pdf ) </code></pre> |
1,799,936 | 0 | onchange attribute won't call function <p>I have an HTML document (<a href="http://www.wikiupload.com/download_page.php?id=196262" rel="nofollow noreferrer">here</a>), which creates an iframe-based media player for a collection of songs within albums (I just used letters to define these albums and songs in the mymusic ... |
39,104,359 | 0 | <p>Just check for carriage return character and new line, if the line index grows, but there is no carriage return or new line char (depending on OS) there IS a multiline string. Im not sure if this can be done with grep but should be quite easy to implement with any programming language or even bash</p> |
26,425,531 | 0 | <p>Okay so, I had a similar problem where I needed two buttons centered at the top of the page. Due to the problem I just dropped it to one button (it was easier that way). Since I'm having the same problem now with three buttons, I can't drop them to one, so I reverted back to the two original buttons that caused me ... |
21,405,644 | 0 | <p>You can use file API methods to set proper permissions using following methods.</p> <pre><code>setReadable(readable, ownerOnly) / setReadable(readable) setWritable(writable, ownerOnly) / setWritable(writable) setExecutable(executable, ownerOnly) / setExecutable(executable) </code></pre> <p>Regards,</p> |
19,983,513 | 0 | <p>And who said you can have only one window ? :) </p> <p>See if my answer <a href="http://stackoverflow.com/a/19983002/1134595">on this similar question</a> can help.</p> <p>This approach is working very well for me. As long as you don't have to worry about multiple displays or state restoration, this linked code sho... |
2,821,393 | 0 | <p>"<strong>Premature optimization is the root of all evil.</strong>"<br> I doubt you'd have to care about a once in a lifetime initialization...<br> That is unless you call it a zillion times, then I suggest you redesign your code.</p> |
32,592,653 | 0 | <p>Nesting listviews is not support in Xamarin.Forms. You can try, but the inner one will not be scrollable and therefor useless.</p> <p>If ListA has a list of ListB's, would it suite your needs to do grouping? <a href="https://i.stack.imgur.com/gj7ZW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/... |
3,881,137 | 0 | Class instance variables inside of class cause compiler errors <p>The compiler is giving me the following complaints about the following class:</p> <pre><code>class AguiWidgetBase { //variables AguiColor tintColor; AguiColor fontColor; //private methods void zeroMemory(); virtual void onPaint(); virtual void onTintColo... |
17,181,978 | 0 | <p>Without using a local variable, in most invocations we have effectively</p> <pre><code>if(field!=null) // true return field; </code></pre> <p>so there are two volatile reads, which is slower than one volatile read.</p> <p>Actually JVM can merge the two volatile reads into one volatile read and still conform to JMM.... |
32,577,164 | 0 | <p>There are two possible answers to your question depending on your exact intent. If I were to guess, the word you're looking for is: <a href="https://en.wikipedia.org/wiki/Morphology_(linguistics)" rel="nofollow">morphology</a> but it could also be <a href="https://en.wikipedia.org/wiki/Phonology" rel="nofollow">pho... |
22,603,170 | 0 | How to add an event handler for dynamically created QML elements? <p>I dynamically added some qml components to my gui according to <a href="http://kunalmaemo.blogspot.kr/2011/04/creating-qml-element-dynamically-on.html">this blog post</a>. How can I add event handlers for those newly created components?</p> |
25,999,368 | 1 | Shifting to Python 3.4.1 on Mac 10.7.5 - how best to get at my modules? <p>So, I want to start using Python 3.4.1. I've got it installed on my machine, etc, and it'll print("hello world!") and according to this post, which seems sensible, I need to leave 2.7 in place for backwards compatibility: <a href="http://stackov... |
37,923,955 | 0 | Are there any functional differences between a (PaaS) website and a (IaaS) VM running IIS? <p>We're moving our operation to Azure soon but we'll be going for a IaaS to effectively emulate our existing physical data center setup. This is largely because our (.NET) website has not been tested using the Azure Website plat... |
3,286,057 | 0 | How to do an inner join in Android? <p>I would like to do an inner join on my database in my Android app. Is this even possible? What about a left join? I know cursor joiner exists but the documentation isn't clear at all. Can anyone provide any further insight? </p> <p>Thanks</p> |
16,730,331 | 0 | <p>There is no issue with the first approach. I presume you are trying to iterate over few <code>DataTimerPicker</code> controls. If so, can you check the <code>Name</code> property of each <code>DataTimerPicker</code> control instances. I suppose it should be, datetimeBi1,datetimeBi2,datetimeBi3 ( just guessing after... |
37,199,952 | 0 | How to implement confirmation or preview in rails? <p>I am calling JSON api from my rails app. User inputs a name in a form, Then i call JSON API and find if the name has any matches there. Sometimes its just one so i create entry with the data provided in JSON. But most of the times there are multiple results on the J... |
37,210,832 | 0 | How to retrieve elements place visually under div <p>I'm trying to retrieve an array of images placed under a absolute-positioned div in jQuery or javascript. A sort of selection. I've tried with ".getElementsByPoint", but as it only allows x,y, I'm a little bit confused how I'm gonna incorperate the height and width, ... |
2,328,602 | 0 | <p>Manually: You can use String.Split() method to split your entire file. Here is an example of what i use in my code. In this example, i read the data line by line and split it. I then place the data directly into columns. </p> <pre><code> //Open and read the file System.IO.FileStream fs = new System.IO.FileStream("m... |
36,710,381 | 0 | <p>So what's the actual file encoding? Open up a hex editor and look at the byte values for <code>insan�n</code> (especially the broken character). Then when you have the byte value, you can find the actual encoding. Now you've just tried two wrong encodings at random.</p> |
16,302,588 | 0 | adb devices doesn't show my device <p>I'm trying to run my application from eclipse on my Samsung Galaxy Tab, however it doesn't show up in the 'Choose a running android device' I then tried changing the running configuration to 'Launch on all compatible devices/AVDs' and picked active devices, I however got the follow... |
36,982,958 | 0 | How to get the value of TextViews from an ArrayAdapter to another Class <p>In order to pass data from my Custom Adapter to another class I tried these two methods and none worked for me.</p> <pre><code> String SGetNumVol=Num_Vol.getText().toString(); String SGetComment=Commentaire.getText().toString(); String SGetAirpD... |
11,897,019 | 0 | ExpressJS Redirect Method <p>If I use the <code>res.redirect( url )</code> will the redirection method also append the previous parameters to where it will be redirected?</p> <p>It means if I passed/send request with a json parameters using POST method then I redirect the request to another server, will that other serv... |
4,326,159 | 0 | <p>in your solution consider changing</p> <pre><code><Trigger Property="MenuItem.Header" Value="enums:AnEnum.ItemA" > </code></pre> <p>to </p> <pre><code><Trigger Property="MenuItem.Header" Value="{x:Static enums:AnEnum.ItemA}" > </code></pre> <p>in your example you check that header is equal to <strong>st... |
12,633,018 | 0 | localPlayerDidSelectChallenge method gets called even if player doesn't tap GKChallenge banner <p>When a player receives a <code>GKChallenge</code>, the <code>GKChallengeEventHandler</code> calls <code>localPlayerDidReceiveChallenge</code> on the delegate implementing the <code>GKChallengeEventHandlerDelegate</code> pr... |
37,523,082 | 0 | Execution failed for task ':app:transformClassesWithMultidexlistForDebug' <p><strong>ERROR</strong> Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.</p> <blockquote> <p>com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process... |
10,677,670 | 0 | <p>There are many places to find interesting data online: The <a href="http://data.worldbank.org/" rel="nofollow">world bank</a> has released an extensive set of data you can download and use for free. You can also extract some of the structured data from wikipedia through the service <a href="http://dbpedia.org/About... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.