pid
int64
2.28k
41.1M
label
int64
0
1
text
stringlengths
1
28.3k
3,593,691
0
<p>You can't. </p> <p>$3.4.2/2-</p> <p><code>'If T is a fundamental type, its associated sets of namespaces and classes are both empty.</code></p> <p>This means that fundamental types do not have any namespace associated with them.</p> <p>So you can't even say ::int for this reason.</p>
10,211,374
0
<p>This should do the trick:</p> <pre><code>$(".myform :input").length; </code></pre>
26,130,773
0
Make all action methods of a controller ChildActionOnly <p>Instead of having to remember to decorate a bunch of action methods with the <code>ChildActionOnly</code> attribute, it would be convenient to be able to specify all methods in an entire controller as such.</p> <p>Trying to put the <code>ChildActionOnly</code> ...
19,471,061
0
android how to change the app_name dynamically <p>Is it possible to change the app_name value in String.xml? not just setTitle();</p> <p>I know there is a difference of languages may have mutiple xml files but i still want to change the </p> <pre><code>&lt;string name="app_name"&gt;MyApp&lt;/string&gt; </code></pre> <p...
17,806,368
0
<p>I got it i am using this simple format its working fine Thank you .</p> <pre><code>myTextView.setText(Html.fromHtml("&lt;h2&gt;Title&lt;/h2&gt;&lt;br&gt;&lt;p&gt;Description here&lt;/p&gt;")); </code></pre>
21,291,491
0
<p>Order matters in the Augeas tree. In that case, XML node attributes need to be set before the <code>#text</code> node and the child nodes.</p> <p>So what you need is:</p> <pre><code>ins #attribute before /files/test.xml/Context/#text set /files/test.xml/Context/#attribute/allowLinking true </code></pre> <p>Note tha...
21,841,722
0
<p>You should be able to do the following with jQuery:</p> <pre><code>$('h1').html('&lt;a href="#"&gt;' + $('h1').text() + '&lt;/a&gt;'); </code></pre> <p>or for multiple headers</p> <pre><code>$('h1').each(function() { $(this).html('&lt;a href="#"&gt;' + $(this).text() + '&lt;/a&gt;'); }); </code></pre>
15,531,296
0
PHP - Find/Replace Text in RTF/txt files <p>I'm running into an issue with finding specific text and replacing it with alternative text. I'm testing my code below with <code>.rtf</code> and <code>.txt</code> files only. I'm also ensuring the files are writable, from within my server. </p> <p>It's a hit and miss situati...
16,539,025
0
<p>If your webapps (or most of them) MUST share the same libraries with the same version (i.e. Database driver or SPI ObjectFactories) you should share them in $TOMCAT_HOME/lib. If there is no solid reason for share libs keep them in their webapp's classloader.</p>
23,356,395
0
<p>Use <code>isEqualTo:</code> instead of <code>==</code>.</p>
29,685,062
0
<p>Another solution is to animate the bounds change.</p> <p>There are a few ways, but here's a simple subclass of <code>UITextView</code> which does exactly this.</p> <pre><code>import Foundation import UIKit import QuartzCore class SmoothTextView : UITextView { override func actionForLayer(layer: CALayer!, forKey key...
10,273,202
0
<p>Be sure you are using the same name (case-Sensitive) in Birds Detail View Controller -> Identity Inspector -> Class. "name" with the code in birdsDetailViewController.h: "@interface "name" : UITableViewControlle"</p>
25,467,769
0
CGRect rect = [self rectForMapRect:mapRect]; depraceted <p>I have this code here:</p> <pre><code>CGRect rect = [self rectForMapRect:mapRect]; </code></pre> <p>This gives me a deprecated warning. In order to keep things clean, I wanna make it with actual code, but I don't know how. Could anyone tell me how?</p> <p>Here ...
29,465,163
0
<p>You'd want to post the data you've received over to a php script via an ajax call. </p> <p>Here's just an example, but you should be able to work with it from there:</p> <pre><code>$(document).ready(function(){ $("#submit").click(function(){ var name = $("#name").val(); var email = $("#email").val(); var password =...
966,224
0
<p>If you're the vendor supporting a web application which your customer insists upon using with IE6 rather than an updated browser, I'd say try to offer them upgrade incentives (e.g. lower support contract fees, a one-time renewal discount, or some "enhanced" feature set which would magically be enabled once they upg...
5,866,921
0
<blockquote> <p>I am led understand that when the function ends the pointer is lost, but will the array still be sent?</p> </blockquote> <p>The behavior is undefined. </p> <blockquote> <p>what is a good way to return this integer array with no arguments in the function call?</p> </blockquote> <pre><code>int nums[8]; <...
38,111,375
0
Why HTML link did not look like a bootstrap Cancel button <p>I needed a HTML link but need it to look like a bootstrap cancel button. So I wrote this:</p> <pre><code>@Html.ActionLink("Cancel", "Login", new {@class = "btn btn-secondary"}) </code></pre> <p>but did not work! It does NOT look like a button at all. It is ju...
26,279,698
0
<p>With this code</p> <pre><code>window.onscroll = function (event) { var amount = window.pageYOffset + "px"; document.getElementById("cover").style.left = amount; } </code></pre> <p>You can achieve it.</p> <p>Working Fiddle: <a href="http://jsfiddle.net/sLse3fez/" rel="nofollow">Fiddle</a></p>
39,845,227
0
<p>Try this</p> <pre><code>var gus = '{{userrole}}'; </code></pre>
25,348,649
0
IE BHO - DISPID_FILEDOWNLOAD being called for page loads? <p>I am implementing an Internet Explorer Browser Helper Object that should catch the <strong>DISPID_FILEDOWNLOAD</strong> event.</p> <p>I first implemented this in C# which worked great except that I also need the cookies that go with the URL so need to call In...
908,639
0
<p>Personally, I'd combine method two and three: Just create a generic XML document using reflection, say:</p> <pre><code>&lt;object type="xxxx"&gt; &lt;property name="ttt" value="vvv"/&gt; ... &lt;/object&gt; </code></pre> <p>and use an XSTL stylesheet to create the actual HTML from this.</p>
20,228,583
0
Symfony2 form type entity: Option is not selected <p>I use a Symfony2 (2.3) entity form type to load the options of a HTML select from a Doctrine entity:</p> <p>Class RoomFacilityType:</p> <pre><code>public function buildForm(FormBuilderInterface $builder, array $options) { $builder-&gt;add('title', 'text', array('labe...
29,442,452
0
parse cloud code job : delete rows that have been in DB for an hour <p>I'm using parse as a mobile backend for an ios app I'm developing. I know its probably not a permanent solution but for what I'm doing right now it gives me good test results. I need to create a cloud code job which will remove all the rows with ent...
18,272,796
0
xslt not showing results. xpath or ns wrong? <p>i have the following xml and xslt to render it, but got no results. I checked again and again and see not path problem, and the xsl went through the compiler. so I am not sure if it's namespace problem or something else. many thx! </p> <p>XML file</p> <pre><code>&lt;?xml ...
11,283,433
0
<p>They reduce reusability in much the same way that global variables do: when you method's computations depend on state which is external to the method, but not passed as parameters (i.e. class fields for example), your method is less reusable, because it's tightly coupled to the state of the object/class in which it...
30,040,853
0
Swift - Getting address from coordinates <p>I have a local search that creates annotations for each search result. I'm trying to add an call out accessory to each of the annotations, and once that will be pressed, the Maps app will open and set directions on how to get to the certain location.</p> <p>The problem that I...
27,818,147
0
<p>Try this, it's working for me.</p> <pre><code>UPDATE Team SET GroupID = CAST(RAND(CHECKSUM(NEWID()))*10000000 AS INT) WHERE GroupID IN (SELECT GroupID FROM Team GROUP BY GroupID HAVING COUNT(GroupID)&lt;4) </code></pre> <p>This code ensures random values are assigned for all GroupId's in Team table AND no GroupID w...
12,692,498
0
Can focused Google Maps markers be styled? <p>I have this <a href="http://fiddle.jshell.net/NXhP4/" rel="nofollow">form where you can enter a location</a>, which (if Google can find it) is shown as a marker on a map. Basically I have a Google map with a marker embedded in a form; the map is surrounded with input fields...
32,192,341
0
g++ undefined reference to `main' <p>I have a gcc 5.2.0 configured as follows :</p> <pre><code>Using built-in specs. COLLECT_GCC=gcc-5.2.0 COLLECT_LTO_WRAPPER=/usr/local/lvm/gcc-5.2.0/libexec/gcc/x86_64-unknown-linux-gnu/5.2.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../configure --prefix=/usr/loca...
8,198,576
0
cookie produced based on select list <p>Ok so I have this jsFiddle I have worked on to produce a slide down effect on a div based on the select. I need to produce a cookie when the selection is made so when the page is reloaded, the div remains open. Not sure how to produce this effect in the code. Any help is really a...
38,760,027
0
<p>Something obvious found ;-) </p> <p>Don't import from </p> <pre><code>import { ROUTER_PROVIDERS } from '@angular/router-deprecated'; </code></pre> <p>use instead</p> <pre><code>import { ROUTER_PROVIDERS } from '@angular/router'; </code></pre> <p>You might also need to fix your systemjs config.</p>
12,905,929
0
<blockquote> <p><em>Python should have permission to read and write files in its installation folder</em></p> </blockquote> <p>That's not actually true. Permissions are resolved on Windows not by the program that is running, but the <em>user account</em> which is doing the action. So the answer is that <em>your user a...
15,550,431
0
<p>There are many ways to solve it, one is by using a subquery which separately gets the one record for every district. Since you haven't mentioned your RDBMS that you are using, this will work on almost all RDBMS.</p> <pre><code>SELECT a.* FROM tableName a INNER JOIN ( SELECT district, MAX(longitude) max_val FROM tab...
2,470,465
0
How can I get the high-res mtime for a symbolic link in Perl? <p>I want to reproduce the output of <code>ls --full-time</code> from a Perl script to avoid the overhead of calling <code>ls</code> several thousand times. I was hoping to use the <a href="http://perldoc.perl.org/functions/stat.html" rel="nofollow noreferre...
4,316,876
0
<p>I think that you should compare every character (A) of every name against the corresponding character (B) of all the other names, then, eventually, swap the two names if B and all characters preceding it are smaller than A and characters before. Right now that's my only idea but I can't translate it in code, I shou...
30,656,197
0
How to get Jackson to use a Google Guice Injector to create instances? <p>We use Google Guice for DI (mostly with constructor injection) and Jackson for object serialization to/from JSON. As such we build our object graph through Guice Modules.</p> <p>How do we provide/instruct Jackson to use our pre-built Guice Inject...
485,686
0
<p>I don't know any <strong>Django module</strong> which would offer what you want (at least wiki i.e. editable text with some lightweight markip language, coupled with version control system), but you can take a look at <a href="http://git.or.cz/gitwiki/InterfacesFrontendsAndTools" rel="nofollow noreferrer">Interface...
39,674,698
0
<p>This is reason :</p> <p>Grails is a mix of many frameworks, spring, hibernate etc. All the frameworks are included and you need them as they are the baseline of grails every grails application comes with many plugins by default (look into your BuildConfig.groovy): cache, asset, scaffolding etc. Every plugin has the...
35,679,688
0
<p>There is also the DOM way of doing this in JavaScript:</p> <pre><code>// Create a div and set class var new_row = document.createElement("div"); new_row.setAttribute("class", "aClassName" ); // Add some text new_row.appendChild( document.createTextNode("Some text") ); // Add it to the document body document.body.ap...
32,228,917
0
Get an array of integer with Laravel query builder <p>I have this query :</p> <pre><code>$inError = DB::table('errors') -&gt;select('fk_fact') -&gt;distinct() -&gt;get(); </code></pre> <p>And I want it to return an array of integers instead of returning an array of objects, I don't want to loop over all the results and...
31,391,581
0
How to bind multiple struct fields without getting "use moved value" error? <p>I'm trying to code a generic list as an exercise - I know it's already supported by the syntax, I'm just trying to see if I can code a recursive data structure. As it turns out, I can't. I'm hitting a wall when I want to access more than one...
14,874,797
0
Regex to remove footer text with line breaks <p>I am hoping this is quite simple... I am trying to remove a footer from a block of text using a regular expression, this includes the two initial line breaks which is where my problem lies.</p> <pre><code> Message body blah blah balh {Line Break} {Line Break} ------------...
39,884,212
0
<p>Basic pseudocode to generate and return csv:</p> <pre><code>import csv from django.http import HttpResponse def csv(self): response = HttpResponse(content_type='text/csv') filename = u"fizzer.csv" response['Content-Disposition'] = u'attachment; filename="{0}"'.format(filename) writer = csv.writer( response, delimit...
22,843,956
0
<p>You can just add an argument to your main template that tells it whether or not to add the error stylesheet and script. Your main template handles the conditional statement and your other views just pass a true/false.</p> <p><strong>main.scala.html</strong></p> <pre><code>@(title: String, active: Int, hasErrors: Bo...
4,999,705
0
How can a single form_for work for new, update and edit? <p>In rails 3, is it possible to create a form_for that works for both new, update and edit actions?</p> <p>If yes, how do I do this?</p> <p>I have a admin section so my urls look like:</p> <pre><code>/admin/posts/ {new,update, edit} </code></pre>
2,025,388
0
<p>Have a look at <a href="http://tapestry.apache.org/" rel="nofollow noreferrer">tapestry</a> web-framework. from code-quality perspective one of the best pieces of code i have seen! it uses both unit-tests and integration-tests (selenium driven). they are nicely integrated with maven so you can just run them locally...
38,335,627
0
Hadoop Kerberos Usercase understanding <p>I have configured Kerberos with Hadoop. I'm facing difficulty in mapping the Kerberos architecture and whole flow of authentication to my application. Following is my usecase:</p> <p>We have a web application that calls backend services, which communicates with Hadoop ecosystem...
40,616,581
0
Restart Node.js Server after Post Request <p>Is there any way to have your Node.js server restart after completing a POST request? The reason being that API data doesn't persist on the client side when I refresh the browser until the server restarts. </p> <p>So is there any way to programmatically do this? I've been se...
2,176,210
0
<p>You are fetching a JavaScript snippet that is supposed to be built in directly into the document, not queried by a script. The code inside is JavaScript.</p> <p>You could pull out the code using a regular expression, but I would advise against it. First, it's probably not legal to do. Second, the format of the data...
25,717,091
0
<p>I ran across this issue and the above solution didn't fix it. It was because you need to make sure you are using NSTimeInterval for both duration and delay as well. So the solution above is correct, but make sure you are using the correct argument types for all parameters.</p>
22,982,007
0
<p>Under windows, any perl operation that internally tries to test a file or directory for existence uses the Win32 function <code>CreateFile</code>. Under windows a filename ending in spaces is not legal (although not clearly documented), and for some strange reason the <code>CreateFile</code> function internally str...
2,934,140
0
How can I make named_scope in Rails return one value instead of an array? <p>I want to write a <a href="http://rails.rubyonrails.org/classes/ActiveRecord/NamedScope/ClassMethods.html#M001684" rel="nofollow noreferrer">named scope</a> to get a record from its id. </p> <p>For example, I have a model called <code>Event</c...
6,190,067
0
<p>Your communication classes shouldn't care what happens to the data they receive. Instead, they should either make the data available to a class that wants it. One way to do so would be to provide a getData() method, which received data and then returned it to the caller. Even better would be to provide a DataArrive...
35,508,005
0
<p>Thank to @glennjackman, with <code>od -c myscript</code>, I saw some <code>302</code> &amp; <code>240</code> characters (non-ASCII), and it was the problem :) I just don't understand how these characters can appear... Anyway, thank you very much.</p>
13,731,499
0
Content-Length http header stripped out on Sprint 3G network <p>I have a server I am communicating with and I get a Content-Length header in the response when I connect with my iPhone 4S via WiFi, or via Web Browser. If I disable WiFi and use my Sprint 3G connection on my iPhone 4S, the Content-Length header in the res...
25,995,565
0
Custom form Validation Rails <p>I am wondering if i have set up my method incorrectly as my validation attempt is being ignored halfway through the method. (i have provided a basic example, i want to get this working before adding more)</p> <p>I have two variations of a form all belonging to the same object. The forms ...
21,880,001
0
<p>No, it's not possible to execute PHP code in Javascript. </p> <p>What you'll need to do is make an ajax query to a php page. You can get more information about how to do that here: <a href="http://www.w3schools.com/php/php_ajax_xml.asp" rel="nofollow">http://www.w3schools.com/php/php_ajax_xml.asp</a></p> <p>And mor...
30,321,655
0
<p>First turn that validation method into a true <a href="http://docs.oracle.com/javaee/7/api/javax/faces/validator/Validator.html" rel="nofollow"><code>Validator</code></a> implementation.</p> <pre><code>@FacesValidator("topicValidator") public TopicValidator implements Validator {} </code></pre> <p>Then you can use ...
38,863,417
0
How to query TFS Work Items to count how many times each one had the state "Resolved"? <p>I need to know how many times a Work Item had the state <code>Resolved</code>.</p> <p>Is it possible using the <code>Work &gt; Queries</code> or some Widget in <code>Home &gt; Overview</code> tabs in TFS 2015 or VSO/VSTS?</p> <p>I...
29,397,185
0
Does JQuery have a "move" function? Or is there a more compact way of doing this? <p>When using JQuery in conjunction with a content management system, I find myself often writing snippets of code such as </p> <pre><code>$(document).ready(function() { var thishtml = $('#some-element')[0].outerHTML; $('#some-element').r...
20,572,410
0
<p>You can overload operator new, and operator delete for any specific user-defined type so that those operators use your allocator instead of the default heap allocator.</p>
38,400,172
0
<p>I had this problem with a project that I've been working on for years, using Xcode 7.3. But one of my colleagues, who cloned the same Xcode project, doesn't have this problem. After trying several different approaches, I downloaded the development certificate from Apple Developer and installed them manually. It wor...
667,523
0
<p>Are you saying your are getting results like this:</p> <pre><code>Group 1a Group 2a Foo1 1 Foo2 1 foo3 2 Group 2a Sum 4 Group 2b Foo1 3 Foo2 3 Group 2a Sum 6 Group 1a Sum 10 Group 1b Group 2a Foo1 4 Foo2 1 foo3 2 Group 2a Sum 7 Group 2b Foo1 4 Foo2 3 Group 2a Sum 14 Group 1b Sum 21 </code></pre> <p>This is the beha...
23,241,941
0
Sending variables as body of mailto on asp:button <p>I have a website which I want users to be able to share a link via email. This particular page is the mobile version.</p> <p>I have an asp:button using mailto and I need to pass variables from the page to build the URL in the email body.</p> <pre><code> &lt;asp:Butto...
31,985,106
0
how to play sound in android <p>I want to play music in my app when application starts. I tried many codes but nothing is working for me and i'm not getting any error.Can somebody please help me regarding this issue.Thanks in advance.</p> <pre><code>public class Login extends Activity { EditText edName, edPassword; Str...
40,201,042
1
Trying send a string from python to arduino through serial port and resend a part of the same back <p>Problem is that it prints the string for some initial iterations but after that it prints only first letter of the string. <strong>THIS IS THE PYTHON CODE I'm USING:</strong></p> <pre><code>import serial import time se...
1,709,430
0
<p>You better tell them what XML really means, 'cause that thing you posted there is far away from anything that has the right of being called XML...</p> <p>In that case, go for the CSV, read in every row and strip out the spaces (e.g. <code>_Row.Replace(" ", "");</code>), save it in a new .XML and you should be good ...
25,175,100
0
DeploymentException with JBoss 6 <p>While Deploying ear in jboss 6 its giving Runtime Exception please help me how to solve this error</p> <pre><code>11:14:14,684 ERROR [ProfileDeployAction] Failed to add deployment: FirstGen.ear: org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFS...
38,375,155
0
<p>I think you misunderstood with <code>Model&lt;---&gt;ViewModel(s) Two-Way binding</code>, actually the binding source should at least be an instance of the Model, the <code>DataContext</code> should be the ViewModel which contains this instance of the Model, we can't directly bind model to a binding target. So your...
31,356,812
0
Method for randomly loading paired images <p>I've created a webpage with many (over 100) paired flash cards with Question (image) flipping to Answer (image) when clicked. If possible I would like to be able to randomise the order in which the question/answer pairs load with each page load/refresh.</p> <pre><code> &lt;d...
12,361,147
0
<p>Try this</p> <p><strong>CSS</strong></p> <pre><code>html, body { margin:0; padding:0; height:100%; } #wrapper{ min-height:100%; position:relative; } #header { background:#00ff0f; padding:30px; } #main{ padding:10px; padding-bottom:45px; /* Height+padding(top and botton) of the footer */ text-align:justify; height:1...
28,614,937
0
CSS image positioning inside <div> <p>I have been making a website and I want an opening image to be found on my screen. The problem is that I have the picture I want to use but it is to big for the space I want it to fit in. This could be solved 2 ways: I could scale the image to fit in the Div or I could position the...
11,100,590
0
<p>If the two string are of different size the following code you return the total mismatch of alphabets.</p> <p>You can try this - </p> <pre><code> String ip1 = "input"; // input1 String ip2 = "utput"; // input2 int count = 0; // difference in string String ipx2 = ip2; for (int j = 0; j &lt;= ip2.length(); j++) { int...
26,735,001
0
<p>I wrote a jQuery function:</p> <pre><code>$.fn.fullscreen = function(target){ var elem = $(target)[0]; $d = $(document); if(elem.requestFullscreen || elem.msRequestFullscreen || elem.mozRequestFullScreen || elem.webkitRequestFullscreen){ function FSon(){ $d.trigger('fullscreen').trigger('fullscreenOn').data('fullsc...
27,722,123
0
Laravel Validation (unique rule) <p>i use a seperate class for validation so it looks like </p> <pre><code>class UserValidation { protected static $id; protected static $rules = [ 'email' =&gt; 'required|email|unique:users,email,{{ self::$id }}', 'password' =&gt; 'required|alpha_dash|min:4', ]; public static function v...
19,988,943
0
<p>When you are printing the php variables it prints only the variable, so if $title equals Hello the Java Script interpreter think there a variable in Java Script named Hello. To avoid this you have to print into the HTML the variable value inside quotes.</p> <pre><code>$string = 'World!'; $title = 'Hello'; echo '&lt...
11,685,115
0
<pre><code>http://www.mysite.com/&lt;?php echo($var); ?&gt; </code></pre> <p>should do it ... If I understood you </p>
36,463,534
0
<p>I feel you might be over thinking it; If I'm understanding what you want to do then all you should need in your filter is:</p> <pre><code>ng-repeat="option in DefComList | filter: require : true" </code></pre> <p>Note the true for exact matching as your search for 'MUST' would also match 'noMUST'.</p> <p>Here is a ...
35,003,479
1
How to hide part of string in python <p>I am just wondering if there is such possibility to hide somehow part of string in python. I am not talking about slicing. I am talking about situation where I have "1somestring," while printing I obtain "somestring". 1 before somestring should be visible for python but not displ...
40,110,202
0
<p>This is an old question, but now you can just use "BetterPickers":</p> <p><a href="https://github.com/code-troopers/android-betterpickers" rel="nofollow">https://github.com/code-troopers/android-betterpickers</a></p> <p>And use ExpirationPicker.</p> <p>Hope this solves it for some other lost souls who searched Goog...
21,868,469
0
<p>this has nothing to do with answering your question, but everything to do with improving your ability to quickly write efficient &amp; well written code:</p> <p>your way:</p> <pre><code>function user_exists($username) { $query = mysql_query("SELECT username FROM users WHERE username='$username'"); if (mysql_num_row...
20,998,039
0
<p>Put this on create of the dbhelper (Sqlite helper) </p> <pre><code>db.execSQL("PRAGMA foreign_keys=ON;"); </code></pre>
3,061,073
0
<p>It may be that the embedded device controlling the randomization doesn't have a clock. Perhaps it uses the number of tracks as seed or something similar.</p> <p>If you don't have some external source for random seeds, such as readings from a clock, the software will, when all it's memory is reset, behave determinis...
32,041,784
0
<p>Try to use this:</p> <pre><code> ContractResolver = new CustomContractResolver { IgnoreSerializableInterface = true, IgnoreSerializableAttribute = true }; </code></pre>
26,257,466
0
<p>So finally got the system up and running, and for all the people facing similar problems, and without munch knowledge of unicorn or ngixn here are the steps:</p> <p>First make sure both services are running (unicorn is the app server and ngixn is the http server), both services should be configured in /etc/init.d/....
32,813,349
0
String with Object to Object <p>I have the following string:</p> <pre><code>var arr = "[{'one' : '1'}, {'two' : '2'}]"; </code></pre> <p>How can I pass this string to an object?</p> <p>I've tried the following but it doesn't seem to work:</p> <pre><code>arr.split(','); </code></pre>
38,025,102
0
how to make ssis map columns based order instead of column names <p>I am working on a project where there are <code>700</code> columns in a remote server and our destination table have columns that starts with underscore for example if there is a <code>"SchoolName"</code> column in the remote server, on our destination...
36,575,887
0
Codeigniter Can't Connect to External SQL Server <p>i'm trying to connecting my codeigniter framework to external database. But it shows error</p> <blockquote> <p>A Database Error Occurred Unable to connect to your database server using the provided settings. Filename: core/Loader.php Line Number: 346</p> </blockquote>...
24,701,732
0
Optional parameters and method overloading <p>I've come across a library method with three parameters, all with default values:</p> <pre><code>virtual M(bool b1 = false, string s1 = null, bool b2 = true) </code></pre> <p>Method <code>M</code> shouldn't have parameter <code>s1</code>, so I want to remove it, but I don't...
25,460,745
0
How can I get clientHeight value outside backbone render function? <p>I using <a href="http://github.com/zynga/scroller/blob/master/src/EasyScroller.js" rel="nofollow">zynga scroller</a> javascript for scrolling in backbone web-app but clientHeight of rendered element is always 0. This is because script for scrolling i...
18,004,680
0
<p>I was actually going slightly crazy about this myself. If the data in the csv is encased in quotes, when SSIS imports csv file it includes the quotes in the output of the rows so you actually have to remove the end quotes yourself. Otherwise you are literally trying to cast the quotes and the number to a float. Pas...
26,030,711
0
<p>try this. <div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code> body { margin: 0; padding: 0; background: #EEE; font: 10px/13px'Lucida Sans', sans-serif; } .wrap { overflow: hidden; margin: 50px; } /*20 for 5 box , 25 for...
14,801,477
0
Mixing backbone.js routers and rails controllers <p>I'm currently attempting to wrap my head around grafting backbone.js into my rails application. For starters, I want to build it into a a specific part of the rails application at /applications. With that said I have a rails resource "resources :applications" which gi...
11,222,163
0
<p>"YUV" is not a complete format.</p> <p>From <a href="http://en.wikipedia.org/wiki/YUV" rel="nofollow">this wikipedia article</a> you can get the conversions of YUV411,YUV422,YUV420p to YUV444. Combine the inverse of these transforms with your RGB conversion and you'll get the result.</p> <p>The thing you are missin...
17,900,196
0
<p>Here's an example which changes the text inside a division based on the response from ur actionmethod...</p> <pre><code>//a class with properties. Class Priveleges{ Public string StatusMessage{get;set;} Public int StatusCode{get;set;} } //code inside controller [HttpGet] Public JsonResult Index{ Priveleges obj=Deci...
2,126,290
0
<p>You need the following in your <code>app.yaml</code>:</p> <pre><code>- url: /account script: account/account.py - url: /game script: game/game.py - url: .* script: main.py </code></pre> <p>BTW, I suggest you try to forget backslashes (characters like this: \ ) -- think <em>normal</em> slashes (characters like this:...
21,459,825
0
WCF service reference added with Generate Asynchronous option <p>i add the wcf service reference and tick the option called Generate Asynchronous Operation. i found proxy code was added like this way....</p> <pre><code>public interface ICalculator { [System.ServiceModel.OperationContractAttribute(Action="http://tempuri...
22,718,685
0
<p>Jersey makes the process very easy, my service class worked well with JSON, all I had to do is to add the dependencies in the pom.xml</p> <pre><code>@Path("/customer") public class CustomerService { private static Map&lt;Integer, Customer&gt; customers = new HashMap&lt;Integer, Customer&gt;(); @POST @Path("save") @...
32,050,246
0
facebook api version 2.4 not returning email from owin facebookauthentication options? <p>I have created new facebook app for my application. Now this app is with api version 2.4. I was using below code for login with owin.</p> <pre><code> app.UseFacebookAuthentication(new FacebookAuthenticationOptions() { AppId = "xx"...
1,495,097
0
<p>That's just a normal UIView subclass which draws the gradient background using Core Graphics (I don't expect it to be an image) and has some UIButtons as subviews (Either staticly positioned and added to the view or all being positioned by code. Doing it staticly will make things easier but less reusable)</p>