pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
29,600,147 | 0 | How to get total number of hours between two dates in javascript? <p>I am in a situation where I need to find out the total hour difference between two date objects but the thing is dates aren't present in the actual format.</p> <p><code>Date 1: 6 Apr, 2015 14:45</code><br> <code>Date 2: 7 May, 2015 02:45</code></p> <p... |
19,204,442 | 1 | nested dictionary get keys sorted by values <p>I'm using a dictionary that has nested dictionaries:</p> <pre><code>dicc={ 'a': {'a1': 1 }, 'b':{'b1':2 }, 'c':{'c1':3 } } # This is an example. I have lots of other keys and values. </code></pre> <p>I need to get the keys ordered by the values. For example, getting <code>... |
15,913,829 | 0 | <p>Your <code>getPhrase</code> should look like this:</p> <pre><code>std::string getPhrase() { std::string result; std::cout << "Enter phrase: "; std::getline(std::cin, result); return result; } </code></pre> <p>Then:</p> <pre><code>int main() { std::string phrase = getPhrase(); // ... } </code></pre> |
16,700,408 | 0 | <p>If you really want to use NodeList, you can do this:</p> <pre><code>nList.item(i).setNodeValue(a.item(i).getNodeValue()); </code></pre> <p>The better way to do it is just with a List as cmbaxter suggested, though.</p> <pre><code>List<Node> nodes = new ArrayList<Node>(); </code></pre> |
614,075 | 0 | <p>This <a href="http://cbcg.net/talks/rubyidioms/" rel="nofollow noreferrer">slideshow</a> is quite complete on the main Ruby idioms, as in:</p> <ul> <li><p>Swap two values: </p> <p><code>x, y = y, x</code></p></li> <li><p>Parameters that, if not specified, take on some default value</p> <p><code>def somemethod(x, y=... |
26,363,844 | 0 | <p>As pointed out by @user3894601, the problem was solved by using the original cable, and using a USB adapter.</p> |
13,077,956 | 0 | <p>First let my say that I have not used APScheduler myself yet, and have next to no knowledge about running Python servers (or anything else really) on Windows and IIS. <br> So I can only guess here, but it seems clear that your problem is related to APScheduler in a way. I could imagine that something goes wrong in ... |
25,440,559 | 0 | <pre><code> if($query = $this->mod_reports->registered_customers_bod()){ $data['records'] = $query ; }else{ $data['records'] = new stdClass(); // change here } </code></pre> <p>the reason behind the error is when no record is found from db your <code>$data['records']</code> is a <strong>String</strong> and which... |
13,917,119 | 0 | <p><a href="http://xamarin.com/mac" rel="nofollow">Xamarin.Mac</a>: an open source library for building Cocoa applications on OSX using C# and .NET.</p> <p>You can dig into the <a href="https://github.com/xamarin/xamarin-macios" rel="nofollow">source code</a> and read the <a href="https://developer.xamarin.com/guides/... |
19,366,842 | 0 | <p>You need only to vector of vector of string:</p> <pre><code>vector<vector<string> > table((int)('z' - 'a')); string str; while (cin >> str) { table[tolower(str[0]) - 'a'].push_back(str); } </code></pre> <p>To clarify:</p> <ul> <li><code>table</code> is of length 26 (which is the result of <code>'z... |
20,459,887 | 0 | Format specifies type 'int' but the argument has type 'UIViewContentMode' <p>I am getting a warning in Xcode:</p> <blockquote> <p>Format specifies type 'int' but the argument has type 'UIViewContentMode'</p> </blockquote> <p>I have a method that I am using to resize an <code>UIImage</code> as follows:</p> <pre><code>- ... |
33,555,804 | 0 | <p>Looks like this was my fault. Hopefully this might help someone else.</p> <p>My normal drawable was actually in the drawable-nodpi folder, not drawable. I guess that was somehow overriding the v21 folder version.</p> |
4,346,563 | 0 | Sharepoint 2010 Built-In Web Service - How to Delete File and/or Folder <p>Is there a built-in SP 2010 web service for deleting a file/folder in a doc library?</p> |
10,424,733 | 0 | <h1>Updated</h1> <p>Google has released <a href="https://developers.google.com/maps/documentation/javascript/places-autocomplete" rel="nofollow">Google Places Autocomplete</a> which resolves exactly this problem.</p> <p>At the bottom of a page throw this in there:</p> <pre><code><script defer async src="//maps.goog... |
17,577,084 | 0 | <p>Assuming your constraint name in table <code>two</code> is <code>two_ibfk_1</code> , you can see the name of the constraint with this command :<br> SHOW CREATE TABLE <code>two</code>;</p> <p>so the command would be to delete the constraint first, and then recreate it after it was modified</p> <pre><code>ALTER TABLE... |
13,657,929 | 0 | <p>SQLite has no general mechanism to execute commands conditionally. However, in triggers, you can use a <code>WHEN</code> condition on the entire trigger:</p> <pre><code>CREATE TRIGGER test_for_broj_goluba AFTER UPDATE OF majka ON unos_golub BEGIN UPDATE unos_golub SET broj_goluba=NEW.majka WHERE broj_goluba=OLD.maj... |
20,941,177 | 0 | <p>Modern PAAS systems favour building an image for each customer, creating versioned copies of both software and configuration. This follows the "<a href="http://12factor.net/build-release-run">Build, release, run</a>" recommendation of the 12 factor app website:</p> <ul> <li><a href="http://12factor.net/">http://12f... |
17,535,616 | 0 | Qt TabStop color troubles <p>In my application i have an annoying white rectangle on tabstop controls. I tried to look in stylesheets but myitem:tabstop style don't do anything. Is there any way i can somehow change tabstop color/or make it another form.</p> |
31,268,069 | 0 | <p>It is just formatting the output in your client.</p> <p>For example, in SQL*Plus set <strong>numformat</strong>:</p> <pre><code>SQL> set numformat 999.99 SQL> SELECT CAST((600.2) AS NUMERIC(28,2)) FROM DUAL; CAST((600.2)ASNUMERIC(28,2)) ---------------------------- 600.20 </code></pre> <p>You could also use <... |
1,541,418 | 0 | <p>The other option that you have, depending on what you're trying to do, is to host the CLR in your application which allows you to more tightly integrate the C# code than is possible by going through COM. You can read an overview of doing this in this <a href="http://msdn.microsoft.com/en-us/magazine/cc163567.aspx" ... |
36,879,653 | 0 | <p>The manifest in the examples directory just needs that one line with "include cowsayings::cowsay".</p> <p>There are two tasks that have to happen with puppet, "defining" classes and "declaring" them. The <code>cowsayings/manifests/cowsay.pp</code> contains the definition, but you need to actually declare the class ... |
38,482,517 | 0 | Kentico 9 cms:cmsTextBox placeholder localization <p>I've duplicated the search box webpart so i can make changes. I'm trying to add a localization string to the placeholder attribute.</p> <p>This isn't working:</p> <pre><code><cms:CMSTextBox ID="txtWord" runat="server" EnableViewState="false" MaxLength="1000" Proce... |
9,353,133 | 0 | <p>Right click on the file choose "properties" and set "content" as for the "Build Action"<br> .JSON is not known to VS2010 web application file types You can change the behavior of vS2010 by <a href="http://blog.andreloker.de/post/2010/07/02/Visual-Studio-default-build-action-for-non-default-file-types.aspx" rel="nof... |
41,020,612 | 0 | Is there a way to use PouchDB Inspector to inspect a remote device? <p>I am using PouchDB with an Ionic APP, I debug it using Chrome and looking into the console. I would like to inspect the device pouchDB database like I do in chrome with the localhost version with <a href="https://pouchdb.com/guides/databases.html#de... |
18,218,236 | 0 | <p><s>Just found a project called: <strong>ProxyApi</strong> </p> <blockquote> <p>ProxyApi is a library that automatically creates JavaScript proxy objects for your ASP.NET MVC and WebApi Controllers.</p> </blockquote> <p>GitHub: <a href="https://github.com/stevegreatrex/ProxyApi">https://github.com/stevegreatrex/Prox... |
8,030,932 | 0 | <p>If you find yourself repeating similar code in multiple projects, it might be a good idea to extract the portions that are repeated into a library of reusable code in hopes of avoiding repeating yourself in the future. </p> <p>This is unlikely to lead to fully general reusable implementations of design patterns.</p... |
19,017,802 | 0 | <p><code>file.log</code> is the input file here. I've used Endoro's techniques but with some small changes.</p> <pre><code>@echo off setlocal enabledelayedexpansion ( echo Disk State Raw_Capacity User_Capacity for /f "usebackq delims=" %%a in ("file.log") do ( set "line=%%a" if /i "!line:Disk:=!" neq "!line!" <nul ... |
24,294,991 | 0 | <p>I don't think that Python is going to give you a strong guarantee that it won't actually read the entire file when you use <code>f.seek</code>. I think that this is too platform- and implementation-specific to rely on Python. You should use Windows-specific tools that give you a guarantee of random acess rather tha... |
25,838,407 | 0 | <p>In my case the issue was solved only after refreshing .htaccess file in drupal root folder. You can take the source here: <a href="https://github.com/drupal/drupal/blob/7.x/.htaccess" rel="nofollow">https://github.com/drupal/drupal/blob/7.x/.htaccess</a></p> |
21,402,494 | 0 | <p>There is a dedicated option for that in the queue configuration. You can set a "Prolog" or "Epilog" script that will be executed before and after the job respectively. See <code>man queue_conf</code> or <a href="http://gridscheduler.sourceforge.net/htmlman/htmlman5/queue_conf.html" rel="nofollow">http://gridschedul... |
13,640,979 | 0 | <p>After successful login via facebook save user id into a global variable or in app properties. I will prefer app properties because unless the user will logout from facebook the uid will remain in the app properties i-e</p> <pre><code>Ti.App.Properties.setString('uid', Ti.Facebook.uid); </code></pre> <p>so when you ... |
1,598,220 | 0 | <p>The trick is to left join on album permissions which means every album will be selected and if there is a permission record associated with it, that record will be selected too.</p> <p>Then just add a where clause that says either the album must not be private, or a permission record should exist.</p> <pre><code>SE... |
29,440,294 | 0 | <p>Try the following:</p> <pre><code>SELECT myTable1.* FROM myTable1 JOIN (SELECT myTable2.* FROM myTable2) b ON myTable1.myRef = b.myRef WHERE col2 = 1 ORDER BY b.col3 ASC </code></pre> <blockquote> <p>If your <em>WHERE</em> statement is referecing <em>col2</em> correctly, this approach should work just fine.</p> </b... |
31,174,994 | 0 | How can i make my sub-menu show and hide when click on main item? <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>$('.slideout-menu li').click( function() { $(this).children('.mobile-sub-menu').show(); }, function() { $... |
4,569,656 | 0 | <p>django test client uses default base url:</p> <p><a href="http://testserver/" rel="nofollow">http://testserver/</a></p> <p>which makes your test url /accounts/register/ into:</p> <p><a href="http://testserver/accounts/register/" rel="nofollow">http://testserver/accounts/register/</a></p> <p>so you should add 'tests... |
19,364,504 | 0 | <p>If you are using an unpatched .net 4.5. Microsoft broke the <code>.CanExecute</code> event.</p> <p><a href="http://connect.microsoft.com/VisualStudio/feedback/details/753666/net-4-0-application-commands-canexecute-not-updating-in-4-5" rel="nofollow">http://connect.microsoft.com/VisualStudio/feedback/details/753666/... |
5,875,419 | 0 | <p>you cannot pass an argument to the handler - since you are not the one calling the handler. The handler will be called from somewhere outside your control.</p> <p>you register a handler either with a call to <code>signal</code> or <code>sigaction</code> .</p> <p>hth</p> <p>Mario</p> |
8,351,087 | 0 | <p>Based on comments from @kapep I realized what I needed is actually a compression library that will do this work for me.</p> <p>I stumbled across an <a href="http://code.google.com/p/calista/source/browse/trunk/AS3/src/calista/util/LZW.as?r=3" rel="nofollow">LZW compression class within a package called Calista</a> ... |
19,942,706 | 0 | <p>Your first call to <code>hadoop fs -ls</code> is a relative directory listing, for the current user typically rooted in a directory called <code>/user/${user.name}</code> in HDFS. So your <code>hadoop fs -ls</code> command is listing files / directories relative to this location - in your case <code>/user/Li/</code... |
2,040,985 | 0 | NSString function <p>I get a null return when i try out my NSString function.</p> <pre><code>//Track.m static NSString* trackUrl; //static NSString* getTrackNumberUrl; @implementation Track - (NSString*)trackUrl { return @"http://site.com/?a="; } - (NSString*)setTrackNumberUrl:(NSString*)trackNumberUrl { if (trackUrl !... |
20,195 | 0 | <p>Steve, I had to migrate my old application the way around, that is PgSQL->MySQL. I must say, you should consider yourself lucky ;-) Common gotchas are:</p> <ul> <li>SQL is actually pretty close to language standard, so you may suffer from MySQL's dialect you already know</li> <li>MySQL quietly truncates varchars th... |
39,792,138 | 0 | <p>Here is my code which will first load the image from the cache if the cache for that file exists, then update the cache file. If it doesn't exist, then load it from the internet(url).</p> <pre><code>Picasso.with(getApplicationContext()).load(headerUserObject.getParseFile("profilePicture").getUrl()) .placeholder(R.c... |
3,318,619 | 0 | <p>I don't think you can do this with an attribute. It makes more sense to have the Competition class validate entries.</p> <pre><code>public class Competition { public bool AnswersAreCorrectFor(CompetitionEntry entry) { // check answers } // ... } </code></pre> |
29,888,084 | 0 | Post in Spring Rest not working <p>This is the first time I am using REST with Spring, before this I always used JAX RS with Guice implementation.</p> <p>Anyways here is my Controller</p> <pre><code>@Controller @Api(value = "Redis Data Structures Service", description = "Spring REST Controller that handles all the HTTP... |
2,481,556 | 0 | superfish to use jquery ui theme framework? <p>was wondering if there is a way to make <a href="http://users.tpg.com.au/j_birch/plugins/superfish/" rel="nofollow noreferrer">superfish</a> using jquery ui theme framework, if that isn't possible right now, what practice can be applied to make superfish using jqueryui sty... |
40,649,234 | 0 | <p>Ever heard of loopback Operation hooks?</p> <p><a href="https://loopback.io/doc/en/lb2/Operation-hooks.html" rel="nofollow noreferrer">https://loopback.io/doc/en/lb2/Operation-hooks.html</a></p> <p>use the <code>before save</code> hook or <code>after save</code> hook on a model to do what ever you want.</p> <p>they... |
20,847,884 | 0 | <p>You'll find the <code>$locationChangeStart</code> is an event you can listen for to detect for a route change.</p> <p>Try something like</p> <pre><code>$rootScope.$on('$locationChangeStart', function (event, next, current) { /* do some verification */ }); </code></pre> <p><code>$route.reload()</code> will prevent t... |
29,032,872 | 0 | <p>Instead of doing so much of work as mentioned by <a href="http://stackoverflow.com/a/26454325/1576416">Muzikant</a> and like <a href="http://stackoverflow.com/a/29058430/1576416">this answer</a></p> <pre><code> getSupportActionBar().setDisplayShowHomeEnabled(false); getSupportActionBar().setDisplayShowTitleEnabled(... |
36,875,469 | 0 | clang templated use of __attribute__((vector_size(N))) <p>I create an application which make use of a SSE4.1 vector instructions. To better manage the vector types I've created templated helper struct vector_type as follows:</p> <pre><code>template <class T, int N> struct vector_type { typedef T type __attribute_... |
25,347,762 | 0 | <p>The border between these two are getting ever so thinner.</p> <p>Application servers exposes business logic to a client. So its like application server comprises of a set of methods(not necessarily though, can even be a networked computer allowing many to run software on it) to perform business logic. So it will si... |
2,115,265 | 0 | HTML 5 - Who, What, Where <p>I am looking at HTML5 information at W3. Some of the new functionality seems interesting.</p> <p>Which browsers support it?</p> <p>How can I ensure that I am using HTML 5?</p> <p>Is there a way to be told that "there is an HTML 5 command you should be using" if I use something in HTML 4 or ... |
6,008,722 | 0 | <p>It's a little complicated at the mentioned blog, I've used a similar but simplier way. You do need 3 star images (red_star_full.png, red_star_half.png and red_star_empty.png) and one xml, that's all.</p> <p>Put these 3 images at res/drawable.</p> <p>Put there the following ratingbar_red.xml:</p> <pre><code><?xml... |
28,738,736 | 0 | <p>Based on your example, you are trying to delete all files present within some folder. Instead of iterating over all the files of the folder, and delete each file individually, the better way is to use <a href="https://docs.python.org/2/library/shutil.html" rel="nofollow">shutil.rmtree()</a>. It will recursively del... |
6,928,926 | 0 | What advantages are gained by using namespaces in javascript? <p>Apart from not cluttering the global namespace and gaining the ability to encapsulate code in private members, is there any benefit?</p> |
5,546,916 | 0 | <p>If I execute the query with an AND, even then , both the tables are accessed</p> <p>SET STATISTICS IO ON IF EXISTS (SELECT * from master..spt_values where [name] = 'rpcc') and EXISTS(SELECT * from master..spt_monitor where pack_sent = 5235252) PRINT 'Y' </p> <p>Table 'spt_monitor'. Scan count 1, logical reads 1, ph... |
38,372,578 | 0 | Storm 1.0.1 Worker error on submitting topology <p>I am getting the error below (worker.log) when submitting a topology to Storm 1.0.1 (despite the error, the topology <strong>does get submitted</strong> and <strong>appears</strong> in the Storm UI):</p> <pre><code>o.a.s.d.worker [ERROR] Error on initialization of serv... |
14,299,821 | 0 | <p>Another way to do this would be to use OpenGL. (I think LWJGL would allow it in Java.) You could upload a 1D texture containing the straight to gamma corrected table, and then write a glsl shader that applied the gamma table to your pixels. Not sure how that would fit in with your current processing model, but I us... |
31,926,023 | 0 | <p>A self join joins a table to itself. The <code>employee</code> table might be joined to itself in order to show the manager name and the employee name in the same row.</p> <p>An inner join joins any two tables and returns rows where the key exists in both tables. A self join can be an inner join (most joins are inn... |
24,512,586 | 0 | <p>A possible solution posted by <strong>Eugene Kazakov</strong> <a href="http://jmeter.512774.n5.nabble.com/Using-Python-or-Ruby-from-Jmeter-td5716088.html" rel="nofollow">here</a>:</p> <blockquote> <p>JSR223 sampler has good possibility to write and execute some code, just put jython.jar into /lib directory, choose ... |
37,565,288 | 0 | ReactiveCocoa bi-directional bind in UITableViewCell <p>I've got <code>UITableView</code> with server list. The possible actions are:</p> <ul> <li>add server </li> <li>delete server</li> <li>save data (current server list)</li> </ul> <p>Each <code>UITableViewCell</code> contains 2 <code>UITextField</code> with server n... |
30,871,442 | 0 | Are values "ok", false, true, null, 123 valid JSON <p>Are following strings a valid JSON?</p> <p><code>"ok"</code></p> <p><code>false</code></p> <p><code>true</code></p> <p><code>null</code></p> <p><code>123</code></p> <p>If not why do standard javascript <code>JSON.parse</code> method allow to use this values as valid... |
30,405,754 | 0 | <p>your bootstrap goes in your phpunit.xml config file.</p> <p>So it would look something like:</p> <pre><code><?xml version="1.0" encoding="UTF-8"?> <phpunit bootstrap="bootstrap.php" colors="true"> </phpunit> </code></pre> <p>and when you run your test you run it with</p> <pre><code>phpunit --confi... |
39,296,011 | 0 | <p>Well, whenever you make calls towards google libraries, costs you time.</p> <p>Which means that if you manage to somehow get these 2 lines out of the loop, you will most likely succeed. </p> <pre><code>var toCopy = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("FINAL").getRange(3, 3, data1Length - 2, data1Le... |
22,943,329 | 0 | Inputing a selection from an array c# <p>Hi there I'm very new to C# so please bear with me if my question has a very obvious answer.</p> <p>I am trying to write a code that displays an array of options to the user with a number to select the option. The user then selects their option and the code will display their se... |
208,208 | 0 | <p>I would definitely first try out Webstart. We've had lots of success launching even the early Eclipse RCP apps using Webstart, and you can probably not get more funky classloading issues than with the OSGI framework (Eclipse Equinox). </p> <p>Could you perhaps give some more detail in your question about you classl... |
22,423,277 | 0 | how to close smooth-box master jquery image by Esc button? <p>I have used the following..can some one help me?</p> <pre><code>.on("click",".sb-cancel",function(e){$(".smoothbox").fadeOut("slow",function(){$(".smoothbox").remove()}) </code></pre> |
2,761,489 | 0 | SVN - Retrieve history of item "replaced into" existing directory <p>I created a branch from my SVN trunk. In the branch, another developer deleted a directory, but then readded it with the same files. When I merged the changes from the branch back into the trunk (using TortoiseSVN), this directory had a "replace into"... |
39,354,953 | 0 | Trouble merging the Columns in XSLT <p>I have a XML and i am transforming it into HTML using XSLT. The current table structure is as below.</p> <pre><code> |-------------------------| |type |name |age | |data |john |28 | |comment |pass | | |-------------------------| </code></pre> <p>I am trying to merge the cell of ro... |
1,704,216 | 0 | <p>You realize Python doesn't do true multi-threading as you would expect on a multi-core processor:</p> <p><a href="http://en.wikipedia.org/wiki/Global_Interpreter_Lock" rel="nofollow noreferrer">See Here</a> <a href="http://en.wikipedia.org/wiki/Python_%28programming_language%29" rel="nofollow noreferrer">And Here</... |
20,928,193 | 0 | <p>I ran into the same issue tonight, and it turned out I needed image/jpeg and image/jpg</p> <pre><code> validates_attachment :avatar, :styles => { :medium => "300x300", :thumb => "100x100" }, :content_type => { :content_type => "image/jpg", :content_type => "image/jpeg", :content_type => "image/... |
34,704,666 | 0 | <p>That is because <code>3,3</code> converted to a double using the <code>InvariantCulture</code> yields <code>33</code>. It does not make the output to become in the <code>InvariantCulture</code>, since the numeric data type double has nothing to do with a specific culture. Only the <em>textual representation</em> do... |
37,652,378 | 0 | Local passport authorization on different ports <p>I have a node.js application running on port 5000, where I use passport.js as authorization. I authorize users from a post request, where I use a custom callback:</p> <pre><code>this.router.post('/member/login', (req, res, next) => { passport.authenticate('local', (... |
27,211,898 | 0 | Setting up relay host for zimbra <p>I would like to configure Smtp for my mail server to send out mail to external server. I followed <a href="http://wiki.zimbra.com/wiki/Outgoing_SMTP_Authentication" rel="nofollow">this link</a> and confused of what exactly the relay mail should be, <code>zmprov ms server.domain.com z... |
1,088,855 | 0 | Suggestions for uploading very large (> 1GB) files <p>I know that such type of questions exist in SF but they are very specific, I need a generic suggestion. I need a feature for uploading user files which could be of size more that 1 GB. This feature will be an add-on to the existing file-upload feature present in the... |
40,387,374 | 0 | <p>Your code works fine unless you make sure that your parent element has a height greater than zero - otherwise your <code>.main</code> element will have no height either.</p> <p>Also make sure that the file path to your image is correct. You can use the developer tools of your browser to check the height of your con... |
20,961,651 | 0 | Mercurial Log Graph Complications <p>Okay - I'm definitely learning a lot about Mercurial and version control systems more and more as I use them, but I'm really confused about why my local copies of one of my repositories (call it project-alpha) on three machines I use (machine 1, machine 2, and machine 3) are differe... |
9,579,300 | 0 | mysql high read & write <p>I've been reading about high read or write but what about both, what would be your advice? In my case a high number of people are writing data and another set of people are reading it straight after, this is all web based and there are no pattern to determine who is writing or reading. Also b... |
20,892,772 | 1 | Pygame: Drawing a circle after input <p>this seemed like a really simple code, this is why I'm even more confused that it won't work. I'm creating a game that draws different lines of a picture and, after each shape, asks the user what it could be. My problem is that it won't even draw the first circle once I have the ... |
24,556,501 | 0 | <p>That's because you incorrectly calculating percentage for columns <code>margin</code> and <code>width</code>.</p> <p>Since you use <a href="http://www.w3schools.com/cssref/css3_pr_box-sizing.asp" rel="nofollow"><code>box-sizing: border-box;</code></a> on <code>section#hp-cols</code>, the inner width for the section... |
9,889,616 | 0 | <p>It appears the ruby-mysql gem supports this: <a href="https://github.com/tmtm/ruby-mysql/blob/master/lib/mysql.rb#L406-419" rel="nofollow">https://github.com/tmtm/ruby-mysql/blob/master/lib/mysql.rb#L406-419</a></p> <p>I assume it is processing this correctly. It says 'execute', but in reality it appears to simply ... |
31,768,951 | 0 | <p>You need to modify the control template so the fill goes in the right place.</p> |
36,246,699 | 0 | Google map geocode places <p>So I am working with google maps on a project I need to get lat&lng from a place name (not city but a, lets say, caffee in a city, or a mall in a city). So I went with this code</p> <pre><code>var geocoder = new google.maps.Geocoder(); geocoder.geocode( { 'address': 'SCC, Sarajevo'}, fu... |
28,769,588 | 0 | Trouble with textboxes losing focus in Visual Basic .net <p>Recently I got an assignment to make a very basic Sudoku-game in Visual Basic. To make this I am using Visual Studio Ultimate 2013 Update 4 with the .NET Framework. </p> <p>I have gotten to the point where I can check which one out of many textboxes has focus.... |
14,222,373 | 0 | <p>The XDR-object of InternetExplorer currently is not supported by jQuery, you'll need a plugin like <a href="https://gist.github.com/1114981" rel="nofollow"><strong>jquery.xdomain.js</strong></a></p> <p>But there is another issue: the timezone-API requires the HTTPS-protocoll , when the document that requests the AP... |
20,897,489 | 0 | Running JQuery Async - Not interrupting site load <p>I have the following code. It slows my site down - I know because when I comment it out it cuts around 2 seconds of the load time. How can I tell jquery (I'm using jquery) to load this whenever it has time? there is no rush... anytime is fine so long as it doesn't im... |
9,752,320 | 0 | Repeatedly check the login status of the user? <p>I would like to regularly check the status of the logged in user. My method is as follows but I am unsure as to whether this is the best way to go about it.</p> <pre><code>window.fbAsyncInit=function(){ FB.init({ appId:'123', status:true, cookie:true, xfbml:true, channe... |
11,607,782 | 0 | <p>You can open google maps with intent giving your starting point and end point.</p> <pre><code>Intent navigation = new Intent(Intent.ACTION_VIEW, Uri .parse("http://maps.google.com/maps?saddr=" + Constants.latitude + "," + Constants.longitude + "&daddr=" + latitude + "," + longitude)); startActivity(navigation);... |
15,522,958 | 0 | Google Plus Login API not working on production server <p>I have implemented the google plus api on development server and it works fine. I used the same code on production server. But after requesting the permission it takes a long time to return to my site and login.</p> <p>Can anyone please let me know what might be... |
31,753,262 | 0 | How does calling this function (without a definition) work? <p>So I am trying to get to grips with someone's code (and cannot contact them) and I do not understand why they do this. They call a function in main like this:</p> <pre><code>LOG_AddFunction(); </code></pre> <p>This function is defined in a header file like ... |
13,758,098 | 0 | <p>Just Before Exporting make the paging function of the gridview as false, so that all the rows are called on demand.</p> |
6,020,209 | 0 | <p>I believe the problem is that with a key of <code>lang.mail.layout.greeting</code>, Freemarker treats each part between the <code>.</code>s as a <a href="http://freemarker.sourceforge.net/docs/dgui_quickstart_datamodel.html" rel="nofollow">hash</a> i.e. a container variable that can have <em>subvariables</em>. So i... |
26,405,090 | 0 | <p>Here's some code I threw together to handle the problem in access</p> <p>It puts error checking in all subs, but not functions. subs have to have a parent form (ACCESS), or alternatively, you have to put the form name in manually. subs that are continued over more than one line will be mercilessly whacked.</p> <p>T... |
2,755,289 | 0 | In NetBeans IDE 6.1 how can I get icons for my custom GUI components in the GUI editor? <p>While this is by no means really important, I was just wondering if the community knows how to put icons for my custom GUI components that show up in the NetBeans GUI designer.</p> <p>What I did was make several Swing components.... |
36,354,311 | 0 | Any Server/Client model for Android? <p>I developed an offline dictionary application in android that has local db built in sqlite shipped with it during installation. But the problem is that how to can I update, delete, add new record in the local db of application whenever it connects to the internet? Is there any sp... |
16,339,861 | 0 | Application failed when changing user cession windows 7 <p>I have an application witch run on local admin account with MFC and user interface. When i change logon windows 7 cession, Application failed.</p> <p>How can i keep the application alive when changing windows cession?<br> Thanks for your help!</p> |
9,072,763 | 0 | JQuery-- how do i move (not revert) a draggable div to another div when i do an action? <p>how do i move (not revert) a draggable div to another div which is a droppable when i do an action? for example how do i move a draggable div from div-A to div-B if i click a button?</p> |
30,595,916 | 0 | <p>The way the HTML the generated is different than just a different container. It also gives you some convenience default settings etc.I'd say it would be good if you have to group fields rather than arbitrary components. To quote ExtJS documentation:</p> <p>"A container for grouping sets of fields, rendered as a HTM... |
7,721,397 | 0 | How to make Proguard ignore external libraries? <p>I want to use Proguard mainly for obfuscation reasons.</p> <p>My problem is that I have three libraries, Twitter4J and two signpost libraries. These libraries caused errors when I tried to create an signed APK. To get over this I put the following in the <code>proguard... |
15,575,986 | 0 | <p>It should not be an infinite loop.</p> <p>The celery.chord_unlock task checks if the chord subtasks have finished to call the merge callback task. If not it schedules itself to check again in a second. The moment your chord tasks are completed you will no longer see those messages in the log.</p> <p>EDITED: you can... |
38,845,763 | 0 | Why get error from kendo ui when run the asp.net mvc application? <p>I'm beginner in asp.net mvc use the kendo UI and add it to my project but when i run the my application get this error:<br/> <a href="https://i.stack.imgur.com/oAwf8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oAwf8.png" alt="en... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.