pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
12,924,387 | 0 | <h2><a href="http://developer.apple.com/library/ios/#technotes/tn2265/_index.html" rel="nofollow">Apple's recommended way to reset the notification</a></h2> <p>During development only, of course.</p> <blockquote> <p>If you want to simulate a first-time run of your app, you can leave the app uninstalled for a day. You ... |
40,251,223 | 0 | Downloading Firebase Storage Files Device Issue <p>I am trying to download a word document from Firebase storage. On the simulator everything is working as expected. Yet on my device, I get the following error:</p> <blockquote> <p>Optional(Error Domain=FIRStorageErrorDomain Code=-13000 "An unknown error occurred, pleas... |
39,103,868 | 0 | Xamarin iOS project need suggestion <p>I am developing a survey app using Xamarin and Mvvmcross. Can some one help with suggesting a way to build a View to display questionnaire. These questionnaire will be supplying from my View Model as a List of question with Question Text, Answer options. Based on a flag I need to ... |
18,716,263 | 0 | Blogger API v.3 - can't transfer the data to the post (javascript) <p>New post created with out data - <a href="http://yatsynych.blogspot.com/" rel="nofollow">http://yatsynych.blogspot.com/</a>. Problem on object body_data?</p> <p>My source:</p> <pre><code>function makeApiCallBlogger() { gapi.client.setApiKey('AIzaSyDF... |
37,327,688 | 0 | <p>You're using Spark 1.3.0 and Python version of <code>createDirectStream</code> has been introduced in Spark 1.4.0. Spark 1.3 provides only Scala and Java implementations.</p> <p>If you want to use direct stream you'll have to update your Spark installation. </p> |
10,951,894 | 0 | <p>You shouldn't be storing all that HTML in the database. Only store the <em>data</em> in the database. I'm not sure whats going on exactly since I don't understand that language but you should be storing each of those numbers in a column in your database and the querying for them in PHP. You will have a variable for... |
22,677,583 | 0 | <p>You probably want to pad it with 0 bytes. Fill your newtitle buffer with zeroes before copying the string into it, then write that buffer to the file:</p> <pre><code>char newtitle[80]; memset(newtitle, '\0', 80); strncpy(newtitle, title, 80); fwrite(newtitle, sizeof(char), 80, fp); </code></pre> <p>You can pass wha... |
16,022,220 | 0 | Reverse words in C Language <p>I'm trying to reverse the letters for words in a sentence. I am also trying to store these words in a new char array. At the moment I getting a runtime error, which for all my tweaking I can not solve. My approach is to create a new char array the same length as the sentence. Then loop th... |
31,841,491 | 0 | <p>Use a symlink.</p> <pre><code># Move current storage folder to where you want it to be mv storage ../storage # Create a symlink to this new location ln -s ../storage ./storage </code></pre> |
31,176,091 | 0 | <p>A solution with the <code>data.table</code> package:</p> <pre><code>require(data.table) df <- data.table(CLNCL_TRIAL_ID = c(89794, 89794,8613, 8613), SITE_ID = c(12456, 12456, 100341, 30807)) df[,length(unique(SITE_ID)),by=CLNCL_TRIAL_ID] </code></pre> <p>Produces</p> <pre><code> CLNCL_TRIAL_ID V1 1: 89794 1 2: ... |
3,333,923 | 0 | <p>You defined the variable <code>masterTable</code> but are accessing it with lowercase <code>mastertable</code>?</p> |
37,446,529 | 0 | <p>You can't force something to be synchronous if it goes outside of the event loop like an ajax call. You're going to need something that looks like this:</p> <pre><code>PlanLineActions.calculateFlightEndDate(periodTypeId, numberOfPeriods, momentTimeUnix) .then(endDate => { this.theNextSyncFunction(..., ..., ...);... |
38,503,076 | 0 | <p>Try this code</p> <pre><code>$('input').each(function(){ self = $(this) if(!self.val()){ require(self); } }); function require(that){ console.log('Please fill in ' +that.data('validate-msg') + '.'); } </code></pre> |
28,489,982 | 0 | Set range and define named range in VBA <p>I am trying to define a named range (with Workbook scope) in VBA based on certain inputs to help figure out the cells that should be included in the range. To make it really simple, I have tried the following two with the errors indicated below. A, B, X, Y are found from some ... |
17,725,714 | 0 | Nested MySQL select error <p>I'm trying to make the following transaction work, but the I get a mysql error near SELECT. I've double-checked that all column names are correct.</p> <p><strong>Error message</strong></p> <blockquote> <p>You have an error in your SQL syntax; check the manual that corresponds to your MySQL ... |
19,429,888 | 0 | how to find identical columns in different tables <p>I have two tables each with multiple columns.</p> <pre><code>+------+-------+--+ | Col1 | Col2 | | +------+-------+--+ | 1 | 1231 | | | 2 | 123 | |table 1 | 3 | 14124 | | +------+-------+--+ +------+-------+--+ | Col3 | Col4 | |table 2 +------+-------+--+ | 1 | 1231 ... |
21,546,802 | 0 | <p>You just need to change the value of size. You have assigned 1480. Please change it to 7 or less than 7 or you can just remove size from select statement That is the reason. It wont show the selected value till the time it completes its size , which according to your code is 1480. Just change its value and execute ... |
31,552,598 | 0 | Remove Query String from Rootdomain <p>I know with a simple redirect one (Sub-)Domain or Folder to another i can get rid of a string like this</p> <pre><code>RewriteEngine On RewriteRule (.*) http://www.domain.tld/? [R=301,L] </code></pre> <p>I know how to get rid of it when it is a simple file too.</p> <p>But when it ... |
15,843,558 | 0 | <p>As per Sams comment... Readthedocs has the working example: <a href="http://zf2.readthedocs.org/en/latest/modules/zend.view.helpers.html#headtitle-helper" rel="nofollow">http://zf2.readthedocs.org/en/latest/modules/zend.view.helpers.html#headtitle-helper</a></p> <p>Thanks for your help Sam!</p> |
38,932,157 | 0 | <p>Your code is a beginning, but doesn't fill all values. You should <em>nest</em> your for-loops, and only fill the left part. The right entry can then be mirrored from the left entry. Try this:</p> <pre><code>public static void main(String[] args) { int[][] table = new int[5][8]; for (int row = 0; row < 5; row++)... |
36,068,945 | 0 | <p>Not sure what your exact goal is, but I can think of two approaches to accomplish this without compiling:</p> <p>1) Split up the values like so:</p> <pre><code><div ng-repeat="string in myStrings"> <p>{{string}}{{mathValue}}</p> </div> </code></pre> <p>in controller:</p> <pre><code>$scope.ma... |
27,584,236 | 0 | Splitting equation made of NSString with NSRegularExpression and finding left side of Equation <p>I have a string such as below in my application:</p> <pre><code> b=c+32 </code></pre> <p>I parse the string using below code snippet to split it to b,=,c,+,32. That works fine. However I need to know which variable is left... |
40,314,623 | 0 | Method that returns DataReader -- will it cause resource leaks? <p>Say I have the following code:</p> <pre><code>private AdomdDataReader ExecuteReader(string query) { var conn = new AdomdConnection(ConnectionString); conn.Open(); var cmd = new AdomdCommand(query, conn); cmd.Parameters.Add("Foo", "Bar"); return cmd.Exec... |
12,746,372 | 0 | TDD for a new Java application - Where should I start? <p><strong>Goal</strong> : testing TDD in a typical enterprise Java environment.</p> <p><strong>Context :</strong></p> <p>Frameworks used (even if it's overkill, I practice <a href="http://www.scotthyoung.com/blog/2008/05/05/use-projects-to-educate-yourself-for-fre... |
38,359,039 | 1 | python - minimax algorithm for tic tac toe updating the board by filling every empty space with the same symbol <p>I have been trying to improve my understanding of python by programming small games, such as tic tac toe. I created a copy of the game from scratch, but then went off to find a way of creating a reasonable... |
26,614,215 | 0 | <p>Open JDK version 1.7.0_09 do not have this package. JDK by Oracle has this package.</p> |
2,996,559 | 0 | <p>You can use <code>unsafe</code> and pointers. But your particular case would say a bit more about what direction you should head.</p> |
39,872,775 | 0 | In Android Studio how to create jar Including other jar libraries <p>In android studio, i'm trying to create .jar file of my library and it contains another .jar dependancies. After adding created .jar file to another project and run it gives me </p> <pre><code>java.lang.RuntimeException: Unable to instantiate activity... |
22,912,056 | 0 | Can't save data to Access Database <p>I learnt this programming from other sources, and I also downloaded his file to test is it works. I did everything same with him, but mine is not works and not coming out any errors. Could any senior help me to do some correction or debug.</p> <p>This is my code:</p> <pre><code>Dim... |
19,559,568 | 0 | <p>To delete a row/cell from table view, you need to call the <code>deleteRowsAtIndexPaths:withRowAnimation:</code> method on your <code>UITableView</code> instance. </p> <pre><code>NSIndexPath *previousPath = [NSIndexPath indexPathForRow:selectedRowIndex1.integerValue-1 inSection:0]; [self.yourTableView deleteRowsAtI... |
24,007,232 | 0 | <p>Sure, the function like <code>sprintf</code> is <code>sprintf</code>. You can put functions in the stash and call them from TT, and if you want them to be available all the time you can add them to the <code>TEMPLATE_VARS</code> in your view.</p> |
19,390,606 | 0 | Authenticate with LinkedIn api using javascript issues <p>Using the Linkedin Tutorial, I'm trying to login to LinkedIn using Javascript.</p> <p>The issue I have: using firebug for verification I realize that the http request does not show errors, but the LinkedIn Button is not rendered and the http response is:</p> <pr... |
31,132,179 | 0 | Symfony join with many to many <p>I would like to know how can I Make a join into another join.</p> <p>My QueryBuilder</p> <pre><code>return $this->createQueryBuilder("t") ->leftjoin("t.playlist","p","WITH","p.genres=:genreP") ->setParameter(":genreP",$genre) ->addSelect("p") ->getQuery() ->getResult(... |
7,465,792 | 0 | <p>Regular expressions are like the <code>sort</code> function in Perl. You think it's pretty simple because it's just a single command, but in the end, it uses a lot of processing power to do the job.</p> <p>There are certain things you can do to help out:</p> <ol> <li>Keep your syntax simple as possible.</li> <li>Pr... |
12,006,838 | 0 | <p>I usually add the <code>RKObjectMapping</code> to the managedObject class</p> <p>Add this to your Document.h</p> <pre><code> + (RKObjectMapping *)objectMapping; </code></pre> <p>Add this method to your Document.m</p> <pre><code>+ (RKObjectMapping *)objectMapping { RKManagedObjectMapping *mapping = [RKManagedObjectM... |
31,859,643 | 0 | MS Access Compare all fields in two tables <p>I am working on a project that has a definite start and end date, with data that will be produced daily. Every day I will be receiving a dataset with all the data from the start of the project until the previous day (e.g. on Day 10 I will receive the data from days 1 to 9, ... |
3,868,587 | 0 | <p><code>sqllite3</code> will probably be the easiest way forward. It's lightweight and doesn't need to be installed by users. To access it though, consider using an ORM (Object Relational Mapper) to simplify things. <a href="http://www.sqlalchemy.org/" rel="nofollow">SQL Alchemy</a> and <a href="https://storm.canonic... |
37,601,019 | 0 | <p>I somewhat got it to work using some of the existing code above, but it is still not optimal. This might be useful for others.</p> <p>This is what I did:</p> <p>1) I socket dial only once (during initialization)</p> <p>2) The POST-section is running inside a loop infinitely. The 5 second delay is now reduced to 200... |
34,575,204 | 0 | Regex - has six digits, starts with 0, 1, or 2 <p>I need a regex that will match a number containing six digits. The first digit must be 0, 1, or 2.</p> <p>For example - 054654 or 198098 or 265876.</p> <p>So far I got this: <code>/^\d{6}$/</code> - matches a number containing six digits. How do I add the second require... |
36,581,850 | 0 | international chars in tcl/tk can't be handle <p>I use tcl shellicon command to extract icons, as it mentioned on wiki page below, there are some international character problems in it, then I write some code to test but it doesn't work, could anyone to help me correct it.</p> <pre><code>/* * testdll.c * gcc compile: g... |
31,607,434 | 0 | Remove join from Hibernate query with OneToOne <p>I have two simple entities with one-to-one mapping:</p> <pre><code>@Entity @Table(name="DRIVER") public class Driver implements Serializable { @Id @GeneratedValue(strategy=GenerationType.AUTO) @Column(name="ID") private long id; @OneToOne(cascade=CascadeType.ALL) @JoinC... |
20,385,910 | 0 | <p>Why don't you simply use static variables ?</p> <p><code>HttpContext</code> is dependent on ASP.NET pipeline. In a host-agnostic model (OWIN or self-hosted) you don't have access to it.</p> <p>Application storage in <code>HttpApplicationState</code> is only useful if you need to access the current HttpContext. If i... |
35,788,107 | 0 | <p>I'm not sure whether you just implemented the <a href="http://stackoverflow.com/q/23803743/1048572"><code>Promise</code> constructor antipattern</a> by accident, and are now trying to generalise it, or genuinely recognised the <a href="http://stackoverflow.com/a/22562045/1048572">usefulness of functors/monads</a> (... |
37,804,533 | 0 | UIBezierPath set context <p>I'm trying to draw some lines using <code>UIBezierPath</code> in an overlay renderer. I get error <code>CGContextSetStrokeColorWithColor: invalid context 0x0</code> which I suspect is due to the <code>UIBezierPath</code> not knowing the context. How do I set the UIBezierPath's context?</p> <... |
34,413,771 | 0 | <p>Actually the work of proximity is to detect other devices like windows phone , or windows computer through NFC.It detect those devices which has NFC tags</p> <p>Here is the link for your reference <a href="https://msdn.microsoft.com/library/windows/apps/jj207060(v=vs.105).aspx#BKMK_Requiredcapabilities" rel="nofoll... |
16,018,398 | 0 | <p>The compiler seems to place the casting from <code>const char&</code> to <code>char</code> on the same level as upcasting <code>std::ostringstream</code> to <code>std::ostream</code> when the overload resolution comes.</p> <p>The solution could be to template the type of <code>operator<<</code> to avoid t... |
14,797,735 | 0 | Memcache - How to prevent frequent cache rebuilds? <p>I have been working for Memcache for the last week or so, I have managed to work out how to set keys/delete keys. This is fine but Im still attempting to work out how to do the same for a while loop of results. </p> <p>For example I will have a while loop of posts, ... |
9,781,359 | 0 | Magento product zoom files <p>Can someone please tell me what are the Javascript files for default Magento Product Zoom extension. On my site its not working and seems I am missing some files.</p> <p>please reply.</p> |
40,228,331 | 0 | <p>If I understand correctly, you shouldn't need to use floats at all. Bootstrap will automatically take care of the alignment of your <code><div></code>s. Just reverse the order of your two input fields; the first one will be on the left.</p> |
32,248,418 | 0 | NodeJS with PHP <p>I am a PHP developer who just started learning Node.js and I saw this video: <a href="https://www.youtube.com/watch?v=_D2w0voFlEk" rel="nofollow">https://www.youtube.com/watch?v=_D2w0voFlEk</a> where it is explained that a html file can be given as response to the browser which is fine.</p> <p><stron... |
16,569,078 | 0 | <p>Move the contents of the <strong>/public</strong> folder down a level.</p> <p>You'll need to update the include lines in index.php to point to the correct location. (if it's down a level, remove the '../').</p> |
5,041,432 | 0 | Mvc 3 Razor : Using Sections for Partial View? <p>I defined a section in partial view and I want to specify the content of section from view. But I can't figure out a way. In asp.net user controls, we can define asp:placeholders, and specify the content from aspx where user control lies. I'll be glad for any suggestion... |
16,029,384 | 0 | <p>Well,</p> <p>If you are in the PHP and Open Source world, you can consider Node.Js, Socket.IO or NowJs</p> <p>I am in the ASP.Net wonderworld and I love SignalR.</p> |
30,765,223 | 0 | <p>Your syntax is wrong, and doesn't produce anything except an error message as you've written it here.</p> <p>If I understand your question correctly, this should produce the output you want:</p> <pre><code>SELECT old_column, CASE old_column WHEN 'A' THEN 1 WHEN 'B' THEN 2 WHEN 'C' THEN 3 ELSE 0 END AS new_column FR... |
10,079,340 | 0 | jquery submit input and textareas at the same time <p>The code below saves all the Input Fields. If I change the word "INPUT" to "TEXTAREA" it will save the textarea text boxes, is there a way to change the code to save all the input fields and the textarea fields at the same time, as opposed to running through the cod... |
18,517,891 | 0 | retrieve real-time data from JBloomberg API <p>I want to retrieve the time and the real-time last Price as double instead of having an output like</p> <pre><code>DataChangeEvent{ESA Index,ASK_SIZE: 204==>192} </code></pre> <p>from the code below</p> <pre><code>DataChangeListener lst = new DataChangeListener() { @Ove... |
31,675,368 | 0 | How to make MathJax responsive and add line breaks automatically? <p>I've read the MathJax documentation for adding line breaks automatically but it seems to have no effect. </p> <p>I don't know how to make MathJax responsive. My website allows users to write in LaTeX especially for mathematical formulas. However, on m... |
36,550,777 | 0 | Average rating from SQL database survey data <p>I've been trying to return the average rating of an organizer based on ratings from a table with survey data (targetting one column).</p> <pre><code>Table: Workshops Cols: id[pk] | title | description | survey_id[fk] | organizer_id[fk] Table: Organizers Cols: organizer_id... |
18,253,331 | 0 | <p>You are trying to upload an array of files, you will not be able to upload more than 20 files due to <a href="http://php.net/manual/en/ini.core.php#ini.sect.file-uploads" rel="nofollow">max_file_uploads</a> limit in <code>php.ini</code> which is by default set to <code>20</code>. </p> <p>So you have to increase thi... |
32,167,137 | 0 | <p>From the documentation, it looks like you can set the location where you want to save by means of the properties <code>imageCapture</code>, which has the method <code>captureToLocation</code>.</p> <p>It has also a property called <code>capturedImagePath</code> that maybe contains what you are looking for.</p> <p>Lo... |
12,738,390 | 0 | <p>The Android SDK provides the <code>SharedPreferences</code> class to <code>set</code> and <code>get</code> App preferences.</p> <p>These preferences are for small amounts of data, and there are methods for the all the data types (including <code>String</code>).</p> <p>The preferences are removed when the App is uni... |
9,985,103 | 0 | <p><a href="http://wiki.bash-hackers.org/scripting/posparams" rel="nofollow">http://wiki.bash-hackers.org/scripting/posparams</a></p> <p>It explains the use of <code>shift</code> (if you want to discard the first N parameters) and then implementing Mass Usage (look for the heading with that title).</p> |
33,792,933 | 0 | <p>Add below code in your activity.</p> <pre><code>public void Condition(View view) { boolean checked = ((RadioButton) view).isChecked(); switch(view.getId()) { case R.id.newoption: if (checked) break; case R.id.usedoption: if (checked) break; } } </code></pre> <p>and your code should work!</p> |
25,509,155 | 0 | java selenium - hidden input value <p>First Stack post, so don't be harsh if I get it wrong.</p> <p>Im using selenium and java for some automated testing. All was going well until I tried to set the value of a hidden input.</p> <p>When using 'type' in the Firefox IDE, it works a treat, but when I use the line below, it... |
33,662,039 | 0 | <p>just add a class at your main ul (i added 'main-menu' for example) and then add this css:</p> <pre><code>.main-menu > li > ul, .main-menu > li > ul > li > ul, .main-menu > li > ul > li > ul > li > ul { display: none; } .main-menu > li:hover > ul, .main-menu > li > ul ... |
19,683,858 | 0 | <p>You can use <a href="http://api.jquery.com/clearQueue/" rel="nofollow"><strong><code>clearQueue()</code></strong></a> to stop the animation</p> <blockquote> <p>clearQueue() : Stop the remaining functions in the queue</p> </blockquote> <p><kbd><a href="http://jsfiddle.net/b4hwq/3/" rel="nofollow">jsFiddle here</a></... |
13,130,522 | 0 | JavaScript - Reposition a DIV incrementally onClick <p>Very simple code, very simple problem. When a link is pressed, it moves a div either up or down. However, I cannot get it to move incrementally. I know this is a simple syntax error, but google isn't revealing the error of my ways. Anyone willing to enlighten me?</... |
40,230,927 | 0 | Half-transparent elements in the Adobe Illustrator have a black outlines <p>I'm new in Adobe Illustrator and I just need to extract one element from EPS-file.</p> <p>So it's the light. And as you see in the attached file, I can't save it clean. I mean, when it has a some background, it looks good. But when I remove thi... |
8,281,411 | 0 | <p>View source shows you the source of the original html file, it does not update when javascript updates the DOM. Most browsers have some form of tool that allows you to inspect the current state of the DOM, such as the inspector in webkit browsers or firebug in firefox.</p> |
24,748,398 | 0 | <pre><code> data["objects"][0].keys() ['cuisines', 'postal_code', 'lat', 'id', 'categories', 'name', 'locality', 'country', 'street_address', 'has_menu', 'website_url', 'resource_uri'] </code></pre> |
25,332,174 | 0 | Using conditions to specify groups for GROUP BY <p>I'm not even sure if this is possible using SQL, but I'm completely stuck on this problem. I have a table like this: </p> <pre><code>Total Code 212 XXX_09_JUN 315 XXX_7_JUN 68 XXX_09_APR 140 XXX_AT_APR 729 XXX_AT_MAY </code></pre> <p>I need to sum the "total" column gr... |
19,425,808 | 0 | What is the structure of the Thread Environment Block on Microsoft Windows? <p>What is the structure of the Thread Environment Block on Microsoft Windows?</p> |
22,355,882 | 0 | <ol> <li>Arguments with defaults and splat argument must be grouped together;</li> <li>Splat argument must appear after positional arguments with default values but before keyword arguments;</li> <li>Keyword arguments must appear after positional arguments and before double splat argument;</li> <li><p>Double splat arg... |
10,167,541 | 0 | <p>Personally, I do not rely on implicit conversion. Too often this results in unexpected grief down the road. If asked to provide a filter between a date range, I would be explicit. Pick whatever format you want, but if it might be confusing, then try to eliminate as much of the confusion as possible: </p> <pre><code... |
10,222,599 | 0 | <p>Uninstall the application from android device or emulator, and try to re-run / install the application. Because <strong>debug.keystrore</strong> is different for every devices.</p> |
39,400,500 | 0 | Compiling example UBOOT standalone application <p>I am trying to build a UBOOT standalone application.</p> <p>Looking at the README and the minimal documentation on this, I am curious.</p> <p>Is the hello world example standalone, simply just compiled/cross-compiled the same way any other application is? Obviously for ... |
30,696,197 | 0 | <p>Sometimes regexp only further complicates things. PHP has a great function called <code>ctype_alpha()</code> that will check if a variable is only A-Za-z.</p> <pre><code>(ctype_alpha($newcompanycity)) </code></pre> <p>Here's a <a href="https://eval.in/376859" rel="nofollow">working example for you</a></p> |
40,485,653 | 0 | Connecting C# Application to MS Access 2013 DB <p>I'm using VS 2012 & Office 2013 64 bits, and i changed the target platform to x86, but I still got this weard error </p> <blockquote> <p>The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine".</p> </blockquote> |
21,440,485 | 0 | <p>I haven't used sublime, but here is what i found.</p> <ol> <li><p>you could create snippets using Ruby on <a href="https://sublime.wbond.net/packages/Ruby%20on%20Rails%20snippets" rel="nofollow">Rails Snippet</a> package</p></li> <li><p>You could use the solution given in '<a href="http://www.sublimetext.com/forum/... |
31,356,274 | 0 | delaying the hover of background- image <p>CSS</p> <pre><code>.navbar-brand { display: block; margin: 0; padding: 0; height: 80px; width: 70px; background: url('img/logo_orig.png') no-repeat center center; background-size: 100% auto; } .navbar-brand:hover { background: url('img/logo_hov.png') no-repeat center center; b... |
21,570,475 | 0 | <p>in order to declare publicly accessible function inside JavaScript object you have to use <code>this</code>. By applying <code>this</code> you actually expose this function as a property of an object</p> <pre><code>function Person(first,last) { this.firstname = first; this.lastname = last; //private variable availa... |
29,048,677 | 0 | <p>First of all, I will assume that this is homework and you must not use <code>std::string</code>. If you can use <code>std::string</code>, forget about everything and refrain from using dynamically allocated C-style strings!</p> <hr> <p>Here we go. If you want to replace <em>one</em> character (a space) with <em>two... |
23,979,786 | 0 | <p>Supposing you have an <code><input></code> with <code>id="myInput"</code>, you can use following javascript:</p> <pre><code>document.getElementById("myInput").value="0"+parseFloat(document.getElementById("myInput").value)+1; </code></pre> |
8,099,695 | 0 | <p>Per the docs from <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.form.close.aspx" rel="nofollow">Form.Close</a>:</p> <blockquote> <p>The two conditions when a form is not disposed on Close is when (1) it is part of a multiple-document interface (MDI) application, and the form is not visible; ... |
27,203,080 | 0 | java.lang.RuntimeException Simple Http Get Code <p>This simple and well organized code is not working. Code uses AsyncTask and its a sample code from internet.<a href="http://hayageek.com/android-http-post-get/" rel="nofollow">Sample Code</a> Im using android studio and tried starting it over and over.</p> <pre><code>p... |
18,983,503 | 0 | <p>For some reason theming using the "searchAutoCompleteTextView" wasn't working for me either. So I solved it using the following code when setting up my SearchView:</p> <p>Note: This is all done with the android v7 support/AppCompat library</p> <pre><code>public boolean onCreateOptionsMenu(Menu menu) { getMenuInflat... |
5,377,486 | 0 | JavaScript unixtime problem <p>I get the time from the database in Unix format.</p> <p>It looks like this: console.log (time); Result: 1300709088000</p> <p>Now I want to reformat it and pick out only the time, I found this: <a href="http://stackoverflow.com/questions/847185/convert-a-unix-timestamp-to-time-in-javascrip... |
40,968,814 | 0 | <p>As most of people mentioned here - one of the solutions will be to use aliases. Don't like them to be honest because they are preventing me learning some really nice Linux commands :) It's just a joke. But the best way for you, as I think, will be to locate a <code>~/.bashrc</code> file located in your home directo... |
522,156 | 0 | <p>Add your user.Firstname and User.lastname to your group by clause</p> |
5,239,028 | 0 | edit resolution in flash page <p>that's my flash site , I want to extend the gray box to reach the edge of the HTML page . I mean that I don't want the background color to appear <strong>all I want in the page the flash site in the resolution of the page whatever the PC resolution</strong> . sorry for my bad English . ... |
34,551,615 | 0 | <p>Dplyr is much more intuitive and easy in my opinion. Using it here, you can do something like this:</p> <pre><code>library(dplyr) > zzz <- data.frame(name=rep(c('x','y','z'),100),balance=sample(100:300,100,replace = T)) > zzz <- arrange(zzz, name) > zzz[5:7,2] <-238 > zzz[20:22,2]<- 204 >... |
5,273,510 | 0 | <p>While this question is old I must say that I am having a pretty tough experience right now due to delimited strings that I have to use on the backend. I agree with most posts on this question in that it does depend on the needs of the application, but what also must be considered are the needs of the backend, meani... |
39,656,693 | 0 | How to get the text in a dynamic text box of a form in Angular Js? <p>Thank you. In my form there are some dynamic input text boxes created by using ng-repeat. How to get the values of these text boxes when submit the form using Angular js?</p> <pre><code><form ng-submit="submit()"> <div ng-repeat="opt in opti... |
20,966,927 | 0 | Access 2010: Refresh Navigation Pane and Sum/Avg not visible on report <p>I have noticed a strange problem in Access 2010: when a user creates a new object (table, form, query, ...), this object does not show up in the navigation pane. It only does so after manually refreshing the navigation pane (F5) or after closing ... |
4,834,368 | 0 | <blockquote> <p>Alternately, is there a way to add a simple queueing system short of completely rewriting the application?</p> </blockquote> <p>Yes, you can use an array. It looks like you may already have one, with the _processQ variable. I might try something like this:</p> <pre><code>// A process queue item method ... |
5,386,789 | 1 | Refactoring a python function so that it can take any sized list <p>How can I make this function take as input an arbitrary list size?</p> <pre><code>def ugly_function(lst): for a in lst[0]: for b in lst[1]: for c in lst[2]: for d in lst[3]: for e in lst[4]: for f in lst[5]: for g in lst[6]: for h in lst[7]: if some_te... |
30,461,238 | 0 | <p>I'm not sure if you can do this in Ruby, but doing it like this in Jquery may work. However you should definitely fix the databases.</p> <pre><code>$(document).ready(function() { //On document ready $("form").find('input').each(function(){ //find all inputs in forms if ($(this).val() == "(NULL)") { //if the value o... |
20,120,756 | 0 | <p>In your fragment, you can use</p> <p><code>((MainActivity)getActivity()).myMethod()</code></p> <p>to call myMethod of MainActivity. This solution assumes, that your fragment is located in MainActivity (getActivity must return MainActivity instance) :-)</p> |
36,903,928 | 0 | how to unsubscribe livequery in orientjs <p>When my NODEJS web service stops, I find the LiveQuerys remain connected. So, should I unsubscribe the LiveQuery manually? And how? My solution is like that, but it does not work</p> <pre><code>process.on('exit', function () { odb.exec("LIVE UNSUBSCRIBE "+iToken); }); </code>... |
9,690,740 | 0 | decode form-urlencoded to hash <p>The response I get to an LWP request is <code>application/x-www-form-urlencoded</code> is it possible convert the text of this to a hash via some object method?</p> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.