pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
6,481,649 | 0 | <ul> <li><a href="http://coderay.rubychan.de/download/gem" rel="nofollow">http://coderay.rubychan.de/download/gem</a></li> <li><a href="http://softwaremaniacs.org/soft/highlight/en/" rel="nofollow">http://softwaremaniacs.org/soft/highlight/en/</a></li> <li><a href="http://code.google.com/p/syntaxhighlighter/" rel="nof... |
40,804,959 | 0 | <p>Use the Microsoft Resolution of problems.</p> <p>Clean your Solution and Rebuild again.</p> |
28,959,016 | 0 | Why does this assignment and each loop return just 1 attribute and not the entire object I expect? <p>I have a method on my <code>Node</code> model that looks like this:</p> <pre><code> def users_tagged @node = self @tags = @node.user_tag_list @users = @tags.each do |tag| User.find_by email: tag end end </code></pre> <... |
30,654,600 | 0 | <p>I looked up in several places and concluded that one option for fixing this issue was to call this action only from a hyperlink and include target="_self". I can still add a ng-click attribute on the hyperlink and call code in my angular controller. This is not quite what I wanted to do because I wanted to make the... |
34,366,110 | 0 | AltBeacon - reliability issues: "didExitRegion" is frequently called even if a beacon is right besides the android device <p><strong>Brief process of how AltBeacon works in the app:</strong></p> <ul> <li>Detect iBeacon of specified ids (UUID, major/minor id)</li> <li>Run a thread when "didEnterRegion" called (and keep ... |
1,664,035 | 0 | <p>Your Processing code gets "sloppily" parsed and converted into JavaScript. Anything the parser doesn't understand just gets ignored, which means you can freely mix bits of JavaScript code in with your Processing and it will, in general, "just work".</p> <p>Have a look here for more information: <a href="http://proc... |
11,325,699 | 0 | Castle Windsor - How to map Named instance in constructor injection <p>maybe this is easy, but searching it on the internet already give me a head ache</p> <p>here is the problem:</p> <pre><code>interface IValidator { void Validate(object obj); } public class ValidatorA : IValidator { public void Validate(object obj) {... |
33,384,335 | 0 | <p>If you need TransformGroup in your RenderTransorm, then StoryboardTargetProperty will be look like </p> <pre><code>RenderTransform.Children[0].Angle </code></pre> <p>If you leave only RotateTransform there, then it will be</p> <pre><code>RenderTransform.Angle </code></pre> <p>In both cases, as you see, we start sea... |
31,677,972 | 0 | How to use Group By with AND in java codes <p>Trying to get values from my table but having problem with my snytaxes</p> <p>there is wrong type with "Group By" usage with "AND" any help will be apriciated</p> <pre><code>"SELECT " + C_CINSIYET + " FROM " + TABLE_COMPANYS + " WHERE " + C_MARKA + " = '" + companyMarka.get... |
6,824,151 | 0 | <p>Go to check LibreOffice project (that already handles these archives), it has parts written in Java, and for sure you could find and use their mecanisms to check for corrupted files.</p> <p>I think you can get the code from here: </p> <p><a href="http://www.libreoffice.org/get-involved/developers/" rel="nofollow">h... |
19,756,848 | 0 | <p>One option that I recommend is to use <a href="http://code.google.com/p/common-schema/" rel="nofollow">common_schema</a> and specifically functions <a href="http://common-schema.googlecode.com/svn/trunk/common_schema/doc/html/get_num_tokens.html" rel="nofollow"><code>get_num_tokens()</code></a> and <a href="http://... |
819,008 | 0 | <p>Looks like there is no solution to this problem. The bug is aknowleged by microsoft, but its still not fixed in SSRS2008.</p> <p>From the KB article (<a href="http://support.microsoft.com/kb/938943" rel="nofollow noreferrer">http://support.microsoft.com/kb/938943</a>)</p> <blockquote> <p>This behavior occurs becaus... |
12,438,329 | 0 | <p>If you're load-balancing, you're going to want the additional license to be the for the same platform as your existing license, because the point of load-balancers is to divide the work between multiple identical systems.</p> <p>If you don't already have dependence on other Magento Enterprise Edition features, I wo... |
30,922,393 | 0 | <p>Since you're already using jQuery why not go the simple jQuery way of getting the value? </p> <pre><code>$('#serverCount').val(); </code></pre> <p>So typically when I make an ajax call where I'm expecting JSON data back and I'm sending JSON to the server. I would do something like this;</p> <pre><code>$(function() ... |
16,392,971 | 0 | <p>If it takes this long because there are many files in that directory, you could copy the files one by one in a loop. To determine the progress, you could/should simply assume that copying each files takes the same amount of time.</p> <p>Note that you don't want to block the UI for this 7-10 seconds, so you need to ... |
27,808,752 | 0 | <p>Working example here: <a href="http://jsfiddle.net/0vts5291/" rel="nofollow">http://jsfiddle.net/0vts5291/</a></p> <p>HTML</p> <pre><code><section id=main> <!--populate with images from array--> <p id="photos" class="product_display"> </section> </code></pre> <p>JS</p> <pre><code>var imageAr... |
38,369,240 | 0 | jQuery set current Date to input type="datetime-local" <p>I have the following html</p> <pre><code><input type="datetime-local" id="startDate"> </code></pre> <p>with the default format: <code>dd.mm.yyyy mm:hh</code></p> <p>I would like to set it`s default value to the current local time of my client with jQuery.<... |
16,063,214 | 0 | crystal reports - datetime group header does not show time, only date. need to display date AND time <p>I have a crystal report that has a group that references a DATETIME column generated by a SQL Server stored procedure.</p> <p>When I right-click and Format the Group, the Format Editor displays a sample of the field'... |
10,842,479 | 0 | Current Location refers to programmatically identifying the GPS location of a device, such as an iPhone app requesting information about its current location to display in a map or find nearby places, for example. |
29,413,335 | 0 | <p>1) create a javascript <code>restaurant</code> class</p> <p>2) give the restaurant class a <code>distanceFrom(lat, long)</code> function</p> <p>3) adapt your factory to return <code>restaurant</code>s rather than <code>object</code>s</p> <p>4) sort list of <code>restaurant</code>s by the <code>distanceFrom</code> f... |
18,397,793 | 0 | Read model per bounded context <p>i have a question related to read models in cqrs.</p> <p>Assume we have two bounded contexts: <strong>A</strong> and <strong>B</strong></p> <p>In context <strong>A</strong> we build a readmodel based on the events from context <strong>A</strong>. We have some kind of dao to access the ... |
23,313,921 | 0 | <p>The <code>activate</code> hook is executed when the router enters the route. The template must already be in scope in order to render an item into it. That being said, you can just render the application template first, then render the navbar/sidebar using the <code>renderTemplate</code> hook.</p> <pre><code>App.Ap... |
1,345,050 | 0 | <pre><code>re.sub(r'^-+|-+$', lambda m: ' '*len(m.group()), '---ab---c-def--') </code></pre> <p>Explanation: the pattern matches 1 or more leading or trailing dashes; the substitution is best performed by a callable, which receives each match object -- so m.group() is the matched substring -- and returns the string th... |
16,184,726 | 0 | <p>The following code:</p> <pre><code>while(i < num_states) { <---------------------- HERE printf("state %d: %s\n", i, states[i]); i--; } </code></pre> <p>You are actually counting down and checking <strong>incorrect</strong> value.</p> <p>Must be:</p> <pre><code> while(i >= 0) </code></pre> <p>Here:</p> <pre... |
38,709,469 | 1 | No output file when running Python subprocess <p>I'm trying to run a SystemC (C++) executable in a Python script using subprocess.</p> <p>My issue is the following: my SystemC executable should generate an output file, but this is not happening. I'm sure of this because in the same Python script I call the subprocess I... |
19,111,947 | 0 | <p>There are double quotes in</p> <pre><code>$mail->Host = "smtp.gmail.com"; // SMTP server </code></pre> <p>Please remove the double quotes.</p> <pre><code>$mail->Host = 'smtp.gmail.com'; // SMTP server </code></pre> |
9,093,419 | 0 | Accessing a variable from a file through a file that is required in said first file <p>I have an osCommerce-shop where I need to access a variable from inside an included php-file. For the sake of simplicity here is a short example of what I am talking about without anything related to osCommerce:</p> <p>The file insid... |
40,928,579 | 0 | Count all same comma separated value in one column mysql <p>I have 2 table and there's a column which contains comma separated value and I want to count all same value of that column, here's the sample table:</p> <pre><code>Client table ID | Name | Procedure 1 | Joe | Samp1,Samp2 2 | Doe | Samp1,Samp2,Samp3 3 | Noe | S... |
28,322,202 | 0 | <p>Just use the following intent :</p> <pre><code>Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse("google.navigation:///?q=48.649469,-2.02579&mode=w")); startActivity(intent); </code></pre> <ul> <li>q=48.649469,-2.02579 : Saint-Malo latitude and longitude</li> <li>mode=w : walking</li> </u... |
39,980,114 | 0 | <p>PyCharm recognizes the limited scope of the variable (inside the function) and refactoring behaves slightly different in this case - the usual refactoring dialogue no longer opens up.</p> <p>The green background (in your example, the actual colour may differ depending on the color scheme and customisations) for all... |
15,617,144 | 0 | <p>You either want to use <code>union all</code> or <code>cross join</code>. Use <code>union all</code> to get the results in two rows. Use <code>cross join</code> to get the results in two columns on the same row.</p> <p>Here is an example for the <code>cross join</code>:</p> <pre><code>select sumcep, sumcepout from ... |
11,581,124 | 0 | Is there any downside to specifying a very long font stack? <p>This is what I have:</p> <pre><code>body { font-family: Frutiger, "Frutiger Linotype", "Frutiger LT Std", Univers, Calibri, "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", "Helvetica Neue", Helvetica, Arial, sans-serif; } ... |
2,740,769 | 0 | <p>The mongodb-csharp driver is about to make a huge push regarding support for typedcollections which will include full Linq support. I think you'll find that it is easy to work.</p> <p>The other 2 projects are also steaming ahead. If you want .NET 4.0 support, simple-mongodb would be your best bet.</p> <p>NoRM has a... |
21,574,048 | 0 | <p>Using ObjectAnimator, This is a sample for scrolling to top :</p> <pre><code>public void scroolToTop() { int x = 0; int y = 0; ObjectAnimator xTranslate = ObjectAnimator.ofInt(mScrollView, "scrollX", x); ObjectAnimator yTranslate = ObjectAnimator.ofInt(mScrollView, "scrollY", y); AnimatorSet animators = new Animato... |
27,794,643 | 0 | <p>That's not possible with <a href="http://www.primefaces.org/showcase/ui/input/manyCheckbox.xhtml" rel="nofollow"><code><p:selectManyCheckbox></code></a>. Your best bet is to just use a bunch of <a href="http://www.primefaces.org/showcase/ui/input/booleanCheckbox.xhtml" rel="nofollow"><code><p:selectBoolean... |
20,820,647 | 0 | <blockquote> <p>if you executing this query from your SSMS it means this other server is a linked server. then it should be no different to execute it from SSRS. </p> <p>Yes it is right you can only add one server to your data source of your dataset whether its a shared data source or embedded. </p> <p>But for instanc... |
37,712,540 | 0 | Strange behavior of styles (Themes) in Android <p>I got this styles for my Android app:</p> <pre><code><resources> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPr... |
34,193,879 | 0 | How can I use a condition in PDO object while a query <p>I am trying to Select Data With PDO (+ Prepared Statements) The following example uses prepared statements.</p> <p><a href="http://www.w3schools.com/php/showphpfile.asp?filename=demo_db_select_pdo" rel="nofollow">http://www.w3schools.com/php/showphpfile.asp?filen... |
39,638,142 | 0 | <p>I think this is the expected behavior for the product. </p> <p>However still you can customize the store Jaggery app (which located in {EMM_HOME}/repository/deployment/server/jaggeryapps/store) and edit the page to match your requirement.</p> <p>Thanks.</p> |
38,215,852 | 0 | <p>Use <code>LANDINGPAGE</code> field in the <code>setExpressCheckout</code> call to specify the default user interface, either <code>Login</code> for account login payments, or <code>Billing</code> for credit card form page.</p> <p><em>Be noted that this field will not always work since the checkout layout has been r... |
40,646,586 | 0 | <p>I think you cannot achieve this. Based on Django documentation it looks like use of binary fields is <a href="https://docs.djangoproject.com/en/dev/ref/models/fields/#binaryfield" rel="nofollow noreferrer">discouraged</a></p> <blockquote> <p>A field to store raw binary data. It only supports bytes assignment. Be aw... |
11,708,182 | 0 | <p>To output the results in a human readable form, as opposed to print_r, you could simply cycle through the results in a foreach loop;</p> <pre><code>foreach($balance_info as $key=>$value) { echo "$key: $value<br />"; } </code></pre> <p>Or for more specific naming, if you know what the columns are, using a <... |
507,030 | 0 | <p>Using them without reading the "Effective STL" book by Scott Meyers. :) Really. This makes most of the stupid bugs go away.</p> |
22,206,267 | 0 | How do I store an auth key in iOS/Objective-C? <p>I'm working on an app that uses an auth key to validate the login session for many methods (like getFriends, for example). I'll be calling these methods in different view controllers to the one which manages logging in, so I need a way to store the auth_key which is ret... |
10,783,505 | 0 | android videoview fullscreen when click button <p>i want to show fullscreen the video when click a button. And then return old size teh video when run fullscreen!</p> <p>how can i do that?</p> <pre><code><LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLe... |
8,751,872 | 0 | Hibernate/JPA: map<Object, Enum> manytomany is it possible? <p>More specifically <code>(map<Course, Role>)((User) u).courses</code></p> <p>I have many <code>Course</code>s and many <code>User</code>s who have <code>Role</code>s in courses. A user might be staff in one course, and a student in another. </p> <p>I h... |
11,382,792 | 0 | Are std::map and std::set thread-safe? <p>I have a question: Are std::map and std::set thread-safe? I use this collections on my multithread applications and sometimes map and set works worng. </p> <p>Thanks!</p> <p><strong>upd. My code:</strong></p> <pre><code>std::map<int, unsigned long> ClientTable; int sendul... |
2,192,810 | 0 | <p>Eclipse has a VIM plugin. Eclipse runs on OS X</p> <p><a href="http://www.vimplugin.org/" rel="nofollow noreferrer">http://www.vimplugin.org/</a></p> <p>Also, I think the Komodo IDEs and editors have VIM bindings, but I have little experience with them. Apparently, they also run on OS X.</p> <p><a href="http://docs... |
433,153 | 0 | <p>If you're willing to go all Unix-centric, Cygwin comes with a version of <em>cron</em> that can be run as a service on Windows. Then, you could use a common <code>crontab</code> file across your platforms. See <a href="http://www.noah.org/ssh/cygwin-crond.html" rel="nofollow noreferrer">http://www.noah.org/ssh/cygw... |
22,222,148 | 0 | <p>I created the following one line solution avoiding multiple grep commands. </p> <pre><code>mysql -e "show databases;" | grep -Ev "Database|DatabaseToExclude1|DatabaseToExclude2" | xargs mysqldump --databases >mysql_dump_filename.sql </code></pre> <p>The -E in grep enables extended regex support which allowed to ... |
32,471,401 | 0 | <p>This exception occurs when length of values you are inserting are larger than actual length of column you have specified for database table.</p> <p><strong>String or binary data would be truncated. The statement has been terminated.</strong></p> <p>Please check all column lengths and values you are inserting.</p> |
33,700,249 | 0 | Firebase Normalized Collection and Scroll not working <p>first the code</p> <pre><code>var baseRef = new $databaseFactory(); var childRegistration = baseRef.child("registrations/"); var childStudents = baseRef.child("students/"); $scope.scrollRef = new Firebase.util.Scroll(childRegistration,'registerDate'); var normReg... |
39,745,686 | 0 | Sort div array based on alphabets during appending Jquery <p>I am stuck in a place where I have to sort the list of names when moved those list on button click.</p> <pre><code>sort() </code></pre> <p>method works fine but clicking on the same button again creating duplicates!, which is not I need.</p> <p>Is there any w... |
21,565,139 | 0 | <p>What you have would work (if I understand you correctly) except that the class-selector begins with a dot (<code>.</code>) instead of a hash (<code>#</code> -- which selects by id, not class-name), so try:</p> <pre><code>jQuery("div:contains('myfield')").parent().find('.css_class').val('thisistheclass'); </code></p... |
3,140,586 | 0 | <p>Why not create a symlink for your subdomain then reach images via sub.domain.com url?</p> |
22,661,763 | 0 | <p>You need to apply the <code>class=value</code> for the second <code><select></code> values . Check <a href="http://plnkr.co/edit/KmXvkhNU8dcEueiw8ksZ?p=preview" rel="nofollow"><strong>Working DEMO</strong></a></p> <pre><code><select class="form-control" id="color"> <option value="">choose options&... |
11,443,305 | 0 | <p>If I understood correctly the purpose is to create an array with 10 "Apples" and another one with 5 "Balls"</p> <pre><code>$array = array ( array ("Apple", 10), array("Ball", 5) ); $newarray = array(); foreach($array as $key => $val){ $tmparray = null; for($i = 1; $i <= $val[1]; $i++){ $tmparray[$i] = $val[0]... |
4,885,569 | 0 | silverlight support in vs2010 <p>hi i need some clarification about silverlight. I want develop one silverlightapplication for win ce6.0. so that my question is visualstudio2010 .net framework will no support for wince. is silverlight will support in visual studio2005 and tel me the detailed description or links about ... |
12,088,681 | 0 | The equivalent of cross apply and select top <p>I have table (script below):</p> <pre><code>use master go -- -- if db_id ( 'CrossApplyDemo' ) is not null drop database CrossApplyDemo go create database CrossApplyDemo go use CrossApplyDemo go -- if object_id ( 'dbo.Countries', 'U' ) is not null drop table dbo.Countries ... |
40,116,636 | 0 | Android - WebView not saving input forms <p>I'm using a simple webView client in my android application, but, when the user log in, close the app and open app again the input forms not save the user information like webbrowser. How i solve it? I need when the user enter the 'username' the app save this like a webbrowse... |
15,705,588 | 0 | <p>The log message "User 'admin' not found" seems pretty clear as a reason for authentication failure, when using the default schema. Why not just execute the command manually and see if it returns the user data?</p> <p>Also, whether the login screen is shown doesn't depend on whether you set "'authorities-by-username... |
15,709,365 | 0 | <p>In Python, string literals and numbers are separate types of object, and do not compare equal.</p> <pre><code>1 == "1" </code></pre> <p>returns False.</p> <p>You're iterating through your list of strings of numerals, but it's not a list of actual numbers.</p> <p>You can use the range() function (it's a python built... |
21,831,268 | 0 | <p>This can be done with <code>ismember</code>:</p> <pre><code>[lia,lib]=ismember(A,A(1,:)) h=hist(lib(lib>0),1:size(A,2)) </code></pre> |
26,514,501 | 0 | using max-n-of to control the number of arcs that link nodes? <p>Hi please could somebody write a snippet of sample code to show how I would use max-n-of nodes to control the number of incident nodes that a node has in a network? Any help would be greatly appreciated as I am new.</p> |
11,808,562 | 0 | <p>In my UIViewController subclass I have this method:</p> <pre><code>-(void)setEditing:(BOOL)editing animated:(BOOL)animated { [super setEditing:editing animated: animated]; // hide back button in edit mode [self.navigationItem setHidesBackButton:editing animated:YES]; } </code></pre> |
26,017,129 | 0 | <p>I know the question is old, but since I found it, others may find it as well. And then, the solution is five years older than this question.</p> <p>The solution is in fact simple and will be found quickly when trying to post this problem at the microsoft forums:</p> <p><a href="http://social.msdn.microsoft.com/Foru... |
22,802,293 | 0 | <p>hi i have done many thing in xmpp from (<a href="http://xmpp.org/xmpp-protocols/xmpp-extensions/" rel="nofollow">http://xmpp.org/xmpp-protocols/xmpp-extensions/</a>) tutorial you can get example from bellow github links you can get many help from that </p> <p>(demo links: ) <a href="https://github.com/sesharim/ios-... |
12,045,285 | 0 | <p>OP, perhaps you could think of it that CSS processes the first argument (#header, and #login) first, and only after that, then it processes the second argument (a in "#header a").</p> <p>So on the first process, it's made red, and then blue, but on the second process, it's overwritten to red, due to the "a" in the ... |
1,796,617 | 0 | <p>My compiler has wistringstream -- this is all it is:</p> <p><code>typedef basic_istringstream<wchar_t> wistringstream;</code></p> |
40,899,763 | 0 | <p>It seems not.</p> <p>There's an open issue for this on GitHub: <a href="https://github.com/dotnet/roslyn/issues/6877" rel="nofollow noreferrer">https://github.com/dotnet/roslyn/issues/6877</a></p> |
32,991,909 | 0 | <p>Keep your code in a named <code>function</code> say - <code>changeSize</code> and call it in <code>document.ready</code> and <code>window.resize</code> as below:</p> <p><strong><a href="http://jsfiddle.net/Guruprasad_Rao/8TrTU/1628/" rel="nofollow">DEMO</a></strong></p> <pre><code>function changeSize(){ var fontSiz... |
22,753,351 | 0 | Comparisons with "Comparable" type variables in java? <p>I'm working on a University assignment, and I have to store elements in an array of the "Comparable" type. Eg: </p> <pre><code>protected Comparable storage[]; </code></pre> <p>The elements that will be stored in this array are going to be either all integers, or ... |
34,468,199 | 0 | <p>Try clearing the npm cache and try the npm install again. You can use the following to clear the npm cache.</p> <pre><code>npm cache clean <path to express-generator> </code></pre> <p>Sometimes you get this error even when you are on ssh, the npm registry might be configured to use a different registry for np... |
29,882,710 | 0 | Saving list adapter data on Activity onStop() <p>I have this Activity with a List Fragment which loads data from server if adapter is empty. When i press the back button or go to another activity and back to this activity with Up button, the adapter is reset to empty.</p> <p>So how can i save the adapter data, so the a... |
21,457,790 | 0 | <p>You could use the encodeUri filter: <a href="https://github.com/rubenv/angular-encode-uri">https://github.com/rubenv/angular-encode-uri</a></p> <ol> <li><p>Add angular-encode-uri to your project:</p> <p><code>bower install --save angular-encode-uri</code></p></li> <li><p>Add it to your HTML file:</p> <p><code><s... |
1,540,095 | 0 | <p>I found <a href="http://stackoverflow.com/questions/273447/how-to-ignore-route-in-asp-net-forms-url-routing">How to ignore route in asp.net forms url routing</a> which might work for this, it uses the <a href="http://msdn.microsoft.com/en-us/library/system.web.routing.stoproutinghandler.aspx" rel="nofollow noreferr... |
35,008,864 | 0 | spray.json (scala): how to (de)serializing nested Option[JsNumber] <p>I am trying to (de)serialize the following code:</p> <pre><code>class EntityId(value: Long) extends MappedTo[Long] { override def toString = value.toString } object EntityId extends DefaultJsonProtocol { implicit object EntityIdJsonFormat extends Roo... |
12,638,439 | 0 | Sharing entity types across multiple edmx files <p>We are using Entity Framework 4 with the POCO Entity Generator. Until now we've just had one .edmx file but we're running into performance problems due to the current size of it (well over 100 entities). </p> <p>I understand we should be looking to break this into a se... |
4,074,533 | 0 | <p>I believe Instruments are not useful for any tracing in this case since the application crashes and then is auto-restarted (it's iPad/iPhone app), so all Intruments history is gone.<br> <br> I do not see much point instantiating NSMutableURLRequest as autoreleased object since it needs to be retained for the durati... |
10,821,762 | 0 | Using GDB for debugging netlink communication <p>I have a multi-threaded application that communicates with a kernel module using netlink sockets. One of the threads in user mode application works as a server and kernel module works as a client. Roughly the kernel code is as follows: </p> <pre><code>timeout = 3500; net... |
9,364,142 | 0 | <p>From the information you provide and from Matlab's documentation <code>strsplit</code> is not an intrinsic Matlab function. So the question for you is <em>Where have you installed the source of the strsplit function ?</em> When you've answered that for yourself use the <code>File | Set Path</code> menu.</p> |
1,623,554 | 0 | <p>In the help, if you search for "Template Libraries" it gives instructions on how to do it.</p> |
5,873,919 | 0 | <p>Think about the wasy jQuery handles selectors:</p> <pre><code># denotes an id: '#id' . denotes a class: '.class' : denotes a pseudo class: ':pseudo_class' </code></pre> <p>So when your doing your selection it is expanding to:</p> <pre><code>$("#j_idt23:txtNumber") </code></pre> <p>Meaning find an element with id = ... |
22,733,618 | 0 | Display Unity app in Cocoa View - OSX <p>I have a simple question: is it possible to display a Unity app inside a Cocoa View. I'm not talking about iOS. But MacOS.</p> <p>The problem is: Unity will create a single file for OSX, while under iOS you get the full project that you can modify and make it work.</p> <p>I hope... |
23,430,629 | 0 | spring open jpa db2 error <p>My spring jpa poc is failing to get repository injected. Throwing an exception </p> <p>java.lang.IllegalArgumentException: Interface must be annotated with @org.springframework.data.repository.RepositoryDefinition!</p> <p>I am giving all my soruce code so that it can be identified by some o... |
37,894,941 | 0 | Receive multiple JSONObject in one AsyncHttpClient request <p>I have a problem in my code. I just want to receive JSONObject from my server. here is a part of my php code after make the request</p> <pre><code>$obj = $result->fetchAll(PDO::FETCH_CLASS); foreach ($obj as $row) { $trouver = FALSE; if (stristr($row->... |
28,120,057 | 0 | <p>That is correct, the data buffer for the original <code>A</code> is destroyed by MATLAB and a new buffer is created (the same <code>mxArray</code> structure address is reused presumably by copying the new one onto the original after deallocating the original array's data buffer). <strong>This is assuming you are <e... |
11,726,888 | 0 | <p>This is why many agree that Singleton is an anti-pattern. You need multiple instances of the object, one for each locale. It's not a singleton. I like to say that Singleton is just a euphemism for global variables. You're basically allowing a global way to access the Locales.</p> <p><a href="http://accu.org/index.p... |
22,432,515 | 0 | <p>You can put <code>ftplugin</code> directory with filetype-specific settings inside <code>.vim</code> directory</p> <pre><code>.vim βββ ftplugin βββ ruby.vim βββ markdown.vim </code></pre> <p>And keep your settings there. The are applied when file with corresponding filetype is opened.</p> <p>Also, you might need to... |
25,154,160 | 0 | <p>Unless I misunderstand your question, you can just open a file read only. Here is a simply example, without any checks.</p> <p>To get the file path from the user use this function: </p> <pre><code>Private Function get_user_specified_filepath() As String 'or use the other code example here. Dim fd As Office.FileDial... |
28,845,086 | 0 | <p>The error message you're seeing has nothing to do with the <code>constexpr</code> keyword per se.</p> <p>A string literal like "foo", as in:</p> <pre><code>somefunction("foo"); </code></pre> <p>The type of this string literal is <code>const char *</code>. The following statement:</p> <pre><code>char *const str = "f... |
5,667,848 | 0 | <p>Force <code>git push</code>:</p> <pre><code>git push origin +develop </code></pre> |
34,555,150 | 0 | <p>This one is using the <code>Picasso</code> library.</p> <pre><code>String url = "some url to your image"; ImageView thumbnail = (ImageView) findViewById(R.id.thumbnail); Picasso.with(context).load(url).into(thumbnail); </code></pre> |
1,127,131 | 0 | <pre>/question/how-do-i-bake-an-apple-pie /question/how-do-i-bake-an-apple-pie-2 /question/how-do-i-bake-an-apple-pie-...</pre> |
37,477,687 | 0 | FireBase Cloud Messaging Not Working <p>I am trying to use FireBase Cloud Messaging. I am receiving a token but its not getting any notifications from console. Here is my Manifest:</p> <pre><code> <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" packag... |
12,381,053 | 0 | <p>Thunderbird AddOns are extensions for the Mozilla Thunderbird email client. They are written mostly in XUL (a flavor of XML) and Javascript.</p> <hr> <h3>Useful links</h3> <ul> <li><a href="https://addons.mozilla.org/en/thunderbird/" rel="nofollow">Official website</a></li> </ul> <hr> <h3>Related tags</h3> <ul> <li... |
22,859,855 | 0 | Drag and drop from list to canvas on windows phone with MVVM <p>I have an app where a user can manipulate around with elements chosen from a list, this is done by clicking the list element and the element is added to a canvas.</p> <p>During a user testing of the app. People found it not to be intuitive since they wante... |
9,787,934 | 0 | Firewall blocking/unblocking a port <p>I have an app installed on a server with windows 2008 R2 OS and hosted it on port 8080 (used apache tomcat for this).. I'm able to access the app through the URL.. </p> <p>Now, the problem is that I'm unable to access the URL (I mean app) from any other LAN connected machines. </p... |
11,389,251 | 0 | <p>If you're trying to use the general pattern of having ALPHANUMBER and ALPHA[NUMBER] refer to the same variable, you can't do it. The square bracket notation in Java refers to an element in an array, while the first is just a general identifier that can refer to a variable. </p> <p>In the specific case of creating t... |
944,953 | 0 | <p>You can certainly do this in C++ with the <a href="http://msdn.microsoft.com/en-us/library/aa387410.aspx" rel="nofollow noreferrer">Windows Media Format SDK</a>. </p> <p>I have only used WMFSDK9 myself. It contains a sample called UncompAVIToWMV, which may get you started. From the Readme:</p> <blockquote> <p>It sh... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.