pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
28,517,254 | 0 | <p>You can start looking at developer tools of chrome where you can understand more about rendering of html elements.. Check the image attached for one such instance. Your h2(id="block-bens-main-menu-menu") tag has by default margin-top & margin-botom values which is actually creating the space. Investigate more b... |
15,733,439 | 0 | <p>Your new table should look like this:</p> <pre><code>public class MessageByPerson { @ManyToOne private Message message; @ManyToOne private Person person; @Column private Date date; } </code></pre> |
1,766,363 | 0 | <p>There is also another attempt to emulate position: fixed :</p> <p><a href="http://cubiq.org/scrolling-div-on-iphone-ipod-touch/5" rel="nofollow noreferrer">http://cubiq.org/scrolling-div-on-iphone-ipod-touch/5</a></p> <p>But it's hacky, and not very performant too.</p> <p>You are right, Titanium or phonegap do the ... |
3,546,105 | 0 | <p><code>[playSoundButton = [UIButton buttonWithType:UIButtonTypeCustom] retain];</code> should read <code>playSoundButton = [[UIButton buttonWithType:UIButtonTypeCustom] retain];</code></p> <p>(i.e. move the first <code>[</code> further right to <code>UIButton</code>)</p> |
4,956,245 | 0 | How to manage shared resources for several web apps in Maven AND Eclipse? <p><em>Note: I didn't get any response in the first version of this question, so I modified it to be more generic...</em></p> <p><strong>Context</strong></p> <p>My project is divided into several maven modules and several web-applications. Here i... |
3,915,493 | 0 | <p>It seems like you can't. You can only go as far as ...</p> <pre><code>CompositeId() .KeyProperty(x => x.Id1, "ID1") .KeyProperty(x => x.Id2, "ID2"); </code></pre> <p>There is no option for type or length. </p> <p>But in version 1.1 there seems to be a possibility</p> <pre><code>CompositeId() .KeyProperty(x =&... |
3,954,285 | 0 | <p>You can write a Diary application. Whose functionalities include:-</p> <ol> <li><p>Writing the daily diary and saving it which must be searchable via data/keywords(Basic function)</p></li> <li><p>Contacts with basic information about the person.</p></li> <li><p>Give a feature to export your matter to a suitable fil... |
31,260,691 | 0 | <p>The line in your gunicorn configuration file</p> <pre><code>user = newuser </code></pre> <p>does appear to be the central problem. As is sorta shown by</p> <pre><code>$ id uid=1001(msw) gid=1001(msw) groups=1001(msw),4(adm),8(mail) … </code></pre> <p>A user has one uid and one gid. All other groups listed are group... |
40,186,817 | 0 | Continuous Deployment of builds onto servers from build server <p>I'm using ansible to deploy and install builds on to my servers, but I have to feed Ansible with build name, to grab it and deploy. I would like to close this loop since I have to deploy the builds thrice a day. Is there a tool to do this so that everyti... |
35,910,896 | 0 | <p>You use <code>$this->form_validation</code> only from inside controllers and/or models. </p> <p>When you are inside the library itself, you're in a different scope, where the <code>form_validation</code> property doesn't exist ... and you don't need it in the first place - you just use <code>$this</code>, so it'... |
18,706,446 | 0 | returning rows from $wpdb - losing my mind <p>spent the last two hours trying to get this $wpdb->get_results to return an array the same way while ($row = mysql_fetch_array($result)) would. I have tried everything, get_col, get_row, etc... went through the wp codex and tried all their examples and literally nothing wor... |
13,491,922 | 1 | What is the difference between url() and tuple for urlpatterns in Django? <p>So in Django the two lines of url code below work the same:</p> <pre><code>urlpatterns = patterns('', url(r'^login/$', 'django.contrib.auth.views.login'), (r'^login/$', 'django.contrib.auth.views.login') ) </code></pre> <p>AFAIK, the only diff... |
33,597,552 | 0 | How to retain the shell returned from runtime.exec(); <p>I'm making a terminal app and using the following code</p> <pre><code> try { process = runtime.exec(command); BufferedReader stream = new BufferedReader(new InputStreamReader(process.getInputStream())); String line; while ((line = stream.readLine()) != null) { st... |
8,969,409 | 0 | <p>Before storing, cast the pointer with a <code>dynamic_cast<void*></code> - this will give you a void pointer to the <em>most derived object</em>; this void pointer will, for the same objects, have the same address stored.</p> <p>See also <a href="http://stackoverflow.com/questions/8123776/are-there-practical-... |
31,403,686 | 0 | <blockquote> <p>Just a simple trick you can do</p> </blockquote> <p>just use a string variable for messages appending and counter.</p> <pre><code>$(document).ready(function () { var Messages; var counter=0; $('#btnSave').click(function (e) { validateTitle(); validatePrefix(); validateTextBoxes(); if(counter > 0) { ... |
27,513,976 | 0 | <p>Well…try this steps:</p> <ol> <li>Open the "Start" menu and click "Computer" or "My Computer" depending on your version of Windows. Navigate to the C drive.</li> <li>Open the "Notes" folder. Double-click on the "Notes.ini" file to open it in Notepad.</li> <li>Place a semicolon (;) in front of the following two line... |
6,210,573 | 0 | <p>It all depends on y our app structure. If the data in the hidden div confidential, then by no means setting it's display to none a secure method since the client has full access to all client side data. But when talking about a button that invokes a back-end behavior, you should also be doing back-end validation on... |
33,601,141 | 0 | <p>You created a service account but it looks like you're trying to access it using a client flow.</p> <p>Have a look at the service account documentation here: <a href="https://developers.google.com/identity/protocols/OAuth2ServiceAccount" rel="nofollow">https://developers.google.com/identity/protocols/OAuth2ServiceA... |
10,257,596 | 0 | Experiencing difficulty with a bubblesort exercise <p>I have an exercise where I need to use a WebMethod to perform a bubble sort, Ascending and Descending. </p> <p>This is the method that I use for an Ascending sort for example.</p> <pre><code>[WebMethod] public Boolean larger(int a, int b) { Boolean isLarger; if (a &... |
15,854,810 | 0 | <p>Try crystal Reports as these are widely used to generate reports and invoices. Follow these links, may be they'll be helpful for you:</p> <ul> <li><a href="http://www.codeproject.com/Articles/15859/Basics-of-Crystal-Report-for-NET-Programmers" rel="nofollow">http://www.codeproject.com/Articles/15859/Basics-of-Cryst... |
19,215,331 | 0 | <p>From what I can tell, your paint code should work fine</p> <p>The problem is, most likely, in the fact that the images are not loading, but since you've chosen to ignore any errors that are raised by this process, you won't have any idea why...</p> <p>So, instead of <code>// dont know</code>, use <code>e.printStack... |
15,262,841 | 0 | <p>Yes it's possible and few samples here</p> <ul> <li><a href="http://support.microsoft.com/kb/815799" rel="nofollow">How to bind an array of objects to a Windows Form by using Visual C++ .NET or Visual C++ 2005</a></li> <li><a href="http://msdn.microsoft.com/en-us/library/aa290064%28v=vs.71%29.aspx" rel="nofollow">P... |
18,731,102 | 0 | <p>For what i know Microsoft kinect for windows SDK does not best to detect open and close hands. Microsoft provides tracking of 20 <a href="http://i.msdn.microsoft.com/dynimg/IC584844.png" rel="nofollow">body</a> parts and does not include the fingers of the hand. You can take advantage of the kinect interactions for... |
40,600,187 | 0 | <p>Linq is your friend. You can re-write all that code in 1 line:</p> <pre><code>peeps.OrderBy(x => x.Age).ThenBy(x => x.LastName); </code></pre> <p>That's all there is to it :). You can get rid of all that IComparable junk, that's old school.</p> <p>EDIT: for IComparable, you can do:</p> <pre><code> public int ... |
26,042,800 | 0 | MvvmCross Not Loading Plugins in iOS 8 <p>I'm working on an enterprise iOS app using MvvmCross 3.2.1 and iOS 8 (with updated profile 259) and it's throwing exception "Failed to resolve parameter for parameter factory of type ISQLiteConnectionFactory when creating MyDataService".</p> <p>The same application works fine u... |
19,468,225 | 0 | <p>Although technically it is possible as Aladdin has answered, I would strongly suggest you not to use PHP/Yii for this. Neither Yii nor PHP is desgined for this sort of work. Yii is really a wonderful framework but it won't really help you with GA programming. PHP is versatile and fast, great for scripting etc. But ... |
15,796,025 | 0 | Execute a SQL query With Anchor Tag <p>please help to solve this issue,</p> <p>I have a Anchor Tag in my page.</p> <p>i want to perform a SQL UPDATE query when users click the anchor tag, how can i do that without reloading the page?</p> <p>Thanks in advance.</p> |
14,688,536 | 0 | Move adjacent tab to split? <p>Is there an easy way to move an adjacent tab in Vim to current window as a split?</p> <p>While looking around I reached a mailing list discussion where someone said it's the reverse of the operation <kbd>Ctrl</kbd>+<kbd>W</kbd>,<kbd>T</kbd> without providing the solution.</p> |
1,700,180 | 0 | <p>If I understood correctly, you need something like this:</p> <pre><code>foreach(datarow r in datatable.rows) { if(((int)r["Menu_ID"])==7) { //Don't apply CSS } else { //Apply CSS } } </code></pre> <p>this is assuming your Menu_ID column is numeric. If it is a string, change to:</p> <pre><code>if(((string)r["Menu_ID... |
29,261,399 | 0 | <p>This is incorrect:</p> <pre><code>CKEDITOR.editorConfig = function(config) { config.extraPlugins = 'timestamp'; config.extraPlugins = 'sharedspace'; }; </code></pre> <p>You first set <code>extraPlugins</code> to <code>'timestamp'</code> and right after that you set it to <code>'sharedspace'</code>. You need to set ... |
37,508,754 | 0 | <p>All the occurances of <code>stocklevel</code> are getting replaced with the value of <code>newlevel</code> as you are calling <code>s.replace (stocklevel ,newlevel)</code>.</p> <blockquote> <p><strong>string.replace(s, old, new[, maxreplace]):</strong> Return a copy of string s with all occurrences of substring old... |
24,181,422 | 0 | <p>You can simply do this:</p> <pre><code>SELECT order_date, SUM(CASE WHEN male_or_female_bike IS NULL THEN 1 WHEN male_or_female_bike='M' THEN 1 ELSE 0 END) as MaleCount, SUM(CASE WHEN male_or_female_bike ='F' THEN 1 ELSE 0 END) as FemaleCount FROM Bike_orders GROUP BY order_date ORDER BY order_date DESC </code></pre... |
4,227,607 | 0 | <p>I haven't seen anything like this before but was thinking of trying to create something like this</p> |
4,415,199 | 0 | <p>This is the classic <strong>assignment in conditional</strong> error - the expression is evaluated as following (because comparison has higher <a href="http://www.difranco.net/compsci/C_Operator_Precedence_Table.htm">precedence</a> then assignment):</p> <pre><code>if ( killedpid = ( wait( &status ) >= 0 )) {... |
9,672,587 | 0 | <p><code>read</code> is a <a href="http://dev.mysql.com/doc/refman/5.5/en/reserved-words.html" rel="nofollow">reserved word,</a> and so needs to be specially quoted with backticks for it to work in query</p> <p>so try</p> <pre><code>if (!mysql_query("UPDATE $tblname SET `read`='$read' WHERE id='$id'")) { die("update f... |
10,536,462 | 0 | Creating tabs with different heights in Android <p>How I can create the following layout?</p> <p><img src="https://i.stack.imgur.com/qJqcd.png" alt="enter image description here"></p> |
10,943,384 | 0 | <p>The URL scheme for programmatically launching Settings.app to a particular settings panel was briefly exposed (though I'm not sure if it was documented) in iOS 5. However, the capability has been suppressed for third-party apps in iOS 5.1. As it stands, there is currently no way to do this from a third-party app on... |
10,604,690 | 0 | Noise/distortion after doing filters with vDSP_deq22 (biquad IIR filter) <p>I'm working on a DSP class (obj-c++) for <a href="http://alexbw.github.com/novocaine/" rel="nofollow">Novocaine</a>, but my filters only seem to cause noise/distortion on the signal.</p> <p>I've posted my full code and coefficients here: <a hre... |
20,196,226 | 0 | <p>The following regex will strip the first and last slashes if they exist,</p> <pre><code>var result = "/installers/services/".match(/[^/].*[^/]/g)[0]; </code></pre> |
15,435,248 | 0 | <p>You want the <a href="http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html#Function-Attributes" rel="nofollow">visibility attribute</a> extension of GCC.</p> <p>Practically, something like:</p> <pre><code> #define MODULE_VISIBILITY __attribute__ ((visibility ("hidden"))) #define PUBLIC_VISIBILITY __attribute_... |
16,811,289 | 0 | <p>Read <a href="http://docs.oracle.com/javase/7/docs/technotes/guides/vm/performance-enhancements-7.html">here</a></p> <blockquote> <p>Tiered Compilation</p> <p>Tiered compilation, introduced in Java SE 7, brings client startup speeds to the server VM. Normally, a server VM uses the interpreter to collect profiling i... |
2,273,122 | 0 | How do I validate that two values do not equal each other in a Rails model? <p>I have a User model, which has an email and a password field. For security, these may not be equal to each other. How can I define this in my model?</p> |
16,311,007 | 0 | knockout.js using the mapping plugin <p>I am a newbie with knockout.js and want to start using the automatic mapping plugin. How can I convert this manually mapped code to use the mapping plugin?</p> <p><a href="http://jsfiddle.net/infatti/jWTtb/6/" rel="nofollow">http://jsfiddle.net/infatti/jWTtb/6/</a></p> <pre><code... |
23,217,931 | 0 | <p>There is no need to create a folder specifically for your configuration file, you can specify its path with the <code>-c /path/to/your/file</code> or <code>--configuration=/path/to/your/file</code> option.</p> <p>Source: <a href="http://supervisord.org/running.html" rel="nofollow">http://supervisord.org/running.htm... |
6,658,394 | 0 | C++, Can't find loaded C# DLL while enumerating loaded modules <p>thank you for taking the time to read this.</p> <p>The situation is basically, I'm using EnumProcessModulesEx to enumerate all the modules in a loaded process. I've verified that the process I'm getting with GetCurrentProcess is correct (via the ID). I s... |
36,641,217 | 0 | <p>This way <code>Users.visible_to</code> will return premium and admin users. </p> <pre><code>scope :visible_to, -> (user) do where(users.premium? = ? OR users.admin? = ?, true, true) end </code></pre> |
7,061,267 | 0 | Send Event Email Reminder asp.net mvc <p>im not using an event scheduler just asp.net mvc and need to send a reminder 4 days before event. I have the Date Stored of Event(Event_Start), can u please help?</p> <p>I have created a class in the controller public void Reminder() , but now im stuck</p> |
28,982,891 | 1 | pandas print all non empty rows <p>I have this data</p> <pre><code>time-stamp ccount A B C D E F G H I 2015-03-03T23:43:33+0000 0 0 0 0 0 0 0 0 0 0 2015-03-04T06:33:28+0000 0 0 0 0 0 0 0 0 0 0 2015-03-04T06:18:38+0000 0 0 0 0 0 0 0 0 0 0 2015-03-04T05:36:43+0000 0 0 0 1 0 0 0 0 0 0 2015-03-04T05:29:09+0000 0 0 0 1 0 0 ... |
25,523,083 | 0 | <p>I've run into the exact same issue (with a different password of course).</p> <p>To keep the connection string to the database working on the developer machines i've modified the publish settings to use a 'different' connections string. </p> <p>For your example: web.config would contain:</p> <pre><code><connecti... |
35,777,332 | 0 | FullCalendar fetching events from server not working <p>I am trying to fetch events from my LocalDB server and have them display on my calendar, but they aren't appearing.</p> <p>I am using the following method to fetch the events.</p> <pre><code>public JsonResult GetEvents(double start, double end) { var fromDate = Co... |
14,760,056 | 0 | <p>I think you are going the wrong way. Backpropagation isn't a good choice for this type of learning (somehow incremental learning). To use backpropagation you need some data, say 1000 data where <strong>different types of similaritiy (input)</strong> and the <strong>True Similarity (output)</strong> are given. Then ... |
25,943,857 | 0 | <p>To draw multi line text with Snap.svg is a bit bother.<br> When you call Paper.text method with string array, Snap.svg creates tspan elements under the text element.<br> If you want to display the text element as multi line, you should set position to each tspan element manually.<br></p> <pre><code>var paper = Snap... |
13,246,014 | 0 | <p>Please refer the default icon names..</p> <blockquote> <pre><code>Iphone(non retina) :icon.png </code></pre> <p>Iphone(retina) :icon@2x.png</p> <p>Ipad(Non retina) :Icon-72.png</p> <p>IPad(Retina) :Icon-72@2x.png</p> </blockquote> |
19,106,932 | 0 | <p>Frame will be different at run time: this means that the location of a frame on the storyboard is different than where your constraints dictate it should be.</p> <p>Ambiguous: this means that you're missing some constraints.</p> <p>To resolve these issues, if you open up your storyboard, you'll see yellow or red ar... |
9,865,292 | 0 | trouble debugging and running sample android project <p>I installed the Android 2.2 SDK (2.2 is the version i have on my smartphone). I've tried running the NotePad sample project as an Android project. Here is what happens: the emulator loads, but when I click on the app, the screen goes blank. There are no errors bei... |
16,696,122 | 0 | <p>Whenever you open a stream (or a writer / reader, which wrap a stream), that locks the file.</p> <p>You need to close your streams using the <code>using</code> statement.</p> |
10,992,734 | 0 | <p>try <code>right: 100%</code> instead of <code>left: 0</code>, which basically tells your menu that it should position its left edge to the leftmost edge of its parent. <code>right: 100%</code> should tell it to align its rightmost edge with your parent menus leftmost edge. Hope this helps!</p> |
10,615,789 | 0 | <p>You may checkout the <a href="http://msdn.microsoft.com/en-us/library/system.environment.username.aspx" rel="nofollow">UserName</a> property:</p> <pre><code>string username = Environment.UserName; </code></pre> |
17,391,616 | 0 | Serving static files with Nginx + Gunicorn + Django <p>This is my nginx config:</p> <pre><code> server { listen 80; server_name localhost; keepalive_timeout 5; access_log /home/tunde/django-projects/mumu/nginx/access.log; error_log /home/tunde/django-projects/mumu/nginx/error.log; root /home/tunde/django-projects/mumu;... |
15,722,041 | 0 | <p>There is currently not a managed DLL available from Microsoft that wraps the Management API; however, there are a few other options. First, there are command line tools such as the PowerShell CmdLets and the CLI tools found at <a href="http://www.windowsazure.com/en-us/downloads/" rel="nofollow">http://www.windowsa... |
1,057,979 | 0 | where is lstrncpy's head file? <p>I know lstrcpy is used for string copy for both unicode and ascii, But I can not use lstrncpy, because I can't find the head file. What is the name of the head file, I googled it, and find someone is using it. Many thanks!</p> |
16,714,062 | 0 | Replace a method with parameters by a closure in metaclass <p>I have two class:</p> <pre><code>class Foo { String doSomething(String a, String b) { return 'Not Working' } } class Bar { String methodIWannaTest() { return new Foo().doSomething('val1', 'val2') } } </code></pre> <p>And I want to replace 'doSomething' in a ... |
26,607,495 | 0 | <p>This is a bug in Unity. You may want to submit a bug report and wait for a patch release to fix it (though you used a preview image, it is also likely to happen on retail Android 5.0).</p> <p>Edit: I tried on a Nexus Player, and the fonts were rendering just fine. Looks like Google forgot to add some fonts to the p... |
14,526,832 | 0 | <p>I'm feeling rather clever about this answer, but I strongly suspect that I've made too many assumptions about your data, in particular the constant nature of var2 and var3:</p> <pre><code>ddply(dat,.(permno,dte,var2,var3), function(x) { dcast(x,permno + dte + var2 + var3 ~ ttm,value.var = 'var1') }) permno dte var2... |
4,165,054 | 0 | missing ; before statement : $(this).closest('tr').find('.tableRow'){\n <pre><code>$('.removeItem').live('click',function(){ var postData = {}; $(this).closest('tr').find('.tableRow'){ var keyPrefix = 'data[' + index + ']'; postData[keyPrefix + '[index]'] = $(this).closest('tr').find('.row_id').text(); postData['data['... |
9,751,278 | 0 | <p>no idea if this helps, but I just found this in some code:</p> <pre><code> void XFakeKeypress(Display *display, int keysym) { XKeyEvent event; Window current_focus_window; int current_focus_revert; XGetInputFocus(/* display = */ display, /* focus_return = */ ¤t_focus_window, /* revert_to_return = */ ¤t_... |
11,384,315 | 0 | django radio buttons in forms <p>I have a form in Django with radio buttons that have various properties for users. When an admin user (in my application...not the django admin) wants to edit properties for different users, the same form objects should appear for all users in a list. So say there is a list of possible ... |
19,387,031 | 0 | <p>You can create a List(Of String) e.g.</p> <pre><code>Dim arr As New List(Of String) </code></pre> <p>And inside of your loop collect your strings:</p> <pre><code>arr.Add(CurrentString) </code></pre> <p>After the loop <code>arr</code> would have all the strings. Then you can run a simple LINQ query:</p> <pre><code>D... |
24,299,268 | 0 | Adding a WCF Service reference in Visual Studio 2013 <p>Following an example about WCF, it seems that in VS 2010 you could right click the references, hit "Add Service Reference", and then hit the "Discover" to get find services in the solution. </p> <p>This does not work in VS 2013. I have my Service dll, I have a ser... |
12,714,690 | 0 | <p>I sadly do not have the SEO answer to your question, but a solution would be to use a negative margin to hide the element off screen. Then when javascript kick in you set the correct position and hide, then you fade in or do what ever you want to do.</p> |
30,762,999 | 0 | <p>Using what you posted, it works fine for me, it produces the red "!" above the textbox. However, I DID remember to set my DataContext, ie.</p> <pre><code>public MainWindow() { InitializeComponent(); this.DataContext = this; } </code></pre> <p>Without this, it won't work.</p> |
9,029,791 | 0 | 2 drop down menus w/o submit button <p>I would like to know how to submit two drop down menus w/o a submit button. I want to populate the second drop down menu on selection of the first and then be able to echo out the selection of the second drop down menu. Data for the second drop down menu is obtained from a mySQL d... |
19,889,679 | 0 | <p>Try this :</p> <pre><code>JTextArea txt = new JTextArea(); JScrollPane jsp = new JScrollPane(history, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); txt.setCaretPosition(txt.getDocument().getLength()); // do this afeter any event </code></pre> <p>Hope that helps you</p> |
32,547,573 | 0 | <p>The way I've solved it was to render the context into a buffer and then write it to file as JPG. I'll have to further see how to optimise this flow on older gen iOS devices, but it seems to work well in comparison to createCGImage. This code is also useful for turning a CIImage into JPEG or bitmap NSData. Full samp... |
13,744,223 | 0 | <p>Option 1 using pointers is a bad idea. Use either <code>boost::scoped_ptr</code> or, if you can, <a href="http://herbsutter.com/elements-of-modern-c-style/" rel="nofollow"><code>std::unique_ptr</code></a>.</p> <p>Option 2, as you implement it, should not be used. See <a href="http://www.gotw.ca/gotw/028.htm" rel="n... |
30,183,330 | 0 | <p><strong>Both != and <> has same Properties IN SQL:</strong></p> <p><strong>!= :</strong><br> Checks if the values of two operands are equal or not, if values are not equal then condition becomes true. </p> <pre><code>(a != b) is true. </code></pre> <p><strong><>:</strong> </p> <p>Checks if the values of two o... |
9,021,528 | 0 | <p>I think you might be trying to do the first case outlined here:</p> <p><a href="http://dev.mysql.com/doc/refman/5.5/en/create-table-select.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.5/en/create-table-select.html</a></p> <p>..which for your example would look like:</p> <pre><code>CREATE TEMPORARY TABLE t... |
38,776,323 | 0 | <p>@TeckSupport how about if you set up a function that pulls and writes the IP.dst:</p> <pre><code>from scapy.all import * fob = open("IP.txt","w") def ip_dst(pkt): fob.write(pkt[IP].dst+'\n') sniff(filter='ip',count=10,prn=ip_dst) fob.close() </code></pre> <p>Is this what you were looking to do?</p> |
15,326,328 | 0 | IIS throwig error when im refrencing a javascript file? <p>im messing around with a master page, and i want to use jquery and another javascript file to a simple tamplate im creating.</p> <p>i have a wierd problem that i dont understand, when i run the apsx on the browser, i dont see the changes i made in the javascrip... |
29,298,617 | 0 | <p>Thanks Pradeep. The following code fixed my problem</p> <pre><code> protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack ) { txt_rname.Enabled = false; txt_rmobile.Enabled = false; txt_remail.Enabled = false; con.Open(); // string qry = "select * from Reporter where Reporter_ID= " + DropDownList1.... |
20,477,953 | 0 | <p>OK here is a jsFiddle with AN answer: <a href="http://jsfiddle.net/ccarns/2gMyx/" rel="nofollow">http://jsfiddle.net/ccarns/2gMyx/</a></p> <p>The reason I say that is I cheated a bit because every(2).months(); and other methods I tried for every two weeks would return unexpected results.</p> <pre><code>later.parse.... |
18,990,841 | 0 | <p>I t makes a lot of sense to have separate tables for stages, grades, semesters, ...</p> <p>You have already mentioned the best reason for this, you can add individual data for each of these levels. You can name the foreign keys in a sensible way (i.e. <code>stage_id</code> in the table for the grades). And I doubt ... |
392,507 | 0 | In Windows Mobile (5/6) SDK, where did windns.h go? <p>According to <a href="http://msdn.microsoft.com/en-us/library/aa916070.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/aa916070.aspx</a> (DnsQuery_W), DNS query libraries are available on Windows Mobile / CE developers for versions 5.0 onwar... |
37,131,833 | 0 | <p>This is the Code I am Looking For and I found out myself </p> <pre><code>//you must install these two in your node js using npm var expect = require("chai").expect; var request = require('superagent'); describe("Name For The Test Suite", function() { it("Testing Post Request using Mocha", function(done) { request.p... |
40,994,753 | 0 | jquery DataTable function options are not working <p>I want to change some settings of my table with DataTable function, but the arguments</p> <pre><code>paging: false, scrollY: 400 </code></pre> <p>are not having any effect on the table whatsoever. </p> <hr> <pre><code><html> <head> <meta charset=utf-8 ... |
34,645,101 | 0 | <p>You're getting errors on your php script. The first step is to turn on your error reporting, so put the code below right under your opening <code><?php</code> tags:</p> <pre><code>ini_set('display_errors', 1); error_reporting(-1); </code></pre> <p>That will show you the errors. Now reading the comments, you're q... |
15,436,922 | 0 | get value from child from to parent form <p>i have 2 form in my media player project i have make object of from1 (parent form) and by that get value from form1 in form3. but i also need to get value of a variable from form3 to form1. but the problem is that when i make the object of form3 in form1 like this </p> <pre><... |
31,479,681 | 0 | <ol> <li><p>The variables <code>jpg_data</code> and <code>png_data</code> are lists containing captured URLs. Your loops iterate over each URL, placing the URL string in the variable <code>image</code>. Then, in both loops, you write the URL string to the file, not the actual image. It actually looks like the commente... |
11,319,128 | 0 | <p>You could also try:</p> <pre><code>set rowcount 1000 delete from mytable where id in (select id from ids) set rowcount 0 --reset it when you are done. </code></pre> <p><a href="http://msdn.microsoft.com/en-us/library/ms188774.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms188774.aspx</a></p> |
24,773,795 | 0 | Value from MYSQL is coming null <p>I am fetching code from codeignitor using implode function. here is the code</p> <pre><code>$this->load->database(); $session_data = $this->session->userdata('logged_in'); $user_id = $session_data['user_id']; $this->db->select('skill_id'); $this->db->from('user... |
4,103,668 | 0 | Variables to get windows directories in x64 bit version? <p>In x64 bit version of windows, i see that are also x86 bit directories. How do we get that using envirnoment variables ?</p> |
614,881 | 0 | Dynamically changing height of div element based on content <p>I'm working on a Facebook-like toolbar for my website.</p> <p>There's a part of the toolbar where a user can click to see which favorite members of theirs are online.</p> <p>I'm trying to figure out how to get the div element that pops up to grow based on t... |
3,939,138 | 1 | developing for modularity & reusability: how to handle While True loops? <p>I've been playing around with the pybluez module recently to scan for nearby Bluetooth devices. What I want to do now is extend the program to also find nearby WiFi client devices.</p> <p>The WiFi client scanner will have need to have a <code>W... |
18,918,666 | 0 | <p>Well actually all browsers comply with the same-origin policy. The reason for it is that if the policy didn't apply, upon visiting evil site, that site would essentially control your browser, could take use of any active sessions and cookies etc. You would be able to make ajax requests to any website the person is ... |
5,792,060 | 1 | easy_install with various versions of python installed, mac osx <p>I have various versions of python on a mac OSX 10.6 machine, some of them installed with macports:</p> <pre><code>> python_select -l Available versions: current none python24 python26 python26-apple python27 </code></pre> <p>The default or system ver... |
31,044,697 | 0 | Keep selected value after post check <p>I have a enquete. 1 of the pages looks like this:</p> <pre><code><form method="POST"> <input type="hidden" value="true" id="x" name="x"> <table> <b>How relevant where the topics for your current and/or future business?</b> <hr /> <tr> <... |
7,880,123 | 0 | <p>I believe you can use the defaultdict in the collections module for this. <a href="http://docs.python.org/library/collections.html#collections.defaultdict" rel="nofollow">http://docs.python.org/library/collections.html#collections.defaultdict</a></p> <p>I think the examples are pretty close to being exactly what yo... |
36,712,742 | 0 | How to add a button next to a field in vtiger CRM? <p>I made a script outside of vtiger CRM with a button and if you click on it the button opens a pop up and you can select a location within that popup which then puts the x and y coordinates in a textbox.</p> <p>What I want is to have that button next to a field I alr... |
13,539,554 | 0 | <p>try this</p> <pre><code>$discounts = $this->model_catalog_product->getProductDiscounts($product_id); $product_discounts = array(); foreach($discounts as $discount) { $product_discounts = array( 'quantity' => $discount['quantity'], 'price' => $this->currency->format($this->tax->calculate($dis... |
6,316,920 | 0 | <p>I don't think MPG files have detailed meta data embedded in them. However, have a look at <a href="http://stackoverflow.com/questions/220097/read-write-extended-file-properties-c">this post</a> which explains how to get extended data from the tags stored with the file. If you right-click on the video file...<code>P... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.