pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
15,601,679 | 0 | <p>If I understand you correctly, what you are looking for is this:</p> <pre><code>$(this).siblings("td[class='ms-formbody']").each(.. </code></pre> |
30,042,382 | 0 | Linux -> automatic deletion of files older than 2 days <p>I am trying to write something that runs in the background under linux (ubuntu server). I need a service of some sort that deletes files that are older than 2 days from the files system (own cloud storage folder).</p> <p>What is the best way to approach this?</p... |
18,043,512 | 0 | <p>It is almost impossible to answer your question in the scope of a SO "answer" - you will need to read up on implementation of parallel processing for the particular architecture of your machine if you want the "real" answer. Short answer is "it depends". But your program could be running on both processors, on any ... |
38,514,855 | 0 | Toolbar/Nav drawer not working with tabbed view <p>I'm having an issue getting my toolbar and navigation drawer to show on a new layout file. It's working for the whole app, except the new tabbed layout view.</p> <p>I try to activate it in the onCreate of the new java class:</p> <pre><code>@Override protected void onCr... |
26,943,730 | 0 | <p>ADC in AVR is in unsigned 10-bit form, not a double. And the ADC can be read as two separate bytes, ADCL and ADCH. ADCL must be read first.</p> <p>If you want to send some other <code>uint16_t val</code> use</p> <pre><code>uint8_t lo = (uint8_t)val; uint8_t hi = (uint8_t)(val >> 8); </code></pre> <p><code>dou... |
37,505,115 | 0 | <p>When items are added to a recycler view or a list view you need to notify the adapter that these changes have occurred which you aren't doing. </p> <p>In <code>onProgressUpdate</code> you'd want to call <code>adapter.notifyItemInserted(position)</code> to tell the RecyclerView to refresh. To do this you'd need a ca... |
34,681,863 | 0 | <p>Your best bet is to use unicode escape sequences (like <strong>\u2665</strong>) rather than the binary character.</p> |
28,865,240 | 0 | <p>Well, sendgrid-nodejs is a more popular repository.</p> <p>However, Nodemailer is the most popular module for sending emails with NodeJS. I've been using it for months and I'm very satisfied.</p> <p>If you're worried about the future of your app you should consider that Nodemailer is used not just with Sendgrid, bu... |
18,989,915 | 0 | <p>I found the issue. I am referencing JQ version 1.9 because i read in a tutorial that it should automatically pick the latest version in the 1.9 series. It works if i change it to 1.9.0 or 1.9.1. However, i still dont understand why 1.9 didnt work. it should have picked the latest 1.9.* version.</p> <p>But atleast b... |
37,909,207 | 1 | Get distance and velocity from discrete accelerometer data <p>I know there has been a number of questions and answers on this topic, but none of them has helped me to understand how to approach the problem. So my set-up is: I have accelerometer data (clean from the gravity part), and I'd like to calculate from the give... |
38,255,251 | 0 | <p>in order to show additional data you can use Grid or StackPanel or whatever suits your needs with visibility collapsed and when the user clicks the item it will be set to show. Here I demonstrated how you can do this with a simple ListView:</p> <p>This is my MainPage:</p> <pre><code><Page x:Class="App1.MainPage"... |
6,743,850 | 0 | <p>Yes is the answer but it's only the string.</p> <p>You can use <code><input name="test[]" /></code></p> <p>and you will receive an array of all inputs with name "test[]" in an array with name "test"</p> <p>You can read for all this in <a href="http://www.razzed.com/2009/01/30/valid-characters-in-attribute-nam... |
22,195,255 | 0 | <p>That's normal as your object is a <code>reference type</code>. You should make a <code>deep copy</code> in order to reflect the changments in your history list </p> <p>try something like this </p> <pre><code>private void Employee_PropertyChanged(object sender, PropertyChangedEventArgs e) { var empCloned = DeepClone... |
13,682,668 | 0 | sql query to count two columns with same values <p>I've got a table with 2 columns with keywords, and I need to count the occurrence of them. I can do that separately, one column at the time, and add the totals later, with a regular count,</p> <pre><code>select count (id), kw1 from mytable group by kw1 </code></pre> <p... |
19,485,803 | 0 | <p>Heroku runs a case-sensitive filesystem, whereas your OS may not be case-sensitive. Try changing that require to this instead:</p> <pre><code> require 'card' </code></pre> <hr> <p>As a general rule of thumb, most files within Ruby are required using lowercase letters with underscores serving as a word separator, li... |
29,203,094 | 0 | <p>Though it's a bit outdated, it may be helpful to read <a href="http://stackoverflow.com/questions/26705201/whats-the-difference-between-apaches-mesos-and-googles-kubernetes">What's the difference between Apache's Mesos and Google's Kubernetes</a>, to get some of the basics right. Also, note that Mesos operates on a... |
30,531,045 | 0 | <p>After the upload you can simply call <code>delete_transient( 'wc_attribute_taxonomies' );</code></p> <p>That's where the transients are created: <a href="http://oik-plugins.eu/woocommerce-a2z/oik_api/wc_get_attribute_taxonomies/" rel="nofollow">http://oik-plugins.eu/woocommerce-a2z/oik_api/wc_get_attribute_taxonomi... |
9,098,029 | 0 | Latest version of JSON-Framework <p>I am looking for the latest version of JSON-Framework for ios 5.0. I like this becouse is very easy to use (you can see <a href="http://blog.zachwaugh.com/post/309924609/how-to-use-json-in-cocoaobjective-c" rel="nofollow">here</a>) I have found this but in the oficial web, all is dep... |
34,449,301 | 0 | postgresql function insert multiple rows which values are represented by array <p>I have the table:</p> <pre><code>--------------------------------------- id (integer) | name (character varying) --------------------------------------- </code></pre> <p>I want to insert multiple rows represented by array of character var... |
5,732,159 | 0 | <p>You can do exactly the same thing in C++:</p> <pre><code>std::ifstream reader( xmlInputStream.c_str() ); if ( !reader.is_open() ) { // error handling here... } std::string xml; std::string line; while ( std::getline( reader, line ) ) { xml += line + '\n'; } </code></pre> <p>It's probably not the best solution, but ... |
33,188,783 | 0 | <p>Your script is working fine. You have to check some points</p> <ol> <li><p>Upload your scripts in your server. Do not run in localhost.</p></li> <li><p>Check the action and script name is same.</p></li> <li><p>Check mail to address is correct.</p></li> <li><p>Check you are running your script in a php installed ser... |
14,088,631 | 0 | <p>Decorator pattern might come in handy</p> <pre><code> class S2 extends S { S s; S2(S s) { this.s = s; } // delegate method calls to wrapped B1-B5 instance @Override void oldMethod1() { s.oldMethod1(); } ... // add new methods void newMetod1() { ... } } </code></pre> <p>then use it as </p> <pre><code>new S2(new B1()... |
7,095,848 | 0 | indenting Java source files using Eclipse <p>I'm using an UML tool that generates Java classes from the UML class diagram. Unfortunately the code inside is not indented.</p> <p>How to solve this? How can I indent a file using Eclipse? </p> |
32,438,463 | 0 | Android programming use of alarmmanger <p>I want to show toast at a specific time using AlarmManger but my toast is not shown at given time? Help me. My code is as follows:</p> <pre><code>private void startAlarm() { Calendar cal=Calendar.getInstance(); cal.set(Calendar.DAY_OF_MONTH,9); cal.set(Calendar.MONTH,7); cal.se... |
19,723,628 | 0 | <p>you cannot do that</p> <blockquote> <p>private ImageView[][] gameField = {{(ImageView)findViewById(R.id.enemy1_1),(ImageView)findViewById(R.id.enemy1_2),(ImageView)findViewById(R.id.enemy1_3)}, {(ImageView)findViewById(R.id.enemy2_1),(ImageView)findViewById(R.id.enemy2_2),(ImageView)findViewById(R.id.enemy2_3)}, {(... |
11,929,402 | 0 | QAbstractTableModel is a class in Qt for models that represent their data as a two-dimentional array of items. |
295,684 | 0 | <p><code>svn diff</code>, even when you're offline and might think diff:ing is not possible.</p> |
30,335,945 | 0 | <p>Do you need all of this data present on the Windows machine? Or are you going to be accessing it intermittently? </p> <p>You might try just mounting your S3 bucket. </p> <p>It will still be remote but will act like a normal mounted drive in Windows. If you need to do some data crunching then copy just the files you... |
37,395,447 | 0 | Service-based security with Java EE <p>All Java EE authorisation techniques I've seen so far are for the view layer only - mostly based on JSF. You basically restrict access to certain URL patterns or JSF components.</p> <p>However, I'd prefer to have my security layer on the services. My layers are looking something l... |
8,881,069 | 0 | <p>The only way to use 2 different version of the same class is to laod them through 2 different classloaders. That is you have to load <strong>owls.jar__and __jena.jar</strong> with one class loader and <strong>envy.jar</strong> and <strong>jena2.jar</strong> with another. This solution has its own pitfalls, you shou... |
25,214,643 | 1 | Python - Rounding floating integers defined as variables and displaying them <p>I am trying to get this to calculate a number based on user input. While displaying it I want it to round to 2 digits. It refuses too! So confused. Any advice?</p> <pre><code>def calc(user_id): numbers = {'A': 4, 'B': 3, 'C': 2, 'D': 1, 'F'... |
3,414,877 | 0 | <p>Next to reseting the counter for the figures:</p> <pre><code>\setcounter{figure}{0} </code></pre> <p>You can also add the "S" by using:</p> <pre><code>\makeatletter \renewcommand{\thefigure}{S\@arabic\c@figure} \makeatother </code></pre> |
19,311,651 | 0 | send mail using mail() in php <p>Hello I am learning php where i came to know mail() function i have tried this code</p> <pre><code>function sendMail() { $to = 'Sohil Desai<sohildesai.2711@gmail.com>'; $from = 'Sohil Desai<sohildesai.2711@hotmail.com>'; $subject = 'Test Mail'; $headers = 'MIME-Version: 1.0'... |
5,781,483 | 0 | <p>Is this just an example, or the real application?</p> <p>In trading room environments, market data applications are extremely sensitive to delays of even a few milliseconds, and a lot of time and money is invested to minimise delays.</p> <p>This makes the set of technologies you're talking about completely inapprop... |
9,715,113 | 0 | <p>To start with, I'd suggest using <a href="http://msdn.microsoft.com/en-us/library/system.datetime.parseexact.aspx" rel="nofollow"><code>DateTime.ParseExact</code></a> or <code>TryParseExact</code> - it's not clear to me whether your sample is meant to be December 2nd or February 12th. Specifying the format may well... |
9,800,647 | 0 | <p><a href="http://www.modernizr.com/" rel="nofollow">Modernizr</a> will make HTML5 elements work (and by work, I mean the browser will recognise them and you can apply styles to them) in browsers that do not support them, such as old versions of IE</p> <p>Another good one is <a href="http://selectivizr.com/" rel="nof... |
38,218,640 | 0 | Is it possible to write an extension for a specific swift Dictionary ... [String : AnyObject]? <p>I am trying to write an extension for this:</p> <pre><code>extension [String : AnyObject] { } </code></pre> <p>It throws and error. I was also trying to come up with something similar as this:</p> <pre><code>extension Dict... |
22,278,111 | 0 | <p>Try following approach, is from <a href="http://www.vntweb.co.uk/no_pubkey-e585066a30c18a2b/" rel="nofollow">there</a></p> <blockquote> <p>The error <code>NO_PUBKEY E585066A30C18A2B</code> is the key for the Opera web browser. To correct the error, run the following code.</p> <p><code>wget -O - http://deb.opera.com... |
38,123,587 | 0 | Extract username from forward slash separated text <p>I need to extract a username from the log below via regex for a log collector. </p> <p>Due to the nature of the logs we're getting its not possible to define exactly how many forward slashes are going to be available and I need to select a specific piece of data, as... |
30,222,530 | 0 | iOS: Check if user is already logged in using Facebook? <p>I have started working on an iOS app on Xcode using Swift and storyboards. I have a requirement where on click of a button I will show a user's Facebook profile info on the screen (only if user is signed in using Facebook), but if he is not signed in it will au... |
34,562,508 | 0 | <p>Use <a href="https://codex.wordpress.org/Template_Tags" rel="nofollow">get_the_post_thumbnail</a> function.<br> In this case it is better use The Loop fundamentals of WordPress.<br> References:<br> <a href="https://codex.wordpress.org/The_Loop" rel="nofollow">https://codex.wordpress.org/The_Loop</a><br> <a href="ht... |
11,846,110 | 0 | <p>Also you may want to select show updates/new packages and show installed packages.</p> <p>Btw. I think it is called Google Play now instead of Google Market.</p> |
9,824,683 | 0 | Android 4.0 - problems <p>I have 3 problems with android 4.0 (Galaxy tab 10.1). The first one is getting local IP: I use the method:</p> <pre><code>public static String getLocalIpAddress() { try { for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) { NetworkInte... |
39,671,829 | 0 | <p>found two ways of achieving my problem </p> <p>1.from @trevjonez(trevor jones)</p> <pre><code>Where<SomeModel> query = SQLite.select() .from(SomeModel.class) .where(SomeModel_Table.date_field.greaterThan(someValue)); if(someCondition) { query = query.and(SomeModel_Table.other_field.eq(someOtherValue)); } else... |
13,172,659 | 0 | <p>Get it as </p> <pre><code>$total = 0 $avg = 0 foreach ($users as $user) { $user_avg = ($user['reliable'] + $user['communication'] + ($user['experience']/3) * 5) / 3; $total += $user_avg; } if (sizeof($users) > 0) { $avg = $total/sizeof($users); $avg = round($avg, 2) } </code></pre> |
8,885,586 | 0 | jTidy returns nothing after tidying HTML <p>I have come across a very annoying problem when using jTidy (on Android). I have found jTidy works on every HTML Document I have tested it against, except the following:</p> <pre><code> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> &... |
15,484,503 | 0 | How to create Quadtree Copy constructor with Recursion <p>I am working on a copy constructor for a Quadtree. Here's what I have so far:</p> <pre><code> //Copy Constructor Quadtree :: Quadtree(const Quadtree & other) { root = copy(other.root); resolution = other.resolution; } //Copy Constructor helper function Quadt... |
10,980,181 | 0 | <blockquote> <p>iv.setImageURI(@"C:\Users\SONY\Downloads\slide.butcher.home.jpg");</p> </blockquote> <p>You are trying pass Uri of image which is stored on your Computer!!!!</p> <p>Copy that file on your device SD Card. Suppose you copied it under <code>/sdcard/home.jpg</code></p> <p>Then use below code to display it ... |
27,256,363 | 0 | <p>To disable the "required" on the field you need...</p> <p>On your javascript document ready you can use this code:</p> <pre><code>$('#category_slug').removeAttr('required'); </code></pre> |
22,372,128 | 0 | <blockquote> <p>How is a getting incremented?</p> </blockquote> <p><code>a</code> is increased by the <code>a++</code> in <code>while(a++<=2);</code>.</p> <p><code>a++</code> will return the value of <code>a</code> and add one to it, so when <code>a</code> is 3, <code>a++<=2</code> will be false, but <code>a</co... |
13,467,796 | 0 | Display text when MySQL Column is 1 <p>So here is what I have... the issue is it is giving me errors and I cant get it to work for the life of me!</p> <pre><code><?php $link = mysql_connect($hostname, $username, $password); mysql_select_db($database); if (!$link) { die('Could not connect: ' . mysql_error()); } $resu... |
21,417,981 | 0 | <p>The VM Template system also lets you create additional view templates for categories and products. To override the default categories, category, or productdetails view, simple use the standard Joomla template override method. Copy <strong>/components/com_virtuemart/views/[categories, category, or productdetails]/de... |
25,250,270 | 0 | <h2>Initial note</h2> <p>A lot of indeed <strong>smart</strong> man*years has been burnt on reverse-engineered efforts to tap into <strong><code>MT4/Server</code></strong> <--> <strong><code>MT4/Terminal</code></strong> C/S communication.</p> <p>Some have died by themselves.</p> <p>Some have failed to survive the n... |
13,686,635 | 0 | <p>Your <code>label</code> which contains the image is being replaced with <code>label123</code> in the <code>BorderLayout.CENTER</code> position, which <em>doesnt</em> have any image attached. You could use:</p> <pre><code>label123.setIcon(ii); </code></pre> <p>If you want the 2 labels to be shown, you could place th... |
35,446,324 | 0 | <p>One of the "old school" approaches before linq saved all our butts from this kind of thing. Uncompiled as I'm on mobile atm (doing code on a mobile is hard, just so you know).</p> <pre><code>private List<int> test() { var intResults = new List<int>(); var file = File.ReadLines("blah"); foreach (var line... |
3,846,389 | 0 | Super simple java swing jlist question that I just can't figure out! <p>Ok, so I am working on a homework assignment, and I am using SWING to make a GUI for a Java project, and I am running into troubles with JList.</p> <p>I have a customer object that I have made and set attributes to, and I want to add the object int... |
9,261,833 | 0 | <p>Like stated in <a href="http://facebook.stackoverflow.com/questions/7653095/unexpected-error-when-posting-photos-to-test-users">this answer</a> the problem can be caused when your application is in Sandbox mode.</p> |
30,663,649 | 0 | Initializing a static class member array with a non-trivial expression in C++11 <p>I would like to benchmark the performance of using a const cache for some static function inside a cache. So I have something like that:</p> <pre><code>class Foo { static double cost(int factor) { <moderately complex function> }; /... |
11,355,608 | 0 | php ajax reload webpage every 1 second constant database connection <p>i was wondering how can i reload a .php website containing a table every second with ajax? is it fine if i use javascript, but a quick php script would do just fine, does a loop for reload method work?</p> <p>I tried ajax with javascript but every t... |
20,295,442 | 0 | <p>I don't know why PhoneCallListener stops execution, however I solved this by putting "phoneListener = new PhoneCallListener();" in the onCreate method.</p> |
33,762,072 | 0 | Exclude a class depedency in compile, but include in testCompile for gradle <p>I'm having an issue where I have an old version of library Foo as a transitive dependency in one of my included libs. I want to use a newer version of library Foo in my testCompile, but it's causing a conflict when I run tests in intelliJ, a... |
34,196,694 | 0 | Can't get test through the end with protractor <p>I have simple test doing login and trying to check if it's success:</p> <pre><code>describe('My Angular App', function () { describe('visiting the main homepage', function () { beforeEach(function () { browser.get('/'); element(By.id("siteLogin")).click(); }); it('shoul... |
18,319,295 | 0 | How to disable chunked encoding in Mule cxf:proxy-client <p>I'm using <code>Mule 3.3.2</code> <code>cxf:proxy-client</code> to call third-party Soap service this way:</p> <pre><code><outbound-endpoint address="https://www.xyz.biz/Dms/Call.aws" mimeType="text/xml" connector-ref="https.connector" responseTimeout="1000... |
29,847,824 | 0 | <p>This works for me </p> <pre><code>.directive('updateinfo',['$compile', function($compile) { function link(scope, element, attrs) { function update(){ var str = '<input type="text" ng-model="log1" />'; element.html(str); } update(); element.replaceWith($compile(element.html())(scope)); } return { link: link };... |
34,391,012 | 0 | <p>I'm sure this will help:</p> <pre><code>DirectoryInfo DirInfo = new DirectoryInfo(@"C:/PCRequestFiles"); var files = from f in DirInfo.EnumerateFiles() where f.CreationTimeUtc < EndDate && f.CreationTimeUtc > StartDate select f; </code></pre> |
34,428,958 | 0 | <p>@Luksprog answer is correct but not working for me. After some experimentation, I found out that removing the android namespace from editTextStyle made it work for me.</p> <pre><code><style name="App_Theme" parent="@android:style/Theme.Holo"> <item name="editTextStyle">@style/App_EditTextStyle</item&... |
28,819,316 | 0 | <p>The MSDN documentation from the link you provided indicates that the new syntax for the DOM L4 event constructor pattern:</p> <blockquote> <p>Applies to Internet Explorer for Windows 10 Technical Preview and later.</p> </blockquote> <p>which is a different version of IE from what you are using. So it's expected tha... |
6,516,638 | 0 | Loading different views into a custom view dynamically <p>I've an application that performs a multi-step process. Each step is implemented as a <code>NSView</code> subclass and I want to navigate between the different views. I'm trying this by implementing a custom view and then loading different views into the custom ... |
28,701,159 | 0 | confusion about .html() and .append() when I'm trying to overwrite elements in a loop <p>Sorry about the gory title. Effectively I'm trying to loop through a 2 dimensional array and I'm using autocomplete to output every time a single character is changed. If I use <code>.append</code> or <code>.prepend</code> then I h... |
36,239,903 | 0 | What's the difference between Remove and Exclude when refactoring with PyCharm? <p>The <a href="https://www.jetbrains.com/help/pycharm/2016.1/refactoring-source-code.html?origin=old_help" rel="nofollow">official PyCharm docs</a> explain <code>Exclude</code> when it comes to refactoring: One can, say, rename something w... |
40,414,462 | 0 | <p>Here's an alternative using a ChartWrapper instead of a chart.</p> <pre><code>var opts = { "containerId": "chart_div", "dataTable": datatable, "chartType": "Table", "options": {"title": "Now you see the columns, now you don't!"} } var chartwrapper = new google.visualization.ChartWrapper(opts); // set the columns to... |
33,889,128 | 0 | <p>its just missing its outer container.</p> <p>try this:</p> <pre><code>return new JsonResponse( array( array( "id" => 288, "title" => "Titanic", "year" => "1997" )) ); </code></pre> <p>this should output as:</p> <pre><code>[{"id":288,"title":"Titanic","year":"1997"}] </code></pre> |
41,030,411 | 0 | <p>can you format your data in question. I am not sure whether I get youe point?</p> <pre><code> CREATE TABLE #tt([name] VARCHAR(10),[date] DATE,skill INT,seconds INT, calls int ) INSERT INTO #tt SELECT 'bob','9/2/2016',706,12771,56 UNION all SELECT 'bob','9/2/2016',707,4061,16 UNION all SELECT 'bob','9/2/2016',708,25... |
40,786,489 | 0 | <p>try this one</p> <pre><code>self.textField.backgroundColor = [UIColor redColor]; </code></pre> |
41,043,440 | 0 | Excel MDX linked server fails connection test <p>My first post after 2 years of learning to write SQL and using SQL Server, most of my questions have been answered researching on this website, however I cannot find the answer to my question below:</p> <p>I am creating a new linked server, grabbing data from Excel using... |
20,171,842 | 0 | <p>This issue is due to that Ant can not find the tools.jar file.</p> <p>You need to copy the tools.jar file and put it in the lib folder for the ant to work.</p> <p>Do a search for tools.jar file in the lib folders from other sdk libraries and put that in the above path in error.</p> |
24,489,067 | 0 | <p>There is no GDI/canvas implementation built into Unity. Drawing these in rastered 2D would be quite hard in Unity (basically putpixel level, or finding some third party library).</p> <p>You have an alternative, though - you can draw these shapes in 3D, ignoring the third dimension. You have a few methods for this:<... |
35,316,888 | 0 | <p>It depends when you start from (0,0) or at a random location in the matrix.</p> <p>If it is (0,0) ; use Depth First to go until the end of one branch then the others. Use Breadth First to iterate through all neigbouring nodes at a step. Check only down and right nodes.</p> <p>If it is at a random location in the ma... |
1,757,169 | 0 | <p>Absolutely yes. There is no real ideal approach for everyone, however -- after much practice you will find that it will depend on what you're most comfortable with. Some of the ways we have used Virtualization:</p> <ul> <li>Virtualized complete .NET development environment in Windows XP, including VS 2008, IIS, MS ... |
5,666,040 | 0 | <p>You may want to check out <a href="http://www.sencha.com/products/touch/demos/" rel="nofollow">Sencha Touch</a>, they provide a full HTML5 version of many common UI components for mobile web site development, including tab bars.</p> |
11,881,861 | 0 | <p>It's because the file permissions are not the only protection you're encountering.</p> <p>Those aren't just regular text files on a file system, <code>procfs</code> is a window into process internals and you have to get past both the file permissions <em>plus</em> whatever other protections are in place.</p> <p>The... |
1,706,135 | 0 | <p>If your web server is <a href="http://blog.thinkphp.de/archives/136-Make-the-download-of-large-files-with-PHP-and-lighty-very-easy.html" rel="nofollow noreferrer">lighttpd</a> or <a href="http://www.adaniels.nl/articles/how-i-php-x-sendfile/" rel="nofollow noreferrer">Apache with mod_xsendfile</a>, then you can sen... |
13,336,097 | 0 | <p>The problem was solved by adding MAYSCRIPT to the applet tag in the html.</p> <p>Like this:</p> <pre><code><applet code="com.example.MyApplet.class" name="myapplet" codebase="http://localhost:8080/example/classes" align="baseline" width="200" height="200" MAYSCRIPT> <PARAM NAME="model" VALUE="models/Hyalur... |
29,048,191 | 0 | <p>You mean:</p> <ol> <li>How to capture the card number from the returning data. see this <a href="http://www.markhagan.me/Samples/CreditCardSwipeMagneticStripProcessing" rel="nofollow">code</a>.</li> <li>How to interact with the Device, if USB Device see this <a href="https://msdn.microsoft.com/en-us/library/windows... |
33,729,876 | 0 | how to send data http://localhost/someproject/editid/1 instead of http://localhost/someproject/editid=1 <p>how to send data <code>http://localhost/someproject/editid/1</code> instead of <code>http://localhost/someproject/client_list.php?editid=1</code> </p> <p>please let me know how the above url works,we need to use a... |
10,060,484 | 0 | <p>To check if two strings are the same in Java, use <code>.equals()</code>:</p> <pre><code>"1" == new String("1") //returns false "1".equals(new String("1")) //returns true </code></pre> <p>EDIT: Added new String("1") to ensure we are talking a new string.</p> |
14,627,247 | 0 | <p>Jim, may I know what Operating System do you use? If you're using Windows Server OS, there should be no problem with the number of users that can access your application. But if you're using Windows client OS like XP, Vista, 7 then you have limits with simultaneous connections to your web server. </p> |
16,941,136 | 0 | <p>Have a look at the Doctrine documentation to see what you can get in the <code>preUpdate</code> lifecycle callback: <a href="http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#preupdate" rel="nofollow">http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/eve... |
7,649,018 | 0 | Parser replace pattern <p>I have problems with pattern. I need to process some text for example:</p> <pre><code><div>{text1}</div><span>{text2}</span> </code></pre> <p>After the process I need to get in place of {text1} and {text2} some words from dictionary. I'm preparing ui interface for diffr... |
4,957,005 | 0 | <p>Looks like you can't just pass touches in and have it respond to them :(</p> <p>You would have to use the [UIScrollView setContentOffset:animated:] method to move the scrollview yourself.</p> <hr> <p>A better way of intercepting the touches might be to put a view in front of the scrollview - grab any touches you wa... |
13,633,534 | 0 | How to check if entity framework 5 is running with .net framework 4.5 <p>I am confusing if entity framework 5 is based on .net framework 4.5 or .net framework 4.0 in my project, because when I added ef5 to my project from nuget, it shows the run time version is v4.0.30319 as in attached image. (I assume it should be v4... |
21,407,481 | 0 | Angulars $httpBackend not pure unit testing? <p>Angular advocates the use of <a href="http://docs.angularjs.org/api/ngMock.%24httpBackend" rel="nofollow">$httpBackend</a> to test your service. Doesn't that break the principle of unit testing since it also tests angular internals? </p> <p>Shouldn't we rather test with a... |
29,930,601 | 0 | <p>You can use <a href="http://imperavi.com/redactor/docs/callbacks/image/#callback-imageUploadCallback" rel="nofollow">imageUploadCallback</a> for editing image tag.</p> |
25,674,365 | 0 | <p>I solved my own problem with the following steps: 1. Deleted MSCOMCTL.OCX from \Windows\Syswow64 2. Opened the Access form that was giving me a problem, and Access reinstalled MSCOMCTL.OCX automatically. 3. Opened a command window with the "Run As Administrator" option 4. Navigated to \Windows\Syswow64 5. Ran "regs... |
40,329,448 | 0 | <p>In the <code>WebApiConfig</code> class add the following:</p> <pre><code> public static void Register(HttpConfiguration config) { config.EnableCors(); config.MapHttpAttributeRoutes(); // Web API routes below } </code></pre> |
12,982,138 | 0 | <p>You only have to change the client.</p> <p>Change its Naming.lookup() string, from "localhost" to the server's hostname or IP address. The server's Naming string in the bind() or rebind() call does not change from "localhost", because the server and its Registry are always on the same host.</p> <p>If you are using ... |
34,503,110 | 0 | cmocka malloc testing OOM and gcov <p>I'm having a hard time finding an answer to a nitch case using cmocka, testing malloc for failure (simulating), and using gcov</p> <p>Update about cmocka+gcov: I noticed I get empty gcda files as soon as I mock a function in my cmocka tests. Why? Googling cmocka and gcov gives resu... |
28,298,873 | 0 | <p>You can also do something like this:</p> <pre><code>grails.project.war.file = "target/${appName}${grails.util.Environment.current.name == 'development' ? '-dev' : ''}.war" </code></pre> |
25,924,639 | 1 | python idle how to create username? <p>Write a function called getUsername which takes two input parameters, firstname (string) and surname (string), and both returns and prints a username made up of the first character of the firstname and the first four characters of the surname. Assume that the given parameters alwa... |
27,669,584 | 0 | Remove any kind of url from string in php? <p>I am having below data.</p> <p>Example 1</p> <pre><code>From : http://de.example.ch/biz/barbar-vintage-z%C3%BCrich I want: /biz/barbar-vintage-z%C3%BCrich </code></pre> <p>And also if there is</p> <pre><code>http://www.example.ch/biz/barbar-vintage-z%C3%BCrich </code></pre>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.