pid
int64
2.28k
41.1M
label
int64
0
1
text
stringlengths
1
28.3k
40,813,220
0
PHP open source multi user login <p>I've had, I believe, a great business idea so I’ve decided to try develop a minimum viable product myself.</p> <p>A long, long time ago I taught myself asp classic and built a couple of apps so I have some development experience. I haven't done much since (apart from a few basic php ...
39,281,786
0
jQuery change css background when y-axis scroll reaches a certain depth <p>After scrolling down 600px, I would like a css background-image to appear from no image to a decided background-image (image 1); however, above 600px, I would like to change to another image (image 2). I want this action to repeat itself without...
40,159,956
0
Azure Service Bus: Which message type? <p>I'm going to write an app under Xamarin for iPhone/Android/WindowsPhone that gets continuus data from a server and also sends back continuus data (~ every 10 seconds). I'm going to use Microsoft Azure. I've found that the service bus could help me. What type of messages (relay ...
3,589,043
0
<p>There are a few algorithms outlined on <a href="http://en.wikipedia.org/wiki/Algorithmics_of_sudoku" rel="nofollow noreferrer">Algorithmics of sudoku</a>. What you're describing sounds like a backtracking approach.</p>
17,686,717
0
<p>You can use <code>Control.Region</code> for this purpose</p> <pre><code>GraphicsPath path = new GraphicsPath(); path.AddEllipse(control.ClientRectangle); control.Region = new Region(path); </code></pre> <p>try this, you can create any shape using <code>GraphicsPath</code> and set it to <code>Region</code> for insta...
11,043,170
0
<p>I would also recommend sugarCRM because of the larger community and availability of third party plug ins, having worked with both i can say that sugarCRM's studio gives you a bit more flexibility. There are also many plug ins; I would recomend the ModernAqua theme to improve look and feel.</p> <p>I'll give you a wa...
18,123,423
0
<p>It can be solved rather simply by assigning the border properties only to the <code>table tag</code> instead of assigning them to the <code>th tag</code> and <code>td tag</code>.</p> <pre><code>table { background: #ccc; border-top-left-radius: 20px; border-top-right-radius: 20px; border-top: 1px solid red; } th { w...
1,548,449
0
<p>Can you break the app into 2 separate web applications that run from the same root directory? Just put the complied C# dll in the bin with the compiled VB.net dll and place all of the aspx pages wherever they would need to be for your site structure.</p> <p>I haven't tried this myself, but it should work. You'll ha...
13,452,552
0
<p>You can get help from following link </p> <p><a href="http://msdn.microsoft.com/en-us/library/610xe886%28v=vs.80%29.aspx?cs-save-lang=1&amp;cs-lang=vb#code-snippet-1" rel="nofollow">http://msdn.microsoft.com/en-us/library/610xe886%28v=vs.80%29.aspx?cs-save-lang=1&amp;cs-lang=vb#code-snippet-1</a></p>
22,035,915
0
How to specify the number of parallel tasks executed in Parallel.ForEach? <p>I have ~500 tasks, each of them takes ~5 seconds where most of the time is wasted on waiting for the remote resource to reply. I would like to define the number of threads that should be spawned myself (after some testing) and run the tasks on...
14,242,298
0
Is there something wrong with my OnLocationChanged? <p>My location Logger Service class does not provide me with updated informations about my location. Is there something wrong with me OnLocationChanged?</p> <pre><code>public class LocationLoggerService extends Service implements LocationListener { Location location; ...
35,477,722
0
<p>I had the same problem and my issue was that I copied my autofac configuration from a MVC project and was registering my dependencies with <code>InstancePerRequest</code>. When I changed that to <code>InstancePerDependency</code> instead it solved the problem and <code>GetRequestLifetimeScope</code> was working.</p...
28,509,386
0
C# converting int to hex <p>This is a small snippet of the code I have written in Visual Studio. I need to convert the int <code>add</code> into an hex value (later into a string) as I am accessing the memory of a uC. But when I view the variable during debugging it displays it as a string "add16". What could I be doin...
21,229,439
0
Loop through nested object in jquery <p>Iam newbie to jquery. I need to parse an JSON. I tried with $each statement but stuck with [object,object]looping. here is the code which i used for parsing the JSON. Help me out of this.</p> <pre><code>var myjson='[{"isTruncated": "false","nextMarker": "null","marker": "null","p...
37,463,911
0
Does App store reject icons in the app for being shiny or glossy <p>I am designing icons to include in my app and was designing them to be glossy and shiny. Then found out that app store accepts flat icons without rounded corners by doing research across internet as I did not find much information in <code>iOS Human In...
17,250,003
0
Django, filter records from model method? <p>I'm trying to filter records using a model method but am unsure how to implement it in the view.</p> <p>Should it be done in this way, or completely in the view in some other manor?</p> <p>Here's my model below:</p> <pre><code>class Message(models.Model): msg_id = models.Int...
34,976,193
0
<p>Removing the layout is not a solution.</p> <p>As you are only removing the layout defined by you. One of the indirect Superclass of MainActivity defines a default layout that get inflated when you call <code>super.onCreate(...)</code>. Basically it remove child views defined by you in layout.</p> <p>To avoid the ac...
2,090,043
0
<p>I think what you want to customize is <code>compilation-parse-errors-filename-function</code>, which is a function that takes a filename, and returns a modified version of the filename to be displayed. This is a buffer local variable, so you should set it in each buffer that will be displaying python errors (there ...
40,431,541
0
Get child element distance from parent top <p><a href="https://i.stack.imgur.com/vlROs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vlROs.png" alt="Child distance from top parent"></a></p> <p>Let's say I have an <code>&lt;li&gt;</code> element inside a scrollable div and the scroll was set to show...
14,422,089
0
Max of set in Isabelle <p>How can I find the maximum element in a set of numbers (nat) in Isabelle. The max function doesn't work, as it is only defined to take the maximum of two elements. I have an idea of how I could implement it using a reduce like function, but I don't know how to pick one random element from a se...
40,241,444
0
<p>As to why, look at the case of <code>36 + 'abc'</code> Should this convert <code>36</code> to a string and concatenate the strings, or should it convert <code>abc</code> to a numeric value and add the numbers? There's no right answer, and so Python doesn't guess unless it has specific rules about those two types.</...
36,446,788
0
Downloading webpages programmatically <p>I need to download certain web pages from a web site for my research. I tried to download them using Darcy Wripper, WinHTTrack and C# WebClient method. It happens so that some of the pages get downloaded while (majority) others throw error. For example I have copied this error f...
16,020,660
0
<p>If you're using <a href="http://www.eclipse.org/collections/" rel="nofollow">Eclipse Collections</a> (formerly GS Collections), you can use the <code>partition</code> method on all <code>RichIterables</code>.</p> <pre><code>MutableList&lt;Integer&gt; integers = FastList.newListWith(-3, -2, -1, 0, 1, 2, 3); Partitio...
1,857,477
0
<p>The 260 character limitation is not a limitation of the file system, but of the Win32 API. Win32 defines MAX_PATH as 260 which is what the API is using to check the length of the path passed into functions like FileCreate, FileOpen, etc. (which are used by .NET in the BCL).</p> <p><b>However, you can bypass the Win...
7,843,134
0
<p>Use this:</p> <pre><code>if (get_magic_quotes_gpc()) { $skill = stripslashes($row['skill']); $skill = mysql_real_escape_string($skill); } else { $skill = mysql_real_escape_string($row['skill']); } $sql = 'select * from table where column = "' . $skill . '"'; </code></pre> <p>EDIT: Sorry, I've just realised that <co...
21,278,384
0
<p>Have a look at <a href="http://phantomjs.org" rel="nofollow">PhantomJS</a> - a headless WebKit browser with full javascript support which you can call and interact with via PHP.</p>
36,548,567
0
symfony2: class loading/namespace handling - difference between prod/dev environments? <p>what's exactly the difference in class autoloading and namespace handling between symfony2's app_dev.php and app.php or dev/prod environment (symfony 2.8.4).</p> <p>When I run it in dev environment through app_dev.php all is fine,...
37,869,574
0
How to mock up Blog and Post when one Blog contains many Posts <p>Say we have</p> <pre><code>public class BloggingContext : DbContext { public BloggingContext(DbContextOptions&lt;BloggingContext&gt; options) : base(options) { } public DbSet&lt;Blog&gt; Blogs { get; set; } public DbSet&lt;Post&gt; Posts { get; set; } } ...
6,339,689
0
<p>may be <a href="http://stackoverflow.com/questions/1404651/iphone-how-to-check-the-airplane-mode">this</a></p> <p>helps</p>
2,950,848
0
<p>You need to use a filter file, a filter file can say what file patterns to include, exclude among other things... There's documentation here <a href="http://findbugs.sourceforge.net/manual/filter.html" rel="nofollow noreferrer">http://findbugs.sourceforge.net/manual/filter.html</a></p>
7,424,804
0
Is there a way to use a keyword as a function in Common Lisp, as one does in Clojure? <p>In Clojure one can write</p> <pre><code>(:foo {:foo 3 :bar 5}) </code></pre> <p>which evaluates to 3. Is there any way to extend Common Lisp so that a keyword will act as a function that looks itself up?</p>
17,396,377
0
Error while implementing take for a Stream <p>I was trying to solve Exercise 2 from <a href="http://www.manning.com/bjarnason/" rel="nofollow">Functional Programming in Scala</a>. The question is as follows:</p> <blockquote> <p>EXERCISE 2: Write a function take for returning the first n elements of a Stream. def take(...
18,697,214
0
Why constructor returns nothing ? or it returns something? <p>I read in many java books that constructor have no returns type , it means that it does not return anything ? is it really happen ? or it may return something ? I want to know the reason.</p> <p>Please anyone give me the technical reason. </p>
25,480,922
0
bash: wait for specific command output before continuing <p>I know there are several posts asking similar things, but none address the problem I'm having.</p> <p>I'm working on a script that handles connections to different <code>Bluetooth low energy</code> devices, reads from some of their handles using <code>gatttool...
37,148,517
0
<p>Unlike support for other frameworks, I cannot see GWT when I right click project root in Project tab and select "Add Framework support".</p> <p>However, It still works when I select </p> <blockquote> <p>Project Structure → Facets → Add → GWT</p> </blockquote> <p><a href="https://i.stack.imgur.com/Nt8yJ.png" rel="no...
36,340,268
0
NullPointerException while setting LayoutParams <p>I want to add a button programmatically, which LayoutParams should be set too. Unfortunaly the app gives an exception: </p> <blockquote> <p>java.lang.NullPointerException: Attempt to write to field 'int android.view.ViewGroup$LayoutParams.height' on a null object refer...
25,116,142
0
How to render a Widget inside a TreeView cell with GTK# <p>I'm developing an application with Mono and Gtk#. Inside my app, I need to use the TreeView control. I'm looking for a way to render a widget inside a cell instead of drawing everything. I have custom widgets that I would like to use inside those cells and I do...
32,067,338
0
Error: [$rootScope:infdig] 10 $digest() iterations reached <p>I'm trying to show the posts of my json output into my view but I'm getting an error. </p> <p><code>Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting! Watchers fired in the last 5 iterations: []</code></p> <p>I did some research and it loo...
13,938,263
0
<p>Correct is in the eye of the beholder most of the time. There's often multiple ways to solve an issue. If you want to check for the presence of a bound function and the existence of a DOM Node, then you'll need to capture both after the <code>ready</code> function and compare the <code>typeof</code> variable to fun...
19,523,949
0
Symbols in email headlines for pear mail <p>I'm trying to put a heart symbol ♥ into the headline of an email which should be sent via the php pear mail package.</p> <p>But the receiver gets a ? instead of the heart so there has to be some mistake. It works if I manually send the email with my mail client.</p> <p>My cod...
25,404,839
0
<p>You probably didn't add <code>feincms.module.page</code> to your <code>INSTALLED_APPS</code> as per the <a href="http://www.feinheit.ch/media/labs/feincms/installation.html#configuration" rel="nofollow">documentation</a>. If you follow the traceback, the error appears in <a href="https://github.com/feincms/feincms/...
33,758,780
0
Connecting to MongoDB Replica Set behind a Load Balancer <p>I am a little confused on how MongoDB handles replica sets. I have the following setup:</p> <ul> <li>2 Replica set members to store data</li> <li>1 Arbiter</li> <li>Everything is in a Virtual Network</li> </ul> <p>There are two scenarios:</p> <p><strong>Scenar...
6,135,726
0
<p>what about trying</p> <pre><code>has_many :administrators, :class_name =&gt; "User", :conditions =&gt; "role_id = #{Role.find(:name =&gt; 'Admin')}" </code></pre> <p>Assuming the role table had a corresponding model. are you using a specific framework, or home baked authorization?</p>
29,959,309
0
Remove back button from SearchView in toolbar AppCompat <p><img src="https://i.stack.imgur.com/v5NfH.png" alt="enter image description here"></p> <p>How can I remove the back button icon when search view shows up in Toolbar (AppCompat)?</p> <pre><code>toolbar = (Toolbar) findViewById(R.id.tool_bar); // Set an OnMenuIte...
19,301,798
0
Stripe card authentication passed from iPhone, failed on server <p>The card was validated by Stripe's iPhone code, where I create a card, send to their server and receive a stripe token.</p> <p>When I charge that token, the server receives an error from Stripe saying invalid CVC.</p> <p>I checked Zip code &amp; CVC ver...
22,547,433
1
python regex re.sub with strings <p>I am trying to use regex expressions to build a word filter. Currently, i have something in this form: </p> <pre><code>value = re.sub(r'(([q])[ ]*[w][ ]*[e][ ]*[r])', r'\2***', value, flags=re.IGNORECASE) </code></pre> <p>I would like to be able to do something like </p> <pre><code>v...
5,166,663
0
<p>try:</p> <pre><code>$myObjectCollection = ...; $minObject = $myObjectCollection[0]; // or reset($myObjectCollection) if you can't ensure numeric 0 index array_walk($myObjectCollection, function($object) use ($minObject) { $minObject = $object-&gt;distance &lt; $minObject-&gt;distance ? $object : $minObject; }); </c...
40,096,188
0
How to find the beginning and ending indices of groups of ones in a set of ones and zeros <p>How would I find the beginning and ending indices of the groups of ones. I've tried some convoluted attempts with nested if statements and have had no success. Is there an algorithm that deals with this type of problem or does ...
35,778,779
0
<p>The problem is with this line:</p> <pre><code>mReceiver = new ResultReceiver(new Handler()); </code></pre> <p>Replace it with this:</p> <pre><code>mReceiver = intent.getParcelableExtra(Constants.RECEIVER); </code></pre> <p>The problem is that you're creating a new ResultReceiver instead of using the one that is pre...
746,880
0
FormsAuthentication.RedirectFromLoginPage is not working <p>I am working on a LoginPage.Everything related to database or C# code is working fine but after successul login I am unable to redirect to Home.aspx,am I missing Something? Pls help. <strong>Code:</strong></p> <p><strong>Web.Config:</strong></p> <p> </p> <pre>...
28,602,081
0
<p>Send text file as array of bytes <code>byte[]</code> for 1st parameter or convert it while loading to <code>string</code>. <code>Stream</code> is the other option.</p>
18,660,234
0
<blockquote> <p>I was wondering, is it possible to enhance the speed of a page loading by decreasing the size of images within the page? Would this be possible via jQuery</p> </blockquote> <p>No. This would require that the browser download the large image over the network and then process it to reduce it in size.</p>...
21,305,342
0
Java SQL Statement for selecting record from database and using as double variable <p>Java - Netbeans IDE</p> <p>I have this code but the variable Priceperitem is not found, can anyone explain? or show me an easier way of selecting a record from a table in a database and setting its value as a variable?</p> <p>Price P/...
23,312,674
0
<p>I think this may work</p> <pre><code> ScrollView sv = new ScrollView(this.getActivity()); sv.post(new Runnable() { @Override public void run() { // this is executed when it becomes visible for the first time } }); </code></pre> <p><strong>EDIT</strong> If you want this from an element inside the scrollView, If you ...
14,083,632
0
<p>Some comments requested further details about what I commented out to resolve this issue. I didn't think this was good to add as an edit to the question, since it specifically goes over the resolution. It's been a while since I've worked on this project, so it's not all at the top of my head &amp; I'm not sure I've...
34,512,487
0
Compiling code in Android Studio, Google map view always shows blank? <p>I have a very annoying issue with a project I am working on in Android Studio.</p> <p>I have another developer working on code for me, and part of the app has a Google map view.</p> <p>When this other person sends me raw code, I can open the proje...
26,667,878
0
How to display the json data in multiautocomplete textview? <p>I am new to android, am developing one application in which i have to get the data from the server need to store that data in sqlite, so every time i should not hit the server,when ever i want get from database,in this app i used fragment concept,when i ent...
26,840,485
0
<blockquote> <p>The largest problem is that there it no knowing over the null behavior of the Java API.</p> </blockquote> <p>The lack of annotated libraries continues to be a problem with Eclipse's built in nullness cehcking.</p> <p>Another nullness-checking tool is the <a href="http://checkerframework.org/" rel="nofo...
23,793,919
0
Trying to get onLocationChanged from a service? <p>I have some sample service that implements LocationListener now i want to get the lat/lng every time the location has been changed from that service that listens when location has been changed . But i dont know how to call from the mainactivity to that service to parti...
6,070,707
0
<p>I think you have alot of boiler plate code you don't need. If you do it this way you can add Commands without having to add code as well.</p> <pre><code>public interface Command { } public enum Commands { ; public static Command[] parseCommand(String command) { for (Class type : new Class[]{CameraCommand.class, Rov...
17,097,659
0
<p>The only direction I can think about is running two angular applications, in parallel. The problem is obviously name collision, so you would have to patch angular code and have your own version. This of course is <strong><em>completely</em></strong> discouraged, but just for the sake of discussion <em>it seems</em>...
22,861,762
0
IronWorker is a service that provides to cloud developers a facility to queue / schedule jobs in a way that is meant to be simple and scalable.
36,980,223
0
<p>There is a conflict with concurrent gradle versions:</p> <blockquote> <p>java.util.concurrent.ExecutionException: org.gradle.tooling.BuildException: Could not execute build using Gradle distribution '<a href="https://services.gradle.org/distributions/gradle-2.9-all.zip" rel="nofollow">https://services.gradle.org/di...
31,601,719
0
jquery multiselect dropdown selected values <p>I'm very new to javascript and jquery. I'm trying to create a multi-select dropdown list with "Select All" button. I finally find this nice plugin: <a href="http://wenzhixin.net.cn/p/multiple-select/docs/" rel="nofollow">http://wenzhixin.net.cn/p/multiple-select/docs/</a> ...
18,432,851
0
Accuracy of GPS Timestamp in depending on position accuracy <p>In need to exploit in my application time obtained from GPS. I need position and I need to know a time stamp which I can globally trust. </p> <p>I'm getting information how accurate my position is, for instance 5m, 100m etc. But I would like to know how acc...
20,789,852
0
<p>Because layouts are typically constructed from left to right, it is common for the right side of the image to be cropped off when it's dimensions exceeds the width of it's containing parent.</p> <p>Unfortunately, it is difficult to adjust the size of the <code>&lt;img /&gt;</code> element if you want to keep the as...
14,900,714
0
<p>This uses <code>MAX</code> and <code>MIN</code> to see to that all values are the same; one needs to add a <code>+ 0</code> to each bit to make it available to normal numeric aggregate functions (like <code>MIN</code>/<code>MAX</code>/<code>SUM</code>/...)</p> <pre><code>SELECT ProjectId, EmployeeId FROM Temp GROUP...
4,028,245
0
<p>Maybe this sounds so stupid but.. what about storing the info into an object and putting that object in the session?</p>
37,566,368
0
<p>There is no work around.</p> <p>The C++ language places restrictions on some operators. Notably, the indexing (operator[]), assignment and function call operators must be defined as a non-static member function.</p> <p>This means that there can never be an implicit conversion on the "left-hand-side" operand in an e...
3,850,337
0
<p>There are a few issues with your approach:</p> <ul> <li>It may under-count since you don't use a transaction to atomically update the counter.</li> <li>It is inefficient: <ul> <li>Contention may become a problem if you need to update this counter frequently. Since you only have one counter, it won't scale well. Dat...
31,784,778
0
<p>Previous posts are correct in that compatibility mode appears to be based entirely on file names. There is a simple method for determining precisely which name Windows expects:</p> <p>Right-click the file, select Properties and navigate to the Details tab. There should be an entry labelled "Original filename". Simp...
21,157,684
0
Bind <div> to element of Angular controller <p>We have a somewhat complicated model on an AngularJS controller:</p> <pre><code>function controller($scope) { $scope.model = { childmodel1: { childmodel2: { property1: 'abc', property2: 3, property3: 0.5, property4: 'abc' } } } } </code></pre> <p>In the HTML markup, we don...
1,061,995
0
<p>Write a Vim function in .vimrc using the <code>searchpair</code> built-in function:</p> <pre><code>searchpair({start}, {middle}, {end} [, {flags} [, {skip} [, {stopline} [, {timeout}]]]]) Search for the match of a nested start-end pair. This can be used to find the "endif" that matches an "if", while other if/endif...
4,922,217
0
Can the SSMS editor be re-used in your own application, or is there an alternative? <p>I would like to have IntelliSence or code completion, and syntax highlighting for SQL queries in my own .NET application.</p> <ol> <li><p>Is it possible to use the SQL Server Management Studio's editor similar to the way you can use ...
14,900,756
0
<p>An array printed out with <strong>print_r</strong> cannot be parsed back into a variable.</p> <p>In your server.php do <code>echo json_encode($_POST);</code>. Then in your client.php</p> <pre><code>&lt;?php //... $output = curl_exec($curl_handle); // and now you can output it however you like if ($this-&gt;request_...
717,617
0
<p>If it's in our stack I can't find it :). It would be a good thing to add though :). You can, for now, use an Inline query to simply execute the statement you wrote (it takes straight SQL). I know it's fugly but...</p> <p>Rick - if you did get that to work I'd be interested in how. "Col2" will try and be parsed to a...
37,854,261
0
<p>This post should help you : <a href="http://stackoverflow.com/a/8996581/5941903">http://stackoverflow.com/a/8996581/5941903</a>.</p> <p>Before posting, please try to do some research. I just typed : android rotate imageview on Google...</p>
14,886,127
0
<p>To answer your question, for a pure css solution the answer would be no it is not possible.</p> <p>You could though serve the images from a server and use a scripting language like PHP to get the device information of the user and then serve the appropriate image based on that using PHP function header.</p>
31,535,043
0
<p>Yes, of course you can do.</p> <p>You need to create different layout directory for different density devices.</p> <p>For example <strong>layout-ldpi</strong>, <strong>layout-hdpi</strong>, etc. and define the required kind of layout inside these.</p> <pre><code>res/layout/my_layout.xml // layout for normal screen ...
31,456,279
0
<p>There are no tutorials on <code>ExoPlayer</code> right now. <code>ExoPlayer</code> is a the best alternative to <code>MediaPlayer</code> but is not very newbie friendly at the moment. </p> <p>What you have to do is go to the github page and take a look at the <code>DemoPlayer</code> class in the <code>demo</code> a...
30,781,032
0
Checking for exception type in try/catch block in C# <p>I have a rather basic question I've been thinking about.</p> <p>Refer to the following code snippet that uses a <strong>try/catch</strong> block:</p> <pre><code>public void doSomething() { try { doSomethingElse() } catch (Exception ex) { if (ex is IndexOutOfRangeE...
19,342,876
0
<p>Ok I got the solution, I have remove the click functionality and use the follwing code :-</p> <pre><code>$('#pendulum-child').draggable( { start: function(event, ui) { $('.flush_handle').addClass('flush_handle1'); }, axis: 'y', revert: function( event, ui ) { $('.flush_handle').removeClass('flush_handle1'); $(this)...
32,534,860
0
Using Variable In JSON node.js <p>I am writing some code that allows me to send messages back and forth from two node instances using HTTP &amp; Express.</p> <p>Each client generates a UUID type of identification and then sends it to the main server for storage and authentication.</p> <p>Here is the client, you can see...
19,644,515
0
<p>For only compiling part you can use following changes in the Makefile</p> <pre><code> file%.o:file%.c file%.h $(TOOLCHAIN_GCC) $(COMPILEOPTS) $&lt; </code></pre> <p>After this you need to make changes in linking of the object files to generate the final executable file.</p>
37,123,278
0
<p>This can be achieved by using a script (modify to suit your needs):</p> <pre><code>#!/bin/bash # Dynamic IP .htaccess file generator # Written by Star Dot Hosting # www.stardothosting.com dynDomain="$1" htaccessLoc="$2" dynIP=$(/usr/bin/dig +short $dynDomain) echo "dynip: $dynIP" # verify dynIP resembles an IP if !...
28,763,580
1
Passing a list of randomForest objects back to R with rpy2 <p>I am trying to combine a number of random forest models using rpy2. The <code>combine</code> command in R looks fairly straight forward but I am not sure how to pass the RF objects from python to R.</p> <p>Simple example:</p> <pre><code>import pandas as pd i...
4,110,800
0
Silverlight ListBox control doesn't rebind correctly <p>I'm using a ListBox control with an ItemTemplate like so:</p> <pre><code>&lt;ListBox Name="lbItemsList" ItemsSource="{Binding}" &gt; &lt;ListBox.ItemTemplate&gt; &lt;DataTemplate&gt; &lt;StackPanel Orientation="Horizontal"&gt; &lt;TextBlock Text="{Binding ID}" Pad...
35,678,039
0
windows.h files have hundreds of syntax error <p>When i try to make a WinApi it make a lot of errors or even crushes down. I tried the same code in CodeBlocks(it frozens) in Visual Studio(it's tha same) and also in Dev-Cpp, where i get a lot of errors.</p> <p><a href="https://i.stack.imgur.com/OQXlH.png" rel="nofollow ...
16,941,648
0
<p>The old labels are stored in a graph attribute - node_labels.</p> <pre><code>print g2.node_labels {'a': 0, 'b': 1} </code></pre>
7,915,295
0
How can I get UIPickerView to select the first item? <p>I am encountering a funny problem with UIPickerView. My data source has 2 items:</p> <p>"All" and "Home"</p> <p>When I select one, I execute a certain task.</p> <p>By default All is selected. When I click on Home my task executes, and then when I choose the picker...
32,259,121
0
Animated Gif Frames To Array of BufferedImages <p>I am trying to extract all the frames of an animated gif to an array of bufferedimages. I have been reading <a href="http://stackoverflow.com/questions/8933893/convert-each-animated-gif-frame-to-a-separate-bufferedimage">Convert each animated GIF frame to a separate Buf...
10,303,129
0
<p>Yes, you can; if the variable/parameter you are trying to compare is already populated with data. Something like this:</p> <pre><code>DECLARE v_num1 NUMBER := 5; v_num2 NUMBER := 3; v_temp NUMBER; BEGIN -- if v_num1 is greater than v_num2 rearrange their values IF v_num1 &gt; v_num2 THEN v_temp := v_num1; v_num1 :=...
28,490,593
0
Error on using Vim-latex ("can't find file ~") <p>I'm not sure if this question is appropriate here but I have nowhere else to ask. I recently started to typeset some 'mathsy' stuff using Latex and it became a hobby for me. I've been using TeXnicCenter for this, but feeling that I've got familiar with Latex language, I...
12,396,565
0
<p>Well, you can create your form in html, give it and id and do it like this:</p> <pre><code>document.getElementById('myform').setAttribute('action', post_url); </code></pre>
6,206,177
0
<p>The plus: it's a super easy way to distribute the work that needs to be done.</p> <p>The minus: due to the way that Hadoop recovers from failures, you need to be very careful about managing what is and isn't run (which you can definitely do, it's just something to watch out for). If a reduce fails, for example, the...
30,231,085
0
<p>What version of Android are you testing with? Can you adb shell in and see what these settings are (when you're on wifi)?</p> <pre><code>cat /proc/sys/net/ipv4/tcp_rmem cat /proc/sys/net/ipv4/tcp_wmem </code></pre> <p>And then if they are low (something like "4092 8760 11680"), then try setting them to larger value...
25,891,050
0
Accuratly catch clicks on an iframe <p>I have an ad iframe being written onto my page dynamically. The advert inside may have another iframe itself and will "suck" click events through into it so cannot track them easily. I've used this great plugin by @Vince in the past:</p> <p><a href="https://github.com/finalclap/if...
26,922,866
0
<p>I would also recommend checking out <a href="https://github.com/nicandris/com.example.forkbomb" rel="nofollow">this guy's github</a> for a good example of a fork bomb. Even though he uses an activity to launch it you could modify it to run in a service.</p>
24,585,265
0
getItemId function returns huge numbers - action bar buttons <p>I am trying to add submenus , I created xml:</p> <pre><code> &lt;menu xmlns:android="http://schemas.android.com/apk/res/android" &gt; &lt;item android:id="@+id/action_overflow" android:icon="@drawable/ic_action_overflow" android:showAsAction="ifRoom" andro...
29,706,013
0
<blockquote> <p>What is the point of the &amp;?</p> </blockquote> <p>The <code>&amp;</code> takes the reference of an object, as you surmised. However, there's a <a href="https://github.com/rust-lang/rust/blob/b7fb57529aded92c4f470568e6b5ea7a5a28f6a4/src/libcore/fmt/mod.rs#L783-L796" rel="nofollow"><code>Debug</code> ...