pid
int64
2.28k
41.1M
label
int64
0
1
text
stringlengths
1
28.3k
3,342,725
0
<p><code>DataTable</code> derives from <code>Object</code>, so can be assigned to any <code>Object</code> variable.</p> <p>From MSDN (<a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.datasource.aspx" rel="nofollow noreferrer">DataSource</a>):</p> <blockquote> <p>The DataGridView class...
22,861,331
0
<p>The "traditional" ways of using <code>AssemblyName.GetAssemblyName(string)</code> or <code>FileVersionInfo</code> won't work as they aren't supported on .NET CF. To do this without using <code>Assembly.LoadFrom</code>, you will need to use P/Invoke to natively get the file version information. You can try this code...
18,687,333
0
<p><code>QString</code> offers the <code>arg</code> function:</p> <pre><code>QString("~Untitled %1").arg(armaTab-&gt;currentIndex() + 1) </code></pre>
13,398,017
0
<p>Since this </p> <p><code>$("#offerd_desc li").css('opacity', '0');</code></p> <p>Sets the opacity INSTANT to 0, you would use the animation();</p> <pre><code>$("#offerd_desc li").mouseover({ $(this).stop().animate({opacity:0.5},500); }); $("#offerd_desc li").mouseout({ $(this).stop().animate({opacity:0.5},500); });...
687,383
0
<p>First get the Type object using <code>Type.GetType(stringContainingTheGenericTypeArgument)</code></p> <p>Then use <code>typeof(Repository&lt;&gt;).MakeGenericType(theTypeObject)</code> to get a generic type.</p> <p>And finally use <code>Activator.CreateInstance</code></p>
13,352,986
0
<p>There is no way to do this. Must be done manually.</p>
5,021,275
0
Accessing NI-VISA from Qt C++ 4.7 <p>I am developing a Windows (7) application using Qt (4.7.0) to call some methods in a DLL (NI visa32.dll) to communicate with instruments through the GPIB port. The manufacturer's header file is also available (visa.h).</p> <p>In the project file, I tried adding the path and library ...
27,345,140
0
<p>Try putting in a break.</p> <pre><code>// As a side note: you can check at the very beginning to see that // the ID isn't being compromised by something by checking if // is_numeric. Also, you can save your 'fail' message until the very // end when checking that your $leadsource isset. These extra points // are not...
3,696,383
0
Grails: Is there a debug flag I can check? <p>I have a few log.debugs() that I don't want to process (since they are heavy) unless the app is currently in debug mode (not production). </p> <p>Is there a way to check if the grails app is currently in debug mode/development mode?</p>
34,854,415
0
<p>Do not use functions in templates when you can avoid this.</p> <pre><code>&lt;select ng-model="template"&gt; &lt;option value="test.html"&gt;first&lt;/option&gt; &lt;option value="test2.html"&gt;second&lt;/option&gt; &lt;/select&gt; &lt;div ng-include="template"&gt;&lt;/div&gt; </code></pre> <p><a href="http://plnk...
6,897,996
0
<pre><code>- (IBAction)own { if (thing.hidden == NO) { int rNumber = rand() % 4; NSString *myText = @""; // switch (rNumber) { case 0: myText = @"A"; break; case 1: myText = @"B"; break; case 2: myText = @"C"; break; case 3: myText = @"D"; break; default: break; } result.text = myText; } if (thing.hidden == YES) { int...
32,512,845
0
<p>The two standard patterns for High Availability NAT are:</p> <ul> <li><a href="https://aws.amazon.com/articles/2781451301784570" rel="nofollow">High Availability for Amazon VPC NAT Instances: An Example</a></li> <li><a href="https://aws.amazon.com/articles/5995712515781075" rel="nofollow">Using Squid Proxy Instance...
18,557,551
0
<p>Because the connection <em>is</em> established. Calling accept() isn't a pre-requisite for that. The system accepts incoming connections and enqueues them to the backlog queue. Calling accept() just removes an item from the queue, blocking while it is empty.</p>
3,491,746
0
<p>Edit: Actually I can get this error message by using a scalar function as if it was a table valued function. </p> <p><strong>Don't use</strong></p> <pre><code>SELECT * from [dbo].[calculatecptcodeprice] (...) </code></pre> <p><strong>Use</strong></p> <pre><code>SELECT [dbo].[calculatecptcodeprice] (...) </code></pr...
32,850,431
0
<p>Constructors are used to generate the "default" values in an object.<br> Once created, however, "getters" and "setters" are simply methods that allow you to access private members of that object. They're named as such because one name their methods <code>getValue()</code> to get a private variable named value from ...
30,651,349
0
Calculating cumulative hypergeometric distribution <p>Suppose I have 100 marbles, and 8 of them are red. I draw 30 marbles, and I want to know what's the probability that at least five of the marbles are red. I am currently using <a href="http://stattrek.com/online-calculator/hypergeometric.aspx" rel="nofollow">http://...
19,196,481
0
<p><code>DateTime</code> is a value type object which mean that you cannot set it's value to <code>null</code>.</p> <p>Use the <code>DBNull.Value</code> to assign the data. </p> <hr> <p><a href="http://msdn.microsoft.com/en-us/library/s1ax56ch.aspx" rel="nofollow">Value Types</a></p>
19,934,433
0
<p>I have found that the issue lies with the references to icon files and an older version of the jquery library being used. I'm still not sure why it wasn't an issue for IE, but was for chrome. </p> <p>My theory on why the incorrect reference to the icon file was causing a problem was that when no icons were rendered...
40,625,227
0
Multithreading in windows service <p>I am designing a solution for a client where in data has to be polled from SQL table and a request is to be sent to a WCF service with a request formed from that data. The response of the WCF service will contain additional data that has to be updated in the SQL table again.</p> <p>...
37,526,756
0
<p>Use Google Place api will help you to know about particular place <a href="https://developers.google.com/maps/documentation/android-api/infowindows#custom_info_windows" rel="nofollow">link</a></p>
2,406,931
0
how to solve ran time error NSString, sqlite3_column_text NULL problem? <p>I am new in iphone application developer i am using sqlite3 database and in app delegate i am wright following code and run properly we also find value from database to in my aplication, </p> <p>but immediately the application is going to crass ...
30,193,970
0
Animate when the first image is loaded <p>I want to animate an element only when this element is loaded ( with the background ). I tryed this but doesn't work:</p> <p>CSS:</p> <pre><code>#topimg{ background: rgba(0, 0, 0, 0) url(../img/bg.jpg) 0 0 no-repeat fixed; background-size: cover; } </code></pre> <p>HTML:</p> <p...
39,439,488
0
Include LaTeX code from R objects into markdown <p>I am writing up a report where the output gets pushed to a <code>xlsx</code> document via <code>library(xlsx)</code>. This data then feeds into a table especially formatted with LaTeX code that formats the output:</p> <pre><code>```{r import_results, echo = F} if(!file...
38,330,493
1
How can I acquire data from live experimentation and do a live 2D plot using threads? <p>I need to take data from an instrument and live 2D plot them. I can do it without threads, but it is slow ... How could I proceed without having errors like "QObject::setParent: Cannot set parent, new parent is in a different threa...
16,248,115
0
<pre><code>"select * from products where 1".cleanstring($stringval); function cleanstring($var) { $color_list = array('GOLD','RED','GREEN','WHITE'); $sql_where=''; foreach( $color_list AS $v){ if(strpos($var, $v)!==false){ $sql_where .=" AND color LIKE '%{$v}%'"; } } return $sql_where; } //select * from products where...
36,224,422
1
Python Turtle Positional Errors <p>I've been trying to scale a Turtle drawing by a single axis and after some testing, I managed the following function:</p> <pre><code>def DrawSquare(length=50.0, Yscale=2): setheading(0) for n in range(0,4): oldYcor = int(ycor()) oldPos = pos() penup() forward(length) newYcor = int(yco...
3,499,987
0
<p>You need the GLOBAL <code>g</code> switch.</p> <p>s/^#(.+)/$1/g</p>
5,411,757
1
Problem writing unicode UTF-16 data to file in python <p>I'm working on Windows with Python 2.6.1.</p> <p>I have a Unicode UTF-16 text file containing the single string Hello, if I look at it in a binary editor I see:</p> <pre><code>FF FE 48 00 65 00 6C 00 6C 00 6F 00 0D 00 0A 00 BOM H e l l o CR LF </code></pre> <p>Wh...
22,641,032
0
<p>Do you have the SVN Ant tasks defined? In our build we have this line at the top:</p> <pre><code>&lt;typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpath="svnant.jar"/&gt; </code></pre> <p>and then we can reference the task just fine.</p>
30,965,893
0
Swift Error: Consecutive declarations on a line must be separated by ';' <p>This is my code:</p> <pre><code>import UIKit class PlaylistMasterViewController: UIViewController { @IBOutlet weak var abutton: UIButton! override func viewDidLoad() { super.viewDidLoad() abutton.setTitle("Press me!", forState: .Normal) } overr...
25,363,871
0
NA/NaN/Inf error when fitting HMM using depmixS4 in R <p>I'm trying to fit simple hidden markov models in R using depmix. But I sometimes get obscure errors (Na/NaN/Inf in foreign function call). For instance</p> <pre><code> require(depmixS4) t = data.frame(v=c(0.0622031327669583,-0.12564002739468,-0.117354660120178,0....
32,758,318
0
<p>You can use <code>godep save</code> in your local pc where you complete your program. godep save collect all the dependency files for you. When you move to other pc, just copy the Godep folder with your code and it will solve your problems.</p>
911,612
0
<p>Project Euler isn't fond of discussing problems on public forums like StackOverflow. All tasks are made to be done solo, if you encounter problems you may ask help for a specific mathematical or programming concept, but you can't just decide to ask how to solve the problem at hand - takes away the point of project ...
40,908,974
0
Extjs 5 - Date picker year only <p>I would like date picker without day or month, just with year.</p> <p>I would like this </p> <p><a href="http://stackoverflow.com/questions/28167452/extjs-5-date-picker-year-and-month-only">EXTJS 5 - Date picker year and month only</a> </p> <p>but without month, just year.</p> <p>Than...
21,593,785
0
<p>You need to add <code>- (IBAction)filebrowserbutton:(id)sender;</code> to your header file and connect it to your button's <code>touchDown</code> method.</p>
17,814,498
0
<p>Add</p> <pre><code>gem 'therubyracer' </code></pre> <p>to your <code>Gemfile</code>. Then run</p> <pre><code>bundle </code></pre> <p>The error occurs because you don't have JavaScript runtime environment, which is needed by <code>Asset Pipeline</code>. </p>
31,248,792
0
Mysql ssl connection with real connect giving error <p>I am getting this error while trying to connect mysql on SSL.</p> <blockquote> <p>Warning: mysqli_real_connect() [function.mysqli-real-connect]: SSL operation failed with code 1. OpenSSL Error messages: error:14082174:SSL routines:SSL3_CHECK_CERT_AND_ALGORITHM:dh k...
11,749,138
0
Automatic dependencies in TeamCity (or other continuous build)? <p>I'm thinking of implementing a really large continuous build at work (hundreds of Visual Studio solutions, thousands of projects). It includes .NET, C++, and VB6 code. We have some solutions building on TeamCity, but dependencies aren't set up right. Ke...
19,165,257
0
C++ template issue to Pull Up the Builder pattern into a configuration? <p>I have an algorithm that requires a large number of parameters (i.e. configuration) as part of its constructor and also requires some clearly defined creational steps. Therefore I have created a <a href="http://en.wikipedia.org/wiki/Builder_patt...
30,985,073
0
WAMP crashed after computer shutted down <p>Wamp doesn't work since my computer suddenly shutted down (having run Wamp), yet before that it was working fine. The system is Win7 64-bit.</p> <p>I'd installed again Wamp x64, problem hadn't been solved. I did the same with Wamp x32 but problem still was current.</p> <p>Whe...
13,393,751
0
Change values in <td>'s with jquery <p>I have a table of values. Is it possible with JQuery by clicking on currency link to change value in cells with exchange rates? This static example table</p> <pre><code>&lt;table border="1"&gt; &lt;tr&gt; &lt;td class="currency"&gt;100&lt;/td&gt; &lt;td class="currency"&gt;200&lt;...
10,631,885
0
<p>Simply dropping in the files and refreshing is sufficient. Eclipse will automatically ammend the package declaration in the Java sources.</p> <p>That all being said, you should be looking at using a version control system such as CVS or subversion for example.</p>
19,730,743
0
<p>My solution using a <a href="http://developer.android.com/reference/android/app/ListFragment.html" rel="nofollow"><code>ListFragment</code></a>, based on the solutions by @Jakobud and @greg7gkb.</p> <pre><code>ListView listView = getListView(); listView.setDivider(null); listView.setDividerHeight(getResources().get...
34,632,493
0
<p><strong>There is no standard way to get the battery level for an iBeacon.</strong> Some manufacturers like Kontakt store the battery level in an extra byte at the end of the broadcast, which is true for the post you reference. However, this will not work for all manufacturers.</p> <p>Another common way to get the i...
6,574,683
0
<p>You need to handle the <a href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.checkbox.checkedchanged.aspx" rel="nofollow">Checkbox changed event</a> after this you can determine if it is your collection or not and add or remove it accordingly</p>
9,330,386
0
<p>Have you read the <a href="http://www.cc.gatech.edu/~bader/COURSES/GATECH/CSE6140-Fall2007/papers/LC87.pdf" rel="nofollow">original paper</a>? It's very nicely explained.</p>
20,963,409
0
<p>SBAR stands for Subordinate Clause (see <a href="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.9.8216&amp;rep=rep1&amp;type=pdf">here</a>). In your case the subordinate clause starts with the subordinate conjunction <em>After</em></p>
16,213,950
0
<p>You could try something like this: <a href="http://jsfiddle.net/MQrd6/3/" rel="nofollow">http://jsfiddle.net/MQrd6/3/</a></p> <p>The trick is to set the width of <code>border-image</code> same as <code>border-width</code>:</p> <pre><code>#leaf { width: 760px; vertical-align: middle; border-width: 22px; border-image...
29,268,120
0
<p>Your <code>outfile2</code> is a <code>PrintWriter</code>. Somewhat surprisingly, <a href="http://docs.oracle.com/javase/8/docs/api/java/io/PrintWriter.html" rel="nofollow"><code>PrintWriter</code> methods don't throw exceptions</a>.</p> <blockquote> <p>Methods in this class never throw I/O exceptions, although some...
29,831,363
0
<p>You set the api endpoint like this:</p> <pre><code>cf api https://api.ng.bluemix.net </code></pre> <p>and then you login with <code>cf login</code>.</p> <p>Alternatively you can use the European endpoint:</p> <pre><code>cf api https://api.eu-gb.bluemix.net </code></pre> <p>EDIT:</p> <p>Alternatively, as you were im...
7,357,749
0
wp7 sms sending recieving and sms interceptors <p>Is there any way to send and recieve sms in wp7?</p> <p>And is there any way smsinterceptors if not</p> <p>is there any alternative way to do it?</p> <p>Any third party tool like that?</p>
9,874,489
0
<p>The new animation should take the current transform (translation) into account:</p> <pre><code> CATransform3D leftTransform = CATransform3DMakeRotation(wobbleAngle, 0.0f, 0.0f, 1.0f); leftTransform = CATransform3DConcat(layer.transform, leftTransform); CATransform3D rightTransform = CATransform3DMakeRotation(-wobbl...
39,989,023
0
<p>The best way to deal with this is by indexing into the rows using a Boolean series as you would in R.</p> <p>Using your df as an example,</p> <pre><code>In [5]: df.Col1 == "what" Out[5]: 0 True 1 False 2 False 3 False 4 False 5 False 6 False Name: Col1, dtype: bool In [6]: df[df.Col1 == "what"] Out[6]: Col1 Col2 Co...
9,642,721
0
<p>Use <a href="http://api.jquery.com/val/" rel="nofollow"><code>.val()</code></a>, not <a href="http://api.jquery.com/attr/" rel="nofollow"><code>.attr()</code></a>, to set an element's value.</p> <p><a href="http://jsfiddle.net/mattball/jjjSf/" rel="nofollow">http://jsfiddle.net/mattball/jjjSf/</a></p> <hr> <p>As a ...
19,378,842
0
<p>On further analysis, I found that the error boils up to an IOException in the Persistence class. The class <code>ErrorNode</code> must implement <code>Serializable</code> and that should do the trick</p> <blockquote> <p><strong>EDIT:</strong> If you are a jbpm developer, you may want to look at the above error trac...
10,020,444
0
<p><a href="http://jsfiddle.net/yUgYW/3/" rel="nofollow">http://jsfiddle.net/yUgYW/3/</a></p> <p>this is what I get this far.. could be a start for you</p> <p><strong>HTML</strong></p> <pre><code>&lt;div id="container"&gt; &lt;ul&gt; &lt;li class="fisrt"&gt;1&lt;/li&gt; &lt;/ul&gt; &lt;ul class="center"&gt; &lt;li&gt;...
39,976,421
0
Degenerate a single SQL table into multiple domaines tables <p><strong>In short:</strong> I have a client who wish to be able to add domain tables, without adding SQL tables.</p> <p>I am working with an application in wich data are organized and made available with a postgresql <em>catalogue</em>. What I mean by <em>ca...
5,351,492
0
<p>try this</p> <pre><code>preg_replace('@(?&lt;!http:)//.*@','',$test); </code></pre> <p>also read more about PCRE assertions <a href="http://cz.php.net/manual/en/regexp.reference.assertions.php" rel="nofollow">http://cz.php.net/manual/en/regexp.reference.assertions.php</a></p>
30,023,822
0
<p>I think by calling <code>AsyncTask</code> in <code>for</code> loop, it might start another task while the previous one still in <code>doInbackground()</code> that will result in multiple progress running because of this:</p> <p><code>pDialog = new ProgressDialog(getActivity());</code></p> <p>You will have a referen...
20,637,122
1
python IDLE shell appears not to handle some escapes correctly <p>For example \b backspace prints as quad (shown as [] in example below). But \n newline is Ok.</p> <pre><code>&gt;&gt;&gt; print 'abc\bd' abc[]d &gt;&gt;&gt; print 'abc\nd' abc d </code></pre> <p>Im running under Vista (pro), python 2.7</p> <p>Ive tried g...
24,600,172
0
<p>Looks like no impacts from the AD perspectives. From a DNS perspective, Azure assigned IP addresses to the machines in the order that they were restarted, so to avoid confusing DNS, I restarted the VMs in order of increasing IP address.</p> <p>Needed to make sure SQL Server data volumes were attached before startin...
15,315,792
0
<p><code>voltage</code>- int, current battery voltage in millivolts</p> <p><code>temperature</code> - int, current battery temperature in tenths of a degree Centigrade</p> <p><a href="http://hi-android.info/src/com/android/server/BatteryService.java.html">Here is the source file </a></p>
21,391,166
0
<p>You could use the WITH clause to achieve the same effect:</p> <pre><code>WITH DISTINCT_TALENTS(PERSONID, TALENT) AS (SELECT DISTINCT PERSONID, TALENT FROM TALENTS) SELECT DISTINCT PERSONID, TALENT FROM (SELECT A.PERSONID, CASE WHEN TALENT_COUNT = 2 THEN 'BOTH' ELSE A.TALENT END FROM DISTINCT_TALENTS A INNER JOIN (S...
1,535,014
0
<p>I thought Professional SQL Server 2005 Performance Tuning by WROX was pretty excellent.</p>
411,996
0
<p>There are four main open-source relational database management systems of note that might be appropriate to this sort of application: Postgresql, MySQL, Firebird and Ingres. There are other systems such as <a href="http://www.sqlite.org/" rel="nofollow noreferrer">SQLite,</a> but they do not have this type of archi...
25,848,195
0
Android - Thread safety while updating arraylist <p>My Activity consists of a BroadcastReceiver and an AsyncTask, both of them update an ArrayList (very often). I understand that an AsyncTask runs in the background, and there may be a possibility where the BroadcastReceiver and the AsyncTask threads may update the Arra...
33,939,920
0
Preventing startx after login on my Raspberry pi <p>I'm trying to set up my pi to operate through SSH in anticipation of a robot project. I've successfully set up a SSH client on my laptop (PuTTY) and enabled SSH using raspi-config. I can login to the pi via SSH but the screen, having displayed the login progress becom...
39,202,772
0
Delphi 10.1 Berlin android 5.0.1 app crash on TEdit focus <p>I have a minimal firemonkey test app with one button and one TEdit control on form.</p> <p>If I run this app on Acer Tablet B1-770 on Andoid 5.0.1 happen following:</p> <p>If I click (or touch) in the edit control the app crashes. I have no problems with othe...
16,194,335
0
<p><code>INSERT INTO beneficiaries (quoteid, uid, name, percent) SELECT quoteid, uid, name, percent FROM children WHERE quoteid = '$quoteid'</code>;</p> <p>Adjust column names as needed.</p>
14,278,955
0
Assembly procedure calling from C (Intel 8086) <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/14278373/intel-8086-assembly-procedure-calling-from-c">Intel 8086 Assembly procedure calling from C</a> </p> </blockquote> <p>I need to prepare a procedure in Assembly for ...
16,930,358
0
OpenGL does not draw as expected <p>I am currently working my way through the current OpenGL Programming Guide, Version 4.3. I implemented the code of the first example, that should display two triangles. Basically pretty simple. </p> <p>But nothing is displayed when I run that code (just the black window).</p> <p>This...
16,475,412
0
<p>Please try to search first your question on google if you not found your solution on google in that case you should post your question. See your answer on below link</p> <ol> <li><p><a href="http://stackoverflow.com/questions/2746478/how-can-i-loop-through-all-subviews-of-a-uiview-and-their-subviews-and-their-su">H...
30,930,751
0
<p>Let's suppose the following two arrays and their "sum":</p> <pre><code>Array 1: 1 2 3 4 5 6 7 8 9 [length = 9] Array 2: 2 4 6 8 2 4 6 [length = 7] Sum : 3 6 9 12 7 10 13 8 9 [length = 9] </code></pre> <p>Pay attention to the last two items. The sum is equal to the value of the first array because the second array d...
4,359,372
0
Red5 changing the default location of storing media files <p>I've just started playing with Red5 and am developing an app using which users can record video messages. Now by default the video files are being saved in </p> <p>C:\Program Files\Red5\webapps\webcam_recorder\streams</p> <p>I am trying to figure out how I ca...
12,674,575
0
Ribbon button not firing event set by onAction when clicked <p>I've designed an add-in to Outlook 2010 where I'm trying to fire (or, rather, catch) an event fired when a button is clicked as shown <a href="http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/a3fa9ea5-6710-48c4-adb7-1f11afe34f81/">in this article</...
24,375,315
0
<p>This works:</p> <pre><code>data={} with open(fn) as f: reader=csv.reader(f, delimiter='\t', quoting=csv.QUOTE_NONE) header=next(reader) for row in reader: data.setdefault(row[1], []).append(int(row[2])) print 'key\tmin\tmax' for k in data.keys(): print '{}\t{}\t{}'.format(k, min(data[k]), max(data[k])) </code></pre...
35,229,671
0
If statements based on another column within a dataframe: in R <p>For a simple dataframe:</p> <pre><code>df &lt;- structure(list(id = 1:9, sex = structure(c(2L, 2L, 1L, 2L, 1L, 1L, 2L, 2L, 1L), .Label = c("f", "m"), class = "factor"), score = c(55L, 60L, 62L, 47L, 45L, 52L, 41L, 46L, 57L)), .Names = c("id", "sex", "sco...
30,900,662
0
<p>You can use images to fully customize your GUI. In our case, it's the buttons.</p> <h1>[Class] ImageButton</h1> <p>Image Buttons for AHK GUIs.</p> <p>Source: <a href="https://github.com/AHK-just-me/Class_ImageButton" rel="nofollow">https://github.com/AHK-just-me/Class_ImageButton</a><br> Forum topic: <a href="http:...
19,712,836
0
<p>What's happening is that the "event dispatch thread", where all the Swing events happen, is having to wait for your code. Don't do long-running stuff on the event dispatch thread. This is a famous anti-pattern. </p> <p>You should read the lesson from the Java tutorials, that starts at <a href="http://docs.oracle.co...
16,241,005
0
<ol> <li><p>How do you know that the request is not valid?</p></li> <li><p>Do you work for GoDaddy or have permission from those who own, manage or control the servers you are developing against to test their servers? (see license agreement for LoadRunner)</p></li> </ol>
8,802,675
0
<p>i'd really wish this wouldn't be possible, but sadly it is (or was). i don't know for sure if this still works on Win7 and with current browser-versions, but in the past you could do this...</p> <p><strong>Firefox</strong></p> <pre><code>function getUsr() { return Components.classes["@mozilla.org/process/environmen...
17,208,214
0
<p>You probably want to install .NET Framework 4.5, which is an in-place, backwards-compatible version of the .NET 4.0 framework. You can find the installer here: <a href="http://www.microsoft.com/en-us/download/details.aspx?id=30653" rel="nofollow">http://www.microsoft.com/en-us/download/details.aspx?id=30653</a></p>
13,418,860
0
<p>I had run into a similar challenge with a proxy class. For reasons that I won't go into, I needed to serialize the class manually using the XmlSerializer on web server and deserialize on client. I was not able to find an elegant solution online, so I just avoided the issue by removing the XmlTypeAttribute from the ...
39,757,418
1
Using Tweepy Stream, How do I search for retweets? <p>I am currently using Tweepy's stream in order to fetch tweets. For some reason, it does not seem to show that I am fetching any sort of retweets. The <code>retweet_count</code> field is always 0 and the <code>retweeted</code> field is always false. Normal tweets are...
17,410,310
0
<p>you can try</p> <pre><code>if(spinnerCarbs == null) return; </code></pre> <p>Then the rest of you code </p>
28,030,308
0
<p>You do not need to use <code>?</code>. Generics are not used like that except in rare (and usually strange) circumstances.</p> <pre><code>class MyClass { } class MyExtendedClass extends MyClass { } public void test() { Map&lt;Integer, MyClass&gt; myMap = new HashMap&lt;Integer, MyClass&gt;(); myMap.put(1, new MyCla...
11,180,828
0
<p>If your branch consists of many small commits adding up to one large change, you might be able to effect this by pushing the commits up in stages. Perhaps create a new branch starting at the point at which your code diverges from that on the company server, then pull ranges of commits from your branch in stages and...
28,113,333
0
NullPointerException when reading manifest signed webstart jar behind authentication layer <p>I have a java webstart application running in a tomcat web server. The single jar referenced by the JNLP has been signed. The entire web-application is behind a basic authentication layer.<br> Web.xml extract:</p> <pre class="...
13,424,558
0
<p>Lua cannot magically give the original arguments new values. They might not even be on the stack anymore, depending on optimizations. Furthermore, there's no indication where the code was when it yielded, so it may not be able to see those arguments anymore. For example, if the coroutine called a function, that new...
37,724,737
0
<p>I do expect that you are using the correct host on your side.</p> <p>But you are missing Username and Password.</p> <pre><code>transport = session.getTransport("smtp"); transport.connect(hostName, port, user, password); transport.sendMessage(message, message.getAllRecipients()); </code></pre> <p>or you can use the ...
21,932,897
0
<p><code>quiver</code> plot may be too much for plotting only one vector in 3-D. You can achieve a similar plot by using a simple <code>plot3</code> such as the one plotted below.</p> <p>In this plot, the origin of the vector is the blue dot, and the direction is given by the red line.</p> <p><img src="https://i.stack...
8,683,766
0
AIR from HTML: Controlling Size of New Window <p>I'm using Dreamweaver to convert a web site into an AIR desktop app. The app searches and browses through PDF files and provides links for opening them. I am foremost a web developer, so HTML and JavaScript/jQuery is what I understand, the links are simple <code>&lt;a&gt...
2,228,533
0
Estimate the size of outputted dll/exe upfront? <p>currently I'm fixing some issues regarding to small outputted dll (I'm using Ribosome build system on Windows) so I'm wondering this:</p> <p>suppose project (C++) include source files whose total size is i.e. 100 KB and project also depends on i.e. 3 libraries, each ab...
35,278,942
0
Scraping with a multithreaded queue + urllib3 suffers a drastic slowdown <p>I am trying to scrape a huge number of URLs (approximately 3 millions) that contains JSON-formatted data in the shortest time possible. To achieve this, I have a Python code (python 3) that uses Queue, Multithreading and Urllib3. Everything wor...
17,980,724
0
<p>Echo the HTML form and ensure your file uses the .php extension (.php)</p>
28,107,625
0
<p>You can use which.</p> <pre><code>desireDf &lt;- df[ which( df$CATEGORY=="over 10 mio" &amp; (df$COUNTRY=="Germany" | df$COUNTRY=="Sweden" )), ] </code></pre> <p>Also it works without which:</p> <pre><code>desireDf &lt;- df[ (df$CATEGORY=="over 10 mio" &amp; (df$COUNTRY=="Germany" | df$COUNTRY=="Sweden")), ] </code...
27,100,213
0
Android webview pageStarted not detected, facebook unable to cancel share <p>I am sharing a link using my webview.</p> <p>"<a href="http://m.facebook.com/sharer.php?u=" rel="nofollow noreferrer">http://m.facebook.com/sharer.php?u=</a>" + urltoshare;</p> <p>My code is:</p> <pre><code>WebView myWebView = (WebView) findVi...
11,063,655
0
<pre><code>$sql=array(); foreach ($f_list as $list) { //This assumes, your values are already safely quoted $sql[]="'".$list['id']."','".$list['name']."'"; } $sql=implode('),(',$sql); $sql="INSERT INTO tablename VALUES($sql)"; // now run the query </code></pre>
11,691,849
0
<p>The application identifier of an app "looks something like an Internet domain name in reverse, such as 'com.apple.textedit'."<a href="http://macscripter.net/viewtopic.php?pid=96491" rel="nofollow"> &rarr; reference</a></p> <p>If you used Xcode to create your Applescript application you can set the Application Bundl...
16,253,580
0
<p>It looks like there is not a perfect solution</p> <p>I ended up having a ProgressBar instance in the Activity, another instance in each fragment exactly overlapping the Activity one and then I just fade them in and out.</p> <p>The "stuck" effect is now negligible</p>