Dataset Viewer
Auto-converted to Parquet Duplicate
QuestionId
int64
63.3k
59.1M
AnswerCount
int64
0
11
Tags
stringlengths
3
101
CreationDate
stringlengths
23
23
AcceptedAnswerId
stringlengths
6
8
Title
stringlengths
15
150
Body
stringlengths
58
29.2k
Lable
stringclasses
5 values
63,295
3
<redirect><webserver><sunone>
2008-09-15T14:16:54.947
null
How do I get sun webserver to redirect from /
<p>I have Sun webserver iws6 (iplanet 6) proxying my bea cluster. My cluster is under /portal/yadda. I want anyone who goes to </p> <pre><code>http://the.domain.com/ </code></pre> <p>to be quickly redirected to </p> <pre><code>http://the.domain.com/portal/ </code></pre> <p>I have and index.html that does a post and...
No
295,832
2
<xml><vb.net>
2008-11-17T15:18:02.433
295891
Embed XML element in inline VB code
<p>Consider the following code in VB9:</p> <pre><code>Dim text = "Line1&lt;br/&gt;Line2" Dim markup = &lt;span&gt;&lt;%= text %&gt;&lt;/span&gt;.ToString </code></pre> <p>While I was hoping markup would end up being <code>&lt;span&gt;Line1&lt;br/&gt;Line2&lt;/span&gt;</code>, it actually evaluates to <code>&lt;span&g...
No
310,121
2
<c#><gridview><boundfield><headertext>
2008-11-21T20:38:57.793
310145
How do I break the a BoundField's HeaderText
<p>In HTML in the td of a table you can break text by using <code>&lt;BR&gt;</code> between the words. This also works in the HeaderText of a TemplateItem but not the HeaderText of a BoundField. How do I break up the Header text of a BoundField.</p>
No
355,848
7
<javascript><oop>
2008-12-10T12:06:39.020
355878
How can I emulate "classes" in JavaScript? (with or without a third-party library)
<p>How can I emulate classes (and namespaces) in JavaScript?</p> <p>I need to create a JavaScript library and have limited experience with the language. I always thought that it had native support for classes, but it is less related to Java than I had assumed. It seems that everything in JavaScript is actually a funct...
No
447,171
1
<ssl>
2009-01-15T15:30:14.030
null
Find out SSL version (V2 or V3)
<p>How can one tell if the SSL communication between a client and a server is SSLv2 or SSLv3?</p>
No
534,119
8
<svn><version-control><cvs>
2009-02-10T20:43:55.263
534254
Semi-editable Files (eg config files) and version control - best practices?
<p>So, I killed the build today by checking in a config file. It knows where the server is (think SQL server or the like), and I've been working against the server which runs on my box. Normally, or rather, under other circumstances, we'd run against the central server. The daily build, of course, didn't find 'my' s...
No
666,828
6
<sql-server><sql-server-2005><tsql><sql>
2009-03-20T16:09:49.430
666878
Create a new db user in SQL Server 2005
<p>how do you create a new database user with password in sql server 2005?</p> <p>i will need this user/password to use in the connection string eg:</p> <pre><code>uid=*user*;pwd=*password*; </code></pre>
No
710,127
2
<objective-c><cocoa>
2009-04-02T15:09:58.250
null
Observing changes of derived properties: CALayer KVO example
<p>Is there a way to observe changes in derived properties? For example, I want to know when a CALayer has been added as a sublayer so that I can adjust its geometry relative to its (new) parent.</p> <p>So, I have a subclassed CALayer, say CustomLayer, and I figured I could register an observer for the property in i...
No
6,704,769
3
<entity-framework><asp.net-mvc-2>
2011-07-15T09:01:25.847
null
Entity Framework - trying to insert null values when creating a new object
<p>I'm having the same problem that a few of you have had - when trying to insert a new object, EF inserts null values for some of their properties, and the insert fails.</p> <p>First let me describe the structure of our DB. Its an event management system, in which each event needs to be associated with a practice gro...
No
6,754,944
5
<mysql><database><ubuntu>
2011-07-19T22:36:44.437
6754981
where is my database saved when I create it in MySQL?
<p>I'm completely new to ubuntu and MySQL and I created a new database via:</p> <pre><code>mysql -u root -p create database mydb; </code></pre> <p>Now, in which directory is this database saved and how do I specify where it's saved when I create it?</p>
No
6,779,291
1
<c#><.net><silverlight><xaml><windows-phone-7>
2011-07-21T16:15:30.047
null
Windows Phone ControlTemplate & Converter : problem loading BitmapImage from Image Resource in assembly
<p>This is basically a follow up to my <a href="https://stackoverflow.com/questions/6667916/windows-phone-7-image-checkbox">previous</a> question. I've managed to make this work with the templates, however, I want to make it a bit generic, so that I don't have to go around repeating code all over the place</p> <p>The ...
No
6,813,415
4
<wix><ignore><heat>
2011-07-25T08:29:01.313
6818334
Ignoring .svn directories with Wix Heat?
<p>I'm using the Heat tool to generate Wix markup to include a large number of files and folders in my setup. This was working fine, but I just realized that since I added the source folder to my Subversion repository, Heat wants to include the .svn folders too.</p> <p>Is there a way to tell Heat not to harvest files ...
No
6,859,371
3
<jquery><asp.net><ajax>
2011-07-28T13:01:01.990
7084278
AJAX post to ASP.Net web site is missing parameters
<p>I have created an <code>IHttpAsyncHandler</code> that I'm trying to call using AJAX, with jQuery. The call succeeds, but I can't find my parameters on the server. </p> <p>Here is the AJAX call:</p> <pre><code>function deleteViewModel(typename) { var data = { "viewModel": typename, "operation":...
No
6,917,848
1
<cocoa><class><memory-management>
2011-08-02T19:58:59.007
6917888
How do I make a custom unretained class?
<p>How can I make it so that I can get an unretained instance of a class? You can do this with various Cocoa classes like <code>NSString</code> (<code>[NSString string]</code>) or <code>NSArray</code> (<code>[NSArray array]</code>).</p> <p>How can I do this with my custom class so I can call <code>[MyClass class]</cod...
No
6,950,929
1
<proxy>
2011-08-05T03:01:15.857
null
web service returning reliable proxy addresses
<p>I'm looking for a proxy service (free or subscription) that I can programmatically request a random ip from that I can use to automate some manual testing.</p> <p>I'd like the service to have at least hundreds of ips it can select from to avoid repetition.</p> <p>Anonymity is not required but reasonable reliabilit...
No
6,952,777
1
<jquery>
2011-08-05T07:17:57.130
6953349
jQuery mouse position on mousedown() without mousemove()
<p>Can I get cursor position at <code>mousedown(event)</code> event, without using <code>mousemove(event)</code> continuously (thus waisting resources)? <code>event.pageX</code> returns <code>NaN</code> on <code>mousedown</code></p>
No
6,953,094
0
<objective-c>
2011-08-05T07:50:15.040
null
NSArray Sorting not sorting correctly
<p>I have a class (Piece) which has a NSMutableArray property called attachedBlocks.</p> <p>Whenever piece is initialized, 4 Block objects are initialized and placed in attachedBlocks.</p> <p>At the same time, in my controller class, before I release piece, i add all blocks from piece.attachedBlocks to a NSMutableArr...
No
6,955,445
4
<android><sqlite>
2011-08-05T11:21:46.610
6955531
SQLite updation upon android app's update
<p>I have an app released on the android market which uses sqlite and displays data. I want to know if I am sending an update for the app by adding features, should I upload a new database? What happens when users already having my app, click on update? Will the database update on its own? If the users are downloading ...
No
6,978,312
3
<objective-c><ios><animation><uiview><core-animation>
2011-08-08T06:07:45.560
6993110
iOS Core Animation - Fold a Layer
<p>Using Core Animation, I would like to fold a <code>UIView</code> (i.e. it's <code>CALayer</code>) on it's center. i.e. I would set the anchor point as (0.5,0.5) &amp; fold the layer. This image that I created in Photoshop might give the effect I am looking for - </p> <p><img src="https://i.stack.imgur.com/7hvuu.png...
No
7,125,782
1
<ruby-on-rails-3><routes>
2011-08-19T18:26:13.920
7126175
Ruby on Rails, Split Model into Two Controllers/Forms, but update action calling parent
<p>I have a model that for edit/update actions only is logically split into two forms. The model is Venue. I created app/controllers/venues_controller.rb. The two sub-forms are Details and Policies, so I created app/controllers/venues/details_controller.rb and app/controllers/venues/policies_controller.rb, as well as t...
No
7,271,661
3
<algorithm><crc>
2011-09-01T14:17:05.883
7273055
CRC divisor calculation
<p>Im trying to understand CRC and I'm getting confused as how to calculate the 'divisor'.</p> <p>In the <a href="http://en.wikipedia.org/wiki/Cyclic_redundancy_check#Computation_of_CRC" rel="noreferrer">example on wikipedia</a> the divisor is 11 (1011) for input of 11010011101100</p> <pre><code>11010011101100 000 &l...
No
7,442,099
1
<ruby-on-rails><ruby-on-rails-3><paypal><activemerchant>
2011-09-16T08:37:02.857
null
active_merchant: A field was longer or shorter than the server allows
<p>I'm implementing paypal direct payment using activemerchant Following is the code</p> <pre><code>def credit_card_details credit_card = ActiveMerchant::Billing::CreditCard.new( :first_name =&gt; 'Bob', :last_name =&gt; 'Bobsen', :number ...
No
7,468,149
1
<eclipse><eclipse-rcp><xtext>
2011-09-19T08:23:36.633
13491190
XText in a RCP product
<p>we want to provide the users of our RCP product with a textual editor for our model. Accordingly, we created an EMF model and a XText grammar. The problem is that our RCP app does not the Eclipse IDE's project structure (i.e., we do not have any workspaces or builders), hence we have some troubles in making the XTex...
No
7,471,751
2
<asp.net><asp.net-mvc-3><url-routing><asp.net-mvc-areas>
2011-09-19T13:31:49.047
7471892
asp.net mvc 3 areas and url routing configuration
<p>I have problem with create ulr routing for asp.net mvc3 application.</p> <p>My project has this structure : </p> <ul> <li>Areas <ul> <li>EmployeeReport <ul> <li>Controllers <ul> <li>Report </li> </ul></li> <li>Views <ul> <li>Report <ul> <li>List </li> <li>....</li> </ul></li> </ul></li> </ul></li> </ul></li> <li>...
No
7,544,140
2
<python><c><image-processing><opencv>
2011-09-25T07:09:43.993
7545444
Why does cvSet2D take in a tuple of doubles, and why is this tuple all 0 save for the first element?
<p><code>cvSet2D(matrix, i, j, tuple)</code></p> <p>Hi. I'm dissecting the Gabor Filter code given in <a href="http://www.eml.ele.cst.nihon-u.ac.jp/~momma/wiki/wiki.cgi/OpenCV/Gabor%20Filter.html" rel="nofollow">http://www.eml.ele.cst.nihon-u.ac.jp/~momma/wiki/wiki.cgi/OpenCV/Gabor%20Filter.html</a> . I have a few que...
No
7,564,803
2
<asp.net><session><c#-4.0><login>
2011-09-27T05:59:01.553
7566018
Using Sessions in an ASP.NET 4.0 Log-In Control
<p>I'm currently developing a website using Visual Studio 2010. As you all might know, creating a new website here automatically adds an Account folder which contains webpages like Login.aspx, etc. I am implementing this Login.aspx which contains the ASP.NET Login control. It's now functioning the way it should but I h...
No
7,614,345
3
<wordpress>
2011-09-30T18:09:42.130
7620012
Wordpress query_posts posts_per_page not working
<p>Can't figure out why this is not limiting the posts_per_page. It is displaying a very long list of posts, but I only want to show 4</p> <pre><code>query_posts('posts_per_page=4&amp;post_type=page&amp;pagename=media'); if(have_posts() ) : while(have_posts()) : the_post(); </code></pre>
No
7,672,393
2
<c#><asp.net>
2011-10-06T09:23:41.143
7672508
ASP.net page_load doesn't detect session
<p>I have a problem with using <code>session</code> variable in the <code>page_load</code>. I have a page (<code>members.aspx</code>) which is a members area. </p> <p>If the user isn't <code>logged</code> in, it will display a form asking them to login. The form submits their details, checks if ok then sets <code>sess...
No
7,690,627
2
<javascript><dom>
2011-10-07T17:17:36.197
7690653
How to retrieve the text of a DOM Text node?
<p>For a given Text node in the DOM, one can use one of these properties to retrieve its text: </p> <ul> <li><code>textContent</code></li> <li><code>data</code></li> <li><code>nodeValue</code></li> <li><code>wholeText</code></li> </ul> <p>But which one to use? Which one is the most reliable and cross-browser supporte...
No
7,707,020
2
<javascript><jquery><checkbox>
2011-10-09T22:30:50.303
7707103
JS / JQuery - Trouble with getting checkbox values
<p>I have many checkboxes in a dynamically produced (ASP) photo gallery. Each checkbox has the name 'photos' and contains a photo ID in the value, like this:</p> <pre><code>&lt;form name="selectForm" id="selectForm"&gt; &lt;input type="checkbox" onclick="selectPhoto(&lt;%=rs1.Fields("photoID")%&gt;)" id="checkbox_&lt;...
No
7,890,076
2
<wpf><datagrid><cell>
2011-10-25T13:33:36.420
7890969
Access to cell values of a DataGrid in WPF?
<p>We have such a scenario that we have a page including a DataGrid, and now we want to get all data from this DataGrid, but without accessing to the underlying item source of it, i.e., we want to access to the data directly from the DataGrid. It seems to be tricky but not impossible. I found many articles, like this: ...
No
7,955,749
3
<php><datetime>
2011-10-31T15:22:39.657
7955793
Changing date formats in PHP < 5.3.0
<p>Given a date string in the format m-d-Y (e.g, "12-09-2011") how can I display it in the format "m/d/Y" <strong>WITHOUT</strong> resorting to regular expressions.</p> <p>Just in case you missed it: <strong><em>without using regular expressions.</em></strong></p> <p>I would prefer to use <code>DateTime::createFromFo...
No
7,979,375
5
<c#><textbox><substring>
2011-11-02T11:12:25.287
7979400
Using substring in C# textboxes
<p>I wanted to display the remaining characters using a label beside my textbox just in case the user input exceeded the maximum length of characters.</p> <p>This is my code for remaining characters:</p> <pre><code>private void txtID_TextChanged(object sender, EventArgs e) { int MaxChars = 10 - txtID.Text...
No
8,131,281
1
<sql><sql-server><sql-server-2008>
2011-11-15T03:53:07.083
null
SQL Server Script Database with Seed Data
<p>I am creating an install script for a Sql server 2008 database using Tasks =>generate Scripts option. This works fine and creates a script including database,schema and seed data.</p> <p>One problem I notice is that the A Stored procedure is created before the table it refers to is created and this gives error when...
No
8,141,422
1
<email><replication>
2011-11-15T18:44:53.843
9112771
virtual mail replication
<p>I have 2 servers that have mail server, both have mysql, dovecot, postfix installed. One of the servers is a Master, second Slave, there is database replication done which works great however mails are not replicated as they are held as files. How should I replicate emails from the Master server into the Slave serve...
No
8,176,500
1
<asp.net-mvc-3><reference><assemblies><gac>
2011-11-18T00:54:31.660
8179138
MVC3 referencing update-able dependencies
<p>I would like create a MVC3 website. I have existing dlls packaged as .net MSI which are installed into the GAC. What is the best way to reference these update-able dlls in MVC3? They will always be installed into the GAC, their version number will be updated accordingly. I don't want to have to manually reference th...
No
8,192,177
1
<c#>
2011-11-19T05:45:32.470
null
cannot convert from 'System.IO.TextWriter' to 'System.IO.Stream'
<pre><code> var ssh = new SshClient("ip", "user", "pass"); var input = new MemoryStream(Encoding.ASCII.GetBytes("exit\r\n")); var shell = ssh.CreateShell(input, Console.Out, Console.Out, "xterm", 80, 24, 800, 600, ""); shell.Stopped += delegate(object sender, EventArgs e) { ...
No
8,201,197
4
<c#><wpf><mvvm><dependency-injection><unity-container>
2011-11-20T11:27:50.563
8201779
Should I use Microsoft.Practicies.Unity.IUnityContainer in my MVVM application?
<p>Jason Dolinger in his video located here (hot available right now) www.lab49.com/files/videos/Jason%20Dolinger%20MVVM.wmv (from 0.59 to 1.04) uses such code:</p> <pre><code>public partial App: Application { protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); IUnityCont...
No
8,235,270
1
<c++><templates><map><functional-programming><c++11>
2011-11-22T23:15:32.943
8235391
c++ function map implementation
<p>I have been playing around with variadic templates in the new c++ standard and came up with a map function (headers + using decs excluded):</p> <pre><code>template&lt;typename T&gt; T square(T i) { return i * i; } template &lt;typename T, typename... Ts&gt; const tuple&lt;Ts...&gt; map(const T f, const Ts....
No
8,317,802
1
<java><spring><jsp><jstl><el>
2011-11-29T21:12:46.927
8317943
NumberFormatException in a jsp with a list
<p>This question is another problem im having with my application which is described <a href="https://stackoverflow.com/questions/8235049/spring-mvc-binding-issue">here</a>. My model (a level) has a list of requirements which contains two strings, an id and name. The model looks like this:</p> <pre><code>public class ...
No
8,332,143
2
<c#><visual-studio-2010><c#-4.0><silverlight-4.0>
2011-11-30T19:57:38.450
null
how to do this so it does show "No Value" instead of getting caught in an error
<p>I am using the following code which works fine as long as I dont have one of the child node (e.g. URL) missing. If it is missing then my code errors out. How can I make it to not error out and just return a string "No Value" instead.</p> <p>here is my code</p> <pre><code>string widgetsInfo = loaded.Descendant...
No
8,573,508
4
<eclipse><java>
2011-12-20T09:46:21.393
8573541
Get Eclipse IDE to show version of Java RE it's using
<p>I've just installed proper JRE rather than the OpenJDK, I was wondering if there is an easy way to find out which RE Eclipse is using? Maybe in a help menu or something.</p> <p>Thanks</p>
No
8,779,574
1
<ios><uitableview>
2012-01-08T17:25:13.273
8779703
UITableView only with Images
<p>I'm developing an iOS App and I want to make a table view, but only with images like the <a href="http://i.stack.imgur.com/ZwpkE.jpg" rel="nofollow">6G Nano images app</a>. Does anyone know how to implement that?</p>
No
8,877,080
2
<c#><wpf><listbox><anonymous-types><multi-select>
2012-01-16T07:58:22.020
8877209
Retrieving selected values from ListBox with multiselect
<p>I have one WPF ListBox loaded using LINQ:</p> <pre><code>lbxCalculosSec.ItemsSource = from p in database.CALCULOS orderby p.NOMBRECALCULO select new { ID = p.IDCALCULO, NOMBRE = p.NOMBRECALCULO + " - " + p.DESCRIPCIONCALCULO }; lbxCalculosSec.DisplayMemberP...
No
8,929,554
1
<c++><rtti>
2012-01-19T16:24:09.210
null
Custom run-time type system/ library for C++
<p>In an application I'm making at the moment, I have an <code>EventDispatcher</code> class that works with a base <code>Event</code> class. The dispatcher is not templated, it works with the run-time types of each event; this is to allow scripts to inherit from the base <code>Event</code> class and make their own type...
No
8,974,040
2
<php><html><simple-html-dom>
2012-01-23T15:27:08.793
8974103
Why is this foreach failing?
<p>The script I am using 'gets' a html page and parses is showing only the .jpg images within, but I need to make some modifications and when i do it simply fails...</p> <p>This works:</p> <pre><code>include('simple_html_dom.php'); function getUrlAddress() { $url = $_SERVER['HTTPS'] == 'on' ? 'https' : 'http'; ...
No
9,036,482
3
<java><frame-rate>
2012-01-27T16:15:33.333
9036801
Is it good practice to cache parts of a 2D drawing?
<p>I'm making a 2D game in Java and one of the main issues causing low FPS (on my slow laptop) is having to re-draw complex structures to a Graphics instance, such as dials with markings.</p> <p>The dial and its markings will never change unless the window is resized, so I thought it would be a good idea to draw to a ...
No
9,040,355
5
<iphone><notifications><message><center>
2012-01-27T21:32:37.430
null
Alternative to NSDistributedNotificationCenter for comms between iPhone apps
<p>I've been looking for a way to compare timestamps between applications on the same phone in real time, and NSDistributedNotificationCenter sounded like an ideal solution since i may not know the names of the apps listening for it, but it sounds like its not available in iOS.</p> <p>Is there an equivalent way of not...
No
9,060,146
1
<objective-c><optional-parameters>
2012-01-30T06:26:17.983
9405083
How to make method like UIActionSheet initWithTitle
<p>How can i make method with parameter is unlimited array like this :</p> <pre><code>UIActionSheet *actionSheet = [[[UIActionSheet alloc] initWithTitle:@"Test Title" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Destructive" ...
No
9,074,893
3
<ruby-on-rails>
2012-01-31T05:31:54.590
null
undefined local variable or method `config' for main:Object - rails
<p>When I run the rails application, I get the following error:</p> <blockquote> <p>undefined local variable or method "config" for main:Object</p> </blockquote> <p>How can I resolve it?</p>
No
9,141,619
1
<google-maps><jquery-mobile>
2012-02-04T14:37:41.407
18978552
After Upgrading JQuery Mobile to 1.0.1, Code Isn't Working
<p>This works just fine, with JQM 1.0a1:</p> <pre class="lang-html prettyprint-override"><code>&lt;!DOCTYPE HTML&gt; &lt;html lang="en-US"&gt; &lt;head&gt; &lt;meta charset="UTF-8"&gt; &lt;title&gt;Main Page&lt;/title&gt; &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" ...
No
9,144,856
3
<php><stop-words>
2012-02-04T21:48:10.057
null
Stop Words into a string
<p>I want to create a function in PHP that will return true when it finds that in the string there are some bad words.</p> <p>Here is an example:</p> <pre><code>function stopWords($string, $stopwords) { if(the words in the stopwords variable are found in the string) { return true; }else{ return false; } </code></pre>...
No
9,178,734
2
<css><less><mixins>
2012-02-07T15:15:05.753
9189245
LESS syntax for .mixin > *
<p>I am using LESS and im trying for a type of mixin.</p> <p>I have this mixin:</p> <pre><code>.mixin, .mixin &gt; * { font:arial; } </code></pre> <p>and i want to use it as a mix in so.</p> <pre><code>.my-class { color:#000; .mixin; } </code></pre> <p>becomes</p> <pre><code>.my-class { color:#000...
No
9,240,763
1
<jquery><for-loop>
2012-02-11T13:57:45.603
9240801
Working with for loop and jquery load event for multiple images return only the last loaded one props
<p>I'm working with a <code>jQuery plug-in</code> useful to zoom the resized background images with the mouse interaction.</p> <p>To make it work, I thought to use an <code>array</code> of <code>objects</code> with the <code>width</code> and <code>height</code> of a <code>background-image</code> of every element I bri...
No
9,309,288
2
<opencl><gpgpu>
2012-02-16T10:09:06.443
9313325
OpenCL- waste of host computing power
<p>I am new to OpenCL, please tell me that the host cpu can be used only for allocating memory to the device, or we can use it can as an openCL device. (Because after the allocation is done, the host cpu will be idle). </p>
No
9,366,780
1
<php><vb.net><vb.net-2010><awesomium>
2012-02-20T18:55:53.723
null
Awesomium with .NET VS2010 (ObjectForScripting)
<p>I'm having some issues finding examples of how to use the Awesomium web browser control in vb.net with objectforscripting. I know that objectforscripting isn't the same for the webcontrol used with awesomium since its HTML5 and not the traditional IE control that comes with vs 2010.</p> <p>The issue I'm having is f...
No
9,410,414
1
<ruby-on-rails><ruby-on-rails-3><model-view-controller><routes><belongs-to>
2012-02-23T09:38:47.513
9410640
Rails: Forum has_many topics, saving the association?
<p>I might be going about this the wrong way in the first place, so I will give a bit of background first.</p> <p>As you can tell from the title, I am building a forum from scratch. I thought it was working correctly; however, I am a bit unsure as to how to update/save the forum object from within the topics "create" ...
No
9,490,260
1
<c#><json><highcharts>
2012-02-28T21:48:00.390
9575650
Pass JSON data from a .NET WebHandler to redraw Pie Highcharts with new series data
<p>I want to create a page displaying a default pie chart and a few buttons. When the user clicks on the buttons, the page will get new JSON data from a <code>WebHandler</code> and redraw the chart. I'm using .net 2.0, C#, web forms.</p> <p>I have this <code>WebHandler</code> <code>json.ashx</code> generating the JSON...
No
9,519,546
1
<c#><asp.net><.net><user-controls><pagination>
2012-03-01T16:02:27.417
11615051
.NET C# - Passing parent controls to a pagination .ascx control?
<p>On a project I'm working on, I have many &lt;asp:ListView&gt; controls, which are paginated using &lt;asp:DataPager&gt; controls. Instead of copying and pasting the controls to each .aspx page where I have a paginated list, would it be possible to break out the &lt;asp:DataPager&gt; controls into a reusable/modular...
No
9,604,589
2
<powershell><php>
2012-03-07T15:46:18.340
9604661
Run PHP CLI from Windows Powershell ISE
<p>This question is regarding dollar signs "$" <code>$</code> in Windows PowerShell ISE.</p> <p>I have PHP CLI and want to run one liner command scripts from the prompt in Windows PowerShell ISE.</p> <p><code>php -r "$foo = 'foo';"</code></p> <p>Just returns <code>Parse error: parse error in Command line code on lin...
No
9,917,131
2
<python><virtualenv>
2012-03-28T23:29:56.047
9917539
virtualenv bug?
<p>I am trying to run the following script in my virtualenv:</p> <pre><code>(python2.7.2-gonvaled1)gonvaled@lycaon:~/.virtualenvs/python2.7.2-gonvaled1$ couchy.py Traceback (most recent call last): File "/home/gonvaled/projects/bin/couchy.py", line 46, in &lt;module&gt; from couchdb_support import Co...
No
10,119,397
2
<mysql><database-design>
2012-04-12T07:38:51.677
10119466
database design with variable columns (mysql)
<p>I am working on a problem where I am trying to figure out the best way to design the Db tables for this. Lets say I have multiple books and each book has variable number of pages in it...I need to track page views for every book </p> <p>e.g. Book 1 = 10 pages , Book 2 = 20 pages, Book 3 and 100 pages and so on As ...
No
10,169,237
1
<ios><iphone><uiimage>
2012-04-16T05:47:46.133
10170414
UIImage from array
<p>I am working with an API which gives me an image as the example below. I am unsure how I can convert this array of values into an image. I have not seen this before.</p> <p>Does anyone know how I can make the following array of values into a UIImage?</p> <p><code>[255,216,255,224,0,16,74,70,73,70,0,1,1,1,0,96,...]...
No
10,201,830
1
<powershell><active-directory><powershell-2.0>
2012-04-18T02:04:59.870
10204290
Get-ADComputer and MemberOf
<p>I am very new to Powershell and am having an issue when using the <code>Get-ADUser</code> and <code>GetADComputer</code> cmdlets.</p> <p>I am trying to use the <code>Get-ADComputer</code> and <code>Get-ADUser</code> to retrieve the <code>memberOf</code> from Active-Directory of all the users and computers. It only ...
No
10,216,841
5
<deployment><capistrano>
2012-04-18T19:46:28.317
10290135
Passing parameters to Capistrano
<p>I'm looking into the possibility of using Capistrano as a generic deploy solution. By "generic", I mean not-rails. I'm not happy with the quality of the documentation I'm finding, though, granted, I'm not looking at the ones that presume you are deploying rails. So I'll just try to hack up something based on a few e...
No
10,248,542
1
<jquery><google-maps>
2012-04-20T14:52:09.893
10251405
possible to get the square coordinates using imgAreaSelect and Google Maps?
<p>I had seen a site do this a long time ago...</p> <p>Is it possible to 'crop' an area in GoogleMaps using imgAreaSelect (http://odyniec.net/projects/imgareaselect/) or jCrop and get the coordinates for the square from it?</p> <p>thx</p>
No
10,304,817
2
<c#><.net><linq><entity-framework-4>
2012-04-24T19:36:31.650
null
LINQ to EF4 Query Where clause not filtering as expected
<p>I've googled for this but can't find anything obviously related, so posting here for some insight. Using LINQ / EF4. Here's the code snippet:</p> <pre><code> private const string JOB_FAILED = "Failed"; // other code.. var successfulJobs = context.Jobs.Where(x =&gt; x.Status != JOB_FAILED); foreach ...
No
10,314,954
3
<sharepoint><master-pages>
2012-04-25T11:47:33.353
null
Can the SharePoint 2007 site's MasterPage opened?
<p>There was a Sharepoint 2007 site that was maintained without touching the code. People had their masterpage set by using links in the UI, SiteActions>>(under Look &amp; Feel)MasterPage selecting default.master.</p> <p>Now, they need some changes in the masterpage.</p> <p>When I opened the site in Sharepoint design...
No
10,397,427
4
<git><branch><master>
2012-05-01T12:06:50.330
null
what should the master branch contain in git
<p>I have read about multiple different git branching strategies and I was suprized that the master branch was often used as a 'production-ready' branch and there would be an additional uat and dev branch. I'm thinking to set up our git repository with the same 3 branches, but to let 'master' contain the dev code and a...
No
10,508,117
2
<android>
2012-05-08T23:53:59.217
10508135
Use onBackPressed to save a file
<p>I want to allow users to save a list of favourite items from a list, so I display the full list using a Listview with checkboxes, and the user will check or uncheck items in the list.</p> <p>When the user presses the back button, I want to be able to save the checked items out to a separate file on the SD card.</p>...
No
10,535,227
2
<jsf-2><weblogic><myfaces>
2012-05-10T13:40:04.973
null
No saved view state could be found for the view identifier
<p>When I was running my JSF application on Jetty server it was running fine.</p> <p>But as I moved this to Weblogic server, it started giving me this error.</p> <pre><code>javax.faces.application.ViewExpiredException: /wsListing.xhtmlNo saved view state could be found for the view identifier: /wsListing.xhtml at org...
No
10,575,893
1
<internet-explorer-8><datepicker><css>
2012-05-13T23:00:46.723
27694630
JsDatePick's data picker appears all broken in appearance in IE8 when used in my page
<p>I tried to use <a href="http://javascriptcalendar.org/" rel="nofollow">JsDatePick</a> .</p> <p>The example HTML supplied with the tool ran just fine in both FireFox and IE8</p> <p>However, when I tried to use the picker in my own HTML page with existing structure and CSS:</p> <ul> <li><p>In FireFox it worked fine...
No
10,577,543
1
<oracle><cursor><sys-refcursor>
2012-05-14T04:34:38.440
10581924
dbms_sql.to_cursor_number - Getting Invalid Cursor error for SYS_REFCURSOR
<p>I have the following code for table and view creation.</p> <pre><code>create table test_company ( comp_id number , comp_name varchar2(500) ) ; insert into test_company values(1, 'CompanyA'); insert into test_company values(2, 'CompanyB'); insert into test_company values(3, 'CompanyC'); create or replace vie...
No
10,606,076
3
<c#><.net><datetime><time><datetime-format>
2012-05-15T17:44:44.360
10606297
Is there a way to print a calculated time format string in C#?
<p>I know the title might be confusing, but I'm not sure how to word it better....</p> <p>I'm doing this to get the logs of the current hour:</p> <pre><code>'TraceSink-'yyyy-MM-dd HH'-Hourly.log' </code></pre> <p>How can I get the previous hour? i.e.:</p> <pre><code>'TraceSink-'yyyy-MM-dd (HH-1)'-Hourly.log' </code...
No
10,707,229
2
<javascript><jquery><forms><jquery-ui>
2012-05-22T17:45:46.537
10731817
jquery: Disable/Enable button not working after reset
<p>I have a form with n multiple choice questions implemented as radio buttons (using <code>jquery-ui</code>). I would like to ensure that all the questions have been answered before allowing the user to submit the form. I am running into two issues while performing this validation:</p> <ul> <li>On initial load, the s...
No
10,852,477
1
<asp.net><silverlight><internet-explorer><cookies><browser-cache>
2012-06-01T14:47:37.910
null
How to simulate Full IE cache for ASP.NET or Silverlight app
<p>What is the best approach to similate a browser full cache when debugging a Silverlight or ASP.NET application? There is some intermittent behaviour that I want to make a determination if browser cache or full cookie cache is playing a part in this behaviour I am seeing.</p> <p>Thanks for the help, in advance :)</...
No
10,865,201
2
<sql-server><tsql><size>
2012-06-02T19:19:10.847
10865279
Database size bigger after delete from table
<p>After I delete huge amount of data from a SQL Server database table, the database size increased.</p> <p>When I run <code>sp_spaceused</code> it shows me 2625.25 MB. It used to be ~ 1800.00 MB before I deleted from table.</p> <p>Is there any specific reason it keeps growing even if I delete data?</p>
No
10,868,406
1
<.net><c#-4.0><.net-4.0><pia><office-pia>
2012-06-03T06:35:48.143
null
c#.net 4.0 - no pia - is this all I need?
<p>Reference the Microsoft.Office.Interop.Excel and set Embed Interop Type to true? </p> <p>Will doing so ensure my app is backward compatible? (As long as I use safe methods that work on all versions.)</p> <p>Or do I have to use something like late binding and all in order for it to be compatible against multiple ve...
No
11,055,976
1
<php><html><wordpress>
2012-06-15T18:06:48.877
11056660
How to retrieve attachments from child pages of a specific Page in WordPress?
<p>How would I retrieve attachments from all <strong>subpages</strong> of a specific Page ID? </p> <p>Example:</p> <p>SPECIFIC PAGE</p> <ul> <li>Child (with attachments) </li> <li>Child (with attachments) </li> <li>Child (with attachments) </li> </ul> <p>I'm currently using this code to retrieve all attachments...
No
11,106,123
1
<sql-server-2008><ssas><bids>
2012-06-19T17:22:42.033
11207679
How do you apply a Weight Factor to an M2M Dimensional Relationship in SSAS?
<p>I have a many-to-many relationship with a weight factor column in the bridge table but I don't know how to make use of this when developing my cube in BIDS. Via Google, I have found many descriptions of what a weight factor is and why you would use one (I understand all this perfectly), but I can't find a practical...
No
11,190,457
3
<android><android-layout>
2012-06-25T13:42:16.687
11194037
Memory leaks, singleInstance
<p>I've got a couple of activities where I display images with help of <a href="https://github.com/thest1/LazyList/blob/master/src/com/fedorvlasov/lazylist/ImageLoader.java" rel="nofollow noreferrer">this lib</a>. The thing is the app is running out of memory. I tried to gc.clean(), null references, call clear on image...
No
11,217,948
1
<r>
2012-06-27T00:52:17.860
11217985
call to sapply() works in interactive mode, not in batch mode
<p>I need to execute some commands in batch mode (e.g., via Rscript). They work in interactive mode, but not in batch mode. Here is a minimal example: <code>sapply(1:3, is, "numeric")</code>. Why does this work in interactive mode but return an error in batch mode? Is there a way to make a command like this work in...
No
11,241,318
1
<centos><virtual-machine><virtualization><virtualbox><samba>
2012-06-28T09:05:15.183
11465419
I can ping my centOS virtual machine but I cant access its shared folders
<p>so this is the setup:</p> <p>I have a Windows XP installed, VirtualBox and a centOS 6.2 virtual machine. I installed Samba, and currently, my VM and host Windows are in the same subnet. I can ping my VM from Windows and vice versa. I have a created a shared folder via Samba like this:</p> <pre><code>[Share] pa...
No
11,486,900
2
<objective-c><cocoa-touch><cocoa><core-data>
2012-07-14T19:46:38.080
11488910
NSOperationQueue designated thread
<p>I want to use an <code>NSOperationQueue</code> to dispatch CoreData operations. However, operation queue behavior is not always the same (e.g. it dispatches using <code>libdispatch</code> on iOS 4.0/OS 10.6 which uses thread pools) and a queue might not always use the same thread (as <code>NSManagedObjectContext</co...
No
11,489,151
1
<objective-c><nsarray><nscoding>
2012-07-15T03:24:14.687
null
Saving nested objects and NSArrays in Objective C using NSCoding
<p>I'm attempting to save an object that has an NSMutableArray of nested objects. I want to use the NSCoding Protocol to save the file under the documents directory. Do I need to encode every object (including the nested ones) or just the super class itself? Right now I'm only encoding the super class' objects. </p> <...
No
11,494,105
3
<c#><awesomium>
2012-07-15T17:32:47.137
null
C# - Using Awesomium to Interact with Gmail
<p>I'm able to navigate to gmail, but then I want to do something as simple as enter the credientials and click the login button.</p> <pre><code>private void btnSubmit_Click(object sender, EventArgs e) { btnSubmit.Enabled = false; webGmail.LoadURL("http://www.gmail.com"); webGmail.LoadCompl...
No
11,562,215
2
<java><eclipse><memory-leaks><threadpool>
2012-07-19T13:43:48.553
11564125
Getting compile error using getThreadAllocatedBytes() in ecplise
<p>I am trying to monitor my threads in the Quartz scheduler. I need to come up with an estimation of how much memory needed for executing my jobs.</p> <p>I am trying to use the method:</p> <pre class="lang-java prettyprint-override"><code> import java.lang.management.ManagementFactory; ManagementFactory.getT...
No
11,565,136
1
<php><cakephp>
2012-07-19T16:23:14.880
11565925
CakeEmail - Send HTML and Plain-text message manually
<p>I want to send a plain-text and html email from CakePHP using the built-in function, but without touching the .ctp files.</p> <p>Here's what i want from the CakeEmail : </p> <pre><code>//Send email to user $email = new CakeEmail('default'); $email-&gt;to($customers['Customer']['email']); $email-&gt;subject('Passwo...
No
11,580,132
1
<iphone><facebook><image><post><share>
2012-07-20T13:15:24.273
null
Post image on Facebook wall through iPhone app
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/750328/documented-process-for-using-facebook-connect-for-the-iphone-to-upload-photos">Documented process for using facebook connect for the iPhone to upload photos</a> </p> </blockquote> <p>I have aמ iPhone app...
No
11,608,532
3
<python><comparison><set><python-2.x>
2012-07-23T08:03:19.127
11608544
How to hide the 'set' keyword in output while using set in python
<p>Ok so I have two lists in python</p> <pre><code>a = ['bad', 'horrible'] b = ['bad', 'good'] </code></pre> <p>I'm using the set operator to compare the two lists and give an output if a common word exists between the two sets. </p> <pre><code>print set(a) &amp; set (b) </code></pre> <p>This gives the output as,</...
No
11,640,681
4
<c++><multithreading><mutex>
2012-07-24T23:19:52.140
11640729
Thread-safe way to build mutex protection into a C++ class?
<p>I'm trying to implement a producer/consumer model multithreaded program in C++ for a project I'm working on. The basic idea is that the main thread creates a second thread to watch a serial port for new data, process the data and put the result in a buffer that is periodically polled by the main thread. I've never w...
No
11,694,623
1
<c#><sql-server-ce>
2012-07-27T19:39:47.503
11694843
SQL Server Compact Insertion
<p>i want to insert data into sql server Compact edition the database table screenshot is <a href="http://www.flickr.com/photos/56760865@N04/7657986538" rel="nofollow">Here >>> </a> i Want to add data in users the addition script is as follows</p> <pre><code>SqlCeConnection Con = new SqlCeConnection(); Con.ConnectionS...
No
11,802,853
1
<c#><entity-framework>
2012-08-03T20:30:18.343
11802879
Initialize new instance of an entity framework object with constructor?
<p>Is it possible to use a constructor with EF entities?</p> <p>I want to add a new instance of an Entity Framework entity and add it to a List&lt;></p> <p>i.e.</p> <pre><code>List&lt;MyObject&gt; objectList = new List&lt;MyObject&gt;(); objectList.Add(new MyObject( "property" , 1); </code></pre> <p>instead of</p> ...
No
11,913,501
3
<c++><string><cin>
2012-08-11T09:29:19.913
11913546
Using while(cin>>x)
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/2735315/c-cin-whitespace-question">C++ cin whitespace question</a> </p> </blockquote> <p>I'm having problem trying to understand this piece of code. I'd like to apologize if this question has already been answe...
No
11,934,744
2
<php><regex>
2012-08-13T12:59:15.440
null
Regex : negative assertion
<p>I'm stuck with an easy regex to match URLs in a content. The goal is to remove the folder from the links like "/folder/id/123" and to replace them with "id/123" so it's a short relative one in the same folder.</p> <p>Actually I did</p> <pre><code>$pattern = "/\/?(\w+)\/id\/(\d)/i" $replacement = "id/$2"; return pr...
No
11,949,255
3
<mysql><sql><algorithm><sql-server-2008>
2012-08-14T09:16:06.037
11949727
Get Index of each letter series from dictionary database
<p>I have dictionary database and i have created one UI interface ,to place buttons alphabetically , on click of each Letter , i want to fetch first word in the Letter series </p> <p>Is there any trick or sql query by which i can list out, first word of each series against it's index</p> <p>Note : i also have , Inde...
No
12,179,979
4
<c#><reporting>
2012-08-29T14:14:03.563
12180009
How do I get the current Date in C#
<p>I am using the Reporting feature in Visual Studio and I need to create a prop/variable to store the current date so I can display it on my form. I cannot seem to find the proper way to do this in the report view.</p> <p>I originally tried a property of : </p> <pre><code>public DateTime CurrentDate {get;} </code></...
No
12,271,173
1
<r><linear-regression><least-squares><lm>
2012-09-04T20:51:03.067
12271589
Linear least squares fitting
<p>DF</p> <pre><code> times a b s ex 1 0 59 140 1e-4 1 2 20 59 140 1e-4 0 3 40 59 140 1e-4 0 4 60 59 140 1e-4 2 5 120 59 140 1e-4 20 6 180 59 140 1e-4 30 7 240 59 140 1e-4 31 8 360 59 140 1e-4 37 9 0 60 140 1e-4 0 10 20 60 140 1e-4 0 11 40 60 140 1e-4 0 12 60 60 140 1e-4 0 13 120 60 140 1e-4 330...
No
12,283,113
6
<python><list><sublist>
2012-09-05T13:55:57.937
null
Printing item from a sublist
<pre><code>data = [['a','b'], ['a','c']] print data[0[0]] &gt;&gt;&gt; 0 </code></pre> <p>When I try this, I get an error. How could I print the 1st item from 1st list?</p>
No
12,343,233
1
<maven><ant><cargo>
2012-09-09T21:40:48.437
null
Cargo run / start not working, missing Ant dependency?
<p>I've been trying to set up the cargo-maven2 plugin (although I am using Maven 3; and this is supposed to be ok) so that I can start a container during the pre-integration-test phase and shut it down in the post-integration test phase.</p> <p>I'm having no luck. I keep getting this error message:</p> <pre><code>Fa...
No
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
112