pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
12,685,885 | 0 | InnoDB frequently updated table running slow <p>I have a very simple table to track users activity. It's structure is as following:</p> <pre><code>userId appId lastActivity PRIMARY(userId, appId) </code></pre> <p>Table allows to track, if user is active within a specific application. It's updated once a minute for each... |
6,546,606 | 0 | XJC non-transient non-serializable instance field data <p>After generating java classes I received:</p> <pre><code>public class myClass { @XmlElement(name = "Data", required = true) @XmlSchemaType(name = "date") protected XMLGregorianCalendar data; @XmlElement(name = "Time", required = true) protected XMLGregorianCalen... |
2,802,948 | 0 | How to make an AJAX call immediately on document loading <p>I want to execute an ajax call as soon as a document is loaded. What I am doing is loading a string that contains data that I will use for an autocomplete feature. This is what I have done, but it is not calling the servlet. </p> <p>I have removed the calls to... |
17,693,635 | 0 | Tie Object's visibility to another object's visibility <p>I'm looking for a way to do what the title says. For example there are two DOM-elements a and b, where a is visible when b is visible and hidden, when b is hidden.</p> <p>Is there a way to do this with jquery?</p> <p>Thanks in advance!</p> <p><strong>Since there... |
10,606,234 | 0 | Subversion on Perforce Projects <p>I have a project that's currently in a Perforce repository. Unfortunately, due to some testing restrictions, I have a test machine (private build of something that resembles linux) that, for whatever reason, does not run Perforce, but is able to run subversion. Is it possible, or a go... |
28,659,697 | 0 | performance on mantle, dx and ogl <p>So recently with all the commotion on the new API for 3d graphics which supposedly accelerate graphics by a huge amount I am wondering why this hasn't been done before. What is so different between the old way and the new way?</p> <p>I would like to know how it is achieved and maybe... |
28,747,823 | 0 | <p>A comparison of the M2M protocols based on characteristics, like any other comparisons, should be made in a certain context. In this case, the context refers to the domain or the application domain you are using for building the comparison. </p> <p>An application for a certain domain usually has a set of requiremen... |
22,010,093 | 0 | How do I install the JMF 2.1.1e [2014] <p>So I Downloaded JMF from here:<a href="http://www.oracle.com/technetwork/java/javase/download-142937.html" rel="nofollow">http://www.oracle.com/technetwork/java/javase/download-142937.html</a> installed it(There was only an installation wizard version).</p> <p>Then what am I me... |
17,021,057 | 0 | Char equivalent for Tabstop <p>I want to split a string with Tabstops. What is the correct char[] equivalent for usage with </p> <pre><code>Split.(char[] x, int i) </code></pre> |
38,593,222 | 0 | Create Custom grid css depending on Array Length <p>I have array with data <code>[1,2,3,4,5,6,7]</code> and I want to show 2 items on 1 line</p> <pre><code><div class=row> <div>data1</div> <div>data2</div> </div> <div class=row> <div>data3</div> ... </code></pre> <p... |
12,656,879 | 0 | <p>I did the same as in this <a href="http://stackoverflow.com/a/6401135/262462">http://stackoverflow.com/a/6401135/262462</a> but edited this part</p> <pre><code>function save($filename, $image_type=IMAGETYPE_JPEG, $compression=75, $permissions=null) { // do this or they'll all go to jpeg $image_type=$this->image_... |
7,230,479 | 0 | Convert header of email to another encoding in ActionMailer in Ruby <p>I have a website written on ruby 1.8.5 and rails 1.2.6. </p> <p>There is a feedback page.</p> <p>So.</p> <p>i've got a model class:</p> <pre><code>class Feedback::Notify < ActionMailer::Base def answer_for_managers(question) recipients test@test.... |
30,859,614 | 0 | <blockquote> <p>I want to start web-service but without web-server</p> </blockquote> <p>If it is just a plain HTML without back-end but not a web-service, then you can create a shared folder and open it as a file from your network. HTML and front-end JS scripts will work well. However, the link will be like:</p> <pre>... |
5,458,039 | 0 | <p>I think this line is the problem:</p> <pre><code><td align="left" valign="top"><span style="font-weight: bold;"></span><img alt="" id="asd" onclick="" style="cursor: pointer" src="" /></span><br /><span></span></td> </code></pre> <p>Remove the span end tag that ... |
3,025,612 | 0 | <p>I upgraded my cygwin installation at home and ran into a similar problem (though maybe not the exact same problem -- the perl debugger still responds to my input but does not display my input, and fubars my input even after I quit the debugger). In the meantime while I figure what is going on, my workaround is to f... |
22,532,945 | 0 | <p>elaborating on my comment, the only way the solver learns what the constraints are is by going 'out of bounds' , so you should very much expect out of bounds values and handle them gracefully.</p> <p>A typical way to do this is:</p> <pre><code>G(1) = X(1) * x(2) - x(3) ** 2 if(g(1).gt.0)then f=log(g(1)) else f=-10.... |
18,362,097 | 0 | <p>I think you're trying to construct an array consisting of the names of all zero-length files and directories in <code>$DIR</code>. If so, you can do it like this:</p> <pre><code>mapfile -t ZERO_LENGTH < <(find "$DIR" -maxdepth 1 -size 0) </code></pre> <p>(Add <code>-type f</code> to the find command if you're... |
6,787,059 | 0 | <p>Click on the small triangle in the upper right corner of the problems view and select "Configure Contents". In that dialog check "Show all items" and uncheck "Use item limits" to show all warnings.</p> |
19,489,963 | 0 | <p>You need to define the table the function returns, and insert into it, rather than selecting.</p> <pre><code>CREATE FUNCTION dbo.get_numseq (@max_rows AS BIGINT,@min_rows AS BIGINT) RETURNS @t TABLE (n int) AS begin -- returns up to 4,294,967,296 records ;WITH lv0 AS (SELECT 0 AS g UNION ALL SELECT 0), lv1 AS (SELE... |
10,001,439 | 0 | <p>If your frequency is not exactly an integer value, then this line:</p> <pre><code>phase = phase - (2 * M_PI * freq); </code></pre> <p>will adjust and rotate the phase by an amount not equal to 2pi, thus producing a discontinuity.</p> |
14,007,443 | 0 | android sdk realtime audio record <p>I use this code to record and play back recorded audio in real time using the <a href="http://developer.android.com/reference/android/media/AudioTrack.html" rel="nofollow">AudioTrack</a> and <a href="http://developer.android.com/reference/android/media/AudioRecord.html" rel="nofollo... |
4,317,501 | 0 | <p>I am not able to see your images (blocked!) so I'll just try to describe the "correct" design. If a player living in a zone doesn't necessarily mean they own it, you should have four tables: </p> <pre><code>PLAYER (playerid, <other fields>) ZONE (zoneid, <other fields> PLAYER_ZONE(playerid, lives_in_zon... |
11,965,188 | 0 | <p>PHP will send a chunked response by default if headers are sent and no <code>Content-Length</code> header was specified. If you're familiar with the HTTP spec, this is the only logical thing to do since the client on the other end needs to know when the HTTP message you're sending ends so it can stop reading.</p> <... |
27,624,169 | 0 | <p>Have you considered using a PerformanceCounter <a href="http://msdn.microsoft.com/en-us/library/system.diagnostics.performancecounter(v=vs.110).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/system.diagnostics.performancecounter(v=vs.110).aspx</a>? You just count the number of objects created, and the... |
3,422,989 | 0 | <p>I can't reproduce the issue. I used the following test class:</p> <pre><code>package com.stackoverflow.q3421918; public class Hello { public static void main( String[] args ) { System.out.println( args[0] + " " + args[1] ); } } </code></pre> <p>And the following pom.xml:</p> <pre><code><project> <modelVers... |
31,905,071 | 0 | <p>Wasn't sure what you meant by a 'dropdownList'. For this example I used a ComboBox.</p> <pre><code> Dim StartTime As DateTime = #12:00:00 AM# 'load combo box Do StartTimeDDL.Items.Add(StartTime.ToString("hh:mm tt")) StartTime = StartTime.AddMinutes(30) Loop While StartTime.TimeOfDay.TotalDays > 0 Dim selectTime ... |
34,865,004 | 0 | <p>If you want to select a Node by default, you can do it by setting the node's <code>selected</code> property to <code>true</code> when you initialise the dataSource. Another option would be to call the TreeView <code>select()</code> method after the TreeView completed the data loading. (See the <a href="http://docs.... |
7,127,674 | 0 | start file upload upon selection <p>Normally, to upload a file, it would be two-steps process - select a file and then confirm upload. I am working on uploading profile picture. Since profile pic is usually small, I want to reduce mouse-clicks for my users by making the file upload to start upon file selection. Please ... |
3,785,697 | 0 | NSString range of string at occurrence <p>i'm trying to build a function that will tell me the range of a string at an occurrence.</p> <p>For example if I had the string "hello, hello, hello", I want to know the range of hello at it's, lets say, third occurrence.</p> <p>I've tried building this simple function, but it ... |
31,946,302 | 0 | Background image on Phonegap causes incredible slowness? <p>So after much frustration, I finally pin-pointed the problem. The following causes severe decline in speed in my phonegap app:</p> <pre><code>body.default { background: #000000 url(../img/background.jpg) no-repeat center top fixed; background-size: cover; } </... |
19,980,418 | 0 | <p>This will return true for elements that are currently in the document, and selectors which match elements in the document.</p> <pre><code>function isInDoc(sel) { var $sel = jQuery(sel); return $sel.length && jQuery.contains(document.documentElement, $sel[0]); } </code></pre> |
573,548 | 0 | <p>The only 'attack' you are addressing through email confirmation, is registering new accounts using random email addresses.</p> <p>IOW, if you leave that step out, an 'attacker' could:</p> <ol> <li>register accounts using just random gibberish addresses</li> <li>register accounts using other people's addresses</li> ... |
38,547,098 | 0 | <p>I disabled Javascript and visited <a href="https://www.searchiqs.com/nybro/" rel="nofollow noreferrer">https://www.searchiqs.com/nybro/</a> and the form looks like this:</p> <p><a href="https://i.stack.imgur.com/U8GZf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U8GZf.png" alt="enter image des... |
39,248,920 | 0 | missing parameter #2 in call error in CGRectIntersectsRect <p>I am writing a small game in swift, in which a boat has to go around obstacles. However, I keep getting this "missing argument for parameter #2 in call" error in CGRectInersectsRect. I have checked how to call it in the directory, and am calling it correctly... |
32,072,295 | 0 | How work jquery ui tabs using option selected <p>Is there a way to use option selected as Tab selector in <a href="https://jqueryui.com/tabs/" rel="nofollow">Jquery ui tabs</a>. I use Javascript to make select options looks like standard tab selectors but couldn`t inject to jquery tabs to replace original HTML lists se... |
4,815,002 | 0 | ASP.NET 4 routing question <p>I am trying to do the following in my Global.asax file:</p> <p>At the moment i have to define my route like this:</p> <pre><code>routes.MapPageRoute( "ViewPage", "pages/{slug}", "~/viewpage.aspx", false ); </code></pre> <p>Notice the word pages before the <code>{slug}</code></p> <p>Now if ... |
34,642,083 | 0 | Want to change the default wrapping behavior of char* in swig java <p>So there's this line in the swig documentation</p> <blockquote> <p>When <code>char *</code> members of a structure are wrapped, the contents are assumed to be dynamically allocated using malloc or new (depending on whether or not SWIG is run with the... |
26,378,441 | 0 | <p>Try with this:</p> <pre><code>RAISERROR('your message here',16,1) </code></pre> |
8,079,775 | 1 | Is it possible to open a file in shared mode without changing the file handler? <p>In Python I open a temporary file for write by using <a href="http://docs.python.org/library/tempfile.html" rel="nofollow"><code>tempfile.mkstemp</code></a> in order to be sure that the file is destroyed when released (even if applicatio... |
17,311,044 | 0 | <p>The true C99 way to do this is to have:</p> <pre><code>int f(int p[static 4]) { p[0] = 1; p[1] = 2; p[2] = 3; p[3] = 4; return c; } </code></pre> <p>The <code>static 4</code> inside the square brackets indicates to the compiler that the function expects an array of <em>at least</em> 4 elements. clang will issue a w... |
33,155,492 | 0 | <p>Here is a solution which I don't recommand but If you want to use <code>DbContext.Database</code>, here it is:</p> <pre><code>using(var db = new MyDbContext(connectionString)) { db.Database.ExecuteSqlCommand("CREATE PROCEDURE MyProcedure ... END;"); var command = "EXEC MyProcedure;"; IEnumerable<Customer> cus... |
10,429,570 | 0 | Can't install opencv from source <p>It's OpenCV-2.4.0</p> <pre><code>cd opencv mkdir release cd release cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON -D BUILD_EXAMPLES=ON .. make </code></pre> <p>Error:</p> <pre><code>In file included from OpenCV-2.4.0/modules/core/src/... |
2,031,722 | 0 | <p>Check Alex's answer in order to understand python decorators; by the way:</p> <p>1) what aren't you understanding of decorators? Don't you understand decorators as a general concept, or Python decorators? Beware, the "classical" decorator pattern, java annotations and python decorators are different things.</p> <p>... |
37,849,726 | 0 | <p>Here is a working version</p> <p>Changes:</p> <ul> <li>Added <code>$dbname</code> to <code>mysqli_connect</code> function</li> <li>Added the backtick ` char between the table names, to avoid errors with reserved keyword from MySQL</li> <li>Changed mysql_ functions to mysqli_</li> <li>Close the file</li> <li>Close t... |
13,172,514 | 0 | <p>You can call <a href="http://en.cppreference.com/w/cpp/string/basic_string/find"><code>std::string::find</code></a> in a loop and the use <a href="http://en.cppreference.com/w/cpp/string/basic_string/substr"><code>std::string::substr</code></a>.</p> <pre><code>std::vector<std::string> split_string(const std::... |
18,256,026 | 0 | PhantomJS exited unexpectedly with exit code -1073741819 <p>I run a bunch of Jasmine specs with PhantomJS (via Grunt) on a Windows 7 PC, and I happen to get the following error:</p> <pre><code>Testing jasmine specs via phantom ...... Running PhantomJS...ERROR >> 0 [ '' ] Warning: PhantomJS exited unexpectedly wit... |
6,032,228 | 0 | CurrencyManager alternative in vb.NET? <p>I am developing a VB.NET application in which I use a DataGrid; I can't use the newer DataGridView due to version. But now when I try to compile this, I get the error:</p> <blockquote> <p>BC30002: Type 'CurrencyManager' is not defined.</p> </blockquote> <p>It errors on line:</p... |
7,133,517 | 0 | <p>Please check out my edit. If you <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/JSON/stringify" rel="nofollow"><strong>JSON.stringify</strong></a> your object, then your code will work as you expect.</p> <pre><code>var gmarkers = {key: 'value'}; var ss = document.createElement('script... |
38,352,894 | 0 | android volume gain AudioTrack DatagramPacket <p>I need help to apply a volume gain on audio stream to increase the volume output of device.</p> <p>Here is some code of my app:</p> <pre><code>private static final int SAMPLE_RATE = 8000; // Hertz private static final int BUF_SIZE = 372; //Bytes </code></pre> <p>...</p> ... |
2,344,652 | 0 | <p>Do it in the <code>Session_Start</code> method in your <a href="http://msdn.microsoft.com/en-us/library/2027ewzw.aspx" rel="nofollow noreferrer">Global.asax</a> like so...</p> <pre><code>protected void Session_Start(object sender, EventArgs e) { Session["AttemptCount"]=new Hashtable(); } </code></pre> <p><strong>Up... |
22,700,203 | 1 | Python: default argument values vs global variables <p>I saw this default values usage in the Python's <a href="http://hg.python.org/cpython/file/2.7/Lib/Queue.py" rel="nofollow">Queue</a> module:</p> <pre><code>def _put(self, item, heappush=heapq.heappush): heappush(self.queue, item) def _get(self, heappop=heapq.heapp... |
40,006,652 | 1 | Passing an array where single value is expected? <p>I am trying to implement simple optimization problem in Python. I am currently struggling with the following error:</p> <p><strong>Value Error</strong>: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()</p> <p>As far as I unde... |
40,780,572 | 0 | mouseup event not firing on object tag in mac firefox <p>I have binded the mouseup event after mousedown. It works fine on all tags and browsers, but in mac firefox it behaves ambiguously. mouseup event is not firing over object tag on mac firefox but it works on firefox on windows. It want to stop dragging this object... |
16,806,480 | 0 | <p>For the second button add</p> <pre><code>android:id="@+id/button2" </code></pre> <p>and change</p> <pre><code>android:layout_alignLeft="@+id/button1" </code></pre> <p>to</p> <pre><code>android:layout_alignLeft="@id/button1" </code></pre> <p>Change your layout as follow:</p> <pre><code><RelativeLayout xmlns:andro... |
15,284,884 | 0 | How to access the local project file using java.nio.file.Path? <p>I am new to java.nio world.</p> <p>I have a log file app.log inside my Java module. (I am using Intellij 11).</p> <p>In a module, i have test folder, i have a local file app.jar.</p> <p>I want to read this file into InputStream using Files.newInputStream... |
10,275,468 | 0 | <p>Basically you're trying to change the property value during DataBinding. The problem is that WPF tries to be smart and not listen on property changes raised during DataBinding. This is a well know problem with numerous workarounds: </p> <ul> <li><a href="http://stackoverflow.com/questions/857116/change-value-in-set... |
31,500,034 | 0 | c# socket send file <p>im trying to use the <code>SendFile</code> method <a href="https://msdn.microsoft.com/en-us/library/sx0a40c2(v=vs.110).aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/sx0a40c2(v=vs.110).aspx</a></p> <pre><code> TcpClient client; private void Form1_Load(object sender, EventArgs e) { ... |
1,580,199 | 0 | Linq to Sql - Populate JOIN result into a List <p>I am not sure if this can be done, but here's the scenario.</p> <p>I want to turn this sql into linq:</p> <pre><code>SELECT * FROM Department d INNER JOIN Employee e ON e.DepartmentID = d.DepartmentID </code></pre> <p>Department - Employee is 1 to many relationship.</p>... |
3,637,416 | 0 | <p>Is this some kind of weird code-golf?</p> <p>Try this, it might work...</p> <pre><code>dpcom.library = function(name, func) { var p = name.split('.'), e, root = this; while (e = p.shift()) root = root[e] = root[e] || (!p.length ? func : {}); } </code></pre> |
3,485,308 | 0 | <p>mate... make the searchable columns into "fulltext" colums and then do</p> <p><code>SELECT * FROM books WHERE MATCH(fulltext_column) AGAINST('animal book a')</code></p> <p>best way. :) see <a href="http://devzone.zend.com/article/1304" rel="nofollow noreferrer">http://devzone.zend.com/article/1304</a></p> |
838,689 | 0 | <p>DataGrids represent actual DataItems.</p> <pre><code>DataGrid dg = new DataGrid(); dg.Items.Count; //Number of Items...i.e. Rows; dg.Items[0].Cells.Count; //Number of columns for that Items </code></pre> |
3,442,440 | 0 | <p>login to <a href="http://developer.apple.com" rel="nofollow noreferrer">the iphone developer portal</a> all the certificates/profiles can be found there or if in need be regenerated</p> |
6,049,179 | 0 | how to pass data from json to a php function? <pre><code>[registration] => Array ( [first_name] => test [location] => Array ( [name] => Santa Ana [id] => 1.08081209215E+14 ) [gender] => female [password] => 123654789 ) </code></pre> <p>and i need to insert that data into a database by using:</p> <p... |
40,846,559 | 0 | <p>You have flex-basis on content as 100%</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>html, body { height: 100%; margin: 0 } .box { display: flex; flex-flow: column; hei... |
16,047,252 | 0 | Identifying What Javascript is Running on a <span> through Chrome Inspector or Firebug <p>I am working on a site that has info being generated dynamically into <code><span></span></code> tags through jQuery. The span has a class of "Price" and an id of a Product Code and it's being generated from a JSON dat... |
7,910,927 | 0 | Unable to get windows login name of the user? <p>In my ASP.NET application deployed on an intranet, I am using something like this in a Web Service to get the Windows Login of the current user:</p> <pre><code>string user = User.Identity.Name.ToString(); </code></pre> <p>and added the following to my <code>Web.config</c... |
24,984,011 | 0 | using google maps api to show locations with multiple custom marker <p>I am a JavaScript newbie . i am currently experimenting with a small google map based task.i have a large set of latitude and longitudes, around thousand and for each set of latitude and longitude pair i have some value which is gained from some ser... |
24,825,303 | 0 | <p>You could make use of <a href="http://docs.oracle.com/javase/tutorial/reflect/" rel="nofollow">java reflection API</a> and call <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Class.html#getDeclaredFields--" rel="nofollow">Class#getDeclaredFields</a> to retrieve all fields in a class, iterate over the a... |
33,036,254 | 0 | Xamarin forms block user back key press <p>In my Xamarin forms application I want to show a confirmation message when user clicks the back button from Main-page. Is there any way to achieve this? I overrided the OnBackButtonPressed method in my MainPage. But still the app is closing while back key press. Here is my cod... |
30,356,086 | 0 | Divide by zero error sql <p>I get the divide by zero error using this:</p> <pre><code>Select Top 100 *, Case (a.value) When 0.0 Then Null Else ((cast(b.value as decimal) - cast(a.value as decimal))/cast(a.value as decimal)) * 100 End as 'Montly Price Change (%)' From AllProducts a Join AllProducts b On a.series_id=b.se... |
17,679,183 | 0 | <pre><code>private static List<string> wordsToRemove = "DE DA DAS DO DOS AN NAS NO NOS EM E A AS O OS AO AOS P LDA AND".Split(' ').ToList(); public static string StringWordsRemove(string stringToClean) { return string.Join(" ", stringToClean.Split(' ').Except(wordsToRemove)); } </code></pre> <p>Modification to h... |
30,185,003 | 0 | <p>Using</p> <pre><code>X500Name x500name = new JcaX509CertificateHolder(certificate).<b>getSubject</b>();</code></pre> <p>will give you more detailed output than <code>getIssuer()</code>.</p> |
11,788,545 | 0 | <p>Please use <a href="http://docs.jboss.org/hibernate/annotations/3.5/reference/en/html_single/" rel="nofollow">http://docs.jboss.org/hibernate/annotations/3.5/reference/en/html_single/</a> link for reference. But if you will tell what specific you are looking for I might be able to help you better. Here is little de... |
25,563,054 | 0 | <p>From those results, do you have <a href="http://en.wikipedia.org/wiki/D-Bus" rel="nofollow">d-bus daemon</a> installed? I don't know much about d-bus, but have you tried disabling it or modifying the config and then see if you can restart hivemq on port 1883.</p> |
34,084,730 | 0 | <p>Ok, got it working.</p> <p>When using Session State Server you have to call Server.ClearError() within Application_Error, otherwise the Request will be terminated and Session state will not be written.</p> <pre><code>void Application_Error(object sender, EventArgs e) { Exception ex = Server.GetLastError(); HttpCont... |
27,000,065 | 0 | <p>You haven't said what you want to achieve. I assume that you need that each of your instances react on a specific way, depending on a certain class variable.</p> <p>However, if you don't need a per-instance behaviour, then you can use static variables. The following works:</p> <pre><code>#include <iostream> u... |
21,974,222 | 0 | <p>Try this:</p> <pre><code>System.Windows.Forms.Cursor.Position = new Point { X = xxx, Y = yyy }; </code></pre> <p>Or try to use the native WinAPI for XP (or earlier):</p> <pre><code>[DllImport("user32.dll")] public static extern long SetCursorPos(int x, int y); public void SetCursorPosition(Point p) { SetCursorPos(p... |
10,263,478 | 0 | Is it possible to use inheritance in xsd with variable element order? <p>Is it possible to use inheritance in xsd with variable element order?</p> <p>Basically, something like this does not work, since "all" is not allowed inside "extension":</p> <pre><code><xs:complexType name="root"> <xs:complexContent> &... |
20,284,188 | 0 | How to get a layout size before it's displayed? <p>I inflate a layout containing an <code>ImageView</code> and a <code>RelativeLayout</code>. The layout has its width set to <code>match_parent</code> and its height set to <code>wrap_content</code>. The height is determined by the <code>ImageView</code>, but the image s... |
12,668,678 | 0 | <p>HTML</p> <pre><code><div class="main"> <div class="Parent"> </div> </div> </code></pre> <p>CSS</p> <pre><code>.Parent{ width:200px; height:100px; background:red; position:absolute; right:0; top:200px; } .main{ width:700px; margin:auto; height:1000px; background:blue; } </code></pre> <p> <a ... |
37,344,759 | 0 | <p>It really depends on what you are trying to keep.</p> <p><code>wp-config.php</code> stores your database connection details and a few other settings.</p> <p><code>wp-content</code> is the directory that stores all of your uploads and plugins. Essentially all of your uploaded content.</p> <p>The file and folder show... |
6,338,900 | 0 | UITextField autocomplete <p>Is it possible to autocomplete a UITextField bases on what is being entered? The reason why I need this is because I have a predefined set of words that the user needs to choose and the list is about 1000 item long. I want to display in UITableView and let the user chose but having 1k items ... |
4,125,090 | 0 | Windows 7, IE8: Creating CAxWindow finished with Access Denied error <p>I have Windows 7, and Internet Explorer 8, Visual Studio 2008. I need to create Active X window which will show page from other site. I try to create CAxWindow window while IE in Protected Mode. It returns Access Denied error (5) if current site is... |
28,526,405 | 0 | Remove duplicates according to data in 2 columns by priority in Excel <p>I am trying to remove duplicates in Excel by comparing 2 columns and by priority, meaning:</p> <p>I have priority by category such as cat 1 > cat 2 > cat 3 > cat 4</p> <p>And I want to match if some text that appears in column 2 and 4 matches any ... |
27,826,071 | 0 | How do I cancel orphaned NSUserNotifications on OS X? <p>I was doing some development with NSUserNotification in an OS X Yosemite app. It's all working great now, but in the process of development, I somehow orphaned scheduled daily NSUserNotifications on my system. Now I get notifications all day long that are unconne... |
26,075,248 | 0 | Why are not all images showing up in this slider? <p>Here is my code </p> <pre><code><!DOCTYPE html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script> $(document).ready(function() { var startSlider = function() { var start... |
30,893,418 | 1 | Django runserver from Python script <p>The normal way to start the Django server is to run the following command from a terminal or a bash script:</p> <pre><code>python manage.py runserver [Ip.addr]:[port] </code></pre> <p>e.g. </p> <pre><code>python manage.py runserver 0.0.0.0:8000 </code></pre> <p>How can I start a D... |
5,176,200 | 0 | <p>I've seen you already accepted an answer but there are two things here that I wanted to rectify:</p> <ol> <li>It's <em>not needed</em> to retain a scheduled timer but it doesn't do any harm (as long as you release it when it's no longer needed). The "problematic" part of a timer/target relationship is that...</li> ... |
37,374,718 | 1 | Error with pip install MySQL-python <p>I have been trying for a few days to fix this, looking at other questions but I can't find a question wth the same error that I am getting.</p> <p>I have been attempting to follow this tutorial <a href="https://realpython.com/learn/start-django/" rel="nofollow">https://realpython.... |
20,807,011 | 0 | <p>I figured it out myself. Instead of <code>/Revision:/</code>, use:</p> <pre><code>result=$(svn info $svn | awk '/^Last Changed Rev:/ { print $4 }') </code></pre> |
19,217,771 | 0 | What is localhost path for accessing server file in android?? <p>I want to send variable from <strong>android application</strong> to wamp server and retrieve data from server. Please suggest me and what is path of localhost for wamp server. I am using "<strong>localhost/TestAndroid/check.php</strong>". The error is oc... |
35,993,187 | 1 | xmpppy: how to get auth response from server <p>Upon registration attempt, server sends a message containing a token, which should later be passed in messages during the conversation. Something like</p> <pre><code>{ "from" : "jid@server", "to" : "jid@client", "type" : "token", "token" : "T0K3N" } </code></pre> <p>I tri... |
8,647,287 | 0 | Do not use this tag. Use [tomcat] instead. |
6,658,633 | 0 | Refreshing IE window automatically does not work in VB.Net <p>I have tried to write a simple function to bring an Internet Explorer windows to the foreground and then press F5 to refresh it using the dll function:</p> <pre><code> Declare Function SetForegroundWindow Lib "user32" (ByVal hwnd As Integer) As Integer </cod... |
13,665,631 | 0 | <p>You can initialize vectors this way:</p> <pre><code>vector<int> a(2,3); //vector a contains 2 elements: 3 and 3 a[0] = 4;//vector a contains 2 elements: 4 and 3 vector<int> b; b = a; </code></pre> <p>And there are some other ways you can check here: <a href="http://www.cplusplus.com/reference/vector/vec... |
25,268,581 | 0 | <p>PROBLEM: I had similar problem with a file created from other computer (a css in my case). To solve the problem I read that it is necessary to change the permissions but I don't know to do this on Windows so I try this alternative:</p> <p>SOLUTION: Open the file, copy the content and paste it in a new file, this ma... |
38,763,754 | 0 | <p>Cassandra table-schema details will be stored as meta data in system keyspaces. </p> <p>Cassandra snapshot just creates a copy of sstables for the requested keyspace/column_familes. So to restore the snapshot, you need to explicitly create the schema in destination cluster.</p> |
3,926,182 | 0 | <p>Yes, it's always good to have a known issues section; if nothing else, to keep your inbox empty of the same emails complaining about the same bugs you already know about.</p> |
20,094,692 | 0 | <p>It isn't <code>OFFSET</code> that stops this working - your basic <code>VLOOKUP</code> won't work because the "table array" needs to be 2 columns at least if you have the "col_index-num" as 2</p> <p>What are you trying to do with this formula?</p> <p><code>=VLOOKUP($B6,$C$30:$C$36,2,0)</code></p> <p>If you want to ... |
24,584,056 | 0 | How to insert a image in WordPress that will display on admin product image? <blockquote> <p>$insert = $wpdb->insert( $prefix."posts", array("post_title" => $posTitle,"post_content" => $postContent,"post_status" => "publish","post_type" =>"product"));</p> </blockquote> <p>I insert image path in wordpress posts table an... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.