pid
int64
2.28k
41.1M
label
int64
0
1
text
stringlengths
1
28.3k
34,899,678
0
AngularJs Bootstrap UI Typeahead - how do I *append* the selection to the current value of a textbox <p>I have a typeahead working nicely on some input boxes on a form. It is used to help the user select template tags into a textbox. I need the textbox to retain what the user has already typed, however so far I have on...
20,149,551
0
<p>On compilation it is generating: </p> <pre><code>[Warning] overflow in implicit constant conversion [-Woverflow] </code></pre> <p>and that's why you are getting </p> <pre><code> -1,2,-3 </code></pre> <p>as output.<br> Note: Always use debugger and debug your program.</p>
10,107,056
0
<p>From the small code snippet you shared, it's hard to say what the problem really is. </p> <p>I can only suspect that the result of <code>GPSC.size()</code> is bigger than what an <code>int</code> can store, therefore causing an overflow on <code>i</code> after <em>some</em> iterations.</p>
14,990,918
0
How would I copy the gallery, posts & pages from a compromised wordpress install to a fresh one? <p>A Wordpress install on one of my servers has been compromised. What's the quickest way to export the gallery, posts and pages in a manner that won't export any back doors along with them? Then how do I import those into ...
24,913,311
0
<pre><code>private function setXY(ct:Object, yt:Object){ tt.txt_ct.embedFonts = false; tt.txt_yt.embedFonts = false; tt.txt_ct.text = ct.toString(); tt.txt_yt.text = yt.toString(); } </code></pre>
39,480,475
0
<p>A recent (Aug 2016) security update in Windows 10 prevents the reuse of printer device contexts. After printing one document Windows 10 will refuse to print again with that same DC. It has always been a preferred practice to create a new DC for each document, but now it seems to be a requirement in Windows 10. </p>
4,582,143
0
<p>Add a + to the list.</p> <pre><code>preg_replace('#[^-a-zA-Z0-9_&amp;; +]#', '', $abcd) </code></pre>
29,973,534
1
Summing and dividing by different categories conversion from Python to R <p>I have a set of vectors containing category values, lets call them, C1, C2,...and I have a frequency vector called Fr. All vectors are of the same length. I want to divide the frequency values in Fr by sums dependent on the categories. In Pytho...
36,709,966
0
how to set Enum in DropDownListFor and keep selectet item when back to this page in mvc? <p>when use this code in firstPage and go to other page , and come back to this page with passing model to first page, selected value in DropDownList not found</p> <pre><code>@Html.DropDownListFor(model =&gt; model.Supplementary.Bl...
15,815,072
0
SQL Server "Deny View Any Database To" in stored proc <p>I have a script which generates a database for a given {databaseName}, and then creates a login for a given {loginName} for this database.</p> <p>I then want restrict this user to only be able to view this database, and no others.</p> <p>I have this working throu...
6,933,483
0
<p>this code looks correct, are you sure the crash isn't somewhere else?</p> <hr> <p>EDIT: as noted in the comments, <code>NSString</code> being immutable won't cause the <code>copy</code> to allocate a new object. I've edited the answer for the mutable case, just in case someone stumbles into this later and doesn't r...
34,722,876
0
stepping into/through the code - it steps into code that has been commented out in visual studio 2012. Has anyone sen this before? <p>Using Visual Studio 2012.</p> <p>Stepping into/through the code - it steps into code that has been commented out.</p> <p>Has anyone seen this before? If so how can I stop it from happeni...
21,743,638
0
<p>To disable only DTC you need to add this to your endpoint config:</p> <pre><code>Configure.Transactions.Advanced(settings =&gt; settings.DisableDistributedTransactions()); </code></pre>
13,612,610
1
plotting autoscaled subplots with fixed limits in matplotlib <p>What's the best way in matplotlib to make a series of subplots that all have the same X and Y scales, but where these are computed based on the min/max ranges of the subplot with the most extreme data? E.g. if you have a series of histograms you want to pl...
7,167,686
0
<pre><code>// Select all element with class child inside an element with class a $('.a .child'); // Select all input elements inside all elements with class a $('.a input'); </code></pre>
19,253,397
0
DataBinding multiple instances of members of a class to specific labels <p><img src="https://i.stack.imgur.com/bU7Ew.png" alt="enter image description here"><img src="https://i.stack.imgur.com/aHuoy.png" alt="enter image description here">I have a class that has a private member of another class, and which that class i...
39,220,061
0
<p><a href="http://leafletjs.com/reference.html#control-layers-removelayer" rel="nofollow"><code>controlLayers.removeLayer(geojsonLayer)</code></a></p> <blockquote> <p>Remove the given layer from the control.</p> </blockquote> <p>(note that you will have to keep reference of your previous layers)</p>
13,439,709
0
<p>OpenJDK is a dependency on multiple Arch Linux packages so just installing Oracle’s JDK wasn’t enough.</p> <p>First had to remove icedtea-web</p> <pre><code>sudo pacman -R icedtea-web </code></pre> <p>Then build Oracle JRE AUR package,</p> <p>Before installing OracleJRE I had to remove openjdk6 manually and ignore ...
21,092,929
0
Extending div to bottom of page not working <p>I have been trying to fix the length of this div for awhile, and I'm sure it is something completely simple, just not seeing it. The div for the content "page" is extending well beyond the footer and I can manipulate the length with the min-height property in css however I...
27,653,745
0
PHP CSV file issues(part 2) <ul> <li><p>continue on <a href="http://stackoverflow.com/questions/27646693/php-duplicate-staffid?lq=1">PHP duplicate staffID</a></p></li> <li><p>code<br /> <code>$data[0] = 0001,Ali,N,OK</code><br /> <code>$data[1] = 0002,Abu,N,OK</code><br /> <code>$data[2] = 0003,Ahmad,N,OK</code><br /> ...
20,203,563
0
<p>you can modify the sass variables that set the breakpoints that define the media queries, just set them to extreme values so that they do not trigger. This will provide very poor ux on devices with small displays. Another solution would be to match all of the grids, so if you have a <code>.large-12</code> then add ...
14,036,331
0
<p>u can include "Top" as..</p> <pre><code> select top 1 * from Table where CreateDate &lt; '25-Dec-2012' order by CreateDate desc; </code></pre>
112,850
0
<p>It seems that whenever you talk about anything J2EE related - there are always a whole bunch of assumptions behind the scenes - which people assume one way or the other - which then leads to confusion. (I probably could have made the question clearer too.)</p> <p>Assuming (a) we want to use container managed transa...
24,761,939
0
System.IO.Compression.FileSystem not found with VS 2010 Express 4.5.50938 <p>I have VS 2010 Express 4.5.50938, but when I go to add a reference there is no System.IO.Compression.FileSystem under .NET tab, but I found a 4.0 version under the Recent Tab. When program runs I receive:</p> <pre><code>Warning 1 Reference to ...
583,237
0
<p>Have you tried setting the regex option to be compiled? I find using a static compiled regex can speed things up considerably.</p>
19,626,980
0
every time I backup my mysql database it needs to repair tables <p>I have a manual backup script for my CMS.</p> <p>Every other time I have created a backup, it says it needs to </p> <p>Repair a table or multiple tables ?</p> <p>Is there something that I am doing wrong in day to day activity -- that is causing this ? I...
16,105,119
0
Jquery not appending values correctly <p>I have a fixed set of input fields on page load. I have checkboxes with values displayed and when someone checks the checkbox the values are added to the input field. If all the input fields are filled, a new one is created. My problem is that, the checkbox values are inserted c...
11,137,253
0
<p>I found myself having the same prob so I discovered that what you need hidden due an annoying bug in PDT plugin</p> <p><strong>Create a new Debug Configuration</strong></p> <ul> <li>Open Eclipse</li> <li>Select the Run > Debug Configurations… menu option</li> <li>Double click the PHP Web Page option</li> <li>Set th...
4,176,461
0
<p>To test if the <code>JComboxBox</code> reference is <code>null</code>, you can compare it with <code>null</code> using the <code>==</code> operator. To test if the combo-box contains any items, you can use the instance method <a href="http://download.oracle.com/javase/1.4.2/docs/api/javax/swing/JComboBox.html#getIt...
21,746,350
0
unable to get click event between the path link using collapse graph <p>I am using collapse graph.It works fine. But I am unable to add click event to the path link. so when I click on the path link i want to call function.how to do any one can help me.</p> <p>[visit http://jsfiddle.net/Nivaldo/6FkBd/17/][1]</p>
19,812,649
0
selendroid server error: Command aapt not found <p>Currently i am working on selenium web driver for automation testing.As i was interested in mobile app testing as well i have came across this selendroid.So working on how to do automation testing with selendroid.I have installed Eclipse ADT created a virtual device an...
5,551,213
0
php oop private method refrence <p>I have a controller class called "query" and another class named "language" to detect the language from the browser and verify it to be one of the available ones. my code looks like this :</p> <p>in the controller : </p> <pre><code>Language::detect(); </code></pre> <p>in the "language...
2,586,492
0
Model class for NSDictionary information with Lazy Loading <p>My application utilizes approx. 50+ .plists that are used as NSDictionaries. </p> <p>Several of my view controllers need access to the properties of the dictionaries, so instead of writing duplicate code to retrieve the .plist, convert the values to a dictio...
34,887,135
0
<p>If you want distinct then </p> <pre><code>select distinct group_concat(lot order by lot) from `mytable` group by product having group_concat(tag order by tag) = '101,102'; </code></pre>
13,522,042
0
<p><strong>This transformation</strong>:</p> <pre><code>&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; &lt;xsl:output omit-xml-declaration="yes" indent="yes"/&gt; &lt;xsl:key name="kOffspring" match="Horse" use="SireID"/&gt; &lt;xsl:template match="/*"&gt; &lt;xsl:apply-templates...
32,036,453
0
Add custom properties to .tt POCO classes lost on updating model <p>I've created a 3-tier web application using EntityFramework Database first approach. I need to add custom properties to POCO classes that do not exist in the database. However when I update my edmx and Run Custom Tool for the tt file, my classes get re...
869,092
0
How to enable mod_rewrite for Apache 2.2 <p>I've got fresh install of Apache 2.2 on my Vista machine, everything works fine, except mod rewrite.</p> <p>I've uncommented </p> <pre><code>LoadModule rewrite_module modules/mod_rewrite.s </code></pre> <p>but none of my rewrite rules works, even simple ones like </p> <pre><c...
18,410,350
0
<p>This is also works</p> <pre><code>Float("%d.%d" % "3,8".split(",")) </code></pre>
25,064,338
0
<p>The processing order is undefined, it depends on the row count and column types in your table and any indexes and their cardinality at the time of execution. It also depends on the conditions themselves. </p> <p>It will only check one condition if the first condition returns <code>TRUE</code> however.</p>
28,762,230
0
Elasticsearch wont apply not_analyzed into my mapping <p>When I try to apply "not_analyzed" into my ES mapping it doesnt work.</p> <p>I am using this package for ES in Laravel - <a href="https://github.com/adamfairholm/Elasticquent" rel="nofollow">Elasticquent</a></p> <p>My mapping looks like:</p> <pre><code>'ad_title'...
36,741,868
0
<p>If columns are different i always have success with the below:</p> <pre><code>USE `old_database`; INSERT INTO `new_database`.`new_table`(`column1`,`column2`,`column3`) SELECT `old_table`.`column2`, `old_table`.`column7`, `old_table`.`column5` FROM `old_table` </code></pre>
28,142,540
0
Reading Text file in C, skip first line <p>I have a big problem with my program. I would like to skip reading from 1st line and then start reading from others. I wasted so much time on searching it in the Internet. </p> <p>This is my txt file. <div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-c...
23,266,650
0
loop music with SKAction <p>I want to loop my background music with an SKAction but the music stops after one row when I swich to an other scene. Is there a way to start the loop and keep playing it over different scenes? right now the code is placed in the init method of MyScene - is there a better place... maybe didF...
7,506,170
0
<p>Because you are on .NET, I recommend you check out the <a href="http://www.dotlesscss.org/">DotLess project</a>. It's open source and very active. They have an HTTP Handler that plugs into IIS, it grabs any request for a .less file and returns a valid CSS file. I don't know what amount of caching they use, but you ...
31,975,527
0
<p>Your intuition is correct, <code>trav t_1</code> gets evaluated first as function arguments are evaluated in left to right order. This might seem a little strange, since <code>@</code> is an infix operator, but <code>[1, 2, 3] @ [4, 5, 6]</code> can actually be rewritten as <code>(op @)([1, 2, 3], [4, 5, 6])</code>...
3,793,093
0
Android EditText, soft keyboard show/hide event? <p>Is it possible to catch the event that Soft Keyboard was shown or hidden for EditText?</p>
37,303,810
0
<p>Try this:</p> <pre><code>function Contact_OnAddTelephone() { var type = $("#rdoTelephoneType").val(), areaCode = $("#txtAreaCode").val(), radio = $('&lt;input&gt;').attr({ type: 'radio', id: 'rdoTelePrimary', name: 'rdoTelePrimary', onclick: 'myRadioButtonClickFunction' }); $('#tableTelephone tr:last').after("&lt;t...
7,816,994
0
<p>Why don't you use a framework for that job?</p> <p>You can try json-framework (formerly SBJSon).</p> <p>Project page : <a href="https://github.com/stig/json-framework" rel="nofollow">https://github.com/stig/json-framework</a></p>
23,838,310
0
Need Some Assistance On Applying a CSS Class <p>Okay this is what I have.</p> <pre><code>BODY { font-family: sans-serif; background-image: url(http://www.thexboxcloud.com/images/xboxbackground2.jpg); background-repeat: no-repeat; background-attachment: fixed; background-position: left top; position: absolute; margin: 0...
24,991,152
0
<p>What you need to do is:</p> <ol> <li><p>Wrap all your answer labels in a <code>div</code> element, something like <code>&lt;div id="answers"&gt;&lt;/div&gt;</code></p></li> <li><p>Dispose of a <code>&lt;br /&gt;</code> elements between labels, instead specifying a style <code>label {display: block;}</code>;</p></li...
28,868,383
0
<p>Use the Party Model. </p> <p>A user is not a person, it's a user. Person and organization are parties. A party hasOne (or no) user.</p> <p>A person hasMany (many2many) relationships with an organization:</p> <p>Individual -&lt; Relationship >- Organization</p> <p>Organizations can have relationships with each other...
20,338,368
0
<p>Your looking for: <code>substring(REF from '([0-9]+(-| )([A-Za-z]\y)?)')</code></p> <p>In <a href="http://www.sqlfiddle.com/#!15/d41d8/496/1" rel="nofollow">SQLFiddle</a>. Your primary problem is that <code>substring</code> returns the first or outermost matching group (ie., pattern surrounded with <code>()</code>)...
657,912
0
<p>Resigning over that is a stupid move. You've raised your concerns and maybe they might be taken on board next time.</p> <p>Doing something only supported in Internet Explorer is something I've done in the past. Try coding in a warning for other browsers or something to at least show you're aware.</p>
35,122,880
0
<p>This will count the number of primes based on this <a href="http://www.c-sharpcorner.com/blogs/check-a-number-is-prime-number-or-not-in-c-sharp1" rel="nofollow">link</a> and your original answer...</p> <pre><code>public static void main(String[] args) { int isPrimeCount = 0; for(i=0; i&lt;1000; i++) { if(Check_Prim...
25,250,591
0
<p>The problem is that </p> <pre><code> objc_setAssociatedObject(self, &amp;imageNameKey, name, OBJC_ASSOCIATION_ASSIGN); </code></pre> <p>should be</p> <pre><code> objc_setAssociatedObject(self, &amp;imageNameKey, name, OBJC_ASSOCIATION_COPY_NONATOMIC); </code></pre> <p>or </p> <pre><code> objc_setAssociatedObject(se...
34,950,212
1
How to authenticate connected application with key? Django, Python <p>I develop a web-service that through the web-API should be connected with third-party applications via pregenerated key. My solution is to use <code>@csrf_exempt</code>, but it seems to be very bad solution. How to authenticate connected application ...
14,809,304
0
<p>You must have the mime_magic extension on. Check your php.ini and look in phpinfo(). By the way this function has been deprecated as the PECL extension <a href="http://www.php.net/manual/en/ref.fileinfo.php">Fileinfo</a> provides the same functionality (and more) in a much cleaner way.</p> <blockquote> <p>Windows u...
3,655,344
0
<p>It really depends on how much this format might change over time and what you want to rely on as constant. If you want to assume that your html will always start with <code>&lt;div class="plugin-block"&gt;</code> and the text you want will always be on a line after an h3, you can do something like this:</p> <pre><c...
32,635,501
0
Can't send variable in http request to php <p>I have a problem with my http request. I send a http request to server(using firefox): the <strong>requestheader</strong></p> <pre><code>Host: localhost User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0 Accept: text/html, */*; q=0.01 Accep...
28,628,287
0
Send data from javascript to html and fetch with php <p>ok, i don't know if this is the proper way of doing this. If not, please give me an example on how to do it. How do i fetch the data in the JS and send it to html?</p> <p><strong>JS</strong></p> <pre><code>$(document).ready(function() { var choosenYear = $('#choos...
36,712,874
0
<p>Try using use a jax-rs implemention or spring.</p> <p>You won;t need to map specific urls to java classes in a servlet mapping file.</p> <p>You include in the class itself.</p>
25,615,533
0
<p>You kind of have to set the width when you define the columns , if you don't specify the width it will take the auto width of the content . <strong>Take a look at this DOC</strong> <a href="http://docs.telerik.com/kendo-ui/api/web/grid#configuration-columns.width">http://docs.telerik.com/kendo-ui/api/web/grid#confi...
8,604,042
0
<h3>Description</h3> <p>You need no DataAnnotation Attribute to do that. In Codefirst you can do the following. The Entity Framework will generate the table you described for you. </p> <h3>Sample</h3> <pre><code>Account { public int Id; } Job { public int Id; public virtual Account Account; } Practice { public int Id;...
18,964,073
0
<p>Change your jquery to this:</p> <pre><code>; (function ($) { $.fn.placehold = function (placeholderClassName) { var placeholderClassName = placeholderClassName || "placeholder", supported = $.fn.placehold.is_supported(); function toggle() { for (i = 0; i &lt; arguments.length; i++) { arguments[i].toggle(); } } retu...
10,553,617
0
<p>In order for a shell script to be called like a binary, it needs a 'hashbang' as the first line of the file:</p> <pre><code>#!/bin/bash </code></pre> <p>which tells the OS which interpreter to use for the script. Without it the OS will get confused about what to do with the file, giving you the error you've seen.</...
281,621
0
<p>I put it down to a lack of testing.</p>
17,249,363
0
Knockout checkbox selection filter <p>I am new at knockoutjc library, and can you help me? I have created a new model in javascript like this.</p> <p><img src="https://i.stack.imgur.com/9fPUk.png" alt="enter image description here"></p> <p>The code is here:</p> <pre><code> &lt;h2&gt;Category : Throusers&lt;/h2&gt; &lt;...
14,250,930
0
Parsing RSS on Android and String Extraction <p>I'm working on porting an app from iOS to Android. The app is just a blog app. I would like to have the list view show just the first 7 characters from the description tag of the XML, and then when clicked, show the webpage from the XML link tag. Any suggestions for extra...
39,010,298
0
<p>The proper format should be:</p> <pre><code>composer require "dirkgroenen/Pinterest-API-PHP:0.2.11" </code></pre> <p>Or alternatively, you can add it to your <code>composer.json</code>:</p> <pre><code>"dirkgroenen/Pinterest-API-PHP" : "0.2.11", </code></pre> <p>Then do a <code>composer install</code></p>
20,541,004
0
<p>Have you tried to add a ToList() statement to the where statement?</p> <pre><code>query = query.Where(x =&gt; x.GetType() == typeof(T)).ToList(); </code></pre> <p>As I recall the result of the Where statement is a too generic collection and therefore it needs to be cast first.</p> <p>Since I see that you're using a...
37,555,731
0
<p>If anyone hit the problem again: <a href="https://forums.activiti.org/content/activiti-explorer-runs-return-error#comment-35300" rel="nofollow">https://forums.activiti.org/content/activiti-explorer-runs-return-error#comment-35300</a></p> <p>A possible solution is to set a servlet filter in the web.xml file to add a...
33,983,026
1
In caffe installation, where to set python path in vs studio <p>Hi Im trying to install caffe deep learning tool box in windows. </p> <p>I have to use it in python. I have so far completed first 2 steps mentioned in <code>https://github.com/happynear/caffe-windows</code></p> <p>For python wrapper, it says <code>replace...
18,966,828
0
If value exists in both array and database <p>I'm trying to check if a value exists in an array, if it does, it should echo the information about that value from the database.</p> <p>What I get now is "null" results, but I expect to get at least three results in the list, that exists in both array and database.</p> <p>...
25,600,670
0
Random "The specified cell does not exist." error with GetCellData method (webtable) in qtp <p>I am using <code>GetCellData</code> method of <code>WebTable</code> object in qtp to fetch each cell value of a webtable which has multiple rows across multiple pages and write to datasheet. Below is the code that I am using:...
8,646,899
0
<p>Hey instead of the following:</p> <pre><code>&lt;?php echo $article['Article']['title']; ?&gt; </code></pre> <p>try</p> <pre><code>&lt;?php echo $article['title']; ?&gt; </code></pre> <p>I am not sure yet why that happens, but it has worked for me in other occasions...</p> <p>Also on the foreach statement for comme...
24,379,828
0
<p>There are two ways to cast a variable in PHP as a specific type.</p> <ol> <li>using the settype() function</li> <li>using (int) (bool) (float) etc</li> </ol> <p>More Info : <a href="http://www.electrictoolbox.com/type-casting-php/" rel="nofollow">http://www.electrictoolbox.com/type-casting-php/</a></p>
2,465,622
0
<p>One approach is to extend <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JToggleButton.html" rel="nofollow noreferrer"><code>JToggleButton</code></a> and override <code>paintComponent()</code> to display the color. A <code>javax.swing.Timer</code> can control timing. Here is a somewhat more elaborate <a...
6,308,335
0
Adjust TogglerBar button size in Mathematica <p>Is it possible to adjust the size/font of the TogglerBar, so that they are all equally large in case of different name size.</p> <p>The example below is the solution proposed by Belisarius for : <a href="http://stackoverflow.com/questions/6299215/can-togglerbar-be-used-as...
14,181,653
0
Getting error to post to facebook wall <p>I've already searched google and stackoverflow but I can't find a solution. I'm trying to integrate facebook into my App so users can suggest new Beer Brands directly to my facebook fanpage thorugh my app. Because right now I'm getting like 3 e-mails a day where users suggest n...
21,989,868
0
How to remove value from GAE NDB Property (type BlobKeyProperty) <p>It might be the most dumb question and my apologies for the same but I am confused </p> <p>I have the following entity: </p> <pre><code>class Profile(ndb.Model): name = ndb.StringProperty() identifier = ndb.StringProperty() pic = ndb.BlobKeyProperty() ...
19,158,308
0
Finding whether two eCommerce customers are same physical entity? <p>eCommerce sites sometimes give some deal which can be used only x number of times by a particular customer. Without any exception there are some clients who try to create multiple accounts to use the same deal more than once, and sometimes gets caught...
16,895,064
0
<p>use the built in distance calculation:</p> <pre><code>Location loc; ..... float radius = 50.0; float distance = loc.distanceTo(loc2); if (distance &lt; radius) then inside. </code></pre>
15,121,638
0
<p>Can you get a handle to the inline image by the DominoDocument.AttachmentValueHolder, see <a href="http://public.dhe.ibm.com/software/dw/lotus/Domino-Designer/JavaDocs/XPagesExtAPI/8.5.2/com/ibm/xsp/model/domino/wrapped/DominoDocument.AttachmentValueHolder.html" rel="nofollow">http://public.dhe.ibm.com/software/dw/...
14,514,784
0
<p>I am learning clisp, but it can work.</p> <pre><code>(defun append-all (x L) (flet ( (append-item (alist) (append alist (list x)))) (mapcar #'append-item L))) (print (append-all '3 '((1) (2 1) (2)))) </code></pre>
28,062,317
0
<p>Use the nested array.</p> <pre><code>{foreach from=$test key=key item=item} {foreach from=$item key=k item=i} {$k}: {$i} {* returns 'column_name: value' *} {/foreach} {/foreach} </code></pre>
17,299,985
0
error in relation between two models - ruby on rails 3 <p>please I need help ! seems like my association doesn't work correctly but i cant find what's wrong. i have a relation between student and guardian , student has many guardians and guardians belongs to student</p> <p>i can't get the admission number which inserte...
7,369,375
0
<p>Highlight your text in visual mode, as in press <kbd>v</kbd> and select your text (like <kbd>viw</kbd> to select the word your cursor is inside, and type, for example <kbd>s'</kbd> to surround it with single quotes. Just don't drop out of visual mode.</p>
8,698,445
0
<p>The SO answer "<a href="http://stackoverflow.com/questions/214272/how-to-set-up-internal-browser-for-aptana-on-linux">How to set up internal browser for Aptana on Linux</a>" lists some solution.<br> Check also your version of Aptana vs. JDK (32 or 64 bits): "<a href="http://www.raditha.com/blog/archives/barking-up-...
37,149,461
0
<p>The genpath answer works for <code>fragment*</code> cases, but not a <code>*fragment*</code> case.</p> <p>Clunky, but works:</p> <pre><code>pathlist = path; pathArray = strsplit(pathlist,';'); numPaths = numel(pathArray); for n = 1:numPaths testPath = char(pathArray(n)) isMatching = strfind(testPath,'pathFragment')...
19,494,215
0
Imageview with frame and image <p>I am working on android app and I want to create imageview that background is frame and src is image, but always there is space between them Also I want to do that the image will cut in case that his edge bigger then the frame. thanks!</p> <pre><code> &lt;TableLayout android:id="@+id/l...
30,355,560
0
<p>You didn't set a variable <code>$query3</code>.</p> <pre><code>$connection = mysql_connect("localhost", "root", ""); $db = mysql_select_db("testproject", $connection); $query1 = mysql_query("SELECT * FROM mentors where username='$username'",$connection); $query2 = mysql_query("SELECT * FROM students where username=...
16,732,290
0
<pre><code>{% for category in site.categories %} {% assign catg_name = category.first %} {% if catg_name == page.category %} {% assign catg_posts = category.last %} {% endif %} {% endfor %} {% for post in catg_posts %} {% if post.title == page.title %} {% unless forloop.last %} {% assign next = catg_posts[forloop.inde...
27,901,200
0
<p>use expression :</p> <pre><code>static public class Metadata&lt;T&gt; { static public PropertyInfo Property&lt;TProperty&gt;(Expression&lt;Func&lt;T, TProperty&gt;&gt; property) { var expression = property.Body as MemberExpression; return expression.Member as PropertyInfo; } } var foo = Metadata&lt;Test&gt;.Propert...
17,308,163
0
<p>try </p> <pre><code>percentageDecimals: 0 </code></pre> <p>in your tooltip</p>
31,442,315
0
Unknown attribute when monetizing a field using money-rails <p>I have the following class and I want to <code>monetize</code> a couple of its fields using the <code>money-rails</code> gem.</p> <pre><code>class LineItem &lt; ActiveRecord::Base monetize :unit_price_cents monetize :total_cents end </code></pre> <p>This is...
3,189,001
0
<p>Well... Former internet explorer versions had a mistake in their box model: the w3c box model takes width without padding and border, and the IE model took it including them. I have examined the page in a a new IE8 in windows 7, and I've only noticed that the border of the tabs were not rounded and they were not co...
16,946,816
0
<p>Something like</p> <pre><code>List&lt;String&gt; rollsAll = // from db List&lt;List&lt;String&gt;&gt; rolls = new ArrayList&lt;List&lt;String&gt;&gt;(); int size = rollsAll.size(); for (int i = 0; i &lt; size / 10; i++) { rolls.add(new ArrayList&lt;String&gt;(rollsAll.subList(10*i, 10*(i+1))); } // handle last part...
10,251,479
0
<p>Try adding a type to your script, something like this.</p> <pre><code>&lt;script type="javascript/text" src="http://www.externalsite.com/js/default.js"&gt;&lt;/script&gt; </code></pre> <p>Are you having any troubles with your css ?</p>
37,474,024
0
Ruby win32ole Gem with OLE error 800A004C (Path Not Found) for size method <p>I have a colossal directory on my hard-drive and I wanted to gather some stats so I began writing a script. To speed things up massively I used Windows OLE but I've come across an interesting issue where the the <code>ar2</code> OLE object ha...
8,938,750
0
<p>The other service is not really a business service in this case. Its only responsibility is to find the objects from the given ID, and apply the given action on these objects. Functionally, this is equivalent to the following code:</p> <pre><code>Set&lt;Object&gt; objects = otherService.getObjectsWithId(id); for (O...