pid
int64
2.28k
41.1M
label
int64
0
1
text
stringlengths
1
28.3k
30,783,336
0
Loading Image Animation only once <p>I have the following implementation and it is fully functional. I need to show loading animation image first time only, my current implementation it shows loading animation all the time.</p> <pre><code> var theDataSource = new kendo.data.DataSource({ transport: { read: function (op)...
2,011,537
0
<p>Check the rest of your javascript. <code>return false;</code> or <code>.preventDefault();</code> should do the trick. If they're not working, it usually means there's an error somewhere else in your js, and your browser never gets to that line of code.</p>
29,844,792
0
Dynamically setting bar graph values from a XML source <p>I got some great help parsing some RSS into a menu yesterday using jQuery <a href="http://stackoverflow.com/questions/29818858/parse-rss-title-into-html-using-javascript">Parse RSS feed with JS</a>, and inspired by this I would like to use something similar to c...
4,041,000
0
What is this error? (And why doesn't it occur in other classes?) <p>I'm trying to write a some container classes for implementing primary data structures in C++. The header file is here:</p> <pre><code>#ifndef LINKEDLIST1_H_ #define LINKEDLIST1_H_ #include &lt;iostream&gt; using namespace std; template&lt;class T&gt; c...
3,155,741
0
Free Editor for NAnt Scripting? <p>Is there any Free Editor for NAnt scripting with little bit of intelligence is fine....</p> <p><br/> nrk</p>
10,292,838
0
<ul> <li><p><strong>Shared hosting</strong>: check government requirements, I'm not in the health care field, but I'd be very surprised if there are no rules/laws governing storage of sensitive personal information. If credit cards/ecommerce has PCI DSS requirements, I would think health care data would have at least ...
16,370,364
0
<p>Here is an example of formatting your date to ISO 8601</p> <p><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date#Example.3A_ISO_8601_formatted_dates" rel="nofollow">https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date#Example.3A_ISO_8601_formatted...
10,450,991
0
asp.net mvc - Data lost on post back <p>I have a form that only has a checkbox. If the checkbox is not checked then the page won't be valid and won't submit the data. On the view I have out putted some fields from the model object, just to let the user know what they are deleting. When I click the Submit button and the...
10,997,143
0
django ajax and non-ajax templates <p>i have a django template - one that is normally loaded via a standard get request. However, i would also like to use this template for an ajax get. </p> <p>I know i can use request.is_ajax to distinguish the call, and thus work out <em>which</em> page i should serve - what i don't ...
20,873,730
0
<p>Perhaps it can be achieved by wrapping the <code>InputStream</code> in a <a href="http://docs.oracle.com/javase/7/docs/api/javax/swing/ProgressMonitorInputStream.html#ProgressMonitorInputStream%28java.awt.Component,%20java.lang.Object,%20java.io.InputStream%29" rel="nofollow"><code>ProgressMonitorInputStream</code>...
9,201,258
0
How to Detect when entering a password field <p>I am currently trying to debug an issue I've been experiencing with the program 'matchbox-keyboard'(http://matchbox-project.org/), and I'm hoping for some assistance. matchbox-keyboard is an on-screen keyboard that I am currently using in a touchscreen kiosk to allow user...
23,354,327
0
<p>First thing, you should fix up your markup, your nesting is wrong:</p> <pre><code>&lt;nav&gt; &lt;ul&gt; &lt;li id="menu_toggle"&gt;Menu&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Link 01&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Link 02&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Link 03&lt;/a&gt;&lt;/li&g...
16,220,532
0
<p>This seems to work: <a href="http://jsfiddle.net/QLn9b/1/" rel="nofollow">http://jsfiddle.net/QLn9b/1/</a></p> <p>It is using your original code:</p> <pre><code>$("select").change(function() { $("select").not(this).find("option[value="+ $(this).val() + "]").attr('disabled', true); }); </code></pre>
2,428,589
0
<pre><code>&lt;script type="text/javascript"&gt; function voimakaksikkoStats(obj) { alert(obj.TestsTaken); } &lt;/script&gt; &lt;script type="text/javascript" src="http://www.heiaheia.com/voimakaksikko/stats.json"&gt;&lt;/script&gt; </code></pre> <p>I never got it working with jQuery, but the simple code above solved ...
20,254,549
0
<p>I was able to make GWT work with libgdx simply by:</p> <ul> <li>downloading (<a href="http://www.gwtproject.org/download.html" rel="nofollow">http://www.gwtproject.org/download.html</a>) the GWT SDK,</li> <li>extracting it,</li> <li>then in the project structure -> <code>project-name-html</code> -> dependencies,</l...
33,240,205
1
Pass list of different named tuples to different csv by tuple name <p>I have a program in which I wish to record all major changes that occur. For example: each time a variable x changes in value record the time of the change and the change itself. Within the program there are many such changes and not all have the sam...
35,759,859
0
<p>If I assume that the values are unique in each column, then the key idea is doing a join on the <em>second</em> column in the table followed by aggregation.</p> <p>A <code>having</code> clause can count the number of matches and be sure that it matches the expected number in the first table:</p> <pre><code>select t...
25,691,983
0
<p>The reason why you are getting different results is the fact that your colour segmentation algorithm uses <a href="http://en.wikipedia.org/wiki/K-means_clustering" rel="nofollow"><em>k</em>-means clustering</a>. I'm going to assume you don't know what this is as someone familiar in how it works would instantly tell...
31,639,787
0
<p>Since your array is sorted, you can use <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Arrays.html#binarySearch(int[],%20int)" rel="nofollow">Arrays.binarySearch</a> which returns index of the element if it is present in the <code>array</code>, otherwise returns <code>-1</code>.</p> <pre><code>if(Array...
38,520,200
0
<blockquote> <p>In your Block file</p> </blockquote> <pre><code>namespace "Your Module namespace"; class modelclass extends \Magento\Framework\View\Element\Template { /** @var \Magento\Sales\Model\ResourceModel\Order\CollectionFactory */ protected $_orderCollectionFactory; /** @var \Magento\Sales\Model\ResourceModel\O...
39,333,857
0
<p>The variable <code>more</code> is only in scope inside the do while loop. One solution would be to declare more outside the loop and only update its value inside.</p> <p>Like this...</p> <pre><code>public static void main(String[] args) { Scanner input = new Scanner(System.in); String cont = "y"; String more = null...
4,567,218
0
C#:SerialPort: read and write buffer size <p>I am writing a program to send and receive data via a serial port with C#.</p> <p>Although I have read this reference: <a href="http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.readbuffersize.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/syst...
12,118,389
0
<p>If you have a 5 second animation and you stop it in the middle and then you restart the same animation with the same final point for the animation and you tell it to run for 5 seconds, it will go slower because it has less distance to go in the 5 seconds.</p> <p>If you want it to restart with the same speed it had ...
32,706,267
0
<p>There is only 1 <code>IFRAME</code> on the page so you can just find it by tag name. The page loaded very slowly for me but I'm in the US so that may have something to do with it. You may have to wait for the <code>IFRAME</code> to become available and then get a handle to it.</p>
7,545,226
0
CoreData (storing new object) in AppDelegate = SIGABRT <p>I've intented to make a simple function in AppDelegate to store some data in database (CoreData) which would be called from various <code>ViewController</code> classes connected do <code>AppDelegate</code>. This is the body of this function:</p> <pre><code>- (vo...
17,131,774
0
<p>Use <code>fields_for</code> for the associated models.<br> <strong>There should be no square brackets arround the parameters of <code>fields_for</code></strong></p> <p>In your code example, I cannot find the relation between <code>Patient</code> and <code>Diagnosis</code>, and the plural of diagnosis is <strong>dia...
22,312,293
0
<p>If I understand you correctly URL rewriting is not what you need. Why? Because mapping an external URL to some internal URL / alias is not going to help you serve the file.</p> <p>What you need is a way to have an external URL process a request and return the file in question. Luckily Drupal 7 makes this pretty eas...
3,069,644
0
<p>Created two scripts: one serializes it's arguments to a <code>[a-ZA-Z0-9=_]*</code> strings <a href="http://vi-server.org/vi/bin/serialize.sh" rel="nofollow noreferrer">http://vi-server.org/vi/bin/serialize.sh</a>, other starts this command line (with optional prepended arguments) <a href="http://vi-server.org/vi/b...
30,827,763
0
<p><code>View.OnClickListener</code> is an interface which you need to implement when you want to handle click events. In your code, you are doing that by doing <code>new View.OnClickListener()</code>. Here you are actually creating an anonymous class that implements <code>View.OnClickListener</code>. And any class th...
14,659,172
0
Perl script to split a file and process then concatenate based on size and a string <p>Could somebody help me to get some logic to following in perl I am using windows 7.</p> <p>C:\script>perl split_concatenate.pl large_file a or b (Input would be large file and value a or b to process it later).</p> <ol> <li>Check the...
4,607,943
0
PHP Image content type problem <p>I have a specific problem, and cant get over it.</p> <p>For my latest project I need a simple PHP script that display an image according to its ID sent through URL. Here's the code:</p> <pre><code>header("Content-type: image/jpeg"); $img = $_GET["img"]; echo file_get_contents("http://w...
12,524,453
0
Two Page Curl Effect in iPad <p>I am using the Leaves project to move from one pdf page to another it is working fine. Now the page curl is from left to right and from right to left like a note book. Now the effect was to turn a single page but i want to turn the two pages .one page has to display in left side and anot...
31,897,692
0
Reading byte array from files in Visual Basic <p>I have a code for Visual Basic programming language that reads byte array from files, I use that code:</p> <pre><code>Imports System.IO Imports System.Threading Public Class Form1 Dim thread As New Thread(AddressOf RW_EXE) Private Sub Button3_Click(ByVal sender As System...
36,948,772
0
Rails - Nested Forms will create, but information won't be saved <p>I've been struggling to get my nested form to save the users' inputs. The "outer" form saves the information perfectly. The "inner", or nested, one creates a new object, and passes hidden-field informations, but all other values are "nil".</p> <p>Each ...
29,665,446
0
<p>You can change the hostname value for key <code>IdentityProviderSSOServiceURL</code> in <code>repository/conf/security/authenticators.xml</code> file. </p>
23,054,234
0
<p>You have to initialize collection before using it like i.e.</p> <pre><code>following=new ArrayList&lt;IntWritable&gt;(); </code></pre> <p>You just declare following and tweets but not initialized it. </p>
28,557,144
0
Screenrecord causing phone framerate to drop <p>I have a nexus running Lollipop and I tried to use the new options available to screenrecord, </p> <p>I used </p> <pre><code>adb shell screenrecord --o raw-frames --bit-rate 4000000 /sdcard/output.raw </code></pre> <p>And the framerate went for a toss, the device became r...
25,551,516
0
<p>You are using an aggregate function <code>max</code> with out providing a grouping criteria so your table prices will be treated as one group and the results of query will be returned in indeterminate order means it will give you the max value for your criteria but it will not guarantee you to give the relevant dat...
20,683,123
0
<p>Make sure to use these commands in viewdidload [RMMapView class]; mapView.contents.tileSource = [[RMOpenStreetMapSource alloc] init];</p>
18,074,013
0
<p>The string that you get is just the JSON Object.toString(). It means that you get the JSON object, but in a String format.</p> <p>If you are supposed to get a JSON Object you can just put:</p> <pre><code>JSONObject myObject = new JSONObject(result); </code></pre>
17,292,402
0
Form submitting to wrong url in php <p>I am creating a simple registration form in html and submitting it via post method to register.php which is under a directory named controller. When I submit the form, it redirects to wrong URL.<br/> <strong>This is the form:</strong><br/></p> <pre><code>&lt;form action="controlle...
34,817,388
0
Rake stats not working <p>I'm trying to fetch some information about my project with rake stats but I'm getting the following </p> <pre><code>rake aborted! ArgumentError: invalid byte sequence in UTF-8 </code></pre> <p>When I run the command bundle exec rake stats with --trace, I get the following:</p> <pre><code>Argum...
5,075,586
0
<p>You could use <code>break;</code> but if you do you can't check return values (use <code>return;</code> or <code>return $bool;</code> for that).</p> <p>I think a construction like this would do:</p> <pre><code>.submit(function () { if (verifyInput()) { // continue } else { // show user there is something wrong } })...
35,083,537
0
<p>you can use <code>df.apply</code> which will apply each column with provided function, in this case counting missing value. This is what it looks like,</p> <p><code>df.apply(lambda x: x.isnull().value_counts())</code></p>
31,859,432
0
allow people to only alter certain values in an input JavaScipt <p>I have the following code</p> <pre><code>&lt;input id="startDate "type="text" name="courseDate" value="MM/YYYY" /&gt; </code></pre> <p>I was wondering how I could use JavaScript to ensure that a user can only edit the "MM" and "YYYY" in the textbox.</p>...
33,423,484
0
<p>CoreLocation offers a geocoder service (<a href="https://developer.apple.com/library/watchos/documentation/CoreLocation/Reference/CLGeocoder_class/index.html" rel="nofollow" title="CLGeocoder, Apple Documentation">CLGeocoder, Apple documentation)</a> that allows for translation back and forth between lat/lon coordi...
15,528,594
0
My View Controller gets deallocated when the app goes to the background <p>My View Controller class gets deallocated when the app goes to the background. I'm using ARC.</p> <p>I have a UIViewController that subscribes to a notifications when the app becomes active and executes a method. But once the app is about 30 sec...
10,142,446
0
Using private frameworks for QT in xcode 4.3 <p>The Mac QT Installer puts its shared libraries under <code>/Library/Frameworks/QtXXX.Framework</code>.<br> I'm building a QT application using a qmake-generated xcode project. I'd like to add these frameworks as private framewords inside my app bundle for easy deployment....
38,130,800
0
<p>I just created a blog post that hopefully answers your question about projecting the points onto a solid.</p> <p><a href="http://modthemachine.typepad.com/my_weblog/2016/06/projecting-points-onto-a-solid.html" rel="nofollow">http://modthemachine.typepad.com/my_weblog/2016/06/projecting-points-onto-a-solid.html</a><...
16,656,904
0
inserting multiple rows in sqlite using implode <p>I have tried to insert multiple rows but got empty rows in database and other errors. So,tried to use implode (as a better alternative?) but must be doing something wrong here.</p> <pre><code>$sql = array(); foreach($_POST as $key =&gt; $value ) { $sql[] = '("'.sqlite_...
14,318,552
0
Need to redirect 404 to the home page. <p>I only have one 404 left and have no idea how to fix it. So I need to redirect that single page to the home page. </p> <p>I need <a href="http://www.name.co.uk/blog/wp-includes/js/tinymce/plugins/wordpress/img/trans.gif" rel="nofollow">http://www.name.co.uk/blog/wp-includes/js/...
38,486,562
0
<p>I had similar issues recently, also with a site hosted on Azure though I don't think that was the cause. Found out the CORS error was somehow being triggered by SQL timeout exceptions because our stored procedures were processing huge amounts of data and it was taking too long. Sped up some of the procs and most of...
23,557,718
0
<pre><code>SELECT AcId, AcName, PldepPer, RepId, CustCatg, HardCode, BlockCust, CrPeriod, CrLimit, BillLimit, Mode, PNotes, gtab82.memno FROM VCustomer AS v1 INNER JOIN gtab82 ON gtab82.memacid = v1.AcId WHERE (AcGrCode = '204' OR CreDebt = 'True') AND Masked = 'false' ORDER BY AcName </code></pre> <p>You typically on...
12,476,557
0
How do I get data from requested server page? <p>I got two php pages: <strong>client.php</strong> and <strong>server.php</strong></p> <p><strong>server.php</strong> is on my web server and what it does is open my amazon product page and get price data and serialize it and return it to <strong>client.php</strong>.</p> <...
4,335,306
0
<p>You can use a <code>TemplateField</code>, and, inside it something like this:</p> <pre><code>&lt;asp:Image runat="server" id="myImg" ImageUrl='&lt;%# GetImage(DataBinder.Eval(Container.DataItem, "b_attach")) &gt;%' visible='&lt;%# null != DataBinder.Eval(Container.DataItem, "b_attach") %&gt; /&gt; </code></pre>
2,182,911
0
<p><strong>It's easy to know what to charge your customer.</strong> This is alway the biggest problems for us, because we don't know the scope of the project we can't give the customer a fixed price, and most customers demands a fixed price. </p>
24,636,491
0
<style> not working as intended for <table> on Outlook 2007 <h1> Problematic </h1> <p>&lt; style> tags don't seem to work properly in an Email sent to Outlook 2007.</p> <h1> Context </h1> <p>I use an asp.net server to send an Email with a table. This table has the inputs that the client entered.</p> <h2> What it should...
35,693,478
1
Create data by combining query results in Django <p>I have a 1-n relation in my models, e.g., 1 classroom - n students. </p> <pre><code>Classroom 1 - Joe Classroom 1 - Tim Classroom 1 - Julia Classroom 2 - Bob Classroom 2 - Alice </code></pre> <p>In my view I want to show a row for each classroom and a comma separated ...
26,934,580
0
<p>Try this.....</p> <pre><code>SELECT username ,count(CASE WHEN tblCall.started_at BETWEEN '2014-11-10 00:00:00' AND '2014-11-10 23:00:00' THEN tblCall.call_id ELSE NULL END) AS [10-11-2014] ,count(CASE WHEN tblCall.started_at BETWEEN '2014-11-11 00:00:00' AND '2014-11-11 23:00:00' THEN tblCall.call_id ELSE NULL END)...
30,988,049
0
mustache populate JSON object error <p>I have code below. I need to populate a JSON object using mustache. Unfortunately, it shows nothing to me. </p> <pre><code> &lt;script type="text/javascript"&gt; var data = "[{"PR_ID":23096,"P_ID":23014},{"PR_ID":33232,"P_ID":23014},{"PR_ID":33308,"P_ID":23014},{"PR_ID":33309,"P_I...
36,964,253
0
Should Core Data Stack inherit from NSObject and why? <p>Recently it is practice to move the core data stack implementation from the app delegate to a different class. In most implementations I see that the core data stack inherits from NSObject, even in Apple's documentation. </p> <ol> <li>Is there a reason for that? ...
30,083,621
0
<p>Your <code>ClickListener</code> is an inner non-static class the coupling of this 'has-a' is no different than if your class <code>Activity</code> implemented <code>View.OnClickListener</code>. This is because your inner <code>ClickListener</code> requires an instance of <code>ActivityMain</code> and really can't b...
15,598,057
0
<p>OK I found it,</p> <p>The error was the <strong>ColumnSeries</strong> was missing the <strong>Title</strong> attribute, like this:</p> <pre><code>&lt;charting:Chart Name="columnChart" Grid.Row="1" Grid.Column="1" Width="400" Height="400"&gt; &lt;charting:Chart.Series&gt; &lt;charting:ColumnSeries Title="Chart Title...
1,518,182
0
<p><strong>#ifdef</strong> is short for <strong>#if defined</strong> and I think you don't need parenthesis on neither, so basically they are the same. </p> <p>Coming from Turbo C, I'm used to looking at <strong>#ifdef</strong> rather than <strong>#if defined</strong></p>
40,639,337
0
Parse Platform - Retrieve relations in object <p>Okay, so I am really quite familiar with Parse and have used most features in daily development. However, now I need to work with some many-to-many relationships and can't seem to get it to work right. I've tried reading several posts on Stack... but no luck.</p> <p>Any ...
33,296,297
0
<p>I think that what you are looking for are <a href="http://guides.emberjs.com/v2.1.0/templates/writing-helpers/#toc_class-based-helpers" rel="nofollow">class-based helpers</a>. You might have trouble with the resetting of the value, so keep an eye open for alternative solutions.</p>
20,399,116
0
Fastest way to retreive data from database <p>I am working on a ASP.NET project with C# and Sql Server 2008.</p> <p>I have three tables:</p> <p><img src="https://i.stack.imgur.com/2bGzV.png" alt="Users"> <img src="https://i.stack.imgur.com/4OXWK.png" alt="DataFields"> <img src="https://i.stack.imgur.com/tH8nI.png" alt=...
37,907,423
1
Pickle Trained Classifier Only Return 1 Predicted Label to All Test Data <p>I'm having trouble about pickle trained classifier. I pickled a classifier that I trained using 8000 training tweets. each tweet has been labeled with 1 out of 4 labels (Health, Music, Sport and Technology) when I tried using the pickle trained...
19,468,850
0
<p>You can accomplish the feat with limma, also. See the example below.</p> <p>The idea is basically exactly the same as in the code you have posted, but it has not been wrapped into a function (and is therefore possibly slightly easier to debug). </p> <p>Do you get it to work with the code below? If not, please post ...
15,954,472
0
<p>You have the correct number of dashes, you just aren't printing out the number correctly. Let's examine why that is:</p> <p>Which loop prints out the numbers? The 2nd nested for loop.</p> <p>What does it do? It prints out <code>j</code> where <code>j</code> ranges from <code>1</code> to <code>9</code> and <code>j</...
882,394
0
<p>You <em>might</em> be able to load Flash 8 into Flash 10 but I would be very surprised if the reverse is true.</p>
12,427,866
0
ASP.NET MVC 3, Ajax.BeginForm, OnBegin and form validation <p>I am using Ajax.BeginForm and wish to pass in parameters to the function called with OnBegin. The following are two code snippets.</p> <pre><code>new AjaxOptions { HttpMethod = "POST", UpdateTargetId = "DataEntrySummary", OnBegin = "ValidateForm(11,55)" } fu...
1,757,599
0
<p>Are you already doing logging, and would you simply be adding the IP address in to your existing log entries? If so, this wouldn't make a major impact. It's resolving IP addresses to names that would make a performance impact.</p>
4,088,082
0
Store input from a text field in a PHP variable <p>Store the users input from a text field in a variable. Any ways to do this?</p>
27,103,390
0
Entity Framework adds Default value by itself <p>i have the following table definition (trimmed):</p> <pre><code>CREATE TABLE `mt_user` ( `Id` int(10) unsigned NOT NULL AUTO_INCREMENT, `dtUpdated` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `idUpdatedBy` int(10) unsigned NOT NULL, `dtCreate...
36,041,070
0
Weight search in boolean mode with union mysql <p>I am using this query to search across multiple tables, which is working however I want to weigh matches to the column "title" higher than matches to the column description.</p> <pre><code>SELECT 'about' AS a.about,title,null article ,null description FROM about a WHERE...
4,713,895
0
<p>I think that in any case it would be better to use GIN (Guice for GWT) and its @Singleton annotation. But I am not sure it will solve your problem.</p>
1,915,189
0
<p>Yes. But you need to do an p4 integrate to get the files over. That is what p4v "copy or rename" does. Use the rename option, that also deletes the old files.</p>
3,972,092
0
SQL Server - can I load MDF without LDF file without losing data? <p>I have a backup database file (i.e. test.mdf), however, I don't have the LDF file. I was told that SQL Server 2008 R2 can load MDF without LDF.</p> <p>Is that true?</p> <p>Thank you</p>
1,279,406
0
<p>If it is a webapp they need to log into I would just restrict a user from being logged in more than once at a time. Other than that would wouldn't want to restrict their opening of the actual window</p>
12,800,801
0
<p>Using a HEAD request, you can do something like this:</p> <pre><code>private int getFileSize(URL url) { HttpURLConnection conn = null; try { conn = (HttpURLConnection) url.openConnection(); conn.setRequestMethod("HEAD"); conn.getInputStream(); return conn.getContentLength(); } catch (IOException e) { return -1; } f...
31,067,817
0
<p>It is a bad idea, but if you change the <code>private</code> variable to a <code>public</code> one, you will achieve your goal. You probably should declare the variable as <code>final</code> as well to avoid surprises, but it is not strictly necessary, and doesn't make it a good idea (IMO).</p> <p>For what it is wo...
1,910,301
0
<p>I have recently implemented DAWG for a wordgame playing program. It uses a dictionary consisting of 2,7 million words from Polish language. Source plain text file is about 33MB in size. The same word list represented as DAWG in binary file takes only 5MB. Actual size may vary, as it depends on implementation, so nu...
12,483,886
0
<p>Use File System Tasks:</p> <p>Create a variable called RmtArchPath (string)</p> <p>Set its value with the expression:</p> <blockquote> <p>"\\\\Remote_folder\\" + (DT_WSTR,4)YEAR(GETDATE()) + "-" + RIGHT("0" + (DT_WSTR,2)MONTH(GETDATE()), 2) + "-" + RIGHT("0" + (DT_WSTR,2)DAY( GETDATE()), 2) + "\\"</p> </blockquote>...
6,031,856
0
<p>Okay I thought it all over.. and basically if i do understand correct you want the sum for each distinct set. </p> <blockquote> <p>So not 34 + 34 + 34 + 23 + 23 + 23 + 43 + 43 + 43 ... BUT 34 + 23 + 43</p> </blockquote> <p>In order to that you need to trick MySQL with the following query : </p> <pre><code>SELECT SU...
13,135,501
0
<p>You don't have access to the right image as far my knowledge, unless you override the <code>onTouch</code> event. I suggest to use a <code>RelativeLayout</code>, with one <code>editText</code> and one <code>imageView</code>, and set <code>OnClickListener</code> over the image view as below:</p> <pre><code>&lt;Relat...
13,410,856
0
How to read JSON response from Google web services in Javascript? <p>I am trying to find the distance between two locations. For that I used Google web services. I got a JSON response from that web service, but I am unable to get the distance from that JSON response in a javascript function.</p> <p>See my code below:</...
16,003,170
0
<p>First, you never want to do default initializations in calling code, you can create a constructor for your struct and do it there:</p> <pre><code>struct Neuron { Neuron() : activation(0.0), bias(0.0), incomingWeights(0) {} double activation; double bias; double *incomingWeights; }; </code></pre> <p>Then (since this...
38,683,420
0
Show hide marker using circle points openlayers 3 <p>How to show hide markers (P icon) using circle points (something like point1.distanceTo(point2))</p> <p>need to show markers If markers comes inside the circle another hide it (currently changing circle radius through slider) </p> <p><div class="snippet" data-lang="j...
21,726,409
0
PostgreSQL - change precision of numeric? <p>I tried to change precision like this:</p> <pre><code>ALTER Table account_invoice ALTER amount_total SET NUMERIC(5); </code></pre> <p>But I get syntax error, so I'm clearly doing something wrong. What is the right syntax to change precision of numeric in PostgreSQL?</p>
1,360,208
0
<p>For a more complete example that performs key derivation in addition to the AES encryption, see the answer and links posted in <a href="http://stackoverflow.com/questions/1149611/getting-slowaes-and-rijndaelmanaged-class-in-net-to-play-together">Getting AES encryption to work across Javascript and C#</a>. </p> <p><...
26,373,691
0
<p>Turns out I can't upload images to heroku.</p> <p>I have decided to use cloudinary for the time being.</p> <p>I will probably switch to S3 eventually.</p>
2,057,531
0
<ol> <li>It's a concept available on C++ (but not exclusively)</li> <li>No, it is not available in standard C.</li> <li><strike>See 1 and 2.</strike> See *1 and *2.</li> </ol>
5,866,775
0
<p>One simple way to solve this is to use some kind of a scheduled (cron...) job to delete any orphaned parents. Rather than doing it when deleting children.</p>
22,548,875
0
<p>I assume you have implemented a Jingle client. In order to make this work you should make sure that:</p> <ul> <li>Openfire (acting as a Media Proxy as well) is running on a computer with a public IP, so that each client behind any NAT can "talk" to it</li> <li>Your client media engine does support <a href="https://...
35,082,335
0
Looping through dynamic JSON data using javascript <p>I am trying to display JSON data but the key value is dynamic it varies from one POST request to another my data hierarchy is as shown in diagram:</p> <p><a href="https://i.stack.imgur.com/tPCQa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tPCQ...
26,743,684
0
<p>Did you want just the current domain, or the domain with parent domains included?</p> <p>Current Domain Name:</p> <pre class="lang-powershell prettyprint-override"><code>Import-Module ActiveDirectory $name = Get-ADDomain | Select -ExpandProperty NetBIOSName Get-ADObject -Filter 'objectclass -eq "user"' -Properties ...
15,841,045
0
<p>You want to search and replace with the empty string using this regex:</p> <pre><code>\^([^^]*?)(?=[.,:;?"' ]) </code></pre> <p>You can see which portions you will be replacing, as well as a detailed visual of what's going on with the regex, on <a href="http://www.debuggex.com/?re=%5C%5E%28%5B%5E%5E%5D%2a?%29%28?=%...
39,687,070
0
id3js in giving RangeError: Offset is outside the bounds of the DataView <p>I'm trying to move bulk mp3 files from one directory to other directory and renaming them on the basis of their name/title/album name. I'm using id3js for finding its id3 values:</p> <p>My code snippet as follows:</p> <pre><code>let files = [];...
4,168,408
0
Can I produce native executables with OCamlBuild which can run in computers which don't have OCaml libraries? <p>I have a large OCaml project which I am compiling with ocamlbuild. Everything works fine, I have a great executable which does everything as I want. The problem is that when I take that native executable "my...