pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
9,082,640 | 0 | <p>From my experimenting, I've found that Safari 5 (for desktop and iOS) will most certainly render your page in the way you intend using either one of your solutions. Firefox 9, on the other hand, does not appear to respect @-moz-keyframe or -moz-animation rules if they are placed in @media blocks (and both ignore th... |
22,710,384 | 0 | Make {{!LOOP}} increase by 10 in iMacros <p>I have problems with making !LOOP jump +10 each time instead of +1.</p> <p>Here is my code:</p> <pre><code>VERSION BUILD=8810214 RECORDER=FX TAB T=1 SET !ERRORIGNORE YES SET !VAR1 100 SET !LOOP {{!VAR1}} URL GOTO=http://www.example.com/lui/?page={{!LOOP}} WAIT SECONDS=1 ADD !... |
12,609,112 | 0 | <p>Try something like this in your <code>wwwpublic</code> directory, preferably before any routing rules you may have:</p> <pre><code>RewriteEngine On # conditions to check that current request doesn't point to a valid resource RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # condition to chec... |
37,385,987 | 0 | GCM and swift can register and receive a success notification but no other push noteificiatons <p>Update: Ok so I redid all my certs and now I am getting this by testing the GCM at this site <a href="http://techzog.com/development/gcm-notification-test-tool-android/" rel="nofollow">http://techzog.com/development/gcm-no... |
2,853,147 | 0 | <p>If you use the Intel C compiler, and set sufficiently high optimisation options, you will find that some of your loops get 'vectorised', which means the compiler has rewritten them to use SSE-style instructions.</p> <p>If you want to use SSE operations directly, you use the intrinsics defined in the 'xmmintrin.h' h... |
14,158,129 | 0 | <pre><code>foreach (array_keys($_SESSION['Bookings']['date']) as $key) { $myDate = $_SESSION['Bookings']['date'][$key]; $myPrice = $_SESSION['Bookings']['price'][$key]; } </code></pre> <p>Should work?</p> <p>Some info on: <a href="http://php.net/array_keys" rel="nofollow">array_keys</a></p> |
31,186,489 | 0 | <p>You need to do this on a trial and error basis. And you need to change a static parent. Check this example and follow it.</p> <p><strong>Snippet</strong></p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>$(functio... |
13,725,370 | 0 | <p>If you need to analyse C# code at runtime, take a look at <a href="http://en.wikipedia.org/wiki/Microsoft_Roslyn" rel="nofollow">Roslyn</a>.</p> |
36,131,248 | 0 | tfs unable to browse projects <p>I'm using Visual Studio Team Services (was TFS Online) server {MyProject}.visualstudio.com. I'm able to connect to the server, map the project, even receive a review request, but I can't see my team projects under DefaultCollection. Currently when I'm opening the Source Control Explorer... |
12,768,279 | 0 | Is there a replacement for the Handler class? <p>I love the convenience of the Handler class; I can easily queue messages and even delay messages. However, all the code runs on the UI thread which is causing stuttering of the animation.</p> <p>Is there a class, like Handler, that doesn't run on the UI thread ?</p> |
3,041,155 | 0 | ListViewWebPart problem with custom Event list template <p>I have copied C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\EventsList\Events\schema.xml into a custom list template feature. I have another feature that creates the list instance:</p> <pre><code><ListInstance Feat... |
4,896,063 | 0 | <p>class != struct in C#.</p> <p>Also, the packing of your structure is not the same between the C# version and the C++ version.</p> |
13,865,580 | 0 | <p>Your access pattern for <code>M</code> is perfectly coalesced, so the global memory with the help of the cache hierarchy of compute capability devices > 2.x will give the best performance for that array. </p> <p>You have the same access pattern in K and J, so, the accesses are also coalesced. So, there is no reason... |
4,686,148 | 0 | <p>If you take a look at the <a href="http://docs.amazonwebservices.com/ElasticMapReduce/latest/DeveloperGuide/CLI_CreateStreaming.html" rel="nofollow">Amazon Elastic MapReduce Developer Guide</a> you need to specify the location of input data, output data, mapper script and reducer script in S3 in order to create a M... |
5,664,230 | 0 | Detect when cut-ed data is being pasted in MFC COleDataSource VS2008 <p>I need to detect when another application /window in my app does paste on my previously set data , so I can remove it from my source window. I have discovered that <code>COleDataSource::DelaySetData</code> <em>theoretically</em> does this and <code... |
4,471,961 | 0 | I am setting up a SharePoint Development environment. Can I setup Sharepoint on a VM and Visual Studio on my production computer? <p>I am going to be learning how to do SharePoint 2010 development and as such I am setting up my environment? I have a couple of questions about that.</p> <p>First, I am following a couple ... |
15,772,958 | 0 | How can I copy dependencies from the local repository to some specific location? <p>I want copy all the dependencies from the local repository to some specific location without have to specify which dependencies should be copied, I just want that copy all the dependencies that I declared in the pom in specific folder. ... |
17,398,946 | 0 | <p>Here is the example what you could choose to do: <a href="http://plnkr.co/edit/XRGPYCk6auOxmylMe0Uu?p=preview">http://plnkr.co/edit/XRGPYCk6auOxmylMe0Uu?p=preview</a></p> <pre><code><body key-trap> <div ng-controller="testCtrl"> <li ng-repeat="record in records"> <div class="record" ng-class="{... |
35,789,879 | 0 | <p>Just specify in the manifest for the activity as </p> <pre><code> android:persistent="true" </code></pre> <p>That should prevent your activity getting destroyed. To know more about this please refer to these below links which were answered by me </p> <p><a href="http://stackoverflow.com/questions/8557255/how-to-pre... |
9,632,437 | 0 | <p>You can also achieve this in the markup.</p> <pre><code><asp:ListItem Text="Good" Value="True" style="background-color:green;color:white" /> <br /> <asp:ListItem Text="Bad" Value="False" style="background-color:red;color:white" /> </code></pre> <p>The word Style will be underlined with the warning... |
20,787,069 | 0 | <p>Use following line,</p> <pre><code>import android.provider.Settings.Secure; String android_id = Secure.getString(this.getContentResolver(), Secure.ANDROID_ID); </code></pre> |
27,002,360 | 0 | <p>Try using levels.</p> <pre><code>def plot_countour(x,y,z): # define grid. xi = np.linspace(-2.1, 2.1, 100) yi = np.linspace(-2.1, 2.1, 100) ## grid the data. zi = griddata((x, y), z, (xi[None,:], yi[:,None]), method='cubic') levels = [0.2, 0.4, 0.6, 0.8, 1.0] # contour the gridded data, plotting dots at the randoml... |
9,780,306 | 0 | <p>You shouldn't need to destroy and create the annotation every time. Once it has been created, just update the <code>anchorPoint</code>. Removing and adding the annotation is probably related to the constant redraw.</p> |
39,807,752 | 0 | <p>The simplest way is to use <a href="https://docs.python.org/2/library/sys.html#sys.path" rel="nofollow">sys.path</a> to make sure that you will have right order of paths added. <code>sys.path</code> gives out the list of paths that are available in the <code>PYHTONPATH</code> environment variable with the right ord... |
39,761,875 | 0 | <p>Try this</p> <pre><code>http://localhost:8983/solr/core/select?q=*&facet=true&facet.field=strings_ss </code></pre> |
25,457,023 | 0 | <p>Here's a really simple example</p> <pre><code>let rememberTheEvens = let theList = List<int>() fun n -> if n%2 = 0 then theList.Add(n) theList </code></pre> <p>And here's a proper write up that I did a while back that uses a closure for Memoization <a href="http://www.devjoy.com/2013/05/learning-to-think-f... |
15,913,580 | 0 | <p>Here's my solution to make it a little more generic:</p> <pre><code>private static final String[] magnitudes = new String[] {"", "K", "M"}; public static String shortenNumber(final Integer num) { if (num == null || num == 0) return "0"; float res = num; int i = 0; for (; i < magnitudes.length; i++) { final float... |
5,174,900 | 0 | <p>This turned out to be a limitation of ClickOnce deployments. Using a normal setup project, after installation the Jump Lists work as expected.</p> |
2,491,538 | 0 | Download estimator using JavaScript and Ajax <p>I would like to implement the download estimator using the JavaScript and the Ajax. </p> <p>I have gone trough Google, existing posts on stackoverflow also to find the existing implementations for the download estimator and i found most of the time asking user bandwidth a... |
25,563,796 | 0 | Many to one relation : ArrayCollection issue <p><img src="https://i.stack.imgur.com/PTvzx.png" alt="Domain form"></p> <p>I have a many to one relation between Domain and Site. But when I try to add a new domain I have this error :</p> <blockquote> <p>Found entity of type Doctrine\Common\Collections\ArrayCollection on a... |
5,733,181 | 0 | <p>Try setting the <a href="http://developer.android.com/reference/java/io/FileOutputStream.html#FileOutputStream%28java.io.File,%20boolean%29" rel="nofollow">append</a> flag to true when constructing your FileOutputStream</p> <pre><code>osr = new FileOutputStream(outputFile, true); </code></pre> |
35,745,130 | 0 | <p>The order of your current media queries is causing the problem.</p> <p>When forking around the <code>min-width</code> values, you should always put them in to ascending order when it comes to the pixel values. Swap places with <code>min-width: 993px</code> and <code>min-width: 1200px</code> and it should run smooth... |
21,071,686 | 0 | Spring 404 error <p>I am trying to run spring application, but i am getting the 404 error. Can anyone please help? I take this code from mkyong site. The example he given is working but i tried to do everything from scratch it is not working.</p> <pre><code>package com.mkyong.common.controller; import org.springframewo... |
10,229,039 | 0 | <p>You have to implement the static function GetInstance().</p> <p>I would get rid of _instance and do it like this:</p> <pre><code>GamePropertiesManager* GamePropertiesManager::GetInstance() { static GamePropertiesManager manager; return &manager; } </code></pre> |
21,665,315 | 0 | <p>I believe there is no way to make it compile. You will have to use reflection to make the call.</p> <p>Actually. You could cheat if you contain it within a class:</p> <pre><code> public class Container<T> { public Container(T value) { Value = value; } public T Value { get; private set; } } public void Bar<... |
13,996,618 | 0 | <ol> <li>Your FOR loop: since JS uses zero-based arrays, you can't have <strong><=</strong>, otherwise it will look for an index one higher than what you have. Use <strong><</strong> instead;</li> <li>I moved your validation for whether any fields were checked outside the loop to make management easier. It's cle... |
7,247,541 | 0 | How to findAll in mongoosejs? <p>My code is like that:</p> <pre><code>SiteModel.find( {}, function(docs) { next(null, { data:docs}); } ); </code></pre> <p>but it never returns anything... but if I specify something in the {} then there is one record. so, how to findall?</p> |
15,571,304 | 0 | <p>Well I think the problem is how you bind the <code>.click</code> event. Before jQuery 1.7 they had separate methods for <code>.bind</code>, <code>.delegate</code> and <code>.live</code>. But with arrival of jQuery 1.7 these methods were merged an to simplify things by including them all under 1 method <code>.on</co... |
12,006,124 | 0 | <p>You should look in the default_master.properties file (in my case it's in the same directory as js-export) and change the database properties according to your setup.</p> <p>Then js-export and js-import should work.</p> |
21,975,826 | 0 | Split a string with <span> using preg_split() <p>I have a sting that is in this format.</p> <pre><code><span class="amount">$25</span>–<span class="amount">$100</span> </code></pre> <p>What I need to do is split that into two strings. The string will remain in the same format but the prices will... |
37,048,308 | 0 | <p><a href="http://php.net/manual/en/function.empty.php" rel="nofollow"><em>"Determine whether a variable is considered to be empty. A variable is considered empty <strong>if it does not exist or if its value equals FALSE</strong>. empty() does not generate a warning if the variable does not exist."</em></a> </p> <blo... |
27,446,413 | 0 | SVG path animation issue <p>I'm new to CSS animations and I'm struggling to get <a href="http://codepen.io/anon/pen/LENLxM" rel="nofollow">this animation</a> working.</p> <p>I've been following this <a href="http://css-tricks.com/svg-line-animation-works/" rel="nofollow">CSS Tricks post</a>.</p> <p>Currently I don't un... |
13,858,682 | 0 | switch div tags using javascript doesnt work in xhtml strict <p>Hi i need to switch between div tags, I have no idea where's the problem... The site is XHTML strict...</p> <pre class="lang-js prettyprint-override"><code>$(document).ready(function() { var activeId = $(".active").each(function(){ $("#content" + $(this).a... |
4,787,678 | 0 | <p>According to <a href="http://www.boost.org/doc/libs/1_45_0/libs/smart_ptr/shared_ptr.htm">the documentation of Boost <code>shared_ptr</code></a>, the <code>shared_ptr</code> constructor is marked <code>explicit</code>, meaning that there's no implicit conversion from <code>T*</code>s to <code>shared_ptr<T></c... |
37,357,578 | 0 | Error easy-captcha npm installing in sailsJS <p>I have run on terminal to install easy-captcha for my app. </p> <pre><code>npm install easy-captcha --save </code></pre> <p>and error appeared:</p> <pre><code>gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit ... |
20,521,383 | 0 | Updating MySQL database with values from dynamically generated textboxes in different divs <p>I'll try my best to explain my problem here, forgive me if I use the wrong terms occasionally, I'm still pretty much a beginner, and quite terrible at explaining.</p> <p>My goal is to use Jquery to dynamically add textboxes, a... |
32,934,259 | 0 | <p>Java's equals contract gets especially spotty in situations like this, and in the end it all becomes a matter of the programmer's preferences and needs. I remember reaching this very same issue and I came across <a href="https://www.artima.com/lejava/articles/equality.html" rel="nofollow" title="How to Write an Equ... |
21,160,438 | 0 | <p>I would approach this as follows:</p> <pre><code>from collections import defaultdict # using defaultdict makes the sums easier correlations = defaultdict(int) # default to int (i.e. 0) for i1, i2, correl in strScoresDict: # loop through data correlations[i1] += correl # add score for first item correlations[i2] += ... |
22,442,690 | 0 | <p>What did you expect it to do (typos aside)? You have a POD type that does not need any destruction to happen. Try the same thing with something more meaty, say, put a <code>std::string</code> in there, and the destructor will actually do something.</p> <p>Then, put those experiments aside and if at one place in the... |
22,551,751 | 0 | Print current date, without complex time commands <p>The prompt is:</p> <p>Implement a function that determines and prints out the current year, month and day. </p> <p>For example:</p> <p>Today is 03/04/2014.</p> <p>You guys dont have to really mind the code i wrote, its just kinda like scribble trying to figure our a ... |
161,285 | 0 | <p>Cheat and use <strong><a href="http://libusb.wiki.sourceforge.net/" rel="nofollow noreferrer">libusb</a></strong>. I did this for a project I've been working on for a while and wrote a <strong>C++/<a href="http://wxwidgets.org/" rel="nofollow noreferrer">wxWidgets</a></strong> app to handle the data.</p> <p>I've be... |
40,103,236 | 0 | <p>The <code>Equals</code> method and the <code>IEquatable<T></code> interface could be used to know if two objects are equal but they won't allow you to know the differences between the objects.</p> |
6,191,772 | 0 | Calling C/C++ functions in dynamic and static libraries in D <p>I'm having trouble wrapping my head around how to interface with C/C++ libraries, both static (.lib/.a) and dynamic (.dll/.so), in D. From what I understand, it's possible to tell the DMD compiler to link with .lib files, and that you can convert .dll file... |
40,636,558 | 0 | <p>Sorry cordova application works at your device. It does not operate at your network switch/router. There is yet no way that your device could ask your router if it has working internet access and the router could acknowledge that yes i have or not. What you could do at your device only to detect network access.</p>... |
17,852,249 | 0 | svn2git: Cannot setup tracking information <p>I am trying to migrate a SVN project to git with thel help of svn2git. When executing the command it exits with the following error:</p> <pre><code>Running command: git branch --track "0.0.9" "remotes/svn/0.0.9" fatal: Cannot setup tracking information; starting point 'remo... |
11,302,957 | 0 | RestKit not mapping attributes properly when using CoreData <p>I am having some issues implementing RestKit/CoreData with my application. Using the RKTwitterCoreData example application and pointing it to my web service for the json feed, I get the resulting tableview:</p> <p><img src="https://i.stack.imgur.com/XSqw1.p... |
8,352,772 | 0 | <p>primarykey fields ( of any data-type ) are <strong>not included</strong> in the list returned by <code>allFileds</code> method of the Mapper.</p> <p>You can prepend the field separately if you want </p> <p>something like </p> <pre><code> var myMapperPrimaryKey=DummyMapper.primaryKeyField var fieldList=DummyMapper.a... |
39,447,117 | 0 | Issue while fetching dates between range <p>I have two tables. One is hall which is having following schema. <a href="https://i.stack.imgur.com/lAJGj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lAJGj.png" alt="Hall Table"></a></p> <p><a href="https://i.stack.imgur.com/rHg81.png" rel="nofollow nor... |
16,314,741 | 0 | <pre><code>myFlv.stop(); removeChild(myFlv); myFlv = null; </code></pre> |
4,483,901 | 0 | <p>All of your view controllers INSIDE the split view controller have to override the method. Seems like at least one of your overrides returns NO in all cases. To make it rotate to all orientations, return YES in all overrides.</p> |
13,875,212 | 0 | <p>Also, read here: <a href="http://docs.doctrine-project.org/en/2.0.x/reference/batch-processing.html" rel="nofollow">http://docs.doctrine-project.org/en/2.0.x/reference/batch-processing.html</a></p> <p>It suggests to use $em->clear() after every bulk of operations. (which should give the same effect as Besnik sugges... |
35,114,477 | 0 | <p>There is no workaround.</p> <blockquote> <p>Using non-top level imports will not work with native ES6 implementations. Babel allows it because it transpiles to CommonJS require, but it is technically not allowed in ES6.</p> </blockquote> <p><a href="https://github.com/eslint/eslint/issues/2259" rel="nofollow">eslin... |
1,861,282 | 0 | .net, UserControls, and application start time <p>We have a medium sized application that depends on several usercontrols, namely:</p> <p>A tablelayout panel, with 2x5 grid of usercontrols, with 3+ levels of inheritance. A big issue we're running into with our application has proven to be startup time (both cold\warm),... |
18,361,595 | 0 | <p>I was able to slightly improve Zach's answer by incorporating a few function calls. The problem with that answer is that it disables onMouseUp completely, thereby preventing you from clicking around in the textbox once it has focus.</p> <p>Here is my code:</p> <pre><code><input type="text" onfocus="this.select()... |
38,217,959 | 0 | How to move CSV file in FTP server one folder to another? <p>When i am trying to move file from fileDirectory1 to fileDirectory2 .. Is there any way to move or copy that file from one path to another in one FTP server.Please anyone can help me.</p> <p>Here is my sample code:</p> <pre><code> String existingfile = file.g... |
18,833,703 | 0 | Change size of Panorama item <p>I want that the height of one of my Panorama items is higher than usual just like in the TeamViewer app. The height should actually match with the Screen. That Panorama item should be entirely filled with a single canvas. How can I do that?</p> |
18,943,800 | 0 | <p>It's probably your config file...Check your config files for self terminating nodes.</p> |
22,589,182 | 0 | Set 'nice' value to concrete processes, by default <p>I would like to set specific "nice" values to several processes in a laptop. For example, I would like the window manager to run at -10, and keep the default at 0.</p> <p>I know that "renice" can change the niceness of a processes, but this is a-posteriori, and I do... |
21,687,674 | 0 | <p>The problem is that when you set a 100% height value it take the longitud from the parent container. If the conatiner is the body tag it ajustment to the size of the content it self that could be very samll. You need to set up the size to a specifycally size you can use the window size for example.</p> |
10,008,250 | 0 | <p>You should do</p> <pre><code>function(data) { $.each(data, function(){ $('#result').append('<p>Name:'+this.name+' Link:'+this.link+' Approve'+this.approve+'</p>'); }); } </code></pre> <p>fiddle here <a href="http://jsfiddle.net/hUkWK/" rel="nofollow">http://jsfiddle.net/hUkWK/</a></p> |
20,197,287 | 0 | <p>You are using <code>JSON.Stringify</code>; it should be <code>JSON.stringify</code>. Did you check your console for errors? Simply spitting the JSON out isn't too user-friendly, though. Is that what you want?</p> <p>You're going to have to iterate over each individual skill and then insert that into the table in a ... |
2,155,991 | 0 | Keyboard Focus Breaking with Radio Button Group <p>It seems simple, but this has been a bit of a headscratcher for me. Given the following (valid xhtml transitional) code:</p> <pre><code><form action="weird.html"> <label for="test1">T1</label> <input type="radio" id="test1" name="test" value="1" /&... |
2,008,363 | 0 | <p>This should be very easy. Valid function names can only consist of alphanumerics, parenthesis, and possibly parameter values within the parens (i don't know enough javascript to know whether parameters are defined in the function call) and must start with a letter, correct? Therefore to validate that a string is a ... |
2,976,225 | 0 | <p>You could use a <a href="http://msdn.microsoft.com/en-us/library/ms182538(VS.80).aspx" rel="nofollow noreferrer">Visual Studio Web Test</a> to record and execute a scenario. <a href="http://seleniumhq.org/" rel="nofollow noreferrer">Selenium</a> is another alternative.</p> |
23,614,353 | 0 | <p>Three steps:</p> <p>First, find all the cells in each polygon, return a list of 2-column matrices with the cell number and the value:</p> <pre><code>require(plyr) # for llply, laply in a bit... cell_value = extract(dat, polys,cellnumbers=TRUE) head(cell_value[[1]]) cell value [1,] 31 108 [2,] 32 108 [3,] 33 110 [4,... |
24,397,530 | 0 | <p>The developer doesn't own the tabBar, the framework does. It will fight you to make sure that the tabBar stays the same height. If you want to work around this, you can make your own toolbar and add autlayout constraints to its height to force it to stay whatever height you'd like.</p> |
36,254,331 | 0 | Div splitter resize problems <p>I created a splitter using javascript component, but it works only with two columns, if I add a third column, start to have problems with resizing.</p> <p>In the excerpt below is where is the logic to resize.</p> <pre><code>var pos = (e.pageX - dragoffset.x); el.style.left = (pos) + "px"... |
12,099,227 | 0 | When I put a record in the test database in rails, for how long does it persist? <p>If, as part of an RSpec or Cucumber test in my Rails application, I create a model and store it in the test database, how long will the record remain there for?</p> <p>I'm pretty sure that the records are cleared at the end (or beginnin... |
1,857,247 | 0 | How do you write to an xml file in win32 C++? <p>I would like to write a simple xml file using <code>xmllite</code> in <code>win32 c++</code>. the file will be saved over every time the user saves. How do I do this? I'd rather not include any new libraries for this...</p> |
13,418,159 | 0 | <p>It can be very confusing working with strings when you want to provide a path... That's the first thing I check whenever something strange is happening.</p> |
8,088,427 | 0 | Programatically rendering a web UserControl <p>I have a load of <code>UserControl</code> objects (<code>ascx</code> files) in their own little project. I then reference this project in two projects: The REST API (which is a class library project) and the main website.</p> <p>I'm sure this would be easy in the website, ... |
40,283,274 | 0 | <p>Every memory block obtained via <code>malloc</code> and friends that is not freed with the <code>free</code> function will yield in a memory leak and this is toally independent of scopes.</p> <p>In other words, you may allocate a memory block in some function and free it later in a totally different function; this ... |
6,651,380 | 0 | <pre><code>$textFields = $("input[type=text]"); </code></pre> <p>Then you can test them individually using filter</p> <pre><code>$textFields.filter('[name=email]'); </code></pre> |
25,348,522 | 0 | <p>If anyone stumbles upon this...</p> <p>I figured this out by using the sample project from the <a href="http://developer.android.com/training/animation/screen-slide.html" rel="nofollow">Android developer training</a> website. I created an anim folder in res and adding xml set files with the Object animator tag. I d... |
24,262,645 | 0 | <p>Try this in the selector method of the info button :</p> <pre><code>[self.popover presentPopoverFromRect:[(UIButton *)sender frame] inView:self.view permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES]; </code></pre> <p>Hope this helps you!</p> |
8,930,833 | 0 | Which Audio API to use for creating Audio Effects? <p>I want to record audio and apply custom-built sound effect filters, then play it back.</p> <p>Are Audio Units and Audio Queue Services the API I'm looking for? Or are there other APIs which fit this purpose better?</p> <p>Also, I've been told Audio Units can't be cu... |
5,799,464 | 0 | Trying to see how I can improve the performance of this Sql query <p>I've got a SQL query which is trying to find all the Neighbourhoods in some Counties.</p> <p>When I use SQL Sentry Plan Explorer to visualize the query (IMO, a bit better than the tools provided with MS SSMS) it highlights a really slow performing par... |
402,769 | 0 | <p>I think the key to this performing is to think about how you store your data and to have some metadata around it.</p> <p>What do I mean by that?</p> <p>Have a list of Cities that have a store in NJ, for example, and filter out cities that come back from your third party api based on your master list. You might find... |
30,682,924 | 0 | <p>You're using RTMP, which is a Flash protocol. There is no Flash on any mobile device. You'll need to provide an HLS stream or MP4 fallback for mobiles.</p> |
27,924,803 | 0 | Bower images integration <p>I use bower and grunt. Grunt scan bower_components and integrate js/css files in special directories. What about relative paths to images in css files? How can I integrate these images?</p> |
1,117,686 | 0 | <p>I would do something like this. I'm thinking the problem could be the order of the rules, that say, the first rule will try to load the image/js/css since isn't looking if the file exists.</p> <p>try this:</p> <pre><code>Options -Indexes RewriteEngine on Options +FollowSymLinks RewriteCond %{HTTP_HOST} !^www\.websi... |
40,787,559 | 0 | <p>I think the best way to avoid the highlighting of that unused public methods is writing a couple of test for those methods in your API.</p> |
24,785,261 | 0 | <p>I think what normally happens in the scenario where you want to change an employees manager would be:</p> <ul> <li>load the employee model. You may not need to populate the manager at this point if you just intend to change it without really using the existing manager value. Make sure you change it with <code>emplo... |
40,111,951 | 0 | How to: Time-in and time-out status on vb.net <p>`Public Sub updateTextBox()</p> <pre><code> s = s + SerialPort1.ReadExisting() If Len(s) > 12 Then Try txtReceived.Text = Microsoft.VisualBasic.Mid(s, 1, 12) strSql = "SELECT * FROM stud WHERE tag = '" & txtReceived.Text & "';" command.CommandText = strSql com... |
15,106,405 | 0 | <p>Both are suitable for bigger projects and both are secure too. But these two things depends on the Programmer or Team you hire. You can have a look <a href="http://en.wikipedia.org/wiki/Programming_languages_used_in_most_popular_websites" rel="nofollow">here</a>.</p> <p>ASP is fully Object oriented and can be writt... |
5,510,978 | 0 | In Hudson, how do I get the current build's git commit sha? <p>We are using Hudson with git. We have a build/test server which compiles our project and then a QA server to which we need to deploy.</p> <p>We want to get the current built git commit sha and use it to pull the appropriate commit for deployment on our QA s... |
34,257,839 | 0 | Use $mdDialog stright from controller <p>Trying to use the $mdDialog when login fails; currently I have injected $mdDialog and where my response fails I have added the following code:</p> <p><strong>$mdDialog Code:</strong></p> <pre><code>$mdDialog.show( $mdDialog.alert() .title('Username / password is incorrect') .tex... |
4,448,418 | 0 | Weblogic ClassCastException <p>I am getting the following exception from WebLogic console.</p> <pre><code>java.lang.ClassCastException: weblogic.xml.jaxp.RegistryDocumentBuilderFactory cannot be cast to oracle.xml.jaxp.JXDocumentBuilderFactory </code></pre> <p>I am using oracle.xml.jaxp.JXDocumentBuilderFactory inside ... |
21,445,811 | 0 | <pre><code>acBox.Items.Add("There is no data"); acBox.DataBind(); </code></pre> <p>Not really sure with my answer, I just answered it based on my understanding of your question.</p> |
16,148,157 | 0 | <pre><code>public enum Logger { INSTANCE; DefaultFileMonitor fm = new DefaultFileMonitor(new CustomFileListener()); private FileObject file = null; private FileObject object = null; private Logger() { this.openFile(); try { FileSystemManager fsManager = VFS.getManager(); file = fsManager.resolveFile(this.getfileLocati... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.