pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
11,635,412 | 0 | Ribbon button should be hidden based on lead status - CRM 2011 <p>I have custom button in lead ribbon. The custom button should be hidden when lead is qualified. How can I do that? Can any one please explain. I appreciate. </p> |
30,391,341 | 0 | <p>You could try writing a small wrapper around the <code>List</code> of your object type, and giving it a string based <code>[]</code> overloaded accessor. Like this:</p> <pre><code>public class ComplexType { public string PropertyName { get; set; } public string Layer { get; set; } public string DisplayName { get; s... |
3,581,176 | 0 | <p>Not without writing it somewhere. You have the following options:</p> <p>1- Write it to a file (or touch a file and check for its existence)</p> <p>2- Manually update a CONFIG file with a GLOBAL variable </p> <p>3- Use a database.</p> |
26,779,155 | 0 | Can't edit Security Roles from Non-Default Business Unit <p>When "customising the system" in Dynamics 2013, I cannot see any roles outside of the default business unit (even if I move my "System, Customiser user" to the business unit in question. I have tried a solution and the defauilt solution. How do you see all rol... |
33,854,390 | 0 | FFMPEG: How to encode for seekable video at high key frame interval <p>I'm looking for an ffmpeg comand that's best used if I'm controlling a video to mouse control on "requestAnimationFrame". Basically, it needs to be fast-seeking and encoded at a high key frame interval. I can't seem to nail down what parameters aid ... |
8,009,131 | 0 | <p>We use nsb_$endpoint_$function where $function = error or audit. $function is left off for just the endpoint. We also make this match the Display Name and Service Name when installing the host. Our admins like being able to match the process to the service and then to the queue.</p> |
13,678,635 | 0 | <p>One solution can be <code>NSNotifications</code>. Post a notification when mute button is tapped and add observer on each of the view where you want play/mute sounds.</p> <p>See this <a href="http://iphonebyradix.blogspot.com/2011/07/nsnotificationcenter-tutorial.html" rel="nofollow">NSNotificationCenter Tutorial</... |
25,718,273 | 0 | <p>change below code</p> <pre><code> $http.get('http://localhost/json/search.php', { params: searchkeyword }, </code></pre> <p>to </p> <pre><code> $http.get('http://localhost/json/search.php', { params: $scope.searchkeyword }, </code></pre> |
31,979,638 | 0 | <p>Using following methods you could identify how GC behaves on weak references. Option 1:</p> <p>-verbose:gc </p> <p>This argument record GC behaviour whenever GC kicks into picture. You could take the log file when you want to check did GC gets into action, It could be checked from the GC logs. For Interactive GC an... |
8,091,042 | 0 | Extract DataTable values using Linq "C#" <p>I have a datatable dtRecords with values like this:</p> <p><strong>RollNo</strong> <strong>Name</strong></p> <p>120 john</p> <p>121 johney</p> <p>122 sam </p> <p>I want to add those values in a list box like the below format.</p> <p>RollNo:[RollNo] , Name: [Name] </p> <p>Note... |
1,958,343 | 0 | A little php help with this string formatting <p>I have a string in this format:</p> <pre><code> /SV/temp_images/766321929_2.jpg </code></pre> <p>Is there any small piece of code to get the numbers BEFORE the underscore, BUT AFTER temp_images/? In this case I want to get <strong>766321929</strong> only... ?</p> <p>Than... |
30,748,583 | 0 | MySQL select as special and the output exclude null version <p>This is my sql statement, as you can see the the select SELECT category as special, how can I only get special is NOT NULL.</p> <pre><code>SELECT p.product_id, (SELECT price FROM oc_product_special ps WHERE ps.product_id = p.product_id AND ps.customer_group... |
21,928,273 | 0 | Object Oriented JavaScript: the patterns for private/public <p>All-</p> <p>There is a classic pattern of implementing information hiding in Javascript as described by the great Douglas Crockford here:</p> <p><a href="http://javascript.crockford.com/private.html" rel="nofollow">http://javascript.crockford.com/private.ht... |
13,138,156 | 0 | <p>If you need to avoid the final slide back to the first and just restart, I would suggest a slight change over Pushpesh's answer:</p> <pre><code>$(document).ready(function() { var currentPosition = 0; var slideWidth = 500; var slides = $('.slide'); var numberOfSlides = slides.length; var slideShowInterval; var speed... |
17,220,303 | 0 | GCC - error while compiling <p>I try to create an exe program, by compiling codes in assembler and C:</p> <p>gcc -m32 aaa aaa.s aaa.c</p> <p>And I get an error:</p> <p>gcc: aaa : No such file or directory</p> <p>In C file a only include stdio.h. I've read that the problem might be that gcc can't find this library, but ... |
19,192,220 | 0 | <p>There's no need for inheritance here. Just use <code>std::function</code> to store the member function pointers and <code>std::bind</code> to bind together the member function pointer and the object instance.</p> <pre><code>#include <functional> #include <map> #include <string> #include <iostre... |
1,721,525 | 0 | <p>No, you can't, but you can pass the <code>:allow_nil => true</code> option to return nil if the master is nil.</p> <pre><code>class User < ActiveRecord::Base delegate :company, :to => :master, :allow_nil => true # ... end user.master = nil user.company # => nil user.master = <#User ...> user.co... |
5,667,859 | 0 | <p>Use the same genre array that backs the genre tables as the data source for the modal table. In the modal table didSelectRowWIthIndexPath, get the genre string from that array. Now you have lots of choices for how to get the genre item back to your detail table view controller. You could post a notification, you co... |
11,052,078 | 0 | SQL Server factors that can contribute to high CPU usage <p>I am trying to figure out or enlist factors that contribute to persistent high CPU utilization related to SQL Server</p> <p>Here are few that I came up with</p> <p>a) Compilation or Frequent Recompilation of stored procs or queries</p> <p>b) Poor performing qu... |
8,435,774 | 0 | <p>Check out <a href="http://incubator.apache.org/lucene.net/" rel="nofollow">lucene.net</a>. While it won't directly integrate with your collection you can index things in memory using the RAMDirectory. </p> |
21,981,708 | 0 | Grails - How to check, if a link is pointed to correct location using Geb? <p>I have a link <code><a herf="redirect_url" class="class_name">link</a></code> that is pointed to some page. How can i check if, the link is pointed to correct location using Geb?</p> |
16,984,929 | 0 | double array in cell, how to indexing? <p>I have an cell including array as below format</p> <pre><code>a{x,y,z}(i,j) </code></pre> <p>a is 3 dimensional cell and each cell have i*j array</p> <pre><code>a <79x95x68 cell> val(:,:,1) = Columns 1 through 2 [6x6 double] [6x6 double] [6x6 double] [6x6 double] [6x6 dou... |
37,010,539 | 0 | Wrong button sizes while using wpf xceed toolkit wizard <p>I'm using the wizard from the wpf xceed toolkit. The problem is that the buttons are not the same sizes. All examples I can find show the buttons the same sizes. When I use it, the Cancel and Finish buttons are larger, and the Cancel button is clipped on the le... |
33,479,106 | 0 | <p>You never define <code>data_from_file</code>, you just try to read from it in the <code>contects_from_file</code> method.</p> <p>Perhaps you meant <code>numbers_from_file</code> instead of <code>data_from_file</code>?</p> |
33,538,956 | 0 | <p>The syntax as the following:</p> <pre><code>ObjectName obj=Class.forName("object name full name").newInstance(); </code></pre> <p>For example, you have class named Car, which is resided in com.toyota package. Then you can instantiate Car object using the following statement:</p> <pre><code>Car car=(Car)Class.forNam... |
8,191,465 | 0 | <p>I don't think <code>ping</code> is a useful test -- ICMP packets are often dropped on the floor these days -- it isn't the reliable diagnostic that it once was. Sure, if it responds, you've got that -- but if you get a timeout, the most likely answer is a firewall (perhaps Amazon's group policies) <code>DROP</code>... |
38,485,812 | 0 | <p>I believe this is happening because of caching in Google Play App. Usually, Google Play app cache refreshes once every 24 hours. </p> <p>@poqueque's solution works if you want to clear cache through command line. You can also goto App settings on the phone and clear data/cache of Google Play app. Make sure to log b... |
27,561,164 | 0 | <p>Here is an answer using <a href="http://jsoup.org/download" rel="nofollow">Jsoup</a> and <a href="http://mvnrepository.com/artifact/org.json/json/20140107" rel="nofollow">JSON</a> as dependencies: </p> <pre><code>final String HTML = "<table cellspacing=\"0\" style=\"height: 24px;\">\r\n<tr class=\"tr-hover... |
7,849,410 | 0 | Already initialized constant warnings <p>I'm using Nokogiri code to extract text between HTML nodes, and getting these errors when I read in a list of files. I didn't get the errors using simple embedded HTML. I'd like to eliminate or suppress the warnings but don't know how. The warnings come at the end of each block:... |
22,385,125 | 0 | <p>The problem was with my properties. When I've omited <code>set</code>, I got this error...</p> <pre><code>[DataContract] public class YoloClassRO { private int k = 42; [DataMember] public int K { get { return k; } } } [DataContract] public class YoloClassRW { private int k = 42; [DataMember] public int K { get { re... |
40,149 | 0 | <p>Something like this should be good:</p> <pre><code>MyConfigurationDialog dialog = new MyConfigurationDialog(); //Copy the dictionary so that the dialog can't mess with our settings dialog.Settings = new Dictionary(existingSettings); if(DialogResult.OK == dialog.Show()) { //grab the settings that the dialog may have... |
17,252,426 | 0 | <p>WinRT has <code>GetFileFromPathAsync()</code> method of class <code>StorageFile</code>, but you can not open any file with that method. Only option you have is to use <code>StorageItemMostRecentlyUsedList</code> class. Which is useful to get the token for all the files that was saved to either <a href="http://msdn.... |
15,832,273 | 0 | <p>Maybe set up a regular view controller. Then add a collection view, make the cell very large. In that collection view cell add a label on the side (this will become the light blue box). Then right next to it add a table view with sections. The header would be the red and dark blue area.</p> <p>This would work, but ... |
8,014,250 | 0 | <p>The problem is caused because the address you use to start tomcat (in normal or debug mode) is already taken by another process.</p> <p>You need to check the ports you are using in the you conf file (e.g. your_TOMCAT_HOME_DIR_/conf/server.xml), to see if they are not already used </p> <p>Here you can look at the po... |
3,326,797 | 0 | <p>You could add <code>line-height:30px;</code> to your <code>li</code> elements, (<em>the same as the height of the menu bar</em>)</p> <p><strong><a href="http://www.jsfiddle.net/d5jTf/" rel="nofollow noreferrer">Demo</a></strong></p> |
23,504,102 | 0 | <p>Instead of <code>Redirect</code> you can use <code>RedirectMatch</code> directive for its regex capability:</p> <pre><code>RedirectMatch 301 ^/cars/?$ https://www.mydomain.com/cars/carshome/ </code></pre> |
24,668,733 | 0 | <p>I made a silly mistake: I was using the wrong root XSD.</p> <p>As such, the solution was to define a root XSD containing the DocHeader.xsd and the DocBody.xsd as components.</p> |
15,030,909 | 0 | <p>CallumD's solution worked for me, and seemed the most consistent with the techniques recommended in the rest of Michael Hartl's tutorial. But I wanted to tighten up the syntax a little to make it more consistent with the other specs in the same tutorial:</p> <pre><code>it "should not be able to delete itself" do ex... |
10,152,052 | 0 | <p>You can send a direct update statement to the Oracle Engine in this way.</p> <pre><code>using (OracleConnection cnn = new OracleConnection(connString)) using (OracleCommand cmd = new OracleCommand("UPDATE TABLE1 SET BIRHDATE=:NewDate WHERE ID=:ID", cnn)) { cmd.Parameters.AddWithValue(":NewDate", YourDateTimeValue);... |
3,698,683 | 0 | <p>You should replace the ArrayList with an ObservableCollection<string> which will communicate to the ListBox when its contents change.</p> |
22,352,969 | 0 | <p>You just need to specify the <code><th></code> tag when you <code>bind</code> the <code>click event</code>.</p> <p><em>Updated link:</em></p> <p>Here is <strong><a href="http://jsfiddle.net/VB5um/1/" rel="nofollow">a simple example.!</a></strong></p> <p><em>Another Update</em></p> <p>and here is <strong><a hr... |
23,753,887 | 0 | While converting date string into Date object getting NaN-NaN-NaN in Jquery? <p>Jquery + rails 4 + Mac + Safari</p> <pre><code><script> function get_next_week_schedule(pre_date_index){ var date = $('#next_week_'+ pre_date_index).attr('value'); alert(date); //2014-06-02 var myDate = new Date(date); alert(myDate); ... |
29,126,463 | 0 | Angularjs $scope is confusing me <p>I really need some help here... I´m trying for hours now and can´t get it to work...</p> <p>I have a .json file with 100 products like this:</p> <pre><code>[{ "ean": "3613132010420", "brand": "NewBrand", "desc": "A description", "feature1": "", "feature2": "", "feature3": "", "featur... |
15,691,866 | 0 | <p>Basically you need to find the li.k-item and pass it to the select method. Here comes the jQuery:</p> <pre><code>var ts = $('#tabstrip').data().kendoTabStrip; var item = ts.tabGroup.find(':contains("What you look for")'); ts.select(item); </code></pre> |
6,342,781 | 0 | javax.validation.ConstraintValidationException: validation failed for classes <p>I am developing a web application using <code>Spring 3.1</code>, <code>Hibernate 3</code> and <code>Hibernate Validator</code> 4 in the backend. I'm using <code>JSR 303</code> for the validation. This is done via annotations in the domain ... |
27,918,363 | 0 | redirect() is giving header() error even though nothing is being output to the browser <p>So basically, I'm getting an error message which reads:</p> <blockquote> <p>Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\star\application\controllers\process_login.php:1)</p> </bloc... |
8,441,221 | 0 | how to override the page being viewed <p>I copied the pages_controller.php to my app/controllers folder, then i created a view and placed it under pages. I have a custom_layout.ctp under views. The problem I am having is that the view I placed under pages is displaying with the default look of cakephp but i want to use... |
15,826,343 | 0 | Change row color of gridview by database Values <p>I am making a application in asp.net which shows the values in gridview from the database.In database i am having a colmn named as StatusId which has a value of 1 or 2 or 3.</p> <p>I tried to show the grid view rows in different color by their statusId values. But it n... |
30,085,992 | 0 | <p>I found this:</p> <p><a href="https://github.com/facebook/stetho/issues/42" rel="nofollow">https://github.com/facebook/stetho/issues/42</a></p> <p>TL;DR: If you are using proguard add this to your config:</p> <p><code>-keep class com.facebook.stetho.** {*;}</code></p> |
13,755,211 | 0 | <p>What happens if you used the following instead:</p> <pre><code>$(this).attr('id') == "upright" </code></pre> |
13,869,598 | 0 | <p>The bulk of the integer operations for 32B vectors are in the AVX2 extension (not the initial AVX extension, which is almost entirely floating-point operations). Intel's most recent <a href="http://software.intel.com/sites/default/files/m/f/7/c/36945" rel="nofollow">AVX Programming Reference</a> has the complete de... |
19,556,997 | 0 | <pre><code>var tomatch = "nn"; var sets= new Array() sets[0]='nnd'; sets[1]='nndha'; sets[2]='ch'; sets[3]='gn'; for(var i=0; i < sets.length ; i++){ if(sets[i].indexof(tomatch) !== -1){ return sets[i]; } } </code></pre> |
7,197,592 | 0 | <p>This strike me as odd- Why do you use</p> <pre><code>label.text = [[NSString alloc] initWithString:@"Manufacture :"]; </code></pre> <p>as opposed to</p> <pre><code>label.text = @"Manufacture :"; </code></pre> <p>The way it is, your not releasing your strings. using the @"xxx" short hand creates a string that is aut... |
28,662,875 | 0 | C++ sending Joystick directional input to program <p>I'm trying to spoof a PS3 controller and send analog stick directional input to a specific program, but i can't figure out how the INPUT.hi struct works. I can send keypresses over with</p> <pre><code>INPUT keys; keys.type = INPUT_KEYBOARD; keys.ki.dwFlags = KEYEVENT... |
5,266,486 | 0 | Android gps : how to check if a certain point has been reached? <p>I am working on an Android app and I need to make sure that the device has reached a certain point described with lat and lon. The only thing that I can think of is to have something like that :</p> <pre><code> Location initLoc = theManager.getLastKnown... |
18,914,829 | 0 | Facebook login integration in my PHP code gives error <p>When I click on the Facebook login button I got this error.</p> <blockquote> <p>Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the dom... |
17,084,305 | 0 | <p>Dear if you are working on a local server just like XAMPP or APPSERV or whatsoever you have to install mail server on you local machine </p> <p>and if you are working on a real host server make sure the the php setting in the server allow you to use mail function cuse many server has stop this function.</p> <p>so i... |
4,587,394 | 0 | <p>1) For most delegate callback methods, if you provide a parameter-accepting callback the parameter will be the "sender", i.e. the source control. You might need this parameter if you are using the same delegate method to handle the callbacks for multiple controls. Or, if you want to affect some change on the source... |
29,247,890 | 0 | <p>When posting questions in future, it really helps to include the error message. Here it is.</p> <blockquote> <p>ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from attraction join ticketBooking using(attracti... |
27,291,145 | 1 | A mistake in installing gensim <p>I can't install gensim successfully through many ways.For I'm a freshman in coding,it's difficult for me to understand the following information.</p> <hr> <pre><code>**C:\Python27\Lib\site-packages\gensim-0.10.3>python setup.py install Traceback (most recent call last): File "setup.... |
15,876,596 | 0 | <p>Try this.</p> <p>((?<=\=)\s*N?[a-zA-Z0-9.!?#$=@&%'^+|_~-/()*{}`]+)'</p> |
6,334,498 | 0 | Recognize "Invalid" URLs without Trying to Resolve Them <p>I'm building a Facebook App which grabs the URLs from various sources in a user's Facebook acount--e.g., a user's likes.</p> <p>A problem I've encountered is that many Facebook entries have string which are not URLs in their "website" and "link" fields. Faceboo... |
27,895,780 | 0 | Duplicating several UI components in App Inventor 2 <p>Is there any way to duplicate several UI components in <a href="http://ai2.appinventor.mit.edu/" rel="nofollow noreferrer">App Inventor 2</a>?</p> <p>E.g. in the following screenshot I would like to duplicate the RedHorizontalArrangement layout as well as the label... |
3,803,790 | 0 | <p>You cannot update a dll while it is in use, however you can.</p> <ul> <li>Make a copy of the dll with a new file name</li> <li>Load the copy of the dll into an app domain</li> <li>Talk to that app domain with .net remoting</li> <li>When the original dll changes repeat the above</li> </ul> <p>This is what Asp.net do... |
3,753,690 | 0 | <p><strong>EDIT</strong></p> <p>You can continue using the same models and hence keep the references throughout the app. Just that, because of your new database schema you'll have to set the table name for the particular model.Also you can use the alias_attribute method, to so you can continue referring to the old att... |
36,267,786 | 0 | <p>This is because this function only press the key and not release it. You must call robot.keyRelease(); once after calling keypress() or call it for all the keys when closing the application.</p> |
24,200,387 | 0 | <p>You are using latest one so it get like this. Don't worry about it.</p> <pre><code> public class MainActivity extends ActionBarActivity </code></pre> <p>instead of </p> <pre><code>public class MainActivity extends Activity </code></pre> <p>Remove all code in your MainActivity except <code>OnCreate()</code>. Then yo... |
26,345,236 | 0 | <p>In order to fix the 'shifting' of the entire page, add this between the second and third sub-story element (Basically, where a new row starts). That issue is caused by float positioning of elements of different heights.</p> <pre><code><div style="clear:both;"></div> </code></pre> |
22,556,051 | 0 | WebStart Application is not working in Java 7 u45 <p>My Eclipse RCP application ( launched with WebStart (.jnlp)) crashes on startup while launching with Java 7 u45 (working fine in java6).</p> <p>I've added to the manifest:<br> Permissions: all-permissions<br> Codebase: *<br> Trusted-Library: true </p> <p>This removed... |
35,761,888 | 0 | Why does c++ stick to this kind of symbol system? <p>The system I mean is the one where anything you want to reference has to be prototyped or defined either above your current line or in a referenced header, not sure if this has a name. </p> <p>I'm cool with headers but sometimes the necessity of forward prototypes fo... |
21,924,596 | 0 | <p>Based on your question, I don't think inheritance is the best tool for the job. I say its not the best choice because you are not dealing with an "is a" relationship. I think you should consider using Events and Delegates to handle the communication between forms and subforms. The following MSDN article provides a ... |
32,085,596 | 0 | <p>The if statement is not reachable because you always showed <code>button1content</code></p> <pre><code> $('#button1content').toggle('show'); </code></pre> <p>So <code>var wasVisible = $("#button1content").is(":visible");</code> will always result to true</p> |
1,190,042 | 0 | <p>I've had a lot of luck with <a href="http://www.elevatesoft.com/prodinfo?action=view&product=dbisam&no=1" rel="nofollow noreferrer">DBISAM</a>. It's been superseded by <a href="http://www.elevatesoft.com/prodinfo?action=view&product=edb&no=1" rel="nofollow noreferrer">ElevateDB</a>, which I would us... |
2,719,700 | 0 | CIL and JVM Little endian to big endian in c# and java <p>I am using on the client C# where I am converting double values to byte array.</p> <p>I am using java on the server and I am using writeDouble and readDouble to convert double values to byte arrays.</p> <p>The problem is the double values from java at the end ar... |
14,620,735 | 0 | update row in mysql table in jsp <p>i´m trying to update rows in <code>mysql table</code>, i´m using <code>html form</code> for data insertion. In html form attribute <code>value</code> i´m using an existing data from database.</p> <p>Edit.jsp</p> <pre><code><form action="Update.jsp"> <% Class.forName("com.mys... |
21,497,181 | 0 | gradle, Could not expand ZIP appcompat-v7:19.0.1 <p>I've a problem with android studio adn gradle to import appcompat-v7.</p> <p>So here is my build.gradle in the src directory</p> <pre><code>apply plugin: 'android' apply plugin: 'android-apt' def AAVersion = '3.0.1' android { compileSdkVersion 19 buildToolsVersion "19... |
31,906,682 | 0 | Javascript: What is the benefit of two sets of parentheses after function call <p>I understand that in Javascript a function can return another function and it can be called immediately. But I don't understand the reason to do this. Can someone please explain the reason and benefit why you might want to do this in your... |
36,926,078 | 0 | <p>A variation of your overall approach but with the same end result.</p> <pre><code>PATTERN = '^v (%S+) (%S+) (%S+)$' fo = io.open('object.lua','w') i = 1 for line in io.lines('file.txt') do if line:match(PATTERN) then line = line:gsub(PATTERN,'Node'..i..'= {x=%1, y=%2, z=%3}') print(line) fo:write(line,'\n') i = i +... |
39,927,136 | 0 | Javascript swapping values <p>I need to be able to go through a randomized 3 x 3 matrix and check to see if the numbers are in order (i.e. that the top row is 1-3, center 4-6 and bottom 7-9). So far i wrote this function in JS:</p> <pre><code>function winningorder(topleft, topcenter, topright, centerleft, centercenter,... |
29,712,671 | 0 | <p>Can I have a second please...</p> <blockquote> <p>WTTTTFFFFFFF</p> </blockquote> <p>ok now that I got that out, the problem was that I declared the <code>physicsBody</code> AFTER setting the <code>categoryBitMask</code>. so switching this:</p> <pre><code>override func didMoveToView(view: SKView) { physicsWorld.cont... |
27,612,892 | 0 | <p>You could transform the data you received into an <code>Ember.Object</code> and add it to a controller property.</p> <p>Sample controller code:</p> <pre><code>Ember.Controller.extend({ objects: [], jsonRequest: function() { Ember.$.ajax({/* your request */}).then(function(data) { var object = /* code to turn the da... |
1,410,828 | 0 | <p>After much research last night, I found this as the answer for the server side. Then write a php script for the client side. Then have ajax call the client which calls the server. Only problem is some of the extensions have to be manually installed.</p> <p><a href="http://php-mag.net/itr/online_artikel/psecom,id,48... |
18,612,094 | 0 | <p>instead of using a long cast you should cast to size_t.</p> <p>int val= (int)((size_t)arg);</p> |
37,388,012 | 0 | <p>Give <code>display: inline-block;</code> and change to <code>background-size: 100%;</code> will work for you.</p> <pre><code>.tjbtn, .tjbtn--orange, .tjbtn--green { font-size: 1em; color: #fff; text-decoration: none; font-weight: bold; background-repeat: no-repeat; background-size: 100%; background-position: center... |
35,848,633 | 0 | <p>To get the data in ASCII add CCSID 1208 (819 is not possible) in the XmlSerialize function and make sure that the ifs-file doesn't exist. Otherwise it would keep the file CCSID</p> <pre><code> XMLSERIALIZE( XMLDOCUMENT( XMLELEMENT(NAME "document", XMLELEMENT(NAME "elements", XMLAGG(elements.element) ) ) ) AS CLOB C... |
38,550,133 | 1 | vectorizing sliding window 2d correlation <p>I have two matrices, call them matrix A and matrix B.</p> <ul> <li>A is n_1*n_2</li> <li>B is m_1*m_2</li> </ul> <p>for the sake of simplicity I will assume <code>n_1<m_1</code>, <code>n_2<m_2</code>.</p> <p>I would like to calculate the sliding window correlation betw... |
30,044,755 | 0 | composer create-project - command donot work <p>I have my project on github containing composer.json in the root directory. This is how my composer.json code looks like:</p> <pre><code>{ "name": "vendor/projectname", "description": "My first Composer project", "authors": [ { "name": "John Deo", "email": "johndeo@demo.c... |
398,193 | 0 | <p>This is what transactions are for. Your booking code should BEGIN a transaction, confirm that the time is available using SELECT, and if it is available, INSERT or UPDATE the database to make the reservation, finally COMMITing the transaction. </p> <p>If the time is not available, either don't INSERT or UPDATE the ... |
11,368,162 | 0 | 8Bit Grayscale Bitmap to Array <p>I am wondering, from here how would I go about storing the pixel values into a matrix? I would like to print out the intensity (grayscale) value.</p> <p>Example Array[5] = 4 Or Array[3][1] = 17</p> <p>I really have no idea how to go about this. All the examples I see seem way to compli... |
21,418,662 | 0 | <p>It might be trying to attach the event before the element is ready. Be sure to attached the handler after the DOM is fully loaded.</p> <pre><code>$(function() { $('#hello-world').submit(function(ev) { ev.preventDefault(); // to stop the form from submitting alert("form submitted"); }); }); </code></pre> <p><a href=... |
34,264,327 | 0 | <p>I put the params driver-memory 40G in the spark-submit,and Then solve it.</p> |
30,131,708 | 0 | Not able to generate a unique user-number <p>I have a problem when I'm trying to generate a unique customer-id in my application. I want the numbers to start from 1 and go up. I have a register-class using tree-map that generates the next customer-number using this code:</p> <pre><code>public String generateNumber() { ... |
34,487,352 | 0 | <p>You could search for any characters <strong>not</strong> in the list (a "negated <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/RegExp#character-sets" rel="nofollow">character set</a>"):</p> <pre><code>var badUsername = /[^a-zA-Z0-9_]/; console.log(!badUsername.test("HELO $")... |
26,521,132 | 0 | <p>I disagree with the solution suggesting 2 left joins. I think a table-valued function is more appropriate so you don't have all the coalescing and additional joins for each condition you would have.</p> <pre><code>CREATE FUNCTION f_GetData ( @Logic VARCHAR(50) ) RETURNS @Results TABLE ( Content VARCHAR(100) ) AS BE... |
39,565,298 | 1 | pandas dataframe look ahead optimization <p>What's the best way to do this with pandas dataframe? I want to loop through a dataframe, and find the nearest next index that has at least +/-2 value difference. For example: [100, 99, 102, 98, 103, 103] will create a new column with this [2, 2, 3, 0, N/A], 0 means not find.... |
31,001,033 | 0 | <p>I have faced certain issue when UI doesn't responds well one of issue was realetd with Jtable data and updating it in non swing thread. So you can try putting your code in a Swing thread,precisely in a Worker thread</p> <pre><code>SwingWorker<Void, Void> worker = new SwingWorker<Void, Void>() { @Overrid... |
26,748,141 | 0 | can't find mpif.h compiling error? <p>i have download a big ecosystem model (Ecosystem Demography) which must e compiled in linux and it uses MPI and hdf5. i have installed the mpich (on centOS 7) to compile the ED model with Gfortran compiler. but it gives me the famous error </p> <pre><code>Can't find file: mpif.h </... |
40,629,423 | 0 | <p>It is not too pretty but you could use your first list and then select from the second list with <code>FirstOrDefault</code>.</p> <p>The last <code>Where</code> is to be sure you do not include nulls if the first <code>SelectedUser</code> is not found in the <code>objValidateUserList</code> list.</p> <pre><code>var... |
26,202,667 | 0 | In AngularJS, how does $scope get passed to scope? <p>I'm a bit confused with the use of <strong>$scope</strong> in controllers and of <strong>scope</strong> in directives. Please verify if my understanding is correct (and also provide some alternative ways how to do this).</p> <p>Let's say I have an html:</p> <pre><co... |
39,661,459 | 0 | <p>I had the same problem, that it ended there and even refreshing the simulator didn't make the packager to go on. Than I figured it out: I was still connected to the Internet via a VPN, so the simulator couldn't connect to the packager. Simply closing the VPN solved the issue.</p> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.