text stringlengths 8 267k | meta dict |
|---|---|
Q: WCF SOAP Action I am rewriting a legacy asp.net web service in WCF 4.0. My obvious end-goal would be that the new endpoints would exactly match the legacy ones. The problem i encountered is that in the legacy web service they exposed the soap actions as: http://www.my-domain.com/my-action. In WCF from my research it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Omniauth is not directing to FB but rather my root? / in my view I have:
<%= link_to "Sign in with Facebook", user_omniauth_authorize_path(:facebook) %>
Which renders with the link: http://localhost:3000/users/auth/facebook
Problem is when I click that link it loads directly to:
Started GET "/" for 127.0.0.1 at 201... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ExtJS 4 - Refreshing Summary Feature of Grid Panel Without Refreshing Entire View I'm using ExtJS's GridPanel library to render a list of rows that have a CheckboxModel for selections. There is also a summary row that adds up all of the selected data and displays it in a row at the bottom of the GridPanel. The code ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to remove the last 2 lines of a huge file without reading it I have a 100GB file, and need to remove the last two lines of it.
I do not want to read from it since it will take about an hour to get to the bottom of it so sed does not seem to be an option.
My disk is also too small to be able to copy that file.
Wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Entity Framework / Unit of Work Architecture Question I'm very familiar with UoW, Repository Pattern, etc. but in seeing various implementations of the pattern for Entity Framework, I'm curious why anyone would have a Save or Add method on their repository. If you use the repository to get you a new instance of an o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When converting a project to use ARC what does "switch case is in protected scope" mean? When converting a project to use ARC what does "switch case is in protected scope" mean?
I am converting a project to use ARC, using Xcode 4 Edit -> Refactor -> Convert to Objective-C ARC...
One of the errors I get is "switch c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "284"
} |
Q: Difference between these two lambdas? These both seem to do the same thing.. I'm wondering which one I should use, you would prefer to read, is more efficient, their differences, et cetera..
Lambda #1
synchronizationContext.Post(m => log.AppendText(message), null);
Lambda #2
synchronizationContext.Post(m => log.App... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is an ExpandoObject breaking code that otherwise works just fine? Here's the setup: I have an Open Source project called Massive and I'm slinging around dynamics as a way of creating SQL on the fly, and dynamic result sets on the fly.
To do the database end of things I'm using System.Data.Common and the Provider... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: .htaccess redirect to both index.html and .php Currently I have a landing page html witch the domain points to but if I access /index.php it redirects back to index.html.
How could I make the index.php accessible?
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^$
RewriteCond %{HTTP_HOST} ^domain.co.nz$
Re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to show some certain columns in datagridview in C# After querying from database, I fill the result into dataset, suppose there are 10 columns.
And then i have to show 5 of the 10 columns into datagridview.
My way is to create a new DataTable with the 5 columns, and copy the value from the original dataset. It wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to display code inside a block how can i display code inside blocks like stackoverflow does this:
<p> <strong> strong text <em> strong and emphasised text </em> </strong> <em> just emphasised text </em> </p>
note: i have all the text wrapped around a div and retrieved from a database
thanks
A: The characters m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: copyright symbol getting converted to? I have a word document which I want to convert into a pdf. However, the copyright symbol keeps getting converted as a question mark '?'
So I cannot upload it into Joomla.
Any suggestions?
A: If you can print the word document out correctly then you should be able to convert it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails 3.1 routing error, Named parameter not working I have a route setup for downloading a document which I need a named parameter for the document name so I get the doc name on the download document. I'm also passing a few unnamed parameters to identify the document.
Looks like this:
match "download/:name", :to =>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way to style RSS/ATOM feeds? One thing I've noticed is that my blog posts show up very different in my RSS feed than on my actual blog. Presumably, this is because CSS doesn't apply to RSS feeds, so layout is messed up.
For example, if in my feed I have something like this:
<div class="right-floater">Some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to add a Basic Authentication header to a MediaElement's Source request to a secure URL resource? In my Silverlight applicatin, I am using Basic Authentication to communicate with my WCF Web Services. Everything works great, until my MediaElement attempts to request a video of a secure URL resource. I get the au... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javascript lookahead regular expression I'm trying to write a regular expression to parse the following string out into three distinct parts. This is for a highlighting engine I'm writing:
"\nOn and available after solution."
I have a regular expression that's dynamically created for any word a user might input. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Checking iOS application used memory in instruments I want to make sure I'm reading the allocations plug in correctly. I'm testing an iPad app thats receiving memory warnings 1,2 & 3.
I want to know the current used up memory from my app, which I think it has to be the "Live Bytes" column? which marks All Allocatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creating memory efficient thumbnails using an NSImageView (cocoa/OSX) I am creating small NSImageViews (32x32 pixels) from large images often 512x512 or even 4096 x 2048 for an extreme test case. My problem is that with my extreme test case, my applicaiton memory footprint seems to go up by over 15MB when I display... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Random access to hash map values What's the best way to design such a container, which can support randomized value access? but the container has to support other operations, such as insert key/value pairs and remove by key, with the best possible time performance.
One way to do this is to combine hash map with arra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I select variables in an R dataframe whose names contain a particular string? Two examples would be very helpful for me.
How would I select:
1) variables whose names start with b or B (i.e. case-insensitive)
or
2) variables whose names contain a 3
df <- data.frame(a1 = factor(c("Hi", "Med", "Hi", "Low"),
l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Flash banner, how to give it an (external) html link Is there a cross-browser solution available to give a flash banner an html link, without putting it into the flash itself? (i.e. the Flash has no clickable button in it)
I tried giving the surrounding anchor tag a high z-index, but that did not work. I'm using th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to show a div thats hidden by css on button click I'm pretty new to Jquery and i want to have a hidden div css: display:none and once a button has been clicked the $(..).slideDown will execute and the div will show its conents. I try'd this.
<style> .hidden-div{ display:none } </style>
<div class="hidden-div"> ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: objective-c block vs selector. which one is better? In objective-c when you are implementing a method that is going to perform a repetitive operations, for example, you need to choice in between the several options that the language brings you:
@interface FancyMutableCollection : NSObject { }
-(void)sortUsingSelecto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: signed vs unsigned int in C I am a C beginner and needed a quick clarification regarding ints.
When you cast something as an int, which is 32 bits, half of the bits are allocated for negative integers. Thus, if you know that you will always have positive integers, casting something as an unsigned int should maximiz... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to pass data to detail view after being selected in a table view? I have a UITableViewController that has data populated from an NSMutableArray called userList. When specific user is selected, it goes to a detail view, and updates the title in the NavBar, but it wont pass the data to update a UILabel in the UIVi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why does the xml.sax parser in Jython 2.5.2 turn two-character attributes in to tuples? When ever I encounter a 2-character attribute in my XML stream when parsing with xml.sax under Jython 2.5.2 it converts the attribute name to a tuple. No amount of coercion of that name allows me to extract the value for the attr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to stop flash from overlapping popup content I'm working on a site and the popup windows are going under the flash banner. I've tested this in FF7 and Chromium. I have no idea how can I fix that. Here is the link, I also attached an image. Any suggestion how can I fix this?
A: Add wmode="opaque" to the params.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why #define is bad?
Possible Duplicate:
When are C++ macros beneficial?
Why is #define bad and what is the proper substitute?
Someone has told me that #define is bad. Well, I honestly don't not understand why its bad. If its bad, then what other way can I do this then?
#include <iostream>
#define stop() cin.ignor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ShowWindowAsync doesn't activate a hidden+minimized window? A given external (not owned by the current process) window (hWnd) is first minimized, then hidden:
ShowWindowAsync(hWnd, SW_MINIMIZE);
// wait loop inserted here
ShowWindowAsync(hWnd, SW_HIDE);
The following call properly restores it to the un-minimized (r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Extracting unique rows from a data table in R I'm migrating from data frames and matrices to data tables, but haven't found a solution for extracting the unique rows from a data table. I presume there's something I'm missing about the [,J] notation, though I've not yet found an answer in the FAQ and intro vignettes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: How does a PHP script send an JSON Ajax response to Dojo's xhrGet? I just started using dojo and I'm onto using Ajax in dojo via xhrGet.
I understand that whatever you "echo" in PHP is what is returned as the Ajax result, however how does this work with JSON?
Does the PHP script echo javascript code that is then dir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: NHibernate Parent Child Mapping I have a parent/child database relationship between the table ACCOUNT and the table USER. Currently I have mapped a bi-directional Fluent mappings like this:
public class Account {
public virtual IList<User> ListUsers { get; private set; }
public virtual void AddUser(User user)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Three20 'Back' button on WebController not functioning I am using Three20's WebController in my project and I am having issues with the 'back' arrow on the bottom controls (the <| button).
When I load a page and click a link in the WebController you'd expect the back button to enable and if touched bring you back to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting stack trace info for a ruby warning I've been running into some strange errors with UTF strings in ruby 1.9. Often ruby will complain on something like this:
warning: regexp match /.../n against to UTF-8 string
I'd like to be able to show a full stack trace on a warning, or apply some kind of monkey patch ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Selected columns from DataTable How to get the Selected columns form the DataTable? For e.g my BaseTable has three columns, ColumnA, ColumnB and ColumnC. Now as part of intermediate operations, I need to retrieve all the rows only from the ColumnA. Is there any predefined formula just like DataTable.Select?
A: Data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Referencing files located in another directory in program I am currently working on a server. I've created my own directory but need access to files located in a different directory on the server. Basically, I have code that needs access to the files located in another directory on the server but I do not know how t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: php: textarea excel paste to array I know this might ma a simple question, it must have been answered before but it's the kind of question you don't know how to google for.
I'm doing an intranet and I have a big texarea in wich te user pastes a 5columns X 365 rows (an optional first column with the 1 to 365 numbers)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem on RadioBoxes with wxRuby I got a situation on wxRuby using Wx::RadioBox.
My radioboxes got some ugly background & borders like that :
Unlike the demo which got a better style when I run it :
here is my code :
#!/usr/bin/env ruby
# coding: utf-8
require 'wx'
include Wx
class MainFrame < Frame
def ini... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What would be better to do(Pass in the object into the service or the username into the service?) what would be better to do
public ActionResult Test()
{
User user = accountService.GetUser(User.Identity)
Product project = productService.GetSomething(user);
Store store = storeService.GetSomething(user);
}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: UITableView simple question? I have an UITableView on one of my views,so the problem is when the users select a row of the table,the row becomes blue and a view is pushed by an UINavigationController,when i back to the main view the row still with a blue background.How can i make the row look normal,with no backgrou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: SQL Query simple question Just wondering if I'm missing something here:
$sql = "SELECT DISTINCT usr.id,
CONCAT(usr.username, '".PHP_EOL."' ) as username
FROM #__ads AS a
RIGHT JOIN #__users
WHERE gid= '19' AS usr
ON usr.id = a.userid
ORDER BY usr.username";
It works when I remove the WHERE gid = '19' par... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can't seem to get item to float:right until breaking div -- then allow to get cutoff http://jsfiddle.net/erfjW/2/
I am trying to get this jsfiddle to have the RHS not drop down to the next level when the browser window gets too small. Instead, I would like it to hold position -- as if it was inside of a fixed-width ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Necessary to have non-hd file? I am developing for iPhone 4 retina display using Cocos2d.
Well, I enabled retina display, and I have only put -hd graphics in my project. But when I run the project, it tells me that the -hd files are not found!
Then, I, for the sake of testing, put non-hd versions in the project. And... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the correct way to programmatically quit an MFC application? Using windows MFC C++. I have a third party app that calls a user-defined method in my CWinApp derived class. This method is called after InitInstance(). If there is an error in this method, such that an exception is thrown and caught in a try/c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How to return keys in original order in a dict I'm reading in a file and storing the info in a dict as it reads from top to bottom. I don't want to print out in a wrong order compared to the original file.
Also, a very small question: I remember seeing it somewhere a short form of the if and else statement:
if a ==... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Lambda Extension Method for Converting IEnumerable to List I need a way to create an extension method off of an IEnumerable that will allow me to return a list of SelectListItem's.
For example
public class Role
{
public string Name {get;set;}
public string RoleUID {get;set;}
}
IEnumer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Arduino upload error "stk500_recv(): programmer is not responding" in Fedora I am attempting to upload the stock Blink sketch using the Arduino IDE in Fedora Core 15 Linux. I get this error:
avrdude: stk500_recv(): programmer is not responding
To recreate the issue:
*
*Plug in the Arduino Uno board via USB cabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How can I retrieve a JPEG image codec in F#? In C#, I can retrieve a JPEG encoder like this:
var jpegEncoder =
ImageCodecInfo.GetImageEncoders()
.Where(e => e.FormatID == ImageFormat.Jpeg.Guid)
.Single();
I'd like to do the same in thing F# and I know there's a beautifully succinct way to do it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: c++11 foreach syntax and custom iterator I am writing an iterator for a container which is being used in place of a STL container. Currently the STL container is being used in many places with the c++11 foreach syntax eg: for(auto &x: C). We have needed to update the code to use a custom class that wraps the STL con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: Problem with FB.ui apprequest dialog I am trying to send application invites from an Iframe application. I open the dialog like this.
function sendRequestToOneRecipient(user_id) {
FB.ui({method: 'apprequests',
message: 'message',
to: user_id,
display: 'popup'
}, requestC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android/Java - Find text and replace in WebViewClient I have a WebViewClient that opens in a dialog which i can capture when the URL changes, but on certain URL's I would like to replace certain text but I cant seem to figure out how to get the text of the current webpage that has been loaded so I can search and rep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Finding by Recursion Sequences of Characters in a Char Array I have a recursion project to find all the sequences(or subsets) of a Char array as such that each character appears in the same order. For Example, for the array Char[] letters = {'A', 'B','C','D'}
The one letter sequences are "A","B","C,"D".
Two letter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Website rendering insanely off the mark in IE 8.0.6011.19088IC I've built this website last week, which has worked perfectly across all browsers that I have (even optimized to render nicely on iPad, iPhone, etc).
My boss uses a particular version of Internet Explorer that always seems to break websites that I build,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting additional files in LightSwitch I want to add additional files (mostly .xlsx and .docx) to a LightSwitch application and use this files in the application, for example as a filestream.
What is the best way/practice to do this?
So far I can add files to the client-project (under the file-view). This file then... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SlimDX - Set state block I want to set states in SlimDX Direct3d9 device.
I have that code at the beging of frameRender function.
device.BeginStateBlock();
device.SetRenderState(RenderState.ZEnable, false);
device.SetRenderState(RenderState.Lighting, false);
device.SetRenderState(Rend... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to set @model.attribute in razor view? I have a required field, string attribute{get; set} in a class and want to set it's value in razor. Is something like the following possible?
@model.attribute = "whatever'
A: First, capitalization matters.
@model (lowercase "m") is a reserved keyword in Razor views to de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Facebook Real-time updated does not call our servers We had integrated facebook real-time updates a while ago and it worked fine.
Recently we have seen that the callbacks are not happening.
we checked our subscriptions and it looks correct.
array(2) {
[0]=>
array(4) {
["object"]=>
string(4) "user"
["callb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Setting axis intervals in ggplot I have searched for this and can't believe I can't find it. Perhaps I've been asking the wrong question.
I have a set of data laid out in a histogram that has a xlim of $2,000,000. I am trying to set an interval of $100,000 for the breaks (rather than manually listing out every break... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: how to center img vertically and horizontally in a container - img may potentially be larger than container I have a container that will contain an image, and this image is loaded from an application and so the dimensions of the container is known while the image will vary.
I currently have the following css:
#secon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: At the risk of sounding dumb: I want to make an HTML audio player that uses for interaction. Thoughts? Basically I am attempting to make an HTML5 audio player but want to do the majority of the controls with canvas. Why? I want to try something new while learning something new. I have gotten everything working so f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Django using wrong foreign key for joins I have two relationships between models in Django, a many-to-many between Foo and Bar and a foreign key on Foo pointed towards Bar.
When I do a query that involves both Foo and Bar, django insists on using the Foreign Key instead of the M2M to do the join.
(The M2M is the rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any advantage to the pimpl idiom with a templated class? It is my understanding that the primary benefit of the pimpl idiom is to hide the data members in the implementation file instead of the header. However, templates need to be fully defined in the header in order for the compiler to instantiate them on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to identify current logged in user in Dotnetnuke? I have a very simple SQL query that I made which retrieves some user information from a table that is in my DNN database. It displays the information in a "Grid View" via the "Reports" Module that comes standard with DNN 6.0
My problem is not with the query, but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Coregraphics causing big lag on iPad? UIGraphicsBeginImageContext(self.view.bounds.size);
[currentStrokeImageView.image drawInRect:CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.height)];
CGContextSetLineCap(UIGraphicsGetCurrentContext(), kCGLineCapRound);
CGContextSetBl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get HTML before its sent to the browser I would like to capture HTML before its gets sent to the browser for caching. Is there a way to do this?
A: I've never tried this, but could you hook into the EndRequest event of an HTTP module, and simply read the Response property?
Edit: Just tried this - massive fai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Random Horizontal Scrollbar on Website A new client has come to me with a strange issue they've got on their website, for some reason it's displaying a horizontal scrollbar, and I'm really not sure how to get rid of it.
Help is appreciated.
http://www.hearthstoneresort.com/
A: How about setting the body width to 10... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to execute a windows executable remotely from a java server? I want to execute a program on a windows machine from a java program that is running on a java server in another windows machine and return something from that executable.
While I am researching different ways to do this, I don't seem to find any popul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sliding Down A Small NSView Over An Existing NSView I'm working with a NSWindow that displays various NSViews when buttons are pressed (a settings panel, essentially).
I'm trying to get a smaller NSView to slide out with a NSPopUpButton and some NSButtons from the top of the main NSView when a button is pressed.
Wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What version of J2EE am I using on my AWS Elastic BeanStalk Tomcat 6 server? I need to know what version of j2ee I am running on my elastic beanstalk instance but I do not know where to look for it.
I am using ami-2537f14c running 32bit tomcat 6.
A: Tomcat 6 is a Servlet 2.5 container. Servlet 2.5 is part of Java ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Explain the DateTime.Now design in .Net I have a question regarding the design of the Date object in the .Net framework, more specifically the Now property.
I know that Now is a property that is a Date type. (This makes sense since I see the methods .AddHours(), AddYears(), etc) If Now being a class(or struct) how... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I load XML into a HTML page? What is the best practice for loading XML into a HTML page? For instance, loading the combined contents of a file.xml and file.xsl into a div or some part of a HTML page.
Answers can be IE-specific, as long as they work on IE9.
A: An <iframe> seems like the obvious solution.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7562427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Facebook Linter: Extraneous Property Objects of this type do not allow properties named fb:page_id Hi when I run facebook linter on my site (www.mvcc.com.uy) it says:
Extraneous Property Objects of this type do not allow properties named fb:page_id.
What am I doing wrong here ?
A: Typically to get the linter to wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding a custom Authors category to Gtk::AboutDialog class I was wondering if there was a way to set a custom Authors category in a Gtk::AboutDialog class via gtkmm. I know there are the following methods:
*
*set_artists()
*set_authors()
*set_documenters()
*set_translator_credits()
But I wanted to add a cus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Kill one button event when new button clicked How to kill one button's event when a new button is clicked.
I have one event (Button G) running.(has a while loop waiting for some input).
I have a another button for quit operation.
Now. I cannot click any other button when button G's event is running.
How can I solve ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: delete records in time ranges in SQL Server I have a lot of time ranges in TimeRanges table:
StartTime EndTime
2010-01-01 06:00 2010-01-01 18:00
2010-01-01 20:00 2010-01-01 22:00
2010-01-02 06:00 2010-01-02 18:00
2010-01-02 20:00 2010-01-02 22:00
2010-01-03 06:00 2010-01-03 18:00
2010-01-03 20:00 2010-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Google custom site search (business edition) how to make search results showed in a pop up window I have a question about the google custom site search on my site.
I have paid 100$ to get custom site search on my site everything works only one thing i can't fix.
I have set google site search to display the results o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Git remote origin has two branches I am using TortoiseGit for Windows. I see two branches on remote/origin:
HEAD 20 minutes ago Some commit message.
master 20 minutes ago Some commit message.
I am confused why HEAD shows up as a branch; I did not explicitly create a separate branch on origin -... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing path to current_page method I have a helper method to help to determine whether or not a navigation menu item should be active/inactive.
def events_nav_link
nav_item = 'Events'
if current_page?(events_path) # additional conditions here
# do nothing
else
nav_item = link_to nav_item,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android special/hardware keys not generating Javascript events I'm looking to build an application for Android using a Webkit view in Phonegap and have been assessing it for suitability, however I've hit one rather major snag.
I have tested this outside of Phonegap as well, and put up a test page here: http://tane.i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: iPhone SDK - what is this control? Is it custom? What is this control? Or is it something that has been custom made? I see it in the Twitter and several other applications. I'm referring to the two triangles, and if you've ever used them, they refresh the view below them, usually going through a list of content item... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Use Python Framework or Build Own I am an experienced PHP developer (10 years) who has built 3 different custom frameworks for extreme high traffic sites. I have recently started to get into programming a lot of python, usually just for fun (algorithms). I am starting to develop a new site as my side project and wan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In Eclipse Emacs mode, is there any way to remap or add the Alt key to the Esc key? I'm used to the Emacs use of Esc for Metakey. In eclipse may I change the Esc key to be the Alt key?
A: Nope, I don't think there's a way to do that. The relevant Eclipse UI docs state:
The recognized modifiers keys are M1, M2, M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Sench Touch MVC I am pretty new to MVC and I have implemented it in my Sencha touch app. My question is what is the advantage of implementing the Sencha Touch controller Ext.Controller and dispatching to it over using just regular js functions instead? In my experience you can do the same with both but Ext.Controlle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Weld and Java SE I'm new to Weld and have been trying to get my head around it's concepts. I have a little experience with Spring and nothing with Guice, so I'm pretty much a novice with the DI frameworks.
Here's a tutorial that introduce CDI, but in the context of web apps. I'm interested to see how this works in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Activity Indicator in GWT MAP What I would like to have is an activity indicator, which is displayed after my app is up and running, but while GWT is making AJAX calls.
For example have a look at following site : http://www.foodtrucksmap.com/#
Any ideas on how to achieve it?
A: You can use an activity indicator fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: AutoMapper Projection - date/time I have a DateTime field in my Entity, which needs to map to 2 separate fields in the ViewModel for date and time i.e.
// Entity
public partial class Event
{
public Int64 Id { get; set; }
public String Title { get; set; }
public DateTime StartDateTime { ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why do we need prefix, postfix notation I know how each of them can be converted to one another but never really understood what their applications are. The usual infix operation is quite readable, but where does it fail which led to inception of prefix and postfix notation
A: Infix notation is easy to read for hum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: nested content_tags escape inner html.. why? So, if I loop through and create a collection of li/a tags, I get as expected.. an array of these tags:
(1..5).to_a.map do
content_tag(:li) do
link_to("boo", "www.boohoo.com")
end
end
=> ["<li><a href=\"www.boohoo.com\">boo</a></li>", "<li><a href=\"www.boohoo.co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Localizing a (vb).NET enterprise app into a different language (with a twist) I've built an application and it's big. VB.NET, .NET 3.5. Two years in the making, 12-projects (1 .exe, 11 .dll's), each containing dozens of WinForms. Thousands of business object classes. You get the picture.
It's a .NET migration for an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the best PHP framework for a large, high traffic, feature rich web app? I know there's a million "what's the best PHP framework" questions out there, but it seems like the answers tend to be skewed towards rapid development and low code bloat. We're looking to rewrite a very large, extremely feature rich, ver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: UPDATE one table column based on another table's column In one table I have fields
cat_id, cat_name
the table I need to update has several columns but I only want to update one based on the info in the new one.
category
I would like to update the category field to the cat_id of the corresponding name.
in other... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add pivot-table to a google spreadsheet, via the API I'd like to automatically create one of these pivot tables:
https://drive.googleblog.com/2011/05/summarize-your-data-with-pivot-tables.html
Given some data and parameters, the script would create a new google spreadsheet, complete with pivot-table and chart, non-i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using clearbox with a codeigniter site I'm trying to use clearbox with a codeigniter site. I'm not able to get it to work and I have a feeling it has to do with this line which is located in clearbox.js. I'm not sure if it has to be relative to my view file or what.
var CB_ScriptDir='clearbox'; // RELATIVE to your h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting mouse position in keyboard event I'm trying to have a selection wheel appear when the user holds down the Shift key.
The wheel should be centred on the mouse's position.
However when I test this, pageX and clientX are both undefined on the event object.
Is it possible to get the mouse coordinates on a keyboa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Batch-File to search current absolute path to find a file or directory? I am trying to search the current directory path and find a certain file or directory that is adjacent to that path. For example: if the current directory of the script is C:\Temp\Dir1\Dir2\Dir3\Dir4\Dir5\Dir6\Test.bat , and if "jars" is a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android CONTENT TYPE - Is vnd.android.cursor.dir some standard constant defined by android? I have very basic understanding problem of Content types.
I went through lot of examples and text explaining the above term, but still have some basic understanding problem. Can some clarify me please.
In the android notepad ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: Singleton in singleton I have a singleton in singleton data structure. Currently my implementation is like below:
public class Singleton {
private Object embInstance;
private Singleton() {
embInstance = new Object();
}
private static class SingletonHolder {
public static final... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Inviting Facebook friends through iPhone App I've been searching this question, and I haven't been able to find anything that works. I have an iPhone app that allows users to link their Facebook account. It would look something like this:
Once a user has successfully linked to FB, I want to present them with a li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Porting C# code to run on OSX We have a console app that runs in .NET 3.5. It connects to a USB device and spits out data received from it.
I'd like to port this over to OSX and have some questions about the strategy to do this. The USB Driver is already installed on OSX.
Mono looks promising but I don't get it. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I insert content to DIV on the top of existing content using jquery? Using the .append() function inserts content at the bottom. How to add to the top of the existing content?
A: Use .prepend()
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7562523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.