text stringlengths 8 267k | meta dict |
|---|---|
Q: UITableView and CoreDate "Invalid update: invalid number of rows in section" After returning from another view and Saving I have a UITableView that is backed by core data with sections grouped by date. I can delete and add while I'm on the that view just fine. The NSFetchController and the UITableView stay in sync... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I access windows items(?) from inside a VB.net program I am not really sure how to ask this question. I have been teaching myself vb for about 3 months. The book I am using is pretty good about explaining things and what I can't figure out I can find different examples on the web. I can't find out how to acce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.net simulate browser back button I'm working on my ASP.NET web project using VS2010, C#, I'm inserting a hyperlink in my page, labeled as BACK, and I want it to act like browser back button, how should I implement it? what is the easiest way?
how should I set its navigateURL property?
thanks
A: <asp:button id="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What languages I will need in order to write browser plugin that will work with GMAIL?
Possible Duplicate:
C# plugin for Google Chrome
What language(s) are programs like ActiveInbox written in?
I need to write browser plugin, mainly to chrome. This plugin will work with GMAIL. It will track incoming mails and do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Why do I continue to receive PHP Deprecated errors despite this ini setting? I've set my error_reporting to
error_reporting = E_ALL & ~E_DEPRECATED ^ E_STRICT
in php.ini. The numerical value according to phpinfo() is 22527.
However we are still logging plenty of
[01-Oct-2011 13:06:36] PHP Deprecated: Assigning the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Symfony 2 hidden form field text This is probably really stupid but I am trying to set a hidden form field value in symfony yet when I do a view source, the value doesnt show up. this->postID refers to a value I am passing in through the constructor, but that doesnt matter, even if I set the data value to a string ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Saving a large text chunk in a mysql table I'm building a music site. It has a lot of artists and tracks stored. I'm planning to retrieve artist information from Wikipedia and store it on my server - somehow.
Would i want to save this as static files? In the artists table? In a separate table so it wont be loaded ev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jquery and ajax async post back Hi I am using jquery to have the sliding effect, kwicks effect, slideup and fancybox in a single page. everyhting works perfectly until the ajax postback but after that none of the jquery functions seems to work. any ideas will be great
A: It looks as though your UpdatePanel is break... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Ruby: Extracting Words From String I'm trying to parse words out of a string and put them into an array. I've tried the following thing:
@string1 = "oriented design, decomposition, encapsulation, and testing. Uses "
puts @string1.scan(/\s([^\,\.\s]*)/)
It seems to do the trick, but it's a bit shaky (I should includ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: getrusage vs. clock_gettime() I am trying to obtain the CPU time consumed by a process on Ubuntu. As far as I know, there are two functions can do this job: getrusage() and clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &tp). In my code, calling getrusage() immediately after clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &tp), al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Random circles being detected I'm trying to detect circles but I am detecting circles that aren't even there. My code is below. Anyone know how to modify the DetectCircle() method to make the detection more accurate , please and thanks
void detectCircle( IplImage * img )
{
int edge_thresh = 1;
IplImage *gray... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fatal error starting debugging kernel every other deployment on Mac I'm writing a FireMonkey HD application on my Windows 32 bits machine, and deploying (remote debugging) it on my MacBook running Snow Leopard. I'm running the Delphi XE2 Trial.
Everything is working fine, except for one thing: every other run I hit ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Session data not persisting in GAE (Java) I am struggling while handling sessions in GAE. I am trying to store a two classes and a string in session. Although on DEV environment it runs fine, on production a class and a string are not being persisted in session. The class that is not getting saved as a session attri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: nodejs modules and duplication? If an app uses two modules that require a common module, does node optimize to prevent loading the same code twice? Apologies if this is a dumb question, but if I create 2 modules that both require('http') and my main application that requires both modules, or requires modules that in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Directed graph connectivity Given a directed graph G, what is the best way to go about finding a vertex v such that there is a path from v to every other vertex in G?
This algorithm should run in linear time. Is there an existing algorithm that solves this? If not, I'd appreciate some insight into how this can be so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Do the contextual rules for 'type' selectors also apply for 'class' & 'id' selectors in CSS? I am new to CSS and facing an issue related to contextual selectors as following:
Q1) What is the effect of creating selectors in the following way:
.test1 .test2{
background:red;
}
Here test1 and test2 are the class se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java ObjectInputStream hanging I am feeling really stupid right now guys.... basically I am connecting over TCP on a local machine... and when I try to make the In/out streams at the client it wont get passed creating the object input stream. What gives? This stops after printing 2... no exceptions or anything... Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Java JPanel Paint Scaling Following code work for visualizing a molecule on a JPanel except it does not rescale when I change the size of JPanel at runtime. The Chemistry Development Kit is used for generating rendered Image. A molecule is passed to MoleculeViewer for visualizing. What am I doing wrong??
A: What am... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: use base64 image with Carrierwave I want to perform the similar thing as from base64 photo and paperclip -Rails, but with Carrierwave.
Could anybody explain me using of base64 images in Carrierwave?
A: class ImageUploader < CarrierWave::Uploader::Base
class FilelessIO < StringIO
attr_accessor :original_filen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Spawned zip process doesn't seem to add file to archive I am trying to add a text file to a zip archive through a Java program on Linux. The program spawns a process (using java.lang.Process) to execute the commandline "zip -j .zip .txt", reads the output and error streams of the spawned process and waits for the pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Protect Jar file source code with exe file (Java) How would I make a .JAR file open up when I make another file as .EXE?
I have tried many things, but they don't work.
I want this for another way to protect my source code. Kind of like what Minecraft does. You open a .EXE, and somehow the .EXE opens up the .JAR file... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Referential Integrity does not work in N:N relation This is ms create table script:
It is a N:M relation between the SchoolclassCode and the Pupil table
CREATE TABLE Schoolclasscode (
schoolclassId integer PRIMARY KEY AUTOINCREMENT NOT NULL
);
CREATE TABLE SchoolclasscodePupil (
pupilId_FK integer NO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RML paragraph vertical align? I am working with RML and would like to align my text in the vertical middle of a paragraph. How might I be able to do this?
A: Can you use a table ? Like this ?
<?xml version="1.0"?>
<!DOCTYPE document SYSTEM "rml.dtd" >
<document filename="example_08.pdf">
<template showBoundary="0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to print a voucher with Java and a EPSON TM-T88III I just bought an EPSON TM-T88III. Now I want to write a small application in java that prints a voucher with some plain text, so nothing special. I was wondering how I could do this.
So far I figured out that I can print simple documents using the Windows Driver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Zend_Form submit stops working, when displayed with Display Groups My Zend_Form has only two elements, text and submit.
When I render the Form as whole, everything works fine.
echo $this->form;
When I render the Form part by part, it gets rendered, but the submit button triggers nothing.
echo $this->form->range;
ec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Deleting String[] in Java I have String[] inputMsg declared outside a loop and inside a loop I have
inputMsg = new String[someSize];
Since the loop can loop lots of times, I find it out that creating new String[someSize] everytime realy wasteful so in the of each iteration of the loop I would like to remove that me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails button_to to trigger an action in Model directly I would like to allow user to cancel his Event by clicking a button on show page. I have a method cancel in Event model, but don't want to create a method cancel in Controller if I don't have to.
My questions are:
*
*Is it a good idea to invoke a method in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a simple way to get li:gt(-1) in jquery? Is there a simple way to get li:gt(-1) in jQuery? Or greater than or equal to zero using jQuery's :gt filter?
When the I use the following code, it is not taking li:gt(-1):
$('#Input li:gt(-1)').each(function()
A: Change your code to start at 0 instead of -1, and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: android ddms screen capture vertical size seems fixed at 1024 I can successfully run the DDMS screen capture either via the DDMS.bat file or via eclipse however the screen size in the vertical direction seems fixed at about 1024 pixels.
My laptop is a bit small with a screen size of 1366x768. If I attach a VGA mon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Prototype object can be changed from instance Could someone explain this to me in a sensible way:
function One() {}
One.prototype.obj = { key: 'value' };
One.prototype.str = 'string';
var inst1 = new One(),
inst2 = new One();
// now let’s change some things in our second instance
inst2.obj.key = 'buh!';
inst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Debug Maven to find out the war file name that has been created I am getting this exception in Maven2 when i run mvn deploy
Please see the error
[INFO] An Ant BuildException has occured: Warning: Could not find file D:\bayer\service\target\${file.name}.war to copy.
I have this below line under my POM.xml file
Pl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get interests from public user pages? I try to get public interests from user pages by link https://graph.facebook.com/{user_id}/interests?access_key=...
But I always receive empty 'data' array, when I request data from non-friend user.
What's wrong?
A: You can not get data from users besides their name, id,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Access violation in DirectX OMSetRenderTargets I receive the following error (Unhandled exception at 0x527DAE81 (d3d11_1sdklayers.dll) in Lesson2.Triangles.exe: 0xC0000005: Access violation reading location 0x00000000) when running the Triangle sample application for DirectX 11 in D3D_FEATURE_LEVEL_9_1. This error o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Python - Interactive mode vs. normal invocation of the interpreter Is there a difference between the two modes in terms of resources, especially memory? I'm referring to Python in the title but if there is a common explanation to many interpreted languages (Octave, etc...) that would be very helpful.
Thanks
A: It l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C++ static-only class I have a bunch of functions that I want to put in either a separate namespace or a class. Out of the two, which would be better? If it's the latter, how should I go about it? I mean, I don't have any instance members, so should I specify the constructor as private? Or delete it?
Either way, it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Visual C++ project type to be used for interop I am trying to learn Interop from C# and C++/CLI. I am starting with creating a C++/CLI project. Most of the examples I found talks about interop with COM however when I am creating a C++/CLI project in Visual studio 2010, under the project templates for Visual C++ proj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get function given a list of values Is there a way that I can give python a list of values like [ 1, 3, 4.5, 1] and obtain a function that relates to those values? like y = 3x+4 or something like that?
I don't want to plot it or anything, I just want to substitute values in that function and see what the result woul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: cross validation in SAS I have split my data into 5 folds in SAS. So I have
s1,s2,s3,s4,s5
I was wondering what's the best way to iterate through each of the folds to perform cross validation. For example, the first iteration I want to use s1 as my test set and s2,3,4,5 as the training sets, the second iteration us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: fancybox opening when I don't want it to I'm a Jeopardy game and I'm using the FancyBox lightbox plugin to show all the questions in.
I'm trying to create a bonus question. This question is supposed to pop up once all of the 25 spots are gone. I'm currently using a large if statement:
if($('#html5_100').is(':hidden'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best Way of Checking a String has one of Many Values in Perl? I'm just in the middle of some Perl code and I found myself writing the monstrosity of a line of code shown below. Perl being so full of great little shortcuts, there just has to be a better way than this right?
So - is there a better way to do this:
unle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C: how to store integers by reading line by line with a random layout? I need to read a file and store each number (int) in a variable, when it sees \n or a "-" (the minus sign means that it should store the numbers from 1 to 5 (1-5)) it needs to store it into the next variable. How should I proceed?
I was thinking ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting up a model in magento 1.5.x I can successfully do getModel(module/licenses) but then when I load($id) things break.
My database table is setup fine called licenses.
my config file has in the global -> modules tag
<modulename>
<class>NameSpace_Module_Model></class>
<resourceModel>module_mysql4</resourceMo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is a Magento "Backend" model? After building some frontend stuff, I'm now exploring the internals of the admin side of Magento. I read Alan Storm's article on creating a simple model (as opposed to an EAV model, something which I am not yet ready for).
My main goal is to create a module that enables the user to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to get an element from a node in XDocument where two other elements are known I'm stumped (again) with an misunderstanding of XDocument/Linq. For the XML below, I have nameEn and provinceCode as variables in my code. I'm trying to identify the code (e.g., s0000002) and nameFr given I have the other two elements.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Operation must use an updateable query when updating excel sheet I am getting this error when trying to update excel sheet :
Server Error in '/ReadExcelData_Csharp' Application.
Operation must use an updateable query.
and here is the code that i am using :
querys = "UPDATE [Sheet1$] "+"SET [Number]=" +s.Trim()+... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: PC Toast Message with Java I have a Java Desktop Application which runs in the background and has a System Tray icon. When I want to tell the user something or when they interact with the icon I want to use "Toast" which is the only name I know for it. Toast is a box without a frame that pops up on the bottom right ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.Net MVC 3 big file uploader with progress I've spent several hours of googling. Can anybody point me to an example of big file uploader with progress with backend on ASP.Net MVC3. I found many different solutions, but most of them use PHP as backend, and it's a bit hard for me to convert. Also I think there have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Facebook Like and Share information not showing properly I made my website My SMS Buddy and i have included one facebook like button to sharing my website on facebook. But, whenever i clicked on the like button, it is only showing my website url,but it is not showing thumbnail,title,description, although i have writ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Name parameter ignored in Facebook feed dialog I try opening a simple dialog from my iOS app to post something on a user's wall. However it seems the "name" parameter is completely ignored.
Here is the code, I use the Facebook SDK from Github, pulled the version yesterday.
NSMutableDictionary * params = [NSMutableDi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Create media - Magento API (Soap) I have a little problem with my PHP script. This one use the Magento API and try to create a media for a product.
$imageData = array(
'file' => array(
'name' => 'myimage.jpg',
'content' => base64_encode(file_get_contents($product_image_url)),
'mime' =>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: while loops and fileStreams i have the code below:
while (FileOne.hasNextLine()){
String check = FileOne.nextLine();
Reader r = new FileReader("something");
mass1:
try{
Scanner FileTwo = new Scanner(r);
mass1:
while (FileTwo.hasNextLine()) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to install windows service using Inno Setup? In VS2010 I have solution with windows service project and some other 'helper' projects. So in my debug folder there is an windows service application and couple of dlls.
I can install windows service by running application with parameter, so in Inno Setup I just do:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Need to write a RESTful JSON service in Java Here is my requirement:
*
*I have a simple table in mysql(Consider any table with a few fields)
*I need to write a simple RESTFUL JSON webservice in Java that performs CRUD operations on this table.
I tried searching on the net for some comprehensive example for th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Custom URL Scheme for CommandLine Application Is it possible for a Xcode "CommandLine application" (written in C++) to be launched with a custom URL scheme? I know you can do this with a Cocoa application, but would it be possible with C++?
A: It doesn't matter what language you use; it is not possible to bind a UR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: is it possible to understand at Code behind whether page is being called inside iframe or not I need to understand that whether page is being called inside iframe or not at code behind. Is this possible?
I need to determine it in master page code behind.
asp.net 4.0, C#
A: In general, no.
Of course you can emit cli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jquery Simple SlideToggle in sections I am creating a simple page with questions and answers.
This is how it looks:
SECTION > Question > Answer
And this keeps on repeating with different sections, Each section has multiple questions and each question has an answer. By default everything is set to display:none. Now w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Need application/json from RESTful Roo application I've created a basic RESTful Roo application using the following Roo-script (Roo 1.1.5).
project --topLevelPackage com.roorest
persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
entity --class ~.domain.MyClass
field string --fieldName String1
w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to build FParsec for .NET Compact Framework? I’m writing a small application based on FParsec.
Today, I’m looking for an opportunity to make a version for Compact Framework.
Apparently, it is not that simple to build FParsec sources for .NET CF. The FParsecCS library has unsafe code and some references to the ty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C# MVC Access to path denied when trying to write file I have an MVC application in which users are able to upload files. Before I write the uploaded file, I create a directory according to date time. I start off with C:\ApplicationName and end up with C:\ApplicationName\20111001\Filename.ext when the upload is comp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Better performance in lower light conditions (OpenCV)? I am trying to detect hands, and my algorithm works perfectly during day, but during the night it completely fails- it shows no signs of working at all.
I have come to the conclusion this is because of lower light conditions.
Could someone please give me tips fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I detect when to show a keyboard on a touch device? I'm trying to make a program the will run on a touchpad device like this: http://sethsandler.com/multitouch/mtbiggie/
I'm trying to make a keyboard that will pop up when you need it. I'm working in C++ and Windows or Java and Ubuntu (haven't decided yet).
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does this do whatever it does? #include <stdio.h>
void littledot(){}//must use C, not C++
int main() {
littledot(568,76,105,84,116,76,101,68,111,84);
printf("%c%c%c%c%c%c%c%c%c\n");
getchar();
return 0;
}
The above code yields the result "LiTtLeDoT". Why does it do that? Why is 568 crucial?
A: Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can Basemap draw a detailed coastline at the city level? I'm trying to draw a detailed coastline of the NYC area using Basemap in Python. Using the full resolution dataset, Manhattan looks like rectangle, and the Hudson doesn't show up at all about midtown.
Here's the code I'm using. Any suggestions?
from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Unable to use easy_install to install Python modules I am trying to use easy_install to install a module called requests by doing
easy_install requests
This worked fine a week ago when I was using Python 2.6.5 but today I installed Python 2.7.2 and then tried to import requests in one of my scripts but it failed. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Simulating computer cluster on simple desktop to test parallel algorithms I want to try and learn MPI as well as parallel programming.
Can a sandbox be created on my desktop PC?
How can this be done?
Linux and windows solutions are welcome.
A: If you want to learn MPI, you can definitely do it on a single PC (Most ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Vim auto indent private keyword I'm learning Vim (I'm using gVim)
I need to do the following:
Suppose I typed this:
class MyClass {
private
}
After typing the : after private, result should be:
class MyClass {
private:
}
How can I do automate that behaviour?
I tried with
:imap private: <Home><Delete>
But I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What mechanisms are available for sharing session state in ASP.NET applications? So we're scaling out our application to have two Web servers, and will most likely need four or five in the next year or so if all goes well.
I'm aware of sharing session state between servers with SQL Server and the ASP.NET state serve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Assign variable to multiple vectors in Clojure The clojure.contrib.sql module has a create-table function that takes the table name and a list of specifications, like this:
(sql/create-table :services
[:id :serial "PRIMARY KEY"]
[:service_name :varchar "NOT NULL"]
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Given list of countries draw map with those countries a different color Looking to the do what the title says - produce a world map image that colors particular countries. I'm open to platform - Processing or Python/Basemap preferable. Web based service ok if it has an API.
Anyone have direction on this?
A: hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: XCode 4.2 on OSX 10.7.1 (Lion) Crashing/Locking Up all the time. Anyone Know how to fix? This should not create any Issues with the NDA as I am not asking anyone to reveal any functionality of the application, I have asked on the Developer Forums, but They dont have the user base or the response speed of StackOverfl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Php array to formatted Text Key : Value I have this array:
Array ( [location] => Array ( [country] => India [country_code] => IN [region] => [region_code] => [city] => [zip] => [latitude] => 13.044468 [longitude] => 77.575665 [ip_address] => 123.236.219.154 [timestamp] => 1317496122 [route] => 3rd Cross Rd [neighbor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to display a custom string in mvc3 dropdownlist but keep id field mapped to item selected? Q: How can I display firstname + lastname (or any string literal) in a mvc3 dropdown list but keep mapped/bound associated id when item is selected?
-- Model
public class UserT
{
public int UserTId { get; s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ruby searching through multidimensional array Learning the beauty of Ruby code and I was wondering if there is a simple/straightforward to search within a multidimensional array. I have an multi array with 4 indices that contain assorted number. I want to search though each index matching the contents agains another... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to use Google Libraries API (jQuery) with Google App Engine? I am trying to add this jQuery Hover effect to my site. Instead of downloading jQuery I decided to use Google Libraries API for jQuery. I got a key and copied the code that goes to the header then I copied the jQuery for the hover effect but nothing is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Isotope plugin .element resizing and positioning is there any other jQuery Isotope plugin implementor that knows, if it is possible to automatically shrink a currently enlarged .element when a new .element is clicked, and if it is possible to have that currently enlarged .element always displayed top left in the #co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why Intellij Idea shows compatible="no" for android emulator Intellij Idea shows compatible="no" for every android emulator. I tried emulators with different api levels. At the same time compatible="true" for my NexusOne.
Does anyone know how it checks device/emulator for compatibility?
I have next settings in manif... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: what is recommended for a wpf app, sql database or xml I want to build a wpf app (with mvvm dp) and I need to manage a list of customers (200 customers maximum)
What is the recommended way to handle this? sql (mySql, sqlServer) or other way (xml, excel, access)?
I can see advantage in xml because its not required ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: php resize blob image I am echoing the data received from a blob column from mysql like this:
<?php
$con = mysql_connect("localhost","username","pass");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("mydb", $con);
if(isset($_GET['imageid'])){
$img=$_GET['imageid'];
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: libsqlite in simulator and iOS compiling I'm having some issues when compiling my app to iOS.
I'm using sqlite3 and imported as
#import <sqlite3.h>
Well, I only found a file named libsqlite3.0.dylib in my Mac and I copied it to my project.
When I compile it for iOS Simulator, it works just fine. However, when I try... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do I stop this video from autoplay on my blog? I've tried everything < object id="flashobject" type="application/x-shockwave-flash" allowScriptAccess="always"
allowFullScreen="true" allowNetworking="all" height="442" width="720"
data="http://www.thedoctorstv.com/UMInterface_Tremor.swf?at=01823b09-1298-4bc6... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: executing a git pull from a different directory I'm configuring calimoucho (a little play continuos integration server), and for it to work I need to run a command to pull a cloned git hub repository from outside it.
to be more precise, I'll explain it with an example.
I have the following repository
cd /home/sas
mk... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: Simply encrypt a string in C I'm trying to encrypt a query string on a game I'm making when opening a url. It doesn't have to be complicated, in fact since I'm working from a game engine it needs to be as simple as possible. It tends to fuss if I get too low level.
I've already created the query string, I just need... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Performance Bottleneck with python mapping data structure I am facing a little performance problem with one of my data structures used for a bigger project in python.
Basically, I am importing a tabular delimited file. Using the normal python open(...) file iterator I am splitting the lines with line.split("\t"). No... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: logo on left and menu on right in same row I want to have in the same raw, in the left a logo, and in the right a menu like Contact Us. If I make 3 divs for this and I allign the first left, and the 3rd right, it doesn't work. How can you have this?
A: Float would be a clean, simple way to do it. Try floating your ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Scala 2.9 can't run "hello world" sample on Windows XP I'm trying to run HelloWorld sample with scala 2.9.1 final on Windows XP:
object HelloWorld extends App {
println("Hello, World!")
}
File is saved as Hello.scala.
When I run scalac Hello.scala, it's ok.
When I run scala Hello, it writes:
"Exception in thre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Installing cancan 2.0 gem in Rails 3.1 I'm having trouble installing the cancan 2.0 gem in Windows XP. I am using Rails 3.1 and in my gemfile y have
gem "cancan", :git => "git://github.com/ryanb/cancan.git", :branch => "2.0"
but it keeps saying
No such file or directory - git clone
"git://github.com/ryanb/canc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Examining XML in a stream If I have a large XML document, which I don't want to load entirely into memory, and some configurable value like an XPath statement or othe format that identifies a path to an element in the xml, is it possible to read the xml from a stream node by node until I find the location I am looki... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Destroying a Postgres DB on Heroku I want to destroy the database but I'm not sure what the command would be. Does anyone know how to do this?
A: To answer Siamii's question above: DATABASE in heroku pg:reset DATABASE is by default postgres
A: Simply follow the steps below. Run
heroku pg:reset DATABASE
to recreate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: Winforms: Closing a program to system tray 'This is the event that is fired as the application is closing, whether it
'be from a close button in the application or from the user
'clicking the X in the upper right hand corner
Private Sub Form1_FormClosing(sender as Object, e as FormClosingEventArgs) Handles Form1.F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: read audio file information php How do I read information as bitrate, length, etc. Different file formats, mp3, wmw etc etc. from a sound file.
I guess there is some library/class out there, perhaps I could try out.
Any suggestions?
A: getID3() is a PHP script that extracts useful information from MP3s & other mult... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Libusb interrupt transfer callback I'am working on a real-time control system that calculates the control signals in a buffered fashion (a user-mode program) and outputs to the usb device the array through isochronous transfers. The usb device them reports the execution progress through interrupt transfer, so that p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Convert SHA256 hash string to SHA256 hash object in Python I have a string which is a SHA256 hash, and I want to pass it to a Python script which will convert it to a SHA256 object. If I do this:
my_hashed_string = // my hashed string here
m = hashlib.SHA256()
m.update( my_hashed_string )
it will just hash my hash... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Get cell to the right of current month in Excel I'm pretty new to Excel, that question is probably easy, but I dont know what to do :-(.
So this is what I have:
Date Numbers
01.09.11 10
01.10.11 20
01.11.11 30
01.12.11 40
Now what I want is in another cell: Get the number of the date, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SSN Validation in MVC2 I have a business requirement where in i need to display SSN Field into three separate text boxes and if any one of the textbox is blank and user clicks save, I need to display a common error message on top of the SSN Field saying- "SSN is required field". I have added required field attribute... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: query on test files, branching and folder structure in in team foundation server recently i was embarking on new project. it is giving me this time try to make my tfs structure more solid put some betterment on my recent version. so here it s
branch
release
trunk
bin
docs
src
sln.file
project1
project2
test... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I make a webpage display what platform and browser its being viewed in? I need a webpage to display if its being viewed on a PC/Mac, iphone, etc and also what browser its being run on. Anyone know how I would go about doing that?
A: You typically get this information through the User-agent: HTTP header sent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generics & Types I am using generics in a certain data structure. I have to store int x, int y, and Value value, where value is the generic type.
I am trying to group all those in one object called NodeData and then in another class, create an ArrayList of NodeData's, (so each element in the array list will include ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What can my models bind to when a collection is reset? Are there any events my models can bind to, to know their collection has been reset?
When I call:
collection.reset()
I want those removed models to be destroyed and in turn any views to know they are gone. What should I bind to here?
A: From the fine manual:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to generate sun-web.xml for a Java Web Application using NetBeans? The title says it all.
Is there any plugin for NetBeans 7.0 to generate sun-web.xml in a web project?
If yes, please let me know.
A: Yo do not need to install any plugin:
*
*Go to File > New Files > XML > XML Document from menu.
*In the firs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Network communication between C# server and JAVA client: how to handle that. transition? I have a C# server that cannot be altered. In C#, a byte ranges fom 0 - 255, while in JAVA it ranges from -128 to 127.
I have read about the problem with unsigned byte/ints/etc and the only real option as I have found out is to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.